1
by Ross Burton
Import upstream version 0.10 |
1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3 |
# Generated by GNU Autoconf 2.61 for desktop-file-utils 0.15. |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4 |
# |
5 |
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=desktop-file-utils>. |
|
6 |
# |
|
7 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
|
8 |
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
|
1
by Ross Burton
Import upstream version 0.10 |
9 |
# This configure script is free software; the Free Software Foundation |
10 |
# gives unlimited permission to copy, distribute and modify it. |
|
11 |
## --------------------- ## |
|
12 |
## M4sh Initialization. ## |
|
13 |
## --------------------- ## |
|
14 |
||
1.2.1
by Ross Burton
Import upstream version 0.15 |
15 |
# Be more Bourne compatible |
1
by Ross Burton
Import upstream version 0.10 |
16 |
DUALCASE=1; export DUALCASE # for MKS sh |
1.2.1
by Ross Burton
Import upstream version 0.15 |
17 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 |
emulate sh |
|
19 |
NULLCMD=: |
|
20 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
21 |
# is contrary to our usage. Disable this feature. |
|
22 |
alias -g '${1+"$@"}'='"$@"' |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
23 |
setopt NO_GLOB_SUBST |
24 |
else |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
25 |
case `(set -o) 2>/dev/null` in |
26 |
*posix*) set -o posix ;; |
|
27 |
esac |
|
28 |
||
29 |
fi |
|
30 |
||
31 |
||
32 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
33 |
|
34 |
# PATH needs CR |
|
35 |
# Avoid depending upon Character Ranges. |
|
36 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
37 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
38 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
39 |
as_cr_digits='0123456789' |
|
40 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
41 |
||
42 |
# The user is always right. |
|
43 |
if test "${PATH_SEPARATOR+set}" != set; then |
|
44 |
echo "#! /bin/sh" >conf$$.sh |
|
45 |
echo "exit 0" >>conf$$.sh |
|
46 |
chmod +x conf$$.sh |
|
47 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
48 |
PATH_SEPARATOR=';' |
|
49 |
else |
|
50 |
PATH_SEPARATOR=: |
|
51 |
fi |
|
52 |
rm -f conf$$.sh |
|
53 |
fi |
|
54 |
||
1
by Ross Burton
Import upstream version 0.10 |
55 |
# Support unset when possible. |
56 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
57 |
as_unset=unset |
|
58 |
else |
|
59 |
as_unset=false |
|
60 |
fi |
|
61 |
||
62 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
63 |
# IFS |
64 |
# We need space, tab and new line, in precisely that order. Quoting is |
|
65 |
# there to prevent editors from complaining about space-tab. |
|
66 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
67 |
# splitting by setting IFS to empty value.) |
|
68 |
as_nl=' |
|
69 |
' |
|
70 |
IFS=" "" $as_nl" |
|
71 |
||
72 |
# Find who we are. Look in the path if we contain no directory separator. |
|
73 |
case $0 in |
|
74 |
*[\\/]* ) as_myself=$0 ;; |
|
75 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
76 |
for as_dir in $PATH |
|
77 |
do |
|
78 |
IFS=$as_save_IFS |
|
79 |
test -z "$as_dir" && as_dir=. |
|
80 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
81 |
done |
|
82 |
IFS=$as_save_IFS |
|
83 |
||
84 |
;; |
|
85 |
esac |
|
86 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
|
87 |
# in which case we are not to be found in the path. |
|
88 |
if test "x$as_myself" = x; then |
|
89 |
as_myself=$0 |
|
90 |
fi |
|
91 |
if test ! -f "$as_myself"; then |
|
92 |
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
93 |
{ (exit 1); exit 1; } |
|
94 |
fi |
|
95 |
||
1
by Ross Burton
Import upstream version 0.10 |
96 |
# Work around bugs in pre-3.0 UWIN ksh. |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
97 |
for as_var in ENV MAIL MAILPATH |
98 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
99 |
done |
|
1
by Ross Burton
Import upstream version 0.10 |
100 |
PS1='$ ' |
101 |
PS2='> ' |
|
102 |
PS4='+ ' |
|
103 |
||
104 |
# NLS nuisances. |
|
105 |
for as_var in \ |
|
106 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
107 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
108 |
LC_TELEPHONE LC_TIME |
|
109 |
do |
|
110 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
111 |
eval $as_var=C; export $as_var |
|
112 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
113 |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
1
by Ross Burton
Import upstream version 0.10 |
114 |
fi |
115 |
done |
|
116 |
||
117 |
# Required to use basename. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
118 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
119 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
1
by Ross Burton
Import upstream version 0.10 |
120 |
as_expr=expr |
121 |
else |
|
122 |
as_expr=false |
|
123 |
fi |
|
124 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
125 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1
by Ross Burton
Import upstream version 0.10 |
126 |
as_basename=basename |
127 |
else |
|
128 |
as_basename=false |
|
129 |
fi |
|
130 |
||
131 |
||
132 |
# Name of the executable. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
133 |
as_me=`$as_basename -- "$0" || |
1
by Ross Burton
Import upstream version 0.10 |
134 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 |
X"$0" : 'X\(//\)$' \| \ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
136 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1
by Ross Burton
Import upstream version 0.10 |
137 |
echo X/"$0" | |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
138 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 |
s//\1/ |
|
140 |
q |
|
141 |
} |
|
142 |
/^X\/\(\/\/\)$/{ |
|
143 |
s//\1/ |
|
144 |
q |
|
145 |
} |
|
146 |
/^X\/\(\/\).*/{ |
|
147 |
s//\1/ |
|
148 |
q |
|
149 |
} |
|
150 |
s/.*/./; q'` |
|
151 |
||
152 |
# CDPATH. |
|
153 |
$as_unset CDPATH |
|
154 |
||
155 |
||
156 |
if test "x$CONFIG_SHELL" = x; then |
|
157 |
if (eval ":") 2>/dev/null; then |
|
158 |
as_have_required=yes |
|
159 |
else |
|
160 |
as_have_required=no |
|
161 |
fi |
|
162 |
||
163 |
if test $as_have_required = yes && (eval ": |
|
164 |
(as_func_return () { |
|
165 |
(exit \$1) |
|
166 |
} |
|
167 |
as_func_success () { |
|
168 |
as_func_return 0 |
|
169 |
} |
|
170 |
as_func_failure () { |
|
171 |
as_func_return 1 |
|
172 |
} |
|
173 |
as_func_ret_success () { |
|
174 |
return 0 |
|
175 |
} |
|
176 |
as_func_ret_failure () { |
|
177 |
return 1 |
|
178 |
} |
|
179 |
||
180 |
exitcode=0 |
|
181 |
if as_func_success; then |
|
182 |
: |
|
183 |
else |
|
184 |
exitcode=1 |
|
185 |
echo as_func_success failed. |
|
186 |
fi |
|
187 |
||
188 |
if as_func_failure; then |
|
189 |
exitcode=1 |
|
190 |
echo as_func_failure succeeded. |
|
191 |
fi |
|
192 |
||
193 |
if as_func_ret_success; then |
|
194 |
: |
|
195 |
else |
|
196 |
exitcode=1 |
|
197 |
echo as_func_ret_success failed. |
|
198 |
fi |
|
199 |
||
200 |
if as_func_ret_failure; then |
|
201 |
exitcode=1 |
|
202 |
echo as_func_ret_failure succeeded. |
|
203 |
fi |
|
204 |
||
205 |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
206 |
: |
|
207 |
else |
|
208 |
exitcode=1 |
|
209 |
echo positional parameters were not saved. |
|
210 |
fi |
|
211 |
||
212 |
test \$exitcode = 0) || { (exit 1); exit 1; } |
|
213 |
||
214 |
( |
|
215 |
as_lineno_1=\$LINENO |
|
216 |
as_lineno_2=\$LINENO |
|
217 |
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
|
218 |
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
|
219 |
") 2> /dev/null; then |
|
220 |
: |
|
221 |
else |
|
222 |
as_candidate_shells= |
|
1
by Ross Burton
Import upstream version 0.10 |
223 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
225 |
do |
|
226 |
IFS=$as_save_IFS |
|
227 |
test -z "$as_dir" && as_dir=. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
228 |
case $as_dir in |
1
by Ross Burton
Import upstream version 0.10 |
229 |
/*) |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
230 |
for as_base in sh bash ksh sh5; do |
231 |
as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
|
232 |
done;; |
|
233 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
234 |
done |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
235 |
IFS=$as_save_IFS |
236 |
||
237 |
||
238 |
for as_shell in $as_candidate_shells $SHELL; do |
|
239 |
# Try only shells that exist, to save several forks. |
|
240 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
241 |
{ ("$as_shell") 2> /dev/null <<\_ASEOF |
|
242 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
243 |
emulate sh |
|
244 |
NULLCMD=: |
|
245 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
246 |
# is contrary to our usage. Disable this feature. |
|
247 |
alias -g '${1+"$@"}'='"$@"' |
|
248 |
setopt NO_GLOB_SUBST |
|
249 |
else |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
250 |
case `(set -o) 2>/dev/null` in |
251 |
*posix*) set -o posix ;; |
|
252 |
esac |
|
253 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
254 |
fi |
1.2.1
by Ross Burton
Import upstream version 0.15 |
255 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
256 |
|
257 |
: |
|
258 |
_ASEOF |
|
259 |
}; then |
|
260 |
CONFIG_SHELL=$as_shell |
|
261 |
as_have_required=yes |
|
262 |
if { "$as_shell" 2> /dev/null <<\_ASEOF |
|
263 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
264 |
emulate sh |
|
265 |
NULLCMD=: |
|
266 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
267 |
# is contrary to our usage. Disable this feature. |
|
268 |
alias -g '${1+"$@"}'='"$@"' |
|
269 |
setopt NO_GLOB_SUBST |
|
270 |
else |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
271 |
case `(set -o) 2>/dev/null` in |
272 |
*posix*) set -o posix ;; |
|
273 |
esac |
|
274 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
275 |
fi |
1.2.1
by Ross Burton
Import upstream version 0.15 |
276 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
277 |
|
278 |
: |
|
279 |
(as_func_return () { |
|
280 |
(exit $1) |
|
281 |
} |
|
282 |
as_func_success () { |
|
283 |
as_func_return 0 |
|
284 |
} |
|
285 |
as_func_failure () { |
|
286 |
as_func_return 1 |
|
287 |
} |
|
288 |
as_func_ret_success () { |
|
289 |
return 0 |
|
290 |
} |
|
291 |
as_func_ret_failure () { |
|
292 |
return 1 |
|
293 |
} |
|
294 |
||
295 |
exitcode=0 |
|
296 |
if as_func_success; then |
|
297 |
: |
|
298 |
else |
|
299 |
exitcode=1 |
|
300 |
echo as_func_success failed. |
|
301 |
fi |
|
302 |
||
303 |
if as_func_failure; then |
|
304 |
exitcode=1 |
|
305 |
echo as_func_failure succeeded. |
|
306 |
fi |
|
307 |
||
308 |
if as_func_ret_success; then |
|
309 |
: |
|
310 |
else |
|
311 |
exitcode=1 |
|
312 |
echo as_func_ret_success failed. |
|
313 |
fi |
|
314 |
||
315 |
if as_func_ret_failure; then |
|
316 |
exitcode=1 |
|
317 |
echo as_func_ret_failure succeeded. |
|
318 |
fi |
|
319 |
||
320 |
if ( set x; as_func_ret_success y && test x = "$1" ); then |
|
321 |
: |
|
322 |
else |
|
323 |
exitcode=1 |
|
324 |
echo positional parameters were not saved. |
|
325 |
fi |
|
326 |
||
327 |
test $exitcode = 0) || { (exit 1); exit 1; } |
|
328 |
||
329 |
( |
|
330 |
as_lineno_1=$LINENO |
|
331 |
as_lineno_2=$LINENO |
|
332 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
333 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
|
334 |
||
335 |
_ASEOF |
|
336 |
}; then |
|
337 |
break |
|
338 |
fi |
|
339 |
||
340 |
fi |
|
341 |
||
342 |
done |
|
343 |
||
344 |
if test "x$CONFIG_SHELL" != x; then |
|
345 |
for as_var in BASH_ENV ENV |
|
346 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
347 |
done |
|
348 |
export CONFIG_SHELL |
|
349 |
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
|
350 |
fi |
|
351 |
||
352 |
||
353 |
if test $as_have_required = no; then |
|
354 |
echo This script requires a shell more modern than all the |
|
355 |
echo shells that I found on your system. Please install a |
|
356 |
echo modern shell, or manually run the script under such a |
|
357 |
echo shell if you do have one. |
|
358 |
{ (exit 1); exit 1; } |
|
359 |
fi |
|
360 |
||
361 |
||
362 |
fi |
|
363 |
||
364 |
fi |
|
365 |
||
366 |
||
367 |
||
368 |
(eval "as_func_return () { |
|
369 |
(exit \$1) |
|
370 |
} |
|
371 |
as_func_success () { |
|
372 |
as_func_return 0 |
|
373 |
} |
|
374 |
as_func_failure () { |
|
375 |
as_func_return 1 |
|
376 |
} |
|
377 |
as_func_ret_success () { |
|
378 |
return 0 |
|
379 |
} |
|
380 |
as_func_ret_failure () { |
|
381 |
return 1 |
|
382 |
} |
|
383 |
||
384 |
exitcode=0 |
|
385 |
if as_func_success; then |
|
386 |
: |
|
387 |
else |
|
388 |
exitcode=1 |
|
389 |
echo as_func_success failed. |
|
390 |
fi |
|
391 |
||
392 |
if as_func_failure; then |
|
393 |
exitcode=1 |
|
394 |
echo as_func_failure succeeded. |
|
395 |
fi |
|
396 |
||
397 |
if as_func_ret_success; then |
|
398 |
: |
|
399 |
else |
|
400 |
exitcode=1 |
|
401 |
echo as_func_ret_success failed. |
|
402 |
fi |
|
403 |
||
404 |
if as_func_ret_failure; then |
|
405 |
exitcode=1 |
|
406 |
echo as_func_ret_failure succeeded. |
|
407 |
fi |
|
408 |
||
409 |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
410 |
: |
|
411 |
else |
|
412 |
exitcode=1 |
|
413 |
echo positional parameters were not saved. |
|
414 |
fi |
|
415 |
||
416 |
test \$exitcode = 0") || { |
|
417 |
echo No shell found that supports shell functions. |
|
418 |
echo Please tell autoconf@gnu.org about your system, |
|
419 |
echo including any error possibly output before this |
|
420 |
echo message |
|
421 |
} |
|
422 |
||
423 |
||
424 |
||
425 |
as_lineno_1=$LINENO |
|
426 |
as_lineno_2=$LINENO |
|
427 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
428 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
|
1
by Ross Burton
Import upstream version 0.10 |
429 |
|
430 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
431 |
# uniformly replaced by the line number. The first 'sed' inserts a |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
432 |
# line-number line after each line using $LINENO; the second 'sed' |
433 |
# does the real work. The second script uses 'N' to pair each |
|
434 |
# line-number line with the line containing $LINENO, and appends |
|
435 |
# trailing '-' during substitution so that $LINENO is not a special |
|
436 |
# case at line end. |
|
1
by Ross Burton
Import upstream version 0.10 |
437 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
438 |
# scripts with optimization help from Paolo Bonzini. Blame Lee |
439 |
# E. McMahon (1931-1989) for sed's syntax. :-) |
|
440 |
sed -n ' |
|
441 |
p |
|
442 |
/[$]LINENO/= |
|
443 |
' <$as_myself | |
|
1
by Ross Burton
Import upstream version 0.10 |
444 |
sed ' |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
445 |
s/[$]LINENO.*/&-/ |
446 |
t lineno |
|
447 |
b |
|
448 |
:lineno |
|
1
by Ross Burton
Import upstream version 0.10 |
449 |
N |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
450 |
:loop |
451 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
1
by Ross Burton
Import upstream version 0.10 |
452 |
t loop |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
453 |
s/-\n.*// |
1
by Ross Burton
Import upstream version 0.10 |
454 |
' >$as_me.lineno && |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
455 |
chmod +x "$as_me.lineno" || |
1
by Ross Burton
Import upstream version 0.10 |
456 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 |
{ (exit 1); exit 1; }; } |
|
458 |
||
459 |
# Don't try to exec as it changes $[0], causing all sort of problems |
|
460 |
# (the dirname of $[0] is not the place where we might find the |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
461 |
# original and so on. Autoconf is especially sensitive to this). |
462 |
. "./$as_me.lineno" |
|
1
by Ross Burton
Import upstream version 0.10 |
463 |
# Exit status is that of the last command. |
464 |
exit |
|
465 |
} |
|
466 |
||
467 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
468 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 |
as_dirname=dirname |
|
470 |
else |
|
471 |
as_dirname=false |
|
472 |
fi |
|
473 |
||
474 |
ECHO_C= ECHO_N= ECHO_T= |
|
475 |
case `echo -n x` in |
|
476 |
-n*) |
|
477 |
case `echo 'x\c'` in |
|
478 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
479 |
*) ECHO_C='\c';; |
|
480 |
esac;; |
|
481 |
*) |
|
482 |
ECHO_N='-n';; |
|
1
by Ross Burton
Import upstream version 0.10 |
483 |
esac |
484 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
485 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
486 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
1
by Ross Burton
Import upstream version 0.10 |
487 |
as_expr=expr |
488 |
else |
|
489 |
as_expr=false |
|
490 |
fi |
|
491 |
||
492 |
rm -f conf$$ conf$$.exe conf$$.file |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
493 |
if test -d conf$$.dir; then |
494 |
rm -f conf$$.dir/conf$$.file |
|
495 |
else |
|
496 |
rm -f conf$$.dir |
|
497 |
mkdir conf$$.dir |
|
498 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
499 |
echo >conf$$.file |
500 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
501 |
as_ln_s='ln -s' |
502 |
# ... but there are two gotchas: |
|
503 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
504 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
505 |
# In both cases, we have to default to `cp -p'. |
|
506 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
1
by Ross Burton
Import upstream version 0.10 |
507 |
as_ln_s='cp -p' |
508 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
509 |
as_ln_s=ln |
|
510 |
else |
|
511 |
as_ln_s='cp -p' |
|
512 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
513 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 |
rmdir conf$$.dir 2>/dev/null |
|
1
by Ross Burton
Import upstream version 0.10 |
515 |
|
516 |
if mkdir -p . 2>/dev/null; then |
|
517 |
as_mkdir_p=: |
|
518 |
else |
|
519 |
test -d ./-p && rmdir ./-p |
|
520 |
as_mkdir_p=false |
|
521 |
fi |
|
522 |
||
1.2.1
by Ross Burton
Import upstream version 0.15 |
523 |
if test -x / >/dev/null 2>&1; then |
524 |
as_test_x='test -x' |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
525 |
else |
1.2.1
by Ross Burton
Import upstream version 0.15 |
526 |
if ls -dL / >/dev/null 2>&1; then |
527 |
as_ls_L_option=L |
|
528 |
else |
|
529 |
as_ls_L_option= |
|
530 |
fi |
|
531 |
as_test_x=' |
|
532 |
eval sh -c '\'' |
|
533 |
if test -d "$1"; then |
|
534 |
test -d "$1/."; |
|
535 |
else |
|
536 |
case $1 in |
|
537 |
-*)set "./$1";; |
|
538 |
esac; |
|
539 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
540 |
???[sx]*):;;*)false;;esac;fi |
|
541 |
'\'' sh |
|
542 |
' |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
543 |
fi |
1.2.1
by Ross Burton
Import upstream version 0.15 |
544 |
as_executable_p=$as_test_x |
1
by Ross Burton
Import upstream version 0.10 |
545 |
|
546 |
# Sed expression to map a string onto a valid CPP name. |
|
547 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
548 |
||
549 |
# Sed expression to map a string onto a valid variable name. |
|
550 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
551 |
||
552 |
||
553 |
||
554 |
||
555 |
# Check that we are running under the correct shell. |
|
556 |
SHELL=${CONFIG_SHELL-/bin/sh} |
|
557 |
||
558 |
case X$ECHO in |
|
559 |
X*--fallback-echo) |
|
560 |
# Remove one level of quotation (which was required for Make). |
|
561 |
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
|
562 |
;; |
|
563 |
esac |
|
564 |
||
565 |
echo=${ECHO-echo} |
|
566 |
if test "X$1" = X--no-reexec; then |
|
567 |
# Discard the --no-reexec flag, and continue. |
|
568 |
shift |
|
569 |
elif test "X$1" = X--fallback-echo; then |
|
570 |
# Avoid inline document here, it may be left over |
|
571 |
: |
|
572 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
|
573 |
# Yippee, $echo works! |
|
574 |
: |
|
575 |
else |
|
576 |
# Restart under the correct shell. |
|
577 |
exec $SHELL "$0" --no-reexec ${1+"$@"} |
|
578 |
fi |
|
579 |
||
580 |
if test "X$1" = X--fallback-echo; then |
|
581 |
# used as fallback echo |
|
582 |
shift |
|
583 |
cat <<EOF |
|
584 |
$* |
|
585 |
EOF |
|
586 |
exit 0 |
|
587 |
fi |
|
588 |
||
589 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
|
590 |
# if CDPATH is set. |
|
591 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
592 |
||
593 |
if test -z "$ECHO"; then |
|
594 |
if test "X${echo_test_string+set}" != Xset; then |
|
595 |
# find a string as large as possible, as long as the shell can cope with it |
|
596 |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
|
597 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
598 |
if (echo_test_string=`eval $cmd`) 2>/dev/null && |
599 |
echo_test_string=`eval $cmd` && |
|
1
by Ross Burton
Import upstream version 0.10 |
600 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
601 |
then |
|
602 |
break |
|
603 |
fi |
|
604 |
done |
|
605 |
fi |
|
606 |
||
607 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
608 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
609 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
610 |
: |
|
611 |
else |
|
612 |
# The Solaris, AIX, and Digital Unix default echo programs unquote |
|
613 |
# backslashes. This makes it impossible to quote backslashes using |
|
614 |
# echo "$something" | sed 's/\\/\\\\/g' |
|
615 |
# |
|
616 |
# So, first we look for a working echo in the user's PATH. |
|
617 |
||
618 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
619 |
for dir in $PATH /usr/ucb; do |
|
620 |
IFS="$lt_save_ifs" |
|
621 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
|
622 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
|
623 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
|
624 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
625 |
echo="$dir/echo" |
|
626 |
break |
|
627 |
fi |
|
628 |
done |
|
629 |
IFS="$lt_save_ifs" |
|
630 |
||
631 |
if test "X$echo" = Xecho; then |
|
632 |
# We didn't find a better echo, so look for alternatives. |
|
633 |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
|
634 |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
|
635 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
636 |
# This shell has a builtin print -r that does the trick. |
|
637 |
echo='print -r' |
|
638 |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
|
639 |
test "X$CONFIG_SHELL" != X/bin/ksh; then |
|
640 |
# If we have ksh, try running configure again with it. |
|
641 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|
642 |
export ORIGINAL_CONFIG_SHELL |
|
643 |
CONFIG_SHELL=/bin/ksh |
|
644 |
export CONFIG_SHELL |
|
645 |
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
|
646 |
else |
|
647 |
# Try using printf. |
|
648 |
echo='printf %s\n' |
|
649 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
650 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
651 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
652 |
# Cool, printf works |
|
653 |
: |
|
654 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
655 |
test "X$echo_testing_string" = 'X\t' && |
|
656 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
657 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
658 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
|
659 |
export CONFIG_SHELL |
|
660 |
SHELL="$CONFIG_SHELL" |
|
661 |
export SHELL |
|
662 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
|
663 |
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
664 |
test "X$echo_testing_string" = 'X\t' && |
|
665 |
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
666 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
667 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
|
668 |
else |
|
669 |
# maybe with a smaller string... |
|
670 |
prev=: |
|
671 |
||
672 |
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
|
673 |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
|
674 |
then |
|
675 |
break |
|
676 |
fi |
|
677 |
prev="$cmd" |
|
678 |
done |
|
679 |
||
680 |
if test "$prev" != 'sed 50q "$0"'; then |
|
681 |
echo_test_string=`eval $prev` |
|
682 |
export echo_test_string |
|
683 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
|
684 |
else |
|
685 |
# Oops. We lost completely, so just stick with echo. |
|
686 |
echo=echo |
|
687 |
fi |
|
688 |
fi |
|
689 |
fi |
|
690 |
fi |
|
691 |
fi |
|
692 |
fi |
|
693 |
||
694 |
# Copy echo and quote the copy suitably for passing to libtool from |
|
695 |
# the Makefile, instead of quoting the original, which is used later. |
|
696 |
ECHO=$echo |
|
697 |
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
|
698 |
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
|
699 |
fi |
|
700 |
||
701 |
||
702 |
||
703 |
||
704 |
tagnames=${tagnames+${tagnames},}CXX |
|
705 |
||
706 |
tagnames=${tagnames+${tagnames},}F77 |
|
707 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
708 |
exec 7<&0 </dev/null 6>&1 |
709 |
||
1
by Ross Burton
Import upstream version 0.10 |
710 |
# Name of the host. |
711 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
|
712 |
# so uname gets run too. |
|
713 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|
714 |
||
715 |
# |
|
716 |
# Initializations. |
|
717 |
# |
|
718 |
ac_default_prefix=/usr/local |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
719 |
ac_clean_files= |
1
by Ross Burton
Import upstream version 0.10 |
720 |
ac_config_libobj_dir=. |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
721 |
LIBOBJS= |
1
by Ross Burton
Import upstream version 0.10 |
722 |
cross_compiling=no |
723 |
subdirs= |
|
724 |
MFLAGS= |
|
725 |
MAKEFLAGS= |
|
726 |
SHELL=${CONFIG_SHELL-/bin/sh} |
|
727 |
||
728 |
# Identity of this package. |
|
729 |
PACKAGE_NAME='desktop-file-utils' |
|
730 |
PACKAGE_TARNAME='desktop-file-utils' |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
731 |
PACKAGE_VERSION='0.15' |
732 |
PACKAGE_STRING='desktop-file-utils 0.15' |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
733 |
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=desktop-file-utils' |
1
by Ross Burton
Import upstream version 0.10 |
734 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
735 |
ac_unique_file="src/validate.h" |
1
by Ross Burton
Import upstream version 0.10 |
736 |
# Factoring default headers for most tests. |
737 |
ac_includes_default="\ |
|
738 |
#include <stdio.h> |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
739 |
#ifdef HAVE_SYS_TYPES_H |
1
by Ross Burton
Import upstream version 0.10 |
740 |
# include <sys/types.h> |
741 |
#endif |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
742 |
#ifdef HAVE_SYS_STAT_H |
1
by Ross Burton
Import upstream version 0.10 |
743 |
# include <sys/stat.h> |
744 |
#endif |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
745 |
#ifdef STDC_HEADERS |
1
by Ross Burton
Import upstream version 0.10 |
746 |
# include <stdlib.h> |
747 |
# include <stddef.h> |
|
748 |
#else |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
749 |
# ifdef HAVE_STDLIB_H |
1
by Ross Burton
Import upstream version 0.10 |
750 |
# include <stdlib.h> |
751 |
# endif |
|
752 |
#endif |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
753 |
#ifdef HAVE_STRING_H |
754 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
1
by Ross Burton
Import upstream version 0.10 |
755 |
# include <memory.h> |
756 |
# endif |
|
757 |
# include <string.h> |
|
758 |
#endif |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
759 |
#ifdef HAVE_STRINGS_H |
1
by Ross Burton
Import upstream version 0.10 |
760 |
# include <strings.h> |
761 |
#endif |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
762 |
#ifdef HAVE_INTTYPES_H |
1
by Ross Burton
Import upstream version 0.10 |
763 |
# include <inttypes.h> |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
764 |
#endif |
1.2.1
by Ross Burton
Import upstream version 0.15 |
765 |
#ifdef HAVE_STDINT_H |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
766 |
# include <stdint.h> |
1.2.1
by Ross Burton
Import upstream version 0.15 |
767 |
#endif |
768 |
#ifdef HAVE_UNISTD_H |
|
1
by Ross Burton
Import upstream version 0.10 |
769 |
# include <unistd.h> |
770 |
#endif" |
|
771 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
772 |
ac_subst_vars='SHELL |
773 |
PATH_SEPARATOR |
|
774 |
PACKAGE_NAME |
|
775 |
PACKAGE_TARNAME |
|
776 |
PACKAGE_VERSION |
|
777 |
PACKAGE_STRING |
|
778 |
PACKAGE_BUGREPORT |
|
779 |
exec_prefix |
|
780 |
prefix |
|
781 |
program_transform_name |
|
782 |
bindir |
|
783 |
sbindir |
|
784 |
libexecdir |
|
785 |
datarootdir |
|
786 |
datadir |
|
787 |
sysconfdir |
|
788 |
sharedstatedir |
|
789 |
localstatedir |
|
790 |
includedir |
|
791 |
oldincludedir |
|
792 |
docdir |
|
793 |
infodir |
|
794 |
htmldir |
|
795 |
dvidir |
|
796 |
pdfdir |
|
797 |
psdir |
|
798 |
libdir |
|
799 |
localedir |
|
800 |
mandir |
|
801 |
DEFS |
|
802 |
ECHO_C |
|
803 |
ECHO_N |
|
804 |
ECHO_T |
|
805 |
LIBS |
|
806 |
build_alias |
|
807 |
host_alias |
|
808 |
target_alias |
|
809 |
INSTALL_PROGRAM |
|
810 |
INSTALL_SCRIPT |
|
811 |
INSTALL_DATA |
|
812 |
CYGPATH_W |
|
813 |
PACKAGE |
|
814 |
VERSION |
|
815 |
ACLOCAL |
|
816 |
AUTOCONF |
|
817 |
AUTOMAKE |
|
818 |
AUTOHEADER |
|
819 |
MAKEINFO |
|
820 |
AMTAR |
|
821 |
install_sh |
|
822 |
STRIP |
|
823 |
INSTALL_STRIP_PROGRAM |
|
824 |
AWK |
|
825 |
SET_MAKE |
|
826 |
am__leading_dot |
|
827 |
ACLOCAL_AMFLAGS |
|
828 |
MAINTAINER_MODE_TRUE |
|
829 |
MAINTAINER_MODE_FALSE |
|
830 |
MAINT |
|
831 |
CC |
|
832 |
CFLAGS |
|
833 |
LDFLAGS |
|
834 |
CPPFLAGS |
|
835 |
ac_ct_CC |
|
836 |
EXEEXT |
|
837 |
OBJEXT |
|
838 |
DEPDIR |
|
839 |
am__include |
|
840 |
am__quote |
|
841 |
AMDEP_TRUE |
|
842 |
AMDEP_FALSE |
|
843 |
AMDEPBACKSLASH |
|
844 |
CCDEPMODE |
|
845 |
am__fastdepCC_TRUE |
|
846 |
am__fastdepCC_FALSE |
|
847 |
CPP |
|
848 |
GREP |
|
849 |
EGREP |
|
850 |
build |
|
851 |
build_cpu |
|
852 |
build_vendor |
|
853 |
build_os |
|
854 |
host |
|
855 |
host_cpu |
|
856 |
host_vendor |
|
857 |
host_os |
|
858 |
LN_S |
|
859 |
ECHO |
|
860 |
AR |
|
861 |
RANLIB |
|
862 |
CXX |
|
863 |
CXXFLAGS |
|
864 |
ac_ct_CXX |
|
865 |
CXXDEPMODE |
|
866 |
am__fastdepCXX_TRUE |
|
867 |
am__fastdepCXX_FALSE |
|
868 |
CXXCPP |
|
869 |
F77 |
|
870 |
FFLAGS |
|
871 |
ac_ct_F77 |
|
872 |
LIBTOOL |
|
873 |
PKG_CONFIG |
|
874 |
DESKTOP_FILE_UTILS_CFLAGS |
|
875 |
DESKTOP_FILE_UTILS_LIBS |
|
876 |
EMACS |
|
877 |
lispdir |
|
878 |
LIBOBJS |
|
879 |
LTLIBOBJS' |
|
1
by Ross Burton
Import upstream version 0.10 |
880 |
ac_subst_files='' |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
881 |
ac_precious_vars='build_alias |
882 |
host_alias |
|
883 |
target_alias |
|
884 |
CC |
|
885 |
CFLAGS |
|
886 |
LDFLAGS |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
887 |
LIBS |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
888 |
CPPFLAGS |
889 |
CPP |
|
890 |
CXX |
|
891 |
CXXFLAGS |
|
892 |
CCC |
|
893 |
CXXCPP |
|
894 |
F77 |
|
895 |
FFLAGS |
|
896 |
PKG_CONFIG |
|
897 |
DESKTOP_FILE_UTILS_CFLAGS |
|
898 |
DESKTOP_FILE_UTILS_LIBS' |
|
899 |
||
1
by Ross Burton
Import upstream version 0.10 |
900 |
|
901 |
# Initialize some variables set by options. |
|
902 |
ac_init_help= |
|
903 |
ac_init_version=false |
|
904 |
# The variables have the same names as the options, with |
|
905 |
# dashes changed to underlines. |
|
906 |
cache_file=/dev/null |
|
907 |
exec_prefix=NONE |
|
908 |
no_create= |
|
909 |
no_recursion= |
|
910 |
prefix=NONE |
|
911 |
program_prefix=NONE |
|
912 |
program_suffix=NONE |
|
913 |
program_transform_name=s,x,x, |
|
914 |
silent= |
|
915 |
site= |
|
916 |
srcdir= |
|
917 |
verbose= |
|
918 |
x_includes=NONE |
|
919 |
x_libraries=NONE |
|
920 |
||
921 |
# Installation directory options. |
|
922 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
|
923 |
# and all the variables that are supposed to be based on exec_prefix |
|
924 |
# by default will actually change. |
|
925 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
926 |
# (The list follows the same order as the GNU Coding Standards.) |
1
by Ross Burton
Import upstream version 0.10 |
927 |
bindir='${exec_prefix}/bin' |
928 |
sbindir='${exec_prefix}/sbin' |
|
929 |
libexecdir='${exec_prefix}/libexec' |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
930 |
datarootdir='${prefix}/share' |
931 |
datadir='${datarootdir}' |
|
1
by Ross Burton
Import upstream version 0.10 |
932 |
sysconfdir='${prefix}/etc' |
933 |
sharedstatedir='${prefix}/com' |
|
934 |
localstatedir='${prefix}/var' |
|
935 |
includedir='${prefix}/include' |
|
936 |
oldincludedir='/usr/include' |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
937 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
938 |
infodir='${datarootdir}/info' |
|
939 |
htmldir='${docdir}' |
|
940 |
dvidir='${docdir}' |
|
941 |
pdfdir='${docdir}' |
|
942 |
psdir='${docdir}' |
|
943 |
libdir='${exec_prefix}/lib' |
|
944 |
localedir='${datarootdir}/locale' |
|
945 |
mandir='${datarootdir}/man' |
|
1
by Ross Burton
Import upstream version 0.10 |
946 |
|
947 |
ac_prev= |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
948 |
ac_dashdash= |
1
by Ross Burton
Import upstream version 0.10 |
949 |
for ac_option |
950 |
do |
|
951 |
# If the previous option needs an argument, assign it. |
|
952 |
if test -n "$ac_prev"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
953 |
eval $ac_prev=\$ac_option |
1
by Ross Burton
Import upstream version 0.10 |
954 |
ac_prev= |
955 |
continue |
|
956 |
fi |
|
957 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
958 |
case $ac_option in |
959 |
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
960 |
*) ac_optarg=yes ;; |
|
961 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
962 |
|
963 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
|
964 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
965 |
case $ac_dashdash$ac_option in |
966 |
--) |
|
967 |
ac_dashdash=yes ;; |
|
1
by Ross Burton
Import upstream version 0.10 |
968 |
|
969 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
|
970 |
ac_prev=bindir ;; |
|
971 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|
972 |
bindir=$ac_optarg ;; |
|
973 |
||
974 |
-build | --build | --buil | --bui | --bu) |
|
975 |
ac_prev=build_alias ;; |
|
976 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|
977 |
build_alias=$ac_optarg ;; |
|
978 |
||
979 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
980 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
981 |
ac_prev=cache_file ;; |
|
982 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
983 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
984 |
cache_file=$ac_optarg ;; |
|
985 |
||
986 |
--config-cache | -C) |
|
987 |
cache_file=config.cache ;; |
|
988 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
989 |
-datadir | --datadir | --datadi | --datad) |
1
by Ross Burton
Import upstream version 0.10 |
990 |
ac_prev=datadir ;; |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
991 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
1
by Ross Burton
Import upstream version 0.10 |
992 |
datadir=$ac_optarg ;; |
993 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
994 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
995 |
| --dataroo | --dataro | --datar) |
|
996 |
ac_prev=datarootdir ;; |
|
997 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|
998 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|
999 |
datarootdir=$ac_optarg ;; |
|
1000 |
||
1
by Ross Burton
Import upstream version 0.10 |
1001 |
-disable-* | --disable-*) |
1002 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|
1003 |
# Reject names that are not valid shell variable names. |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
1004 |
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1
by Ross Burton
Import upstream version 0.10 |
1005 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1006 |
{ (exit 1); exit 1; }; } |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
1007 |
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1008 |
eval enable_$ac_feature=no ;; |
1009 |
||
1010 |
-docdir | --docdir | --docdi | --doc | --do) |
|
1011 |
ac_prev=docdir ;; |
|
1012 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|
1013 |
docdir=$ac_optarg ;; |
|
1014 |
||
1015 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|
1016 |
ac_prev=dvidir ;; |
|
1017 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|
1018 |
dvidir=$ac_optarg ;; |
|
1
by Ross Burton
Import upstream version 0.10 |
1019 |
|
1020 |
-enable-* | --enable-*) |
|
1021 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|
1022 |
# Reject names that are not valid shell variable names. |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
1023 |
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1
by Ross Burton
Import upstream version 0.10 |
1024 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1025 |
{ (exit 1); exit 1; }; } |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
1026 |
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1027 |
eval enable_$ac_feature=\$ac_optarg ;; |
1
by Ross Burton
Import upstream version 0.10 |
1028 |
|
1029 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
1030 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
1031 |
| --exec | --exe | --ex) |
|
1032 |
ac_prev=exec_prefix ;; |
|
1033 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
1034 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
1035 |
| --exec=* | --exe=* | --ex=*) |
|
1036 |
exec_prefix=$ac_optarg ;; |
|
1037 |
||
1038 |
-gas | --gas | --ga | --g) |
|
1039 |
# Obsolete; use --with-gas. |
|
1040 |
with_gas=yes ;; |
|
1041 |
||
1042 |
-help | --help | --hel | --he | -h) |
|
1043 |
ac_init_help=long ;; |
|
1044 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|
1045 |
ac_init_help=recursive ;; |
|
1046 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|
1047 |
ac_init_help=short ;; |
|
1048 |
||
1049 |
-host | --host | --hos | --ho) |
|
1050 |
ac_prev=host_alias ;; |
|
1051 |
-host=* | --host=* | --hos=* | --ho=*) |
|
1052 |
host_alias=$ac_optarg ;; |
|
1053 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1054 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1055 |
ac_prev=htmldir ;; |
|
1056 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|
1057 |
| --ht=*) |
|
1058 |
htmldir=$ac_optarg ;; |
|
1059 |
||
1
by Ross Burton
Import upstream version 0.10 |
1060 |
-includedir | --includedir | --includedi | --included | --include \ |
1061 |
| --includ | --inclu | --incl | --inc) |
|
1062 |
ac_prev=includedir ;; |
|
1063 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|
1064 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
|
1065 |
includedir=$ac_optarg ;; |
|
1066 |
||
1067 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
|
1068 |
ac_prev=infodir ;; |
|
1069 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|
1070 |
infodir=$ac_optarg ;; |
|
1071 |
||
1072 |
-libdir | --libdir | --libdi | --libd) |
|
1073 |
ac_prev=libdir ;; |
|
1074 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
|
1075 |
libdir=$ac_optarg ;; |
|
1076 |
||
1077 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|
1078 |
| --libexe | --libex | --libe) |
|
1079 |
ac_prev=libexecdir ;; |
|
1080 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|
1081 |
| --libexe=* | --libex=* | --libe=*) |
|
1082 |
libexecdir=$ac_optarg ;; |
|
1083 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1084 |
-localedir | --localedir | --localedi | --localed | --locale) |
1085 |
ac_prev=localedir ;; |
|
1086 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|
1087 |
localedir=$ac_optarg ;; |
|
1088 |
||
1
by Ross Burton
Import upstream version 0.10 |
1089 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1090 |
| --localstate | --localstat | --localsta | --localst | --locals) |
1
by Ross Burton
Import upstream version 0.10 |
1091 |
ac_prev=localstatedir ;; |
1092 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1093 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1
by Ross Burton
Import upstream version 0.10 |
1094 |
localstatedir=$ac_optarg ;; |
1095 |
||
1096 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|
1097 |
ac_prev=mandir ;; |
|
1098 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|
1099 |
mandir=$ac_optarg ;; |
|
1100 |
||
1101 |
-nfp | --nfp | --nf) |
|
1102 |
# Obsolete; use --without-fp. |
|
1103 |
with_fp=no ;; |
|
1104 |
||
1105 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
1106 |
| --no-cr | --no-c | -n) |
|
1107 |
no_create=yes ;; |
|
1108 |
||
1109 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
1110 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
1111 |
no_recursion=yes ;; |
|
1112 |
||
1113 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|
1114 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|
1115 |
| --oldin | --oldi | --old | --ol | --o) |
|
1116 |
ac_prev=oldincludedir ;; |
|
1117 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|
1118 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|
1119 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|
1120 |
oldincludedir=$ac_optarg ;; |
|
1121 |
||
1122 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
1123 |
ac_prev=prefix ;; |
|
1124 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
1125 |
prefix=$ac_optarg ;; |
|
1126 |
||
1127 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
1128 |
| --program-pre | --program-pr | --program-p) |
|
1129 |
ac_prev=program_prefix ;; |
|
1130 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
1131 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
1132 |
program_prefix=$ac_optarg ;; |
|
1133 |
||
1134 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
1135 |
| --program-suf | --program-su | --program-s) |
|
1136 |
ac_prev=program_suffix ;; |
|
1137 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
1138 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
1139 |
program_suffix=$ac_optarg ;; |
|
1140 |
||
1141 |
-program-transform-name | --program-transform-name \ |
|
1142 |
| --program-transform-nam | --program-transform-na \ |
|
1143 |
| --program-transform-n | --program-transform- \ |
|
1144 |
| --program-transform | --program-transfor \ |
|
1145 |
| --program-transfo | --program-transf \ |
|
1146 |
| --program-trans | --program-tran \ |
|
1147 |
| --progr-tra | --program-tr | --program-t) |
|
1148 |
ac_prev=program_transform_name ;; |
|
1149 |
-program-transform-name=* | --program-transform-name=* \ |
|
1150 |
| --program-transform-nam=* | --program-transform-na=* \ |
|
1151 |
| --program-transform-n=* | --program-transform-=* \ |
|
1152 |
| --program-transform=* | --program-transfor=* \ |
|
1153 |
| --program-transfo=* | --program-transf=* \ |
|
1154 |
| --program-trans=* | --program-tran=* \ |
|
1155 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
|
1156 |
program_transform_name=$ac_optarg ;; |
|
1157 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1158 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1159 |
ac_prev=pdfdir ;; |
|
1160 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|
1161 |
pdfdir=$ac_optarg ;; |
|
1162 |
||
1163 |
-psdir | --psdir | --psdi | --psd | --ps) |
|
1164 |
ac_prev=psdir ;; |
|
1165 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|
1166 |
psdir=$ac_optarg ;; |
|
1167 |
||
1
by Ross Burton
Import upstream version 0.10 |
1168 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1169 |
| -silent | --silent | --silen | --sile | --sil) |
|
1170 |
silent=yes ;; |
|
1171 |
||
1172 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|
1173 |
ac_prev=sbindir ;; |
|
1174 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|
1175 |
| --sbi=* | --sb=*) |
|
1176 |
sbindir=$ac_optarg ;; |
|
1177 |
||
1178 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|
1179 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|
1180 |
| --sharedst | --shareds | --shared | --share | --shar \ |
|
1181 |
| --sha | --sh) |
|
1182 |
ac_prev=sharedstatedir ;; |
|
1183 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|
1184 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|
1185 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|
1186 |
| --sha=* | --sh=*) |
|
1187 |
sharedstatedir=$ac_optarg ;; |
|
1188 |
||
1189 |
-site | --site | --sit) |
|
1190 |
ac_prev=site ;; |
|
1191 |
-site=* | --site=* | --sit=*) |
|
1192 |
site=$ac_optarg ;; |
|
1193 |
||
1194 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
1195 |
ac_prev=srcdir ;; |
|
1196 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
1197 |
srcdir=$ac_optarg ;; |
|
1198 |
||
1199 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|
1200 |
| --syscon | --sysco | --sysc | --sys | --sy) |
|
1201 |
ac_prev=sysconfdir ;; |
|
1202 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|
1203 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|
1204 |
sysconfdir=$ac_optarg ;; |
|
1205 |
||
1206 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
|
1207 |
ac_prev=target_alias ;; |
|
1208 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|
1209 |
target_alias=$ac_optarg ;; |
|
1210 |
||
1211 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
1212 |
verbose=yes ;; |
|
1213 |
||
1214 |
-version | --version | --versio | --versi | --vers | -V) |
|
1215 |
ac_init_version=: ;; |
|
1216 |
||
1217 |
-with-* | --with-*) |
|
1218 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|
1219 |
# Reject names that are not valid shell variable names. |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
1220 |
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1
by Ross Burton
Import upstream version 0.10 |
1221 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
1222 |
{ (exit 1); exit 1; }; } |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
1223 |
ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1224 |
eval with_$ac_package=\$ac_optarg ;; |
1
by Ross Burton
Import upstream version 0.10 |
1225 |
|
1226 |
-without-* | --without-*) |
|
1227 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|
1228 |
# Reject names that are not valid shell variable names. |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
1229 |
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1
by Ross Burton
Import upstream version 0.10 |
1230 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
1231 |
{ (exit 1); exit 1; }; } |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
1232 |
ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1233 |
eval with_$ac_package=no ;; |
1
by Ross Burton
Import upstream version 0.10 |
1234 |
|
1235 |
--x) |
|
1236 |
# Obsolete; use --with-x. |
|
1237 |
with_x=yes ;; |
|
1238 |
||
1239 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
1240 |
| --x-incl | --x-inc | --x-in | --x-i) |
|
1241 |
ac_prev=x_includes ;; |
|
1242 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
1243 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
1244 |
x_includes=$ac_optarg ;; |
|
1245 |
||
1246 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
1247 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
1248 |
ac_prev=x_libraries ;; |
|
1249 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
1250 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
1251 |
x_libraries=$ac_optarg ;; |
|
1252 |
||
1253 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
|
1254 |
Try \`$0 --help' for more information." >&2 |
|
1255 |
{ (exit 1); exit 1; }; } |
|
1256 |
;; |
|
1257 |
||
1258 |
*=*) |
|
1259 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
1260 |
# Reject names that are not valid shell variable names. |
|
1261 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
|
1262 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
|
1263 |
{ (exit 1); exit 1; }; } |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1264 |
eval $ac_envvar=\$ac_optarg |
1
by Ross Burton
Import upstream version 0.10 |
1265 |
export $ac_envvar ;; |
1266 |
||
1267 |
*) |
|
1268 |
# FIXME: should be removed in autoconf 3.0. |
|
1269 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|
1270 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1271 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|
1272 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
|
1273 |
;; |
|
1274 |
||
1275 |
esac |
|
1276 |
done |
|
1277 |
||
1278 |
if test -n "$ac_prev"; then |
|
1279 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|
1280 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
|
1281 |
{ (exit 1); exit 1; }; } |
|
1282 |
fi |
|
1283 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1284 |
# Be sure to have absolute directory names. |
1285 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|
1286 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
|
1287 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
|
1288 |
libdir localedir mandir |
|
1289 |
do |
|
1290 |
eval ac_val=\$$ac_var |
|
1291 |
case $ac_val in |
|
1292 |
[\\/$]* | ?:[\\/]* ) continue;; |
|
1293 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|
1294 |
esac |
|
1295 |
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
|
1296 |
{ (exit 1); exit 1; }; } |
|
1
by Ross Burton
Import upstream version 0.10 |
1297 |
done |
1298 |
||
1299 |
# There might be people who depend on the old broken behavior: `$host' |
|
1300 |
# used to hold the argument of --host etc. |
|
1301 |
# FIXME: To remove some day. |
|
1302 |
build=$build_alias |
|
1303 |
host=$host_alias |
|
1304 |
target=$target_alias |
|
1305 |
||
1306 |
# FIXME: To remove some day. |
|
1307 |
if test "x$host_alias" != x; then |
|
1308 |
if test "x$build_alias" = x; then |
|
1309 |
cross_compiling=maybe |
|
1310 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
|
1311 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
|
1312 |
elif test "x$build_alias" != "x$host_alias"; then |
|
1313 |
cross_compiling=yes |
|
1314 |
fi |
|
1315 |
fi |
|
1316 |
||
1317 |
ac_tool_prefix= |
|
1318 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
1319 |
||
1320 |
test "$silent" = yes && exec 6>/dev/null |
|
1321 |
||
1322 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1323 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1324 |
ac_ls_di=`ls -di .` && |
|
1325 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|
1326 |
{ echo "$as_me: error: Working directory cannot be determined" >&2 |
|
1327 |
{ (exit 1); exit 1; }; } |
|
1328 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|
1329 |
{ echo "$as_me: error: pwd does not report name of working directory" >&2 |
|
1330 |
{ (exit 1); exit 1; }; } |
|
1331 |
||
1332 |
||
1
by Ross Burton
Import upstream version 0.10 |
1333 |
# Find the source files, if location was not specified. |
1334 |
if test -z "$srcdir"; then |
|
1335 |
ac_srcdir_defaulted=yes |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1336 |
# Try the directory containing this script, then the parent directory. |
1337 |
ac_confdir=`$as_dirname -- "$0" || |
|
1
by Ross Burton
Import upstream version 0.10 |
1338 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1339 |
X"$0" : 'X\(//\)[^/]' \| \ |
|
1340 |
X"$0" : 'X\(//\)$' \| \ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1341 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1
by Ross Burton
Import upstream version 0.10 |
1342 |
echo X"$0" | |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1343 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1344 |
s//\1/ |
|
1345 |
q |
|
1346 |
} |
|
1347 |
/^X\(\/\/\)[^/].*/{ |
|
1348 |
s//\1/ |
|
1349 |
q |
|
1350 |
} |
|
1351 |
/^X\(\/\/\)$/{ |
|
1352 |
s//\1/ |
|
1353 |
q |
|
1354 |
} |
|
1355 |
/^X\(\/\).*/{ |
|
1356 |
s//\1/ |
|
1357 |
q |
|
1358 |
} |
|
1359 |
s/.*/./; q'` |
|
1
by Ross Burton
Import upstream version 0.10 |
1360 |
srcdir=$ac_confdir |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1361 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1
by Ross Burton
Import upstream version 0.10 |
1362 |
srcdir=.. |
1363 |
fi |
|
1364 |
else |
|
1365 |
ac_srcdir_defaulted=no |
|
1366 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1367 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1368 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
|
1369 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
|
1370 |
{ (exit 1); exit 1; }; } |
|
1371 |
fi |
|
1372 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|
1373 |
ac_abs_confdir=`( |
|
1374 |
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
|
1375 |
{ (exit 1); exit 1; }; } |
|
1376 |
pwd)` |
|
1377 |
# When building in place, set srcdir=. |
|
1378 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
|
1379 |
srcdir=. |
|
1380 |
fi |
|
1381 |
# Remove unnecessary trailing slashes from srcdir. |
|
1382 |
# Double slashes in file names in object file debugging info |
|
1383 |
# mess up M-x gdb in Emacs. |
|
1384 |
case $srcdir in |
|
1385 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|
1386 |
esac |
|
1387 |
for ac_var in $ac_precious_vars; do |
|
1388 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
|
1389 |
eval ac_env_${ac_var}_value=\$${ac_var} |
|
1390 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
|
1391 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
|
1392 |
done |
|
1
by Ross Burton
Import upstream version 0.10 |
1393 |
|
1394 |
# |
|
1395 |
# Report the --help message. |
|
1396 |
# |
|
1397 |
if test "$ac_init_help" = "long"; then |
|
1398 |
# Omit some internal or obsolete options to make the list less imposing. |
|
1399 |
# This message is too long to be a string in the A/UX 3.1 sh. |
|
1400 |
cat <<_ACEOF |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
1401 |
\`configure' configures desktop-file-utils 0.15 to adapt to many kinds of systems. |
1
by Ross Burton
Import upstream version 0.10 |
1402 |
|
1403 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
|
1404 |
||
1405 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
1406 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
|
1407 |
||
1408 |
Defaults for the options are specified in brackets. |
|
1409 |
||
1410 |
Configuration: |
|
1411 |
-h, --help display this help and exit |
|
1412 |
--help=short display options specific to this package |
|
1413 |
--help=recursive display the short help of all the included packages |
|
1414 |
-V, --version display version information and exit |
|
1415 |
-q, --quiet, --silent do not print \`checking...' messages |
|
1416 |
--cache-file=FILE cache test results in FILE [disabled] |
|
1417 |
-C, --config-cache alias for \`--cache-file=config.cache' |
|
1418 |
-n, --no-create do not create output files |
|
1419 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
1420 |
||
1421 |
Installation directories: |
|
1422 |
--prefix=PREFIX install architecture-independent files in PREFIX |
|
1423 |
[$ac_default_prefix] |
|
1424 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
1425 |
[PREFIX] |
|
1426 |
||
1427 |
By default, \`make install' will install all the files in |
|
1428 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
1429 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
1430 |
for instance \`--prefix=\$HOME'. |
|
1431 |
||
1432 |
For better control, use the options below. |
|
1433 |
||
1434 |
Fine tuning of the installation directories: |
|
1435 |
--bindir=DIR user executables [EPREFIX/bin] |
|
1436 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
|
1437 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
|
1438 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
1439 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
1440 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
1441 |
--libdir=DIR object code libraries [EPREFIX/lib] |
|
1442 |
--includedir=DIR C header files [PREFIX/include] |
|
1443 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1444 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1445 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|
1446 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
|
1447 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|
1448 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
|
1449 |
--docdir=DIR documentation root [DATAROOTDIR/doc/desktop-file-utils] |
|
1450 |
--htmldir=DIR html documentation [DOCDIR] |
|
1451 |
--dvidir=DIR dvi documentation [DOCDIR] |
|
1452 |
--pdfdir=DIR pdf documentation [DOCDIR] |
|
1453 |
--psdir=DIR ps documentation [DOCDIR] |
|
1
by Ross Burton
Import upstream version 0.10 |
1454 |
_ACEOF |
1455 |
||
1456 |
cat <<\_ACEOF |
|
1457 |
||
1458 |
Program names: |
|
1459 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
|
1460 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
|
1461 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
|
1462 |
||
1463 |
System types: |
|
1464 |
--build=BUILD configure for building on BUILD [guessed] |
|
1465 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
1466 |
_ACEOF |
|
1467 |
fi |
|
1468 |
||
1469 |
if test -n "$ac_init_help"; then |
|
1470 |
case $ac_init_help in |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
1471 |
short | recursive ) echo "Configuration of desktop-file-utils 0.15:";; |
1
by Ross Burton
Import upstream version 0.10 |
1472 |
esac |
1473 |
cat <<\_ACEOF |
|
1474 |
||
1475 |
Optional Features: |
|
1476 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
1477 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1478 |
--enable-maintainer-mode enable make rules and dependencies not useful |
1479 |
(and sometimes confusing) to the casual installer |
|
1480 |
--disable-dependency-tracking Speeds up one-time builds |
|
1481 |
--enable-dependency-tracking Do not reject slow dependency extractors |
|
1482 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
|
1483 |
--enable-static[=PKGS] build static libraries [default=yes] |
|
1
by Ross Burton
Import upstream version 0.10 |
1484 |
--enable-fast-install[=PKGS] |
1485 |
optimize for fast installation [default=yes] |
|
1486 |
--disable-libtool-lock avoid locking (might break parallel builds) |
|
1487 |
||
1488 |
Optional Packages: |
|
1489 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
1490 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
1491 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
|
1492 |
--with-pic try to use only PIC/non-PIC objects [default=use |
|
1493 |
both] |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1494 |
--with-tags[=TAGS] include additional configurations [automatic] |
1495 |
--with-lispdir Override the default lisp directory |
|
1
by Ross Burton
Import upstream version 0.10 |
1496 |
|
1497 |
Some influential environment variables: |
|
1498 |
CC C compiler command |
|
1499 |
CFLAGS C compiler flags |
|
1500 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
1501 |
nonstandard directory <lib dir> |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
1502 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1503 |
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1504 |
you have headers in a nonstandard directory <include dir> |
|
1
by Ross Burton
Import upstream version 0.10 |
1505 |
CPP C preprocessor |
1506 |
CXX C++ compiler command |
|
1507 |
CXXFLAGS C++ compiler flags |
|
1508 |
CXXCPP C++ preprocessor |
|
1509 |
F77 Fortran 77 compiler command |
|
1510 |
FFLAGS Fortran 77 compiler flags |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
1511 |
PKG_CONFIG path to pkg-config utility |
1512 |
DESKTOP_FILE_UTILS_CFLAGS |
|
1513 |
C compiler flags for DESKTOP_FILE_UTILS, overriding pkg-config |
|
1514 |
DESKTOP_FILE_UTILS_LIBS |
|
1515 |
linker flags for DESKTOP_FILE_UTILS, overriding pkg-config |
|
1
by Ross Burton
Import upstream version 0.10 |
1516 |
|
1517 |
Use these variables to override the choices made by `configure' or to help |
|
1518 |
it to find libraries and programs with nonstandard names/locations. |
|
1519 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1520 |
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=desktop-file-utils>. |
1
by Ross Burton
Import upstream version 0.10 |
1521 |
_ACEOF |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1522 |
ac_status=$? |
1
by Ross Burton
Import upstream version 0.10 |
1523 |
fi |
1524 |
||
1525 |
if test "$ac_init_help" = "recursive"; then |
|
1526 |
# If there are subdirs, report their specific --help. |
|
1527 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1528 |
test -d "$ac_dir" || continue |
1
by Ross Burton
Import upstream version 0.10 |
1529 |
ac_builddir=. |
1530 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1531 |
case "$ac_dir" in |
1532 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1533 |
*) |
|
1
by Ross Burton
Import upstream version 0.10 |
1534 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1535 |
# A ".." for each directory in $ac_dir_suffix. |
1536 |
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
|
1537 |
case $ac_top_builddir_sub in |
|
1538 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1539 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
1540 |
esac ;; |
|
1541 |
esac |
|
1542 |
ac_abs_top_builddir=$ac_pwd |
|
1543 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
1544 |
# for backward compatibility: |
|
1545 |
ac_top_builddir=$ac_top_build_prefix |
|
1
by Ross Burton
Import upstream version 0.10 |
1546 |
|
1547 |
case $srcdir in |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1548 |
.) # We are building in place. |
1
by Ross Burton
Import upstream version 0.10 |
1549 |
ac_srcdir=. |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1550 |
ac_top_srcdir=$ac_top_builddir_sub |
1551 |
ac_abs_top_srcdir=$ac_pwd ;; |
|
1552 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
|
1
by Ross Burton
Import upstream version 0.10 |
1553 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1554 |
ac_top_srcdir=$srcdir |
1555 |
ac_abs_top_srcdir=$srcdir ;; |
|
1556 |
*) # Relative name. |
|
1557 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
1558 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
1559 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
1560 |
esac |
|
1561 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
1562 |
||
1563 |
cd "$ac_dir" || { ac_status=$?; continue; } |
|
1564 |
# Check for guested configure. |
|
1565 |
if test -f "$ac_srcdir/configure.gnu"; then |
|
1566 |
echo && |
|
1567 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|
1568 |
elif test -f "$ac_srcdir/configure"; then |
|
1569 |
echo && |
|
1570 |
$SHELL "$ac_srcdir/configure" --help=recursive |
|
1
by Ross Burton
Import upstream version 0.10 |
1571 |
else |
1572 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1573 |
fi || ac_status=$? |
1574 |
cd "$ac_pwd" || { ac_status=$?; break; } |
|
1
by Ross Burton
Import upstream version 0.10 |
1575 |
done |
1576 |
fi |
|
1577 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1578 |
test -n "$ac_init_help" && exit $ac_status |
1
by Ross Burton
Import upstream version 0.10 |
1579 |
if $ac_init_version; then |
1580 |
cat <<\_ACEOF |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
1581 |
desktop-file-utils configure 0.15 |
1582 |
generated by GNU Autoconf 2.61 |
|
1
by Ross Burton
Import upstream version 0.10 |
1583 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1584 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1585 |
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
|
1
by Ross Burton
Import upstream version 0.10 |
1586 |
This configure script is free software; the Free Software Foundation |
1587 |
gives unlimited permission to copy, distribute and modify it. |
|
1588 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1589 |
exit |
1
by Ross Burton
Import upstream version 0.10 |
1590 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1591 |
cat >config.log <<_ACEOF |
1
by Ross Burton
Import upstream version 0.10 |
1592 |
This file contains any messages produced by compilers while |
1593 |
running configure, to aid debugging if configure makes a mistake. |
|
1594 |
||
1.2.1
by Ross Burton
Import upstream version 0.15 |
1595 |
It was created by desktop-file-utils $as_me 0.15, which was |
1596 |
generated by GNU Autoconf 2.61. Invocation command line was |
|
1
by Ross Burton
Import upstream version 0.10 |
1597 |
|
1598 |
$ $0 $@ |
|
1599 |
||
1600 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1601 |
exec 5>>config.log |
1
by Ross Burton
Import upstream version 0.10 |
1602 |
{ |
1603 |
cat <<_ASUNAME |
|
1604 |
## --------- ## |
|
1605 |
## Platform. ## |
|
1606 |
## --------- ## |
|
1607 |
||
1608 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
1609 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|
1610 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|
1611 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|
1612 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|
1613 |
||
1614 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|
1615 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|
1616 |
||
1617 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|
1618 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|
1619 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1620 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1
by Ross Burton
Import upstream version 0.10 |
1621 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1622 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|
1623 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|
1624 |
||
1625 |
_ASUNAME |
|
1626 |
||
1627 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1628 |
for as_dir in $PATH |
|
1629 |
do |
|
1630 |
IFS=$as_save_IFS |
|
1631 |
test -z "$as_dir" && as_dir=. |
|
1632 |
echo "PATH: $as_dir" |
|
1633 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1634 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
1635 |
|
1636 |
} >&5 |
|
1637 |
||
1638 |
cat >&5 <<_ACEOF |
|
1639 |
||
1640 |
||
1641 |
## ----------- ## |
|
1642 |
## Core tests. ## |
|
1643 |
## ----------- ## |
|
1644 |
||
1645 |
_ACEOF |
|
1646 |
||
1647 |
||
1648 |
# Keep a trace of the command line. |
|
1649 |
# Strip out --no-create and --no-recursion so they do not pile up. |
|
1650 |
# Strip out --silent because we don't want to record it for future runs. |
|
1651 |
# Also quote any args containing shell meta-characters. |
|
1652 |
# Make two passes to allow for proper duplicate-argument suppression. |
|
1653 |
ac_configure_args= |
|
1654 |
ac_configure_args0= |
|
1655 |
ac_configure_args1= |
|
1656 |
ac_must_keep_next=false |
|
1657 |
for ac_pass in 1 2 |
|
1658 |
do |
|
1659 |
for ac_arg |
|
1660 |
do |
|
1661 |
case $ac_arg in |
|
1662 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
1663 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1664 |
| -silent | --silent | --silen | --sile | --sil) |
|
1665 |
continue ;; |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1666 |
*\'*) |
1
by Ross Burton
Import upstream version 0.10 |
1667 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1668 |
esac |
|
1669 |
case $ac_pass in |
|
1670 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
|
1671 |
2) |
|
1672 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
|
1673 |
if test $ac_must_keep_next = true; then |
|
1674 |
ac_must_keep_next=false # Got value, back to normal. |
|
1675 |
else |
|
1676 |
case $ac_arg in |
|
1677 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
|
1678 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
1679 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
1680 |
| -with-* | --with-* | -without-* | --without-* | --x) |
|
1681 |
case "$ac_configure_args0 " in |
|
1682 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
1683 |
esac |
|
1684 |
;; |
|
1685 |
-* ) ac_must_keep_next=true ;; |
|
1686 |
esac |
|
1687 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1688 |
ac_configure_args="$ac_configure_args '$ac_arg'" |
1
by Ross Burton
Import upstream version 0.10 |
1689 |
;; |
1690 |
esac |
|
1691 |
done |
|
1692 |
done |
|
1693 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
|
1694 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
|
1695 |
||
1696 |
# When interrupted or exit'd, cleanup temporary files, and complete |
|
1697 |
# config.log. We remove comments because anyway the quotes in there |
|
1698 |
# would cause problems or look ugly. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1699 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
1700 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
|
1
by Ross Burton
Import upstream version 0.10 |
1701 |
trap 'exit_status=$? |
1702 |
# Save into config.log some information that might help in debugging. |
|
1703 |
{ |
|
1704 |
echo |
|
1705 |
||
1706 |
cat <<\_ASBOX |
|
1707 |
## ---------------- ## |
|
1708 |
## Cache variables. ## |
|
1709 |
## ---------------- ## |
|
1710 |
_ASBOX |
|
1711 |
echo |
|
1712 |
# The following way of writing the cache mishandles newlines in values, |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1713 |
( |
1714 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|
1715 |
eval ac_val=\$$ac_var |
|
1716 |
case $ac_val in #( |
|
1717 |
*${as_nl}*) |
|
1718 |
case $ac_var in #( |
|
1719 |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
|
1720 |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
|
1721 |
esac |
|
1722 |
case $ac_var in #( |
|
1723 |
_ | IFS | as_nl) ;; #( |
|
1724 |
*) $as_unset $ac_var ;; |
|
1725 |
esac ;; |
|
1726 |
esac |
|
1727 |
done |
|
1
by Ross Burton
Import upstream version 0.10 |
1728 |
(set) 2>&1 | |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1729 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1730 |
*${as_nl}ac_space=\ *) |
|
1
by Ross Burton
Import upstream version 0.10 |
1731 |
sed -n \ |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1732 |
"s/'\''/'\''\\\\'\'''\''/g; |
1733 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|
1734 |
;; #( |
|
1
by Ross Burton
Import upstream version 0.10 |
1735 |
*) |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1736 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1
by Ross Burton
Import upstream version 0.10 |
1737 |
;; |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1738 |
esac | |
1739 |
sort |
|
1740 |
) |
|
1
by Ross Burton
Import upstream version 0.10 |
1741 |
echo |
1742 |
||
1743 |
cat <<\_ASBOX |
|
1744 |
## ----------------- ## |
|
1745 |
## Output variables. ## |
|
1746 |
## ----------------- ## |
|
1747 |
_ASBOX |
|
1748 |
echo |
|
1749 |
for ac_var in $ac_subst_vars |
|
1750 |
do |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1751 |
eval ac_val=\$$ac_var |
1752 |
case $ac_val in |
|
1753 |
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
1754 |
esac |
|
1755 |
echo "$ac_var='\''$ac_val'\''" |
|
1
by Ross Burton
Import upstream version 0.10 |
1756 |
done | sort |
1757 |
echo |
|
1758 |
||
1759 |
if test -n "$ac_subst_files"; then |
|
1760 |
cat <<\_ASBOX |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1761 |
## ------------------- ## |
1762 |
## File substitutions. ## |
|
1763 |
## ------------------- ## |
|
1
by Ross Burton
Import upstream version 0.10 |
1764 |
_ASBOX |
1765 |
echo |
|
1766 |
for ac_var in $ac_subst_files |
|
1767 |
do |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1768 |
eval ac_val=\$$ac_var |
1769 |
case $ac_val in |
|
1770 |
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
1771 |
esac |
|
1772 |
echo "$ac_var='\''$ac_val'\''" |
|
1
by Ross Burton
Import upstream version 0.10 |
1773 |
done | sort |
1774 |
echo |
|
1775 |
fi |
|
1776 |
||
1777 |
if test -s confdefs.h; then |
|
1778 |
cat <<\_ASBOX |
|
1779 |
## ----------- ## |
|
1780 |
## confdefs.h. ## |
|
1781 |
## ----------- ## |
|
1782 |
_ASBOX |
|
1783 |
echo |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1784 |
cat confdefs.h |
1
by Ross Burton
Import upstream version 0.10 |
1785 |
echo |
1786 |
fi |
|
1787 |
test "$ac_signal" != 0 && |
|
1788 |
echo "$as_me: caught signal $ac_signal" |
|
1789 |
echo "$as_me: exit $exit_status" |
|
1790 |
} >&5 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1791 |
rm -f core *.core core.conftest.* && |
1792 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
|
1
by Ross Burton
Import upstream version 0.10 |
1793 |
exit $exit_status |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1794 |
' 0 |
1
by Ross Burton
Import upstream version 0.10 |
1795 |
for ac_signal in 1 2 13 15; do |
1796 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
|
1797 |
done |
|
1798 |
ac_signal=0 |
|
1799 |
||
1800 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1801 |
rm -f -r conftest* confdefs.h |
1
by Ross Burton
Import upstream version 0.10 |
1802 |
|
1803 |
# Predefined preprocessor variables. |
|
1804 |
||
1805 |
cat >>confdefs.h <<_ACEOF |
|
1806 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
|
1807 |
_ACEOF |
|
1808 |
||
1809 |
||
1810 |
cat >>confdefs.h <<_ACEOF |
|
1811 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
1812 |
_ACEOF |
|
1813 |
||
1814 |
||
1815 |
cat >>confdefs.h <<_ACEOF |
|
1816 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
1817 |
_ACEOF |
|
1818 |
||
1819 |
||
1820 |
cat >>confdefs.h <<_ACEOF |
|
1821 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
|
1822 |
_ACEOF |
|
1823 |
||
1824 |
||
1825 |
cat >>confdefs.h <<_ACEOF |
|
1826 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
1827 |
_ACEOF |
|
1828 |
||
1829 |
||
1830 |
# Let the site file select an alternate cache file if it wants to. |
|
1831 |
# Prefer explicitly selected file to automatically selected ones. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1832 |
if test -n "$CONFIG_SITE"; then |
1833 |
set x "$CONFIG_SITE" |
|
1834 |
elif test "x$prefix" != xNONE; then |
|
1835 |
set x "$prefix/share/config.site" "$prefix/etc/config.site" |
|
1836 |
else |
|
1837 |
set x "$ac_default_prefix/share/config.site" \ |
|
1838 |
"$ac_default_prefix/etc/config.site" |
|
1
by Ross Burton
Import upstream version 0.10 |
1839 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1840 |
shift |
1841 |
for ac_site_file |
|
1842 |
do |
|
1
by Ross Burton
Import upstream version 0.10 |
1843 |
if test -r "$ac_site_file"; then |
1844 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
|
1845 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
|
1846 |
sed 's/^/| /' "$ac_site_file" >&5 |
|
1847 |
. "$ac_site_file" |
|
1848 |
fi |
|
1849 |
done |
|
1850 |
||
1851 |
if test -r "$cache_file"; then |
|
1852 |
# Some versions of bash will fail to source /dev/null (special |
|
1853 |
# files actually), so we avoid doing that. |
|
1854 |
if test -f "$cache_file"; then |
|
1855 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
|
1856 |
echo "$as_me: loading cache $cache_file" >&6;} |
|
1857 |
case $cache_file in |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1858 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
1859 |
*) . "./$cache_file";; |
|
1
by Ross Burton
Import upstream version 0.10 |
1860 |
esac |
1861 |
fi |
|
1862 |
else |
|
1863 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
|
1864 |
echo "$as_me: creating cache $cache_file" >&6;} |
|
1865 |
>$cache_file |
|
1866 |
fi |
|
1867 |
||
1868 |
# Check that the precious variables saved in the cache have kept the same |
|
1869 |
# value. |
|
1870 |
ac_cache_corrupted=false |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1871 |
for ac_var in $ac_precious_vars; do |
1
by Ross Burton
Import upstream version 0.10 |
1872 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1873 |
eval ac_new_set=\$ac_env_${ac_var}_set |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1874 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1875 |
eval ac_new_val=\$ac_env_${ac_var}_value |
|
1
by Ross Burton
Import upstream version 0.10 |
1876 |
case $ac_old_set,$ac_new_set in |
1877 |
set,) |
|
1878 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
1879 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
1880 |
ac_cache_corrupted=: ;; |
|
1881 |
,set) |
|
1882 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
|
1883 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
1884 |
ac_cache_corrupted=: ;; |
|
1885 |
,);; |
|
1886 |
*) |
|
1887 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
|
1888 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
|
1889 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
1890 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
|
1891 |
echo "$as_me: former value: $ac_old_val" >&2;} |
|
1892 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
|
1893 |
echo "$as_me: current value: $ac_new_val" >&2;} |
|
1894 |
ac_cache_corrupted=: |
|
1895 |
fi;; |
|
1896 |
esac |
|
1897 |
# Pass precious variables to config.status. |
|
1898 |
if test "$ac_new_set" = set; then |
|
1899 |
case $ac_new_val in |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1900 |
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1
by Ross Burton
Import upstream version 0.10 |
1901 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1902 |
esac |
|
1903 |
case " $ac_configure_args " in |
|
1904 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
1905 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
|
1906 |
esac |
|
1907 |
fi |
|
1908 |
done |
|
1909 |
if $ac_cache_corrupted; then |
|
1910 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
|
1911 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
1912 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
|
1913 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
|
1914 |
{ (exit 1); exit 1; }; } |
|
1915 |
fi |
|
1916 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1917 |
|
1918 |
||
1919 |
||
1920 |
||
1921 |
||
1922 |
||
1923 |
||
1924 |
||
1925 |
||
1926 |
||
1927 |
||
1928 |
||
1929 |
||
1930 |
||
1931 |
||
1932 |
||
1933 |
||
1934 |
||
1935 |
||
1936 |
||
1937 |
||
1938 |
||
1939 |
||
1940 |
||
1
by Ross Burton
Import upstream version 0.10 |
1941 |
ac_ext=c |
1942 |
ac_cpp='$CPP $CPPFLAGS' |
|
1943 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
1944 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
1945 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
1946 |
||
1947 |
||
1948 |
||
1949 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1950 |
am__api_version="1.7" |
1
by Ross Burton
Import upstream version 0.10 |
1951 |
ac_aux_dir= |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1952 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1953 |
if test -f "$ac_dir/install-sh"; then |
|
1
by Ross Burton
Import upstream version 0.10 |
1954 |
ac_aux_dir=$ac_dir |
1955 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
|
1956 |
break |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1957 |
elif test -f "$ac_dir/install.sh"; then |
1
by Ross Burton
Import upstream version 0.10 |
1958 |
ac_aux_dir=$ac_dir |
1959 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
|
1960 |
break |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1961 |
elif test -f "$ac_dir/shtool"; then |
1
by Ross Burton
Import upstream version 0.10 |
1962 |
ac_aux_dir=$ac_dir |
1963 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
|
1964 |
break |
|
1965 |
fi |
|
1966 |
done |
|
1967 |
if test -z "$ac_aux_dir"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1968 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1969 |
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
|
1
by Ross Burton
Import upstream version 0.10 |
1970 |
{ (exit 1); exit 1; }; } |
1971 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1972 |
|
1973 |
# These three variables are undocumented and unsupported, |
|
1974 |
# and are intended to be withdrawn in a future Autoconf release. |
|
1975 |
# They can cause serious problems if a builder's source tree is in a directory |
|
1976 |
# whose full name contains unusual characters. |
|
1977 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
|
1978 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
|
1979 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
|
1980 |
||
1
by Ross Burton
Import upstream version 0.10 |
1981 |
|
1982 |
# Find a good install program. We prefer a C program (faster), |
|
1983 |
# so one script is as good as another. But avoid the broken or |
|
1984 |
# incompatible versions: |
|
1985 |
# SysV /etc/install, /usr/sbin/install |
|
1986 |
# SunOS /usr/etc/install |
|
1987 |
# IRIX /sbin/install |
|
1988 |
# AIX /bin/install |
|
1989 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
|
1990 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
1991 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
1992 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
1993 |
# OS/2's system install, which has a completely different semantic |
|
1994 |
# ./install, which can be erroneously created by make from ./install.sh. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
1995 |
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1996 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
1997 |
if test -z "$INSTALL"; then |
1998 |
if test "${ac_cv_path_install+set}" = set; then |
|
1999 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2000 |
else |
|
2001 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2002 |
for as_dir in $PATH |
|
2003 |
do |
|
2004 |
IFS=$as_save_IFS |
|
2005 |
test -z "$as_dir" && as_dir=. |
|
2006 |
# Account for people who put trailing slashes in PATH elements. |
|
2007 |
case $as_dir/ in |
|
2008 |
./ | .// | /cC/* | \ |
|
2009 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|
2010 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
|
2011 |
/usr/ucb/* ) ;; |
|
2012 |
*) |
|
2013 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
|
2014 |
# Don't use installbsd from OSF since it installs stuff as root |
|
2015 |
# by default. |
|
2016 |
for ac_prog in ginstall scoinst install; do |
|
2017 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
2018 |
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
2019 |
if test $ac_prog = install && |
2020 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
2021 |
# AIX install. It has an incompatible calling convention. |
|
2022 |
: |
|
2023 |
elif test $ac_prog = install && |
|
2024 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
2025 |
# program-specific install script used by HP pwplus--don't use. |
|
2026 |
: |
|
2027 |
else |
|
2028 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|
2029 |
break 3 |
|
2030 |
fi |
|
2031 |
fi |
|
2032 |
done |
|
2033 |
done |
|
2034 |
;; |
|
2035 |
esac |
|
2036 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2037 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
2038 |
|
2039 |
||
2040 |
fi |
|
2041 |
if test "${ac_cv_path_install+set}" = set; then |
|
2042 |
INSTALL=$ac_cv_path_install |
|
2043 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2044 |
# As a last resort, use the slow shell script. Don't cache a |
2045 |
# value for INSTALL within a source directory, because that will |
|
1
by Ross Burton
Import upstream version 0.10 |
2046 |
# break other packages using the cache if that directory is |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2047 |
# removed, or if the value is a relative name. |
1
by Ross Burton
Import upstream version 0.10 |
2048 |
INSTALL=$ac_install_sh |
2049 |
fi |
|
2050 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2051 |
{ echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2052 |
echo "${ECHO_T}$INSTALL" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2053 |
|
2054 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
2055 |
# It thinks the first close brace ends the variable substitution. |
|
2056 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
2057 |
||
2058 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|
2059 |
||
2060 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
2061 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2062 |
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2063 |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2064 |
# Just in case |
2065 |
sleep 1 |
|
2066 |
echo timestamp > conftest.file |
|
2067 |
# Do `set' in a subshell so we don't clobber the current shell's |
|
2068 |
# arguments. Must try -L first in case configure is actually a |
|
2069 |
# symlink; some systems play weird games with the mod time of symlinks |
|
2070 |
# (eg FreeBSD returns the mod time of the symlink's containing |
|
2071 |
# directory). |
|
2072 |
if ( |
|
2073 |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
|
2074 |
if test "$*" = "X"; then |
|
2075 |
# -L didn't work. |
|
2076 |
set X `ls -t $srcdir/configure conftest.file` |
|
2077 |
fi |
|
2078 |
rm -f conftest.file |
|
2079 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
|
2080 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
|
2081 |
||
2082 |
# If neither matched, then we have a broken ls. This can happen |
|
2083 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
|
2084 |
# broken ls alias from the environment. This has actually |
|
2085 |
# happened. Such a system could not be considered "sane". |
|
2086 |
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
|
2087 |
alias in your environment" >&5 |
|
2088 |
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
|
2089 |
alias in your environment" >&2;} |
|
2090 |
{ (exit 1); exit 1; }; } |
|
2091 |
fi |
|
2092 |
||
2093 |
test "$2" = conftest.file |
|
2094 |
) |
|
2095 |
then |
|
2096 |
# Ok. |
|
2097 |
: |
|
2098 |
else |
|
2099 |
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
|
2100 |
Check your system clock" >&5 |
|
2101 |
echo "$as_me: error: newly created file is older than distributed files! |
|
2102 |
Check your system clock" >&2;} |
|
2103 |
{ (exit 1); exit 1; }; } |
|
2104 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2105 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2106 |
echo "${ECHO_T}yes" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2107 |
test "$program_prefix" != NONE && |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2108 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
1
by Ross Burton
Import upstream version 0.10 |
2109 |
# Use a double $ so make ignores it. |
2110 |
test "$program_suffix" != NONE && |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2111 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
1
by Ross Burton
Import upstream version 0.10 |
2112 |
# Double any \ or $. echo might interpret backslashes. |
2113 |
# By default was `s,x,x', remove it if useless. |
|
2114 |
cat <<\_ACEOF >conftest.sed |
|
2115 |
s/[\\$]/&&/g;s/;s,x,x,$// |
|
2116 |
_ACEOF |
|
2117 |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2118 |
rm -f conftest.sed |
2119 |
||
1
by Ross Burton
Import upstream version 0.10 |
2120 |
|
2121 |
# expand $ac_aux_dir to an absolute path |
|
2122 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
|
2123 |
||
2124 |
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
|
2125 |
# Use eval to expand $SHELL |
|
2126 |
if eval "$MISSING --run true"; then |
|
2127 |
am_missing_run="$MISSING --run " |
|
2128 |
else |
|
2129 |
am_missing_run= |
|
2130 |
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
|
2131 |
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
|
2132 |
fi |
|
2133 |
||
2134 |
for ac_prog in gawk mawk nawk awk |
|
2135 |
do |
|
2136 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2137 |
set dummy $ac_prog; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2138 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2139 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2140 |
if test "${ac_cv_prog_AWK+set}" = set; then |
2141 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2142 |
else |
|
2143 |
if test -n "$AWK"; then |
|
2144 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
2145 |
else |
|
2146 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2147 |
for as_dir in $PATH |
|
2148 |
do |
|
2149 |
IFS=$as_save_IFS |
|
2150 |
test -z "$as_dir" && as_dir=. |
|
2151 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
2152 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
2153 |
ac_cv_prog_AWK="$ac_prog" |
2154 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2155 |
break 2 |
|
2156 |
fi |
|
2157 |
done |
|
2158 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2159 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
2160 |
|
2161 |
fi |
|
2162 |
fi |
|
2163 |
AWK=$ac_cv_prog_AWK |
|
2164 |
if test -n "$AWK"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2165 |
{ echo "$as_me:$LINENO: result: $AWK" >&5 |
2166 |
echo "${ECHO_T}$AWK" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2167 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2168 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2169 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2170 |
fi |
2171 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2172 |
|
1
by Ross Burton
Import upstream version 0.10 |
2173 |
test -n "$AWK" && break |
2174 |
done |
|
2175 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2176 |
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2177 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
|
2178 |
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
|
2179 |
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
|
1
by Ross Burton
Import upstream version 0.10 |
2180 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2181 |
else |
|
2182 |
cat >conftest.make <<\_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2183 |
SHELL = /bin/sh |
1
by Ross Burton
Import upstream version 0.10 |
2184 |
all: |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2185 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
1
by Ross Burton
Import upstream version 0.10 |
2186 |
_ACEOF |
2187 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2188 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2189 |
*@@@%%%=?*=@@@%%%*) |
|
2190 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
|
2191 |
*) |
|
2192 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
|
2193 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
2194 |
rm -f conftest.make |
2195 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2196 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2197 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
|
2198 |
echo "${ECHO_T}yes" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2199 |
SET_MAKE= |
2200 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2201 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2202 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2203 |
SET_MAKE="MAKE=${MAKE-make}" |
2204 |
fi |
|
2205 |
||
2206 |
rm -rf .tst 2>/dev/null |
|
2207 |
mkdir .tst 2>/dev/null |
|
2208 |
if test -d .tst; then |
|
2209 |
am__leading_dot=. |
|
2210 |
else |
|
2211 |
am__leading_dot=_ |
|
2212 |
fi |
|
2213 |
rmdir .tst 2>/dev/null |
|
2214 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2215 |
# test to see if srcdir already configured |
1
by Ross Burton
Import upstream version 0.10 |
2216 |
if test "`cd $srcdir && pwd`" != "`pwd`" && |
2217 |
test -f $srcdir/config.status; then |
|
2218 |
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
|
2219 |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
|
2220 |
{ (exit 1); exit 1; }; } |
|
2221 |
fi |
|
2222 |
||
2223 |
# test whether we have cygpath |
|
2224 |
if test -z "$CYGPATH_W"; then |
|
2225 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
|
2226 |
CYGPATH_W='cygpath -w' |
|
2227 |
else |
|
2228 |
CYGPATH_W=echo |
|
2229 |
fi |
|
2230 |
fi |
|
2231 |
||
2232 |
||
2233 |
# Define the identity of the package. |
|
2234 |
PACKAGE='desktop-file-utils' |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
2235 |
VERSION='0.15' |
1
by Ross Burton
Import upstream version 0.10 |
2236 |
|
2237 |
||
2238 |
cat >>confdefs.h <<_ACEOF |
|
2239 |
#define PACKAGE "$PACKAGE" |
|
2240 |
_ACEOF |
|
2241 |
||
2242 |
||
2243 |
cat >>confdefs.h <<_ACEOF |
|
2244 |
#define VERSION "$VERSION" |
|
2245 |
_ACEOF |
|
2246 |
||
2247 |
# Some tools Automake needs. |
|
2248 |
||
2249 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
|
2250 |
||
2251 |
||
2252 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
|
2253 |
||
2254 |
||
2255 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
|
2256 |
||
2257 |
||
2258 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
|
2259 |
||
2260 |
||
2261 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
|
2262 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2263 |
|
2264 |
AMTAR=${AMTAR-"${am_missing_run}tar"} |
|
2265 |
||
1
by Ross Burton
Import upstream version 0.10 |
2266 |
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
2267 |
||
2268 |
# Installed binaries are usually stripped using `strip' when the user |
|
2269 |
# run `make install-strip'. However `strip' might not be the right |
|
2270 |
# tool to use in cross-compilation environments, therefore Automake |
|
2271 |
# will honor the `STRIP' environment variable to overrule this program. |
|
2272 |
if test "$cross_compiling" != no; then |
|
2273 |
if test -n "$ac_tool_prefix"; then |
|
2274 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
2275 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2276 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2277 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2278 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
2279 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2280 |
else |
|
2281 |
if test -n "$STRIP"; then |
|
2282 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
2283 |
else |
|
2284 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2285 |
for as_dir in $PATH |
|
2286 |
do |
|
2287 |
IFS=$as_save_IFS |
|
2288 |
test -z "$as_dir" && as_dir=. |
|
2289 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
2290 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
2291 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2292 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2293 |
break 2 |
|
2294 |
fi |
|
2295 |
done |
|
2296 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2297 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
2298 |
|
2299 |
fi |
|
2300 |
fi |
|
2301 |
STRIP=$ac_cv_prog_STRIP |
|
2302 |
if test -n "$STRIP"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2303 |
{ echo "$as_me:$LINENO: result: $STRIP" >&5 |
2304 |
echo "${ECHO_T}$STRIP" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2305 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2306 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2307 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2308 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2309 |
|
1
by Ross Burton
Import upstream version 0.10 |
2310 |
|
2311 |
fi |
|
2312 |
if test -z "$ac_cv_prog_STRIP"; then |
|
2313 |
ac_ct_STRIP=$STRIP |
|
2314 |
# Extract the first word of "strip", so it can be a program name with args. |
|
2315 |
set dummy strip; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2316 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2317 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2318 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2319 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2320 |
else |
|
2321 |
if test -n "$ac_ct_STRIP"; then |
|
2322 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
2323 |
else |
|
2324 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2325 |
for as_dir in $PATH |
|
2326 |
do |
|
2327 |
IFS=$as_save_IFS |
|
2328 |
test -z "$as_dir" && as_dir=. |
|
2329 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
2330 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
2331 |
ac_cv_prog_ac_ct_STRIP="strip" |
2332 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2333 |
break 2 |
|
2334 |
fi |
|
2335 |
done |
|
2336 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2337 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
2338 |
|
2339 |
fi |
|
2340 |
fi |
|
2341 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
2342 |
if test -n "$ac_ct_STRIP"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2343 |
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2344 |
echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2345 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2346 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2347 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2348 |
fi |
2349 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2350 |
if test "x$ac_ct_STRIP" = x; then |
2351 |
STRIP=":" |
|
2352 |
else |
|
2353 |
case $cross_compiling:$ac_tool_warned in |
|
2354 |
yes:) |
|
2355 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
2356 |
whose name does not start with the host triplet. If you think this |
|
2357 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
2358 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
2359 |
whose name does not start with the host triplet. If you think this |
|
2360 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
2361 |
ac_tool_warned=yes ;; |
|
2362 |
esac |
|
2363 |
STRIP=$ac_ct_STRIP |
|
2364 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
2365 |
else |
2366 |
STRIP="$ac_cv_prog_STRIP" |
|
2367 |
fi |
|
2368 |
||
2369 |
fi |
|
2370 |
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
|
2371 |
||
2372 |
# We need awk for the "check" target. The system "awk" is bad on |
|
2373 |
# some platforms. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2374 |
|
2375 |
||
2376 |
||
2377 |
ac_config_headers="$ac_config_headers config.h" |
|
1
by Ross Burton
Import upstream version 0.10 |
2378 |
|
2379 |
||
2380 |
# Honor aclocal flags |
|
2381 |
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}" |
|
2382 |
||
2383 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2384 |
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2385 |
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } |
|
2386 |
# Check whether --enable-maintainer-mode was given. |
|
1
by Ross Burton
Import upstream version 0.10 |
2387 |
if test "${enable_maintainer_mode+set}" = set; then |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2388 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
1
by Ross Burton
Import upstream version 0.10 |
2389 |
else |
2390 |
USE_MAINTAINER_MODE=no |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2391 |
fi |
2392 |
||
2393 |
{ echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
|
2394 |
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2395 |
|
2396 |
||
2397 |
if test $USE_MAINTAINER_MODE = yes; then |
|
2398 |
MAINTAINER_MODE_TRUE= |
|
2399 |
MAINTAINER_MODE_FALSE='#' |
|
2400 |
else |
|
2401 |
MAINTAINER_MODE_TRUE='#' |
|
2402 |
MAINTAINER_MODE_FALSE= |
|
2403 |
fi |
|
2404 |
||
2405 |
MAINT=$MAINTAINER_MODE_TRUE |
|
2406 |
||
2407 |
||
2408 |
||
2409 |
ac_ext=c |
|
2410 |
ac_cpp='$CPP $CPPFLAGS' |
|
2411 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2412 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2413 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2414 |
if test -n "$ac_tool_prefix"; then |
|
2415 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
2416 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2417 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2418 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2419 |
if test "${ac_cv_prog_CC+set}" = set; then |
2420 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2421 |
else |
|
2422 |
if test -n "$CC"; then |
|
2423 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2424 |
else |
|
2425 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2426 |
for as_dir in $PATH |
|
2427 |
do |
|
2428 |
IFS=$as_save_IFS |
|
2429 |
test -z "$as_dir" && as_dir=. |
|
2430 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
2431 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
2432 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2433 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2434 |
break 2 |
|
2435 |
fi |
|
2436 |
done |
|
2437 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2438 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
2439 |
|
2440 |
fi |
|
2441 |
fi |
|
2442 |
CC=$ac_cv_prog_CC |
|
2443 |
if test -n "$CC"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2444 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
2445 |
echo "${ECHO_T}$CC" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2446 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2447 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2448 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2449 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2450 |
|
1
by Ross Burton
Import upstream version 0.10 |
2451 |
|
2452 |
fi |
|
2453 |
if test -z "$ac_cv_prog_CC"; then |
|
2454 |
ac_ct_CC=$CC |
|
2455 |
# Extract the first word of "gcc", so it can be a program name with args. |
|
2456 |
set dummy gcc; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2457 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2458 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2459 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2460 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2461 |
else |
|
2462 |
if test -n "$ac_ct_CC"; then |
|
2463 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2464 |
else |
|
2465 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2466 |
for as_dir in $PATH |
|
2467 |
do |
|
2468 |
IFS=$as_save_IFS |
|
2469 |
test -z "$as_dir" && as_dir=. |
|
2470 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
2471 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
2472 |
ac_cv_prog_ac_ct_CC="gcc" |
2473 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2474 |
break 2 |
|
2475 |
fi |
|
2476 |
done |
|
2477 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2478 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
2479 |
|
2480 |
fi |
|
2481 |
fi |
|
2482 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2483 |
if test -n "$ac_ct_CC"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2484 |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2485 |
echo "${ECHO_T}$ac_ct_CC" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2486 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2487 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2488 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2489 |
fi |
2490 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2491 |
if test "x$ac_ct_CC" = x; then |
2492 |
CC="" |
|
2493 |
else |
|
2494 |
case $cross_compiling:$ac_tool_warned in |
|
2495 |
yes:) |
|
2496 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
2497 |
whose name does not start with the host triplet. If you think this |
|
2498 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
2499 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
2500 |
whose name does not start with the host triplet. If you think this |
|
2501 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
2502 |
ac_tool_warned=yes ;; |
|
2503 |
esac |
|
2504 |
CC=$ac_ct_CC |
|
2505 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
2506 |
else |
2507 |
CC="$ac_cv_prog_CC" |
|
2508 |
fi |
|
2509 |
||
2510 |
if test -z "$CC"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2511 |
if test -n "$ac_tool_prefix"; then |
2512 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
1
by Ross Burton
Import upstream version 0.10 |
2513 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2514 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2515 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2516 |
if test "${ac_cv_prog_CC+set}" = set; then |
2517 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2518 |
else |
|
2519 |
if test -n "$CC"; then |
|
2520 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2521 |
else |
|
2522 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2523 |
for as_dir in $PATH |
|
2524 |
do |
|
2525 |
IFS=$as_save_IFS |
|
2526 |
test -z "$as_dir" && as_dir=. |
|
2527 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
2528 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
2529 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
2530 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2531 |
break 2 |
|
2532 |
fi |
|
2533 |
done |
|
2534 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2535 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
2536 |
|
2537 |
fi |
|
2538 |
fi |
|
2539 |
CC=$ac_cv_prog_CC |
|
2540 |
if test -n "$CC"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2541 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
2542 |
echo "${ECHO_T}$CC" >&6; } |
|
2543 |
else |
|
2544 |
{ echo "$as_me:$LINENO: result: no" >&5 |
|
2545 |
echo "${ECHO_T}no" >&6; } |
|
2546 |
fi |
|
2547 |
||
2548 |
||
1
by Ross Burton
Import upstream version 0.10 |
2549 |
fi |
2550 |
fi |
|
2551 |
if test -z "$CC"; then |
|
2552 |
# Extract the first word of "cc", so it can be a program name with args. |
|
2553 |
set dummy cc; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2554 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2555 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2556 |
if test "${ac_cv_prog_CC+set}" = set; then |
2557 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2558 |
else |
|
2559 |
if test -n "$CC"; then |
|
2560 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2561 |
else |
|
2562 |
ac_prog_rejected=no |
|
2563 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2564 |
for as_dir in $PATH |
|
2565 |
do |
|
2566 |
IFS=$as_save_IFS |
|
2567 |
test -z "$as_dir" && as_dir=. |
|
2568 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
2569 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
2570 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2571 |
ac_prog_rejected=yes |
|
2572 |
continue |
|
2573 |
fi |
|
2574 |
ac_cv_prog_CC="cc" |
|
2575 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2576 |
break 2 |
|
2577 |
fi |
|
2578 |
done |
|
2579 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2580 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
2581 |
|
2582 |
if test $ac_prog_rejected = yes; then |
|
2583 |
# We found a bogon in the path, so make sure we never use it. |
|
2584 |
set dummy $ac_cv_prog_CC |
|
2585 |
shift |
|
2586 |
if test $# != 0; then |
|
2587 |
# We chose a different compiler from the bogus one. |
|
2588 |
# However, it has the same basename, so the bogon will be chosen |
|
2589 |
# first if we set CC to just the basename; use the full file name. |
|
2590 |
shift |
|
2591 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
2592 |
fi |
|
2593 |
fi |
|
2594 |
fi |
|
2595 |
fi |
|
2596 |
CC=$ac_cv_prog_CC |
|
2597 |
if test -n "$CC"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2598 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
2599 |
echo "${ECHO_T}$CC" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2600 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2601 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2602 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2603 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2604 |
|
1
by Ross Burton
Import upstream version 0.10 |
2605 |
|
2606 |
fi |
|
2607 |
if test -z "$CC"; then |
|
2608 |
if test -n "$ac_tool_prefix"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2609 |
for ac_prog in cl.exe |
1
by Ross Burton
Import upstream version 0.10 |
2610 |
do |
2611 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
2612 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2613 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2614 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2615 |
if test "${ac_cv_prog_CC+set}" = set; then |
2616 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2617 |
else |
|
2618 |
if test -n "$CC"; then |
|
2619 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2620 |
else |
|
2621 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2622 |
for as_dir in $PATH |
|
2623 |
do |
|
2624 |
IFS=$as_save_IFS |
|
2625 |
test -z "$as_dir" && as_dir=. |
|
2626 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
2627 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
2628 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2629 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2630 |
break 2 |
|
2631 |
fi |
|
2632 |
done |
|
2633 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2634 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
2635 |
|
2636 |
fi |
|
2637 |
fi |
|
2638 |
CC=$ac_cv_prog_CC |
|
2639 |
if test -n "$CC"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2640 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
2641 |
echo "${ECHO_T}$CC" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2642 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2643 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2644 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2645 |
fi |
2646 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2647 |
|
1
by Ross Burton
Import upstream version 0.10 |
2648 |
test -n "$CC" && break |
2649 |
done |
|
2650 |
fi |
|
2651 |
if test -z "$CC"; then |
|
2652 |
ac_ct_CC=$CC |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2653 |
for ac_prog in cl.exe |
1
by Ross Burton
Import upstream version 0.10 |
2654 |
do |
2655 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2656 |
set dummy $ac_prog; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2657 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2658 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2659 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2660 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2661 |
else |
|
2662 |
if test -n "$ac_ct_CC"; then |
|
2663 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2664 |
else |
|
2665 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2666 |
for as_dir in $PATH |
|
2667 |
do |
|
2668 |
IFS=$as_save_IFS |
|
2669 |
test -z "$as_dir" && as_dir=. |
|
2670 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
2671 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
2672 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2673 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2674 |
break 2 |
|
2675 |
fi |
|
2676 |
done |
|
2677 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2678 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
2679 |
|
2680 |
fi |
|
2681 |
fi |
|
2682 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2683 |
if test -n "$ac_ct_CC"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2684 |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2685 |
echo "${ECHO_T}$ac_ct_CC" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2686 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2687 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2688 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2689 |
fi |
2690 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2691 |
|
1
by Ross Burton
Import upstream version 0.10 |
2692 |
test -n "$ac_ct_CC" && break |
2693 |
done |
|
2694 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2695 |
if test "x$ac_ct_CC" = x; then |
2696 |
CC="" |
|
2697 |
else |
|
2698 |
case $cross_compiling:$ac_tool_warned in |
|
2699 |
yes:) |
|
2700 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
2701 |
whose name does not start with the host triplet. If you think this |
|
2702 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
2703 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
2704 |
whose name does not start with the host triplet. If you think this |
|
2705 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
2706 |
ac_tool_warned=yes ;; |
|
2707 |
esac |
|
2708 |
CC=$ac_ct_CC |
|
2709 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
2710 |
fi |
2711 |
||
2712 |
fi |
|
2713 |
||
2714 |
||
2715 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
|
2716 |
See \`config.log' for more details." >&5 |
|
2717 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
|
2718 |
See \`config.log' for more details." >&2;} |
|
2719 |
{ (exit 1); exit 1; }; } |
|
2720 |
||
2721 |
# Provide some information about the compiler. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2722 |
echo "$as_me:$LINENO: checking for C compiler version" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
2723 |
ac_compiler=`set X $ac_compile; echo $2` |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2724 |
{ (ac_try="$ac_compiler --version >&5" |
2725 |
case "(($ac_try" in |
|
2726 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2727 |
*) ac_try_echo=$ac_try;; |
|
2728 |
esac |
|
2729 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2730 |
(eval "$ac_compiler --version >&5") 2>&5 |
|
2731 |
ac_status=$? |
|
2732 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2733 |
(exit $ac_status); } |
|
2734 |
{ (ac_try="$ac_compiler -v >&5" |
|
2735 |
case "(($ac_try" in |
|
2736 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2737 |
*) ac_try_echo=$ac_try;; |
|
2738 |
esac |
|
2739 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2740 |
(eval "$ac_compiler -v >&5") 2>&5 |
|
2741 |
ac_status=$? |
|
2742 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2743 |
(exit $ac_status); } |
|
2744 |
{ (ac_try="$ac_compiler -V >&5" |
|
2745 |
case "(($ac_try" in |
|
2746 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2747 |
*) ac_try_echo=$ac_try;; |
|
2748 |
esac |
|
2749 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2750 |
(eval "$ac_compiler -V >&5") 2>&5 |
|
1
by Ross Burton
Import upstream version 0.10 |
2751 |
ac_status=$? |
2752 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2753 |
(exit $ac_status); } |
|
2754 |
||
2755 |
cat >conftest.$ac_ext <<_ACEOF |
|
2756 |
/* confdefs.h. */ |
|
2757 |
_ACEOF |
|
2758 |
cat confdefs.h >>conftest.$ac_ext |
|
2759 |
cat >>conftest.$ac_ext <<_ACEOF |
|
2760 |
/* end confdefs.h. */ |
|
2761 |
||
2762 |
int |
|
2763 |
main () |
|
2764 |
{ |
|
2765 |
||
2766 |
; |
|
2767 |
return 0; |
|
2768 |
} |
|
2769 |
_ACEOF |
|
2770 |
ac_clean_files_save=$ac_clean_files |
|
2771 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
|
2772 |
# Try to create an executable without -o first, disregard a.out. |
|
2773 |
# It will help us diagnose broken compilers, and finding out an intuition |
|
2774 |
# of exeext. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2775 |
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2776 |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2777 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2778 |
# |
2779 |
# List of possible output files, starting from the most likely. |
|
2780 |
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
|
2781 |
# only as a last resort. b.out is created by i960 compilers. |
|
2782 |
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
|
2783 |
# |
|
2784 |
# The IRIX 6 linker writes into existing files which may not be |
|
2785 |
# executable, retaining their permissions. Remove them first so a |
|
2786 |
# subsequent execution test works. |
|
2787 |
ac_rmfiles= |
|
2788 |
for ac_file in $ac_files |
|
2789 |
do |
|
2790 |
case $ac_file in |
|
2791 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
|
2792 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
2793 |
esac |
|
2794 |
done |
|
2795 |
rm -f $ac_rmfiles |
|
2796 |
||
2797 |
if { (ac_try="$ac_link_default" |
|
2798 |
case "(($ac_try" in |
|
2799 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2800 |
*) ac_try_echo=$ac_try;; |
|
2801 |
esac |
|
2802 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2803 |
(eval "$ac_link_default") 2>&5 |
|
1
by Ross Burton
Import upstream version 0.10 |
2804 |
ac_status=$? |
2805 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2806 |
(exit $ac_status); }; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2807 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2808 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|
2809 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
|
2810 |
# so that the user can short-circuit this test for compilers unknown to |
|
2811 |
# Autoconf. |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
2812 |
for ac_file in $ac_files '' |
1
by Ross Burton
Import upstream version 0.10 |
2813 |
do |
2814 |
test -f "$ac_file" || continue |
|
2815 |
case $ac_file in |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2816 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
1
by Ross Burton
Import upstream version 0.10 |
2817 |
;; |
2818 |
[ab].out ) |
|
2819 |
# We found the default executable, but exeext='' is most |
|
2820 |
# certainly right. |
|
2821 |
break;; |
|
2822 |
*.* ) |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2823 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2824 |
then :; else |
|
2825 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
2826 |
fi |
|
2827 |
# We set ac_cv_exeext here because the later test for it is not |
|
2828 |
# safe: cross compilers may not add the suffix if given an `-o' |
|
2829 |
# argument, so we may need to know it at that point already. |
|
2830 |
# Even if this section looks crufty: it has the advantage of |
|
2831 |
# actually working. |
|
1
by Ross Burton
Import upstream version 0.10 |
2832 |
break;; |
2833 |
* ) |
|
2834 |
break;; |
|
2835 |
esac |
|
2836 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2837 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
2838 |
||
1
by Ross Burton
Import upstream version 0.10 |
2839 |
else |
1.2.1
by Ross Burton
Import upstream version 0.15 |
2840 |
ac_file='' |
2841 |
fi |
|
2842 |
||
2843 |
{ echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
2844 |
echo "${ECHO_T}$ac_file" >&6; } |
|
2845 |
if test -z "$ac_file"; then |
|
1
by Ross Burton
Import upstream version 0.10 |
2846 |
echo "$as_me: failed program was:" >&5 |
2847 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
2848 |
||
2849 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
|
2850 |
See \`config.log' for more details." >&5 |
|
2851 |
echo "$as_me: error: C compiler cannot create executables |
|
2852 |
See \`config.log' for more details." >&2;} |
|
2853 |
{ (exit 77); exit 77; }; } |
|
2854 |
fi |
|
2855 |
||
2856 |
ac_exeext=$ac_cv_exeext |
|
2857 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2858 |
# Check that the compiler produces executables we can run. If not, either |
1
by Ross Burton
Import upstream version 0.10 |
2859 |
# the compiler is broken, or we cross compile. |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2860 |
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2861 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2862 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2863 |
# If not cross compiling, check that we can run a simple program. |
|
2864 |
if test "$cross_compiling" != yes; then |
|
2865 |
if { ac_try='./$ac_file' |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2866 |
{ (case "(($ac_try" in |
2867 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2868 |
*) ac_try_echo=$ac_try;; |
|
2869 |
esac |
|
2870 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2871 |
(eval "$ac_try") 2>&5 |
|
1
by Ross Burton
Import upstream version 0.10 |
2872 |
ac_status=$? |
2873 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2874 |
(exit $ac_status); }; }; then |
|
2875 |
cross_compiling=no |
|
2876 |
else |
|
2877 |
if test "$cross_compiling" = maybe; then |
|
2878 |
cross_compiling=yes |
|
2879 |
else |
|
2880 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|
2881 |
If you meant to cross compile, use \`--host'. |
|
2882 |
See \`config.log' for more details." >&5 |
|
2883 |
echo "$as_me: error: cannot run C compiled programs. |
|
2884 |
If you meant to cross compile, use \`--host'. |
|
2885 |
See \`config.log' for more details." >&2;} |
|
2886 |
{ (exit 1); exit 1; }; } |
|
2887 |
fi |
|
2888 |
fi |
|
2889 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2890 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2891 |
echo "${ECHO_T}yes" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2892 |
|
2893 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
|
2894 |
ac_clean_files=$ac_clean_files_save |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2895 |
# Check that the compiler produces executables we can run. If not, either |
1
by Ross Burton
Import upstream version 0.10 |
2896 |
# the compiler is broken, or we cross compile. |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2897 |
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2898 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
|
2899 |
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|
2900 |
echo "${ECHO_T}$cross_compiling" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2901 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2902 |
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2903 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
|
2904 |
if { (ac_try="$ac_link" |
|
2905 |
case "(($ac_try" in |
|
2906 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2907 |
*) ac_try_echo=$ac_try;; |
|
2908 |
esac |
|
2909 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2910 |
(eval "$ac_link") 2>&5 |
|
1
by Ross Burton
Import upstream version 0.10 |
2911 |
ac_status=$? |
2912 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2913 |
(exit $ac_status); }; then |
|
2914 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
2915 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
2916 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
|
2917 |
# `rm'. |
|
2918 |
for ac_file in conftest.exe conftest conftest.*; do |
|
2919 |
test -f "$ac_file" || continue |
|
2920 |
case $ac_file in |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2921 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
1
by Ross Burton
Import upstream version 0.10 |
2922 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2923 |
break;; |
|
2924 |
* ) break;; |
|
2925 |
esac |
|
2926 |
done |
|
2927 |
else |
|
2928 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
|
2929 |
See \`config.log' for more details." >&5 |
|
2930 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
|
2931 |
See \`config.log' for more details." >&2;} |
|
2932 |
{ (exit 1); exit 1; }; } |
|
2933 |
fi |
|
2934 |
||
2935 |
rm -f conftest$ac_cv_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2936 |
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2937 |
echo "${ECHO_T}$ac_cv_exeext" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2938 |
|
2939 |
rm -f conftest.$ac_ext |
|
2940 |
EXEEXT=$ac_cv_exeext |
|
2941 |
ac_exeext=$EXEEXT |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2942 |
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2943 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2944 |
if test "${ac_cv_objext+set}" = set; then |
2945 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2946 |
else |
|
2947 |
cat >conftest.$ac_ext <<_ACEOF |
|
2948 |
/* confdefs.h. */ |
|
2949 |
_ACEOF |
|
2950 |
cat confdefs.h >>conftest.$ac_ext |
|
2951 |
cat >>conftest.$ac_ext <<_ACEOF |
|
2952 |
/* end confdefs.h. */ |
|
2953 |
||
2954 |
int |
|
2955 |
main () |
|
2956 |
{ |
|
2957 |
||
2958 |
; |
|
2959 |
return 0; |
|
2960 |
} |
|
2961 |
_ACEOF |
|
2962 |
rm -f conftest.o conftest.obj |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2963 |
if { (ac_try="$ac_compile" |
2964 |
case "(($ac_try" in |
|
2965 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2966 |
*) ac_try_echo=$ac_try;; |
|
2967 |
esac |
|
2968 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2969 |
(eval "$ac_compile") 2>&5 |
|
1
by Ross Burton
Import upstream version 0.10 |
2970 |
ac_status=$? |
2971 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2972 |
(exit $ac_status); }; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2973 |
for ac_file in conftest.o conftest.obj conftest.*; do |
2974 |
test -f "$ac_file" || continue; |
|
1
by Ross Burton
Import upstream version 0.10 |
2975 |
case $ac_file in |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2976 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
1
by Ross Burton
Import upstream version 0.10 |
2977 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2978 |
break;; |
|
2979 |
esac |
|
2980 |
done |
|
2981 |
else |
|
2982 |
echo "$as_me: failed program was:" >&5 |
|
2983 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
2984 |
||
2985 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
|
2986 |
See \`config.log' for more details." >&5 |
|
2987 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
|
2988 |
See \`config.log' for more details." >&2;} |
|
2989 |
{ (exit 1); exit 1; }; } |
|
2990 |
fi |
|
2991 |
||
2992 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
2993 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2994 |
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2995 |
echo "${ECHO_T}$ac_cv_objext" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
2996 |
OBJEXT=$ac_cv_objext |
2997 |
ac_objext=$OBJEXT |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
2998 |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2999 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
3000 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3001 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3002 |
else |
|
3003 |
cat >conftest.$ac_ext <<_ACEOF |
|
3004 |
/* confdefs.h. */ |
|
3005 |
_ACEOF |
|
3006 |
cat confdefs.h >>conftest.$ac_ext |
|
3007 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3008 |
/* end confdefs.h. */ |
|
3009 |
||
3010 |
int |
|
3011 |
main () |
|
3012 |
{ |
|
3013 |
#ifndef __GNUC__ |
|
3014 |
choke me |
|
3015 |
#endif |
|
3016 |
||
3017 |
; |
|
3018 |
return 0; |
|
3019 |
} |
|
3020 |
_ACEOF |
|
3021 |
rm -f conftest.$ac_objext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3022 |
if { (ac_try="$ac_compile" |
3023 |
case "(($ac_try" in |
|
3024 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3025 |
*) ac_try_echo=$ac_try;; |
|
3026 |
esac |
|
3027 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3028 |
(eval "$ac_compile") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
3029 |
ac_status=$? |
3030 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3031 |
rm -f conftest.er1 |
|
3032 |
cat conftest.err >&5 |
|
3033 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3034 |
(exit $ac_status); } && { |
3035 |
test -z "$ac_c_werror_flag" || |
|
3036 |
test ! -s conftest.err |
|
3037 |
} && test -s conftest.$ac_objext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
3038 |
ac_compiler_gnu=yes |
3039 |
else |
|
3040 |
echo "$as_me: failed program was:" >&5 |
|
3041 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3042 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3043 |
ac_compiler_gnu=no |
1
by Ross Burton
Import upstream version 0.10 |
3044 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3045 |
|
3046 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1
by Ross Burton
Import upstream version 0.10 |
3047 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3048 |
||
3049 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3050 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3051 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
3052 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
3053 |
ac_test_CFLAGS=${CFLAGS+set} |
|
3054 |
ac_save_CFLAGS=$CFLAGS |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3055 |
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3056 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
3057 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
3058 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3059 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3060 |
ac_save_c_werror_flag=$ac_c_werror_flag |
3061 |
ac_c_werror_flag=yes |
|
3062 |
ac_cv_prog_cc_g=no |
|
3063 |
CFLAGS="-g" |
|
3064 |
cat >conftest.$ac_ext <<_ACEOF |
|
3065 |
/* confdefs.h. */ |
|
3066 |
_ACEOF |
|
3067 |
cat confdefs.h >>conftest.$ac_ext |
|
3068 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3069 |
/* end confdefs.h. */ |
|
3070 |
||
3071 |
int |
|
3072 |
main () |
|
3073 |
{ |
|
3074 |
||
3075 |
; |
|
3076 |
return 0; |
|
3077 |
} |
|
3078 |
_ACEOF |
|
3079 |
rm -f conftest.$ac_objext |
|
3080 |
if { (ac_try="$ac_compile" |
|
3081 |
case "(($ac_try" in |
|
3082 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3083 |
*) ac_try_echo=$ac_try;; |
|
3084 |
esac |
|
3085 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3086 |
(eval "$ac_compile") 2>conftest.er1 |
|
3087 |
ac_status=$? |
|
3088 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3089 |
rm -f conftest.er1 |
|
3090 |
cat conftest.err >&5 |
|
3091 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3092 |
(exit $ac_status); } && { |
3093 |
test -z "$ac_c_werror_flag" || |
|
3094 |
test ! -s conftest.err |
|
3095 |
} && test -s conftest.$ac_objext; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3096 |
ac_cv_prog_cc_g=yes |
3097 |
else |
|
3098 |
echo "$as_me: failed program was:" >&5 |
|
3099 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3100 |
||
3101 |
CFLAGS="" |
|
3102 |
cat >conftest.$ac_ext <<_ACEOF |
|
3103 |
/* confdefs.h. */ |
|
3104 |
_ACEOF |
|
3105 |
cat confdefs.h >>conftest.$ac_ext |
|
3106 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3107 |
/* end confdefs.h. */ |
|
3108 |
||
3109 |
int |
|
3110 |
main () |
|
3111 |
{ |
|
3112 |
||
3113 |
; |
|
3114 |
return 0; |
|
3115 |
} |
|
3116 |
_ACEOF |
|
3117 |
rm -f conftest.$ac_objext |
|
3118 |
if { (ac_try="$ac_compile" |
|
3119 |
case "(($ac_try" in |
|
3120 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3121 |
*) ac_try_echo=$ac_try;; |
|
3122 |
esac |
|
3123 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3124 |
(eval "$ac_compile") 2>conftest.er1 |
|
3125 |
ac_status=$? |
|
3126 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3127 |
rm -f conftest.er1 |
|
3128 |
cat conftest.err >&5 |
|
3129 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3130 |
(exit $ac_status); } && { |
3131 |
test -z "$ac_c_werror_flag" || |
|
3132 |
test ! -s conftest.err |
|
3133 |
} && test -s conftest.$ac_objext; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3134 |
: |
3135 |
else |
|
3136 |
echo "$as_me: failed program was:" >&5 |
|
3137 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3138 |
||
3139 |
ac_c_werror_flag=$ac_save_c_werror_flag |
|
3140 |
CFLAGS="-g" |
|
3141 |
cat >conftest.$ac_ext <<_ACEOF |
|
3142 |
/* confdefs.h. */ |
|
3143 |
_ACEOF |
|
3144 |
cat confdefs.h >>conftest.$ac_ext |
|
3145 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3146 |
/* end confdefs.h. */ |
|
3147 |
||
3148 |
int |
|
3149 |
main () |
|
3150 |
{ |
|
3151 |
||
3152 |
; |
|
3153 |
return 0; |
|
3154 |
} |
|
3155 |
_ACEOF |
|
3156 |
rm -f conftest.$ac_objext |
|
3157 |
if { (ac_try="$ac_compile" |
|
3158 |
case "(($ac_try" in |
|
3159 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3160 |
*) ac_try_echo=$ac_try;; |
|
3161 |
esac |
|
3162 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3163 |
(eval "$ac_compile") 2>conftest.er1 |
|
3164 |
ac_status=$? |
|
3165 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3166 |
rm -f conftest.er1 |
|
3167 |
cat conftest.err >&5 |
|
3168 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3169 |
(exit $ac_status); } && { |
3170 |
test -z "$ac_c_werror_flag" || |
|
3171 |
test ! -s conftest.err |
|
3172 |
} && test -s conftest.$ac_objext; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3173 |
ac_cv_prog_cc_g=yes |
3174 |
else |
|
3175 |
echo "$as_me: failed program was:" >&5 |
|
3176 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3177 |
||
3178 |
||
3179 |
fi |
|
3180 |
||
3181 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3182 |
fi |
|
3183 |
||
3184 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3185 |
fi |
|
3186 |
||
3187 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3188 |
ac_c_werror_flag=$ac_save_c_werror_flag |
|
3189 |
fi |
|
3190 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
3191 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
3192 |
if test "$ac_test_CFLAGS" = set; then |
3193 |
CFLAGS=$ac_save_CFLAGS |
|
3194 |
elif test $ac_cv_prog_cc_g = yes; then |
|
3195 |
if test "$GCC" = yes; then |
|
3196 |
CFLAGS="-g -O2" |
|
3197 |
else |
|
3198 |
CFLAGS="-g" |
|
3199 |
fi |
|
3200 |
else |
|
3201 |
if test "$GCC" = yes; then |
|
3202 |
CFLAGS="-O2" |
|
3203 |
else |
|
3204 |
CFLAGS= |
|
3205 |
fi |
|
3206 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3207 |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3208 |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
|
3209 |
if test "${ac_cv_prog_cc_c89+set}" = set; then |
|
1
by Ross Burton
Import upstream version 0.10 |
3210 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3211 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3212 |
ac_cv_prog_cc_c89=no |
1
by Ross Burton
Import upstream version 0.10 |
3213 |
ac_save_CC=$CC |
3214 |
cat >conftest.$ac_ext <<_ACEOF |
|
3215 |
/* confdefs.h. */ |
|
3216 |
_ACEOF |
|
3217 |
cat confdefs.h >>conftest.$ac_ext |
|
3218 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3219 |
/* end confdefs.h. */ |
|
3220 |
#include <stdarg.h> |
|
3221 |
#include <stdio.h> |
|
3222 |
#include <sys/types.h> |
|
3223 |
#include <sys/stat.h> |
|
3224 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
3225 |
struct buf { int x; }; |
|
3226 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
3227 |
static char *e (p, i) |
|
3228 |
char **p; |
|
3229 |
int i; |
|
3230 |
{ |
|
3231 |
return p[i]; |
|
3232 |
} |
|
3233 |
static char *f (char * (*g) (char **, int), char **p, ...) |
|
3234 |
{ |
|
3235 |
char *s; |
|
3236 |
va_list v; |
|
3237 |
va_start (v,p); |
|
3238 |
s = g (p, va_arg (v,int)); |
|
3239 |
va_end (v); |
|
3240 |
return s; |
|
3241 |
} |
|
3242 |
||
3243 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
3244 |
function prototypes and stuff, but not '\xHH' hex character constants. |
|
3245 |
These don't provoke an error unfortunately, instead are silently treated |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3246 |
as 'x'. The following induces an error, until -std is added to get |
1
by Ross Burton
Import upstream version 0.10 |
3247 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3248 |
array size at least. It's necessary to write '\x00'==0 to get something |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3249 |
that's true only with -std. */ |
1
by Ross Burton
Import upstream version 0.10 |
3250 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3251 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3252 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3253 |
inside strings and character constants. */ |
|
3254 |
#define FOO(x) 'x' |
|
3255 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
3256 |
||
1
by Ross Burton
Import upstream version 0.10 |
3257 |
int test (int i, double x); |
3258 |
struct s1 {int (*f) (int a);}; |
|
3259 |
struct s2 {int (*f) (double a);}; |
|
3260 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
3261 |
int argc; |
|
3262 |
char **argv; |
|
3263 |
int |
|
3264 |
main () |
|
3265 |
{ |
|
3266 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
3267 |
; |
|
3268 |
return 0; |
|
3269 |
} |
|
3270 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3271 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3272 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
1
by Ross Burton
Import upstream version 0.10 |
3273 |
do |
3274 |
CC="$ac_save_CC $ac_arg" |
|
3275 |
rm -f conftest.$ac_objext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3276 |
if { (ac_try="$ac_compile" |
3277 |
case "(($ac_try" in |
|
3278 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3279 |
*) ac_try_echo=$ac_try;; |
|
3280 |
esac |
|
3281 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3282 |
(eval "$ac_compile") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
3283 |
ac_status=$? |
3284 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3285 |
rm -f conftest.er1 |
|
3286 |
cat conftest.err >&5 |
|
3287 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3288 |
(exit $ac_status); } && { |
3289 |
test -z "$ac_c_werror_flag" || |
|
3290 |
test ! -s conftest.err |
|
3291 |
} && test -s conftest.$ac_objext; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3292 |
ac_cv_prog_cc_c89=$ac_arg |
1
by Ross Burton
Import upstream version 0.10 |
3293 |
else |
3294 |
echo "$as_me: failed program was:" >&5 |
|
3295 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3296 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3297 |
|
1
by Ross Burton
Import upstream version 0.10 |
3298 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3299 |
|
3300 |
rm -f core conftest.err conftest.$ac_objext |
|
3301 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
1
by Ross Burton
Import upstream version 0.10 |
3302 |
done |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3303 |
rm -f conftest.$ac_ext |
1
by Ross Burton
Import upstream version 0.10 |
3304 |
CC=$ac_save_CC |
3305 |
||
3306 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3307 |
# AC_CACHE_VAL |
3308 |
case "x$ac_cv_prog_cc_c89" in |
|
3309 |
x) |
|
3310 |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
|
3311 |
echo "${ECHO_T}none needed" >&6; } ;; |
|
3312 |
xno) |
|
3313 |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
|
3314 |
echo "${ECHO_T}unsupported" >&6; } ;; |
|
1
by Ross Burton
Import upstream version 0.10 |
3315 |
*) |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3316 |
CC="$CC $ac_cv_prog_cc_c89" |
3317 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
|
3318 |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
|
1
by Ross Burton
Import upstream version 0.10 |
3319 |
esac |
3320 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3321 |
|
1
by Ross Burton
Import upstream version 0.10 |
3322 |
ac_ext=c |
3323 |
ac_cpp='$CPP $CPPFLAGS' |
|
3324 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3325 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3326 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3327 |
DEPDIR="${am__leading_dot}deps" |
|
3328 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3329 |
ac_config_commands="$ac_config_commands depfiles" |
1
by Ross Burton
Import upstream version 0.10 |
3330 |
|
3331 |
||
3332 |
am_make=${MAKE-make} |
|
3333 |
cat > confinc << 'END' |
|
3334 |
am__doit: |
|
3335 |
@echo done |
|
3336 |
.PHONY: am__doit |
|
3337 |
END |
|
3338 |
# If we don't find an include directive, just comment out the code. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3339 |
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3340 |
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
3341 |
am__include="#" |
3342 |
am__quote= |
|
3343 |
_am_result=none |
|
3344 |
# First try GNU make style include. |
|
3345 |
echo "include confinc" > confmf |
|
3346 |
# We grep out `Entering directory' and `Leaving directory' |
|
3347 |
# messages which can occur if `w' ends up in MAKEFLAGS. |
|
3348 |
# In particular we don't look at `^make:' because GNU make might |
|
3349 |
# be invoked under some other name (usually "gmake"), in which |
|
3350 |
# case it prints its new name instead of `make'. |
|
3351 |
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
|
3352 |
am__include=include |
|
3353 |
am__quote= |
|
3354 |
_am_result=GNU |
|
3355 |
fi |
|
3356 |
# Now try BSD make style include. |
|
3357 |
if test "$am__include" = "#"; then |
|
3358 |
echo '.include "confinc"' > confmf |
|
3359 |
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
|
3360 |
am__include=.include |
|
3361 |
am__quote="\"" |
|
3362 |
_am_result=BSD |
|
3363 |
fi |
|
3364 |
fi |
|
3365 |
||
3366 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3367 |
{ echo "$as_me:$LINENO: result: $_am_result" >&5 |
3368 |
echo "${ECHO_T}$_am_result" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
3369 |
rm -f confinc confmf |
3370 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3371 |
# Check whether --enable-dependency-tracking was given. |
1
by Ross Burton
Import upstream version 0.10 |
3372 |
if test "${enable_dependency_tracking+set}" = set; then |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3373 |
enableval=$enable_dependency_tracking; |
3374 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
3375 |
|
3376 |
if test "x$enable_dependency_tracking" != xno; then |
|
3377 |
am_depcomp="$ac_aux_dir/depcomp" |
|
3378 |
AMDEPBACKSLASH='\' |
|
3379 |
fi |
|
3380 |
||
3381 |
||
3382 |
if test "x$enable_dependency_tracking" != xno; then |
|
3383 |
AMDEP_TRUE= |
|
3384 |
AMDEP_FALSE='#' |
|
3385 |
else |
|
3386 |
AMDEP_TRUE='#' |
|
3387 |
AMDEP_FALSE= |
|
3388 |
fi |
|
3389 |
||
3390 |
||
3391 |
||
3392 |
||
3393 |
depcc="$CC" am_compiler_list= |
|
3394 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3395 |
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3396 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
3397 |
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3398 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3399 |
else |
|
3400 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
3401 |
# We make a subdir and do the tests there. Otherwise we can end up |
|
3402 |
# making bogus files that we don't know about and never remove. For |
|
3403 |
# instance it was reported that on HP-UX the gcc test will end up |
|
3404 |
# making a dummy file named `D' -- because `-MD' means `put the output |
|
3405 |
# in D'. |
|
3406 |
mkdir conftest.dir |
|
3407 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
3408 |
# using a relative directory. |
|
3409 |
cp "$am_depcomp" conftest.dir |
|
3410 |
cd conftest.dir |
|
3411 |
# We will build objects and dependencies in a subdirectory because |
|
3412 |
# it helps to detect inapplicable dependency modes. For instance |
|
3413 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
|
3414 |
# side effect of compilation, but ICC will put the dependencies in |
|
3415 |
# the current directory while Tru64 will put them in the object |
|
3416 |
# directory. |
|
3417 |
mkdir sub |
|
3418 |
||
3419 |
am_cv_CC_dependencies_compiler_type=none |
|
3420 |
if test "$am_compiler_list" = ""; then |
|
3421 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
3422 |
fi |
|
3423 |
for depmode in $am_compiler_list; do |
|
3424 |
# Setup a source with many dependencies, because some compilers |
|
3425 |
# like to wrap large dependency lists on column 80 (with \), and |
|
3426 |
# we should not choose a depcomp mode which is confused by this. |
|
3427 |
# |
|
3428 |
# We need to recreate these files for each test, as the compiler may |
|
3429 |
# overwrite some of them when testing with obscure command lines. |
|
3430 |
# This happens at least with the AIX C compiler. |
|
3431 |
: > sub/conftest.c |
|
3432 |
for i in 1 2 3 4 5 6; do |
|
3433 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3434 |
: > sub/conftst$i.h |
1
by Ross Burton
Import upstream version 0.10 |
3435 |
done |
3436 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
3437 |
||
3438 |
case $depmode in |
|
3439 |
nosideeffect) |
|
3440 |
# after this tag, mechanisms are not by side-effect, so they'll |
|
3441 |
# only be used when explicitly requested |
|
3442 |
if test "x$enable_dependency_tracking" = xyes; then |
|
3443 |
continue |
|
3444 |
else |
|
3445 |
break |
|
3446 |
fi |
|
3447 |
;; |
|
3448 |
none) break ;; |
|
3449 |
esac |
|
3450 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
3451 |
# mode. It turns out that the SunPro C++ compiler does not properly |
|
3452 |
# handle `-M -o', and we need to detect this. |
|
3453 |
if depmode=$depmode \ |
|
3454 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
3455 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
3456 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
3457 |
>/dev/null 2>conftest.err && |
|
3458 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
3459 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
3460 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
3461 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3462 |
# (even with -Werror). So we grep stderr for any message |
3463 |
# that says an option was ignored. |
|
3464 |
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
|
1
by Ross Burton
Import upstream version 0.10 |
3465 |
am_cv_CC_dependencies_compiler_type=$depmode |
3466 |
break |
|
3467 |
fi |
|
3468 |
fi |
|
3469 |
done |
|
3470 |
||
3471 |
cd .. |
|
3472 |
rm -rf conftest.dir |
|
3473 |
else |
|
3474 |
am_cv_CC_dependencies_compiler_type=none |
|
3475 |
fi |
|
3476 |
||
3477 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3478 |
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3479 |
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
3480 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3481 |
||
3482 |
||
3483 |
||
3484 |
if |
|
3485 |
test "x$enable_dependency_tracking" != xno \ |
|
3486 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
|
3487 |
am__fastdepCC_TRUE= |
|
3488 |
am__fastdepCC_FALSE='#' |
|
3489 |
else |
|
3490 |
am__fastdepCC_TRUE='#' |
|
3491 |
am__fastdepCC_FALSE= |
|
3492 |
fi |
|
3493 |
||
3494 |
||
3495 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3496 |
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3497 |
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
|
1.1.2
by Sebastien Bacher
Import upstream version 0.12 |
3498 |
if test "${ac_cv_search_strerror+set}" = set; then |
1
by Ross Burton
Import upstream version 0.10 |
3499 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3500 |
else |
|
1.1.2
by Sebastien Bacher
Import upstream version 0.12 |
3501 |
ac_func_search_save_LIBS=$LIBS |
1
by Ross Burton
Import upstream version 0.10 |
3502 |
cat >conftest.$ac_ext <<_ACEOF |
3503 |
/* confdefs.h. */ |
|
3504 |
_ACEOF |
|
3505 |
cat confdefs.h >>conftest.$ac_ext |
|
3506 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3507 |
/* end confdefs.h. */ |
|
3508 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3509 |
/* Override any GCC internal prototype to avoid an error. |
3510 |
Use char because int might match the return type of a GCC |
|
3511 |
builtin and then its argument prototype would still apply. */ |
|
1
by Ross Burton
Import upstream version 0.10 |
3512 |
#ifdef __cplusplus |
3513 |
extern "C" |
|
3514 |
#endif |
|
3515 |
char strerror (); |
|
3516 |
int |
|
3517 |
main () |
|
3518 |
{ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3519 |
return strerror (); |
1
by Ross Burton
Import upstream version 0.10 |
3520 |
; |
3521 |
return 0; |
|
3522 |
} |
|
3523 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3524 |
for ac_lib in '' cposix; do |
3525 |
if test -z "$ac_lib"; then |
|
3526 |
ac_res="none required" |
|
3527 |
else |
|
3528 |
ac_res=-l$ac_lib |
|
1.1.2
by Sebastien Bacher
Import upstream version 0.12 |
3529 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3530 |
fi |
3531 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
3532 |
if { (ac_try="$ac_link" |
|
3533 |
case "(($ac_try" in |
|
3534 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3535 |
*) ac_try_echo=$ac_try;; |
|
3536 |
esac |
|
3537 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3538 |
(eval "$ac_link") 2>conftest.er1 |
|
1.1.2
by Sebastien Bacher
Import upstream version 0.12 |
3539 |
ac_status=$? |
3540 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3541 |
rm -f conftest.er1 |
|
3542 |
cat conftest.err >&5 |
|
3543 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3544 |
(exit $ac_status); } && { |
3545 |
test -z "$ac_c_werror_flag" || |
|
3546 |
test ! -s conftest.err |
|
3547 |
} && test -s conftest$ac_exeext && |
|
3548 |
$as_test_x conftest$ac_exeext; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3549 |
ac_cv_search_strerror=$ac_res |
1.1.2
by Sebastien Bacher
Import upstream version 0.12 |
3550 |
else |
3551 |
echo "$as_me: failed program was:" >&5 |
|
3552 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3553 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3554 |
|
3555 |
fi |
|
3556 |
||
1.2.1
by Ross Burton
Import upstream version 0.15 |
3557 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3558 |
conftest$ac_exeext |
3559 |
if test "${ac_cv_search_strerror+set}" = set; then |
|
3560 |
break |
|
3561 |
fi |
|
3562 |
done |
|
3563 |
if test "${ac_cv_search_strerror+set}" = set; then |
|
3564 |
: |
|
3565 |
else |
|
3566 |
ac_cv_search_strerror=no |
|
3567 |
fi |
|
3568 |
rm conftest.$ac_ext |
|
1.1.2
by Sebastien Bacher
Import upstream version 0.12 |
3569 |
LIBS=$ac_func_search_save_LIBS |
3570 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3571 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3572 |
echo "${ECHO_T}$ac_cv_search_strerror" >&6; } |
|
3573 |
ac_res=$ac_cv_search_strerror |
|
3574 |
if test "$ac_res" != no; then |
|
3575 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
1.1.2
by Sebastien Bacher
Import upstream version 0.12 |
3576 |
|
3577 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
3578 |
|
3579 |
ac_ext=c |
|
3580 |
ac_cpp='$CPP $CPPFLAGS' |
|
3581 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3582 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3583 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3584 |
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3585 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
3586 |
# On Suns, sometimes $CPP names a directory. |
3587 |
if test -n "$CPP" && test -d "$CPP"; then |
|
3588 |
CPP= |
|
3589 |
fi |
|
3590 |
if test -z "$CPP"; then |
|
3591 |
if test "${ac_cv_prog_CPP+set}" = set; then |
|
3592 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3593 |
else |
|
3594 |
# Double quotes because CPP needs to be expanded |
|
3595 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
3596 |
do |
|
3597 |
ac_preproc_ok=false |
|
3598 |
for ac_c_preproc_warn_flag in '' yes |
|
3599 |
do |
|
3600 |
# Use a header file that comes with gcc, so configuring glibc |
|
3601 |
# with a fresh cross-compiler works. |
|
3602 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
3603 |
# <limits.h> exists even on freestanding compilers. |
|
3604 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
3605 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
3606 |
cat >conftest.$ac_ext <<_ACEOF |
|
3607 |
/* confdefs.h. */ |
|
3608 |
_ACEOF |
|
3609 |
cat confdefs.h >>conftest.$ac_ext |
|
3610 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3611 |
/* end confdefs.h. */ |
|
3612 |
#ifdef __STDC__ |
|
3613 |
# include <limits.h> |
|
3614 |
#else |
|
3615 |
# include <assert.h> |
|
3616 |
#endif |
|
3617 |
Syntax error |
|
3618 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3619 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3620 |
case "(($ac_try" in |
|
3621 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3622 |
*) ac_try_echo=$ac_try;; |
|
3623 |
esac |
|
3624 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3625 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
3626 |
ac_status=$? |
3627 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3628 |
rm -f conftest.er1 |
|
3629 |
cat conftest.err >&5 |
|
3630 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3631 |
(exit $ac_status); } >/dev/null && { |
3632 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
3633 |
test ! -s conftest.err |
|
3634 |
}; then |
|
1
by Ross Burton
Import upstream version 0.10 |
3635 |
: |
3636 |
else |
|
3637 |
echo "$as_me: failed program was:" >&5 |
|
3638 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3639 |
||
3640 |
# Broken: fails on valid input. |
|
3641 |
continue |
|
3642 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3643 |
|
1
by Ross Burton
Import upstream version 0.10 |
3644 |
rm -f conftest.err conftest.$ac_ext |
3645 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3646 |
# OK, works on sane cases. Now check whether nonexistent headers |
1
by Ross Burton
Import upstream version 0.10 |
3647 |
# can be detected and how. |
3648 |
cat >conftest.$ac_ext <<_ACEOF |
|
3649 |
/* confdefs.h. */ |
|
3650 |
_ACEOF |
|
3651 |
cat confdefs.h >>conftest.$ac_ext |
|
3652 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3653 |
/* end confdefs.h. */ |
|
3654 |
#include <ac_nonexistent.h> |
|
3655 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3656 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3657 |
case "(($ac_try" in |
|
3658 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3659 |
*) ac_try_echo=$ac_try;; |
|
3660 |
esac |
|
3661 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3662 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
3663 |
ac_status=$? |
3664 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3665 |
rm -f conftest.er1 |
|
3666 |
cat conftest.err >&5 |
|
3667 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3668 |
(exit $ac_status); } >/dev/null && { |
3669 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
3670 |
test ! -s conftest.err |
|
3671 |
}; then |
|
1
by Ross Burton
Import upstream version 0.10 |
3672 |
# Broken: success on invalid input. |
3673 |
continue |
|
3674 |
else |
|
3675 |
echo "$as_me: failed program was:" >&5 |
|
3676 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3677 |
||
3678 |
# Passes both tests. |
|
3679 |
ac_preproc_ok=: |
|
3680 |
break |
|
3681 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3682 |
|
1
by Ross Burton
Import upstream version 0.10 |
3683 |
rm -f conftest.err conftest.$ac_ext |
3684 |
||
3685 |
done |
|
3686 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
3687 |
rm -f conftest.err conftest.$ac_ext |
|
3688 |
if $ac_preproc_ok; then |
|
3689 |
break |
|
3690 |
fi |
|
3691 |
||
3692 |
done |
|
3693 |
ac_cv_prog_CPP=$CPP |
|
3694 |
||
3695 |
fi |
|
3696 |
CPP=$ac_cv_prog_CPP |
|
3697 |
else |
|
3698 |
ac_cv_prog_CPP=$CPP |
|
3699 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3700 |
{ echo "$as_me:$LINENO: result: $CPP" >&5 |
3701 |
echo "${ECHO_T}$CPP" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
3702 |
ac_preproc_ok=false |
3703 |
for ac_c_preproc_warn_flag in '' yes |
|
3704 |
do |
|
3705 |
# Use a header file that comes with gcc, so configuring glibc |
|
3706 |
# with a fresh cross-compiler works. |
|
3707 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
3708 |
# <limits.h> exists even on freestanding compilers. |
|
3709 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
3710 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
3711 |
cat >conftest.$ac_ext <<_ACEOF |
|
3712 |
/* confdefs.h. */ |
|
3713 |
_ACEOF |
|
3714 |
cat confdefs.h >>conftest.$ac_ext |
|
3715 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3716 |
/* end confdefs.h. */ |
|
3717 |
#ifdef __STDC__ |
|
3718 |
# include <limits.h> |
|
3719 |
#else |
|
3720 |
# include <assert.h> |
|
3721 |
#endif |
|
3722 |
Syntax error |
|
3723 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3724 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3725 |
case "(($ac_try" in |
|
3726 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3727 |
*) ac_try_echo=$ac_try;; |
|
3728 |
esac |
|
3729 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3730 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
3731 |
ac_status=$? |
3732 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3733 |
rm -f conftest.er1 |
|
3734 |
cat conftest.err >&5 |
|
3735 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3736 |
(exit $ac_status); } >/dev/null && { |
3737 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
3738 |
test ! -s conftest.err |
|
3739 |
}; then |
|
1
by Ross Burton
Import upstream version 0.10 |
3740 |
: |
3741 |
else |
|
3742 |
echo "$as_me: failed program was:" >&5 |
|
3743 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3744 |
||
3745 |
# Broken: fails on valid input. |
|
3746 |
continue |
|
3747 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3748 |
|
1
by Ross Burton
Import upstream version 0.10 |
3749 |
rm -f conftest.err conftest.$ac_ext |
3750 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3751 |
# OK, works on sane cases. Now check whether nonexistent headers |
1
by Ross Burton
Import upstream version 0.10 |
3752 |
# can be detected and how. |
3753 |
cat >conftest.$ac_ext <<_ACEOF |
|
3754 |
/* confdefs.h. */ |
|
3755 |
_ACEOF |
|
3756 |
cat confdefs.h >>conftest.$ac_ext |
|
3757 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3758 |
/* end confdefs.h. */ |
|
3759 |
#include <ac_nonexistent.h> |
|
3760 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3761 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3762 |
case "(($ac_try" in |
|
3763 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3764 |
*) ac_try_echo=$ac_try;; |
|
3765 |
esac |
|
3766 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3767 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
3768 |
ac_status=$? |
3769 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3770 |
rm -f conftest.er1 |
|
3771 |
cat conftest.err >&5 |
|
3772 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3773 |
(exit $ac_status); } >/dev/null && { |
3774 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
3775 |
test ! -s conftest.err |
|
3776 |
}; then |
|
1
by Ross Burton
Import upstream version 0.10 |
3777 |
# Broken: success on invalid input. |
3778 |
continue |
|
3779 |
else |
|
3780 |
echo "$as_me: failed program was:" >&5 |
|
3781 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3782 |
||
3783 |
# Passes both tests. |
|
3784 |
ac_preproc_ok=: |
|
3785 |
break |
|
3786 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3787 |
|
1
by Ross Burton
Import upstream version 0.10 |
3788 |
rm -f conftest.err conftest.$ac_ext |
3789 |
||
3790 |
done |
|
3791 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
3792 |
rm -f conftest.err conftest.$ac_ext |
|
3793 |
if $ac_preproc_ok; then |
|
3794 |
: |
|
3795 |
else |
|
3796 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
|
3797 |
See \`config.log' for more details." >&5 |
|
3798 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
3799 |
See \`config.log' for more details." >&2;} |
|
3800 |
{ (exit 1); exit 1; }; } |
|
3801 |
fi |
|
3802 |
||
3803 |
ac_ext=c |
|
3804 |
ac_cpp='$CPP $CPPFLAGS' |
|
3805 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3806 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3807 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3808 |
||
3809 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3810 |
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3811 |
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
|
3812 |
if test "${ac_cv_path_GREP+set}" = set; then |
|
3813 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3814 |
else |
|
3815 |
# Extract the first word of "grep ggrep" to use in msg output |
|
3816 |
if test -z "$GREP"; then |
|
3817 |
set dummy grep ggrep; ac_prog_name=$2 |
|
3818 |
if test "${ac_cv_path_GREP+set}" = set; then |
|
3819 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3820 |
else |
|
3821 |
ac_path_GREP_found=false |
|
3822 |
# Loop through the user's path and test for each of PROGNAME-LIST |
|
3823 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3824 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
3825 |
do |
|
3826 |
IFS=$as_save_IFS |
|
3827 |
test -z "$as_dir" && as_dir=. |
|
3828 |
for ac_prog in grep ggrep; do |
|
3829 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3830 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3831 |
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3832 |
# Check for GNU ac_path_GREP and select it if it is found. |
3833 |
# Check for GNU $ac_path_GREP |
|
3834 |
case `"$ac_path_GREP" --version 2>&1` in |
|
3835 |
*GNU*) |
|
3836 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
3837 |
*) |
|
3838 |
ac_count=0 |
|
3839 |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
|
3840 |
while : |
|
3841 |
do |
|
3842 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
3843 |
mv "conftest.tmp" "conftest.in" |
|
3844 |
cp "conftest.in" "conftest.nl" |
|
3845 |
echo 'GREP' >> "conftest.nl" |
|
3846 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
3847 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
3848 |
ac_count=`expr $ac_count + 1` |
|
3849 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
3850 |
# Best one so far, save it but keep looking for a better one |
|
3851 |
ac_cv_path_GREP="$ac_path_GREP" |
|
3852 |
ac_path_GREP_max=$ac_count |
|
3853 |
fi |
|
3854 |
# 10*(2^10) chars as input seems more than enough |
|
3855 |
test $ac_count -gt 10 && break |
|
3856 |
done |
|
3857 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
3858 |
esac |
|
3859 |
||
3860 |
||
3861 |
$ac_path_GREP_found && break 3 |
|
3862 |
done |
|
3863 |
done |
|
3864 |
||
3865 |
done |
|
3866 |
IFS=$as_save_IFS |
|
3867 |
||
3868 |
||
3869 |
fi |
|
3870 |
||
3871 |
GREP="$ac_cv_path_GREP" |
|
3872 |
if test -z "$GREP"; then |
|
3873 |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
3874 |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
3875 |
{ (exit 1); exit 1; }; } |
|
3876 |
fi |
|
3877 |
||
3878 |
else |
|
3879 |
ac_cv_path_GREP=$GREP |
|
3880 |
fi |
|
3881 |
||
3882 |
||
3883 |
fi |
|
3884 |
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
|
3885 |
echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
|
3886 |
GREP="$ac_cv_path_GREP" |
|
3887 |
||
3888 |
||
3889 |
{ echo "$as_me:$LINENO: checking for egrep" >&5 |
|
3890 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
|
3891 |
if test "${ac_cv_path_EGREP+set}" = set; then |
|
3892 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3893 |
else |
|
3894 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
3895 |
then ac_cv_path_EGREP="$GREP -E" |
|
3896 |
else |
|
3897 |
# Extract the first word of "egrep" to use in msg output |
|
3898 |
if test -z "$EGREP"; then |
|
3899 |
set dummy egrep; ac_prog_name=$2 |
|
3900 |
if test "${ac_cv_path_EGREP+set}" = set; then |
|
3901 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3902 |
else |
|
3903 |
ac_path_EGREP_found=false |
|
3904 |
# Loop through the user's path and test for each of PROGNAME-LIST |
|
3905 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3906 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
3907 |
do |
|
3908 |
IFS=$as_save_IFS |
|
3909 |
test -z "$as_dir" && as_dir=. |
|
3910 |
for ac_prog in egrep; do |
|
3911 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3912 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
3913 |
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3914 |
# Check for GNU ac_path_EGREP and select it if it is found. |
3915 |
# Check for GNU $ac_path_EGREP |
|
3916 |
case `"$ac_path_EGREP" --version 2>&1` in |
|
3917 |
*GNU*) |
|
3918 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
3919 |
*) |
|
3920 |
ac_count=0 |
|
3921 |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
|
3922 |
while : |
|
3923 |
do |
|
3924 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
3925 |
mv "conftest.tmp" "conftest.in" |
|
3926 |
cp "conftest.in" "conftest.nl" |
|
3927 |
echo 'EGREP' >> "conftest.nl" |
|
3928 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
3929 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
3930 |
ac_count=`expr $ac_count + 1` |
|
3931 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
3932 |
# Best one so far, save it but keep looking for a better one |
|
3933 |
ac_cv_path_EGREP="$ac_path_EGREP" |
|
3934 |
ac_path_EGREP_max=$ac_count |
|
3935 |
fi |
|
3936 |
# 10*(2^10) chars as input seems more than enough |
|
3937 |
test $ac_count -gt 10 && break |
|
3938 |
done |
|
3939 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
3940 |
esac |
|
3941 |
||
3942 |
||
3943 |
$ac_path_EGREP_found && break 3 |
|
3944 |
done |
|
3945 |
done |
|
3946 |
||
3947 |
done |
|
3948 |
IFS=$as_save_IFS |
|
3949 |
||
3950 |
||
3951 |
fi |
|
3952 |
||
3953 |
EGREP="$ac_cv_path_EGREP" |
|
3954 |
if test -z "$EGREP"; then |
|
3955 |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
3956 |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
3957 |
{ (exit 1); exit 1; }; } |
|
3958 |
fi |
|
3959 |
||
3960 |
else |
|
3961 |
ac_cv_path_EGREP=$EGREP |
|
3962 |
fi |
|
3963 |
||
3964 |
||
3965 |
fi |
|
3966 |
fi |
|
3967 |
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
|
3968 |
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
|
3969 |
EGREP="$ac_cv_path_EGREP" |
|
3970 |
||
3971 |
||
3972 |
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
3973 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
3974 |
if test "${ac_cv_header_stdc+set}" = set; then |
3975 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3976 |
else |
|
3977 |
cat >conftest.$ac_ext <<_ACEOF |
|
3978 |
/* confdefs.h. */ |
|
3979 |
_ACEOF |
|
3980 |
cat confdefs.h >>conftest.$ac_ext |
|
3981 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3982 |
/* end confdefs.h. */ |
|
3983 |
#include <stdlib.h> |
|
3984 |
#include <stdarg.h> |
|
3985 |
#include <string.h> |
|
3986 |
#include <float.h> |
|
3987 |
||
3988 |
int |
|
3989 |
main () |
|
3990 |
{ |
|
3991 |
||
3992 |
; |
|
3993 |
return 0; |
|
3994 |
} |
|
3995 |
_ACEOF |
|
3996 |
rm -f conftest.$ac_objext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
3997 |
if { (ac_try="$ac_compile" |
3998 |
case "(($ac_try" in |
|
3999 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4000 |
*) ac_try_echo=$ac_try;; |
|
4001 |
esac |
|
4002 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
4003 |
(eval "$ac_compile") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
4004 |
ac_status=$? |
4005 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4006 |
rm -f conftest.er1 |
|
4007 |
cat conftest.err >&5 |
|
4008 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
4009 |
(exit $ac_status); } && { |
4010 |
test -z "$ac_c_werror_flag" || |
|
4011 |
test ! -s conftest.err |
|
4012 |
} && test -s conftest.$ac_objext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
4013 |
ac_cv_header_stdc=yes |
4014 |
else |
|
4015 |
echo "$as_me: failed program was:" >&5 |
|
4016 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4017 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4018 |
ac_cv_header_stdc=no |
1
by Ross Burton
Import upstream version 0.10 |
4019 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4020 |
|
4021 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1
by Ross Burton
Import upstream version 0.10 |
4022 |
|
4023 |
if test $ac_cv_header_stdc = yes; then |
|
4024 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
4025 |
cat >conftest.$ac_ext <<_ACEOF |
|
4026 |
/* confdefs.h. */ |
|
4027 |
_ACEOF |
|
4028 |
cat confdefs.h >>conftest.$ac_ext |
|
4029 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4030 |
/* end confdefs.h. */ |
|
4031 |
#include <string.h> |
|
4032 |
||
4033 |
_ACEOF |
|
4034 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
4035 |
$EGREP "memchr" >/dev/null 2>&1; then |
|
4036 |
: |
|
4037 |
else |
|
4038 |
ac_cv_header_stdc=no |
|
4039 |
fi |
|
4040 |
rm -f conftest* |
|
4041 |
||
4042 |
fi |
|
4043 |
||
4044 |
if test $ac_cv_header_stdc = yes; then |
|
4045 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
4046 |
cat >conftest.$ac_ext <<_ACEOF |
|
4047 |
/* confdefs.h. */ |
|
4048 |
_ACEOF |
|
4049 |
cat confdefs.h >>conftest.$ac_ext |
|
4050 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4051 |
/* end confdefs.h. */ |
|
4052 |
#include <stdlib.h> |
|
4053 |
||
4054 |
_ACEOF |
|
4055 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
4056 |
$EGREP "free" >/dev/null 2>&1; then |
|
4057 |
: |
|
4058 |
else |
|
4059 |
ac_cv_header_stdc=no |
|
4060 |
fi |
|
4061 |
rm -f conftest* |
|
4062 |
||
4063 |
fi |
|
4064 |
||
4065 |
if test $ac_cv_header_stdc = yes; then |
|
4066 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
4067 |
if test "$cross_compiling" = yes; then |
|
4068 |
: |
|
4069 |
else |
|
4070 |
cat >conftest.$ac_ext <<_ACEOF |
|
4071 |
/* confdefs.h. */ |
|
4072 |
_ACEOF |
|
4073 |
cat confdefs.h >>conftest.$ac_ext |
|
4074 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4075 |
/* end confdefs.h. */ |
|
4076 |
#include <ctype.h> |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4077 |
#include <stdlib.h> |
1
by Ross Burton
Import upstream version 0.10 |
4078 |
#if ((' ' & 0x0FF) == 0x020) |
4079 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
4080 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
4081 |
#else |
|
4082 |
# define ISLOWER(c) \ |
|
4083 |
(('a' <= (c) && (c) <= 'i') \ |
|
4084 |
|| ('j' <= (c) && (c) <= 'r') \ |
|
4085 |
|| ('s' <= (c) && (c) <= 'z')) |
|
4086 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
4087 |
#endif |
|
4088 |
||
4089 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
4090 |
int |
|
4091 |
main () |
|
4092 |
{ |
|
4093 |
int i; |
|
4094 |
for (i = 0; i < 256; i++) |
|
4095 |
if (XOR (islower (i), ISLOWER (i)) |
|
4096 |
|| toupper (i) != TOUPPER (i)) |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4097 |
return 2; |
4098 |
return 0; |
|
1
by Ross Burton
Import upstream version 0.10 |
4099 |
} |
4100 |
_ACEOF |
|
4101 |
rm -f conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4102 |
if { (ac_try="$ac_link" |
4103 |
case "(($ac_try" in |
|
4104 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4105 |
*) ac_try_echo=$ac_try;; |
|
4106 |
esac |
|
4107 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
4108 |
(eval "$ac_link") 2>&5 |
|
1
by Ross Burton
Import upstream version 0.10 |
4109 |
ac_status=$? |
4110 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4111 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4112 |
{ (case "(($ac_try" in |
4113 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4114 |
*) ac_try_echo=$ac_try;; |
|
4115 |
esac |
|
4116 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
4117 |
(eval "$ac_try") 2>&5 |
|
1
by Ross Burton
Import upstream version 0.10 |
4118 |
ac_status=$? |
4119 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4120 |
(exit $ac_status); }; }; then |
|
4121 |
: |
|
4122 |
else |
|
4123 |
echo "$as_me: program exited with status $ac_status" >&5 |
|
4124 |
echo "$as_me: failed program was:" >&5 |
|
4125 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4126 |
||
4127 |
( exit $ac_status ) |
|
4128 |
ac_cv_header_stdc=no |
|
4129 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4130 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4131 |
fi |
|
4132 |
||
4133 |
||
4134 |
fi |
|
4135 |
fi |
|
4136 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
4137 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4138 |
if test $ac_cv_header_stdc = yes; then |
4139 |
||
4140 |
cat >>confdefs.h <<\_ACEOF |
|
4141 |
#define STDC_HEADERS 1 |
|
4142 |
_ACEOF |
|
4143 |
||
4144 |
fi |
|
4145 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4146 |
# Check whether --enable-shared was given. |
1
by Ross Burton
Import upstream version 0.10 |
4147 |
if test "${enable_shared+set}" = set; then |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4148 |
enableval=$enable_shared; p=${PACKAGE-default} |
1
by Ross Burton
Import upstream version 0.10 |
4149 |
case $enableval in |
4150 |
yes) enable_shared=yes ;; |
|
4151 |
no) enable_shared=no ;; |
|
4152 |
*) |
|
4153 |
enable_shared=no |
|
4154 |
# Look at the argument we got. We use all the common list separators. |
|
4155 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
4156 |
for pkg in $enableval; do |
|
4157 |
IFS="$lt_save_ifs" |
|
4158 |
if test "X$pkg" = "X$p"; then |
|
4159 |
enable_shared=yes |
|
4160 |
fi |
|
4161 |
done |
|
4162 |
IFS="$lt_save_ifs" |
|
4163 |
;; |
|
4164 |
esac |
|
4165 |
else |
|
4166 |
enable_shared=yes |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4167 |
fi |
4168 |
||
4169 |
||
4170 |
# Check whether --enable-static was given. |
|
1
by Ross Burton
Import upstream version 0.10 |
4171 |
if test "${enable_static+set}" = set; then |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4172 |
enableval=$enable_static; p=${PACKAGE-default} |
1
by Ross Burton
Import upstream version 0.10 |
4173 |
case $enableval in |
4174 |
yes) enable_static=yes ;; |
|
4175 |
no) enable_static=no ;; |
|
4176 |
*) |
|
4177 |
enable_static=no |
|
4178 |
# Look at the argument we got. We use all the common list separators. |
|
4179 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
4180 |
for pkg in $enableval; do |
|
4181 |
IFS="$lt_save_ifs" |
|
4182 |
if test "X$pkg" = "X$p"; then |
|
4183 |
enable_static=yes |
|
4184 |
fi |
|
4185 |
done |
|
4186 |
IFS="$lt_save_ifs" |
|
4187 |
;; |
|
4188 |
esac |
|
4189 |
else |
|
4190 |
enable_static=yes |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4191 |
fi |
4192 |
||
4193 |
||
4194 |
# Check whether --enable-fast-install was given. |
|
1
by Ross Burton
Import upstream version 0.10 |
4195 |
if test "${enable_fast_install+set}" = set; then |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4196 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
1
by Ross Burton
Import upstream version 0.10 |
4197 |
case $enableval in |
4198 |
yes) enable_fast_install=yes ;; |
|
4199 |
no) enable_fast_install=no ;; |
|
4200 |
*) |
|
4201 |
enable_fast_install=no |
|
4202 |
# Look at the argument we got. We use all the common list separators. |
|
4203 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
4204 |
for pkg in $enableval; do |
|
4205 |
IFS="$lt_save_ifs" |
|
4206 |
if test "X$pkg" = "X$p"; then |
|
4207 |
enable_fast_install=yes |
|
4208 |
fi |
|
4209 |
done |
|
4210 |
IFS="$lt_save_ifs" |
|
4211 |
;; |
|
4212 |
esac |
|
4213 |
else |
|
4214 |
enable_fast_install=yes |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4215 |
fi |
4216 |
||
1
by Ross Burton
Import upstream version 0.10 |
4217 |
|
4218 |
# Make sure we can run config.sub. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4219 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
4220 |
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
|
4221 |
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
|
1
by Ross Burton
Import upstream version 0.10 |
4222 |
{ (exit 1); exit 1; }; } |
4223 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4224 |
{ echo "$as_me:$LINENO: checking build system type" >&5 |
4225 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4226 |
if test "${ac_cv_build+set}" = set; then |
4227 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4228 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4229 |
ac_build_alias=$build_alias |
4230 |
test "x$ac_build_alias" = x && |
|
4231 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
|
4232 |
test "x$ac_build_alias" = x && |
|
1
by Ross Burton
Import upstream version 0.10 |
4233 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
4234 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
4235 |
{ (exit 1); exit 1; }; } |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4236 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
4237 |
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
|
4238 |
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
|
1
by Ross Burton
Import upstream version 0.10 |
4239 |
{ (exit 1); exit 1; }; } |
4240 |
||
4241 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4242 |
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
4243 |
echo "${ECHO_T}$ac_cv_build" >&6; } |
|
4244 |
case $ac_cv_build in |
|
4245 |
*-*-*) ;; |
|
4246 |
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
|
4247 |
echo "$as_me: error: invalid value of canonical build" >&2;} |
|
4248 |
{ (exit 1); exit 1; }; };; |
|
4249 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
4250 |
build=$ac_cv_build |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4251 |
ac_save_IFS=$IFS; IFS='-' |
4252 |
set x $ac_cv_build |
|
4253 |
shift |
|
4254 |
build_cpu=$1 |
|
4255 |
build_vendor=$2 |
|
4256 |
shift; shift |
|
4257 |
# Remember, the first character of IFS is used to create $*, |
|
4258 |
# except with old shells: |
|
4259 |
build_os=$* |
|
4260 |
IFS=$ac_save_IFS |
|
4261 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
|
4262 |
||
4263 |
||
4264 |
{ echo "$as_me:$LINENO: checking host system type" >&5 |
|
4265 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4266 |
if test "${ac_cv_host+set}" = set; then |
4267 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4268 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4269 |
if test "x$host_alias" = x; then |
4270 |
ac_cv_host=$ac_cv_build |
|
4271 |
else |
|
4272 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
|
4273 |
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
|
4274 |
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
|
1
by Ross Burton
Import upstream version 0.10 |
4275 |
{ (exit 1); exit 1; }; } |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4276 |
fi |
1
by Ross Burton
Import upstream version 0.10 |
4277 |
|
4278 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4279 |
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
4280 |
echo "${ECHO_T}$ac_cv_host" >&6; } |
|
4281 |
case $ac_cv_host in |
|
4282 |
*-*-*) ;; |
|
4283 |
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
|
4284 |
echo "$as_me: error: invalid value of canonical host" >&2;} |
|
4285 |
{ (exit 1); exit 1; }; };; |
|
4286 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
4287 |
host=$ac_cv_host |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4288 |
ac_save_IFS=$IFS; IFS='-' |
4289 |
set x $ac_cv_host |
|
4290 |
shift |
|
4291 |
host_cpu=$1 |
|
4292 |
host_vendor=$2 |
|
4293 |
shift; shift |
|
4294 |
# Remember, the first character of IFS is used to create $*, |
|
4295 |
# except with old shells: |
|
4296 |
host_os=$* |
|
4297 |
IFS=$ac_save_IFS |
|
4298 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
|
4299 |
||
4300 |
||
4301 |
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
|
4302 |
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4303 |
if test "${lt_cv_path_SED+set}" = set; then |
4304 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4305 |
else |
|
4306 |
# Loop through the user's path and test for sed and gsed. |
|
4307 |
# Then use that list of sed's as ones to test for truncation. |
|
4308 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4309 |
for as_dir in $PATH |
|
4310 |
do |
|
4311 |
IFS=$as_save_IFS |
|
4312 |
test -z "$as_dir" && as_dir=. |
|
4313 |
for lt_ac_prog in sed gsed; do |
|
4314 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4315 |
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
|
4316 |
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
|
4317 |
fi |
|
4318 |
done |
|
4319 |
done |
|
4320 |
done |
|
4321 |
lt_ac_max=0 |
|
4322 |
lt_ac_count=0 |
|
4323 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
|
4324 |
# along with /bin/sed that truncates output. |
|
4325 |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4326 |
test ! -f $lt_ac_sed && continue |
1
by Ross Burton
Import upstream version 0.10 |
4327 |
cat /dev/null > conftest.in |
4328 |
lt_ac_count=0 |
|
4329 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
|
4330 |
# Check for GNU sed and select it if it is found. |
|
4331 |
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
|
4332 |
lt_cv_path_SED=$lt_ac_sed |
|
4333 |
break |
|
4334 |
fi |
|
4335 |
while true; do |
|
4336 |
cat conftest.in conftest.in >conftest.tmp |
|
4337 |
mv conftest.tmp conftest.in |
|
4338 |
cp conftest.in conftest.nl |
|
4339 |
echo >>conftest.nl |
|
4340 |
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
|
4341 |
cmp -s conftest.out conftest.nl || break |
|
4342 |
# 10000 chars as input seems more than enough |
|
4343 |
test $lt_ac_count -gt 10 && break |
|
4344 |
lt_ac_count=`expr $lt_ac_count + 1` |
|
4345 |
if test $lt_ac_count -gt $lt_ac_max; then |
|
4346 |
lt_ac_max=$lt_ac_count |
|
4347 |
lt_cv_path_SED=$lt_ac_sed |
|
4348 |
fi |
|
4349 |
done |
|
4350 |
done |
|
4351 |
||
4352 |
fi |
|
4353 |
||
4354 |
SED=$lt_cv_path_SED |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4355 |
{ echo "$as_me:$LINENO: result: $SED" >&5 |
4356 |
echo "${ECHO_T}$SED" >&6; } |
|
4357 |
||
4358 |
||
4359 |
# Check whether --with-gnu-ld was given. |
|
1
by Ross Burton
Import upstream version 0.10 |
4360 |
if test "${with_gnu_ld+set}" = set; then |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4361 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
1
by Ross Burton
Import upstream version 0.10 |
4362 |
else |
4363 |
with_gnu_ld=no |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4364 |
fi |
4365 |
||
1
by Ross Burton
Import upstream version 0.10 |
4366 |
ac_prog=ld |
4367 |
if test "$GCC" = yes; then |
|
4368 |
# Check if gcc -print-prog-name=ld gives a path. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4369 |
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4370 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4371 |
case $host in |
4372 |
*-*-mingw*) |
|
4373 |
# gcc leaves a trailing carriage return which upsets mingw |
|
4374 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
4375 |
*) |
|
4376 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
4377 |
esac |
|
4378 |
case $ac_prog in |
|
4379 |
# Accept absolute paths. |
|
4380 |
[\\/]* | ?:[\\/]*) |
|
4381 |
re_direlt='/[^/][^/]*/\.\./' |
|
4382 |
# Canonicalize the pathname of ld |
|
4383 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
4384 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
4385 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
4386 |
done |
|
4387 |
test -z "$LD" && LD="$ac_prog" |
|
4388 |
;; |
|
4389 |
"") |
|
4390 |
# If it fails, then pretend we aren't using GCC. |
|
4391 |
ac_prog=ld |
|
4392 |
;; |
|
4393 |
*) |
|
4394 |
# If it is relative, then search for the first ld in PATH. |
|
4395 |
with_gnu_ld=unknown |
|
4396 |
;; |
|
4397 |
esac |
|
4398 |
elif test "$with_gnu_ld" = yes; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4399 |
{ echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4400 |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4401 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4402 |
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4403 |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4404 |
fi |
4405 |
if test "${lt_cv_path_LD+set}" = set; then |
|
4406 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4407 |
else |
|
4408 |
if test -z "$LD"; then |
|
4409 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
4410 |
for ac_dir in $PATH; do |
|
4411 |
IFS="$lt_save_ifs" |
|
4412 |
test -z "$ac_dir" && ac_dir=. |
|
4413 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
4414 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
|
4415 |
# Check to see if the program is GNU ld. I'd rather use --version, |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4416 |
# but apparently some variants of GNU ld only accept -v. |
1
by Ross Burton
Import upstream version 0.10 |
4417 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
4418 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
4419 |
*GNU* | *'with BFD'*) |
|
4420 |
test "$with_gnu_ld" != no && break |
|
4421 |
;; |
|
4422 |
*) |
|
4423 |
test "$with_gnu_ld" != yes && break |
|
4424 |
;; |
|
4425 |
esac |
|
4426 |
fi |
|
4427 |
done |
|
4428 |
IFS="$lt_save_ifs" |
|
4429 |
else |
|
4430 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
4431 |
fi |
|
4432 |
fi |
|
4433 |
||
4434 |
LD="$lt_cv_path_LD" |
|
4435 |
if test -n "$LD"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4436 |
{ echo "$as_me:$LINENO: result: $LD" >&5 |
4437 |
echo "${ECHO_T}$LD" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4438 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4439 |
{ echo "$as_me:$LINENO: result: no" >&5 |
4440 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4441 |
fi |
4442 |
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
4443 |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
4444 |
{ (exit 1); exit 1; }; } |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4445 |
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4446 |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4447 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4448 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4449 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4450 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
1
by Ross Burton
Import upstream version 0.10 |
4451 |
case `$LD -v 2>&1 </dev/null` in |
4452 |
*GNU* | *'with BFD'*) |
|
4453 |
lt_cv_prog_gnu_ld=yes |
|
4454 |
;; |
|
4455 |
*) |
|
4456 |
lt_cv_prog_gnu_ld=no |
|
4457 |
;; |
|
4458 |
esac |
|
4459 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4460 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4461 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4462 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
4463 |
||
4464 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4465 |
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4466 |
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4467 |
if test "${lt_cv_ld_reload_flag+set}" = set; then |
4468 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4469 |
else |
|
4470 |
lt_cv_ld_reload_flag='-r' |
|
4471 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4472 |
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4473 |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4474 |
reload_flag=$lt_cv_ld_reload_flag |
4475 |
case $reload_flag in |
|
4476 |
"" | " "*) ;; |
|
4477 |
*) reload_flag=" $reload_flag" ;; |
|
4478 |
esac |
|
4479 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
4480 |
case $host_os in |
|
4481 |
darwin*) |
|
4482 |
if test "$GCC" = yes; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4483 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
1
by Ross Burton
Import upstream version 0.10 |
4484 |
else |
4485 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
4486 |
fi |
|
4487 |
;; |
|
4488 |
esac |
|
4489 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4490 |
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4491 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4492 |
if test "${lt_cv_path_NM+set}" = set; then |
4493 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4494 |
else |
|
4495 |
if test -n "$NM"; then |
|
4496 |
# Let the user override the test. |
|
4497 |
lt_cv_path_NM="$NM" |
|
4498 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4499 |
lt_nm_to_check="${ac_tool_prefix}nm" |
4500 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
|
4501 |
lt_nm_to_check="$lt_nm_to_check nm" |
|
4502 |
fi |
|
4503 |
for lt_tmp_nm in $lt_nm_to_check; do |
|
4504 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
4505 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
|
4506 |
IFS="$lt_save_ifs" |
|
4507 |
test -z "$ac_dir" && ac_dir=. |
|
4508 |
tmp_nm="$ac_dir/$lt_tmp_nm" |
|
4509 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
|
4510 |
# Check to see if the nm accepts a BSD-compat flag. |
|
4511 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
4512 |
# nm: unknown option "B" ignored |
|
4513 |
# Tru64's nm complains that /dev/null is an invalid object file |
|
4514 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
|
4515 |
*/dev/null* | *'Invalid file or object type'*) |
|
4516 |
lt_cv_path_NM="$tmp_nm -B" |
|
1
by Ross Burton
Import upstream version 0.10 |
4517 |
break |
4518 |
;; |
|
4519 |
*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4520 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4521 |
*/dev/null*) |
|
4522 |
lt_cv_path_NM="$tmp_nm -p" |
|
4523 |
break |
|
4524 |
;; |
|
4525 |
*) |
|
4526 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
4527 |
continue # so that we can try to find one that supports BSD flags |
|
4528 |
;; |
|
4529 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
4530 |
;; |
4531 |
esac |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4532 |
fi |
4533 |
done |
|
4534 |
IFS="$lt_save_ifs" |
|
1
by Ross Burton
Import upstream version 0.10 |
4535 |
done |
4536 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
|
4537 |
fi |
|
4538 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4539 |
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4540 |
echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4541 |
NM="$lt_cv_path_NM" |
4542 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4543 |
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4544 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4545 |
LN_S=$as_ln_s |
4546 |
if test "$LN_S" = "ln -s"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4547 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
4548 |
echo "${ECHO_T}yes" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4549 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4550 |
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4551 |
echo "${ECHO_T}no, using $LN_S" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4552 |
fi |
4553 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4554 |
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
4555 |
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4556 |
if test "${lt_cv_deplibs_check_method+set}" = set; then |
4557 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4558 |
else |
|
4559 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
4560 |
lt_cv_file_magic_test_file= |
|
4561 |
lt_cv_deplibs_check_method='unknown' |
|
4562 |
# Need to set the preceding variable on all platforms that support |
|
4563 |
# interlibrary dependencies. |
|
4564 |
# 'none' -- dependencies not supported. |
|
4565 |
# `unknown' -- same as none, but documents that we really don't know. |
|
4566 |
# 'pass_all' -- all dependencies passed with no checks. |
|
4567 |
# 'test_compile' -- check by making test program. |
|
4568 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
|
4569 |
# which responds to the $file_magic_cmd with a given extended regex. |
|
4570 |
# If you have `file' or equivalent on your system and you're not sure |
|
4571 |
# whether `pass_all' will *always* work, you probably want this one. |
|
4572 |
||
4573 |
case $host_os in |
|
4574 |
aix4* | aix5*) |
|
4575 |
lt_cv_deplibs_check_method=pass_all |
|
4576 |
;; |
|
4577 |
||
4578 |
beos*) |
|
4579 |
lt_cv_deplibs_check_method=pass_all |
|
4580 |
;; |
|
4581 |
||
4582 |
bsdi[45]*) |
|
4583 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
4584 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
4585 |
lt_cv_file_magic_test_file=/shlib/libc.so |
|
4586 |
;; |
|
4587 |
||
4588 |
cygwin*) |
|
4589 |
# func_win32_libid is a shell function defined in ltmain.sh |
|
4590 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
4591 |
lt_cv_file_magic_cmd='func_win32_libid' |
|
4592 |
;; |
|
4593 |
||
4594 |
mingw* | pw32*) |
|
4595 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
|
4596 |
# func_win32_libid shell function, so use a weaker test based on 'objdump'. |
|
4597 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
4598 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
4599 |
;; |
|
4600 |
||
4601 |
darwin* | rhapsody*) |
|
4602 |
lt_cv_deplibs_check_method=pass_all |
|
4603 |
;; |
|
4604 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4605 |
freebsd* | kfreebsd*-gnu | dragonfly*) |
1
by Ross Burton
Import upstream version 0.10 |
4606 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4607 |
case $host_cpu in |
|
4608 |
i*86 ) |
|
4609 |
# Not sure whether the presence of OpenBSD here was a mistake. |
|
4610 |
# Let's accept both of them until this is cleared up. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4611 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
1
by Ross Burton
Import upstream version 0.10 |
4612 |
lt_cv_file_magic_cmd=/usr/bin/file |
4613 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
4614 |
;; |
|
4615 |
esac |
|
4616 |
else |
|
4617 |
lt_cv_deplibs_check_method=pass_all |
|
4618 |
fi |
|
4619 |
;; |
|
4620 |
||
4621 |
gnu*) |
|
4622 |
lt_cv_deplibs_check_method=pass_all |
|
4623 |
;; |
|
4624 |
||
4625 |
hpux10.20* | hpux11*) |
|
4626 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4627 |
case $host_cpu in |
1
by Ross Burton
Import upstream version 0.10 |
4628 |
ia64*) |
4629 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
|
4630 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
|
4631 |
;; |
|
4632 |
hppa*64*) |
|
4633 |
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]' |
|
4634 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
|
4635 |
;; |
|
4636 |
*) |
|
4637 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
4638 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
4639 |
;; |
|
4640 |
esac |
|
4641 |
;; |
|
4642 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4643 |
interix3*) |
4644 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
|
4645 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
|
4646 |
;; |
|
4647 |
||
1
by Ross Burton
Import upstream version 0.10 |
4648 |
irix5* | irix6* | nonstopux*) |
4649 |
case $LD in |
|
4650 |
*-32|*"-32 ") libmagic=32-bit;; |
|
4651 |
*-n32|*"-n32 ") libmagic=N32;; |
|
4652 |
*-64|*"-64 ") libmagic=64-bit;; |
|
4653 |
*) libmagic=never-match;; |
|
4654 |
esac |
|
4655 |
lt_cv_deplibs_check_method=pass_all |
|
4656 |
;; |
|
4657 |
||
4658 |
# This must be Linux ELF. |
|
4659 |
linux*) |
|
4660 |
lt_cv_deplibs_check_method=pass_all |
|
4661 |
;; |
|
4662 |
||
4663 |
netbsd*) |
|
4664 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
4665 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
4666 |
else |
|
4667 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
|
4668 |
fi |
|
4669 |
;; |
|
4670 |
||
4671 |
newos6*) |
|
4672 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
4673 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
4674 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
4675 |
;; |
|
4676 |
||
4677 |
nto-qnx*) |
|
4678 |
lt_cv_deplibs_check_method=unknown |
|
4679 |
;; |
|
4680 |
||
4681 |
openbsd*) |
|
4682 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
4683 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
|
4684 |
else |
|
4685 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
4686 |
fi |
|
4687 |
;; |
|
4688 |
||
4689 |
osf3* | osf4* | osf5*) |
|
4690 |
lt_cv_deplibs_check_method=pass_all |
|
4691 |
;; |
|
4692 |
||
4693 |
solaris*) |
|
4694 |
lt_cv_deplibs_check_method=pass_all |
|
4695 |
;; |
|
4696 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4697 |
sysv4 | sysv4.3*) |
1
by Ross Burton
Import upstream version 0.10 |
4698 |
case $host_vendor in |
4699 |
motorola) |
|
4700 |
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]' |
|
4701 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
4702 |
;; |
|
4703 |
ncr) |
|
4704 |
lt_cv_deplibs_check_method=pass_all |
|
4705 |
;; |
|
4706 |
sequent) |
|
4707 |
lt_cv_file_magic_cmd='/bin/file' |
|
4708 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
4709 |
;; |
|
4710 |
sni) |
|
4711 |
lt_cv_file_magic_cmd='/bin/file' |
|
4712 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
4713 |
lt_cv_file_magic_test_file=/lib/libc.so |
|
4714 |
;; |
|
4715 |
siemens) |
|
4716 |
lt_cv_deplibs_check_method=pass_all |
|
4717 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4718 |
pc) |
4719 |
lt_cv_deplibs_check_method=pass_all |
|
4720 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
4721 |
esac |
4722 |
;; |
|
4723 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4724 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
1
by Ross Burton
Import upstream version 0.10 |
4725 |
lt_cv_deplibs_check_method=pass_all |
4726 |
;; |
|
4727 |
esac |
|
4728 |
||
4729 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4730 |
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4731 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4732 |
file_magic_cmd=$lt_cv_file_magic_cmd |
4733 |
deplibs_check_method=$lt_cv_deplibs_check_method |
|
4734 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
4735 |
||
4736 |
||
4737 |
||
4738 |
||
4739 |
# If no C compiler was specified, use CC. |
|
4740 |
LTCC=${LTCC-"$CC"} |
|
4741 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4742 |
# If no C compiler flags were specified, use CFLAGS. |
4743 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
4744 |
||
1
by Ross Burton
Import upstream version 0.10 |
4745 |
# Allow CC to be a program name with arguments. |
4746 |
compiler=$CC |
|
4747 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4748 |
# Check whether --enable-libtool-lock was given. |
1
by Ross Burton
Import upstream version 0.10 |
4749 |
if test "${enable_libtool_lock+set}" = set; then |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4750 |
enableval=$enable_libtool_lock; |
4751 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
4752 |
|
4753 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
4754 |
||
4755 |
# Some flags need to be propagated to the compiler or linker for good |
|
4756 |
# libtool support. |
|
4757 |
case $host in |
|
4758 |
ia64-*-hpux*) |
|
4759 |
# Find out which ABI we are using. |
|
4760 |
echo 'int i;' > conftest.$ac_ext |
|
4761 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
4762 |
(eval $ac_compile) 2>&5 |
|
4763 |
ac_status=$? |
|
4764 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4765 |
(exit $ac_status); }; then |
|
4766 |
case `/usr/bin/file conftest.$ac_objext` in |
|
4767 |
*ELF-32*) |
|
4768 |
HPUX_IA64_MODE="32" |
|
4769 |
;; |
|
4770 |
*ELF-64*) |
|
4771 |
HPUX_IA64_MODE="64" |
|
4772 |
;; |
|
4773 |
esac |
|
4774 |
fi |
|
4775 |
rm -rf conftest* |
|
4776 |
;; |
|
4777 |
*-*-irix6*) |
|
4778 |
# Find out which ABI we are using. |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
4779 |
echo '#line 4779 "configure"' > conftest.$ac_ext |
1
by Ross Burton
Import upstream version 0.10 |
4780 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4781 |
(eval $ac_compile) 2>&5 |
|
4782 |
ac_status=$? |
|
4783 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4784 |
(exit $ac_status); }; then |
|
4785 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
4786 |
case `/usr/bin/file conftest.$ac_objext` in |
|
4787 |
*32-bit*) |
|
4788 |
LD="${LD-ld} -melf32bsmip" |
|
4789 |
;; |
|
4790 |
*N32*) |
|
4791 |
LD="${LD-ld} -melf32bmipn32" |
|
4792 |
;; |
|
4793 |
*64-bit*) |
|
4794 |
LD="${LD-ld} -melf64bmip" |
|
4795 |
;; |
|
4796 |
esac |
|
4797 |
else |
|
4798 |
case `/usr/bin/file conftest.$ac_objext` in |
|
4799 |
*32-bit*) |
|
4800 |
LD="${LD-ld} -32" |
|
4801 |
;; |
|
4802 |
*N32*) |
|
4803 |
LD="${LD-ld} -n32" |
|
4804 |
;; |
|
4805 |
*64-bit*) |
|
4806 |
LD="${LD-ld} -64" |
|
4807 |
;; |
|
4808 |
esac |
|
4809 |
fi |
|
4810 |
fi |
|
4811 |
rm -rf conftest* |
|
4812 |
;; |
|
4813 |
||
4814 |
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
|
4815 |
# Find out which ABI we are using. |
|
4816 |
echo 'int i;' > conftest.$ac_ext |
|
4817 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
4818 |
(eval $ac_compile) 2>&5 |
|
4819 |
ac_status=$? |
|
4820 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4821 |
(exit $ac_status); }; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4822 |
case `/usr/bin/file conftest.o` in |
1
by Ross Burton
Import upstream version 0.10 |
4823 |
*32-bit*) |
4824 |
case $host in |
|
4825 |
x86_64-*linux*) |
|
4826 |
LD="${LD-ld} -m elf_i386" |
|
4827 |
;; |
|
4828 |
ppc64-*linux*|powerpc64-*linux*) |
|
4829 |
LD="${LD-ld} -m elf32ppclinux" |
|
4830 |
;; |
|
4831 |
s390x-*linux*) |
|
4832 |
LD="${LD-ld} -m elf_s390" |
|
4833 |
;; |
|
4834 |
sparc64-*linux*) |
|
4835 |
LD="${LD-ld} -m elf32_sparc" |
|
4836 |
;; |
|
4837 |
esac |
|
4838 |
;; |
|
4839 |
*64-bit*) |
|
4840 |
case $host in |
|
4841 |
x86_64-*linux*) |
|
4842 |
LD="${LD-ld} -m elf_x86_64" |
|
4843 |
;; |
|
4844 |
ppc*-*linux*|powerpc*-*linux*) |
|
4845 |
LD="${LD-ld} -m elf64ppc" |
|
4846 |
;; |
|
4847 |
s390*-*linux*) |
|
4848 |
LD="${LD-ld} -m elf64_s390" |
|
4849 |
;; |
|
4850 |
sparc*-*linux*) |
|
4851 |
LD="${LD-ld} -m elf64_sparc" |
|
4852 |
;; |
|
4853 |
esac |
|
4854 |
;; |
|
4855 |
esac |
|
4856 |
fi |
|
4857 |
rm -rf conftest* |
|
4858 |
;; |
|
4859 |
||
4860 |
*-*-sco3.2v5*) |
|
4861 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
4862 |
SAVE_CFLAGS="$CFLAGS" |
|
4863 |
CFLAGS="$CFLAGS -belf" |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4864 |
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4865 |
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4866 |
if test "${lt_cv_cc_needs_belf+set}" = set; then |
4867 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4868 |
else |
|
4869 |
ac_ext=c |
|
4870 |
ac_cpp='$CPP $CPPFLAGS' |
|
4871 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4872 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4873 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4874 |
||
4875 |
cat >conftest.$ac_ext <<_ACEOF |
|
4876 |
/* confdefs.h. */ |
|
4877 |
_ACEOF |
|
4878 |
cat confdefs.h >>conftest.$ac_ext |
|
4879 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4880 |
/* end confdefs.h. */ |
|
4881 |
||
4882 |
int |
|
4883 |
main () |
|
4884 |
{ |
|
4885 |
||
4886 |
; |
|
4887 |
return 0; |
|
4888 |
} |
|
4889 |
_ACEOF |
|
4890 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4891 |
if { (ac_try="$ac_link" |
4892 |
case "(($ac_try" in |
|
4893 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4894 |
*) ac_try_echo=$ac_try;; |
|
4895 |
esac |
|
4896 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
4897 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
4898 |
ac_status=$? |
4899 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4900 |
rm -f conftest.er1 |
|
4901 |
cat conftest.err >&5 |
|
4902 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
4903 |
(exit $ac_status); } && { |
4904 |
test -z "$ac_c_werror_flag" || |
|
4905 |
test ! -s conftest.err |
|
4906 |
} && test -s conftest$ac_exeext && |
|
4907 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
4908 |
lt_cv_cc_needs_belf=yes |
4909 |
else |
|
4910 |
echo "$as_me: failed program was:" >&5 |
|
4911 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4912 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4913 |
lt_cv_cc_needs_belf=no |
1
by Ross Burton
Import upstream version 0.10 |
4914 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4915 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
4916 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
4917 |
conftest$ac_exeext conftest.$ac_ext |
4918 |
ac_ext=c |
|
4919 |
ac_cpp='$CPP $CPPFLAGS' |
|
4920 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4921 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4922 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4923 |
||
4924 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4925 |
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4926 |
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
4927 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4928 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
4929 |
CFLAGS="$SAVE_CFLAGS" |
|
4930 |
fi |
|
4931 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
4932 |
sparc*-*solaris*) |
4933 |
# Find out which ABI we are using. |
|
4934 |
echo 'int i;' > conftest.$ac_ext |
|
4935 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
4936 |
(eval $ac_compile) 2>&5 |
|
4937 |
ac_status=$? |
|
4938 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4939 |
(exit $ac_status); }; then |
|
4940 |
case `/usr/bin/file conftest.o` in |
|
4941 |
*64-bit*) |
|
4942 |
case $lt_cv_prog_gnu_ld in |
|
4943 |
yes*) LD="${LD-ld} -m elf64_sparc" ;; |
|
4944 |
*) LD="${LD-ld} -64" ;; |
|
4945 |
esac |
|
4946 |
;; |
|
4947 |
esac |
|
4948 |
fi |
|
4949 |
rm -rf conftest* |
|
4950 |
;; |
|
4951 |
||
1
by Ross Burton
Import upstream version 0.10 |
4952 |
|
4953 |
esac |
|
4954 |
||
4955 |
need_locks="$enable_libtool_lock" |
|
4956 |
||
4957 |
||
4958 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
4959 |
||
4960 |
||
4961 |
||
4962 |
||
4963 |
||
4964 |
||
4965 |
||
4966 |
||
4967 |
||
4968 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
4969 |
inttypes.h stdint.h unistd.h |
|
4970 |
do |
|
4971 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4972 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4973 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
4974 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
1
by Ross Burton
Import upstream version 0.10 |
4975 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4976 |
else |
|
4977 |
cat >conftest.$ac_ext <<_ACEOF |
|
4978 |
/* confdefs.h. */ |
|
4979 |
_ACEOF |
|
4980 |
cat confdefs.h >>conftest.$ac_ext |
|
4981 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4982 |
/* end confdefs.h. */ |
|
4983 |
$ac_includes_default |
|
4984 |
||
4985 |
#include <$ac_header> |
|
4986 |
_ACEOF |
|
4987 |
rm -f conftest.$ac_objext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
4988 |
if { (ac_try="$ac_compile" |
4989 |
case "(($ac_try" in |
|
4990 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4991 |
*) ac_try_echo=$ac_try;; |
|
4992 |
esac |
|
4993 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
4994 |
(eval "$ac_compile") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
4995 |
ac_status=$? |
4996 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4997 |
rm -f conftest.er1 |
|
4998 |
cat conftest.err >&5 |
|
4999 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5000 |
(exit $ac_status); } && { |
5001 |
test -z "$ac_c_werror_flag" || |
|
5002 |
test ! -s conftest.err |
|
5003 |
} && test -s conftest.$ac_objext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
5004 |
eval "$as_ac_Header=yes" |
5005 |
else |
|
5006 |
echo "$as_me: failed program was:" >&5 |
|
5007 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5008 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5009 |
eval "$as_ac_Header=no" |
5010 |
fi |
|
5011 |
||
5012 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5013 |
fi |
|
5014 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
|
5015 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
5016 |
echo "${ECHO_T}$ac_res" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5017 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5018 |
cat >>confdefs.h <<_ACEOF |
|
5019 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
5020 |
_ACEOF |
|
5021 |
||
5022 |
fi |
|
5023 |
||
5024 |
done |
|
5025 |
||
5026 |
||
5027 |
||
5028 |
for ac_header in dlfcn.h |
|
5029 |
do |
|
5030 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5031 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5032 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
5033 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
5034 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
1
by Ross Burton
Import upstream version 0.10 |
5035 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5036 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5037 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
5038 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
5039 |
echo "${ECHO_T}$ac_res" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5040 |
else |
5041 |
# Is the header compilable? |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5042 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5043 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5044 |
cat >conftest.$ac_ext <<_ACEOF |
5045 |
/* confdefs.h. */ |
|
5046 |
_ACEOF |
|
5047 |
cat confdefs.h >>conftest.$ac_ext |
|
5048 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5049 |
/* end confdefs.h. */ |
|
5050 |
$ac_includes_default |
|
5051 |
#include <$ac_header> |
|
5052 |
_ACEOF |
|
5053 |
rm -f conftest.$ac_objext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5054 |
if { (ac_try="$ac_compile" |
5055 |
case "(($ac_try" in |
|
5056 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5057 |
*) ac_try_echo=$ac_try;; |
|
5058 |
esac |
|
5059 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5060 |
(eval "$ac_compile") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
5061 |
ac_status=$? |
5062 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5063 |
rm -f conftest.er1 |
|
5064 |
cat conftest.err >&5 |
|
5065 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5066 |
(exit $ac_status); } && { |
5067 |
test -z "$ac_c_werror_flag" || |
|
5068 |
test ! -s conftest.err |
|
5069 |
} && test -s conftest.$ac_objext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
5070 |
ac_header_compiler=yes |
5071 |
else |
|
5072 |
echo "$as_me: failed program was:" >&5 |
|
5073 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5074 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5075 |
ac_header_compiler=no |
1
by Ross Burton
Import upstream version 0.10 |
5076 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5077 |
|
5078 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5079 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
5080 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5081 |
|
5082 |
# Is the header present? |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5083 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5084 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5085 |
cat >conftest.$ac_ext <<_ACEOF |
5086 |
/* confdefs.h. */ |
|
5087 |
_ACEOF |
|
5088 |
cat confdefs.h >>conftest.$ac_ext |
|
5089 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5090 |
/* end confdefs.h. */ |
|
5091 |
#include <$ac_header> |
|
5092 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5093 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
5094 |
case "(($ac_try" in |
|
5095 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5096 |
*) ac_try_echo=$ac_try;; |
|
5097 |
esac |
|
5098 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5099 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
5100 |
ac_status=$? |
5101 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5102 |
rm -f conftest.er1 |
|
5103 |
cat conftest.err >&5 |
|
5104 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5105 |
(exit $ac_status); } >/dev/null && { |
5106 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
5107 |
test ! -s conftest.err |
|
5108 |
}; then |
|
1
by Ross Burton
Import upstream version 0.10 |
5109 |
ac_header_preproc=yes |
5110 |
else |
|
5111 |
echo "$as_me: failed program was:" >&5 |
|
5112 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5113 |
||
5114 |
ac_header_preproc=no |
|
5115 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5116 |
|
1
by Ross Burton
Import upstream version 0.10 |
5117 |
rm -f conftest.err conftest.$ac_ext |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5118 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5119 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5120 |
|
5121 |
# So? What about this header? |
|
5122 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
5123 |
yes:no: ) |
|
5124 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
5125 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
5126 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
5127 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
5128 |
ac_header_preproc=yes |
|
5129 |
;; |
|
5130 |
no:yes:* ) |
|
5131 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
5132 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
5133 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
5134 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
5135 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
5136 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
5137 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
5138 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
5139 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
5140 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
5141 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
5142 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5143 |
( cat <<\_ASBOX |
5144 |
## ------------------------------------------------------------------------------------ ## |
|
5145 |
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=desktop-file-utils ## |
|
5146 |
## ------------------------------------------------------------------------------------ ## |
|
1
by Ross Burton
Import upstream version 0.10 |
5147 |
_ASBOX |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5148 |
) | sed "s/^/$as_me: WARNING: /" >&2 |
1
by Ross Burton
Import upstream version 0.10 |
5149 |
;; |
5150 |
esac |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5151 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5152 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
5153 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
1
by Ross Burton
Import upstream version 0.10 |
5154 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5155 |
else |
|
5156 |
eval "$as_ac_Header=\$ac_header_preproc" |
|
5157 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5158 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
5159 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
5160 |
echo "${ECHO_T}$ac_res" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5161 |
|
5162 |
fi |
|
5163 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
5164 |
cat >>confdefs.h <<_ACEOF |
|
5165 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
5166 |
_ACEOF |
|
5167 |
||
5168 |
fi |
|
5169 |
||
5170 |
done |
|
5171 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5172 |
ac_ext=cpp |
1
by Ross Burton
Import upstream version 0.10 |
5173 |
ac_cpp='$CXXCPP $CPPFLAGS' |
5174 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5175 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5176 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5177 |
if test -z "$CXX"; then |
5178 |
if test -n "$CCC"; then |
|
5179 |
CXX=$CCC |
|
5180 |
else |
|
5181 |
if test -n "$ac_tool_prefix"; then |
|
5182 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
1
by Ross Burton
Import upstream version 0.10 |
5183 |
do |
5184 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
5185 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5186 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5187 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5188 |
if test "${ac_cv_prog_CXX+set}" = set; then |
5189 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5190 |
else |
|
5191 |
if test -n "$CXX"; then |
|
5192 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|
5193 |
else |
|
5194 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5195 |
for as_dir in $PATH |
|
5196 |
do |
|
5197 |
IFS=$as_save_IFS |
|
5198 |
test -z "$as_dir" && as_dir=. |
|
5199 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5200 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
5201 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5202 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5203 |
break 2 |
|
5204 |
fi |
|
5205 |
done |
|
5206 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5207 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
5208 |
|
5209 |
fi |
|
5210 |
fi |
|
5211 |
CXX=$ac_cv_prog_CXX |
|
5212 |
if test -n "$CXX"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5213 |
{ echo "$as_me:$LINENO: result: $CXX" >&5 |
5214 |
echo "${ECHO_T}$CXX" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5215 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5216 |
{ echo "$as_me:$LINENO: result: no" >&5 |
5217 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5218 |
fi |
5219 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5220 |
|
1
by Ross Burton
Import upstream version 0.10 |
5221 |
test -n "$CXX" && break |
5222 |
done |
|
5223 |
fi |
|
5224 |
if test -z "$CXX"; then |
|
5225 |
ac_ct_CXX=$CXX |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5226 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
1
by Ross Burton
Import upstream version 0.10 |
5227 |
do |
5228 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
5229 |
set dummy $ac_prog; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5230 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5231 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5232 |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5233 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5234 |
else |
|
5235 |
if test -n "$ac_ct_CXX"; then |
|
5236 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|
5237 |
else |
|
5238 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5239 |
for as_dir in $PATH |
|
5240 |
do |
|
5241 |
IFS=$as_save_IFS |
|
5242 |
test -z "$as_dir" && as_dir=. |
|
5243 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5244 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
5245 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
5246 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5247 |
break 2 |
|
5248 |
fi |
|
5249 |
done |
|
5250 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5251 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
5252 |
|
5253 |
fi |
|
5254 |
fi |
|
5255 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|
5256 |
if test -n "$ac_ct_CXX"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5257 |
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5258 |
echo "${ECHO_T}$ac_ct_CXX" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5259 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5260 |
{ echo "$as_me:$LINENO: result: no" >&5 |
5261 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5262 |
fi |
5263 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5264 |
|
1
by Ross Burton
Import upstream version 0.10 |
5265 |
test -n "$ac_ct_CXX" && break |
5266 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5267 |
|
5268 |
if test "x$ac_ct_CXX" = x; then |
|
5269 |
CXX="g++" |
|
5270 |
else |
|
5271 |
case $cross_compiling:$ac_tool_warned in |
|
5272 |
yes:) |
|
5273 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
5274 |
whose name does not start with the host triplet. If you think this |
|
5275 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
5276 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
5277 |
whose name does not start with the host triplet. If you think this |
|
5278 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
5279 |
ac_tool_warned=yes ;; |
|
5280 |
esac |
|
5281 |
CXX=$ac_ct_CXX |
|
5282 |
fi |
|
5283 |
fi |
|
5284 |
||
5285 |
fi |
|
5286 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
5287 |
# Provide some information about the compiler. |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5288 |
echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
5289 |
ac_compiler=`set X $ac_compile; echo $2` |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5290 |
{ (ac_try="$ac_compiler --version >&5" |
5291 |
case "(($ac_try" in |
|
5292 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5293 |
*) ac_try_echo=$ac_try;; |
|
5294 |
esac |
|
5295 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5296 |
(eval "$ac_compiler --version >&5") 2>&5 |
|
5297 |
ac_status=$? |
|
5298 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5299 |
(exit $ac_status); } |
|
5300 |
{ (ac_try="$ac_compiler -v >&5" |
|
5301 |
case "(($ac_try" in |
|
5302 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5303 |
*) ac_try_echo=$ac_try;; |
|
5304 |
esac |
|
5305 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5306 |
(eval "$ac_compiler -v >&5") 2>&5 |
|
5307 |
ac_status=$? |
|
5308 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5309 |
(exit $ac_status); } |
|
5310 |
{ (ac_try="$ac_compiler -V >&5" |
|
5311 |
case "(($ac_try" in |
|
5312 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5313 |
*) ac_try_echo=$ac_try;; |
|
5314 |
esac |
|
5315 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5316 |
(eval "$ac_compiler -V >&5") 2>&5 |
|
1
by Ross Burton
Import upstream version 0.10 |
5317 |
ac_status=$? |
5318 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5319 |
(exit $ac_status); } |
|
5320 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5321 |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5322 |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5323 |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5324 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5325 |
else |
|
5326 |
cat >conftest.$ac_ext <<_ACEOF |
|
5327 |
/* confdefs.h. */ |
|
5328 |
_ACEOF |
|
5329 |
cat confdefs.h >>conftest.$ac_ext |
|
5330 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5331 |
/* end confdefs.h. */ |
|
5332 |
||
5333 |
int |
|
5334 |
main () |
|
5335 |
{ |
|
5336 |
#ifndef __GNUC__ |
|
5337 |
choke me |
|
5338 |
#endif |
|
5339 |
||
5340 |
; |
|
5341 |
return 0; |
|
5342 |
} |
|
5343 |
_ACEOF |
|
5344 |
rm -f conftest.$ac_objext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5345 |
if { (ac_try="$ac_compile" |
5346 |
case "(($ac_try" in |
|
5347 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5348 |
*) ac_try_echo=$ac_try;; |
|
5349 |
esac |
|
5350 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5351 |
(eval "$ac_compile") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
5352 |
ac_status=$? |
5353 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5354 |
rm -f conftest.er1 |
|
5355 |
cat conftest.err >&5 |
|
5356 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5357 |
(exit $ac_status); } && { |
5358 |
test -z "$ac_cxx_werror_flag" || |
|
5359 |
test ! -s conftest.err |
|
5360 |
} && test -s conftest.$ac_objext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
5361 |
ac_compiler_gnu=yes |
5362 |
else |
|
5363 |
echo "$as_me: failed program was:" >&5 |
|
5364 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5365 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5366 |
ac_compiler_gnu=no |
1
by Ross Burton
Import upstream version 0.10 |
5367 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5368 |
|
5369 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1
by Ross Burton
Import upstream version 0.10 |
5370 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5371 |
||
5372 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5373 |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5374 |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5375 |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
5376 |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
|
5377 |
ac_save_CXXFLAGS=$CXXFLAGS |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5378 |
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5379 |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5380 |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
5381 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5382 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5383 |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5384 |
ac_cxx_werror_flag=yes |
|
5385 |
ac_cv_prog_cxx_g=no |
|
5386 |
CXXFLAGS="-g" |
|
5387 |
cat >conftest.$ac_ext <<_ACEOF |
|
5388 |
/* confdefs.h. */ |
|
5389 |
_ACEOF |
|
5390 |
cat confdefs.h >>conftest.$ac_ext |
|
5391 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5392 |
/* end confdefs.h. */ |
|
5393 |
||
5394 |
int |
|
5395 |
main () |
|
5396 |
{ |
|
5397 |
||
5398 |
; |
|
5399 |
return 0; |
|
5400 |
} |
|
5401 |
_ACEOF |
|
5402 |
rm -f conftest.$ac_objext |
|
5403 |
if { (ac_try="$ac_compile" |
|
5404 |
case "(($ac_try" in |
|
5405 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5406 |
*) ac_try_echo=$ac_try;; |
|
5407 |
esac |
|
5408 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5409 |
(eval "$ac_compile") 2>conftest.er1 |
|
5410 |
ac_status=$? |
|
5411 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5412 |
rm -f conftest.er1 |
|
5413 |
cat conftest.err >&5 |
|
5414 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5415 |
(exit $ac_status); } && { |
5416 |
test -z "$ac_cxx_werror_flag" || |
|
5417 |
test ! -s conftest.err |
|
5418 |
} && test -s conftest.$ac_objext; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5419 |
ac_cv_prog_cxx_g=yes |
5420 |
else |
|
5421 |
echo "$as_me: failed program was:" >&5 |
|
5422 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5423 |
||
5424 |
CXXFLAGS="" |
|
5425 |
cat >conftest.$ac_ext <<_ACEOF |
|
5426 |
/* confdefs.h. */ |
|
5427 |
_ACEOF |
|
5428 |
cat confdefs.h >>conftest.$ac_ext |
|
5429 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5430 |
/* end confdefs.h. */ |
|
5431 |
||
5432 |
int |
|
5433 |
main () |
|
5434 |
{ |
|
5435 |
||
5436 |
; |
|
5437 |
return 0; |
|
5438 |
} |
|
5439 |
_ACEOF |
|
5440 |
rm -f conftest.$ac_objext |
|
5441 |
if { (ac_try="$ac_compile" |
|
5442 |
case "(($ac_try" in |
|
5443 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5444 |
*) ac_try_echo=$ac_try;; |
|
5445 |
esac |
|
5446 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5447 |
(eval "$ac_compile") 2>conftest.er1 |
|
5448 |
ac_status=$? |
|
5449 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5450 |
rm -f conftest.er1 |
|
5451 |
cat conftest.err >&5 |
|
5452 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5453 |
(exit $ac_status); } && { |
5454 |
test -z "$ac_cxx_werror_flag" || |
|
5455 |
test ! -s conftest.err |
|
5456 |
} && test -s conftest.$ac_objext; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5457 |
: |
5458 |
else |
|
5459 |
echo "$as_me: failed program was:" >&5 |
|
5460 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5461 |
||
5462 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
5463 |
CXXFLAGS="-g" |
|
5464 |
cat >conftest.$ac_ext <<_ACEOF |
|
5465 |
/* confdefs.h. */ |
|
5466 |
_ACEOF |
|
5467 |
cat confdefs.h >>conftest.$ac_ext |
|
5468 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5469 |
/* end confdefs.h. */ |
|
5470 |
||
5471 |
int |
|
5472 |
main () |
|
5473 |
{ |
|
5474 |
||
5475 |
; |
|
5476 |
return 0; |
|
5477 |
} |
|
5478 |
_ACEOF |
|
5479 |
rm -f conftest.$ac_objext |
|
5480 |
if { (ac_try="$ac_compile" |
|
5481 |
case "(($ac_try" in |
|
5482 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5483 |
*) ac_try_echo=$ac_try;; |
|
5484 |
esac |
|
5485 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5486 |
(eval "$ac_compile") 2>conftest.er1 |
|
5487 |
ac_status=$? |
|
5488 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5489 |
rm -f conftest.er1 |
|
5490 |
cat conftest.err >&5 |
|
5491 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5492 |
(exit $ac_status); } && { |
5493 |
test -z "$ac_cxx_werror_flag" || |
|
5494 |
test ! -s conftest.err |
|
5495 |
} && test -s conftest.$ac_objext; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5496 |
ac_cv_prog_cxx_g=yes |
5497 |
else |
|
5498 |
echo "$as_me: failed program was:" >&5 |
|
5499 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5500 |
||
5501 |
||
5502 |
fi |
|
5503 |
||
5504 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5505 |
fi |
|
5506 |
||
5507 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5508 |
fi |
|
5509 |
||
5510 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5511 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
5512 |
fi |
|
5513 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
|
5514 |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5515 |
if test "$ac_test_CXXFLAGS" = set; then |
5516 |
CXXFLAGS=$ac_save_CXXFLAGS |
|
5517 |
elif test $ac_cv_prog_cxx_g = yes; then |
|
5518 |
if test "$GXX" = yes; then |
|
5519 |
CXXFLAGS="-g -O2" |
|
5520 |
else |
|
5521 |
CXXFLAGS="-g" |
|
5522 |
fi |
|
5523 |
else |
|
5524 |
if test "$GXX" = yes; then |
|
5525 |
CXXFLAGS="-O2" |
|
5526 |
else |
|
5527 |
CXXFLAGS= |
|
5528 |
fi |
|
5529 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5530 |
ac_ext=cpp |
1
by Ross Burton
Import upstream version 0.10 |
5531 |
ac_cpp='$CXXCPP $CPPFLAGS' |
5532 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5533 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5534 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5535 |
||
5536 |
depcc="$CXX" am_compiler_list= |
|
5537 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5538 |
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5539 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5540 |
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5541 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5542 |
else |
|
5543 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
5544 |
# We make a subdir and do the tests there. Otherwise we can end up |
|
5545 |
# making bogus files that we don't know about and never remove. For |
|
5546 |
# instance it was reported that on HP-UX the gcc test will end up |
|
5547 |
# making a dummy file named `D' -- because `-MD' means `put the output |
|
5548 |
# in D'. |
|
5549 |
mkdir conftest.dir |
|
5550 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
5551 |
# using a relative directory. |
|
5552 |
cp "$am_depcomp" conftest.dir |
|
5553 |
cd conftest.dir |
|
5554 |
# We will build objects and dependencies in a subdirectory because |
|
5555 |
# it helps to detect inapplicable dependency modes. For instance |
|
5556 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
|
5557 |
# side effect of compilation, but ICC will put the dependencies in |
|
5558 |
# the current directory while Tru64 will put them in the object |
|
5559 |
# directory. |
|
5560 |
mkdir sub |
|
5561 |
||
5562 |
am_cv_CXX_dependencies_compiler_type=none |
|
5563 |
if test "$am_compiler_list" = ""; then |
|
5564 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
5565 |
fi |
|
5566 |
for depmode in $am_compiler_list; do |
|
5567 |
# Setup a source with many dependencies, because some compilers |
|
5568 |
# like to wrap large dependency lists on column 80 (with \), and |
|
5569 |
# we should not choose a depcomp mode which is confused by this. |
|
5570 |
# |
|
5571 |
# We need to recreate these files for each test, as the compiler may |
|
5572 |
# overwrite some of them when testing with obscure command lines. |
|
5573 |
# This happens at least with the AIX C compiler. |
|
5574 |
: > sub/conftest.c |
|
5575 |
for i in 1 2 3 4 5 6; do |
|
5576 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5577 |
: > sub/conftst$i.h |
1
by Ross Burton
Import upstream version 0.10 |
5578 |
done |
5579 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
5580 |
||
5581 |
case $depmode in |
|
5582 |
nosideeffect) |
|
5583 |
# after this tag, mechanisms are not by side-effect, so they'll |
|
5584 |
# only be used when explicitly requested |
|
5585 |
if test "x$enable_dependency_tracking" = xyes; then |
|
5586 |
continue |
|
5587 |
else |
|
5588 |
break |
|
5589 |
fi |
|
5590 |
;; |
|
5591 |
none) break ;; |
|
5592 |
esac |
|
5593 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
5594 |
# mode. It turns out that the SunPro C++ compiler does not properly |
|
5595 |
# handle `-M -o', and we need to detect this. |
|
5596 |
if depmode=$depmode \ |
|
5597 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
5598 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
5599 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
5600 |
>/dev/null 2>conftest.err && |
|
5601 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
5602 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
5603 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
5604 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5605 |
# (even with -Werror). So we grep stderr for any message |
5606 |
# that says an option was ignored. |
|
5607 |
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
|
1
by Ross Burton
Import upstream version 0.10 |
5608 |
am_cv_CXX_dependencies_compiler_type=$depmode |
5609 |
break |
|
5610 |
fi |
|
5611 |
fi |
|
5612 |
done |
|
5613 |
||
5614 |
cd .. |
|
5615 |
rm -rf conftest.dir |
|
5616 |
else |
|
5617 |
am_cv_CXX_dependencies_compiler_type=none |
|
5618 |
fi |
|
5619 |
||
5620 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5621 |
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5622 |
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5623 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5624 |
||
5625 |
||
5626 |
||
5627 |
if |
|
5628 |
test "x$enable_dependency_tracking" != xno \ |
|
5629 |
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
|
5630 |
am__fastdepCXX_TRUE= |
|
5631 |
am__fastdepCXX_FALSE='#' |
|
5632 |
else |
|
5633 |
am__fastdepCXX_TRUE='#' |
|
5634 |
am__fastdepCXX_FALSE= |
|
5635 |
fi |
|
5636 |
||
5637 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
5638 |
|
5639 |
||
5640 |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
|
5641 |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
5642 |
(test "X$CXX" != "Xg++"))) ; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5643 |
ac_ext=cpp |
1
by Ross Burton
Import upstream version 0.10 |
5644 |
ac_cpp='$CXXCPP $CPPFLAGS' |
5645 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5646 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5647 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5648 |
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5649 |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5650 |
if test -z "$CXXCPP"; then |
5651 |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
5652 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5653 |
else |
|
5654 |
# Double quotes because CXXCPP needs to be expanded |
|
5655 |
for CXXCPP in "$CXX -E" "/lib/cpp" |
|
5656 |
do |
|
5657 |
ac_preproc_ok=false |
|
5658 |
for ac_cxx_preproc_warn_flag in '' yes |
|
5659 |
do |
|
5660 |
# Use a header file that comes with gcc, so configuring glibc |
|
5661 |
# with a fresh cross-compiler works. |
|
5662 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
5663 |
# <limits.h> exists even on freestanding compilers. |
|
5664 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
5665 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
5666 |
cat >conftest.$ac_ext <<_ACEOF |
|
5667 |
/* confdefs.h. */ |
|
5668 |
_ACEOF |
|
5669 |
cat confdefs.h >>conftest.$ac_ext |
|
5670 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5671 |
/* end confdefs.h. */ |
|
5672 |
#ifdef __STDC__ |
|
5673 |
# include <limits.h> |
|
5674 |
#else |
|
5675 |
# include <assert.h> |
|
5676 |
#endif |
|
5677 |
Syntax error |
|
5678 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5679 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
5680 |
case "(($ac_try" in |
|
5681 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5682 |
*) ac_try_echo=$ac_try;; |
|
5683 |
esac |
|
5684 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5685 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
5686 |
ac_status=$? |
5687 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5688 |
rm -f conftest.er1 |
|
5689 |
cat conftest.err >&5 |
|
5690 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5691 |
(exit $ac_status); } >/dev/null && { |
5692 |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
5693 |
test ! -s conftest.err |
|
5694 |
}; then |
|
1
by Ross Burton
Import upstream version 0.10 |
5695 |
: |
5696 |
else |
|
5697 |
echo "$as_me: failed program was:" >&5 |
|
5698 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5699 |
||
5700 |
# Broken: fails on valid input. |
|
5701 |
continue |
|
5702 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5703 |
|
1
by Ross Burton
Import upstream version 0.10 |
5704 |
rm -f conftest.err conftest.$ac_ext |
5705 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5706 |
# OK, works on sane cases. Now check whether nonexistent headers |
1
by Ross Burton
Import upstream version 0.10 |
5707 |
# can be detected and how. |
5708 |
cat >conftest.$ac_ext <<_ACEOF |
|
5709 |
/* confdefs.h. */ |
|
5710 |
_ACEOF |
|
5711 |
cat confdefs.h >>conftest.$ac_ext |
|
5712 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5713 |
/* end confdefs.h. */ |
|
5714 |
#include <ac_nonexistent.h> |
|
5715 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5716 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
5717 |
case "(($ac_try" in |
|
5718 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5719 |
*) ac_try_echo=$ac_try;; |
|
5720 |
esac |
|
5721 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5722 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
5723 |
ac_status=$? |
5724 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5725 |
rm -f conftest.er1 |
|
5726 |
cat conftest.err >&5 |
|
5727 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5728 |
(exit $ac_status); } >/dev/null && { |
5729 |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
5730 |
test ! -s conftest.err |
|
5731 |
}; then |
|
1
by Ross Burton
Import upstream version 0.10 |
5732 |
# Broken: success on invalid input. |
5733 |
continue |
|
5734 |
else |
|
5735 |
echo "$as_me: failed program was:" >&5 |
|
5736 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5737 |
||
5738 |
# Passes both tests. |
|
5739 |
ac_preproc_ok=: |
|
5740 |
break |
|
5741 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5742 |
|
1
by Ross Burton
Import upstream version 0.10 |
5743 |
rm -f conftest.err conftest.$ac_ext |
5744 |
||
5745 |
done |
|
5746 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
5747 |
rm -f conftest.err conftest.$ac_ext |
|
5748 |
if $ac_preproc_ok; then |
|
5749 |
break |
|
5750 |
fi |
|
5751 |
||
5752 |
done |
|
5753 |
ac_cv_prog_CXXCPP=$CXXCPP |
|
5754 |
||
5755 |
fi |
|
5756 |
CXXCPP=$ac_cv_prog_CXXCPP |
|
5757 |
else |
|
5758 |
ac_cv_prog_CXXCPP=$CXXCPP |
|
5759 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5760 |
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5761 |
echo "${ECHO_T}$CXXCPP" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5762 |
ac_preproc_ok=false |
5763 |
for ac_cxx_preproc_warn_flag in '' yes |
|
5764 |
do |
|
5765 |
# Use a header file that comes with gcc, so configuring glibc |
|
5766 |
# with a fresh cross-compiler works. |
|
5767 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
5768 |
# <limits.h> exists even on freestanding compilers. |
|
5769 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
5770 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
5771 |
cat >conftest.$ac_ext <<_ACEOF |
|
5772 |
/* confdefs.h. */ |
|
5773 |
_ACEOF |
|
5774 |
cat confdefs.h >>conftest.$ac_ext |
|
5775 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5776 |
/* end confdefs.h. */ |
|
5777 |
#ifdef __STDC__ |
|
5778 |
# include <limits.h> |
|
5779 |
#else |
|
5780 |
# include <assert.h> |
|
5781 |
#endif |
|
5782 |
Syntax error |
|
5783 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5784 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
5785 |
case "(($ac_try" in |
|
5786 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5787 |
*) ac_try_echo=$ac_try;; |
|
5788 |
esac |
|
5789 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5790 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
5791 |
ac_status=$? |
5792 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5793 |
rm -f conftest.er1 |
|
5794 |
cat conftest.err >&5 |
|
5795 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5796 |
(exit $ac_status); } >/dev/null && { |
5797 |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
5798 |
test ! -s conftest.err |
|
5799 |
}; then |
|
1
by Ross Burton
Import upstream version 0.10 |
5800 |
: |
5801 |
else |
|
5802 |
echo "$as_me: failed program was:" >&5 |
|
5803 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5804 |
||
5805 |
# Broken: fails on valid input. |
|
5806 |
continue |
|
5807 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5808 |
|
1
by Ross Burton
Import upstream version 0.10 |
5809 |
rm -f conftest.err conftest.$ac_ext |
5810 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5811 |
# OK, works on sane cases. Now check whether nonexistent headers |
1
by Ross Burton
Import upstream version 0.10 |
5812 |
# can be detected and how. |
5813 |
cat >conftest.$ac_ext <<_ACEOF |
|
5814 |
/* confdefs.h. */ |
|
5815 |
_ACEOF |
|
5816 |
cat confdefs.h >>conftest.$ac_ext |
|
5817 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5818 |
/* end confdefs.h. */ |
|
5819 |
#include <ac_nonexistent.h> |
|
5820 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5821 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
5822 |
case "(($ac_try" in |
|
5823 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5824 |
*) ac_try_echo=$ac_try;; |
|
5825 |
esac |
|
5826 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5827 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
5828 |
ac_status=$? |
5829 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5830 |
rm -f conftest.er1 |
|
5831 |
cat conftest.err >&5 |
|
5832 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5833 |
(exit $ac_status); } >/dev/null && { |
5834 |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
5835 |
test ! -s conftest.err |
|
5836 |
}; then |
|
1
by Ross Burton
Import upstream version 0.10 |
5837 |
# Broken: success on invalid input. |
5838 |
continue |
|
5839 |
else |
|
5840 |
echo "$as_me: failed program was:" >&5 |
|
5841 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5842 |
||
5843 |
# Passes both tests. |
|
5844 |
ac_preproc_ok=: |
|
5845 |
break |
|
5846 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5847 |
|
1
by Ross Burton
Import upstream version 0.10 |
5848 |
rm -f conftest.err conftest.$ac_ext |
5849 |
||
5850 |
done |
|
5851 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
5852 |
rm -f conftest.err conftest.$ac_ext |
|
5853 |
if $ac_preproc_ok; then |
|
5854 |
: |
|
5855 |
else |
|
5856 |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
5857 |
See \`config.log' for more details." >&5 |
|
5858 |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
5859 |
See \`config.log' for more details." >&2;} |
|
5860 |
{ (exit 1); exit 1; }; } |
|
5861 |
fi |
|
5862 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5863 |
ac_ext=cpp |
1
by Ross Burton
Import upstream version 0.10 |
5864 |
ac_cpp='$CXXCPP $CPPFLAGS' |
5865 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5866 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5867 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5868 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
5869 |
fi |
5870 |
||
1
by Ross Burton
Import upstream version 0.10 |
5871 |
|
5872 |
ac_ext=f |
|
5873 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
5874 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5875 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
5876 |
if test -n "$ac_tool_prefix"; then |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5877 |
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 |
1
by Ross Burton
Import upstream version 0.10 |
5878 |
do |
5879 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
5880 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5881 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5882 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5883 |
if test "${ac_cv_prog_F77+set}" = set; then |
5884 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5885 |
else |
|
5886 |
if test -n "$F77"; then |
|
5887 |
ac_cv_prog_F77="$F77" # Let the user override the test. |
|
5888 |
else |
|
5889 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5890 |
for as_dir in $PATH |
|
5891 |
do |
|
5892 |
IFS=$as_save_IFS |
|
5893 |
test -z "$as_dir" && as_dir=. |
|
5894 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5895 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
5896 |
ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5897 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5898 |
break 2 |
|
5899 |
fi |
|
5900 |
done |
|
5901 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5902 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
5903 |
|
5904 |
fi |
|
5905 |
fi |
|
5906 |
F77=$ac_cv_prog_F77 |
|
5907 |
if test -n "$F77"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5908 |
{ echo "$as_me:$LINENO: result: $F77" >&5 |
5909 |
echo "${ECHO_T}$F77" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5910 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5911 |
{ echo "$as_me:$LINENO: result: no" >&5 |
5912 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5913 |
fi |
5914 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5915 |
|
1
by Ross Burton
Import upstream version 0.10 |
5916 |
test -n "$F77" && break |
5917 |
done |
|
5918 |
fi |
|
5919 |
if test -z "$F77"; then |
|
5920 |
ac_ct_F77=$F77 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5921 |
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 |
1
by Ross Burton
Import upstream version 0.10 |
5922 |
do |
5923 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
5924 |
set dummy $ac_prog; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5925 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5926 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5927 |
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
5928 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5929 |
else |
|
5930 |
if test -n "$ac_ct_F77"; then |
|
5931 |
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
|
5932 |
else |
|
5933 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5934 |
for as_dir in $PATH |
|
5935 |
do |
|
5936 |
IFS=$as_save_IFS |
|
5937 |
test -z "$as_dir" && as_dir=. |
|
5938 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
5939 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
5940 |
ac_cv_prog_ac_ct_F77="$ac_prog" |
5941 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5942 |
break 2 |
|
5943 |
fi |
|
5944 |
done |
|
5945 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5946 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
5947 |
|
5948 |
fi |
|
5949 |
fi |
|
5950 |
ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
|
5951 |
if test -n "$ac_ct_F77"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5952 |
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
5953 |
echo "${ECHO_T}$ac_ct_F77" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5954 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5955 |
{ echo "$as_me:$LINENO: result: no" >&5 |
5956 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
5957 |
fi |
5958 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5959 |
|
1
by Ross Burton
Import upstream version 0.10 |
5960 |
test -n "$ac_ct_F77" && break |
5961 |
done |
|
5962 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5963 |
if test "x$ac_ct_F77" = x; then |
5964 |
F77="" |
|
5965 |
else |
|
5966 |
case $cross_compiling:$ac_tool_warned in |
|
5967 |
yes:) |
|
5968 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
5969 |
whose name does not start with the host triplet. If you think this |
|
5970 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
5971 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
5972 |
whose name does not start with the host triplet. If you think this |
|
5973 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
5974 |
ac_tool_warned=yes ;; |
|
5975 |
esac |
|
5976 |
F77=$ac_ct_F77 |
|
5977 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
5978 |
fi |
5979 |
||
5980 |
||
5981 |
# Provide some information about the compiler. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5982 |
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
5983 |
ac_compiler=`set X $ac_compile; echo $2` |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
5984 |
{ (ac_try="$ac_compiler --version >&5" |
5985 |
case "(($ac_try" in |
|
5986 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5987 |
*) ac_try_echo=$ac_try;; |
|
5988 |
esac |
|
5989 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5990 |
(eval "$ac_compiler --version >&5") 2>&5 |
|
5991 |
ac_status=$? |
|
5992 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5993 |
(exit $ac_status); } |
|
5994 |
{ (ac_try="$ac_compiler -v >&5" |
|
5995 |
case "(($ac_try" in |
|
5996 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5997 |
*) ac_try_echo=$ac_try;; |
|
5998 |
esac |
|
5999 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6000 |
(eval "$ac_compiler -v >&5") 2>&5 |
|
6001 |
ac_status=$? |
|
6002 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6003 |
(exit $ac_status); } |
|
6004 |
{ (ac_try="$ac_compiler -V >&5" |
|
6005 |
case "(($ac_try" in |
|
6006 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6007 |
*) ac_try_echo=$ac_try;; |
|
6008 |
esac |
|
6009 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6010 |
(eval "$ac_compiler -V >&5") 2>&5 |
|
1
by Ross Burton
Import upstream version 0.10 |
6011 |
ac_status=$? |
6012 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6013 |
(exit $ac_status); } |
|
6014 |
rm -f a.out |
|
6015 |
||
6016 |
# If we don't use `.F' as extension, the preprocessor is not run on the |
|
6017 |
# input file. (Note that this only needs to work for GNU compilers.) |
|
6018 |
ac_save_ext=$ac_ext |
|
6019 |
ac_ext=F |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6020 |
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6021 |
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6022 |
if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6023 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6024 |
else |
|
6025 |
cat >conftest.$ac_ext <<_ACEOF |
|
6026 |
program main |
|
6027 |
#ifndef __GNUC__ |
|
6028 |
choke me |
|
6029 |
#endif |
|
6030 |
||
6031 |
end |
|
6032 |
_ACEOF |
|
6033 |
rm -f conftest.$ac_objext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6034 |
if { (ac_try="$ac_compile" |
6035 |
case "(($ac_try" in |
|
6036 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6037 |
*) ac_try_echo=$ac_try;; |
|
6038 |
esac |
|
6039 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6040 |
(eval "$ac_compile") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
6041 |
ac_status=$? |
6042 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6043 |
rm -f conftest.er1 |
|
6044 |
cat conftest.err >&5 |
|
6045 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
6046 |
(exit $ac_status); } && { |
6047 |
test -z "$ac_f77_werror_flag" || |
|
6048 |
test ! -s conftest.err |
|
6049 |
} && test -s conftest.$ac_objext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
6050 |
ac_compiler_gnu=yes |
6051 |
else |
|
6052 |
echo "$as_me: failed program was:" >&5 |
|
6053 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6054 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6055 |
ac_compiler_gnu=no |
1
by Ross Burton
Import upstream version 0.10 |
6056 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6057 |
|
6058 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1
by Ross Burton
Import upstream version 0.10 |
6059 |
ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6060 |
||
6061 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6062 |
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6063 |
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6064 |
ac_ext=$ac_save_ext |
6065 |
ac_test_FFLAGS=${FFLAGS+set} |
|
6066 |
ac_save_FFLAGS=$FFLAGS |
|
6067 |
FFLAGS= |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6068 |
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6069 |
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6070 |
if test "${ac_cv_prog_f77_g+set}" = set; then |
6071 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6072 |
else |
|
6073 |
FFLAGS=-g |
|
6074 |
cat >conftest.$ac_ext <<_ACEOF |
|
6075 |
program main |
|
6076 |
||
6077 |
end |
|
6078 |
_ACEOF |
|
6079 |
rm -f conftest.$ac_objext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6080 |
if { (ac_try="$ac_compile" |
6081 |
case "(($ac_try" in |
|
6082 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6083 |
*) ac_try_echo=$ac_try;; |
|
6084 |
esac |
|
6085 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6086 |
(eval "$ac_compile") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
6087 |
ac_status=$? |
6088 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6089 |
rm -f conftest.er1 |
|
6090 |
cat conftest.err >&5 |
|
6091 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
6092 |
(exit $ac_status); } && { |
6093 |
test -z "$ac_f77_werror_flag" || |
|
6094 |
test ! -s conftest.err |
|
6095 |
} && test -s conftest.$ac_objext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
6096 |
ac_cv_prog_f77_g=yes |
6097 |
else |
|
6098 |
echo "$as_me: failed program was:" >&5 |
|
6099 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6100 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6101 |
ac_cv_prog_f77_g=no |
6102 |
fi |
|
6103 |
||
6104 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6105 |
||
6106 |
fi |
|
6107 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
|
6108 |
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6109 |
if test "$ac_test_FFLAGS" = set; then |
6110 |
FFLAGS=$ac_save_FFLAGS |
|
6111 |
elif test $ac_cv_prog_f77_g = yes; then |
|
6112 |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
6113 |
FFLAGS="-g -O2" |
|
6114 |
else |
|
6115 |
FFLAGS="-g" |
|
6116 |
fi |
|
6117 |
else |
|
6118 |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
6119 |
FFLAGS="-O2" |
|
6120 |
else |
|
6121 |
FFLAGS= |
|
6122 |
fi |
|
6123 |
fi |
|
6124 |
||
6125 |
G77=`test $ac_compiler_gnu = yes && echo yes` |
|
6126 |
ac_ext=c |
|
6127 |
ac_cpp='$CPP $CPPFLAGS' |
|
6128 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6129 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6130 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6131 |
||
6132 |
||
6133 |
||
6134 |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
|
6135 |
||
6136 |
# find the maximum length of command line arguments |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6137 |
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6138 |
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6139 |
if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6140 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6141 |
else |
|
6142 |
i=0 |
|
6143 |
teststring="ABCD" |
|
6144 |
||
6145 |
case $build_os in |
|
6146 |
msdosdjgpp*) |
|
6147 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
|
6148 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
|
6149 |
# during glob expansion). Even if it were fixed, the result of this |
|
6150 |
# check would be larger than it should be. |
|
6151 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
|
6152 |
;; |
|
6153 |
||
6154 |
gnu*) |
|
6155 |
# Under GNU Hurd, this test is not required because there is |
|
6156 |
# no limit to the length of command line arguments. |
|
6157 |
# Libtool will interpret -1 as no limit whatsoever |
|
6158 |
lt_cv_sys_max_cmd_len=-1; |
|
6159 |
;; |
|
6160 |
||
6161 |
cygwin* | mingw*) |
|
6162 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
|
6163 |
# about 5 minutes as the teststring grows exponentially. |
|
6164 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
|
6165 |
# you end up with a "frozen" computer, even though with patience |
|
6166 |
# the test eventually succeeds (with a max line length of 256k). |
|
6167 |
# Instead, let's just punt: use the minimum linelength reported by |
|
6168 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
|
6169 |
lt_cv_sys_max_cmd_len=8192; |
|
6170 |
;; |
|
6171 |
||
6172 |
amigaos*) |
|
6173 |
# On AmigaOS with pdksh, this test takes hours, literally. |
|
6174 |
# So we just punt and use a minimum line length of 8192. |
|
6175 |
lt_cv_sys_max_cmd_len=8192; |
|
6176 |
;; |
|
6177 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6178 |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
1
by Ross Burton
Import upstream version 0.10 |
6179 |
# This has been around since 386BSD, at least. Likely further. |
6180 |
if test -x /sbin/sysctl; then |
|
6181 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
|
6182 |
elif test -x /usr/sbin/sysctl; then |
|
6183 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
|
6184 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6185 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
1
by Ross Burton
Import upstream version 0.10 |
6186 |
fi |
6187 |
# And add a safety zone |
|
6188 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6189 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6190 |
;; |
|
6191 |
||
6192 |
interix*) |
|
6193 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
|
6194 |
lt_cv_sys_max_cmd_len=196608 |
|
6195 |
;; |
|
6196 |
||
6197 |
osf*) |
|
6198 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
|
6199 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
|
6200 |
# nice to cause kernel panics so lets avoid the loop below. |
|
6201 |
# First set a reasonable default. |
|
6202 |
lt_cv_sys_max_cmd_len=16384 |
|
6203 |
# |
|
6204 |
if test -x /sbin/sysconfig; then |
|
6205 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
|
6206 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
|
6207 |
esac |
|
6208 |
fi |
|
6209 |
;; |
|
6210 |
sco3.2v5*) |
|
6211 |
lt_cv_sys_max_cmd_len=102400 |
|
6212 |
;; |
|
6213 |
sysv5* | sco5v6* | sysv4.2uw2*) |
|
6214 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
|
6215 |
if test -n "$kargmax"; then |
|
6216 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
|
6217 |
else |
|
6218 |
lt_cv_sys_max_cmd_len=32768 |
|
6219 |
fi |
|
6220 |
;; |
|
6221 |
*) |
|
1
by Ross Burton
Import upstream version 0.10 |
6222 |
# If test is not a shell built-in, we'll probably end up computing a |
6223 |
# maximum length that is only half of the actual maximum length, but |
|
6224 |
# we can't tell. |
|
6225 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
|
6226 |
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
|
6227 |
= "XX$teststring") >/dev/null 2>&1 && |
|
6228 |
new_result=`expr "X$teststring" : ".*" 2>&1` && |
|
6229 |
lt_cv_sys_max_cmd_len=$new_result && |
|
6230 |
test $i != 17 # 1/2 MB should be enough |
|
6231 |
do |
|
6232 |
i=`expr $i + 1` |
|
6233 |
teststring=$teststring$teststring |
|
6234 |
done |
|
6235 |
teststring= |
|
6236 |
# Add a significant safety factor because C++ compilers can tack on massive |
|
6237 |
# amounts of additional arguments before passing them to the linker. |
|
6238 |
# It appears as though 1/2 is a usable value. |
|
6239 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
|
6240 |
;; |
|
6241 |
esac |
|
6242 |
||
6243 |
fi |
|
6244 |
||
6245 |
if test -n $lt_cv_sys_max_cmd_len ; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6246 |
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6247 |
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6248 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6249 |
{ echo "$as_me:$LINENO: result: none" >&5 |
6250 |
echo "${ECHO_T}none" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6251 |
fi |
6252 |
||
6253 |
||
6254 |
||
6255 |
||
6256 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6257 |
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6258 |
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6259 |
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6260 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6261 |
else |
|
6262 |
||
6263 |
# These are sane defaults that work on at least a few old systems. |
|
6264 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
6265 |
||
6266 |
# Character class describing NM global symbol codes. |
|
6267 |
symcode='[BCDEGRST]' |
|
6268 |
||
6269 |
# Regexp to match symbols that can be accessed directly from C. |
|
6270 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
6271 |
||
6272 |
# Transform an extracted symbol line into a proper C declaration |
|
6273 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
|
6274 |
||
6275 |
# Transform an extracted symbol line into symbol name and symbol address |
|
6276 |
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'" |
|
6277 |
||
6278 |
# Define system-specific variables. |
|
6279 |
case $host_os in |
|
6280 |
aix*) |
|
6281 |
symcode='[BCDT]' |
|
6282 |
;; |
|
6283 |
cygwin* | mingw* | pw32*) |
|
6284 |
symcode='[ABCDGISTW]' |
|
6285 |
;; |
|
6286 |
hpux*) # Its linker distinguishes data from code symbols |
|
6287 |
if test "$host_cpu" = ia64; then |
|
6288 |
symcode='[ABCDEGRST]' |
|
6289 |
fi |
|
6290 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
6291 |
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'" |
|
6292 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6293 |
linux*) |
6294 |
if test "$host_cpu" = ia64; then |
|
6295 |
symcode='[ABCDGIRSTW]' |
|
6296 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
6297 |
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'" |
|
6298 |
fi |
|
6299 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
6300 |
irix* | nonstopux*) |
6301 |
symcode='[BCDEGRST]' |
|
6302 |
;; |
|
6303 |
osf*) |
|
6304 |
symcode='[BCDEGQRST]' |
|
6305 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6306 |
solaris*) |
1
by Ross Burton
Import upstream version 0.10 |
6307 |
symcode='[BDRT]' |
6308 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6309 |
sco3.2v5*) |
6310 |
symcode='[DT]' |
|
6311 |
;; |
|
6312 |
sysv4.2uw2*) |
|
6313 |
symcode='[DT]' |
|
6314 |
;; |
|
6315 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
|
6316 |
symcode='[ABDT]' |
|
6317 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
6318 |
sysv4) |
6319 |
symcode='[DFNSTU]' |
|
6320 |
;; |
|
6321 |
esac |
|
6322 |
||
6323 |
# Handle CRLF in mingw tool chain |
|
6324 |
opt_cr= |
|
6325 |
case $build_os in |
|
6326 |
mingw*) |
|
6327 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
6328 |
;; |
|
6329 |
esac |
|
6330 |
||
6331 |
# If we're using GNU nm, then use its standard symbol codes. |
|
6332 |
case `$NM -V 2>&1` in |
|
6333 |
*GNU* | *'with BFD'*) |
|
6334 |
symcode='[ABCDGIRSTW]' ;; |
|
6335 |
esac |
|
6336 |
||
6337 |
# Try without a prefix undercore, then with it. |
|
6338 |
for ac_symprfx in "" "_"; do |
|
6339 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6340 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6341 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
|
6342 |
||
1
by Ross Burton
Import upstream version 0.10 |
6343 |
# Write the raw and C identifiers. |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6344 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
1
by Ross Burton
Import upstream version 0.10 |
6345 |
|
6346 |
# Check to see that the pipe works correctly. |
|
6347 |
pipe_works=no |
|
6348 |
||
6349 |
rm -f conftest* |
|
6350 |
cat > conftest.$ac_ext <<EOF |
|
6351 |
#ifdef __cplusplus |
|
6352 |
extern "C" { |
|
6353 |
#endif |
|
6354 |
char nm_test_var; |
|
6355 |
void nm_test_func(){} |
|
6356 |
#ifdef __cplusplus |
|
6357 |
} |
|
6358 |
#endif |
|
6359 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
|
6360 |
EOF |
|
6361 |
||
6362 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
6363 |
(eval $ac_compile) 2>&5 |
|
6364 |
ac_status=$? |
|
6365 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6366 |
(exit $ac_status); }; then |
|
6367 |
# Now try to grab the symbols. |
|
6368 |
nlist=conftest.nm |
|
6369 |
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
6370 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
6371 |
ac_status=$? |
|
6372 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6373 |
(exit $ac_status); } && test -s "$nlist"; then |
|
6374 |
# Try sorting and uniquifying the output. |
|
6375 |
if sort "$nlist" | uniq > "$nlist"T; then |
|
6376 |
mv -f "$nlist"T "$nlist" |
|
6377 |
else |
|
6378 |
rm -f "$nlist"T |
|
6379 |
fi |
|
6380 |
||
6381 |
# Make sure that we snagged all the symbols we need. |
|
6382 |
if grep ' nm_test_var$' "$nlist" >/dev/null; then |
|
6383 |
if grep ' nm_test_func$' "$nlist" >/dev/null; then |
|
6384 |
cat <<EOF > conftest.$ac_ext |
|
6385 |
#ifdef __cplusplus |
|
6386 |
extern "C" { |
|
6387 |
#endif |
|
6388 |
||
6389 |
EOF |
|
6390 |
# Now generate the symbol file. |
|
6391 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
|
6392 |
||
6393 |
cat <<EOF >> conftest.$ac_ext |
|
6394 |
#if defined (__STDC__) && __STDC__ |
|
6395 |
# define lt_ptr_t void * |
|
6396 |
#else |
|
6397 |
# define lt_ptr_t char * |
|
6398 |
# define const |
|
6399 |
#endif |
|
6400 |
||
6401 |
/* The mapping between symbol names and symbols. */ |
|
6402 |
const struct { |
|
6403 |
const char *name; |
|
6404 |
lt_ptr_t address; |
|
6405 |
} |
|
6406 |
lt_preloaded_symbols[] = |
|
6407 |
{ |
|
6408 |
EOF |
|
6409 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
|
6410 |
cat <<\EOF >> conftest.$ac_ext |
|
6411 |
{0, (lt_ptr_t) 0} |
|
6412 |
}; |
|
6413 |
||
6414 |
#ifdef __cplusplus |
|
6415 |
} |
|
6416 |
#endif |
|
6417 |
EOF |
|
6418 |
# Now try linking the two files. |
|
6419 |
mv conftest.$ac_objext conftstm.$ac_objext |
|
6420 |
lt_save_LIBS="$LIBS" |
|
6421 |
lt_save_CFLAGS="$CFLAGS" |
|
6422 |
LIBS="conftstm.$ac_objext" |
|
6423 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
|
6424 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
6425 |
(eval $ac_link) 2>&5 |
|
6426 |
ac_status=$? |
|
6427 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6428 |
(exit $ac_status); } && test -s conftest${ac_exeext}; then |
|
6429 |
pipe_works=yes |
|
6430 |
fi |
|
6431 |
LIBS="$lt_save_LIBS" |
|
6432 |
CFLAGS="$lt_save_CFLAGS" |
|
6433 |
else |
|
6434 |
echo "cannot find nm_test_func in $nlist" >&5 |
|
6435 |
fi |
|
6436 |
else |
|
6437 |
echo "cannot find nm_test_var in $nlist" >&5 |
|
6438 |
fi |
|
6439 |
else |
|
6440 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
6441 |
fi |
|
6442 |
else |
|
6443 |
echo "$progname: failed program was:" >&5 |
|
6444 |
cat conftest.$ac_ext >&5 |
|
6445 |
fi |
|
6446 |
rm -f conftest* conftst* |
|
6447 |
||
6448 |
# Do not use the global_symbol_pipe unless it works. |
|
6449 |
if test "$pipe_works" = yes; then |
|
6450 |
break |
|
6451 |
else |
|
6452 |
lt_cv_sys_global_symbol_pipe= |
|
6453 |
fi |
|
6454 |
done |
|
6455 |
||
6456 |
fi |
|
6457 |
||
6458 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
6459 |
lt_cv_sys_global_symbol_to_cdecl= |
|
6460 |
fi |
|
6461 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6462 |
{ echo "$as_me:$LINENO: result: failed" >&5 |
6463 |
echo "${ECHO_T}failed" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6464 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6465 |
{ echo "$as_me:$LINENO: result: ok" >&5 |
6466 |
echo "${ECHO_T}ok" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6467 |
fi |
6468 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6469 |
{ echo "$as_me:$LINENO: checking for objdir" >&5 |
6470 |
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6471 |
if test "${lt_cv_objdir+set}" = set; then |
6472 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6473 |
else |
|
6474 |
rm -f .libs 2>/dev/null |
|
6475 |
mkdir .libs 2>/dev/null |
|
6476 |
if test -d .libs; then |
|
6477 |
lt_cv_objdir=.libs |
|
6478 |
else |
|
6479 |
# MS-DOS does not allow filenames that begin with a dot. |
|
6480 |
lt_cv_objdir=_libs |
|
6481 |
fi |
|
6482 |
rmdir .libs 2>/dev/null |
|
6483 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6484 |
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6485 |
echo "${ECHO_T}$lt_cv_objdir" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6486 |
objdir=$lt_cv_objdir |
6487 |
||
6488 |
||
6489 |
||
6490 |
||
6491 |
||
6492 |
case $host_os in |
|
6493 |
aix3*) |
|
6494 |
# AIX sometimes has problems with the GCC collect2 program. For some |
|
6495 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
|
6496 |
# vanish in a puff of smoke. |
|
6497 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
|
6498 |
COLLECT_NAMES= |
|
6499 |
export COLLECT_NAMES |
|
6500 |
fi |
|
6501 |
;; |
|
6502 |
esac |
|
6503 |
||
6504 |
# Sed substitution that helps us do robust quoting. It backslashifies |
|
6505 |
# metacharacters that are still active within double-quoted strings. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6506 |
Xsed='sed -e 1s/^X//' |
1
by Ross Burton
Import upstream version 0.10 |
6507 |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6508 |
||
6509 |
# Same as above, but do not quote variable references. |
|
6510 |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
6511 |
||
6512 |
# Sed substitution to delay expansion of an escaped shell variable in a |
|
6513 |
# double_quote_subst'ed string. |
|
6514 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
6515 |
||
6516 |
# Sed substitution to avoid accidental globbing in evaled expressions |
|
6517 |
no_glob_subst='s/\*/\\\*/g' |
|
6518 |
||
6519 |
# Constants: |
|
6520 |
rm="rm -f" |
|
6521 |
||
6522 |
# Global variables: |
|
6523 |
default_ofile=libtool |
|
6524 |
can_build_shared=yes |
|
6525 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6526 |
# All known linkers require a `.a' archive for static linking (except MSVC, |
1
by Ross Burton
Import upstream version 0.10 |
6527 |
# which needs '.lib'). |
6528 |
libext=a |
|
6529 |
ltmain="$ac_aux_dir/ltmain.sh" |
|
6530 |
ofile="$default_ofile" |
|
6531 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
6532 |
||
6533 |
if test -n "$ac_tool_prefix"; then |
|
6534 |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|
6535 |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6536 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6537 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6538 |
if test "${ac_cv_prog_AR+set}" = set; then |
6539 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6540 |
else |
|
6541 |
if test -n "$AR"; then |
|
6542 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
|
6543 |
else |
|
6544 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6545 |
for as_dir in $PATH |
|
6546 |
do |
|
6547 |
IFS=$as_save_IFS |
|
6548 |
test -z "$as_dir" && as_dir=. |
|
6549 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
6550 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
6551 |
ac_cv_prog_AR="${ac_tool_prefix}ar" |
6552 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6553 |
break 2 |
|
6554 |
fi |
|
6555 |
done |
|
6556 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6557 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
6558 |
|
6559 |
fi |
|
6560 |
fi |
|
6561 |
AR=$ac_cv_prog_AR |
|
6562 |
if test -n "$AR"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6563 |
{ echo "$as_me:$LINENO: result: $AR" >&5 |
6564 |
echo "${ECHO_T}$AR" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6565 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6566 |
{ echo "$as_me:$LINENO: result: no" >&5 |
6567 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6568 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6569 |
|
1
by Ross Burton
Import upstream version 0.10 |
6570 |
|
6571 |
fi |
|
6572 |
if test -z "$ac_cv_prog_AR"; then |
|
6573 |
ac_ct_AR=$AR |
|
6574 |
# Extract the first word of "ar", so it can be a program name with args. |
|
6575 |
set dummy ar; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6576 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6577 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6578 |
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6579 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6580 |
else |
|
6581 |
if test -n "$ac_ct_AR"; then |
|
6582 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
6583 |
else |
|
6584 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6585 |
for as_dir in $PATH |
|
6586 |
do |
|
6587 |
IFS=$as_save_IFS |
|
6588 |
test -z "$as_dir" && as_dir=. |
|
6589 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
6590 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
6591 |
ac_cv_prog_ac_ct_AR="ar" |
6592 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6593 |
break 2 |
|
6594 |
fi |
|
6595 |
done |
|
6596 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6597 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
6598 |
|
6599 |
fi |
|
6600 |
fi |
|
6601 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|
6602 |
if test -n "$ac_ct_AR"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6603 |
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6604 |
echo "${ECHO_T}$ac_ct_AR" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6605 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6606 |
{ echo "$as_me:$LINENO: result: no" >&5 |
6607 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6608 |
fi |
6609 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6610 |
if test "x$ac_ct_AR" = x; then |
6611 |
AR="false" |
|
6612 |
else |
|
6613 |
case $cross_compiling:$ac_tool_warned in |
|
6614 |
yes:) |
|
6615 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
6616 |
whose name does not start with the host triplet. If you think this |
|
6617 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
6618 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
6619 |
whose name does not start with the host triplet. If you think this |
|
6620 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
6621 |
ac_tool_warned=yes ;; |
|
6622 |
esac |
|
6623 |
AR=$ac_ct_AR |
|
6624 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
6625 |
else |
6626 |
AR="$ac_cv_prog_AR" |
|
6627 |
fi |
|
6628 |
||
6629 |
if test -n "$ac_tool_prefix"; then |
|
6630 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
6631 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6632 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6633 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6634 |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
6635 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6636 |
else |
|
6637 |
if test -n "$RANLIB"; then |
|
6638 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
6639 |
else |
|
6640 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6641 |
for as_dir in $PATH |
|
6642 |
do |
|
6643 |
IFS=$as_save_IFS |
|
6644 |
test -z "$as_dir" && as_dir=. |
|
6645 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
6646 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
6647 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6648 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6649 |
break 2 |
|
6650 |
fi |
|
6651 |
done |
|
6652 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6653 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
6654 |
|
6655 |
fi |
|
6656 |
fi |
|
6657 |
RANLIB=$ac_cv_prog_RANLIB |
|
6658 |
if test -n "$RANLIB"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6659 |
{ echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6660 |
echo "${ECHO_T}$RANLIB" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6661 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6662 |
{ echo "$as_me:$LINENO: result: no" >&5 |
6663 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6664 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6665 |
|
1
by Ross Burton
Import upstream version 0.10 |
6666 |
|
6667 |
fi |
|
6668 |
if test -z "$ac_cv_prog_RANLIB"; then |
|
6669 |
ac_ct_RANLIB=$RANLIB |
|
6670 |
# Extract the first word of "ranlib", so it can be a program name with args. |
|
6671 |
set dummy ranlib; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6672 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6673 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6674 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6675 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6676 |
else |
|
6677 |
if test -n "$ac_ct_RANLIB"; then |
|
6678 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
6679 |
else |
|
6680 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6681 |
for as_dir in $PATH |
|
6682 |
do |
|
6683 |
IFS=$as_save_IFS |
|
6684 |
test -z "$as_dir" && as_dir=. |
|
6685 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
6686 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
6687 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
6688 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6689 |
break 2 |
|
6690 |
fi |
|
6691 |
done |
|
6692 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6693 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
6694 |
|
6695 |
fi |
|
6696 |
fi |
|
6697 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
6698 |
if test -n "$ac_ct_RANLIB"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6699 |
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6700 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6701 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6702 |
{ echo "$as_me:$LINENO: result: no" >&5 |
6703 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6704 |
fi |
6705 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6706 |
if test "x$ac_ct_RANLIB" = x; then |
6707 |
RANLIB=":" |
|
6708 |
else |
|
6709 |
case $cross_compiling:$ac_tool_warned in |
|
6710 |
yes:) |
|
6711 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
6712 |
whose name does not start with the host triplet. If you think this |
|
6713 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
6714 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
6715 |
whose name does not start with the host triplet. If you think this |
|
6716 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
6717 |
ac_tool_warned=yes ;; |
|
6718 |
esac |
|
6719 |
RANLIB=$ac_ct_RANLIB |
|
6720 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
6721 |
else |
6722 |
RANLIB="$ac_cv_prog_RANLIB" |
|
6723 |
fi |
|
6724 |
||
6725 |
if test -n "$ac_tool_prefix"; then |
|
6726 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
6727 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6728 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6729 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6730 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
6731 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6732 |
else |
|
6733 |
if test -n "$STRIP"; then |
|
6734 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
6735 |
else |
|
6736 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6737 |
for as_dir in $PATH |
|
6738 |
do |
|
6739 |
IFS=$as_save_IFS |
|
6740 |
test -z "$as_dir" && as_dir=. |
|
6741 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
6742 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
6743 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6744 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6745 |
break 2 |
|
6746 |
fi |
|
6747 |
done |
|
6748 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6749 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
6750 |
|
6751 |
fi |
|
6752 |
fi |
|
6753 |
STRIP=$ac_cv_prog_STRIP |
|
6754 |
if test -n "$STRIP"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6755 |
{ echo "$as_me:$LINENO: result: $STRIP" >&5 |
6756 |
echo "${ECHO_T}$STRIP" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6757 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6758 |
{ echo "$as_me:$LINENO: result: no" >&5 |
6759 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6760 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6761 |
|
1
by Ross Burton
Import upstream version 0.10 |
6762 |
|
6763 |
fi |
|
6764 |
if test -z "$ac_cv_prog_STRIP"; then |
|
6765 |
ac_ct_STRIP=$STRIP |
|
6766 |
# Extract the first word of "strip", so it can be a program name with args. |
|
6767 |
set dummy strip; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6768 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6769 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6770 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6771 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6772 |
else |
|
6773 |
if test -n "$ac_ct_STRIP"; then |
|
6774 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
6775 |
else |
|
6776 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6777 |
for as_dir in $PATH |
|
6778 |
do |
|
6779 |
IFS=$as_save_IFS |
|
6780 |
test -z "$as_dir" && as_dir=. |
|
6781 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
6782 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
6783 |
ac_cv_prog_ac_ct_STRIP="strip" |
6784 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6785 |
break 2 |
|
6786 |
fi |
|
6787 |
done |
|
6788 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6789 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
6790 |
|
6791 |
fi |
|
6792 |
fi |
|
6793 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
6794 |
if test -n "$ac_ct_STRIP"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6795 |
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6796 |
echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6797 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6798 |
{ echo "$as_me:$LINENO: result: no" >&5 |
6799 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6800 |
fi |
6801 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6802 |
if test "x$ac_ct_STRIP" = x; then |
6803 |
STRIP=":" |
|
6804 |
else |
|
6805 |
case $cross_compiling:$ac_tool_warned in |
|
6806 |
yes:) |
|
6807 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
6808 |
whose name does not start with the host triplet. If you think this |
|
6809 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
6810 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
6811 |
whose name does not start with the host triplet. If you think this |
|
6812 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
6813 |
ac_tool_warned=yes ;; |
|
6814 |
esac |
|
6815 |
STRIP=$ac_ct_STRIP |
|
6816 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
6817 |
else |
6818 |
STRIP="$ac_cv_prog_STRIP" |
|
6819 |
fi |
|
6820 |
||
6821 |
||
6822 |
old_CC="$CC" |
|
6823 |
old_CFLAGS="$CFLAGS" |
|
6824 |
||
6825 |
# Set sane defaults for various variables |
|
6826 |
test -z "$AR" && AR=ar |
|
6827 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
6828 |
test -z "$AS" && AS=as |
|
6829 |
test -z "$CC" && CC=cc |
|
6830 |
test -z "$LTCC" && LTCC=$CC |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6831 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
1
by Ross Burton
Import upstream version 0.10 |
6832 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
6833 |
test -z "$LD" && LD=ld |
|
6834 |
test -z "$LN_S" && LN_S="ln -s" |
|
6835 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
6836 |
test -z "$NM" && NM=nm |
|
6837 |
test -z "$SED" && SED=sed |
|
6838 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
|
6839 |
test -z "$RANLIB" && RANLIB=: |
|
6840 |
test -z "$STRIP" && STRIP=: |
|
6841 |
test -z "$ac_objext" && ac_objext=o |
|
6842 |
||
6843 |
# Determine commands to create old-style static archives. |
|
6844 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
6845 |
old_postinstall_cmds='chmod 644 $oldlib' |
|
6846 |
old_postuninstall_cmds= |
|
6847 |
||
6848 |
if test -n "$RANLIB"; then |
|
6849 |
case $host_os in |
|
6850 |
openbsd*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6851 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
1
by Ross Burton
Import upstream version 0.10 |
6852 |
;; |
6853 |
*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6854 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
1
by Ross Burton
Import upstream version 0.10 |
6855 |
;; |
6856 |
esac |
|
6857 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
6858 |
fi |
|
6859 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6860 |
for cc_temp in $compiler""; do |
6861 |
case $cc_temp in |
|
6862 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
6863 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
6864 |
\-*) ;; |
|
6865 |
*) break;; |
|
6866 |
esac |
|
6867 |
done |
|
6868 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
6869 |
||
1
by Ross Burton
Import upstream version 0.10 |
6870 |
|
6871 |
# Only perform the check for file, if the check method requires it |
|
6872 |
case $deplibs_check_method in |
|
6873 |
file_magic*) |
|
6874 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6875 |
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6876 |
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6877 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6878 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6879 |
else |
|
6880 |
case $MAGIC_CMD in |
|
6881 |
[\\/*] | ?:[\\/]*) |
|
6882 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
6883 |
;; |
|
6884 |
*) |
|
6885 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
6886 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
6887 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
6888 |
for ac_dir in $ac_dummy; do |
|
6889 |
IFS="$lt_save_ifs" |
|
6890 |
test -z "$ac_dir" && ac_dir=. |
|
6891 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
|
6892 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
6893 |
if test -n "$file_magic_test_file"; then |
|
6894 |
case $deplibs_check_method in |
|
6895 |
"file_magic "*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6896 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
1
by Ross Burton
Import upstream version 0.10 |
6897 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6898 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
6899 |
$EGREP "$file_magic_regex" > /dev/null; then |
|
6900 |
: |
|
6901 |
else |
|
6902 |
cat <<EOF 1>&2 |
|
6903 |
||
6904 |
*** Warning: the command libtool uses to detect shared libraries, |
|
6905 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
|
6906 |
*** The result is that libtool may fail to recognize shared libraries |
|
6907 |
*** as such. This will affect the creation of libtool libraries that |
|
6908 |
*** depend on shared libraries, but programs linked with such libtool |
|
6909 |
*** libraries will work regardless of this problem. Nevertheless, you |
|
6910 |
*** may want to report the problem to your system manager and/or to |
|
6911 |
*** bug-libtool@gnu.org |
|
6912 |
||
6913 |
EOF |
|
6914 |
fi ;; |
|
6915 |
esac |
|
6916 |
fi |
|
6917 |
break |
|
6918 |
fi |
|
6919 |
done |
|
6920 |
IFS="$lt_save_ifs" |
|
6921 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
6922 |
;; |
|
6923 |
esac |
|
6924 |
fi |
|
6925 |
||
6926 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
6927 |
if test -n "$MAGIC_CMD"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6928 |
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6929 |
echo "${ECHO_T}$MAGIC_CMD" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6930 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6931 |
{ echo "$as_me:$LINENO: result: no" >&5 |
6932 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6933 |
fi |
6934 |
||
6935 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
6936 |
if test -n "$ac_tool_prefix"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6937 |
{ echo "$as_me:$LINENO: checking for file" >&5 |
6938 |
echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6939 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6940 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6941 |
else |
|
6942 |
case $MAGIC_CMD in |
|
6943 |
[\\/*] | ?:[\\/]*) |
|
6944 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
6945 |
;; |
|
6946 |
*) |
|
6947 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
6948 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
6949 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
6950 |
for ac_dir in $ac_dummy; do |
|
6951 |
IFS="$lt_save_ifs" |
|
6952 |
test -z "$ac_dir" && ac_dir=. |
|
6953 |
if test -f $ac_dir/file; then |
|
6954 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
6955 |
if test -n "$file_magic_test_file"; then |
|
6956 |
case $deplibs_check_method in |
|
6957 |
"file_magic "*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
6958 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
1
by Ross Burton
Import upstream version 0.10 |
6959 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6960 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
6961 |
$EGREP "$file_magic_regex" > /dev/null; then |
|
6962 |
: |
|
6963 |
else |
|
6964 |
cat <<EOF 1>&2 |
|
6965 |
||
6966 |
*** Warning: the command libtool uses to detect shared libraries, |
|
6967 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
|
6968 |
*** The result is that libtool may fail to recognize shared libraries |
|
6969 |
*** as such. This will affect the creation of libtool libraries that |
|
6970 |
*** depend on shared libraries, but programs linked with such libtool |
|
6971 |
*** libraries will work regardless of this problem. Nevertheless, you |
|
6972 |
*** may want to report the problem to your system manager and/or to |
|
6973 |
*** bug-libtool@gnu.org |
|
6974 |
||
6975 |
EOF |
|
6976 |
fi ;; |
|
6977 |
esac |
|
6978 |
fi |
|
6979 |
break |
|
6980 |
fi |
|
6981 |
done |
|
6982 |
IFS="$lt_save_ifs" |
|
6983 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
6984 |
;; |
|
6985 |
esac |
|
6986 |
fi |
|
6987 |
||
6988 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
6989 |
if test -n "$MAGIC_CMD"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6990 |
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6991 |
echo "${ECHO_T}$MAGIC_CMD" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6992 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
6993 |
{ echo "$as_me:$LINENO: result: no" >&5 |
6994 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
6995 |
fi |
6996 |
||
6997 |
else |
|
6998 |
MAGIC_CMD=: |
|
6999 |
fi |
|
7000 |
fi |
|
7001 |
||
7002 |
fi |
|
7003 |
;; |
|
7004 |
esac |
|
7005 |
||
7006 |
enable_dlopen=no |
|
7007 |
enable_win32_dll=no |
|
7008 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7009 |
# Check whether --enable-libtool-lock was given. |
1
by Ross Burton
Import upstream version 0.10 |
7010 |
if test "${enable_libtool_lock+set}" = set; then |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7011 |
enableval=$enable_libtool_lock; |
7012 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
7013 |
|
7014 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
7015 |
||
7016 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7017 |
# Check whether --with-pic was given. |
1
by Ross Burton
Import upstream version 0.10 |
7018 |
if test "${with_pic+set}" = set; then |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7019 |
withval=$with_pic; pic_mode="$withval" |
1
by Ross Burton
Import upstream version 0.10 |
7020 |
else |
7021 |
pic_mode=default |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7022 |
fi |
7023 |
||
1
by Ross Burton
Import upstream version 0.10 |
7024 |
test -z "$pic_mode" && pic_mode=default |
7025 |
||
7026 |
# Use C for the default configuration in the libtool script |
|
7027 |
tagname= |
|
7028 |
lt_save_CC="$CC" |
|
7029 |
ac_ext=c |
|
7030 |
ac_cpp='$CPP $CPPFLAGS' |
|
7031 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7032 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7033 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7034 |
||
7035 |
||
7036 |
# Source file extension for C test sources. |
|
7037 |
ac_ext=c |
|
7038 |
||
7039 |
# Object file extension for compiled C test sources. |
|
7040 |
objext=o |
|
7041 |
objext=$objext |
|
7042 |
||
7043 |
# Code to be used in simple compile tests |
|
7044 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
|
7045 |
||
7046 |
# Code to be used in simple link tests |
|
7047 |
lt_simple_link_test_code='int main(){return(0);}\n' |
|
7048 |
||
7049 |
||
7050 |
# If no C compiler was specified, use CC. |
|
7051 |
LTCC=${LTCC-"$CC"} |
|
7052 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7053 |
# If no C compiler flags were specified, use CFLAGS. |
7054 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
7055 |
||
1
by Ross Burton
Import upstream version 0.10 |
7056 |
# Allow CC to be a program name with arguments. |
7057 |
compiler=$CC |
|
7058 |
||
7059 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7060 |
# save warnings/boilerplate of simple test code |
7061 |
ac_outfile=conftest.$ac_objext |
|
7062 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
7063 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
7064 |
_lt_compiler_boilerplate=`cat conftest.err` |
|
7065 |
$rm conftest* |
|
7066 |
||
7067 |
ac_outfile=conftest.$ac_objext |
|
7068 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
7069 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
7070 |
_lt_linker_boilerplate=`cat conftest.err` |
|
7071 |
$rm conftest* |
|
1
by Ross Burton
Import upstream version 0.10 |
7072 |
|
7073 |
||
7074 |
||
7075 |
lt_prog_compiler_no_builtin_flag= |
|
7076 |
||
7077 |
if test "$GCC" = yes; then |
|
7078 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
|
7079 |
||
7080 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7081 |
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7082 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
7083 |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7084 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7085 |
else |
|
7086 |
lt_cv_prog_compiler_rtti_exceptions=no |
|
7087 |
ac_outfile=conftest.$ac_objext |
|
7088 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
7089 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
7090 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
7091 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
7092 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
7093 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
7094 |
# The option is referenced via a variable to avoid confusing sed. |
|
7095 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7096 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1
by Ross Burton
Import upstream version 0.10 |
7097 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7098 |
-e 's:$: $lt_compiler_flag:'` |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
7099 |
(eval echo "\"\$as_me:7099: $lt_compile\"" >&5) |
1
by Ross Burton
Import upstream version 0.10 |
7100 |
(eval "$lt_compile" 2>conftest.err) |
7101 |
ac_status=$? |
|
7102 |
cat conftest.err >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
7103 |
echo "$as_me:7103: \$? = $ac_status" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
7104 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
7105 |
# The compiler can only warn and ignore the option if not recognized |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7106 |
# So say no if there are warnings other than the usual output. |
7107 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
7108 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
7109 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
1
by Ross Burton
Import upstream version 0.10 |
7110 |
lt_cv_prog_compiler_rtti_exceptions=yes |
7111 |
fi |
|
7112 |
fi |
|
7113 |
$rm conftest* |
|
7114 |
||
7115 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7116 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7117 |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
7118 |
|
7119 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
7120 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
|
7121 |
else |
|
7122 |
: |
|
7123 |
fi |
|
7124 |
||
7125 |
fi |
|
7126 |
||
7127 |
lt_prog_compiler_wl= |
|
7128 |
lt_prog_compiler_pic= |
|
7129 |
lt_prog_compiler_static= |
|
7130 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7131 |
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7132 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
7133 |
|
7134 |
if test "$GCC" = yes; then |
|
7135 |
lt_prog_compiler_wl='-Wl,' |
|
7136 |
lt_prog_compiler_static='-static' |
|
7137 |
||
7138 |
case $host_os in |
|
7139 |
aix*) |
|
7140 |
# All AIX code is PIC. |
|
7141 |
if test "$host_cpu" = ia64; then |
|
7142 |
# AIX 5 now supports IA64 processor |
|
7143 |
lt_prog_compiler_static='-Bstatic' |
|
7144 |
fi |
|
7145 |
;; |
|
7146 |
||
7147 |
amigaos*) |
|
7148 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
7149 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
7150 |
# like `-m68040'. |
|
7151 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
|
7152 |
;; |
|
7153 |
||
7154 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
7155 |
# PIC is the default for these OSes. |
|
7156 |
;; |
|
7157 |
||
7158 |
mingw* | pw32* | os2*) |
|
7159 |
# This hack is so that the source file can tell whether it is being |
|
7160 |
# built for inclusion in a dll (and should export symbols for example). |
|
7161 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
|
7162 |
;; |
|
7163 |
||
7164 |
darwin* | rhapsody*) |
|
7165 |
# PIC is the default on this platform |
|
7166 |
# Common symbols not allowed in MH_DYLIB files |
|
7167 |
lt_prog_compiler_pic='-fno-common' |
|
7168 |
;; |
|
7169 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7170 |
interix3*) |
7171 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
7172 |
# Instead, we relocate shared libraries at runtime. |
|
7173 |
;; |
|
7174 |
||
1
by Ross Burton
Import upstream version 0.10 |
7175 |
msdosdjgpp*) |
7176 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
|
7177 |
# on systems that don't support them. |
|
7178 |
lt_prog_compiler_can_build_shared=no |
|
7179 |
enable_shared=no |
|
7180 |
;; |
|
7181 |
||
7182 |
sysv4*MP*) |
|
7183 |
if test -d /usr/nec; then |
|
7184 |
lt_prog_compiler_pic=-Kconform_pic |
|
7185 |
fi |
|
7186 |
;; |
|
7187 |
||
7188 |
hpux*) |
|
7189 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
7190 |
# not for PA HP-UX. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7191 |
case $host_cpu in |
1
by Ross Burton
Import upstream version 0.10 |
7192 |
hppa*64*|ia64*) |
7193 |
# +Z the default |
|
7194 |
;; |
|
7195 |
*) |
|
7196 |
lt_prog_compiler_pic='-fPIC' |
|
7197 |
;; |
|
7198 |
esac |
|
7199 |
;; |
|
7200 |
||
7201 |
*) |
|
7202 |
lt_prog_compiler_pic='-fPIC' |
|
7203 |
;; |
|
7204 |
esac |
|
7205 |
else |
|
7206 |
# PORTME Check for flag to pass linker flags through the system compiler. |
|
7207 |
case $host_os in |
|
7208 |
aix*) |
|
7209 |
lt_prog_compiler_wl='-Wl,' |
|
7210 |
if test "$host_cpu" = ia64; then |
|
7211 |
# AIX 5 now supports IA64 processor |
|
7212 |
lt_prog_compiler_static='-Bstatic' |
|
7213 |
else |
|
7214 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
|
7215 |
fi |
|
7216 |
;; |
|
7217 |
darwin*) |
|
7218 |
# PIC is the default on this platform |
|
7219 |
# Common symbols not allowed in MH_DYLIB files |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7220 |
case $cc_basename in |
1
by Ross Burton
Import upstream version 0.10 |
7221 |
xlc*) |
7222 |
lt_prog_compiler_pic='-qnocommon' |
|
7223 |
lt_prog_compiler_wl='-Wl,' |
|
7224 |
;; |
|
7225 |
esac |
|
7226 |
;; |
|
7227 |
||
7228 |
mingw* | pw32* | os2*) |
|
7229 |
# This hack is so that the source file can tell whether it is being |
|
7230 |
# built for inclusion in a dll (and should export symbols for example). |
|
7231 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
|
7232 |
;; |
|
7233 |
||
7234 |
hpux9* | hpux10* | hpux11*) |
|
7235 |
lt_prog_compiler_wl='-Wl,' |
|
7236 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
7237 |
# not for PA HP-UX. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7238 |
case $host_cpu in |
1
by Ross Burton
Import upstream version 0.10 |
7239 |
hppa*64*|ia64*) |
7240 |
# +Z the default |
|
7241 |
;; |
|
7242 |
*) |
|
7243 |
lt_prog_compiler_pic='+Z' |
|
7244 |
;; |
|
7245 |
esac |
|
7246 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
7247 |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
|
7248 |
;; |
|
7249 |
||
7250 |
irix5* | irix6* | nonstopux*) |
|
7251 |
lt_prog_compiler_wl='-Wl,' |
|
7252 |
# PIC (with -KPIC) is the default. |
|
7253 |
lt_prog_compiler_static='-non_shared' |
|
7254 |
;; |
|
7255 |
||
7256 |
newsos6) |
|
7257 |
lt_prog_compiler_pic='-KPIC' |
|
7258 |
lt_prog_compiler_static='-Bstatic' |
|
7259 |
;; |
|
7260 |
||
7261 |
linux*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7262 |
case $cc_basename in |
1
by Ross Burton
Import upstream version 0.10 |
7263 |
icc* | ecc*) |
7264 |
lt_prog_compiler_wl='-Wl,' |
|
7265 |
lt_prog_compiler_pic='-KPIC' |
|
7266 |
lt_prog_compiler_static='-static' |
|
7267 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7268 |
pgcc* | pgf77* | pgf90* | pgf95*) |
7269 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
|
7270 |
# which looks to be a dead project) |
|
7271 |
lt_prog_compiler_wl='-Wl,' |
|
7272 |
lt_prog_compiler_pic='-fpic' |
|
7273 |
lt_prog_compiler_static='-Bstatic' |
|
7274 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
7275 |
ccc*) |
7276 |
lt_prog_compiler_wl='-Wl,' |
|
7277 |
# All Alpha code is PIC. |
|
7278 |
lt_prog_compiler_static='-non_shared' |
|
7279 |
;; |
|
7280 |
esac |
|
7281 |
;; |
|
7282 |
||
7283 |
osf3* | osf4* | osf5*) |
|
7284 |
lt_prog_compiler_wl='-Wl,' |
|
7285 |
# All OSF/1 code is PIC. |
|
7286 |
lt_prog_compiler_static='-non_shared' |
|
7287 |
;; |
|
7288 |
||
7289 |
solaris*) |
|
7290 |
lt_prog_compiler_pic='-KPIC' |
|
7291 |
lt_prog_compiler_static='-Bstatic' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7292 |
case $cc_basename in |
7293 |
f77* | f90* | f95*) |
|
7294 |
lt_prog_compiler_wl='-Qoption ld ';; |
|
7295 |
*) |
|
7296 |
lt_prog_compiler_wl='-Wl,';; |
|
7297 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
7298 |
;; |
7299 |
||
7300 |
sunos4*) |
|
7301 |
lt_prog_compiler_wl='-Qoption ld ' |
|
7302 |
lt_prog_compiler_pic='-PIC' |
|
7303 |
lt_prog_compiler_static='-Bstatic' |
|
7304 |
;; |
|
7305 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7306 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
1
by Ross Burton
Import upstream version 0.10 |
7307 |
lt_prog_compiler_wl='-Wl,' |
7308 |
lt_prog_compiler_pic='-KPIC' |
|
7309 |
lt_prog_compiler_static='-Bstatic' |
|
7310 |
;; |
|
7311 |
||
7312 |
sysv4*MP*) |
|
7313 |
if test -d /usr/nec ;then |
|
7314 |
lt_prog_compiler_pic='-Kconform_pic' |
|
7315 |
lt_prog_compiler_static='-Bstatic' |
|
7316 |
fi |
|
7317 |
;; |
|
7318 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7319 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7320 |
lt_prog_compiler_wl='-Wl,' |
|
7321 |
lt_prog_compiler_pic='-KPIC' |
|
7322 |
lt_prog_compiler_static='-Bstatic' |
|
7323 |
;; |
|
7324 |
||
7325 |
unicos*) |
|
7326 |
lt_prog_compiler_wl='-Wl,' |
|
7327 |
lt_prog_compiler_can_build_shared=no |
|
7328 |
;; |
|
7329 |
||
1
by Ross Burton
Import upstream version 0.10 |
7330 |
uts4*) |
7331 |
lt_prog_compiler_pic='-pic' |
|
7332 |
lt_prog_compiler_static='-Bstatic' |
|
7333 |
;; |
|
7334 |
||
7335 |
*) |
|
7336 |
lt_prog_compiler_can_build_shared=no |
|
7337 |
;; |
|
7338 |
esac |
|
7339 |
fi |
|
7340 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7341 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7342 |
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
7343 |
|
7344 |
# |
|
7345 |
# Check to make sure the PIC flag actually works. |
|
7346 |
# |
|
7347 |
if test -n "$lt_prog_compiler_pic"; then |
|
7348 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7349 |
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7350 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
7351 |
if test "${lt_prog_compiler_pic_works+set}" = set; then |
7352 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7353 |
else |
|
7354 |
lt_prog_compiler_pic_works=no |
|
7355 |
ac_outfile=conftest.$ac_objext |
|
7356 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
7357 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
|
7358 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
7359 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
7360 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
7361 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
7362 |
# The option is referenced via a variable to avoid confusing sed. |
|
7363 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7364 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1
by Ross Burton
Import upstream version 0.10 |
7365 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7366 |
-e 's:$: $lt_compiler_flag:'` |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
7367 |
(eval echo "\"\$as_me:7367: $lt_compile\"" >&5) |
1
by Ross Burton
Import upstream version 0.10 |
7368 |
(eval "$lt_compile" 2>conftest.err) |
7369 |
ac_status=$? |
|
7370 |
cat conftest.err >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
7371 |
echo "$as_me:7371: \$? = $ac_status" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
7372 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
7373 |
# The compiler can only warn and ignore the option if not recognized |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7374 |
# So say no if there are warnings other than the usual output. |
7375 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
7376 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
7377 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
1
by Ross Burton
Import upstream version 0.10 |
7378 |
lt_prog_compiler_pic_works=yes |
7379 |
fi |
|
7380 |
fi |
|
7381 |
$rm conftest* |
|
7382 |
||
7383 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7384 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7385 |
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
7386 |
|
7387 |
if test x"$lt_prog_compiler_pic_works" = xyes; then |
|
7388 |
case $lt_prog_compiler_pic in |
|
7389 |
"" | " "*) ;; |
|
7390 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
|
7391 |
esac |
|
7392 |
else |
|
7393 |
lt_prog_compiler_pic= |
|
7394 |
lt_prog_compiler_can_build_shared=no |
|
7395 |
fi |
|
7396 |
||
7397 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7398 |
case $host_os in |
1
by Ross Burton
Import upstream version 0.10 |
7399 |
# For platforms which do not support PIC, -DPIC is meaningless: |
7400 |
*djgpp*) |
|
7401 |
lt_prog_compiler_pic= |
|
7402 |
;; |
|
7403 |
*) |
|
7404 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
|
7405 |
;; |
|
7406 |
esac |
|
7407 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7408 |
# |
7409 |
# Check to make sure the static flag actually works. |
|
7410 |
# |
|
7411 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7412 |
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7413 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7414 |
if test "${lt_prog_compiler_static_works+set}" = set; then |
7415 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7416 |
else |
|
7417 |
lt_prog_compiler_static_works=no |
|
7418 |
save_LDFLAGS="$LDFLAGS" |
|
7419 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
7420 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
7421 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
7422 |
# The linker can only warn and ignore the option if not recognized |
|
7423 |
# So say no if there are warnings |
|
7424 |
if test -s conftest.err; then |
|
7425 |
# Append any errors to the config.log. |
|
7426 |
cat conftest.err 1>&5 |
|
7427 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
7428 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
7429 |
if diff conftest.exp conftest.er2 >/dev/null; then |
|
7430 |
lt_prog_compiler_static_works=yes |
|
7431 |
fi |
|
7432 |
else |
|
7433 |
lt_prog_compiler_static_works=yes |
|
7434 |
fi |
|
7435 |
fi |
|
7436 |
$rm conftest* |
|
7437 |
LDFLAGS="$save_LDFLAGS" |
|
7438 |
||
7439 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7440 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7441 |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7442 |
|
7443 |
if test x"$lt_prog_compiler_static_works" = xyes; then |
|
7444 |
: |
|
7445 |
else |
|
7446 |
lt_prog_compiler_static= |
|
7447 |
fi |
|
7448 |
||
7449 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7450 |
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7451 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
7452 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7453 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7454 |
else |
|
7455 |
lt_cv_prog_compiler_c_o=no |
|
7456 |
$rm -r conftest 2>/dev/null |
|
7457 |
mkdir conftest |
|
7458 |
cd conftest |
|
7459 |
mkdir out |
|
7460 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
7461 |
||
7462 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
7463 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
7464 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
7465 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
7466 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
7467 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7468 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1
by Ross Burton
Import upstream version 0.10 |
7469 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7470 |
-e 's:$: $lt_compiler_flag:'` |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
7471 |
(eval echo "\"\$as_me:7471: $lt_compile\"" >&5) |
1
by Ross Burton
Import upstream version 0.10 |
7472 |
(eval "$lt_compile" 2>out/conftest.err) |
7473 |
ac_status=$? |
|
7474 |
cat out/conftest.err >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
7475 |
echo "$as_me:7475: \$? = $ac_status" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
7476 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7477 |
then |
|
7478 |
# The compiler can only warn and ignore the option if not recognized |
|
7479 |
# So say no if there are warnings |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7480 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7481 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
7482 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
1
by Ross Burton
Import upstream version 0.10 |
7483 |
lt_cv_prog_compiler_c_o=yes |
7484 |
fi |
|
7485 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7486 |
chmod u+w . 2>&5 |
1
by Ross Burton
Import upstream version 0.10 |
7487 |
$rm conftest* |
7488 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
7489 |
# template instantiation |
|
7490 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
7491 |
$rm out/* && rmdir out |
|
7492 |
cd .. |
|
7493 |
rmdir conftest |
|
7494 |
$rm conftest* |
|
7495 |
||
7496 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7497 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7498 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
7499 |
|
7500 |
||
7501 |
hard_links="nottested" |
|
7502 |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
|
7503 |
# do not overwrite the value of need_locks provided by the user |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7504 |
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7505 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
7506 |
hard_links=yes |
7507 |
$rm conftest* |
|
7508 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
7509 |
touch conftest.a |
|
7510 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
7511 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7512 |
{ echo "$as_me:$LINENO: result: $hard_links" >&5 |
7513 |
echo "${ECHO_T}$hard_links" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
7514 |
if test "$hard_links" = no; then |
7515 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
7516 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
7517 |
need_locks=warn |
|
7518 |
fi |
|
7519 |
else |
|
7520 |
need_locks=no |
|
7521 |
fi |
|
7522 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7523 |
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7524 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
7525 |
|
7526 |
runpath_var= |
|
7527 |
allow_undefined_flag= |
|
7528 |
enable_shared_with_static_runtimes=no |
|
7529 |
archive_cmds= |
|
7530 |
archive_expsym_cmds= |
|
7531 |
old_archive_From_new_cmds= |
|
7532 |
old_archive_from_expsyms_cmds= |
|
7533 |
export_dynamic_flag_spec= |
|
7534 |
whole_archive_flag_spec= |
|
7535 |
thread_safe_flag_spec= |
|
7536 |
hardcode_libdir_flag_spec= |
|
7537 |
hardcode_libdir_flag_spec_ld= |
|
7538 |
hardcode_libdir_separator= |
|
7539 |
hardcode_direct=no |
|
7540 |
hardcode_minus_L=no |
|
7541 |
hardcode_shlibpath_var=unsupported |
|
7542 |
link_all_deplibs=unknown |
|
7543 |
hardcode_automatic=no |
|
7544 |
module_cmds= |
|
7545 |
module_expsym_cmds= |
|
7546 |
always_export_symbols=no |
|
7547 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
7548 |
# include_expsyms should be a list of space-separated symbols to be *always* |
|
7549 |
# included in the symbol list |
|
7550 |
include_expsyms= |
|
7551 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
|
7552 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
7553 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
7554 |
# as well as any symbol that contains `d'. |
|
7555 |
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
7556 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
7557 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
7558 |
# the symbol is explicitly referenced. Since portable code cannot |
|
7559 |
# rely on this symbol name, it's probably fine to never include it in |
|
7560 |
# preloaded symbol tables. |
|
7561 |
extract_expsyms_cmds= |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7562 |
# Just being paranoid about ensuring that cc_basename is set. |
7563 |
for cc_temp in $compiler""; do |
|
7564 |
case $cc_temp in |
|
7565 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
7566 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
7567 |
\-*) ;; |
|
7568 |
*) break;; |
|
7569 |
esac |
|
7570 |
done |
|
7571 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
1
by Ross Burton
Import upstream version 0.10 |
7572 |
|
7573 |
case $host_os in |
|
7574 |
cygwin* | mingw* | pw32*) |
|
7575 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
7576 |
# When not using gcc, we currently assume that we are using |
|
7577 |
# Microsoft Visual C++. |
|
7578 |
if test "$GCC" != yes; then |
|
7579 |
with_gnu_ld=no |
|
7580 |
fi |
|
7581 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7582 |
interix*) |
7583 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
|
7584 |
with_gnu_ld=yes |
|
7585 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
7586 |
openbsd*) |
7587 |
with_gnu_ld=no |
|
7588 |
;; |
|
7589 |
esac |
|
7590 |
||
7591 |
ld_shlibs=yes |
|
7592 |
if test "$with_gnu_ld" = yes; then |
|
7593 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
7594 |
wlarc='${wl}' |
|
7595 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7596 |
# Set some defaults for GNU ld with shared library support. These |
7597 |
# are reset later if shared libraries are not supported. Putting them |
|
7598 |
# here allows them to be overridden if necessary. |
|
7599 |
runpath_var=LD_RUN_PATH |
|
7600 |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
7601 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
|
7602 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
7603 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
7604 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
7605 |
else |
|
7606 |
whole_archive_flag_spec= |
|
7607 |
fi |
|
7608 |
supports_anon_versioning=no |
|
7609 |
case `$LD -v 2>/dev/null` in |
|
7610 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
7611 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
7612 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
7613 |
*\ 2.11.*) ;; # other 2.11 versions |
|
7614 |
*) supports_anon_versioning=yes ;; |
|
7615 |
esac |
|
7616 |
||
1
by Ross Burton
Import upstream version 0.10 |
7617 |
# See if GNU ld supports shared libraries. |
7618 |
case $host_os in |
|
7619 |
aix3* | aix4* | aix5*) |
|
7620 |
# On AIX/PPC, the GNU linker is very broken |
|
7621 |
if test "$host_cpu" != ia64; then |
|
7622 |
ld_shlibs=no |
|
7623 |
cat <<EOF 1>&2 |
|
7624 |
||
7625 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
7626 |
*** to be unable to reliably create shared libraries on AIX. |
|
7627 |
*** Therefore, libtool is disabling shared libraries support. If you |
|
7628 |
*** really care for shared libraries, you may want to modify your PATH |
|
7629 |
*** so that a non-GNU linker is found, and then restart. |
|
7630 |
||
7631 |
EOF |
|
7632 |
fi |
|
7633 |
;; |
|
7634 |
||
7635 |
amigaos*) |
|
7636 |
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)' |
|
7637 |
hardcode_libdir_flag_spec='-L$libdir' |
|
7638 |
hardcode_minus_L=yes |
|
7639 |
||
7640 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
7641 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
|
7642 |
# to version 4, is to share data among multiple programs linked |
|
7643 |
# with the same dynamic library. Since this doesn't match the |
|
7644 |
# behavior of shared libraries on other platforms, we can't use |
|
7645 |
# them. |
|
7646 |
ld_shlibs=no |
|
7647 |
;; |
|
7648 |
||
7649 |
beos*) |
|
7650 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
7651 |
allow_undefined_flag=unsupported |
|
7652 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
7653 |
# support --undefined. This deserves some investigation. FIXME |
|
7654 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
7655 |
else |
|
7656 |
ld_shlibs=no |
|
7657 |
fi |
|
7658 |
;; |
|
7659 |
||
7660 |
cygwin* | mingw* | pw32*) |
|
7661 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
|
7662 |
# as there is no search path for DLLs. |
|
7663 |
hardcode_libdir_flag_spec='-L$libdir' |
|
7664 |
allow_undefined_flag=unsupported |
|
7665 |
always_export_symbols=no |
|
7666 |
enable_shared_with_static_runtimes=yes |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7667 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
1
by Ross Burton
Import upstream version 0.10 |
7668 |
|
7669 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7670 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
1
by Ross Burton
Import upstream version 0.10 |
7671 |
# If the export-symbols file already is a .def file (1st line |
7672 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
7673 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
7674 |
cp $export_symbols $output_objdir/$soname.def; |
|
7675 |
else |
|
7676 |
echo EXPORTS > $output_objdir/$soname.def; |
|
7677 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
7678 |
fi~ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7679 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7680 |
else |
|
7681 |
ld_shlibs=no |
|
7682 |
fi |
|
7683 |
;; |
|
7684 |
||
7685 |
interix3*) |
|
7686 |
hardcode_direct=no |
|
7687 |
hardcode_shlibpath_var=no |
|
7688 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
7689 |
export_dynamic_flag_spec='${wl}-E' |
|
7690 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
7691 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
|
7692 |
# default) and relocated if they conflict, which is a slow very memory |
|
7693 |
# consuming and fragmenting process. To avoid this, we pick a random, |
|
7694 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
7695 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
7696 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
7697 |
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' |
|
7698 |
;; |
|
7699 |
||
7700 |
linux*) |
|
7701 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
7702 |
tmp_addflag= |
|
7703 |
case $cc_basename,$host_cpu in |
|
7704 |
pgcc*) # Portland Group C compiler |
|
7705 |
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' |
|
7706 |
tmp_addflag=' $pic_flag' |
|
7707 |
;; |
|
7708 |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
7709 |
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' |
|
7710 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
|
7711 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
7712 |
tmp_addflag=' -i_dynamic' ;; |
|
7713 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
7714 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
7715 |
ifc* | ifort*) # Intel Fortran compiler |
|
7716 |
tmp_addflag=' -nofor_main' ;; |
|
7717 |
esac |
|
7718 |
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
7719 |
||
7720 |
if test $supports_anon_versioning = yes; then |
|
7721 |
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
7722 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
7723 |
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
7724 |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
7725 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
7726 |
else |
7727 |
ld_shlibs=no |
|
7728 |
fi |
|
7729 |
;; |
|
7730 |
||
7731 |
netbsd*) |
|
7732 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
7733 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
7734 |
wlarc= |
|
7735 |
else |
|
7736 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
7737 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
7738 |
fi |
|
7739 |
;; |
|
7740 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7741 |
solaris*) |
1
by Ross Burton
Import upstream version 0.10 |
7742 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7743 |
ld_shlibs=no |
|
7744 |
cat <<EOF 1>&2 |
|
7745 |
||
7746 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
7747 |
*** create shared libraries on Solaris systems. Therefore, libtool |
|
7748 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
7749 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
|
7750 |
*** your PATH or compiler configuration so that the native linker is |
|
7751 |
*** used, and then restart. |
|
7752 |
||
7753 |
EOF |
|
7754 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
7755 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
7756 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
7757 |
else |
|
7758 |
ld_shlibs=no |
|
7759 |
fi |
|
7760 |
;; |
|
7761 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7762 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7763 |
case `$LD -v 2>&1` in |
|
7764 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
7765 |
ld_shlibs=no |
|
7766 |
cat <<_LT_EOF 1>&2 |
|
7767 |
||
7768 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
7769 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
|
7770 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
7771 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
7772 |
*** your PATH or compiler configuration so that the native linker is |
|
7773 |
*** used, and then restart. |
|
7774 |
||
7775 |
_LT_EOF |
|
7776 |
;; |
|
7777 |
*) |
|
7778 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
7779 |
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
7780 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
7781 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
7782 |
else |
|
7783 |
ld_shlibs=no |
|
7784 |
fi |
|
7785 |
;; |
|
7786 |
esac |
|
7787 |
;; |
|
7788 |
||
1
by Ross Burton
Import upstream version 0.10 |
7789 |
sunos4*) |
7790 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
7791 |
wlarc= |
|
7792 |
hardcode_direct=yes |
|
7793 |
hardcode_shlibpath_var=no |
|
7794 |
;; |
|
7795 |
||
7796 |
*) |
|
7797 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
7798 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
7799 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
7800 |
else |
|
7801 |
ld_shlibs=no |
|
7802 |
fi |
|
7803 |
;; |
|
7804 |
esac |
|
7805 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7806 |
if test "$ld_shlibs" = no; then |
7807 |
runpath_var= |
|
7808 |
hardcode_libdir_flag_spec= |
|
7809 |
export_dynamic_flag_spec= |
|
7810 |
whole_archive_flag_spec= |
|
1
by Ross Burton
Import upstream version 0.10 |
7811 |
fi |
7812 |
else |
|
7813 |
# PORTME fill in a description of your system's linker (not GNU ld) |
|
7814 |
case $host_os in |
|
7815 |
aix3*) |
|
7816 |
allow_undefined_flag=unsupported |
|
7817 |
always_export_symbols=yes |
|
7818 |
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' |
|
7819 |
# Note: this linker hardcodes the directories in LIBPATH if there |
|
7820 |
# are no directories specified by -L. |
|
7821 |
hardcode_minus_L=yes |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7822 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
1
by Ross Burton
Import upstream version 0.10 |
7823 |
# Neither direct hardcoding nor static linking is supported with a |
7824 |
# broken collect2. |
|
7825 |
hardcode_direct=unsupported |
|
7826 |
fi |
|
7827 |
;; |
|
7828 |
||
7829 |
aix4* | aix5*) |
|
7830 |
if test "$host_cpu" = ia64; then |
|
7831 |
# On IA64, the linker does run time linking by default, so we don't |
|
7832 |
# have to do anything special. |
|
7833 |
aix_use_runtimelinking=no |
|
7834 |
exp_sym_flag='-Bexport' |
|
7835 |
no_entry_flag="" |
|
7836 |
else |
|
7837 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
7838 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
7839 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
7840 |
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' |
|
7841 |
else |
|
7842 |
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' |
|
7843 |
fi |
|
7844 |
aix_use_runtimelinking=no |
|
7845 |
||
7846 |
# Test if we are trying to use run time linking or normal |
|
7847 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
7848 |
# need to do runtime linking. |
|
7849 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
7850 |
for ld_flag in $LDFLAGS; do |
|
7851 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
7852 |
aix_use_runtimelinking=yes |
|
7853 |
break |
|
7854 |
fi |
|
7855 |
done |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7856 |
;; |
1
by Ross Burton
Import upstream version 0.10 |
7857 |
esac |
7858 |
||
7859 |
exp_sym_flag='-bexport' |
|
7860 |
no_entry_flag='-bnoentry' |
|
7861 |
fi |
|
7862 |
||
7863 |
# When large executables or shared objects are built, AIX ld can |
|
7864 |
# have problems creating the table of contents. If linking a library |
|
7865 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
7866 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
7867 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
7868 |
||
7869 |
archive_cmds='' |
|
7870 |
hardcode_direct=yes |
|
7871 |
hardcode_libdir_separator=':' |
|
7872 |
link_all_deplibs=yes |
|
7873 |
||
7874 |
if test "$GCC" = yes; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7875 |
case $host_os in aix4.[012]|aix4.[012].*) |
1
by Ross Burton
Import upstream version 0.10 |
7876 |
# We only want to do this on AIX 4.2 and lower, the check |
7877 |
# below for broken collect2 doesn't work under 4.3+ |
|
7878 |
collect2name=`${CC} -print-prog-name=collect2` |
|
7879 |
if test -f "$collect2name" && \ |
|
7880 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
7881 |
then |
|
7882 |
# We have reworked collect2 |
|
7883 |
hardcode_direct=yes |
|
7884 |
else |
|
7885 |
# We have old collect2 |
|
7886 |
hardcode_direct=unsupported |
|
7887 |
# It fails to find uninstalled libraries when the uninstalled |
|
7888 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
7889 |
# to unsupported forces relinking |
|
7890 |
hardcode_minus_L=yes |
|
7891 |
hardcode_libdir_flag_spec='-L$libdir' |
|
7892 |
hardcode_libdir_separator= |
|
7893 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7894 |
;; |
1
by Ross Burton
Import upstream version 0.10 |
7895 |
esac |
7896 |
shared_flag='-shared' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7897 |
if test "$aix_use_runtimelinking" = yes; then |
7898 |
shared_flag="$shared_flag "'${wl}-G' |
|
7899 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
7900 |
else |
7901 |
# not using gcc |
|
7902 |
if test "$host_cpu" = ia64; then |
|
7903 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
7904 |
# chokes on -Wl,-G. The following line is correct: |
|
7905 |
shared_flag='-G' |
|
7906 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7907 |
if test "$aix_use_runtimelinking" = yes; then |
1
by Ross Burton
Import upstream version 0.10 |
7908 |
shared_flag='${wl}-G' |
7909 |
else |
|
7910 |
shared_flag='${wl}-bM:SRE' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7911 |
fi |
1
by Ross Burton
Import upstream version 0.10 |
7912 |
fi |
7913 |
fi |
|
7914 |
||
7915 |
# It seems that -bexpall does not export symbols beginning with |
|
7916 |
# underscore (_), so it is better to generate a list of symbols to export. |
|
7917 |
always_export_symbols=yes |
|
7918 |
if test "$aix_use_runtimelinking" = yes; then |
|
7919 |
# Warning - without using the other runtime loading flags (-brtl), |
|
7920 |
# -berok will link without error, but may produce a broken library. |
|
7921 |
allow_undefined_flag='-berok' |
|
7922 |
# Determine the default libpath from the value encoded in an empty executable. |
|
7923 |
cat >conftest.$ac_ext <<_ACEOF |
|
7924 |
/* confdefs.h. */ |
|
7925 |
_ACEOF |
|
7926 |
cat confdefs.h >>conftest.$ac_ext |
|
7927 |
cat >>conftest.$ac_ext <<_ACEOF |
|
7928 |
/* end confdefs.h. */ |
|
7929 |
||
7930 |
int |
|
7931 |
main () |
|
7932 |
{ |
|
7933 |
||
7934 |
; |
|
7935 |
return 0; |
|
7936 |
} |
|
7937 |
_ACEOF |
|
7938 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7939 |
if { (ac_try="$ac_link" |
7940 |
case "(($ac_try" in |
|
7941 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
7942 |
*) ac_try_echo=$ac_try;; |
|
7943 |
esac |
|
7944 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
7945 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
7946 |
ac_status=$? |
7947 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
7948 |
rm -f conftest.er1 |
|
7949 |
cat conftest.err >&5 |
|
7950 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
7951 |
(exit $ac_status); } && { |
7952 |
test -z "$ac_c_werror_flag" || |
|
7953 |
test ! -s conftest.err |
|
7954 |
} && test -s conftest$ac_exeext && |
|
7955 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
7956 |
|
7957 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
7958 |
}'` |
|
7959 |
# Check for a 64-bit object if we didn't find anything. |
|
7960 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
7961 |
}'`; fi |
|
7962 |
else |
|
7963 |
echo "$as_me: failed program was:" >&5 |
|
7964 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
7965 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7966 |
|
1
by Ross Burton
Import upstream version 0.10 |
7967 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7968 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
7969 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
7970 |
conftest$ac_exeext conftest.$ac_ext |
7971 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
7972 |
||
7973 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7974 |
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" |
1
by Ross Burton
Import upstream version 0.10 |
7975 |
else |
7976 |
if test "$host_cpu" = ia64; then |
|
7977 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
|
7978 |
allow_undefined_flag="-z nodefs" |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
7979 |
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" |
1
by Ross Burton
Import upstream version 0.10 |
7980 |
else |
7981 |
# Determine the default libpath from the value encoded in an empty executable. |
|
7982 |
cat >conftest.$ac_ext <<_ACEOF |
|
7983 |
/* confdefs.h. */ |
|
7984 |
_ACEOF |
|
7985 |
cat confdefs.h >>conftest.$ac_ext |
|
7986 |
cat >>conftest.$ac_ext <<_ACEOF |
|
7987 |
/* end confdefs.h. */ |
|
7988 |
||
7989 |
int |
|
7990 |
main () |
|
7991 |
{ |
|
7992 |
||
7993 |
; |
|
7994 |
return 0; |
|
7995 |
} |
|
7996 |
_ACEOF |
|
7997 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
7998 |
if { (ac_try="$ac_link" |
7999 |
case "(($ac_try" in |
|
8000 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
8001 |
*) ac_try_echo=$ac_try;; |
|
8002 |
esac |
|
8003 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
8004 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
8005 |
ac_status=$? |
8006 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
8007 |
rm -f conftest.er1 |
|
8008 |
cat conftest.err >&5 |
|
8009 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
8010 |
(exit $ac_status); } && { |
8011 |
test -z "$ac_c_werror_flag" || |
|
8012 |
test ! -s conftest.err |
|
8013 |
} && test -s conftest$ac_exeext && |
|
8014 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
8015 |
|
8016 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
8017 |
}'` |
|
8018 |
# Check for a 64-bit object if we didn't find anything. |
|
8019 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
8020 |
}'`; fi |
|
8021 |
else |
|
8022 |
echo "$as_me: failed program was:" >&5 |
|
8023 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
8024 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
8025 |
|
1
by Ross Burton
Import upstream version 0.10 |
8026 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
8027 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
8028 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
8029 |
conftest$ac_exeext conftest.$ac_ext |
8030 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
8031 |
||
8032 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
8033 |
# Warning - without using the other run time loading flags, |
|
8034 |
# -berok will link without error, but may produce a broken library. |
|
8035 |
no_undefined_flag=' ${wl}-bernotok' |
|
8036 |
allow_undefined_flag=' ${wl}-berok' |
|
8037 |
# Exported symbols can be pulled into shared objects from archives |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8038 |
whole_archive_flag_spec='$convenience' |
1
by Ross Burton
Import upstream version 0.10 |
8039 |
archive_cmds_need_lc=yes |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8040 |
# This is similar to how AIX traditionally builds its shared libraries. |
8041 |
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' |
|
1
by Ross Burton
Import upstream version 0.10 |
8042 |
fi |
8043 |
fi |
|
8044 |
;; |
|
8045 |
||
8046 |
amigaos*) |
|
8047 |
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)' |
|
8048 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8049 |
hardcode_minus_L=yes |
|
8050 |
# see comment about different semantics on the GNU ld section |
|
8051 |
ld_shlibs=no |
|
8052 |
;; |
|
8053 |
||
8054 |
bsdi[45]*) |
|
8055 |
export_dynamic_flag_spec=-rdynamic |
|
8056 |
;; |
|
8057 |
||
8058 |
cygwin* | mingw* | pw32*) |
|
8059 |
# When not using gcc, we currently assume that we are using |
|
8060 |
# Microsoft Visual C++. |
|
8061 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
8062 |
# no search path for DLLs. |
|
8063 |
hardcode_libdir_flag_spec=' ' |
|
8064 |
allow_undefined_flag=unsupported |
|
8065 |
# Tell ltmain to make .lib files, not .a files. |
|
8066 |
libext=lib |
|
8067 |
# Tell ltmain to make .dll files, not .so files. |
|
8068 |
shrext_cmds=".dll" |
|
8069 |
# FIXME: Setting linknames here is a bad hack. |
|
8070 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
8071 |
# The linker will automatically build a .lib file if we build a DLL. |
|
8072 |
old_archive_From_new_cmds='true' |
|
8073 |
# FIXME: Should let the user specify the lib program. |
|
8074 |
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
8075 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
8076 |
enable_shared_with_static_runtimes=yes |
|
8077 |
;; |
|
8078 |
||
8079 |
darwin* | rhapsody*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8080 |
case $host_os in |
1
by Ross Burton
Import upstream version 0.10 |
8081 |
rhapsody* | darwin1.[012]) |
8082 |
allow_undefined_flag='${wl}-undefined ${wl}suppress' |
|
8083 |
;; |
|
8084 |
*) # Darwin 1.3 on |
|
8085 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
8086 |
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
8087 |
else |
|
8088 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
8089 |
10.[012]) |
|
8090 |
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
8091 |
;; |
|
8092 |
10.*) |
|
8093 |
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
|
8094 |
;; |
|
8095 |
esac |
|
8096 |
fi |
|
8097 |
;; |
|
8098 |
esac |
|
8099 |
archive_cmds_need_lc=no |
|
8100 |
hardcode_direct=no |
|
8101 |
hardcode_automatic=yes |
|
8102 |
hardcode_shlibpath_var=unsupported |
|
8103 |
whole_archive_flag_spec='' |
|
8104 |
link_all_deplibs=yes |
|
8105 |
if test "$GCC" = yes ; then |
|
8106 |
output_verbose_link_cmd='echo' |
|
8107 |
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
8108 |
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8109 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
1
by Ross Burton
Import upstream version 0.10 |
8110 |
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}' |
8111 |
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}' |
|
8112 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8113 |
case $cc_basename in |
1
by Ross Burton
Import upstream version 0.10 |
8114 |
xlc*) |
8115 |
output_verbose_link_cmd='echo' |
|
8116 |
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
8117 |
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8118 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
1
by Ross Burton
Import upstream version 0.10 |
8119 |
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
8120 |
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}' |
|
8121 |
;; |
|
8122 |
*) |
|
8123 |
ld_shlibs=no |
|
8124 |
;; |
|
8125 |
esac |
|
8126 |
fi |
|
8127 |
;; |
|
8128 |
||
8129 |
dgux*) |
|
8130 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8131 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8132 |
hardcode_shlibpath_var=no |
|
8133 |
;; |
|
8134 |
||
8135 |
freebsd1*) |
|
8136 |
ld_shlibs=no |
|
8137 |
;; |
|
8138 |
||
8139 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
8140 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
8141 |
# does not break anything, and helps significantly (at the cost of a little |
|
8142 |
# extra space). |
|
8143 |
freebsd2.2*) |
|
8144 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
8145 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8146 |
hardcode_direct=yes |
|
8147 |
hardcode_shlibpath_var=no |
|
8148 |
;; |
|
8149 |
||
8150 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
8151 |
freebsd2*) |
|
8152 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
8153 |
hardcode_direct=yes |
|
8154 |
hardcode_minus_L=yes |
|
8155 |
hardcode_shlibpath_var=no |
|
8156 |
;; |
|
8157 |
||
8158 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8159 |
freebsd* | kfreebsd*-gnu | dragonfly*) |
1
by Ross Burton
Import upstream version 0.10 |
8160 |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8161 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8162 |
hardcode_direct=yes |
|
8163 |
hardcode_shlibpath_var=no |
|
8164 |
;; |
|
8165 |
||
8166 |
hpux9*) |
|
8167 |
if test "$GCC" = yes; then |
|
8168 |
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' |
|
8169 |
else |
|
8170 |
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' |
|
8171 |
fi |
|
8172 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
8173 |
hardcode_libdir_separator=: |
|
8174 |
hardcode_direct=yes |
|
8175 |
||
8176 |
# hardcode_minus_L: Not really in the search PATH, |
|
8177 |
# but as the default location of the library. |
|
8178 |
hardcode_minus_L=yes |
|
8179 |
export_dynamic_flag_spec='${wl}-E' |
|
8180 |
;; |
|
8181 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8182 |
hpux10*) |
8183 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
8184 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
8185 |
else |
|
8186 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
8187 |
fi |
|
8188 |
if test "$with_gnu_ld" = no; then |
|
8189 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
8190 |
hardcode_libdir_separator=: |
|
8191 |
||
8192 |
hardcode_direct=yes |
|
8193 |
export_dynamic_flag_spec='${wl}-E' |
|
8194 |
||
8195 |
# hardcode_minus_L: Not really in the search PATH, |
|
8196 |
# but as the default location of the library. |
|
8197 |
hardcode_minus_L=yes |
|
8198 |
fi |
|
8199 |
;; |
|
8200 |
||
8201 |
hpux11*) |
|
8202 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
8203 |
case $host_cpu in |
|
8204 |
hppa*64*) |
|
1
by Ross Burton
Import upstream version 0.10 |
8205 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8206 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8207 |
ia64*) |
8208 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
8209 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
8210 |
*) |
8211 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
8212 |
;; |
|
8213 |
esac |
|
8214 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8215 |
case $host_cpu in |
8216 |
hppa*64*) |
|
8217 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8218 |
;; |
|
8219 |
ia64*) |
|
8220 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
1
by Ross Burton
Import upstream version 0.10 |
8221 |
;; |
8222 |
*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8223 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
1
by Ross Burton
Import upstream version 0.10 |
8224 |
;; |
8225 |
esac |
|
8226 |
fi |
|
8227 |
if test "$with_gnu_ld" = no; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8228 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8229 |
hardcode_libdir_separator=: |
|
8230 |
||
8231 |
case $host_cpu in |
|
8232 |
hppa*64*|ia64*) |
|
1
by Ross Burton
Import upstream version 0.10 |
8233 |
hardcode_libdir_flag_spec_ld='+b $libdir' |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8234 |
hardcode_direct=no |
8235 |
hardcode_shlibpath_var=no |
|
1
by Ross Burton
Import upstream version 0.10 |
8236 |
;; |
8237 |
*) |
|
8238 |
hardcode_direct=yes |
|
8239 |
export_dynamic_flag_spec='${wl}-E' |
|
8240 |
||
8241 |
# hardcode_minus_L: Not really in the search PATH, |
|
8242 |
# but as the default location of the library. |
|
8243 |
hardcode_minus_L=yes |
|
8244 |
;; |
|
8245 |
esac |
|
8246 |
fi |
|
8247 |
;; |
|
8248 |
||
8249 |
irix5* | irix6* | nonstopux*) |
|
8250 |
if test "$GCC" = yes; then |
|
8251 |
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' |
|
8252 |
else |
|
8253 |
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' |
|
8254 |
hardcode_libdir_flag_spec_ld='-rpath $libdir' |
|
8255 |
fi |
|
8256 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8257 |
hardcode_libdir_separator=: |
|
8258 |
link_all_deplibs=yes |
|
8259 |
;; |
|
8260 |
||
8261 |
netbsd*) |
|
8262 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
8263 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
8264 |
else |
|
8265 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
8266 |
fi |
|
8267 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8268 |
hardcode_direct=yes |
|
8269 |
hardcode_shlibpath_var=no |
|
8270 |
;; |
|
8271 |
||
8272 |
newsos6) |
|
8273 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8274 |
hardcode_direct=yes |
|
8275 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8276 |
hardcode_libdir_separator=: |
|
8277 |
hardcode_shlibpath_var=no |
|
8278 |
;; |
|
8279 |
||
8280 |
openbsd*) |
|
8281 |
hardcode_direct=yes |
|
8282 |
hardcode_shlibpath_var=no |
|
8283 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
8284 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
8285 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
8286 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
8287 |
export_dynamic_flag_spec='${wl}-E' |
|
8288 |
else |
|
8289 |
case $host_os in |
|
8290 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
8291 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
8292 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8293 |
;; |
|
8294 |
*) |
|
8295 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
8296 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
8297 |
;; |
|
8298 |
esac |
|
8299 |
fi |
|
8300 |
;; |
|
8301 |
||
8302 |
os2*) |
|
8303 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8304 |
hardcode_minus_L=yes |
|
8305 |
allow_undefined_flag=unsupported |
|
8306 |
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' |
|
8307 |
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
8308 |
;; |
|
8309 |
||
8310 |
osf3*) |
|
8311 |
if test "$GCC" = yes; then |
|
8312 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
8313 |
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' |
|
8314 |
else |
|
8315 |
allow_undefined_flag=' -expect_unresolved \*' |
|
8316 |
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' |
|
8317 |
fi |
|
8318 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8319 |
hardcode_libdir_separator=: |
|
8320 |
;; |
|
8321 |
||
8322 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
8323 |
if test "$GCC" = yes; then |
|
8324 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
8325 |
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' |
|
8326 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8327 |
else |
|
8328 |
allow_undefined_flag=' -expect_unresolved \*' |
|
8329 |
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' |
|
8330 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8331 |
$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' |
1
by Ross Burton
Import upstream version 0.10 |
8332 |
|
8333 |
# Both c and cxx compiler support -rpath directly |
|
8334 |
hardcode_libdir_flag_spec='-rpath $libdir' |
|
8335 |
fi |
|
8336 |
hardcode_libdir_separator=: |
|
8337 |
;; |
|
8338 |
||
8339 |
solaris*) |
|
8340 |
no_undefined_flag=' -z text' |
|
8341 |
if test "$GCC" = yes; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8342 |
wlarc='${wl}' |
1
by Ross Burton
Import upstream version 0.10 |
8343 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8344 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
8345 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
8346 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8347 |
wlarc='' |
1
by Ross Burton
Import upstream version 0.10 |
8348 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8349 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
8350 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
8351 |
fi |
|
8352 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8353 |
hardcode_shlibpath_var=no |
|
8354 |
case $host_os in |
|
8355 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8356 |
*) |
8357 |
# The compiler driver will combine linker options so we |
|
8358 |
# cannot just pass the convience library names through |
|
8359 |
# without $wl, iff we do not link with $LD. |
|
8360 |
# Luckily, gcc supports the same syntax we need for Sun Studio. |
|
8361 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
|
8362 |
case $wlarc in |
|
8363 |
'') |
|
8364 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
8365 |
*) |
|
8366 |
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
|
8367 |
esac ;; |
|
1
by Ross Burton
Import upstream version 0.10 |
8368 |
esac |
8369 |
link_all_deplibs=yes |
|
8370 |
;; |
|
8371 |
||
8372 |
sunos4*) |
|
8373 |
if test "x$host_vendor" = xsequent; then |
|
8374 |
# Use $CC to link under sequent, because it throws in some extra .o |
|
8375 |
# files that make .init and .fini sections work. |
|
8376 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8377 |
else |
|
8378 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
8379 |
fi |
|
8380 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8381 |
hardcode_direct=yes |
|
8382 |
hardcode_minus_L=yes |
|
8383 |
hardcode_shlibpath_var=no |
|
8384 |
;; |
|
8385 |
||
8386 |
sysv4) |
|
8387 |
case $host_vendor in |
|
8388 |
sni) |
|
8389 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8390 |
hardcode_direct=yes # is this really true??? |
|
8391 |
;; |
|
8392 |
siemens) |
|
8393 |
## LD is ld it makes a PLAMLIB |
|
8394 |
## CC just makes a GrossModule. |
|
8395 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
8396 |
reload_cmds='$CC -r -o $output$reload_objs' |
|
8397 |
hardcode_direct=no |
|
8398 |
;; |
|
8399 |
motorola) |
|
8400 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8401 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
8402 |
;; |
|
8403 |
esac |
|
8404 |
runpath_var='LD_RUN_PATH' |
|
8405 |
hardcode_shlibpath_var=no |
|
8406 |
;; |
|
8407 |
||
8408 |
sysv4.3*) |
|
8409 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8410 |
hardcode_shlibpath_var=no |
|
8411 |
export_dynamic_flag_spec='-Bexport' |
|
8412 |
;; |
|
8413 |
||
8414 |
sysv4*MP*) |
|
8415 |
if test -d /usr/nec; then |
|
8416 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8417 |
hardcode_shlibpath_var=no |
|
8418 |
runpath_var=LD_RUN_PATH |
|
8419 |
hardcode_runpath_var=yes |
|
8420 |
ld_shlibs=yes |
|
8421 |
fi |
|
8422 |
;; |
|
8423 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8424 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8425 |
no_undefined_flag='${wl}-z,text' |
|
8426 |
archive_cmds_need_lc=no |
|
8427 |
hardcode_shlibpath_var=no |
|
8428 |
runpath_var='LD_RUN_PATH' |
|
8429 |
||
8430 |
if test "$GCC" = yes; then |
|
8431 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8432 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8433 |
else |
|
8434 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8435 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8436 |
fi |
|
8437 |
;; |
|
8438 |
||
8439 |
sysv5* | sco3.2v5* | sco5v6*) |
|
8440 |
# Note: We can NOT use -z defs as we might desire, because we do not |
|
8441 |
# link with -lc, and that would cause any symbols used from libc to |
|
8442 |
# always be unresolved, which means just about no library would |
|
8443 |
# ever link correctly. If we're not using GNU ld we use -z text |
|
8444 |
# though, which does catch some bad symbols but isn't as heavy-handed |
|
8445 |
# as -z defs. |
|
8446 |
no_undefined_flag='${wl}-z,text' |
|
8447 |
allow_undefined_flag='${wl}-z,nodefs' |
|
8448 |
archive_cmds_need_lc=no |
|
8449 |
hardcode_shlibpath_var=no |
|
8450 |
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
8451 |
hardcode_libdir_separator=':' |
|
8452 |
link_all_deplibs=yes |
|
8453 |
export_dynamic_flag_spec='${wl}-Bexport' |
|
8454 |
runpath_var='LD_RUN_PATH' |
|
8455 |
||
8456 |
if test "$GCC" = yes; then |
|
8457 |
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8458 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8459 |
else |
|
8460 |
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8461 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8462 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
8463 |
;; |
8464 |
||
8465 |
uts4*) |
|
8466 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8467 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8468 |
hardcode_shlibpath_var=no |
|
8469 |
;; |
|
8470 |
||
8471 |
*) |
|
8472 |
ld_shlibs=no |
|
8473 |
;; |
|
8474 |
esac |
|
8475 |
fi |
|
8476 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
8477 |
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8478 |
echo "${ECHO_T}$ld_shlibs" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
8479 |
test "$ld_shlibs" = no && can_build_shared=no |
8480 |
||
8481 |
# |
|
8482 |
# Do we need to explicitly link libc? |
|
8483 |
# |
|
8484 |
case "x$archive_cmds_need_lc" in |
|
8485 |
x|xyes) |
|
8486 |
# Assume -lc should be added |
|
8487 |
archive_cmds_need_lc=yes |
|
8488 |
||
8489 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
8490 |
case $archive_cmds in |
|
8491 |
*'~'*) |
|
8492 |
# FIXME: we may have to deal with multi-command sequences. |
|
8493 |
;; |
|
8494 |
'$CC '*) |
|
8495 |
# Test whether the compiler implicitly links with -lc since on some |
|
8496 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
8497 |
# to ld, don't add -lc before -lgcc. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
8498 |
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8499 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
8500 |
$rm conftest* |
8501 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
8502 |
||
8503 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
8504 |
(eval $ac_compile) 2>&5 |
|
8505 |
ac_status=$? |
|
8506 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8507 |
(exit $ac_status); } 2>conftest.err; then |
|
8508 |
soname=conftest |
|
8509 |
lib=conftest |
|
8510 |
libobjs=conftest.$ac_objext |
|
8511 |
deplibs= |
|
8512 |
wl=$lt_prog_compiler_wl |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8513 |
pic_flag=$lt_prog_compiler_pic |
1
by Ross Burton
Import upstream version 0.10 |
8514 |
compiler_flags=-v |
8515 |
linker_flags=-v |
|
8516 |
verstring= |
|
8517 |
output_objdir=. |
|
8518 |
libname=conftest |
|
8519 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
|
8520 |
allow_undefined_flag= |
|
8521 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
8522 |
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
8523 |
ac_status=$? |
|
8524 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8525 |
(exit $ac_status); } |
|
8526 |
then |
|
8527 |
archive_cmds_need_lc=no |
|
8528 |
else |
|
8529 |
archive_cmds_need_lc=yes |
|
8530 |
fi |
|
8531 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
|
8532 |
else |
|
8533 |
cat conftest.err 1>&5 |
|
8534 |
fi |
|
8535 |
$rm conftest* |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
8536 |
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8537 |
echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
8538 |
;; |
8539 |
esac |
|
8540 |
fi |
|
8541 |
;; |
|
8542 |
esac |
|
8543 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
8544 |
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8545 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
8546 |
library_names_spec= |
8547 |
libname_spec='lib$name' |
|
8548 |
soname_spec= |
|
8549 |
shrext_cmds=".so" |
|
8550 |
postinstall_cmds= |
|
8551 |
postuninstall_cmds= |
|
8552 |
finish_cmds= |
|
8553 |
finish_eval= |
|
8554 |
shlibpath_var= |
|
8555 |
shlibpath_overrides_runpath=unknown |
|
8556 |
version_type=none |
|
8557 |
dynamic_linker="$host_os ld.so" |
|
8558 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
8559 |
if test "$GCC" = yes; then |
|
8560 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
8561 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
8562 |
# if the path contains ";" then we assume it to be the separator |
|
8563 |
# otherwise default to the standard path separator (i.e. ":") - it is |
|
8564 |
# assumed that no part of a normal pathname contains ";" but that should |
|
8565 |
# okay in the real world where ";" in dirpaths is itself problematic. |
|
8566 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
8567 |
else |
|
8568 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
8569 |
fi |
|
8570 |
else |
|
8571 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
8572 |
fi |
|
8573 |
need_lib_prefix=unknown |
|
8574 |
hardcode_into_libs=no |
|
8575 |
||
8576 |
# when you set need_version to no, make sure it does not cause -set_version |
|
8577 |
# flags to be left without arguments |
|
8578 |
need_version=unknown |
|
8579 |
||
8580 |
case $host_os in |
|
8581 |
aix3*) |
|
8582 |
version_type=linux |
|
8583 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
8584 |
shlibpath_var=LIBPATH |
|
8585 |
||
8586 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
8587 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8588 |
;; |
|
8589 |
||
8590 |
aix4* | aix5*) |
|
8591 |
version_type=linux |
|
8592 |
need_lib_prefix=no |
|
8593 |
need_version=no |
|
8594 |
hardcode_into_libs=yes |
|
8595 |
if test "$host_cpu" = ia64; then |
|
8596 |
# AIX 5 supports IA64 |
|
8597 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
8598 |
shlibpath_var=LD_LIBRARY_PATH |
|
8599 |
else |
|
8600 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
8601 |
# for dependence libraries. The import file would start with |
|
8602 |
# the line `#! .'. This would cause the generated library to |
|
8603 |
# depend on `.', always an invalid library. This was fixed in |
|
8604 |
# development snapshots of GCC prior to 3.0. |
|
8605 |
case $host_os in |
|
8606 |
aix4 | aix4.[01] | aix4.[01].*) |
|
8607 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
8608 |
echo ' yes ' |
|
8609 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
8610 |
: |
|
8611 |
else |
|
8612 |
can_build_shared=no |
|
8613 |
fi |
|
8614 |
;; |
|
8615 |
esac |
|
8616 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
8617 |
# soname into executable. Probably we can add versioning support to |
|
8618 |
# collect2, so additional links can be useful in future. |
|
8619 |
if test "$aix_use_runtimelinking" = yes; then |
|
8620 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
8621 |
# instead of lib<name>.a to let people know that these are not |
|
8622 |
# typical AIX shared libraries. |
|
8623 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
8624 |
else |
|
8625 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
8626 |
# and later when we are not doing run time linking. |
|
8627 |
library_names_spec='${libname}${release}.a $libname.a' |
|
8628 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8629 |
fi |
|
8630 |
shlibpath_var=LIBPATH |
|
8631 |
fi |
|
8632 |
;; |
|
8633 |
||
8634 |
amigaos*) |
|
8635 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
8636 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
8637 |
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' |
|
8638 |
;; |
|
8639 |
||
8640 |
beos*) |
|
8641 |
library_names_spec='${libname}${shared_ext}' |
|
8642 |
dynamic_linker="$host_os ld.so" |
|
8643 |
shlibpath_var=LIBRARY_PATH |
|
8644 |
;; |
|
8645 |
||
8646 |
bsdi[45]*) |
|
8647 |
version_type=linux |
|
8648 |
need_version=no |
|
8649 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
8650 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8651 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
8652 |
shlibpath_var=LD_LIBRARY_PATH |
|
8653 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
8654 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
8655 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
8656 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
8657 |
# libtool to hard-code these into programs |
|
8658 |
;; |
|
8659 |
||
8660 |
cygwin* | mingw* | pw32*) |
|
8661 |
version_type=windows |
|
8662 |
shrext_cmds=".dll" |
|
8663 |
need_version=no |
|
8664 |
need_lib_prefix=no |
|
8665 |
||
8666 |
case $GCC,$host_os in |
|
8667 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
|
8668 |
library_names_spec='$libname.dll.a' |
|
8669 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
8670 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
8671 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
8672 |
dldir=$destdir/`dirname \$dlpath`~ |
|
8673 |
test -d \$dldir || mkdir -p \$dldir~ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8674 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
8675 |
chmod a+x \$dldir/$dlname' |
|
1
by Ross Burton
Import upstream version 0.10 |
8676 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8677 |
dlpath=$dir/\$dldll~ |
|
8678 |
$rm \$dlpath' |
|
8679 |
shlibpath_overrides_runpath=yes |
|
8680 |
||
8681 |
case $host_os in |
|
8682 |
cygwin*) |
|
8683 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
8684 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
8685 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
8686 |
;; |
|
8687 |
mingw*) |
|
8688 |
# MinGW DLLs use traditional 'lib' prefix |
|
8689 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
8690 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
8691 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
8692 |
# It is most probably a Windows format PATH printed by |
|
8693 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
8694 |
# path with ; separators, and with drive letters. We can handle the |
|
8695 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
8696 |
# especially as we might pass files found there to a mingw objdump, |
|
8697 |
# which wouldn't understand a cygwinified path. Ahh. |
|
8698 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
8699 |
else |
|
8700 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
8701 |
fi |
|
8702 |
;; |
|
8703 |
pw32*) |
|
8704 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8705 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
1
by Ross Burton
Import upstream version 0.10 |
8706 |
;; |
8707 |
esac |
|
8708 |
;; |
|
8709 |
||
8710 |
*) |
|
8711 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
8712 |
;; |
|
8713 |
esac |
|
8714 |
dynamic_linker='Win32 ld.exe' |
|
8715 |
# FIXME: first we should search . and the directory the executable is in |
|
8716 |
shlibpath_var=PATH |
|
8717 |
;; |
|
8718 |
||
8719 |
darwin* | rhapsody*) |
|
8720 |
dynamic_linker="$host_os dyld" |
|
8721 |
version_type=darwin |
|
8722 |
need_lib_prefix=no |
|
8723 |
need_version=no |
|
8724 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
8725 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
8726 |
shlibpath_overrides_runpath=yes |
|
8727 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8728 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
1
by Ross Burton
Import upstream version 0.10 |
8729 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8730 |
if test "$GCC" = yes; then |
|
8731 |
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
8732 |
else |
|
8733 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
8734 |
fi |
|
8735 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
8736 |
;; |
|
8737 |
||
8738 |
dgux*) |
|
8739 |
version_type=linux |
|
8740 |
need_lib_prefix=no |
|
8741 |
need_version=no |
|
8742 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
8743 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8744 |
shlibpath_var=LD_LIBRARY_PATH |
|
8745 |
;; |
|
8746 |
||
8747 |
freebsd1*) |
|
8748 |
dynamic_linker=no |
|
8749 |
;; |
|
8750 |
||
8751 |
kfreebsd*-gnu) |
|
8752 |
version_type=linux |
|
8753 |
need_lib_prefix=no |
|
8754 |
need_version=no |
|
8755 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
8756 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8757 |
shlibpath_var=LD_LIBRARY_PATH |
|
8758 |
shlibpath_overrides_runpath=no |
|
8759 |
hardcode_into_libs=yes |
|
8760 |
dynamic_linker='GNU ld.so' |
|
8761 |
;; |
|
8762 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8763 |
freebsd* | dragonfly*) |
8764 |
# DragonFly does not have aout. When/if they implement a new |
|
8765 |
# versioning mechanism, adjust this. |
|
8766 |
if test -x /usr/bin/objformat; then |
|
8767 |
objformat=`/usr/bin/objformat` |
|
8768 |
else |
|
8769 |
case $host_os in |
|
8770 |
freebsd[123]*) objformat=aout ;; |
|
8771 |
*) objformat=elf ;; |
|
8772 |
esac |
|
8773 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
8774 |
version_type=freebsd-$objformat |
8775 |
case $version_type in |
|
8776 |
freebsd-elf*) |
|
8777 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
8778 |
need_version=no |
|
8779 |
need_lib_prefix=no |
|
8780 |
;; |
|
8781 |
freebsd-*) |
|
8782 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
8783 |
need_version=yes |
|
8784 |
;; |
|
8785 |
esac |
|
8786 |
shlibpath_var=LD_LIBRARY_PATH |
|
8787 |
case $host_os in |
|
8788 |
freebsd2*) |
|
8789 |
shlibpath_overrides_runpath=yes |
|
8790 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8791 |
freebsd3.[01]* | freebsdelf3.[01]*) |
1
by Ross Burton
Import upstream version 0.10 |
8792 |
shlibpath_overrides_runpath=yes |
8793 |
hardcode_into_libs=yes |
|
8794 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8795 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8796 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
1
by Ross Burton
Import upstream version 0.10 |
8797 |
shlibpath_overrides_runpath=no |
8798 |
hardcode_into_libs=yes |
|
8799 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8800 |
freebsd*) # from 4.6 on |
8801 |
shlibpath_overrides_runpath=yes |
|
8802 |
hardcode_into_libs=yes |
|
8803 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
8804 |
esac |
8805 |
;; |
|
8806 |
||
8807 |
gnu*) |
|
8808 |
version_type=linux |
|
8809 |
need_lib_prefix=no |
|
8810 |
need_version=no |
|
8811 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
8812 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8813 |
shlibpath_var=LD_LIBRARY_PATH |
|
8814 |
hardcode_into_libs=yes |
|
8815 |
;; |
|
8816 |
||
8817 |
hpux9* | hpux10* | hpux11*) |
|
8818 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
8819 |
# link against other versions. |
|
8820 |
version_type=sunos |
|
8821 |
need_lib_prefix=no |
|
8822 |
need_version=no |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8823 |
case $host_cpu in |
1
by Ross Burton
Import upstream version 0.10 |
8824 |
ia64*) |
8825 |
shrext_cmds='.so' |
|
8826 |
hardcode_into_libs=yes |
|
8827 |
dynamic_linker="$host_os dld.so" |
|
8828 |
shlibpath_var=LD_LIBRARY_PATH |
|
8829 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
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 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
8833 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
8834 |
else |
|
8835 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
8836 |
fi |
|
8837 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
8838 |
;; |
|
8839 |
hppa*64*) |
|
8840 |
shrext_cmds='.sl' |
|
8841 |
hardcode_into_libs=yes |
|
8842 |
dynamic_linker="$host_os dld.sl" |
|
8843 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
8844 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
8845 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
8846 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8847 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
8848 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
8849 |
;; |
|
8850 |
*) |
|
8851 |
shrext_cmds='.sl' |
|
8852 |
dynamic_linker="$host_os dld.sl" |
|
8853 |
shlibpath_var=SHLIB_PATH |
|
8854 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
8855 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
8856 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8857 |
;; |
|
8858 |
esac |
|
8859 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
8860 |
postinstall_cmds='chmod 555 $lib' |
|
8861 |
;; |
|
8862 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
8863 |
interix3*) |
8864 |
version_type=linux |
|
8865 |
need_lib_prefix=no |
|
8866 |
need_version=no |
|
8867 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
8868 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8869 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
8870 |
shlibpath_var=LD_LIBRARY_PATH |
|
8871 |
shlibpath_overrides_runpath=no |
|
8872 |
hardcode_into_libs=yes |
|
8873 |
;; |
|
8874 |
||
1
by Ross Burton
Import upstream version 0.10 |
8875 |
irix5* | irix6* | nonstopux*) |
8876 |
case $host_os in |
|
8877 |
nonstopux*) version_type=nonstopux ;; |
|
8878 |
*) |
|
8879 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
8880 |
version_type=linux |
|
8881 |
else |
|
8882 |
version_type=irix |
|
8883 |
fi ;; |
|
8884 |
esac |
|
8885 |
need_lib_prefix=no |
|
8886 |
need_version=no |
|
8887 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8888 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
8889 |
case $host_os in |
|
8890 |
irix5* | nonstopux*) |
|
8891 |
libsuff= shlibsuff= |
|
8892 |
;; |
|
8893 |
*) |
|
8894 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
8895 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
8896 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
8897 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
8898 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
8899 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
8900 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
8901 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
8902 |
esac |
|
8903 |
;; |
|
8904 |
esac |
|
8905 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
8906 |
shlibpath_overrides_runpath=no |
|
8907 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
8908 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
8909 |
hardcode_into_libs=yes |
|
8910 |
;; |
|
8911 |
||
8912 |
# No shared lib support for Linux oldld, aout, or coff. |
|
8913 |
linux*oldld* | linux*aout* | linux*coff*) |
|
8914 |
dynamic_linker=no |
|
8915 |
;; |
|
8916 |
||
8917 |
# This must be Linux ELF. |
|
8918 |
linux*) |
|
8919 |
version_type=linux |
|
8920 |
need_lib_prefix=no |
|
8921 |
need_version=no |
|
8922 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
8923 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8924 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
8925 |
shlibpath_var=LD_LIBRARY_PATH |
|
8926 |
shlibpath_overrides_runpath=no |
|
8927 |
# This implies no fast_install, which is unacceptable. |
|
8928 |
# Some rework will be needed to allow for fast_install |
|
8929 |
# before this can be enabled. |
|
8930 |
hardcode_into_libs=yes |
|
8931 |
||
8932 |
# find out which ABI we are using |
|
8933 |
libsuff= |
|
8934 |
case "$host_cpu" in |
|
8935 |
x86_64*|s390x*|powerpc64*) |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
8936 |
echo '#line 8936 "configure"' > conftest.$ac_ext |
1
by Ross Burton
Import upstream version 0.10 |
8937 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8938 |
(eval $ac_compile) 2>&5 |
|
8939 |
ac_status=$? |
|
8940 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8941 |
(exit $ac_status); }; then |
|
8942 |
case `/usr/bin/file conftest.$ac_objext` in |
|
8943 |
*64-bit*) |
|
8944 |
libsuff=64 |
|
8945 |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
|
8946 |
;; |
|
8947 |
esac |
|
8948 |
fi |
|
8949 |
rm -rf conftest* |
|
8950 |
;; |
|
8951 |
esac |
|
8952 |
||
8953 |
# Append ld.so.conf contents to the search path |
|
8954 |
if test -f /etc/ld.so.conf; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
8955 |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
1
by Ross Burton
Import upstream version 0.10 |
8956 |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
8957 |
fi |
|
8958 |
||
8959 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
8960 |
# powerpc, because MkLinux only supported shared libraries with the |
|
8961 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
8962 |
# most powerpc-linux boxes support dynamic linking these days and |
|
8963 |
# people can always --disable-shared, the test was removed, and we |
|
8964 |
# assume the GNU/Linux dynamic linker is in use. |
|
8965 |
dynamic_linker='GNU/Linux ld.so' |
|
8966 |
;; |
|
8967 |
||
8968 |
knetbsd*-gnu) |
|
8969 |
version_type=linux |
|
8970 |
need_lib_prefix=no |
|
8971 |
need_version=no |
|
8972 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
8973 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8974 |
shlibpath_var=LD_LIBRARY_PATH |
|
8975 |
shlibpath_overrides_runpath=no |
|
8976 |
hardcode_into_libs=yes |
|
8977 |
dynamic_linker='GNU ld.so' |
|
8978 |
;; |
|
8979 |
||
8980 |
netbsd*) |
|
8981 |
version_type=sunos |
|
8982 |
need_lib_prefix=no |
|
8983 |
need_version=no |
|
8984 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
8985 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
8986 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
8987 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
8988 |
else |
|
8989 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
8990 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8991 |
dynamic_linker='NetBSD ld.elf_so' |
|
8992 |
fi |
|
8993 |
shlibpath_var=LD_LIBRARY_PATH |
|
8994 |
shlibpath_overrides_runpath=yes |
|
8995 |
hardcode_into_libs=yes |
|
8996 |
;; |
|
8997 |
||
8998 |
newsos6) |
|
8999 |
version_type=linux |
|
9000 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9001 |
shlibpath_var=LD_LIBRARY_PATH |
|
9002 |
shlibpath_overrides_runpath=yes |
|
9003 |
;; |
|
9004 |
||
9005 |
nto-qnx*) |
|
9006 |
version_type=linux |
|
9007 |
need_lib_prefix=no |
|
9008 |
need_version=no |
|
9009 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9010 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9011 |
shlibpath_var=LD_LIBRARY_PATH |
|
9012 |
shlibpath_overrides_runpath=yes |
|
9013 |
;; |
|
9014 |
||
9015 |
openbsd*) |
|
9016 |
version_type=sunos |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9017 |
sys_lib_dlsearch_path_spec="/usr/lib" |
1
by Ross Burton
Import upstream version 0.10 |
9018 |
need_lib_prefix=no |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9019 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9020 |
case $host_os in |
|
9021 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
9022 |
*) need_version=no ;; |
|
9023 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
9024 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9025 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
9026 |
shlibpath_var=LD_LIBRARY_PATH |
|
9027 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
9028 |
case $host_os in |
|
9029 |
openbsd2.[89] | openbsd2.[89].*) |
|
9030 |
shlibpath_overrides_runpath=no |
|
9031 |
;; |
|
9032 |
*) |
|
9033 |
shlibpath_overrides_runpath=yes |
|
9034 |
;; |
|
9035 |
esac |
|
9036 |
else |
|
9037 |
shlibpath_overrides_runpath=yes |
|
9038 |
fi |
|
9039 |
;; |
|
9040 |
||
9041 |
os2*) |
|
9042 |
libname_spec='$name' |
|
9043 |
shrext_cmds=".dll" |
|
9044 |
need_lib_prefix=no |
|
9045 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
9046 |
dynamic_linker='OS/2 ld.exe' |
|
9047 |
shlibpath_var=LIBPATH |
|
9048 |
;; |
|
9049 |
||
9050 |
osf3* | osf4* | osf5*) |
|
9051 |
version_type=osf |
|
9052 |
need_lib_prefix=no |
|
9053 |
need_version=no |
|
9054 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9055 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9056 |
shlibpath_var=LD_LIBRARY_PATH |
|
9057 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
9058 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
9059 |
;; |
|
9060 |
||
9061 |
solaris*) |
|
9062 |
version_type=linux |
|
9063 |
need_lib_prefix=no |
|
9064 |
need_version=no |
|
9065 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9066 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9067 |
shlibpath_var=LD_LIBRARY_PATH |
|
9068 |
shlibpath_overrides_runpath=yes |
|
9069 |
hardcode_into_libs=yes |
|
9070 |
# ldd complains unless libraries are executable |
|
9071 |
postinstall_cmds='chmod +x $lib' |
|
9072 |
;; |
|
9073 |
||
9074 |
sunos4*) |
|
9075 |
version_type=sunos |
|
9076 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
9077 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
9078 |
shlibpath_var=LD_LIBRARY_PATH |
|
9079 |
shlibpath_overrides_runpath=yes |
|
9080 |
if test "$with_gnu_ld" = yes; then |
|
9081 |
need_lib_prefix=no |
|
9082 |
fi |
|
9083 |
need_version=yes |
|
9084 |
;; |
|
9085 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9086 |
sysv4 | sysv4.3*) |
1
by Ross Burton
Import upstream version 0.10 |
9087 |
version_type=linux |
9088 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9089 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9090 |
shlibpath_var=LD_LIBRARY_PATH |
|
9091 |
case $host_vendor in |
|
9092 |
sni) |
|
9093 |
shlibpath_overrides_runpath=no |
|
9094 |
need_lib_prefix=no |
|
9095 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
9096 |
runpath_var=LD_RUN_PATH |
|
9097 |
;; |
|
9098 |
siemens) |
|
9099 |
need_lib_prefix=no |
|
9100 |
;; |
|
9101 |
motorola) |
|
9102 |
need_lib_prefix=no |
|
9103 |
need_version=no |
|
9104 |
shlibpath_overrides_runpath=no |
|
9105 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
9106 |
;; |
|
9107 |
esac |
|
9108 |
;; |
|
9109 |
||
9110 |
sysv4*MP*) |
|
9111 |
if test -d /usr/nec ;then |
|
9112 |
version_type=linux |
|
9113 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
9114 |
soname_spec='$libname${shared_ext}.$major' |
|
9115 |
shlibpath_var=LD_LIBRARY_PATH |
|
9116 |
fi |
|
9117 |
;; |
|
9118 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9119 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9120 |
version_type=freebsd-elf |
|
9121 |
need_lib_prefix=no |
|
9122 |
need_version=no |
|
9123 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
9124 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9125 |
shlibpath_var=LD_LIBRARY_PATH |
|
9126 |
hardcode_into_libs=yes |
|
9127 |
if test "$with_gnu_ld" = yes; then |
|
9128 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
9129 |
shlibpath_overrides_runpath=no |
|
9130 |
else |
|
9131 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
9132 |
shlibpath_overrides_runpath=yes |
|
9133 |
case $host_os in |
|
9134 |
sco3.2v5*) |
|
9135 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
9136 |
;; |
|
9137 |
esac |
|
9138 |
fi |
|
9139 |
sys_lib_dlsearch_path_spec='/usr/lib' |
|
9140 |
;; |
|
9141 |
||
1
by Ross Burton
Import upstream version 0.10 |
9142 |
uts4*) |
9143 |
version_type=linux |
|
9144 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9145 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9146 |
shlibpath_var=LD_LIBRARY_PATH |
|
9147 |
;; |
|
9148 |
||
9149 |
*) |
|
9150 |
dynamic_linker=no |
|
9151 |
;; |
|
9152 |
esac |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9153 |
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9154 |
echo "${ECHO_T}$dynamic_linker" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9155 |
test "$dynamic_linker" = no && can_build_shared=no |
9156 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9157 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9158 |
if test "$GCC" = yes; then |
|
9159 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
9160 |
fi |
|
9161 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9162 |
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9163 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9164 |
hardcode_action= |
9165 |
if test -n "$hardcode_libdir_flag_spec" || \ |
|
9166 |
test -n "$runpath_var" || \ |
|
9167 |
test "X$hardcode_automatic" = "Xyes" ; then |
|
9168 |
||
9169 |
# We can hardcode non-existant directories. |
|
9170 |
if test "$hardcode_direct" != no && |
|
9171 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
9172 |
# have to relink, otherwise we might link with an installed library |
|
9173 |
# when we should be linking with a yet-to-be-installed one |
|
9174 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
|
9175 |
test "$hardcode_minus_L" != no; then |
|
9176 |
# Linking always hardcodes the temporary library directory. |
|
9177 |
hardcode_action=relink |
|
9178 |
else |
|
9179 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
9180 |
hardcode_action=immediate |
|
9181 |
fi |
|
9182 |
else |
|
9183 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
9184 |
# directories. |
|
9185 |
hardcode_action=unsupported |
|
9186 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9187 |
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9188 |
echo "${ECHO_T}$hardcode_action" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9189 |
|
9190 |
if test "$hardcode_action" = relink; then |
|
9191 |
# Fast installation is not supported |
|
9192 |
enable_fast_install=no |
|
9193 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
9194 |
test "$enable_shared" = no; then |
|
9195 |
# Fast installation is not necessary |
|
9196 |
enable_fast_install=needless |
|
9197 |
fi |
|
9198 |
||
9199 |
striplib= |
|
9200 |
old_striplib= |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9201 |
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9202 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9203 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9204 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
9205 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9206 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
9207 |
echo "${ECHO_T}yes" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9208 |
else |
9209 |
# FIXME - insert some real tests, host_os isn't really good enough |
|
9210 |
case $host_os in |
|
9211 |
darwin*) |
|
9212 |
if test -n "$STRIP" ; then |
|
9213 |
striplib="$STRIP -x" |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9214 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
9215 |
echo "${ECHO_T}yes" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9216 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9217 |
{ echo "$as_me:$LINENO: result: no" >&5 |
9218 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9219 |
fi |
9220 |
;; |
|
9221 |
*) |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9222 |
{ echo "$as_me:$LINENO: result: no" >&5 |
9223 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9224 |
;; |
9225 |
esac |
|
9226 |
fi |
|
9227 |
||
9228 |
if test "x$enable_dlopen" != xyes; then |
|
9229 |
enable_dlopen=unknown |
|
9230 |
enable_dlopen_self=unknown |
|
9231 |
enable_dlopen_self_static=unknown |
|
9232 |
else |
|
9233 |
lt_cv_dlopen=no |
|
9234 |
lt_cv_dlopen_libs= |
|
9235 |
||
9236 |
case $host_os in |
|
9237 |
beos*) |
|
9238 |
lt_cv_dlopen="load_add_on" |
|
9239 |
lt_cv_dlopen_libs= |
|
9240 |
lt_cv_dlopen_self=yes |
|
9241 |
;; |
|
9242 |
||
9243 |
mingw* | pw32*) |
|
9244 |
lt_cv_dlopen="LoadLibrary" |
|
9245 |
lt_cv_dlopen_libs= |
|
9246 |
;; |
|
9247 |
||
9248 |
cygwin*) |
|
9249 |
lt_cv_dlopen="dlopen" |
|
9250 |
lt_cv_dlopen_libs= |
|
9251 |
;; |
|
9252 |
||
9253 |
darwin*) |
|
9254 |
# if libdl is installed we need to link against it |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9255 |
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9256 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9257 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9258 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9259 |
else |
|
9260 |
ac_check_lib_save_LIBS=$LIBS |
|
9261 |
LIBS="-ldl $LIBS" |
|
9262 |
cat >conftest.$ac_ext <<_ACEOF |
|
9263 |
/* confdefs.h. */ |
|
9264 |
_ACEOF |
|
9265 |
cat confdefs.h >>conftest.$ac_ext |
|
9266 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9267 |
/* end confdefs.h. */ |
|
9268 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9269 |
/* Override any GCC internal prototype to avoid an error. |
9270 |
Use char because int might match the return type of a GCC |
|
9271 |
builtin and then its argument prototype would still apply. */ |
|
1
by Ross Burton
Import upstream version 0.10 |
9272 |
#ifdef __cplusplus |
9273 |
extern "C" |
|
9274 |
#endif |
|
9275 |
char dlopen (); |
|
9276 |
int |
|
9277 |
main () |
|
9278 |
{ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9279 |
return dlopen (); |
1
by Ross Burton
Import upstream version 0.10 |
9280 |
; |
9281 |
return 0; |
|
9282 |
} |
|
9283 |
_ACEOF |
|
9284 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9285 |
if { (ac_try="$ac_link" |
9286 |
case "(($ac_try" in |
|
9287 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
9288 |
*) ac_try_echo=$ac_try;; |
|
9289 |
esac |
|
9290 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
9291 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
9292 |
ac_status=$? |
9293 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9294 |
rm -f conftest.er1 |
|
9295 |
cat conftest.err >&5 |
|
9296 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9297 |
(exit $ac_status); } && { |
9298 |
test -z "$ac_c_werror_flag" || |
|
9299 |
test ! -s conftest.err |
|
9300 |
} && test -s conftest$ac_exeext && |
|
9301 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
9302 |
ac_cv_lib_dl_dlopen=yes |
9303 |
else |
|
9304 |
echo "$as_me: failed program was:" >&5 |
|
9305 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9306 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9307 |
ac_cv_lib_dl_dlopen=no |
1
by Ross Burton
Import upstream version 0.10 |
9308 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9309 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9310 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
9311 |
conftest$ac_exeext conftest.$ac_ext |
9312 |
LIBS=$ac_check_lib_save_LIBS |
|
9313 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9314 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9315 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9316 |
if test $ac_cv_lib_dl_dlopen = yes; then |
9317 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
9318 |
else |
|
9319 |
||
9320 |
lt_cv_dlopen="dyld" |
|
9321 |
lt_cv_dlopen_libs= |
|
9322 |
lt_cv_dlopen_self=yes |
|
9323 |
||
9324 |
fi |
|
9325 |
||
9326 |
;; |
|
9327 |
||
9328 |
*) |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9329 |
{ echo "$as_me:$LINENO: checking for shl_load" >&5 |
9330 |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9331 |
if test "${ac_cv_func_shl_load+set}" = set; then |
9332 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9333 |
else |
|
9334 |
cat >conftest.$ac_ext <<_ACEOF |
|
9335 |
/* confdefs.h. */ |
|
9336 |
_ACEOF |
|
9337 |
cat confdefs.h >>conftest.$ac_ext |
|
9338 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9339 |
/* end confdefs.h. */ |
|
9340 |
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
9341 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
9342 |
#define shl_load innocuous_shl_load |
|
9343 |
||
9344 |
/* System header to define __stub macros and hopefully few prototypes, |
|
9345 |
which can conflict with char shl_load (); below. |
|
9346 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
9347 |
<limits.h> exists even on freestanding compilers. */ |
|
9348 |
||
9349 |
#ifdef __STDC__ |
|
9350 |
# include <limits.h> |
|
9351 |
#else |
|
9352 |
# include <assert.h> |
|
9353 |
#endif |
|
9354 |
||
9355 |
#undef shl_load |
|
9356 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9357 |
/* Override any GCC internal prototype to avoid an error. |
9358 |
Use char because int might match the return type of a GCC |
|
9359 |
builtin and then its argument prototype would still apply. */ |
|
1
by Ross Burton
Import upstream version 0.10 |
9360 |
#ifdef __cplusplus |
9361 |
extern "C" |
|
9362 |
#endif |
|
9363 |
char shl_load (); |
|
9364 |
/* The GNU C library defines this for functions which it implements |
|
9365 |
to always fail with ENOSYS. Some functions are actually named |
|
9366 |
something starting with __ and the normal name is an alias. */ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9367 |
#if defined __stub_shl_load || defined __stub___shl_load |
1
by Ross Burton
Import upstream version 0.10 |
9368 |
choke me |
9369 |
#endif |
|
9370 |
||
9371 |
int |
|
9372 |
main () |
|
9373 |
{ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9374 |
return shl_load (); |
1
by Ross Burton
Import upstream version 0.10 |
9375 |
; |
9376 |
return 0; |
|
9377 |
} |
|
9378 |
_ACEOF |
|
9379 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9380 |
if { (ac_try="$ac_link" |
9381 |
case "(($ac_try" in |
|
9382 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
9383 |
*) ac_try_echo=$ac_try;; |
|
9384 |
esac |
|
9385 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
9386 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
9387 |
ac_status=$? |
9388 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9389 |
rm -f conftest.er1 |
|
9390 |
cat conftest.err >&5 |
|
9391 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9392 |
(exit $ac_status); } && { |
9393 |
test -z "$ac_c_werror_flag" || |
|
9394 |
test ! -s conftest.err |
|
9395 |
} && test -s conftest$ac_exeext && |
|
9396 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
9397 |
ac_cv_func_shl_load=yes |
9398 |
else |
|
9399 |
echo "$as_me: failed program was:" >&5 |
|
9400 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9401 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9402 |
ac_cv_func_shl_load=no |
1
by Ross Burton
Import upstream version 0.10 |
9403 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9404 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9405 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
9406 |
conftest$ac_exeext conftest.$ac_ext |
9407 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9408 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9409 |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9410 |
if test $ac_cv_func_shl_load = yes; then |
9411 |
lt_cv_dlopen="shl_load" |
|
9412 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9413 |
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9414 |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9415 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9416 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9417 |
else |
|
9418 |
ac_check_lib_save_LIBS=$LIBS |
|
9419 |
LIBS="-ldld $LIBS" |
|
9420 |
cat >conftest.$ac_ext <<_ACEOF |
|
9421 |
/* confdefs.h. */ |
|
9422 |
_ACEOF |
|
9423 |
cat confdefs.h >>conftest.$ac_ext |
|
9424 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9425 |
/* end confdefs.h. */ |
|
9426 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9427 |
/* Override any GCC internal prototype to avoid an error. |
9428 |
Use char because int might match the return type of a GCC |
|
9429 |
builtin and then its argument prototype would still apply. */ |
|
1
by Ross Burton
Import upstream version 0.10 |
9430 |
#ifdef __cplusplus |
9431 |
extern "C" |
|
9432 |
#endif |
|
9433 |
char shl_load (); |
|
9434 |
int |
|
9435 |
main () |
|
9436 |
{ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9437 |
return shl_load (); |
1
by Ross Burton
Import upstream version 0.10 |
9438 |
; |
9439 |
return 0; |
|
9440 |
} |
|
9441 |
_ACEOF |
|
9442 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9443 |
if { (ac_try="$ac_link" |
9444 |
case "(($ac_try" in |
|
9445 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
9446 |
*) ac_try_echo=$ac_try;; |
|
9447 |
esac |
|
9448 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
9449 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
9450 |
ac_status=$? |
9451 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9452 |
rm -f conftest.er1 |
|
9453 |
cat conftest.err >&5 |
|
9454 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9455 |
(exit $ac_status); } && { |
9456 |
test -z "$ac_c_werror_flag" || |
|
9457 |
test ! -s conftest.err |
|
9458 |
} && test -s conftest$ac_exeext && |
|
9459 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
9460 |
ac_cv_lib_dld_shl_load=yes |
9461 |
else |
|
9462 |
echo "$as_me: failed program was:" >&5 |
|
9463 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9464 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9465 |
ac_cv_lib_dld_shl_load=no |
1
by Ross Burton
Import upstream version 0.10 |
9466 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9467 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9468 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
9469 |
conftest$ac_exeext conftest.$ac_ext |
9470 |
LIBS=$ac_check_lib_save_LIBS |
|
9471 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9472 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9473 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9474 |
if test $ac_cv_lib_dld_shl_load = yes; then |
9475 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
9476 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9477 |
{ echo "$as_me:$LINENO: checking for dlopen" >&5 |
9478 |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9479 |
if test "${ac_cv_func_dlopen+set}" = set; then |
9480 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9481 |
else |
|
9482 |
cat >conftest.$ac_ext <<_ACEOF |
|
9483 |
/* confdefs.h. */ |
|
9484 |
_ACEOF |
|
9485 |
cat confdefs.h >>conftest.$ac_ext |
|
9486 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9487 |
/* end confdefs.h. */ |
|
9488 |
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
9489 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
9490 |
#define dlopen innocuous_dlopen |
|
9491 |
||
9492 |
/* System header to define __stub macros and hopefully few prototypes, |
|
9493 |
which can conflict with char dlopen (); below. |
|
9494 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
9495 |
<limits.h> exists even on freestanding compilers. */ |
|
9496 |
||
9497 |
#ifdef __STDC__ |
|
9498 |
# include <limits.h> |
|
9499 |
#else |
|
9500 |
# include <assert.h> |
|
9501 |
#endif |
|
9502 |
||
9503 |
#undef dlopen |
|
9504 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9505 |
/* Override any GCC internal prototype to avoid an error. |
9506 |
Use char because int might match the return type of a GCC |
|
9507 |
builtin and then its argument prototype would still apply. */ |
|
1
by Ross Burton
Import upstream version 0.10 |
9508 |
#ifdef __cplusplus |
9509 |
extern "C" |
|
9510 |
#endif |
|
9511 |
char dlopen (); |
|
9512 |
/* The GNU C library defines this for functions which it implements |
|
9513 |
to always fail with ENOSYS. Some functions are actually named |
|
9514 |
something starting with __ and the normal name is an alias. */ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9515 |
#if defined __stub_dlopen || defined __stub___dlopen |
1
by Ross Burton
Import upstream version 0.10 |
9516 |
choke me |
9517 |
#endif |
|
9518 |
||
9519 |
int |
|
9520 |
main () |
|
9521 |
{ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9522 |
return dlopen (); |
1
by Ross Burton
Import upstream version 0.10 |
9523 |
; |
9524 |
return 0; |
|
9525 |
} |
|
9526 |
_ACEOF |
|
9527 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9528 |
if { (ac_try="$ac_link" |
9529 |
case "(($ac_try" in |
|
9530 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
9531 |
*) ac_try_echo=$ac_try;; |
|
9532 |
esac |
|
9533 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
9534 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
9535 |
ac_status=$? |
9536 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9537 |
rm -f conftest.er1 |
|
9538 |
cat conftest.err >&5 |
|
9539 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9540 |
(exit $ac_status); } && { |
9541 |
test -z "$ac_c_werror_flag" || |
|
9542 |
test ! -s conftest.err |
|
9543 |
} && test -s conftest$ac_exeext && |
|
9544 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
9545 |
ac_cv_func_dlopen=yes |
9546 |
else |
|
9547 |
echo "$as_me: failed program was:" >&5 |
|
9548 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9549 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9550 |
ac_cv_func_dlopen=no |
1
by Ross Burton
Import upstream version 0.10 |
9551 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9552 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9553 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
9554 |
conftest$ac_exeext conftest.$ac_ext |
9555 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9556 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9557 |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9558 |
if test $ac_cv_func_dlopen = yes; then |
9559 |
lt_cv_dlopen="dlopen" |
|
9560 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9561 |
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9562 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9563 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9564 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9565 |
else |
|
9566 |
ac_check_lib_save_LIBS=$LIBS |
|
9567 |
LIBS="-ldl $LIBS" |
|
9568 |
cat >conftest.$ac_ext <<_ACEOF |
|
9569 |
/* confdefs.h. */ |
|
9570 |
_ACEOF |
|
9571 |
cat confdefs.h >>conftest.$ac_ext |
|
9572 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9573 |
/* end confdefs.h. */ |
|
9574 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9575 |
/* Override any GCC internal prototype to avoid an error. |
9576 |
Use char because int might match the return type of a GCC |
|
9577 |
builtin and then its argument prototype would still apply. */ |
|
1
by Ross Burton
Import upstream version 0.10 |
9578 |
#ifdef __cplusplus |
9579 |
extern "C" |
|
9580 |
#endif |
|
9581 |
char dlopen (); |
|
9582 |
int |
|
9583 |
main () |
|
9584 |
{ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9585 |
return dlopen (); |
1
by Ross Burton
Import upstream version 0.10 |
9586 |
; |
9587 |
return 0; |
|
9588 |
} |
|
9589 |
_ACEOF |
|
9590 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9591 |
if { (ac_try="$ac_link" |
9592 |
case "(($ac_try" in |
|
9593 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
9594 |
*) ac_try_echo=$ac_try;; |
|
9595 |
esac |
|
9596 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
9597 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
9598 |
ac_status=$? |
9599 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9600 |
rm -f conftest.er1 |
|
9601 |
cat conftest.err >&5 |
|
9602 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9603 |
(exit $ac_status); } && { |
9604 |
test -z "$ac_c_werror_flag" || |
|
9605 |
test ! -s conftest.err |
|
9606 |
} && test -s conftest$ac_exeext && |
|
9607 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
9608 |
ac_cv_lib_dl_dlopen=yes |
9609 |
else |
|
9610 |
echo "$as_me: failed program was:" >&5 |
|
9611 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9612 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9613 |
ac_cv_lib_dl_dlopen=no |
1
by Ross Burton
Import upstream version 0.10 |
9614 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9615 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9616 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
9617 |
conftest$ac_exeext conftest.$ac_ext |
9618 |
LIBS=$ac_check_lib_save_LIBS |
|
9619 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9620 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9621 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9622 |
if test $ac_cv_lib_dl_dlopen = yes; then |
9623 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
9624 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9625 |
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9626 |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9627 |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9628 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9629 |
else |
|
9630 |
ac_check_lib_save_LIBS=$LIBS |
|
9631 |
LIBS="-lsvld $LIBS" |
|
9632 |
cat >conftest.$ac_ext <<_ACEOF |
|
9633 |
/* confdefs.h. */ |
|
9634 |
_ACEOF |
|
9635 |
cat confdefs.h >>conftest.$ac_ext |
|
9636 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9637 |
/* end confdefs.h. */ |
|
9638 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9639 |
/* Override any GCC internal prototype to avoid an error. |
9640 |
Use char because int might match the return type of a GCC |
|
9641 |
builtin and then its argument prototype would still apply. */ |
|
1
by Ross Burton
Import upstream version 0.10 |
9642 |
#ifdef __cplusplus |
9643 |
extern "C" |
|
9644 |
#endif |
|
9645 |
char dlopen (); |
|
9646 |
int |
|
9647 |
main () |
|
9648 |
{ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9649 |
return dlopen (); |
1
by Ross Burton
Import upstream version 0.10 |
9650 |
; |
9651 |
return 0; |
|
9652 |
} |
|
9653 |
_ACEOF |
|
9654 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9655 |
if { (ac_try="$ac_link" |
9656 |
case "(($ac_try" in |
|
9657 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
9658 |
*) ac_try_echo=$ac_try;; |
|
9659 |
esac |
|
9660 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
9661 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
9662 |
ac_status=$? |
9663 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9664 |
rm -f conftest.er1 |
|
9665 |
cat conftest.err >&5 |
|
9666 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9667 |
(exit $ac_status); } && { |
9668 |
test -z "$ac_c_werror_flag" || |
|
9669 |
test ! -s conftest.err |
|
9670 |
} && test -s conftest$ac_exeext && |
|
9671 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
9672 |
ac_cv_lib_svld_dlopen=yes |
9673 |
else |
|
9674 |
echo "$as_me: failed program was:" >&5 |
|
9675 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9676 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9677 |
ac_cv_lib_svld_dlopen=no |
1
by Ross Burton
Import upstream version 0.10 |
9678 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9679 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9680 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
9681 |
conftest$ac_exeext conftest.$ac_ext |
9682 |
LIBS=$ac_check_lib_save_LIBS |
|
9683 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9684 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9685 |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9686 |
if test $ac_cv_lib_svld_dlopen = yes; then |
9687 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
9688 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9689 |
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9690 |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9691 |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9692 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9693 |
else |
|
9694 |
ac_check_lib_save_LIBS=$LIBS |
|
9695 |
LIBS="-ldld $LIBS" |
|
9696 |
cat >conftest.$ac_ext <<_ACEOF |
|
9697 |
/* confdefs.h. */ |
|
9698 |
_ACEOF |
|
9699 |
cat confdefs.h >>conftest.$ac_ext |
|
9700 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9701 |
/* end confdefs.h. */ |
|
9702 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9703 |
/* Override any GCC internal prototype to avoid an error. |
9704 |
Use char because int might match the return type of a GCC |
|
9705 |
builtin and then its argument prototype would still apply. */ |
|
1
by Ross Burton
Import upstream version 0.10 |
9706 |
#ifdef __cplusplus |
9707 |
extern "C" |
|
9708 |
#endif |
|
9709 |
char dld_link (); |
|
9710 |
int |
|
9711 |
main () |
|
9712 |
{ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9713 |
return dld_link (); |
1
by Ross Burton
Import upstream version 0.10 |
9714 |
; |
9715 |
return 0; |
|
9716 |
} |
|
9717 |
_ACEOF |
|
9718 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9719 |
if { (ac_try="$ac_link" |
9720 |
case "(($ac_try" in |
|
9721 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
9722 |
*) ac_try_echo=$ac_try;; |
|
9723 |
esac |
|
9724 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
9725 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
9726 |
ac_status=$? |
9727 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9728 |
rm -f conftest.er1 |
|
9729 |
cat conftest.err >&5 |
|
9730 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9731 |
(exit $ac_status); } && { |
9732 |
test -z "$ac_c_werror_flag" || |
|
9733 |
test ! -s conftest.err |
|
9734 |
} && test -s conftest$ac_exeext && |
|
9735 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
9736 |
ac_cv_lib_dld_dld_link=yes |
9737 |
else |
|
9738 |
echo "$as_me: failed program was:" >&5 |
|
9739 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9740 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9741 |
ac_cv_lib_dld_dld_link=no |
1
by Ross Burton
Import upstream version 0.10 |
9742 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9743 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9744 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
9745 |
conftest$ac_exeext conftest.$ac_ext |
9746 |
LIBS=$ac_check_lib_save_LIBS |
|
9747 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9748 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9749 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9750 |
if test $ac_cv_lib_dld_dld_link = yes; then |
9751 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
9752 |
fi |
|
9753 |
||
9754 |
||
9755 |
fi |
|
9756 |
||
9757 |
||
9758 |
fi |
|
9759 |
||
9760 |
||
9761 |
fi |
|
9762 |
||
9763 |
||
9764 |
fi |
|
9765 |
||
9766 |
||
9767 |
fi |
|
9768 |
||
9769 |
;; |
|
9770 |
esac |
|
9771 |
||
9772 |
if test "x$lt_cv_dlopen" != xno; then |
|
9773 |
enable_dlopen=yes |
|
9774 |
else |
|
9775 |
enable_dlopen=no |
|
9776 |
fi |
|
9777 |
||
9778 |
case $lt_cv_dlopen in |
|
9779 |
dlopen) |
|
9780 |
save_CPPFLAGS="$CPPFLAGS" |
|
9781 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
9782 |
||
9783 |
save_LDFLAGS="$LDFLAGS" |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9784 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
1
by Ross Burton
Import upstream version 0.10 |
9785 |
|
9786 |
save_LIBS="$LIBS" |
|
9787 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
|
9788 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9789 |
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9790 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9791 |
if test "${lt_cv_dlopen_self+set}" = set; then |
9792 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9793 |
else |
|
9794 |
if test "$cross_compiling" = yes; then : |
|
9795 |
lt_cv_dlopen_self=cross |
|
9796 |
else |
|
9797 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
9798 |
lt_status=$lt_dlunknown |
|
9799 |
cat > conftest.$ac_ext <<EOF |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9800 |
#line 9800 "configure" |
1
by Ross Burton
Import upstream version 0.10 |
9801 |
#include "confdefs.h" |
9802 |
||
9803 |
#if HAVE_DLFCN_H |
|
9804 |
#include <dlfcn.h> |
|
9805 |
#endif |
|
9806 |
||
9807 |
#include <stdio.h> |
|
9808 |
||
9809 |
#ifdef RTLD_GLOBAL |
|
9810 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
9811 |
#else |
|
9812 |
# ifdef DL_GLOBAL |
|
9813 |
# define LT_DLGLOBAL DL_GLOBAL |
|
9814 |
# else |
|
9815 |
# define LT_DLGLOBAL 0 |
|
9816 |
# endif |
|
9817 |
#endif |
|
9818 |
||
9819 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
9820 |
find out it does not work in some platform. */ |
|
9821 |
#ifndef LT_DLLAZY_OR_NOW |
|
9822 |
# ifdef RTLD_LAZY |
|
9823 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
9824 |
# else |
|
9825 |
# ifdef DL_LAZY |
|
9826 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
9827 |
# else |
|
9828 |
# ifdef RTLD_NOW |
|
9829 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
9830 |
# else |
|
9831 |
# ifdef DL_NOW |
|
9832 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
9833 |
# else |
|
9834 |
# define LT_DLLAZY_OR_NOW 0 |
|
9835 |
# endif |
|
9836 |
# endif |
|
9837 |
# endif |
|
9838 |
# endif |
|
9839 |
#endif |
|
9840 |
||
9841 |
#ifdef __cplusplus |
|
9842 |
extern "C" void exit (int); |
|
9843 |
#endif |
|
9844 |
||
9845 |
void fnord() { int i=42;} |
|
9846 |
int main () |
|
9847 |
{ |
|
9848 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
9849 |
int status = $lt_dlunknown; |
|
9850 |
||
9851 |
if (self) |
|
9852 |
{ |
|
9853 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
9854 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
9855 |
/* dlclose (self); */ |
|
9856 |
} |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9857 |
else |
9858 |
puts (dlerror ()); |
|
1
by Ross Burton
Import upstream version 0.10 |
9859 |
|
9860 |
exit (status); |
|
9861 |
} |
|
9862 |
EOF |
|
9863 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
9864 |
(eval $ac_link) 2>&5 |
|
9865 |
ac_status=$? |
|
9866 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9867 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9868 |
(./conftest; exit; ) >&5 2>/dev/null |
1
by Ross Burton
Import upstream version 0.10 |
9869 |
lt_status=$? |
9870 |
case x$lt_status in |
|
9871 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
9872 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9873 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
1
by Ross Burton
Import upstream version 0.10 |
9874 |
esac |
9875 |
else : |
|
9876 |
# compilation failed |
|
9877 |
lt_cv_dlopen_self=no |
|
9878 |
fi |
|
9879 |
fi |
|
9880 |
rm -fr conftest* |
|
9881 |
||
9882 |
||
9883 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9884 |
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9885 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9886 |
|
9887 |
if test "x$lt_cv_dlopen_self" = xyes; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9888 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9889 |
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9890 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9891 |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
9892 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9893 |
else |
|
9894 |
if test "$cross_compiling" = yes; then : |
|
9895 |
lt_cv_dlopen_self_static=cross |
|
9896 |
else |
|
9897 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
9898 |
lt_status=$lt_dlunknown |
|
9899 |
cat > conftest.$ac_ext <<EOF |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
9900 |
#line 9900 "configure" |
1
by Ross Burton
Import upstream version 0.10 |
9901 |
#include "confdefs.h" |
9902 |
||
9903 |
#if HAVE_DLFCN_H |
|
9904 |
#include <dlfcn.h> |
|
9905 |
#endif |
|
9906 |
||
9907 |
#include <stdio.h> |
|
9908 |
||
9909 |
#ifdef RTLD_GLOBAL |
|
9910 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
9911 |
#else |
|
9912 |
# ifdef DL_GLOBAL |
|
9913 |
# define LT_DLGLOBAL DL_GLOBAL |
|
9914 |
# else |
|
9915 |
# define LT_DLGLOBAL 0 |
|
9916 |
# endif |
|
9917 |
#endif |
|
9918 |
||
9919 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
9920 |
find out it does not work in some platform. */ |
|
9921 |
#ifndef LT_DLLAZY_OR_NOW |
|
9922 |
# ifdef RTLD_LAZY |
|
9923 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
9924 |
# else |
|
9925 |
# ifdef DL_LAZY |
|
9926 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
9927 |
# else |
|
9928 |
# ifdef RTLD_NOW |
|
9929 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
9930 |
# else |
|
9931 |
# ifdef DL_NOW |
|
9932 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
9933 |
# else |
|
9934 |
# define LT_DLLAZY_OR_NOW 0 |
|
9935 |
# endif |
|
9936 |
# endif |
|
9937 |
# endif |
|
9938 |
# endif |
|
9939 |
#endif |
|
9940 |
||
9941 |
#ifdef __cplusplus |
|
9942 |
extern "C" void exit (int); |
|
9943 |
#endif |
|
9944 |
||
9945 |
void fnord() { int i=42;} |
|
9946 |
int main () |
|
9947 |
{ |
|
9948 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
9949 |
int status = $lt_dlunknown; |
|
9950 |
||
9951 |
if (self) |
|
9952 |
{ |
|
9953 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
9954 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
9955 |
/* dlclose (self); */ |
|
9956 |
} |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9957 |
else |
9958 |
puts (dlerror ()); |
|
1
by Ross Burton
Import upstream version 0.10 |
9959 |
|
9960 |
exit (status); |
|
9961 |
} |
|
9962 |
EOF |
|
9963 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
9964 |
(eval $ac_link) 2>&5 |
|
9965 |
ac_status=$? |
|
9966 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9967 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9968 |
(./conftest; exit; ) >&5 2>/dev/null |
1
by Ross Burton
Import upstream version 0.10 |
9969 |
lt_status=$? |
9970 |
case x$lt_status in |
|
9971 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
9972 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
9973 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
1
by Ross Burton
Import upstream version 0.10 |
9974 |
esac |
9975 |
else : |
|
9976 |
# compilation failed |
|
9977 |
lt_cv_dlopen_self_static=no |
|
9978 |
fi |
|
9979 |
fi |
|
9980 |
rm -fr conftest* |
|
9981 |
||
9982 |
||
9983 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
9984 |
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
9985 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
9986 |
fi |
9987 |
||
9988 |
CPPFLAGS="$save_CPPFLAGS" |
|
9989 |
LDFLAGS="$save_LDFLAGS" |
|
9990 |
LIBS="$save_LIBS" |
|
9991 |
;; |
|
9992 |
esac |
|
9993 |
||
9994 |
case $lt_cv_dlopen_self in |
|
9995 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
9996 |
*) enable_dlopen_self=unknown ;; |
|
9997 |
esac |
|
9998 |
||
9999 |
case $lt_cv_dlopen_self_static in |
|
10000 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
10001 |
*) enable_dlopen_self_static=unknown ;; |
|
10002 |
esac |
|
10003 |
fi |
|
10004 |
||
10005 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10006 |
# Report which library types will actually be built |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10007 |
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10008 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
|
10009 |
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
10010 |
echo "${ECHO_T}$can_build_shared" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10011 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10012 |
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10013 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10014 |
test "$can_build_shared" = "no" && enable_shared=no |
10015 |
||
10016 |
# On AIX, shared libraries and static libraries use the same namespace, and |
|
10017 |
# are all built from PIC. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10018 |
case $host_os in |
1
by Ross Burton
Import upstream version 0.10 |
10019 |
aix3*) |
10020 |
test "$enable_shared" = yes && enable_static=no |
|
10021 |
if test -n "$RANLIB"; then |
|
10022 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
10023 |
postinstall_cmds='$RANLIB $lib' |
|
10024 |
fi |
|
10025 |
;; |
|
10026 |
||
10027 |
aix4* | aix5*) |
|
10028 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
10029 |
test "$enable_shared" = yes && enable_static=no |
|
10030 |
fi |
|
10031 |
;; |
|
10032 |
esac |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10033 |
{ echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10034 |
echo "${ECHO_T}$enable_shared" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10035 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10036 |
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10037 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10038 |
# Make sure either enable_shared or enable_static is yes. |
10039 |
test "$enable_shared" = yes || enable_static=yes |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10040 |
{ echo "$as_me:$LINENO: result: $enable_static" >&5 |
10041 |
echo "${ECHO_T}$enable_static" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10042 |
|
10043 |
# The else clause should only fire when bootstrapping the |
|
10044 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
10045 |
# with your package, and you will get complaints that there are |
|
10046 |
# no rules to generate ltmain.sh. |
|
10047 |
if test -f "$ltmain"; then |
|
10048 |
# See if we are running on zsh, and set the options which allow our commands through |
|
10049 |
# without removal of \ escapes. |
|
10050 |
if test -n "${ZSH_VERSION+set}" ; then |
|
10051 |
setopt NO_GLOB_SUBST |
|
10052 |
fi |
|
10053 |
# Now quote all the things that may contain metacharacters while being |
|
10054 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
10055 |
# variables and quote the copies for generation of the libtool script. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10056 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
1
by Ross Burton
Import upstream version 0.10 |
10057 |
SED SHELL STRIP \ |
10058 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
10059 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
10060 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
10061 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
10062 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
10063 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
10064 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
10065 |
compiler \ |
|
10066 |
CC \ |
|
10067 |
LD \ |
|
10068 |
lt_prog_compiler_wl \ |
|
10069 |
lt_prog_compiler_pic \ |
|
10070 |
lt_prog_compiler_static \ |
|
10071 |
lt_prog_compiler_no_builtin_flag \ |
|
10072 |
export_dynamic_flag_spec \ |
|
10073 |
thread_safe_flag_spec \ |
|
10074 |
whole_archive_flag_spec \ |
|
10075 |
enable_shared_with_static_runtimes \ |
|
10076 |
old_archive_cmds \ |
|
10077 |
old_archive_from_new_cmds \ |
|
10078 |
predep_objects \ |
|
10079 |
postdep_objects \ |
|
10080 |
predeps \ |
|
10081 |
postdeps \ |
|
10082 |
compiler_lib_search_path \ |
|
10083 |
archive_cmds \ |
|
10084 |
archive_expsym_cmds \ |
|
10085 |
postinstall_cmds \ |
|
10086 |
postuninstall_cmds \ |
|
10087 |
old_archive_from_expsyms_cmds \ |
|
10088 |
allow_undefined_flag \ |
|
10089 |
no_undefined_flag \ |
|
10090 |
export_symbols_cmds \ |
|
10091 |
hardcode_libdir_flag_spec \ |
|
10092 |
hardcode_libdir_flag_spec_ld \ |
|
10093 |
hardcode_libdir_separator \ |
|
10094 |
hardcode_automatic \ |
|
10095 |
module_cmds \ |
|
10096 |
module_expsym_cmds \ |
|
10097 |
lt_cv_prog_compiler_c_o \ |
|
10098 |
exclude_expsyms \ |
|
10099 |
include_expsyms; do |
|
10100 |
||
10101 |
case $var in |
|
10102 |
old_archive_cmds | \ |
|
10103 |
old_archive_from_new_cmds | \ |
|
10104 |
archive_cmds | \ |
|
10105 |
archive_expsym_cmds | \ |
|
10106 |
module_cmds | \ |
|
10107 |
module_expsym_cmds | \ |
|
10108 |
old_archive_from_expsyms_cmds | \ |
|
10109 |
export_symbols_cmds | \ |
|
10110 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
10111 |
postinstall_cmds | postuninstall_cmds | \ |
|
10112 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
10113 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
10114 |
# Double-quote double-evaled strings. |
|
10115 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
10116 |
;; |
|
10117 |
*) |
|
10118 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
10119 |
;; |
|
10120 |
esac |
|
10121 |
done |
|
10122 |
||
10123 |
case $lt_echo in |
|
10124 |
*'\$0 --fallback-echo"') |
|
10125 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
10126 |
;; |
|
10127 |
esac |
|
10128 |
||
10129 |
cfgfile="${ofile}T" |
|
10130 |
trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
|
10131 |
$rm -f "$cfgfile" |
|
10132 |
{ echo "$as_me:$LINENO: creating $ofile" >&5 |
|
10133 |
echo "$as_me: creating $ofile" >&6;} |
|
10134 |
||
10135 |
cat <<__EOF__ >> "$cfgfile" |
|
10136 |
#! $SHELL |
|
10137 |
||
10138 |
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
10139 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
10140 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
10141 |
# |
|
10142 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
|
10143 |
# Free Software Foundation, Inc. |
|
10144 |
# |
|
10145 |
# This file is part of GNU Libtool: |
|
10146 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
10147 |
# |
|
10148 |
# This program is free software; you can redistribute it and/or modify |
|
10149 |
# it under the terms of the GNU General Public License as published by |
|
10150 |
# the Free Software Foundation; either version 2 of the License, or |
|
10151 |
# (at your option) any later version. |
|
10152 |
# |
|
10153 |
# This program is distributed in the hope that it will be useful, but |
|
10154 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
|
10155 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
10156 |
# General Public License for more details. |
|
10157 |
# |
|
10158 |
# You should have received a copy of the GNU General Public License |
|
10159 |
# along with this program; if not, write to the Free Software |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10160 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
1
by Ross Burton
Import upstream version 0.10 |
10161 |
# |
10162 |
# As a special exception to the GNU General Public License, if you |
|
10163 |
# distribute this file as part of a program that contains a |
|
10164 |
# configuration script generated by Autoconf, you may include it under |
|
10165 |
# the same distribution terms that you use for the rest of that program. |
|
10166 |
||
10167 |
# A sed program that does not truncate output. |
|
10168 |
SED=$lt_SED |
|
10169 |
||
10170 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10171 |
Xsed="$SED -e 1s/^X//" |
1
by Ross Burton
Import upstream version 0.10 |
10172 |
|
10173 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
|
10174 |
# if CDPATH is set. |
|
10175 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
10176 |
||
10177 |
# The names of the tagged configurations supported by this script. |
|
10178 |
available_tags= |
|
10179 |
||
10180 |
# ### BEGIN LIBTOOL CONFIG |
|
10181 |
||
10182 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
10183 |
||
10184 |
# Shell to use when invoking shell scripts. |
|
10185 |
SHELL=$lt_SHELL |
|
10186 |
||
10187 |
# Whether or not to build shared libraries. |
|
10188 |
build_libtool_libs=$enable_shared |
|
10189 |
||
10190 |
# Whether or not to build static libraries. |
|
10191 |
build_old_libs=$enable_static |
|
10192 |
||
10193 |
# Whether or not to add -lc for building shared libraries. |
|
10194 |
build_libtool_need_lc=$archive_cmds_need_lc |
|
10195 |
||
10196 |
# Whether or not to disallow shared libs when runtime libs are static |
|
10197 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
|
10198 |
||
10199 |
# Whether or not to optimize for fast installation. |
|
10200 |
fast_install=$enable_fast_install |
|
10201 |
||
10202 |
# The host system. |
|
10203 |
host_alias=$host_alias |
|
10204 |
host=$host |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10205 |
host_os=$host_os |
10206 |
||
10207 |
# The build system. |
|
10208 |
build_alias=$build_alias |
|
10209 |
build=$build |
|
10210 |
build_os=$build_os |
|
1
by Ross Burton
Import upstream version 0.10 |
10211 |
|
10212 |
# An echo program that does not interpret backslashes. |
|
10213 |
echo=$lt_echo |
|
10214 |
||
10215 |
# The archiver. |
|
10216 |
AR=$lt_AR |
|
10217 |
AR_FLAGS=$lt_AR_FLAGS |
|
10218 |
||
10219 |
# A C compiler. |
|
10220 |
LTCC=$lt_LTCC |
|
10221 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10222 |
# LTCC compiler flags. |
10223 |
LTCFLAGS=$lt_LTCFLAGS |
|
10224 |
||
1
by Ross Burton
Import upstream version 0.10 |
10225 |
# A language-specific compiler. |
10226 |
CC=$lt_compiler |
|
10227 |
||
10228 |
# Is the compiler the GNU C compiler? |
|
10229 |
with_gcc=$GCC |
|
10230 |
||
10231 |
# An ERE matcher. |
|
10232 |
EGREP=$lt_EGREP |
|
10233 |
||
10234 |
# The linker used to build libraries. |
|
10235 |
LD=$lt_LD |
|
10236 |
||
10237 |
# Whether we need hard or soft links. |
|
10238 |
LN_S=$lt_LN_S |
|
10239 |
||
10240 |
# A BSD-compatible nm program. |
|
10241 |
NM=$lt_NM |
|
10242 |
||
10243 |
# A symbol stripping program |
|
10244 |
STRIP=$lt_STRIP |
|
10245 |
||
10246 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
10247 |
MAGIC_CMD=$MAGIC_CMD |
|
10248 |
||
10249 |
# Used on cygwin: DLL creation program. |
|
10250 |
DLLTOOL="$DLLTOOL" |
|
10251 |
||
10252 |
# Used on cygwin: object dumper. |
|
10253 |
OBJDUMP="$OBJDUMP" |
|
10254 |
||
10255 |
# Used on cygwin: assembler. |
|
10256 |
AS="$AS" |
|
10257 |
||
10258 |
# The name of the directory that contains temporary libtool files. |
|
10259 |
objdir=$objdir |
|
10260 |
||
10261 |
# How to create reloadable object files. |
|
10262 |
reload_flag=$lt_reload_flag |
|
10263 |
reload_cmds=$lt_reload_cmds |
|
10264 |
||
10265 |
# How to pass a linker flag through the compiler. |
|
10266 |
wl=$lt_lt_prog_compiler_wl |
|
10267 |
||
10268 |
# Object file suffix (normally "o"). |
|
10269 |
objext="$ac_objext" |
|
10270 |
||
10271 |
# Old archive suffix (normally "a"). |
|
10272 |
libext="$libext" |
|
10273 |
||
10274 |
# Shared library suffix (normally ".so"). |
|
10275 |
shrext_cmds='$shrext_cmds' |
|
10276 |
||
10277 |
# Executable file suffix (normally ""). |
|
10278 |
exeext="$exeext" |
|
10279 |
||
10280 |
# Additional compiler flags for building library objects. |
|
10281 |
pic_flag=$lt_lt_prog_compiler_pic |
|
10282 |
pic_mode=$pic_mode |
|
10283 |
||
10284 |
# What is the maximum length of a command? |
|
10285 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
10286 |
||
10287 |
# Does compiler simultaneously support -c and -o options? |
|
10288 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
|
10289 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10290 |
# Must we lock files when doing compilation? |
1
by Ross Burton
Import upstream version 0.10 |
10291 |
need_locks=$lt_need_locks |
10292 |
||
10293 |
# Do we need the lib prefix for modules? |
|
10294 |
need_lib_prefix=$need_lib_prefix |
|
10295 |
||
10296 |
# Do we need a version for libraries? |
|
10297 |
need_version=$need_version |
|
10298 |
||
10299 |
# Whether dlopen is supported. |
|
10300 |
dlopen_support=$enable_dlopen |
|
10301 |
||
10302 |
# Whether dlopen of programs is supported. |
|
10303 |
dlopen_self=$enable_dlopen_self |
|
10304 |
||
10305 |
# Whether dlopen of statically linked programs is supported. |
|
10306 |
dlopen_self_static=$enable_dlopen_self_static |
|
10307 |
||
10308 |
# Compiler flag to prevent dynamic linking. |
|
10309 |
link_static_flag=$lt_lt_prog_compiler_static |
|
10310 |
||
10311 |
# Compiler flag to turn off builtin functions. |
|
10312 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
|
10313 |
||
10314 |
# Compiler flag to allow reflexive dlopens. |
|
10315 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
10316 |
||
10317 |
# Compiler flag to generate shared objects directly from archives. |
|
10318 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
10319 |
||
10320 |
# Compiler flag to generate thread-safe objects. |
|
10321 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
10322 |
||
10323 |
# Library versioning type. |
|
10324 |
version_type=$version_type |
|
10325 |
||
10326 |
# Format of library name prefix. |
|
10327 |
libname_spec=$lt_libname_spec |
|
10328 |
||
10329 |
# List of archive names. First name is the real one, the rest are links. |
|
10330 |
# The last name is the one that the linker finds with -lNAME. |
|
10331 |
library_names_spec=$lt_library_names_spec |
|
10332 |
||
10333 |
# The coded name of the library, if different from the real name. |
|
10334 |
soname_spec=$lt_soname_spec |
|
10335 |
||
10336 |
# Commands used to build and install an old-style archive. |
|
10337 |
RANLIB=$lt_RANLIB |
|
10338 |
old_archive_cmds=$lt_old_archive_cmds |
|
10339 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
10340 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
10341 |
||
10342 |
# Create an old-style archive from a shared archive. |
|
10343 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
10344 |
||
10345 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
10346 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
10347 |
||
10348 |
# Commands used to build and install a shared archive. |
|
10349 |
archive_cmds=$lt_archive_cmds |
|
10350 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
|
10351 |
postinstall_cmds=$lt_postinstall_cmds |
|
10352 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
10353 |
||
10354 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
10355 |
module_cmds=$lt_module_cmds |
|
10356 |
module_expsym_cmds=$lt_module_expsym_cmds |
|
10357 |
||
10358 |
# Commands to strip libraries. |
|
10359 |
old_striplib=$lt_old_striplib |
|
10360 |
striplib=$lt_striplib |
|
10361 |
||
10362 |
# Dependencies to place before the objects being linked to create a |
|
10363 |
# shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10364 |
predep_objects=$lt_predep_objects |
1
by Ross Burton
Import upstream version 0.10 |
10365 |
|
10366 |
# Dependencies to place after the objects being linked to create a |
|
10367 |
# shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10368 |
postdep_objects=$lt_postdep_objects |
1
by Ross Burton
Import upstream version 0.10 |
10369 |
|
10370 |
# Dependencies to place before the objects being linked to create a |
|
10371 |
# shared library. |
|
10372 |
predeps=$lt_predeps |
|
10373 |
||
10374 |
# Dependencies to place after the objects being linked to create a |
|
10375 |
# shared library. |
|
10376 |
postdeps=$lt_postdeps |
|
10377 |
||
10378 |
# The library search path used internally by the compiler when linking |
|
10379 |
# a shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10380 |
compiler_lib_search_path=$lt_compiler_lib_search_path |
1
by Ross Burton
Import upstream version 0.10 |
10381 |
|
10382 |
# Method to check whether dependent libraries are shared objects. |
|
10383 |
deplibs_check_method=$lt_deplibs_check_method |
|
10384 |
||
10385 |
# Command to use when deplibs_check_method == file_magic. |
|
10386 |
file_magic_cmd=$lt_file_magic_cmd |
|
10387 |
||
10388 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
10389 |
allow_undefined_flag=$lt_allow_undefined_flag |
|
10390 |
||
10391 |
# Flag that forces no undefined symbols. |
|
10392 |
no_undefined_flag=$lt_no_undefined_flag |
|
10393 |
||
10394 |
# Commands used to finish a libtool library installation in a directory. |
|
10395 |
finish_cmds=$lt_finish_cmds |
|
10396 |
||
10397 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
10398 |
finish_eval=$lt_finish_eval |
|
10399 |
||
10400 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
10401 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
10402 |
||
10403 |
# Transform the output of nm in a proper C declaration |
|
10404 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
10405 |
||
10406 |
# Transform the output of nm in a C name address pair |
|
10407 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
10408 |
||
10409 |
# This is the shared library runtime path variable. |
|
10410 |
runpath_var=$runpath_var |
|
10411 |
||
10412 |
# This is the shared library path variable. |
|
10413 |
shlibpath_var=$shlibpath_var |
|
10414 |
||
10415 |
# Is shlibpath searched before the hard-coded library search path? |
|
10416 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
10417 |
||
10418 |
# How to hardcode a shared library path into an executable. |
|
10419 |
hardcode_action=$hardcode_action |
|
10420 |
||
10421 |
# Whether we should hardcode library paths into libraries. |
|
10422 |
hardcode_into_libs=$hardcode_into_libs |
|
10423 |
||
10424 |
# Flag to hardcode \$libdir into a binary during linking. |
|
10425 |
# This must work even if \$libdir does not exist. |
|
10426 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
10427 |
||
10428 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
10429 |
# a binary during linking. This must work even if \$libdir does |
|
10430 |
# not exist. |
|
10431 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
|
10432 |
||
10433 |
# Whether we need a single -rpath flag with a separated argument. |
|
10434 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
10435 |
||
10436 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
10437 |
# resulting binary. |
|
10438 |
hardcode_direct=$hardcode_direct |
|
10439 |
||
10440 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
10441 |
# resulting binary. |
|
10442 |
hardcode_minus_L=$hardcode_minus_L |
|
10443 |
||
10444 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
10445 |
# the resulting binary. |
|
10446 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
10447 |
||
10448 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
10449 |
# and all subsequent libraries and executables linked against it. |
|
10450 |
hardcode_automatic=$hardcode_automatic |
|
10451 |
||
10452 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
10453 |
# restored at relink time. |
|
10454 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
10455 |
||
10456 |
# Whether libtool must link a program against all its dependency libraries. |
|
10457 |
link_all_deplibs=$link_all_deplibs |
|
10458 |
||
10459 |
# Compile-time system search path for libraries |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10460 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
1
by Ross Burton
Import upstream version 0.10 |
10461 |
|
10462 |
# Run-time system search path for libraries |
|
10463 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
10464 |
||
10465 |
# Fix the shell variable \$srcfile for the compiler. |
|
10466 |
fix_srcfile_path="$fix_srcfile_path" |
|
10467 |
||
10468 |
# Set to yes if exported symbols are required. |
|
10469 |
always_export_symbols=$always_export_symbols |
|
10470 |
||
10471 |
# The commands to list exported symbols. |
|
10472 |
export_symbols_cmds=$lt_export_symbols_cmds |
|
10473 |
||
10474 |
# The commands to extract the exported symbol list from a shared archive. |
|
10475 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
10476 |
||
10477 |
# Symbols that should not be listed in the preloaded symbols. |
|
10478 |
exclude_expsyms=$lt_exclude_expsyms |
|
10479 |
||
10480 |
# Symbols that must always be exported. |
|
10481 |
include_expsyms=$lt_include_expsyms |
|
10482 |
||
10483 |
# ### END LIBTOOL CONFIG |
|
10484 |
||
10485 |
__EOF__ |
|
10486 |
||
10487 |
||
10488 |
case $host_os in |
|
10489 |
aix3*) |
|
10490 |
cat <<\EOF >> "$cfgfile" |
|
10491 |
||
10492 |
# AIX sometimes has problems with the GCC collect2 program. For some |
|
10493 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
|
10494 |
# vanish in a puff of smoke. |
|
10495 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
|
10496 |
COLLECT_NAMES= |
|
10497 |
export COLLECT_NAMES |
|
10498 |
fi |
|
10499 |
EOF |
|
10500 |
;; |
|
10501 |
esac |
|
10502 |
||
10503 |
# We use sed instead of cat because bash on DJGPP gets confused if |
|
10504 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
10505 |
# text mode, it properly converts lines to CR/LF. This bash problem |
|
10506 |
# is reportedly fixed, but why not run on old versions too? |
|
10507 |
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
|
10508 |
||
10509 |
mv -f "$cfgfile" "$ofile" || \ |
|
10510 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
10511 |
chmod +x "$ofile" |
|
10512 |
||
10513 |
else |
|
10514 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
10515 |
# `config.status --recheck' to rerun these tests and create the |
|
10516 |
# libtool script then. |
|
10517 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
10518 |
if test -f "$ltmain_in"; then |
|
10519 |
test -f Makefile && make "$ltmain" |
|
10520 |
fi |
|
10521 |
fi |
|
10522 |
||
10523 |
||
10524 |
ac_ext=c |
|
10525 |
ac_cpp='$CPP $CPPFLAGS' |
|
10526 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
10527 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
10528 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
10529 |
||
10530 |
CC="$lt_save_CC" |
|
10531 |
||
10532 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10533 |
# Check whether --with-tags was given. |
1
by Ross Burton
Import upstream version 0.10 |
10534 |
if test "${with_tags+set}" = set; then |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10535 |
withval=$with_tags; tagnames="$withval" |
10536 |
fi |
|
10537 |
||
1
by Ross Burton
Import upstream version 0.10 |
10538 |
|
10539 |
if test -f "$ltmain" && test -n "$tagnames"; then |
|
10540 |
if test ! -f "${ofile}"; then |
|
10541 |
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
|
10542 |
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
|
10543 |
fi |
|
10544 |
||
10545 |
if test -z "$LTCC"; then |
|
10546 |
eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
|
10547 |
if test -z "$LTCC"; then |
|
10548 |
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
|
10549 |
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
|
10550 |
else |
|
10551 |
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
|
10552 |
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
|
10553 |
fi |
|
10554 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10555 |
if test -z "$LTCFLAGS"; then |
10556 |
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
|
10557 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
10558 |
|
10559 |
# Extract list of available tagged configurations in $ofile. |
|
10560 |
# Note that this assumes the entire list is on one line. |
|
10561 |
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
|
10562 |
||
10563 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
10564 |
for tagname in $tagnames; do |
|
10565 |
IFS="$lt_save_ifs" |
|
10566 |
# Check whether tagname contains only valid characters |
|
10567 |
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
|
10568 |
"") ;; |
|
10569 |
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
|
10570 |
echo "$as_me: error: invalid tag name: $tagname" >&2;} |
|
10571 |
{ (exit 1); exit 1; }; } |
|
10572 |
;; |
|
10573 |
esac |
|
10574 |
||
10575 |
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
|
10576 |
then |
|
10577 |
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
|
10578 |
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
|
10579 |
{ (exit 1); exit 1; }; } |
|
10580 |
fi |
|
10581 |
||
10582 |
# Update the list of available tags. |
|
10583 |
if test -n "$tagname"; then |
|
10584 |
echo appending configuration tag \"$tagname\" to $ofile |
|
10585 |
||
10586 |
case $tagname in |
|
10587 |
CXX) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10588 |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10589 |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
10590 |
(test "X$CXX" != "Xg++"))) ; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10591 |
ac_ext=cpp |
1
by Ross Burton
Import upstream version 0.10 |
10592 |
ac_cpp='$CXXCPP $CPPFLAGS' |
10593 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
10594 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
10595 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
10596 |
||
10597 |
||
10598 |
||
10599 |
||
10600 |
archive_cmds_need_lc_CXX=no |
|
10601 |
allow_undefined_flag_CXX= |
|
10602 |
always_export_symbols_CXX=no |
|
10603 |
archive_expsym_cmds_CXX= |
|
10604 |
export_dynamic_flag_spec_CXX= |
|
10605 |
hardcode_direct_CXX=no |
|
10606 |
hardcode_libdir_flag_spec_CXX= |
|
10607 |
hardcode_libdir_flag_spec_ld_CXX= |
|
10608 |
hardcode_libdir_separator_CXX= |
|
10609 |
hardcode_minus_L_CXX=no |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10610 |
hardcode_shlibpath_var_CXX=unsupported |
1
by Ross Burton
Import upstream version 0.10 |
10611 |
hardcode_automatic_CXX=no |
10612 |
module_cmds_CXX= |
|
10613 |
module_expsym_cmds_CXX= |
|
10614 |
link_all_deplibs_CXX=unknown |
|
10615 |
old_archive_cmds_CXX=$old_archive_cmds |
|
10616 |
no_undefined_flag_CXX= |
|
10617 |
whole_archive_flag_spec_CXX= |
|
10618 |
enable_shared_with_static_runtimes_CXX=no |
|
10619 |
||
10620 |
# Dependencies to place before and after the object being linked: |
|
10621 |
predep_objects_CXX= |
|
10622 |
postdep_objects_CXX= |
|
10623 |
predeps_CXX= |
|
10624 |
postdeps_CXX= |
|
10625 |
compiler_lib_search_path_CXX= |
|
10626 |
||
10627 |
# Source file extension for C++ test sources. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10628 |
ac_ext=cpp |
1
by Ross Burton
Import upstream version 0.10 |
10629 |
|
10630 |
# Object file extension for compiled C++ test sources. |
|
10631 |
objext=o |
|
10632 |
objext_CXX=$objext |
|
10633 |
||
10634 |
# Code to be used in simple compile tests |
|
10635 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
|
10636 |
||
10637 |
# Code to be used in simple link tests |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10638 |
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
1
by Ross Burton
Import upstream version 0.10 |
10639 |
|
10640 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
10641 |
||
10642 |
# If no C compiler was specified, use CC. |
|
10643 |
LTCC=${LTCC-"$CC"} |
|
10644 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10645 |
# If no C compiler flags were specified, use CFLAGS. |
10646 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
10647 |
||
1
by Ross Burton
Import upstream version 0.10 |
10648 |
# Allow CC to be a program name with arguments. |
10649 |
compiler=$CC |
|
10650 |
||
10651 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10652 |
# save warnings/boilerplate of simple test code |
10653 |
ac_outfile=conftest.$ac_objext |
|
10654 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
10655 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
10656 |
_lt_compiler_boilerplate=`cat conftest.err` |
|
10657 |
$rm conftest* |
|
10658 |
||
10659 |
ac_outfile=conftest.$ac_objext |
|
10660 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
10661 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
10662 |
_lt_linker_boilerplate=`cat conftest.err` |
|
10663 |
$rm conftest* |
|
10664 |
||
10665 |
||
1
by Ross Burton
Import upstream version 0.10 |
10666 |
# Allow CC to be a program name with arguments. |
10667 |
lt_save_CC=$CC |
|
10668 |
lt_save_LD=$LD |
|
10669 |
lt_save_GCC=$GCC |
|
10670 |
GCC=$GXX |
|
10671 |
lt_save_with_gnu_ld=$with_gnu_ld |
|
10672 |
lt_save_path_LD=$lt_cv_path_LD |
|
10673 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
|
10674 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
|
10675 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10676 |
$as_unset lt_cv_prog_gnu_ld |
1
by Ross Burton
Import upstream version 0.10 |
10677 |
fi |
10678 |
if test -n "${lt_cv_path_LDCXX+set}"; then |
|
10679 |
lt_cv_path_LD=$lt_cv_path_LDCXX |
|
10680 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10681 |
$as_unset lt_cv_path_LD |
1
by Ross Burton
Import upstream version 0.10 |
10682 |
fi |
10683 |
test -z "${LDCXX+set}" || LD=$LDCXX |
|
10684 |
CC=${CXX-"c++"} |
|
10685 |
compiler=$CC |
|
10686 |
compiler_CXX=$CC |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10687 |
for cc_temp in $compiler""; do |
10688 |
case $cc_temp in |
|
10689 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
10690 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
10691 |
\-*) ;; |
|
10692 |
*) break;; |
|
10693 |
esac |
|
10694 |
done |
|
10695 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
10696 |
||
1
by Ross Burton
Import upstream version 0.10 |
10697 |
|
10698 |
# We don't want -fno-exception wen compiling C++ code, so set the |
|
10699 |
# no_builtin_flag separately |
|
10700 |
if test "$GXX" = yes; then |
|
10701 |
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
|
10702 |
else |
|
10703 |
lt_prog_compiler_no_builtin_flag_CXX= |
|
10704 |
fi |
|
10705 |
||
10706 |
if test "$GXX" = yes; then |
|
10707 |
# Set up default GNU C++ configuration |
|
10708 |
||
10709 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10710 |
# Check whether --with-gnu-ld was given. |
1
by Ross Burton
Import upstream version 0.10 |
10711 |
if test "${with_gnu_ld+set}" = set; then |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10712 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
1
by Ross Burton
Import upstream version 0.10 |
10713 |
else |
10714 |
with_gnu_ld=no |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10715 |
fi |
10716 |
||
1
by Ross Burton
Import upstream version 0.10 |
10717 |
ac_prog=ld |
10718 |
if test "$GCC" = yes; then |
|
10719 |
# Check if gcc -print-prog-name=ld gives a path. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10720 |
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10721 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10722 |
case $host in |
10723 |
*-*-mingw*) |
|
10724 |
# gcc leaves a trailing carriage return which upsets mingw |
|
10725 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
10726 |
*) |
|
10727 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
10728 |
esac |
|
10729 |
case $ac_prog in |
|
10730 |
# Accept absolute paths. |
|
10731 |
[\\/]* | ?:[\\/]*) |
|
10732 |
re_direlt='/[^/][^/]*/\.\./' |
|
10733 |
# Canonicalize the pathname of ld |
|
10734 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
10735 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
10736 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
10737 |
done |
|
10738 |
test -z "$LD" && LD="$ac_prog" |
|
10739 |
;; |
|
10740 |
"") |
|
10741 |
# If it fails, then pretend we aren't using GCC. |
|
10742 |
ac_prog=ld |
|
10743 |
;; |
|
10744 |
*) |
|
10745 |
# If it is relative, then search for the first ld in PATH. |
|
10746 |
with_gnu_ld=unknown |
|
10747 |
;; |
|
10748 |
esac |
|
10749 |
elif test "$with_gnu_ld" = yes; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10750 |
{ echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10751 |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10752 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10753 |
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10754 |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10755 |
fi |
10756 |
if test "${lt_cv_path_LD+set}" = set; then |
|
10757 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10758 |
else |
|
10759 |
if test -z "$LD"; then |
|
10760 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
10761 |
for ac_dir in $PATH; do |
|
10762 |
IFS="$lt_save_ifs" |
|
10763 |
test -z "$ac_dir" && ac_dir=. |
|
10764 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
10765 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
|
10766 |
# Check to see if the program is GNU ld. I'd rather use --version, |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10767 |
# but apparently some variants of GNU ld only accept -v. |
1
by Ross Burton
Import upstream version 0.10 |
10768 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
10769 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
10770 |
*GNU* | *'with BFD'*) |
|
10771 |
test "$with_gnu_ld" != no && break |
|
10772 |
;; |
|
10773 |
*) |
|
10774 |
test "$with_gnu_ld" != yes && break |
|
10775 |
;; |
|
10776 |
esac |
|
10777 |
fi |
|
10778 |
done |
|
10779 |
IFS="$lt_save_ifs" |
|
10780 |
else |
|
10781 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
10782 |
fi |
|
10783 |
fi |
|
10784 |
||
10785 |
LD="$lt_cv_path_LD" |
|
10786 |
if test -n "$LD"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10787 |
{ echo "$as_me:$LINENO: result: $LD" >&5 |
10788 |
echo "${ECHO_T}$LD" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10789 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10790 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10791 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10792 |
fi |
10793 |
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
10794 |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
10795 |
{ (exit 1); exit 1; }; } |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10796 |
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10797 |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10798 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10799 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10800 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10801 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
1
by Ross Burton
Import upstream version 0.10 |
10802 |
case `$LD -v 2>&1 </dev/null` in |
10803 |
*GNU* | *'with BFD'*) |
|
10804 |
lt_cv_prog_gnu_ld=yes |
|
10805 |
;; |
|
10806 |
*) |
|
10807 |
lt_cv_prog_gnu_ld=no |
|
10808 |
;; |
|
10809 |
esac |
|
10810 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10811 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10812 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10813 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
10814 |
||
10815 |
||
10816 |
||
10817 |
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
|
10818 |
# archiving commands below assume that GNU ld is being used. |
|
10819 |
if test "$with_gnu_ld" = yes; then |
|
10820 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
10821 |
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' |
|
10822 |
||
10823 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
10824 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
10825 |
||
10826 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
10827 |
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
|
10828 |
# investigate it a little bit more. (MM) |
|
10829 |
wlarc='${wl}' |
|
10830 |
||
10831 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
10832 |
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
|
10833 |
grep 'no-whole-archive' > /dev/null; then |
|
10834 |
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
10835 |
else |
|
10836 |
whole_archive_flag_spec_CXX= |
|
10837 |
fi |
|
10838 |
else |
|
10839 |
with_gnu_ld=no |
|
10840 |
wlarc= |
|
10841 |
||
10842 |
# A generic and very simple default shared library creation |
|
10843 |
# command for GNU C++ for the case where it uses the native |
|
10844 |
# linker, instead of GNU ld. If possible, this setting should |
|
10845 |
# overridden to take advantage of the native linker features on |
|
10846 |
# the platform it is being used on. |
|
10847 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
10848 |
fi |
|
10849 |
||
10850 |
# Commands to make compiler produce verbose output that lists |
|
10851 |
# what "hidden" libraries, object files and flags are used when |
|
10852 |
# linking a shared library. |
|
10853 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
10854 |
||
10855 |
else |
|
10856 |
GXX=no |
|
10857 |
with_gnu_ld=no |
|
10858 |
wlarc= |
|
10859 |
fi |
|
10860 |
||
10861 |
# PORTME: fill in a description of your system's C++ link characteristics |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10862 |
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10863 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
10864 |
ld_shlibs_CXX=yes |
10865 |
case $host_os in |
|
10866 |
aix3*) |
|
10867 |
# FIXME: insert proper C++ library support |
|
10868 |
ld_shlibs_CXX=no |
|
10869 |
;; |
|
10870 |
aix4* | aix5*) |
|
10871 |
if test "$host_cpu" = ia64; then |
|
10872 |
# On IA64, the linker does run time linking by default, so we don't |
|
10873 |
# have to do anything special. |
|
10874 |
aix_use_runtimelinking=no |
|
10875 |
exp_sym_flag='-Bexport' |
|
10876 |
no_entry_flag="" |
|
10877 |
else |
|
10878 |
aix_use_runtimelinking=no |
|
10879 |
||
10880 |
# Test if we are trying to use run time linking or normal |
|
10881 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
10882 |
# need to do runtime linking. |
|
10883 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
10884 |
for ld_flag in $LDFLAGS; do |
|
10885 |
case $ld_flag in |
|
10886 |
*-brtl*) |
|
10887 |
aix_use_runtimelinking=yes |
|
10888 |
break |
|
10889 |
;; |
|
10890 |
esac |
|
10891 |
done |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10892 |
;; |
1
by Ross Burton
Import upstream version 0.10 |
10893 |
esac |
10894 |
||
10895 |
exp_sym_flag='-bexport' |
|
10896 |
no_entry_flag='-bnoentry' |
|
10897 |
fi |
|
10898 |
||
10899 |
# When large executables or shared objects are built, AIX ld can |
|
10900 |
# have problems creating the table of contents. If linking a library |
|
10901 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
10902 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
10903 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
10904 |
||
10905 |
archive_cmds_CXX='' |
|
10906 |
hardcode_direct_CXX=yes |
|
10907 |
hardcode_libdir_separator_CXX=':' |
|
10908 |
link_all_deplibs_CXX=yes |
|
10909 |
||
10910 |
if test "$GXX" = yes; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10911 |
case $host_os in aix4.[012]|aix4.[012].*) |
1
by Ross Burton
Import upstream version 0.10 |
10912 |
# We only want to do this on AIX 4.2 and lower, the check |
10913 |
# below for broken collect2 doesn't work under 4.3+ |
|
10914 |
collect2name=`${CC} -print-prog-name=collect2` |
|
10915 |
if test -f "$collect2name" && \ |
|
10916 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
10917 |
then |
|
10918 |
# We have reworked collect2 |
|
10919 |
hardcode_direct_CXX=yes |
|
10920 |
else |
|
10921 |
# We have old collect2 |
|
10922 |
hardcode_direct_CXX=unsupported |
|
10923 |
# It fails to find uninstalled libraries when the uninstalled |
|
10924 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
10925 |
# to unsupported forces relinking |
|
10926 |
hardcode_minus_L_CXX=yes |
|
10927 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
10928 |
hardcode_libdir_separator_CXX= |
|
10929 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10930 |
;; |
1
by Ross Burton
Import upstream version 0.10 |
10931 |
esac |
10932 |
shared_flag='-shared' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
10933 |
if test "$aix_use_runtimelinking" = yes; then |
10934 |
shared_flag="$shared_flag "'${wl}-G' |
|
10935 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
10936 |
else |
10937 |
# not using gcc |
|
10938 |
if test "$host_cpu" = ia64; then |
|
10939 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
10940 |
# chokes on -Wl,-G. The following line is correct: |
|
10941 |
shared_flag='-G' |
|
10942 |
else |
|
10943 |
if test "$aix_use_runtimelinking" = yes; then |
|
10944 |
shared_flag='${wl}-G' |
|
10945 |
else |
|
10946 |
shared_flag='${wl}-bM:SRE' |
|
10947 |
fi |
|
10948 |
fi |
|
10949 |
fi |
|
10950 |
||
10951 |
# It seems that -bexpall does not export symbols beginning with |
|
10952 |
# underscore (_), so it is better to generate a list of symbols to export. |
|
10953 |
always_export_symbols_CXX=yes |
|
10954 |
if test "$aix_use_runtimelinking" = yes; then |
|
10955 |
# Warning - without using the other runtime loading flags (-brtl), |
|
10956 |
# -berok will link without error, but may produce a broken library. |
|
10957 |
allow_undefined_flag_CXX='-berok' |
|
10958 |
# Determine the default libpath from the value encoded in an empty executable. |
|
10959 |
cat >conftest.$ac_ext <<_ACEOF |
|
10960 |
/* confdefs.h. */ |
|
10961 |
_ACEOF |
|
10962 |
cat confdefs.h >>conftest.$ac_ext |
|
10963 |
cat >>conftest.$ac_ext <<_ACEOF |
|
10964 |
/* end confdefs.h. */ |
|
10965 |
||
10966 |
int |
|
10967 |
main () |
|
10968 |
{ |
|
10969 |
||
10970 |
; |
|
10971 |
return 0; |
|
10972 |
} |
|
10973 |
_ACEOF |
|
10974 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
10975 |
if { (ac_try="$ac_link" |
10976 |
case "(($ac_try" in |
|
10977 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
10978 |
*) ac_try_echo=$ac_try;; |
|
10979 |
esac |
|
10980 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
10981 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
10982 |
ac_status=$? |
10983 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
10984 |
rm -f conftest.er1 |
|
10985 |
cat conftest.err >&5 |
|
10986 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
10987 |
(exit $ac_status); } && { |
10988 |
test -z "$ac_cxx_werror_flag" || |
|
10989 |
test ! -s conftest.err |
|
10990 |
} && test -s conftest$ac_exeext && |
|
10991 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
10992 |
|
10993 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
10994 |
}'` |
|
10995 |
# Check for a 64-bit object if we didn't find anything. |
|
10996 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
10997 |
}'`; fi |
|
10998 |
else |
|
10999 |
echo "$as_me: failed program was:" >&5 |
|
11000 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
11001 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
11002 |
|
1
by Ross Burton
Import upstream version 0.10 |
11003 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
11004 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
11005 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
11006 |
conftest$ac_exeext conftest.$ac_ext |
11007 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
11008 |
||
11009 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
11010 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11011 |
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" |
1
by Ross Burton
Import upstream version 0.10 |
11012 |
else |
11013 |
if test "$host_cpu" = ia64; then |
|
11014 |
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
|
11015 |
allow_undefined_flag_CXX="-z nodefs" |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11016 |
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" |
1
by Ross Burton
Import upstream version 0.10 |
11017 |
else |
11018 |
# Determine the default libpath from the value encoded in an empty executable. |
|
11019 |
cat >conftest.$ac_ext <<_ACEOF |
|
11020 |
/* confdefs.h. */ |
|
11021 |
_ACEOF |
|
11022 |
cat confdefs.h >>conftest.$ac_ext |
|
11023 |
cat >>conftest.$ac_ext <<_ACEOF |
|
11024 |
/* end confdefs.h. */ |
|
11025 |
||
11026 |
int |
|
11027 |
main () |
|
11028 |
{ |
|
11029 |
||
11030 |
; |
|
11031 |
return 0; |
|
11032 |
} |
|
11033 |
_ACEOF |
|
11034 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
11035 |
if { (ac_try="$ac_link" |
11036 |
case "(($ac_try" in |
|
11037 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
11038 |
*) ac_try_echo=$ac_try;; |
|
11039 |
esac |
|
11040 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
11041 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
11042 |
ac_status=$? |
11043 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
11044 |
rm -f conftest.er1 |
|
11045 |
cat conftest.err >&5 |
|
11046 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
11047 |
(exit $ac_status); } && { |
11048 |
test -z "$ac_cxx_werror_flag" || |
|
11049 |
test ! -s conftest.err |
|
11050 |
} && test -s conftest$ac_exeext && |
|
11051 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
11052 |
|
11053 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
11054 |
}'` |
|
11055 |
# Check for a 64-bit object if we didn't find anything. |
|
11056 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
11057 |
}'`; fi |
|
11058 |
else |
|
11059 |
echo "$as_me: failed program was:" >&5 |
|
11060 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
11061 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
11062 |
|
1
by Ross Burton
Import upstream version 0.10 |
11063 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
11064 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
11065 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
11066 |
conftest$ac_exeext conftest.$ac_ext |
11067 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
11068 |
||
11069 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
11070 |
# Warning - without using the other run time loading flags, |
|
11071 |
# -berok will link without error, but may produce a broken library. |
|
11072 |
no_undefined_flag_CXX=' ${wl}-bernotok' |
|
11073 |
allow_undefined_flag_CXX=' ${wl}-berok' |
|
11074 |
# Exported symbols can be pulled into shared objects from archives |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11075 |
whole_archive_flag_spec_CXX='$convenience' |
1
by Ross Burton
Import upstream version 0.10 |
11076 |
archive_cmds_need_lc_CXX=yes |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11077 |
# This is similar to how AIX traditionally builds its shared libraries. |
11078 |
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' |
|
1
by Ross Burton
Import upstream version 0.10 |
11079 |
fi |
11080 |
fi |
|
11081 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11082 |
|
11083 |
beos*) |
|
11084 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
11085 |
allow_undefined_flag_CXX=unsupported |
|
11086 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
11087 |
# support --undefined. This deserves some investigation. FIXME |
|
11088 |
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
11089 |
else |
|
11090 |
ld_shlibs_CXX=no |
|
11091 |
fi |
|
11092 |
;; |
|
11093 |
||
1
by Ross Burton
Import upstream version 0.10 |
11094 |
chorus*) |
11095 |
case $cc_basename in |
|
11096 |
*) |
|
11097 |
# FIXME: insert proper C++ library support |
|
11098 |
ld_shlibs_CXX=no |
|
11099 |
;; |
|
11100 |
esac |
|
11101 |
;; |
|
11102 |
||
11103 |
cygwin* | mingw* | pw32*) |
|
11104 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
|
11105 |
# as there is no search path for DLLs. |
|
11106 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
11107 |
allow_undefined_flag_CXX=unsupported |
|
11108 |
always_export_symbols_CXX=no |
|
11109 |
enable_shared_with_static_runtimes_CXX=yes |
|
11110 |
||
11111 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11112 |
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' |
1
by Ross Burton
Import upstream version 0.10 |
11113 |
# If the export-symbols file already is a .def file (1st line |
11114 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
11115 |
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
11116 |
cp $export_symbols $output_objdir/$soname.def; |
|
11117 |
else |
|
11118 |
echo EXPORTS > $output_objdir/$soname.def; |
|
11119 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
11120 |
fi~ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11121 |
$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' |
1
by Ross Burton
Import upstream version 0.10 |
11122 |
else |
11123 |
ld_shlibs_CXX=no |
|
11124 |
fi |
|
11125 |
;; |
|
11126 |
darwin* | rhapsody*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11127 |
case $host_os in |
1
by Ross Burton
Import upstream version 0.10 |
11128 |
rhapsody* | darwin1.[012]) |
11129 |
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
|
11130 |
;; |
|
11131 |
*) # Darwin 1.3 on |
|
11132 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
11133 |
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
11134 |
else |
|
11135 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
11136 |
10.[012]) |
|
11137 |
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
11138 |
;; |
|
11139 |
10.*) |
|
11140 |
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
|
11141 |
;; |
|
11142 |
esac |
|
11143 |
fi |
|
11144 |
;; |
|
11145 |
esac |
|
11146 |
archive_cmds_need_lc_CXX=no |
|
11147 |
hardcode_direct_CXX=no |
|
11148 |
hardcode_automatic_CXX=yes |
|
11149 |
hardcode_shlibpath_var_CXX=unsupported |
|
11150 |
whole_archive_flag_spec_CXX='' |
|
11151 |
link_all_deplibs_CXX=yes |
|
11152 |
||
11153 |
if test "$GXX" = yes ; then |
|
11154 |
lt_int_apple_cc_single_mod=no |
|
11155 |
output_verbose_link_cmd='echo' |
|
11156 |
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
|
11157 |
lt_int_apple_cc_single_mod=yes |
|
11158 |
fi |
|
11159 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
11160 |
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
11161 |
else |
|
11162 |
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' |
|
11163 |
fi |
|
11164 |
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11165 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
1
by Ross Burton
Import upstream version 0.10 |
11166 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11167 |
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}' |
|
11168 |
else |
|
11169 |
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}' |
|
11170 |
fi |
|
11171 |
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}' |
|
11172 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11173 |
case $cc_basename in |
1
by Ross Burton
Import upstream version 0.10 |
11174 |
xlc*) |
11175 |
output_verbose_link_cmd='echo' |
|
11176 |
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
11177 |
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11178 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
1
by Ross Burton
Import upstream version 0.10 |
11179 |
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11180 |
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}' |
|
11181 |
;; |
|
11182 |
*) |
|
11183 |
ld_shlibs_CXX=no |
|
11184 |
;; |
|
11185 |
esac |
|
11186 |
fi |
|
11187 |
;; |
|
11188 |
||
11189 |
dgux*) |
|
11190 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11191 |
ec++*) |
1
by Ross Burton
Import upstream version 0.10 |
11192 |
# FIXME: insert proper C++ library support |
11193 |
ld_shlibs_CXX=no |
|
11194 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11195 |
ghcx*) |
1
by Ross Burton
Import upstream version 0.10 |
11196 |
# Green Hills C++ Compiler |
11197 |
# FIXME: insert proper C++ library support |
|
11198 |
ld_shlibs_CXX=no |
|
11199 |
;; |
|
11200 |
*) |
|
11201 |
# FIXME: insert proper C++ library support |
|
11202 |
ld_shlibs_CXX=no |
|
11203 |
;; |
|
11204 |
esac |
|
11205 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11206 |
freebsd[12]*) |
1
by Ross Burton
Import upstream version 0.10 |
11207 |
# C++ shared libraries reported to be fairly broken before switch to ELF |
11208 |
ld_shlibs_CXX=no |
|
11209 |
;; |
|
11210 |
freebsd-elf*) |
|
11211 |
archive_cmds_need_lc_CXX=no |
|
11212 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11213 |
freebsd* | kfreebsd*-gnu | dragonfly*) |
1
by Ross Burton
Import upstream version 0.10 |
11214 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11215 |
# conventions |
|
11216 |
ld_shlibs_CXX=yes |
|
11217 |
;; |
|
11218 |
gnu*) |
|
11219 |
;; |
|
11220 |
hpux9*) |
|
11221 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
11222 |
hardcode_libdir_separator_CXX=: |
|
11223 |
export_dynamic_flag_spec_CXX='${wl}-E' |
|
11224 |
hardcode_direct_CXX=yes |
|
11225 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
11226 |
# but as the default |
|
11227 |
# location of the library. |
|
11228 |
||
11229 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11230 |
CC*) |
1
by Ross Burton
Import upstream version 0.10 |
11231 |
# FIXME: insert proper C++ library support |
11232 |
ld_shlibs_CXX=no |
|
11233 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11234 |
aCC*) |
1
by Ross Burton
Import upstream version 0.10 |
11235 |
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' |
11236 |
# Commands to make compiler produce verbose output that lists |
|
11237 |
# what "hidden" libraries, object files and flags are used when |
|
11238 |
# linking a shared library. |
|
11239 |
# |
|
11240 |
# There doesn't appear to be a way to prevent this compiler from |
|
11241 |
# explicitly linking system object files so we need to strip them |
|
11242 |
# from the output so that they don't get included in the library |
|
11243 |
# dependencies. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11244 |
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' |
1
by Ross Burton
Import upstream version 0.10 |
11245 |
;; |
11246 |
*) |
|
11247 |
if test "$GXX" = yes; then |
|
11248 |
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' |
|
11249 |
else |
|
11250 |
# FIXME: insert proper C++ library support |
|
11251 |
ld_shlibs_CXX=no |
|
11252 |
fi |
|
11253 |
;; |
|
11254 |
esac |
|
11255 |
;; |
|
11256 |
hpux10*|hpux11*) |
|
11257 |
if test $with_gnu_ld = no; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11258 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11259 |
hardcode_libdir_separator_CXX=: |
|
11260 |
||
11261 |
case $host_cpu in |
|
11262 |
hppa*64*|ia64*) |
|
1
by Ross Burton
Import upstream version 0.10 |
11263 |
hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
11264 |
;; |
|
11265 |
*) |
|
11266 |
export_dynamic_flag_spec_CXX='${wl}-E' |
|
11267 |
;; |
|
11268 |
esac |
|
11269 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11270 |
case $host_cpu in |
11271 |
hppa*64*|ia64*) |
|
11272 |
hardcode_direct_CXX=no |
|
11273 |
hardcode_shlibpath_var_CXX=no |
|
1
by Ross Burton
Import upstream version 0.10 |
11274 |
;; |
11275 |
*) |
|
11276 |
hardcode_direct_CXX=yes |
|
11277 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
11278 |
# but as the default |
|
11279 |
# location of the library. |
|
11280 |
;; |
|
11281 |
esac |
|
11282 |
||
11283 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11284 |
CC*) |
1
by Ross Burton
Import upstream version 0.10 |
11285 |
# FIXME: insert proper C++ library support |
11286 |
ld_shlibs_CXX=no |
|
11287 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11288 |
aCC*) |
11289 |
case $host_cpu in |
|
11290 |
hppa*64*) |
|
11291 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
11292 |
;; |
|
11293 |
ia64*) |
|
11294 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
1
by Ross Burton
Import upstream version 0.10 |
11295 |
;; |
11296 |
*) |
|
11297 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
11298 |
;; |
|
11299 |
esac |
|
11300 |
# Commands to make compiler produce verbose output that lists |
|
11301 |
# what "hidden" libraries, object files and flags are used when |
|
11302 |
# linking a shared library. |
|
11303 |
# |
|
11304 |
# There doesn't appear to be a way to prevent this compiler from |
|
11305 |
# explicitly linking system object files so we need to strip them |
|
11306 |
# from the output so that they don't get included in the library |
|
11307 |
# dependencies. |
|
11308 |
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' |
|
11309 |
;; |
|
11310 |
*) |
|
11311 |
if test "$GXX" = yes; then |
|
11312 |
if test $with_gnu_ld = no; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11313 |
case $host_cpu in |
11314 |
hppa*64*) |
|
11315 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
11316 |
;; |
|
11317 |
ia64*) |
|
11318 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
1
by Ross Burton
Import upstream version 0.10 |
11319 |
;; |
11320 |
*) |
|
11321 |
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' |
|
11322 |
;; |
|
11323 |
esac |
|
11324 |
fi |
|
11325 |
else |
|
11326 |
# FIXME: insert proper C++ library support |
|
11327 |
ld_shlibs_CXX=no |
|
11328 |
fi |
|
11329 |
;; |
|
11330 |
esac |
|
11331 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11332 |
interix3*) |
11333 |
hardcode_direct_CXX=no |
|
11334 |
hardcode_shlibpath_var_CXX=no |
|
11335 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
11336 |
export_dynamic_flag_spec_CXX='${wl}-E' |
|
11337 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
11338 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
|
11339 |
# default) and relocated if they conflict, which is a slow very memory |
|
11340 |
# consuming and fragmenting process. To avoid this, we pick a random, |
|
11341 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
11342 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
11343 |
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' |
|
11344 |
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' |
|
11345 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
11346 |
irix5* | irix6*) |
11347 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11348 |
CC*) |
1
by Ross Burton
Import upstream version 0.10 |
11349 |
# SGI C++ |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11350 |
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' |
1
by Ross Burton
Import upstream version 0.10 |
11351 |
|
11352 |
# Archives containing C++ object files must be created using |
|
11353 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
|
11354 |
# necessary to make sure instantiated templates are included |
|
11355 |
# in the archive. |
|
11356 |
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
|
11357 |
;; |
|
11358 |
*) |
|
11359 |
if test "$GXX" = yes; then |
|
11360 |
if test "$with_gnu_ld" = no; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11361 |
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' |
1
by Ross Burton
Import upstream version 0.10 |
11362 |
else |
11363 |
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' |
|
11364 |
fi |
|
11365 |
fi |
|
11366 |
link_all_deplibs_CXX=yes |
|
11367 |
;; |
|
11368 |
esac |
|
11369 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
11370 |
hardcode_libdir_separator_CXX=: |
|
11371 |
;; |
|
11372 |
linux*) |
|
11373 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11374 |
KCC*) |
1
by Ross Burton
Import upstream version 0.10 |
11375 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
11376 |
||
11377 |
# KCC will only create a shared library if the output file |
|
11378 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
11379 |
# to its proper name (with version) after linking. |
|
11380 |
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' |
|
11381 |
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' |
|
11382 |
# Commands to make compiler produce verbose output that lists |
|
11383 |
# what "hidden" libraries, object files and flags are used when |
|
11384 |
# linking a shared library. |
|
11385 |
# |
|
11386 |
# There doesn't appear to be a way to prevent this compiler from |
|
11387 |
# explicitly linking system object files so we need to strip them |
|
11388 |
# from the output so that they don't get included in the library |
|
11389 |
# dependencies. |
|
11390 |
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' |
|
11391 |
||
11392 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
|
11393 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
11394 |
||
11395 |
# Archives containing C++ object files must be created using |
|
11396 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
11397 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
11398 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11399 |
icpc*) |
1
by Ross Burton
Import upstream version 0.10 |
11400 |
# Intel C++ |
11401 |
with_gnu_ld=yes |
|
11402 |
# version 8.0 and above of icpc choke on multiply defined symbols |
|
11403 |
# if we add $predep_objects and $postdep_objects, however 7.1 and |
|
11404 |
# earlier do not add the objects themselves. |
|
11405 |
case `$CC -V 2>&1` in |
|
11406 |
*"Version 7."*) |
|
11407 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
11408 |
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' |
|
11409 |
;; |
|
11410 |
*) # Version 8.0 or newer |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11411 |
tmp_idyn= |
11412 |
case $host_cpu in |
|
11413 |
ia64*) tmp_idyn=' -i_dynamic';; |
|
11414 |
esac |
|
11415 |
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
11416 |
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' |
|
1
by Ross Burton
Import upstream version 0.10 |
11417 |
;; |
11418 |
esac |
|
11419 |
archive_cmds_need_lc_CXX=no |
|
11420 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
11421 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
11422 |
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
11423 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11424 |
pgCC*) |
11425 |
# Portland Group C++ compiler |
|
11426 |
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
|
11427 |
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' |
|
11428 |
||
11429 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
11430 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
11431 |
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' |
|
11432 |
;; |
|
11433 |
cxx*) |
|
1
by Ross Burton
Import upstream version 0.10 |
11434 |
# Compaq C++ |
11435 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
11436 |
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' |
|
11437 |
||
11438 |
runpath_var=LD_RUN_PATH |
|
11439 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
11440 |
hardcode_libdir_separator_CXX=: |
|
11441 |
||
11442 |
# Commands to make compiler produce verbose output that lists |
|
11443 |
# what "hidden" libraries, object files and flags are used when |
|
11444 |
# linking a shared library. |
|
11445 |
# |
|
11446 |
# There doesn't appear to be a way to prevent this compiler from |
|
11447 |
# explicitly linking system object files so we need to strip them |
|
11448 |
# from the output so that they don't get included in the library |
|
11449 |
# dependencies. |
|
11450 |
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' |
|
11451 |
;; |
|
11452 |
esac |
|
11453 |
;; |
|
11454 |
lynxos*) |
|
11455 |
# FIXME: insert proper C++ library support |
|
11456 |
ld_shlibs_CXX=no |
|
11457 |
;; |
|
11458 |
m88k*) |
|
11459 |
# FIXME: insert proper C++ library support |
|
11460 |
ld_shlibs_CXX=no |
|
11461 |
;; |
|
11462 |
mvs*) |
|
11463 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11464 |
cxx*) |
1
by Ross Burton
Import upstream version 0.10 |
11465 |
# FIXME: insert proper C++ library support |
11466 |
ld_shlibs_CXX=no |
|
11467 |
;; |
|
11468 |
*) |
|
11469 |
# FIXME: insert proper C++ library support |
|
11470 |
ld_shlibs_CXX=no |
|
11471 |
;; |
|
11472 |
esac |
|
11473 |
;; |
|
11474 |
netbsd*) |
|
11475 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
11476 |
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
|
11477 |
wlarc= |
|
11478 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
11479 |
hardcode_direct_CXX=yes |
|
11480 |
hardcode_shlibpath_var_CXX=no |
|
11481 |
fi |
|
11482 |
# Workaround some broken pre-1.5 toolchains |
|
11483 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
|
11484 |
;; |
|
11485 |
openbsd2*) |
|
11486 |
# C++ shared libraries are fairly broken |
|
11487 |
ld_shlibs_CXX=no |
|
11488 |
;; |
|
11489 |
openbsd*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11490 |
hardcode_direct_CXX=yes |
11491 |
hardcode_shlibpath_var_CXX=no |
|
1
by Ross Burton
Import upstream version 0.10 |
11492 |
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11493 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
11494 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
11495 |
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
|
11496 |
export_dynamic_flag_spec_CXX='${wl}-E' |
|
11497 |
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
11498 |
fi |
|
11499 |
output_verbose_link_cmd='echo' |
|
11500 |
;; |
|
11501 |
osf3*) |
|
11502 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11503 |
KCC*) |
1
by Ross Burton
Import upstream version 0.10 |
11504 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
11505 |
||
11506 |
# KCC will only create a shared library if the output file |
|
11507 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
11508 |
# to its proper name (with version) after linking. |
|
11509 |
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' |
|
11510 |
||
11511 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
11512 |
hardcode_libdir_separator_CXX=: |
|
11513 |
||
11514 |
# Archives containing C++ object files must be created using |
|
11515 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
11516 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
11517 |
||
11518 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11519 |
RCC*) |
1
by Ross Burton
Import upstream version 0.10 |
11520 |
# Rational C++ 2.4.1 |
11521 |
# FIXME: insert proper C++ library support |
|
11522 |
ld_shlibs_CXX=no |
|
11523 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11524 |
cxx*) |
1
by Ross Burton
Import upstream version 0.10 |
11525 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11526 |
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' |
1
by Ross Burton
Import upstream version 0.10 |
11527 |
|
11528 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
11529 |
hardcode_libdir_separator_CXX=: |
|
11530 |
||
11531 |
# Commands to make compiler produce verbose output that lists |
|
11532 |
# what "hidden" libraries, object files and flags are used when |
|
11533 |
# linking a shared library. |
|
11534 |
# |
|
11535 |
# There doesn't appear to be a way to prevent this compiler from |
|
11536 |
# explicitly linking system object files so we need to strip them |
|
11537 |
# from the output so that they don't get included in the library |
|
11538 |
# dependencies. |
|
11539 |
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' |
|
11540 |
;; |
|
11541 |
*) |
|
11542 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
11543 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11544 |
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' |
1
by Ross Burton
Import upstream version 0.10 |
11545 |
|
11546 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
11547 |
hardcode_libdir_separator_CXX=: |
|
11548 |
||
11549 |
# Commands to make compiler produce verbose output that lists |
|
11550 |
# what "hidden" libraries, object files and flags are used when |
|
11551 |
# linking a shared library. |
|
11552 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
11553 |
||
11554 |
else |
|
11555 |
# FIXME: insert proper C++ library support |
|
11556 |
ld_shlibs_CXX=no |
|
11557 |
fi |
|
11558 |
;; |
|
11559 |
esac |
|
11560 |
;; |
|
11561 |
osf4* | osf5*) |
|
11562 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11563 |
KCC*) |
1
by Ross Burton
Import upstream version 0.10 |
11564 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
11565 |
||
11566 |
# KCC will only create a shared library if the output file |
|
11567 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
11568 |
# to its proper name (with version) after linking. |
|
11569 |
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' |
|
11570 |
||
11571 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
11572 |
hardcode_libdir_separator_CXX=: |
|
11573 |
||
11574 |
# Archives containing C++ object files must be created using |
|
11575 |
# the KAI C++ compiler. |
|
11576 |
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
|
11577 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11578 |
RCC*) |
1
by Ross Burton
Import upstream version 0.10 |
11579 |
# Rational C++ 2.4.1 |
11580 |
# FIXME: insert proper C++ library support |
|
11581 |
ld_shlibs_CXX=no |
|
11582 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11583 |
cxx*) |
1
by Ross Burton
Import upstream version 0.10 |
11584 |
allow_undefined_flag_CXX=' -expect_unresolved \*' |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11585 |
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' |
1
by Ross Burton
Import upstream version 0.10 |
11586 |
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11587 |
echo "-hidden">> $lib.exp~ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11588 |
$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~ |
1
by Ross Burton
Import upstream version 0.10 |
11589 |
$rm $lib.exp' |
11590 |
||
11591 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
11592 |
hardcode_libdir_separator_CXX=: |
|
11593 |
||
11594 |
# Commands to make compiler produce verbose output that lists |
|
11595 |
# what "hidden" libraries, object files and flags are used when |
|
11596 |
# linking a shared library. |
|
11597 |
# |
|
11598 |
# There doesn't appear to be a way to prevent this compiler from |
|
11599 |
# explicitly linking system object files so we need to strip them |
|
11600 |
# from the output so that they don't get included in the library |
|
11601 |
# dependencies. |
|
11602 |
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' |
|
11603 |
;; |
|
11604 |
*) |
|
11605 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
11606 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11607 |
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' |
1
by Ross Burton
Import upstream version 0.10 |
11608 |
|
11609 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
11610 |
hardcode_libdir_separator_CXX=: |
|
11611 |
||
11612 |
# Commands to make compiler produce verbose output that lists |
|
11613 |
# what "hidden" libraries, object files and flags are used when |
|
11614 |
# linking a shared library. |
|
11615 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
11616 |
||
11617 |
else |
|
11618 |
# FIXME: insert proper C++ library support |
|
11619 |
ld_shlibs_CXX=no |
|
11620 |
fi |
|
11621 |
;; |
|
11622 |
esac |
|
11623 |
;; |
|
11624 |
psos*) |
|
11625 |
# FIXME: insert proper C++ library support |
|
11626 |
ld_shlibs_CXX=no |
|
11627 |
;; |
|
11628 |
sunos4*) |
|
11629 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11630 |
CC*) |
1
by Ross Burton
Import upstream version 0.10 |
11631 |
# Sun C++ 4.x |
11632 |
# FIXME: insert proper C++ library support |
|
11633 |
ld_shlibs_CXX=no |
|
11634 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11635 |
lcc*) |
1
by Ross Burton
Import upstream version 0.10 |
11636 |
# Lucid |
11637 |
# FIXME: insert proper C++ library support |
|
11638 |
ld_shlibs_CXX=no |
|
11639 |
;; |
|
11640 |
*) |
|
11641 |
# FIXME: insert proper C++ library support |
|
11642 |
ld_shlibs_CXX=no |
|
11643 |
;; |
|
11644 |
esac |
|
11645 |
;; |
|
11646 |
solaris*) |
|
11647 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11648 |
CC*) |
1
by Ross Burton
Import upstream version 0.10 |
11649 |
# Sun C++ 4.2, 5.x and Centerline C++ |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11650 |
archive_cmds_need_lc_CXX=yes |
1
by Ross Burton
Import upstream version 0.10 |
11651 |
no_undefined_flag_CXX=' -zdefs' |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11652 |
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
1
by Ross Burton
Import upstream version 0.10 |
11653 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11654 |
$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' |
1
by Ross Burton
Import upstream version 0.10 |
11655 |
|
11656 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
11657 |
hardcode_shlibpath_var_CXX=no |
|
11658 |
case $host_os in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11659 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
1
by Ross Burton
Import upstream version 0.10 |
11660 |
*) |
11661 |
# The C++ compiler is used as linker so we must use $wl |
|
11662 |
# flag to pass the commands to the underlying system |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11663 |
# linker. We must also pass each convience library through |
11664 |
# to the system linker between allextract/defaultextract. |
|
11665 |
# The C++ compiler will combine linker options so we |
|
11666 |
# cannot just pass the convience library names through |
|
11667 |
# without $wl. |
|
1
by Ross Burton
Import upstream version 0.10 |
11668 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11669 |
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
1
by Ross Burton
Import upstream version 0.10 |
11670 |
;; |
11671 |
esac |
|
11672 |
link_all_deplibs_CXX=yes |
|
11673 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11674 |
output_verbose_link_cmd='echo' |
1
by Ross Burton
Import upstream version 0.10 |
11675 |
|
11676 |
# Archives containing C++ object files must be created using |
|
11677 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
11678 |
# necessary to make sure instantiated templates are included |
|
11679 |
# in the archive. |
|
11680 |
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
|
11681 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11682 |
gcx*) |
1
by Ross Burton
Import upstream version 0.10 |
11683 |
# Green Hills C++ Compiler |
11684 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
11685 |
||
11686 |
# The C++ compiler must be used to create the archive. |
|
11687 |
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
|
11688 |
;; |
|
11689 |
*) |
|
11690 |
# GNU C++ compiler with Solaris linker |
|
11691 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
11692 |
no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
|
11693 |
if $CC --version | grep -v '^2\.7' > /dev/null; then |
|
11694 |
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
11695 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
11696 |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
11697 |
||
11698 |
# Commands to make compiler produce verbose output that lists |
|
11699 |
# what "hidden" libraries, object files and flags are used when |
|
11700 |
# linking a shared library. |
|
11701 |
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
11702 |
else |
|
11703 |
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
|
11704 |
# platform. |
|
11705 |
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
11706 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
11707 |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
11708 |
||
11709 |
# Commands to make compiler produce verbose output that lists |
|
11710 |
# what "hidden" libraries, object files and flags are used when |
|
11711 |
# linking a shared library. |
|
11712 |
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
11713 |
fi |
|
11714 |
||
11715 |
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
|
11716 |
fi |
|
11717 |
;; |
|
11718 |
esac |
|
11719 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11720 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11721 |
no_undefined_flag_CXX='${wl}-z,text' |
|
11722 |
archive_cmds_need_lc_CXX=no |
|
11723 |
hardcode_shlibpath_var_CXX=no |
|
11724 |
runpath_var='LD_RUN_PATH' |
|
11725 |
||
11726 |
case $cc_basename in |
|
11727 |
CC*) |
|
11728 |
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
11729 |
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
11730 |
;; |
|
11731 |
*) |
|
11732 |
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
11733 |
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
11734 |
;; |
|
11735 |
esac |
|
11736 |
;; |
|
11737 |
sysv5* | sco3.2v5* | sco5v6*) |
|
11738 |
# Note: We can NOT use -z defs as we might desire, because we do not |
|
11739 |
# link with -lc, and that would cause any symbols used from libc to |
|
11740 |
# always be unresolved, which means just about no library would |
|
11741 |
# ever link correctly. If we're not using GNU ld we use -z text |
|
11742 |
# though, which does catch some bad symbols but isn't as heavy-handed |
|
11743 |
# as -z defs. |
|
11744 |
# For security reasons, it is highly recommended that you always |
|
11745 |
# use absolute paths for naming shared libraries, and exclude the |
|
11746 |
# DT_RUNPATH tag from executables and libraries. But doing so |
|
11747 |
# requires that you compile everything twice, which is a pain. |
|
11748 |
# So that behaviour is only enabled if SCOABSPATH is set to a |
|
11749 |
# non-empty value in the environment. Most likely only useful for |
|
11750 |
# creating official distributions of packages. |
|
11751 |
# This is a hack until libtool officially supports absolute path |
|
11752 |
# names for shared libraries. |
|
11753 |
no_undefined_flag_CXX='${wl}-z,text' |
|
11754 |
allow_undefined_flag_CXX='${wl}-z,nodefs' |
|
11755 |
archive_cmds_need_lc_CXX=no |
|
11756 |
hardcode_shlibpath_var_CXX=no |
|
11757 |
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
11758 |
hardcode_libdir_separator_CXX=':' |
|
11759 |
link_all_deplibs_CXX=yes |
|
11760 |
export_dynamic_flag_spec_CXX='${wl}-Bexport' |
|
11761 |
runpath_var='LD_RUN_PATH' |
|
11762 |
||
11763 |
case $cc_basename in |
|
11764 |
CC*) |
|
11765 |
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
11766 |
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
11767 |
;; |
|
11768 |
*) |
|
11769 |
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
11770 |
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
11771 |
;; |
|
11772 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
11773 |
;; |
11774 |
tandem*) |
|
11775 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11776 |
NCC*) |
1
by Ross Burton
Import upstream version 0.10 |
11777 |
# NonStop-UX NCC 3.20 |
11778 |
# FIXME: insert proper C++ library support |
|
11779 |
ld_shlibs_CXX=no |
|
11780 |
;; |
|
11781 |
*) |
|
11782 |
# FIXME: insert proper C++ library support |
|
11783 |
ld_shlibs_CXX=no |
|
11784 |
;; |
|
11785 |
esac |
|
11786 |
;; |
|
11787 |
vxworks*) |
|
11788 |
# FIXME: insert proper C++ library support |
|
11789 |
ld_shlibs_CXX=no |
|
11790 |
;; |
|
11791 |
*) |
|
11792 |
# FIXME: insert proper C++ library support |
|
11793 |
ld_shlibs_CXX=no |
|
11794 |
;; |
|
11795 |
esac |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
11796 |
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11797 |
echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
11798 |
test "$ld_shlibs_CXX" = no && can_build_shared=no |
11799 |
||
11800 |
GCC_CXX="$GXX" |
|
11801 |
LD_CXX="$LD" |
|
11802 |
||
11803 |
||
11804 |
cat > conftest.$ac_ext <<EOF |
|
11805 |
class Foo |
|
11806 |
{ |
|
11807 |
public: |
|
11808 |
Foo (void) { a = 0; } |
|
11809 |
private: |
|
11810 |
int a; |
|
11811 |
}; |
|
11812 |
EOF |
|
11813 |
||
11814 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
11815 |
(eval $ac_compile) 2>&5 |
|
11816 |
ac_status=$? |
|
11817 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11818 |
(exit $ac_status); }; then |
|
11819 |
# Parse the compiler output and extract the necessary |
|
11820 |
# objects, libraries and library flags. |
|
11821 |
||
11822 |
# Sentinel used to keep track of whether or not we are before |
|
11823 |
# the conftest object file. |
|
11824 |
pre_test_object_deps_done=no |
|
11825 |
||
11826 |
# The `*' in the case matches for architectures that use `case' in |
|
11827 |
# $output_verbose_cmd can trigger glob expansion during the loop |
|
11828 |
# eval without this substitution. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11829 |
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
1
by Ross Burton
Import upstream version 0.10 |
11830 |
|
11831 |
for p in `eval $output_verbose_link_cmd`; do |
|
11832 |
case $p in |
|
11833 |
||
11834 |
-L* | -R* | -l*) |
|
11835 |
# Some compilers place space between "-{L,R}" and the path. |
|
11836 |
# Remove the space. |
|
11837 |
if test $p = "-L" \ |
|
11838 |
|| test $p = "-R"; then |
|
11839 |
prev=$p |
|
11840 |
continue |
|
11841 |
else |
|
11842 |
prev= |
|
11843 |
fi |
|
11844 |
||
11845 |
if test "$pre_test_object_deps_done" = no; then |
|
11846 |
case $p in |
|
11847 |
-L* | -R*) |
|
11848 |
# Internal compiler library paths should come after those |
|
11849 |
# provided the user. The postdeps already come after the |
|
11850 |
# user supplied libs so there is no need to process them. |
|
11851 |
if test -z "$compiler_lib_search_path_CXX"; then |
|
11852 |
compiler_lib_search_path_CXX="${prev}${p}" |
|
11853 |
else |
|
11854 |
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
|
11855 |
fi |
|
11856 |
;; |
|
11857 |
# The "-l" case would never come before the object being |
|
11858 |
# linked, so don't bother handling this case. |
|
11859 |
esac |
|
11860 |
else |
|
11861 |
if test -z "$postdeps_CXX"; then |
|
11862 |
postdeps_CXX="${prev}${p}" |
|
11863 |
else |
|
11864 |
postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
|
11865 |
fi |
|
11866 |
fi |
|
11867 |
;; |
|
11868 |
||
11869 |
*.$objext) |
|
11870 |
# This assumes that the test object file only shows up |
|
11871 |
# once in the compiler output. |
|
11872 |
if test "$p" = "conftest.$objext"; then |
|
11873 |
pre_test_object_deps_done=yes |
|
11874 |
continue |
|
11875 |
fi |
|
11876 |
||
11877 |
if test "$pre_test_object_deps_done" = no; then |
|
11878 |
if test -z "$predep_objects_CXX"; then |
|
11879 |
predep_objects_CXX="$p" |
|
11880 |
else |
|
11881 |
predep_objects_CXX="$predep_objects_CXX $p" |
|
11882 |
fi |
|
11883 |
else |
|
11884 |
if test -z "$postdep_objects_CXX"; then |
|
11885 |
postdep_objects_CXX="$p" |
|
11886 |
else |
|
11887 |
postdep_objects_CXX="$postdep_objects_CXX $p" |
|
11888 |
fi |
|
11889 |
fi |
|
11890 |
;; |
|
11891 |
||
11892 |
*) ;; # Ignore the rest. |
|
11893 |
||
11894 |
esac |
|
11895 |
done |
|
11896 |
||
11897 |
# Clean up. |
|
11898 |
rm -f a.out a.exe |
|
11899 |
else |
|
11900 |
echo "libtool.m4: error: problem compiling CXX test program" |
|
11901 |
fi |
|
11902 |
||
11903 |
$rm -f confest.$objext |
|
11904 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11905 |
# PORTME: override above test on systems where it is broken |
11906 |
case $host_os in |
|
11907 |
interix3*) |
|
11908 |
# Interix 3.5 installs completely hosed .la files for C++, so rather than |
|
11909 |
# hack all around it, let's just trust "g++" to DTRT. |
|
11910 |
predep_objects_CXX= |
|
11911 |
postdep_objects_CXX= |
|
11912 |
postdeps_CXX= |
|
11913 |
;; |
|
11914 |
||
11915 |
solaris*) |
|
11916 |
case $cc_basename in |
|
11917 |
CC*) |
|
11918 |
# Adding this requires a known-good setup of shared libraries for |
|
11919 |
# Sun compiler versions before 5.6, else PIC objects from an old |
|
11920 |
# archive will be linked into the output, leading to subtle bugs. |
|
11921 |
postdeps_CXX='-lCstd -lCrun' |
|
11922 |
;; |
|
11923 |
esac |
|
11924 |
;; |
|
11925 |
esac |
|
11926 |
||
11927 |
||
1
by Ross Burton
Import upstream version 0.10 |
11928 |
case " $postdeps_CXX " in |
11929 |
*" -lc "*) archive_cmds_need_lc_CXX=no ;; |
|
11930 |
esac |
|
11931 |
||
11932 |
lt_prog_compiler_wl_CXX= |
|
11933 |
lt_prog_compiler_pic_CXX= |
|
11934 |
lt_prog_compiler_static_CXX= |
|
11935 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
11936 |
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11937 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
11938 |
|
11939 |
# C++ specific cases for pic, static, wl, etc. |
|
11940 |
if test "$GXX" = yes; then |
|
11941 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
11942 |
lt_prog_compiler_static_CXX='-static' |
|
11943 |
||
11944 |
case $host_os in |
|
11945 |
aix*) |
|
11946 |
# All AIX code is PIC. |
|
11947 |
if test "$host_cpu" = ia64; then |
|
11948 |
# AIX 5 now supports IA64 processor |
|
11949 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
11950 |
fi |
|
11951 |
;; |
|
11952 |
amigaos*) |
|
11953 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
11954 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
11955 |
# like `-m68040'. |
|
11956 |
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
|
11957 |
;; |
|
11958 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
11959 |
# PIC is the default for these OSes. |
|
11960 |
;; |
|
11961 |
mingw* | os2* | pw32*) |
|
11962 |
# This hack is so that the source file can tell whether it is being |
|
11963 |
# built for inclusion in a dll (and should export symbols for example). |
|
11964 |
lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
|
11965 |
;; |
|
11966 |
darwin* | rhapsody*) |
|
11967 |
# PIC is the default on this platform |
|
11968 |
# Common symbols not allowed in MH_DYLIB files |
|
11969 |
lt_prog_compiler_pic_CXX='-fno-common' |
|
11970 |
;; |
|
11971 |
*djgpp*) |
|
11972 |
# DJGPP does not support shared libraries at all |
|
11973 |
lt_prog_compiler_pic_CXX= |
|
11974 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11975 |
interix3*) |
11976 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
11977 |
# Instead, we relocate shared libraries at runtime. |
|
11978 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
11979 |
sysv4*MP*) |
11980 |
if test -d /usr/nec; then |
|
11981 |
lt_prog_compiler_pic_CXX=-Kconform_pic |
|
11982 |
fi |
|
11983 |
;; |
|
11984 |
hpux*) |
|
11985 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
11986 |
# not for PA HP-UX. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
11987 |
case $host_cpu in |
1
by Ross Burton
Import upstream version 0.10 |
11988 |
hppa*64*|ia64*) |
11989 |
;; |
|
11990 |
*) |
|
11991 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
11992 |
;; |
|
11993 |
esac |
|
11994 |
;; |
|
11995 |
*) |
|
11996 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
11997 |
;; |
|
11998 |
esac |
|
11999 |
else |
|
12000 |
case $host_os in |
|
12001 |
aix4* | aix5*) |
|
12002 |
# All AIX code is PIC. |
|
12003 |
if test "$host_cpu" = ia64; then |
|
12004 |
# AIX 5 now supports IA64 processor |
|
12005 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
12006 |
else |
|
12007 |
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
|
12008 |
fi |
|
12009 |
;; |
|
12010 |
chorus*) |
|
12011 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12012 |
cxch68*) |
1
by Ross Burton
Import upstream version 0.10 |
12013 |
# Green Hills C++ Compiler |
12014 |
# _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" |
|
12015 |
;; |
|
12016 |
esac |
|
12017 |
;; |
|
12018 |
darwin*) |
|
12019 |
# PIC is the default on this platform |
|
12020 |
# Common symbols not allowed in MH_DYLIB files |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12021 |
case $cc_basename in |
1
by Ross Burton
Import upstream version 0.10 |
12022 |
xlc*) |
12023 |
lt_prog_compiler_pic_CXX='-qnocommon' |
|
12024 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12025 |
;; |
|
12026 |
esac |
|
12027 |
;; |
|
12028 |
dgux*) |
|
12029 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12030 |
ec++*) |
1
by Ross Burton
Import upstream version 0.10 |
12031 |
lt_prog_compiler_pic_CXX='-KPIC' |
12032 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12033 |
ghcx*) |
1
by Ross Burton
Import upstream version 0.10 |
12034 |
# Green Hills C++ Compiler |
12035 |
lt_prog_compiler_pic_CXX='-pic' |
|
12036 |
;; |
|
12037 |
*) |
|
12038 |
;; |
|
12039 |
esac |
|
12040 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12041 |
freebsd* | kfreebsd*-gnu | dragonfly*) |
1
by Ross Burton
Import upstream version 0.10 |
12042 |
# FreeBSD uses GNU C++ |
12043 |
;; |
|
12044 |
hpux9* | hpux10* | hpux11*) |
|
12045 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12046 |
CC*) |
1
by Ross Burton
Import upstream version 0.10 |
12047 |
lt_prog_compiler_wl_CXX='-Wl,' |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12048 |
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
1
by Ross Burton
Import upstream version 0.10 |
12049 |
if test "$host_cpu" != ia64; then |
12050 |
lt_prog_compiler_pic_CXX='+Z' |
|
12051 |
fi |
|
12052 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12053 |
aCC*) |
1
by Ross Burton
Import upstream version 0.10 |
12054 |
lt_prog_compiler_wl_CXX='-Wl,' |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12055 |
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12056 |
case $host_cpu in |
|
1
by Ross Burton
Import upstream version 0.10 |
12057 |
hppa*64*|ia64*) |
12058 |
# +Z the default |
|
12059 |
;; |
|
12060 |
*) |
|
12061 |
lt_prog_compiler_pic_CXX='+Z' |
|
12062 |
;; |
|
12063 |
esac |
|
12064 |
;; |
|
12065 |
*) |
|
12066 |
;; |
|
12067 |
esac |
|
12068 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12069 |
interix*) |
12070 |
# This is c89, which is MS Visual C++ (no shared libs) |
|
12071 |
# Anyone wants to do a port? |
|
12072 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
12073 |
irix5* | irix6* | nonstopux*) |
12074 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12075 |
CC*) |
1
by Ross Burton
Import upstream version 0.10 |
12076 |
lt_prog_compiler_wl_CXX='-Wl,' |
12077 |
lt_prog_compiler_static_CXX='-non_shared' |
|
12078 |
# CC pic flag -KPIC is the default. |
|
12079 |
;; |
|
12080 |
*) |
|
12081 |
;; |
|
12082 |
esac |
|
12083 |
;; |
|
12084 |
linux*) |
|
12085 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12086 |
KCC*) |
1
by Ross Burton
Import upstream version 0.10 |
12087 |
# KAI C++ Compiler |
12088 |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
12089 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
12090 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12091 |
icpc* | ecpc*) |
1
by Ross Burton
Import upstream version 0.10 |
12092 |
# Intel C++ |
12093 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12094 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
12095 |
lt_prog_compiler_static_CXX='-static' |
|
12096 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12097 |
pgCC*) |
12098 |
# Portland Group C++ compiler. |
|
12099 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12100 |
lt_prog_compiler_pic_CXX='-fpic' |
|
12101 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
12102 |
;; |
|
12103 |
cxx*) |
|
1
by Ross Burton
Import upstream version 0.10 |
12104 |
# Compaq C++ |
12105 |
# Make sure the PIC flag is empty. It appears that all Alpha |
|
12106 |
# Linux and Compaq Tru64 Unix objects are PIC. |
|
12107 |
lt_prog_compiler_pic_CXX= |
|
12108 |
lt_prog_compiler_static_CXX='-non_shared' |
|
12109 |
;; |
|
12110 |
*) |
|
12111 |
;; |
|
12112 |
esac |
|
12113 |
;; |
|
12114 |
lynxos*) |
|
12115 |
;; |
|
12116 |
m88k*) |
|
12117 |
;; |
|
12118 |
mvs*) |
|
12119 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12120 |
cxx*) |
1
by Ross Burton
Import upstream version 0.10 |
12121 |
lt_prog_compiler_pic_CXX='-W c,exportall' |
12122 |
;; |
|
12123 |
*) |
|
12124 |
;; |
|
12125 |
esac |
|
12126 |
;; |
|
12127 |
netbsd*) |
|
12128 |
;; |
|
12129 |
osf3* | osf4* | osf5*) |
|
12130 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12131 |
KCC*) |
1
by Ross Burton
Import upstream version 0.10 |
12132 |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
12133 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12134 |
RCC*) |
1
by Ross Burton
Import upstream version 0.10 |
12135 |
# Rational C++ 2.4.1 |
12136 |
lt_prog_compiler_pic_CXX='-pic' |
|
12137 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12138 |
cxx*) |
1
by Ross Burton
Import upstream version 0.10 |
12139 |
# Digital/Compaq C++ |
12140 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12141 |
# Make sure the PIC flag is empty. It appears that all Alpha |
|
12142 |
# Linux and Compaq Tru64 Unix objects are PIC. |
|
12143 |
lt_prog_compiler_pic_CXX= |
|
12144 |
lt_prog_compiler_static_CXX='-non_shared' |
|
12145 |
;; |
|
12146 |
*) |
|
12147 |
;; |
|
12148 |
esac |
|
12149 |
;; |
|
12150 |
psos*) |
|
12151 |
;; |
|
12152 |
solaris*) |
|
12153 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12154 |
CC*) |
1
by Ross Burton
Import upstream version 0.10 |
12155 |
# Sun C++ 4.2, 5.x and Centerline C++ |
12156 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
12157 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
12158 |
lt_prog_compiler_wl_CXX='-Qoption ld ' |
|
12159 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12160 |
gcx*) |
1
by Ross Burton
Import upstream version 0.10 |
12161 |
# Green Hills C++ Compiler |
12162 |
lt_prog_compiler_pic_CXX='-PIC' |
|
12163 |
;; |
|
12164 |
*) |
|
12165 |
;; |
|
12166 |
esac |
|
12167 |
;; |
|
12168 |
sunos4*) |
|
12169 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12170 |
CC*) |
1
by Ross Burton
Import upstream version 0.10 |
12171 |
# Sun C++ 4.x |
12172 |
lt_prog_compiler_pic_CXX='-pic' |
|
12173 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
12174 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12175 |
lcc*) |
1
by Ross Burton
Import upstream version 0.10 |
12176 |
# Lucid |
12177 |
lt_prog_compiler_pic_CXX='-pic' |
|
12178 |
;; |
|
12179 |
*) |
|
12180 |
;; |
|
12181 |
esac |
|
12182 |
;; |
|
12183 |
tandem*) |
|
12184 |
case $cc_basename in |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12185 |
NCC*) |
1
by Ross Burton
Import upstream version 0.10 |
12186 |
# NonStop-UX NCC 3.20 |
12187 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
12188 |
;; |
|
12189 |
*) |
|
12190 |
;; |
|
12191 |
esac |
|
12192 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12193 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12194 |
case $cc_basename in |
|
12195 |
CC*) |
|
12196 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12197 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
12198 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
12199 |
;; |
|
12200 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
12201 |
;; |
12202 |
vxworks*) |
|
12203 |
;; |
|
12204 |
*) |
|
12205 |
lt_prog_compiler_can_build_shared_CXX=no |
|
12206 |
;; |
|
12207 |
esac |
|
12208 |
fi |
|
12209 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12210 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12211 |
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
12212 |
|
12213 |
# |
|
12214 |
# Check to make sure the PIC flag actually works. |
|
12215 |
# |
|
12216 |
if test -n "$lt_prog_compiler_pic_CXX"; then |
|
12217 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12218 |
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12219 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
12220 |
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12221 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
12222 |
else |
|
12223 |
lt_prog_compiler_pic_works_CXX=no |
|
12224 |
ac_outfile=conftest.$ac_objext |
|
12225 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
12226 |
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
|
12227 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
12228 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
12229 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
12230 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
12231 |
# The option is referenced via a variable to avoid confusing sed. |
|
12232 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12233 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1
by Ross Burton
Import upstream version 0.10 |
12234 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12235 |
-e 's:$: $lt_compiler_flag:'` |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
12236 |
(eval echo "\"\$as_me:12236: $lt_compile\"" >&5) |
1
by Ross Burton
Import upstream version 0.10 |
12237 |
(eval "$lt_compile" 2>conftest.err) |
12238 |
ac_status=$? |
|
12239 |
cat conftest.err >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
12240 |
echo "$as_me:12240: \$? = $ac_status" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
12241 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
12242 |
# The compiler can only warn and ignore the option if not recognized |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12243 |
# So say no if there are warnings other than the usual output. |
12244 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
12245 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
12246 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
1
by Ross Burton
Import upstream version 0.10 |
12247 |
lt_prog_compiler_pic_works_CXX=yes |
12248 |
fi |
|
12249 |
fi |
|
12250 |
$rm conftest* |
|
12251 |
||
12252 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12253 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12254 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
12255 |
|
12256 |
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
|
12257 |
case $lt_prog_compiler_pic_CXX in |
|
12258 |
"" | " "*) ;; |
|
12259 |
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
|
12260 |
esac |
|
12261 |
else |
|
12262 |
lt_prog_compiler_pic_CXX= |
|
12263 |
lt_prog_compiler_can_build_shared_CXX=no |
|
12264 |
fi |
|
12265 |
||
12266 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12267 |
case $host_os in |
1
by Ross Burton
Import upstream version 0.10 |
12268 |
# For platforms which do not support PIC, -DPIC is meaningless: |
12269 |
*djgpp*) |
|
12270 |
lt_prog_compiler_pic_CXX= |
|
12271 |
;; |
|
12272 |
*) |
|
12273 |
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
|
12274 |
;; |
|
12275 |
esac |
|
12276 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12277 |
# |
12278 |
# Check to make sure the static flag actually works. |
|
12279 |
# |
|
12280 |
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12281 |
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12282 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12283 |
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12284 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
12285 |
else |
|
12286 |
lt_prog_compiler_static_works_CXX=no |
|
12287 |
save_LDFLAGS="$LDFLAGS" |
|
12288 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
12289 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
12290 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
12291 |
# The linker can only warn and ignore the option if not recognized |
|
12292 |
# So say no if there are warnings |
|
12293 |
if test -s conftest.err; then |
|
12294 |
# Append any errors to the config.log. |
|
12295 |
cat conftest.err 1>&5 |
|
12296 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
12297 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
12298 |
if diff conftest.exp conftest.er2 >/dev/null; then |
|
12299 |
lt_prog_compiler_static_works_CXX=yes |
|
12300 |
fi |
|
12301 |
else |
|
12302 |
lt_prog_compiler_static_works_CXX=yes |
|
12303 |
fi |
|
12304 |
fi |
|
12305 |
$rm conftest* |
|
12306 |
LDFLAGS="$save_LDFLAGS" |
|
12307 |
||
12308 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12309 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12310 |
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12311 |
|
12312 |
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
|
12313 |
: |
|
12314 |
else |
|
12315 |
lt_prog_compiler_static_CXX= |
|
12316 |
fi |
|
12317 |
||
12318 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12319 |
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12320 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
12321 |
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12322 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
12323 |
else |
|
12324 |
lt_cv_prog_compiler_c_o_CXX=no |
|
12325 |
$rm -r conftest 2>/dev/null |
|
12326 |
mkdir conftest |
|
12327 |
cd conftest |
|
12328 |
mkdir out |
|
12329 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
12330 |
||
12331 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
12332 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
12333 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
12334 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
12335 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
12336 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12337 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1
by Ross Burton
Import upstream version 0.10 |
12338 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12339 |
-e 's:$: $lt_compiler_flag:'` |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
12340 |
(eval echo "\"\$as_me:12340: $lt_compile\"" >&5) |
1
by Ross Burton
Import upstream version 0.10 |
12341 |
(eval "$lt_compile" 2>out/conftest.err) |
12342 |
ac_status=$? |
|
12343 |
cat out/conftest.err >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
12344 |
echo "$as_me:12344: \$? = $ac_status" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
12345 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12346 |
then |
|
12347 |
# The compiler can only warn and ignore the option if not recognized |
|
12348 |
# So say no if there are warnings |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12349 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12350 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
12351 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
1
by Ross Burton
Import upstream version 0.10 |
12352 |
lt_cv_prog_compiler_c_o_CXX=yes |
12353 |
fi |
|
12354 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12355 |
chmod u+w . 2>&5 |
1
by Ross Burton
Import upstream version 0.10 |
12356 |
$rm conftest* |
12357 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
12358 |
# template instantiation |
|
12359 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
12360 |
$rm out/* && rmdir out |
|
12361 |
cd .. |
|
12362 |
rmdir conftest |
|
12363 |
$rm conftest* |
|
12364 |
||
12365 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12366 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12367 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
12368 |
|
12369 |
||
12370 |
hard_links="nottested" |
|
12371 |
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
|
12372 |
# do not overwrite the value of need_locks provided by the user |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12373 |
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12374 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
12375 |
hard_links=yes |
12376 |
$rm conftest* |
|
12377 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
12378 |
touch conftest.a |
|
12379 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
12380 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12381 |
{ echo "$as_me:$LINENO: result: $hard_links" >&5 |
12382 |
echo "${ECHO_T}$hard_links" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
12383 |
if test "$hard_links" = no; then |
12384 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
12385 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
12386 |
need_locks=warn |
|
12387 |
fi |
|
12388 |
else |
|
12389 |
need_locks=no |
|
12390 |
fi |
|
12391 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12392 |
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12393 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
12394 |
|
12395 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
12396 |
case $host_os in |
|
12397 |
aix4* | aix5*) |
|
12398 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
12399 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
12400 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
12401 |
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' |
|
12402 |
else |
|
12403 |
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' |
|
12404 |
fi |
|
12405 |
;; |
|
12406 |
pw32*) |
|
12407 |
export_symbols_cmds_CXX="$ltdll_cmds" |
|
12408 |
;; |
|
12409 |
cygwin* | mingw*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12410 |
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' |
1
by Ross Burton
Import upstream version 0.10 |
12411 |
;; |
12412 |
*) |
|
12413 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
12414 |
;; |
|
12415 |
esac |
|
12416 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12417 |
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12418 |
echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
12419 |
test "$ld_shlibs_CXX" = no && can_build_shared=no |
12420 |
||
12421 |
# |
|
12422 |
# Do we need to explicitly link libc? |
|
12423 |
# |
|
12424 |
case "x$archive_cmds_need_lc_CXX" in |
|
12425 |
x|xyes) |
|
12426 |
# Assume -lc should be added |
|
12427 |
archive_cmds_need_lc_CXX=yes |
|
12428 |
||
12429 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
12430 |
case $archive_cmds_CXX in |
|
12431 |
*'~'*) |
|
12432 |
# FIXME: we may have to deal with multi-command sequences. |
|
12433 |
;; |
|
12434 |
'$CC '*) |
|
12435 |
# Test whether the compiler implicitly links with -lc since on some |
|
12436 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
12437 |
# to ld, don't add -lc before -lgcc. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12438 |
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12439 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
12440 |
$rm conftest* |
12441 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
12442 |
||
12443 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
12444 |
(eval $ac_compile) 2>&5 |
|
12445 |
ac_status=$? |
|
12446 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12447 |
(exit $ac_status); } 2>conftest.err; then |
|
12448 |
soname=conftest |
|
12449 |
lib=conftest |
|
12450 |
libobjs=conftest.$ac_objext |
|
12451 |
deplibs= |
|
12452 |
wl=$lt_prog_compiler_wl_CXX |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12453 |
pic_flag=$lt_prog_compiler_pic_CXX |
1
by Ross Burton
Import upstream version 0.10 |
12454 |
compiler_flags=-v |
12455 |
linker_flags=-v |
|
12456 |
verstring= |
|
12457 |
output_objdir=. |
|
12458 |
libname=conftest |
|
12459 |
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
|
12460 |
allow_undefined_flag_CXX= |
|
12461 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
12462 |
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
12463 |
ac_status=$? |
|
12464 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12465 |
(exit $ac_status); } |
|
12466 |
then |
|
12467 |
archive_cmds_need_lc_CXX=no |
|
12468 |
else |
|
12469 |
archive_cmds_need_lc_CXX=yes |
|
12470 |
fi |
|
12471 |
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
|
12472 |
else |
|
12473 |
cat conftest.err 1>&5 |
|
12474 |
fi |
|
12475 |
$rm conftest* |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12476 |
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12477 |
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
12478 |
;; |
12479 |
esac |
|
12480 |
fi |
|
12481 |
;; |
|
12482 |
esac |
|
12483 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12484 |
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12485 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
12486 |
library_names_spec= |
12487 |
libname_spec='lib$name' |
|
12488 |
soname_spec= |
|
12489 |
shrext_cmds=".so" |
|
12490 |
postinstall_cmds= |
|
12491 |
postuninstall_cmds= |
|
12492 |
finish_cmds= |
|
12493 |
finish_eval= |
|
12494 |
shlibpath_var= |
|
12495 |
shlibpath_overrides_runpath=unknown |
|
12496 |
version_type=none |
|
12497 |
dynamic_linker="$host_os ld.so" |
|
12498 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
12499 |
if test "$GCC" = yes; then |
|
12500 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
12501 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
12502 |
# if the path contains ";" then we assume it to be the separator |
|
12503 |
# otherwise default to the standard path separator (i.e. ":") - it is |
|
12504 |
# assumed that no part of a normal pathname contains ";" but that should |
|
12505 |
# okay in the real world where ";" in dirpaths is itself problematic. |
|
12506 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
12507 |
else |
|
12508 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
12509 |
fi |
|
12510 |
else |
|
12511 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
12512 |
fi |
|
12513 |
need_lib_prefix=unknown |
|
12514 |
hardcode_into_libs=no |
|
12515 |
||
12516 |
# when you set need_version to no, make sure it does not cause -set_version |
|
12517 |
# flags to be left without arguments |
|
12518 |
need_version=unknown |
|
12519 |
||
12520 |
case $host_os in |
|
12521 |
aix3*) |
|
12522 |
version_type=linux |
|
12523 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
12524 |
shlibpath_var=LIBPATH |
|
12525 |
||
12526 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
12527 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12528 |
;; |
|
12529 |
||
12530 |
aix4* | aix5*) |
|
12531 |
version_type=linux |
|
12532 |
need_lib_prefix=no |
|
12533 |
need_version=no |
|
12534 |
hardcode_into_libs=yes |
|
12535 |
if test "$host_cpu" = ia64; then |
|
12536 |
# AIX 5 supports IA64 |
|
12537 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
12538 |
shlibpath_var=LD_LIBRARY_PATH |
|
12539 |
else |
|
12540 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
12541 |
# for dependence libraries. The import file would start with |
|
12542 |
# the line `#! .'. This would cause the generated library to |
|
12543 |
# depend on `.', always an invalid library. This was fixed in |
|
12544 |
# development snapshots of GCC prior to 3.0. |
|
12545 |
case $host_os in |
|
12546 |
aix4 | aix4.[01] | aix4.[01].*) |
|
12547 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
12548 |
echo ' yes ' |
|
12549 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
12550 |
: |
|
12551 |
else |
|
12552 |
can_build_shared=no |
|
12553 |
fi |
|
12554 |
;; |
|
12555 |
esac |
|
12556 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
12557 |
# soname into executable. Probably we can add versioning support to |
|
12558 |
# collect2, so additional links can be useful in future. |
|
12559 |
if test "$aix_use_runtimelinking" = yes; then |
|
12560 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
12561 |
# instead of lib<name>.a to let people know that these are not |
|
12562 |
# typical AIX shared libraries. |
|
12563 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12564 |
else |
|
12565 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
12566 |
# and later when we are not doing run time linking. |
|
12567 |
library_names_spec='${libname}${release}.a $libname.a' |
|
12568 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12569 |
fi |
|
12570 |
shlibpath_var=LIBPATH |
|
12571 |
fi |
|
12572 |
;; |
|
12573 |
||
12574 |
amigaos*) |
|
12575 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
12576 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
12577 |
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' |
|
12578 |
;; |
|
12579 |
||
12580 |
beos*) |
|
12581 |
library_names_spec='${libname}${shared_ext}' |
|
12582 |
dynamic_linker="$host_os ld.so" |
|
12583 |
shlibpath_var=LIBRARY_PATH |
|
12584 |
;; |
|
12585 |
||
12586 |
bsdi[45]*) |
|
12587 |
version_type=linux |
|
12588 |
need_version=no |
|
12589 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12590 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12591 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
12592 |
shlibpath_var=LD_LIBRARY_PATH |
|
12593 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
12594 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
12595 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
12596 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
12597 |
# libtool to hard-code these into programs |
|
12598 |
;; |
|
12599 |
||
12600 |
cygwin* | mingw* | pw32*) |
|
12601 |
version_type=windows |
|
12602 |
shrext_cmds=".dll" |
|
12603 |
need_version=no |
|
12604 |
need_lib_prefix=no |
|
12605 |
||
12606 |
case $GCC,$host_os in |
|
12607 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
|
12608 |
library_names_spec='$libname.dll.a' |
|
12609 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
12610 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
12611 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
12612 |
dldir=$destdir/`dirname \$dlpath`~ |
|
12613 |
test -d \$dldir || mkdir -p \$dldir~ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12614 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
12615 |
chmod a+x \$dldir/$dlname' |
|
1
by Ross Burton
Import upstream version 0.10 |
12616 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12617 |
dlpath=$dir/\$dldll~ |
|
12618 |
$rm \$dlpath' |
|
12619 |
shlibpath_overrides_runpath=yes |
|
12620 |
||
12621 |
case $host_os in |
|
12622 |
cygwin*) |
|
12623 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
12624 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
12625 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
12626 |
;; |
|
12627 |
mingw*) |
|
12628 |
# MinGW DLLs use traditional 'lib' prefix |
|
12629 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
12630 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
12631 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
12632 |
# It is most probably a Windows format PATH printed by |
|
12633 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
12634 |
# path with ; separators, and with drive letters. We can handle the |
|
12635 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
12636 |
# especially as we might pass files found there to a mingw objdump, |
|
12637 |
# which wouldn't understand a cygwinified path. Ahh. |
|
12638 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
12639 |
else |
|
12640 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
12641 |
fi |
|
12642 |
;; |
|
12643 |
pw32*) |
|
12644 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12645 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
1
by Ross Burton
Import upstream version 0.10 |
12646 |
;; |
12647 |
esac |
|
12648 |
;; |
|
12649 |
||
12650 |
*) |
|
12651 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
12652 |
;; |
|
12653 |
esac |
|
12654 |
dynamic_linker='Win32 ld.exe' |
|
12655 |
# FIXME: first we should search . and the directory the executable is in |
|
12656 |
shlibpath_var=PATH |
|
12657 |
;; |
|
12658 |
||
12659 |
darwin* | rhapsody*) |
|
12660 |
dynamic_linker="$host_os dyld" |
|
12661 |
version_type=darwin |
|
12662 |
need_lib_prefix=no |
|
12663 |
need_version=no |
|
12664 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
12665 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
12666 |
shlibpath_overrides_runpath=yes |
|
12667 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12668 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
1
by Ross Burton
Import upstream version 0.10 |
12669 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12670 |
if test "$GCC" = yes; then |
|
12671 |
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
12672 |
else |
|
12673 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
12674 |
fi |
|
12675 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
12676 |
;; |
|
12677 |
||
12678 |
dgux*) |
|
12679 |
version_type=linux |
|
12680 |
need_lib_prefix=no |
|
12681 |
need_version=no |
|
12682 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
12683 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12684 |
shlibpath_var=LD_LIBRARY_PATH |
|
12685 |
;; |
|
12686 |
||
12687 |
freebsd1*) |
|
12688 |
dynamic_linker=no |
|
12689 |
;; |
|
12690 |
||
12691 |
kfreebsd*-gnu) |
|
12692 |
version_type=linux |
|
12693 |
need_lib_prefix=no |
|
12694 |
need_version=no |
|
12695 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
12696 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12697 |
shlibpath_var=LD_LIBRARY_PATH |
|
12698 |
shlibpath_overrides_runpath=no |
|
12699 |
hardcode_into_libs=yes |
|
12700 |
dynamic_linker='GNU ld.so' |
|
12701 |
;; |
|
12702 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12703 |
freebsd* | dragonfly*) |
12704 |
# DragonFly does not have aout. When/if they implement a new |
|
12705 |
# versioning mechanism, adjust this. |
|
12706 |
if test -x /usr/bin/objformat; then |
|
12707 |
objformat=`/usr/bin/objformat` |
|
12708 |
else |
|
12709 |
case $host_os in |
|
12710 |
freebsd[123]*) objformat=aout ;; |
|
12711 |
*) objformat=elf ;; |
|
12712 |
esac |
|
12713 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
12714 |
version_type=freebsd-$objformat |
12715 |
case $version_type in |
|
12716 |
freebsd-elf*) |
|
12717 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
12718 |
need_version=no |
|
12719 |
need_lib_prefix=no |
|
12720 |
;; |
|
12721 |
freebsd-*) |
|
12722 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
12723 |
need_version=yes |
|
12724 |
;; |
|
12725 |
esac |
|
12726 |
shlibpath_var=LD_LIBRARY_PATH |
|
12727 |
case $host_os in |
|
12728 |
freebsd2*) |
|
12729 |
shlibpath_overrides_runpath=yes |
|
12730 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12731 |
freebsd3.[01]* | freebsdelf3.[01]*) |
1
by Ross Burton
Import upstream version 0.10 |
12732 |
shlibpath_overrides_runpath=yes |
12733 |
hardcode_into_libs=yes |
|
12734 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12735 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12736 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
1
by Ross Burton
Import upstream version 0.10 |
12737 |
shlibpath_overrides_runpath=no |
12738 |
hardcode_into_libs=yes |
|
12739 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12740 |
freebsd*) # from 4.6 on |
12741 |
shlibpath_overrides_runpath=yes |
|
12742 |
hardcode_into_libs=yes |
|
12743 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
12744 |
esac |
12745 |
;; |
|
12746 |
||
12747 |
gnu*) |
|
12748 |
version_type=linux |
|
12749 |
need_lib_prefix=no |
|
12750 |
need_version=no |
|
12751 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
12752 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12753 |
shlibpath_var=LD_LIBRARY_PATH |
|
12754 |
hardcode_into_libs=yes |
|
12755 |
;; |
|
12756 |
||
12757 |
hpux9* | hpux10* | hpux11*) |
|
12758 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
12759 |
# link against other versions. |
|
12760 |
version_type=sunos |
|
12761 |
need_lib_prefix=no |
|
12762 |
need_version=no |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12763 |
case $host_cpu in |
1
by Ross Burton
Import upstream version 0.10 |
12764 |
ia64*) |
12765 |
shrext_cmds='.so' |
|
12766 |
hardcode_into_libs=yes |
|
12767 |
dynamic_linker="$host_os dld.so" |
|
12768 |
shlibpath_var=LD_LIBRARY_PATH |
|
12769 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
12770 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12771 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12772 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
12773 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
12774 |
else |
|
12775 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
12776 |
fi |
|
12777 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
12778 |
;; |
|
12779 |
hppa*64*) |
|
12780 |
shrext_cmds='.sl' |
|
12781 |
hardcode_into_libs=yes |
|
12782 |
dynamic_linker="$host_os dld.sl" |
|
12783 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
12784 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
12785 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12786 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12787 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
12788 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
12789 |
;; |
|
12790 |
*) |
|
12791 |
shrext_cmds='.sl' |
|
12792 |
dynamic_linker="$host_os dld.sl" |
|
12793 |
shlibpath_var=SHLIB_PATH |
|
12794 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
12795 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12796 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12797 |
;; |
|
12798 |
esac |
|
12799 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
12800 |
postinstall_cmds='chmod 555 $lib' |
|
12801 |
;; |
|
12802 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12803 |
interix3*) |
12804 |
version_type=linux |
|
12805 |
need_lib_prefix=no |
|
12806 |
need_version=no |
|
12807 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
12808 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12809 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
12810 |
shlibpath_var=LD_LIBRARY_PATH |
|
12811 |
shlibpath_overrides_runpath=no |
|
12812 |
hardcode_into_libs=yes |
|
12813 |
;; |
|
12814 |
||
1
by Ross Burton
Import upstream version 0.10 |
12815 |
irix5* | irix6* | nonstopux*) |
12816 |
case $host_os in |
|
12817 |
nonstopux*) version_type=nonstopux ;; |
|
12818 |
*) |
|
12819 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
12820 |
version_type=linux |
|
12821 |
else |
|
12822 |
version_type=irix |
|
12823 |
fi ;; |
|
12824 |
esac |
|
12825 |
need_lib_prefix=no |
|
12826 |
need_version=no |
|
12827 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12828 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
12829 |
case $host_os in |
|
12830 |
irix5* | nonstopux*) |
|
12831 |
libsuff= shlibsuff= |
|
12832 |
;; |
|
12833 |
*) |
|
12834 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
12835 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
12836 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
12837 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
12838 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
12839 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
12840 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
12841 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
12842 |
esac |
|
12843 |
;; |
|
12844 |
esac |
|
12845 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
12846 |
shlibpath_overrides_runpath=no |
|
12847 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
12848 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
12849 |
hardcode_into_libs=yes |
|
12850 |
;; |
|
12851 |
||
12852 |
# No shared lib support for Linux oldld, aout, or coff. |
|
12853 |
linux*oldld* | linux*aout* | linux*coff*) |
|
12854 |
dynamic_linker=no |
|
12855 |
;; |
|
12856 |
||
12857 |
# This must be Linux ELF. |
|
12858 |
linux*) |
|
12859 |
version_type=linux |
|
12860 |
need_lib_prefix=no |
|
12861 |
need_version=no |
|
12862 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12863 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12864 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
12865 |
shlibpath_var=LD_LIBRARY_PATH |
|
12866 |
shlibpath_overrides_runpath=no |
|
12867 |
# This implies no fast_install, which is unacceptable. |
|
12868 |
# Some rework will be needed to allow for fast_install |
|
12869 |
# before this can be enabled. |
|
12870 |
hardcode_into_libs=yes |
|
12871 |
||
12872 |
# find out which ABI we are using |
|
12873 |
libsuff= |
|
12874 |
case "$host_cpu" in |
|
12875 |
x86_64*|s390x*|powerpc64*) |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
12876 |
echo '#line 12876 "configure"' > conftest.$ac_ext |
1
by Ross Burton
Import upstream version 0.10 |
12877 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12878 |
(eval $ac_compile) 2>&5 |
|
12879 |
ac_status=$? |
|
12880 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12881 |
(exit $ac_status); }; then |
|
12882 |
case `/usr/bin/file conftest.$ac_objext` in |
|
12883 |
*64-bit*) |
|
12884 |
libsuff=64 |
|
12885 |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
|
12886 |
;; |
|
12887 |
esac |
|
12888 |
fi |
|
12889 |
rm -rf conftest* |
|
12890 |
;; |
|
12891 |
esac |
|
12892 |
||
12893 |
# Append ld.so.conf contents to the search path |
|
12894 |
if test -f /etc/ld.so.conf; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
12895 |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
1
by Ross Burton
Import upstream version 0.10 |
12896 |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
12897 |
fi |
|
12898 |
||
12899 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
12900 |
# powerpc, because MkLinux only supported shared libraries with the |
|
12901 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
12902 |
# most powerpc-linux boxes support dynamic linking these days and |
|
12903 |
# people can always --disable-shared, the test was removed, and we |
|
12904 |
# assume the GNU/Linux dynamic linker is in use. |
|
12905 |
dynamic_linker='GNU/Linux ld.so' |
|
12906 |
;; |
|
12907 |
||
12908 |
knetbsd*-gnu) |
|
12909 |
version_type=linux |
|
12910 |
need_lib_prefix=no |
|
12911 |
need_version=no |
|
12912 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
12913 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12914 |
shlibpath_var=LD_LIBRARY_PATH |
|
12915 |
shlibpath_overrides_runpath=no |
|
12916 |
hardcode_into_libs=yes |
|
12917 |
dynamic_linker='GNU ld.so' |
|
12918 |
;; |
|
12919 |
||
12920 |
netbsd*) |
|
12921 |
version_type=sunos |
|
12922 |
need_lib_prefix=no |
|
12923 |
need_version=no |
|
12924 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
12925 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
12926 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
12927 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
12928 |
else |
|
12929 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
12930 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12931 |
dynamic_linker='NetBSD ld.elf_so' |
|
12932 |
fi |
|
12933 |
shlibpath_var=LD_LIBRARY_PATH |
|
12934 |
shlibpath_overrides_runpath=yes |
|
12935 |
hardcode_into_libs=yes |
|
12936 |
;; |
|
12937 |
||
12938 |
newsos6) |
|
12939 |
version_type=linux |
|
12940 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12941 |
shlibpath_var=LD_LIBRARY_PATH |
|
12942 |
shlibpath_overrides_runpath=yes |
|
12943 |
;; |
|
12944 |
||
12945 |
nto-qnx*) |
|
12946 |
version_type=linux |
|
12947 |
need_lib_prefix=no |
|
12948 |
need_version=no |
|
12949 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12950 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12951 |
shlibpath_var=LD_LIBRARY_PATH |
|
12952 |
shlibpath_overrides_runpath=yes |
|
12953 |
;; |
|
12954 |
||
12955 |
openbsd*) |
|
12956 |
version_type=sunos |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12957 |
sys_lib_dlsearch_path_spec="/usr/lib" |
1
by Ross Burton
Import upstream version 0.10 |
12958 |
need_lib_prefix=no |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
12959 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
12960 |
case $host_os in |
|
12961 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
12962 |
*) need_version=no ;; |
|
12963 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
12964 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12965 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
12966 |
shlibpath_var=LD_LIBRARY_PATH |
|
12967 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
12968 |
case $host_os in |
|
12969 |
openbsd2.[89] | openbsd2.[89].*) |
|
12970 |
shlibpath_overrides_runpath=no |
|
12971 |
;; |
|
12972 |
*) |
|
12973 |
shlibpath_overrides_runpath=yes |
|
12974 |
;; |
|
12975 |
esac |
|
12976 |
else |
|
12977 |
shlibpath_overrides_runpath=yes |
|
12978 |
fi |
|
12979 |
;; |
|
12980 |
||
12981 |
os2*) |
|
12982 |
libname_spec='$name' |
|
12983 |
shrext_cmds=".dll" |
|
12984 |
need_lib_prefix=no |
|
12985 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
12986 |
dynamic_linker='OS/2 ld.exe' |
|
12987 |
shlibpath_var=LIBPATH |
|
12988 |
;; |
|
12989 |
||
12990 |
osf3* | osf4* | osf5*) |
|
12991 |
version_type=osf |
|
12992 |
need_lib_prefix=no |
|
12993 |
need_version=no |
|
12994 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12995 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12996 |
shlibpath_var=LD_LIBRARY_PATH |
|
12997 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
12998 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
12999 |
;; |
|
13000 |
||
13001 |
solaris*) |
|
13002 |
version_type=linux |
|
13003 |
need_lib_prefix=no |
|
13004 |
need_version=no |
|
13005 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13006 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13007 |
shlibpath_var=LD_LIBRARY_PATH |
|
13008 |
shlibpath_overrides_runpath=yes |
|
13009 |
hardcode_into_libs=yes |
|
13010 |
# ldd complains unless libraries are executable |
|
13011 |
postinstall_cmds='chmod +x $lib' |
|
13012 |
;; |
|
13013 |
||
13014 |
sunos4*) |
|
13015 |
version_type=sunos |
|
13016 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
13017 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
13018 |
shlibpath_var=LD_LIBRARY_PATH |
|
13019 |
shlibpath_overrides_runpath=yes |
|
13020 |
if test "$with_gnu_ld" = yes; then |
|
13021 |
need_lib_prefix=no |
|
13022 |
fi |
|
13023 |
need_version=yes |
|
13024 |
;; |
|
13025 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13026 |
sysv4 | sysv4.3*) |
1
by Ross Burton
Import upstream version 0.10 |
13027 |
version_type=linux |
13028 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13029 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13030 |
shlibpath_var=LD_LIBRARY_PATH |
|
13031 |
case $host_vendor in |
|
13032 |
sni) |
|
13033 |
shlibpath_overrides_runpath=no |
|
13034 |
need_lib_prefix=no |
|
13035 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
13036 |
runpath_var=LD_RUN_PATH |
|
13037 |
;; |
|
13038 |
siemens) |
|
13039 |
need_lib_prefix=no |
|
13040 |
;; |
|
13041 |
motorola) |
|
13042 |
need_lib_prefix=no |
|
13043 |
need_version=no |
|
13044 |
shlibpath_overrides_runpath=no |
|
13045 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
13046 |
;; |
|
13047 |
esac |
|
13048 |
;; |
|
13049 |
||
13050 |
sysv4*MP*) |
|
13051 |
if test -d /usr/nec ;then |
|
13052 |
version_type=linux |
|
13053 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
13054 |
soname_spec='$libname${shared_ext}.$major' |
|
13055 |
shlibpath_var=LD_LIBRARY_PATH |
|
13056 |
fi |
|
13057 |
;; |
|
13058 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13059 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13060 |
version_type=freebsd-elf |
|
13061 |
need_lib_prefix=no |
|
13062 |
need_version=no |
|
13063 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
13064 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13065 |
shlibpath_var=LD_LIBRARY_PATH |
|
13066 |
hardcode_into_libs=yes |
|
13067 |
if test "$with_gnu_ld" = yes; then |
|
13068 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
13069 |
shlibpath_overrides_runpath=no |
|
13070 |
else |
|
13071 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
13072 |
shlibpath_overrides_runpath=yes |
|
13073 |
case $host_os in |
|
13074 |
sco3.2v5*) |
|
13075 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
13076 |
;; |
|
13077 |
esac |
|
13078 |
fi |
|
13079 |
sys_lib_dlsearch_path_spec='/usr/lib' |
|
13080 |
;; |
|
13081 |
||
1
by Ross Burton
Import upstream version 0.10 |
13082 |
uts4*) |
13083 |
version_type=linux |
|
13084 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13085 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13086 |
shlibpath_var=LD_LIBRARY_PATH |
|
13087 |
;; |
|
13088 |
||
13089 |
*) |
|
13090 |
dynamic_linker=no |
|
13091 |
;; |
|
13092 |
esac |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13093 |
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13094 |
echo "${ECHO_T}$dynamic_linker" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
13095 |
test "$dynamic_linker" = no && can_build_shared=no |
13096 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13097 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13098 |
if test "$GCC" = yes; then |
|
13099 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
13100 |
fi |
|
13101 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13102 |
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13103 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
13104 |
hardcode_action_CXX= |
13105 |
if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
|
13106 |
test -n "$runpath_var_CXX" || \ |
|
13107 |
test "X$hardcode_automatic_CXX" = "Xyes" ; then |
|
13108 |
||
13109 |
# We can hardcode non-existant directories. |
|
13110 |
if test "$hardcode_direct_CXX" != no && |
|
13111 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
13112 |
# have to relink, otherwise we might link with an installed library |
|
13113 |
# when we should be linking with a yet-to-be-installed one |
|
13114 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
|
13115 |
test "$hardcode_minus_L_CXX" != no; then |
|
13116 |
# Linking always hardcodes the temporary library directory. |
|
13117 |
hardcode_action_CXX=relink |
|
13118 |
else |
|
13119 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
13120 |
hardcode_action_CXX=immediate |
|
13121 |
fi |
|
13122 |
else |
|
13123 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
13124 |
# directories. |
|
13125 |
hardcode_action_CXX=unsupported |
|
13126 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13127 |
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13128 |
echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
13129 |
|
13130 |
if test "$hardcode_action_CXX" = relink; then |
|
13131 |
# Fast installation is not supported |
|
13132 |
enable_fast_install=no |
|
13133 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
13134 |
test "$enable_shared" = no; then |
|
13135 |
# Fast installation is not necessary |
|
13136 |
enable_fast_install=needless |
|
13137 |
fi |
|
13138 |
||
13139 |
||
13140 |
# The else clause should only fire when bootstrapping the |
|
13141 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
13142 |
# with your package, and you will get complaints that there are |
|
13143 |
# no rules to generate ltmain.sh. |
|
13144 |
if test -f "$ltmain"; then |
|
13145 |
# See if we are running on zsh, and set the options which allow our commands through |
|
13146 |
# without removal of \ escapes. |
|
13147 |
if test -n "${ZSH_VERSION+set}" ; then |
|
13148 |
setopt NO_GLOB_SUBST |
|
13149 |
fi |
|
13150 |
# Now quote all the things that may contain metacharacters while being |
|
13151 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
13152 |
# variables and quote the copies for generation of the libtool script. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13153 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
1
by Ross Burton
Import upstream version 0.10 |
13154 |
SED SHELL STRIP \ |
13155 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
13156 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
13157 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
13158 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
13159 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
13160 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
13161 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
13162 |
compiler_CXX \ |
|
13163 |
CC_CXX \ |
|
13164 |
LD_CXX \ |
|
13165 |
lt_prog_compiler_wl_CXX \ |
|
13166 |
lt_prog_compiler_pic_CXX \ |
|
13167 |
lt_prog_compiler_static_CXX \ |
|
13168 |
lt_prog_compiler_no_builtin_flag_CXX \ |
|
13169 |
export_dynamic_flag_spec_CXX \ |
|
13170 |
thread_safe_flag_spec_CXX \ |
|
13171 |
whole_archive_flag_spec_CXX \ |
|
13172 |
enable_shared_with_static_runtimes_CXX \ |
|
13173 |
old_archive_cmds_CXX \ |
|
13174 |
old_archive_from_new_cmds_CXX \ |
|
13175 |
predep_objects_CXX \ |
|
13176 |
postdep_objects_CXX \ |
|
13177 |
predeps_CXX \ |
|
13178 |
postdeps_CXX \ |
|
13179 |
compiler_lib_search_path_CXX \ |
|
13180 |
archive_cmds_CXX \ |
|
13181 |
archive_expsym_cmds_CXX \ |
|
13182 |
postinstall_cmds_CXX \ |
|
13183 |
postuninstall_cmds_CXX \ |
|
13184 |
old_archive_from_expsyms_cmds_CXX \ |
|
13185 |
allow_undefined_flag_CXX \ |
|
13186 |
no_undefined_flag_CXX \ |
|
13187 |
export_symbols_cmds_CXX \ |
|
13188 |
hardcode_libdir_flag_spec_CXX \ |
|
13189 |
hardcode_libdir_flag_spec_ld_CXX \ |
|
13190 |
hardcode_libdir_separator_CXX \ |
|
13191 |
hardcode_automatic_CXX \ |
|
13192 |
module_cmds_CXX \ |
|
13193 |
module_expsym_cmds_CXX \ |
|
13194 |
lt_cv_prog_compiler_c_o_CXX \ |
|
13195 |
exclude_expsyms_CXX \ |
|
13196 |
include_expsyms_CXX; do |
|
13197 |
||
13198 |
case $var in |
|
13199 |
old_archive_cmds_CXX | \ |
|
13200 |
old_archive_from_new_cmds_CXX | \ |
|
13201 |
archive_cmds_CXX | \ |
|
13202 |
archive_expsym_cmds_CXX | \ |
|
13203 |
module_cmds_CXX | \ |
|
13204 |
module_expsym_cmds_CXX | \ |
|
13205 |
old_archive_from_expsyms_cmds_CXX | \ |
|
13206 |
export_symbols_cmds_CXX | \ |
|
13207 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
13208 |
postinstall_cmds | postuninstall_cmds | \ |
|
13209 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
13210 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
13211 |
# Double-quote double-evaled strings. |
|
13212 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
13213 |
;; |
|
13214 |
*) |
|
13215 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
13216 |
;; |
|
13217 |
esac |
|
13218 |
done |
|
13219 |
||
13220 |
case $lt_echo in |
|
13221 |
*'\$0 --fallback-echo"') |
|
13222 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
13223 |
;; |
|
13224 |
esac |
|
13225 |
||
13226 |
cfgfile="$ofile" |
|
13227 |
||
13228 |
cat <<__EOF__ >> "$cfgfile" |
|
13229 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
13230 |
||
13231 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
13232 |
||
13233 |
# Shell to use when invoking shell scripts. |
|
13234 |
SHELL=$lt_SHELL |
|
13235 |
||
13236 |
# Whether or not to build shared libraries. |
|
13237 |
build_libtool_libs=$enable_shared |
|
13238 |
||
13239 |
# Whether or not to build static libraries. |
|
13240 |
build_old_libs=$enable_static |
|
13241 |
||
13242 |
# Whether or not to add -lc for building shared libraries. |
|
13243 |
build_libtool_need_lc=$archive_cmds_need_lc_CXX |
|
13244 |
||
13245 |
# Whether or not to disallow shared libs when runtime libs are static |
|
13246 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
|
13247 |
||
13248 |
# Whether or not to optimize for fast installation. |
|
13249 |
fast_install=$enable_fast_install |
|
13250 |
||
13251 |
# The host system. |
|
13252 |
host_alias=$host_alias |
|
13253 |
host=$host |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13254 |
host_os=$host_os |
13255 |
||
13256 |
# The build system. |
|
13257 |
build_alias=$build_alias |
|
13258 |
build=$build |
|
13259 |
build_os=$build_os |
|
1
by Ross Burton
Import upstream version 0.10 |
13260 |
|
13261 |
# An echo program that does not interpret backslashes. |
|
13262 |
echo=$lt_echo |
|
13263 |
||
13264 |
# The archiver. |
|
13265 |
AR=$lt_AR |
|
13266 |
AR_FLAGS=$lt_AR_FLAGS |
|
13267 |
||
13268 |
# A C compiler. |
|
13269 |
LTCC=$lt_LTCC |
|
13270 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13271 |
# LTCC compiler flags. |
13272 |
LTCFLAGS=$lt_LTCFLAGS |
|
13273 |
||
1
by Ross Burton
Import upstream version 0.10 |
13274 |
# A language-specific compiler. |
13275 |
CC=$lt_compiler_CXX |
|
13276 |
||
13277 |
# Is the compiler the GNU C compiler? |
|
13278 |
with_gcc=$GCC_CXX |
|
13279 |
||
13280 |
# An ERE matcher. |
|
13281 |
EGREP=$lt_EGREP |
|
13282 |
||
13283 |
# The linker used to build libraries. |
|
13284 |
LD=$lt_LD_CXX |
|
13285 |
||
13286 |
# Whether we need hard or soft links. |
|
13287 |
LN_S=$lt_LN_S |
|
13288 |
||
13289 |
# A BSD-compatible nm program. |
|
13290 |
NM=$lt_NM |
|
13291 |
||
13292 |
# A symbol stripping program |
|
13293 |
STRIP=$lt_STRIP |
|
13294 |
||
13295 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
13296 |
MAGIC_CMD=$MAGIC_CMD |
|
13297 |
||
13298 |
# Used on cygwin: DLL creation program. |
|
13299 |
DLLTOOL="$DLLTOOL" |
|
13300 |
||
13301 |
# Used on cygwin: object dumper. |
|
13302 |
OBJDUMP="$OBJDUMP" |
|
13303 |
||
13304 |
# Used on cygwin: assembler. |
|
13305 |
AS="$AS" |
|
13306 |
||
13307 |
# The name of the directory that contains temporary libtool files. |
|
13308 |
objdir=$objdir |
|
13309 |
||
13310 |
# How to create reloadable object files. |
|
13311 |
reload_flag=$lt_reload_flag |
|
13312 |
reload_cmds=$lt_reload_cmds |
|
13313 |
||
13314 |
# How to pass a linker flag through the compiler. |
|
13315 |
wl=$lt_lt_prog_compiler_wl_CXX |
|
13316 |
||
13317 |
# Object file suffix (normally "o"). |
|
13318 |
objext="$ac_objext" |
|
13319 |
||
13320 |
# Old archive suffix (normally "a"). |
|
13321 |
libext="$libext" |
|
13322 |
||
13323 |
# Shared library suffix (normally ".so"). |
|
13324 |
shrext_cmds='$shrext_cmds' |
|
13325 |
||
13326 |
# Executable file suffix (normally ""). |
|
13327 |
exeext="$exeext" |
|
13328 |
||
13329 |
# Additional compiler flags for building library objects. |
|
13330 |
pic_flag=$lt_lt_prog_compiler_pic_CXX |
|
13331 |
pic_mode=$pic_mode |
|
13332 |
||
13333 |
# What is the maximum length of a command? |
|
13334 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
13335 |
||
13336 |
# Does compiler simultaneously support -c and -o options? |
|
13337 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
|
13338 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13339 |
# Must we lock files when doing compilation? |
1
by Ross Burton
Import upstream version 0.10 |
13340 |
need_locks=$lt_need_locks |
13341 |
||
13342 |
# Do we need the lib prefix for modules? |
|
13343 |
need_lib_prefix=$need_lib_prefix |
|
13344 |
||
13345 |
# Do we need a version for libraries? |
|
13346 |
need_version=$need_version |
|
13347 |
||
13348 |
# Whether dlopen is supported. |
|
13349 |
dlopen_support=$enable_dlopen |
|
13350 |
||
13351 |
# Whether dlopen of programs is supported. |
|
13352 |
dlopen_self=$enable_dlopen_self |
|
13353 |
||
13354 |
# Whether dlopen of statically linked programs is supported. |
|
13355 |
dlopen_self_static=$enable_dlopen_self_static |
|
13356 |
||
13357 |
# Compiler flag to prevent dynamic linking. |
|
13358 |
link_static_flag=$lt_lt_prog_compiler_static_CXX |
|
13359 |
||
13360 |
# Compiler flag to turn off builtin functions. |
|
13361 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
|
13362 |
||
13363 |
# Compiler flag to allow reflexive dlopens. |
|
13364 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
|
13365 |
||
13366 |
# Compiler flag to generate shared objects directly from archives. |
|
13367 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
|
13368 |
||
13369 |
# Compiler flag to generate thread-safe objects. |
|
13370 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
|
13371 |
||
13372 |
# Library versioning type. |
|
13373 |
version_type=$version_type |
|
13374 |
||
13375 |
# Format of library name prefix. |
|
13376 |
libname_spec=$lt_libname_spec |
|
13377 |
||
13378 |
# List of archive names. First name is the real one, the rest are links. |
|
13379 |
# The last name is the one that the linker finds with -lNAME. |
|
13380 |
library_names_spec=$lt_library_names_spec |
|
13381 |
||
13382 |
# The coded name of the library, if different from the real name. |
|
13383 |
soname_spec=$lt_soname_spec |
|
13384 |
||
13385 |
# Commands used to build and install an old-style archive. |
|
13386 |
RANLIB=$lt_RANLIB |
|
13387 |
old_archive_cmds=$lt_old_archive_cmds_CXX |
|
13388 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
13389 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
13390 |
||
13391 |
# Create an old-style archive from a shared archive. |
|
13392 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
|
13393 |
||
13394 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
13395 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
|
13396 |
||
13397 |
# Commands used to build and install a shared archive. |
|
13398 |
archive_cmds=$lt_archive_cmds_CXX |
|
13399 |
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
|
13400 |
postinstall_cmds=$lt_postinstall_cmds |
|
13401 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
13402 |
||
13403 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
13404 |
module_cmds=$lt_module_cmds_CXX |
|
13405 |
module_expsym_cmds=$lt_module_expsym_cmds_CXX |
|
13406 |
||
13407 |
# Commands to strip libraries. |
|
13408 |
old_striplib=$lt_old_striplib |
|
13409 |
striplib=$lt_striplib |
|
13410 |
||
13411 |
# Dependencies to place before the objects being linked to create a |
|
13412 |
# shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13413 |
predep_objects=$lt_predep_objects_CXX |
1
by Ross Burton
Import upstream version 0.10 |
13414 |
|
13415 |
# Dependencies to place after the objects being linked to create a |
|
13416 |
# shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13417 |
postdep_objects=$lt_postdep_objects_CXX |
1
by Ross Burton
Import upstream version 0.10 |
13418 |
|
13419 |
# Dependencies to place before the objects being linked to create a |
|
13420 |
# shared library. |
|
13421 |
predeps=$lt_predeps_CXX |
|
13422 |
||
13423 |
# Dependencies to place after the objects being linked to create a |
|
13424 |
# shared library. |
|
13425 |
postdeps=$lt_postdeps_CXX |
|
13426 |
||
13427 |
# The library search path used internally by the compiler when linking |
|
13428 |
# a shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13429 |
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
1
by Ross Burton
Import upstream version 0.10 |
13430 |
|
13431 |
# Method to check whether dependent libraries are shared objects. |
|
13432 |
deplibs_check_method=$lt_deplibs_check_method |
|
13433 |
||
13434 |
# Command to use when deplibs_check_method == file_magic. |
|
13435 |
file_magic_cmd=$lt_file_magic_cmd |
|
13436 |
||
13437 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
13438 |
allow_undefined_flag=$lt_allow_undefined_flag_CXX |
|
13439 |
||
13440 |
# Flag that forces no undefined symbols. |
|
13441 |
no_undefined_flag=$lt_no_undefined_flag_CXX |
|
13442 |
||
13443 |
# Commands used to finish a libtool library installation in a directory. |
|
13444 |
finish_cmds=$lt_finish_cmds |
|
13445 |
||
13446 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
13447 |
finish_eval=$lt_finish_eval |
|
13448 |
||
13449 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
13450 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
13451 |
||
13452 |
# Transform the output of nm in a proper C declaration |
|
13453 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
13454 |
||
13455 |
# Transform the output of nm in a C name address pair |
|
13456 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
13457 |
||
13458 |
# This is the shared library runtime path variable. |
|
13459 |
runpath_var=$runpath_var |
|
13460 |
||
13461 |
# This is the shared library path variable. |
|
13462 |
shlibpath_var=$shlibpath_var |
|
13463 |
||
13464 |
# Is shlibpath searched before the hard-coded library search path? |
|
13465 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
13466 |
||
13467 |
# How to hardcode a shared library path into an executable. |
|
13468 |
hardcode_action=$hardcode_action_CXX |
|
13469 |
||
13470 |
# Whether we should hardcode library paths into libraries. |
|
13471 |
hardcode_into_libs=$hardcode_into_libs |
|
13472 |
||
13473 |
# Flag to hardcode \$libdir into a binary during linking. |
|
13474 |
# This must work even if \$libdir does not exist. |
|
13475 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
|
13476 |
||
13477 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
13478 |
# a binary during linking. This must work even if \$libdir does |
|
13479 |
# not exist. |
|
13480 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
|
13481 |
||
13482 |
# Whether we need a single -rpath flag with a separated argument. |
|
13483 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
|
13484 |
||
13485 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
13486 |
# resulting binary. |
|
13487 |
hardcode_direct=$hardcode_direct_CXX |
|
13488 |
||
13489 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
13490 |
# resulting binary. |
|
13491 |
hardcode_minus_L=$hardcode_minus_L_CXX |
|
13492 |
||
13493 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
13494 |
# the resulting binary. |
|
13495 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
|
13496 |
||
13497 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
13498 |
# and all subsequent libraries and executables linked against it. |
|
13499 |
hardcode_automatic=$hardcode_automatic_CXX |
|
13500 |
||
13501 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
13502 |
# restored at relink time. |
|
13503 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
13504 |
||
13505 |
# Whether libtool must link a program against all its dependency libraries. |
|
13506 |
link_all_deplibs=$link_all_deplibs_CXX |
|
13507 |
||
13508 |
# Compile-time system search path for libraries |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13509 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
1
by Ross Burton
Import upstream version 0.10 |
13510 |
|
13511 |
# Run-time system search path for libraries |
|
13512 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
13513 |
||
13514 |
# Fix the shell variable \$srcfile for the compiler. |
|
13515 |
fix_srcfile_path="$fix_srcfile_path_CXX" |
|
13516 |
||
13517 |
# Set to yes if exported symbols are required. |
|
13518 |
always_export_symbols=$always_export_symbols_CXX |
|
13519 |
||
13520 |
# The commands to list exported symbols. |
|
13521 |
export_symbols_cmds=$lt_export_symbols_cmds_CXX |
|
13522 |
||
13523 |
# The commands to extract the exported symbol list from a shared archive. |
|
13524 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
13525 |
||
13526 |
# Symbols that should not be listed in the preloaded symbols. |
|
13527 |
exclude_expsyms=$lt_exclude_expsyms_CXX |
|
13528 |
||
13529 |
# Symbols that must always be exported. |
|
13530 |
include_expsyms=$lt_include_expsyms_CXX |
|
13531 |
||
13532 |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
13533 |
||
13534 |
__EOF__ |
|
13535 |
||
13536 |
||
13537 |
else |
|
13538 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
13539 |
# `config.status --recheck' to rerun these tests and create the |
|
13540 |
# libtool script then. |
|
13541 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
13542 |
if test -f "$ltmain_in"; then |
|
13543 |
test -f Makefile && make "$ltmain" |
|
13544 |
fi |
|
13545 |
fi |
|
13546 |
||
13547 |
||
13548 |
ac_ext=c |
|
13549 |
ac_cpp='$CPP $CPPFLAGS' |
|
13550 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
13551 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
13552 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
13553 |
||
13554 |
CC=$lt_save_CC |
|
13555 |
LDCXX=$LD |
|
13556 |
LD=$lt_save_LD |
|
13557 |
GCC=$lt_save_GCC |
|
13558 |
with_gnu_ldcxx=$with_gnu_ld |
|
13559 |
with_gnu_ld=$lt_save_with_gnu_ld |
|
13560 |
lt_cv_path_LDCXX=$lt_cv_path_LD |
|
13561 |
lt_cv_path_LD=$lt_save_path_LD |
|
13562 |
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
|
13563 |
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
|
13564 |
||
13565 |
else |
|
13566 |
tagname="" |
|
13567 |
fi |
|
13568 |
;; |
|
13569 |
||
13570 |
F77) |
|
13571 |
if test -n "$F77" && test "X$F77" != "Xno"; then |
|
13572 |
||
13573 |
ac_ext=f |
|
13574 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
13575 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
13576 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
13577 |
||
13578 |
||
13579 |
archive_cmds_need_lc_F77=no |
|
13580 |
allow_undefined_flag_F77= |
|
13581 |
always_export_symbols_F77=no |
|
13582 |
archive_expsym_cmds_F77= |
|
13583 |
export_dynamic_flag_spec_F77= |
|
13584 |
hardcode_direct_F77=no |
|
13585 |
hardcode_libdir_flag_spec_F77= |
|
13586 |
hardcode_libdir_flag_spec_ld_F77= |
|
13587 |
hardcode_libdir_separator_F77= |
|
13588 |
hardcode_minus_L_F77=no |
|
13589 |
hardcode_automatic_F77=no |
|
13590 |
module_cmds_F77= |
|
13591 |
module_expsym_cmds_F77= |
|
13592 |
link_all_deplibs_F77=unknown |
|
13593 |
old_archive_cmds_F77=$old_archive_cmds |
|
13594 |
no_undefined_flag_F77= |
|
13595 |
whole_archive_flag_spec_F77= |
|
13596 |
enable_shared_with_static_runtimes_F77=no |
|
13597 |
||
13598 |
# Source file extension for f77 test sources. |
|
13599 |
ac_ext=f |
|
13600 |
||
13601 |
# Object file extension for compiled f77 test sources. |
|
13602 |
objext=o |
|
13603 |
objext_F77=$objext |
|
13604 |
||
13605 |
# Code to be used in simple compile tests |
|
13606 |
lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
|
13607 |
||
13608 |
# Code to be used in simple link tests |
|
13609 |
lt_simple_link_test_code=" program t\n end\n" |
|
13610 |
||
13611 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
13612 |
||
13613 |
# If no C compiler was specified, use CC. |
|
13614 |
LTCC=${LTCC-"$CC"} |
|
13615 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13616 |
# If no C compiler flags were specified, use CFLAGS. |
13617 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
13618 |
||
1
by Ross Burton
Import upstream version 0.10 |
13619 |
# Allow CC to be a program name with arguments. |
13620 |
compiler=$CC |
|
13621 |
||
13622 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13623 |
# save warnings/boilerplate of simple test code |
13624 |
ac_outfile=conftest.$ac_objext |
|
13625 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
13626 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
13627 |
_lt_compiler_boilerplate=`cat conftest.err` |
|
13628 |
$rm conftest* |
|
13629 |
||
13630 |
ac_outfile=conftest.$ac_objext |
|
13631 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
13632 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
13633 |
_lt_linker_boilerplate=`cat conftest.err` |
|
13634 |
$rm conftest* |
|
13635 |
||
13636 |
||
1
by Ross Burton
Import upstream version 0.10 |
13637 |
# Allow CC to be a program name with arguments. |
13638 |
lt_save_CC="$CC" |
|
13639 |
CC=${F77-"f77"} |
|
13640 |
compiler=$CC |
|
13641 |
compiler_F77=$CC |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13642 |
for cc_temp in $compiler""; do |
13643 |
case $cc_temp in |
|
13644 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
13645 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
13646 |
\-*) ;; |
|
13647 |
*) break;; |
|
13648 |
esac |
|
13649 |
done |
|
13650 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
13651 |
||
1
by Ross Burton
Import upstream version 0.10 |
13652 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13653 |
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13654 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
|
13655 |
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
13656 |
echo "${ECHO_T}$can_build_shared" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
13657 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13658 |
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13659 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
13660 |
test "$can_build_shared" = "no" && enable_shared=no |
13661 |
||
13662 |
# On AIX, shared libraries and static libraries use the same namespace, and |
|
13663 |
# are all built from PIC. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13664 |
case $host_os in |
1
by Ross Burton
Import upstream version 0.10 |
13665 |
aix3*) |
13666 |
test "$enable_shared" = yes && enable_static=no |
|
13667 |
if test -n "$RANLIB"; then |
|
13668 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
13669 |
postinstall_cmds='$RANLIB $lib' |
|
13670 |
fi |
|
13671 |
;; |
|
13672 |
aix4* | aix5*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13673 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13674 |
test "$enable_shared" = yes && enable_static=no |
|
13675 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
13676 |
;; |
13677 |
esac |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13678 |
{ echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13679 |
echo "${ECHO_T}$enable_shared" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
13680 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13681 |
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13682 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
13683 |
# Make sure either enable_shared or enable_static is yes. |
13684 |
test "$enable_shared" = yes || enable_static=yes |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13685 |
{ echo "$as_me:$LINENO: result: $enable_static" >&5 |
13686 |
echo "${ECHO_T}$enable_static" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
13687 |
|
13688 |
GCC_F77="$G77" |
|
13689 |
LD_F77="$LD" |
|
13690 |
||
13691 |
lt_prog_compiler_wl_F77= |
|
13692 |
lt_prog_compiler_pic_F77= |
|
13693 |
lt_prog_compiler_static_F77= |
|
13694 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13695 |
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13696 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
13697 |
|
13698 |
if test "$GCC" = yes; then |
|
13699 |
lt_prog_compiler_wl_F77='-Wl,' |
|
13700 |
lt_prog_compiler_static_F77='-static' |
|
13701 |
||
13702 |
case $host_os in |
|
13703 |
aix*) |
|
13704 |
# All AIX code is PIC. |
|
13705 |
if test "$host_cpu" = ia64; then |
|
13706 |
# AIX 5 now supports IA64 processor |
|
13707 |
lt_prog_compiler_static_F77='-Bstatic' |
|
13708 |
fi |
|
13709 |
;; |
|
13710 |
||
13711 |
amigaos*) |
|
13712 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
13713 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
13714 |
# like `-m68040'. |
|
13715 |
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
|
13716 |
;; |
|
13717 |
||
13718 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
13719 |
# PIC is the default for these OSes. |
|
13720 |
;; |
|
13721 |
||
13722 |
mingw* | pw32* | os2*) |
|
13723 |
# This hack is so that the source file can tell whether it is being |
|
13724 |
# built for inclusion in a dll (and should export symbols for example). |
|
13725 |
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
13726 |
;; |
|
13727 |
||
13728 |
darwin* | rhapsody*) |
|
13729 |
# PIC is the default on this platform |
|
13730 |
# Common symbols not allowed in MH_DYLIB files |
|
13731 |
lt_prog_compiler_pic_F77='-fno-common' |
|
13732 |
;; |
|
13733 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13734 |
interix3*) |
13735 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
13736 |
# Instead, we relocate shared libraries at runtime. |
|
13737 |
;; |
|
13738 |
||
1
by Ross Burton
Import upstream version 0.10 |
13739 |
msdosdjgpp*) |
13740 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
|
13741 |
# on systems that don't support them. |
|
13742 |
lt_prog_compiler_can_build_shared_F77=no |
|
13743 |
enable_shared=no |
|
13744 |
;; |
|
13745 |
||
13746 |
sysv4*MP*) |
|
13747 |
if test -d /usr/nec; then |
|
13748 |
lt_prog_compiler_pic_F77=-Kconform_pic |
|
13749 |
fi |
|
13750 |
;; |
|
13751 |
||
13752 |
hpux*) |
|
13753 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
13754 |
# not for PA HP-UX. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13755 |
case $host_cpu in |
1
by Ross Burton
Import upstream version 0.10 |
13756 |
hppa*64*|ia64*) |
13757 |
# +Z the default |
|
13758 |
;; |
|
13759 |
*) |
|
13760 |
lt_prog_compiler_pic_F77='-fPIC' |
|
13761 |
;; |
|
13762 |
esac |
|
13763 |
;; |
|
13764 |
||
13765 |
*) |
|
13766 |
lt_prog_compiler_pic_F77='-fPIC' |
|
13767 |
;; |
|
13768 |
esac |
|
13769 |
else |
|
13770 |
# PORTME Check for flag to pass linker flags through the system compiler. |
|
13771 |
case $host_os in |
|
13772 |
aix*) |
|
13773 |
lt_prog_compiler_wl_F77='-Wl,' |
|
13774 |
if test "$host_cpu" = ia64; then |
|
13775 |
# AIX 5 now supports IA64 processor |
|
13776 |
lt_prog_compiler_static_F77='-Bstatic' |
|
13777 |
else |
|
13778 |
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
|
13779 |
fi |
|
13780 |
;; |
|
13781 |
darwin*) |
|
13782 |
# PIC is the default on this platform |
|
13783 |
# Common symbols not allowed in MH_DYLIB files |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13784 |
case $cc_basename in |
1
by Ross Burton
Import upstream version 0.10 |
13785 |
xlc*) |
13786 |
lt_prog_compiler_pic_F77='-qnocommon' |
|
13787 |
lt_prog_compiler_wl_F77='-Wl,' |
|
13788 |
;; |
|
13789 |
esac |
|
13790 |
;; |
|
13791 |
||
13792 |
mingw* | pw32* | os2*) |
|
13793 |
# This hack is so that the source file can tell whether it is being |
|
13794 |
# built for inclusion in a dll (and should export symbols for example). |
|
13795 |
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
13796 |
;; |
|
13797 |
||
13798 |
hpux9* | hpux10* | hpux11*) |
|
13799 |
lt_prog_compiler_wl_F77='-Wl,' |
|
13800 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
13801 |
# not for PA HP-UX. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13802 |
case $host_cpu in |
1
by Ross Burton
Import upstream version 0.10 |
13803 |
hppa*64*|ia64*) |
13804 |
# +Z the default |
|
13805 |
;; |
|
13806 |
*) |
|
13807 |
lt_prog_compiler_pic_F77='+Z' |
|
13808 |
;; |
|
13809 |
esac |
|
13810 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
13811 |
lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
|
13812 |
;; |
|
13813 |
||
13814 |
irix5* | irix6* | nonstopux*) |
|
13815 |
lt_prog_compiler_wl_F77='-Wl,' |
|
13816 |
# PIC (with -KPIC) is the default. |
|
13817 |
lt_prog_compiler_static_F77='-non_shared' |
|
13818 |
;; |
|
13819 |
||
13820 |
newsos6) |
|
13821 |
lt_prog_compiler_pic_F77='-KPIC' |
|
13822 |
lt_prog_compiler_static_F77='-Bstatic' |
|
13823 |
;; |
|
13824 |
||
13825 |
linux*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13826 |
case $cc_basename in |
1
by Ross Burton
Import upstream version 0.10 |
13827 |
icc* | ecc*) |
13828 |
lt_prog_compiler_wl_F77='-Wl,' |
|
13829 |
lt_prog_compiler_pic_F77='-KPIC' |
|
13830 |
lt_prog_compiler_static_F77='-static' |
|
13831 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13832 |
pgcc* | pgf77* | pgf90* | pgf95*) |
13833 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
|
13834 |
# which looks to be a dead project) |
|
13835 |
lt_prog_compiler_wl_F77='-Wl,' |
|
13836 |
lt_prog_compiler_pic_F77='-fpic' |
|
13837 |
lt_prog_compiler_static_F77='-Bstatic' |
|
13838 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
13839 |
ccc*) |
13840 |
lt_prog_compiler_wl_F77='-Wl,' |
|
13841 |
# All Alpha code is PIC. |
|
13842 |
lt_prog_compiler_static_F77='-non_shared' |
|
13843 |
;; |
|
13844 |
esac |
|
13845 |
;; |
|
13846 |
||
13847 |
osf3* | osf4* | osf5*) |
|
13848 |
lt_prog_compiler_wl_F77='-Wl,' |
|
13849 |
# All OSF/1 code is PIC. |
|
13850 |
lt_prog_compiler_static_F77='-non_shared' |
|
13851 |
;; |
|
13852 |
||
13853 |
solaris*) |
|
13854 |
lt_prog_compiler_pic_F77='-KPIC' |
|
13855 |
lt_prog_compiler_static_F77='-Bstatic' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13856 |
case $cc_basename in |
13857 |
f77* | f90* | f95*) |
|
13858 |
lt_prog_compiler_wl_F77='-Qoption ld ';; |
|
13859 |
*) |
|
13860 |
lt_prog_compiler_wl_F77='-Wl,';; |
|
13861 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
13862 |
;; |
13863 |
||
13864 |
sunos4*) |
|
13865 |
lt_prog_compiler_wl_F77='-Qoption ld ' |
|
13866 |
lt_prog_compiler_pic_F77='-PIC' |
|
13867 |
lt_prog_compiler_static_F77='-Bstatic' |
|
13868 |
;; |
|
13869 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13870 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
1
by Ross Burton
Import upstream version 0.10 |
13871 |
lt_prog_compiler_wl_F77='-Wl,' |
13872 |
lt_prog_compiler_pic_F77='-KPIC' |
|
13873 |
lt_prog_compiler_static_F77='-Bstatic' |
|
13874 |
;; |
|
13875 |
||
13876 |
sysv4*MP*) |
|
13877 |
if test -d /usr/nec ;then |
|
13878 |
lt_prog_compiler_pic_F77='-Kconform_pic' |
|
13879 |
lt_prog_compiler_static_F77='-Bstatic' |
|
13880 |
fi |
|
13881 |
;; |
|
13882 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13883 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
13884 |
lt_prog_compiler_wl_F77='-Wl,' |
|
13885 |
lt_prog_compiler_pic_F77='-KPIC' |
|
13886 |
lt_prog_compiler_static_F77='-Bstatic' |
|
13887 |
;; |
|
13888 |
||
13889 |
unicos*) |
|
13890 |
lt_prog_compiler_wl_F77='-Wl,' |
|
13891 |
lt_prog_compiler_can_build_shared_F77=no |
|
13892 |
;; |
|
13893 |
||
1
by Ross Burton
Import upstream version 0.10 |
13894 |
uts4*) |
13895 |
lt_prog_compiler_pic_F77='-pic' |
|
13896 |
lt_prog_compiler_static_F77='-Bstatic' |
|
13897 |
;; |
|
13898 |
||
13899 |
*) |
|
13900 |
lt_prog_compiler_can_build_shared_F77=no |
|
13901 |
;; |
|
13902 |
esac |
|
13903 |
fi |
|
13904 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13905 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13906 |
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
13907 |
|
13908 |
# |
|
13909 |
# Check to make sure the PIC flag actually works. |
|
13910 |
# |
|
13911 |
if test -n "$lt_prog_compiler_pic_F77"; then |
|
13912 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13913 |
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13914 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
13915 |
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13916 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13917 |
else |
|
13918 |
lt_prog_compiler_pic_works_F77=no |
|
13919 |
ac_outfile=conftest.$ac_objext |
|
13920 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
13921 |
lt_compiler_flag="$lt_prog_compiler_pic_F77" |
|
13922 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
13923 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
13924 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
13925 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
13926 |
# The option is referenced via a variable to avoid confusing sed. |
|
13927 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13928 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1
by Ross Burton
Import upstream version 0.10 |
13929 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13930 |
-e 's:$: $lt_compiler_flag:'` |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
13931 |
(eval echo "\"\$as_me:13931: $lt_compile\"" >&5) |
1
by Ross Burton
Import upstream version 0.10 |
13932 |
(eval "$lt_compile" 2>conftest.err) |
13933 |
ac_status=$? |
|
13934 |
cat conftest.err >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
13935 |
echo "$as_me:13935: \$? = $ac_status" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
13936 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
13937 |
# The compiler can only warn and ignore the option if not recognized |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13938 |
# So say no if there are warnings other than the usual output. |
13939 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
13940 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
13941 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
1
by Ross Burton
Import upstream version 0.10 |
13942 |
lt_prog_compiler_pic_works_F77=yes |
13943 |
fi |
|
13944 |
fi |
|
13945 |
$rm conftest* |
|
13946 |
||
13947 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13948 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13949 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
13950 |
|
13951 |
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
|
13952 |
case $lt_prog_compiler_pic_F77 in |
|
13953 |
"" | " "*) ;; |
|
13954 |
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
|
13955 |
esac |
|
13956 |
else |
|
13957 |
lt_prog_compiler_pic_F77= |
|
13958 |
lt_prog_compiler_can_build_shared_F77=no |
|
13959 |
fi |
|
13960 |
||
13961 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13962 |
case $host_os in |
1
by Ross Burton
Import upstream version 0.10 |
13963 |
# For platforms which do not support PIC, -DPIC is meaningless: |
13964 |
*djgpp*) |
|
13965 |
lt_prog_compiler_pic_F77= |
|
13966 |
;; |
|
13967 |
*) |
|
13968 |
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
|
13969 |
;; |
|
13970 |
esac |
|
13971 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13972 |
# |
13973 |
# Check to make sure the static flag actually works. |
|
13974 |
# |
|
13975 |
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
13976 |
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13977 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
13978 |
if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
13979 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13980 |
else |
|
13981 |
lt_prog_compiler_static_works_F77=no |
|
13982 |
save_LDFLAGS="$LDFLAGS" |
|
13983 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
13984 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
13985 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
13986 |
# The linker can only warn and ignore the option if not recognized |
|
13987 |
# So say no if there are warnings |
|
13988 |
if test -s conftest.err; then |
|
13989 |
# Append any errors to the config.log. |
|
13990 |
cat conftest.err 1>&5 |
|
13991 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
13992 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
13993 |
if diff conftest.exp conftest.er2 >/dev/null; then |
|
13994 |
lt_prog_compiler_static_works_F77=yes |
|
13995 |
fi |
|
13996 |
else |
|
13997 |
lt_prog_compiler_static_works_F77=yes |
|
13998 |
fi |
|
13999 |
fi |
|
14000 |
$rm conftest* |
|
14001 |
LDFLAGS="$save_LDFLAGS" |
|
14002 |
||
14003 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
14004 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14005 |
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14006 |
|
14007 |
if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
|
14008 |
: |
|
14009 |
else |
|
14010 |
lt_prog_compiler_static_F77= |
|
14011 |
fi |
|
14012 |
||
14013 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
14014 |
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14015 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
14016 |
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14017 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
14018 |
else |
|
14019 |
lt_cv_prog_compiler_c_o_F77=no |
|
14020 |
$rm -r conftest 2>/dev/null |
|
14021 |
mkdir conftest |
|
14022 |
cd conftest |
|
14023 |
mkdir out |
|
14024 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
14025 |
||
14026 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
14027 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
14028 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
14029 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
14030 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
14031 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14032 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1
by Ross Burton
Import upstream version 0.10 |
14033 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14034 |
-e 's:$: $lt_compiler_flag:'` |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
14035 |
(eval echo "\"\$as_me:14035: $lt_compile\"" >&5) |
1
by Ross Burton
Import upstream version 0.10 |
14036 |
(eval "$lt_compile" 2>out/conftest.err) |
14037 |
ac_status=$? |
|
14038 |
cat out/conftest.err >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
14039 |
echo "$as_me:14039: \$? = $ac_status" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
14040 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14041 |
then |
|
14042 |
# The compiler can only warn and ignore the option if not recognized |
|
14043 |
# So say no if there are warnings |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14044 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14045 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
14046 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
1
by Ross Burton
Import upstream version 0.10 |
14047 |
lt_cv_prog_compiler_c_o_F77=yes |
14048 |
fi |
|
14049 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14050 |
chmod u+w . 2>&5 |
1
by Ross Burton
Import upstream version 0.10 |
14051 |
$rm conftest* |
14052 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
14053 |
# template instantiation |
|
14054 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
14055 |
$rm out/* && rmdir out |
|
14056 |
cd .. |
|
14057 |
rmdir conftest |
|
14058 |
$rm conftest* |
|
14059 |
||
14060 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
14061 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14062 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
14063 |
|
14064 |
||
14065 |
hard_links="nottested" |
|
14066 |
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
|
14067 |
# do not overwrite the value of need_locks provided by the user |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
14068 |
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14069 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
14070 |
hard_links=yes |
14071 |
$rm conftest* |
|
14072 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
14073 |
touch conftest.a |
|
14074 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
14075 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
14076 |
{ echo "$as_me:$LINENO: result: $hard_links" >&5 |
14077 |
echo "${ECHO_T}$hard_links" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
14078 |
if test "$hard_links" = no; then |
14079 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
14080 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
14081 |
need_locks=warn |
|
14082 |
fi |
|
14083 |
else |
|
14084 |
need_locks=no |
|
14085 |
fi |
|
14086 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
14087 |
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14088 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
14089 |
|
14090 |
runpath_var= |
|
14091 |
allow_undefined_flag_F77= |
|
14092 |
enable_shared_with_static_runtimes_F77=no |
|
14093 |
archive_cmds_F77= |
|
14094 |
archive_expsym_cmds_F77= |
|
14095 |
old_archive_From_new_cmds_F77= |
|
14096 |
old_archive_from_expsyms_cmds_F77= |
|
14097 |
export_dynamic_flag_spec_F77= |
|
14098 |
whole_archive_flag_spec_F77= |
|
14099 |
thread_safe_flag_spec_F77= |
|
14100 |
hardcode_libdir_flag_spec_F77= |
|
14101 |
hardcode_libdir_flag_spec_ld_F77= |
|
14102 |
hardcode_libdir_separator_F77= |
|
14103 |
hardcode_direct_F77=no |
|
14104 |
hardcode_minus_L_F77=no |
|
14105 |
hardcode_shlibpath_var_F77=unsupported |
|
14106 |
link_all_deplibs_F77=unknown |
|
14107 |
hardcode_automatic_F77=no |
|
14108 |
module_cmds_F77= |
|
14109 |
module_expsym_cmds_F77= |
|
14110 |
always_export_symbols_F77=no |
|
14111 |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
14112 |
# include_expsyms should be a list of space-separated symbols to be *always* |
|
14113 |
# included in the symbol list |
|
14114 |
include_expsyms_F77= |
|
14115 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
|
14116 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
14117 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
14118 |
# as well as any symbol that contains `d'. |
|
14119 |
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
|
14120 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
14121 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
14122 |
# the symbol is explicitly referenced. Since portable code cannot |
|
14123 |
# rely on this symbol name, it's probably fine to never include it in |
|
14124 |
# preloaded symbol tables. |
|
14125 |
extract_expsyms_cmds= |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14126 |
# Just being paranoid about ensuring that cc_basename is set. |
14127 |
for cc_temp in $compiler""; do |
|
14128 |
case $cc_temp in |
|
14129 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
14130 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
14131 |
\-*) ;; |
|
14132 |
*) break;; |
|
14133 |
esac |
|
14134 |
done |
|
14135 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
1
by Ross Burton
Import upstream version 0.10 |
14136 |
|
14137 |
case $host_os in |
|
14138 |
cygwin* | mingw* | pw32*) |
|
14139 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
14140 |
# When not using gcc, we currently assume that we are using |
|
14141 |
# Microsoft Visual C++. |
|
14142 |
if test "$GCC" != yes; then |
|
14143 |
with_gnu_ld=no |
|
14144 |
fi |
|
14145 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14146 |
interix*) |
14147 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
|
14148 |
with_gnu_ld=yes |
|
14149 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
14150 |
openbsd*) |
14151 |
with_gnu_ld=no |
|
14152 |
;; |
|
14153 |
esac |
|
14154 |
||
14155 |
ld_shlibs_F77=yes |
|
14156 |
if test "$with_gnu_ld" = yes; then |
|
14157 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
14158 |
wlarc='${wl}' |
|
14159 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14160 |
# Set some defaults for GNU ld with shared library support. These |
14161 |
# are reset later if shared libraries are not supported. Putting them |
|
14162 |
# here allows them to be overridden if necessary. |
|
14163 |
runpath_var=LD_RUN_PATH |
|
14164 |
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
|
14165 |
export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
|
14166 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
14167 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
14168 |
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
14169 |
else |
|
14170 |
whole_archive_flag_spec_F77= |
|
14171 |
fi |
|
14172 |
supports_anon_versioning=no |
|
14173 |
case `$LD -v 2>/dev/null` in |
|
14174 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
14175 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
14176 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
14177 |
*\ 2.11.*) ;; # other 2.11 versions |
|
14178 |
*) supports_anon_versioning=yes ;; |
|
14179 |
esac |
|
14180 |
||
1
by Ross Burton
Import upstream version 0.10 |
14181 |
# See if GNU ld supports shared libraries. |
14182 |
case $host_os in |
|
14183 |
aix3* | aix4* | aix5*) |
|
14184 |
# On AIX/PPC, the GNU linker is very broken |
|
14185 |
if test "$host_cpu" != ia64; then |
|
14186 |
ld_shlibs_F77=no |
|
14187 |
cat <<EOF 1>&2 |
|
14188 |
||
14189 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
14190 |
*** to be unable to reliably create shared libraries on AIX. |
|
14191 |
*** Therefore, libtool is disabling shared libraries support. If you |
|
14192 |
*** really care for shared libraries, you may want to modify your PATH |
|
14193 |
*** so that a non-GNU linker is found, and then restart. |
|
14194 |
||
14195 |
EOF |
|
14196 |
fi |
|
14197 |
;; |
|
14198 |
||
14199 |
amigaos*) |
|
14200 |
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)' |
|
14201 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
14202 |
hardcode_minus_L_F77=yes |
|
14203 |
||
14204 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
14205 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
|
14206 |
# to version 4, is to share data among multiple programs linked |
|
14207 |
# with the same dynamic library. Since this doesn't match the |
|
14208 |
# behavior of shared libraries on other platforms, we can't use |
|
14209 |
# them. |
|
14210 |
ld_shlibs_F77=no |
|
14211 |
;; |
|
14212 |
||
14213 |
beos*) |
|
14214 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
14215 |
allow_undefined_flag_F77=unsupported |
|
14216 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
14217 |
# support --undefined. This deserves some investigation. FIXME |
|
14218 |
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
14219 |
else |
|
14220 |
ld_shlibs_F77=no |
|
14221 |
fi |
|
14222 |
;; |
|
14223 |
||
14224 |
cygwin* | mingw* | pw32*) |
|
14225 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
|
14226 |
# as there is no search path for DLLs. |
|
14227 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
14228 |
allow_undefined_flag_F77=unsupported |
|
14229 |
always_export_symbols_F77=no |
|
14230 |
enable_shared_with_static_runtimes_F77=yes |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14231 |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
1
by Ross Burton
Import upstream version 0.10 |
14232 |
|
14233 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14234 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
1
by Ross Burton
Import upstream version 0.10 |
14235 |
# If the export-symbols file already is a .def file (1st line |
14236 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
14237 |
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
14238 |
cp $export_symbols $output_objdir/$soname.def; |
|
14239 |
else |
|
14240 |
echo EXPORTS > $output_objdir/$soname.def; |
|
14241 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
14242 |
fi~ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14243 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14244 |
else |
|
14245 |
ld_shlibs_F77=no |
|
14246 |
fi |
|
14247 |
;; |
|
14248 |
||
14249 |
interix3*) |
|
14250 |
hardcode_direct_F77=no |
|
14251 |
hardcode_shlibpath_var_F77=no |
|
14252 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
14253 |
export_dynamic_flag_spec_F77='${wl}-E' |
|
14254 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
14255 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
|
14256 |
# default) and relocated if they conflict, which is a slow very memory |
|
14257 |
# consuming and fragmenting process. To avoid this, we pick a random, |
|
14258 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
14259 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
14260 |
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' |
|
14261 |
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' |
|
14262 |
;; |
|
14263 |
||
14264 |
linux*) |
|
14265 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
14266 |
tmp_addflag= |
|
14267 |
case $cc_basename,$host_cpu in |
|
14268 |
pgcc*) # Portland Group C compiler |
|
14269 |
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' |
|
14270 |
tmp_addflag=' $pic_flag' |
|
14271 |
;; |
|
14272 |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
14273 |
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' |
|
14274 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
|
14275 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
14276 |
tmp_addflag=' -i_dynamic' ;; |
|
14277 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
14278 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
14279 |
ifc* | ifort*) # Intel Fortran compiler |
|
14280 |
tmp_addflag=' -nofor_main' ;; |
|
14281 |
esac |
|
14282 |
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
14283 |
||
14284 |
if test $supports_anon_versioning = yes; then |
|
14285 |
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
14286 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
14287 |
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
14288 |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
14289 |
fi |
|
14290 |
else |
|
14291 |
ld_shlibs_F77=no |
|
1
by Ross Burton
Import upstream version 0.10 |
14292 |
fi |
14293 |
;; |
|
14294 |
||
14295 |
netbsd*) |
|
14296 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
14297 |
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
14298 |
wlarc= |
|
14299 |
else |
|
14300 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
14301 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
14302 |
fi |
|
14303 |
;; |
|
14304 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14305 |
solaris*) |
1
by Ross Burton
Import upstream version 0.10 |
14306 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14307 |
ld_shlibs_F77=no |
|
14308 |
cat <<EOF 1>&2 |
|
14309 |
||
14310 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
14311 |
*** create shared libraries on Solaris systems. Therefore, libtool |
|
14312 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
14313 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
|
14314 |
*** your PATH or compiler configuration so that the native linker is |
|
14315 |
*** used, and then restart. |
|
14316 |
||
14317 |
EOF |
|
14318 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
14319 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
14320 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
14321 |
else |
|
14322 |
ld_shlibs_F77=no |
|
14323 |
fi |
|
14324 |
;; |
|
14325 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14326 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14327 |
case `$LD -v 2>&1` in |
|
14328 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
14329 |
ld_shlibs_F77=no |
|
14330 |
cat <<_LT_EOF 1>&2 |
|
14331 |
||
14332 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
14333 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
|
14334 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
14335 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
14336 |
*** your PATH or compiler configuration so that the native linker is |
|
14337 |
*** used, and then restart. |
|
14338 |
||
14339 |
_LT_EOF |
|
14340 |
;; |
|
14341 |
*) |
|
14342 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
14343 |
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
14344 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
14345 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
14346 |
else |
|
14347 |
ld_shlibs_F77=no |
|
14348 |
fi |
|
14349 |
;; |
|
14350 |
esac |
|
14351 |
;; |
|
14352 |
||
1
by Ross Burton
Import upstream version 0.10 |
14353 |
sunos4*) |
14354 |
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
14355 |
wlarc= |
|
14356 |
hardcode_direct_F77=yes |
|
14357 |
hardcode_shlibpath_var_F77=no |
|
14358 |
;; |
|
14359 |
||
14360 |
*) |
|
14361 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
14362 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
14363 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
14364 |
else |
|
14365 |
ld_shlibs_F77=no |
|
14366 |
fi |
|
14367 |
;; |
|
14368 |
esac |
|
14369 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14370 |
if test "$ld_shlibs_F77" = no; then |
14371 |
runpath_var= |
|
14372 |
hardcode_libdir_flag_spec_F77= |
|
14373 |
export_dynamic_flag_spec_F77= |
|
14374 |
whole_archive_flag_spec_F77= |
|
1
by Ross Burton
Import upstream version 0.10 |
14375 |
fi |
14376 |
else |
|
14377 |
# PORTME fill in a description of your system's linker (not GNU ld) |
|
14378 |
case $host_os in |
|
14379 |
aix3*) |
|
14380 |
allow_undefined_flag_F77=unsupported |
|
14381 |
always_export_symbols_F77=yes |
|
14382 |
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' |
|
14383 |
# Note: this linker hardcodes the directories in LIBPATH if there |
|
14384 |
# are no directories specified by -L. |
|
14385 |
hardcode_minus_L_F77=yes |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14386 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
1
by Ross Burton
Import upstream version 0.10 |
14387 |
# Neither direct hardcoding nor static linking is supported with a |
14388 |
# broken collect2. |
|
14389 |
hardcode_direct_F77=unsupported |
|
14390 |
fi |
|
14391 |
;; |
|
14392 |
||
14393 |
aix4* | aix5*) |
|
14394 |
if test "$host_cpu" = ia64; then |
|
14395 |
# On IA64, the linker does run time linking by default, so we don't |
|
14396 |
# have to do anything special. |
|
14397 |
aix_use_runtimelinking=no |
|
14398 |
exp_sym_flag='-Bexport' |
|
14399 |
no_entry_flag="" |
|
14400 |
else |
|
14401 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
14402 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
14403 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
14404 |
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' |
|
14405 |
else |
|
14406 |
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' |
|
14407 |
fi |
|
14408 |
aix_use_runtimelinking=no |
|
14409 |
||
14410 |
# Test if we are trying to use run time linking or normal |
|
14411 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
14412 |
# need to do runtime linking. |
|
14413 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
14414 |
for ld_flag in $LDFLAGS; do |
|
14415 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
14416 |
aix_use_runtimelinking=yes |
|
14417 |
break |
|
14418 |
fi |
|
14419 |
done |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14420 |
;; |
1
by Ross Burton
Import upstream version 0.10 |
14421 |
esac |
14422 |
||
14423 |
exp_sym_flag='-bexport' |
|
14424 |
no_entry_flag='-bnoentry' |
|
14425 |
fi |
|
14426 |
||
14427 |
# When large executables or shared objects are built, AIX ld can |
|
14428 |
# have problems creating the table of contents. If linking a library |
|
14429 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
14430 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
14431 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
14432 |
||
14433 |
archive_cmds_F77='' |
|
14434 |
hardcode_direct_F77=yes |
|
14435 |
hardcode_libdir_separator_F77=':' |
|
14436 |
link_all_deplibs_F77=yes |
|
14437 |
||
14438 |
if test "$GCC" = yes; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14439 |
case $host_os in aix4.[012]|aix4.[012].*) |
1
by Ross Burton
Import upstream version 0.10 |
14440 |
# We only want to do this on AIX 4.2 and lower, the check |
14441 |
# below for broken collect2 doesn't work under 4.3+ |
|
14442 |
collect2name=`${CC} -print-prog-name=collect2` |
|
14443 |
if test -f "$collect2name" && \ |
|
14444 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
14445 |
then |
|
14446 |
# We have reworked collect2 |
|
14447 |
hardcode_direct_F77=yes |
|
14448 |
else |
|
14449 |
# We have old collect2 |
|
14450 |
hardcode_direct_F77=unsupported |
|
14451 |
# It fails to find uninstalled libraries when the uninstalled |
|
14452 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
14453 |
# to unsupported forces relinking |
|
14454 |
hardcode_minus_L_F77=yes |
|
14455 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
14456 |
hardcode_libdir_separator_F77= |
|
14457 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14458 |
;; |
1
by Ross Burton
Import upstream version 0.10 |
14459 |
esac |
14460 |
shared_flag='-shared' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14461 |
if test "$aix_use_runtimelinking" = yes; then |
14462 |
shared_flag="$shared_flag "'${wl}-G' |
|
14463 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
14464 |
else |
14465 |
# not using gcc |
|
14466 |
if test "$host_cpu" = ia64; then |
|
14467 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
14468 |
# chokes on -Wl,-G. The following line is correct: |
|
14469 |
shared_flag='-G' |
|
14470 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14471 |
if test "$aix_use_runtimelinking" = yes; then |
1
by Ross Burton
Import upstream version 0.10 |
14472 |
shared_flag='${wl}-G' |
14473 |
else |
|
14474 |
shared_flag='${wl}-bM:SRE' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14475 |
fi |
1
by Ross Burton
Import upstream version 0.10 |
14476 |
fi |
14477 |
fi |
|
14478 |
||
14479 |
# It seems that -bexpall does not export symbols beginning with |
|
14480 |
# underscore (_), so it is better to generate a list of symbols to export. |
|
14481 |
always_export_symbols_F77=yes |
|
14482 |
if test "$aix_use_runtimelinking" = yes; then |
|
14483 |
# Warning - without using the other runtime loading flags (-brtl), |
|
14484 |
# -berok will link without error, but may produce a broken library. |
|
14485 |
allow_undefined_flag_F77='-berok' |
|
14486 |
# Determine the default libpath from the value encoded in an empty executable. |
|
14487 |
cat >conftest.$ac_ext <<_ACEOF |
|
14488 |
program main |
|
14489 |
||
14490 |
end |
|
14491 |
_ACEOF |
|
14492 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
14493 |
if { (ac_try="$ac_link" |
14494 |
case "(($ac_try" in |
|
14495 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
14496 |
*) ac_try_echo=$ac_try;; |
|
14497 |
esac |
|
14498 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
14499 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
14500 |
ac_status=$? |
14501 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
14502 |
rm -f conftest.er1 |
|
14503 |
cat conftest.err >&5 |
|
14504 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
14505 |
(exit $ac_status); } && { |
14506 |
test -z "$ac_f77_werror_flag" || |
|
14507 |
test ! -s conftest.err |
|
14508 |
} && test -s conftest$ac_exeext && |
|
14509 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
14510 |
|
14511 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
14512 |
}'` |
|
14513 |
# Check for a 64-bit object if we didn't find anything. |
|
14514 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
14515 |
}'`; fi |
|
14516 |
else |
|
14517 |
echo "$as_me: failed program was:" >&5 |
|
14518 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
14519 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
14520 |
|
1
by Ross Burton
Import upstream version 0.10 |
14521 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
14522 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
14523 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
14524 |
conftest$ac_exeext conftest.$ac_ext |
14525 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
14526 |
||
14527 |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14528 |
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" |
1
by Ross Burton
Import upstream version 0.10 |
14529 |
else |
14530 |
if test "$host_cpu" = ia64; then |
|
14531 |
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
|
14532 |
allow_undefined_flag_F77="-z nodefs" |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14533 |
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" |
1
by Ross Burton
Import upstream version 0.10 |
14534 |
else |
14535 |
# Determine the default libpath from the value encoded in an empty executable. |
|
14536 |
cat >conftest.$ac_ext <<_ACEOF |
|
14537 |
program main |
|
14538 |
||
14539 |
end |
|
14540 |
_ACEOF |
|
14541 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
14542 |
if { (ac_try="$ac_link" |
14543 |
case "(($ac_try" in |
|
14544 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
14545 |
*) ac_try_echo=$ac_try;; |
|
14546 |
esac |
|
14547 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
14548 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
14549 |
ac_status=$? |
14550 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
14551 |
rm -f conftest.er1 |
|
14552 |
cat conftest.err >&5 |
|
14553 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
14554 |
(exit $ac_status); } && { |
14555 |
test -z "$ac_f77_werror_flag" || |
|
14556 |
test ! -s conftest.err |
|
14557 |
} && test -s conftest$ac_exeext && |
|
14558 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
14559 |
|
14560 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
14561 |
}'` |
|
14562 |
# Check for a 64-bit object if we didn't find anything. |
|
14563 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
14564 |
}'`; fi |
|
14565 |
else |
|
14566 |
echo "$as_me: failed program was:" >&5 |
|
14567 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
14568 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
14569 |
|
1
by Ross Burton
Import upstream version 0.10 |
14570 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
14571 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
14572 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
14573 |
conftest$ac_exeext conftest.$ac_ext |
14574 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
14575 |
||
14576 |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
14577 |
# Warning - without using the other run time loading flags, |
|
14578 |
# -berok will link without error, but may produce a broken library. |
|
14579 |
no_undefined_flag_F77=' ${wl}-bernotok' |
|
14580 |
allow_undefined_flag_F77=' ${wl}-berok' |
|
14581 |
# Exported symbols can be pulled into shared objects from archives |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14582 |
whole_archive_flag_spec_F77='$convenience' |
1
by Ross Burton
Import upstream version 0.10 |
14583 |
archive_cmds_need_lc_F77=yes |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14584 |
# This is similar to how AIX traditionally builds its shared libraries. |
14585 |
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' |
|
1
by Ross Burton
Import upstream version 0.10 |
14586 |
fi |
14587 |
fi |
|
14588 |
;; |
|
14589 |
||
14590 |
amigaos*) |
|
14591 |
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)' |
|
14592 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
14593 |
hardcode_minus_L_F77=yes |
|
14594 |
# see comment about different semantics on the GNU ld section |
|
14595 |
ld_shlibs_F77=no |
|
14596 |
;; |
|
14597 |
||
14598 |
bsdi[45]*) |
|
14599 |
export_dynamic_flag_spec_F77=-rdynamic |
|
14600 |
;; |
|
14601 |
||
14602 |
cygwin* | mingw* | pw32*) |
|
14603 |
# When not using gcc, we currently assume that we are using |
|
14604 |
# Microsoft Visual C++. |
|
14605 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
14606 |
# no search path for DLLs. |
|
14607 |
hardcode_libdir_flag_spec_F77=' ' |
|
14608 |
allow_undefined_flag_F77=unsupported |
|
14609 |
# Tell ltmain to make .lib files, not .a files. |
|
14610 |
libext=lib |
|
14611 |
# Tell ltmain to make .dll files, not .so files. |
|
14612 |
shrext_cmds=".dll" |
|
14613 |
# FIXME: Setting linknames here is a bad hack. |
|
14614 |
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
14615 |
# The linker will automatically build a .lib file if we build a DLL. |
|
14616 |
old_archive_From_new_cmds_F77='true' |
|
14617 |
# FIXME: Should let the user specify the lib program. |
|
14618 |
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14619 |
fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
1
by Ross Burton
Import upstream version 0.10 |
14620 |
enable_shared_with_static_runtimes_F77=yes |
14621 |
;; |
|
14622 |
||
14623 |
darwin* | rhapsody*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14624 |
case $host_os in |
1
by Ross Burton
Import upstream version 0.10 |
14625 |
rhapsody* | darwin1.[012]) |
14626 |
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
|
14627 |
;; |
|
14628 |
*) # Darwin 1.3 on |
|
14629 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
14630 |
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
14631 |
else |
|
14632 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
14633 |
10.[012]) |
|
14634 |
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
14635 |
;; |
|
14636 |
10.*) |
|
14637 |
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
|
14638 |
;; |
|
14639 |
esac |
|
14640 |
fi |
|
14641 |
;; |
|
14642 |
esac |
|
14643 |
archive_cmds_need_lc_F77=no |
|
14644 |
hardcode_direct_F77=no |
|
14645 |
hardcode_automatic_F77=yes |
|
14646 |
hardcode_shlibpath_var_F77=unsupported |
|
14647 |
whole_archive_flag_spec_F77='' |
|
14648 |
link_all_deplibs_F77=yes |
|
14649 |
if test "$GCC" = yes ; then |
|
14650 |
output_verbose_link_cmd='echo' |
|
14651 |
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
14652 |
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14653 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
1
by Ross Burton
Import upstream version 0.10 |
14654 |
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}' |
14655 |
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}' |
|
14656 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14657 |
case $cc_basename in |
1
by Ross Burton
Import upstream version 0.10 |
14658 |
xlc*) |
14659 |
output_verbose_link_cmd='echo' |
|
14660 |
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
14661 |
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14662 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
1
by Ross Burton
Import upstream version 0.10 |
14663 |
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14664 |
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}' |
|
14665 |
;; |
|
14666 |
*) |
|
14667 |
ld_shlibs_F77=no |
|
14668 |
;; |
|
14669 |
esac |
|
14670 |
fi |
|
14671 |
;; |
|
14672 |
||
14673 |
dgux*) |
|
14674 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
14675 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
14676 |
hardcode_shlibpath_var_F77=no |
|
14677 |
;; |
|
14678 |
||
14679 |
freebsd1*) |
|
14680 |
ld_shlibs_F77=no |
|
14681 |
;; |
|
14682 |
||
14683 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
14684 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
14685 |
# does not break anything, and helps significantly (at the cost of a little |
|
14686 |
# extra space). |
|
14687 |
freebsd2.2*) |
|
14688 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
14689 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
14690 |
hardcode_direct_F77=yes |
|
14691 |
hardcode_shlibpath_var_F77=no |
|
14692 |
;; |
|
14693 |
||
14694 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
14695 |
freebsd2*) |
|
14696 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
14697 |
hardcode_direct_F77=yes |
|
14698 |
hardcode_minus_L_F77=yes |
|
14699 |
hardcode_shlibpath_var_F77=no |
|
14700 |
;; |
|
14701 |
||
14702 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14703 |
freebsd* | kfreebsd*-gnu | dragonfly*) |
1
by Ross Burton
Import upstream version 0.10 |
14704 |
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14705 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
14706 |
hardcode_direct_F77=yes |
|
14707 |
hardcode_shlibpath_var_F77=no |
|
14708 |
;; |
|
14709 |
||
14710 |
hpux9*) |
|
14711 |
if test "$GCC" = yes; then |
|
14712 |
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' |
|
14713 |
else |
|
14714 |
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' |
|
14715 |
fi |
|
14716 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
14717 |
hardcode_libdir_separator_F77=: |
|
14718 |
hardcode_direct_F77=yes |
|
14719 |
||
14720 |
# hardcode_minus_L: Not really in the search PATH, |
|
14721 |
# but as the default location of the library. |
|
14722 |
hardcode_minus_L_F77=yes |
|
14723 |
export_dynamic_flag_spec_F77='${wl}-E' |
|
14724 |
;; |
|
14725 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14726 |
hpux10*) |
14727 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
14728 |
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
14729 |
else |
|
14730 |
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
14731 |
fi |
|
14732 |
if test "$with_gnu_ld" = no; then |
|
14733 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
14734 |
hardcode_libdir_separator_F77=: |
|
14735 |
||
14736 |
hardcode_direct_F77=yes |
|
14737 |
export_dynamic_flag_spec_F77='${wl}-E' |
|
14738 |
||
14739 |
# hardcode_minus_L: Not really in the search PATH, |
|
14740 |
# but as the default location of the library. |
|
14741 |
hardcode_minus_L_F77=yes |
|
14742 |
fi |
|
14743 |
;; |
|
14744 |
||
14745 |
hpux11*) |
|
14746 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
14747 |
case $host_cpu in |
|
14748 |
hppa*64*) |
|
1
by Ross Burton
Import upstream version 0.10 |
14749 |
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14750 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14751 |
ia64*) |
14752 |
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
14753 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
14754 |
*) |
14755 |
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
14756 |
;; |
|
14757 |
esac |
|
14758 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14759 |
case $host_cpu in |
14760 |
hppa*64*) |
|
14761 |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
14762 |
;; |
|
14763 |
ia64*) |
|
14764 |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
1
by Ross Burton
Import upstream version 0.10 |
14765 |
;; |
14766 |
*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14767 |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
1
by Ross Burton
Import upstream version 0.10 |
14768 |
;; |
14769 |
esac |
|
14770 |
fi |
|
14771 |
if test "$with_gnu_ld" = no; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14772 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14773 |
hardcode_libdir_separator_F77=: |
|
14774 |
||
14775 |
case $host_cpu in |
|
14776 |
hppa*64*|ia64*) |
|
1
by Ross Burton
Import upstream version 0.10 |
14777 |
hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14778 |
hardcode_direct_F77=no |
14779 |
hardcode_shlibpath_var_F77=no |
|
1
by Ross Burton
Import upstream version 0.10 |
14780 |
;; |
14781 |
*) |
|
14782 |
hardcode_direct_F77=yes |
|
14783 |
export_dynamic_flag_spec_F77='${wl}-E' |
|
14784 |
||
14785 |
# hardcode_minus_L: Not really in the search PATH, |
|
14786 |
# but as the default location of the library. |
|
14787 |
hardcode_minus_L_F77=yes |
|
14788 |
;; |
|
14789 |
esac |
|
14790 |
fi |
|
14791 |
;; |
|
14792 |
||
14793 |
irix5* | irix6* | nonstopux*) |
|
14794 |
if test "$GCC" = yes; then |
|
14795 |
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' |
|
14796 |
else |
|
14797 |
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' |
|
14798 |
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
|
14799 |
fi |
|
14800 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
14801 |
hardcode_libdir_separator_F77=: |
|
14802 |
link_all_deplibs_F77=yes |
|
14803 |
;; |
|
14804 |
||
14805 |
netbsd*) |
|
14806 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
14807 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
14808 |
else |
|
14809 |
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
14810 |
fi |
|
14811 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
14812 |
hardcode_direct_F77=yes |
|
14813 |
hardcode_shlibpath_var_F77=no |
|
14814 |
;; |
|
14815 |
||
14816 |
newsos6) |
|
14817 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
14818 |
hardcode_direct_F77=yes |
|
14819 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
14820 |
hardcode_libdir_separator_F77=: |
|
14821 |
hardcode_shlibpath_var_F77=no |
|
14822 |
;; |
|
14823 |
||
14824 |
openbsd*) |
|
14825 |
hardcode_direct_F77=yes |
|
14826 |
hardcode_shlibpath_var_F77=no |
|
14827 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
14828 |
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
14829 |
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
14830 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
14831 |
export_dynamic_flag_spec_F77='${wl}-E' |
|
14832 |
else |
|
14833 |
case $host_os in |
|
14834 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
14835 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
14836 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
14837 |
;; |
|
14838 |
*) |
|
14839 |
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
14840 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
14841 |
;; |
|
14842 |
esac |
|
14843 |
fi |
|
14844 |
;; |
|
14845 |
||
14846 |
os2*) |
|
14847 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
14848 |
hardcode_minus_L_F77=yes |
|
14849 |
allow_undefined_flag_F77=unsupported |
|
14850 |
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' |
|
14851 |
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
14852 |
;; |
|
14853 |
||
14854 |
osf3*) |
|
14855 |
if test "$GCC" = yes; then |
|
14856 |
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
14857 |
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' |
|
14858 |
else |
|
14859 |
allow_undefined_flag_F77=' -expect_unresolved \*' |
|
14860 |
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' |
|
14861 |
fi |
|
14862 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
14863 |
hardcode_libdir_separator_F77=: |
|
14864 |
;; |
|
14865 |
||
14866 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
14867 |
if test "$GCC" = yes; then |
|
14868 |
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
14869 |
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' |
|
14870 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
14871 |
else |
|
14872 |
allow_undefined_flag_F77=' -expect_unresolved \*' |
|
14873 |
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' |
|
14874 |
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~ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14875 |
$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' |
1
by Ross Burton
Import upstream version 0.10 |
14876 |
|
14877 |
# Both c and cxx compiler support -rpath directly |
|
14878 |
hardcode_libdir_flag_spec_F77='-rpath $libdir' |
|
14879 |
fi |
|
14880 |
hardcode_libdir_separator_F77=: |
|
14881 |
;; |
|
14882 |
||
14883 |
solaris*) |
|
14884 |
no_undefined_flag_F77=' -z text' |
|
14885 |
if test "$GCC" = yes; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14886 |
wlarc='${wl}' |
1
by Ross Burton
Import upstream version 0.10 |
14887 |
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14888 |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
14889 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
14890 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14891 |
wlarc='' |
1
by Ross Burton
Import upstream version 0.10 |
14892 |
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14893 |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
14894 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
14895 |
fi |
|
14896 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
14897 |
hardcode_shlibpath_var_F77=no |
|
14898 |
case $host_os in |
|
14899 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14900 |
*) |
14901 |
# The compiler driver will combine linker options so we |
|
14902 |
# cannot just pass the convience library names through |
|
14903 |
# without $wl, iff we do not link with $LD. |
|
14904 |
# Luckily, gcc supports the same syntax we need for Sun Studio. |
|
14905 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
|
14906 |
case $wlarc in |
|
14907 |
'') |
|
14908 |
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
|
14909 |
*) |
|
14910 |
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
|
14911 |
esac ;; |
|
1
by Ross Burton
Import upstream version 0.10 |
14912 |
esac |
14913 |
link_all_deplibs_F77=yes |
|
14914 |
;; |
|
14915 |
||
14916 |
sunos4*) |
|
14917 |
if test "x$host_vendor" = xsequent; then |
|
14918 |
# Use $CC to link under sequent, because it throws in some extra .o |
|
14919 |
# files that make .init and .fini sections work. |
|
14920 |
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
14921 |
else |
|
14922 |
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
14923 |
fi |
|
14924 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
14925 |
hardcode_direct_F77=yes |
|
14926 |
hardcode_minus_L_F77=yes |
|
14927 |
hardcode_shlibpath_var_F77=no |
|
14928 |
;; |
|
14929 |
||
14930 |
sysv4) |
|
14931 |
case $host_vendor in |
|
14932 |
sni) |
|
14933 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
14934 |
hardcode_direct_F77=yes # is this really true??? |
|
14935 |
;; |
|
14936 |
siemens) |
|
14937 |
## LD is ld it makes a PLAMLIB |
|
14938 |
## CC just makes a GrossModule. |
|
14939 |
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
14940 |
reload_cmds_F77='$CC -r -o $output$reload_objs' |
|
14941 |
hardcode_direct_F77=no |
|
14942 |
;; |
|
14943 |
motorola) |
|
14944 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
14945 |
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
|
14946 |
;; |
|
14947 |
esac |
|
14948 |
runpath_var='LD_RUN_PATH' |
|
14949 |
hardcode_shlibpath_var_F77=no |
|
14950 |
;; |
|
14951 |
||
14952 |
sysv4.3*) |
|
14953 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
14954 |
hardcode_shlibpath_var_F77=no |
|
14955 |
export_dynamic_flag_spec_F77='-Bexport' |
|
14956 |
;; |
|
14957 |
||
14958 |
sysv4*MP*) |
|
14959 |
if test -d /usr/nec; then |
|
14960 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
14961 |
hardcode_shlibpath_var_F77=no |
|
14962 |
runpath_var=LD_RUN_PATH |
|
14963 |
hardcode_runpath_var=yes |
|
14964 |
ld_shlibs_F77=yes |
|
14965 |
fi |
|
14966 |
;; |
|
14967 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
14968 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
14969 |
no_undefined_flag_F77='${wl}-z,text' |
|
14970 |
archive_cmds_need_lc_F77=no |
|
14971 |
hardcode_shlibpath_var_F77=no |
|
14972 |
runpath_var='LD_RUN_PATH' |
|
14973 |
||
14974 |
if test "$GCC" = yes; then |
|
14975 |
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
14976 |
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
14977 |
else |
|
14978 |
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
14979 |
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
14980 |
fi |
|
14981 |
;; |
|
14982 |
||
14983 |
sysv5* | sco3.2v5* | sco5v6*) |
|
14984 |
# Note: We can NOT use -z defs as we might desire, because we do not |
|
14985 |
# link with -lc, and that would cause any symbols used from libc to |
|
14986 |
# always be unresolved, which means just about no library would |
|
14987 |
# ever link correctly. If we're not using GNU ld we use -z text |
|
14988 |
# though, which does catch some bad symbols but isn't as heavy-handed |
|
14989 |
# as -z defs. |
|
14990 |
no_undefined_flag_F77='${wl}-z,text' |
|
14991 |
allow_undefined_flag_F77='${wl}-z,nodefs' |
|
14992 |
archive_cmds_need_lc_F77=no |
|
14993 |
hardcode_shlibpath_var_F77=no |
|
14994 |
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
14995 |
hardcode_libdir_separator_F77=':' |
|
14996 |
link_all_deplibs_F77=yes |
|
14997 |
export_dynamic_flag_spec_F77='${wl}-Bexport' |
|
14998 |
runpath_var='LD_RUN_PATH' |
|
14999 |
||
15000 |
if test "$GCC" = yes; then |
|
15001 |
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15002 |
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15003 |
else |
|
15004 |
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15005 |
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15006 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
15007 |
;; |
15008 |
||
15009 |
uts4*) |
|
15010 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15011 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15012 |
hardcode_shlibpath_var_F77=no |
|
15013 |
;; |
|
15014 |
||
15015 |
*) |
|
15016 |
ld_shlibs_F77=no |
|
15017 |
;; |
|
15018 |
esac |
|
15019 |
fi |
|
15020 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
15021 |
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15022 |
echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
15023 |
test "$ld_shlibs_F77" = no && can_build_shared=no |
15024 |
||
15025 |
# |
|
15026 |
# Do we need to explicitly link libc? |
|
15027 |
# |
|
15028 |
case "x$archive_cmds_need_lc_F77" in |
|
15029 |
x|xyes) |
|
15030 |
# Assume -lc should be added |
|
15031 |
archive_cmds_need_lc_F77=yes |
|
15032 |
||
15033 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
15034 |
case $archive_cmds_F77 in |
|
15035 |
*'~'*) |
|
15036 |
# FIXME: we may have to deal with multi-command sequences. |
|
15037 |
;; |
|
15038 |
'$CC '*) |
|
15039 |
# Test whether the compiler implicitly links with -lc since on some |
|
15040 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
15041 |
# to ld, don't add -lc before -lgcc. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
15042 |
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15043 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
15044 |
$rm conftest* |
15045 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
15046 |
||
15047 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
15048 |
(eval $ac_compile) 2>&5 |
|
15049 |
ac_status=$? |
|
15050 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15051 |
(exit $ac_status); } 2>conftest.err; then |
|
15052 |
soname=conftest |
|
15053 |
lib=conftest |
|
15054 |
libobjs=conftest.$ac_objext |
|
15055 |
deplibs= |
|
15056 |
wl=$lt_prog_compiler_wl_F77 |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15057 |
pic_flag=$lt_prog_compiler_pic_F77 |
1
by Ross Burton
Import upstream version 0.10 |
15058 |
compiler_flags=-v |
15059 |
linker_flags=-v |
|
15060 |
verstring= |
|
15061 |
output_objdir=. |
|
15062 |
libname=conftest |
|
15063 |
lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
|
15064 |
allow_undefined_flag_F77= |
|
15065 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
15066 |
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
15067 |
ac_status=$? |
|
15068 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15069 |
(exit $ac_status); } |
|
15070 |
then |
|
15071 |
archive_cmds_need_lc_F77=no |
|
15072 |
else |
|
15073 |
archive_cmds_need_lc_F77=yes |
|
15074 |
fi |
|
15075 |
allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
|
15076 |
else |
|
15077 |
cat conftest.err 1>&5 |
|
15078 |
fi |
|
15079 |
$rm conftest* |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
15080 |
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15081 |
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
15082 |
;; |
15083 |
esac |
|
15084 |
fi |
|
15085 |
;; |
|
15086 |
esac |
|
15087 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
15088 |
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15089 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
15090 |
library_names_spec= |
15091 |
libname_spec='lib$name' |
|
15092 |
soname_spec= |
|
15093 |
shrext_cmds=".so" |
|
15094 |
postinstall_cmds= |
|
15095 |
postuninstall_cmds= |
|
15096 |
finish_cmds= |
|
15097 |
finish_eval= |
|
15098 |
shlibpath_var= |
|
15099 |
shlibpath_overrides_runpath=unknown |
|
15100 |
version_type=none |
|
15101 |
dynamic_linker="$host_os ld.so" |
|
15102 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
15103 |
if test "$GCC" = yes; then |
|
15104 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
15105 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
15106 |
# if the path contains ";" then we assume it to be the separator |
|
15107 |
# otherwise default to the standard path separator (i.e. ":") - it is |
|
15108 |
# assumed that no part of a normal pathname contains ";" but that should |
|
15109 |
# okay in the real world where ";" in dirpaths is itself problematic. |
|
15110 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
15111 |
else |
|
15112 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
15113 |
fi |
|
15114 |
else |
|
15115 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
15116 |
fi |
|
15117 |
need_lib_prefix=unknown |
|
15118 |
hardcode_into_libs=no |
|
15119 |
||
15120 |
# when you set need_version to no, make sure it does not cause -set_version |
|
15121 |
# flags to be left without arguments |
|
15122 |
need_version=unknown |
|
15123 |
||
15124 |
case $host_os in |
|
15125 |
aix3*) |
|
15126 |
version_type=linux |
|
15127 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
15128 |
shlibpath_var=LIBPATH |
|
15129 |
||
15130 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
15131 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15132 |
;; |
|
15133 |
||
15134 |
aix4* | aix5*) |
|
15135 |
version_type=linux |
|
15136 |
need_lib_prefix=no |
|
15137 |
need_version=no |
|
15138 |
hardcode_into_libs=yes |
|
15139 |
if test "$host_cpu" = ia64; then |
|
15140 |
# AIX 5 supports IA64 |
|
15141 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
15142 |
shlibpath_var=LD_LIBRARY_PATH |
|
15143 |
else |
|
15144 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
15145 |
# for dependence libraries. The import file would start with |
|
15146 |
# the line `#! .'. This would cause the generated library to |
|
15147 |
# depend on `.', always an invalid library. This was fixed in |
|
15148 |
# development snapshots of GCC prior to 3.0. |
|
15149 |
case $host_os in |
|
15150 |
aix4 | aix4.[01] | aix4.[01].*) |
|
15151 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
15152 |
echo ' yes ' |
|
15153 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
15154 |
: |
|
15155 |
else |
|
15156 |
can_build_shared=no |
|
15157 |
fi |
|
15158 |
;; |
|
15159 |
esac |
|
15160 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
15161 |
# soname into executable. Probably we can add versioning support to |
|
15162 |
# collect2, so additional links can be useful in future. |
|
15163 |
if test "$aix_use_runtimelinking" = yes; then |
|
15164 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
15165 |
# instead of lib<name>.a to let people know that these are not |
|
15166 |
# typical AIX shared libraries. |
|
15167 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15168 |
else |
|
15169 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
15170 |
# and later when we are not doing run time linking. |
|
15171 |
library_names_spec='${libname}${release}.a $libname.a' |
|
15172 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15173 |
fi |
|
15174 |
shlibpath_var=LIBPATH |
|
15175 |
fi |
|
15176 |
;; |
|
15177 |
||
15178 |
amigaos*) |
|
15179 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
15180 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
15181 |
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' |
|
15182 |
;; |
|
15183 |
||
15184 |
beos*) |
|
15185 |
library_names_spec='${libname}${shared_ext}' |
|
15186 |
dynamic_linker="$host_os ld.so" |
|
15187 |
shlibpath_var=LIBRARY_PATH |
|
15188 |
;; |
|
15189 |
||
15190 |
bsdi[45]*) |
|
15191 |
version_type=linux |
|
15192 |
need_version=no |
|
15193 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15194 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15195 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
15196 |
shlibpath_var=LD_LIBRARY_PATH |
|
15197 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
15198 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
15199 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
15200 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
15201 |
# libtool to hard-code these into programs |
|
15202 |
;; |
|
15203 |
||
15204 |
cygwin* | mingw* | pw32*) |
|
15205 |
version_type=windows |
|
15206 |
shrext_cmds=".dll" |
|
15207 |
need_version=no |
|
15208 |
need_lib_prefix=no |
|
15209 |
||
15210 |
case $GCC,$host_os in |
|
15211 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
|
15212 |
library_names_spec='$libname.dll.a' |
|
15213 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
15214 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
15215 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
15216 |
dldir=$destdir/`dirname \$dlpath`~ |
|
15217 |
test -d \$dldir || mkdir -p \$dldir~ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15218 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
15219 |
chmod a+x \$dldir/$dlname' |
|
1
by Ross Burton
Import upstream version 0.10 |
15220 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15221 |
dlpath=$dir/\$dldll~ |
|
15222 |
$rm \$dlpath' |
|
15223 |
shlibpath_overrides_runpath=yes |
|
15224 |
||
15225 |
case $host_os in |
|
15226 |
cygwin*) |
|
15227 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
15228 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
15229 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
15230 |
;; |
|
15231 |
mingw*) |
|
15232 |
# MinGW DLLs use traditional 'lib' prefix |
|
15233 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
15234 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
15235 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
15236 |
# It is most probably a Windows format PATH printed by |
|
15237 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
15238 |
# path with ; separators, and with drive letters. We can handle the |
|
15239 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
15240 |
# especially as we might pass files found there to a mingw objdump, |
|
15241 |
# which wouldn't understand a cygwinified path. Ahh. |
|
15242 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
15243 |
else |
|
15244 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
15245 |
fi |
|
15246 |
;; |
|
15247 |
pw32*) |
|
15248 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15249 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
1
by Ross Burton
Import upstream version 0.10 |
15250 |
;; |
15251 |
esac |
|
15252 |
;; |
|
15253 |
||
15254 |
*) |
|
15255 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
15256 |
;; |
|
15257 |
esac |
|
15258 |
dynamic_linker='Win32 ld.exe' |
|
15259 |
# FIXME: first we should search . and the directory the executable is in |
|
15260 |
shlibpath_var=PATH |
|
15261 |
;; |
|
15262 |
||
15263 |
darwin* | rhapsody*) |
|
15264 |
dynamic_linker="$host_os dyld" |
|
15265 |
version_type=darwin |
|
15266 |
need_lib_prefix=no |
|
15267 |
need_version=no |
|
15268 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
15269 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
15270 |
shlibpath_overrides_runpath=yes |
|
15271 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15272 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
1
by Ross Burton
Import upstream version 0.10 |
15273 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
15274 |
if test "$GCC" = yes; then |
|
15275 |
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
15276 |
else |
|
15277 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
15278 |
fi |
|
15279 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
15280 |
;; |
|
15281 |
||
15282 |
dgux*) |
|
15283 |
version_type=linux |
|
15284 |
need_lib_prefix=no |
|
15285 |
need_version=no |
|
15286 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
15287 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15288 |
shlibpath_var=LD_LIBRARY_PATH |
|
15289 |
;; |
|
15290 |
||
15291 |
freebsd1*) |
|
15292 |
dynamic_linker=no |
|
15293 |
;; |
|
15294 |
||
15295 |
kfreebsd*-gnu) |
|
15296 |
version_type=linux |
|
15297 |
need_lib_prefix=no |
|
15298 |
need_version=no |
|
15299 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
15300 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15301 |
shlibpath_var=LD_LIBRARY_PATH |
|
15302 |
shlibpath_overrides_runpath=no |
|
15303 |
hardcode_into_libs=yes |
|
15304 |
dynamic_linker='GNU ld.so' |
|
15305 |
;; |
|
15306 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15307 |
freebsd* | dragonfly*) |
15308 |
# DragonFly does not have aout. When/if they implement a new |
|
15309 |
# versioning mechanism, adjust this. |
|
15310 |
if test -x /usr/bin/objformat; then |
|
15311 |
objformat=`/usr/bin/objformat` |
|
15312 |
else |
|
15313 |
case $host_os in |
|
15314 |
freebsd[123]*) objformat=aout ;; |
|
15315 |
*) objformat=elf ;; |
|
15316 |
esac |
|
15317 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
15318 |
version_type=freebsd-$objformat |
15319 |
case $version_type in |
|
15320 |
freebsd-elf*) |
|
15321 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
15322 |
need_version=no |
|
15323 |
need_lib_prefix=no |
|
15324 |
;; |
|
15325 |
freebsd-*) |
|
15326 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
15327 |
need_version=yes |
|
15328 |
;; |
|
15329 |
esac |
|
15330 |
shlibpath_var=LD_LIBRARY_PATH |
|
15331 |
case $host_os in |
|
15332 |
freebsd2*) |
|
15333 |
shlibpath_overrides_runpath=yes |
|
15334 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15335 |
freebsd3.[01]* | freebsdelf3.[01]*) |
1
by Ross Burton
Import upstream version 0.10 |
15336 |
shlibpath_overrides_runpath=yes |
15337 |
hardcode_into_libs=yes |
|
15338 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15339 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15340 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
1
by Ross Burton
Import upstream version 0.10 |
15341 |
shlibpath_overrides_runpath=no |
15342 |
hardcode_into_libs=yes |
|
15343 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15344 |
freebsd*) # from 4.6 on |
15345 |
shlibpath_overrides_runpath=yes |
|
15346 |
hardcode_into_libs=yes |
|
15347 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
15348 |
esac |
15349 |
;; |
|
15350 |
||
15351 |
gnu*) |
|
15352 |
version_type=linux |
|
15353 |
need_lib_prefix=no |
|
15354 |
need_version=no |
|
15355 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
15356 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15357 |
shlibpath_var=LD_LIBRARY_PATH |
|
15358 |
hardcode_into_libs=yes |
|
15359 |
;; |
|
15360 |
||
15361 |
hpux9* | hpux10* | hpux11*) |
|
15362 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
15363 |
# link against other versions. |
|
15364 |
version_type=sunos |
|
15365 |
need_lib_prefix=no |
|
15366 |
need_version=no |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15367 |
case $host_cpu in |
1
by Ross Burton
Import upstream version 0.10 |
15368 |
ia64*) |
15369 |
shrext_cmds='.so' |
|
15370 |
hardcode_into_libs=yes |
|
15371 |
dynamic_linker="$host_os dld.so" |
|
15372 |
shlibpath_var=LD_LIBRARY_PATH |
|
15373 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
15374 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15375 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15376 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
15377 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
15378 |
else |
|
15379 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
15380 |
fi |
|
15381 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
15382 |
;; |
|
15383 |
hppa*64*) |
|
15384 |
shrext_cmds='.sl' |
|
15385 |
hardcode_into_libs=yes |
|
15386 |
dynamic_linker="$host_os dld.sl" |
|
15387 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
15388 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
15389 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15390 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15391 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
15392 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
15393 |
;; |
|
15394 |
*) |
|
15395 |
shrext_cmds='.sl' |
|
15396 |
dynamic_linker="$host_os dld.sl" |
|
15397 |
shlibpath_var=SHLIB_PATH |
|
15398 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
15399 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15400 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15401 |
;; |
|
15402 |
esac |
|
15403 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
15404 |
postinstall_cmds='chmod 555 $lib' |
|
15405 |
;; |
|
15406 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15407 |
interix3*) |
15408 |
version_type=linux |
|
15409 |
need_lib_prefix=no |
|
15410 |
need_version=no |
|
15411 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
15412 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15413 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
15414 |
shlibpath_var=LD_LIBRARY_PATH |
|
15415 |
shlibpath_overrides_runpath=no |
|
15416 |
hardcode_into_libs=yes |
|
15417 |
;; |
|
15418 |
||
1
by Ross Burton
Import upstream version 0.10 |
15419 |
irix5* | irix6* | nonstopux*) |
15420 |
case $host_os in |
|
15421 |
nonstopux*) version_type=nonstopux ;; |
|
15422 |
*) |
|
15423 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
15424 |
version_type=linux |
|
15425 |
else |
|
15426 |
version_type=irix |
|
15427 |
fi ;; |
|
15428 |
esac |
|
15429 |
need_lib_prefix=no |
|
15430 |
need_version=no |
|
15431 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15432 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
15433 |
case $host_os in |
|
15434 |
irix5* | nonstopux*) |
|
15435 |
libsuff= shlibsuff= |
|
15436 |
;; |
|
15437 |
*) |
|
15438 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
15439 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
15440 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
15441 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
15442 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
15443 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
15444 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
15445 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
15446 |
esac |
|
15447 |
;; |
|
15448 |
esac |
|
15449 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
15450 |
shlibpath_overrides_runpath=no |
|
15451 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
15452 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
15453 |
hardcode_into_libs=yes |
|
15454 |
;; |
|
15455 |
||
15456 |
# No shared lib support for Linux oldld, aout, or coff. |
|
15457 |
linux*oldld* | linux*aout* | linux*coff*) |
|
15458 |
dynamic_linker=no |
|
15459 |
;; |
|
15460 |
||
15461 |
# This must be Linux ELF. |
|
15462 |
linux*) |
|
15463 |
version_type=linux |
|
15464 |
need_lib_prefix=no |
|
15465 |
need_version=no |
|
15466 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15467 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15468 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
15469 |
shlibpath_var=LD_LIBRARY_PATH |
|
15470 |
shlibpath_overrides_runpath=no |
|
15471 |
# This implies no fast_install, which is unacceptable. |
|
15472 |
# Some rework will be needed to allow for fast_install |
|
15473 |
# before this can be enabled. |
|
15474 |
hardcode_into_libs=yes |
|
15475 |
||
15476 |
# find out which ABI we are using |
|
15477 |
libsuff= |
|
15478 |
case "$host_cpu" in |
|
15479 |
x86_64*|s390x*|powerpc64*) |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
15480 |
echo '#line 15480 "configure"' > conftest.$ac_ext |
1
by Ross Burton
Import upstream version 0.10 |
15481 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15482 |
(eval $ac_compile) 2>&5 |
|
15483 |
ac_status=$? |
|
15484 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15485 |
(exit $ac_status); }; then |
|
15486 |
case `/usr/bin/file conftest.$ac_objext` in |
|
15487 |
*64-bit*) |
|
15488 |
libsuff=64 |
|
15489 |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
|
15490 |
;; |
|
15491 |
esac |
|
15492 |
fi |
|
15493 |
rm -rf conftest* |
|
15494 |
;; |
|
15495 |
esac |
|
15496 |
||
15497 |
# Append ld.so.conf contents to the search path |
|
15498 |
if test -f /etc/ld.so.conf; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
15499 |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
1
by Ross Burton
Import upstream version 0.10 |
15500 |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
15501 |
fi |
|
15502 |
||
15503 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
15504 |
# powerpc, because MkLinux only supported shared libraries with the |
|
15505 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
15506 |
# most powerpc-linux boxes support dynamic linking these days and |
|
15507 |
# people can always --disable-shared, the test was removed, and we |
|
15508 |
# assume the GNU/Linux dynamic linker is in use. |
|
15509 |
dynamic_linker='GNU/Linux ld.so' |
|
15510 |
;; |
|
15511 |
||
15512 |
knetbsd*-gnu) |
|
15513 |
version_type=linux |
|
15514 |
need_lib_prefix=no |
|
15515 |
need_version=no |
|
15516 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
15517 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15518 |
shlibpath_var=LD_LIBRARY_PATH |
|
15519 |
shlibpath_overrides_runpath=no |
|
15520 |
hardcode_into_libs=yes |
|
15521 |
dynamic_linker='GNU ld.so' |
|
15522 |
;; |
|
15523 |
||
15524 |
netbsd*) |
|
15525 |
version_type=sunos |
|
15526 |
need_lib_prefix=no |
|
15527 |
need_version=no |
|
15528 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
15529 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
15530 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
15531 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
15532 |
else |
|
15533 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
15534 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15535 |
dynamic_linker='NetBSD ld.elf_so' |
|
15536 |
fi |
|
15537 |
shlibpath_var=LD_LIBRARY_PATH |
|
15538 |
shlibpath_overrides_runpath=yes |
|
15539 |
hardcode_into_libs=yes |
|
15540 |
;; |
|
15541 |
||
15542 |
newsos6) |
|
15543 |
version_type=linux |
|
15544 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15545 |
shlibpath_var=LD_LIBRARY_PATH |
|
15546 |
shlibpath_overrides_runpath=yes |
|
15547 |
;; |
|
15548 |
||
15549 |
nto-qnx*) |
|
15550 |
version_type=linux |
|
15551 |
need_lib_prefix=no |
|
15552 |
need_version=no |
|
15553 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15554 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15555 |
shlibpath_var=LD_LIBRARY_PATH |
|
15556 |
shlibpath_overrides_runpath=yes |
|
15557 |
;; |
|
15558 |
||
15559 |
openbsd*) |
|
15560 |
version_type=sunos |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15561 |
sys_lib_dlsearch_path_spec="/usr/lib" |
1
by Ross Burton
Import upstream version 0.10 |
15562 |
need_lib_prefix=no |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15563 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15564 |
case $host_os in |
|
15565 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
15566 |
*) need_version=no ;; |
|
15567 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
15568 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15569 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
15570 |
shlibpath_var=LD_LIBRARY_PATH |
|
15571 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
15572 |
case $host_os in |
|
15573 |
openbsd2.[89] | openbsd2.[89].*) |
|
15574 |
shlibpath_overrides_runpath=no |
|
15575 |
;; |
|
15576 |
*) |
|
15577 |
shlibpath_overrides_runpath=yes |
|
15578 |
;; |
|
15579 |
esac |
|
15580 |
else |
|
15581 |
shlibpath_overrides_runpath=yes |
|
15582 |
fi |
|
15583 |
;; |
|
15584 |
||
15585 |
os2*) |
|
15586 |
libname_spec='$name' |
|
15587 |
shrext_cmds=".dll" |
|
15588 |
need_lib_prefix=no |
|
15589 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
15590 |
dynamic_linker='OS/2 ld.exe' |
|
15591 |
shlibpath_var=LIBPATH |
|
15592 |
;; |
|
15593 |
||
15594 |
osf3* | osf4* | osf5*) |
|
15595 |
version_type=osf |
|
15596 |
need_lib_prefix=no |
|
15597 |
need_version=no |
|
15598 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15599 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15600 |
shlibpath_var=LD_LIBRARY_PATH |
|
15601 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
15602 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
15603 |
;; |
|
15604 |
||
15605 |
solaris*) |
|
15606 |
version_type=linux |
|
15607 |
need_lib_prefix=no |
|
15608 |
need_version=no |
|
15609 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15610 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15611 |
shlibpath_var=LD_LIBRARY_PATH |
|
15612 |
shlibpath_overrides_runpath=yes |
|
15613 |
hardcode_into_libs=yes |
|
15614 |
# ldd complains unless libraries are executable |
|
15615 |
postinstall_cmds='chmod +x $lib' |
|
15616 |
;; |
|
15617 |
||
15618 |
sunos4*) |
|
15619 |
version_type=sunos |
|
15620 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
15621 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
15622 |
shlibpath_var=LD_LIBRARY_PATH |
|
15623 |
shlibpath_overrides_runpath=yes |
|
15624 |
if test "$with_gnu_ld" = yes; then |
|
15625 |
need_lib_prefix=no |
|
15626 |
fi |
|
15627 |
need_version=yes |
|
15628 |
;; |
|
15629 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15630 |
sysv4 | sysv4.3*) |
1
by Ross Burton
Import upstream version 0.10 |
15631 |
version_type=linux |
15632 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15633 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15634 |
shlibpath_var=LD_LIBRARY_PATH |
|
15635 |
case $host_vendor in |
|
15636 |
sni) |
|
15637 |
shlibpath_overrides_runpath=no |
|
15638 |
need_lib_prefix=no |
|
15639 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
15640 |
runpath_var=LD_RUN_PATH |
|
15641 |
;; |
|
15642 |
siemens) |
|
15643 |
need_lib_prefix=no |
|
15644 |
;; |
|
15645 |
motorola) |
|
15646 |
need_lib_prefix=no |
|
15647 |
need_version=no |
|
15648 |
shlibpath_overrides_runpath=no |
|
15649 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
15650 |
;; |
|
15651 |
esac |
|
15652 |
;; |
|
15653 |
||
15654 |
sysv4*MP*) |
|
15655 |
if test -d /usr/nec ;then |
|
15656 |
version_type=linux |
|
15657 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
15658 |
soname_spec='$libname${shared_ext}.$major' |
|
15659 |
shlibpath_var=LD_LIBRARY_PATH |
|
15660 |
fi |
|
15661 |
;; |
|
15662 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15663 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15664 |
version_type=freebsd-elf |
|
15665 |
need_lib_prefix=no |
|
15666 |
need_version=no |
|
15667 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
15668 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15669 |
shlibpath_var=LD_LIBRARY_PATH |
|
15670 |
hardcode_into_libs=yes |
|
15671 |
if test "$with_gnu_ld" = yes; then |
|
15672 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
15673 |
shlibpath_overrides_runpath=no |
|
15674 |
else |
|
15675 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
15676 |
shlibpath_overrides_runpath=yes |
|
15677 |
case $host_os in |
|
15678 |
sco3.2v5*) |
|
15679 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
15680 |
;; |
|
15681 |
esac |
|
15682 |
fi |
|
15683 |
sys_lib_dlsearch_path_spec='/usr/lib' |
|
15684 |
;; |
|
15685 |
||
1
by Ross Burton
Import upstream version 0.10 |
15686 |
uts4*) |
15687 |
version_type=linux |
|
15688 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15689 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15690 |
shlibpath_var=LD_LIBRARY_PATH |
|
15691 |
;; |
|
15692 |
||
15693 |
*) |
|
15694 |
dynamic_linker=no |
|
15695 |
;; |
|
15696 |
esac |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
15697 |
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15698 |
echo "${ECHO_T}$dynamic_linker" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
15699 |
test "$dynamic_linker" = no && can_build_shared=no |
15700 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15701 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15702 |
if test "$GCC" = yes; then |
|
15703 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
15704 |
fi |
|
15705 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
15706 |
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15707 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
15708 |
hardcode_action_F77= |
15709 |
if test -n "$hardcode_libdir_flag_spec_F77" || \ |
|
15710 |
test -n "$runpath_var_F77" || \ |
|
15711 |
test "X$hardcode_automatic_F77" = "Xyes" ; then |
|
15712 |
||
15713 |
# We can hardcode non-existant directories. |
|
15714 |
if test "$hardcode_direct_F77" != no && |
|
15715 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
15716 |
# have to relink, otherwise we might link with an installed library |
|
15717 |
# when we should be linking with a yet-to-be-installed one |
|
15718 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
|
15719 |
test "$hardcode_minus_L_F77" != no; then |
|
15720 |
# Linking always hardcodes the temporary library directory. |
|
15721 |
hardcode_action_F77=relink |
|
15722 |
else |
|
15723 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
15724 |
hardcode_action_F77=immediate |
|
15725 |
fi |
|
15726 |
else |
|
15727 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
15728 |
# directories. |
|
15729 |
hardcode_action_F77=unsupported |
|
15730 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
15731 |
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15732 |
echo "${ECHO_T}$hardcode_action_F77" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
15733 |
|
15734 |
if test "$hardcode_action_F77" = relink; then |
|
15735 |
# Fast installation is not supported |
|
15736 |
enable_fast_install=no |
|
15737 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
15738 |
test "$enable_shared" = no; then |
|
15739 |
# Fast installation is not necessary |
|
15740 |
enable_fast_install=needless |
|
15741 |
fi |
|
15742 |
||
15743 |
||
15744 |
# The else clause should only fire when bootstrapping the |
|
15745 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
15746 |
# with your package, and you will get complaints that there are |
|
15747 |
# no rules to generate ltmain.sh. |
|
15748 |
if test -f "$ltmain"; then |
|
15749 |
# See if we are running on zsh, and set the options which allow our commands through |
|
15750 |
# without removal of \ escapes. |
|
15751 |
if test -n "${ZSH_VERSION+set}" ; then |
|
15752 |
setopt NO_GLOB_SUBST |
|
15753 |
fi |
|
15754 |
# Now quote all the things that may contain metacharacters while being |
|
15755 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
15756 |
# variables and quote the copies for generation of the libtool script. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15757 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
1
by Ross Burton
Import upstream version 0.10 |
15758 |
SED SHELL STRIP \ |
15759 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
15760 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
15761 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
15762 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
15763 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
15764 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
15765 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
15766 |
compiler_F77 \ |
|
15767 |
CC_F77 \ |
|
15768 |
LD_F77 \ |
|
15769 |
lt_prog_compiler_wl_F77 \ |
|
15770 |
lt_prog_compiler_pic_F77 \ |
|
15771 |
lt_prog_compiler_static_F77 \ |
|
15772 |
lt_prog_compiler_no_builtin_flag_F77 \ |
|
15773 |
export_dynamic_flag_spec_F77 \ |
|
15774 |
thread_safe_flag_spec_F77 \ |
|
15775 |
whole_archive_flag_spec_F77 \ |
|
15776 |
enable_shared_with_static_runtimes_F77 \ |
|
15777 |
old_archive_cmds_F77 \ |
|
15778 |
old_archive_from_new_cmds_F77 \ |
|
15779 |
predep_objects_F77 \ |
|
15780 |
postdep_objects_F77 \ |
|
15781 |
predeps_F77 \ |
|
15782 |
postdeps_F77 \ |
|
15783 |
compiler_lib_search_path_F77 \ |
|
15784 |
archive_cmds_F77 \ |
|
15785 |
archive_expsym_cmds_F77 \ |
|
15786 |
postinstall_cmds_F77 \ |
|
15787 |
postuninstall_cmds_F77 \ |
|
15788 |
old_archive_from_expsyms_cmds_F77 \ |
|
15789 |
allow_undefined_flag_F77 \ |
|
15790 |
no_undefined_flag_F77 \ |
|
15791 |
export_symbols_cmds_F77 \ |
|
15792 |
hardcode_libdir_flag_spec_F77 \ |
|
15793 |
hardcode_libdir_flag_spec_ld_F77 \ |
|
15794 |
hardcode_libdir_separator_F77 \ |
|
15795 |
hardcode_automatic_F77 \ |
|
15796 |
module_cmds_F77 \ |
|
15797 |
module_expsym_cmds_F77 \ |
|
15798 |
lt_cv_prog_compiler_c_o_F77 \ |
|
15799 |
exclude_expsyms_F77 \ |
|
15800 |
include_expsyms_F77; do |
|
15801 |
||
15802 |
case $var in |
|
15803 |
old_archive_cmds_F77 | \ |
|
15804 |
old_archive_from_new_cmds_F77 | \ |
|
15805 |
archive_cmds_F77 | \ |
|
15806 |
archive_expsym_cmds_F77 | \ |
|
15807 |
module_cmds_F77 | \ |
|
15808 |
module_expsym_cmds_F77 | \ |
|
15809 |
old_archive_from_expsyms_cmds_F77 | \ |
|
15810 |
export_symbols_cmds_F77 | \ |
|
15811 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
15812 |
postinstall_cmds | postuninstall_cmds | \ |
|
15813 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
15814 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
15815 |
# Double-quote double-evaled strings. |
|
15816 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
15817 |
;; |
|
15818 |
*) |
|
15819 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
15820 |
;; |
|
15821 |
esac |
|
15822 |
done |
|
15823 |
||
15824 |
case $lt_echo in |
|
15825 |
*'\$0 --fallback-echo"') |
|
15826 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
15827 |
;; |
|
15828 |
esac |
|
15829 |
||
15830 |
cfgfile="$ofile" |
|
15831 |
||
15832 |
cat <<__EOF__ >> "$cfgfile" |
|
15833 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
15834 |
||
15835 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
15836 |
||
15837 |
# Shell to use when invoking shell scripts. |
|
15838 |
SHELL=$lt_SHELL |
|
15839 |
||
15840 |
# Whether or not to build shared libraries. |
|
15841 |
build_libtool_libs=$enable_shared |
|
15842 |
||
15843 |
# Whether or not to build static libraries. |
|
15844 |
build_old_libs=$enable_static |
|
15845 |
||
15846 |
# Whether or not to add -lc for building shared libraries. |
|
15847 |
build_libtool_need_lc=$archive_cmds_need_lc_F77 |
|
15848 |
||
15849 |
# Whether or not to disallow shared libs when runtime libs are static |
|
15850 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
|
15851 |
||
15852 |
# Whether or not to optimize for fast installation. |
|
15853 |
fast_install=$enable_fast_install |
|
15854 |
||
15855 |
# The host system. |
|
15856 |
host_alias=$host_alias |
|
15857 |
host=$host |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15858 |
host_os=$host_os |
15859 |
||
15860 |
# The build system. |
|
15861 |
build_alias=$build_alias |
|
15862 |
build=$build |
|
15863 |
build_os=$build_os |
|
1
by Ross Burton
Import upstream version 0.10 |
15864 |
|
15865 |
# An echo program that does not interpret backslashes. |
|
15866 |
echo=$lt_echo |
|
15867 |
||
15868 |
# The archiver. |
|
15869 |
AR=$lt_AR |
|
15870 |
AR_FLAGS=$lt_AR_FLAGS |
|
15871 |
||
15872 |
# A C compiler. |
|
15873 |
LTCC=$lt_LTCC |
|
15874 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15875 |
# LTCC compiler flags. |
15876 |
LTCFLAGS=$lt_LTCFLAGS |
|
15877 |
||
1
by Ross Burton
Import upstream version 0.10 |
15878 |
# A language-specific compiler. |
15879 |
CC=$lt_compiler_F77 |
|
15880 |
||
15881 |
# Is the compiler the GNU C compiler? |
|
15882 |
with_gcc=$GCC_F77 |
|
15883 |
||
15884 |
# An ERE matcher. |
|
15885 |
EGREP=$lt_EGREP |
|
15886 |
||
15887 |
# The linker used to build libraries. |
|
15888 |
LD=$lt_LD_F77 |
|
15889 |
||
15890 |
# Whether we need hard or soft links. |
|
15891 |
LN_S=$lt_LN_S |
|
15892 |
||
15893 |
# A BSD-compatible nm program. |
|
15894 |
NM=$lt_NM |
|
15895 |
||
15896 |
# A symbol stripping program |
|
15897 |
STRIP=$lt_STRIP |
|
15898 |
||
15899 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
15900 |
MAGIC_CMD=$MAGIC_CMD |
|
15901 |
||
15902 |
# Used on cygwin: DLL creation program. |
|
15903 |
DLLTOOL="$DLLTOOL" |
|
15904 |
||
15905 |
# Used on cygwin: object dumper. |
|
15906 |
OBJDUMP="$OBJDUMP" |
|
15907 |
||
15908 |
# Used on cygwin: assembler. |
|
15909 |
AS="$AS" |
|
15910 |
||
15911 |
# The name of the directory that contains temporary libtool files. |
|
15912 |
objdir=$objdir |
|
15913 |
||
15914 |
# How to create reloadable object files. |
|
15915 |
reload_flag=$lt_reload_flag |
|
15916 |
reload_cmds=$lt_reload_cmds |
|
15917 |
||
15918 |
# How to pass a linker flag through the compiler. |
|
15919 |
wl=$lt_lt_prog_compiler_wl_F77 |
|
15920 |
||
15921 |
# Object file suffix (normally "o"). |
|
15922 |
objext="$ac_objext" |
|
15923 |
||
15924 |
# Old archive suffix (normally "a"). |
|
15925 |
libext="$libext" |
|
15926 |
||
15927 |
# Shared library suffix (normally ".so"). |
|
15928 |
shrext_cmds='$shrext_cmds' |
|
15929 |
||
15930 |
# Executable file suffix (normally ""). |
|
15931 |
exeext="$exeext" |
|
15932 |
||
15933 |
# Additional compiler flags for building library objects. |
|
15934 |
pic_flag=$lt_lt_prog_compiler_pic_F77 |
|
15935 |
pic_mode=$pic_mode |
|
15936 |
||
15937 |
# What is the maximum length of a command? |
|
15938 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
15939 |
||
15940 |
# Does compiler simultaneously support -c and -o options? |
|
15941 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
|
15942 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
15943 |
# Must we lock files when doing compilation? |
1
by Ross Burton
Import upstream version 0.10 |
15944 |
need_locks=$lt_need_locks |
15945 |
||
15946 |
# Do we need the lib prefix for modules? |
|
15947 |
need_lib_prefix=$need_lib_prefix |
|
15948 |
||
15949 |
# Do we need a version for libraries? |
|
15950 |
need_version=$need_version |
|
15951 |
||
15952 |
# Whether dlopen is supported. |
|
15953 |
dlopen_support=$enable_dlopen |
|
15954 |
||
15955 |
# Whether dlopen of programs is supported. |
|
15956 |
dlopen_self=$enable_dlopen_self |
|
15957 |
||
15958 |
# Whether dlopen of statically linked programs is supported. |
|
15959 |
dlopen_self_static=$enable_dlopen_self_static |
|
15960 |
||
15961 |
# Compiler flag to prevent dynamic linking. |
|
15962 |
link_static_flag=$lt_lt_prog_compiler_static_F77 |
|
15963 |
||
15964 |
# Compiler flag to turn off builtin functions. |
|
15965 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
|
15966 |
||
15967 |
# Compiler flag to allow reflexive dlopens. |
|
15968 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
|
15969 |
||
15970 |
# Compiler flag to generate shared objects directly from archives. |
|
15971 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
|
15972 |
||
15973 |
# Compiler flag to generate thread-safe objects. |
|
15974 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
|
15975 |
||
15976 |
# Library versioning type. |
|
15977 |
version_type=$version_type |
|
15978 |
||
15979 |
# Format of library name prefix. |
|
15980 |
libname_spec=$lt_libname_spec |
|
15981 |
||
15982 |
# List of archive names. First name is the real one, the rest are links. |
|
15983 |
# The last name is the one that the linker finds with -lNAME. |
|
15984 |
library_names_spec=$lt_library_names_spec |
|
15985 |
||
15986 |
# The coded name of the library, if different from the real name. |
|
15987 |
soname_spec=$lt_soname_spec |
|
15988 |
||
15989 |
# Commands used to build and install an old-style archive. |
|
15990 |
RANLIB=$lt_RANLIB |
|
15991 |
old_archive_cmds=$lt_old_archive_cmds_F77 |
|
15992 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
15993 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
15994 |
||
15995 |
# Create an old-style archive from a shared archive. |
|
15996 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
|
15997 |
||
15998 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
15999 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
|
16000 |
||
16001 |
# Commands used to build and install a shared archive. |
|
16002 |
archive_cmds=$lt_archive_cmds_F77 |
|
16003 |
archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
|
16004 |
postinstall_cmds=$lt_postinstall_cmds |
|
16005 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
16006 |
||
16007 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
16008 |
module_cmds=$lt_module_cmds_F77 |
|
16009 |
module_expsym_cmds=$lt_module_expsym_cmds_F77 |
|
16010 |
||
16011 |
# Commands to strip libraries. |
|
16012 |
old_striplib=$lt_old_striplib |
|
16013 |
striplib=$lt_striplib |
|
16014 |
||
16015 |
# Dependencies to place before the objects being linked to create a |
|
16016 |
# shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16017 |
predep_objects=$lt_predep_objects_F77 |
1
by Ross Burton
Import upstream version 0.10 |
16018 |
|
16019 |
# Dependencies to place after the objects being linked to create a |
|
16020 |
# shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16021 |
postdep_objects=$lt_postdep_objects_F77 |
1
by Ross Burton
Import upstream version 0.10 |
16022 |
|
16023 |
# Dependencies to place before the objects being linked to create a |
|
16024 |
# shared library. |
|
16025 |
predeps=$lt_predeps_F77 |
|
16026 |
||
16027 |
# Dependencies to place after the objects being linked to create a |
|
16028 |
# shared library. |
|
16029 |
postdeps=$lt_postdeps_F77 |
|
16030 |
||
16031 |
# The library search path used internally by the compiler when linking |
|
16032 |
# a shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16033 |
compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
1
by Ross Burton
Import upstream version 0.10 |
16034 |
|
16035 |
# Method to check whether dependent libraries are shared objects. |
|
16036 |
deplibs_check_method=$lt_deplibs_check_method |
|
16037 |
||
16038 |
# Command to use when deplibs_check_method == file_magic. |
|
16039 |
file_magic_cmd=$lt_file_magic_cmd |
|
16040 |
||
16041 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
16042 |
allow_undefined_flag=$lt_allow_undefined_flag_F77 |
|
16043 |
||
16044 |
# Flag that forces no undefined symbols. |
|
16045 |
no_undefined_flag=$lt_no_undefined_flag_F77 |
|
16046 |
||
16047 |
# Commands used to finish a libtool library installation in a directory. |
|
16048 |
finish_cmds=$lt_finish_cmds |
|
16049 |
||
16050 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
16051 |
finish_eval=$lt_finish_eval |
|
16052 |
||
16053 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
16054 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
16055 |
||
16056 |
# Transform the output of nm in a proper C declaration |
|
16057 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
16058 |
||
16059 |
# Transform the output of nm in a C name address pair |
|
16060 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
16061 |
||
16062 |
# This is the shared library runtime path variable. |
|
16063 |
runpath_var=$runpath_var |
|
16064 |
||
16065 |
# This is the shared library path variable. |
|
16066 |
shlibpath_var=$shlibpath_var |
|
16067 |
||
16068 |
# Is shlibpath searched before the hard-coded library search path? |
|
16069 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
16070 |
||
16071 |
# How to hardcode a shared library path into an executable. |
|
16072 |
hardcode_action=$hardcode_action_F77 |
|
16073 |
||
16074 |
# Whether we should hardcode library paths into libraries. |
|
16075 |
hardcode_into_libs=$hardcode_into_libs |
|
16076 |
||
16077 |
# Flag to hardcode \$libdir into a binary during linking. |
|
16078 |
# This must work even if \$libdir does not exist. |
|
16079 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
|
16080 |
||
16081 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
16082 |
# a binary during linking. This must work even if \$libdir does |
|
16083 |
# not exist. |
|
16084 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
|
16085 |
||
16086 |
# Whether we need a single -rpath flag with a separated argument. |
|
16087 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
|
16088 |
||
16089 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
16090 |
# resulting binary. |
|
16091 |
hardcode_direct=$hardcode_direct_F77 |
|
16092 |
||
16093 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
16094 |
# resulting binary. |
|
16095 |
hardcode_minus_L=$hardcode_minus_L_F77 |
|
16096 |
||
16097 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
16098 |
# the resulting binary. |
|
16099 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
|
16100 |
||
16101 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
16102 |
# and all subsequent libraries and executables linked against it. |
|
16103 |
hardcode_automatic=$hardcode_automatic_F77 |
|
16104 |
||
16105 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
16106 |
# restored at relink time. |
|
16107 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
16108 |
||
16109 |
# Whether libtool must link a program against all its dependency libraries. |
|
16110 |
link_all_deplibs=$link_all_deplibs_F77 |
|
16111 |
||
16112 |
# Compile-time system search path for libraries |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16113 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
1
by Ross Burton
Import upstream version 0.10 |
16114 |
|
16115 |
# Run-time system search path for libraries |
|
16116 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
16117 |
||
16118 |
# Fix the shell variable \$srcfile for the compiler. |
|
16119 |
fix_srcfile_path="$fix_srcfile_path_F77" |
|
16120 |
||
16121 |
# Set to yes if exported symbols are required. |
|
16122 |
always_export_symbols=$always_export_symbols_F77 |
|
16123 |
||
16124 |
# The commands to list exported symbols. |
|
16125 |
export_symbols_cmds=$lt_export_symbols_cmds_F77 |
|
16126 |
||
16127 |
# The commands to extract the exported symbol list from a shared archive. |
|
16128 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
16129 |
||
16130 |
# Symbols that should not be listed in the preloaded symbols. |
|
16131 |
exclude_expsyms=$lt_exclude_expsyms_F77 |
|
16132 |
||
16133 |
# Symbols that must always be exported. |
|
16134 |
include_expsyms=$lt_include_expsyms_F77 |
|
16135 |
||
16136 |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
16137 |
||
16138 |
__EOF__ |
|
16139 |
||
16140 |
||
16141 |
else |
|
16142 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
16143 |
# `config.status --recheck' to rerun these tests and create the |
|
16144 |
# libtool script then. |
|
16145 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
16146 |
if test -f "$ltmain_in"; then |
|
16147 |
test -f Makefile && make "$ltmain" |
|
16148 |
fi |
|
16149 |
fi |
|
16150 |
||
16151 |
||
16152 |
ac_ext=c |
|
16153 |
ac_cpp='$CPP $CPPFLAGS' |
|
16154 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
16155 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
16156 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
16157 |
||
16158 |
CC="$lt_save_CC" |
|
16159 |
||
16160 |
else |
|
16161 |
tagname="" |
|
16162 |
fi |
|
16163 |
;; |
|
16164 |
||
16165 |
GCJ) |
|
16166 |
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
|
16167 |
||
16168 |
||
16169 |
# Source file extension for Java test sources. |
|
16170 |
ac_ext=java |
|
16171 |
||
16172 |
# Object file extension for compiled Java test sources. |
|
16173 |
objext=o |
|
16174 |
objext_GCJ=$objext |
|
16175 |
||
16176 |
# Code to be used in simple compile tests |
|
16177 |
lt_simple_compile_test_code="class foo {}\n" |
|
16178 |
||
16179 |
# Code to be used in simple link tests |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16180 |
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
1
by Ross Burton
Import upstream version 0.10 |
16181 |
|
16182 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
16183 |
||
16184 |
# If no C compiler was specified, use CC. |
|
16185 |
LTCC=${LTCC-"$CC"} |
|
16186 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16187 |
# If no C compiler flags were specified, use CFLAGS. |
16188 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
16189 |
||
1
by Ross Burton
Import upstream version 0.10 |
16190 |
# Allow CC to be a program name with arguments. |
16191 |
compiler=$CC |
|
16192 |
||
16193 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16194 |
# save warnings/boilerplate of simple test code |
16195 |
ac_outfile=conftest.$ac_objext |
|
16196 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
16197 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
16198 |
_lt_compiler_boilerplate=`cat conftest.err` |
|
16199 |
$rm conftest* |
|
16200 |
||
16201 |
ac_outfile=conftest.$ac_objext |
|
16202 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
16203 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
16204 |
_lt_linker_boilerplate=`cat conftest.err` |
|
16205 |
$rm conftest* |
|
16206 |
||
16207 |
||
1
by Ross Burton
Import upstream version 0.10 |
16208 |
# Allow CC to be a program name with arguments. |
16209 |
lt_save_CC="$CC" |
|
16210 |
CC=${GCJ-"gcj"} |
|
16211 |
compiler=$CC |
|
16212 |
compiler_GCJ=$CC |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16213 |
for cc_temp in $compiler""; do |
16214 |
case $cc_temp in |
|
16215 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
16216 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
16217 |
\-*) ;; |
|
16218 |
*) break;; |
|
16219 |
esac |
|
16220 |
done |
|
16221 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
16222 |
||
1
by Ross Burton
Import upstream version 0.10 |
16223 |
|
16224 |
# GCJ did not exist at the time GCC didn't implicitly link libc in. |
|
16225 |
archive_cmds_need_lc_GCJ=no |
|
16226 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16227 |
old_archive_cmds_GCJ=$old_archive_cmds |
16228 |
||
1
by Ross Burton
Import upstream version 0.10 |
16229 |
|
16230 |
lt_prog_compiler_no_builtin_flag_GCJ= |
|
16231 |
||
16232 |
if test "$GCC" = yes; then |
|
16233 |
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
|
16234 |
||
16235 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16236 |
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16237 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
16238 |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16239 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
16240 |
else |
|
16241 |
lt_cv_prog_compiler_rtti_exceptions=no |
|
16242 |
ac_outfile=conftest.$ac_objext |
|
16243 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
16244 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
16245 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
16246 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
16247 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
16248 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
16249 |
# The option is referenced via a variable to avoid confusing sed. |
|
16250 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16251 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1
by Ross Burton
Import upstream version 0.10 |
16252 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16253 |
-e 's:$: $lt_compiler_flag:'` |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
16254 |
(eval echo "\"\$as_me:16254: $lt_compile\"" >&5) |
1
by Ross Burton
Import upstream version 0.10 |
16255 |
(eval "$lt_compile" 2>conftest.err) |
16256 |
ac_status=$? |
|
16257 |
cat conftest.err >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
16258 |
echo "$as_me:16258: \$? = $ac_status" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
16259 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
16260 |
# The compiler can only warn and ignore the option if not recognized |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16261 |
# So say no if there are warnings other than the usual output. |
16262 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
16263 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
16264 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
1
by Ross Burton
Import upstream version 0.10 |
16265 |
lt_cv_prog_compiler_rtti_exceptions=yes |
16266 |
fi |
|
16267 |
fi |
|
16268 |
$rm conftest* |
|
16269 |
||
16270 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16271 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16272 |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
16273 |
|
16274 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
16275 |
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
|
16276 |
else |
|
16277 |
: |
|
16278 |
fi |
|
16279 |
||
16280 |
fi |
|
16281 |
||
16282 |
lt_prog_compiler_wl_GCJ= |
|
16283 |
lt_prog_compiler_pic_GCJ= |
|
16284 |
lt_prog_compiler_static_GCJ= |
|
16285 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16286 |
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16287 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
16288 |
|
16289 |
if test "$GCC" = yes; then |
|
16290 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16291 |
lt_prog_compiler_static_GCJ='-static' |
|
16292 |
||
16293 |
case $host_os in |
|
16294 |
aix*) |
|
16295 |
# All AIX code is PIC. |
|
16296 |
if test "$host_cpu" = ia64; then |
|
16297 |
# AIX 5 now supports IA64 processor |
|
16298 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16299 |
fi |
|
16300 |
;; |
|
16301 |
||
16302 |
amigaos*) |
|
16303 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
16304 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
16305 |
# like `-m68040'. |
|
16306 |
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
|
16307 |
;; |
|
16308 |
||
16309 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
16310 |
# PIC is the default for these OSes. |
|
16311 |
;; |
|
16312 |
||
16313 |
mingw* | pw32* | os2*) |
|
16314 |
# This hack is so that the source file can tell whether it is being |
|
16315 |
# built for inclusion in a dll (and should export symbols for example). |
|
16316 |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
|
16317 |
;; |
|
16318 |
||
16319 |
darwin* | rhapsody*) |
|
16320 |
# PIC is the default on this platform |
|
16321 |
# Common symbols not allowed in MH_DYLIB files |
|
16322 |
lt_prog_compiler_pic_GCJ='-fno-common' |
|
16323 |
;; |
|
16324 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16325 |
interix3*) |
16326 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
16327 |
# Instead, we relocate shared libraries at runtime. |
|
16328 |
;; |
|
16329 |
||
1
by Ross Burton
Import upstream version 0.10 |
16330 |
msdosdjgpp*) |
16331 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
|
16332 |
# on systems that don't support them. |
|
16333 |
lt_prog_compiler_can_build_shared_GCJ=no |
|
16334 |
enable_shared=no |
|
16335 |
;; |
|
16336 |
||
16337 |
sysv4*MP*) |
|
16338 |
if test -d /usr/nec; then |
|
16339 |
lt_prog_compiler_pic_GCJ=-Kconform_pic |
|
16340 |
fi |
|
16341 |
;; |
|
16342 |
||
16343 |
hpux*) |
|
16344 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
16345 |
# not for PA HP-UX. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16346 |
case $host_cpu in |
1
by Ross Burton
Import upstream version 0.10 |
16347 |
hppa*64*|ia64*) |
16348 |
# +Z the default |
|
16349 |
;; |
|
16350 |
*) |
|
16351 |
lt_prog_compiler_pic_GCJ='-fPIC' |
|
16352 |
;; |
|
16353 |
esac |
|
16354 |
;; |
|
16355 |
||
16356 |
*) |
|
16357 |
lt_prog_compiler_pic_GCJ='-fPIC' |
|
16358 |
;; |
|
16359 |
esac |
|
16360 |
else |
|
16361 |
# PORTME Check for flag to pass linker flags through the system compiler. |
|
16362 |
case $host_os in |
|
16363 |
aix*) |
|
16364 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16365 |
if test "$host_cpu" = ia64; then |
|
16366 |
# AIX 5 now supports IA64 processor |
|
16367 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16368 |
else |
|
16369 |
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
|
16370 |
fi |
|
16371 |
;; |
|
16372 |
darwin*) |
|
16373 |
# PIC is the default on this platform |
|
16374 |
# Common symbols not allowed in MH_DYLIB files |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16375 |
case $cc_basename in |
1
by Ross Burton
Import upstream version 0.10 |
16376 |
xlc*) |
16377 |
lt_prog_compiler_pic_GCJ='-qnocommon' |
|
16378 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16379 |
;; |
|
16380 |
esac |
|
16381 |
;; |
|
16382 |
||
16383 |
mingw* | pw32* | os2*) |
|
16384 |
# This hack is so that the source file can tell whether it is being |
|
16385 |
# built for inclusion in a dll (and should export symbols for example). |
|
16386 |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
|
16387 |
;; |
|
16388 |
||
16389 |
hpux9* | hpux10* | hpux11*) |
|
16390 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16391 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
16392 |
# not for PA HP-UX. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16393 |
case $host_cpu in |
1
by Ross Burton
Import upstream version 0.10 |
16394 |
hppa*64*|ia64*) |
16395 |
# +Z the default |
|
16396 |
;; |
|
16397 |
*) |
|
16398 |
lt_prog_compiler_pic_GCJ='+Z' |
|
16399 |
;; |
|
16400 |
esac |
|
16401 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
16402 |
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
|
16403 |
;; |
|
16404 |
||
16405 |
irix5* | irix6* | nonstopux*) |
|
16406 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16407 |
# PIC (with -KPIC) is the default. |
|
16408 |
lt_prog_compiler_static_GCJ='-non_shared' |
|
16409 |
;; |
|
16410 |
||
16411 |
newsos6) |
|
16412 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
16413 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16414 |
;; |
|
16415 |
||
16416 |
linux*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16417 |
case $cc_basename in |
1
by Ross Burton
Import upstream version 0.10 |
16418 |
icc* | ecc*) |
16419 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16420 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
16421 |
lt_prog_compiler_static_GCJ='-static' |
|
16422 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16423 |
pgcc* | pgf77* | pgf90* | pgf95*) |
16424 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
|
16425 |
# which looks to be a dead project) |
|
16426 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16427 |
lt_prog_compiler_pic_GCJ='-fpic' |
|
16428 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16429 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
16430 |
ccc*) |
16431 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16432 |
# All Alpha code is PIC. |
|
16433 |
lt_prog_compiler_static_GCJ='-non_shared' |
|
16434 |
;; |
|
16435 |
esac |
|
16436 |
;; |
|
16437 |
||
16438 |
osf3* | osf4* | osf5*) |
|
16439 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16440 |
# All OSF/1 code is PIC. |
|
16441 |
lt_prog_compiler_static_GCJ='-non_shared' |
|
16442 |
;; |
|
16443 |
||
16444 |
solaris*) |
|
16445 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
16446 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16447 |
case $cc_basename in |
16448 |
f77* | f90* | f95*) |
|
16449 |
lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
|
16450 |
*) |
|
16451 |
lt_prog_compiler_wl_GCJ='-Wl,';; |
|
16452 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
16453 |
;; |
16454 |
||
16455 |
sunos4*) |
|
16456 |
lt_prog_compiler_wl_GCJ='-Qoption ld ' |
|
16457 |
lt_prog_compiler_pic_GCJ='-PIC' |
|
16458 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16459 |
;; |
|
16460 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16461 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
1
by Ross Burton
Import upstream version 0.10 |
16462 |
lt_prog_compiler_wl_GCJ='-Wl,' |
16463 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
16464 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16465 |
;; |
|
16466 |
||
16467 |
sysv4*MP*) |
|
16468 |
if test -d /usr/nec ;then |
|
16469 |
lt_prog_compiler_pic_GCJ='-Kconform_pic' |
|
16470 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16471 |
fi |
|
16472 |
;; |
|
16473 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16474 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16475 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16476 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
16477 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16478 |
;; |
|
16479 |
||
16480 |
unicos*) |
|
16481 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16482 |
lt_prog_compiler_can_build_shared_GCJ=no |
|
16483 |
;; |
|
16484 |
||
1
by Ross Burton
Import upstream version 0.10 |
16485 |
uts4*) |
16486 |
lt_prog_compiler_pic_GCJ='-pic' |
|
16487 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16488 |
;; |
|
16489 |
||
16490 |
*) |
|
16491 |
lt_prog_compiler_can_build_shared_GCJ=no |
|
16492 |
;; |
|
16493 |
esac |
|
16494 |
fi |
|
16495 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16496 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16497 |
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
16498 |
|
16499 |
# |
|
16500 |
# Check to make sure the PIC flag actually works. |
|
16501 |
# |
|
16502 |
if test -n "$lt_prog_compiler_pic_GCJ"; then |
|
16503 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16504 |
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16505 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
16506 |
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16507 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
16508 |
else |
|
16509 |
lt_prog_compiler_pic_works_GCJ=no |
|
16510 |
ac_outfile=conftest.$ac_objext |
|
16511 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
16512 |
lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
|
16513 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
16514 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
16515 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
16516 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
16517 |
# The option is referenced via a variable to avoid confusing sed. |
|
16518 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16519 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1
by Ross Burton
Import upstream version 0.10 |
16520 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16521 |
-e 's:$: $lt_compiler_flag:'` |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
16522 |
(eval echo "\"\$as_me:16522: $lt_compile\"" >&5) |
1
by Ross Burton
Import upstream version 0.10 |
16523 |
(eval "$lt_compile" 2>conftest.err) |
16524 |
ac_status=$? |
|
16525 |
cat conftest.err >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
16526 |
echo "$as_me:16526: \$? = $ac_status" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
16527 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
16528 |
# The compiler can only warn and ignore the option if not recognized |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16529 |
# So say no if there are warnings other than the usual output. |
16530 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
16531 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
16532 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
1
by Ross Burton
Import upstream version 0.10 |
16533 |
lt_prog_compiler_pic_works_GCJ=yes |
16534 |
fi |
|
16535 |
fi |
|
16536 |
$rm conftest* |
|
16537 |
||
16538 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16539 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16540 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
16541 |
|
16542 |
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
|
16543 |
case $lt_prog_compiler_pic_GCJ in |
|
16544 |
"" | " "*) ;; |
|
16545 |
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
|
16546 |
esac |
|
16547 |
else |
|
16548 |
lt_prog_compiler_pic_GCJ= |
|
16549 |
lt_prog_compiler_can_build_shared_GCJ=no |
|
16550 |
fi |
|
16551 |
||
16552 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16553 |
case $host_os in |
1
by Ross Burton
Import upstream version 0.10 |
16554 |
# For platforms which do not support PIC, -DPIC is meaningless: |
16555 |
*djgpp*) |
|
16556 |
lt_prog_compiler_pic_GCJ= |
|
16557 |
;; |
|
16558 |
*) |
|
16559 |
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
|
16560 |
;; |
|
16561 |
esac |
|
16562 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16563 |
# |
16564 |
# Check to make sure the static flag actually works. |
|
16565 |
# |
|
16566 |
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16567 |
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16568 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16569 |
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16570 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
16571 |
else |
|
16572 |
lt_prog_compiler_static_works_GCJ=no |
|
16573 |
save_LDFLAGS="$LDFLAGS" |
|
16574 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
16575 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
16576 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
16577 |
# The linker can only warn and ignore the option if not recognized |
|
16578 |
# So say no if there are warnings |
|
16579 |
if test -s conftest.err; then |
|
16580 |
# Append any errors to the config.log. |
|
16581 |
cat conftest.err 1>&5 |
|
16582 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
16583 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
16584 |
if diff conftest.exp conftest.er2 >/dev/null; then |
|
16585 |
lt_prog_compiler_static_works_GCJ=yes |
|
16586 |
fi |
|
16587 |
else |
|
16588 |
lt_prog_compiler_static_works_GCJ=yes |
|
16589 |
fi |
|
16590 |
fi |
|
16591 |
$rm conftest* |
|
16592 |
LDFLAGS="$save_LDFLAGS" |
|
16593 |
||
16594 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16595 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16596 |
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16597 |
|
16598 |
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
|
16599 |
: |
|
16600 |
else |
|
16601 |
lt_prog_compiler_static_GCJ= |
|
16602 |
fi |
|
16603 |
||
16604 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16605 |
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16606 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
16607 |
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16608 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
16609 |
else |
|
16610 |
lt_cv_prog_compiler_c_o_GCJ=no |
|
16611 |
$rm -r conftest 2>/dev/null |
|
16612 |
mkdir conftest |
|
16613 |
cd conftest |
|
16614 |
mkdir out |
|
16615 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
16616 |
||
16617 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
16618 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
16619 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
16620 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
16621 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
16622 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16623 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1
by Ross Burton
Import upstream version 0.10 |
16624 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16625 |
-e 's:$: $lt_compiler_flag:'` |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
16626 |
(eval echo "\"\$as_me:16626: $lt_compile\"" >&5) |
1
by Ross Burton
Import upstream version 0.10 |
16627 |
(eval "$lt_compile" 2>out/conftest.err) |
16628 |
ac_status=$? |
|
16629 |
cat out/conftest.err >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
16630 |
echo "$as_me:16630: \$? = $ac_status" >&5 |
1
by Ross Burton
Import upstream version 0.10 |
16631 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16632 |
then |
|
16633 |
# The compiler can only warn and ignore the option if not recognized |
|
16634 |
# So say no if there are warnings |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16635 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16636 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
16637 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
1
by Ross Burton
Import upstream version 0.10 |
16638 |
lt_cv_prog_compiler_c_o_GCJ=yes |
16639 |
fi |
|
16640 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16641 |
chmod u+w . 2>&5 |
1
by Ross Burton
Import upstream version 0.10 |
16642 |
$rm conftest* |
16643 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
16644 |
# template instantiation |
|
16645 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
16646 |
$rm out/* && rmdir out |
|
16647 |
cd .. |
|
16648 |
rmdir conftest |
|
16649 |
$rm conftest* |
|
16650 |
||
16651 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16652 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16653 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
16654 |
|
16655 |
||
16656 |
hard_links="nottested" |
|
16657 |
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
|
16658 |
# do not overwrite the value of need_locks provided by the user |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16659 |
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16660 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
16661 |
hard_links=yes |
16662 |
$rm conftest* |
|
16663 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
16664 |
touch conftest.a |
|
16665 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
16666 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16667 |
{ echo "$as_me:$LINENO: result: $hard_links" >&5 |
16668 |
echo "${ECHO_T}$hard_links" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
16669 |
if test "$hard_links" = no; then |
16670 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
16671 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
16672 |
need_locks=warn |
|
16673 |
fi |
|
16674 |
else |
|
16675 |
need_locks=no |
|
16676 |
fi |
|
16677 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
16678 |
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16679 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
16680 |
|
16681 |
runpath_var= |
|
16682 |
allow_undefined_flag_GCJ= |
|
16683 |
enable_shared_with_static_runtimes_GCJ=no |
|
16684 |
archive_cmds_GCJ= |
|
16685 |
archive_expsym_cmds_GCJ= |
|
16686 |
old_archive_From_new_cmds_GCJ= |
|
16687 |
old_archive_from_expsyms_cmds_GCJ= |
|
16688 |
export_dynamic_flag_spec_GCJ= |
|
16689 |
whole_archive_flag_spec_GCJ= |
|
16690 |
thread_safe_flag_spec_GCJ= |
|
16691 |
hardcode_libdir_flag_spec_GCJ= |
|
16692 |
hardcode_libdir_flag_spec_ld_GCJ= |
|
16693 |
hardcode_libdir_separator_GCJ= |
|
16694 |
hardcode_direct_GCJ=no |
|
16695 |
hardcode_minus_L_GCJ=no |
|
16696 |
hardcode_shlibpath_var_GCJ=unsupported |
|
16697 |
link_all_deplibs_GCJ=unknown |
|
16698 |
hardcode_automatic_GCJ=no |
|
16699 |
module_cmds_GCJ= |
|
16700 |
module_expsym_cmds_GCJ= |
|
16701 |
always_export_symbols_GCJ=no |
|
16702 |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
16703 |
# include_expsyms should be a list of space-separated symbols to be *always* |
|
16704 |
# included in the symbol list |
|
16705 |
include_expsyms_GCJ= |
|
16706 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
|
16707 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
16708 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
16709 |
# as well as any symbol that contains `d'. |
|
16710 |
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
|
16711 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
16712 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
16713 |
# the symbol is explicitly referenced. Since portable code cannot |
|
16714 |
# rely on this symbol name, it's probably fine to never include it in |
|
16715 |
# preloaded symbol tables. |
|
16716 |
extract_expsyms_cmds= |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16717 |
# Just being paranoid about ensuring that cc_basename is set. |
16718 |
for cc_temp in $compiler""; do |
|
16719 |
case $cc_temp in |
|
16720 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
16721 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
16722 |
\-*) ;; |
|
16723 |
*) break;; |
|
16724 |
esac |
|
16725 |
done |
|
16726 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
1
by Ross Burton
Import upstream version 0.10 |
16727 |
|
16728 |
case $host_os in |
|
16729 |
cygwin* | mingw* | pw32*) |
|
16730 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
16731 |
# When not using gcc, we currently assume that we are using |
|
16732 |
# Microsoft Visual C++. |
|
16733 |
if test "$GCC" != yes; then |
|
16734 |
with_gnu_ld=no |
|
16735 |
fi |
|
16736 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16737 |
interix*) |
16738 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
|
16739 |
with_gnu_ld=yes |
|
16740 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
16741 |
openbsd*) |
16742 |
with_gnu_ld=no |
|
16743 |
;; |
|
16744 |
esac |
|
16745 |
||
16746 |
ld_shlibs_GCJ=yes |
|
16747 |
if test "$with_gnu_ld" = yes; then |
|
16748 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
16749 |
wlarc='${wl}' |
|
16750 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16751 |
# Set some defaults for GNU ld with shared library support. These |
16752 |
# are reset later if shared libraries are not supported. Putting them |
|
16753 |
# here allows them to be overridden if necessary. |
|
16754 |
runpath_var=LD_RUN_PATH |
|
16755 |
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
|
16756 |
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
|
16757 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
16758 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
16759 |
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
16760 |
else |
|
16761 |
whole_archive_flag_spec_GCJ= |
|
16762 |
fi |
|
16763 |
supports_anon_versioning=no |
|
16764 |
case `$LD -v 2>/dev/null` in |
|
16765 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
16766 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
16767 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
16768 |
*\ 2.11.*) ;; # other 2.11 versions |
|
16769 |
*) supports_anon_versioning=yes ;; |
|
16770 |
esac |
|
16771 |
||
1
by Ross Burton
Import upstream version 0.10 |
16772 |
# See if GNU ld supports shared libraries. |
16773 |
case $host_os in |
|
16774 |
aix3* | aix4* | aix5*) |
|
16775 |
# On AIX/PPC, the GNU linker is very broken |
|
16776 |
if test "$host_cpu" != ia64; then |
|
16777 |
ld_shlibs_GCJ=no |
|
16778 |
cat <<EOF 1>&2 |
|
16779 |
||
16780 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
16781 |
*** to be unable to reliably create shared libraries on AIX. |
|
16782 |
*** Therefore, libtool is disabling shared libraries support. If you |
|
16783 |
*** really care for shared libraries, you may want to modify your PATH |
|
16784 |
*** so that a non-GNU linker is found, and then restart. |
|
16785 |
||
16786 |
EOF |
|
16787 |
fi |
|
16788 |
;; |
|
16789 |
||
16790 |
amigaos*) |
|
16791 |
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)' |
|
16792 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
16793 |
hardcode_minus_L_GCJ=yes |
|
16794 |
||
16795 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
16796 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
|
16797 |
# to version 4, is to share data among multiple programs linked |
|
16798 |
# with the same dynamic library. Since this doesn't match the |
|
16799 |
# behavior of shared libraries on other platforms, we can't use |
|
16800 |
# them. |
|
16801 |
ld_shlibs_GCJ=no |
|
16802 |
;; |
|
16803 |
||
16804 |
beos*) |
|
16805 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
16806 |
allow_undefined_flag_GCJ=unsupported |
|
16807 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
16808 |
# support --undefined. This deserves some investigation. FIXME |
|
16809 |
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
16810 |
else |
|
16811 |
ld_shlibs_GCJ=no |
|
16812 |
fi |
|
16813 |
;; |
|
16814 |
||
16815 |
cygwin* | mingw* | pw32*) |
|
16816 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
|
16817 |
# as there is no search path for DLLs. |
|
16818 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
16819 |
allow_undefined_flag_GCJ=unsupported |
|
16820 |
always_export_symbols_GCJ=no |
|
16821 |
enable_shared_with_static_runtimes_GCJ=yes |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16822 |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
1
by Ross Burton
Import upstream version 0.10 |
16823 |
|
16824 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16825 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
1
by Ross Burton
Import upstream version 0.10 |
16826 |
# If the export-symbols file already is a .def file (1st line |
16827 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
16828 |
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
16829 |
cp $export_symbols $output_objdir/$soname.def; |
|
16830 |
else |
|
16831 |
echo EXPORTS > $output_objdir/$soname.def; |
|
16832 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
16833 |
fi~ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16834 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16835 |
else |
|
16836 |
ld_shlibs_GCJ=no |
|
16837 |
fi |
|
16838 |
;; |
|
16839 |
||
16840 |
interix3*) |
|
16841 |
hardcode_direct_GCJ=no |
|
16842 |
hardcode_shlibpath_var_GCJ=no |
|
16843 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
16844 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
|
16845 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
16846 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
|
16847 |
# default) and relocated if they conflict, which is a slow very memory |
|
16848 |
# consuming and fragmenting process. To avoid this, we pick a random, |
|
16849 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
16850 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
16851 |
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' |
|
16852 |
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' |
|
16853 |
;; |
|
16854 |
||
16855 |
linux*) |
|
16856 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
16857 |
tmp_addflag= |
|
16858 |
case $cc_basename,$host_cpu in |
|
16859 |
pgcc*) # Portland Group C compiler |
|
16860 |
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' |
|
16861 |
tmp_addflag=' $pic_flag' |
|
16862 |
;; |
|
16863 |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
16864 |
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' |
|
16865 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
|
16866 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
16867 |
tmp_addflag=' -i_dynamic' ;; |
|
16868 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
16869 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
16870 |
ifc* | ifort*) # Intel Fortran compiler |
|
16871 |
tmp_addflag=' -nofor_main' ;; |
|
16872 |
esac |
|
16873 |
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
16874 |
||
16875 |
if test $supports_anon_versioning = yes; then |
|
16876 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
16877 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
16878 |
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
16879 |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
16880 |
fi |
|
16881 |
else |
|
16882 |
ld_shlibs_GCJ=no |
|
1
by Ross Burton
Import upstream version 0.10 |
16883 |
fi |
16884 |
;; |
|
16885 |
||
16886 |
netbsd*) |
|
16887 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
16888 |
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
16889 |
wlarc= |
|
16890 |
else |
|
16891 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
16892 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
16893 |
fi |
|
16894 |
;; |
|
16895 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16896 |
solaris*) |
1
by Ross Burton
Import upstream version 0.10 |
16897 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16898 |
ld_shlibs_GCJ=no |
|
16899 |
cat <<EOF 1>&2 |
|
16900 |
||
16901 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
16902 |
*** create shared libraries on Solaris systems. Therefore, libtool |
|
16903 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
16904 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
|
16905 |
*** your PATH or compiler configuration so that the native linker is |
|
16906 |
*** used, and then restart. |
|
16907 |
||
16908 |
EOF |
|
16909 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
16910 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
16911 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
16912 |
else |
|
16913 |
ld_shlibs_GCJ=no |
|
16914 |
fi |
|
16915 |
;; |
|
16916 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16917 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
16918 |
case `$LD -v 2>&1` in |
|
16919 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
16920 |
ld_shlibs_GCJ=no |
|
16921 |
cat <<_LT_EOF 1>&2 |
|
16922 |
||
16923 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
16924 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
|
16925 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
16926 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
16927 |
*** your PATH or compiler configuration so that the native linker is |
|
16928 |
*** used, and then restart. |
|
16929 |
||
16930 |
_LT_EOF |
|
16931 |
;; |
|
16932 |
*) |
|
16933 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
16934 |
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
16935 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
16936 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
16937 |
else |
|
16938 |
ld_shlibs_GCJ=no |
|
16939 |
fi |
|
16940 |
;; |
|
16941 |
esac |
|
16942 |
;; |
|
16943 |
||
1
by Ross Burton
Import upstream version 0.10 |
16944 |
sunos4*) |
16945 |
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
16946 |
wlarc= |
|
16947 |
hardcode_direct_GCJ=yes |
|
16948 |
hardcode_shlibpath_var_GCJ=no |
|
16949 |
;; |
|
16950 |
||
16951 |
*) |
|
16952 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
16953 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
16954 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
16955 |
else |
|
16956 |
ld_shlibs_GCJ=no |
|
16957 |
fi |
|
16958 |
;; |
|
16959 |
esac |
|
16960 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16961 |
if test "$ld_shlibs_GCJ" = no; then |
16962 |
runpath_var= |
|
16963 |
hardcode_libdir_flag_spec_GCJ= |
|
16964 |
export_dynamic_flag_spec_GCJ= |
|
16965 |
whole_archive_flag_spec_GCJ= |
|
1
by Ross Burton
Import upstream version 0.10 |
16966 |
fi |
16967 |
else |
|
16968 |
# PORTME fill in a description of your system's linker (not GNU ld) |
|
16969 |
case $host_os in |
|
16970 |
aix3*) |
|
16971 |
allow_undefined_flag_GCJ=unsupported |
|
16972 |
always_export_symbols_GCJ=yes |
|
16973 |
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' |
|
16974 |
# Note: this linker hardcodes the directories in LIBPATH if there |
|
16975 |
# are no directories specified by -L. |
|
16976 |
hardcode_minus_L_GCJ=yes |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
16977 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
1
by Ross Burton
Import upstream version 0.10 |
16978 |
# Neither direct hardcoding nor static linking is supported with a |
16979 |
# broken collect2. |
|
16980 |
hardcode_direct_GCJ=unsupported |
|
16981 |
fi |
|
16982 |
;; |
|
16983 |
||
16984 |
aix4* | aix5*) |
|
16985 |
if test "$host_cpu" = ia64; then |
|
16986 |
# On IA64, the linker does run time linking by default, so we don't |
|
16987 |
# have to do anything special. |
|
16988 |
aix_use_runtimelinking=no |
|
16989 |
exp_sym_flag='-Bexport' |
|
16990 |
no_entry_flag="" |
|
16991 |
else |
|
16992 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
16993 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
16994 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
16995 |
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' |
|
16996 |
else |
|
16997 |
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' |
|
16998 |
fi |
|
16999 |
aix_use_runtimelinking=no |
|
17000 |
||
17001 |
# Test if we are trying to use run time linking or normal |
|
17002 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
17003 |
# need to do runtime linking. |
|
17004 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
17005 |
for ld_flag in $LDFLAGS; do |
|
17006 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
17007 |
aix_use_runtimelinking=yes |
|
17008 |
break |
|
17009 |
fi |
|
17010 |
done |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17011 |
;; |
1
by Ross Burton
Import upstream version 0.10 |
17012 |
esac |
17013 |
||
17014 |
exp_sym_flag='-bexport' |
|
17015 |
no_entry_flag='-bnoentry' |
|
17016 |
fi |
|
17017 |
||
17018 |
# When large executables or shared objects are built, AIX ld can |
|
17019 |
# have problems creating the table of contents. If linking a library |
|
17020 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
17021 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
17022 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
17023 |
||
17024 |
archive_cmds_GCJ='' |
|
17025 |
hardcode_direct_GCJ=yes |
|
17026 |
hardcode_libdir_separator_GCJ=':' |
|
17027 |
link_all_deplibs_GCJ=yes |
|
17028 |
||
17029 |
if test "$GCC" = yes; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17030 |
case $host_os in aix4.[012]|aix4.[012].*) |
1
by Ross Burton
Import upstream version 0.10 |
17031 |
# We only want to do this on AIX 4.2 and lower, the check |
17032 |
# below for broken collect2 doesn't work under 4.3+ |
|
17033 |
collect2name=`${CC} -print-prog-name=collect2` |
|
17034 |
if test -f "$collect2name" && \ |
|
17035 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
17036 |
then |
|
17037 |
# We have reworked collect2 |
|
17038 |
hardcode_direct_GCJ=yes |
|
17039 |
else |
|
17040 |
# We have old collect2 |
|
17041 |
hardcode_direct_GCJ=unsupported |
|
17042 |
# It fails to find uninstalled libraries when the uninstalled |
|
17043 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
17044 |
# to unsupported forces relinking |
|
17045 |
hardcode_minus_L_GCJ=yes |
|
17046 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17047 |
hardcode_libdir_separator_GCJ= |
|
17048 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17049 |
;; |
1
by Ross Burton
Import upstream version 0.10 |
17050 |
esac |
17051 |
shared_flag='-shared' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17052 |
if test "$aix_use_runtimelinking" = yes; then |
17053 |
shared_flag="$shared_flag "'${wl}-G' |
|
17054 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
17055 |
else |
17056 |
# not using gcc |
|
17057 |
if test "$host_cpu" = ia64; then |
|
17058 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
17059 |
# chokes on -Wl,-G. The following line is correct: |
|
17060 |
shared_flag='-G' |
|
17061 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17062 |
if test "$aix_use_runtimelinking" = yes; then |
1
by Ross Burton
Import upstream version 0.10 |
17063 |
shared_flag='${wl}-G' |
17064 |
else |
|
17065 |
shared_flag='${wl}-bM:SRE' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17066 |
fi |
1
by Ross Burton
Import upstream version 0.10 |
17067 |
fi |
17068 |
fi |
|
17069 |
||
17070 |
# It seems that -bexpall does not export symbols beginning with |
|
17071 |
# underscore (_), so it is better to generate a list of symbols to export. |
|
17072 |
always_export_symbols_GCJ=yes |
|
17073 |
if test "$aix_use_runtimelinking" = yes; then |
|
17074 |
# Warning - without using the other runtime loading flags (-brtl), |
|
17075 |
# -berok will link without error, but may produce a broken library. |
|
17076 |
allow_undefined_flag_GCJ='-berok' |
|
17077 |
# Determine the default libpath from the value encoded in an empty executable. |
|
17078 |
cat >conftest.$ac_ext <<_ACEOF |
|
17079 |
/* confdefs.h. */ |
|
17080 |
_ACEOF |
|
17081 |
cat confdefs.h >>conftest.$ac_ext |
|
17082 |
cat >>conftest.$ac_ext <<_ACEOF |
|
17083 |
/* end confdefs.h. */ |
|
17084 |
||
17085 |
int |
|
17086 |
main () |
|
17087 |
{ |
|
17088 |
||
17089 |
; |
|
17090 |
return 0; |
|
17091 |
} |
|
17092 |
_ACEOF |
|
17093 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
17094 |
if { (ac_try="$ac_link" |
17095 |
case "(($ac_try" in |
|
17096 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
17097 |
*) ac_try_echo=$ac_try;; |
|
17098 |
esac |
|
17099 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
17100 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
17101 |
ac_status=$? |
17102 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
17103 |
rm -f conftest.er1 |
|
17104 |
cat conftest.err >&5 |
|
17105 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
17106 |
(exit $ac_status); } && { |
17107 |
test -z "$ac_c_werror_flag" || |
|
17108 |
test ! -s conftest.err |
|
17109 |
} && test -s conftest$ac_exeext && |
|
17110 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
17111 |
|
17112 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
17113 |
}'` |
|
17114 |
# Check for a 64-bit object if we didn't find anything. |
|
17115 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
17116 |
}'`; fi |
|
17117 |
else |
|
17118 |
echo "$as_me: failed program was:" >&5 |
|
17119 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
17120 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
17121 |
|
1
by Ross Burton
Import upstream version 0.10 |
17122 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
17123 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
17124 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
17125 |
conftest$ac_exeext conftest.$ac_ext |
17126 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
17127 |
||
17128 |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17129 |
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" |
1
by Ross Burton
Import upstream version 0.10 |
17130 |
else |
17131 |
if test "$host_cpu" = ia64; then |
|
17132 |
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
|
17133 |
allow_undefined_flag_GCJ="-z nodefs" |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17134 |
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" |
1
by Ross Burton
Import upstream version 0.10 |
17135 |
else |
17136 |
# Determine the default libpath from the value encoded in an empty executable. |
|
17137 |
cat >conftest.$ac_ext <<_ACEOF |
|
17138 |
/* confdefs.h. */ |
|
17139 |
_ACEOF |
|
17140 |
cat confdefs.h >>conftest.$ac_ext |
|
17141 |
cat >>conftest.$ac_ext <<_ACEOF |
|
17142 |
/* end confdefs.h. */ |
|
17143 |
||
17144 |
int |
|
17145 |
main () |
|
17146 |
{ |
|
17147 |
||
17148 |
; |
|
17149 |
return 0; |
|
17150 |
} |
|
17151 |
_ACEOF |
|
17152 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
17153 |
if { (ac_try="$ac_link" |
17154 |
case "(($ac_try" in |
|
17155 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
17156 |
*) ac_try_echo=$ac_try;; |
|
17157 |
esac |
|
17158 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
17159 |
(eval "$ac_link") 2>conftest.er1 |
|
1
by Ross Burton
Import upstream version 0.10 |
17160 |
ac_status=$? |
17161 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
17162 |
rm -f conftest.er1 |
|
17163 |
cat conftest.err >&5 |
|
17164 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
17165 |
(exit $ac_status); } && { |
17166 |
test -z "$ac_c_werror_flag" || |
|
17167 |
test ! -s conftest.err |
|
17168 |
} && test -s conftest$ac_exeext && |
|
17169 |
$as_test_x conftest$ac_exeext; then |
|
1
by Ross Burton
Import upstream version 0.10 |
17170 |
|
17171 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
17172 |
}'` |
|
17173 |
# Check for a 64-bit object if we didn't find anything. |
|
17174 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
17175 |
}'`; fi |
|
17176 |
else |
|
17177 |
echo "$as_me: failed program was:" >&5 |
|
17178 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
17179 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
17180 |
|
1
by Ross Burton
Import upstream version 0.10 |
17181 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
17182 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
17183 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1
by Ross Burton
Import upstream version 0.10 |
17184 |
conftest$ac_exeext conftest.$ac_ext |
17185 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
17186 |
||
17187 |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
17188 |
# Warning - without using the other run time loading flags, |
|
17189 |
# -berok will link without error, but may produce a broken library. |
|
17190 |
no_undefined_flag_GCJ=' ${wl}-bernotok' |
|
17191 |
allow_undefined_flag_GCJ=' ${wl}-berok' |
|
17192 |
# Exported symbols can be pulled into shared objects from archives |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17193 |
whole_archive_flag_spec_GCJ='$convenience' |
1
by Ross Burton
Import upstream version 0.10 |
17194 |
archive_cmds_need_lc_GCJ=yes |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17195 |
# This is similar to how AIX traditionally builds its shared libraries. |
17196 |
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' |
|
1
by Ross Burton
Import upstream version 0.10 |
17197 |
fi |
17198 |
fi |
|
17199 |
;; |
|
17200 |
||
17201 |
amigaos*) |
|
17202 |
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)' |
|
17203 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17204 |
hardcode_minus_L_GCJ=yes |
|
17205 |
# see comment about different semantics on the GNU ld section |
|
17206 |
ld_shlibs_GCJ=no |
|
17207 |
;; |
|
17208 |
||
17209 |
bsdi[45]*) |
|
17210 |
export_dynamic_flag_spec_GCJ=-rdynamic |
|
17211 |
;; |
|
17212 |
||
17213 |
cygwin* | mingw* | pw32*) |
|
17214 |
# When not using gcc, we currently assume that we are using |
|
17215 |
# Microsoft Visual C++. |
|
17216 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
17217 |
# no search path for DLLs. |
|
17218 |
hardcode_libdir_flag_spec_GCJ=' ' |
|
17219 |
allow_undefined_flag_GCJ=unsupported |
|
17220 |
# Tell ltmain to make .lib files, not .a files. |
|
17221 |
libext=lib |
|
17222 |
# Tell ltmain to make .dll files, not .so files. |
|
17223 |
shrext_cmds=".dll" |
|
17224 |
# FIXME: Setting linknames here is a bad hack. |
|
17225 |
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
17226 |
# The linker will automatically build a .lib file if we build a DLL. |
|
17227 |
old_archive_From_new_cmds_GCJ='true' |
|
17228 |
# FIXME: Should let the user specify the lib program. |
|
17229 |
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17230 |
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
1
by Ross Burton
Import upstream version 0.10 |
17231 |
enable_shared_with_static_runtimes_GCJ=yes |
17232 |
;; |
|
17233 |
||
17234 |
darwin* | rhapsody*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17235 |
case $host_os in |
1
by Ross Burton
Import upstream version 0.10 |
17236 |
rhapsody* | darwin1.[012]) |
17237 |
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
|
17238 |
;; |
|
17239 |
*) # Darwin 1.3 on |
|
17240 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
17241 |
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
17242 |
else |
|
17243 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
17244 |
10.[012]) |
|
17245 |
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
17246 |
;; |
|
17247 |
10.*) |
|
17248 |
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
|
17249 |
;; |
|
17250 |
esac |
|
17251 |
fi |
|
17252 |
;; |
|
17253 |
esac |
|
17254 |
archive_cmds_need_lc_GCJ=no |
|
17255 |
hardcode_direct_GCJ=no |
|
17256 |
hardcode_automatic_GCJ=yes |
|
17257 |
hardcode_shlibpath_var_GCJ=unsupported |
|
17258 |
whole_archive_flag_spec_GCJ='' |
|
17259 |
link_all_deplibs_GCJ=yes |
|
17260 |
if test "$GCC" = yes ; then |
|
17261 |
output_verbose_link_cmd='echo' |
|
17262 |
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
17263 |
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17264 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
1
by Ross Burton
Import upstream version 0.10 |
17265 |
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}' |
17266 |
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}' |
|
17267 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17268 |
case $cc_basename in |
1
by Ross Burton
Import upstream version 0.10 |
17269 |
xlc*) |
17270 |
output_verbose_link_cmd='echo' |
|
17271 |
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
17272 |
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17273 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
1
by Ross Burton
Import upstream version 0.10 |
17274 |
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
17275 |
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}' |
|
17276 |
;; |
|
17277 |
*) |
|
17278 |
ld_shlibs_GCJ=no |
|
17279 |
;; |
|
17280 |
esac |
|
17281 |
fi |
|
17282 |
;; |
|
17283 |
||
17284 |
dgux*) |
|
17285 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17286 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17287 |
hardcode_shlibpath_var_GCJ=no |
|
17288 |
;; |
|
17289 |
||
17290 |
freebsd1*) |
|
17291 |
ld_shlibs_GCJ=no |
|
17292 |
;; |
|
17293 |
||
17294 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
17295 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
17296 |
# does not break anything, and helps significantly (at the cost of a little |
|
17297 |
# extra space). |
|
17298 |
freebsd2.2*) |
|
17299 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
17300 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
17301 |
hardcode_direct_GCJ=yes |
|
17302 |
hardcode_shlibpath_var_GCJ=no |
|
17303 |
;; |
|
17304 |
||
17305 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
17306 |
freebsd2*) |
|
17307 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
17308 |
hardcode_direct_GCJ=yes |
|
17309 |
hardcode_minus_L_GCJ=yes |
|
17310 |
hardcode_shlibpath_var_GCJ=no |
|
17311 |
;; |
|
17312 |
||
17313 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17314 |
freebsd* | kfreebsd*-gnu | dragonfly*) |
1
by Ross Burton
Import upstream version 0.10 |
17315 |
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17316 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
17317 |
hardcode_direct_GCJ=yes |
|
17318 |
hardcode_shlibpath_var_GCJ=no |
|
17319 |
;; |
|
17320 |
||
17321 |
hpux9*) |
|
17322 |
if test "$GCC" = yes; then |
|
17323 |
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' |
|
17324 |
else |
|
17325 |
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' |
|
17326 |
fi |
|
17327 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
17328 |
hardcode_libdir_separator_GCJ=: |
|
17329 |
hardcode_direct_GCJ=yes |
|
17330 |
||
17331 |
# hardcode_minus_L: Not really in the search PATH, |
|
17332 |
# but as the default location of the library. |
|
17333 |
hardcode_minus_L_GCJ=yes |
|
17334 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
|
17335 |
;; |
|
17336 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17337 |
hpux10*) |
17338 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
17339 |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
17340 |
else |
|
17341 |
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
17342 |
fi |
|
17343 |
if test "$with_gnu_ld" = no; then |
|
17344 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
17345 |
hardcode_libdir_separator_GCJ=: |
|
17346 |
||
17347 |
hardcode_direct_GCJ=yes |
|
17348 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
|
17349 |
||
17350 |
# hardcode_minus_L: Not really in the search PATH, |
|
17351 |
# but as the default location of the library. |
|
17352 |
hardcode_minus_L_GCJ=yes |
|
17353 |
fi |
|
17354 |
;; |
|
17355 |
||
17356 |
hpux11*) |
|
17357 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
17358 |
case $host_cpu in |
|
17359 |
hppa*64*) |
|
1
by Ross Burton
Import upstream version 0.10 |
17360 |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17361 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17362 |
ia64*) |
17363 |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
17364 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
17365 |
*) |
17366 |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
17367 |
;; |
|
17368 |
esac |
|
17369 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17370 |
case $host_cpu in |
17371 |
hppa*64*) |
|
17372 |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17373 |
;; |
|
17374 |
ia64*) |
|
17375 |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
1
by Ross Burton
Import upstream version 0.10 |
17376 |
;; |
17377 |
*) |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17378 |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
1
by Ross Burton
Import upstream version 0.10 |
17379 |
;; |
17380 |
esac |
|
17381 |
fi |
|
17382 |
if test "$with_gnu_ld" = no; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17383 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17384 |
hardcode_libdir_separator_GCJ=: |
|
17385 |
||
17386 |
case $host_cpu in |
|
17387 |
hppa*64*|ia64*) |
|
1
by Ross Burton
Import upstream version 0.10 |
17388 |
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17389 |
hardcode_direct_GCJ=no |
17390 |
hardcode_shlibpath_var_GCJ=no |
|
1
by Ross Burton
Import upstream version 0.10 |
17391 |
;; |
17392 |
*) |
|
17393 |
hardcode_direct_GCJ=yes |
|
17394 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
|
17395 |
||
17396 |
# hardcode_minus_L: Not really in the search PATH, |
|
17397 |
# but as the default location of the library. |
|
17398 |
hardcode_minus_L_GCJ=yes |
|
17399 |
;; |
|
17400 |
esac |
|
17401 |
fi |
|
17402 |
;; |
|
17403 |
||
17404 |
irix5* | irix6* | nonstopux*) |
|
17405 |
if test "$GCC" = yes; then |
|
17406 |
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' |
|
17407 |
else |
|
17408 |
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' |
|
17409 |
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
|
17410 |
fi |
|
17411 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
17412 |
hardcode_libdir_separator_GCJ=: |
|
17413 |
link_all_deplibs_GCJ=yes |
|
17414 |
;; |
|
17415 |
||
17416 |
netbsd*) |
|
17417 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
17418 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
17419 |
else |
|
17420 |
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
17421 |
fi |
|
17422 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
17423 |
hardcode_direct_GCJ=yes |
|
17424 |
hardcode_shlibpath_var_GCJ=no |
|
17425 |
;; |
|
17426 |
||
17427 |
newsos6) |
|
17428 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17429 |
hardcode_direct_GCJ=yes |
|
17430 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
17431 |
hardcode_libdir_separator_GCJ=: |
|
17432 |
hardcode_shlibpath_var_GCJ=no |
|
17433 |
;; |
|
17434 |
||
17435 |
openbsd*) |
|
17436 |
hardcode_direct_GCJ=yes |
|
17437 |
hardcode_shlibpath_var_GCJ=no |
|
17438 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
17439 |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
17440 |
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
17441 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
17442 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
|
17443 |
else |
|
17444 |
case $host_os in |
|
17445 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
17446 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
17447 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
17448 |
;; |
|
17449 |
*) |
|
17450 |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
17451 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
17452 |
;; |
|
17453 |
esac |
|
17454 |
fi |
|
17455 |
;; |
|
17456 |
||
17457 |
os2*) |
|
17458 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17459 |
hardcode_minus_L_GCJ=yes |
|
17460 |
allow_undefined_flag_GCJ=unsupported |
|
17461 |
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' |
|
17462 |
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
17463 |
;; |
|
17464 |
||
17465 |
osf3*) |
|
17466 |
if test "$GCC" = yes; then |
|
17467 |
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
17468 |
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' |
|
17469 |
else |
|
17470 |
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
17471 |
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' |
|
17472 |
fi |
|
17473 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
17474 |
hardcode_libdir_separator_GCJ=: |
|
17475 |
;; |
|
17476 |
||
17477 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
17478 |
if test "$GCC" = yes; then |
|
17479 |
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
17480 |
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' |
|
17481 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
17482 |
else |
|
17483 |
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
17484 |
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' |
|
17485 |
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~ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17486 |
$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' |
1
by Ross Burton
Import upstream version 0.10 |
17487 |
|
17488 |
# Both c and cxx compiler support -rpath directly |
|
17489 |
hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
|
17490 |
fi |
|
17491 |
hardcode_libdir_separator_GCJ=: |
|
17492 |
;; |
|
17493 |
||
17494 |
solaris*) |
|
17495 |
no_undefined_flag_GCJ=' -z text' |
|
17496 |
if test "$GCC" = yes; then |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17497 |
wlarc='${wl}' |
1
by Ross Burton
Import upstream version 0.10 |
17498 |
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17499 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
17500 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
17501 |
else |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17502 |
wlarc='' |
1
by Ross Burton
Import upstream version 0.10 |
17503 |
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17504 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
17505 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
17506 |
fi |
|
17507 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
17508 |
hardcode_shlibpath_var_GCJ=no |
|
17509 |
case $host_os in |
|
17510 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17511 |
*) |
17512 |
# The compiler driver will combine linker options so we |
|
17513 |
# cannot just pass the convience library names through |
|
17514 |
# without $wl, iff we do not link with $LD. |
|
17515 |
# Luckily, gcc supports the same syntax we need for Sun Studio. |
|
17516 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
|
17517 |
case $wlarc in |
|
17518 |
'') |
|
17519 |
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
|
17520 |
*) |
|
17521 |
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
|
17522 |
esac ;; |
|
1
by Ross Burton
Import upstream version 0.10 |
17523 |
esac |
17524 |
link_all_deplibs_GCJ=yes |
|
17525 |
;; |
|
17526 |
||
17527 |
sunos4*) |
|
17528 |
if test "x$host_vendor" = xsequent; then |
|
17529 |
# Use $CC to link under sequent, because it throws in some extra .o |
|
17530 |
# files that make .init and .fini sections work. |
|
17531 |
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17532 |
else |
|
17533 |
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
17534 |
fi |
|
17535 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17536 |
hardcode_direct_GCJ=yes |
|
17537 |
hardcode_minus_L_GCJ=yes |
|
17538 |
hardcode_shlibpath_var_GCJ=no |
|
17539 |
;; |
|
17540 |
||
17541 |
sysv4) |
|
17542 |
case $host_vendor in |
|
17543 |
sni) |
|
17544 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17545 |
hardcode_direct_GCJ=yes # is this really true??? |
|
17546 |
;; |
|
17547 |
siemens) |
|
17548 |
## LD is ld it makes a PLAMLIB |
|
17549 |
## CC just makes a GrossModule. |
|
17550 |
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
17551 |
reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
|
17552 |
hardcode_direct_GCJ=no |
|
17553 |
;; |
|
17554 |
motorola) |
|
17555 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17556 |
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
|
17557 |
;; |
|
17558 |
esac |
|
17559 |
runpath_var='LD_RUN_PATH' |
|
17560 |
hardcode_shlibpath_var_GCJ=no |
|
17561 |
;; |
|
17562 |
||
17563 |
sysv4.3*) |
|
17564 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17565 |
hardcode_shlibpath_var_GCJ=no |
|
17566 |
export_dynamic_flag_spec_GCJ='-Bexport' |
|
17567 |
;; |
|
17568 |
||
17569 |
sysv4*MP*) |
|
17570 |
if test -d /usr/nec; then |
|
17571 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17572 |
hardcode_shlibpath_var_GCJ=no |
|
17573 |
runpath_var=LD_RUN_PATH |
|
17574 |
hardcode_runpath_var=yes |
|
17575 |
ld_shlibs_GCJ=yes |
|
17576 |
fi |
|
17577 |
;; |
|
17578 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17579 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17580 |
no_undefined_flag_GCJ='${wl}-z,text' |
|
17581 |
archive_cmds_need_lc_GCJ=no |
|
17582 |
hardcode_shlibpath_var_GCJ=no |
|
17583 |
runpath_var='LD_RUN_PATH' |
|
17584 |
||
17585 |
if test "$GCC" = yes; then |
|
17586 |
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17587 |
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17588 |
else |
|
17589 |
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17590 |
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17591 |
fi |
|
17592 |
;; |
|
17593 |
||
17594 |
sysv5* | sco3.2v5* | sco5v6*) |
|
17595 |
# Note: We can NOT use -z defs as we might desire, because we do not |
|
17596 |
# link with -lc, and that would cause any symbols used from libc to |
|
17597 |
# always be unresolved, which means just about no library would |
|
17598 |
# ever link correctly. If we're not using GNU ld we use -z text |
|
17599 |
# though, which does catch some bad symbols but isn't as heavy-handed |
|
17600 |
# as -z defs. |
|
17601 |
no_undefined_flag_GCJ='${wl}-z,text' |
|
17602 |
allow_undefined_flag_GCJ='${wl}-z,nodefs' |
|
17603 |
archive_cmds_need_lc_GCJ=no |
|
17604 |
hardcode_shlibpath_var_GCJ=no |
|
17605 |
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
17606 |
hardcode_libdir_separator_GCJ=':' |
|
17607 |
link_all_deplibs_GCJ=yes |
|
17608 |
export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
|
17609 |
runpath_var='LD_RUN_PATH' |
|
17610 |
||
17611 |
if test "$GCC" = yes; then |
|
17612 |
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17613 |
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17614 |
else |
|
17615 |
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17616 |
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17617 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
17618 |
;; |
17619 |
||
17620 |
uts4*) |
|
17621 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17622 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17623 |
hardcode_shlibpath_var_GCJ=no |
|
17624 |
;; |
|
17625 |
||
17626 |
*) |
|
17627 |
ld_shlibs_GCJ=no |
|
17628 |
;; |
|
17629 |
esac |
|
17630 |
fi |
|
17631 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
17632 |
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17633 |
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
17634 |
test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17635 |
||
17636 |
# |
|
17637 |
# Do we need to explicitly link libc? |
|
17638 |
# |
|
17639 |
case "x$archive_cmds_need_lc_GCJ" in |
|
17640 |
x|xyes) |
|
17641 |
# Assume -lc should be added |
|
17642 |
archive_cmds_need_lc_GCJ=yes |
|
17643 |
||
17644 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
17645 |
case $archive_cmds_GCJ in |
|
17646 |
*'~'*) |
|
17647 |
# FIXME: we may have to deal with multi-command sequences. |
|
17648 |
;; |
|
17649 |
'$CC '*) |
|
17650 |
# Test whether the compiler implicitly links with -lc since on some |
|
17651 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
17652 |
# to ld, don't add -lc before -lgcc. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
17653 |
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17654 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
17655 |
$rm conftest* |
17656 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
17657 |
||
17658 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
17659 |
(eval $ac_compile) 2>&5 |
|
17660 |
ac_status=$? |
|
17661 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
17662 |
(exit $ac_status); } 2>conftest.err; then |
|
17663 |
soname=conftest |
|
17664 |
lib=conftest |
|
17665 |
libobjs=conftest.$ac_objext |
|
17666 |
deplibs= |
|
17667 |
wl=$lt_prog_compiler_wl_GCJ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17668 |
pic_flag=$lt_prog_compiler_pic_GCJ |
1
by Ross Burton
Import upstream version 0.10 |
17669 |
compiler_flags=-v |
17670 |
linker_flags=-v |
|
17671 |
verstring= |
|
17672 |
output_objdir=. |
|
17673 |
libname=conftest |
|
17674 |
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
|
17675 |
allow_undefined_flag_GCJ= |
|
17676 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
17677 |
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
17678 |
ac_status=$? |
|
17679 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
17680 |
(exit $ac_status); } |
|
17681 |
then |
|
17682 |
archive_cmds_need_lc_GCJ=no |
|
17683 |
else |
|
17684 |
archive_cmds_need_lc_GCJ=yes |
|
17685 |
fi |
|
17686 |
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
|
17687 |
else |
|
17688 |
cat conftest.err 1>&5 |
|
17689 |
fi |
|
17690 |
$rm conftest* |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
17691 |
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17692 |
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
17693 |
;; |
17694 |
esac |
|
17695 |
fi |
|
17696 |
;; |
|
17697 |
esac |
|
17698 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
17699 |
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17700 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
17701 |
library_names_spec= |
17702 |
libname_spec='lib$name' |
|
17703 |
soname_spec= |
|
17704 |
shrext_cmds=".so" |
|
17705 |
postinstall_cmds= |
|
17706 |
postuninstall_cmds= |
|
17707 |
finish_cmds= |
|
17708 |
finish_eval= |
|
17709 |
shlibpath_var= |
|
17710 |
shlibpath_overrides_runpath=unknown |
|
17711 |
version_type=none |
|
17712 |
dynamic_linker="$host_os ld.so" |
|
17713 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
17714 |
if test "$GCC" = yes; then |
|
17715 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
17716 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
17717 |
# if the path contains ";" then we assume it to be the separator |
|
17718 |
# otherwise default to the standard path separator (i.e. ":") - it is |
|
17719 |
# assumed that no part of a normal pathname contains ";" but that should |
|
17720 |
# okay in the real world where ";" in dirpaths is itself problematic. |
|
17721 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
17722 |
else |
|
17723 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
17724 |
fi |
|
17725 |
else |
|
17726 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
17727 |
fi |
|
17728 |
need_lib_prefix=unknown |
|
17729 |
hardcode_into_libs=no |
|
17730 |
||
17731 |
# when you set need_version to no, make sure it does not cause -set_version |
|
17732 |
# flags to be left without arguments |
|
17733 |
need_version=unknown |
|
17734 |
||
17735 |
case $host_os in |
|
17736 |
aix3*) |
|
17737 |
version_type=linux |
|
17738 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
17739 |
shlibpath_var=LIBPATH |
|
17740 |
||
17741 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
17742 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17743 |
;; |
|
17744 |
||
17745 |
aix4* | aix5*) |
|
17746 |
version_type=linux |
|
17747 |
need_lib_prefix=no |
|
17748 |
need_version=no |
|
17749 |
hardcode_into_libs=yes |
|
17750 |
if test "$host_cpu" = ia64; then |
|
17751 |
# AIX 5 supports IA64 |
|
17752 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
17753 |
shlibpath_var=LD_LIBRARY_PATH |
|
17754 |
else |
|
17755 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
17756 |
# for dependence libraries. The import file would start with |
|
17757 |
# the line `#! .'. This would cause the generated library to |
|
17758 |
# depend on `.', always an invalid library. This was fixed in |
|
17759 |
# development snapshots of GCC prior to 3.0. |
|
17760 |
case $host_os in |
|
17761 |
aix4 | aix4.[01] | aix4.[01].*) |
|
17762 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
17763 |
echo ' yes ' |
|
17764 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
17765 |
: |
|
17766 |
else |
|
17767 |
can_build_shared=no |
|
17768 |
fi |
|
17769 |
;; |
|
17770 |
esac |
|
17771 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
17772 |
# soname into executable. Probably we can add versioning support to |
|
17773 |
# collect2, so additional links can be useful in future. |
|
17774 |
if test "$aix_use_runtimelinking" = yes; then |
|
17775 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
17776 |
# instead of lib<name>.a to let people know that these are not |
|
17777 |
# typical AIX shared libraries. |
|
17778 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17779 |
else |
|
17780 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
17781 |
# and later when we are not doing run time linking. |
|
17782 |
library_names_spec='${libname}${release}.a $libname.a' |
|
17783 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17784 |
fi |
|
17785 |
shlibpath_var=LIBPATH |
|
17786 |
fi |
|
17787 |
;; |
|
17788 |
||
17789 |
amigaos*) |
|
17790 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
17791 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
17792 |
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' |
|
17793 |
;; |
|
17794 |
||
17795 |
beos*) |
|
17796 |
library_names_spec='${libname}${shared_ext}' |
|
17797 |
dynamic_linker="$host_os ld.so" |
|
17798 |
shlibpath_var=LIBRARY_PATH |
|
17799 |
;; |
|
17800 |
||
17801 |
bsdi[45]*) |
|
17802 |
version_type=linux |
|
17803 |
need_version=no |
|
17804 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17805 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17806 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
17807 |
shlibpath_var=LD_LIBRARY_PATH |
|
17808 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
17809 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
17810 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
17811 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
17812 |
# libtool to hard-code these into programs |
|
17813 |
;; |
|
17814 |
||
17815 |
cygwin* | mingw* | pw32*) |
|
17816 |
version_type=windows |
|
17817 |
shrext_cmds=".dll" |
|
17818 |
need_version=no |
|
17819 |
need_lib_prefix=no |
|
17820 |
||
17821 |
case $GCC,$host_os in |
|
17822 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
|
17823 |
library_names_spec='$libname.dll.a' |
|
17824 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
17825 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
17826 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
17827 |
dldir=$destdir/`dirname \$dlpath`~ |
|
17828 |
test -d \$dldir || mkdir -p \$dldir~ |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17829 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
17830 |
chmod a+x \$dldir/$dlname' |
|
1
by Ross Burton
Import upstream version 0.10 |
17831 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17832 |
dlpath=$dir/\$dldll~ |
|
17833 |
$rm \$dlpath' |
|
17834 |
shlibpath_overrides_runpath=yes |
|
17835 |
||
17836 |
case $host_os in |
|
17837 |
cygwin*) |
|
17838 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
17839 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
17840 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
17841 |
;; |
|
17842 |
mingw*) |
|
17843 |
# MinGW DLLs use traditional 'lib' prefix |
|
17844 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
17845 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
17846 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
17847 |
# It is most probably a Windows format PATH printed by |
|
17848 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
17849 |
# path with ; separators, and with drive letters. We can handle the |
|
17850 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
17851 |
# especially as we might pass files found there to a mingw objdump, |
|
17852 |
# which wouldn't understand a cygwinified path. Ahh. |
|
17853 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
17854 |
else |
|
17855 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
17856 |
fi |
|
17857 |
;; |
|
17858 |
pw32*) |
|
17859 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17860 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
1
by Ross Burton
Import upstream version 0.10 |
17861 |
;; |
17862 |
esac |
|
17863 |
;; |
|
17864 |
||
17865 |
*) |
|
17866 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
17867 |
;; |
|
17868 |
esac |
|
17869 |
dynamic_linker='Win32 ld.exe' |
|
17870 |
# FIXME: first we should search . and the directory the executable is in |
|
17871 |
shlibpath_var=PATH |
|
17872 |
;; |
|
17873 |
||
17874 |
darwin* | rhapsody*) |
|
17875 |
dynamic_linker="$host_os dyld" |
|
17876 |
version_type=darwin |
|
17877 |
need_lib_prefix=no |
|
17878 |
need_version=no |
|
17879 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
17880 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
17881 |
shlibpath_overrides_runpath=yes |
|
17882 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17883 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
1
by Ross Burton
Import upstream version 0.10 |
17884 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17885 |
if test "$GCC" = yes; then |
|
17886 |
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
17887 |
else |
|
17888 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
17889 |
fi |
|
17890 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
17891 |
;; |
|
17892 |
||
17893 |
dgux*) |
|
17894 |
version_type=linux |
|
17895 |
need_lib_prefix=no |
|
17896 |
need_version=no |
|
17897 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
17898 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17899 |
shlibpath_var=LD_LIBRARY_PATH |
|
17900 |
;; |
|
17901 |
||
17902 |
freebsd1*) |
|
17903 |
dynamic_linker=no |
|
17904 |
;; |
|
17905 |
||
17906 |
kfreebsd*-gnu) |
|
17907 |
version_type=linux |
|
17908 |
need_lib_prefix=no |
|
17909 |
need_version=no |
|
17910 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
17911 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17912 |
shlibpath_var=LD_LIBRARY_PATH |
|
17913 |
shlibpath_overrides_runpath=no |
|
17914 |
hardcode_into_libs=yes |
|
17915 |
dynamic_linker='GNU ld.so' |
|
17916 |
;; |
|
17917 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17918 |
freebsd* | dragonfly*) |
17919 |
# DragonFly does not have aout. When/if they implement a new |
|
17920 |
# versioning mechanism, adjust this. |
|
17921 |
if test -x /usr/bin/objformat; then |
|
17922 |
objformat=`/usr/bin/objformat` |
|
17923 |
else |
|
17924 |
case $host_os in |
|
17925 |
freebsd[123]*) objformat=aout ;; |
|
17926 |
*) objformat=elf ;; |
|
17927 |
esac |
|
17928 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
17929 |
version_type=freebsd-$objformat |
17930 |
case $version_type in |
|
17931 |
freebsd-elf*) |
|
17932 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
17933 |
need_version=no |
|
17934 |
need_lib_prefix=no |
|
17935 |
;; |
|
17936 |
freebsd-*) |
|
17937 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
17938 |
need_version=yes |
|
17939 |
;; |
|
17940 |
esac |
|
17941 |
shlibpath_var=LD_LIBRARY_PATH |
|
17942 |
case $host_os in |
|
17943 |
freebsd2*) |
|
17944 |
shlibpath_overrides_runpath=yes |
|
17945 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17946 |
freebsd3.[01]* | freebsdelf3.[01]*) |
1
by Ross Burton
Import upstream version 0.10 |
17947 |
shlibpath_overrides_runpath=yes |
17948 |
hardcode_into_libs=yes |
|
17949 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17950 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
17951 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
1
by Ross Burton
Import upstream version 0.10 |
17952 |
shlibpath_overrides_runpath=no |
17953 |
hardcode_into_libs=yes |
|
17954 |
;; |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17955 |
freebsd*) # from 4.6 on |
17956 |
shlibpath_overrides_runpath=yes |
|
17957 |
hardcode_into_libs=yes |
|
17958 |
;; |
|
1
by Ross Burton
Import upstream version 0.10 |
17959 |
esac |
17960 |
;; |
|
17961 |
||
17962 |
gnu*) |
|
17963 |
version_type=linux |
|
17964 |
need_lib_prefix=no |
|
17965 |
need_version=no |
|
17966 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
17967 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17968 |
shlibpath_var=LD_LIBRARY_PATH |
|
17969 |
hardcode_into_libs=yes |
|
17970 |
;; |
|
17971 |
||
17972 |
hpux9* | hpux10* | hpux11*) |
|
17973 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
17974 |
# link against other versions. |
|
17975 |
version_type=sunos |
|
17976 |
need_lib_prefix=no |
|
17977 |
need_version=no |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
17978 |
case $host_cpu in |
1
by Ross Burton
Import upstream version 0.10 |
17979 |
ia64*) |
17980 |
shrext_cmds='.so' |
|
17981 |
hardcode_into_libs=yes |
|
17982 |
dynamic_linker="$host_os dld.so" |
|
17983 |
shlibpath_var=LD_LIBRARY_PATH |
|
17984 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
17985 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17986 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17987 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
17988 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
17989 |
else |
|
17990 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
17991 |
fi |
|
17992 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
17993 |
;; |
|
17994 |
hppa*64*) |
|
17995 |
shrext_cmds='.sl' |
|
17996 |
hardcode_into_libs=yes |
|
17997 |
dynamic_linker="$host_os dld.sl" |
|
17998 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
17999 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
18000 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18001 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18002 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
18003 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
18004 |
;; |
|
18005 |
*) |
|
18006 |
shrext_cmds='.sl' |
|
18007 |
dynamic_linker="$host_os dld.sl" |
|
18008 |
shlibpath_var=SHLIB_PATH |
|
18009 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
18010 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18011 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18012 |
;; |
|
18013 |
esac |
|
18014 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
18015 |
postinstall_cmds='chmod 555 $lib' |
|
18016 |
;; |
|
18017 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18018 |
interix3*) |
18019 |
version_type=linux |
|
18020 |
need_lib_prefix=no |
|
18021 |
need_version=no |
|
18022 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
18023 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18024 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
18025 |
shlibpath_var=LD_LIBRARY_PATH |
|
18026 |
shlibpath_overrides_runpath=no |
|
18027 |
hardcode_into_libs=yes |
|
18028 |
;; |
|
18029 |
||
1
by Ross Burton
Import upstream version 0.10 |
18030 |
irix5* | irix6* | nonstopux*) |
18031 |
case $host_os in |
|
18032 |
nonstopux*) version_type=nonstopux ;; |
|
18033 |
*) |
|
18034 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
18035 |
version_type=linux |
|
18036 |
else |
|
18037 |
version_type=irix |
|
18038 |
fi ;; |
|
18039 |
esac |
|
18040 |
need_lib_prefix=no |
|
18041 |
need_version=no |
|
18042 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18043 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
18044 |
case $host_os in |
|
18045 |
irix5* | nonstopux*) |
|
18046 |
libsuff= shlibsuff= |
|
18047 |
;; |
|
18048 |
*) |
|
18049 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
18050 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
18051 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
18052 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
18053 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
18054 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
18055 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
18056 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
18057 |
esac |
|
18058 |
;; |
|
18059 |
esac |
|
18060 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
18061 |
shlibpath_overrides_runpath=no |
|
18062 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
18063 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
18064 |
hardcode_into_libs=yes |
|
18065 |
;; |
|
18066 |
||
18067 |
# No shared lib support for Linux oldld, aout, or coff. |
|
18068 |
linux*oldld* | linux*aout* | linux*coff*) |
|
18069 |
dynamic_linker=no |
|
18070 |
;; |
|
18071 |
||
18072 |
# This must be Linux ELF. |
|
18073 |
linux*) |
|
18074 |
version_type=linux |
|
18075 |
need_lib_prefix=no |
|
18076 |
need_version=no |
|
18077 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18078 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18079 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
18080 |
shlibpath_var=LD_LIBRARY_PATH |
|
18081 |
shlibpath_overrides_runpath=no |
|
18082 |
# This implies no fast_install, which is unacceptable. |
|
18083 |
# Some rework will be needed to allow for fast_install |
|
18084 |
# before this can be enabled. |
|
18085 |
hardcode_into_libs=yes |
|
18086 |
||
18087 |
# find out which ABI we are using |
|
18088 |
libsuff= |
|
18089 |
case "$host_cpu" in |
|
18090 |
x86_64*|s390x*|powerpc64*) |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
18091 |
echo '#line 18091 "configure"' > conftest.$ac_ext |
1
by Ross Burton
Import upstream version 0.10 |
18092 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18093 |
(eval $ac_compile) 2>&5 |
|
18094 |
ac_status=$? |
|
18095 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18096 |
(exit $ac_status); }; then |
|
18097 |
case `/usr/bin/file conftest.$ac_objext` in |
|
18098 |
*64-bit*) |
|
18099 |
libsuff=64 |
|
18100 |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
|
18101 |
;; |
|
18102 |
esac |
|
18103 |
fi |
|
18104 |
rm -rf conftest* |
|
18105 |
;; |
|
18106 |
esac |
|
18107 |
||
18108 |
# Append ld.so.conf contents to the search path |
|
18109 |
if test -f /etc/ld.so.conf; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
18110 |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
1
by Ross Burton
Import upstream version 0.10 |
18111 |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
18112 |
fi |
|
18113 |
||
18114 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
18115 |
# powerpc, because MkLinux only supported shared libraries with the |
|
18116 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
18117 |
# most powerpc-linux boxes support dynamic linking these days and |
|
18118 |
# people can always --disable-shared, the test was removed, and we |
|
18119 |
# assume the GNU/Linux dynamic linker is in use. |
|
18120 |
dynamic_linker='GNU/Linux ld.so' |
|
18121 |
;; |
|
18122 |
||
18123 |
knetbsd*-gnu) |
|
18124 |
version_type=linux |
|
18125 |
need_lib_prefix=no |
|
18126 |
need_version=no |
|
18127 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
18128 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18129 |
shlibpath_var=LD_LIBRARY_PATH |
|
18130 |
shlibpath_overrides_runpath=no |
|
18131 |
hardcode_into_libs=yes |
|
18132 |
dynamic_linker='GNU ld.so' |
|
18133 |
;; |
|
18134 |
||
18135 |
netbsd*) |
|
18136 |
version_type=sunos |
|
18137 |
need_lib_prefix=no |
|
18138 |
need_version=no |
|
18139 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
18140 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
18141 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
18142 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
18143 |
else |
|
18144 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
18145 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18146 |
dynamic_linker='NetBSD ld.elf_so' |
|
18147 |
fi |
|
18148 |
shlibpath_var=LD_LIBRARY_PATH |
|
18149 |
shlibpath_overrides_runpath=yes |
|
18150 |
hardcode_into_libs=yes |
|
18151 |
;; |
|
18152 |
||
18153 |
newsos6) |
|
18154 |
version_type=linux |
|
18155 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18156 |
shlibpath_var=LD_LIBRARY_PATH |
|
18157 |
shlibpath_overrides_runpath=yes |
|
18158 |
;; |
|
18159 |
||
18160 |
nto-qnx*) |
|
18161 |
version_type=linux |
|
18162 |
need_lib_prefix=no |
|
18163 |
need_version=no |
|
18164 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18165 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18166 |
shlibpath_var=LD_LIBRARY_PATH |
|
18167 |
shlibpath_overrides_runpath=yes |
|
18168 |
;; |
|
18169 |
||
18170 |
openbsd*) |
|
18171 |
version_type=sunos |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18172 |
sys_lib_dlsearch_path_spec="/usr/lib" |
1
by Ross Burton
Import upstream version 0.10 |
18173 |
need_lib_prefix=no |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18174 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18175 |
case $host_os in |
|
18176 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
18177 |
*) need_version=no ;; |
|
18178 |
esac |
|
1
by Ross Burton
Import upstream version 0.10 |
18179 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18180 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
18181 |
shlibpath_var=LD_LIBRARY_PATH |
|
18182 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
18183 |
case $host_os in |
|
18184 |
openbsd2.[89] | openbsd2.[89].*) |
|
18185 |
shlibpath_overrides_runpath=no |
|
18186 |
;; |
|
18187 |
*) |
|
18188 |
shlibpath_overrides_runpath=yes |
|
18189 |
;; |
|
18190 |
esac |
|
18191 |
else |
|
18192 |
shlibpath_overrides_runpath=yes |
|
18193 |
fi |
|
18194 |
;; |
|
18195 |
||
18196 |
os2*) |
|
18197 |
libname_spec='$name' |
|
18198 |
shrext_cmds=".dll" |
|
18199 |
need_lib_prefix=no |
|
18200 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
18201 |
dynamic_linker='OS/2 ld.exe' |
|
18202 |
shlibpath_var=LIBPATH |
|
18203 |
;; |
|
18204 |
||
18205 |
osf3* | osf4* | osf5*) |
|
18206 |
version_type=osf |
|
18207 |
need_lib_prefix=no |
|
18208 |
need_version=no |
|
18209 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18210 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18211 |
shlibpath_var=LD_LIBRARY_PATH |
|
18212 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
18213 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
18214 |
;; |
|
18215 |
||
18216 |
solaris*) |
|
18217 |
version_type=linux |
|
18218 |
need_lib_prefix=no |
|
18219 |
need_version=no |
|
18220 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18221 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18222 |
shlibpath_var=LD_LIBRARY_PATH |
|
18223 |
shlibpath_overrides_runpath=yes |
|
18224 |
hardcode_into_libs=yes |
|
18225 |
# ldd complains unless libraries are executable |
|
18226 |
postinstall_cmds='chmod +x $lib' |
|
18227 |
;; |
|
18228 |
||
18229 |
sunos4*) |
|
18230 |
version_type=sunos |
|
18231 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
18232 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
18233 |
shlibpath_var=LD_LIBRARY_PATH |
|
18234 |
shlibpath_overrides_runpath=yes |
|
18235 |
if test "$with_gnu_ld" = yes; then |
|
18236 |
need_lib_prefix=no |
|
18237 |
fi |
|
18238 |
need_version=yes |
|
18239 |
;; |
|
18240 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18241 |
sysv4 | sysv4.3*) |
1
by Ross Burton
Import upstream version 0.10 |
18242 |
version_type=linux |
18243 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18244 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18245 |
shlibpath_var=LD_LIBRARY_PATH |
|
18246 |
case $host_vendor in |
|
18247 |
sni) |
|
18248 |
shlibpath_overrides_runpath=no |
|
18249 |
need_lib_prefix=no |
|
18250 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
18251 |
runpath_var=LD_RUN_PATH |
|
18252 |
;; |
|
18253 |
siemens) |
|
18254 |
need_lib_prefix=no |
|
18255 |
;; |
|
18256 |
motorola) |
|
18257 |
need_lib_prefix=no |
|
18258 |
need_version=no |
|
18259 |
shlibpath_overrides_runpath=no |
|
18260 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
18261 |
;; |
|
18262 |
esac |
|
18263 |
;; |
|
18264 |
||
18265 |
sysv4*MP*) |
|
18266 |
if test -d /usr/nec ;then |
|
18267 |
version_type=linux |
|
18268 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
18269 |
soname_spec='$libname${shared_ext}.$major' |
|
18270 |
shlibpath_var=LD_LIBRARY_PATH |
|
18271 |
fi |
|
18272 |
;; |
|
18273 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18274 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18275 |
version_type=freebsd-elf |
|
18276 |
need_lib_prefix=no |
|
18277 |
need_version=no |
|
18278 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
18279 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18280 |
shlibpath_var=LD_LIBRARY_PATH |
|
18281 |
hardcode_into_libs=yes |
|
18282 |
if test "$with_gnu_ld" = yes; then |
|
18283 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
18284 |
shlibpath_overrides_runpath=no |
|
18285 |
else |
|
18286 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
18287 |
shlibpath_overrides_runpath=yes |
|
18288 |
case $host_os in |
|
18289 |
sco3.2v5*) |
|
18290 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
18291 |
;; |
|
18292 |
esac |
|
18293 |
fi |
|
18294 |
sys_lib_dlsearch_path_spec='/usr/lib' |
|
18295 |
;; |
|
18296 |
||
1
by Ross Burton
Import upstream version 0.10 |
18297 |
uts4*) |
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 |
;; |
|
18303 |
||
18304 |
*) |
|
18305 |
dynamic_linker=no |
|
18306 |
;; |
|
18307 |
esac |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
18308 |
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18309 |
echo "${ECHO_T}$dynamic_linker" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
18310 |
test "$dynamic_linker" = no && can_build_shared=no |
18311 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18312 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18313 |
if test "$GCC" = yes; then |
|
18314 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
18315 |
fi |
|
18316 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
18317 |
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18318 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
18319 |
hardcode_action_GCJ= |
18320 |
if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
|
18321 |
test -n "$runpath_var_GCJ" || \ |
|
18322 |
test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
|
18323 |
||
18324 |
# We can hardcode non-existant directories. |
|
18325 |
if test "$hardcode_direct_GCJ" != no && |
|
18326 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
18327 |
# have to relink, otherwise we might link with an installed library |
|
18328 |
# when we should be linking with a yet-to-be-installed one |
|
18329 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
|
18330 |
test "$hardcode_minus_L_GCJ" != no; then |
|
18331 |
# Linking always hardcodes the temporary library directory. |
|
18332 |
hardcode_action_GCJ=relink |
|
18333 |
else |
|
18334 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
18335 |
hardcode_action_GCJ=immediate |
|
18336 |
fi |
|
18337 |
else |
|
18338 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
18339 |
# directories. |
|
18340 |
hardcode_action_GCJ=unsupported |
|
18341 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
18342 |
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18343 |
echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
18344 |
|
18345 |
if test "$hardcode_action_GCJ" = relink; then |
|
18346 |
# Fast installation is not supported |
|
18347 |
enable_fast_install=no |
|
18348 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
18349 |
test "$enable_shared" = no; then |
|
18350 |
# Fast installation is not necessary |
|
18351 |
enable_fast_install=needless |
|
18352 |
fi |
|
18353 |
||
18354 |
||
18355 |
# The else clause should only fire when bootstrapping the |
|
18356 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
18357 |
# with your package, and you will get complaints that there are |
|
18358 |
# no rules to generate ltmain.sh. |
|
18359 |
if test -f "$ltmain"; then |
|
18360 |
# See if we are running on zsh, and set the options which allow our commands through |
|
18361 |
# without removal of \ escapes. |
|
18362 |
if test -n "${ZSH_VERSION+set}" ; then |
|
18363 |
setopt NO_GLOB_SUBST |
|
18364 |
fi |
|
18365 |
# Now quote all the things that may contain metacharacters while being |
|
18366 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
18367 |
# variables and quote the copies for generation of the libtool script. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18368 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
1
by Ross Burton
Import upstream version 0.10 |
18369 |
SED SHELL STRIP \ |
18370 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
18371 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
18372 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
18373 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
18374 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
18375 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
18376 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
18377 |
compiler_GCJ \ |
|
18378 |
CC_GCJ \ |
|
18379 |
LD_GCJ \ |
|
18380 |
lt_prog_compiler_wl_GCJ \ |
|
18381 |
lt_prog_compiler_pic_GCJ \ |
|
18382 |
lt_prog_compiler_static_GCJ \ |
|
18383 |
lt_prog_compiler_no_builtin_flag_GCJ \ |
|
18384 |
export_dynamic_flag_spec_GCJ \ |
|
18385 |
thread_safe_flag_spec_GCJ \ |
|
18386 |
whole_archive_flag_spec_GCJ \ |
|
18387 |
enable_shared_with_static_runtimes_GCJ \ |
|
18388 |
old_archive_cmds_GCJ \ |
|
18389 |
old_archive_from_new_cmds_GCJ \ |
|
18390 |
predep_objects_GCJ \ |
|
18391 |
postdep_objects_GCJ \ |
|
18392 |
predeps_GCJ \ |
|
18393 |
postdeps_GCJ \ |
|
18394 |
compiler_lib_search_path_GCJ \ |
|
18395 |
archive_cmds_GCJ \ |
|
18396 |
archive_expsym_cmds_GCJ \ |
|
18397 |
postinstall_cmds_GCJ \ |
|
18398 |
postuninstall_cmds_GCJ \ |
|
18399 |
old_archive_from_expsyms_cmds_GCJ \ |
|
18400 |
allow_undefined_flag_GCJ \ |
|
18401 |
no_undefined_flag_GCJ \ |
|
18402 |
export_symbols_cmds_GCJ \ |
|
18403 |
hardcode_libdir_flag_spec_GCJ \ |
|
18404 |
hardcode_libdir_flag_spec_ld_GCJ \ |
|
18405 |
hardcode_libdir_separator_GCJ \ |
|
18406 |
hardcode_automatic_GCJ \ |
|
18407 |
module_cmds_GCJ \ |
|
18408 |
module_expsym_cmds_GCJ \ |
|
18409 |
lt_cv_prog_compiler_c_o_GCJ \ |
|
18410 |
exclude_expsyms_GCJ \ |
|
18411 |
include_expsyms_GCJ; do |
|
18412 |
||
18413 |
case $var in |
|
18414 |
old_archive_cmds_GCJ | \ |
|
18415 |
old_archive_from_new_cmds_GCJ | \ |
|
18416 |
archive_cmds_GCJ | \ |
|
18417 |
archive_expsym_cmds_GCJ | \ |
|
18418 |
module_cmds_GCJ | \ |
|
18419 |
module_expsym_cmds_GCJ | \ |
|
18420 |
old_archive_from_expsyms_cmds_GCJ | \ |
|
18421 |
export_symbols_cmds_GCJ | \ |
|
18422 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
18423 |
postinstall_cmds | postuninstall_cmds | \ |
|
18424 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
18425 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
18426 |
# Double-quote double-evaled strings. |
|
18427 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
18428 |
;; |
|
18429 |
*) |
|
18430 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
18431 |
;; |
|
18432 |
esac |
|
18433 |
done |
|
18434 |
||
18435 |
case $lt_echo in |
|
18436 |
*'\$0 --fallback-echo"') |
|
18437 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
18438 |
;; |
|
18439 |
esac |
|
18440 |
||
18441 |
cfgfile="$ofile" |
|
18442 |
||
18443 |
cat <<__EOF__ >> "$cfgfile" |
|
18444 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
18445 |
||
18446 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
18447 |
||
18448 |
# Shell to use when invoking shell scripts. |
|
18449 |
SHELL=$lt_SHELL |
|
18450 |
||
18451 |
# Whether or not to build shared libraries. |
|
18452 |
build_libtool_libs=$enable_shared |
|
18453 |
||
18454 |
# Whether or not to build static libraries. |
|
18455 |
build_old_libs=$enable_static |
|
18456 |
||
18457 |
# Whether or not to add -lc for building shared libraries. |
|
18458 |
build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
|
18459 |
||
18460 |
# Whether or not to disallow shared libs when runtime libs are static |
|
18461 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
|
18462 |
||
18463 |
# Whether or not to optimize for fast installation. |
|
18464 |
fast_install=$enable_fast_install |
|
18465 |
||
18466 |
# The host system. |
|
18467 |
host_alias=$host_alias |
|
18468 |
host=$host |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18469 |
host_os=$host_os |
18470 |
||
18471 |
# The build system. |
|
18472 |
build_alias=$build_alias |
|
18473 |
build=$build |
|
18474 |
build_os=$build_os |
|
1
by Ross Burton
Import upstream version 0.10 |
18475 |
|
18476 |
# An echo program that does not interpret backslashes. |
|
18477 |
echo=$lt_echo |
|
18478 |
||
18479 |
# The archiver. |
|
18480 |
AR=$lt_AR |
|
18481 |
AR_FLAGS=$lt_AR_FLAGS |
|
18482 |
||
18483 |
# A C compiler. |
|
18484 |
LTCC=$lt_LTCC |
|
18485 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18486 |
# LTCC compiler flags. |
18487 |
LTCFLAGS=$lt_LTCFLAGS |
|
18488 |
||
1
by Ross Burton
Import upstream version 0.10 |
18489 |
# A language-specific compiler. |
18490 |
CC=$lt_compiler_GCJ |
|
18491 |
||
18492 |
# Is the compiler the GNU C compiler? |
|
18493 |
with_gcc=$GCC_GCJ |
|
18494 |
||
18495 |
# An ERE matcher. |
|
18496 |
EGREP=$lt_EGREP |
|
18497 |
||
18498 |
# The linker used to build libraries. |
|
18499 |
LD=$lt_LD_GCJ |
|
18500 |
||
18501 |
# Whether we need hard or soft links. |
|
18502 |
LN_S=$lt_LN_S |
|
18503 |
||
18504 |
# A BSD-compatible nm program. |
|
18505 |
NM=$lt_NM |
|
18506 |
||
18507 |
# A symbol stripping program |
|
18508 |
STRIP=$lt_STRIP |
|
18509 |
||
18510 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
18511 |
MAGIC_CMD=$MAGIC_CMD |
|
18512 |
||
18513 |
# Used on cygwin: DLL creation program. |
|
18514 |
DLLTOOL="$DLLTOOL" |
|
18515 |
||
18516 |
# Used on cygwin: object dumper. |
|
18517 |
OBJDUMP="$OBJDUMP" |
|
18518 |
||
18519 |
# Used on cygwin: assembler. |
|
18520 |
AS="$AS" |
|
18521 |
||
18522 |
# The name of the directory that contains temporary libtool files. |
|
18523 |
objdir=$objdir |
|
18524 |
||
18525 |
# How to create reloadable object files. |
|
18526 |
reload_flag=$lt_reload_flag |
|
18527 |
reload_cmds=$lt_reload_cmds |
|
18528 |
||
18529 |
# How to pass a linker flag through the compiler. |
|
18530 |
wl=$lt_lt_prog_compiler_wl_GCJ |
|
18531 |
||
18532 |
# Object file suffix (normally "o"). |
|
18533 |
objext="$ac_objext" |
|
18534 |
||
18535 |
# Old archive suffix (normally "a"). |
|
18536 |
libext="$libext" |
|
18537 |
||
18538 |
# Shared library suffix (normally ".so"). |
|
18539 |
shrext_cmds='$shrext_cmds' |
|
18540 |
||
18541 |
# Executable file suffix (normally ""). |
|
18542 |
exeext="$exeext" |
|
18543 |
||
18544 |
# Additional compiler flags for building library objects. |
|
18545 |
pic_flag=$lt_lt_prog_compiler_pic_GCJ |
|
18546 |
pic_mode=$pic_mode |
|
18547 |
||
18548 |
# What is the maximum length of a command? |
|
18549 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
18550 |
||
18551 |
# Does compiler simultaneously support -c and -o options? |
|
18552 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
|
18553 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18554 |
# Must we lock files when doing compilation? |
1
by Ross Burton
Import upstream version 0.10 |
18555 |
need_locks=$lt_need_locks |
18556 |
||
18557 |
# Do we need the lib prefix for modules? |
|
18558 |
need_lib_prefix=$need_lib_prefix |
|
18559 |
||
18560 |
# Do we need a version for libraries? |
|
18561 |
need_version=$need_version |
|
18562 |
||
18563 |
# Whether dlopen is supported. |
|
18564 |
dlopen_support=$enable_dlopen |
|
18565 |
||
18566 |
# Whether dlopen of programs is supported. |
|
18567 |
dlopen_self=$enable_dlopen_self |
|
18568 |
||
18569 |
# Whether dlopen of statically linked programs is supported. |
|
18570 |
dlopen_self_static=$enable_dlopen_self_static |
|
18571 |
||
18572 |
# Compiler flag to prevent dynamic linking. |
|
18573 |
link_static_flag=$lt_lt_prog_compiler_static_GCJ |
|
18574 |
||
18575 |
# Compiler flag to turn off builtin functions. |
|
18576 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
|
18577 |
||
18578 |
# Compiler flag to allow reflexive dlopens. |
|
18579 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
|
18580 |
||
18581 |
# Compiler flag to generate shared objects directly from archives. |
|
18582 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
|
18583 |
||
18584 |
# Compiler flag to generate thread-safe objects. |
|
18585 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
|
18586 |
||
18587 |
# Library versioning type. |
|
18588 |
version_type=$version_type |
|
18589 |
||
18590 |
# Format of library name prefix. |
|
18591 |
libname_spec=$lt_libname_spec |
|
18592 |
||
18593 |
# List of archive names. First name is the real one, the rest are links. |
|
18594 |
# The last name is the one that the linker finds with -lNAME. |
|
18595 |
library_names_spec=$lt_library_names_spec |
|
18596 |
||
18597 |
# The coded name of the library, if different from the real name. |
|
18598 |
soname_spec=$lt_soname_spec |
|
18599 |
||
18600 |
# Commands used to build and install an old-style archive. |
|
18601 |
RANLIB=$lt_RANLIB |
|
18602 |
old_archive_cmds=$lt_old_archive_cmds_GCJ |
|
18603 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
18604 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
18605 |
||
18606 |
# Create an old-style archive from a shared archive. |
|
18607 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
|
18608 |
||
18609 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
18610 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
|
18611 |
||
18612 |
# Commands used to build and install a shared archive. |
|
18613 |
archive_cmds=$lt_archive_cmds_GCJ |
|
18614 |
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
|
18615 |
postinstall_cmds=$lt_postinstall_cmds |
|
18616 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
18617 |
||
18618 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
18619 |
module_cmds=$lt_module_cmds_GCJ |
|
18620 |
module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
|
18621 |
||
18622 |
# Commands to strip libraries. |
|
18623 |
old_striplib=$lt_old_striplib |
|
18624 |
striplib=$lt_striplib |
|
18625 |
||
18626 |
# Dependencies to place before the objects being linked to create a |
|
18627 |
# shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
18628 |
predep_objects=$lt_predep_objects_GCJ |
1
by Ross Burton
Import upstream version 0.10 |
18629 |
|
18630 |
# Dependencies to place after the objects being linked to create a |
|
18631 |
# shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
18632 |
postdep_objects=$lt_postdep_objects_GCJ |
1
by Ross Burton
Import upstream version 0.10 |
18633 |
|
18634 |
# Dependencies to place before the objects being linked to create a |
|
18635 |
# shared library. |
|
18636 |
predeps=$lt_predeps_GCJ |
|
18637 |
||
18638 |
# Dependencies to place after the objects being linked to create a |
|
18639 |
# shared library. |
|
18640 |
postdeps=$lt_postdeps_GCJ |
|
18641 |
||
18642 |
# The library search path used internally by the compiler when linking |
|
18643 |
# a shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
18644 |
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
1
by Ross Burton
Import upstream version 0.10 |
18645 |
|
18646 |
# Method to check whether dependent libraries are shared objects. |
|
18647 |
deplibs_check_method=$lt_deplibs_check_method |
|
18648 |
||
18649 |
# Command to use when deplibs_check_method == file_magic. |
|
18650 |
file_magic_cmd=$lt_file_magic_cmd |
|
18651 |
||
18652 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
18653 |
allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
|
18654 |
||
18655 |
# Flag that forces no undefined symbols. |
|
18656 |
no_undefined_flag=$lt_no_undefined_flag_GCJ |
|
18657 |
||
18658 |
# Commands used to finish a libtool library installation in a directory. |
|
18659 |
finish_cmds=$lt_finish_cmds |
|
18660 |
||
18661 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
18662 |
finish_eval=$lt_finish_eval |
|
18663 |
||
18664 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
18665 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
18666 |
||
18667 |
# Transform the output of nm in a proper C declaration |
|
18668 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
18669 |
||
18670 |
# Transform the output of nm in a C name address pair |
|
18671 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
18672 |
||
18673 |
# This is the shared library runtime path variable. |
|
18674 |
runpath_var=$runpath_var |
|
18675 |
||
18676 |
# This is the shared library path variable. |
|
18677 |
shlibpath_var=$shlibpath_var |
|
18678 |
||
18679 |
# Is shlibpath searched before the hard-coded library search path? |
|
18680 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
18681 |
||
18682 |
# How to hardcode a shared library path into an executable. |
|
18683 |
hardcode_action=$hardcode_action_GCJ |
|
18684 |
||
18685 |
# Whether we should hardcode library paths into libraries. |
|
18686 |
hardcode_into_libs=$hardcode_into_libs |
|
18687 |
||
18688 |
# Flag to hardcode \$libdir into a binary during linking. |
|
18689 |
# This must work even if \$libdir does not exist. |
|
18690 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
|
18691 |
||
18692 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
18693 |
# a binary during linking. This must work even if \$libdir does |
|
18694 |
# not exist. |
|
18695 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
|
18696 |
||
18697 |
# Whether we need a single -rpath flag with a separated argument. |
|
18698 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
|
18699 |
||
18700 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
18701 |
# resulting binary. |
|
18702 |
hardcode_direct=$hardcode_direct_GCJ |
|
18703 |
||
18704 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
18705 |
# resulting binary. |
|
18706 |
hardcode_minus_L=$hardcode_minus_L_GCJ |
|
18707 |
||
18708 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
18709 |
# the resulting binary. |
|
18710 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
|
18711 |
||
18712 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
18713 |
# and all subsequent libraries and executables linked against it. |
|
18714 |
hardcode_automatic=$hardcode_automatic_GCJ |
|
18715 |
||
18716 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
18717 |
# restored at relink time. |
|
18718 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
18719 |
||
18720 |
# Whether libtool must link a program against all its dependency libraries. |
|
18721 |
link_all_deplibs=$link_all_deplibs_GCJ |
|
18722 |
||
18723 |
# Compile-time system search path for libraries |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
18724 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
1
by Ross Burton
Import upstream version 0.10 |
18725 |
|
18726 |
# Run-time system search path for libraries |
|
18727 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
18728 |
||
18729 |
# Fix the shell variable \$srcfile for the compiler. |
|
18730 |
fix_srcfile_path="$fix_srcfile_path_GCJ" |
|
18731 |
||
18732 |
# Set to yes if exported symbols are required. |
|
18733 |
always_export_symbols=$always_export_symbols_GCJ |
|
18734 |
||
18735 |
# The commands to list exported symbols. |
|
18736 |
export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
|
18737 |
||
18738 |
# The commands to extract the exported symbol list from a shared archive. |
|
18739 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
18740 |
||
18741 |
# Symbols that should not be listed in the preloaded symbols. |
|
18742 |
exclude_expsyms=$lt_exclude_expsyms_GCJ |
|
18743 |
||
18744 |
# Symbols that must always be exported. |
|
18745 |
include_expsyms=$lt_include_expsyms_GCJ |
|
18746 |
||
18747 |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
18748 |
||
18749 |
__EOF__ |
|
18750 |
||
18751 |
||
18752 |
else |
|
18753 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
18754 |
# `config.status --recheck' to rerun these tests and create the |
|
18755 |
# libtool script then. |
|
18756 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
18757 |
if test -f "$ltmain_in"; then |
|
18758 |
test -f Makefile && make "$ltmain" |
|
18759 |
fi |
|
18760 |
fi |
|
18761 |
||
18762 |
||
18763 |
ac_ext=c |
|
18764 |
ac_cpp='$CPP $CPPFLAGS' |
|
18765 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
18766 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
18767 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
18768 |
||
18769 |
CC="$lt_save_CC" |
|
18770 |
||
18771 |
else |
|
18772 |
tagname="" |
|
18773 |
fi |
|
18774 |
;; |
|
18775 |
||
18776 |
RC) |
|
18777 |
||
18778 |
||
18779 |
# Source file extension for RC test sources. |
|
18780 |
ac_ext=rc |
|
18781 |
||
18782 |
# Object file extension for compiled RC test sources. |
|
18783 |
objext=o |
|
18784 |
objext_RC=$objext |
|
18785 |
||
18786 |
# Code to be used in simple compile tests |
|
18787 |
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
|
18788 |
||
18789 |
# Code to be used in simple link tests |
|
18790 |
lt_simple_link_test_code="$lt_simple_compile_test_code" |
|
18791 |
||
18792 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
18793 |
||
18794 |
# If no C compiler was specified, use CC. |
|
18795 |
LTCC=${LTCC-"$CC"} |
|
18796 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18797 |
# If no C compiler flags were specified, use CFLAGS. |
18798 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
18799 |
||
1
by Ross Burton
Import upstream version 0.10 |
18800 |
# Allow CC to be a program name with arguments. |
18801 |
compiler=$CC |
|
18802 |
||
18803 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18804 |
# save warnings/boilerplate of simple test code |
18805 |
ac_outfile=conftest.$ac_objext |
|
18806 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
18807 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
18808 |
_lt_compiler_boilerplate=`cat conftest.err` |
|
18809 |
$rm conftest* |
|
18810 |
||
18811 |
ac_outfile=conftest.$ac_objext |
|
18812 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
18813 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
18814 |
_lt_linker_boilerplate=`cat conftest.err` |
|
18815 |
$rm conftest* |
|
18816 |
||
18817 |
||
1
by Ross Burton
Import upstream version 0.10 |
18818 |
# Allow CC to be a program name with arguments. |
18819 |
lt_save_CC="$CC" |
|
18820 |
CC=${RC-"windres"} |
|
18821 |
compiler=$CC |
|
18822 |
compiler_RC=$CC |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18823 |
for cc_temp in $compiler""; do |
18824 |
case $cc_temp in |
|
18825 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
18826 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
18827 |
\-*) ;; |
|
18828 |
*) break;; |
|
18829 |
esac |
|
18830 |
done |
|
18831 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
18832 |
||
1
by Ross Burton
Import upstream version 0.10 |
18833 |
lt_cv_prog_compiler_c_o_RC=yes |
18834 |
||
18835 |
# The else clause should only fire when bootstrapping the |
|
18836 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
18837 |
# with your package, and you will get complaints that there are |
|
18838 |
# no rules to generate ltmain.sh. |
|
18839 |
if test -f "$ltmain"; then |
|
18840 |
# See if we are running on zsh, and set the options which allow our commands through |
|
18841 |
# without removal of \ escapes. |
|
18842 |
if test -n "${ZSH_VERSION+set}" ; then |
|
18843 |
setopt NO_GLOB_SUBST |
|
18844 |
fi |
|
18845 |
# Now quote all the things that may contain metacharacters while being |
|
18846 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
18847 |
# variables and quote the copies for generation of the libtool script. |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18848 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
1
by Ross Burton
Import upstream version 0.10 |
18849 |
SED SHELL STRIP \ |
18850 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
18851 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
18852 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
18853 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
18854 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
18855 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
18856 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
18857 |
compiler_RC \ |
|
18858 |
CC_RC \ |
|
18859 |
LD_RC \ |
|
18860 |
lt_prog_compiler_wl_RC \ |
|
18861 |
lt_prog_compiler_pic_RC \ |
|
18862 |
lt_prog_compiler_static_RC \ |
|
18863 |
lt_prog_compiler_no_builtin_flag_RC \ |
|
18864 |
export_dynamic_flag_spec_RC \ |
|
18865 |
thread_safe_flag_spec_RC \ |
|
18866 |
whole_archive_flag_spec_RC \ |
|
18867 |
enable_shared_with_static_runtimes_RC \ |
|
18868 |
old_archive_cmds_RC \ |
|
18869 |
old_archive_from_new_cmds_RC \ |
|
18870 |
predep_objects_RC \ |
|
18871 |
postdep_objects_RC \ |
|
18872 |
predeps_RC \ |
|
18873 |
postdeps_RC \ |
|
18874 |
compiler_lib_search_path_RC \ |
|
18875 |
archive_cmds_RC \ |
|
18876 |
archive_expsym_cmds_RC \ |
|
18877 |
postinstall_cmds_RC \ |
|
18878 |
postuninstall_cmds_RC \ |
|
18879 |
old_archive_from_expsyms_cmds_RC \ |
|
18880 |
allow_undefined_flag_RC \ |
|
18881 |
no_undefined_flag_RC \ |
|
18882 |
export_symbols_cmds_RC \ |
|
18883 |
hardcode_libdir_flag_spec_RC \ |
|
18884 |
hardcode_libdir_flag_spec_ld_RC \ |
|
18885 |
hardcode_libdir_separator_RC \ |
|
18886 |
hardcode_automatic_RC \ |
|
18887 |
module_cmds_RC \ |
|
18888 |
module_expsym_cmds_RC \ |
|
18889 |
lt_cv_prog_compiler_c_o_RC \ |
|
18890 |
exclude_expsyms_RC \ |
|
18891 |
include_expsyms_RC; do |
|
18892 |
||
18893 |
case $var in |
|
18894 |
old_archive_cmds_RC | \ |
|
18895 |
old_archive_from_new_cmds_RC | \ |
|
18896 |
archive_cmds_RC | \ |
|
18897 |
archive_expsym_cmds_RC | \ |
|
18898 |
module_cmds_RC | \ |
|
18899 |
module_expsym_cmds_RC | \ |
|
18900 |
old_archive_from_expsyms_cmds_RC | \ |
|
18901 |
export_symbols_cmds_RC | \ |
|
18902 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
18903 |
postinstall_cmds | postuninstall_cmds | \ |
|
18904 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
18905 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
18906 |
# Double-quote double-evaled strings. |
|
18907 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
18908 |
;; |
|
18909 |
*) |
|
18910 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
18911 |
;; |
|
18912 |
esac |
|
18913 |
done |
|
18914 |
||
18915 |
case $lt_echo in |
|
18916 |
*'\$0 --fallback-echo"') |
|
18917 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
18918 |
;; |
|
18919 |
esac |
|
18920 |
||
18921 |
cfgfile="$ofile" |
|
18922 |
||
18923 |
cat <<__EOF__ >> "$cfgfile" |
|
18924 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
18925 |
||
18926 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
18927 |
||
18928 |
# Shell to use when invoking shell scripts. |
|
18929 |
SHELL=$lt_SHELL |
|
18930 |
||
18931 |
# Whether or not to build shared libraries. |
|
18932 |
build_libtool_libs=$enable_shared |
|
18933 |
||
18934 |
# Whether or not to build static libraries. |
|
18935 |
build_old_libs=$enable_static |
|
18936 |
||
18937 |
# Whether or not to add -lc for building shared libraries. |
|
18938 |
build_libtool_need_lc=$archive_cmds_need_lc_RC |
|
18939 |
||
18940 |
# Whether or not to disallow shared libs when runtime libs are static |
|
18941 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
|
18942 |
||
18943 |
# Whether or not to optimize for fast installation. |
|
18944 |
fast_install=$enable_fast_install |
|
18945 |
||
18946 |
# The host system. |
|
18947 |
host_alias=$host_alias |
|
18948 |
host=$host |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18949 |
host_os=$host_os |
18950 |
||
18951 |
# The build system. |
|
18952 |
build_alias=$build_alias |
|
18953 |
build=$build |
|
18954 |
build_os=$build_os |
|
1
by Ross Burton
Import upstream version 0.10 |
18955 |
|
18956 |
# An echo program that does not interpret backslashes. |
|
18957 |
echo=$lt_echo |
|
18958 |
||
18959 |
# The archiver. |
|
18960 |
AR=$lt_AR |
|
18961 |
AR_FLAGS=$lt_AR_FLAGS |
|
18962 |
||
18963 |
# A C compiler. |
|
18964 |
LTCC=$lt_LTCC |
|
18965 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
18966 |
# LTCC compiler flags. |
18967 |
LTCFLAGS=$lt_LTCFLAGS |
|
18968 |
||
1
by Ross Burton
Import upstream version 0.10 |
18969 |
# A language-specific compiler. |
18970 |
CC=$lt_compiler_RC |
|
18971 |
||
18972 |
# Is the compiler the GNU C compiler? |
|
18973 |
with_gcc=$GCC_RC |
|
18974 |
||
18975 |
# An ERE matcher. |
|
18976 |
EGREP=$lt_EGREP |
|
18977 |
||
18978 |
# The linker used to build libraries. |
|
18979 |
LD=$lt_LD_RC |
|
18980 |
||
18981 |
# Whether we need hard or soft links. |
|
18982 |
LN_S=$lt_LN_S |
|
18983 |
||
18984 |
# A BSD-compatible nm program. |
|
18985 |
NM=$lt_NM |
|
18986 |
||
18987 |
# A symbol stripping program |
|
18988 |
STRIP=$lt_STRIP |
|
18989 |
||
18990 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
18991 |
MAGIC_CMD=$MAGIC_CMD |
|
18992 |
||
18993 |
# Used on cygwin: DLL creation program. |
|
18994 |
DLLTOOL="$DLLTOOL" |
|
18995 |
||
18996 |
# Used on cygwin: object dumper. |
|
18997 |
OBJDUMP="$OBJDUMP" |
|
18998 |
||
18999 |
# Used on cygwin: assembler. |
|
19000 |
AS="$AS" |
|
19001 |
||
19002 |
# The name of the directory that contains temporary libtool files. |
|
19003 |
objdir=$objdir |
|
19004 |
||
19005 |
# How to create reloadable object files. |
|
19006 |
reload_flag=$lt_reload_flag |
|
19007 |
reload_cmds=$lt_reload_cmds |
|
19008 |
||
19009 |
# How to pass a linker flag through the compiler. |
|
19010 |
wl=$lt_lt_prog_compiler_wl_RC |
|
19011 |
||
19012 |
# Object file suffix (normally "o"). |
|
19013 |
objext="$ac_objext" |
|
19014 |
||
19015 |
# Old archive suffix (normally "a"). |
|
19016 |
libext="$libext" |
|
19017 |
||
19018 |
# Shared library suffix (normally ".so"). |
|
19019 |
shrext_cmds='$shrext_cmds' |
|
19020 |
||
19021 |
# Executable file suffix (normally ""). |
|
19022 |
exeext="$exeext" |
|
19023 |
||
19024 |
# Additional compiler flags for building library objects. |
|
19025 |
pic_flag=$lt_lt_prog_compiler_pic_RC |
|
19026 |
pic_mode=$pic_mode |
|
19027 |
||
19028 |
# What is the maximum length of a command? |
|
19029 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
19030 |
||
19031 |
# Does compiler simultaneously support -c and -o options? |
|
19032 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
|
19033 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19034 |
# Must we lock files when doing compilation? |
1
by Ross Burton
Import upstream version 0.10 |
19035 |
need_locks=$lt_need_locks |
19036 |
||
19037 |
# Do we need the lib prefix for modules? |
|
19038 |
need_lib_prefix=$need_lib_prefix |
|
19039 |
||
19040 |
# Do we need a version for libraries? |
|
19041 |
need_version=$need_version |
|
19042 |
||
19043 |
# Whether dlopen is supported. |
|
19044 |
dlopen_support=$enable_dlopen |
|
19045 |
||
19046 |
# Whether dlopen of programs is supported. |
|
19047 |
dlopen_self=$enable_dlopen_self |
|
19048 |
||
19049 |
# Whether dlopen of statically linked programs is supported. |
|
19050 |
dlopen_self_static=$enable_dlopen_self_static |
|
19051 |
||
19052 |
# Compiler flag to prevent dynamic linking. |
|
19053 |
link_static_flag=$lt_lt_prog_compiler_static_RC |
|
19054 |
||
19055 |
# Compiler flag to turn off builtin functions. |
|
19056 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
|
19057 |
||
19058 |
# Compiler flag to allow reflexive dlopens. |
|
19059 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
|
19060 |
||
19061 |
# Compiler flag to generate shared objects directly from archives. |
|
19062 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
|
19063 |
||
19064 |
# Compiler flag to generate thread-safe objects. |
|
19065 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
|
19066 |
||
19067 |
# Library versioning type. |
|
19068 |
version_type=$version_type |
|
19069 |
||
19070 |
# Format of library name prefix. |
|
19071 |
libname_spec=$lt_libname_spec |
|
19072 |
||
19073 |
# List of archive names. First name is the real one, the rest are links. |
|
19074 |
# The last name is the one that the linker finds with -lNAME. |
|
19075 |
library_names_spec=$lt_library_names_spec |
|
19076 |
||
19077 |
# The coded name of the library, if different from the real name. |
|
19078 |
soname_spec=$lt_soname_spec |
|
19079 |
||
19080 |
# Commands used to build and install an old-style archive. |
|
19081 |
RANLIB=$lt_RANLIB |
|
19082 |
old_archive_cmds=$lt_old_archive_cmds_RC |
|
19083 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
19084 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
19085 |
||
19086 |
# Create an old-style archive from a shared archive. |
|
19087 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
|
19088 |
||
19089 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
19090 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
|
19091 |
||
19092 |
# Commands used to build and install a shared archive. |
|
19093 |
archive_cmds=$lt_archive_cmds_RC |
|
19094 |
archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
|
19095 |
postinstall_cmds=$lt_postinstall_cmds |
|
19096 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
19097 |
||
19098 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
19099 |
module_cmds=$lt_module_cmds_RC |
|
19100 |
module_expsym_cmds=$lt_module_expsym_cmds_RC |
|
19101 |
||
19102 |
# Commands to strip libraries. |
|
19103 |
old_striplib=$lt_old_striplib |
|
19104 |
striplib=$lt_striplib |
|
19105 |
||
19106 |
# Dependencies to place before the objects being linked to create a |
|
19107 |
# shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19108 |
predep_objects=$lt_predep_objects_RC |
1
by Ross Burton
Import upstream version 0.10 |
19109 |
|
19110 |
# Dependencies to place after the objects being linked to create a |
|
19111 |
# shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19112 |
postdep_objects=$lt_postdep_objects_RC |
1
by Ross Burton
Import upstream version 0.10 |
19113 |
|
19114 |
# Dependencies to place before the objects being linked to create a |
|
19115 |
# shared library. |
|
19116 |
predeps=$lt_predeps_RC |
|
19117 |
||
19118 |
# Dependencies to place after the objects being linked to create a |
|
19119 |
# shared library. |
|
19120 |
postdeps=$lt_postdeps_RC |
|
19121 |
||
19122 |
# The library search path used internally by the compiler when linking |
|
19123 |
# a shared library. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19124 |
compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
1
by Ross Burton
Import upstream version 0.10 |
19125 |
|
19126 |
# Method to check whether dependent libraries are shared objects. |
|
19127 |
deplibs_check_method=$lt_deplibs_check_method |
|
19128 |
||
19129 |
# Command to use when deplibs_check_method == file_magic. |
|
19130 |
file_magic_cmd=$lt_file_magic_cmd |
|
19131 |
||
19132 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
19133 |
allow_undefined_flag=$lt_allow_undefined_flag_RC |
|
19134 |
||
19135 |
# Flag that forces no undefined symbols. |
|
19136 |
no_undefined_flag=$lt_no_undefined_flag_RC |
|
19137 |
||
19138 |
# Commands used to finish a libtool library installation in a directory. |
|
19139 |
finish_cmds=$lt_finish_cmds |
|
19140 |
||
19141 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
19142 |
finish_eval=$lt_finish_eval |
|
19143 |
||
19144 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
19145 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
19146 |
||
19147 |
# Transform the output of nm in a proper C declaration |
|
19148 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
19149 |
||
19150 |
# Transform the output of nm in a C name address pair |
|
19151 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
19152 |
||
19153 |
# This is the shared library runtime path variable. |
|
19154 |
runpath_var=$runpath_var |
|
19155 |
||
19156 |
# This is the shared library path variable. |
|
19157 |
shlibpath_var=$shlibpath_var |
|
19158 |
||
19159 |
# Is shlibpath searched before the hard-coded library search path? |
|
19160 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
19161 |
||
19162 |
# How to hardcode a shared library path into an executable. |
|
19163 |
hardcode_action=$hardcode_action_RC |
|
19164 |
||
19165 |
# Whether we should hardcode library paths into libraries. |
|
19166 |
hardcode_into_libs=$hardcode_into_libs |
|
19167 |
||
19168 |
# Flag to hardcode \$libdir into a binary during linking. |
|
19169 |
# This must work even if \$libdir does not exist. |
|
19170 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
|
19171 |
||
19172 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
19173 |
# a binary during linking. This must work even if \$libdir does |
|
19174 |
# not exist. |
|
19175 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
|
19176 |
||
19177 |
# Whether we need a single -rpath flag with a separated argument. |
|
19178 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
|
19179 |
||
19180 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
19181 |
# resulting binary. |
|
19182 |
hardcode_direct=$hardcode_direct_RC |
|
19183 |
||
19184 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
19185 |
# resulting binary. |
|
19186 |
hardcode_minus_L=$hardcode_minus_L_RC |
|
19187 |
||
19188 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
19189 |
# the resulting binary. |
|
19190 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
|
19191 |
||
19192 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
19193 |
# and all subsequent libraries and executables linked against it. |
|
19194 |
hardcode_automatic=$hardcode_automatic_RC |
|
19195 |
||
19196 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
19197 |
# restored at relink time. |
|
19198 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
19199 |
||
19200 |
# Whether libtool must link a program against all its dependency libraries. |
|
19201 |
link_all_deplibs=$link_all_deplibs_RC |
|
19202 |
||
19203 |
# Compile-time system search path for libraries |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19204 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
1
by Ross Burton
Import upstream version 0.10 |
19205 |
|
19206 |
# Run-time system search path for libraries |
|
19207 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
19208 |
||
19209 |
# Fix the shell variable \$srcfile for the compiler. |
|
19210 |
fix_srcfile_path="$fix_srcfile_path_RC" |
|
19211 |
||
19212 |
# Set to yes if exported symbols are required. |
|
19213 |
always_export_symbols=$always_export_symbols_RC |
|
19214 |
||
19215 |
# The commands to list exported symbols. |
|
19216 |
export_symbols_cmds=$lt_export_symbols_cmds_RC |
|
19217 |
||
19218 |
# The commands to extract the exported symbol list from a shared archive. |
|
19219 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
19220 |
||
19221 |
# Symbols that should not be listed in the preloaded symbols. |
|
19222 |
exclude_expsyms=$lt_exclude_expsyms_RC |
|
19223 |
||
19224 |
# Symbols that must always be exported. |
|
19225 |
include_expsyms=$lt_include_expsyms_RC |
|
19226 |
||
19227 |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
19228 |
||
19229 |
__EOF__ |
|
19230 |
||
19231 |
||
19232 |
else |
|
19233 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
19234 |
# `config.status --recheck' to rerun these tests and create the |
|
19235 |
# libtool script then. |
|
19236 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
19237 |
if test -f "$ltmain_in"; then |
|
19238 |
test -f Makefile && make "$ltmain" |
|
19239 |
fi |
|
19240 |
fi |
|
19241 |
||
19242 |
||
19243 |
ac_ext=c |
|
19244 |
ac_cpp='$CPP $CPPFLAGS' |
|
19245 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
19246 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
19247 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
19248 |
||
19249 |
CC="$lt_save_CC" |
|
19250 |
||
19251 |
;; |
|
19252 |
||
19253 |
*) |
|
19254 |
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
|
19255 |
echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
|
19256 |
{ (exit 1); exit 1; }; } |
|
19257 |
;; |
|
19258 |
esac |
|
19259 |
||
19260 |
# Append the new tag name to the list of available tags. |
|
19261 |
if test -n "$tagname" ; then |
|
19262 |
available_tags="$available_tags $tagname" |
|
19263 |
fi |
|
19264 |
fi |
|
19265 |
done |
|
19266 |
IFS="$lt_save_ifs" |
|
19267 |
||
19268 |
# Now substitute the updated list of available tags. |
|
19269 |
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
|
19270 |
mv "${ofile}T" "$ofile" |
|
19271 |
chmod +x "$ofile" |
|
19272 |
else |
|
19273 |
rm -f "${ofile}T" |
|
19274 |
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
|
19275 |
echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
|
19276 |
{ (exit 1); exit 1; }; } |
|
19277 |
fi |
|
19278 |
fi |
|
19279 |
||
19280 |
||
19281 |
||
19282 |
# This can be used to rebuild libtool when needed |
|
19283 |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
19284 |
||
19285 |
# Always use our own libtool. |
|
19286 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
19287 |
||
19288 |
# Prevent multiple expansion |
|
19289 |
||
19290 |
||
19291 |
||
19292 |
||
19293 |
||
19294 |
||
19295 |
||
19296 |
||
19297 |
||
19298 |
||
19299 |
||
19300 |
||
19301 |
||
19302 |
||
19303 |
||
19304 |
||
19305 |
||
19306 |
||
19307 |
||
19308 |
||
19309 |
||
19310 |
if test "x$GCC" = "xyes"; then |
|
19311 |
case " $CFLAGS " in |
|
19312 |
*[\ \ ]-Wall[\ \ ]*) ;; |
|
19313 |
*) CFLAGS="$CFLAGS -Wall" ;; |
|
19314 |
esac |
|
19315 |
||
19316 |
case " $CFLAGS " in |
|
19317 |
*[\ \ ]-Wchar-subscripts[\ \ ]*) ;; |
|
19318 |
*) CFLAGS="$CFLAGS -Wchar-subscripts" ;; |
|
19319 |
esac |
|
19320 |
||
19321 |
case " $CFLAGS " in |
|
19322 |
*[\ \ ]-Wmissing-declarations[\ \ ]*) ;; |
|
19323 |
*) CFLAGS="$CFLAGS -Wmissing-declarations" ;; |
|
19324 |
esac |
|
19325 |
||
19326 |
case " $CFLAGS " in |
|
19327 |
*[\ \ ]-Wmissing-prototypes[\ \ ]*) ;; |
|
19328 |
*) CFLAGS="$CFLAGS -Wmissing-prototypes" ;; |
|
19329 |
esac |
|
19330 |
||
19331 |
case " $CFLAGS " in |
|
19332 |
*[\ \ ]-Wnested-externs[\ \ ]*) ;; |
|
19333 |
*) CFLAGS="$CFLAGS -Wnested-externs" ;; |
|
19334 |
esac |
|
19335 |
||
19336 |
case " $CFLAGS " in |
|
19337 |
*[\ \ ]-Wpointer-arith[\ \ ]*) ;; |
|
19338 |
*) CFLAGS="$CFLAGS -Wpointer-arith" ;; |
|
19339 |
esac |
|
19340 |
||
19341 |
case " $CFLAGS " in |
|
19342 |
*[\ \ ]-Wcast-align[\ \ ]*) ;; |
|
19343 |
*) CFLAGS="$CFLAGS -Wcast-align" ;; |
|
19344 |
esac |
|
19345 |
||
19346 |
case " $CFLAGS " in |
|
19347 |
*[\ \ ]-Wsign-compare[\ \ ]*) ;; |
|
19348 |
*) CFLAGS="$CFLAGS -Wsign-compare" ;; |
|
19349 |
esac |
|
19350 |
||
19351 |
if test "x$enable_ansi" = "xyes"; then |
|
19352 |
case " $CFLAGS " in |
|
19353 |
*[\ \ ]-ansi[\ \ ]*) ;; |
|
19354 |
*) CFLAGS="$CFLAGS -ansi" ;; |
|
19355 |
esac |
|
19356 |
||
19357 |
case " $CFLAGS " in |
|
19358 |
*[\ \ ]-pedantic[\ \ ]*) ;; |
|
19359 |
*) CFLAGS="$CFLAGS -pedantic" ;; |
|
19360 |
esac |
|
19361 |
fi |
|
19362 |
if test x$enable_gcov = xyes; then |
|
19363 |
case " $CFLAGS " in |
|
19364 |
*[\ \ ]-fprofile-arcs[\ \ ]*) ;; |
|
19365 |
*) CFLAGS="$CFLAGS -fprofile-arcs" ;; |
|
19366 |
esac |
|
19367 |
case " $CFLAGS " in |
|
19368 |
*[\ \ ]-ftest-coverage[\ \ ]*) ;; |
|
19369 |
*) CFLAGS="$CFLAGS -ftest-coverage" ;; |
|
19370 |
esac |
|
19371 |
||
19372 |
## remove optimization |
|
19373 |
CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'` |
|
19374 |
fi |
|
19375 |
else |
|
19376 |
if test x$enable_gcov = xyes; then |
|
19377 |
{ { echo "$as_me:$LINENO: error: --enable-gcov can only be used with gcc" >&5 |
|
19378 |
echo "$as_me: error: --enable-gcov can only be used with gcc" >&2;} |
|
19379 |
{ (exit 1); exit 1; }; } |
|
19380 |
fi |
|
19381 |
fi |
|
19382 |
||
19383 |
# compress spaces in flags |
|
19384 |
CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'` |
|
19385 |
CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ +/ /g'` |
|
19386 |
||
19387 |
||
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19388 |
|
19389 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
|
19390 |
if test -n "$ac_tool_prefix"; then |
|
19391 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
|
19392 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19393 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19394 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
19395 |
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
19396 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
19397 |
else |
|
19398 |
case $PKG_CONFIG in |
|
19399 |
[\\/]* | ?:[\\/]*) |
|
19400 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
|
19401 |
;; |
|
19402 |
*) |
|
19403 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
19404 |
for as_dir in $PATH |
|
19405 |
do |
|
19406 |
IFS=$as_save_IFS |
|
19407 |
test -z "$as_dir" && as_dir=. |
|
19408 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
19409 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
19410 |
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
19411 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
19412 |
break 2 |
|
19413 |
fi |
|
19414 |
done |
|
19415 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19416 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
19417 |
|
19418 |
;; |
|
19419 |
esac |
|
19420 |
fi |
|
19421 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
19422 |
if test -n "$PKG_CONFIG"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19423 |
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
19424 |
echo "${ECHO_T}$PKG_CONFIG" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
19425 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19426 |
{ echo "$as_me:$LINENO: result: no" >&5 |
19427 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
19428 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19429 |
|
1
by Ross Burton
Import upstream version 0.10 |
19430 |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19431 |
fi |
19432 |
if test -z "$ac_cv_path_PKG_CONFIG"; then |
|
19433 |
ac_pt_PKG_CONFIG=$PKG_CONFIG |
|
19434 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
|
19435 |
set dummy pkg-config; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19436 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19437 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19438 |
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
19439 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
19440 |
else |
|
19441 |
case $ac_pt_PKG_CONFIG in |
|
19442 |
[\\/]* | ?:[\\/]*) |
|
19443 |
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
|
19444 |
;; |
|
19445 |
*) |
|
19446 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
19447 |
for as_dir in $PATH |
|
19448 |
do |
|
19449 |
IFS=$as_save_IFS |
|
19450 |
test -z "$as_dir" && as_dir=. |
|
19451 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
19452 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19453 |
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
19454 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
19455 |
break 2 |
|
1
by Ross Burton
Import upstream version 0.10 |
19456 |
fi |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19457 |
done |
19458 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19459 |
IFS=$as_save_IFS |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19460 |
|
19461 |
;; |
|
19462 |
esac |
|
19463 |
fi |
|
19464 |
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
|
19465 |
if test -n "$ac_pt_PKG_CONFIG"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19466 |
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
19467 |
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19468 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19469 |
{ echo "$as_me:$LINENO: result: no" >&5 |
19470 |
echo "${ECHO_T}no" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19471 |
fi |
19472 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19473 |
if test "x$ac_pt_PKG_CONFIG" = x; then |
19474 |
PKG_CONFIG="" |
|
19475 |
else |
|
19476 |
case $cross_compiling:$ac_tool_warned in |
|
19477 |
yes:) |
|
19478 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
19479 |
whose name does not start with the host triplet. If you think this |
|
19480 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
19481 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
19482 |
whose name does not start with the host triplet. If you think this |
|
19483 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
19484 |
ac_tool_warned=yes ;; |
|
19485 |
esac |
|
19486 |
PKG_CONFIG=$ac_pt_PKG_CONFIG |
|
19487 |
fi |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19488 |
else |
19489 |
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
|
19490 |
fi |
|
19491 |
||
19492 |
fi |
|
19493 |
if test -n "$PKG_CONFIG"; then |
|
19494 |
_pkg_min_version=0.9.0 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19495 |
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
19496 |
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19497 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19498 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
19499 |
echo "${ECHO_T}yes" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19500 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19501 |
{ echo "$as_me:$LINENO: result: no" >&5 |
19502 |
echo "${ECHO_T}no" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19503 |
PKG_CONFIG="" |
19504 |
fi |
|
19505 |
||
19506 |
fi |
|
19507 |
||
19508 |
pkg_failed=no |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19509 |
{ echo "$as_me:$LINENO: checking for DESKTOP_FILE_UTILS" >&5 |
19510 |
echo $ECHO_N "checking for DESKTOP_FILE_UTILS... $ECHO_C" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19511 |
|
19512 |
if test -n "$PKG_CONFIG"; then |
|
19513 |
if test -n "$DESKTOP_FILE_UTILS_CFLAGS"; then |
|
19514 |
pkg_cv_DESKTOP_FILE_UTILS_CFLAGS="$DESKTOP_FILE_UTILS_CFLAGS" |
|
19515 |
else |
|
19516 |
if test -n "$PKG_CONFIG" && \ |
|
1.1.4
by Sebastien Bacher
Import upstream version 0.14 |
19517 |
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.8.0\"") >&5 |
19518 |
($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.8.0") 2>&5 |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19519 |
ac_status=$? |
19520 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19521 |
(exit $ac_status); }; then |
|
1.1.4
by Sebastien Bacher
Import upstream version 0.14 |
19522 |
pkg_cv_DESKTOP_FILE_UTILS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.8.0" 2>/dev/null` |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19523 |
else |
19524 |
pkg_failed=yes |
|
19525 |
fi |
|
19526 |
fi |
|
19527 |
else |
|
19528 |
pkg_failed=untried |
|
19529 |
fi |
|
19530 |
if test -n "$PKG_CONFIG"; then |
|
19531 |
if test -n "$DESKTOP_FILE_UTILS_LIBS"; then |
|
19532 |
pkg_cv_DESKTOP_FILE_UTILS_LIBS="$DESKTOP_FILE_UTILS_LIBS" |
|
19533 |
else |
|
19534 |
if test -n "$PKG_CONFIG" && \ |
|
1.1.4
by Sebastien Bacher
Import upstream version 0.14 |
19535 |
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.8.0\"") >&5 |
19536 |
($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.8.0") 2>&5 |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19537 |
ac_status=$? |
19538 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19539 |
(exit $ac_status); }; then |
|
1.1.4
by Sebastien Bacher
Import upstream version 0.14 |
19540 |
pkg_cv_DESKTOP_FILE_UTILS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.8.0" 2>/dev/null` |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19541 |
else |
19542 |
pkg_failed=yes |
|
19543 |
fi |
|
19544 |
fi |
|
19545 |
else |
|
19546 |
pkg_failed=untried |
|
19547 |
fi |
|
19548 |
||
19549 |
||
19550 |
||
19551 |
if test $pkg_failed = yes; then |
|
19552 |
||
19553 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
|
19554 |
_pkg_short_errors_supported=yes |
|
19555 |
else |
|
19556 |
_pkg_short_errors_supported=no |
|
19557 |
fi |
|
19558 |
if test $_pkg_short_errors_supported = yes; then |
|
1.1.4
by Sebastien Bacher
Import upstream version 0.14 |
19559 |
DESKTOP_FILE_UTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.8.0"` |
1
by Ross Burton
Import upstream version 0.10 |
19560 |
else |
1.1.4
by Sebastien Bacher
Import upstream version 0.14 |
19561 |
DESKTOP_FILE_UTILS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.8.0"` |
1
by Ross Burton
Import upstream version 0.10 |
19562 |
fi |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19563 |
# Put the nasty error message in config.log where it belongs |
19564 |
echo "$DESKTOP_FILE_UTILS_PKG_ERRORS" >&5 |
|
19565 |
||
1.1.4
by Sebastien Bacher
Import upstream version 0.14 |
19566 |
{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.8.0) were not met: |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19567 |
|
19568 |
$DESKTOP_FILE_UTILS_PKG_ERRORS |
|
19569 |
||
19570 |
Consider adjusting the PKG_CONFIG_PATH environment variable if you |
|
19571 |
installed software in a non-standard prefix. |
|
19572 |
||
19573 |
Alternatively, you may set the environment variables DESKTOP_FILE_UTILS_CFLAGS |
|
19574 |
and DESKTOP_FILE_UTILS_LIBS to avoid the need to call pkg-config. |
|
19575 |
See the pkg-config man page for more details. |
|
19576 |
" >&5 |
|
1.1.4
by Sebastien Bacher
Import upstream version 0.14 |
19577 |
echo "$as_me: error: Package requirements (glib-2.0 >= 2.8.0) were not met: |
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19578 |
|
19579 |
$DESKTOP_FILE_UTILS_PKG_ERRORS |
|
19580 |
||
19581 |
Consider adjusting the PKG_CONFIG_PATH environment variable if you |
|
19582 |
installed software in a non-standard prefix. |
|
19583 |
||
19584 |
Alternatively, you may set the environment variables DESKTOP_FILE_UTILS_CFLAGS |
|
19585 |
and DESKTOP_FILE_UTILS_LIBS to avoid the need to call pkg-config. |
|
19586 |
See the pkg-config man page for more details. |
|
19587 |
" >&2;} |
|
19588 |
{ (exit 1); exit 1; }; } |
|
19589 |
elif test $pkg_failed = untried; then |
|
19590 |
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
|
19591 |
is in your PATH or set the PKG_CONFIG environment variable to the full |
|
19592 |
path to pkg-config. |
|
19593 |
||
19594 |
Alternatively, you may set the environment variables DESKTOP_FILE_UTILS_CFLAGS |
|
19595 |
and DESKTOP_FILE_UTILS_LIBS to avoid the need to call pkg-config. |
|
19596 |
See the pkg-config man page for more details. |
|
19597 |
||
19598 |
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. |
|
19599 |
See \`config.log' for more details." >&5 |
|
19600 |
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
|
19601 |
is in your PATH or set the PKG_CONFIG environment variable to the full |
|
19602 |
path to pkg-config. |
|
19603 |
||
19604 |
Alternatively, you may set the environment variables DESKTOP_FILE_UTILS_CFLAGS |
|
19605 |
and DESKTOP_FILE_UTILS_LIBS to avoid the need to call pkg-config. |
|
19606 |
See the pkg-config man page for more details. |
|
19607 |
||
19608 |
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. |
|
19609 |
See \`config.log' for more details." >&2;} |
|
19610 |
{ (exit 1); exit 1; }; } |
|
19611 |
else |
|
19612 |
DESKTOP_FILE_UTILS_CFLAGS=$pkg_cv_DESKTOP_FILE_UTILS_CFLAGS |
|
19613 |
DESKTOP_FILE_UTILS_LIBS=$pkg_cv_DESKTOP_FILE_UTILS_LIBS |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19614 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
19615 |
echo "${ECHO_T}yes" >&6; } |
|
1.1.1
by Ondřej Surý
Import upstream version 0.11 |
19616 |
: |
19617 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
19618 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19619 |
|
19620 |
# Check whether --with-lispdir was given. |
|
19621 |
if test "${with_lispdir+set}" = set; then |
|
19622 |
withval=$with_lispdir; lispdir="$withval" |
|
19623 |
{ echo "$as_me:$LINENO: checking where .elc files should go" >&5 |
|
19624 |
echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; } |
|
19625 |
{ echo "$as_me:$LINENO: result: $lispdir" >&5 |
|
19626 |
echo "${ECHO_T}$lispdir" >&6; } |
|
19627 |
else |
|
19628 |
||
1
by Ross Burton
Import upstream version 0.10 |
19629 |
# If set to t, that means we are running in a shell under Emacs. |
19630 |
# If you have an Emacs named "t", then use the full path. |
|
19631 |
test x"$EMACS" = xt && EMACS= |
|
19632 |
for ac_prog in emacs xemacs |
|
19633 |
do |
|
19634 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
19635 |
set dummy $ac_prog; ac_word=$2 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19636 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19637 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
19638 |
if test "${ac_cv_prog_EMACS+set}" = set; then |
19639 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
19640 |
else |
|
19641 |
if test -n "$EMACS"; then |
|
19642 |
ac_cv_prog_EMACS="$EMACS" # Let the user override the test. |
|
19643 |
else |
|
19644 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
19645 |
for as_dir in $PATH |
|
19646 |
do |
|
19647 |
IFS=$as_save_IFS |
|
19648 |
test -z "$as_dir" && as_dir=. |
|
19649 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
19650 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1
by Ross Burton
Import upstream version 0.10 |
19651 |
ac_cv_prog_EMACS="$ac_prog" |
19652 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
19653 |
break 2 |
|
19654 |
fi |
|
19655 |
done |
|
19656 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19657 |
IFS=$as_save_IFS |
1
by Ross Burton
Import upstream version 0.10 |
19658 |
|
19659 |
fi |
|
19660 |
fi |
|
19661 |
EMACS=$ac_cv_prog_EMACS |
|
19662 |
if test -n "$EMACS"; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19663 |
{ echo "$as_me:$LINENO: result: $EMACS" >&5 |
19664 |
echo "${ECHO_T}$EMACS" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
19665 |
else |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19666 |
{ echo "$as_me:$LINENO: result: no" >&5 |
19667 |
echo "${ECHO_T}no" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
19668 |
fi |
19669 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19670 |
|
1
by Ross Burton
Import upstream version 0.10 |
19671 |
test -n "$EMACS" && break |
19672 |
done |
|
19673 |
test -n "$EMACS" || EMACS="no" |
|
19674 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19675 |
if test $EMACS != "no"; then |
19676 |
if test x${lispdir+set} != xset; then |
|
19677 |
{ echo "$as_me:$LINENO: checking where .elc files should go" >&5 |
|
19678 |
echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; } |
|
1
by Ross Burton
Import upstream version 0.10 |
19679 |
if test "${am_cv_lispdir+set}" = set; then |
19680 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
19681 |
else |
|
19682 |
# If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly |
|
19683 |
# Some emacsen will start up in interactive mode, requiring C-x C-c to exit, |
|
19684 |
# which is non-obvious for non-emacs users. |
|
19685 |
# Redirecting /dev/null should help a bit; pity we can't detect "broken" |
|
19686 |
# emacsen earlier and avoid running this altogether. |
|
19687 |
{ (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5 |
|
19688 |
($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5 |
|
19689 |
ac_status=$? |
|
19690 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19691 |
(exit $ac_status); } |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19692 |
am_cv_lispdir=`sed -n \ |
1
by Ross Burton
Import upstream version 0.10 |
19693 |
-e 's,/$,,' \ |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19694 |
-e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \ |
19695 |
-e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \ |
|
1
by Ross Burton
Import upstream version 0.10 |
19696 |
conftest.out` |
19697 |
rm conftest.out |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19698 |
if test -z "$am_cv_lispdir"; then |
19699 |
am_cv_lispdir='${datadir}/emacs/site-lisp' |
|
19700 |
fi |
|
19701 |
||
19702 |
fi |
|
19703 |
{ echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5 |
|
19704 |
echo "${ECHO_T}$am_cv_lispdir" >&6; } |
|
19705 |
lispdir="$am_cv_lispdir" |
|
1.1.2
by Sebastien Bacher
Import upstream version 0.12 |
19706 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19707 |
fi |
1
by Ross Burton
Import upstream version 0.10 |
19708 |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
19709 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19710 |
|
19711 |
||
19712 |
||
19713 |
||
19714 |
ac_config_files="$ac_config_files Makefile src/Makefile misc/Makefile" |
|
1
by Ross Burton
Import upstream version 0.10 |
19715 |
|
19716 |
||
19717 |
cat >confcache <<\_ACEOF |
|
19718 |
# This file is a shell script that caches the results of configure |
|
19719 |
# tests run on this system so they can be shared between configure |
|
19720 |
# scripts and configure runs, see configure's option --config-cache. |
|
19721 |
# It is not useful on other systems. If it contains results you don't |
|
19722 |
# want to keep, you may remove or edit it. |
|
19723 |
# |
|
19724 |
# config.status only pays attention to the cache file if you give it |
|
19725 |
# the --recheck option to rerun configure. |
|
19726 |
# |
|
19727 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
19728 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
19729 |
# following values. |
|
19730 |
||
19731 |
_ACEOF |
|
19732 |
||
19733 |
# The following way of writing the cache mishandles newlines in values, |
|
19734 |
# but we know of no workaround that is simple, portable, and efficient. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19735 |
# So, we kill variables containing newlines. |
1
by Ross Burton
Import upstream version 0.10 |
19736 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
19737 |
# and sets the high bit in the cache file unless we assign to the vars. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19738 |
( |
19739 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|
19740 |
eval ac_val=\$$ac_var |
|
19741 |
case $ac_val in #( |
|
19742 |
*${as_nl}*) |
|
19743 |
case $ac_var in #( |
|
19744 |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
|
19745 |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
|
19746 |
esac |
|
19747 |
case $ac_var in #( |
|
19748 |
_ | IFS | as_nl) ;; #( |
|
19749 |
*) $as_unset $ac_var ;; |
|
19750 |
esac ;; |
|
19751 |
esac |
|
19752 |
done |
|
19753 |
||
1
by Ross Burton
Import upstream version 0.10 |
19754 |
(set) 2>&1 | |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19755 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
19756 |
*${as_nl}ac_space=\ *) |
|
1
by Ross Burton
Import upstream version 0.10 |
19757 |
# `set' does not quote correctly, so add quotes (double-quote |
19758 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
|
19759 |
sed -n \ |
|
19760 |
"s/'/'\\\\''/g; |
|
19761 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19762 |
;; #( |
1
by Ross Burton
Import upstream version 0.10 |
19763 |
*) |
19764 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19765 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1
by Ross Burton
Import upstream version 0.10 |
19766 |
;; |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19767 |
esac | |
19768 |
sort |
|
19769 |
) | |
|
1
by Ross Burton
Import upstream version 0.10 |
19770 |
sed ' |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19771 |
/^ac_cv_env_/b end |
1
by Ross Burton
Import upstream version 0.10 |
19772 |
t clear |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19773 |
:clear |
1
by Ross Burton
Import upstream version 0.10 |
19774 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
19775 |
t end |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19776 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
19777 |
:end' >>confcache |
|
19778 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
|
19779 |
if test -w "$cache_file"; then |
|
19780 |
test "x$cache_file" != "x/dev/null" && |
|
19781 |
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
|
19782 |
echo "$as_me: updating cache $cache_file" >&6;} |
|
1
by Ross Burton
Import upstream version 0.10 |
19783 |
cat confcache >$cache_file |
19784 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19785 |
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
19786 |
echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
|
1
by Ross Burton
Import upstream version 0.10 |
19787 |
fi |
19788 |
fi |
|
19789 |
rm -f confcache |
|
19790 |
||
19791 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
19792 |
# Let make expand exec_prefix. |
|
19793 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
19794 |
||
19795 |
DEFS=-DHAVE_CONFIG_H |
|
19796 |
||
19797 |
ac_libobjs= |
|
19798 |
ac_ltlibobjs= |
|
19799 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
19800 |
# 1. Remove the extension, and $U if already installed. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19801 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
19802 |
ac_i=`echo "$ac_i" | sed "$ac_script"` |
|
19803 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
|
19804 |
# will be set to the directory where LIBOBJS objects are built. |
|
19805 |
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
|
19806 |
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
|
1
by Ross Burton
Import upstream version 0.10 |
19807 |
done |
19808 |
LIBOBJS=$ac_libobjs |
|
19809 |
||
19810 |
LTLIBOBJS=$ac_ltlibobjs |
|
19811 |
||
19812 |
||
19813 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
|
19814 |
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
|
19815 |
Usually this means the macro was only invoked conditionally." >&5 |
|
19816 |
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
|
19817 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
19818 |
{ (exit 1); exit 1; }; } |
|
19819 |
fi |
|
19820 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
|
19821 |
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
|
19822 |
Usually this means the macro was only invoked conditionally." >&5 |
|
19823 |
echo "$as_me: error: conditional \"AMDEP\" was never defined. |
|
19824 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
19825 |
{ (exit 1); exit 1; }; } |
|
19826 |
fi |
|
19827 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
|
19828 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
|
19829 |
Usually this means the macro was only invoked conditionally." >&5 |
|
19830 |
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
|
19831 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
19832 |
{ (exit 1); exit 1; }; } |
|
19833 |
fi |
|
19834 |
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
|
19835 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
|
19836 |
Usually this means the macro was only invoked conditionally." >&5 |
|
19837 |
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
|
19838 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
19839 |
{ (exit 1); exit 1; }; } |
|
19840 |
fi |
|
19841 |
||
19842 |
: ${CONFIG_STATUS=./config.status} |
|
19843 |
ac_clean_files_save=$ac_clean_files |
|
19844 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
19845 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
|
19846 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
19847 |
cat >$CONFIG_STATUS <<_ACEOF |
|
19848 |
#! $SHELL |
|
19849 |
# Generated by $as_me. |
|
19850 |
# Run this file to recreate the current configuration. |
|
19851 |
# Compiler output produced by configure, useful for debugging |
|
19852 |
# configure, is in config.log if it exists. |
|
19853 |
||
19854 |
debug=false |
|
19855 |
ac_cs_recheck=false |
|
19856 |
ac_cs_silent=false |
|
19857 |
SHELL=\${CONFIG_SHELL-$SHELL} |
|
19858 |
_ACEOF |
|
19859 |
||
19860 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
19861 |
## --------------------- ## |
|
19862 |
## M4sh Initialization. ## |
|
19863 |
## --------------------- ## |
|
19864 |
||
1.2.1
by Ross Burton
Import upstream version 0.15 |
19865 |
# Be more Bourne compatible |
19866 |
DUALCASE=1; export DUALCASE # for MKS sh |
|
1
by Ross Burton
Import upstream version 0.10 |
19867 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19868 |
emulate sh |
|
19869 |
NULLCMD=: |
|
19870 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
19871 |
# is contrary to our usage. Disable this feature. |
|
19872 |
alias -g '${1+"$@"}'='"$@"' |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19873 |
setopt NO_GLOB_SUBST |
19874 |
else |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
19875 |
case `(set -o) 2>/dev/null` in |
19876 |
*posix*) set -o posix ;; |
|
19877 |
esac |
|
19878 |
||
19879 |
fi |
|
19880 |
||
19881 |
||
19882 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19883 |
|
19884 |
# PATH needs CR |
|
19885 |
# Avoid depending upon Character Ranges. |
|
19886 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
19887 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
19888 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
19889 |
as_cr_digits='0123456789' |
|
19890 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
19891 |
||
19892 |
# The user is always right. |
|
19893 |
if test "${PATH_SEPARATOR+set}" != set; then |
|
19894 |
echo "#! /bin/sh" >conf$$.sh |
|
19895 |
echo "exit 0" >>conf$$.sh |
|
19896 |
chmod +x conf$$.sh |
|
19897 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
19898 |
PATH_SEPARATOR=';' |
|
19899 |
else |
|
19900 |
PATH_SEPARATOR=: |
|
19901 |
fi |
|
19902 |
rm -f conf$$.sh |
|
19903 |
fi |
|
19904 |
||
1
by Ross Burton
Import upstream version 0.10 |
19905 |
# Support unset when possible. |
19906 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
19907 |
as_unset=unset |
|
19908 |
else |
|
19909 |
as_unset=false |
|
19910 |
fi |
|
19911 |
||
19912 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19913 |
# IFS |
19914 |
# We need space, tab and new line, in precisely that order. Quoting is |
|
19915 |
# there to prevent editors from complaining about space-tab. |
|
19916 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
19917 |
# splitting by setting IFS to empty value.) |
|
19918 |
as_nl=' |
|
19919 |
' |
|
19920 |
IFS=" "" $as_nl" |
|
19921 |
||
19922 |
# Find who we are. Look in the path if we contain no directory separator. |
|
19923 |
case $0 in |
|
19924 |
*[\\/]* ) as_myself=$0 ;; |
|
19925 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
19926 |
for as_dir in $PATH |
|
19927 |
do |
|
19928 |
IFS=$as_save_IFS |
|
19929 |
test -z "$as_dir" && as_dir=. |
|
19930 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
19931 |
done |
|
19932 |
IFS=$as_save_IFS |
|
19933 |
||
19934 |
;; |
|
19935 |
esac |
|
19936 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
|
19937 |
# in which case we are not to be found in the path. |
|
19938 |
if test "x$as_myself" = x; then |
|
19939 |
as_myself=$0 |
|
19940 |
fi |
|
19941 |
if test ! -f "$as_myself"; then |
|
19942 |
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
19943 |
{ (exit 1); exit 1; } |
|
19944 |
fi |
|
19945 |
||
1
by Ross Burton
Import upstream version 0.10 |
19946 |
# Work around bugs in pre-3.0 UWIN ksh. |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19947 |
for as_var in ENV MAIL MAILPATH |
19948 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
19949 |
done |
|
1
by Ross Burton
Import upstream version 0.10 |
19950 |
PS1='$ ' |
19951 |
PS2='> ' |
|
19952 |
PS4='+ ' |
|
19953 |
||
19954 |
# NLS nuisances. |
|
19955 |
for as_var in \ |
|
19956 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
19957 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
19958 |
LC_TELEPHONE LC_TIME |
|
19959 |
do |
|
19960 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
19961 |
eval $as_var=C; export $as_var |
|
19962 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19963 |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
1
by Ross Burton
Import upstream version 0.10 |
19964 |
fi |
19965 |
done |
|
19966 |
||
19967 |
# Required to use basename. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19968 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
19969 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
1
by Ross Burton
Import upstream version 0.10 |
19970 |
as_expr=expr |
19971 |
else |
|
19972 |
as_expr=false |
|
19973 |
fi |
|
19974 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19975 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1
by Ross Burton
Import upstream version 0.10 |
19976 |
as_basename=basename |
19977 |
else |
|
19978 |
as_basename=false |
|
19979 |
fi |
|
19980 |
||
19981 |
||
19982 |
# Name of the executable. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19983 |
as_me=`$as_basename -- "$0" || |
1
by Ross Burton
Import upstream version 0.10 |
19984 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
19985 |
X"$0" : 'X\(//\)$' \| \ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19986 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1
by Ross Burton
Import upstream version 0.10 |
19987 |
echo X/"$0" | |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
19988 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
19989 |
s//\1/ |
|
19990 |
q |
|
19991 |
} |
|
19992 |
/^X\/\(\/\/\)$/{ |
|
19993 |
s//\1/ |
|
19994 |
q |
|
19995 |
} |
|
19996 |
/^X\/\(\/\).*/{ |
|
19997 |
s//\1/ |
|
19998 |
q |
|
19999 |
} |
|
20000 |
s/.*/./; q'` |
|
20001 |
||
20002 |
# CDPATH. |
|
20003 |
$as_unset CDPATH |
|
20004 |
||
20005 |
||
20006 |
||
20007 |
as_lineno_1=$LINENO |
|
20008 |
as_lineno_2=$LINENO |
|
20009 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
20010 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
|
1
by Ross Burton
Import upstream version 0.10 |
20011 |
|
20012 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
20013 |
# uniformly replaced by the line number. The first 'sed' inserts a |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20014 |
# line-number line after each line using $LINENO; the second 'sed' |
20015 |
# does the real work. The second script uses 'N' to pair each |
|
20016 |
# line-number line with the line containing $LINENO, and appends |
|
20017 |
# trailing '-' during substitution so that $LINENO is not a special |
|
20018 |
# case at line end. |
|
1
by Ross Burton
Import upstream version 0.10 |
20019 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20020 |
# scripts with optimization help from Paolo Bonzini. Blame Lee |
20021 |
# E. McMahon (1931-1989) for sed's syntax. :-) |
|
20022 |
sed -n ' |
|
20023 |
p |
|
20024 |
/[$]LINENO/= |
|
20025 |
' <$as_myself | |
|
1
by Ross Burton
Import upstream version 0.10 |
20026 |
sed ' |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20027 |
s/[$]LINENO.*/&-/ |
20028 |
t lineno |
|
20029 |
b |
|
20030 |
:lineno |
|
1
by Ross Burton
Import upstream version 0.10 |
20031 |
N |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20032 |
:loop |
20033 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
1
by Ross Burton
Import upstream version 0.10 |
20034 |
t loop |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20035 |
s/-\n.*// |
1
by Ross Burton
Import upstream version 0.10 |
20036 |
' >$as_me.lineno && |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20037 |
chmod +x "$as_me.lineno" || |
20038 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
|
1
by Ross Burton
Import upstream version 0.10 |
20039 |
{ (exit 1); exit 1; }; } |
20040 |
||
20041 |
# Don't try to exec as it changes $[0], causing all sort of problems |
|
20042 |
# (the dirname of $[0] is not the place where we might find the |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20043 |
# original and so on. Autoconf is especially sensitive to this). |
20044 |
. "./$as_me.lineno" |
|
1
by Ross Burton
Import upstream version 0.10 |
20045 |
# Exit status is that of the last command. |
20046 |
exit |
|
20047 |
} |
|
20048 |
||
20049 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20050 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
20051 |
as_dirname=dirname |
|
20052 |
else |
|
20053 |
as_dirname=false |
|
20054 |
fi |
|
20055 |
||
20056 |
ECHO_C= ECHO_N= ECHO_T= |
|
20057 |
case `echo -n x` in |
|
20058 |
-n*) |
|
20059 |
case `echo 'x\c'` in |
|
20060 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
20061 |
*) ECHO_C='\c';; |
|
20062 |
esac;; |
|
20063 |
*) |
|
20064 |
ECHO_N='-n';; |
|
1
by Ross Burton
Import upstream version 0.10 |
20065 |
esac |
20066 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20067 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
20068 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
1
by Ross Burton
Import upstream version 0.10 |
20069 |
as_expr=expr |
20070 |
else |
|
20071 |
as_expr=false |
|
20072 |
fi |
|
20073 |
||
20074 |
rm -f conf$$ conf$$.exe conf$$.file |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20075 |
if test -d conf$$.dir; then |
20076 |
rm -f conf$$.dir/conf$$.file |
|
20077 |
else |
|
20078 |
rm -f conf$$.dir |
|
20079 |
mkdir conf$$.dir |
|
20080 |
fi |
|
1
by Ross Burton
Import upstream version 0.10 |
20081 |
echo >conf$$.file |
20082 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20083 |
as_ln_s='ln -s' |
20084 |
# ... but there are two gotchas: |
|
20085 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
20086 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
20087 |
# In both cases, we have to default to `cp -p'. |
|
20088 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
1
by Ross Burton
Import upstream version 0.10 |
20089 |
as_ln_s='cp -p' |
20090 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
20091 |
as_ln_s=ln |
|
20092 |
else |
|
20093 |
as_ln_s='cp -p' |
|
20094 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20095 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
20096 |
rmdir conf$$.dir 2>/dev/null |
|
1
by Ross Burton
Import upstream version 0.10 |
20097 |
|
20098 |
if mkdir -p . 2>/dev/null; then |
|
20099 |
as_mkdir_p=: |
|
20100 |
else |
|
20101 |
test -d ./-p && rmdir ./-p |
|
20102 |
as_mkdir_p=false |
|
20103 |
fi |
|
20104 |
||
1.2.1
by Ross Burton
Import upstream version 0.15 |
20105 |
if test -x / >/dev/null 2>&1; then |
20106 |
as_test_x='test -x' |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20107 |
else |
1.2.1
by Ross Burton
Import upstream version 0.15 |
20108 |
if ls -dL / >/dev/null 2>&1; then |
20109 |
as_ls_L_option=L |
|
20110 |
else |
|
20111 |
as_ls_L_option= |
|
20112 |
fi |
|
20113 |
as_test_x=' |
|
20114 |
eval sh -c '\'' |
|
20115 |
if test -d "$1"; then |
|
20116 |
test -d "$1/."; |
|
20117 |
else |
|
20118 |
case $1 in |
|
20119 |
-*)set "./$1";; |
|
20120 |
esac; |
|
20121 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
20122 |
???[sx]*):;;*)false;;esac;fi |
|
20123 |
'\'' sh |
|
20124 |
' |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20125 |
fi |
1.2.1
by Ross Burton
Import upstream version 0.15 |
20126 |
as_executable_p=$as_test_x |
1
by Ross Burton
Import upstream version 0.10 |
20127 |
|
20128 |
# Sed expression to map a string onto a valid CPP name. |
|
20129 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
20130 |
||
20131 |
# Sed expression to map a string onto a valid variable name. |
|
20132 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
20133 |
||
20134 |
||
20135 |
exec 6>&1 |
|
20136 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20137 |
# Save the log message, to keep $[0] and so on meaningful, and to |
1
by Ross Burton
Import upstream version 0.10 |
20138 |
# report actual input values of CONFIG_FILES etc. instead of their |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20139 |
# values after options handling. |
20140 |
ac_log=" |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
20141 |
This file was extended by desktop-file-utils $as_me 0.15, which was |
20142 |
generated by GNU Autoconf 2.61. Invocation command line was |
|
1
by Ross Burton
Import upstream version 0.10 |
20143 |
|
20144 |
CONFIG_FILES = $CONFIG_FILES |
|
20145 |
CONFIG_HEADERS = $CONFIG_HEADERS |
|
20146 |
CONFIG_LINKS = $CONFIG_LINKS |
|
20147 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
20148 |
$ $0 $@ |
|
20149 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20150 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
20151 |
" |
|
20152 |
||
1
by Ross Burton
Import upstream version 0.10 |
20153 |
_ACEOF |
20154 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20155 |
cat >>$CONFIG_STATUS <<_ACEOF |
1
by Ross Burton
Import upstream version 0.10 |
20156 |
# Files that config.status was made for. |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20157 |
config_files="$ac_config_files" |
20158 |
config_headers="$ac_config_headers" |
|
20159 |
config_commands="$ac_config_commands" |
|
20160 |
||
20161 |
_ACEOF |
|
1
by Ross Burton
Import upstream version 0.10 |
20162 |
|
20163 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
20164 |
ac_cs_usage="\ |
|
20165 |
\`$as_me' instantiates files from templates according to the |
|
20166 |
current configuration. |
|
20167 |
||
20168 |
Usage: $0 [OPTIONS] [FILE]... |
|
20169 |
||
20170 |
-h, --help print this help, then exit |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
20171 |
-V, --version print version number and configuration settings, then exit |
1
by Ross Burton
Import upstream version 0.10 |
20172 |
-q, --quiet do not print progress messages |
20173 |
-d, --debug don't remove temporary files |
|
20174 |
--recheck update $as_me by reconfiguring in the same conditions |
|
20175 |
--file=FILE[:TEMPLATE] |
|
20176 |
instantiate the configuration file FILE |
|
20177 |
--header=FILE[:TEMPLATE] |
|
20178 |
instantiate the configuration header FILE |
|
20179 |
||
20180 |
Configuration files: |
|
20181 |
$config_files |
|
20182 |
||
20183 |
Configuration headers: |
|
20184 |
$config_headers |
|
20185 |
||
20186 |
Configuration commands: |
|
20187 |
$config_commands |
|
20188 |
||
20189 |
Report bugs to <bug-autoconf@gnu.org>." |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20190 |
|
1
by Ross Burton
Import upstream version 0.10 |
20191 |
_ACEOF |
20192 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
20193 |
ac_cs_version="\\ |
|
1.2.1
by Ross Burton
Import upstream version 0.15 |
20194 |
desktop-file-utils config.status 0.15 |
20195 |
configured by $0, generated by GNU Autoconf 2.61, |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20196 |
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
1
by Ross Burton
Import upstream version 0.10 |
20197 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20198 |
Copyright (C) 2006 Free Software Foundation, Inc. |
1
by Ross Burton
Import upstream version 0.10 |
20199 |
This config.status script is free software; the Free Software Foundation |
20200 |
gives unlimited permission to copy, distribute and modify it." |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20201 |
|
20202 |
ac_pwd='$ac_pwd' |
|
20203 |
srcdir='$srcdir' |
|
20204 |
INSTALL='$INSTALL' |
|
1
by Ross Burton
Import upstream version 0.10 |
20205 |
_ACEOF |
20206 |
||
20207 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
20208 |
# If no file are specified by the user, then we need to provide default |
|
20209 |
# value. By we need to know if files were specified by the user. |
|
20210 |
ac_need_defaults=: |
|
20211 |
while test $# != 0 |
|
20212 |
do |
|
20213 |
case $1 in |
|
20214 |
--*=*) |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20215 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
20216 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
1
by Ross Burton
Import upstream version 0.10 |
20217 |
ac_shift=: |
20218 |
;; |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20219 |
*) |
1
by Ross Burton
Import upstream version 0.10 |
20220 |
ac_option=$1 |
20221 |
ac_optarg=$2 |
|
20222 |
ac_shift=shift |
|
20223 |
;; |
|
20224 |
esac |
|
20225 |
||
20226 |
case $ac_option in |
|
20227 |
# Handling of the options. |
|
20228 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
20229 |
ac_cs_recheck=: ;; |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20230 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
20231 |
echo "$ac_cs_version"; exit ;; |
|
20232 |
--debug | --debu | --deb | --de | --d | -d ) |
|
1
by Ross Burton
Import upstream version 0.10 |
20233 |
debug=: ;; |
20234 |
--file | --fil | --fi | --f ) |
|
20235 |
$ac_shift |
|
20236 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
|
20237 |
ac_need_defaults=false;; |
|
20238 |
--header | --heade | --head | --hea ) |
|
20239 |
$ac_shift |
|
20240 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
|
20241 |
ac_need_defaults=false;; |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20242 |
--he | --h) |
20243 |
# Conflict between --help and --header |
|
20244 |
{ echo "$as_me: error: ambiguous option: $1 |
|
20245 |
Try \`$0 --help' for more information." >&2 |
|
20246 |
{ (exit 1); exit 1; }; };; |
|
20247 |
--help | --hel | -h ) |
|
20248 |
echo "$ac_cs_usage"; exit ;; |
|
1
by Ross Burton
Import upstream version 0.10 |
20249 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
20250 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
20251 |
ac_cs_silent=: ;; |
|
20252 |
||
20253 |
# This is an error. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20254 |
-*) { echo "$as_me: error: unrecognized option: $1 |
20255 |
Try \`$0 --help' for more information." >&2 |
|
1
by Ross Burton
Import upstream version 0.10 |
20256 |
{ (exit 1); exit 1; }; } ;; |
20257 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20258 |
*) ac_config_targets="$ac_config_targets $1" |
20259 |
ac_need_defaults=false ;; |
|
1
by Ross Burton
Import upstream version 0.10 |
20260 |
|
20261 |
esac |
|
20262 |
shift |
|
20263 |
done |
|
20264 |
||
20265 |
ac_configure_extra_args= |
|
20266 |
||
20267 |
if $ac_cs_silent; then |
|
20268 |
exec 6>/dev/null |
|
20269 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
20270 |
fi |
|
20271 |
||
20272 |
_ACEOF |
|
20273 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
20274 |
if \$ac_cs_recheck; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20275 |
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
20276 |
CONFIG_SHELL=$SHELL |
|
20277 |
export CONFIG_SHELL |
|
20278 |
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
1
by Ross Burton
Import upstream version 0.10 |
20279 |
fi |
20280 |
||
20281 |
_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20282 |
cat >>$CONFIG_STATUS <<\_ACEOF |
20283 |
exec 5>>config.log |
|
20284 |
{ |
|
20285 |
echo |
|
20286 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
20287 |
## Running $as_me. ## |
|
20288 |
_ASBOX |
|
20289 |
echo "$ac_log" |
|
20290 |
} >&5 |
|
1
by Ross Burton
Import upstream version 0.10 |
20291 |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20292 |
_ACEOF |
1
by Ross Burton
Import upstream version 0.10 |
20293 |
cat >>$CONFIG_STATUS <<_ACEOF |
20294 |
# |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20295 |
# INIT-COMMANDS |
1
by Ross Burton
Import upstream version 0.10 |
20296 |
# |
20297 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
|
20298 |
||
20299 |
_ACEOF |
|
20300 |
||
20301 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20302 |
|
20303 |
# Handling of arguments. |
|
1
by Ross Burton
Import upstream version 0.10 |
20304 |
for ac_config_target in $ac_config_targets |
20305 |
do |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20306 |
case $ac_config_target in |
20307 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
|
20308 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
|
20309 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
20310 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
|
20311 |
"misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; |
|
20312 |
||
1
by Ross Burton
Import upstream version 0.10 |
20313 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20314 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
|
20315 |
{ (exit 1); exit 1; }; };; |
|
20316 |
esac |
|
20317 |
done |
|
20318 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20319 |
|
1
by Ross Burton
Import upstream version 0.10 |
20320 |
# If the user did not use the arguments to specify the items to instantiate, |
20321 |
# then the envvar interface is used. Set only those that are not. |
|
20322 |
# We use the long form for the default assignment because of an extremely |
|
20323 |
# bizarre bug on SunOS 4.1.3. |
|
20324 |
if $ac_need_defaults; then |
|
20325 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
20326 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|
20327 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
|
20328 |
fi |
|
20329 |
||
20330 |
# Have a temporary directory for convenience. Make it in the build tree |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20331 |
# simply because there is no reason against having it here, and in addition, |
1
by Ross Burton
Import upstream version 0.10 |
20332 |
# creating and moving files from /tmp can sometimes cause problems. |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20333 |
# Hook for its removal unless debugging. |
20334 |
# Note that there is a small window in which the directory will not be cleaned: |
|
20335 |
# after its creation but before its name has been assigned to `$tmp'. |
|
1
by Ross Burton
Import upstream version 0.10 |
20336 |
$debug || |
20337 |
{ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20338 |
tmp= |
20339 |
trap 'exit_status=$? |
|
20340 |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
|
20341 |
' 0 |
|
1
by Ross Burton
Import upstream version 0.10 |
20342 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
20343 |
} |
|
20344 |
# Create a (secure) tmp directory for tmp files. |
|
20345 |
||
20346 |
{ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20347 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
1
by Ross Burton
Import upstream version 0.10 |
20348 |
test -n "$tmp" && test -d "$tmp" |
20349 |
} || |
|
20350 |
{ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20351 |
tmp=./conf$$-$RANDOM |
20352 |
(umask 077 && mkdir "$tmp") |
|
1
by Ross Burton
Import upstream version 0.10 |
20353 |
} || |
20354 |
{ |
|
20355 |
echo "$me: cannot create a temporary directory in ." >&2 |
|
20356 |
{ (exit 1); exit 1; } |
|
20357 |
} |
|
20358 |
||
20359 |
# |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20360 |
# Set up the sed scripts for CONFIG_FILES section. |
1
by Ross Burton
Import upstream version 0.10 |
20361 |
# |
20362 |
||
20363 |
# No need to generate the scripts if there are no CONFIG_FILES. |
|
20364 |
# This happens for instance when ./config.status config.h |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20365 |
if test -n "$CONFIG_FILES"; then |
20366 |
||
20367 |
_ACEOF |
|
20368 |
||
20369 |
||
20370 |
||
20371 |
ac_delim='%!_!# ' |
|
20372 |
for ac_last_try in false false false false false :; do |
|
20373 |
cat >conf$$subs.sed <<_ACEOF |
|
20374 |
SHELL!$SHELL$ac_delim |
|
20375 |
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
|
20376 |
PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
|
20377 |
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
|
20378 |
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
|
20379 |
PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
|
20380 |
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
|
20381 |
exec_prefix!$exec_prefix$ac_delim |
|
20382 |
prefix!$prefix$ac_delim |
|
20383 |
program_transform_name!$program_transform_name$ac_delim |
|
20384 |
bindir!$bindir$ac_delim |
|
20385 |
sbindir!$sbindir$ac_delim |
|
20386 |
libexecdir!$libexecdir$ac_delim |
|
20387 |
datarootdir!$datarootdir$ac_delim |
|
20388 |
datadir!$datadir$ac_delim |
|
20389 |
sysconfdir!$sysconfdir$ac_delim |
|
20390 |
sharedstatedir!$sharedstatedir$ac_delim |
|
20391 |
localstatedir!$localstatedir$ac_delim |
|
20392 |
includedir!$includedir$ac_delim |
|
20393 |
oldincludedir!$oldincludedir$ac_delim |
|
20394 |
docdir!$docdir$ac_delim |
|
20395 |
infodir!$infodir$ac_delim |
|
20396 |
htmldir!$htmldir$ac_delim |
|
20397 |
dvidir!$dvidir$ac_delim |
|
20398 |
pdfdir!$pdfdir$ac_delim |
|
20399 |
psdir!$psdir$ac_delim |
|
20400 |
libdir!$libdir$ac_delim |
|
20401 |
localedir!$localedir$ac_delim |
|
20402 |
mandir!$mandir$ac_delim |
|
20403 |
DEFS!$DEFS$ac_delim |
|
20404 |
ECHO_C!$ECHO_C$ac_delim |
|
20405 |
ECHO_N!$ECHO_N$ac_delim |
|
20406 |
ECHO_T!$ECHO_T$ac_delim |
|
20407 |
LIBS!$LIBS$ac_delim |
|
20408 |
build_alias!$build_alias$ac_delim |
|
20409 |
host_alias!$host_alias$ac_delim |
|
20410 |
target_alias!$target_alias$ac_delim |
|
20411 |
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
|
20412 |
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
|
20413 |
INSTALL_DATA!$INSTALL_DATA$ac_delim |
|
20414 |
CYGPATH_W!$CYGPATH_W$ac_delim |
|
20415 |
PACKAGE!$PACKAGE$ac_delim |
|
20416 |
VERSION!$VERSION$ac_delim |
|
20417 |
ACLOCAL!$ACLOCAL$ac_delim |
|
20418 |
AUTOCONF!$AUTOCONF$ac_delim |
|
20419 |
AUTOMAKE!$AUTOMAKE$ac_delim |
|
20420 |
AUTOHEADER!$AUTOHEADER$ac_delim |
|
20421 |
MAKEINFO!$MAKEINFO$ac_delim |
|
20422 |
AMTAR!$AMTAR$ac_delim |
|
20423 |
install_sh!$install_sh$ac_delim |
|
20424 |
STRIP!$STRIP$ac_delim |
|
20425 |
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
|
20426 |
AWK!$AWK$ac_delim |
|
20427 |
SET_MAKE!$SET_MAKE$ac_delim |
|
20428 |
am__leading_dot!$am__leading_dot$ac_delim |
|
20429 |
ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim |
|
20430 |
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim |
|
20431 |
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim |
|
20432 |
MAINT!$MAINT$ac_delim |
|
20433 |
CC!$CC$ac_delim |
|
20434 |
CFLAGS!$CFLAGS$ac_delim |
|
20435 |
LDFLAGS!$LDFLAGS$ac_delim |
|
20436 |
CPPFLAGS!$CPPFLAGS$ac_delim |
|
20437 |
ac_ct_CC!$ac_ct_CC$ac_delim |
|
20438 |
EXEEXT!$EXEEXT$ac_delim |
|
20439 |
OBJEXT!$OBJEXT$ac_delim |
|
20440 |
DEPDIR!$DEPDIR$ac_delim |
|
20441 |
am__include!$am__include$ac_delim |
|
20442 |
am__quote!$am__quote$ac_delim |
|
20443 |
AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
|
20444 |
AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
|
20445 |
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
|
20446 |
CCDEPMODE!$CCDEPMODE$ac_delim |
|
20447 |
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
|
20448 |
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
|
20449 |
CPP!$CPP$ac_delim |
|
20450 |
GREP!$GREP$ac_delim |
|
20451 |
EGREP!$EGREP$ac_delim |
|
20452 |
build!$build$ac_delim |
|
20453 |
build_cpu!$build_cpu$ac_delim |
|
20454 |
build_vendor!$build_vendor$ac_delim |
|
20455 |
build_os!$build_os$ac_delim |
|
20456 |
host!$host$ac_delim |
|
20457 |
host_cpu!$host_cpu$ac_delim |
|
20458 |
host_vendor!$host_vendor$ac_delim |
|
20459 |
host_os!$host_os$ac_delim |
|
20460 |
LN_S!$LN_S$ac_delim |
|
20461 |
ECHO!$ECHO$ac_delim |
|
20462 |
AR!$AR$ac_delim |
|
20463 |
RANLIB!$RANLIB$ac_delim |
|
20464 |
CXX!$CXX$ac_delim |
|
20465 |
CXXFLAGS!$CXXFLAGS$ac_delim |
|
20466 |
ac_ct_CXX!$ac_ct_CXX$ac_delim |
|
20467 |
CXXDEPMODE!$CXXDEPMODE$ac_delim |
|
20468 |
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
|
20469 |
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
|
20470 |
CXXCPP!$CXXCPP$ac_delim |
|
20471 |
_ACEOF |
|
20472 |
||
20473 |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
|
20474 |
break |
|
20475 |
elif $ac_last_try; then |
|
20476 |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
20477 |
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
20478 |
{ (exit 1); exit 1; }; } |
|
20479 |
else |
|
20480 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
20481 |
fi |
|
20482 |
done |
|
20483 |
||
20484 |
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
20485 |
if test -n "$ac_eof"; then |
|
20486 |
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
20487 |
ac_eof=`expr $ac_eof + 1` |
|
20488 |
fi |
|
20489 |
||
20490 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
20491 |
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
|
20492 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
20493 |
_ACEOF |
|
20494 |
sed ' |
|
20495 |
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
20496 |
s/^/s,@/; s/!/@,|#_!!_#|/ |
|
20497 |
:n |
|
20498 |
t n |
|
20499 |
s/'"$ac_delim"'$/,g/; t |
|
20500 |
s/$/\\/; p |
|
20501 |
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
20502 |
' >>$CONFIG_STATUS <conf$$subs.sed |
|
20503 |
rm -f conf$$subs.sed |
|
20504 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
20505 |
CEOF$ac_eof |
|
20506 |
_ACEOF |
|
20507 |
||
20508 |
||
20509 |
ac_delim='%!_!# ' |
|
20510 |
for ac_last_try in false false false false false :; do |
|
20511 |
cat >conf$$subs.sed <<_ACEOF |
|
20512 |
F77!$F77$ac_delim |
|
20513 |
FFLAGS!$FFLAGS$ac_delim |
|
20514 |
ac_ct_F77!$ac_ct_F77$ac_delim |
|
20515 |
LIBTOOL!$LIBTOOL$ac_delim |
|
20516 |
PKG_CONFIG!$PKG_CONFIG$ac_delim |
|
20517 |
DESKTOP_FILE_UTILS_CFLAGS!$DESKTOP_FILE_UTILS_CFLAGS$ac_delim |
|
20518 |
DESKTOP_FILE_UTILS_LIBS!$DESKTOP_FILE_UTILS_LIBS$ac_delim |
|
20519 |
EMACS!$EMACS$ac_delim |
|
20520 |
lispdir!$lispdir$ac_delim |
|
20521 |
LIBOBJS!$LIBOBJS$ac_delim |
|
20522 |
LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
20523 |
_ACEOF |
|
20524 |
||
20525 |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then |
|
20526 |
break |
|
20527 |
elif $ac_last_try; then |
|
20528 |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
20529 |
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
20530 |
{ (exit 1); exit 1; }; } |
|
20531 |
else |
|
20532 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
20533 |
fi |
|
20534 |
done |
|
20535 |
||
20536 |
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
20537 |
if test -n "$ac_eof"; then |
|
20538 |
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
20539 |
ac_eof=`expr $ac_eof + 1` |
|
20540 |
fi |
|
20541 |
||
20542 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
20543 |
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
20544 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
|
20545 |
_ACEOF |
|
20546 |
sed ' |
|
20547 |
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
20548 |
s/^/s,@/; s/!/@,|#_!!_#|/ |
|
20549 |
:n |
|
20550 |
t n |
|
20551 |
s/'"$ac_delim"'$/,g/; t |
|
20552 |
s/$/\\/; p |
|
20553 |
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
20554 |
' >>$CONFIG_STATUS <conf$$subs.sed |
|
20555 |
rm -f conf$$subs.sed |
|
20556 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
20557 |
:end |
|
20558 |
s/|#_!!_#|//g |
|
20559 |
CEOF$ac_eof |
|
20560 |
_ACEOF |
|
20561 |
||
20562 |
||
20563 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
20564 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|
20565 |
# trailing colons and then remove the whole line if VPATH becomes empty |
|
20566 |
# (actually we leave an empty line to preserve line numbers). |
|
20567 |
if test "x$srcdir" = x.; then |
|
20568 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
20569 |
s/:*\$(srcdir):*/:/ |
|
20570 |
s/:*\${srcdir}:*/:/ |
|
20571 |
s/:*@srcdir@:*/:/ |
|
20572 |
s/^\([^=]*=[ ]*\):*/\1/ |
|
20573 |
s/:*$// |
|
20574 |
s/^[^=]*=[ ]*$// |
|
20575 |
}' |
|
20576 |
fi |
|
20577 |
||
20578 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
1
by Ross Burton
Import upstream version 0.10 |
20579 |
fi # test -n "$CONFIG_FILES" |
20580 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20581 |
|
20582 |
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
|
20583 |
do |
|
20584 |
case $ac_tag in |
|
20585 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
|
20586 |
esac |
|
20587 |
case $ac_mode$ac_tag in |
|
20588 |
:[FHL]*:*);; |
|
20589 |
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
|
20590 |
echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
|
20591 |
{ (exit 1); exit 1; }; };; |
|
20592 |
:[FH]-) ac_tag=-:-;; |
|
20593 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
20594 |
esac |
|
20595 |
ac_save_IFS=$IFS |
|
20596 |
IFS=: |
|
20597 |
set x $ac_tag |
|
20598 |
IFS=$ac_save_IFS |
|
20599 |
shift |
|
20600 |
ac_file=$1 |
|
20601 |
shift |
|
20602 |
||
20603 |
case $ac_mode in |
|
20604 |
:L) ac_source=$1;; |
|
20605 |
:[FH]) |
|
20606 |
ac_file_inputs= |
|
20607 |
for ac_f |
|
20608 |
do |
|
20609 |
case $ac_f in |
|
20610 |
-) ac_f="$tmp/stdin";; |
|
20611 |
*) # Look for the file first in the build tree, then in the source tree |
|
20612 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
|
20613 |
# because $ac_f cannot contain `:'. |
|
20614 |
test -f "$ac_f" || |
|
20615 |
case $ac_f in |
|
20616 |
[\\/$]*) false;; |
|
20617 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
20618 |
esac || |
|
20619 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
|
20620 |
echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
|
20621 |
{ (exit 1); exit 1; }; };; |
|
20622 |
esac |
|
20623 |
ac_file_inputs="$ac_file_inputs $ac_f" |
|
20624 |
done |
|
20625 |
||
20626 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
|
20627 |
# use $as_me), people would be surprised to read: |
|
20628 |
# /* config.h. Generated by config.status. */ |
|
20629 |
configure_input="Generated from "`IFS=: |
|
20630 |
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
|
20631 |
if test x"$ac_file" != x-; then |
|
20632 |
configure_input="$ac_file. $configure_input" |
|
20633 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
20634 |
echo "$as_me: creating $ac_file" >&6;} |
|
20635 |
fi |
|
20636 |
||
20637 |
case $ac_tag in |
|
20638 |
*:-:* | *:-) cat >"$tmp/stdin";; |
|
20639 |
esac |
|
20640 |
;; |
|
20641 |
esac |
|
20642 |
||
20643 |
ac_dir=`$as_dirname -- "$ac_file" || |
|
1
by Ross Burton
Import upstream version 0.10 |
20644 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20645 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
20646 |
X"$ac_file" : 'X\(//\)$' \| \ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20647 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
1
by Ross Burton
Import upstream version 0.10 |
20648 |
echo X"$ac_file" | |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20649 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20650 |
s//\1/ |
|
20651 |
q |
|
20652 |
} |
|
20653 |
/^X\(\/\/\)[^/].*/{ |
|
20654 |
s//\1/ |
|
20655 |
q |
|
20656 |
} |
|
20657 |
/^X\(\/\/\)$/{ |
|
20658 |
s//\1/ |
|
20659 |
q |
|
20660 |
} |
|
20661 |
/^X\(\/\).*/{ |
|
20662 |
s//\1/ |
|
20663 |
q |
|
20664 |
} |
|
20665 |
s/.*/./; q'` |
|
20666 |
{ as_dir="$ac_dir" |
|
20667 |
case $as_dir in #( |
|
20668 |
-*) as_dir=./$as_dir;; |
|
20669 |
esac |
|
20670 |
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
|
1
by Ross Burton
Import upstream version 0.10 |
20671 |
as_dirs= |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20672 |
while :; do |
20673 |
case $as_dir in #( |
|
20674 |
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
|
20675 |
*) as_qdir=$as_dir;; |
|
20676 |
esac |
|
20677 |
as_dirs="'$as_qdir' $as_dirs" |
|
20678 |
as_dir=`$as_dirname -- "$as_dir" || |
|
1
by Ross Burton
Import upstream version 0.10 |
20679 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20680 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
20681 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20682 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
1
by Ross Burton
Import upstream version 0.10 |
20683 |
echo X"$as_dir" | |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20684 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20685 |
s//\1/ |
|
20686 |
q |
|
20687 |
} |
|
20688 |
/^X\(\/\/\)[^/].*/{ |
|
20689 |
s//\1/ |
|
20690 |
q |
|
20691 |
} |
|
20692 |
/^X\(\/\/\)$/{ |
|
20693 |
s//\1/ |
|
20694 |
q |
|
20695 |
} |
|
20696 |
/^X\(\/\).*/{ |
|
20697 |
s//\1/ |
|
20698 |
q |
|
20699 |
} |
|
20700 |
s/.*/./; q'` |
|
20701 |
test -d "$as_dir" && break |
|
1
by Ross Burton
Import upstream version 0.10 |
20702 |
done |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20703 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
20704 |
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
|
20705 |
echo "$as_me: error: cannot create directory $as_dir" >&2;} |
|
1
by Ross Burton
Import upstream version 0.10 |
20706 |
{ (exit 1); exit 1; }; }; } |
20707 |
ac_builddir=. |
|
20708 |
||
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20709 |
case "$ac_dir" in |
20710 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
20711 |
*) |
|
1
by Ross Burton
Import upstream version 0.10 |
20712 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20713 |
# A ".." for each directory in $ac_dir_suffix. |
20714 |
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
|
20715 |
case $ac_top_builddir_sub in |
|
20716 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
20717 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
20718 |
esac ;; |
|
20719 |
esac |
|
20720 |
ac_abs_top_builddir=$ac_pwd |
|
20721 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
20722 |
# for backward compatibility: |
|
20723 |
ac_top_builddir=$ac_top_build_prefix |
|
1
by Ross Burton
Import upstream version 0.10 |
20724 |
|
20725 |
case $srcdir in |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20726 |
.) # We are building in place. |
1
by Ross Burton
Import upstream version 0.10 |
20727 |
ac_srcdir=. |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20728 |
ac_top_srcdir=$ac_top_builddir_sub |
20729 |
ac_abs_top_srcdir=$ac_pwd ;; |
|
20730 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
|
1
by Ross Burton
Import upstream version 0.10 |
20731 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20732 |
ac_top_srcdir=$srcdir |
20733 |
ac_abs_top_srcdir=$srcdir ;; |
|
20734 |
*) # Relative name. |
|
20735 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
20736 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
20737 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
20738 |
esac |
|
20739 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
20740 |
||
20741 |
||
20742 |
case $ac_mode in |
|
20743 |
:F) |
|
20744 |
# |
|
20745 |
# CONFIG_FILE |
|
20746 |
# |
|
1
by Ross Burton
Import upstream version 0.10 |
20747 |
|
20748 |
case $INSTALL in |
|
20749 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20750 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
1
by Ross Burton
Import upstream version 0.10 |
20751 |
esac |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20752 |
_ACEOF |
20753 |
||
20754 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
20755 |
# If the template does not know about datarootdir, expand it. |
|
20756 |
# FIXME: This hack should be removed a few years after 2.60. |
|
20757 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
|
20758 |
||
20759 |
case `sed -n '/datarootdir/ { |
|
20760 |
p |
|
20761 |
q |
|
20762 |
} |
|
20763 |
/@datadir@/p |
|
20764 |
/@docdir@/p |
|
20765 |
/@infodir@/p |
|
20766 |
/@localedir@/p |
|
20767 |
/@mandir@/p |
|
20768 |
' $ac_file_inputs` in |
|
20769 |
*datarootdir*) ac_datarootdir_seen=yes;; |
|
20770 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
|
20771 |
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
|
20772 |
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
|
20773 |
_ACEOF |
|
20774 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
20775 |
ac_datarootdir_hack=' |
|
20776 |
s&@datadir@&$datadir&g |
|
20777 |
s&@docdir@&$docdir&g |
|
20778 |
s&@infodir@&$infodir&g |
|
20779 |
s&@localedir@&$localedir&g |
|
20780 |
s&@mandir@&$mandir&g |
|
20781 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
|
20782 |
esac |
|
20783 |
_ACEOF |
|
20784 |
||
20785 |
# Neutralize VPATH when `$srcdir' = `.'. |
|
20786 |
# Shell code in configure.ac might set extrasub. |
|
20787 |
# FIXME: do we really want to maintain this feature? |
|
1
by Ross Burton
Import upstream version 0.10 |
20788 |
cat >>$CONFIG_STATUS <<_ACEOF |
20789 |
sed "$ac_vpsub |
|
20790 |
$extrasub |
|
20791 |
_ACEOF |
|
20792 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
20793 |
:t |
|
20794 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20795 |
s&@configure_input@&$configure_input&;t t |
20796 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
|
20797 |
s&@srcdir@&$ac_srcdir&;t t |
|
20798 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
|
20799 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
|
20800 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
|
20801 |
s&@builddir@&$ac_builddir&;t t |
|
20802 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
|
20803 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
|
20804 |
s&@INSTALL@&$ac_INSTALL&;t t |
|
20805 |
$ac_datarootdir_hack |
|
20806 |
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
|
20807 |
||
20808 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
|
20809 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
|
20810 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
|
20811 |
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
20812 |
which seems to be undefined. Please make sure it is defined." >&5 |
|
20813 |
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
20814 |
which seems to be undefined. Please make sure it is defined." >&2;} |
|
20815 |
||
20816 |
rm -f "$tmp/stdin" |
|
20817 |
case $ac_file in |
|
20818 |
-) cat "$tmp/out"; rm -f "$tmp/out";; |
|
20819 |
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
|
20820 |
esac |
|
20821 |
;; |
|
20822 |
:H) |
|
20823 |
# |
|
20824 |
# CONFIG_HEADER |
|
20825 |
# |
|
1
by Ross Burton
Import upstream version 0.10 |
20826 |
_ACEOF |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20827 |
|
20828 |
# Transform confdefs.h into a sed script `conftest.defines', that |
|
20829 |
# substitutes the proper values into config.h.in to produce config.h. |
|
20830 |
rm -f conftest.defines conftest.tail |
|
20831 |
# First, append a space to every undef/define line, to ease matching. |
|
20832 |
echo 's/$/ /' >conftest.defines |
|
20833 |
# Then, protect against being on the right side of a sed subst, or in |
|
20834 |
# an unquoted here document, in config.status. If some macros were |
|
20835 |
# called several times there might be several #defines for the same |
|
20836 |
# symbol, which is useless. But do not sort them, since the last |
|
20837 |
# AC_DEFINE must be honored. |
|
20838 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|
20839 |
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
|
20840 |
# NAME is the cpp macro being defined, VALUE is the value it is being given. |
|
20841 |
# PARAMS is the parameter list in the macro definition--in most cases, it's |
|
20842 |
# just an empty string. |
|
20843 |
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
|
20844 |
ac_dB='\\)[ (].*,\\1define\\2' |
|
1
by Ross Burton
Import upstream version 0.10 |
20845 |
ac_dC=' ' |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20846 |
ac_dD=' ,' |
20847 |
||
20848 |
uniq confdefs.h | |
|
20849 |
sed -n ' |
|
20850 |
t rset |
|
20851 |
:rset |
|
20852 |
s/^[ ]*#[ ]*define[ ][ ]*// |
|
20853 |
t ok |
|
20854 |
d |
|
20855 |
:ok |
|
20856 |
s/[\\&,]/\\&/g |
|
20857 |
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
|
20858 |
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
|
20859 |
' >>conftest.defines |
|
20860 |
||
20861 |
# Remove the space that was appended to ease matching. |
|
20862 |
# Then replace #undef with comments. This is necessary, for |
|
1
by Ross Burton
Import upstream version 0.10 |
20863 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
20864 |
# on some systems where configure will not decide to define it. |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20865 |
# (The regexp can be short, since the line contains either #define or #undef.) |
20866 |
echo 's/ $// |
|
20867 |
s,^[ #]*u.*,/* & */,' >>conftest.defines |
|
20868 |
||
20869 |
# Break up conftest.defines: |
|
20870 |
ac_max_sed_lines=50 |
|
20871 |
||
20872 |
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
|
20873 |
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
|
20874 |
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
|
20875 |
# et cetera. |
|
20876 |
ac_in='$ac_file_inputs' |
|
20877 |
ac_out='"$tmp/out1"' |
|
20878 |
ac_nxt='"$tmp/out2"' |
|
20879 |
||
20880 |
while : |
|
20881 |
do |
|
20882 |
# Write a here document: |
|
20883 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
20884 |
# First, check the format of the line: |
|
20885 |
cat >"\$tmp/defines.sed" <<\\CEOF |
|
20886 |
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
|
20887 |
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
|
20888 |
b |
|
20889 |
:def |
|
1
by Ross Burton
Import upstream version 0.10 |
20890 |
_ACEOF |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20891 |
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
1
by Ross Burton
Import upstream version 0.10 |
20892 |
echo 'CEOF |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20893 |
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
20894 |
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
|
20895 |
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
|
20896 |
grep . conftest.tail >/dev/null || break |
|
1
by Ross Burton
Import upstream version 0.10 |
20897 |
rm -f conftest.defines |
20898 |
mv conftest.tail conftest.defines |
|
20899 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20900 |
rm -f conftest.defines conftest.tail |
20901 |
||
20902 |
echo "ac_result=$ac_in" >>$CONFIG_STATUS |
|
1
by Ross Burton
Import upstream version 0.10 |
20903 |
cat >>$CONFIG_STATUS <<\_ACEOF |
20904 |
if test x"$ac_file" != x-; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20905 |
echo "/* $configure_input */" >"$tmp/config.h" |
20906 |
cat "$ac_result" >>"$tmp/config.h" |
|
20907 |
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
|
1
by Ross Burton
Import upstream version 0.10 |
20908 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
20909 |
echo "$as_me: $ac_file is unchanged" >&6;} |
|
20910 |
else |
|
20911 |
rm -f $ac_file |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20912 |
mv "$tmp/config.h" $ac_file |
1
by Ross Burton
Import upstream version 0.10 |
20913 |
fi |
20914 |
else |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20915 |
echo "/* $configure_input */" |
20916 |
cat "$ac_result" |
|
1
by Ross Burton
Import upstream version 0.10 |
20917 |
fi |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20918 |
rm -f "$tmp/out12" |
1
by Ross Burton
Import upstream version 0.10 |
20919 |
# Compute $ac_file's index in $config_headers. |
20920 |
_am_stamp_count=1 |
|
20921 |
for _am_header in $config_headers :; do |
|
20922 |
case $_am_header in |
|
20923 |
$ac_file | $ac_file:* ) |
|
20924 |
break ;; |
|
20925 |
* ) |
|
20926 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
|
20927 |
esac |
|
20928 |
done |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20929 |
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
1
by Ross Burton
Import upstream version 0.10 |
20930 |
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20931 |
X$ac_file : 'X\(//\)[^/]' \| \ |
|
20932 |
X$ac_file : 'X\(//\)$' \| \ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20933 |
X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
1
by Ross Burton
Import upstream version 0.10 |
20934 |
echo X$ac_file | |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20935 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20936 |
s//\1/ |
|
20937 |
q |
|
20938 |
} |
|
20939 |
/^X\(\/\/\)[^/].*/{ |
|
20940 |
s//\1/ |
|
20941 |
q |
|
20942 |
} |
|
20943 |
/^X\(\/\/\)$/{ |
|
20944 |
s//\1/ |
|
20945 |
q |
|
20946 |
} |
|
20947 |
/^X\(\/\).*/{ |
|
20948 |
s//\1/ |
|
20949 |
q |
|
20950 |
} |
|
20951 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
|
20952 |
;; |
|
20953 |
||
20954 |
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
|
20955 |
echo "$as_me: executing $ac_file commands" >&6;} |
|
20956 |
;; |
|
20957 |
esac |
|
20958 |
||
20959 |
||
20960 |
case $ac_file$ac_mode in |
|
20961 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
|
1
by Ross Burton
Import upstream version 0.10 |
20962 |
# Strip MF so we end up with the name of the file. |
20963 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
20964 |
# Check whether this is an Automake generated Makefile or not. |
|
20965 |
# We used to match only the files named `Makefile.in', but |
|
20966 |
# some people rename them; so instead we look at the file content. |
|
20967 |
# Grep'ing the first line is not enough: some people post-process |
|
20968 |
# each Makefile.in and add a new line on top of each file to say so. |
|
20969 |
# So let's grep whole file. |
|
20970 |
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20971 |
dirpart=`$as_dirname -- "$mf" || |
1
by Ross Burton
Import upstream version 0.10 |
20972 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20973 |
X"$mf" : 'X\(//\)[^/]' \| \ |
|
20974 |
X"$mf" : 'X\(//\)$' \| \ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20975 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
1
by Ross Burton
Import upstream version 0.10 |
20976 |
echo X"$mf" | |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20977 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20978 |
s//\1/ |
|
20979 |
q |
|
20980 |
} |
|
20981 |
/^X\(\/\/\)[^/].*/{ |
|
20982 |
s//\1/ |
|
20983 |
q |
|
20984 |
} |
|
20985 |
/^X\(\/\/\)$/{ |
|
20986 |
s//\1/ |
|
20987 |
q |
|
20988 |
} |
|
20989 |
/^X\(\/\).*/{ |
|
20990 |
s//\1/ |
|
20991 |
q |
|
20992 |
} |
|
20993 |
s/.*/./; q'` |
|
1
by Ross Burton
Import upstream version 0.10 |
20994 |
else |
20995 |
continue |
|
20996 |
fi |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
20997 |
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
20998 |
# Extract the definition of DEP_FILES from the Makefile without |
|
20999 |
# running `make'. |
|
21000 |
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
|
1
by Ross Burton
Import upstream version 0.10 |
21001 |
test -z "$DEPDIR" && continue |
21002 |
# When using ansi2knr, U may be empty or an underscore; expand it |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
21003 |
U=`sed -n -e '/^U = / s///p' < "$mf"` |
21004 |
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
|
21005 |
# We invoke sed twice because it is the simplest approach to |
|
21006 |
# changing $(DEPDIR) to its actual value in the expansion. |
|
21007 |
for file in `sed -n -e ' |
|
21008 |
/^DEP_FILES = .*\\\\$/ { |
|
21009 |
s/^DEP_FILES = // |
|
21010 |
:loop |
|
21011 |
s/\\\\$// |
|
21012 |
p |
|
21013 |
n |
|
21014 |
/\\\\$/ b loop |
|
21015 |
p |
|
21016 |
} |
|
21017 |
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
|
1
by Ross Burton
Import upstream version 0.10 |
21018 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21019 |
# Make sure the directory exists. |
|
21020 |
test -f "$dirpart/$file" && continue |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
21021 |
fdir=`$as_dirname -- "$file" || |
1
by Ross Burton
Import upstream version 0.10 |
21022 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21023 |
X"$file" : 'X\(//\)[^/]' \| \ |
|
21024 |
X"$file" : 'X\(//\)$' \| \ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
21025 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
1
by Ross Burton
Import upstream version 0.10 |
21026 |
echo X"$file" | |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
21027 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21028 |
s//\1/ |
|
21029 |
q |
|
21030 |
} |
|
21031 |
/^X\(\/\/\)[^/].*/{ |
|
21032 |
s//\1/ |
|
21033 |
q |
|
21034 |
} |
|
21035 |
/^X\(\/\/\)$/{ |
|
21036 |
s//\1/ |
|
21037 |
q |
|
21038 |
} |
|
21039 |
/^X\(\/\).*/{ |
|
21040 |
s//\1/ |
|
21041 |
q |
|
21042 |
} |
|
21043 |
s/.*/./; q'` |
|
21044 |
{ as_dir=$dirpart/$fdir |
|
21045 |
case $as_dir in #( |
|
21046 |
-*) as_dir=./$as_dir;; |
|
21047 |
esac |
|
21048 |
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
|
1
by Ross Burton
Import upstream version 0.10 |
21049 |
as_dirs= |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
21050 |
while :; do |
21051 |
case $as_dir in #( |
|
21052 |
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
|
21053 |
*) as_qdir=$as_dir;; |
|
21054 |
esac |
|
21055 |
as_dirs="'$as_qdir' $as_dirs" |
|
21056 |
as_dir=`$as_dirname -- "$as_dir" || |
|
1
by Ross Burton
Import upstream version 0.10 |
21057 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21058 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
21059 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
21060 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
1
by Ross Burton
Import upstream version 0.10 |
21061 |
echo X"$as_dir" | |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
21062 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21063 |
s//\1/ |
|
21064 |
q |
|
21065 |
} |
|
21066 |
/^X\(\/\/\)[^/].*/{ |
|
21067 |
s//\1/ |
|
21068 |
q |
|
21069 |
} |
|
21070 |
/^X\(\/\/\)$/{ |
|
21071 |
s//\1/ |
|
21072 |
q |
|
21073 |
} |
|
21074 |
/^X\(\/\).*/{ |
|
21075 |
s//\1/ |
|
21076 |
q |
|
21077 |
} |
|
21078 |
s/.*/./; q'` |
|
21079 |
test -d "$as_dir" && break |
|
1
by Ross Burton
Import upstream version 0.10 |
21080 |
done |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
21081 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
21082 |
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
|
21083 |
echo "$as_me: error: cannot create directory $as_dir" >&2;} |
|
1
by Ross Burton
Import upstream version 0.10 |
21084 |
{ (exit 1); exit 1; }; }; } |
21085 |
# echo "creating $dirpart/$file" |
|
21086 |
echo '# dummy' > "$dirpart/$file" |
|
21087 |
done |
|
21088 |
done |
|
21089 |
;; |
|
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
21090 |
|
1
by Ross Burton
Import upstream version 0.10 |
21091 |
esac |
1.1.3
by Baptiste Mille-Mathias
Import upstream version 0.13 |
21092 |
done # for ac_tag |
1
by Ross Burton
Import upstream version 0.10 |
21093 |
|
21094 |
||
21095 |
{ (exit 0); exit 0; } |
|
21096 |
_ACEOF |
|
21097 |
chmod +x $CONFIG_STATUS |
|
21098 |
ac_clean_files=$ac_clean_files_save |
|
21099 |
||
21100 |
||
21101 |
# configure is writing to config.log, and then calls config.status. |
|
21102 |
# config.status does its own redirection, appending to config.log. |
|
21103 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
|
21104 |
# by configure, so config.status won't be able to write to it; its |
|
21105 |
# output is simply discarded. So we exec the FD to /dev/null, |
|
21106 |
# effectively closing config.log, so it can be properly (re)opened and |
|
21107 |
# appended to by config.status. When coming back to configure, we |
|
21108 |
# need to make the FD available again. |
|
21109 |
if test "$no_create" != yes; then |
|
21110 |
ac_cs_success=: |
|
21111 |
ac_config_status_args= |
|
21112 |
test "$silent" = yes && |
|
21113 |
ac_config_status_args="$ac_config_status_args --quiet" |
|
21114 |
exec 5>/dev/null |
|
21115 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
21116 |
exec 5>>config.log |
|
21117 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
21118 |
# would make configure fail if this is the last instruction. |
|
21119 |
$ac_cs_success || { (exit 1); exit 1; } |
|
21120 |
fi |
|
21121 |