1
by Daniel Holbach
Import upstream version 1.1.15 |
1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
|
3 |
# Generated by GNU Autoconf 2.59. |
|
4 |
# |
|
5 |
# Copyright (C) 2003 Free Software Foundation, Inc. |
|
6 |
# This configure script is free software; the Free Software Foundation |
|
7 |
# gives unlimited permission to copy, distribute and modify it. |
|
8 |
## --------------------- ## |
|
9 |
## M4sh Initialization. ## |
|
10 |
## --------------------- ## |
|
11 |
||
12 |
# Be Bourne compatible |
|
13 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
14 |
emulate sh |
|
15 |
NULLCMD=: |
|
16 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
17 |
# is contrary to our usage. Disable this feature. |
|
18 |
alias -g '${1+"$@"}'='"$@"' |
|
19 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|
20 |
set -o posix |
|
21 |
fi |
|
22 |
DUALCASE=1; export DUALCASE # for MKS sh |
|
23 |
||
24 |
# Support unset when possible. |
|
25 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
26 |
as_unset=unset |
|
27 |
else |
|
28 |
as_unset=false |
|
29 |
fi |
|
30 |
||
31 |
||
32 |
# Work around bugs in pre-3.0 UWIN ksh. |
|
33 |
$as_unset ENV MAIL MAILPATH |
|
34 |
PS1='$ ' |
|
35 |
PS2='> ' |
|
36 |
PS4='+ ' |
|
37 |
||
38 |
# NLS nuisances. |
|
39 |
for as_var in \ |
|
40 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
41 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
42 |
LC_TELEPHONE LC_TIME |
|
43 |
do |
|
44 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
45 |
eval $as_var=C; export $as_var |
|
46 |
else |
|
47 |
$as_unset $as_var |
|
48 |
fi |
|
49 |
done |
|
50 |
||
51 |
# Required to use basename. |
|
52 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
53 |
as_expr=expr |
|
54 |
else |
|
55 |
as_expr=false |
|
56 |
fi |
|
57 |
||
58 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
|
59 |
as_basename=basename |
|
60 |
else |
|
61 |
as_basename=false |
|
62 |
fi |
|
63 |
||
64 |
||
65 |
# Name of the executable. |
|
66 |
as_me=`$as_basename "$0" || |
|
67 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
68 |
X"$0" : 'X\(//\)$' \| \ |
|
69 |
X"$0" : 'X\(/\)$' \| \ |
|
70 |
. : '\(.\)' 2>/dev/null || |
|
71 |
echo X/"$0" | |
|
72 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
|
73 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
|
74 |
/^X\/\(\/\).*/{ s//\1/; q; } |
|
75 |
s/.*/./; q'` |
|
76 |
||
77 |
||
78 |
# PATH needs CR, and LINENO needs CR and PATH. |
|
79 |
# Avoid depending upon Character Ranges. |
|
80 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
81 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
82 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
83 |
as_cr_digits='0123456789' |
|
84 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
85 |
||
86 |
# The user is always right. |
|
87 |
if test "${PATH_SEPARATOR+set}" != set; then |
|
88 |
echo "#! /bin/sh" >conf$$.sh |
|
89 |
echo "exit 0" >>conf$$.sh |
|
90 |
chmod +x conf$$.sh |
|
91 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
92 |
PATH_SEPARATOR=';' |
|
93 |
else |
|
94 |
PATH_SEPARATOR=: |
|
95 |
fi |
|
96 |
rm -f conf$$.sh |
|
97 |
fi |
|
98 |
||
99 |
||
100 |
as_lineno_1=$LINENO |
|
101 |
as_lineno_2=$LINENO |
|
102 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
103 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
104 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
|
105 |
# Find who we are. Look in the path if we contain no path at all |
|
106 |
# relative or not. |
|
107 |
case $0 in |
|
108 |
*[\\/]* ) as_myself=$0 ;; |
|
109 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
110 |
for as_dir in $PATH |
|
111 |
do |
|
112 |
IFS=$as_save_IFS |
|
113 |
test -z "$as_dir" && as_dir=. |
|
114 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
115 |
done |
|
116 |
||
117 |
;; |
|
118 |
esac |
|
119 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
|
120 |
# in which case we are not to be found in the path. |
|
121 |
if test "x$as_myself" = x; then |
|
122 |
as_myself=$0 |
|
123 |
fi |
|
124 |
if test ! -f "$as_myself"; then |
|
125 |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
|
126 |
{ (exit 1); exit 1; }; } |
|
127 |
fi |
|
128 |
case $CONFIG_SHELL in |
|
129 |
'') |
|
130 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
131 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
132 |
do |
|
133 |
IFS=$as_save_IFS |
|
134 |
test -z "$as_dir" && as_dir=. |
|
135 |
for as_base in sh bash ksh sh5; do |
|
136 |
case $as_dir in |
|
137 |
/*) |
|
138 |
if ("$as_dir/$as_base" -c ' |
|
139 |
as_lineno_1=$LINENO |
|
140 |
as_lineno_2=$LINENO |
|
141 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
142 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
143 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
|
144 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
|
145 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
|
146 |
CONFIG_SHELL=$as_dir/$as_base |
|
147 |
export CONFIG_SHELL |
|
148 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
|
149 |
fi;; |
|
150 |
esac |
|
151 |
done |
|
152 |
done |
|
153 |
;; |
|
154 |
esac |
|
155 |
||
156 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
157 |
# uniformly replaced by the line number. The first 'sed' inserts a |
|
158 |
# line-number line before each line; the second 'sed' does the real |
|
159 |
# work. The second script uses 'N' to pair each line-number line |
|
160 |
# with the numbered line, and appends trailing '-' during |
|
161 |
# substitution so that $LINENO is not a special case at line end. |
|
162 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
163 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
|
164 |
sed '=' <$as_myself | |
|
165 |
sed ' |
|
166 |
N |
|
167 |
s,$,-, |
|
168 |
: loop |
|
169 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
|
170 |
t loop |
|
171 |
s,-$,, |
|
172 |
s,^['$as_cr_digits']*\n,, |
|
173 |
' >$as_me.lineno && |
|
174 |
chmod +x $as_me.lineno || |
|
175 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
|
176 |
{ (exit 1); exit 1; }; } |
|
177 |
||
178 |
# Don't try to exec as it changes $[0], causing all sort of problems |
|
179 |
# (the dirname of $[0] is not the place where we might find the |
|
180 |
# original and so on. Autoconf is especially sensible to this). |
|
181 |
. ./$as_me.lineno |
|
182 |
# Exit status is that of the last command. |
|
183 |
exit |
|
184 |
} |
|
185 |
||
186 |
||
187 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
|
188 |
*c*,-n*) ECHO_N= ECHO_C=' |
|
189 |
' ECHO_T=' ' ;; |
|
190 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
|
191 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
|
192 |
esac |
|
193 |
||
194 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
195 |
as_expr=expr |
|
196 |
else |
|
197 |
as_expr=false |
|
198 |
fi |
|
199 |
||
200 |
rm -f conf$$ conf$$.exe conf$$.file |
|
201 |
echo >conf$$.file |
|
202 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
203 |
# We could just check for DJGPP; but this test a) works b) is more generic |
|
204 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
|
205 |
if test -f conf$$.exe; then |
|
206 |
# Don't use ln at all; we don't have any links |
|
207 |
as_ln_s='cp -p' |
|
208 |
else |
|
209 |
as_ln_s='ln -s' |
|
210 |
fi |
|
211 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
212 |
as_ln_s=ln |
|
213 |
else |
|
214 |
as_ln_s='cp -p' |
|
215 |
fi |
|
216 |
rm -f conf$$ conf$$.exe conf$$.file |
|
217 |
||
218 |
if mkdir -p . 2>/dev/null; then |
|
219 |
as_mkdir_p=: |
|
220 |
else |
|
221 |
test -d ./-p && rmdir ./-p |
|
222 |
as_mkdir_p=false |
|
223 |
fi |
|
224 |
||
225 |
as_executable_p="test -f" |
|
226 |
||
227 |
# Sed expression to map a string onto a valid CPP name. |
|
228 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
229 |
||
230 |
# Sed expression to map a string onto a valid variable name. |
|
231 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
232 |
||
233 |
||
234 |
# IFS |
|
235 |
# We need space, tab and new line, in precisely that order. |
|
236 |
as_nl=' |
|
237 |
' |
|
238 |
IFS=" $as_nl" |
|
239 |
||
240 |
# CDPATH. |
|
241 |
$as_unset CDPATH |
|
242 |
||
243 |
||
244 |
||
245 |
# Check that we are running under the correct shell. |
|
246 |
SHELL=${CONFIG_SHELL-/bin/sh} |
|
247 |
||
248 |
case X$ECHO in |
|
249 |
X*--fallback-echo) |
|
250 |
# Remove one level of quotation (which was required for Make). |
|
251 |
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
|
252 |
;; |
|
253 |
esac |
|
254 |
||
255 |
echo=${ECHO-echo} |
|
256 |
if test "X$1" = X--no-reexec; then |
|
257 |
# Discard the --no-reexec flag, and continue. |
|
258 |
shift |
|
259 |
elif test "X$1" = X--fallback-echo; then |
|
260 |
# Avoid inline document here, it may be left over |
|
261 |
: |
|
262 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
|
263 |
# Yippee, $echo works! |
|
264 |
: |
|
265 |
else |
|
266 |
# Restart under the correct shell. |
|
267 |
exec $SHELL "$0" --no-reexec ${1+"$@"} |
|
268 |
fi |
|
269 |
||
270 |
if test "X$1" = X--fallback-echo; then |
|
271 |
# used as fallback echo |
|
272 |
shift |
|
273 |
cat <<EOF |
|
274 |
$* |
|
275 |
EOF |
|
276 |
exit 0 |
|
277 |
fi |
|
278 |
||
279 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
|
280 |
# if CDPATH is set. |
|
281 |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
282 |
||
283 |
if test -z "$ECHO"; then |
|
284 |
if test "X${echo_test_string+set}" != Xset; then |
|
285 |
# find a string as large as possible, as long as the shell can cope with it |
|
286 |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
|
287 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
|
288 |
if (echo_test_string="`eval $cmd`") 2>/dev/null && |
|
289 |
echo_test_string="`eval $cmd`" && |
|
290 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
|
291 |
then |
|
292 |
break |
|
293 |
fi |
|
294 |
done |
|
295 |
fi |
|
296 |
||
297 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
298 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
299 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
300 |
: |
|
301 |
else |
|
302 |
# The Solaris, AIX, and Digital Unix default echo programs unquote |
|
303 |
# backslashes. This makes it impossible to quote backslashes using |
|
304 |
# echo "$something" | sed 's/\\/\\\\/g' |
|
305 |
# |
|
306 |
# So, first we look for a working echo in the user's PATH. |
|
307 |
||
308 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
309 |
for dir in $PATH /usr/ucb; do |
|
310 |
IFS="$lt_save_ifs" |
|
311 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
|
312 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
|
313 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
|
314 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
315 |
echo="$dir/echo" |
|
316 |
break |
|
317 |
fi |
|
318 |
done |
|
319 |
IFS="$lt_save_ifs" |
|
320 |
||
321 |
if test "X$echo" = Xecho; then |
|
322 |
# We didn't find a better echo, so look for alternatives. |
|
323 |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
|
324 |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
|
325 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
326 |
# This shell has a builtin print -r that does the trick. |
|
327 |
echo='print -r' |
|
328 |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
|
329 |
test "X$CONFIG_SHELL" != X/bin/ksh; then |
|
330 |
# If we have ksh, try running configure again with it. |
|
331 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|
332 |
export ORIGINAL_CONFIG_SHELL |
|
333 |
CONFIG_SHELL=/bin/ksh |
|
334 |
export CONFIG_SHELL |
|
335 |
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
|
336 |
else |
|
337 |
# Try using printf. |
|
338 |
echo='printf %s\n' |
|
339 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
340 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
341 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
342 |
# Cool, printf works |
|
343 |
: |
|
344 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
345 |
test "X$echo_testing_string" = 'X\t' && |
|
346 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
347 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
348 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
|
349 |
export CONFIG_SHELL |
|
350 |
SHELL="$CONFIG_SHELL" |
|
351 |
export SHELL |
|
352 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
|
353 |
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
354 |
test "X$echo_testing_string" = 'X\t' && |
|
355 |
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
356 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
357 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
|
358 |
else |
|
359 |
# maybe with a smaller string... |
|
360 |
prev=: |
|
361 |
||
362 |
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
|
363 |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
|
364 |
then |
|
365 |
break |
|
366 |
fi |
|
367 |
prev="$cmd" |
|
368 |
done |
|
369 |
||
370 |
if test "$prev" != 'sed 50q "$0"'; then |
|
371 |
echo_test_string=`eval $prev` |
|
372 |
export echo_test_string |
|
373 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
|
374 |
else |
|
375 |
# Oops. We lost completely, so just stick with echo. |
|
376 |
echo=echo |
|
377 |
fi |
|
378 |
fi |
|
379 |
fi |
|
380 |
fi |
|
381 |
fi |
|
382 |
fi |
|
383 |
||
384 |
# Copy echo and quote the copy suitably for passing to libtool from |
|
385 |
# the Makefile, instead of quoting the original, which is used later. |
|
386 |
ECHO=$echo |
|
387 |
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
|
388 |
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
|
389 |
fi |
|
390 |
||
391 |
||
392 |
||
393 |
||
394 |
tagnames=${tagnames+${tagnames},}CXX |
|
395 |
||
396 |
tagnames=${tagnames+${tagnames},}F77 |
|
397 |
||
398 |
# Name of the host. |
|
399 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
|
400 |
# so uname gets run too. |
|
401 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|
402 |
||
403 |
exec 6>&1 |
|
404 |
||
405 |
# |
|
406 |
# Initializations. |
|
407 |
# |
|
408 |
ac_default_prefix=/usr/local |
|
409 |
ac_config_libobj_dir=. |
|
410 |
cross_compiling=no |
|
411 |
subdirs= |
|
412 |
MFLAGS= |
|
413 |
MAKEFLAGS= |
|
414 |
SHELL=${CONFIG_SHELL-/bin/sh} |
|
415 |
||
416 |
# Maximum number of lines to put in a shell here document. |
|
417 |
# This variable seems obsolete. It should probably be removed, and |
|
418 |
# only ac_max_sed_lines should be used. |
|
419 |
: ${ac_max_here_lines=38} |
|
420 |
||
421 |
# Identity of this package. |
|
422 |
PACKAGE_NAME= |
|
423 |
PACKAGE_TARNAME= |
|
424 |
PACKAGE_VERSION= |
|
425 |
PACKAGE_STRING= |
|
426 |
PACKAGE_BUGREPORT= |
|
427 |
||
428 |
ac_unique_file="libxslt/xslt.c" |
|
429 |
# Factoring default headers for most tests. |
|
430 |
ac_includes_default="\ |
|
431 |
#include <stdio.h> |
|
432 |
#if HAVE_SYS_TYPES_H |
|
433 |
# include <sys/types.h> |
|
434 |
#endif |
|
435 |
#if HAVE_SYS_STAT_H |
|
436 |
# include <sys/stat.h> |
|
437 |
#endif |
|
438 |
#if STDC_HEADERS |
|
439 |
# include <stdlib.h> |
|
440 |
# include <stddef.h> |
|
441 |
#else |
|
442 |
# if HAVE_STDLIB_H |
|
443 |
# include <stdlib.h> |
|
444 |
# endif |
|
445 |
#endif |
|
446 |
#if HAVE_STRING_H |
|
447 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
|
448 |
# include <memory.h> |
|
449 |
# endif |
|
450 |
# include <string.h> |
|
451 |
#endif |
|
452 |
#if HAVE_STRINGS_H |
|
453 |
# include <strings.h> |
|
454 |
#endif |
|
455 |
#if HAVE_INTTYPES_H |
|
456 |
# include <inttypes.h> |
|
457 |
#else |
|
458 |
# if HAVE_STDINT_H |
|
459 |
# include <stdint.h> |
|
460 |
# endif |
|
461 |
#endif |
|
462 |
#if HAVE_UNISTD_H |
|
463 |
# include <unistd.h> |
|
464 |
#endif" |
|
465 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
466 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBXSLT_MAJOR_VERSION LIBXSLT_MINOR_VERSION LIBXSLT_MICRO_VERSION LIBXSLT_VERSION LIBXSLT_VERSION_INFO LIBXSLT_VERSION_NUMBER LIBXSLT_VERSION_EXTRA LIBXSLT_MAJOR_MINOR_VERSION LIBEXSLT_MAJOR_VERSION LIBEXSLT_MINOR_VERSION LIBEXSLT_MICRO_VERSION LIBEXSLT_VERSION LIBEXSLT_VERSION_INFO LIBEXSLT_VERSION_NUMBER LIBEXSLT_VERSION_EXTRA INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HTML_DIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP RM MV TAR EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WITH_TRIO PERL WITH_PERL_TRUE WITH_PERL_FALSE PYTHON WITH_PYTHON_TRUE WITH_PYTHON_FALSE pythondir PYTHON_SUBDIR LIBGCRYPT_CONFIG WITH_CRYPTO LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS STATIC_BINARIES WITH_XSLT_DEBUG WITH_MEM_DEBUG WITH_DEBUGGER_TRUE WITH_DEBUGGER_FALSE WITH_DEBUGGER LIBXML_SRC LIBXML_REQUIRED_VERSION WITH_MODULES WITH_MODULES_TRUE WITH_MODULES_FALSE LIBXSLT_DEFAULT_PLUGINS_PATH WIN32_EXTRA_LIBADD WIN32_EXTRA_LDFLAGS XSLTPROCDV PYTHONSODV XML_CONFIG LIBXML_LIBS LIBXML_CFLAGS PYTHON_VERSION PYTHON_INCLUDES PYTHON_SITE_PACKAGES XSLT_LIBDIR XSLT_INCLUDEDIR XSLT_LIBS EXSLT_LIBDIR EXSLT_INCLUDEDIR EXSLT_LIBS EXTRA_LIBS M_LIBS RELDATE LIBOBJS LTLIBOBJS' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
467 |
ac_subst_files='' |
468 |
||
469 |
# Initialize some variables set by options. |
|
470 |
ac_init_help= |
|
471 |
ac_init_version=false |
|
472 |
# The variables have the same names as the options, with |
|
473 |
# dashes changed to underlines. |
|
474 |
cache_file=/dev/null |
|
475 |
exec_prefix=NONE |
|
476 |
no_create= |
|
477 |
no_recursion= |
|
478 |
prefix=NONE |
|
479 |
program_prefix=NONE |
|
480 |
program_suffix=NONE |
|
481 |
program_transform_name=s,x,x, |
|
482 |
silent= |
|
483 |
site= |
|
484 |
srcdir= |
|
485 |
verbose= |
|
486 |
x_includes=NONE |
|
487 |
x_libraries=NONE |
|
488 |
||
489 |
# Installation directory options. |
|
490 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
|
491 |
# and all the variables that are supposed to be based on exec_prefix |
|
492 |
# by default will actually change. |
|
493 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
|
494 |
bindir='${exec_prefix}/bin' |
|
495 |
sbindir='${exec_prefix}/sbin' |
|
496 |
libexecdir='${exec_prefix}/libexec' |
|
497 |
datadir='${prefix}/share' |
|
498 |
sysconfdir='${prefix}/etc' |
|
499 |
sharedstatedir='${prefix}/com' |
|
500 |
localstatedir='${prefix}/var' |
|
501 |
libdir='${exec_prefix}/lib' |
|
502 |
includedir='${prefix}/include' |
|
503 |
oldincludedir='/usr/include' |
|
504 |
infodir='${prefix}/info' |
|
505 |
mandir='${prefix}/man' |
|
506 |
||
507 |
ac_prev= |
|
508 |
for ac_option |
|
509 |
do |
|
510 |
# If the previous option needs an argument, assign it. |
|
511 |
if test -n "$ac_prev"; then |
|
512 |
eval "$ac_prev=\$ac_option" |
|
513 |
ac_prev= |
|
514 |
continue |
|
515 |
fi |
|
516 |
||
517 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
|
518 |
||
519 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
|
520 |
||
521 |
case $ac_option in |
|
522 |
||
523 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
|
524 |
ac_prev=bindir ;; |
|
525 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|
526 |
bindir=$ac_optarg ;; |
|
527 |
||
528 |
-build | --build | --buil | --bui | --bu) |
|
529 |
ac_prev=build_alias ;; |
|
530 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|
531 |
build_alias=$ac_optarg ;; |
|
532 |
||
533 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
534 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
535 |
ac_prev=cache_file ;; |
|
536 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
537 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
538 |
cache_file=$ac_optarg ;; |
|
539 |
||
540 |
--config-cache | -C) |
|
541 |
cache_file=config.cache ;; |
|
542 |
||
543 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
|
544 |
ac_prev=datadir ;; |
|
545 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
|
546 |
| --da=*) |
|
547 |
datadir=$ac_optarg ;; |
|
548 |
||
549 |
-disable-* | --disable-*) |
|
550 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|
551 |
# Reject names that are not valid shell variable names. |
|
552 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
|
553 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
|
554 |
{ (exit 1); exit 1; }; } |
|
555 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
|
556 |
eval "enable_$ac_feature=no" ;; |
|
557 |
||
558 |
-enable-* | --enable-*) |
|
559 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|
560 |
# Reject names that are not valid shell variable names. |
|
561 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
|
562 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
|
563 |
{ (exit 1); exit 1; }; } |
|
564 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
|
565 |
case $ac_option in |
|
566 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
|
567 |
*) ac_optarg=yes ;; |
|
568 |
esac |
|
569 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
|
570 |
||
571 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
572 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
573 |
| --exec | --exe | --ex) |
|
574 |
ac_prev=exec_prefix ;; |
|
575 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
576 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
577 |
| --exec=* | --exe=* | --ex=*) |
|
578 |
exec_prefix=$ac_optarg ;; |
|
579 |
||
580 |
-gas | --gas | --ga | --g) |
|
581 |
# Obsolete; use --with-gas. |
|
582 |
with_gas=yes ;; |
|
583 |
||
584 |
-help | --help | --hel | --he | -h) |
|
585 |
ac_init_help=long ;; |
|
586 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|
587 |
ac_init_help=recursive ;; |
|
588 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|
589 |
ac_init_help=short ;; |
|
590 |
||
591 |
-host | --host | --hos | --ho) |
|
592 |
ac_prev=host_alias ;; |
|
593 |
-host=* | --host=* | --hos=* | --ho=*) |
|
594 |
host_alias=$ac_optarg ;; |
|
595 |
||
596 |
-includedir | --includedir | --includedi | --included | --include \ |
|
597 |
| --includ | --inclu | --incl | --inc) |
|
598 |
ac_prev=includedir ;; |
|
599 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|
600 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
|
601 |
includedir=$ac_optarg ;; |
|
602 |
||
603 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
|
604 |
ac_prev=infodir ;; |
|
605 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|
606 |
infodir=$ac_optarg ;; |
|
607 |
||
608 |
-libdir | --libdir | --libdi | --libd) |
|
609 |
ac_prev=libdir ;; |
|
610 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
|
611 |
libdir=$ac_optarg ;; |
|
612 |
||
613 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|
614 |
| --libexe | --libex | --libe) |
|
615 |
ac_prev=libexecdir ;; |
|
616 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|
617 |
| --libexe=* | --libex=* | --libe=*) |
|
618 |
libexecdir=$ac_optarg ;; |
|
619 |
||
620 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
|
621 |
| --localstate | --localstat | --localsta | --localst \ |
|
622 |
| --locals | --local | --loca | --loc | --lo) |
|
623 |
ac_prev=localstatedir ;; |
|
624 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|
625 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
|
626 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
|
627 |
localstatedir=$ac_optarg ;; |
|
628 |
||
629 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|
630 |
ac_prev=mandir ;; |
|
631 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|
632 |
mandir=$ac_optarg ;; |
|
633 |
||
634 |
-nfp | --nfp | --nf) |
|
635 |
# Obsolete; use --without-fp. |
|
636 |
with_fp=no ;; |
|
637 |
||
638 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
639 |
| --no-cr | --no-c | -n) |
|
640 |
no_create=yes ;; |
|
641 |
||
642 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
643 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
644 |
no_recursion=yes ;; |
|
645 |
||
646 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|
647 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|
648 |
| --oldin | --oldi | --old | --ol | --o) |
|
649 |
ac_prev=oldincludedir ;; |
|
650 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|
651 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|
652 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|
653 |
oldincludedir=$ac_optarg ;; |
|
654 |
||
655 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
656 |
ac_prev=prefix ;; |
|
657 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
658 |
prefix=$ac_optarg ;; |
|
659 |
||
660 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
661 |
| --program-pre | --program-pr | --program-p) |
|
662 |
ac_prev=program_prefix ;; |
|
663 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
664 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
665 |
program_prefix=$ac_optarg ;; |
|
666 |
||
667 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
668 |
| --program-suf | --program-su | --program-s) |
|
669 |
ac_prev=program_suffix ;; |
|
670 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
671 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
672 |
program_suffix=$ac_optarg ;; |
|
673 |
||
674 |
-program-transform-name | --program-transform-name \ |
|
675 |
| --program-transform-nam | --program-transform-na \ |
|
676 |
| --program-transform-n | --program-transform- \ |
|
677 |
| --program-transform | --program-transfor \ |
|
678 |
| --program-transfo | --program-transf \ |
|
679 |
| --program-trans | --program-tran \ |
|
680 |
| --progr-tra | --program-tr | --program-t) |
|
681 |
ac_prev=program_transform_name ;; |
|
682 |
-program-transform-name=* | --program-transform-name=* \ |
|
683 |
| --program-transform-nam=* | --program-transform-na=* \ |
|
684 |
| --program-transform-n=* | --program-transform-=* \ |
|
685 |
| --program-transform=* | --program-transfor=* \ |
|
686 |
| --program-transfo=* | --program-transf=* \ |
|
687 |
| --program-trans=* | --program-tran=* \ |
|
688 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
|
689 |
program_transform_name=$ac_optarg ;; |
|
690 |
||
691 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
692 |
| -silent | --silent | --silen | --sile | --sil) |
|
693 |
silent=yes ;; |
|
694 |
||
695 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|
696 |
ac_prev=sbindir ;; |
|
697 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|
698 |
| --sbi=* | --sb=*) |
|
699 |
sbindir=$ac_optarg ;; |
|
700 |
||
701 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|
702 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|
703 |
| --sharedst | --shareds | --shared | --share | --shar \ |
|
704 |
| --sha | --sh) |
|
705 |
ac_prev=sharedstatedir ;; |
|
706 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|
707 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|
708 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|
709 |
| --sha=* | --sh=*) |
|
710 |
sharedstatedir=$ac_optarg ;; |
|
711 |
||
712 |
-site | --site | --sit) |
|
713 |
ac_prev=site ;; |
|
714 |
-site=* | --site=* | --sit=*) |
|
715 |
site=$ac_optarg ;; |
|
716 |
||
717 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
718 |
ac_prev=srcdir ;; |
|
719 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
720 |
srcdir=$ac_optarg ;; |
|
721 |
||
722 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|
723 |
| --syscon | --sysco | --sysc | --sys | --sy) |
|
724 |
ac_prev=sysconfdir ;; |
|
725 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|
726 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|
727 |
sysconfdir=$ac_optarg ;; |
|
728 |
||
729 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
|
730 |
ac_prev=target_alias ;; |
|
731 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|
732 |
target_alias=$ac_optarg ;; |
|
733 |
||
734 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
735 |
verbose=yes ;; |
|
736 |
||
737 |
-version | --version | --versio | --versi | --vers | -V) |
|
738 |
ac_init_version=: ;; |
|
739 |
||
740 |
-with-* | --with-*) |
|
741 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|
742 |
# Reject names that are not valid shell variable names. |
|
743 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
|
744 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
|
745 |
{ (exit 1); exit 1; }; } |
|
746 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
|
747 |
case $ac_option in |
|
748 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
|
749 |
*) ac_optarg=yes ;; |
|
750 |
esac |
|
751 |
eval "with_$ac_package='$ac_optarg'" ;; |
|
752 |
||
753 |
-without-* | --without-*) |
|
754 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|
755 |
# Reject names that are not valid shell variable names. |
|
756 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
|
757 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
|
758 |
{ (exit 1); exit 1; }; } |
|
759 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
|
760 |
eval "with_$ac_package=no" ;; |
|
761 |
||
762 |
--x) |
|
763 |
# Obsolete; use --with-x. |
|
764 |
with_x=yes ;; |
|
765 |
||
766 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
767 |
| --x-incl | --x-inc | --x-in | --x-i) |
|
768 |
ac_prev=x_includes ;; |
|
769 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
770 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
771 |
x_includes=$ac_optarg ;; |
|
772 |
||
773 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
774 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
775 |
ac_prev=x_libraries ;; |
|
776 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
777 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
778 |
x_libraries=$ac_optarg ;; |
|
779 |
||
780 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
|
781 |
Try \`$0 --help' for more information." >&2 |
|
782 |
{ (exit 1); exit 1; }; } |
|
783 |
;; |
|
784 |
||
785 |
*=*) |
|
786 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
787 |
# Reject names that are not valid shell variable names. |
|
788 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
|
789 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
|
790 |
{ (exit 1); exit 1; }; } |
|
791 |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
|
792 |
eval "$ac_envvar='$ac_optarg'" |
|
793 |
export $ac_envvar ;; |
|
794 |
||
795 |
*) |
|
796 |
# FIXME: should be removed in autoconf 3.0. |
|
797 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|
798 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
799 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|
800 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
|
801 |
;; |
|
802 |
||
803 |
esac |
|
804 |
done |
|
805 |
||
806 |
if test -n "$ac_prev"; then |
|
807 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|
808 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
|
809 |
{ (exit 1); exit 1; }; } |
|
810 |
fi |
|
811 |
||
812 |
# Be sure to have absolute paths. |
|
813 |
for ac_var in exec_prefix prefix |
|
814 |
do |
|
815 |
eval ac_val=$`echo $ac_var` |
|
816 |
case $ac_val in |
|
817 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
|
818 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
|
819 |
{ (exit 1); exit 1; }; };; |
|
820 |
esac |
|
821 |
done |
|
822 |
||
823 |
# Be sure to have absolute paths. |
|
824 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
|
825 |
localstatedir libdir includedir oldincludedir infodir mandir |
|
826 |
do |
|
827 |
eval ac_val=$`echo $ac_var` |
|
828 |
case $ac_val in |
|
829 |
[\\/$]* | ?:[\\/]* ) ;; |
|
830 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
|
831 |
{ (exit 1); exit 1; }; };; |
|
832 |
esac |
|
833 |
done |
|
834 |
||
835 |
# There might be people who depend on the old broken behavior: `$host' |
|
836 |
# used to hold the argument of --host etc. |
|
837 |
# FIXME: To remove some day. |
|
838 |
build=$build_alias |
|
839 |
host=$host_alias |
|
840 |
target=$target_alias |
|
841 |
||
842 |
# FIXME: To remove some day. |
|
843 |
if test "x$host_alias" != x; then |
|
844 |
if test "x$build_alias" = x; then |
|
845 |
cross_compiling=maybe |
|
846 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
|
847 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
|
848 |
elif test "x$build_alias" != "x$host_alias"; then |
|
849 |
cross_compiling=yes |
|
850 |
fi |
|
851 |
fi |
|
852 |
||
853 |
ac_tool_prefix= |
|
854 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
855 |
||
856 |
test "$silent" = yes && exec 6>/dev/null |
|
857 |
||
858 |
||
859 |
# Find the source files, if location was not specified. |
|
860 |
if test -z "$srcdir"; then |
|
861 |
ac_srcdir_defaulted=yes |
|
862 |
# Try the directory containing this script, then its parent. |
|
863 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
|
864 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
865 |
X"$0" : 'X\(//\)[^/]' \| \ |
|
866 |
X"$0" : 'X\(//\)$' \| \ |
|
867 |
X"$0" : 'X\(/\)' \| \ |
|
868 |
. : '\(.\)' 2>/dev/null || |
|
869 |
echo X"$0" | |
|
870 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
871 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
872 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
873 |
/^X\(\/\).*/{ s//\1/; q; } |
|
874 |
s/.*/./; q'` |
|
875 |
srcdir=$ac_confdir |
|
876 |
if test ! -r $srcdir/$ac_unique_file; then |
|
877 |
srcdir=.. |
|
878 |
fi |
|
879 |
else |
|
880 |
ac_srcdir_defaulted=no |
|
881 |
fi |
|
882 |
if test ! -r $srcdir/$ac_unique_file; then |
|
883 |
if test "$ac_srcdir_defaulted" = yes; then |
|
884 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
|
885 |
{ (exit 1); exit 1; }; } |
|
886 |
else |
|
887 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
|
888 |
{ (exit 1); exit 1; }; } |
|
889 |
fi |
|
890 |
fi |
|
891 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
|
892 |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
|
893 |
{ (exit 1); exit 1; }; } |
|
894 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
|
895 |
ac_env_build_alias_set=${build_alias+set} |
|
896 |
ac_env_build_alias_value=$build_alias |
|
897 |
ac_cv_env_build_alias_set=${build_alias+set} |
|
898 |
ac_cv_env_build_alias_value=$build_alias |
|
899 |
ac_env_host_alias_set=${host_alias+set} |
|
900 |
ac_env_host_alias_value=$host_alias |
|
901 |
ac_cv_env_host_alias_set=${host_alias+set} |
|
902 |
ac_cv_env_host_alias_value=$host_alias |
|
903 |
ac_env_target_alias_set=${target_alias+set} |
|
904 |
ac_env_target_alias_value=$target_alias |
|
905 |
ac_cv_env_target_alias_set=${target_alias+set} |
|
906 |
ac_cv_env_target_alias_value=$target_alias |
|
907 |
ac_env_CC_set=${CC+set} |
|
908 |
ac_env_CC_value=$CC |
|
909 |
ac_cv_env_CC_set=${CC+set} |
|
910 |
ac_cv_env_CC_value=$CC |
|
911 |
ac_env_CFLAGS_set=${CFLAGS+set} |
|
912 |
ac_env_CFLAGS_value=$CFLAGS |
|
913 |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
|
914 |
ac_cv_env_CFLAGS_value=$CFLAGS |
|
915 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
|
916 |
ac_env_LDFLAGS_value=$LDFLAGS |
|
917 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
|
918 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
|
919 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
|
920 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
|
921 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
|
922 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
|
923 |
ac_env_CPP_set=${CPP+set} |
|
924 |
ac_env_CPP_value=$CPP |
|
925 |
ac_cv_env_CPP_set=${CPP+set} |
|
926 |
ac_cv_env_CPP_value=$CPP |
|
927 |
ac_env_CXX_set=${CXX+set} |
|
928 |
ac_env_CXX_value=$CXX |
|
929 |
ac_cv_env_CXX_set=${CXX+set} |
|
930 |
ac_cv_env_CXX_value=$CXX |
|
931 |
ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
|
932 |
ac_env_CXXFLAGS_value=$CXXFLAGS |
|
933 |
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
|
934 |
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
|
935 |
ac_env_CXXCPP_set=${CXXCPP+set} |
|
936 |
ac_env_CXXCPP_value=$CXXCPP |
|
937 |
ac_cv_env_CXXCPP_set=${CXXCPP+set} |
|
938 |
ac_cv_env_CXXCPP_value=$CXXCPP |
|
939 |
ac_env_F77_set=${F77+set} |
|
940 |
ac_env_F77_value=$F77 |
|
941 |
ac_cv_env_F77_set=${F77+set} |
|
942 |
ac_cv_env_F77_value=$F77 |
|
943 |
ac_env_FFLAGS_set=${FFLAGS+set} |
|
944 |
ac_env_FFLAGS_value=$FFLAGS |
|
945 |
ac_cv_env_FFLAGS_set=${FFLAGS+set} |
|
946 |
ac_cv_env_FFLAGS_value=$FFLAGS |
|
947 |
||
948 |
# |
|
949 |
# Report the --help message. |
|
950 |
# |
|
951 |
if test "$ac_init_help" = "long"; then |
|
952 |
# Omit some internal or obsolete options to make the list less imposing. |
|
953 |
# This message is too long to be a string in the A/UX 3.1 sh. |
|
954 |
cat <<_ACEOF |
|
955 |
\`configure' configures this package to adapt to many kinds of systems. |
|
956 |
||
957 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
|
958 |
||
959 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
960 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
|
961 |
||
962 |
Defaults for the options are specified in brackets. |
|
963 |
||
964 |
Configuration: |
|
965 |
-h, --help display this help and exit |
|
966 |
--help=short display options specific to this package |
|
967 |
--help=recursive display the short help of all the included packages |
|
968 |
-V, --version display version information and exit |
|
969 |
-q, --quiet, --silent do not print \`checking...' messages |
|
970 |
--cache-file=FILE cache test results in FILE [disabled] |
|
971 |
-C, --config-cache alias for \`--cache-file=config.cache' |
|
972 |
-n, --no-create do not create output files |
|
973 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
974 |
||
975 |
_ACEOF |
|
976 |
||
977 |
cat <<_ACEOF |
|
978 |
Installation directories: |
|
979 |
--prefix=PREFIX install architecture-independent files in PREFIX |
|
980 |
[$ac_default_prefix] |
|
981 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
982 |
[PREFIX] |
|
983 |
||
984 |
By default, \`make install' will install all the files in |
|
985 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
986 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
987 |
for instance \`--prefix=\$HOME'. |
|
988 |
||
989 |
For better control, use the options below. |
|
990 |
||
991 |
Fine tuning of the installation directories: |
|
992 |
--bindir=DIR user executables [EPREFIX/bin] |
|
993 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
|
994 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
|
995 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
|
996 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
997 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
998 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
999 |
--libdir=DIR object code libraries [EPREFIX/lib] |
|
1000 |
--includedir=DIR C header files [PREFIX/include] |
|
1001 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
1002 |
--infodir=DIR info documentation [PREFIX/info] |
|
1003 |
--mandir=DIR man documentation [PREFIX/man] |
|
1004 |
_ACEOF |
|
1005 |
||
1006 |
cat <<\_ACEOF |
|
1007 |
||
1008 |
Program names: |
|
1009 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
|
1010 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
|
1011 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
|
1012 |
||
1013 |
System types: |
|
1014 |
--build=BUILD configure for building on BUILD [guessed] |
|
1015 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
1016 |
_ACEOF |
|
1017 |
fi |
|
1018 |
||
1019 |
if test -n "$ac_init_help"; then |
|
1020 |
||
1021 |
cat <<\_ACEOF |
|
1022 |
||
1023 |
Optional Features: |
|
1024 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
1025 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
1026 |
--enable-maintainer-mode enable make rules and dependencies not useful |
1027 |
(and sometimes confusing) to the casual installer |
|
1
by Daniel Holbach
Import upstream version 1.1.15 |
1028 |
--disable-dependency-tracking speeds up one-time build |
1029 |
--enable-dependency-tracking do not reject slow dependency extractors |
|
1030 |
--enable-shared[=PKGS] |
|
1031 |
build shared libraries [default=yes] |
|
1032 |
--enable-static[=PKGS] |
|
1033 |
build static libraries [default=yes] |
|
1034 |
--enable-fast-install[=PKGS] |
|
1035 |
optimize for fast installation [default=yes] |
|
1036 |
--disable-libtool-lock avoid locking (might break parallel builds) |
|
1037 |
||
1038 |
Optional Packages: |
|
1039 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
1040 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
1041 |
--with-html-dir=PATH path to installed docs |
|
1042 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
|
1043 |
--with-pic try to use only PIC/non-PIC objects [default=use |
|
1044 |
both] |
|
1045 |
--with-tags[=TAGS] |
|
1046 |
include additional configurations [automatic] |
|
1047 |
--with-python=DIR Build Python bindings if found |
|
1048 |
--with-crypto Add crypto support to exslt (on) |
|
1049 |
--with-debug Add the debugging code (on) |
|
1050 |
--with-mem-debug Add the memory debugging module (off) |
|
1051 |
--with-debugger Add the debugging support (on) |
|
1052 |
--with-libxml-prefix=PFX Specify location of libxml config |
|
1053 |
--with-libxml-include-prefix=PFX Specify location of libxml headers |
|
1054 |
--with-libxml-libs-prefix=PFX Specify location of libxml libs |
|
1055 |
--with-libxml-src=DIR For libxml thats not installed yet (sets all three above) |
|
1056 |
--with-plugins Add plugin extension support (on) |
|
1057 |
||
1058 |
Some influential environment variables: |
|
1059 |
CC C compiler command |
|
1060 |
CFLAGS C compiler flags |
|
1061 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
1062 |
nonstandard directory <lib dir> |
|
1063 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
|
1064 |
headers in a nonstandard directory <include dir> |
|
1065 |
CPP C preprocessor |
|
1066 |
CXX C++ compiler command |
|
1067 |
CXXFLAGS C++ compiler flags |
|
1068 |
CXXCPP C++ preprocessor |
|
1069 |
F77 Fortran 77 compiler command |
|
1070 |
FFLAGS Fortran 77 compiler flags |
|
1071 |
||
1072 |
Use these variables to override the choices made by `configure' or to help |
|
1073 |
it to find libraries and programs with nonstandard names/locations. |
|
1074 |
||
1075 |
_ACEOF |
|
1076 |
fi |
|
1077 |
||
1078 |
if test "$ac_init_help" = "recursive"; then |
|
1079 |
# If there are subdirs, report their specific --help. |
|
1080 |
ac_popdir=`pwd` |
|
1081 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
1082 |
test -d $ac_dir || continue |
|
1083 |
ac_builddir=. |
|
1084 |
||
1085 |
if test "$ac_dir" != .; then |
|
1086 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
1087 |
# A "../" for each directory in $ac_dir_suffix. |
|
1088 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|
1089 |
else |
|
1090 |
ac_dir_suffix= ac_top_builddir= |
|
1091 |
fi |
|
1092 |
||
1093 |
case $srcdir in |
|
1094 |
.) # No --srcdir option. We are building in place. |
|
1095 |
ac_srcdir=. |
|
1096 |
if test -z "$ac_top_builddir"; then |
|
1097 |
ac_top_srcdir=. |
|
1098 |
else |
|
1099 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
1100 |
fi ;; |
|
1101 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
|
1102 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
1103 |
ac_top_srcdir=$srcdir ;; |
|
1104 |
*) # Relative path. |
|
1105 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
|
1106 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
|
1107 |
esac |
|
1108 |
||
1109 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
|
1110 |
# the directories may not exist. |
|
1111 |
case `pwd` in |
|
1112 |
.) ac_abs_builddir="$ac_dir";; |
|
1113 |
*) |
|
1114 |
case "$ac_dir" in |
|
1115 |
.) ac_abs_builddir=`pwd`;; |
|
1116 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|
1117 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
|
1118 |
esac;; |
|
1119 |
esac |
|
1120 |
case $ac_abs_builddir in |
|
1121 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
1122 |
*) |
|
1123 |
case ${ac_top_builddir}. in |
|
1124 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
|
1125 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
1126 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|
1127 |
esac;; |
|
1128 |
esac |
|
1129 |
case $ac_abs_builddir in |
|
1130 |
.) ac_abs_srcdir=$ac_srcdir;; |
|
1131 |
*) |
|
1132 |
case $ac_srcdir in |
|
1133 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
|
1134 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|
1135 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|
1136 |
esac;; |
|
1137 |
esac |
|
1138 |
case $ac_abs_builddir in |
|
1139 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
1140 |
*) |
|
1141 |
case $ac_top_srcdir in |
|
1142 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
|
1143 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
1144 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
|
1145 |
esac;; |
|
1146 |
esac |
|
1147 |
||
1148 |
cd $ac_dir |
|
1149 |
# Check for guested configure; otherwise get Cygnus style configure. |
|
1150 |
if test -f $ac_srcdir/configure.gnu; then |
|
1151 |
echo |
|
1152 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
|
1153 |
elif test -f $ac_srcdir/configure; then |
|
1154 |
echo |
|
1155 |
$SHELL $ac_srcdir/configure --help=recursive |
|
1156 |
elif test -f $ac_srcdir/configure.ac || |
|
1157 |
test -f $ac_srcdir/configure.in; then |
|
1158 |
echo |
|
1159 |
$ac_configure --help |
|
1160 |
else |
|
1161 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
1162 |
fi |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
1163 |
cd "$ac_popdir" |
1
by Daniel Holbach
Import upstream version 1.1.15 |
1164 |
done |
1165 |
fi |
|
1166 |
||
1167 |
test -n "$ac_init_help" && exit 0 |
|
1168 |
if $ac_init_version; then |
|
1169 |
cat <<\_ACEOF |
|
1170 |
||
1171 |
Copyright (C) 2003 Free Software Foundation, Inc. |
|
1172 |
This configure script is free software; the Free Software Foundation |
|
1173 |
gives unlimited permission to copy, distribute and modify it. |
|
1174 |
_ACEOF |
|
1175 |
exit 0 |
|
1176 |
fi |
|
1177 |
exec 5>config.log |
|
1178 |
cat >&5 <<_ACEOF |
|
1179 |
This file contains any messages produced by compilers while |
|
1180 |
running configure, to aid debugging if configure makes a mistake. |
|
1181 |
||
1182 |
It was created by $as_me, which was |
|
1183 |
generated by GNU Autoconf 2.59. Invocation command line was |
|
1184 |
||
1185 |
$ $0 $@ |
|
1186 |
||
1187 |
_ACEOF |
|
1188 |
{ |
|
1189 |
cat <<_ASUNAME |
|
1190 |
## --------- ## |
|
1191 |
## Platform. ## |
|
1192 |
## --------- ## |
|
1193 |
||
1194 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
1195 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|
1196 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|
1197 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|
1198 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|
1199 |
||
1200 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|
1201 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|
1202 |
||
1203 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|
1204 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|
1205 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|
1206 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
|
1207 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|
1208 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|
1209 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|
1210 |
||
1211 |
_ASUNAME |
|
1212 |
||
1213 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1214 |
for as_dir in $PATH |
|
1215 |
do |
|
1216 |
IFS=$as_save_IFS |
|
1217 |
test -z "$as_dir" && as_dir=. |
|
1218 |
echo "PATH: $as_dir" |
|
1219 |
done |
|
1220 |
||
1221 |
} >&5 |
|
1222 |
||
1223 |
cat >&5 <<_ACEOF |
|
1224 |
||
1225 |
||
1226 |
## ----------- ## |
|
1227 |
## Core tests. ## |
|
1228 |
## ----------- ## |
|
1229 |
||
1230 |
_ACEOF |
|
1231 |
||
1232 |
||
1233 |
# Keep a trace of the command line. |
|
1234 |
# Strip out --no-create and --no-recursion so they do not pile up. |
|
1235 |
# Strip out --silent because we don't want to record it for future runs. |
|
1236 |
# Also quote any args containing shell meta-characters. |
|
1237 |
# Make two passes to allow for proper duplicate-argument suppression. |
|
1238 |
ac_configure_args= |
|
1239 |
ac_configure_args0= |
|
1240 |
ac_configure_args1= |
|
1241 |
ac_sep= |
|
1242 |
ac_must_keep_next=false |
|
1243 |
for ac_pass in 1 2 |
|
1244 |
do |
|
1245 |
for ac_arg |
|
1246 |
do |
|
1247 |
case $ac_arg in |
|
1248 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
1249 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1250 |
| -silent | --silent | --silen | --sile | --sil) |
|
1251 |
continue ;; |
|
1252 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
|
1253 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
1254 |
esac |
|
1255 |
case $ac_pass in |
|
1256 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
|
1257 |
2) |
|
1258 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
|
1259 |
if test $ac_must_keep_next = true; then |
|
1260 |
ac_must_keep_next=false # Got value, back to normal. |
|
1261 |
else |
|
1262 |
case $ac_arg in |
|
1263 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
|
1264 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
1265 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
1266 |
| -with-* | --with-* | -without-* | --without-* | --x) |
|
1267 |
case "$ac_configure_args0 " in |
|
1268 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
1269 |
esac |
|
1270 |
;; |
|
1271 |
-* ) ac_must_keep_next=true ;; |
|
1272 |
esac |
|
1273 |
fi |
|
1274 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
|
1275 |
# Get rid of the leading space. |
|
1276 |
ac_sep=" " |
|
1277 |
;; |
|
1278 |
esac |
|
1279 |
done |
|
1280 |
done |
|
1281 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
|
1282 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
|
1283 |
||
1284 |
# When interrupted or exit'd, cleanup temporary files, and complete |
|
1285 |
# config.log. We remove comments because anyway the quotes in there |
|
1286 |
# would cause problems or look ugly. |
|
1287 |
# WARNING: Be sure not to use single quotes in there, as some shells, |
|
1288 |
# such as our DU 5.0 friend, will then `close' the trap. |
|
1289 |
trap 'exit_status=$? |
|
1290 |
# Save into config.log some information that might help in debugging. |
|
1291 |
{ |
|
1292 |
echo |
|
1293 |
||
1294 |
cat <<\_ASBOX |
|
1295 |
## ---------------- ## |
|
1296 |
## Cache variables. ## |
|
1297 |
## ---------------- ## |
|
1298 |
_ASBOX |
|
1299 |
echo |
|
1300 |
# The following way of writing the cache mishandles newlines in values, |
|
1301 |
{ |
|
1302 |
(set) 2>&1 | |
|
1303 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
|
1304 |
*ac_space=\ *) |
|
1305 |
sed -n \ |
|
1306 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
|
1307 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
|
1308 |
;; |
|
1309 |
*) |
|
1310 |
sed -n \ |
|
1311 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
|
1312 |
;; |
|
1313 |
esac; |
|
1314 |
} |
|
1315 |
echo |
|
1316 |
||
1317 |
cat <<\_ASBOX |
|
1318 |
## ----------------- ## |
|
1319 |
## Output variables. ## |
|
1320 |
## ----------------- ## |
|
1321 |
_ASBOX |
|
1322 |
echo |
|
1323 |
for ac_var in $ac_subst_vars |
|
1324 |
do |
|
1325 |
eval ac_val=$`echo $ac_var` |
|
1326 |
echo "$ac_var='"'"'$ac_val'"'"'" |
|
1327 |
done | sort |
|
1328 |
echo |
|
1329 |
||
1330 |
if test -n "$ac_subst_files"; then |
|
1331 |
cat <<\_ASBOX |
|
1332 |
## ------------- ## |
|
1333 |
## Output files. ## |
|
1334 |
## ------------- ## |
|
1335 |
_ASBOX |
|
1336 |
echo |
|
1337 |
for ac_var in $ac_subst_files |
|
1338 |
do |
|
1339 |
eval ac_val=$`echo $ac_var` |
|
1340 |
echo "$ac_var='"'"'$ac_val'"'"'" |
|
1341 |
done | sort |
|
1342 |
echo |
|
1343 |
fi |
|
1344 |
||
1345 |
if test -s confdefs.h; then |
|
1346 |
cat <<\_ASBOX |
|
1347 |
## ----------- ## |
|
1348 |
## confdefs.h. ## |
|
1349 |
## ----------- ## |
|
1350 |
_ASBOX |
|
1351 |
echo |
|
1352 |
sed "/^$/d" confdefs.h | sort |
|
1353 |
echo |
|
1354 |
fi |
|
1355 |
test "$ac_signal" != 0 && |
|
1356 |
echo "$as_me: caught signal $ac_signal" |
|
1357 |
echo "$as_me: exit $exit_status" |
|
1358 |
} >&5 |
|
1359 |
rm -f core *.core && |
|
1360 |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
|
1361 |
exit $exit_status |
|
1362 |
' 0 |
|
1363 |
for ac_signal in 1 2 13 15; do |
|
1364 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
|
1365 |
done |
|
1366 |
ac_signal=0 |
|
1367 |
||
1368 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
1369 |
rm -rf conftest* confdefs.h |
|
1370 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
|
1371 |
echo >confdefs.h |
|
1372 |
||
1373 |
# Predefined preprocessor variables. |
|
1374 |
||
1375 |
cat >>confdefs.h <<_ACEOF |
|
1376 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
|
1377 |
_ACEOF |
|
1378 |
||
1379 |
||
1380 |
cat >>confdefs.h <<_ACEOF |
|
1381 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
1382 |
_ACEOF |
|
1383 |
||
1384 |
||
1385 |
cat >>confdefs.h <<_ACEOF |
|
1386 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
1387 |
_ACEOF |
|
1388 |
||
1389 |
||
1390 |
cat >>confdefs.h <<_ACEOF |
|
1391 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
|
1392 |
_ACEOF |
|
1393 |
||
1394 |
||
1395 |
cat >>confdefs.h <<_ACEOF |
|
1396 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
1397 |
_ACEOF |
|
1398 |
||
1399 |
||
1400 |
# Let the site file select an alternate cache file if it wants to. |
|
1401 |
# Prefer explicitly selected file to automatically selected ones. |
|
1402 |
if test -z "$CONFIG_SITE"; then |
|
1403 |
if test "x$prefix" != xNONE; then |
|
1404 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
|
1405 |
else |
|
1406 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
|
1407 |
fi |
|
1408 |
fi |
|
1409 |
for ac_site_file in $CONFIG_SITE; do |
|
1410 |
if test -r "$ac_site_file"; then |
|
1411 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
|
1412 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
|
1413 |
sed 's/^/| /' "$ac_site_file" >&5 |
|
1414 |
. "$ac_site_file" |
|
1415 |
fi |
|
1416 |
done |
|
1417 |
||
1418 |
if test -r "$cache_file"; then |
|
1419 |
# Some versions of bash will fail to source /dev/null (special |
|
1420 |
# files actually), so we avoid doing that. |
|
1421 |
if test -f "$cache_file"; then |
|
1422 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
|
1423 |
echo "$as_me: loading cache $cache_file" >&6;} |
|
1424 |
case $cache_file in |
|
1425 |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
|
1426 |
*) . ./$cache_file;; |
|
1427 |
esac |
|
1428 |
fi |
|
1429 |
else |
|
1430 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
|
1431 |
echo "$as_me: creating cache $cache_file" >&6;} |
|
1432 |
>$cache_file |
|
1433 |
fi |
|
1434 |
||
1435 |
# Check that the precious variables saved in the cache have kept the same |
|
1436 |
# value. |
|
1437 |
ac_cache_corrupted=false |
|
1438 |
for ac_var in `(set) 2>&1 | |
|
1439 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
|
1440 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|
1441 |
eval ac_new_set=\$ac_env_${ac_var}_set |
|
1442 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
|
1443 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
|
1444 |
case $ac_old_set,$ac_new_set in |
|
1445 |
set,) |
|
1446 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
1447 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
1448 |
ac_cache_corrupted=: ;; |
|
1449 |
,set) |
|
1450 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
|
1451 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
1452 |
ac_cache_corrupted=: ;; |
|
1453 |
,);; |
|
1454 |
*) |
|
1455 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
|
1456 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
|
1457 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
1458 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
|
1459 |
echo "$as_me: former value: $ac_old_val" >&2;} |
|
1460 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
|
1461 |
echo "$as_me: current value: $ac_new_val" >&2;} |
|
1462 |
ac_cache_corrupted=: |
|
1463 |
fi;; |
|
1464 |
esac |
|
1465 |
# Pass precious variables to config.status. |
|
1466 |
if test "$ac_new_set" = set; then |
|
1467 |
case $ac_new_val in |
|
1468 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
|
1469 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
1470 |
*) ac_arg=$ac_var=$ac_new_val ;; |
|
1471 |
esac |
|
1472 |
case " $ac_configure_args " in |
|
1473 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
1474 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
|
1475 |
esac |
|
1476 |
fi |
|
1477 |
done |
|
1478 |
if $ac_cache_corrupted; then |
|
1479 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
|
1480 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
1481 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
|
1482 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
|
1483 |
{ (exit 1); exit 1; }; } |
|
1484 |
fi |
|
1485 |
||
1486 |
ac_ext=c |
|
1487 |
ac_cpp='$CPP $CPPFLAGS' |
|
1488 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
1489 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
1490 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
1491 |
||
1492 |
||
1493 |
||
1494 |
||
1495 |
||
1496 |
||
1497 |
||
1498 |
||
1499 |
||
1500 |
||
1501 |
||
1502 |
||
1503 |
||
1504 |
||
1505 |
||
1506 |
||
1507 |
||
1508 |
||
1509 |
||
1510 |
ac_config_headers="$ac_config_headers config.h" |
|
1511 |
||
1512 |
ac_aux_dir= |
|
1513 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
|
1514 |
if test -f $ac_dir/install-sh; then |
|
1515 |
ac_aux_dir=$ac_dir |
|
1516 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
|
1517 |
break |
|
1518 |
elif test -f $ac_dir/install.sh; then |
|
1519 |
ac_aux_dir=$ac_dir |
|
1520 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
|
1521 |
break |
|
1522 |
elif test -f $ac_dir/shtool; then |
|
1523 |
ac_aux_dir=$ac_dir |
|
1524 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
|
1525 |
break |
|
1526 |
fi |
|
1527 |
done |
|
1528 |
if test -z "$ac_aux_dir"; then |
|
1529 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
|
1530 |
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
|
1531 |
{ (exit 1); exit 1; }; } |
|
1532 |
fi |
|
1533 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
|
1534 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
|
1535 |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
|
1536 |
||
1537 |
# Make sure we can run config.sub. |
|
1538 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
|
1539 |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
1540 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
1541 |
{ (exit 1); exit 1; }; } |
|
1542 |
||
1543 |
echo "$as_me:$LINENO: checking build system type" >&5 |
|
1544 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
1545 |
if test "${ac_cv_build+set}" = set; then |
|
1546 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1547 |
else |
|
1548 |
ac_cv_build_alias=$build_alias |
|
1549 |
test -z "$ac_cv_build_alias" && |
|
1550 |
ac_cv_build_alias=`$ac_config_guess` |
|
1551 |
test -z "$ac_cv_build_alias" && |
|
1552 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
1553 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
1554 |
{ (exit 1); exit 1; }; } |
|
1555 |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
1556 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
1557 |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
1558 |
{ (exit 1); exit 1; }; } |
|
1559 |
||
1560 |
fi |
|
1561 |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
1562 |
echo "${ECHO_T}$ac_cv_build" >&6 |
|
1563 |
build=$ac_cv_build |
|
1564 |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
1565 |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
1566 |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
1567 |
||
1568 |
||
1569 |
echo "$as_me:$LINENO: checking host system type" >&5 |
|
1570 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
1571 |
if test "${ac_cv_host+set}" = set; then |
|
1572 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1573 |
else |
|
1574 |
ac_cv_host_alias=$host_alias |
|
1575 |
test -z "$ac_cv_host_alias" && |
|
1576 |
ac_cv_host_alias=$ac_cv_build_alias |
|
1577 |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
1578 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
1579 |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
1580 |
{ (exit 1); exit 1; }; } |
|
1581 |
||
1582 |
fi |
|
1583 |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
1584 |
echo "${ECHO_T}$ac_cv_host" >&6 |
|
1585 |
host=$ac_cv_host |
|
1586 |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
1587 |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
1588 |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
1589 |
||
1590 |
||
1591 |
||
1592 |
LIBXSLT_MAJOR_VERSION=1 |
|
1593 |
LIBXSLT_MINOR_VERSION=1 |
|
1594 |
LIBXSLT_MICRO_VERSION=15 |
|
1595 |
PACKAGE=libxslt |
|
1596 |
LIBEXSLT_MAJOR_VERSION=0 |
|
1597 |
LIBEXSLT_MINOR_VERSION=8 |
|
1598 |
LIBEXSLT_MICRO_VERSION=12 |
|
1599 |
LIBXML_REQUIRED_VERSION=2.6.17 # if you need module support. |
|
1600 |
||
1601 |
||
1602 |
LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VERSION |
|
1603 |
LIBXSLT_VERSION_INFO=`expr $LIBXSLT_MAJOR_VERSION + $LIBXSLT_MINOR_VERSION`:$LIBXSLT_MICRO_VERSION:$LIBXSLT_MINOR_VERSION |
|
1604 |
||
1605 |
LIBXSLT_VERSION_NUMBER=`expr $LIBXSLT_MAJOR_VERSION \* 10000 + $LIBXSLT_MINOR_VERSION \* 100 + $LIBXSLT_MICRO_VERSION` |
|
1606 |
LIBXSLT_MAJOR_MINOR_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION |
|
1607 |
||
1608 |
if test -f CVS/Entries; then |
|
1609 |
extra=`grep ChangeLog CVS/Entries | grep -v LIBXSLT | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%` |
|
1610 |
echo extra=$extra |
|
1611 |
if test "$extra" != "" |
|
1612 |
then |
|
1613 |
LIBXSLT_VERSION_EXTRA="-CVS$extra" |
|
1614 |
fi |
|
1615 |
fi |
|
1616 |
||
1617 |
||
1618 |
||
1619 |
||
1620 |
||
1621 |
||
1622 |
||
1623 |
||
1624 |
||
1625 |
||
1626 |
||
1627 |
LIBEXSLT_VERSION=$LIBEXSLT_MAJOR_VERSION.$LIBEXSLT_MINOR_VERSION.$LIBEXSLT_MICRO_VERSION |
|
1628 |
LIBEXSLT_VERSION_INFO=`expr $LIBEXSLT_MAJOR_VERSION + $LIBEXSLT_MINOR_VERSION`:$LIBEXSLT_MICRO_VERSION:$LIBEXSLT_MINOR_VERSION |
|
1629 |
||
1630 |
LIBEXSLT_VERSION_NUMBER=`expr $LIBEXSLT_MAJOR_VERSION \* 10000 + $LIBEXSLT_MINOR_VERSION \* 100 + $LIBEXSLT_MICRO_VERSION` |
|
1631 |
||
1632 |
if test -f CVS/Entries; then |
|
1633 |
LIBEXSLT_VERSION_EXTRA=-CVS`grep ChangeLog CVS/Entries | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%` |
|
1634 |
fi |
|
1635 |
||
1636 |
||
1637 |
||
1638 |
||
1639 |
||
1640 |
||
1641 |
||
1642 |
||
1643 |
||
1644 |
VERSION=${LIBXSLT_VERSION} |
|
1645 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
1646 |
am__api_version="1.8" |
1
by Daniel Holbach
Import upstream version 1.1.15 |
1647 |
# Find a good install program. We prefer a C program (faster), |
1648 |
# so one script is as good as another. But avoid the broken or |
|
1649 |
# incompatible versions: |
|
1650 |
# SysV /etc/install, /usr/sbin/install |
|
1651 |
# SunOS /usr/etc/install |
|
1652 |
# IRIX /sbin/install |
|
1653 |
# AIX /bin/install |
|
1654 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
|
1655 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
1656 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
1657 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
1658 |
# OS/2's system install, which has a completely different semantic |
|
1659 |
# ./install, which can be erroneously created by make from ./install.sh. |
|
1660 |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
|
1661 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
|
1662 |
if test -z "$INSTALL"; then |
|
1663 |
if test "${ac_cv_path_install+set}" = set; then |
|
1664 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1665 |
else |
|
1666 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1667 |
for as_dir in $PATH |
|
1668 |
do |
|
1669 |
IFS=$as_save_IFS |
|
1670 |
test -z "$as_dir" && as_dir=. |
|
1671 |
# Account for people who put trailing slashes in PATH elements. |
|
1672 |
case $as_dir/ in |
|
1673 |
./ | .// | /cC/* | \ |
|
1674 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|
1675 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
|
1676 |
/usr/ucb/* ) ;; |
|
1677 |
*) |
|
1678 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
|
1679 |
# Don't use installbsd from OSF since it installs stuff as root |
|
1680 |
# by default. |
|
1681 |
for ac_prog in ginstall scoinst install; do |
|
1682 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1683 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
|
1684 |
if test $ac_prog = install && |
|
1685 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
1686 |
# AIX install. It has an incompatible calling convention. |
|
1687 |
: |
|
1688 |
elif test $ac_prog = install && |
|
1689 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
1690 |
# program-specific install script used by HP pwplus--don't use. |
|
1691 |
: |
|
1692 |
else |
|
1693 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|
1694 |
break 3 |
|
1695 |
fi |
|
1696 |
fi |
|
1697 |
done |
|
1698 |
done |
|
1699 |
;; |
|
1700 |
esac |
|
1701 |
done |
|
1702 |
||
1703 |
||
1704 |
fi |
|
1705 |
if test "${ac_cv_path_install+set}" = set; then |
|
1706 |
INSTALL=$ac_cv_path_install |
|
1707 |
else |
|
1708 |
# As a last resort, use the slow shell script. We don't cache a |
|
1709 |
# path for INSTALL within a source directory, because that will |
|
1710 |
# break other packages using the cache if that directory is |
|
1711 |
# removed, or if the path is relative. |
|
1712 |
INSTALL=$ac_install_sh |
|
1713 |
fi |
|
1714 |
fi |
|
1715 |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
|
1716 |
echo "${ECHO_T}$INSTALL" >&6 |
|
1717 |
||
1718 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
1719 |
# It thinks the first close brace ends the variable substitution. |
|
1720 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
1721 |
||
1722 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|
1723 |
||
1724 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
1725 |
||
1726 |
echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
|
1727 |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
|
1728 |
# Just in case |
|
1729 |
sleep 1 |
|
1730 |
echo timestamp > conftest.file |
|
1731 |
# Do `set' in a subshell so we don't clobber the current shell's |
|
1732 |
# arguments. Must try -L first in case configure is actually a |
|
1733 |
# symlink; some systems play weird games with the mod time of symlinks |
|
1734 |
# (eg FreeBSD returns the mod time of the symlink's containing |
|
1735 |
# directory). |
|
1736 |
if ( |
|
1737 |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
|
1738 |
if test "$*" = "X"; then |
|
1739 |
# -L didn't work. |
|
1740 |
set X `ls -t $srcdir/configure conftest.file` |
|
1741 |
fi |
|
1742 |
rm -f conftest.file |
|
1743 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
|
1744 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
|
1745 |
||
1746 |
# If neither matched, then we have a broken ls. This can happen |
|
1747 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
|
1748 |
# broken ls alias from the environment. This has actually |
|
1749 |
# happened. Such a system could not be considered "sane". |
|
1750 |
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
|
1751 |
alias in your environment" >&5 |
|
1752 |
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
|
1753 |
alias in your environment" >&2;} |
|
1754 |
{ (exit 1); exit 1; }; } |
|
1755 |
fi |
|
1756 |
||
1757 |
test "$2" = conftest.file |
|
1758 |
) |
|
1759 |
then |
|
1760 |
# Ok. |
|
1761 |
: |
|
1762 |
else |
|
1763 |
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
|
1764 |
Check your system clock" >&5 |
|
1765 |
echo "$as_me: error: newly created file is older than distributed files! |
|
1766 |
Check your system clock" >&2;} |
|
1767 |
{ (exit 1); exit 1; }; } |
|
1768 |
fi |
|
1769 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
1770 |
echo "${ECHO_T}yes" >&6 |
|
1771 |
test "$program_prefix" != NONE && |
|
1772 |
program_transform_name="s,^,$program_prefix,;$program_transform_name" |
|
1773 |
# Use a double $ so make ignores it. |
|
1774 |
test "$program_suffix" != NONE && |
|
1775 |
program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
|
1776 |
# Double any \ or $. echo might interpret backslashes. |
|
1777 |
# By default was `s,x,x', remove it if useless. |
|
1778 |
cat <<\_ACEOF >conftest.sed |
|
1779 |
s/[\\$]/&&/g;s/;s,x,x,$// |
|
1780 |
_ACEOF |
|
1781 |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
1782 |
rm conftest.sed |
|
1783 |
||
1784 |
# expand $ac_aux_dir to an absolute path |
|
1785 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
|
1786 |
||
1787 |
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
|
1788 |
# Use eval to expand $SHELL |
|
1789 |
if eval "$MISSING --run true"; then |
|
1790 |
am_missing_run="$MISSING --run " |
|
1791 |
else |
|
1792 |
am_missing_run= |
|
1793 |
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
|
1794 |
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
|
1795 |
fi |
|
1796 |
||
1797 |
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
1798 |
# Keeping the `.' argument allows $(mkdir_p) to be used without |
1799 |
# argument. Indeed, we sometimes output rules like |
|
1
by Daniel Holbach
Import upstream version 1.1.15 |
1800 |
# $(mkdir_p) $(somedir) |
2
by Daniel Holbach
* Resynchronize with Debian: |
1801 |
# where $(somedir) is conditionally defined. |
1802 |
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
|
1803 |
# expensive solution, as it forces Make to start a sub-shell.) |
|
1804 |
mkdir_p='mkdir -p -- .' |
|
1
by Daniel Holbach
Import upstream version 1.1.15 |
1805 |
else |
1806 |
# On NextStep and OpenStep, the `mkdir' command does not |
|
1807 |
# recognize any option. It will interpret all options as |
|
1808 |
# directories to create, and then abort because `.' already |
|
1809 |
# exists. |
|
1810 |
for d in ./-p ./--version; |
|
1811 |
do |
|
1812 |
test -d $d && rmdir $d |
|
1813 |
done |
|
1814 |
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
|
1815 |
if test -f "$ac_aux_dir/mkinstalldirs"; then |
|
1816 |
mkdir_p='$(mkinstalldirs)' |
|
1817 |
else |
|
1818 |
mkdir_p='$(install_sh) -d' |
|
1819 |
fi |
|
1820 |
fi |
|
1821 |
||
1822 |
for ac_prog in gawk mawk nawk awk |
|
1823 |
do |
|
1824 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
1825 |
set dummy $ac_prog; ac_word=$2 |
|
1826 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
1827 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
1828 |
if test "${ac_cv_prog_AWK+set}" = set; then |
|
1829 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1830 |
else |
|
1831 |
if test -n "$AWK"; then |
|
1832 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
1833 |
else |
|
1834 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1835 |
for as_dir in $PATH |
|
1836 |
do |
|
1837 |
IFS=$as_save_IFS |
|
1838 |
test -z "$as_dir" && as_dir=. |
|
1839 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1840 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
1841 |
ac_cv_prog_AWK="$ac_prog" |
|
1842 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
1843 |
break 2 |
|
1844 |
fi |
|
1845 |
done |
|
1846 |
done |
|
1847 |
||
1848 |
fi |
|
1849 |
fi |
|
1850 |
AWK=$ac_cv_prog_AWK |
|
1851 |
if test -n "$AWK"; then |
|
1852 |
echo "$as_me:$LINENO: result: $AWK" >&5 |
|
1853 |
echo "${ECHO_T}$AWK" >&6 |
|
1854 |
else |
|
1855 |
echo "$as_me:$LINENO: result: no" >&5 |
|
1856 |
echo "${ECHO_T}no" >&6 |
|
1857 |
fi |
|
1858 |
||
1859 |
test -n "$AWK" && break |
|
1860 |
done |
|
1861 |
||
1862 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
|
1863 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
|
1864 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
|
1865 |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
|
1866 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1867 |
else |
|
1868 |
cat >conftest.make <<\_ACEOF |
|
1869 |
all: |
|
1870 |
@echo 'ac_maketemp="$(MAKE)"' |
|
1871 |
_ACEOF |
|
1872 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|
1873 |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
|
1874 |
if test -n "$ac_maketemp"; then |
|
1875 |
eval ac_cv_prog_make_${ac_make}_set=yes |
|
1876 |
else |
|
1877 |
eval ac_cv_prog_make_${ac_make}_set=no |
|
1878 |
fi |
|
1879 |
rm -f conftest.make |
|
1880 |
fi |
|
1881 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
|
1882 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
1883 |
echo "${ECHO_T}yes" >&6 |
|
1884 |
SET_MAKE= |
|
1885 |
else |
|
1886 |
echo "$as_me:$LINENO: result: no" >&5 |
|
1887 |
echo "${ECHO_T}no" >&6 |
|
1888 |
SET_MAKE="MAKE=${MAKE-make}" |
|
1889 |
fi |
|
1890 |
||
1891 |
rm -rf .tst 2>/dev/null |
|
1892 |
mkdir .tst 2>/dev/null |
|
1893 |
if test -d .tst; then |
|
1894 |
am__leading_dot=. |
|
1895 |
else |
|
1896 |
am__leading_dot=_ |
|
1897 |
fi |
|
1898 |
rmdir .tst 2>/dev/null |
|
1899 |
||
1900 |
# test to see if srcdir already configured |
|
1901 |
if test "`cd $srcdir && pwd`" != "`pwd`" && |
|
1902 |
test -f $srcdir/config.status; then |
|
1903 |
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
|
1904 |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
|
1905 |
{ (exit 1); exit 1; }; } |
|
1906 |
fi |
|
1907 |
||
1908 |
# test whether we have cygpath |
|
1909 |
if test -z "$CYGPATH_W"; then |
|
1910 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
|
1911 |
CYGPATH_W='cygpath -w' |
|
1912 |
else |
|
1913 |
CYGPATH_W=echo |
|
1914 |
fi |
|
1915 |
fi |
|
1916 |
||
1917 |
||
1918 |
# Define the identity of the package. |
|
1919 |
PACKAGE=$PACKAGE |
|
1920 |
VERSION=$VERSION |
|
1921 |
||
1922 |
||
1923 |
cat >>confdefs.h <<_ACEOF |
|
1924 |
#define PACKAGE "$PACKAGE" |
|
1925 |
_ACEOF |
|
1926 |
||
1927 |
||
1928 |
cat >>confdefs.h <<_ACEOF |
|
1929 |
#define VERSION "$VERSION" |
|
1930 |
_ACEOF |
|
1931 |
||
1932 |
# Some tools Automake needs. |
|
1933 |
||
1934 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
|
1935 |
||
1936 |
||
1937 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
|
1938 |
||
1939 |
||
1940 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
|
1941 |
||
1942 |
||
1943 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
|
1944 |
||
1945 |
||
1946 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
|
1947 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
1948 |
|
1949 |
AMTAR=${AMTAR-"${am_missing_run}tar"} |
|
1950 |
||
1
by Daniel Holbach
Import upstream version 1.1.15 |
1951 |
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1952 |
||
1953 |
# Installed binaries are usually stripped using `strip' when the user |
|
1954 |
# run `make install-strip'. However `strip' might not be the right |
|
1955 |
# tool to use in cross-compilation environments, therefore Automake |
|
1956 |
# will honor the `STRIP' environment variable to overrule this program. |
|
1957 |
if test "$cross_compiling" != no; then |
|
1958 |
if test -n "$ac_tool_prefix"; then |
|
1959 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
1960 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
1961 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
1962 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
1963 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
|
1964 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1965 |
else |
|
1966 |
if test -n "$STRIP"; then |
|
1967 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
1968 |
else |
|
1969 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1970 |
for as_dir in $PATH |
|
1971 |
do |
|
1972 |
IFS=$as_save_IFS |
|
1973 |
test -z "$as_dir" && as_dir=. |
|
1974 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1975 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
1976 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
1977 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
1978 |
break 2 |
|
1979 |
fi |
|
1980 |
done |
|
1981 |
done |
|
1982 |
||
1983 |
fi |
|
1984 |
fi |
|
1985 |
STRIP=$ac_cv_prog_STRIP |
|
1986 |
if test -n "$STRIP"; then |
|
1987 |
echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
1988 |
echo "${ECHO_T}$STRIP" >&6 |
|
1989 |
else |
|
1990 |
echo "$as_me:$LINENO: result: no" >&5 |
|
1991 |
echo "${ECHO_T}no" >&6 |
|
1992 |
fi |
|
1993 |
||
1994 |
fi |
|
1995 |
if test -z "$ac_cv_prog_STRIP"; then |
|
1996 |
ac_ct_STRIP=$STRIP |
|
1997 |
# Extract the first word of "strip", so it can be a program name with args. |
|
1998 |
set dummy strip; ac_word=$2 |
|
1999 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2000 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2001 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
2002 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2003 |
else |
|
2004 |
if test -n "$ac_ct_STRIP"; then |
|
2005 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
2006 |
else |
|
2007 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2008 |
for as_dir in $PATH |
|
2009 |
do |
|
2010 |
IFS=$as_save_IFS |
|
2011 |
test -z "$as_dir" && as_dir=. |
|
2012 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2013 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2014 |
ac_cv_prog_ac_ct_STRIP="strip" |
|
2015 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2016 |
break 2 |
|
2017 |
fi |
|
2018 |
done |
|
2019 |
done |
|
2020 |
||
2021 |
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
2022 |
fi |
|
2023 |
fi |
|
2024 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
2025 |
if test -n "$ac_ct_STRIP"; then |
|
2026 |
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
2027 |
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
2028 |
else |
|
2029 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2030 |
echo "${ECHO_T}no" >&6 |
|
2031 |
fi |
|
2032 |
||
2033 |
STRIP=$ac_ct_STRIP |
|
2034 |
else |
|
2035 |
STRIP="$ac_cv_prog_STRIP" |
|
2036 |
fi |
|
2037 |
||
2038 |
fi |
|
2039 |
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
|
2040 |
||
2041 |
# We need awk for the "check" target. The system "awk" is bad on |
|
2042 |
# some platforms. |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
2043 |
|
2044 |
||
2045 |
||
2046 |
||
2047 |
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
|
2048 |
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
|
2049 |
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
|
2050 |
if test "${enable_maintainer_mode+set}" = set; then |
|
2051 |
enableval="$enable_maintainer_mode" |
|
2052 |
USE_MAINTAINER_MODE=$enableval |
|
2053 |
else |
|
2054 |
USE_MAINTAINER_MODE=no |
|
2055 |
fi; |
|
2056 |
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
|
2057 |
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
|
2058 |
||
2059 |
||
2060 |
if test $USE_MAINTAINER_MODE = yes; then |
|
2061 |
MAINTAINER_MODE_TRUE= |
|
2062 |
MAINTAINER_MODE_FALSE='#' |
|
2063 |
else |
|
2064 |
MAINTAINER_MODE_TRUE='#' |
|
2065 |
MAINTAINER_MODE_FALSE= |
|
2066 |
fi |
|
2067 |
||
2068 |
MAINT=$MAINTAINER_MODE_TRUE |
|
2069 |
||
2070 |
||
1
by Daniel Holbach
Import upstream version 1.1.15 |
2071 |
|
2072 |
||
2073 |
# Check whether --with-html-dir or --without-html-dir was given. |
|
2074 |
if test "${with_html_dir+set}" = set; then |
|
2075 |
withval="$with_html_dir" |
|
2076 |
||
2077 |
fi; |
|
2078 |
||
2079 |
||
2080 |
if test "x$with_html_dir" = "x" ; then |
|
2081 |
HTML_DIR='$(prefix)/doc' |
|
2082 |
else |
|
2083 |
HTML_DIR=$with_html_dir |
|
2084 |
fi |
|
2085 |
||
2086 |
||
2087 |
||
2088 |
DEPDIR="${am__leading_dot}deps" |
|
2089 |
||
2090 |
ac_config_commands="$ac_config_commands depfiles" |
|
2091 |
||
2092 |
||
2093 |
am_make=${MAKE-make} |
|
2094 |
cat > confinc << 'END' |
|
2095 |
am__doit: |
|
2096 |
@echo done |
|
2097 |
.PHONY: am__doit |
|
2098 |
END |
|
2099 |
# If we don't find an include directive, just comment out the code. |
|
2100 |
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
|
2101 |
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
|
2102 |
am__include="#" |
|
2103 |
am__quote= |
|
2104 |
_am_result=none |
|
2105 |
# First try GNU make style include. |
|
2106 |
echo "include confinc" > confmf |
|
2107 |
# We grep out `Entering directory' and `Leaving directory' |
|
2108 |
# messages which can occur if `w' ends up in MAKEFLAGS. |
|
2109 |
# In particular we don't look at `^make:' because GNU make might |
|
2110 |
# be invoked under some other name (usually "gmake"), in which |
|
2111 |
# case it prints its new name instead of `make'. |
|
2112 |
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
|
2113 |
am__include=include |
|
2114 |
am__quote= |
|
2115 |
_am_result=GNU |
|
2116 |
fi |
|
2117 |
# Now try BSD make style include. |
|
2118 |
if test "$am__include" = "#"; then |
|
2119 |
echo '.include "confinc"' > confmf |
|
2120 |
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
|
2121 |
am__include=.include |
|
2122 |
am__quote="\"" |
|
2123 |
_am_result=BSD |
|
2124 |
fi |
|
2125 |
fi |
|
2126 |
||
2127 |
||
2128 |
echo "$as_me:$LINENO: result: $_am_result" >&5 |
|
2129 |
echo "${ECHO_T}$_am_result" >&6 |
|
2130 |
rm -f confinc confmf |
|
2131 |
||
2132 |
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
|
2133 |
if test "${enable_dependency_tracking+set}" = set; then |
|
2134 |
enableval="$enable_dependency_tracking" |
|
2135 |
||
2136 |
fi; |
|
2137 |
if test "x$enable_dependency_tracking" != xno; then |
|
2138 |
am_depcomp="$ac_aux_dir/depcomp" |
|
2139 |
AMDEPBACKSLASH='\' |
|
2140 |
fi |
|
2141 |
||
2142 |
||
2143 |
if test "x$enable_dependency_tracking" != xno; then |
|
2144 |
AMDEP_TRUE= |
|
2145 |
AMDEP_FALSE='#' |
|
2146 |
else |
|
2147 |
AMDEP_TRUE='#' |
|
2148 |
AMDEP_FALSE= |
|
2149 |
fi |
|
2150 |
||
2151 |
||
2152 |
||
2153 |
ac_ext=c |
|
2154 |
ac_cpp='$CPP $CPPFLAGS' |
|
2155 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2156 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2157 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2158 |
if test -n "$ac_tool_prefix"; then |
|
2159 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
2160 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
2161 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2162 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2163 |
if test "${ac_cv_prog_CC+set}" = set; then |
|
2164 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2165 |
else |
|
2166 |
if test -n "$CC"; then |
|
2167 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2168 |
else |
|
2169 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2170 |
for as_dir in $PATH |
|
2171 |
do |
|
2172 |
IFS=$as_save_IFS |
|
2173 |
test -z "$as_dir" && as_dir=. |
|
2174 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2175 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2176 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
2177 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2178 |
break 2 |
|
2179 |
fi |
|
2180 |
done |
|
2181 |
done |
|
2182 |
||
2183 |
fi |
|
2184 |
fi |
|
2185 |
CC=$ac_cv_prog_CC |
|
2186 |
if test -n "$CC"; then |
|
2187 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
2188 |
echo "${ECHO_T}$CC" >&6 |
|
2189 |
else |
|
2190 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2191 |
echo "${ECHO_T}no" >&6 |
|
2192 |
fi |
|
2193 |
||
2194 |
fi |
|
2195 |
if test -z "$ac_cv_prog_CC"; then |
|
2196 |
ac_ct_CC=$CC |
|
2197 |
# Extract the first word of "gcc", so it can be a program name with args. |
|
2198 |
set dummy gcc; ac_word=$2 |
|
2199 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2200 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2201 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
2202 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2203 |
else |
|
2204 |
if test -n "$ac_ct_CC"; then |
|
2205 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2206 |
else |
|
2207 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2208 |
for as_dir in $PATH |
|
2209 |
do |
|
2210 |
IFS=$as_save_IFS |
|
2211 |
test -z "$as_dir" && as_dir=. |
|
2212 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2213 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2214 |
ac_cv_prog_ac_ct_CC="gcc" |
|
2215 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2216 |
break 2 |
|
2217 |
fi |
|
2218 |
done |
|
2219 |
done |
|
2220 |
||
2221 |
fi |
|
2222 |
fi |
|
2223 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2224 |
if test -n "$ac_ct_CC"; then |
|
2225 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
2226 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
2227 |
else |
|
2228 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2229 |
echo "${ECHO_T}no" >&6 |
|
2230 |
fi |
|
2231 |
||
2232 |
CC=$ac_ct_CC |
|
2233 |
else |
|
2234 |
CC="$ac_cv_prog_CC" |
|
2235 |
fi |
|
2236 |
||
2237 |
if test -z "$CC"; then |
|
2238 |
if test -n "$ac_tool_prefix"; then |
|
2239 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
2240 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
2241 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2242 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2243 |
if test "${ac_cv_prog_CC+set}" = set; then |
|
2244 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2245 |
else |
|
2246 |
if test -n "$CC"; then |
|
2247 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2248 |
else |
|
2249 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2250 |
for as_dir in $PATH |
|
2251 |
do |
|
2252 |
IFS=$as_save_IFS |
|
2253 |
test -z "$as_dir" && as_dir=. |
|
2254 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2255 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2256 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
2257 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2258 |
break 2 |
|
2259 |
fi |
|
2260 |
done |
|
2261 |
done |
|
2262 |
||
2263 |
fi |
|
2264 |
fi |
|
2265 |
CC=$ac_cv_prog_CC |
|
2266 |
if test -n "$CC"; then |
|
2267 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
2268 |
echo "${ECHO_T}$CC" >&6 |
|
2269 |
else |
|
2270 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2271 |
echo "${ECHO_T}no" >&6 |
|
2272 |
fi |
|
2273 |
||
2274 |
fi |
|
2275 |
if test -z "$ac_cv_prog_CC"; then |
|
2276 |
ac_ct_CC=$CC |
|
2277 |
# Extract the first word of "cc", so it can be a program name with args. |
|
2278 |
set dummy cc; ac_word=$2 |
|
2279 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2280 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2281 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
2282 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2283 |
else |
|
2284 |
if test -n "$ac_ct_CC"; then |
|
2285 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2286 |
else |
|
2287 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2288 |
for as_dir in $PATH |
|
2289 |
do |
|
2290 |
IFS=$as_save_IFS |
|
2291 |
test -z "$as_dir" && as_dir=. |
|
2292 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2293 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2294 |
ac_cv_prog_ac_ct_CC="cc" |
|
2295 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2296 |
break 2 |
|
2297 |
fi |
|
2298 |
done |
|
2299 |
done |
|
2300 |
||
2301 |
fi |
|
2302 |
fi |
|
2303 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2304 |
if test -n "$ac_ct_CC"; then |
|
2305 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
2306 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
2307 |
else |
|
2308 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2309 |
echo "${ECHO_T}no" >&6 |
|
2310 |
fi |
|
2311 |
||
2312 |
CC=$ac_ct_CC |
|
2313 |
else |
|
2314 |
CC="$ac_cv_prog_CC" |
|
2315 |
fi |
|
2316 |
||
2317 |
fi |
|
2318 |
if test -z "$CC"; then |
|
2319 |
# Extract the first word of "cc", so it can be a program name with args. |
|
2320 |
set dummy cc; ac_word=$2 |
|
2321 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2322 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2323 |
if test "${ac_cv_prog_CC+set}" = set; then |
|
2324 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2325 |
else |
|
2326 |
if test -n "$CC"; then |
|
2327 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2328 |
else |
|
2329 |
ac_prog_rejected=no |
|
2330 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2331 |
for as_dir in $PATH |
|
2332 |
do |
|
2333 |
IFS=$as_save_IFS |
|
2334 |
test -z "$as_dir" && as_dir=. |
|
2335 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2336 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2337 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
2338 |
ac_prog_rejected=yes |
|
2339 |
continue |
|
2340 |
fi |
|
2341 |
ac_cv_prog_CC="cc" |
|
2342 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2343 |
break 2 |
|
2344 |
fi |
|
2345 |
done |
|
2346 |
done |
|
2347 |
||
2348 |
if test $ac_prog_rejected = yes; then |
|
2349 |
# We found a bogon in the path, so make sure we never use it. |
|
2350 |
set dummy $ac_cv_prog_CC |
|
2351 |
shift |
|
2352 |
if test $# != 0; then |
|
2353 |
# We chose a different compiler from the bogus one. |
|
2354 |
# However, it has the same basename, so the bogon will be chosen |
|
2355 |
# first if we set CC to just the basename; use the full file name. |
|
2356 |
shift |
|
2357 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
2358 |
fi |
|
2359 |
fi |
|
2360 |
fi |
|
2361 |
fi |
|
2362 |
CC=$ac_cv_prog_CC |
|
2363 |
if test -n "$CC"; then |
|
2364 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
2365 |
echo "${ECHO_T}$CC" >&6 |
|
2366 |
else |
|
2367 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2368 |
echo "${ECHO_T}no" >&6 |
|
2369 |
fi |
|
2370 |
||
2371 |
fi |
|
2372 |
if test -z "$CC"; then |
|
2373 |
if test -n "$ac_tool_prefix"; then |
|
2374 |
for ac_prog in cl |
|
2375 |
do |
|
2376 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
2377 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
2378 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2379 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2380 |
if test "${ac_cv_prog_CC+set}" = set; then |
|
2381 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2382 |
else |
|
2383 |
if test -n "$CC"; then |
|
2384 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2385 |
else |
|
2386 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2387 |
for as_dir in $PATH |
|
2388 |
do |
|
2389 |
IFS=$as_save_IFS |
|
2390 |
test -z "$as_dir" && as_dir=. |
|
2391 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2392 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2393 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
2394 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2395 |
break 2 |
|
2396 |
fi |
|
2397 |
done |
|
2398 |
done |
|
2399 |
||
2400 |
fi |
|
2401 |
fi |
|
2402 |
CC=$ac_cv_prog_CC |
|
2403 |
if test -n "$CC"; then |
|
2404 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
2405 |
echo "${ECHO_T}$CC" >&6 |
|
2406 |
else |
|
2407 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2408 |
echo "${ECHO_T}no" >&6 |
|
2409 |
fi |
|
2410 |
||
2411 |
test -n "$CC" && break |
|
2412 |
done |
|
2413 |
fi |
|
2414 |
if test -z "$CC"; then |
|
2415 |
ac_ct_CC=$CC |
|
2416 |
for ac_prog in cl |
|
2417 |
do |
|
2418 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2419 |
set dummy $ac_prog; ac_word=$2 |
|
2420 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2421 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2422 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
2423 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2424 |
else |
|
2425 |
if test -n "$ac_ct_CC"; then |
|
2426 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2427 |
else |
|
2428 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2429 |
for as_dir in $PATH |
|
2430 |
do |
|
2431 |
IFS=$as_save_IFS |
|
2432 |
test -z "$as_dir" && as_dir=. |
|
2433 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2434 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2435 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
|
2436 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2437 |
break 2 |
|
2438 |
fi |
|
2439 |
done |
|
2440 |
done |
|
2441 |
||
2442 |
fi |
|
2443 |
fi |
|
2444 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2445 |
if test -n "$ac_ct_CC"; then |
|
2446 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
2447 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
2448 |
else |
|
2449 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2450 |
echo "${ECHO_T}no" >&6 |
|
2451 |
fi |
|
2452 |
||
2453 |
test -n "$ac_ct_CC" && break |
|
2454 |
done |
|
2455 |
||
2456 |
CC=$ac_ct_CC |
|
2457 |
fi |
|
2458 |
||
2459 |
fi |
|
2460 |
||
2461 |
||
2462 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
|
2463 |
See \`config.log' for more details." >&5 |
|
2464 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
|
2465 |
See \`config.log' for more details." >&2;} |
|
2466 |
{ (exit 1); exit 1; }; } |
|
2467 |
||
2468 |
# Provide some information about the compiler. |
|
2469 |
echo "$as_me:$LINENO:" \ |
|
2470 |
"checking for C compiler version" >&5 |
|
2471 |
ac_compiler=`set X $ac_compile; echo $2` |
|
2472 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
2473 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
2474 |
ac_status=$? |
|
2475 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2476 |
(exit $ac_status); } |
|
2477 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
2478 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
2479 |
ac_status=$? |
|
2480 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2481 |
(exit $ac_status); } |
|
2482 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
2483 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
2484 |
ac_status=$? |
|
2485 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2486 |
(exit $ac_status); } |
|
2487 |
||
2488 |
cat >conftest.$ac_ext <<_ACEOF |
|
2489 |
/* confdefs.h. */ |
|
2490 |
_ACEOF |
|
2491 |
cat confdefs.h >>conftest.$ac_ext |
|
2492 |
cat >>conftest.$ac_ext <<_ACEOF |
|
2493 |
/* end confdefs.h. */ |
|
2494 |
||
2495 |
int |
|
2496 |
main () |
|
2497 |
{ |
|
2498 |
||
2499 |
; |
|
2500 |
return 0; |
|
2501 |
} |
|
2502 |
_ACEOF |
|
2503 |
ac_clean_files_save=$ac_clean_files |
|
2504 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
|
2505 |
# Try to create an executable without -o first, disregard a.out. |
|
2506 |
# It will help us diagnose broken compilers, and finding out an intuition |
|
2507 |
# of exeext. |
|
2508 |
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
|
2509 |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
|
2510 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
2511 |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
|
2512 |
(eval $ac_link_default) 2>&5 |
|
2513 |
ac_status=$? |
|
2514 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2515 |
(exit $ac_status); }; then |
|
2516 |
# Find the output, starting from the most likely. This scheme is |
|
2517 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
|
2518 |
# resort. |
|
2519 |
||
2520 |
# Be careful to initialize this variable, since it used to be cached. |
|
2521 |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
|
2522 |
ac_cv_exeext= |
|
2523 |
# b.out is created by i960 compilers. |
|
2524 |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
|
2525 |
do |
|
2526 |
test -f "$ac_file" || continue |
|
2527 |
case $ac_file in |
|
2528 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
|
2529 |
;; |
|
2530 |
conftest.$ac_ext ) |
|
2531 |
# This is the source file. |
|
2532 |
;; |
|
2533 |
[ab].out ) |
|
2534 |
# We found the default executable, but exeext='' is most |
|
2535 |
# certainly right. |
|
2536 |
break;; |
|
2537 |
*.* ) |
|
2538 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
2539 |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
|
2540 |
# but it would be cool to find out if it's true. Does anybody |
|
2541 |
# maintain Libtool? --akim. |
|
2542 |
export ac_cv_exeext |
|
2543 |
break;; |
|
2544 |
* ) |
|
2545 |
break;; |
|
2546 |
esac |
|
2547 |
done |
|
2548 |
else |
|
2549 |
echo "$as_me: failed program was:" >&5 |
|
2550 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
2551 |
||
2552 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
|
2553 |
See \`config.log' for more details." >&5 |
|
2554 |
echo "$as_me: error: C compiler cannot create executables |
|
2555 |
See \`config.log' for more details." >&2;} |
|
2556 |
{ (exit 77); exit 77; }; } |
|
2557 |
fi |
|
2558 |
||
2559 |
ac_exeext=$ac_cv_exeext |
|
2560 |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
2561 |
echo "${ECHO_T}$ac_file" >&6 |
|
2562 |
||
2563 |
# Check the compiler produces executables we can run. If not, either |
|
2564 |
# the compiler is broken, or we cross compile. |
|
2565 |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
|
2566 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
|
2567 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
|
2568 |
# If not cross compiling, check that we can run a simple program. |
|
2569 |
if test "$cross_compiling" != yes; then |
|
2570 |
if { ac_try='./$ac_file' |
|
2571 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
2572 |
(eval $ac_try) 2>&5 |
|
2573 |
ac_status=$? |
|
2574 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2575 |
(exit $ac_status); }; }; then |
|
2576 |
cross_compiling=no |
|
2577 |
else |
|
2578 |
if test "$cross_compiling" = maybe; then |
|
2579 |
cross_compiling=yes |
|
2580 |
else |
|
2581 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|
2582 |
If you meant to cross compile, use \`--host'. |
|
2583 |
See \`config.log' for more details." >&5 |
|
2584 |
echo "$as_me: error: cannot run C compiled programs. |
|
2585 |
If you meant to cross compile, use \`--host'. |
|
2586 |
See \`config.log' for more details." >&2;} |
|
2587 |
{ (exit 1); exit 1; }; } |
|
2588 |
fi |
|
2589 |
fi |
|
2590 |
fi |
|
2591 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
2592 |
echo "${ECHO_T}yes" >&6 |
|
2593 |
||
2594 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
|
2595 |
ac_clean_files=$ac_clean_files_save |
|
2596 |
# Check the compiler produces executables we can run. If not, either |
|
2597 |
# the compiler is broken, or we cross compile. |
|
2598 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|
2599 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
|
2600 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|
2601 |
echo "${ECHO_T}$cross_compiling" >&6 |
|
2602 |
||
2603 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
|
2604 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
|
2605 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
2606 |
(eval $ac_link) 2>&5 |
|
2607 |
ac_status=$? |
|
2608 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2609 |
(exit $ac_status); }; then |
|
2610 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
2611 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
2612 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
|
2613 |
# `rm'. |
|
2614 |
for ac_file in conftest.exe conftest conftest.*; do |
|
2615 |
test -f "$ac_file" || continue |
|
2616 |
case $ac_file in |
|
2617 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
|
2618 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
2619 |
export ac_cv_exeext |
|
2620 |
break;; |
|
2621 |
* ) break;; |
|
2622 |
esac |
|
2623 |
done |
|
2624 |
else |
|
2625 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
|
2626 |
See \`config.log' for more details." >&5 |
|
2627 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
|
2628 |
See \`config.log' for more details." >&2;} |
|
2629 |
{ (exit 1); exit 1; }; } |
|
2630 |
fi |
|
2631 |
||
2632 |
rm -f conftest$ac_cv_exeext |
|
2633 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
|
2634 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
|
2635 |
||
2636 |
rm -f conftest.$ac_ext |
|
2637 |
EXEEXT=$ac_cv_exeext |
|
2638 |
ac_exeext=$EXEEXT |
|
2639 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|
2640 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
|
2641 |
if test "${ac_cv_objext+set}" = set; then |
|
2642 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2643 |
else |
|
2644 |
cat >conftest.$ac_ext <<_ACEOF |
|
2645 |
/* confdefs.h. */ |
|
2646 |
_ACEOF |
|
2647 |
cat confdefs.h >>conftest.$ac_ext |
|
2648 |
cat >>conftest.$ac_ext <<_ACEOF |
|
2649 |
/* end confdefs.h. */ |
|
2650 |
||
2651 |
int |
|
2652 |
main () |
|
2653 |
{ |
|
2654 |
||
2655 |
; |
|
2656 |
return 0; |
|
2657 |
} |
|
2658 |
_ACEOF |
|
2659 |
rm -f conftest.o conftest.obj |
|
2660 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
2661 |
(eval $ac_compile) 2>&5 |
|
2662 |
ac_status=$? |
|
2663 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2664 |
(exit $ac_status); }; then |
|
2665 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
|
2666 |
case $ac_file in |
|
2667 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
|
2668 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
2669 |
break;; |
|
2670 |
esac |
|
2671 |
done |
|
2672 |
else |
|
2673 |
echo "$as_me: failed program was:" >&5 |
|
2674 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
2675 |
||
2676 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
|
2677 |
See \`config.log' for more details." >&5 |
|
2678 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
|
2679 |
See \`config.log' for more details." >&2;} |
|
2680 |
{ (exit 1); exit 1; }; } |
|
2681 |
fi |
|
2682 |
||
2683 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
2684 |
fi |
|
2685 |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
|
2686 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
|
2687 |
OBJEXT=$ac_cv_objext |
|
2688 |
ac_objext=$OBJEXT |
|
2689 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|
2690 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
|
2691 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
2692 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2693 |
else |
|
2694 |
cat >conftest.$ac_ext <<_ACEOF |
|
2695 |
/* confdefs.h. */ |
|
2696 |
_ACEOF |
|
2697 |
cat confdefs.h >>conftest.$ac_ext |
|
2698 |
cat >>conftest.$ac_ext <<_ACEOF |
|
2699 |
/* end confdefs.h. */ |
|
2700 |
||
2701 |
int |
|
2702 |
main () |
|
2703 |
{ |
|
2704 |
#ifndef __GNUC__ |
|
2705 |
choke me |
|
2706 |
#endif |
|
2707 |
||
2708 |
; |
|
2709 |
return 0; |
|
2710 |
} |
|
2711 |
_ACEOF |
|
2712 |
rm -f conftest.$ac_objext |
|
2713 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
2714 |
(eval $ac_compile) 2>conftest.er1 |
|
2715 |
ac_status=$? |
|
2716 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
2717 |
rm -f conftest.er1 |
|
2718 |
cat conftest.err >&5 |
|
2719 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2720 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
2721 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
2722 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2723 |
(eval $ac_try) 2>&5 |
|
2724 |
ac_status=$? |
|
2725 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2726 |
(exit $ac_status); }; } && |
|
2727 |
{ ac_try='test -s conftest.$ac_objext' |
|
2728 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
2729 |
(eval $ac_try) 2>&5 |
|
2730 |
ac_status=$? |
|
2731 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2732 |
(exit $ac_status); }; }; then |
|
2733 |
ac_compiler_gnu=yes |
|
2734 |
else |
|
2735 |
echo "$as_me: failed program was:" >&5 |
|
2736 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
2737 |
||
2738 |
ac_compiler_gnu=no |
|
2739 |
fi |
|
2740 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2741 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
2742 |
||
2743 |
fi |
|
2744 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
2745 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
|
2746 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
|
2747 |
ac_test_CFLAGS=${CFLAGS+set} |
|
2748 |
ac_save_CFLAGS=$CFLAGS |
|
2749 |
CFLAGS="-g" |
|
2750 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|
2751 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
|
2752 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
|
2753 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2754 |
else |
|
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 |
rm -f conftest.$ac_objext |
|
2771 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
2772 |
(eval $ac_compile) 2>conftest.er1 |
|
2773 |
ac_status=$? |
|
2774 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
2775 |
rm -f conftest.er1 |
|
2776 |
cat conftest.err >&5 |
|
2777 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2778 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
2779 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
2780 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2781 |
(eval $ac_try) 2>&5 |
|
2782 |
ac_status=$? |
|
2783 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2784 |
(exit $ac_status); }; } && |
|
2785 |
{ ac_try='test -s conftest.$ac_objext' |
|
2786 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
2787 |
(eval $ac_try) 2>&5 |
|
2788 |
ac_status=$? |
|
2789 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2790 |
(exit $ac_status); }; }; then |
|
2791 |
ac_cv_prog_cc_g=yes |
|
2792 |
else |
|
2793 |
echo "$as_me: failed program was:" >&5 |
|
2794 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
2795 |
||
2796 |
ac_cv_prog_cc_g=no |
|
2797 |
fi |
|
2798 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2799 |
fi |
|
2800 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
2801 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
|
2802 |
if test "$ac_test_CFLAGS" = set; then |
|
2803 |
CFLAGS=$ac_save_CFLAGS |
|
2804 |
elif test $ac_cv_prog_cc_g = yes; then |
|
2805 |
if test "$GCC" = yes; then |
|
2806 |
CFLAGS="-g -O2" |
|
2807 |
else |
|
2808 |
CFLAGS="-g" |
|
2809 |
fi |
|
2810 |
else |
|
2811 |
if test "$GCC" = yes; then |
|
2812 |
CFLAGS="-O2" |
|
2813 |
else |
|
2814 |
CFLAGS= |
|
2815 |
fi |
|
2816 |
fi |
|
2817 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
|
2818 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
|
2819 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
|
2820 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2821 |
else |
|
2822 |
ac_cv_prog_cc_stdc=no |
|
2823 |
ac_save_CC=$CC |
|
2824 |
cat >conftest.$ac_ext <<_ACEOF |
|
2825 |
/* confdefs.h. */ |
|
2826 |
_ACEOF |
|
2827 |
cat confdefs.h >>conftest.$ac_ext |
|
2828 |
cat >>conftest.$ac_ext <<_ACEOF |
|
2829 |
/* end confdefs.h. */ |
|
2830 |
#include <stdarg.h> |
|
2831 |
#include <stdio.h> |
|
2832 |
#include <sys/types.h> |
|
2833 |
#include <sys/stat.h> |
|
2834 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
2835 |
struct buf { int x; }; |
|
2836 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
2837 |
static char *e (p, i) |
|
2838 |
char **p; |
|
2839 |
int i; |
|
2840 |
{ |
|
2841 |
return p[i]; |
|
2842 |
} |
|
2843 |
static char *f (char * (*g) (char **, int), char **p, ...) |
|
2844 |
{ |
|
2845 |
char *s; |
|
2846 |
va_list v; |
|
2847 |
va_start (v,p); |
|
2848 |
s = g (p, va_arg (v,int)); |
|
2849 |
va_end (v); |
|
2850 |
return s; |
|
2851 |
} |
|
2852 |
||
2853 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
2854 |
function prototypes and stuff, but not '\xHH' hex character constants. |
|
2855 |
These don't provoke an error unfortunately, instead are silently treated |
|
2856 |
as 'x'. The following induces an error, until -std1 is added to get |
|
2857 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
2858 |
array size at least. It's necessary to write '\x00'==0 to get something |
|
2859 |
that's true only with -std1. */ |
|
2860 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
2861 |
||
2862 |
int test (int i, double x); |
|
2863 |
struct s1 {int (*f) (int a);}; |
|
2864 |
struct s2 {int (*f) (double a);}; |
|
2865 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
2866 |
int argc; |
|
2867 |
char **argv; |
|
2868 |
int |
|
2869 |
main () |
|
2870 |
{ |
|
2871 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
2872 |
; |
|
2873 |
return 0; |
|
2874 |
} |
|
2875 |
_ACEOF |
|
2876 |
# Don't try gcc -ansi; that turns off useful extensions and |
|
2877 |
# breaks some systems' header files. |
|
2878 |
# AIX -qlanglvl=ansi |
|
2879 |
# Ultrix and OSF/1 -std1 |
|
2880 |
# HP-UX 10.20 and later -Ae |
|
2881 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
|
2882 |
# SVR4 -Xc -D__EXTENSIONS__ |
|
2883 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
2884 |
do |
|
2885 |
CC="$ac_save_CC $ac_arg" |
|
2886 |
rm -f conftest.$ac_objext |
|
2887 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
2888 |
(eval $ac_compile) 2>conftest.er1 |
|
2889 |
ac_status=$? |
|
2890 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
2891 |
rm -f conftest.er1 |
|
2892 |
cat conftest.err >&5 |
|
2893 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2894 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
2895 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
2896 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2897 |
(eval $ac_try) 2>&5 |
|
2898 |
ac_status=$? |
|
2899 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2900 |
(exit $ac_status); }; } && |
|
2901 |
{ ac_try='test -s conftest.$ac_objext' |
|
2902 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
2903 |
(eval $ac_try) 2>&5 |
|
2904 |
ac_status=$? |
|
2905 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2906 |
(exit $ac_status); }; }; then |
|
2907 |
ac_cv_prog_cc_stdc=$ac_arg |
|
2908 |
break |
|
2909 |
else |
|
2910 |
echo "$as_me: failed program was:" >&5 |
|
2911 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
2912 |
||
2913 |
fi |
|
2914 |
rm -f conftest.err conftest.$ac_objext |
|
2915 |
done |
|
2916 |
rm -f conftest.$ac_ext conftest.$ac_objext |
|
2917 |
CC=$ac_save_CC |
|
2918 |
||
2919 |
fi |
|
2920 |
||
2921 |
case "x$ac_cv_prog_cc_stdc" in |
|
2922 |
x|xno) |
|
2923 |
echo "$as_me:$LINENO: result: none needed" >&5 |
|
2924 |
echo "${ECHO_T}none needed" >&6 ;; |
|
2925 |
*) |
|
2926 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
|
2927 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
|
2928 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
|
2929 |
esac |
|
2930 |
||
2931 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
|
2932 |
# in C++ we need to declare it. In case someone uses the same compiler |
|
2933 |
# for both compiling C and C++ we need to have the C++ compiler decide |
|
2934 |
# the declaration of exit, since it's the most demanding environment. |
|
2935 |
cat >conftest.$ac_ext <<_ACEOF |
|
2936 |
#ifndef __cplusplus |
|
2937 |
choke me |
|
2938 |
#endif |
|
2939 |
_ACEOF |
|
2940 |
rm -f conftest.$ac_objext |
|
2941 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
2942 |
(eval $ac_compile) 2>conftest.er1 |
|
2943 |
ac_status=$? |
|
2944 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
2945 |
rm -f conftest.er1 |
|
2946 |
cat conftest.err >&5 |
|
2947 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2948 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
2949 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
2950 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2951 |
(eval $ac_try) 2>&5 |
|
2952 |
ac_status=$? |
|
2953 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2954 |
(exit $ac_status); }; } && |
|
2955 |
{ ac_try='test -s conftest.$ac_objext' |
|
2956 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
2957 |
(eval $ac_try) 2>&5 |
|
2958 |
ac_status=$? |
|
2959 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2960 |
(exit $ac_status); }; }; then |
|
2961 |
for ac_declaration in \ |
|
2962 |
'' \ |
|
2963 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|
2964 |
'extern "C" void std::exit (int); using std::exit;' \ |
|
2965 |
'extern "C" void exit (int) throw ();' \ |
|
2966 |
'extern "C" void exit (int);' \ |
|
2967 |
'void exit (int);' |
|
2968 |
do |
|
2969 |
cat >conftest.$ac_ext <<_ACEOF |
|
2970 |
/* confdefs.h. */ |
|
2971 |
_ACEOF |
|
2972 |
cat confdefs.h >>conftest.$ac_ext |
|
2973 |
cat >>conftest.$ac_ext <<_ACEOF |
|
2974 |
/* end confdefs.h. */ |
|
2975 |
$ac_declaration |
|
2976 |
#include <stdlib.h> |
|
2977 |
int |
|
2978 |
main () |
|
2979 |
{ |
|
2980 |
exit (42); |
|
2981 |
; |
|
2982 |
return 0; |
|
2983 |
} |
|
2984 |
_ACEOF |
|
2985 |
rm -f conftest.$ac_objext |
|
2986 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
2987 |
(eval $ac_compile) 2>conftest.er1 |
|
2988 |
ac_status=$? |
|
2989 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
2990 |
rm -f conftest.er1 |
|
2991 |
cat conftest.err >&5 |
|
2992 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2993 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
2994 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
2995 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2996 |
(eval $ac_try) 2>&5 |
|
2997 |
ac_status=$? |
|
2998 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2999 |
(exit $ac_status); }; } && |
|
3000 |
{ ac_try='test -s conftest.$ac_objext' |
|
3001 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3002 |
(eval $ac_try) 2>&5 |
|
3003 |
ac_status=$? |
|
3004 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3005 |
(exit $ac_status); }; }; then |
|
3006 |
: |
|
3007 |
else |
|
3008 |
echo "$as_me: failed program was:" >&5 |
|
3009 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3010 |
||
3011 |
continue |
|
3012 |
fi |
|
3013 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3014 |
cat >conftest.$ac_ext <<_ACEOF |
|
3015 |
/* confdefs.h. */ |
|
3016 |
_ACEOF |
|
3017 |
cat confdefs.h >>conftest.$ac_ext |
|
3018 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3019 |
/* end confdefs.h. */ |
|
3020 |
$ac_declaration |
|
3021 |
int |
|
3022 |
main () |
|
3023 |
{ |
|
3024 |
exit (42); |
|
3025 |
; |
|
3026 |
return 0; |
|
3027 |
} |
|
3028 |
_ACEOF |
|
3029 |
rm -f conftest.$ac_objext |
|
3030 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3031 |
(eval $ac_compile) 2>conftest.er1 |
|
3032 |
ac_status=$? |
|
3033 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3034 |
rm -f conftest.er1 |
|
3035 |
cat conftest.err >&5 |
|
3036 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3037 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
3038 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
3039 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3040 |
(eval $ac_try) 2>&5 |
|
3041 |
ac_status=$? |
|
3042 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3043 |
(exit $ac_status); }; } && |
|
3044 |
{ ac_try='test -s conftest.$ac_objext' |
|
3045 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3046 |
(eval $ac_try) 2>&5 |
|
3047 |
ac_status=$? |
|
3048 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3049 |
(exit $ac_status); }; }; then |
|
3050 |
break |
|
3051 |
else |
|
3052 |
echo "$as_me: failed program was:" >&5 |
|
3053 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3054 |
||
3055 |
fi |
|
3056 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3057 |
done |
|
3058 |
rm -f conftest* |
|
3059 |
if test -n "$ac_declaration"; then |
|
3060 |
echo '#ifdef __cplusplus' >>confdefs.h |
|
3061 |
echo $ac_declaration >>confdefs.h |
|
3062 |
echo '#endif' >>confdefs.h |
|
3063 |
fi |
|
3064 |
||
3065 |
else |
|
3066 |
echo "$as_me: failed program was:" >&5 |
|
3067 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3068 |
||
3069 |
fi |
|
3070 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3071 |
ac_ext=c |
|
3072 |
ac_cpp='$CPP $CPPFLAGS' |
|
3073 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3074 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3075 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3076 |
||
3077 |
depcc="$CC" am_compiler_list= |
|
3078 |
||
3079 |
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
|
3080 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
|
3081 |
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
|
3082 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3083 |
else |
|
3084 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
3085 |
# We make a subdir and do the tests there. Otherwise we can end up |
|
3086 |
# making bogus files that we don't know about and never remove. For |
|
3087 |
# instance it was reported that on HP-UX the gcc test will end up |
|
3088 |
# making a dummy file named `D' -- because `-MD' means `put the output |
|
3089 |
# in D'. |
|
3090 |
mkdir conftest.dir |
|
3091 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
3092 |
# using a relative directory. |
|
3093 |
cp "$am_depcomp" conftest.dir |
|
3094 |
cd conftest.dir |
|
3095 |
# We will build objects and dependencies in a subdirectory because |
|
3096 |
# it helps to detect inapplicable dependency modes. For instance |
|
3097 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
|
3098 |
# side effect of compilation, but ICC will put the dependencies in |
|
3099 |
# the current directory while Tru64 will put them in the object |
|
3100 |
# directory. |
|
3101 |
mkdir sub |
|
3102 |
||
3103 |
am_cv_CC_dependencies_compiler_type=none |
|
3104 |
if test "$am_compiler_list" = ""; then |
|
3105 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
3106 |
fi |
|
3107 |
for depmode in $am_compiler_list; do |
|
3108 |
# Setup a source with many dependencies, because some compilers |
|
3109 |
# like to wrap large dependency lists on column 80 (with \), and |
|
3110 |
# we should not choose a depcomp mode which is confused by this. |
|
3111 |
# |
|
3112 |
# We need to recreate these files for each test, as the compiler may |
|
3113 |
# overwrite some of them when testing with obscure command lines. |
|
3114 |
# This happens at least with the AIX C compiler. |
|
3115 |
: > sub/conftest.c |
|
3116 |
for i in 1 2 3 4 5 6; do |
|
3117 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
3118 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
3119 |
# Solaris 8's {/usr,}/bin/sh. |
|
3120 |
touch sub/conftst$i.h |
|
3121 |
done |
|
3122 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
3123 |
||
3124 |
case $depmode in |
|
3125 |
nosideeffect) |
|
3126 |
# after this tag, mechanisms are not by side-effect, so they'll |
|
3127 |
# only be used when explicitly requested |
|
3128 |
if test "x$enable_dependency_tracking" = xyes; then |
|
3129 |
continue |
|
3130 |
else |
|
3131 |
break |
|
3132 |
fi |
|
3133 |
;; |
|
3134 |
none) break ;; |
|
3135 |
esac |
|
3136 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
3137 |
# mode. It turns out that the SunPro C++ compiler does not properly |
|
3138 |
# handle `-M -o', and we need to detect this. |
|
3139 |
if depmode=$depmode \ |
|
3140 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
3141 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
3142 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
3143 |
>/dev/null 2>conftest.err && |
|
3144 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
3145 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
3146 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
3147 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
3148 |
# or remarks (even with -Werror). So we grep stderr for any message |
|
3149 |
# that says an option was ignored or not supported. |
|
3150 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
|
3151 |
# icc: Command line warning: ignoring option '-M'; no argument required |
|
3152 |
# The diagnosis changed in icc 8.0: |
|
3153 |
# icc: Command line remark: option '-MP' not supported |
|
3154 |
if (grep 'ignoring option' conftest.err || |
|
3155 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
3156 |
am_cv_CC_dependencies_compiler_type=$depmode |
|
3157 |
break |
|
3158 |
fi |
|
3159 |
fi |
|
3160 |
done |
|
3161 |
||
3162 |
cd .. |
|
3163 |
rm -rf conftest.dir |
|
3164 |
else |
|
3165 |
am_cv_CC_dependencies_compiler_type=none |
|
3166 |
fi |
|
3167 |
||
3168 |
fi |
|
3169 |
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
|
3170 |
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
|
3171 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
|
3172 |
||
3173 |
||
3174 |
||
3175 |
if |
|
3176 |
test "x$enable_dependency_tracking" != xno \ |
|
3177 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
|
3178 |
am__fastdepCC_TRUE= |
|
3179 |
am__fastdepCC_FALSE='#' |
|
3180 |
else |
|
3181 |
am__fastdepCC_TRUE='#' |
|
3182 |
am__fastdepCC_FALSE= |
|
3183 |
fi |
|
3184 |
||
3185 |
||
3186 |
||
3187 |
echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
|
3188 |
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
|
3189 |
if test "${ac_cv_search_strerror+set}" = set; then |
|
3190 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3191 |
else |
|
3192 |
ac_func_search_save_LIBS=$LIBS |
|
3193 |
ac_cv_search_strerror=no |
|
3194 |
cat >conftest.$ac_ext <<_ACEOF |
|
3195 |
/* confdefs.h. */ |
|
3196 |
_ACEOF |
|
3197 |
cat confdefs.h >>conftest.$ac_ext |
|
3198 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3199 |
/* end confdefs.h. */ |
|
3200 |
||
3201 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
3202 |
#ifdef __cplusplus |
|
3203 |
extern "C" |
|
3204 |
#endif |
|
3205 |
/* We use char because int might match the return type of a gcc2 |
|
3206 |
builtin and then its argument prototype would still apply. */ |
|
3207 |
char strerror (); |
|
3208 |
int |
|
3209 |
main () |
|
3210 |
{ |
|
3211 |
strerror (); |
|
3212 |
; |
|
3213 |
return 0; |
|
3214 |
} |
|
3215 |
_ACEOF |
|
3216 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
3217 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
3218 |
(eval $ac_link) 2>conftest.er1 |
|
3219 |
ac_status=$? |
|
3220 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3221 |
rm -f conftest.er1 |
|
3222 |
cat conftest.err >&5 |
|
3223 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3224 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
3225 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
3226 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3227 |
(eval $ac_try) 2>&5 |
|
3228 |
ac_status=$? |
|
3229 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3230 |
(exit $ac_status); }; } && |
|
3231 |
{ ac_try='test -s conftest$ac_exeext' |
|
3232 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3233 |
(eval $ac_try) 2>&5 |
|
3234 |
ac_status=$? |
|
3235 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3236 |
(exit $ac_status); }; }; then |
|
3237 |
ac_cv_search_strerror="none required" |
|
3238 |
else |
|
3239 |
echo "$as_me: failed program was:" >&5 |
|
3240 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3241 |
||
3242 |
fi |
|
3243 |
rm -f conftest.err conftest.$ac_objext \ |
|
3244 |
conftest$ac_exeext conftest.$ac_ext |
|
3245 |
if test "$ac_cv_search_strerror" = no; then |
|
3246 |
for ac_lib in cposix; do |
|
3247 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
3248 |
cat >conftest.$ac_ext <<_ACEOF |
|
3249 |
/* confdefs.h. */ |
|
3250 |
_ACEOF |
|
3251 |
cat confdefs.h >>conftest.$ac_ext |
|
3252 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3253 |
/* end confdefs.h. */ |
|
3254 |
||
3255 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
3256 |
#ifdef __cplusplus |
|
3257 |
extern "C" |
|
3258 |
#endif |
|
3259 |
/* We use char because int might match the return type of a gcc2 |
|
3260 |
builtin and then its argument prototype would still apply. */ |
|
3261 |
char strerror (); |
|
3262 |
int |
|
3263 |
main () |
|
3264 |
{ |
|
3265 |
strerror (); |
|
3266 |
; |
|
3267 |
return 0; |
|
3268 |
} |
|
3269 |
_ACEOF |
|
3270 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
3271 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
3272 |
(eval $ac_link) 2>conftest.er1 |
|
3273 |
ac_status=$? |
|
3274 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3275 |
rm -f conftest.er1 |
|
3276 |
cat conftest.err >&5 |
|
3277 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3278 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
3279 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
3280 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3281 |
(eval $ac_try) 2>&5 |
|
3282 |
ac_status=$? |
|
3283 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3284 |
(exit $ac_status); }; } && |
|
3285 |
{ ac_try='test -s conftest$ac_exeext' |
|
3286 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3287 |
(eval $ac_try) 2>&5 |
|
3288 |
ac_status=$? |
|
3289 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3290 |
(exit $ac_status); }; }; then |
|
3291 |
ac_cv_search_strerror="-l$ac_lib" |
|
3292 |
break |
|
3293 |
else |
|
3294 |
echo "$as_me: failed program was:" >&5 |
|
3295 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3296 |
||
3297 |
fi |
|
3298 |
rm -f conftest.err conftest.$ac_objext \ |
|
3299 |
conftest$ac_exeext conftest.$ac_ext |
|
3300 |
done |
|
3301 |
fi |
|
3302 |
LIBS=$ac_func_search_save_LIBS |
|
3303 |
fi |
|
3304 |
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
|
3305 |
echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
|
3306 |
if test "$ac_cv_search_strerror" != no; then |
|
3307 |
test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
|
3308 |
||
3309 |
fi |
|
3310 |
||
3311 |
ac_ext=c |
|
3312 |
ac_cpp='$CPP $CPPFLAGS' |
|
3313 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3314 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3315 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3316 |
if test -n "$ac_tool_prefix"; then |
|
3317 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
3318 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
3319 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
3320 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
3321 |
if test "${ac_cv_prog_CC+set}" = set; then |
|
3322 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3323 |
else |
|
3324 |
if test -n "$CC"; then |
|
3325 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3326 |
else |
|
3327 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3328 |
for as_dir in $PATH |
|
3329 |
do |
|
3330 |
IFS=$as_save_IFS |
|
3331 |
test -z "$as_dir" && as_dir=. |
|
3332 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3333 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3334 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
3335 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3336 |
break 2 |
|
3337 |
fi |
|
3338 |
done |
|
3339 |
done |
|
3340 |
||
3341 |
fi |
|
3342 |
fi |
|
3343 |
CC=$ac_cv_prog_CC |
|
3344 |
if test -n "$CC"; then |
|
3345 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
3346 |
echo "${ECHO_T}$CC" >&6 |
|
3347 |
else |
|
3348 |
echo "$as_me:$LINENO: result: no" >&5 |
|
3349 |
echo "${ECHO_T}no" >&6 |
|
3350 |
fi |
|
3351 |
||
3352 |
fi |
|
3353 |
if test -z "$ac_cv_prog_CC"; then |
|
3354 |
ac_ct_CC=$CC |
|
3355 |
# Extract the first word of "gcc", so it can be a program name with args. |
|
3356 |
set dummy gcc; ac_word=$2 |
|
3357 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
3358 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
3359 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
3360 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3361 |
else |
|
3362 |
if test -n "$ac_ct_CC"; then |
|
3363 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
3364 |
else |
|
3365 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3366 |
for as_dir in $PATH |
|
3367 |
do |
|
3368 |
IFS=$as_save_IFS |
|
3369 |
test -z "$as_dir" && as_dir=. |
|
3370 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3371 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3372 |
ac_cv_prog_ac_ct_CC="gcc" |
|
3373 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3374 |
break 2 |
|
3375 |
fi |
|
3376 |
done |
|
3377 |
done |
|
3378 |
||
3379 |
fi |
|
3380 |
fi |
|
3381 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
3382 |
if test -n "$ac_ct_CC"; then |
|
3383 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
3384 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
3385 |
else |
|
3386 |
echo "$as_me:$LINENO: result: no" >&5 |
|
3387 |
echo "${ECHO_T}no" >&6 |
|
3388 |
fi |
|
3389 |
||
3390 |
CC=$ac_ct_CC |
|
3391 |
else |
|
3392 |
CC="$ac_cv_prog_CC" |
|
3393 |
fi |
|
3394 |
||
3395 |
if test -z "$CC"; then |
|
3396 |
if test -n "$ac_tool_prefix"; then |
|
3397 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
3398 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
3399 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
3400 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
3401 |
if test "${ac_cv_prog_CC+set}" = set; then |
|
3402 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3403 |
else |
|
3404 |
if test -n "$CC"; then |
|
3405 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3406 |
else |
|
3407 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3408 |
for as_dir in $PATH |
|
3409 |
do |
|
3410 |
IFS=$as_save_IFS |
|
3411 |
test -z "$as_dir" && as_dir=. |
|
3412 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3413 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3414 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
3415 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3416 |
break 2 |
|
3417 |
fi |
|
3418 |
done |
|
3419 |
done |
|
3420 |
||
3421 |
fi |
|
3422 |
fi |
|
3423 |
CC=$ac_cv_prog_CC |
|
3424 |
if test -n "$CC"; then |
|
3425 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
3426 |
echo "${ECHO_T}$CC" >&6 |
|
3427 |
else |
|
3428 |
echo "$as_me:$LINENO: result: no" >&5 |
|
3429 |
echo "${ECHO_T}no" >&6 |
|
3430 |
fi |
|
3431 |
||
3432 |
fi |
|
3433 |
if test -z "$ac_cv_prog_CC"; then |
|
3434 |
ac_ct_CC=$CC |
|
3435 |
# Extract the first word of "cc", so it can be a program name with args. |
|
3436 |
set dummy cc; ac_word=$2 |
|
3437 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
3438 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
3439 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
3440 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3441 |
else |
|
3442 |
if test -n "$ac_ct_CC"; then |
|
3443 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
3444 |
else |
|
3445 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3446 |
for as_dir in $PATH |
|
3447 |
do |
|
3448 |
IFS=$as_save_IFS |
|
3449 |
test -z "$as_dir" && as_dir=. |
|
3450 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3451 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3452 |
ac_cv_prog_ac_ct_CC="cc" |
|
3453 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3454 |
break 2 |
|
3455 |
fi |
|
3456 |
done |
|
3457 |
done |
|
3458 |
||
3459 |
fi |
|
3460 |
fi |
|
3461 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
3462 |
if test -n "$ac_ct_CC"; then |
|
3463 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
3464 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
3465 |
else |
|
3466 |
echo "$as_me:$LINENO: result: no" >&5 |
|
3467 |
echo "${ECHO_T}no" >&6 |
|
3468 |
fi |
|
3469 |
||
3470 |
CC=$ac_ct_CC |
|
3471 |
else |
|
3472 |
CC="$ac_cv_prog_CC" |
|
3473 |
fi |
|
3474 |
||
3475 |
fi |
|
3476 |
if test -z "$CC"; then |
|
3477 |
# Extract the first word of "cc", so it can be a program name with args. |
|
3478 |
set dummy cc; ac_word=$2 |
|
3479 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
3480 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
3481 |
if test "${ac_cv_prog_CC+set}" = set; then |
|
3482 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3483 |
else |
|
3484 |
if test -n "$CC"; then |
|
3485 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3486 |
else |
|
3487 |
ac_prog_rejected=no |
|
3488 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3489 |
for as_dir in $PATH |
|
3490 |
do |
|
3491 |
IFS=$as_save_IFS |
|
3492 |
test -z "$as_dir" && as_dir=. |
|
3493 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3494 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3495 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
3496 |
ac_prog_rejected=yes |
|
3497 |
continue |
|
3498 |
fi |
|
3499 |
ac_cv_prog_CC="cc" |
|
3500 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3501 |
break 2 |
|
3502 |
fi |
|
3503 |
done |
|
3504 |
done |
|
3505 |
||
3506 |
if test $ac_prog_rejected = yes; then |
|
3507 |
# We found a bogon in the path, so make sure we never use it. |
|
3508 |
set dummy $ac_cv_prog_CC |
|
3509 |
shift |
|
3510 |
if test $# != 0; then |
|
3511 |
# We chose a different compiler from the bogus one. |
|
3512 |
# However, it has the same basename, so the bogon will be chosen |
|
3513 |
# first if we set CC to just the basename; use the full file name. |
|
3514 |
shift |
|
3515 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
3516 |
fi |
|
3517 |
fi |
|
3518 |
fi |
|
3519 |
fi |
|
3520 |
CC=$ac_cv_prog_CC |
|
3521 |
if test -n "$CC"; then |
|
3522 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
3523 |
echo "${ECHO_T}$CC" >&6 |
|
3524 |
else |
|
3525 |
echo "$as_me:$LINENO: result: no" >&5 |
|
3526 |
echo "${ECHO_T}no" >&6 |
|
3527 |
fi |
|
3528 |
||
3529 |
fi |
|
3530 |
if test -z "$CC"; then |
|
3531 |
if test -n "$ac_tool_prefix"; then |
|
3532 |
for ac_prog in cl |
|
3533 |
do |
|
3534 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
3535 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
3536 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
3537 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
3538 |
if test "${ac_cv_prog_CC+set}" = set; then |
|
3539 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3540 |
else |
|
3541 |
if test -n "$CC"; then |
|
3542 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3543 |
else |
|
3544 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3545 |
for as_dir in $PATH |
|
3546 |
do |
|
3547 |
IFS=$as_save_IFS |
|
3548 |
test -z "$as_dir" && as_dir=. |
|
3549 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3550 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3551 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
3552 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3553 |
break 2 |
|
3554 |
fi |
|
3555 |
done |
|
3556 |
done |
|
3557 |
||
3558 |
fi |
|
3559 |
fi |
|
3560 |
CC=$ac_cv_prog_CC |
|
3561 |
if test -n "$CC"; then |
|
3562 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
3563 |
echo "${ECHO_T}$CC" >&6 |
|
3564 |
else |
|
3565 |
echo "$as_me:$LINENO: result: no" >&5 |
|
3566 |
echo "${ECHO_T}no" >&6 |
|
3567 |
fi |
|
3568 |
||
3569 |
test -n "$CC" && break |
|
3570 |
done |
|
3571 |
fi |
|
3572 |
if test -z "$CC"; then |
|
3573 |
ac_ct_CC=$CC |
|
3574 |
for ac_prog in cl |
|
3575 |
do |
|
3576 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
3577 |
set dummy $ac_prog; ac_word=$2 |
|
3578 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
3579 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
3580 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
3581 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3582 |
else |
|
3583 |
if test -n "$ac_ct_CC"; then |
|
3584 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
3585 |
else |
|
3586 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3587 |
for as_dir in $PATH |
|
3588 |
do |
|
3589 |
IFS=$as_save_IFS |
|
3590 |
test -z "$as_dir" && as_dir=. |
|
3591 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3592 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3593 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
|
3594 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3595 |
break 2 |
|
3596 |
fi |
|
3597 |
done |
|
3598 |
done |
|
3599 |
||
3600 |
fi |
|
3601 |
fi |
|
3602 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
3603 |
if test -n "$ac_ct_CC"; then |
|
3604 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
3605 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
3606 |
else |
|
3607 |
echo "$as_me:$LINENO: result: no" >&5 |
|
3608 |
echo "${ECHO_T}no" >&6 |
|
3609 |
fi |
|
3610 |
||
3611 |
test -n "$ac_ct_CC" && break |
|
3612 |
done |
|
3613 |
||
3614 |
CC=$ac_ct_CC |
|
3615 |
fi |
|
3616 |
||
3617 |
fi |
|
3618 |
||
3619 |
||
3620 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
|
3621 |
See \`config.log' for more details." >&5 |
|
3622 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
|
3623 |
See \`config.log' for more details." >&2;} |
|
3624 |
{ (exit 1); exit 1; }; } |
|
3625 |
||
3626 |
# Provide some information about the compiler. |
|
3627 |
echo "$as_me:$LINENO:" \ |
|
3628 |
"checking for C compiler version" >&5 |
|
3629 |
ac_compiler=`set X $ac_compile; echo $2` |
|
3630 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
3631 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
3632 |
ac_status=$? |
|
3633 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3634 |
(exit $ac_status); } |
|
3635 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
3636 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
3637 |
ac_status=$? |
|
3638 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3639 |
(exit $ac_status); } |
|
3640 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
3641 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
3642 |
ac_status=$? |
|
3643 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3644 |
(exit $ac_status); } |
|
3645 |
||
3646 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|
3647 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
|
3648 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
3649 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3650 |
else |
|
3651 |
cat >conftest.$ac_ext <<_ACEOF |
|
3652 |
/* confdefs.h. */ |
|
3653 |
_ACEOF |
|
3654 |
cat confdefs.h >>conftest.$ac_ext |
|
3655 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3656 |
/* end confdefs.h. */ |
|
3657 |
||
3658 |
int |
|
3659 |
main () |
|
3660 |
{ |
|
3661 |
#ifndef __GNUC__ |
|
3662 |
choke me |
|
3663 |
#endif |
|
3664 |
||
3665 |
; |
|
3666 |
return 0; |
|
3667 |
} |
|
3668 |
_ACEOF |
|
3669 |
rm -f conftest.$ac_objext |
|
3670 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3671 |
(eval $ac_compile) 2>conftest.er1 |
|
3672 |
ac_status=$? |
|
3673 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3674 |
rm -f conftest.er1 |
|
3675 |
cat conftest.err >&5 |
|
3676 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3677 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
3678 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
3679 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3680 |
(eval $ac_try) 2>&5 |
|
3681 |
ac_status=$? |
|
3682 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3683 |
(exit $ac_status); }; } && |
|
3684 |
{ ac_try='test -s conftest.$ac_objext' |
|
3685 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3686 |
(eval $ac_try) 2>&5 |
|
3687 |
ac_status=$? |
|
3688 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3689 |
(exit $ac_status); }; }; then |
|
3690 |
ac_compiler_gnu=yes |
|
3691 |
else |
|
3692 |
echo "$as_me: failed program was:" >&5 |
|
3693 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3694 |
||
3695 |
ac_compiler_gnu=no |
|
3696 |
fi |
|
3697 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3698 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
3699 |
||
3700 |
fi |
|
3701 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
3702 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
|
3703 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
|
3704 |
ac_test_CFLAGS=${CFLAGS+set} |
|
3705 |
ac_save_CFLAGS=$CFLAGS |
|
3706 |
CFLAGS="-g" |
|
3707 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|
3708 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
|
3709 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
|
3710 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3711 |
else |
|
3712 |
cat >conftest.$ac_ext <<_ACEOF |
|
3713 |
/* confdefs.h. */ |
|
3714 |
_ACEOF |
|
3715 |
cat confdefs.h >>conftest.$ac_ext |
|
3716 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3717 |
/* end confdefs.h. */ |
|
3718 |
||
3719 |
int |
|
3720 |
main () |
|
3721 |
{ |
|
3722 |
||
3723 |
; |
|
3724 |
return 0; |
|
3725 |
} |
|
3726 |
_ACEOF |
|
3727 |
rm -f conftest.$ac_objext |
|
3728 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3729 |
(eval $ac_compile) 2>conftest.er1 |
|
3730 |
ac_status=$? |
|
3731 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3732 |
rm -f conftest.er1 |
|
3733 |
cat conftest.err >&5 |
|
3734 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3735 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
3736 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
3737 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3738 |
(eval $ac_try) 2>&5 |
|
3739 |
ac_status=$? |
|
3740 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3741 |
(exit $ac_status); }; } && |
|
3742 |
{ ac_try='test -s conftest.$ac_objext' |
|
3743 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3744 |
(eval $ac_try) 2>&5 |
|
3745 |
ac_status=$? |
|
3746 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3747 |
(exit $ac_status); }; }; then |
|
3748 |
ac_cv_prog_cc_g=yes |
|
3749 |
else |
|
3750 |
echo "$as_me: failed program was:" >&5 |
|
3751 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3752 |
||
3753 |
ac_cv_prog_cc_g=no |
|
3754 |
fi |
|
3755 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3756 |
fi |
|
3757 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
3758 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
|
3759 |
if test "$ac_test_CFLAGS" = set; then |
|
3760 |
CFLAGS=$ac_save_CFLAGS |
|
3761 |
elif test $ac_cv_prog_cc_g = yes; then |
|
3762 |
if test "$GCC" = yes; then |
|
3763 |
CFLAGS="-g -O2" |
|
3764 |
else |
|
3765 |
CFLAGS="-g" |
|
3766 |
fi |
|
3767 |
else |
|
3768 |
if test "$GCC" = yes; then |
|
3769 |
CFLAGS="-O2" |
|
3770 |
else |
|
3771 |
CFLAGS= |
|
3772 |
fi |
|
3773 |
fi |
|
3774 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
|
3775 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
|
3776 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
|
3777 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3778 |
else |
|
3779 |
ac_cv_prog_cc_stdc=no |
|
3780 |
ac_save_CC=$CC |
|
3781 |
cat >conftest.$ac_ext <<_ACEOF |
|
3782 |
/* confdefs.h. */ |
|
3783 |
_ACEOF |
|
3784 |
cat confdefs.h >>conftest.$ac_ext |
|
3785 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3786 |
/* end confdefs.h. */ |
|
3787 |
#include <stdarg.h> |
|
3788 |
#include <stdio.h> |
|
3789 |
#include <sys/types.h> |
|
3790 |
#include <sys/stat.h> |
|
3791 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
3792 |
struct buf { int x; }; |
|
3793 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
3794 |
static char *e (p, i) |
|
3795 |
char **p; |
|
3796 |
int i; |
|
3797 |
{ |
|
3798 |
return p[i]; |
|
3799 |
} |
|
3800 |
static char *f (char * (*g) (char **, int), char **p, ...) |
|
3801 |
{ |
|
3802 |
char *s; |
|
3803 |
va_list v; |
|
3804 |
va_start (v,p); |
|
3805 |
s = g (p, va_arg (v,int)); |
|
3806 |
va_end (v); |
|
3807 |
return s; |
|
3808 |
} |
|
3809 |
||
3810 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
3811 |
function prototypes and stuff, but not '\xHH' hex character constants. |
|
3812 |
These don't provoke an error unfortunately, instead are silently treated |
|
3813 |
as 'x'. The following induces an error, until -std1 is added to get |
|
3814 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
3815 |
array size at least. It's necessary to write '\x00'==0 to get something |
|
3816 |
that's true only with -std1. */ |
|
3817 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
3818 |
||
3819 |
int test (int i, double x); |
|
3820 |
struct s1 {int (*f) (int a);}; |
|
3821 |
struct s2 {int (*f) (double a);}; |
|
3822 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
3823 |
int argc; |
|
3824 |
char **argv; |
|
3825 |
int |
|
3826 |
main () |
|
3827 |
{ |
|
3828 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
3829 |
; |
|
3830 |
return 0; |
|
3831 |
} |
|
3832 |
_ACEOF |
|
3833 |
# Don't try gcc -ansi; that turns off useful extensions and |
|
3834 |
# breaks some systems' header files. |
|
3835 |
# AIX -qlanglvl=ansi |
|
3836 |
# Ultrix and OSF/1 -std1 |
|
3837 |
# HP-UX 10.20 and later -Ae |
|
3838 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
|
3839 |
# SVR4 -Xc -D__EXTENSIONS__ |
|
3840 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
3841 |
do |
|
3842 |
CC="$ac_save_CC $ac_arg" |
|
3843 |
rm -f conftest.$ac_objext |
|
3844 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3845 |
(eval $ac_compile) 2>conftest.er1 |
|
3846 |
ac_status=$? |
|
3847 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3848 |
rm -f conftest.er1 |
|
3849 |
cat conftest.err >&5 |
|
3850 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3851 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
3852 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
3853 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3854 |
(eval $ac_try) 2>&5 |
|
3855 |
ac_status=$? |
|
3856 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3857 |
(exit $ac_status); }; } && |
|
3858 |
{ ac_try='test -s conftest.$ac_objext' |
|
3859 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3860 |
(eval $ac_try) 2>&5 |
|
3861 |
ac_status=$? |
|
3862 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3863 |
(exit $ac_status); }; }; then |
|
3864 |
ac_cv_prog_cc_stdc=$ac_arg |
|
3865 |
break |
|
3866 |
else |
|
3867 |
echo "$as_me: failed program was:" >&5 |
|
3868 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3869 |
||
3870 |
fi |
|
3871 |
rm -f conftest.err conftest.$ac_objext |
|
3872 |
done |
|
3873 |
rm -f conftest.$ac_ext conftest.$ac_objext |
|
3874 |
CC=$ac_save_CC |
|
3875 |
||
3876 |
fi |
|
3877 |
||
3878 |
case "x$ac_cv_prog_cc_stdc" in |
|
3879 |
x|xno) |
|
3880 |
echo "$as_me:$LINENO: result: none needed" >&5 |
|
3881 |
echo "${ECHO_T}none needed" >&6 ;; |
|
3882 |
*) |
|
3883 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
|
3884 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
|
3885 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
|
3886 |
esac |
|
3887 |
||
3888 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
|
3889 |
# in C++ we need to declare it. In case someone uses the same compiler |
|
3890 |
# for both compiling C and C++ we need to have the C++ compiler decide |
|
3891 |
# the declaration of exit, since it's the most demanding environment. |
|
3892 |
cat >conftest.$ac_ext <<_ACEOF |
|
3893 |
#ifndef __cplusplus |
|
3894 |
choke me |
|
3895 |
#endif |
|
3896 |
_ACEOF |
|
3897 |
rm -f conftest.$ac_objext |
|
3898 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3899 |
(eval $ac_compile) 2>conftest.er1 |
|
3900 |
ac_status=$? |
|
3901 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3902 |
rm -f conftest.er1 |
|
3903 |
cat conftest.err >&5 |
|
3904 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3905 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
3906 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
3907 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3908 |
(eval $ac_try) 2>&5 |
|
3909 |
ac_status=$? |
|
3910 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3911 |
(exit $ac_status); }; } && |
|
3912 |
{ ac_try='test -s conftest.$ac_objext' |
|
3913 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3914 |
(eval $ac_try) 2>&5 |
|
3915 |
ac_status=$? |
|
3916 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3917 |
(exit $ac_status); }; }; then |
|
3918 |
for ac_declaration in \ |
|
3919 |
'' \ |
|
3920 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|
3921 |
'extern "C" void std::exit (int); using std::exit;' \ |
|
3922 |
'extern "C" void exit (int) throw ();' \ |
|
3923 |
'extern "C" void exit (int);' \ |
|
3924 |
'void exit (int);' |
|
3925 |
do |
|
3926 |
cat >conftest.$ac_ext <<_ACEOF |
|
3927 |
/* confdefs.h. */ |
|
3928 |
_ACEOF |
|
3929 |
cat confdefs.h >>conftest.$ac_ext |
|
3930 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3931 |
/* end confdefs.h. */ |
|
3932 |
$ac_declaration |
|
3933 |
#include <stdlib.h> |
|
3934 |
int |
|
3935 |
main () |
|
3936 |
{ |
|
3937 |
exit (42); |
|
3938 |
; |
|
3939 |
return 0; |
|
3940 |
} |
|
3941 |
_ACEOF |
|
3942 |
rm -f conftest.$ac_objext |
|
3943 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3944 |
(eval $ac_compile) 2>conftest.er1 |
|
3945 |
ac_status=$? |
|
3946 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3947 |
rm -f conftest.er1 |
|
3948 |
cat conftest.err >&5 |
|
3949 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3950 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
3951 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
3952 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3953 |
(eval $ac_try) 2>&5 |
|
3954 |
ac_status=$? |
|
3955 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3956 |
(exit $ac_status); }; } && |
|
3957 |
{ ac_try='test -s conftest.$ac_objext' |
|
3958 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3959 |
(eval $ac_try) 2>&5 |
|
3960 |
ac_status=$? |
|
3961 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3962 |
(exit $ac_status); }; }; then |
|
3963 |
: |
|
3964 |
else |
|
3965 |
echo "$as_me: failed program was:" >&5 |
|
3966 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3967 |
||
3968 |
continue |
|
3969 |
fi |
|
3970 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3971 |
cat >conftest.$ac_ext <<_ACEOF |
|
3972 |
/* confdefs.h. */ |
|
3973 |
_ACEOF |
|
3974 |
cat confdefs.h >>conftest.$ac_ext |
|
3975 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3976 |
/* end confdefs.h. */ |
|
3977 |
$ac_declaration |
|
3978 |
int |
|
3979 |
main () |
|
3980 |
{ |
|
3981 |
exit (42); |
|
3982 |
; |
|
3983 |
return 0; |
|
3984 |
} |
|
3985 |
_ACEOF |
|
3986 |
rm -f conftest.$ac_objext |
|
3987 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3988 |
(eval $ac_compile) 2>conftest.er1 |
|
3989 |
ac_status=$? |
|
3990 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3991 |
rm -f conftest.er1 |
|
3992 |
cat conftest.err >&5 |
|
3993 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3994 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
3995 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
3996 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3997 |
(eval $ac_try) 2>&5 |
|
3998 |
ac_status=$? |
|
3999 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4000 |
(exit $ac_status); }; } && |
|
4001 |
{ ac_try='test -s conftest.$ac_objext' |
|
4002 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4003 |
(eval $ac_try) 2>&5 |
|
4004 |
ac_status=$? |
|
4005 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4006 |
(exit $ac_status); }; }; then |
|
4007 |
break |
|
4008 |
else |
|
4009 |
echo "$as_me: failed program was:" >&5 |
|
4010 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4011 |
||
4012 |
fi |
|
4013 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4014 |
done |
|
4015 |
rm -f conftest* |
|
4016 |
if test -n "$ac_declaration"; then |
|
4017 |
echo '#ifdef __cplusplus' >>confdefs.h |
|
4018 |
echo $ac_declaration >>confdefs.h |
|
4019 |
echo '#endif' >>confdefs.h |
|
4020 |
fi |
|
4021 |
||
4022 |
else |
|
4023 |
echo "$as_me: failed program was:" >&5 |
|
4024 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4025 |
||
4026 |
fi |
|
4027 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4028 |
ac_ext=c |
|
4029 |
ac_cpp='$CPP $CPPFLAGS' |
|
4030 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4031 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4032 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4033 |
||
4034 |
depcc="$CC" am_compiler_list= |
|
4035 |
||
4036 |
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
|
4037 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
|
4038 |
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
|
4039 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4040 |
else |
|
4041 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
4042 |
# We make a subdir and do the tests there. Otherwise we can end up |
|
4043 |
# making bogus files that we don't know about and never remove. For |
|
4044 |
# instance it was reported that on HP-UX the gcc test will end up |
|
4045 |
# making a dummy file named `D' -- because `-MD' means `put the output |
|
4046 |
# in D'. |
|
4047 |
mkdir conftest.dir |
|
4048 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
4049 |
# using a relative directory. |
|
4050 |
cp "$am_depcomp" conftest.dir |
|
4051 |
cd conftest.dir |
|
4052 |
# We will build objects and dependencies in a subdirectory because |
|
4053 |
# it helps to detect inapplicable dependency modes. For instance |
|
4054 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
|
4055 |
# side effect of compilation, but ICC will put the dependencies in |
|
4056 |
# the current directory while Tru64 will put them in the object |
|
4057 |
# directory. |
|
4058 |
mkdir sub |
|
4059 |
||
4060 |
am_cv_CC_dependencies_compiler_type=none |
|
4061 |
if test "$am_compiler_list" = ""; then |
|
4062 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
4063 |
fi |
|
4064 |
for depmode in $am_compiler_list; do |
|
4065 |
# Setup a source with many dependencies, because some compilers |
|
4066 |
# like to wrap large dependency lists on column 80 (with \), and |
|
4067 |
# we should not choose a depcomp mode which is confused by this. |
|
4068 |
# |
|
4069 |
# We need to recreate these files for each test, as the compiler may |
|
4070 |
# overwrite some of them when testing with obscure command lines. |
|
4071 |
# This happens at least with the AIX C compiler. |
|
4072 |
: > sub/conftest.c |
|
4073 |
for i in 1 2 3 4 5 6; do |
|
4074 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
4075 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
4076 |
# Solaris 8's {/usr,}/bin/sh. |
|
4077 |
touch sub/conftst$i.h |
|
4078 |
done |
|
4079 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
4080 |
||
4081 |
case $depmode in |
|
4082 |
nosideeffect) |
|
4083 |
# after this tag, mechanisms are not by side-effect, so they'll |
|
4084 |
# only be used when explicitly requested |
|
4085 |
if test "x$enable_dependency_tracking" = xyes; then |
|
4086 |
continue |
|
4087 |
else |
|
4088 |
break |
|
4089 |
fi |
|
4090 |
;; |
|
4091 |
none) break ;; |
|
4092 |
esac |
|
4093 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
4094 |
# mode. It turns out that the SunPro C++ compiler does not properly |
|
4095 |
# handle `-M -o', and we need to detect this. |
|
4096 |
if depmode=$depmode \ |
|
4097 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
4098 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
4099 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
4100 |
>/dev/null 2>conftest.err && |
|
4101 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
4102 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
4103 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
4104 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
4105 |
# or remarks (even with -Werror). So we grep stderr for any message |
|
4106 |
# that says an option was ignored or not supported. |
|
4107 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
|
4108 |
# icc: Command line warning: ignoring option '-M'; no argument required |
|
4109 |
# The diagnosis changed in icc 8.0: |
|
4110 |
# icc: Command line remark: option '-MP' not supported |
|
4111 |
if (grep 'ignoring option' conftest.err || |
|
4112 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
4113 |
am_cv_CC_dependencies_compiler_type=$depmode |
|
4114 |
break |
|
4115 |
fi |
|
4116 |
fi |
|
4117 |
done |
|
4118 |
||
4119 |
cd .. |
|
4120 |
rm -rf conftest.dir |
|
4121 |
else |
|
4122 |
am_cv_CC_dependencies_compiler_type=none |
|
4123 |
fi |
|
4124 |
||
4125 |
fi |
|
4126 |
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
|
4127 |
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
|
4128 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
|
4129 |
||
4130 |
||
4131 |
||
4132 |
if |
|
4133 |
test "x$enable_dependency_tracking" != xno \ |
|
4134 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
|
4135 |
am__fastdepCC_TRUE= |
|
4136 |
am__fastdepCC_FALSE='#' |
|
4137 |
else |
|
4138 |
am__fastdepCC_TRUE='#' |
|
4139 |
am__fastdepCC_FALSE= |
|
4140 |
fi |
|
4141 |
||
4142 |
||
4143 |
# Find a good install program. We prefer a C program (faster), |
|
4144 |
# so one script is as good as another. But avoid the broken or |
|
4145 |
# incompatible versions: |
|
4146 |
# SysV /etc/install, /usr/sbin/install |
|
4147 |
# SunOS /usr/etc/install |
|
4148 |
# IRIX /sbin/install |
|
4149 |
# AIX /bin/install |
|
4150 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
|
4151 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
4152 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
4153 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
4154 |
# OS/2's system install, which has a completely different semantic |
|
4155 |
# ./install, which can be erroneously created by make from ./install.sh. |
|
4156 |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
|
4157 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
|
4158 |
if test -z "$INSTALL"; then |
|
4159 |
if test "${ac_cv_path_install+set}" = set; then |
|
4160 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4161 |
else |
|
4162 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4163 |
for as_dir in $PATH |
|
4164 |
do |
|
4165 |
IFS=$as_save_IFS |
|
4166 |
test -z "$as_dir" && as_dir=. |
|
4167 |
# Account for people who put trailing slashes in PATH elements. |
|
4168 |
case $as_dir/ in |
|
4169 |
./ | .// | /cC/* | \ |
|
4170 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|
4171 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
|
4172 |
/usr/ucb/* ) ;; |
|
4173 |
*) |
|
4174 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
|
4175 |
# Don't use installbsd from OSF since it installs stuff as root |
|
4176 |
# by default. |
|
4177 |
for ac_prog in ginstall scoinst install; do |
|
4178 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4179 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
|
4180 |
if test $ac_prog = install && |
|
4181 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
4182 |
# AIX install. It has an incompatible calling convention. |
|
4183 |
: |
|
4184 |
elif test $ac_prog = install && |
|
4185 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
4186 |
# program-specific install script used by HP pwplus--don't use. |
|
4187 |
: |
|
4188 |
else |
|
4189 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|
4190 |
break 3 |
|
4191 |
fi |
|
4192 |
fi |
|
4193 |
done |
|
4194 |
done |
|
4195 |
;; |
|
4196 |
esac |
|
4197 |
done |
|
4198 |
||
4199 |
||
4200 |
fi |
|
4201 |
if test "${ac_cv_path_install+set}" = set; then |
|
4202 |
INSTALL=$ac_cv_path_install |
|
4203 |
else |
|
4204 |
# As a last resort, use the slow shell script. We don't cache a |
|
4205 |
# path for INSTALL within a source directory, because that will |
|
4206 |
# break other packages using the cache if that directory is |
|
4207 |
# removed, or if the path is relative. |
|
4208 |
INSTALL=$ac_install_sh |
|
4209 |
fi |
|
4210 |
fi |
|
4211 |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
|
4212 |
echo "${ECHO_T}$INSTALL" >&6 |
|
4213 |
||
4214 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
4215 |
# It thinks the first close brace ends the variable substitution. |
|
4216 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
4217 |
||
4218 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|
4219 |
||
4220 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
4221 |
||
4222 |
ac_ext=c |
|
4223 |
ac_cpp='$CPP $CPPFLAGS' |
|
4224 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4225 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4226 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4227 |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
|
4228 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
|
4229 |
# On Suns, sometimes $CPP names a directory. |
|
4230 |
if test -n "$CPP" && test -d "$CPP"; then |
|
4231 |
CPP= |
|
4232 |
fi |
|
4233 |
if test -z "$CPP"; then |
|
4234 |
if test "${ac_cv_prog_CPP+set}" = set; then |
|
4235 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4236 |
else |
|
4237 |
# Double quotes because CPP needs to be expanded |
|
4238 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
4239 |
do |
|
4240 |
ac_preproc_ok=false |
|
4241 |
for ac_c_preproc_warn_flag in '' yes |
|
4242 |
do |
|
4243 |
# Use a header file that comes with gcc, so configuring glibc |
|
4244 |
# with a fresh cross-compiler works. |
|
4245 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
4246 |
# <limits.h> exists even on freestanding compilers. |
|
4247 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
4248 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
4249 |
cat >conftest.$ac_ext <<_ACEOF |
|
4250 |
/* confdefs.h. */ |
|
4251 |
_ACEOF |
|
4252 |
cat confdefs.h >>conftest.$ac_ext |
|
4253 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4254 |
/* end confdefs.h. */ |
|
4255 |
#ifdef __STDC__ |
|
4256 |
# include <limits.h> |
|
4257 |
#else |
|
4258 |
# include <assert.h> |
|
4259 |
#endif |
|
4260 |
Syntax error |
|
4261 |
_ACEOF |
|
4262 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
4263 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
4264 |
ac_status=$? |
|
4265 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4266 |
rm -f conftest.er1 |
|
4267 |
cat conftest.err >&5 |
|
4268 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4269 |
(exit $ac_status); } >/dev/null; then |
|
4270 |
if test -s conftest.err; then |
|
4271 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
4272 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
4273 |
else |
|
4274 |
ac_cpp_err= |
|
4275 |
fi |
|
4276 |
else |
|
4277 |
ac_cpp_err=yes |
|
4278 |
fi |
|
4279 |
if test -z "$ac_cpp_err"; then |
|
4280 |
: |
|
4281 |
else |
|
4282 |
echo "$as_me: failed program was:" >&5 |
|
4283 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4284 |
||
4285 |
# Broken: fails on valid input. |
|
4286 |
continue |
|
4287 |
fi |
|
4288 |
rm -f conftest.err conftest.$ac_ext |
|
4289 |
||
4290 |
# OK, works on sane cases. Now check whether non-existent headers |
|
4291 |
# can be detected and how. |
|
4292 |
cat >conftest.$ac_ext <<_ACEOF |
|
4293 |
/* confdefs.h. */ |
|
4294 |
_ACEOF |
|
4295 |
cat confdefs.h >>conftest.$ac_ext |
|
4296 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4297 |
/* end confdefs.h. */ |
|
4298 |
#include <ac_nonexistent.h> |
|
4299 |
_ACEOF |
|
4300 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
4301 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
4302 |
ac_status=$? |
|
4303 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4304 |
rm -f conftest.er1 |
|
4305 |
cat conftest.err >&5 |
|
4306 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4307 |
(exit $ac_status); } >/dev/null; then |
|
4308 |
if test -s conftest.err; then |
|
4309 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
4310 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
4311 |
else |
|
4312 |
ac_cpp_err= |
|
4313 |
fi |
|
4314 |
else |
|
4315 |
ac_cpp_err=yes |
|
4316 |
fi |
|
4317 |
if test -z "$ac_cpp_err"; then |
|
4318 |
# Broken: success on invalid input. |
|
4319 |
continue |
|
4320 |
else |
|
4321 |
echo "$as_me: failed program was:" >&5 |
|
4322 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4323 |
||
4324 |
# Passes both tests. |
|
4325 |
ac_preproc_ok=: |
|
4326 |
break |
|
4327 |
fi |
|
4328 |
rm -f conftest.err conftest.$ac_ext |
|
4329 |
||
4330 |
done |
|
4331 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
4332 |
rm -f conftest.err conftest.$ac_ext |
|
4333 |
if $ac_preproc_ok; then |
|
4334 |
break |
|
4335 |
fi |
|
4336 |
||
4337 |
done |
|
4338 |
ac_cv_prog_CPP=$CPP |
|
4339 |
||
4340 |
fi |
|
4341 |
CPP=$ac_cv_prog_CPP |
|
4342 |
else |
|
4343 |
ac_cv_prog_CPP=$CPP |
|
4344 |
fi |
|
4345 |
echo "$as_me:$LINENO: result: $CPP" >&5 |
|
4346 |
echo "${ECHO_T}$CPP" >&6 |
|
4347 |
ac_preproc_ok=false |
|
4348 |
for ac_c_preproc_warn_flag in '' yes |
|
4349 |
do |
|
4350 |
# Use a header file that comes with gcc, so configuring glibc |
|
4351 |
# with a fresh cross-compiler works. |
|
4352 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
4353 |
# <limits.h> exists even on freestanding compilers. |
|
4354 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
4355 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
4356 |
cat >conftest.$ac_ext <<_ACEOF |
|
4357 |
/* confdefs.h. */ |
|
4358 |
_ACEOF |
|
4359 |
cat confdefs.h >>conftest.$ac_ext |
|
4360 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4361 |
/* end confdefs.h. */ |
|
4362 |
#ifdef __STDC__ |
|
4363 |
# include <limits.h> |
|
4364 |
#else |
|
4365 |
# include <assert.h> |
|
4366 |
#endif |
|
4367 |
Syntax error |
|
4368 |
_ACEOF |
|
4369 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
4370 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
4371 |
ac_status=$? |
|
4372 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4373 |
rm -f conftest.er1 |
|
4374 |
cat conftest.err >&5 |
|
4375 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4376 |
(exit $ac_status); } >/dev/null; then |
|
4377 |
if test -s conftest.err; then |
|
4378 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
4379 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
4380 |
else |
|
4381 |
ac_cpp_err= |
|
4382 |
fi |
|
4383 |
else |
|
4384 |
ac_cpp_err=yes |
|
4385 |
fi |
|
4386 |
if test -z "$ac_cpp_err"; then |
|
4387 |
: |
|
4388 |
else |
|
4389 |
echo "$as_me: failed program was:" >&5 |
|
4390 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4391 |
||
4392 |
# Broken: fails on valid input. |
|
4393 |
continue |
|
4394 |
fi |
|
4395 |
rm -f conftest.err conftest.$ac_ext |
|
4396 |
||
4397 |
# OK, works on sane cases. Now check whether non-existent headers |
|
4398 |
# can be detected and how. |
|
4399 |
cat >conftest.$ac_ext <<_ACEOF |
|
4400 |
/* confdefs.h. */ |
|
4401 |
_ACEOF |
|
4402 |
cat confdefs.h >>conftest.$ac_ext |
|
4403 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4404 |
/* end confdefs.h. */ |
|
4405 |
#include <ac_nonexistent.h> |
|
4406 |
_ACEOF |
|
4407 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
4408 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
4409 |
ac_status=$? |
|
4410 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4411 |
rm -f conftest.er1 |
|
4412 |
cat conftest.err >&5 |
|
4413 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4414 |
(exit $ac_status); } >/dev/null; then |
|
4415 |
if test -s conftest.err; then |
|
4416 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
4417 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
4418 |
else |
|
4419 |
ac_cpp_err= |
|
4420 |
fi |
|
4421 |
else |
|
4422 |
ac_cpp_err=yes |
|
4423 |
fi |
|
4424 |
if test -z "$ac_cpp_err"; then |
|
4425 |
# Broken: success on invalid input. |
|
4426 |
continue |
|
4427 |
else |
|
4428 |
echo "$as_me: failed program was:" >&5 |
|
4429 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4430 |
||
4431 |
# Passes both tests. |
|
4432 |
ac_preproc_ok=: |
|
4433 |
break |
|
4434 |
fi |
|
4435 |
rm -f conftest.err conftest.$ac_ext |
|
4436 |
||
4437 |
done |
|
4438 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
4439 |
rm -f conftest.err conftest.$ac_ext |
|
4440 |
if $ac_preproc_ok; then |
|
4441 |
: |
|
4442 |
else |
|
4443 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
|
4444 |
See \`config.log' for more details." >&5 |
|
4445 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
4446 |
See \`config.log' for more details." >&2;} |
|
4447 |
{ (exit 1); exit 1; }; } |
|
4448 |
fi |
|
4449 |
||
4450 |
ac_ext=c |
|
4451 |
ac_cpp='$CPP $CPPFLAGS' |
|
4452 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4453 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4454 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4455 |
||
4456 |
# Extract the first word of "rm", so it can be a program name with args. |
|
4457 |
set dummy rm; ac_word=$2 |
|
4458 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
4459 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
4460 |
if test "${ac_cv_path_RM+set}" = set; then |
|
4461 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4462 |
else |
|
4463 |
case $RM in |
|
4464 |
[\\/]* | ?:[\\/]*) |
|
4465 |
ac_cv_path_RM="$RM" # Let the user override the test with a path. |
|
4466 |
;; |
|
4467 |
*) |
|
4468 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4469 |
for as_dir in $PATH |
|
4470 |
do |
|
4471 |
IFS=$as_save_IFS |
|
4472 |
test -z "$as_dir" && as_dir=. |
|
4473 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4474 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4475 |
ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
|
4476 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4477 |
break 2 |
|
4478 |
fi |
|
4479 |
done |
|
4480 |
done |
|
4481 |
||
4482 |
test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm" |
|
4483 |
;; |
|
4484 |
esac |
|
4485 |
fi |
|
4486 |
RM=$ac_cv_path_RM |
|
4487 |
||
4488 |
if test -n "$RM"; then |
|
4489 |
echo "$as_me:$LINENO: result: $RM" >&5 |
|
4490 |
echo "${ECHO_T}$RM" >&6 |
|
4491 |
else |
|
4492 |
echo "$as_me:$LINENO: result: no" >&5 |
|
4493 |
echo "${ECHO_T}no" >&6 |
|
4494 |
fi |
|
4495 |
||
4496 |
# Extract the first word of "mv", so it can be a program name with args. |
|
4497 |
set dummy mv; ac_word=$2 |
|
4498 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
4499 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
4500 |
if test "${ac_cv_path_MV+set}" = set; then |
|
4501 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4502 |
else |
|
4503 |
case $MV in |
|
4504 |
[\\/]* | ?:[\\/]*) |
|
4505 |
ac_cv_path_MV="$MV" # Let the user override the test with a path. |
|
4506 |
;; |
|
4507 |
*) |
|
4508 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4509 |
for as_dir in $PATH |
|
4510 |
do |
|
4511 |
IFS=$as_save_IFS |
|
4512 |
test -z "$as_dir" && as_dir=. |
|
4513 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4514 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4515 |
ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
|
4516 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4517 |
break 2 |
|
4518 |
fi |
|
4519 |
done |
|
4520 |
done |
|
4521 |
||
4522 |
test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv" |
|
4523 |
;; |
|
4524 |
esac |
|
4525 |
fi |
|
4526 |
MV=$ac_cv_path_MV |
|
4527 |
||
4528 |
if test -n "$MV"; then |
|
4529 |
echo "$as_me:$LINENO: result: $MV" >&5 |
|
4530 |
echo "${ECHO_T}$MV" >&6 |
|
4531 |
else |
|
4532 |
echo "$as_me:$LINENO: result: no" >&5 |
|
4533 |
echo "${ECHO_T}no" >&6 |
|
4534 |
fi |
|
4535 |
||
4536 |
# Extract the first word of "tar", so it can be a program name with args. |
|
4537 |
set dummy tar; ac_word=$2 |
|
4538 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
4539 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
4540 |
if test "${ac_cv_path_TAR+set}" = set; then |
|
4541 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4542 |
else |
|
4543 |
case $TAR in |
|
4544 |
[\\/]* | ?:[\\/]*) |
|
4545 |
ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
|
4546 |
;; |
|
4547 |
*) |
|
4548 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4549 |
for as_dir in $PATH |
|
4550 |
do |
|
4551 |
IFS=$as_save_IFS |
|
4552 |
test -z "$as_dir" && as_dir=. |
|
4553 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4554 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4555 |
ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
|
4556 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4557 |
break 2 |
|
4558 |
fi |
|
4559 |
done |
|
4560 |
done |
|
4561 |
||
4562 |
test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar" |
|
4563 |
;; |
|
4564 |
esac |
|
4565 |
fi |
|
4566 |
TAR=$ac_cv_path_TAR |
|
4567 |
||
4568 |
if test -n "$TAR"; then |
|
4569 |
echo "$as_me:$LINENO: result: $TAR" >&5 |
|
4570 |
echo "${ECHO_T}$TAR" >&6 |
|
4571 |
else |
|
4572 |
echo "$as_me:$LINENO: result: no" >&5 |
|
4573 |
echo "${ECHO_T}no" >&6 |
|
4574 |
fi |
|
4575 |
||
4576 |
||
4577 |
||
4578 |
echo "$as_me:$LINENO: checking for egrep" >&5 |
|
4579 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|
4580 |
if test "${ac_cv_prog_egrep+set}" = set; then |
|
4581 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4582 |
else |
|
4583 |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
4584 |
then ac_cv_prog_egrep='grep -E' |
|
4585 |
else ac_cv_prog_egrep='egrep' |
|
4586 |
fi |
|
4587 |
fi |
|
4588 |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
4589 |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
4590 |
EGREP=$ac_cv_prog_egrep |
|
4591 |
||
4592 |
||
4593 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
4594 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
4595 |
if test "${ac_cv_header_stdc+set}" = set; then |
|
4596 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4597 |
else |
|
4598 |
cat >conftest.$ac_ext <<_ACEOF |
|
4599 |
/* confdefs.h. */ |
|
4600 |
_ACEOF |
|
4601 |
cat confdefs.h >>conftest.$ac_ext |
|
4602 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4603 |
/* end confdefs.h. */ |
|
4604 |
#include <stdlib.h> |
|
4605 |
#include <stdarg.h> |
|
4606 |
#include <string.h> |
|
4607 |
#include <float.h> |
|
4608 |
||
4609 |
int |
|
4610 |
main () |
|
4611 |
{ |
|
4612 |
||
4613 |
; |
|
4614 |
return 0; |
|
4615 |
} |
|
4616 |
_ACEOF |
|
4617 |
rm -f conftest.$ac_objext |
|
4618 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
4619 |
(eval $ac_compile) 2>conftest.er1 |
|
4620 |
ac_status=$? |
|
4621 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4622 |
rm -f conftest.er1 |
|
4623 |
cat conftest.err >&5 |
|
4624 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4625 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
4626 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
4627 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4628 |
(eval $ac_try) 2>&5 |
|
4629 |
ac_status=$? |
|
4630 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4631 |
(exit $ac_status); }; } && |
|
4632 |
{ ac_try='test -s conftest.$ac_objext' |
|
4633 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4634 |
(eval $ac_try) 2>&5 |
|
4635 |
ac_status=$? |
|
4636 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4637 |
(exit $ac_status); }; }; then |
|
4638 |
ac_cv_header_stdc=yes |
|
4639 |
else |
|
4640 |
echo "$as_me: failed program was:" >&5 |
|
4641 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4642 |
||
4643 |
ac_cv_header_stdc=no |
|
4644 |
fi |
|
4645 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4646 |
||
4647 |
if test $ac_cv_header_stdc = yes; then |
|
4648 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
4649 |
cat >conftest.$ac_ext <<_ACEOF |
|
4650 |
/* confdefs.h. */ |
|
4651 |
_ACEOF |
|
4652 |
cat confdefs.h >>conftest.$ac_ext |
|
4653 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4654 |
/* end confdefs.h. */ |
|
4655 |
#include <string.h> |
|
4656 |
||
4657 |
_ACEOF |
|
4658 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
4659 |
$EGREP "memchr" >/dev/null 2>&1; then |
|
4660 |
: |
|
4661 |
else |
|
4662 |
ac_cv_header_stdc=no |
|
4663 |
fi |
|
4664 |
rm -f conftest* |
|
4665 |
||
4666 |
fi |
|
4667 |
||
4668 |
if test $ac_cv_header_stdc = yes; then |
|
4669 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
4670 |
cat >conftest.$ac_ext <<_ACEOF |
|
4671 |
/* confdefs.h. */ |
|
4672 |
_ACEOF |
|
4673 |
cat confdefs.h >>conftest.$ac_ext |
|
4674 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4675 |
/* end confdefs.h. */ |
|
4676 |
#include <stdlib.h> |
|
4677 |
||
4678 |
_ACEOF |
|
4679 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
4680 |
$EGREP "free" >/dev/null 2>&1; then |
|
4681 |
: |
|
4682 |
else |
|
4683 |
ac_cv_header_stdc=no |
|
4684 |
fi |
|
4685 |
rm -f conftest* |
|
4686 |
||
4687 |
fi |
|
4688 |
||
4689 |
if test $ac_cv_header_stdc = yes; then |
|
4690 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
4691 |
if test "$cross_compiling" = yes; then |
|
4692 |
: |
|
4693 |
else |
|
4694 |
cat >conftest.$ac_ext <<_ACEOF |
|
4695 |
/* confdefs.h. */ |
|
4696 |
_ACEOF |
|
4697 |
cat confdefs.h >>conftest.$ac_ext |
|
4698 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4699 |
/* end confdefs.h. */ |
|
4700 |
#include <ctype.h> |
|
4701 |
#if ((' ' & 0x0FF) == 0x020) |
|
4702 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
4703 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
4704 |
#else |
|
4705 |
# define ISLOWER(c) \ |
|
4706 |
(('a' <= (c) && (c) <= 'i') \ |
|
4707 |
|| ('j' <= (c) && (c) <= 'r') \ |
|
4708 |
|| ('s' <= (c) && (c) <= 'z')) |
|
4709 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
4710 |
#endif |
|
4711 |
||
4712 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
4713 |
int |
|
4714 |
main () |
|
4715 |
{ |
|
4716 |
int i; |
|
4717 |
for (i = 0; i < 256; i++) |
|
4718 |
if (XOR (islower (i), ISLOWER (i)) |
|
4719 |
|| toupper (i) != TOUPPER (i)) |
|
4720 |
exit(2); |
|
4721 |
exit (0); |
|
4722 |
} |
|
4723 |
_ACEOF |
|
4724 |
rm -f conftest$ac_exeext |
|
4725 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
4726 |
(eval $ac_link) 2>&5 |
|
4727 |
ac_status=$? |
|
4728 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4729 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
4730 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4731 |
(eval $ac_try) 2>&5 |
|
4732 |
ac_status=$? |
|
4733 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4734 |
(exit $ac_status); }; }; then |
|
4735 |
: |
|
4736 |
else |
|
4737 |
echo "$as_me: program exited with status $ac_status" >&5 |
|
4738 |
echo "$as_me: failed program was:" >&5 |
|
4739 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4740 |
||
4741 |
( exit $ac_status ) |
|
4742 |
ac_cv_header_stdc=no |
|
4743 |
fi |
|
4744 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
4745 |
fi |
|
4746 |
fi |
|
4747 |
fi |
|
4748 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
4749 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
4750 |
if test $ac_cv_header_stdc = yes; then |
|
4751 |
||
4752 |
cat >>confdefs.h <<\_ACEOF |
|
4753 |
#define STDC_HEADERS 1 |
|
4754 |
_ACEOF |
|
4755 |
||
4756 |
fi |
|
4757 |
||
4758 |
# Check whether --enable-shared or --disable-shared was given. |
|
4759 |
if test "${enable_shared+set}" = set; then |
|
4760 |
enableval="$enable_shared" |
|
4761 |
p=${PACKAGE-default} |
|
4762 |
case $enableval in |
|
4763 |
yes) enable_shared=yes ;; |
|
4764 |
no) enable_shared=no ;; |
|
4765 |
*) |
|
4766 |
enable_shared=no |
|
4767 |
# Look at the argument we got. We use all the common list separators. |
|
4768 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
4769 |
for pkg in $enableval; do |
|
4770 |
IFS="$lt_save_ifs" |
|
4771 |
if test "X$pkg" = "X$p"; then |
|
4772 |
enable_shared=yes |
|
4773 |
fi |
|
4774 |
done |
|
4775 |
IFS="$lt_save_ifs" |
|
4776 |
;; |
|
4777 |
esac |
|
4778 |
else |
|
4779 |
enable_shared=yes |
|
4780 |
fi; |
|
4781 |
||
4782 |
# Check whether --enable-static or --disable-static was given. |
|
4783 |
if test "${enable_static+set}" = set; then |
|
4784 |
enableval="$enable_static" |
|
4785 |
p=${PACKAGE-default} |
|
4786 |
case $enableval in |
|
4787 |
yes) enable_static=yes ;; |
|
4788 |
no) enable_static=no ;; |
|
4789 |
*) |
|
4790 |
enable_static=no |
|
4791 |
# Look at the argument we got. We use all the common list separators. |
|
4792 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
4793 |
for pkg in $enableval; do |
|
4794 |
IFS="$lt_save_ifs" |
|
4795 |
if test "X$pkg" = "X$p"; then |
|
4796 |
enable_static=yes |
|
4797 |
fi |
|
4798 |
done |
|
4799 |
IFS="$lt_save_ifs" |
|
4800 |
;; |
|
4801 |
esac |
|
4802 |
else |
|
4803 |
enable_static=yes |
|
4804 |
fi; |
|
4805 |
||
4806 |
# Check whether --enable-fast-install or --disable-fast-install was given. |
|
4807 |
if test "${enable_fast_install+set}" = set; then |
|
4808 |
enableval="$enable_fast_install" |
|
4809 |
p=${PACKAGE-default} |
|
4810 |
case $enableval in |
|
4811 |
yes) enable_fast_install=yes ;; |
|
4812 |
no) enable_fast_install=no ;; |
|
4813 |
*) |
|
4814 |
enable_fast_install=no |
|
4815 |
# Look at the argument we got. We use all the common list separators. |
|
4816 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
4817 |
for pkg in $enableval; do |
|
4818 |
IFS="$lt_save_ifs" |
|
4819 |
if test "X$pkg" = "X$p"; then |
|
4820 |
enable_fast_install=yes |
|
4821 |
fi |
|
4822 |
done |
|
4823 |
IFS="$lt_save_ifs" |
|
4824 |
;; |
|
4825 |
esac |
|
4826 |
else |
|
4827 |
enable_fast_install=yes |
|
4828 |
fi; |
|
4829 |
||
4830 |
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
|
4831 |
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
|
4832 |
if test "${lt_cv_path_SED+set}" = set; then |
|
4833 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4834 |
else |
|
4835 |
# Loop through the user's path and test for sed and gsed. |
|
4836 |
# Then use that list of sed's as ones to test for truncation. |
|
4837 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4838 |
for as_dir in $PATH |
|
4839 |
do |
|
4840 |
IFS=$as_save_IFS |
|
4841 |
test -z "$as_dir" && as_dir=. |
|
4842 |
for lt_ac_prog in sed gsed; do |
|
4843 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4844 |
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
|
4845 |
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
|
4846 |
fi |
|
4847 |
done |
|
4848 |
done |
|
4849 |
done |
|
4850 |
lt_ac_max=0 |
|
4851 |
lt_ac_count=0 |
|
4852 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
|
4853 |
# along with /bin/sed that truncates output. |
|
4854 |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
|
4855 |
test ! -f $lt_ac_sed && break |
|
4856 |
cat /dev/null > conftest.in |
|
4857 |
lt_ac_count=0 |
|
4858 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
|
4859 |
# Check for GNU sed and select it if it is found. |
|
4860 |
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
|
4861 |
lt_cv_path_SED=$lt_ac_sed |
|
4862 |
break |
|
4863 |
fi |
|
4864 |
while true; do |
|
4865 |
cat conftest.in conftest.in >conftest.tmp |
|
4866 |
mv conftest.tmp conftest.in |
|
4867 |
cp conftest.in conftest.nl |
|
4868 |
echo >>conftest.nl |
|
4869 |
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
|
4870 |
cmp -s conftest.out conftest.nl || break |
|
4871 |
# 10000 chars as input seems more than enough |
|
4872 |
test $lt_ac_count -gt 10 && break |
|
4873 |
lt_ac_count=`expr $lt_ac_count + 1` |
|
4874 |
if test $lt_ac_count -gt $lt_ac_max; then |
|
4875 |
lt_ac_max=$lt_ac_count |
|
4876 |
lt_cv_path_SED=$lt_ac_sed |
|
4877 |
fi |
|
4878 |
done |
|
4879 |
done |
|
4880 |
SED=$lt_cv_path_SED |
|
4881 |
||
4882 |
fi |
|
4883 |
||
4884 |
echo "$as_me:$LINENO: result: $SED" >&5 |
|
4885 |
echo "${ECHO_T}$SED" >&6 |
|
4886 |
||
4887 |
||
4888 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
4889 |
if test "${with_gnu_ld+set}" = set; then |
|
4890 |
withval="$with_gnu_ld" |
|
4891 |
test "$withval" = no || with_gnu_ld=yes |
|
4892 |
else |
|
4893 |
with_gnu_ld=no |
|
4894 |
fi; |
|
4895 |
ac_prog=ld |
|
4896 |
if test "$GCC" = yes; then |
|
4897 |
# Check if gcc -print-prog-name=ld gives a path. |
|
4898 |
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
|
4899 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
|
4900 |
case $host in |
|
4901 |
*-*-mingw*) |
|
4902 |
# gcc leaves a trailing carriage return which upsets mingw |
|
4903 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
4904 |
*) |
|
4905 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
4906 |
esac |
|
4907 |
case $ac_prog in |
|
4908 |
# Accept absolute paths. |
|
4909 |
[\\/]* | ?:[\\/]*) |
|
4910 |
re_direlt='/[^/][^/]*/\.\./' |
|
4911 |
# Canonicalize the pathname of ld |
|
4912 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
4913 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
4914 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
4915 |
done |
|
4916 |
test -z "$LD" && LD="$ac_prog" |
|
4917 |
;; |
|
4918 |
"") |
|
4919 |
# If it fails, then pretend we aren't using GCC. |
|
4920 |
ac_prog=ld |
|
4921 |
;; |
|
4922 |
*) |
|
4923 |
# If it is relative, then search for the first ld in PATH. |
|
4924 |
with_gnu_ld=unknown |
|
4925 |
;; |
|
4926 |
esac |
|
4927 |
elif test "$with_gnu_ld" = yes; then |
|
4928 |
echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
4929 |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
|
4930 |
else |
|
4931 |
echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
4932 |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
4933 |
fi |
|
4934 |
if test "${lt_cv_path_LD+set}" = set; then |
|
4935 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4936 |
else |
|
4937 |
if test -z "$LD"; then |
|
4938 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
4939 |
for ac_dir in $PATH; do |
|
4940 |
IFS="$lt_save_ifs" |
|
4941 |
test -z "$ac_dir" && ac_dir=. |
|
4942 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
4943 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
|
4944 |
# Check to see if the program is GNU ld. I'd rather use --version, |
|
4945 |
# but apparently some GNU ld's only accept -v. |
|
4946 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
|
4947 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
4948 |
*GNU* | *'with BFD'*) |
|
4949 |
test "$with_gnu_ld" != no && break |
|
4950 |
;; |
|
4951 |
*) |
|
4952 |
test "$with_gnu_ld" != yes && break |
|
4953 |
;; |
|
4954 |
esac |
|
4955 |
fi |
|
4956 |
done |
|
4957 |
IFS="$lt_save_ifs" |
|
4958 |
else |
|
4959 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
4960 |
fi |
|
4961 |
fi |
|
4962 |
||
4963 |
LD="$lt_cv_path_LD" |
|
4964 |
if test -n "$LD"; then |
|
4965 |
echo "$as_me:$LINENO: result: $LD" >&5 |
|
4966 |
echo "${ECHO_T}$LD" >&6 |
|
4967 |
else |
|
4968 |
echo "$as_me:$LINENO: result: no" >&5 |
|
4969 |
echo "${ECHO_T}no" >&6 |
|
4970 |
fi |
|
4971 |
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
4972 |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
4973 |
{ (exit 1); exit 1; }; } |
|
4974 |
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
4975 |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
4976 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
4977 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4978 |
else |
|
4979 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
4980 |
case `$LD -v 2>&1 </dev/null` in |
|
4981 |
*GNU* | *'with BFD'*) |
|
4982 |
lt_cv_prog_gnu_ld=yes |
|
4983 |
;; |
|
4984 |
*) |
|
4985 |
lt_cv_prog_gnu_ld=no |
|
4986 |
;; |
|
4987 |
esac |
|
4988 |
fi |
|
4989 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
4990 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
4991 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
|
4992 |
||
4993 |
||
4994 |
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
|
4995 |
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
|
4996 |
if test "${lt_cv_ld_reload_flag+set}" = set; then |
|
4997 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4998 |
else |
|
4999 |
lt_cv_ld_reload_flag='-r' |
|
5000 |
fi |
|
5001 |
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
|
5002 |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
|
5003 |
reload_flag=$lt_cv_ld_reload_flag |
|
5004 |
case $reload_flag in |
|
5005 |
"" | " "*) ;; |
|
5006 |
*) reload_flag=" $reload_flag" ;; |
|
5007 |
esac |
|
5008 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
5009 |
||
5010 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
|
5011 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
|
5012 |
if test "${lt_cv_path_NM+set}" = set; then |
|
5013 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5014 |
else |
|
5015 |
if test -n "$NM"; then |
|
5016 |
# Let the user override the test. |
|
5017 |
lt_cv_path_NM="$NM" |
|
5018 |
else |
|
5019 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
5020 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
|
5021 |
IFS="$lt_save_ifs" |
|
5022 |
test -z "$ac_dir" && ac_dir=. |
|
5023 |
tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
|
5024 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
|
5025 |
# Check to see if the nm accepts a BSD-compat flag. |
|
5026 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
5027 |
# nm: unknown option "B" ignored |
|
5028 |
# Tru64's nm complains that /dev/null is an invalid object file |
|
5029 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
|
5030 |
*/dev/null* | *'Invalid file or object type'*) |
|
5031 |
lt_cv_path_NM="$tmp_nm -B" |
|
5032 |
break |
|
5033 |
;; |
|
5034 |
*) |
|
5035 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
|
5036 |
*/dev/null*) |
|
5037 |
lt_cv_path_NM="$tmp_nm -p" |
|
5038 |
break |
|
5039 |
;; |
|
5040 |
*) |
|
5041 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
5042 |
continue # so that we can try to find one that supports BSD flags |
|
5043 |
;; |
|
5044 |
esac |
|
5045 |
esac |
|
5046 |
fi |
|
5047 |
done |
|
5048 |
IFS="$lt_save_ifs" |
|
5049 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
|
5050 |
fi |
|
5051 |
fi |
|
5052 |
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
|
5053 |
echo "${ECHO_T}$lt_cv_path_NM" >&6 |
|
5054 |
NM="$lt_cv_path_NM" |
|
5055 |
||
5056 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
5057 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
|
5058 |
LN_S=$as_ln_s |
|
5059 |
if test "$LN_S" = "ln -s"; then |
|
5060 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5061 |
echo "${ECHO_T}yes" >&6 |
|
5062 |
else |
|
5063 |
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
5064 |
echo "${ECHO_T}no, using $LN_S" >&6 |
|
5065 |
fi |
|
5066 |
||
5067 |
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
|
5068 |
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
|
5069 |
if test "${lt_cv_deplibs_check_method+set}" = set; then |
|
5070 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5071 |
else |
|
5072 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
5073 |
lt_cv_file_magic_test_file= |
|
5074 |
lt_cv_deplibs_check_method='unknown' |
|
5075 |
# Need to set the preceding variable on all platforms that support |
|
5076 |
# interlibrary dependencies. |
|
5077 |
# 'none' -- dependencies not supported. |
|
5078 |
# `unknown' -- same as none, but documents that we really don't know. |
|
5079 |
# 'pass_all' -- all dependencies passed with no checks. |
|
5080 |
# 'test_compile' -- check by making test program. |
|
5081 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
|
5082 |
# which responds to the $file_magic_cmd with a given extended regex. |
|
5083 |
# If you have `file' or equivalent on your system and you're not sure |
|
5084 |
# whether `pass_all' will *always* work, you probably want this one. |
|
5085 |
||
5086 |
case $host_os in |
|
5087 |
aix4* | aix5*) |
|
5088 |
lt_cv_deplibs_check_method=pass_all |
|
5089 |
;; |
|
5090 |
||
5091 |
beos*) |
|
5092 |
lt_cv_deplibs_check_method=pass_all |
|
5093 |
;; |
|
5094 |
||
5095 |
bsdi4*) |
|
5096 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
5097 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
5098 |
lt_cv_file_magic_test_file=/shlib/libc.so |
|
5099 |
;; |
|
5100 |
||
5101 |
cygwin*) |
|
5102 |
# func_win32_libid is a shell function defined in ltmain.sh |
|
5103 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
5104 |
lt_cv_file_magic_cmd='func_win32_libid' |
|
5105 |
;; |
|
5106 |
||
5107 |
mingw* | pw32*) |
|
5108 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
|
5109 |
# func_win32_libid shell function, so use a weaker test based on 'objdump'. |
|
5110 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
5111 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
5112 |
;; |
|
5113 |
||
5114 |
darwin* | rhapsody*) |
|
5115 |
lt_cv_deplibs_check_method=pass_all |
|
5116 |
;; |
|
5117 |
||
5118 |
freebsd* | kfreebsd*-gnu) |
|
5119 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
5120 |
case $host_cpu in |
|
5121 |
i*86 ) |
|
5122 |
# Not sure whether the presence of OpenBSD here was a mistake. |
|
5123 |
# Let's accept both of them until this is cleared up. |
|
5124 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
|
5125 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
5126 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
5127 |
;; |
|
5128 |
esac |
|
5129 |
else |
|
5130 |
lt_cv_deplibs_check_method=pass_all |
|
5131 |
fi |
|
5132 |
;; |
|
5133 |
||
5134 |
gnu*) |
|
5135 |
lt_cv_deplibs_check_method=pass_all |
|
5136 |
;; |
|
5137 |
||
5138 |
hpux10.20* | hpux11*) |
|
5139 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
5140 |
case "$host_cpu" in |
|
5141 |
ia64*) |
|
5142 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
|
5143 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
|
5144 |
;; |
|
5145 |
hppa*64*) |
|
5146 |
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]' |
|
5147 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
|
5148 |
;; |
|
5149 |
*) |
|
5150 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
5151 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
5152 |
;; |
|
5153 |
esac |
|
5154 |
;; |
|
5155 |
||
5156 |
irix5* | irix6* | nonstopux*) |
|
5157 |
case $LD in |
|
5158 |
*-32|*"-32 ") libmagic=32-bit;; |
|
5159 |
*-n32|*"-n32 ") libmagic=N32;; |
|
5160 |
*-64|*"-64 ") libmagic=64-bit;; |
|
5161 |
*) libmagic=never-match;; |
|
5162 |
esac |
|
5163 |
lt_cv_deplibs_check_method=pass_all |
|
5164 |
;; |
|
5165 |
||
5166 |
# This must be Linux ELF. |
|
5167 |
linux*) |
|
5168 |
lt_cv_deplibs_check_method=pass_all |
|
5169 |
;; |
|
5170 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
5171 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
5172 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
5173 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
5174 |
else |
|
5175 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
|
5176 |
fi |
|
5177 |
;; |
|
5178 |
||
5179 |
newos6*) |
|
5180 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
5181 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
5182 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
5183 |
;; |
|
5184 |
||
5185 |
nto-qnx*) |
|
5186 |
lt_cv_deplibs_check_method=unknown |
|
5187 |
;; |
|
5188 |
||
5189 |
openbsd*) |
|
5190 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
5191 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
5192 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
5193 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
|
5194 |
else |
|
5195 |
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
|
5196 |
fi |
|
5197 |
;; |
|
5198 |
||
5199 |
osf3* | osf4* | osf5*) |
|
5200 |
lt_cv_deplibs_check_method=pass_all |
|
5201 |
;; |
|
5202 |
||
5203 |
sco3.2v5*) |
|
5204 |
lt_cv_deplibs_check_method=pass_all |
|
5205 |
;; |
|
5206 |
||
5207 |
solaris*) |
|
5208 |
lt_cv_deplibs_check_method=pass_all |
|
5209 |
;; |
|
5210 |
||
5211 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
5212 |
case $host_vendor in |
|
5213 |
motorola) |
|
5214 |
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]' |
|
5215 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
5216 |
;; |
|
5217 |
ncr) |
|
5218 |
lt_cv_deplibs_check_method=pass_all |
|
5219 |
;; |
|
5220 |
sequent) |
|
5221 |
lt_cv_file_magic_cmd='/bin/file' |
|
5222 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
5223 |
;; |
|
5224 |
sni) |
|
5225 |
lt_cv_file_magic_cmd='/bin/file' |
|
5226 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
5227 |
lt_cv_file_magic_test_file=/lib/libc.so |
|
5228 |
;; |
|
5229 |
siemens) |
|
5230 |
lt_cv_deplibs_check_method=pass_all |
|
5231 |
;; |
|
5232 |
esac |
|
5233 |
;; |
|
5234 |
||
5235 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
|
5236 |
lt_cv_deplibs_check_method=pass_all |
|
5237 |
;; |
|
5238 |
esac |
|
5239 |
||
5240 |
fi |
|
5241 |
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
|
5242 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
|
5243 |
file_magic_cmd=$lt_cv_file_magic_cmd |
|
5244 |
deplibs_check_method=$lt_cv_deplibs_check_method |
|
5245 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
5246 |
||
5247 |
||
5248 |
||
5249 |
||
5250 |
# If no C compiler was specified, use CC. |
|
5251 |
LTCC=${LTCC-"$CC"} |
|
5252 |
||
5253 |
# Allow CC to be a program name with arguments. |
|
5254 |
compiler=$CC |
|
5255 |
||
5256 |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
5257 |
if test "${enable_libtool_lock+set}" = set; then |
|
5258 |
enableval="$enable_libtool_lock" |
|
5259 |
||
5260 |
fi; |
|
5261 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
5262 |
||
5263 |
# Some flags need to be propagated to the compiler or linker for good |
|
5264 |
# libtool support. |
|
5265 |
case $host in |
|
5266 |
ia64-*-hpux*) |
|
5267 |
# Find out which ABI we are using. |
|
5268 |
echo 'int i;' > conftest.$ac_ext |
|
5269 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
5270 |
(eval $ac_compile) 2>&5 |
|
5271 |
ac_status=$? |
|
5272 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5273 |
(exit $ac_status); }; then |
|
5274 |
case `/usr/bin/file conftest.$ac_objext` in |
|
5275 |
*ELF-32*) |
|
5276 |
HPUX_IA64_MODE="32" |
|
5277 |
;; |
|
5278 |
*ELF-64*) |
|
5279 |
HPUX_IA64_MODE="64" |
|
5280 |
;; |
|
5281 |
esac |
|
5282 |
fi |
|
5283 |
rm -rf conftest* |
|
5284 |
;; |
|
5285 |
*-*-irix6*) |
|
5286 |
# Find out which ABI we are using. |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
5287 |
echo '#line 5287 "configure"' > conftest.$ac_ext |
1
by Daniel Holbach
Import upstream version 1.1.15 |
5288 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5289 |
(eval $ac_compile) 2>&5 |
|
5290 |
ac_status=$? |
|
5291 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5292 |
(exit $ac_status); }; then |
|
5293 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
5294 |
case `/usr/bin/file conftest.$ac_objext` in |
|
5295 |
*32-bit*) |
|
5296 |
LD="${LD-ld} -melf32bsmip" |
|
5297 |
;; |
|
5298 |
*N32*) |
|
5299 |
LD="${LD-ld} -melf32bmipn32" |
|
5300 |
;; |
|
5301 |
*64-bit*) |
|
5302 |
LD="${LD-ld} -melf64bmip" |
|
5303 |
;; |
|
5304 |
esac |
|
5305 |
else |
|
5306 |
case `/usr/bin/file conftest.$ac_objext` in |
|
5307 |
*32-bit*) |
|
5308 |
LD="${LD-ld} -32" |
|
5309 |
;; |
|
5310 |
*N32*) |
|
5311 |
LD="${LD-ld} -n32" |
|
5312 |
;; |
|
5313 |
*64-bit*) |
|
5314 |
LD="${LD-ld} -64" |
|
5315 |
;; |
|
5316 |
esac |
|
5317 |
fi |
|
5318 |
fi |
|
5319 |
rm -rf conftest* |
|
5320 |
;; |
|
5321 |
||
5322 |
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
|
5323 |
# Find out which ABI we are using. |
|
5324 |
echo 'int i;' > conftest.$ac_ext |
|
5325 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
5326 |
(eval $ac_compile) 2>&5 |
|
5327 |
ac_status=$? |
|
5328 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5329 |
(exit $ac_status); }; then |
|
5330 |
case "`/usr/bin/file conftest.o`" in |
|
5331 |
*32-bit*) |
|
5332 |
case $host in |
|
5333 |
x86_64-*linux*) |
|
5334 |
LD="${LD-ld} -m elf_i386" |
|
5335 |
;; |
|
5336 |
ppc64-*linux*|powerpc64-*linux*) |
|
5337 |
LD="${LD-ld} -m elf32ppclinux" |
|
5338 |
;; |
|
5339 |
s390x-*linux*) |
|
5340 |
LD="${LD-ld} -m elf_s390" |
|
5341 |
;; |
|
5342 |
sparc64-*linux*) |
|
5343 |
LD="${LD-ld} -m elf32_sparc" |
|
5344 |
;; |
|
5345 |
esac |
|
5346 |
;; |
|
5347 |
*64-bit*) |
|
5348 |
case $host in |
|
5349 |
x86_64-*linux*) |
|
5350 |
LD="${LD-ld} -m elf_x86_64" |
|
5351 |
;; |
|
5352 |
ppc*-*linux*|powerpc*-*linux*) |
|
5353 |
LD="${LD-ld} -m elf64ppc" |
|
5354 |
;; |
|
5355 |
s390*-*linux*) |
|
5356 |
LD="${LD-ld} -m elf64_s390" |
|
5357 |
;; |
|
5358 |
sparc*-*linux*) |
|
5359 |
LD="${LD-ld} -m elf64_sparc" |
|
5360 |
;; |
|
5361 |
esac |
|
5362 |
;; |
|
5363 |
esac |
|
5364 |
fi |
|
5365 |
rm -rf conftest* |
|
5366 |
;; |
|
5367 |
||
5368 |
*-*-sco3.2v5*) |
|
5369 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
5370 |
SAVE_CFLAGS="$CFLAGS" |
|
5371 |
CFLAGS="$CFLAGS -belf" |
|
5372 |
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
5373 |
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
5374 |
if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
5375 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5376 |
else |
|
5377 |
ac_ext=c |
|
5378 |
ac_cpp='$CPP $CPPFLAGS' |
|
5379 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5380 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5381 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5382 |
||
5383 |
cat >conftest.$ac_ext <<_ACEOF |
|
5384 |
/* confdefs.h. */ |
|
5385 |
_ACEOF |
|
5386 |
cat confdefs.h >>conftest.$ac_ext |
|
5387 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5388 |
/* end confdefs.h. */ |
|
5389 |
||
5390 |
int |
|
5391 |
main () |
|
5392 |
{ |
|
5393 |
||
5394 |
; |
|
5395 |
return 0; |
|
5396 |
} |
|
5397 |
_ACEOF |
|
5398 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
5399 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
5400 |
(eval $ac_link) 2>conftest.er1 |
|
5401 |
ac_status=$? |
|
5402 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5403 |
rm -f conftest.er1 |
|
5404 |
cat conftest.err >&5 |
|
5405 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5406 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
5407 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
5408 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5409 |
(eval $ac_try) 2>&5 |
|
5410 |
ac_status=$? |
|
5411 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5412 |
(exit $ac_status); }; } && |
|
5413 |
{ ac_try='test -s conftest$ac_exeext' |
|
5414 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5415 |
(eval $ac_try) 2>&5 |
|
5416 |
ac_status=$? |
|
5417 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5418 |
(exit $ac_status); }; }; then |
|
5419 |
lt_cv_cc_needs_belf=yes |
|
5420 |
else |
|
5421 |
echo "$as_me: failed program was:" >&5 |
|
5422 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5423 |
||
5424 |
lt_cv_cc_needs_belf=no |
|
5425 |
fi |
|
5426 |
rm -f conftest.err conftest.$ac_objext \ |
|
5427 |
conftest$ac_exeext conftest.$ac_ext |
|
5428 |
ac_ext=c |
|
5429 |
ac_cpp='$CPP $CPPFLAGS' |
|
5430 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5431 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5432 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5433 |
||
5434 |
fi |
|
5435 |
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
5436 |
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
|
5437 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
5438 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
5439 |
CFLAGS="$SAVE_CFLAGS" |
|
5440 |
fi |
|
5441 |
;; |
|
5442 |
||
5443 |
esac |
|
5444 |
||
5445 |
need_locks="$enable_libtool_lock" |
|
5446 |
||
5447 |
||
5448 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
5449 |
||
5450 |
||
5451 |
||
5452 |
||
5453 |
||
5454 |
||
5455 |
||
5456 |
||
5457 |
||
5458 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
5459 |
inttypes.h stdint.h unistd.h |
|
5460 |
do |
|
5461 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
5462 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
5463 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
5464 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
5465 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5466 |
else |
|
5467 |
cat >conftest.$ac_ext <<_ACEOF |
|
5468 |
/* confdefs.h. */ |
|
5469 |
_ACEOF |
|
5470 |
cat confdefs.h >>conftest.$ac_ext |
|
5471 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5472 |
/* end confdefs.h. */ |
|
5473 |
$ac_includes_default |
|
5474 |
||
5475 |
#include <$ac_header> |
|
5476 |
_ACEOF |
|
5477 |
rm -f conftest.$ac_objext |
|
5478 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
5479 |
(eval $ac_compile) 2>conftest.er1 |
|
5480 |
ac_status=$? |
|
5481 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5482 |
rm -f conftest.er1 |
|
5483 |
cat conftest.err >&5 |
|
5484 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5485 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
5486 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
5487 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5488 |
(eval $ac_try) 2>&5 |
|
5489 |
ac_status=$? |
|
5490 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5491 |
(exit $ac_status); }; } && |
|
5492 |
{ ac_try='test -s conftest.$ac_objext' |
|
5493 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5494 |
(eval $ac_try) 2>&5 |
|
5495 |
ac_status=$? |
|
5496 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5497 |
(exit $ac_status); }; }; then |
|
5498 |
eval "$as_ac_Header=yes" |
|
5499 |
else |
|
5500 |
echo "$as_me: failed program was:" >&5 |
|
5501 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5502 |
||
5503 |
eval "$as_ac_Header=no" |
|
5504 |
fi |
|
5505 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5506 |
fi |
|
5507 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
5508 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
5509 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
5510 |
cat >>confdefs.h <<_ACEOF |
|
5511 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
5512 |
_ACEOF |
|
5513 |
||
5514 |
fi |
|
5515 |
||
5516 |
done |
|
5517 |
||
5518 |
||
5519 |
||
5520 |
for ac_header in dlfcn.h |
|
5521 |
do |
|
5522 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
5523 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
5524 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
5525 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
5526 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
5527 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5528 |
fi |
|
5529 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
5530 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
5531 |
else |
|
5532 |
# Is the header compilable? |
|
5533 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
5534 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
5535 |
cat >conftest.$ac_ext <<_ACEOF |
|
5536 |
/* confdefs.h. */ |
|
5537 |
_ACEOF |
|
5538 |
cat confdefs.h >>conftest.$ac_ext |
|
5539 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5540 |
/* end confdefs.h. */ |
|
5541 |
$ac_includes_default |
|
5542 |
#include <$ac_header> |
|
5543 |
_ACEOF |
|
5544 |
rm -f conftest.$ac_objext |
|
5545 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
5546 |
(eval $ac_compile) 2>conftest.er1 |
|
5547 |
ac_status=$? |
|
5548 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5549 |
rm -f conftest.er1 |
|
5550 |
cat conftest.err >&5 |
|
5551 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5552 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
5553 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
5554 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5555 |
(eval $ac_try) 2>&5 |
|
5556 |
ac_status=$? |
|
5557 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5558 |
(exit $ac_status); }; } && |
|
5559 |
{ ac_try='test -s conftest.$ac_objext' |
|
5560 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5561 |
(eval $ac_try) 2>&5 |
|
5562 |
ac_status=$? |
|
5563 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5564 |
(exit $ac_status); }; }; then |
|
5565 |
ac_header_compiler=yes |
|
5566 |
else |
|
5567 |
echo "$as_me: failed program was:" >&5 |
|
5568 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5569 |
||
5570 |
ac_header_compiler=no |
|
5571 |
fi |
|
5572 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5573 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
5574 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
5575 |
||
5576 |
# Is the header present? |
|
5577 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
5578 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
5579 |
cat >conftest.$ac_ext <<_ACEOF |
|
5580 |
/* confdefs.h. */ |
|
5581 |
_ACEOF |
|
5582 |
cat confdefs.h >>conftest.$ac_ext |
|
5583 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5584 |
/* end confdefs.h. */ |
|
5585 |
#include <$ac_header> |
|
5586 |
_ACEOF |
|
5587 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
5588 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
5589 |
ac_status=$? |
|
5590 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5591 |
rm -f conftest.er1 |
|
5592 |
cat conftest.err >&5 |
|
5593 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5594 |
(exit $ac_status); } >/dev/null; then |
|
5595 |
if test -s conftest.err; then |
|
5596 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
5597 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
5598 |
else |
|
5599 |
ac_cpp_err= |
|
5600 |
fi |
|
5601 |
else |
|
5602 |
ac_cpp_err=yes |
|
5603 |
fi |
|
5604 |
if test -z "$ac_cpp_err"; then |
|
5605 |
ac_header_preproc=yes |
|
5606 |
else |
|
5607 |
echo "$as_me: failed program was:" >&5 |
|
5608 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5609 |
||
5610 |
ac_header_preproc=no |
|
5611 |
fi |
|
5612 |
rm -f conftest.err conftest.$ac_ext |
|
5613 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
5614 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
5615 |
||
5616 |
# So? What about this header? |
|
5617 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
5618 |
yes:no: ) |
|
5619 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
5620 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
5621 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
5622 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
5623 |
ac_header_preproc=yes |
|
5624 |
;; |
|
5625 |
no:yes:* ) |
|
5626 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
5627 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
5628 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
5629 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
5630 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
5631 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
5632 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
5633 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
5634 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
5635 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
5636 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
5637 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
5638 |
( |
|
5639 |
cat <<\_ASBOX |
|
5640 |
## ------------------------------------------ ## |
|
5641 |
## Report this to the AC_PACKAGE_NAME lists. ## |
|
5642 |
## ------------------------------------------ ## |
|
5643 |
_ASBOX |
|
5644 |
) | |
|
5645 |
sed "s/^/$as_me: WARNING: /" >&2 |
|
5646 |
;; |
|
5647 |
esac |
|
5648 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
5649 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
5650 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
5651 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5652 |
else |
|
5653 |
eval "$as_ac_Header=\$ac_header_preproc" |
|
5654 |
fi |
|
5655 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
5656 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
5657 |
||
5658 |
fi |
|
5659 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
5660 |
cat >>confdefs.h <<_ACEOF |
|
5661 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
5662 |
_ACEOF |
|
5663 |
||
5664 |
fi |
|
5665 |
||
5666 |
done |
|
5667 |
||
5668 |
ac_ext=cc |
|
5669 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
5670 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5671 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5672 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5673 |
if test -n "$ac_tool_prefix"; then |
|
5674 |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
|
5675 |
do |
|
5676 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
5677 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
5678 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
5679 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
5680 |
if test "${ac_cv_prog_CXX+set}" = set; then |
|
5681 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5682 |
else |
|
5683 |
if test -n "$CXX"; then |
|
5684 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|
5685 |
else |
|
5686 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5687 |
for as_dir in $PATH |
|
5688 |
do |
|
5689 |
IFS=$as_save_IFS |
|
5690 |
test -z "$as_dir" && as_dir=. |
|
5691 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5692 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5693 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
|
5694 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5695 |
break 2 |
|
5696 |
fi |
|
5697 |
done |
|
5698 |
done |
|
5699 |
||
5700 |
fi |
|
5701 |
fi |
|
5702 |
CXX=$ac_cv_prog_CXX |
|
5703 |
if test -n "$CXX"; then |
|
5704 |
echo "$as_me:$LINENO: result: $CXX" >&5 |
|
5705 |
echo "${ECHO_T}$CXX" >&6 |
|
5706 |
else |
|
5707 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5708 |
echo "${ECHO_T}no" >&6 |
|
5709 |
fi |
|
5710 |
||
5711 |
test -n "$CXX" && break |
|
5712 |
done |
|
5713 |
fi |
|
5714 |
if test -z "$CXX"; then |
|
5715 |
ac_ct_CXX=$CXX |
|
5716 |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
|
5717 |
do |
|
5718 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
5719 |
set dummy $ac_prog; ac_word=$2 |
|
5720 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
5721 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
5722 |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
|
5723 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5724 |
else |
|
5725 |
if test -n "$ac_ct_CXX"; then |
|
5726 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|
5727 |
else |
|
5728 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5729 |
for as_dir in $PATH |
|
5730 |
do |
|
5731 |
IFS=$as_save_IFS |
|
5732 |
test -z "$as_dir" && as_dir=. |
|
5733 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5734 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5735 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
|
5736 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5737 |
break 2 |
|
5738 |
fi |
|
5739 |
done |
|
5740 |
done |
|
5741 |
||
5742 |
fi |
|
5743 |
fi |
|
5744 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|
5745 |
if test -n "$ac_ct_CXX"; then |
|
5746 |
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
|
5747 |
echo "${ECHO_T}$ac_ct_CXX" >&6 |
|
5748 |
else |
|
5749 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5750 |
echo "${ECHO_T}no" >&6 |
|
5751 |
fi |
|
5752 |
||
5753 |
test -n "$ac_ct_CXX" && break |
|
5754 |
done |
|
5755 |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
|
5756 |
||
5757 |
CXX=$ac_ct_CXX |
|
5758 |
fi |
|
5759 |
||
5760 |
||
5761 |
# Provide some information about the compiler. |
|
5762 |
echo "$as_me:$LINENO:" \ |
|
5763 |
"checking for C++ compiler version" >&5 |
|
5764 |
ac_compiler=`set X $ac_compile; echo $2` |
|
5765 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
5766 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
5767 |
ac_status=$? |
|
5768 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5769 |
(exit $ac_status); } |
|
5770 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
5771 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
5772 |
ac_status=$? |
|
5773 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5774 |
(exit $ac_status); } |
|
5775 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
5776 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
5777 |
ac_status=$? |
|
5778 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5779 |
(exit $ac_status); } |
|
5780 |
||
5781 |
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
|
5782 |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
|
5783 |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
|
5784 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5785 |
else |
|
5786 |
cat >conftest.$ac_ext <<_ACEOF |
|
5787 |
/* confdefs.h. */ |
|
5788 |
_ACEOF |
|
5789 |
cat confdefs.h >>conftest.$ac_ext |
|
5790 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5791 |
/* end confdefs.h. */ |
|
5792 |
||
5793 |
int |
|
5794 |
main () |
|
5795 |
{ |
|
5796 |
#ifndef __GNUC__ |
|
5797 |
choke me |
|
5798 |
#endif |
|
5799 |
||
5800 |
; |
|
5801 |
return 0; |
|
5802 |
} |
|
5803 |
_ACEOF |
|
5804 |
rm -f conftest.$ac_objext |
|
5805 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
5806 |
(eval $ac_compile) 2>conftest.er1 |
|
5807 |
ac_status=$? |
|
5808 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5809 |
rm -f conftest.er1 |
|
5810 |
cat conftest.err >&5 |
|
5811 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5812 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
5813 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
5814 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5815 |
(eval $ac_try) 2>&5 |
|
5816 |
ac_status=$? |
|
5817 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5818 |
(exit $ac_status); }; } && |
|
5819 |
{ ac_try='test -s conftest.$ac_objext' |
|
5820 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5821 |
(eval $ac_try) 2>&5 |
|
5822 |
ac_status=$? |
|
5823 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5824 |
(exit $ac_status); }; }; then |
|
5825 |
ac_compiler_gnu=yes |
|
5826 |
else |
|
5827 |
echo "$as_me: failed program was:" >&5 |
|
5828 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5829 |
||
5830 |
ac_compiler_gnu=no |
|
5831 |
fi |
|
5832 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5833 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
5834 |
||
5835 |
fi |
|
5836 |
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
5837 |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
|
5838 |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
|
5839 |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
|
5840 |
ac_save_CXXFLAGS=$CXXFLAGS |
|
5841 |
CXXFLAGS="-g" |
|
5842 |
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
|
5843 |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
|
5844 |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
|
5845 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5846 |
else |
|
5847 |
cat >conftest.$ac_ext <<_ACEOF |
|
5848 |
/* confdefs.h. */ |
|
5849 |
_ACEOF |
|
5850 |
cat confdefs.h >>conftest.$ac_ext |
|
5851 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5852 |
/* end confdefs.h. */ |
|
5853 |
||
5854 |
int |
|
5855 |
main () |
|
5856 |
{ |
|
5857 |
||
5858 |
; |
|
5859 |
return 0; |
|
5860 |
} |
|
5861 |
_ACEOF |
|
5862 |
rm -f conftest.$ac_objext |
|
5863 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
5864 |
(eval $ac_compile) 2>conftest.er1 |
|
5865 |
ac_status=$? |
|
5866 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5867 |
rm -f conftest.er1 |
|
5868 |
cat conftest.err >&5 |
|
5869 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5870 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
5871 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
5872 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5873 |
(eval $ac_try) 2>&5 |
|
5874 |
ac_status=$? |
|
5875 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5876 |
(exit $ac_status); }; } && |
|
5877 |
{ ac_try='test -s conftest.$ac_objext' |
|
5878 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5879 |
(eval $ac_try) 2>&5 |
|
5880 |
ac_status=$? |
|
5881 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5882 |
(exit $ac_status); }; }; then |
|
5883 |
ac_cv_prog_cxx_g=yes |
|
5884 |
else |
|
5885 |
echo "$as_me: failed program was:" >&5 |
|
5886 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5887 |
||
5888 |
ac_cv_prog_cxx_g=no |
|
5889 |
fi |
|
5890 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5891 |
fi |
|
5892 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
|
5893 |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
|
5894 |
if test "$ac_test_CXXFLAGS" = set; then |
|
5895 |
CXXFLAGS=$ac_save_CXXFLAGS |
|
5896 |
elif test $ac_cv_prog_cxx_g = yes; then |
|
5897 |
if test "$GXX" = yes; then |
|
5898 |
CXXFLAGS="-g -O2" |
|
5899 |
else |
|
5900 |
CXXFLAGS="-g" |
|
5901 |
fi |
|
5902 |
else |
|
5903 |
if test "$GXX" = yes; then |
|
5904 |
CXXFLAGS="-O2" |
|
5905 |
else |
|
5906 |
CXXFLAGS= |
|
5907 |
fi |
|
5908 |
fi |
|
5909 |
for ac_declaration in \ |
|
5910 |
'' \ |
|
5911 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|
5912 |
'extern "C" void std::exit (int); using std::exit;' \ |
|
5913 |
'extern "C" void exit (int) throw ();' \ |
|
5914 |
'extern "C" void exit (int);' \ |
|
5915 |
'void exit (int);' |
|
5916 |
do |
|
5917 |
cat >conftest.$ac_ext <<_ACEOF |
|
5918 |
/* confdefs.h. */ |
|
5919 |
_ACEOF |
|
5920 |
cat confdefs.h >>conftest.$ac_ext |
|
5921 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5922 |
/* end confdefs.h. */ |
|
5923 |
$ac_declaration |
|
5924 |
#include <stdlib.h> |
|
5925 |
int |
|
5926 |
main () |
|
5927 |
{ |
|
5928 |
exit (42); |
|
5929 |
; |
|
5930 |
return 0; |
|
5931 |
} |
|
5932 |
_ACEOF |
|
5933 |
rm -f conftest.$ac_objext |
|
5934 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
5935 |
(eval $ac_compile) 2>conftest.er1 |
|
5936 |
ac_status=$? |
|
5937 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5938 |
rm -f conftest.er1 |
|
5939 |
cat conftest.err >&5 |
|
5940 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5941 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
5942 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
5943 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5944 |
(eval $ac_try) 2>&5 |
|
5945 |
ac_status=$? |
|
5946 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5947 |
(exit $ac_status); }; } && |
|
5948 |
{ ac_try='test -s conftest.$ac_objext' |
|
5949 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5950 |
(eval $ac_try) 2>&5 |
|
5951 |
ac_status=$? |
|
5952 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5953 |
(exit $ac_status); }; }; then |
|
5954 |
: |
|
5955 |
else |
|
5956 |
echo "$as_me: failed program was:" >&5 |
|
5957 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5958 |
||
5959 |
continue |
|
5960 |
fi |
|
5961 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5962 |
cat >conftest.$ac_ext <<_ACEOF |
|
5963 |
/* confdefs.h. */ |
|
5964 |
_ACEOF |
|
5965 |
cat confdefs.h >>conftest.$ac_ext |
|
5966 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5967 |
/* end confdefs.h. */ |
|
5968 |
$ac_declaration |
|
5969 |
int |
|
5970 |
main () |
|
5971 |
{ |
|
5972 |
exit (42); |
|
5973 |
; |
|
5974 |
return 0; |
|
5975 |
} |
|
5976 |
_ACEOF |
|
5977 |
rm -f conftest.$ac_objext |
|
5978 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
5979 |
(eval $ac_compile) 2>conftest.er1 |
|
5980 |
ac_status=$? |
|
5981 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5982 |
rm -f conftest.er1 |
|
5983 |
cat conftest.err >&5 |
|
5984 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5985 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
5986 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
5987 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5988 |
(eval $ac_try) 2>&5 |
|
5989 |
ac_status=$? |
|
5990 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5991 |
(exit $ac_status); }; } && |
|
5992 |
{ ac_try='test -s conftest.$ac_objext' |
|
5993 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5994 |
(eval $ac_try) 2>&5 |
|
5995 |
ac_status=$? |
|
5996 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5997 |
(exit $ac_status); }; }; then |
|
5998 |
break |
|
5999 |
else |
|
6000 |
echo "$as_me: failed program was:" >&5 |
|
6001 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6002 |
||
6003 |
fi |
|
6004 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6005 |
done |
|
6006 |
rm -f conftest* |
|
6007 |
if test -n "$ac_declaration"; then |
|
6008 |
echo '#ifdef __cplusplus' >>confdefs.h |
|
6009 |
echo $ac_declaration >>confdefs.h |
|
6010 |
echo '#endif' >>confdefs.h |
|
6011 |
fi |
|
6012 |
||
6013 |
ac_ext=cc |
|
6014 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
6015 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6016 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6017 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
6018 |
||
6019 |
depcc="$CXX" am_compiler_list= |
|
6020 |
||
6021 |
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
|
6022 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
|
6023 |
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
|
6024 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6025 |
else |
|
6026 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
6027 |
# We make a subdir and do the tests there. Otherwise we can end up |
|
6028 |
# making bogus files that we don't know about and never remove. For |
|
6029 |
# instance it was reported that on HP-UX the gcc test will end up |
|
6030 |
# making a dummy file named `D' -- because `-MD' means `put the output |
|
6031 |
# in D'. |
|
6032 |
mkdir conftest.dir |
|
6033 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
6034 |
# using a relative directory. |
|
6035 |
cp "$am_depcomp" conftest.dir |
|
6036 |
cd conftest.dir |
|
6037 |
# We will build objects and dependencies in a subdirectory because |
|
6038 |
# it helps to detect inapplicable dependency modes. For instance |
|
6039 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
|
6040 |
# side effect of compilation, but ICC will put the dependencies in |
|
6041 |
# the current directory while Tru64 will put them in the object |
|
6042 |
# directory. |
|
6043 |
mkdir sub |
|
6044 |
||
6045 |
am_cv_CXX_dependencies_compiler_type=none |
|
6046 |
if test "$am_compiler_list" = ""; then |
|
6047 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
6048 |
fi |
|
6049 |
for depmode in $am_compiler_list; do |
|
6050 |
# Setup a source with many dependencies, because some compilers |
|
6051 |
# like to wrap large dependency lists on column 80 (with \), and |
|
6052 |
# we should not choose a depcomp mode which is confused by this. |
|
6053 |
# |
|
6054 |
# We need to recreate these files for each test, as the compiler may |
|
6055 |
# overwrite some of them when testing with obscure command lines. |
|
6056 |
# This happens at least with the AIX C compiler. |
|
6057 |
: > sub/conftest.c |
|
6058 |
for i in 1 2 3 4 5 6; do |
|
6059 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
6060 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
6061 |
# Solaris 8's {/usr,}/bin/sh. |
|
6062 |
touch sub/conftst$i.h |
|
6063 |
done |
|
6064 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
6065 |
||
6066 |
case $depmode in |
|
6067 |
nosideeffect) |
|
6068 |
# after this tag, mechanisms are not by side-effect, so they'll |
|
6069 |
# only be used when explicitly requested |
|
6070 |
if test "x$enable_dependency_tracking" = xyes; then |
|
6071 |
continue |
|
6072 |
else |
|
6073 |
break |
|
6074 |
fi |
|
6075 |
;; |
|
6076 |
none) break ;; |
|
6077 |
esac |
|
6078 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
6079 |
# mode. It turns out that the SunPro C++ compiler does not properly |
|
6080 |
# handle `-M -o', and we need to detect this. |
|
6081 |
if depmode=$depmode \ |
|
6082 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
6083 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
6084 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
6085 |
>/dev/null 2>conftest.err && |
|
6086 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
6087 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
6088 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
6089 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
6090 |
# or remarks (even with -Werror). So we grep stderr for any message |
|
6091 |
# that says an option was ignored or not supported. |
|
6092 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
|
6093 |
# icc: Command line warning: ignoring option '-M'; no argument required |
|
6094 |
# The diagnosis changed in icc 8.0: |
|
6095 |
# icc: Command line remark: option '-MP' not supported |
|
6096 |
if (grep 'ignoring option' conftest.err || |
|
6097 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
6098 |
am_cv_CXX_dependencies_compiler_type=$depmode |
|
6099 |
break |
|
6100 |
fi |
|
6101 |
fi |
|
6102 |
done |
|
6103 |
||
6104 |
cd .. |
|
6105 |
rm -rf conftest.dir |
|
6106 |
else |
|
6107 |
am_cv_CXX_dependencies_compiler_type=none |
|
6108 |
fi |
|
6109 |
||
6110 |
fi |
|
6111 |
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
|
6112 |
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
|
6113 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
|
6114 |
||
6115 |
||
6116 |
||
6117 |
if |
|
6118 |
test "x$enable_dependency_tracking" != xno \ |
|
6119 |
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
|
6120 |
am__fastdepCXX_TRUE= |
|
6121 |
am__fastdepCXX_FALSE='#' |
|
6122 |
else |
|
6123 |
am__fastdepCXX_TRUE='#' |
|
6124 |
am__fastdepCXX_FALSE= |
|
6125 |
fi |
|
6126 |
||
6127 |
||
6128 |
ac_ext=cc |
|
6129 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
6130 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6131 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6132 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
6133 |
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
6134 |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
6135 |
if test -z "$CXXCPP"; then |
|
6136 |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
6137 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6138 |
else |
|
6139 |
# Double quotes because CXXCPP needs to be expanded |
|
6140 |
for CXXCPP in "$CXX -E" "/lib/cpp" |
|
6141 |
do |
|
6142 |
ac_preproc_ok=false |
|
6143 |
for ac_cxx_preproc_warn_flag in '' yes |
|
6144 |
do |
|
6145 |
# Use a header file that comes with gcc, so configuring glibc |
|
6146 |
# with a fresh cross-compiler works. |
|
6147 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
6148 |
# <limits.h> exists even on freestanding compilers. |
|
6149 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
6150 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
6151 |
cat >conftest.$ac_ext <<_ACEOF |
|
6152 |
/* confdefs.h. */ |
|
6153 |
_ACEOF |
|
6154 |
cat confdefs.h >>conftest.$ac_ext |
|
6155 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6156 |
/* end confdefs.h. */ |
|
6157 |
#ifdef __STDC__ |
|
6158 |
# include <limits.h> |
|
6159 |
#else |
|
6160 |
# include <assert.h> |
|
6161 |
#endif |
|
6162 |
Syntax error |
|
6163 |
_ACEOF |
|
6164 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
6165 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
6166 |
ac_status=$? |
|
6167 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6168 |
rm -f conftest.er1 |
|
6169 |
cat conftest.err >&5 |
|
6170 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6171 |
(exit $ac_status); } >/dev/null; then |
|
6172 |
if test -s conftest.err; then |
|
6173 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
6174 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
6175 |
else |
|
6176 |
ac_cpp_err= |
|
6177 |
fi |
|
6178 |
else |
|
6179 |
ac_cpp_err=yes |
|
6180 |
fi |
|
6181 |
if test -z "$ac_cpp_err"; then |
|
6182 |
: |
|
6183 |
else |
|
6184 |
echo "$as_me: failed program was:" >&5 |
|
6185 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6186 |
||
6187 |
# Broken: fails on valid input. |
|
6188 |
continue |
|
6189 |
fi |
|
6190 |
rm -f conftest.err conftest.$ac_ext |
|
6191 |
||
6192 |
# OK, works on sane cases. Now check whether non-existent headers |
|
6193 |
# can be detected and how. |
|
6194 |
cat >conftest.$ac_ext <<_ACEOF |
|
6195 |
/* confdefs.h. */ |
|
6196 |
_ACEOF |
|
6197 |
cat confdefs.h >>conftest.$ac_ext |
|
6198 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6199 |
/* end confdefs.h. */ |
|
6200 |
#include <ac_nonexistent.h> |
|
6201 |
_ACEOF |
|
6202 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
6203 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
6204 |
ac_status=$? |
|
6205 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6206 |
rm -f conftest.er1 |
|
6207 |
cat conftest.err >&5 |
|
6208 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6209 |
(exit $ac_status); } >/dev/null; then |
|
6210 |
if test -s conftest.err; then |
|
6211 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
6212 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
6213 |
else |
|
6214 |
ac_cpp_err= |
|
6215 |
fi |
|
6216 |
else |
|
6217 |
ac_cpp_err=yes |
|
6218 |
fi |
|
6219 |
if test -z "$ac_cpp_err"; then |
|
6220 |
# Broken: success on invalid input. |
|
6221 |
continue |
|
6222 |
else |
|
6223 |
echo "$as_me: failed program was:" >&5 |
|
6224 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6225 |
||
6226 |
# Passes both tests. |
|
6227 |
ac_preproc_ok=: |
|
6228 |
break |
|
6229 |
fi |
|
6230 |
rm -f conftest.err conftest.$ac_ext |
|
6231 |
||
6232 |
done |
|
6233 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
6234 |
rm -f conftest.err conftest.$ac_ext |
|
6235 |
if $ac_preproc_ok; then |
|
6236 |
break |
|
6237 |
fi |
|
6238 |
||
6239 |
done |
|
6240 |
ac_cv_prog_CXXCPP=$CXXCPP |
|
6241 |
||
6242 |
fi |
|
6243 |
CXXCPP=$ac_cv_prog_CXXCPP |
|
6244 |
else |
|
6245 |
ac_cv_prog_CXXCPP=$CXXCPP |
|
6246 |
fi |
|
6247 |
echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
6248 |
echo "${ECHO_T}$CXXCPP" >&6 |
|
6249 |
ac_preproc_ok=false |
|
6250 |
for ac_cxx_preproc_warn_flag in '' yes |
|
6251 |
do |
|
6252 |
# Use a header file that comes with gcc, so configuring glibc |
|
6253 |
# with a fresh cross-compiler works. |
|
6254 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
6255 |
# <limits.h> exists even on freestanding compilers. |
|
6256 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
6257 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
6258 |
cat >conftest.$ac_ext <<_ACEOF |
|
6259 |
/* confdefs.h. */ |
|
6260 |
_ACEOF |
|
6261 |
cat confdefs.h >>conftest.$ac_ext |
|
6262 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6263 |
/* end confdefs.h. */ |
|
6264 |
#ifdef __STDC__ |
|
6265 |
# include <limits.h> |
|
6266 |
#else |
|
6267 |
# include <assert.h> |
|
6268 |
#endif |
|
6269 |
Syntax error |
|
6270 |
_ACEOF |
|
6271 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
6272 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
6273 |
ac_status=$? |
|
6274 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6275 |
rm -f conftest.er1 |
|
6276 |
cat conftest.err >&5 |
|
6277 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6278 |
(exit $ac_status); } >/dev/null; then |
|
6279 |
if test -s conftest.err; then |
|
6280 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
6281 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
6282 |
else |
|
6283 |
ac_cpp_err= |
|
6284 |
fi |
|
6285 |
else |
|
6286 |
ac_cpp_err=yes |
|
6287 |
fi |
|
6288 |
if test -z "$ac_cpp_err"; then |
|
6289 |
: |
|
6290 |
else |
|
6291 |
echo "$as_me: failed program was:" >&5 |
|
6292 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6293 |
||
6294 |
# Broken: fails on valid input. |
|
6295 |
continue |
|
6296 |
fi |
|
6297 |
rm -f conftest.err conftest.$ac_ext |
|
6298 |
||
6299 |
# OK, works on sane cases. Now check whether non-existent headers |
|
6300 |
# can be detected and how. |
|
6301 |
cat >conftest.$ac_ext <<_ACEOF |
|
6302 |
/* confdefs.h. */ |
|
6303 |
_ACEOF |
|
6304 |
cat confdefs.h >>conftest.$ac_ext |
|
6305 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6306 |
/* end confdefs.h. */ |
|
6307 |
#include <ac_nonexistent.h> |
|
6308 |
_ACEOF |
|
6309 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
6310 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
6311 |
ac_status=$? |
|
6312 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6313 |
rm -f conftest.er1 |
|
6314 |
cat conftest.err >&5 |
|
6315 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6316 |
(exit $ac_status); } >/dev/null; then |
|
6317 |
if test -s conftest.err; then |
|
6318 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
6319 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
6320 |
else |
|
6321 |
ac_cpp_err= |
|
6322 |
fi |
|
6323 |
else |
|
6324 |
ac_cpp_err=yes |
|
6325 |
fi |
|
6326 |
if test -z "$ac_cpp_err"; then |
|
6327 |
# Broken: success on invalid input. |
|
6328 |
continue |
|
6329 |
else |
|
6330 |
echo "$as_me: failed program was:" >&5 |
|
6331 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6332 |
||
6333 |
# Passes both tests. |
|
6334 |
ac_preproc_ok=: |
|
6335 |
break |
|
6336 |
fi |
|
6337 |
rm -f conftest.err conftest.$ac_ext |
|
6338 |
||
6339 |
done |
|
6340 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
6341 |
rm -f conftest.err conftest.$ac_ext |
|
6342 |
if $ac_preproc_ok; then |
|
6343 |
: |
|
6344 |
else |
|
6345 |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
6346 |
See \`config.log' for more details." >&5 |
|
6347 |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
6348 |
See \`config.log' for more details." >&2;} |
|
6349 |
{ (exit 1); exit 1; }; } |
|
6350 |
fi |
|
6351 |
||
6352 |
ac_ext=cc |
|
6353 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
6354 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6355 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6356 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
6357 |
||
6358 |
||
6359 |
ac_ext=f |
|
6360 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
6361 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6362 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
6363 |
if test -n "$ac_tool_prefix"; then |
|
6364 |
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
|
6365 |
do |
|
6366 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
6367 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
6368 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6369 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
6370 |
if test "${ac_cv_prog_F77+set}" = set; then |
|
6371 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6372 |
else |
|
6373 |
if test -n "$F77"; then |
|
6374 |
ac_cv_prog_F77="$F77" # Let the user override the test. |
|
6375 |
else |
|
6376 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6377 |
for as_dir in $PATH |
|
6378 |
do |
|
6379 |
IFS=$as_save_IFS |
|
6380 |
test -z "$as_dir" && as_dir=. |
|
6381 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6382 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6383 |
ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
|
6384 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6385 |
break 2 |
|
6386 |
fi |
|
6387 |
done |
|
6388 |
done |
|
6389 |
||
6390 |
fi |
|
6391 |
fi |
|
6392 |
F77=$ac_cv_prog_F77 |
|
6393 |
if test -n "$F77"; then |
|
6394 |
echo "$as_me:$LINENO: result: $F77" >&5 |
|
6395 |
echo "${ECHO_T}$F77" >&6 |
|
6396 |
else |
|
6397 |
echo "$as_me:$LINENO: result: no" >&5 |
|
6398 |
echo "${ECHO_T}no" >&6 |
|
6399 |
fi |
|
6400 |
||
6401 |
test -n "$F77" && break |
|
6402 |
done |
|
6403 |
fi |
|
6404 |
if test -z "$F77"; then |
|
6405 |
ac_ct_F77=$F77 |
|
6406 |
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
|
6407 |
do |
|
6408 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
6409 |
set dummy $ac_prog; ac_word=$2 |
|
6410 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6411 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
6412 |
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
|
6413 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6414 |
else |
|
6415 |
if test -n "$ac_ct_F77"; then |
|
6416 |
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
|
6417 |
else |
|
6418 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6419 |
for as_dir in $PATH |
|
6420 |
do |
|
6421 |
IFS=$as_save_IFS |
|
6422 |
test -z "$as_dir" && as_dir=. |
|
6423 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6424 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6425 |
ac_cv_prog_ac_ct_F77="$ac_prog" |
|
6426 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6427 |
break 2 |
|
6428 |
fi |
|
6429 |
done |
|
6430 |
done |
|
6431 |
||
6432 |
fi |
|
6433 |
fi |
|
6434 |
ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
|
6435 |
if test -n "$ac_ct_F77"; then |
|
6436 |
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
|
6437 |
echo "${ECHO_T}$ac_ct_F77" >&6 |
|
6438 |
else |
|
6439 |
echo "$as_me:$LINENO: result: no" >&5 |
|
6440 |
echo "${ECHO_T}no" >&6 |
|
6441 |
fi |
|
6442 |
||
6443 |
test -n "$ac_ct_F77" && break |
|
6444 |
done |
|
6445 |
||
6446 |
F77=$ac_ct_F77 |
|
6447 |
fi |
|
6448 |
||
6449 |
||
6450 |
# Provide some information about the compiler. |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
6451 |
echo "$as_me:6451:" \ |
1
by Daniel Holbach
Import upstream version 1.1.15 |
6452 |
"checking for Fortran 77 compiler version" >&5 |
6453 |
ac_compiler=`set X $ac_compile; echo $2` |
|
6454 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
6455 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
6456 |
ac_status=$? |
|
6457 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6458 |
(exit $ac_status); } |
|
6459 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
6460 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
6461 |
ac_status=$? |
|
6462 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6463 |
(exit $ac_status); } |
|
6464 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
6465 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
6466 |
ac_status=$? |
|
6467 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6468 |
(exit $ac_status); } |
|
6469 |
rm -f a.out |
|
6470 |
||
6471 |
# If we don't use `.F' as extension, the preprocessor is not run on the |
|
6472 |
# input file. (Note that this only needs to work for GNU compilers.) |
|
6473 |
ac_save_ext=$ac_ext |
|
6474 |
ac_ext=F |
|
6475 |
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
|
6476 |
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
|
6477 |
if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
|
6478 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6479 |
else |
|
6480 |
cat >conftest.$ac_ext <<_ACEOF |
|
6481 |
program main |
|
6482 |
#ifndef __GNUC__ |
|
6483 |
choke me |
|
6484 |
#endif |
|
6485 |
||
6486 |
end |
|
6487 |
_ACEOF |
|
6488 |
rm -f conftest.$ac_objext |
|
6489 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
6490 |
(eval $ac_compile) 2>conftest.er1 |
|
6491 |
ac_status=$? |
|
6492 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6493 |
rm -f conftest.er1 |
|
6494 |
cat conftest.err >&5 |
|
6495 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6496 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
6497 |
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
6498 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6499 |
(eval $ac_try) 2>&5 |
|
6500 |
ac_status=$? |
|
6501 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6502 |
(exit $ac_status); }; } && |
|
6503 |
{ ac_try='test -s conftest.$ac_objext' |
|
6504 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
6505 |
(eval $ac_try) 2>&5 |
|
6506 |
ac_status=$? |
|
6507 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6508 |
(exit $ac_status); }; }; then |
|
6509 |
ac_compiler_gnu=yes |
|
6510 |
else |
|
6511 |
echo "$as_me: failed program was:" >&5 |
|
6512 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6513 |
||
6514 |
ac_compiler_gnu=no |
|
6515 |
fi |
|
6516 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6517 |
ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
|
6518 |
||
6519 |
fi |
|
6520 |
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
|
6521 |
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
|
6522 |
ac_ext=$ac_save_ext |
|
6523 |
ac_test_FFLAGS=${FFLAGS+set} |
|
6524 |
ac_save_FFLAGS=$FFLAGS |
|
6525 |
FFLAGS= |
|
6526 |
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
|
6527 |
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
|
6528 |
if test "${ac_cv_prog_f77_g+set}" = set; then |
|
6529 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6530 |
else |
|
6531 |
FFLAGS=-g |
|
6532 |
cat >conftest.$ac_ext <<_ACEOF |
|
6533 |
program main |
|
6534 |
||
6535 |
end |
|
6536 |
_ACEOF |
|
6537 |
rm -f conftest.$ac_objext |
|
6538 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
6539 |
(eval $ac_compile) 2>conftest.er1 |
|
6540 |
ac_status=$? |
|
6541 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6542 |
rm -f conftest.er1 |
|
6543 |
cat conftest.err >&5 |
|
6544 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6545 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
6546 |
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
6547 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6548 |
(eval $ac_try) 2>&5 |
|
6549 |
ac_status=$? |
|
6550 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6551 |
(exit $ac_status); }; } && |
|
6552 |
{ ac_try='test -s conftest.$ac_objext' |
|
6553 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
6554 |
(eval $ac_try) 2>&5 |
|
6555 |
ac_status=$? |
|
6556 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6557 |
(exit $ac_status); }; }; then |
|
6558 |
ac_cv_prog_f77_g=yes |
|
6559 |
else |
|
6560 |
echo "$as_me: failed program was:" >&5 |
|
6561 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6562 |
||
6563 |
ac_cv_prog_f77_g=no |
|
6564 |
fi |
|
6565 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6566 |
||
6567 |
fi |
|
6568 |
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
|
6569 |
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
|
6570 |
if test "$ac_test_FFLAGS" = set; then |
|
6571 |
FFLAGS=$ac_save_FFLAGS |
|
6572 |
elif test $ac_cv_prog_f77_g = yes; then |
|
6573 |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
6574 |
FFLAGS="-g -O2" |
|
6575 |
else |
|
6576 |
FFLAGS="-g" |
|
6577 |
fi |
|
6578 |
else |
|
6579 |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
6580 |
FFLAGS="-O2" |
|
6581 |
else |
|
6582 |
FFLAGS= |
|
6583 |
fi |
|
6584 |
fi |
|
6585 |
||
6586 |
G77=`test $ac_compiler_gnu = yes && echo yes` |
|
6587 |
ac_ext=c |
|
6588 |
ac_cpp='$CPP $CPPFLAGS' |
|
6589 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6590 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6591 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6592 |
||
6593 |
||
6594 |
||
6595 |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
|
6596 |
||
6597 |
# find the maximum length of command line arguments |
|
6598 |
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
|
6599 |
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
|
6600 |
if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
|
6601 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6602 |
else |
|
6603 |
i=0 |
|
6604 |
teststring="ABCD" |
|
6605 |
||
6606 |
case $build_os in |
|
6607 |
msdosdjgpp*) |
|
6608 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
|
6609 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
|
6610 |
# during glob expansion). Even if it were fixed, the result of this |
|
6611 |
# check would be larger than it should be. |
|
6612 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
|
6613 |
;; |
|
6614 |
||
6615 |
gnu*) |
|
6616 |
# Under GNU Hurd, this test is not required because there is |
|
6617 |
# no limit to the length of command line arguments. |
|
6618 |
# Libtool will interpret -1 as no limit whatsoever |
|
6619 |
lt_cv_sys_max_cmd_len=-1; |
|
6620 |
;; |
|
6621 |
||
6622 |
cygwin* | mingw*) |
|
6623 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
|
6624 |
# about 5 minutes as the teststring grows exponentially. |
|
6625 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
|
6626 |
# you end up with a "frozen" computer, even though with patience |
|
6627 |
# the test eventually succeeds (with a max line length of 256k). |
|
6628 |
# Instead, let's just punt: use the minimum linelength reported by |
|
6629 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
|
6630 |
lt_cv_sys_max_cmd_len=8192; |
|
6631 |
;; |
|
6632 |
||
6633 |
amigaos*) |
|
6634 |
# On AmigaOS with pdksh, this test takes hours, literally. |
|
6635 |
# So we just punt and use a minimum line length of 8192. |
|
6636 |
lt_cv_sys_max_cmd_len=8192; |
|
6637 |
;; |
|
6638 |
||
6639 |
*) |
|
6640 |
# If test is not a shell built-in, we'll probably end up computing a |
|
6641 |
# maximum length that is only half of the actual maximum length, but |
|
6642 |
# we can't tell. |
|
6643 |
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
|
6644 |
= "XX$teststring") >/dev/null 2>&1 && |
|
6645 |
new_result=`expr "X$teststring" : ".*" 2>&1` && |
|
6646 |
lt_cv_sys_max_cmd_len=$new_result && |
|
6647 |
test $i != 17 # 1/2 MB should be enough |
|
6648 |
do |
|
6649 |
i=`expr $i + 1` |
|
6650 |
teststring=$teststring$teststring |
|
6651 |
done |
|
6652 |
teststring= |
|
6653 |
# Add a significant safety factor because C++ compilers can tack on massive |
|
6654 |
# amounts of additional arguments before passing them to the linker. |
|
6655 |
# It appears as though 1/2 is a usable value. |
|
6656 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
|
6657 |
;; |
|
6658 |
esac |
|
6659 |
||
6660 |
fi |
|
6661 |
||
6662 |
if test -n $lt_cv_sys_max_cmd_len ; then |
|
6663 |
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
|
6664 |
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
|
6665 |
else |
|
6666 |
echo "$as_me:$LINENO: result: none" >&5 |
|
6667 |
echo "${ECHO_T}none" >&6 |
|
6668 |
fi |
|
6669 |
||
6670 |
||
6671 |
||
6672 |
||
6673 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
|
6674 |
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
|
6675 |
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
|
6676 |
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
6677 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6678 |
else |
|
6679 |
||
6680 |
# These are sane defaults that work on at least a few old systems. |
|
6681 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
6682 |
||
6683 |
# Character class describing NM global symbol codes. |
|
6684 |
symcode='[BCDEGRST]' |
|
6685 |
||
6686 |
# Regexp to match symbols that can be accessed directly from C. |
|
6687 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
6688 |
||
6689 |
# Transform the above into a raw symbol and a C symbol. |
|
6690 |
symxfrm='\1 \2\3 \3' |
|
6691 |
||
6692 |
# Transform an extracted symbol line into a proper C declaration |
|
6693 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
|
6694 |
||
6695 |
# Transform an extracted symbol line into symbol name and symbol address |
|
6696 |
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'" |
|
6697 |
||
6698 |
# Define system-specific variables. |
|
6699 |
case $host_os in |
|
6700 |
aix*) |
|
6701 |
symcode='[BCDT]' |
|
6702 |
;; |
|
6703 |
cygwin* | mingw* | pw32*) |
|
6704 |
symcode='[ABCDGISTW]' |
|
6705 |
;; |
|
6706 |
hpux*) # Its linker distinguishes data from code symbols |
|
6707 |
if test "$host_cpu" = ia64; then |
|
6708 |
symcode='[ABCDEGRST]' |
|
6709 |
fi |
|
6710 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
6711 |
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'" |
|
6712 |
;; |
|
6713 |
irix* | nonstopux*) |
|
6714 |
symcode='[BCDEGRST]' |
|
6715 |
;; |
|
6716 |
osf*) |
|
6717 |
symcode='[BCDEGQRST]' |
|
6718 |
;; |
|
6719 |
solaris* | sysv5*) |
|
6720 |
symcode='[BDRT]' |
|
6721 |
;; |
|
6722 |
sysv4) |
|
6723 |
symcode='[DFNSTU]' |
|
6724 |
;; |
|
6725 |
esac |
|
6726 |
||
6727 |
# Handle CRLF in mingw tool chain |
|
6728 |
opt_cr= |
|
6729 |
case $build_os in |
|
6730 |
mingw*) |
|
6731 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
6732 |
;; |
|
6733 |
esac |
|
6734 |
||
6735 |
# If we're using GNU nm, then use its standard symbol codes. |
|
6736 |
case `$NM -V 2>&1` in |
|
6737 |
*GNU* | *'with BFD'*) |
|
6738 |
symcode='[ABCDGIRSTW]' ;; |
|
6739 |
esac |
|
6740 |
||
6741 |
# Try without a prefix undercore, then with it. |
|
6742 |
for ac_symprfx in "" "_"; do |
|
6743 |
||
6744 |
# Write the raw and C identifiers. |
|
6745 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
|
6746 |
||
6747 |
# Check to see that the pipe works correctly. |
|
6748 |
pipe_works=no |
|
6749 |
||
6750 |
rm -f conftest* |
|
6751 |
cat > conftest.$ac_ext <<EOF |
|
6752 |
#ifdef __cplusplus |
|
6753 |
extern "C" { |
|
6754 |
#endif |
|
6755 |
char nm_test_var; |
|
6756 |
void nm_test_func(){} |
|
6757 |
#ifdef __cplusplus |
|
6758 |
} |
|
6759 |
#endif |
|
6760 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
|
6761 |
EOF |
|
6762 |
||
6763 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
6764 |
(eval $ac_compile) 2>&5 |
|
6765 |
ac_status=$? |
|
6766 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6767 |
(exit $ac_status); }; then |
|
6768 |
# Now try to grab the symbols. |
|
6769 |
nlist=conftest.nm |
|
6770 |
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
6771 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
6772 |
ac_status=$? |
|
6773 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6774 |
(exit $ac_status); } && test -s "$nlist"; then |
|
6775 |
# Try sorting and uniquifying the output. |
|
6776 |
if sort "$nlist" | uniq > "$nlist"T; then |
|
6777 |
mv -f "$nlist"T "$nlist" |
|
6778 |
else |
|
6779 |
rm -f "$nlist"T |
|
6780 |
fi |
|
6781 |
||
6782 |
# Make sure that we snagged all the symbols we need. |
|
6783 |
if grep ' nm_test_var$' "$nlist" >/dev/null; then |
|
6784 |
if grep ' nm_test_func$' "$nlist" >/dev/null; then |
|
6785 |
cat <<EOF > conftest.$ac_ext |
|
6786 |
#ifdef __cplusplus |
|
6787 |
extern "C" { |
|
6788 |
#endif |
|
6789 |
||
6790 |
EOF |
|
6791 |
# Now generate the symbol file. |
|
6792 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
|
6793 |
||
6794 |
cat <<EOF >> conftest.$ac_ext |
|
6795 |
#if defined (__STDC__) && __STDC__ |
|
6796 |
# define lt_ptr_t void * |
|
6797 |
#else |
|
6798 |
# define lt_ptr_t char * |
|
6799 |
# define const |
|
6800 |
#endif |
|
6801 |
||
6802 |
/* The mapping between symbol names and symbols. */ |
|
6803 |
const struct { |
|
6804 |
const char *name; |
|
6805 |
lt_ptr_t address; |
|
6806 |
} |
|
6807 |
lt_preloaded_symbols[] = |
|
6808 |
{ |
|
6809 |
EOF |
|
6810 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
|
6811 |
cat <<\EOF >> conftest.$ac_ext |
|
6812 |
{0, (lt_ptr_t) 0} |
|
6813 |
}; |
|
6814 |
||
6815 |
#ifdef __cplusplus |
|
6816 |
} |
|
6817 |
#endif |
|
6818 |
EOF |
|
6819 |
# Now try linking the two files. |
|
6820 |
mv conftest.$ac_objext conftstm.$ac_objext |
|
6821 |
lt_save_LIBS="$LIBS" |
|
6822 |
lt_save_CFLAGS="$CFLAGS" |
|
6823 |
LIBS="conftstm.$ac_objext" |
|
6824 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
|
6825 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
6826 |
(eval $ac_link) 2>&5 |
|
6827 |
ac_status=$? |
|
6828 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6829 |
(exit $ac_status); } && test -s conftest${ac_exeext}; then |
|
6830 |
pipe_works=yes |
|
6831 |
fi |
|
6832 |
LIBS="$lt_save_LIBS" |
|
6833 |
CFLAGS="$lt_save_CFLAGS" |
|
6834 |
else |
|
6835 |
echo "cannot find nm_test_func in $nlist" >&5 |
|
6836 |
fi |
|
6837 |
else |
|
6838 |
echo "cannot find nm_test_var in $nlist" >&5 |
|
6839 |
fi |
|
6840 |
else |
|
6841 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
6842 |
fi |
|
6843 |
else |
|
6844 |
echo "$progname: failed program was:" >&5 |
|
6845 |
cat conftest.$ac_ext >&5 |
|
6846 |
fi |
|
6847 |
rm -f conftest* conftst* |
|
6848 |
||
6849 |
# Do not use the global_symbol_pipe unless it works. |
|
6850 |
if test "$pipe_works" = yes; then |
|
6851 |
break |
|
6852 |
else |
|
6853 |
lt_cv_sys_global_symbol_pipe= |
|
6854 |
fi |
|
6855 |
done |
|
6856 |
||
6857 |
fi |
|
6858 |
||
6859 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
6860 |
lt_cv_sys_global_symbol_to_cdecl= |
|
6861 |
fi |
|
6862 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
|
6863 |
echo "$as_me:$LINENO: result: failed" >&5 |
|
6864 |
echo "${ECHO_T}failed" >&6 |
|
6865 |
else |
|
6866 |
echo "$as_me:$LINENO: result: ok" >&5 |
|
6867 |
echo "${ECHO_T}ok" >&6 |
|
6868 |
fi |
|
6869 |
||
6870 |
echo "$as_me:$LINENO: checking for objdir" >&5 |
|
6871 |
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
|
6872 |
if test "${lt_cv_objdir+set}" = set; then |
|
6873 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6874 |
else |
|
6875 |
rm -f .libs 2>/dev/null |
|
6876 |
mkdir .libs 2>/dev/null |
|
6877 |
if test -d .libs; then |
|
6878 |
lt_cv_objdir=.libs |
|
6879 |
else |
|
6880 |
# MS-DOS does not allow filenames that begin with a dot. |
|
6881 |
lt_cv_objdir=_libs |
|
6882 |
fi |
|
6883 |
rmdir .libs 2>/dev/null |
|
6884 |
fi |
|
6885 |
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
|
6886 |
echo "${ECHO_T}$lt_cv_objdir" >&6 |
|
6887 |
objdir=$lt_cv_objdir |
|
6888 |
||
6889 |
||
6890 |
||
6891 |
||
6892 |
||
6893 |
case $host_os in |
|
6894 |
aix3*) |
|
6895 |
# AIX sometimes has problems with the GCC collect2 program. For some |
|
6896 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
|
6897 |
# vanish in a puff of smoke. |
|
6898 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
|
6899 |
COLLECT_NAMES= |
|
6900 |
export COLLECT_NAMES |
|
6901 |
fi |
|
6902 |
;; |
|
6903 |
esac |
|
6904 |
||
6905 |
# Sed substitution that helps us do robust quoting. It backslashifies |
|
6906 |
# metacharacters that are still active within double-quoted strings. |
|
6907 |
Xsed='sed -e s/^X//' |
|
6908 |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
6909 |
||
6910 |
# Same as above, but do not quote variable references. |
|
6911 |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
6912 |
||
6913 |
# Sed substitution to delay expansion of an escaped shell variable in a |
|
6914 |
# double_quote_subst'ed string. |
|
6915 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
6916 |
||
6917 |
# Sed substitution to avoid accidental globbing in evaled expressions |
|
6918 |
no_glob_subst='s/\*/\\\*/g' |
|
6919 |
||
6920 |
# Constants: |
|
6921 |
rm="rm -f" |
|
6922 |
||
6923 |
# Global variables: |
|
6924 |
default_ofile=libtool |
|
6925 |
can_build_shared=yes |
|
6926 |
||
6927 |
# All known linkers require a `.a' archive for static linking (except M$VC, |
|
6928 |
# which needs '.lib'). |
|
6929 |
libext=a |
|
6930 |
ltmain="$ac_aux_dir/ltmain.sh" |
|
6931 |
ofile="$default_ofile" |
|
6932 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
6933 |
||
6934 |
if test -n "$ac_tool_prefix"; then |
|
6935 |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|
6936 |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
|
6937 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6938 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
6939 |
if test "${ac_cv_prog_AR+set}" = set; then |
|
6940 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6941 |
else |
|
6942 |
if test -n "$AR"; then |
|
6943 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
|
6944 |
else |
|
6945 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6946 |
for as_dir in $PATH |
|
6947 |
do |
|
6948 |
IFS=$as_save_IFS |
|
6949 |
test -z "$as_dir" && as_dir=. |
|
6950 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6951 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6952 |
ac_cv_prog_AR="${ac_tool_prefix}ar" |
|
6953 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6954 |
break 2 |
|
6955 |
fi |
|
6956 |
done |
|
6957 |
done |
|
6958 |
||
6959 |
fi |
|
6960 |
fi |
|
6961 |
AR=$ac_cv_prog_AR |
|
6962 |
if test -n "$AR"; then |
|
6963 |
echo "$as_me:$LINENO: result: $AR" >&5 |
|
6964 |
echo "${ECHO_T}$AR" >&6 |
|
6965 |
else |
|
6966 |
echo "$as_me:$LINENO: result: no" >&5 |
|
6967 |
echo "${ECHO_T}no" >&6 |
|
6968 |
fi |
|
6969 |
||
6970 |
fi |
|
6971 |
if test -z "$ac_cv_prog_AR"; then |
|
6972 |
ac_ct_AR=$AR |
|
6973 |
# Extract the first word of "ar", so it can be a program name with args. |
|
6974 |
set dummy ar; ac_word=$2 |
|
6975 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6976 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
6977 |
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
|
6978 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6979 |
else |
|
6980 |
if test -n "$ac_ct_AR"; then |
|
6981 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
6982 |
else |
|
6983 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6984 |
for as_dir in $PATH |
|
6985 |
do |
|
6986 |
IFS=$as_save_IFS |
|
6987 |
test -z "$as_dir" && as_dir=. |
|
6988 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6989 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6990 |
ac_cv_prog_ac_ct_AR="ar" |
|
6991 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6992 |
break 2 |
|
6993 |
fi |
|
6994 |
done |
|
6995 |
done |
|
6996 |
||
6997 |
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
|
6998 |
fi |
|
6999 |
fi |
|
7000 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|
7001 |
if test -n "$ac_ct_AR"; then |
|
7002 |
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
|
7003 |
echo "${ECHO_T}$ac_ct_AR" >&6 |
|
7004 |
else |
|
7005 |
echo "$as_me:$LINENO: result: no" >&5 |
|
7006 |
echo "${ECHO_T}no" >&6 |
|
7007 |
fi |
|
7008 |
||
7009 |
AR=$ac_ct_AR |
|
7010 |
else |
|
7011 |
AR="$ac_cv_prog_AR" |
|
7012 |
fi |
|
7013 |
||
7014 |
if test -n "$ac_tool_prefix"; then |
|
7015 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
7016 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
7017 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7018 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
7019 |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
7020 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7021 |
else |
|
7022 |
if test -n "$RANLIB"; then |
|
7023 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
7024 |
else |
|
7025 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7026 |
for as_dir in $PATH |
|
7027 |
do |
|
7028 |
IFS=$as_save_IFS |
|
7029 |
test -z "$as_dir" && as_dir=. |
|
7030 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
7031 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
7032 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
7033 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7034 |
break 2 |
|
7035 |
fi |
|
7036 |
done |
|
7037 |
done |
|
7038 |
||
7039 |
fi |
|
7040 |
fi |
|
7041 |
RANLIB=$ac_cv_prog_RANLIB |
|
7042 |
if test -n "$RANLIB"; then |
|
7043 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
7044 |
echo "${ECHO_T}$RANLIB" >&6 |
|
7045 |
else |
|
7046 |
echo "$as_me:$LINENO: result: no" >&5 |
|
7047 |
echo "${ECHO_T}no" >&6 |
|
7048 |
fi |
|
7049 |
||
7050 |
fi |
|
7051 |
if test -z "$ac_cv_prog_RANLIB"; then |
|
7052 |
ac_ct_RANLIB=$RANLIB |
|
7053 |
# Extract the first word of "ranlib", so it can be a program name with args. |
|
7054 |
set dummy ranlib; ac_word=$2 |
|
7055 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7056 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
7057 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
7058 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7059 |
else |
|
7060 |
if test -n "$ac_ct_RANLIB"; then |
|
7061 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
7062 |
else |
|
7063 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7064 |
for as_dir in $PATH |
|
7065 |
do |
|
7066 |
IFS=$as_save_IFS |
|
7067 |
test -z "$as_dir" && as_dir=. |
|
7068 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
7069 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
7070 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
7071 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7072 |
break 2 |
|
7073 |
fi |
|
7074 |
done |
|
7075 |
done |
|
7076 |
||
7077 |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
7078 |
fi |
|
7079 |
fi |
|
7080 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
7081 |
if test -n "$ac_ct_RANLIB"; then |
|
7082 |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
7083 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
7084 |
else |
|
7085 |
echo "$as_me:$LINENO: result: no" >&5 |
|
7086 |
echo "${ECHO_T}no" >&6 |
|
7087 |
fi |
|
7088 |
||
7089 |
RANLIB=$ac_ct_RANLIB |
|
7090 |
else |
|
7091 |
RANLIB="$ac_cv_prog_RANLIB" |
|
7092 |
fi |
|
7093 |
||
7094 |
if test -n "$ac_tool_prefix"; then |
|
7095 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
7096 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
7097 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7098 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
7099 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
|
7100 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7101 |
else |
|
7102 |
if test -n "$STRIP"; then |
|
7103 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
7104 |
else |
|
7105 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7106 |
for as_dir in $PATH |
|
7107 |
do |
|
7108 |
IFS=$as_save_IFS |
|
7109 |
test -z "$as_dir" && as_dir=. |
|
7110 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
7111 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
7112 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
7113 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7114 |
break 2 |
|
7115 |
fi |
|
7116 |
done |
|
7117 |
done |
|
7118 |
||
7119 |
fi |
|
7120 |
fi |
|
7121 |
STRIP=$ac_cv_prog_STRIP |
|
7122 |
if test -n "$STRIP"; then |
|
7123 |
echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
7124 |
echo "${ECHO_T}$STRIP" >&6 |
|
7125 |
else |
|
7126 |
echo "$as_me:$LINENO: result: no" >&5 |
|
7127 |
echo "${ECHO_T}no" >&6 |
|
7128 |
fi |
|
7129 |
||
7130 |
fi |
|
7131 |
if test -z "$ac_cv_prog_STRIP"; then |
|
7132 |
ac_ct_STRIP=$STRIP |
|
7133 |
# Extract the first word of "strip", so it can be a program name with args. |
|
7134 |
set dummy strip; ac_word=$2 |
|
7135 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7136 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
7137 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
7138 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7139 |
else |
|
7140 |
if test -n "$ac_ct_STRIP"; then |
|
7141 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
7142 |
else |
|
7143 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7144 |
for as_dir in $PATH |
|
7145 |
do |
|
7146 |
IFS=$as_save_IFS |
|
7147 |
test -z "$as_dir" && as_dir=. |
|
7148 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
7149 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
7150 |
ac_cv_prog_ac_ct_STRIP="strip" |
|
7151 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7152 |
break 2 |
|
7153 |
fi |
|
7154 |
done |
|
7155 |
done |
|
7156 |
||
7157 |
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
7158 |
fi |
|
7159 |
fi |
|
7160 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
7161 |
if test -n "$ac_ct_STRIP"; then |
|
7162 |
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
7163 |
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
7164 |
else |
|
7165 |
echo "$as_me:$LINENO: result: no" >&5 |
|
7166 |
echo "${ECHO_T}no" >&6 |
|
7167 |
fi |
|
7168 |
||
7169 |
STRIP=$ac_ct_STRIP |
|
7170 |
else |
|
7171 |
STRIP="$ac_cv_prog_STRIP" |
|
7172 |
fi |
|
7173 |
||
7174 |
||
7175 |
old_CC="$CC" |
|
7176 |
old_CFLAGS="$CFLAGS" |
|
7177 |
||
7178 |
# Set sane defaults for various variables |
|
7179 |
test -z "$AR" && AR=ar |
|
7180 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
7181 |
test -z "$AS" && AS=as |
|
7182 |
test -z "$CC" && CC=cc |
|
7183 |
test -z "$LTCC" && LTCC=$CC |
|
7184 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
7185 |
test -z "$LD" && LD=ld |
|
7186 |
test -z "$LN_S" && LN_S="ln -s" |
|
7187 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
7188 |
test -z "$NM" && NM=nm |
|
7189 |
test -z "$SED" && SED=sed |
|
7190 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
|
7191 |
test -z "$RANLIB" && RANLIB=: |
|
7192 |
test -z "$STRIP" && STRIP=: |
|
7193 |
test -z "$ac_objext" && ac_objext=o |
|
7194 |
||
7195 |
# Determine commands to create old-style static archives. |
|
7196 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
7197 |
old_postinstall_cmds='chmod 644 $oldlib' |
|
7198 |
old_postuninstall_cmds= |
|
7199 |
||
7200 |
if test -n "$RANLIB"; then |
|
7201 |
case $host_os in |
|
7202 |
openbsd*) |
|
7203 |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
|
7204 |
;; |
|
7205 |
*) |
|
7206 |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
7207 |
;; |
|
7208 |
esac |
|
7209 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
7210 |
fi |
|
7211 |
||
7212 |
# Only perform the check for file, if the check method requires it |
|
7213 |
case $deplibs_check_method in |
|
7214 |
file_magic*) |
|
7215 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
7216 |
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
7217 |
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
|
7218 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
7219 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7220 |
else |
|
7221 |
case $MAGIC_CMD in |
|
7222 |
[\\/*] | ?:[\\/]*) |
|
7223 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
7224 |
;; |
|
7225 |
*) |
|
7226 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
7227 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
7228 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
7229 |
for ac_dir in $ac_dummy; do |
|
7230 |
IFS="$lt_save_ifs" |
|
7231 |
test -z "$ac_dir" && ac_dir=. |
|
7232 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
|
7233 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
7234 |
if test -n "$file_magic_test_file"; then |
|
7235 |
case $deplibs_check_method in |
|
7236 |
"file_magic "*) |
|
7237 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
7238 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7239 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
7240 |
$EGREP "$file_magic_regex" > /dev/null; then |
|
7241 |
: |
|
7242 |
else |
|
7243 |
cat <<EOF 1>&2 |
|
7244 |
||
7245 |
*** Warning: the command libtool uses to detect shared libraries, |
|
7246 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
|
7247 |
*** The result is that libtool may fail to recognize shared libraries |
|
7248 |
*** as such. This will affect the creation of libtool libraries that |
|
7249 |
*** depend on shared libraries, but programs linked with such libtool |
|
7250 |
*** libraries will work regardless of this problem. Nevertheless, you |
|
7251 |
*** may want to report the problem to your system manager and/or to |
|
7252 |
*** bug-libtool@gnu.org |
|
7253 |
||
7254 |
EOF |
|
7255 |
fi ;; |
|
7256 |
esac |
|
7257 |
fi |
|
7258 |
break |
|
7259 |
fi |
|
7260 |
done |
|
7261 |
IFS="$lt_save_ifs" |
|
7262 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
7263 |
;; |
|
7264 |
esac |
|
7265 |
fi |
|
7266 |
||
7267 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7268 |
if test -n "$MAGIC_CMD"; then |
|
7269 |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
7270 |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
7271 |
else |
|
7272 |
echo "$as_me:$LINENO: result: no" >&5 |
|
7273 |
echo "${ECHO_T}no" >&6 |
|
7274 |
fi |
|
7275 |
||
7276 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
7277 |
if test -n "$ac_tool_prefix"; then |
|
7278 |
echo "$as_me:$LINENO: checking for file" >&5 |
|
7279 |
echo $ECHO_N "checking for file... $ECHO_C" >&6 |
|
7280 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
7281 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7282 |
else |
|
7283 |
case $MAGIC_CMD in |
|
7284 |
[\\/*] | ?:[\\/]*) |
|
7285 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
7286 |
;; |
|
7287 |
*) |
|
7288 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
7289 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
7290 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
7291 |
for ac_dir in $ac_dummy; do |
|
7292 |
IFS="$lt_save_ifs" |
|
7293 |
test -z "$ac_dir" && ac_dir=. |
|
7294 |
if test -f $ac_dir/file; then |
|
7295 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
7296 |
if test -n "$file_magic_test_file"; then |
|
7297 |
case $deplibs_check_method in |
|
7298 |
"file_magic "*) |
|
7299 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
7300 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7301 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
7302 |
$EGREP "$file_magic_regex" > /dev/null; then |
|
7303 |
: |
|
7304 |
else |
|
7305 |
cat <<EOF 1>&2 |
|
7306 |
||
7307 |
*** Warning: the command libtool uses to detect shared libraries, |
|
7308 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
|
7309 |
*** The result is that libtool may fail to recognize shared libraries |
|
7310 |
*** as such. This will affect the creation of libtool libraries that |
|
7311 |
*** depend on shared libraries, but programs linked with such libtool |
|
7312 |
*** libraries will work regardless of this problem. Nevertheless, you |
|
7313 |
*** may want to report the problem to your system manager and/or to |
|
7314 |
*** bug-libtool@gnu.org |
|
7315 |
||
7316 |
EOF |
|
7317 |
fi ;; |
|
7318 |
esac |
|
7319 |
fi |
|
7320 |
break |
|
7321 |
fi |
|
7322 |
done |
|
7323 |
IFS="$lt_save_ifs" |
|
7324 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
7325 |
;; |
|
7326 |
esac |
|
7327 |
fi |
|
7328 |
||
7329 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7330 |
if test -n "$MAGIC_CMD"; then |
|
7331 |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
7332 |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
7333 |
else |
|
7334 |
echo "$as_me:$LINENO: result: no" >&5 |
|
7335 |
echo "${ECHO_T}no" >&6 |
|
7336 |
fi |
|
7337 |
||
7338 |
else |
|
7339 |
MAGIC_CMD=: |
|
7340 |
fi |
|
7341 |
fi |
|
7342 |
||
7343 |
fi |
|
7344 |
;; |
|
7345 |
esac |
|
7346 |
||
7347 |
enable_dlopen=no |
|
7348 |
enable_win32_dll=no |
|
7349 |
||
7350 |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
7351 |
if test "${enable_libtool_lock+set}" = set; then |
|
7352 |
enableval="$enable_libtool_lock" |
|
7353 |
||
7354 |
fi; |
|
7355 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
7356 |
||
7357 |
||
7358 |
# Check whether --with-pic or --without-pic was given. |
|
7359 |
if test "${with_pic+set}" = set; then |
|
7360 |
withval="$with_pic" |
|
7361 |
pic_mode="$withval" |
|
7362 |
else |
|
7363 |
pic_mode=default |
|
7364 |
fi; |
|
7365 |
test -z "$pic_mode" && pic_mode=default |
|
7366 |
||
7367 |
# Use C for the default configuration in the libtool script |
|
7368 |
tagname= |
|
7369 |
lt_save_CC="$CC" |
|
7370 |
ac_ext=c |
|
7371 |
ac_cpp='$CPP $CPPFLAGS' |
|
7372 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7373 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7374 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7375 |
||
7376 |
||
7377 |
# Source file extension for C test sources. |
|
7378 |
ac_ext=c |
|
7379 |
||
7380 |
# Object file extension for compiled C test sources. |
|
7381 |
objext=o |
|
7382 |
objext=$objext |
|
7383 |
||
7384 |
# Code to be used in simple compile tests |
|
7385 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
|
7386 |
||
7387 |
# Code to be used in simple link tests |
|
7388 |
lt_simple_link_test_code='int main(){return(0);}\n' |
|
7389 |
||
7390 |
||
7391 |
# If no C compiler was specified, use CC. |
|
7392 |
LTCC=${LTCC-"$CC"} |
|
7393 |
||
7394 |
# Allow CC to be a program name with arguments. |
|
7395 |
compiler=$CC |
|
7396 |
||
7397 |
||
7398 |
# |
|
7399 |
# Check for any special shared library compilation flags. |
|
7400 |
# |
|
7401 |
lt_prog_cc_shlib= |
|
7402 |
if test "$GCC" = no; then |
|
7403 |
case $host_os in |
|
7404 |
sco3.2v5*) |
|
7405 |
lt_prog_cc_shlib='-belf' |
|
7406 |
;; |
|
7407 |
esac |
|
7408 |
fi |
|
7409 |
if test -n "$lt_prog_cc_shlib"; then |
|
7410 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
|
7411 |
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
|
7412 |
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
|
7413 |
else |
|
7414 |
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
|
7415 |
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
|
7416 |
lt_cv_prog_cc_can_build_shared=no |
|
7417 |
fi |
|
7418 |
fi |
|
7419 |
||
7420 |
||
7421 |
# |
|
7422 |
# Check to make sure the static flag actually works. |
|
7423 |
# |
|
7424 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
|
7425 |
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
|
7426 |
if test "${lt_prog_compiler_static_works+set}" = set; then |
|
7427 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7428 |
else |
|
7429 |
lt_prog_compiler_static_works=no |
|
7430 |
save_LDFLAGS="$LDFLAGS" |
|
7431 |
LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
|
7432 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
7433 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
7434 |
# The compiler can only warn and ignore the option if not recognized |
|
7435 |
# So say no if there are warnings |
|
7436 |
if test -s conftest.err; then |
|
7437 |
# Append any errors to the config.log. |
|
7438 |
cat conftest.err 1>&5 |
|
7439 |
else |
|
7440 |
lt_prog_compiler_static_works=yes |
|
7441 |
fi |
|
7442 |
fi |
|
7443 |
$rm conftest* |
|
7444 |
LDFLAGS="$save_LDFLAGS" |
|
7445 |
||
7446 |
fi |
|
7447 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
|
7448 |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
|
7449 |
||
7450 |
if test x"$lt_prog_compiler_static_works" = xyes; then |
|
7451 |
: |
|
7452 |
else |
|
7453 |
lt_prog_compiler_static= |
|
7454 |
fi |
|
7455 |
||
7456 |
||
7457 |
||
7458 |
||
7459 |
lt_prog_compiler_no_builtin_flag= |
|
7460 |
||
7461 |
if test "$GCC" = yes; then |
|
7462 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
|
7463 |
||
7464 |
||
7465 |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
7466 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
7467 |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
|
7468 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7469 |
else |
|
7470 |
lt_cv_prog_compiler_rtti_exceptions=no |
|
7471 |
ac_outfile=conftest.$ac_objext |
|
7472 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
7473 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
7474 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
7475 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
7476 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
7477 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
7478 |
# The option is referenced via a variable to avoid confusing sed. |
|
7479 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
7480 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
7481 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
7482 |
-e 's:$: $lt_compiler_flag:'` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
7483 |
(eval echo "\"\$as_me:7483: $lt_compile\"" >&5) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
7484 |
(eval "$lt_compile" 2>conftest.err) |
7485 |
ac_status=$? |
|
7486 |
cat conftest.err >&5 |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
7487 |
echo "$as_me:7487: \$? = $ac_status" >&5 |
1
by Daniel Holbach
Import upstream version 1.1.15 |
7488 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
7489 |
# The compiler can only warn and ignore the option if not recognized |
|
7490 |
# So say no if there are warnings |
|
7491 |
if test ! -s conftest.err; then |
|
7492 |
lt_cv_prog_compiler_rtti_exceptions=yes |
|
7493 |
fi |
|
7494 |
fi |
|
7495 |
$rm conftest* |
|
7496 |
||
7497 |
fi |
|
7498 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
7499 |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
|
7500 |
||
7501 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
7502 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
|
7503 |
else |
|
7504 |
: |
|
7505 |
fi |
|
7506 |
||
7507 |
fi |
|
7508 |
||
7509 |
lt_prog_compiler_wl= |
|
7510 |
lt_prog_compiler_pic= |
|
7511 |
lt_prog_compiler_static= |
|
7512 |
||
7513 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
7514 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
7515 |
||
7516 |
if test "$GCC" = yes; then |
|
7517 |
lt_prog_compiler_wl='-Wl,' |
|
7518 |
lt_prog_compiler_static='-static' |
|
7519 |
||
7520 |
case $host_os in |
|
7521 |
aix*) |
|
7522 |
# All AIX code is PIC. |
|
7523 |
if test "$host_cpu" = ia64; then |
|
7524 |
# AIX 5 now supports IA64 processor |
|
7525 |
lt_prog_compiler_static='-Bstatic' |
|
7526 |
fi |
|
7527 |
;; |
|
7528 |
||
7529 |
amigaos*) |
|
7530 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
7531 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
7532 |
# like `-m68040'. |
|
7533 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
|
7534 |
;; |
|
7535 |
||
7536 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
7537 |
# PIC is the default for these OSes. |
|
7538 |
;; |
|
7539 |
||
7540 |
mingw* | pw32* | os2*) |
|
7541 |
# This hack is so that the source file can tell whether it is being |
|
7542 |
# built for inclusion in a dll (and should export symbols for example). |
|
7543 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
|
7544 |
;; |
|
7545 |
||
7546 |
darwin* | rhapsody*) |
|
7547 |
# PIC is the default on this platform |
|
7548 |
# Common symbols not allowed in MH_DYLIB files |
|
7549 |
lt_prog_compiler_pic='-fno-common' |
|
7550 |
;; |
|
7551 |
||
7552 |
msdosdjgpp*) |
|
7553 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
|
7554 |
# on systems that don't support them. |
|
7555 |
lt_prog_compiler_can_build_shared=no |
|
7556 |
enable_shared=no |
|
7557 |
;; |
|
7558 |
||
7559 |
sysv4*MP*) |
|
7560 |
if test -d /usr/nec; then |
|
7561 |
lt_prog_compiler_pic=-Kconform_pic |
|
7562 |
fi |
|
7563 |
;; |
|
7564 |
||
7565 |
hpux*) |
|
7566 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
7567 |
# not for PA HP-UX. |
|
7568 |
case "$host_cpu" in |
|
7569 |
hppa*64*|ia64*) |
|
7570 |
# +Z the default |
|
7571 |
;; |
|
7572 |
*) |
|
7573 |
lt_prog_compiler_pic='-fPIC' |
|
7574 |
;; |
|
7575 |
esac |
|
7576 |
;; |
|
7577 |
||
7578 |
*) |
|
7579 |
lt_prog_compiler_pic='-fPIC' |
|
7580 |
;; |
|
7581 |
esac |
|
7582 |
else |
|
7583 |
# PORTME Check for flag to pass linker flags through the system compiler. |
|
7584 |
case $host_os in |
|
7585 |
aix*) |
|
7586 |
lt_prog_compiler_wl='-Wl,' |
|
7587 |
if test "$host_cpu" = ia64; then |
|
7588 |
# AIX 5 now supports IA64 processor |
|
7589 |
lt_prog_compiler_static='-Bstatic' |
|
7590 |
else |
|
7591 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
|
7592 |
fi |
|
7593 |
;; |
|
7594 |
||
7595 |
mingw* | pw32* | os2*) |
|
7596 |
# This hack is so that the source file can tell whether it is being |
|
7597 |
# built for inclusion in a dll (and should export symbols for example). |
|
7598 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
|
7599 |
;; |
|
7600 |
||
7601 |
hpux9* | hpux10* | hpux11*) |
|
7602 |
lt_prog_compiler_wl='-Wl,' |
|
7603 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
7604 |
# not for PA HP-UX. |
|
7605 |
case "$host_cpu" in |
|
7606 |
hppa*64*|ia64*) |
|
7607 |
# +Z the default |
|
7608 |
;; |
|
7609 |
*) |
|
7610 |
lt_prog_compiler_pic='+Z' |
|
7611 |
;; |
|
7612 |
esac |
|
7613 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
7614 |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
|
7615 |
;; |
|
7616 |
||
7617 |
irix5* | irix6* | nonstopux*) |
|
7618 |
lt_prog_compiler_wl='-Wl,' |
|
7619 |
# PIC (with -KPIC) is the default. |
|
7620 |
lt_prog_compiler_static='-non_shared' |
|
7621 |
;; |
|
7622 |
||
7623 |
newsos6) |
|
7624 |
lt_prog_compiler_pic='-KPIC' |
|
7625 |
lt_prog_compiler_static='-Bstatic' |
|
7626 |
;; |
|
7627 |
||
7628 |
linux*) |
|
7629 |
case $CC in |
|
7630 |
icc* | ecc*) |
|
7631 |
lt_prog_compiler_wl='-Wl,' |
|
7632 |
lt_prog_compiler_pic='-KPIC' |
|
7633 |
lt_prog_compiler_static='-static' |
|
7634 |
;; |
|
7635 |
ccc*) |
|
7636 |
lt_prog_compiler_wl='-Wl,' |
|
7637 |
# All Alpha code is PIC. |
|
7638 |
lt_prog_compiler_static='-non_shared' |
|
7639 |
;; |
|
7640 |
esac |
|
7641 |
;; |
|
7642 |
||
7643 |
osf3* | osf4* | osf5*) |
|
7644 |
lt_prog_compiler_wl='-Wl,' |
|
7645 |
# All OSF/1 code is PIC. |
|
7646 |
lt_prog_compiler_static='-non_shared' |
|
7647 |
;; |
|
7648 |
||
7649 |
sco3.2v5*) |
|
7650 |
lt_prog_compiler_pic='-Kpic' |
|
7651 |
lt_prog_compiler_static='-dn' |
|
7652 |
;; |
|
7653 |
||
7654 |
solaris*) |
|
7655 |
lt_prog_compiler_wl='-Wl,' |
|
7656 |
lt_prog_compiler_pic='-KPIC' |
|
7657 |
lt_prog_compiler_static='-Bstatic' |
|
7658 |
;; |
|
7659 |
||
7660 |
sunos4*) |
|
7661 |
lt_prog_compiler_wl='-Qoption ld ' |
|
7662 |
lt_prog_compiler_pic='-PIC' |
|
7663 |
lt_prog_compiler_static='-Bstatic' |
|
7664 |
;; |
|
7665 |
||
7666 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
7667 |
lt_prog_compiler_wl='-Wl,' |
|
7668 |
lt_prog_compiler_pic='-KPIC' |
|
7669 |
lt_prog_compiler_static='-Bstatic' |
|
7670 |
;; |
|
7671 |
||
7672 |
sysv4*MP*) |
|
7673 |
if test -d /usr/nec ;then |
|
7674 |
lt_prog_compiler_pic='-Kconform_pic' |
|
7675 |
lt_prog_compiler_static='-Bstatic' |
|
7676 |
fi |
|
7677 |
;; |
|
7678 |
||
7679 |
uts4*) |
|
7680 |
lt_prog_compiler_pic='-pic' |
|
7681 |
lt_prog_compiler_static='-Bstatic' |
|
7682 |
;; |
|
7683 |
||
7684 |
*) |
|
7685 |
lt_prog_compiler_can_build_shared=no |
|
7686 |
;; |
|
7687 |
esac |
|
7688 |
fi |
|
7689 |
||
7690 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
|
7691 |
echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
|
7692 |
||
7693 |
# |
|
7694 |
# Check to make sure the PIC flag actually works. |
|
7695 |
# |
|
7696 |
if test -n "$lt_prog_compiler_pic"; then |
|
7697 |
||
7698 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
|
7699 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
|
7700 |
if test "${lt_prog_compiler_pic_works+set}" = set; then |
|
7701 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7702 |
else |
|
7703 |
lt_prog_compiler_pic_works=no |
|
7704 |
ac_outfile=conftest.$ac_objext |
|
7705 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
7706 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
|
7707 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
7708 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
7709 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
7710 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
7711 |
# The option is referenced via a variable to avoid confusing sed. |
|
7712 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
7713 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
7714 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
7715 |
-e 's:$: $lt_compiler_flag:'` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
7716 |
(eval echo "\"\$as_me:7716: $lt_compile\"" >&5) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
7717 |
(eval "$lt_compile" 2>conftest.err) |
7718 |
ac_status=$? |
|
7719 |
cat conftest.err >&5 |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
7720 |
echo "$as_me:7720: \$? = $ac_status" >&5 |
1
by Daniel Holbach
Import upstream version 1.1.15 |
7721 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
7722 |
# The compiler can only warn and ignore the option if not recognized |
|
7723 |
# So say no if there are warnings |
|
7724 |
if test ! -s conftest.err; then |
|
7725 |
lt_prog_compiler_pic_works=yes |
|
7726 |
fi |
|
7727 |
fi |
|
7728 |
$rm conftest* |
|
7729 |
||
7730 |
fi |
|
7731 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
|
7732 |
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
|
7733 |
||
7734 |
if test x"$lt_prog_compiler_pic_works" = xyes; then |
|
7735 |
case $lt_prog_compiler_pic in |
|
7736 |
"" | " "*) ;; |
|
7737 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
|
7738 |
esac |
|
7739 |
else |
|
7740 |
lt_prog_compiler_pic= |
|
7741 |
lt_prog_compiler_can_build_shared=no |
|
7742 |
fi |
|
7743 |
||
7744 |
fi |
|
7745 |
case "$host_os" in |
|
7746 |
# For platforms which do not support PIC, -DPIC is meaningless: |
|
7747 |
*djgpp*) |
|
7748 |
lt_prog_compiler_pic= |
|
7749 |
;; |
|
7750 |
*) |
|
7751 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
|
7752 |
;; |
|
7753 |
esac |
|
7754 |
||
7755 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
7756 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
7757 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
|
7758 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7759 |
else |
|
7760 |
lt_cv_prog_compiler_c_o=no |
|
7761 |
$rm -r conftest 2>/dev/null |
|
7762 |
mkdir conftest |
|
7763 |
cd conftest |
|
7764 |
mkdir out |
|
7765 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
7766 |
||
7767 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
7768 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
7769 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
7770 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
7771 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
7772 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
7773 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
7774 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
7775 |
-e 's:$: $lt_compiler_flag:'` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
7776 |
(eval echo "\"\$as_me:7776: $lt_compile\"" >&5) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
7777 |
(eval "$lt_compile" 2>out/conftest.err) |
7778 |
ac_status=$? |
|
7779 |
cat out/conftest.err >&5 |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
7780 |
echo "$as_me:7780: \$? = $ac_status" >&5 |
1
by Daniel Holbach
Import upstream version 1.1.15 |
7781 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7782 |
then |
|
7783 |
# The compiler can only warn and ignore the option if not recognized |
|
7784 |
# So say no if there are warnings |
|
7785 |
if test ! -s out/conftest.err; then |
|
7786 |
lt_cv_prog_compiler_c_o=yes |
|
7787 |
fi |
|
7788 |
fi |
|
7789 |
chmod u+w . |
|
7790 |
$rm conftest* |
|
7791 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
7792 |
# template instantiation |
|
7793 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
7794 |
$rm out/* && rmdir out |
|
7795 |
cd .. |
|
7796 |
rmdir conftest |
|
7797 |
$rm conftest* |
|
7798 |
||
7799 |
fi |
|
7800 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
|
7801 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
|
7802 |
||
7803 |
||
7804 |
hard_links="nottested" |
|
7805 |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
|
7806 |
# do not overwrite the value of need_locks provided by the user |
|
7807 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
7808 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
7809 |
hard_links=yes |
|
7810 |
$rm conftest* |
|
7811 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
7812 |
touch conftest.a |
|
7813 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
7814 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
7815 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
7816 |
echo "${ECHO_T}$hard_links" >&6 |
|
7817 |
if test "$hard_links" = no; then |
|
7818 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
7819 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
7820 |
need_locks=warn |
|
7821 |
fi |
|
7822 |
else |
|
7823 |
need_locks=no |
|
7824 |
fi |
|
7825 |
||
7826 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
7827 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
7828 |
||
7829 |
runpath_var= |
|
7830 |
allow_undefined_flag= |
|
7831 |
enable_shared_with_static_runtimes=no |
|
7832 |
archive_cmds= |
|
7833 |
archive_expsym_cmds= |
|
7834 |
old_archive_From_new_cmds= |
|
7835 |
old_archive_from_expsyms_cmds= |
|
7836 |
export_dynamic_flag_spec= |
|
7837 |
whole_archive_flag_spec= |
|
7838 |
thread_safe_flag_spec= |
|
7839 |
hardcode_libdir_flag_spec= |
|
7840 |
hardcode_libdir_flag_spec_ld= |
|
7841 |
hardcode_libdir_separator= |
|
7842 |
hardcode_direct=no |
|
7843 |
hardcode_minus_L=no |
|
7844 |
hardcode_shlibpath_var=unsupported |
|
7845 |
link_all_deplibs=unknown |
|
7846 |
hardcode_automatic=no |
|
7847 |
module_cmds= |
|
7848 |
module_expsym_cmds= |
|
7849 |
always_export_symbols=no |
|
7850 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
7851 |
# include_expsyms should be a list of space-separated symbols to be *always* |
|
7852 |
# included in the symbol list |
|
7853 |
include_expsyms= |
|
7854 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
|
7855 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
7856 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
7857 |
# as well as any symbol that contains `d'. |
|
7858 |
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
7859 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
7860 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
7861 |
# the symbol is explicitly referenced. Since portable code cannot |
|
7862 |
# rely on this symbol name, it's probably fine to never include it in |
|
7863 |
# preloaded symbol tables. |
|
7864 |
extract_expsyms_cmds= |
|
7865 |
||
7866 |
case $host_os in |
|
7867 |
cygwin* | mingw* | pw32*) |
|
7868 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
7869 |
# When not using gcc, we currently assume that we are using |
|
7870 |
# Microsoft Visual C++. |
|
7871 |
if test "$GCC" != yes; then |
|
7872 |
with_gnu_ld=no |
|
7873 |
fi |
|
7874 |
;; |
|
7875 |
openbsd*) |
|
7876 |
with_gnu_ld=no |
|
7877 |
;; |
|
7878 |
esac |
|
7879 |
||
7880 |
ld_shlibs=yes |
|
7881 |
if test "$with_gnu_ld" = yes; then |
|
7882 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
7883 |
wlarc='${wl}' |
|
7884 |
||
7885 |
# See if GNU ld supports shared libraries. |
|
7886 |
case $host_os in |
|
7887 |
aix3* | aix4* | aix5*) |
|
7888 |
# On AIX/PPC, the GNU linker is very broken |
|
7889 |
if test "$host_cpu" != ia64; then |
|
7890 |
ld_shlibs=no |
|
7891 |
cat <<EOF 1>&2 |
|
7892 |
||
7893 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
7894 |
*** to be unable to reliably create shared libraries on AIX. |
|
7895 |
*** Therefore, libtool is disabling shared libraries support. If you |
|
7896 |
*** really care for shared libraries, you may want to modify your PATH |
|
7897 |
*** so that a non-GNU linker is found, and then restart. |
|
7898 |
||
7899 |
EOF |
|
7900 |
fi |
|
7901 |
;; |
|
7902 |
||
7903 |
amigaos*) |
|
7904 |
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)' |
|
7905 |
hardcode_libdir_flag_spec='-L$libdir' |
|
7906 |
hardcode_minus_L=yes |
|
7907 |
||
7908 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
7909 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
|
7910 |
# to version 4, is to share data among multiple programs linked |
|
7911 |
# with the same dynamic library. Since this doesn't match the |
|
7912 |
# behavior of shared libraries on other platforms, we can't use |
|
7913 |
# them. |
|
7914 |
ld_shlibs=no |
|
7915 |
;; |
|
7916 |
||
7917 |
beos*) |
|
7918 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
7919 |
allow_undefined_flag=unsupported |
|
7920 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
7921 |
# support --undefined. This deserves some investigation. FIXME |
|
7922 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
7923 |
else |
|
7924 |
ld_shlibs=no |
|
7925 |
fi |
|
7926 |
;; |
|
7927 |
||
7928 |
cygwin* | mingw* | pw32*) |
|
7929 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
|
7930 |
# as there is no search path for DLLs. |
|
7931 |
hardcode_libdir_flag_spec='-L$libdir' |
|
7932 |
allow_undefined_flag=unsupported |
|
7933 |
always_export_symbols=no |
|
7934 |
enable_shared_with_static_runtimes=yes |
|
7935 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
7936 |
||
7937 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
7938 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
7939 |
# If the export-symbols file already is a .def file (1st line |
|
7940 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
7941 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
7942 |
cp $export_symbols $output_objdir/$soname.def; |
|
7943 |
else |
|
7944 |
echo EXPORTS > $output_objdir/$soname.def; |
|
7945 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
7946 |
fi~ |
|
7947 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
7948 |
else |
|
7949 |
ld_shlibs=no |
|
7950 |
fi |
|
7951 |
;; |
|
7952 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
7953 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
7954 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7955 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
7956 |
wlarc= |
|
7957 |
else |
|
7958 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
7959 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
7960 |
fi |
|
7961 |
;; |
|
7962 |
||
7963 |
solaris* | sysv5*) |
|
7964 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
7965 |
ld_shlibs=no |
|
7966 |
cat <<EOF 1>&2 |
|
7967 |
||
7968 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
7969 |
*** create shared libraries on Solaris systems. Therefore, libtool |
|
7970 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
7971 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
|
7972 |
*** your PATH or compiler configuration so that the native linker is |
|
7973 |
*** used, and then restart. |
|
7974 |
||
7975 |
EOF |
|
7976 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
7977 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
7978 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
7979 |
else |
|
7980 |
ld_shlibs=no |
|
7981 |
fi |
|
7982 |
;; |
|
7983 |
||
7984 |
sunos4*) |
|
7985 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
7986 |
wlarc= |
|
7987 |
hardcode_direct=yes |
|
7988 |
hardcode_shlibpath_var=no |
|
7989 |
;; |
|
7990 |
||
7991 |
linux*) |
|
7992 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
7993 |
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
7994 |
archive_cmds="$tmp_archive_cmds" |
|
7995 |
supports_anon_versioning=no |
|
7996 |
case `$LD -v 2>/dev/null` in |
|
7997 |
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
7998 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
7999 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
8000 |
*\ 2.11.*) ;; # other 2.11 versions |
|
8001 |
*) supports_anon_versioning=yes ;; |
|
8002 |
esac |
|
8003 |
if test $supports_anon_versioning = yes; then |
|
8004 |
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
8005 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
8006 |
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
8007 |
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
8008 |
else |
|
8009 |
archive_expsym_cmds="$tmp_archive_cmds" |
|
8010 |
fi |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
8011 |
link_all_deplibs=no |
1
by Daniel Holbach
Import upstream version 1.1.15 |
8012 |
else |
8013 |
ld_shlibs=no |
|
8014 |
fi |
|
8015 |
;; |
|
8016 |
||
8017 |
*) |
|
8018 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
8019 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8020 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
8021 |
else |
|
8022 |
ld_shlibs=no |
|
8023 |
fi |
|
8024 |
;; |
|
8025 |
esac |
|
8026 |
||
8027 |
if test "$ld_shlibs" = yes; then |
|
8028 |
runpath_var=LD_RUN_PATH |
|
8029 |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
8030 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
|
8031 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
8032 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
8033 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
8034 |
else |
|
8035 |
whole_archive_flag_spec= |
|
8036 |
fi |
|
8037 |
fi |
|
8038 |
else |
|
8039 |
# PORTME fill in a description of your system's linker (not GNU ld) |
|
8040 |
case $host_os in |
|
8041 |
aix3*) |
|
8042 |
allow_undefined_flag=unsupported |
|
8043 |
always_export_symbols=yes |
|
8044 |
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' |
|
8045 |
# Note: this linker hardcodes the directories in LIBPATH if there |
|
8046 |
# are no directories specified by -L. |
|
8047 |
hardcode_minus_L=yes |
|
8048 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
8049 |
# Neither direct hardcoding nor static linking is supported with a |
|
8050 |
# broken collect2. |
|
8051 |
hardcode_direct=unsupported |
|
8052 |
fi |
|
8053 |
;; |
|
8054 |
||
8055 |
aix4* | aix5*) |
|
8056 |
if test "$host_cpu" = ia64; then |
|
8057 |
# On IA64, the linker does run time linking by default, so we don't |
|
8058 |
# have to do anything special. |
|
8059 |
aix_use_runtimelinking=no |
|
8060 |
exp_sym_flag='-Bexport' |
|
8061 |
no_entry_flag="" |
|
8062 |
else |
|
8063 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
8064 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
8065 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
8066 |
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' |
|
8067 |
else |
|
8068 |
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' |
|
8069 |
fi |
|
8070 |
aix_use_runtimelinking=no |
|
8071 |
||
8072 |
# Test if we are trying to use run time linking or normal |
|
8073 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
8074 |
# need to do runtime linking. |
|
8075 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
8076 |
for ld_flag in $LDFLAGS; do |
|
8077 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
8078 |
aix_use_runtimelinking=yes |
|
8079 |
break |
|
8080 |
fi |
|
8081 |
done |
|
8082 |
esac |
|
8083 |
||
8084 |
exp_sym_flag='-bexport' |
|
8085 |
no_entry_flag='-bnoentry' |
|
8086 |
fi |
|
8087 |
||
8088 |
# When large executables or shared objects are built, AIX ld can |
|
8089 |
# have problems creating the table of contents. If linking a library |
|
8090 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
8091 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
8092 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
8093 |
||
8094 |
archive_cmds='' |
|
8095 |
hardcode_direct=yes |
|
8096 |
hardcode_libdir_separator=':' |
|
8097 |
link_all_deplibs=yes |
|
8098 |
||
8099 |
if test "$GCC" = yes; then |
|
8100 |
case $host_os in aix4.012|aix4.012.*) |
|
8101 |
# We only want to do this on AIX 4.2 and lower, the check |
|
8102 |
# below for broken collect2 doesn't work under 4.3+ |
|
8103 |
collect2name=`${CC} -print-prog-name=collect2` |
|
8104 |
if test -f "$collect2name" && \ |
|
8105 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
8106 |
then |
|
8107 |
# We have reworked collect2 |
|
8108 |
hardcode_direct=yes |
|
8109 |
else |
|
8110 |
# We have old collect2 |
|
8111 |
hardcode_direct=unsupported |
|
8112 |
# It fails to find uninstalled libraries when the uninstalled |
|
8113 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
8114 |
# to unsupported forces relinking |
|
8115 |
hardcode_minus_L=yes |
|
8116 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8117 |
hardcode_libdir_separator= |
|
8118 |
fi |
|
8119 |
esac |
|
8120 |
shared_flag='-shared' |
|
8121 |
else |
|
8122 |
# not using gcc |
|
8123 |
if test "$host_cpu" = ia64; then |
|
8124 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
8125 |
# chokes on -Wl,-G. The following line is correct: |
|
8126 |
shared_flag='-G' |
|
8127 |
else |
|
8128 |
if test "$aix_use_runtimelinking" = yes; then |
|
8129 |
shared_flag='${wl}-G' |
|
8130 |
else |
|
8131 |
shared_flag='${wl}-bM:SRE' |
|
8132 |
fi |
|
8133 |
fi |
|
8134 |
fi |
|
8135 |
||
8136 |
# It seems that -bexpall does not export symbols beginning with |
|
8137 |
# underscore (_), so it is better to generate a list of symbols to export. |
|
8138 |
always_export_symbols=yes |
|
8139 |
if test "$aix_use_runtimelinking" = yes; then |
|
8140 |
# Warning - without using the other runtime loading flags (-brtl), |
|
8141 |
# -berok will link without error, but may produce a broken library. |
|
8142 |
allow_undefined_flag='-berok' |
|
8143 |
# Determine the default libpath from the value encoded in an empty executable. |
|
8144 |
cat >conftest.$ac_ext <<_ACEOF |
|
8145 |
/* confdefs.h. */ |
|
8146 |
_ACEOF |
|
8147 |
cat confdefs.h >>conftest.$ac_ext |
|
8148 |
cat >>conftest.$ac_ext <<_ACEOF |
|
8149 |
/* end confdefs.h. */ |
|
8150 |
||
8151 |
int |
|
8152 |
main () |
|
8153 |
{ |
|
8154 |
||
8155 |
; |
|
8156 |
return 0; |
|
8157 |
} |
|
8158 |
_ACEOF |
|
8159 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
8160 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
8161 |
(eval $ac_link) 2>conftest.er1 |
|
8162 |
ac_status=$? |
|
8163 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
8164 |
rm -f conftest.er1 |
|
8165 |
cat conftest.err >&5 |
|
8166 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8167 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
8168 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
8169 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8170 |
(eval $ac_try) 2>&5 |
|
8171 |
ac_status=$? |
|
8172 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8173 |
(exit $ac_status); }; } && |
|
8174 |
{ ac_try='test -s conftest$ac_exeext' |
|
8175 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
8176 |
(eval $ac_try) 2>&5 |
|
8177 |
ac_status=$? |
|
8178 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8179 |
(exit $ac_status); }; }; then |
|
8180 |
||
8181 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
8182 |
}'` |
|
8183 |
# Check for a 64-bit object if we didn't find anything. |
|
8184 |
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; } |
|
8185 |
}'`; fi |
|
8186 |
else |
|
8187 |
echo "$as_me: failed program was:" >&5 |
|
8188 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
8189 |
||
8190 |
fi |
|
8191 |
rm -f conftest.err conftest.$ac_objext \ |
|
8192 |
conftest$ac_exeext conftest.$ac_ext |
|
8193 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
8194 |
||
8195 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
8196 |
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
8197 |
else |
|
8198 |
if test "$host_cpu" = ia64; then |
|
8199 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
|
8200 |
allow_undefined_flag="-z nodefs" |
|
8201 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
8202 |
else |
|
8203 |
# Determine the default libpath from the value encoded in an empty executable. |
|
8204 |
cat >conftest.$ac_ext <<_ACEOF |
|
8205 |
/* confdefs.h. */ |
|
8206 |
_ACEOF |
|
8207 |
cat confdefs.h >>conftest.$ac_ext |
|
8208 |
cat >>conftest.$ac_ext <<_ACEOF |
|
8209 |
/* end confdefs.h. */ |
|
8210 |
||
8211 |
int |
|
8212 |
main () |
|
8213 |
{ |
|
8214 |
||
8215 |
; |
|
8216 |
return 0; |
|
8217 |
} |
|
8218 |
_ACEOF |
|
8219 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
8220 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
8221 |
(eval $ac_link) 2>conftest.er1 |
|
8222 |
ac_status=$? |
|
8223 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
8224 |
rm -f conftest.er1 |
|
8225 |
cat conftest.err >&5 |
|
8226 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8227 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
8228 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
8229 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8230 |
(eval $ac_try) 2>&5 |
|
8231 |
ac_status=$? |
|
8232 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8233 |
(exit $ac_status); }; } && |
|
8234 |
{ ac_try='test -s conftest$ac_exeext' |
|
8235 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
8236 |
(eval $ac_try) 2>&5 |
|
8237 |
ac_status=$? |
|
8238 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8239 |
(exit $ac_status); }; }; then |
|
8240 |
||
8241 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
8242 |
}'` |
|
8243 |
# Check for a 64-bit object if we didn't find anything. |
|
8244 |
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; } |
|
8245 |
}'`; fi |
|
8246 |
else |
|
8247 |
echo "$as_me: failed program was:" >&5 |
|
8248 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
8249 |
||
8250 |
fi |
|
8251 |
rm -f conftest.err conftest.$ac_objext \ |
|
8252 |
conftest$ac_exeext conftest.$ac_ext |
|
8253 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
8254 |
||
8255 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
8256 |
# Warning - without using the other run time loading flags, |
|
8257 |
# -berok will link without error, but may produce a broken library. |
|
8258 |
no_undefined_flag=' ${wl}-bernotok' |
|
8259 |
allow_undefined_flag=' ${wl}-berok' |
|
8260 |
# -bexpall does not export symbols beginning with underscore (_) |
|
8261 |
always_export_symbols=yes |
|
8262 |
# Exported symbols can be pulled into shared objects from archives |
|
8263 |
whole_archive_flag_spec=' ' |
|
8264 |
archive_cmds_need_lc=yes |
|
8265 |
# This is similar to how AIX traditionally builds it's shared libraries. |
|
8266 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
8267 |
fi |
|
8268 |
fi |
|
8269 |
;; |
|
8270 |
||
8271 |
amigaos*) |
|
8272 |
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)' |
|
8273 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8274 |
hardcode_minus_L=yes |
|
8275 |
# see comment about different semantics on the GNU ld section |
|
8276 |
ld_shlibs=no |
|
8277 |
;; |
|
8278 |
||
8279 |
bsdi4*) |
|
8280 |
export_dynamic_flag_spec=-rdynamic |
|
8281 |
;; |
|
8282 |
||
8283 |
cygwin* | mingw* | pw32*) |
|
8284 |
# When not using gcc, we currently assume that we are using |
|
8285 |
# Microsoft Visual C++. |
|
8286 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
8287 |
# no search path for DLLs. |
|
8288 |
hardcode_libdir_flag_spec=' ' |
|
8289 |
allow_undefined_flag=unsupported |
|
8290 |
# Tell ltmain to make .lib files, not .a files. |
|
8291 |
libext=lib |
|
8292 |
# Tell ltmain to make .dll files, not .so files. |
|
8293 |
shrext_cmds=".dll" |
|
8294 |
# FIXME: Setting linknames here is a bad hack. |
|
8295 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
8296 |
# The linker will automatically build a .lib file if we build a DLL. |
|
8297 |
old_archive_From_new_cmds='true' |
|
8298 |
# FIXME: Should let the user specify the lib program. |
|
8299 |
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
8300 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
8301 |
enable_shared_with_static_runtimes=yes |
|
8302 |
;; |
|
8303 |
||
8304 |
darwin* | rhapsody*) |
|
8305 |
if test "$GXX" = yes ; then |
|
8306 |
archive_cmds_need_lc=no |
|
8307 |
case "$host_os" in |
|
8308 |
rhapsody* | darwin1.[012]) |
|
8309 |
allow_undefined_flag='-undefined suppress' |
|
8310 |
;; |
|
8311 |
*) # Darwin 1.3 on |
|
8312 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
8313 |
allow_undefined_flag='-flat_namespace -undefined suppress' |
|
8314 |
else |
|
8315 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
8316 |
10.[012]) |
|
8317 |
allow_undefined_flag='-flat_namespace -undefined suppress' |
|
8318 |
;; |
|
8319 |
10.*) |
|
8320 |
allow_undefined_flag='-undefined dynamic_lookup' |
|
8321 |
;; |
|
8322 |
esac |
|
8323 |
fi |
|
8324 |
;; |
|
8325 |
esac |
|
8326 |
lt_int_apple_cc_single_mod=no |
|
8327 |
output_verbose_link_cmd='echo' |
|
8328 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
8329 |
lt_int_apple_cc_single_mod=yes |
|
8330 |
fi |
|
8331 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
8332 |
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
8333 |
else |
|
8334 |
archive_cmds='$CC -r ${wl}-bind_at_load -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' |
|
8335 |
fi |
|
8336 |
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
8337 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
8338 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
8339 |
archive_expsym_cmds='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}' |
|
8340 |
else |
|
8341 |
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
|
8342 |
fi |
|
8343 |
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}' |
|
8344 |
hardcode_direct=no |
|
8345 |
hardcode_automatic=yes |
|
8346 |
hardcode_shlibpath_var=unsupported |
|
8347 |
whole_archive_flag_spec='-all_load $convenience' |
|
8348 |
link_all_deplibs=yes |
|
8349 |
else |
|
8350 |
ld_shlibs=no |
|
8351 |
fi |
|
8352 |
;; |
|
8353 |
||
8354 |
dgux*) |
|
8355 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8356 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8357 |
hardcode_shlibpath_var=no |
|
8358 |
;; |
|
8359 |
||
8360 |
freebsd1*) |
|
8361 |
ld_shlibs=no |
|
8362 |
;; |
|
8363 |
||
8364 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
8365 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
8366 |
# does not break anything, and helps significantly (at the cost of a little |
|
8367 |
# extra space). |
|
8368 |
freebsd2.2*) |
|
8369 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
8370 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8371 |
hardcode_direct=yes |
|
8372 |
hardcode_shlibpath_var=no |
|
8373 |
;; |
|
8374 |
||
8375 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
8376 |
freebsd2*) |
|
8377 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
8378 |
hardcode_direct=yes |
|
8379 |
hardcode_minus_L=yes |
|
8380 |
hardcode_shlibpath_var=no |
|
8381 |
;; |
|
8382 |
||
8383 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
8384 |
freebsd* | kfreebsd*-gnu) |
|
8385 |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
8386 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8387 |
hardcode_direct=yes |
|
8388 |
hardcode_shlibpath_var=no |
|
8389 |
;; |
|
8390 |
||
8391 |
hpux9*) |
|
8392 |
if test "$GCC" = yes; then |
|
8393 |
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' |
|
8394 |
else |
|
8395 |
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' |
|
8396 |
fi |
|
8397 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
8398 |
hardcode_libdir_separator=: |
|
8399 |
hardcode_direct=yes |
|
8400 |
||
8401 |
# hardcode_minus_L: Not really in the search PATH, |
|
8402 |
# but as the default location of the library. |
|
8403 |
hardcode_minus_L=yes |
|
8404 |
export_dynamic_flag_spec='${wl}-E' |
|
8405 |
;; |
|
8406 |
||
8407 |
hpux10* | hpux11*) |
|
8408 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
8409 |
case "$host_cpu" in |
|
8410 |
hppa*64*|ia64*) |
|
8411 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8412 |
;; |
|
8413 |
*) |
|
8414 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
8415 |
;; |
|
8416 |
esac |
|
8417 |
else |
|
8418 |
case "$host_cpu" in |
|
8419 |
hppa*64*|ia64*) |
|
8420 |
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8421 |
;; |
|
8422 |
*) |
|
8423 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
8424 |
;; |
|
8425 |
esac |
|
8426 |
fi |
|
8427 |
if test "$with_gnu_ld" = no; then |
|
8428 |
case "$host_cpu" in |
|
8429 |
hppa*64*) |
|
8430 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
8431 |
hardcode_libdir_flag_spec_ld='+b $libdir' |
|
8432 |
hardcode_libdir_separator=: |
|
8433 |
hardcode_direct=no |
|
8434 |
hardcode_shlibpath_var=no |
|
8435 |
;; |
|
8436 |
ia64*) |
|
8437 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8438 |
hardcode_direct=no |
|
8439 |
hardcode_shlibpath_var=no |
|
8440 |
||
8441 |
# hardcode_minus_L: Not really in the search PATH, |
|
8442 |
# but as the default location of the library. |
|
8443 |
hardcode_minus_L=yes |
|
8444 |
;; |
|
8445 |
*) |
|
8446 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
8447 |
hardcode_libdir_separator=: |
|
8448 |
hardcode_direct=yes |
|
8449 |
export_dynamic_flag_spec='${wl}-E' |
|
8450 |
||
8451 |
# hardcode_minus_L: Not really in the search PATH, |
|
8452 |
# but as the default location of the library. |
|
8453 |
hardcode_minus_L=yes |
|
8454 |
;; |
|
8455 |
esac |
|
8456 |
fi |
|
8457 |
;; |
|
8458 |
||
8459 |
irix5* | irix6* | nonstopux*) |
|
8460 |
if test "$GCC" = yes; then |
|
8461 |
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' |
|
8462 |
else |
|
8463 |
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' |
|
8464 |
hardcode_libdir_flag_spec_ld='-rpath $libdir' |
|
8465 |
fi |
|
8466 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8467 |
hardcode_libdir_separator=: |
|
8468 |
link_all_deplibs=yes |
|
8469 |
;; |
|
8470 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
8471 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
8472 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8473 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
8474 |
else |
|
8475 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
8476 |
fi |
|
8477 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8478 |
hardcode_direct=yes |
|
8479 |
hardcode_shlibpath_var=no |
|
8480 |
;; |
|
8481 |
||
8482 |
newsos6) |
|
8483 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8484 |
hardcode_direct=yes |
|
8485 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8486 |
hardcode_libdir_separator=: |
|
8487 |
hardcode_shlibpath_var=no |
|
8488 |
;; |
|
8489 |
||
8490 |
openbsd*) |
|
8491 |
hardcode_direct=yes |
|
8492 |
hardcode_shlibpath_var=no |
|
8493 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
8494 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
8495 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
8496 |
export_dynamic_flag_spec='${wl}-E' |
|
8497 |
else |
|
8498 |
case $host_os in |
|
8499 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
8500 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
8501 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8502 |
;; |
|
8503 |
*) |
|
8504 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
8505 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
8506 |
;; |
|
8507 |
esac |
|
8508 |
fi |
|
8509 |
;; |
|
8510 |
||
8511 |
os2*) |
|
8512 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8513 |
hardcode_minus_L=yes |
|
8514 |
allow_undefined_flag=unsupported |
|
8515 |
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' |
|
8516 |
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
8517 |
;; |
|
8518 |
||
8519 |
osf3*) |
|
8520 |
if test "$GCC" = yes; then |
|
8521 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
8522 |
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' |
|
8523 |
else |
|
8524 |
allow_undefined_flag=' -expect_unresolved \*' |
|
8525 |
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' |
|
8526 |
fi |
|
8527 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8528 |
hardcode_libdir_separator=: |
|
8529 |
;; |
|
8530 |
||
8531 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
8532 |
if test "$GCC" = yes; then |
|
8533 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
8534 |
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' |
|
8535 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8536 |
else |
|
8537 |
allow_undefined_flag=' -expect_unresolved \*' |
|
8538 |
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' |
|
8539 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
8540 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
8541 |
||
8542 |
# Both c and cxx compiler support -rpath directly |
|
8543 |
hardcode_libdir_flag_spec='-rpath $libdir' |
|
8544 |
fi |
|
8545 |
hardcode_libdir_separator=: |
|
8546 |
;; |
|
8547 |
||
8548 |
sco3.2v5*) |
|
8549 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8550 |
hardcode_shlibpath_var=no |
|
8551 |
export_dynamic_flag_spec='${wl}-Bexport' |
|
8552 |
runpath_var=LD_RUN_PATH |
|
8553 |
hardcode_runpath_var=yes |
|
8554 |
;; |
|
8555 |
||
8556 |
solaris*) |
|
8557 |
no_undefined_flag=' -z text' |
|
8558 |
if test "$GCC" = yes; then |
|
8559 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8560 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
8561 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
8562 |
else |
|
8563 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8564 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
8565 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
8566 |
fi |
|
8567 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8568 |
hardcode_shlibpath_var=no |
|
8569 |
case $host_os in |
|
8570 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
8571 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
8572 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
8573 |
esac |
|
8574 |
link_all_deplibs=yes |
|
8575 |
;; |
|
8576 |
||
8577 |
sunos4*) |
|
8578 |
if test "x$host_vendor" = xsequent; then |
|
8579 |
# Use $CC to link under sequent, because it throws in some extra .o |
|
8580 |
# files that make .init and .fini sections work. |
|
8581 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8582 |
else |
|
8583 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
8584 |
fi |
|
8585 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8586 |
hardcode_direct=yes |
|
8587 |
hardcode_minus_L=yes |
|
8588 |
hardcode_shlibpath_var=no |
|
8589 |
;; |
|
8590 |
||
8591 |
sysv4) |
|
8592 |
case $host_vendor in |
|
8593 |
sni) |
|
8594 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8595 |
hardcode_direct=yes # is this really true??? |
|
8596 |
;; |
|
8597 |
siemens) |
|
8598 |
## LD is ld it makes a PLAMLIB |
|
8599 |
## CC just makes a GrossModule. |
|
8600 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
8601 |
reload_cmds='$CC -r -o $output$reload_objs' |
|
8602 |
hardcode_direct=no |
|
8603 |
;; |
|
8604 |
motorola) |
|
8605 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8606 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
8607 |
;; |
|
8608 |
esac |
|
8609 |
runpath_var='LD_RUN_PATH' |
|
8610 |
hardcode_shlibpath_var=no |
|
8611 |
;; |
|
8612 |
||
8613 |
sysv4.3*) |
|
8614 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8615 |
hardcode_shlibpath_var=no |
|
8616 |
export_dynamic_flag_spec='-Bexport' |
|
8617 |
;; |
|
8618 |
||
8619 |
sysv4*MP*) |
|
8620 |
if test -d /usr/nec; then |
|
8621 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8622 |
hardcode_shlibpath_var=no |
|
8623 |
runpath_var=LD_RUN_PATH |
|
8624 |
hardcode_runpath_var=yes |
|
8625 |
ld_shlibs=yes |
|
8626 |
fi |
|
8627 |
;; |
|
8628 |
||
8629 |
sysv4.2uw2*) |
|
8630 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
8631 |
hardcode_direct=yes |
|
8632 |
hardcode_minus_L=no |
|
8633 |
hardcode_shlibpath_var=no |
|
8634 |
hardcode_runpath_var=yes |
|
8635 |
runpath_var=LD_RUN_PATH |
|
8636 |
;; |
|
8637 |
||
8638 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
8639 |
no_undefined_flag='${wl}-z ${wl}text' |
|
8640 |
if test "$GCC" = yes; then |
|
8641 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8642 |
else |
|
8643 |
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8644 |
fi |
|
8645 |
runpath_var='LD_RUN_PATH' |
|
8646 |
hardcode_shlibpath_var=no |
|
8647 |
;; |
|
8648 |
||
8649 |
sysv5*) |
|
8650 |
no_undefined_flag=' -z text' |
|
8651 |
# $CC -shared without GNU ld will not create a library from C++ |
|
8652 |
# object files and a static libstdc++, better avoid it by now |
|
8653 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8654 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
8655 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
8656 |
hardcode_libdir_flag_spec= |
|
8657 |
hardcode_shlibpath_var=no |
|
8658 |
runpath_var='LD_RUN_PATH' |
|
8659 |
;; |
|
8660 |
||
8661 |
uts4*) |
|
8662 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8663 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8664 |
hardcode_shlibpath_var=no |
|
8665 |
;; |
|
8666 |
||
8667 |
*) |
|
8668 |
ld_shlibs=no |
|
8669 |
;; |
|
8670 |
esac |
|
8671 |
fi |
|
8672 |
||
8673 |
echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
|
8674 |
echo "${ECHO_T}$ld_shlibs" >&6 |
|
8675 |
test "$ld_shlibs" = no && can_build_shared=no |
|
8676 |
||
8677 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
8678 |
if test "$GCC" = yes; then |
|
8679 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
8680 |
fi |
|
8681 |
||
8682 |
# |
|
8683 |
# Do we need to explicitly link libc? |
|
8684 |
# |
|
8685 |
case "x$archive_cmds_need_lc" in |
|
8686 |
x|xyes) |
|
8687 |
# Assume -lc should be added |
|
8688 |
archive_cmds_need_lc=yes |
|
8689 |
||
8690 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
8691 |
case $archive_cmds in |
|
8692 |
*'~'*) |
|
8693 |
# FIXME: we may have to deal with multi-command sequences. |
|
8694 |
;; |
|
8695 |
'$CC '*) |
|
8696 |
# Test whether the compiler implicitly links with -lc since on some |
|
8697 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
8698 |
# to ld, don't add -lc before -lgcc. |
|
8699 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
8700 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
8701 |
$rm conftest* |
|
8702 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
8703 |
||
8704 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
8705 |
(eval $ac_compile) 2>&5 |
|
8706 |
ac_status=$? |
|
8707 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8708 |
(exit $ac_status); } 2>conftest.err; then |
|
8709 |
soname=conftest |
|
8710 |
lib=conftest |
|
8711 |
libobjs=conftest.$ac_objext |
|
8712 |
deplibs= |
|
8713 |
wl=$lt_prog_compiler_wl |
|
8714 |
compiler_flags=-v |
|
8715 |
linker_flags=-v |
|
8716 |
verstring= |
|
8717 |
output_objdir=. |
|
8718 |
libname=conftest |
|
8719 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
|
8720 |
allow_undefined_flag= |
|
8721 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
8722 |
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
8723 |
ac_status=$? |
|
8724 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8725 |
(exit $ac_status); } |
|
8726 |
then |
|
8727 |
archive_cmds_need_lc=no |
|
8728 |
else |
|
8729 |
archive_cmds_need_lc=yes |
|
8730 |
fi |
|
8731 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
|
8732 |
else |
|
8733 |
cat conftest.err 1>&5 |
|
8734 |
fi |
|
8735 |
$rm conftest* |
|
8736 |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
|
8737 |
echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
|
8738 |
;; |
|
8739 |
esac |
|
8740 |
fi |
|
8741 |
;; |
|
8742 |
esac |
|
8743 |
||
8744 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
8745 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
8746 |
library_names_spec= |
|
8747 |
libname_spec='lib$name' |
|
8748 |
soname_spec= |
|
8749 |
shrext_cmds=".so" |
|
8750 |
postinstall_cmds= |
|
8751 |
postuninstall_cmds= |
|
8752 |
finish_cmds= |
|
8753 |
finish_eval= |
|
8754 |
shlibpath_var= |
|
8755 |
shlibpath_overrides_runpath=unknown |
|
8756 |
version_type=none |
|
8757 |
dynamic_linker="$host_os ld.so" |
|
8758 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
8759 |
if test "$GCC" = yes; then |
|
8760 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
8761 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
8762 |
# if the path contains ";" then we assume it to be the separator |
|
8763 |
# otherwise default to the standard path separator (i.e. ":") - it is |
|
8764 |
# assumed that no part of a normal pathname contains ";" but that should |
|
8765 |
# okay in the real world where ";" in dirpaths is itself problematic. |
|
8766 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
8767 |
else |
|
8768 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
8769 |
fi |
|
8770 |
else |
|
8771 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
8772 |
fi |
|
8773 |
need_lib_prefix=unknown |
|
8774 |
hardcode_into_libs=no |
|
8775 |
||
8776 |
# when you set need_version to no, make sure it does not cause -set_version |
|
8777 |
# flags to be left without arguments |
|
8778 |
need_version=unknown |
|
8779 |
||
8780 |
case $host_os in |
|
8781 |
aix3*) |
|
8782 |
version_type=linux |
|
8783 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
8784 |
shlibpath_var=LIBPATH |
|
8785 |
||
8786 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
8787 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8788 |
;; |
|
8789 |
||
8790 |
aix4* | aix5*) |
|
8791 |
version_type=linux |
|
8792 |
need_lib_prefix=no |
|
8793 |
need_version=no |
|
8794 |
hardcode_into_libs=yes |
|
8795 |
if test "$host_cpu" = ia64; then |
|
8796 |
# AIX 5 supports IA64 |
|
8797 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
8798 |
shlibpath_var=LD_LIBRARY_PATH |
|
8799 |
else |
|
8800 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
8801 |
# for dependence libraries. The import file would start with |
|
8802 |
# the line `#! .'. This would cause the generated library to |
|
8803 |
# depend on `.', always an invalid library. This was fixed in |
|
8804 |
# development snapshots of GCC prior to 3.0. |
|
8805 |
case $host_os in |
|
8806 |
aix4 | aix4.[01] | aix4.[01].*) |
|
8807 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
8808 |
echo ' yes ' |
|
8809 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
8810 |
: |
|
8811 |
else |
|
8812 |
can_build_shared=no |
|
8813 |
fi |
|
8814 |
;; |
|
8815 |
esac |
|
8816 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
8817 |
# soname into executable. Probably we can add versioning support to |
|
8818 |
# collect2, so additional links can be useful in future. |
|
8819 |
if test "$aix_use_runtimelinking" = yes; then |
|
8820 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
8821 |
# instead of lib<name>.a to let people know that these are not |
|
8822 |
# typical AIX shared libraries. |
|
8823 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
8824 |
else |
|
8825 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
8826 |
# and later when we are not doing run time linking. |
|
8827 |
library_names_spec='${libname}${release}.a $libname.a' |
|
8828 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8829 |
fi |
|
8830 |
shlibpath_var=LIBPATH |
|
8831 |
fi |
|
8832 |
;; |
|
8833 |
||
8834 |
amigaos*) |
|
8835 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
8836 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
8837 |
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' |
|
8838 |
;; |
|
8839 |
||
8840 |
beos*) |
|
8841 |
library_names_spec='${libname}${shared_ext}' |
|
8842 |
dynamic_linker="$host_os ld.so" |
|
8843 |
shlibpath_var=LIBRARY_PATH |
|
8844 |
;; |
|
8845 |
||
8846 |
bsdi4*) |
|
8847 |
version_type=linux |
|
8848 |
need_version=no |
|
8849 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
8850 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8851 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
8852 |
shlibpath_var=LD_LIBRARY_PATH |
|
8853 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
8854 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
8855 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
8856 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
8857 |
# libtool to hard-code these into programs |
|
8858 |
;; |
|
8859 |
||
8860 |
cygwin* | mingw* | pw32*) |
|
8861 |
version_type=windows |
|
8862 |
shrext_cmds=".dll" |
|
8863 |
need_version=no |
|
8864 |
need_lib_prefix=no |
|
8865 |
||
8866 |
case $GCC,$host_os in |
|
8867 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
|
8868 |
library_names_spec='$libname.dll.a' |
|
8869 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
8870 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
8871 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
8872 |
dldir=$destdir/`dirname \$dlpath`~ |
|
8873 |
test -d \$dldir || mkdir -p \$dldir~ |
|
8874 |
$install_prog $dir/$dlname \$dldir/$dlname' |
|
8875 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
8876 |
dlpath=$dir/\$dldll~ |
|
8877 |
$rm \$dlpath' |
|
8878 |
shlibpath_overrides_runpath=yes |
|
8879 |
||
8880 |
case $host_os in |
|
8881 |
cygwin*) |
|
8882 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
8883 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
8884 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
8885 |
;; |
|
8886 |
mingw*) |
|
8887 |
# MinGW DLLs use traditional 'lib' prefix |
|
8888 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
8889 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
8890 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
8891 |
# It is most probably a Windows format PATH printed by |
|
8892 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
8893 |
# path with ; separators, and with drive letters. We can handle the |
|
8894 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
8895 |
# especially as we might pass files found there to a mingw objdump, |
|
8896 |
# which wouldn't understand a cygwinified path. Ahh. |
|
8897 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
8898 |
else |
|
8899 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
8900 |
fi |
|
8901 |
;; |
|
8902 |
pw32*) |
|
8903 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
8904 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
|
8905 |
;; |
|
8906 |
esac |
|
8907 |
;; |
|
8908 |
||
8909 |
*) |
|
8910 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
8911 |
;; |
|
8912 |
esac |
|
8913 |
dynamic_linker='Win32 ld.exe' |
|
8914 |
# FIXME: first we should search . and the directory the executable is in |
|
8915 |
shlibpath_var=PATH |
|
8916 |
;; |
|
8917 |
||
8918 |
darwin* | rhapsody*) |
|
8919 |
dynamic_linker="$host_os dyld" |
|
8920 |
version_type=darwin |
|
8921 |
need_lib_prefix=no |
|
8922 |
need_version=no |
|
8923 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
8924 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
8925 |
shlibpath_overrides_runpath=yes |
|
8926 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
8927 |
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
|
8928 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
8929 |
if test "$GCC" = yes; then |
|
8930 |
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"` |
|
8931 |
else |
|
8932 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
8933 |
fi |
|
8934 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
8935 |
;; |
|
8936 |
||
8937 |
dgux*) |
|
8938 |
version_type=linux |
|
8939 |
need_lib_prefix=no |
|
8940 |
need_version=no |
|
8941 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
8942 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8943 |
shlibpath_var=LD_LIBRARY_PATH |
|
8944 |
;; |
|
8945 |
||
8946 |
freebsd1*) |
|
8947 |
dynamic_linker=no |
|
8948 |
;; |
|
8949 |
||
8950 |
kfreebsd*-gnu) |
|
8951 |
version_type=linux |
|
8952 |
need_lib_prefix=no |
|
8953 |
need_version=no |
|
8954 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
8955 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8956 |
shlibpath_var=LD_LIBRARY_PATH |
|
8957 |
shlibpath_overrides_runpath=no |
|
8958 |
hardcode_into_libs=yes |
|
8959 |
dynamic_linker='GNU ld.so' |
|
8960 |
;; |
|
8961 |
||
8962 |
freebsd*) |
|
8963 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
8964 |
version_type=freebsd-$objformat |
|
8965 |
case $version_type in |
|
8966 |
freebsd-elf*) |
|
8967 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
8968 |
need_version=no |
|
8969 |
need_lib_prefix=no |
|
8970 |
;; |
|
8971 |
freebsd-*) |
|
8972 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
8973 |
need_version=yes |
|
8974 |
;; |
|
8975 |
esac |
|
8976 |
shlibpath_var=LD_LIBRARY_PATH |
|
8977 |
case $host_os in |
|
8978 |
freebsd2*) |
|
8979 |
shlibpath_overrides_runpath=yes |
|
8980 |
;; |
|
8981 |
freebsd3.01* | freebsdelf3.01*) |
|
8982 |
shlibpath_overrides_runpath=yes |
|
8983 |
hardcode_into_libs=yes |
|
8984 |
;; |
|
8985 |
*) # from 3.2 on |
|
8986 |
shlibpath_overrides_runpath=no |
|
8987 |
hardcode_into_libs=yes |
|
8988 |
;; |
|
8989 |
esac |
|
8990 |
;; |
|
8991 |
||
8992 |
gnu*) |
|
8993 |
version_type=linux |
|
8994 |
need_lib_prefix=no |
|
8995 |
need_version=no |
|
8996 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
8997 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
8998 |
shlibpath_var=LD_LIBRARY_PATH |
|
8999 |
hardcode_into_libs=yes |
|
9000 |
;; |
|
9001 |
||
9002 |
hpux9* | hpux10* | hpux11*) |
|
9003 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
9004 |
# link against other versions. |
|
9005 |
version_type=sunos |
|
9006 |
need_lib_prefix=no |
|
9007 |
need_version=no |
|
9008 |
case "$host_cpu" in |
|
9009 |
ia64*) |
|
9010 |
shrext_cmds='.so' |
|
9011 |
hardcode_into_libs=yes |
|
9012 |
dynamic_linker="$host_os dld.so" |
|
9013 |
shlibpath_var=LD_LIBRARY_PATH |
|
9014 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
9015 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9016 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9017 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
9018 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
9019 |
else |
|
9020 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
9021 |
fi |
|
9022 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
9023 |
;; |
|
9024 |
hppa*64*) |
|
9025 |
shrext_cmds='.sl' |
|
9026 |
hardcode_into_libs=yes |
|
9027 |
dynamic_linker="$host_os dld.sl" |
|
9028 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
9029 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
9030 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9031 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9032 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
9033 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
9034 |
;; |
|
9035 |
*) |
|
9036 |
shrext_cmds='.sl' |
|
9037 |
dynamic_linker="$host_os dld.sl" |
|
9038 |
shlibpath_var=SHLIB_PATH |
|
9039 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
9040 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9041 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9042 |
;; |
|
9043 |
esac |
|
9044 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
9045 |
postinstall_cmds='chmod 555 $lib' |
|
9046 |
;; |
|
9047 |
||
9048 |
irix5* | irix6* | nonstopux*) |
|
9049 |
case $host_os in |
|
9050 |
nonstopux*) version_type=nonstopux ;; |
|
9051 |
*) |
|
9052 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
9053 |
version_type=linux |
|
9054 |
else |
|
9055 |
version_type=irix |
|
9056 |
fi ;; |
|
9057 |
esac |
|
9058 |
need_lib_prefix=no |
|
9059 |
need_version=no |
|
9060 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9061 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
9062 |
case $host_os in |
|
9063 |
irix5* | nonstopux*) |
|
9064 |
libsuff= shlibsuff= |
|
9065 |
;; |
|
9066 |
*) |
|
9067 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
9068 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
9069 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
9070 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
9071 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
9072 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
9073 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
9074 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
9075 |
esac |
|
9076 |
;; |
|
9077 |
esac |
|
9078 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
9079 |
shlibpath_overrides_runpath=no |
|
9080 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
9081 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
9082 |
hardcode_into_libs=yes |
|
9083 |
;; |
|
9084 |
||
9085 |
# No shared lib support for Linux oldld, aout, or coff. |
|
9086 |
linux*oldld* | linux*aout* | linux*coff*) |
|
9087 |
dynamic_linker=no |
|
9088 |
;; |
|
9089 |
||
9090 |
# This must be Linux ELF. |
|
9091 |
linux*) |
|
9092 |
version_type=linux |
|
9093 |
need_lib_prefix=no |
|
9094 |
need_version=no |
|
9095 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9096 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9097 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
9098 |
shlibpath_var=LD_LIBRARY_PATH |
|
9099 |
shlibpath_overrides_runpath=no |
|
9100 |
# This implies no fast_install, which is unacceptable. |
|
9101 |
# Some rework will be needed to allow for fast_install |
|
9102 |
# before this can be enabled. |
|
9103 |
hardcode_into_libs=yes |
|
9104 |
||
9105 |
# Append ld.so.conf contents to the search path |
|
9106 |
if test -f /etc/ld.so.conf; then |
|
9107 |
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
9108 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
1
by Daniel Holbach
Import upstream version 1.1.15 |
9109 |
fi |
9110 |
||
9111 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
9112 |
# powerpc, because MkLinux only supported shared libraries with the |
|
9113 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
9114 |
# most powerpc-linux boxes support dynamic linking these days and |
|
9115 |
# people can always --disable-shared, the test was removed, and we |
|
9116 |
# assume the GNU/Linux dynamic linker is in use. |
|
9117 |
dynamic_linker='GNU/Linux ld.so' |
|
9118 |
;; |
|
9119 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
9120 |
netbsdelf*-gnu) |
9121 |
version_type=linux |
|
9122 |
need_lib_prefix=no |
|
9123 |
need_version=no |
|
9124 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
9125 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9126 |
shlibpath_var=LD_LIBRARY_PATH |
|
9127 |
shlibpath_overrides_runpath=no |
|
9128 |
hardcode_into_libs=yes |
|
9129 |
dynamic_linker='NetBSD ld.elf_so' |
|
9130 |
;; |
|
9131 |
||
1
by Daniel Holbach
Import upstream version 1.1.15 |
9132 |
knetbsd*-gnu) |
9133 |
version_type=linux |
|
9134 |
need_lib_prefix=no |
|
9135 |
need_version=no |
|
9136 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
9137 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9138 |
shlibpath_var=LD_LIBRARY_PATH |
|
9139 |
shlibpath_overrides_runpath=no |
|
9140 |
hardcode_into_libs=yes |
|
9141 |
dynamic_linker='GNU ld.so' |
|
9142 |
;; |
|
9143 |
||
9144 |
netbsd*) |
|
9145 |
version_type=sunos |
|
9146 |
need_lib_prefix=no |
|
9147 |
need_version=no |
|
9148 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
9149 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
9150 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
9151 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
9152 |
else |
|
9153 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
9154 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9155 |
dynamic_linker='NetBSD ld.elf_so' |
|
9156 |
fi |
|
9157 |
shlibpath_var=LD_LIBRARY_PATH |
|
9158 |
shlibpath_overrides_runpath=yes |
|
9159 |
hardcode_into_libs=yes |
|
9160 |
;; |
|
9161 |
||
9162 |
newsos6) |
|
9163 |
version_type=linux |
|
9164 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9165 |
shlibpath_var=LD_LIBRARY_PATH |
|
9166 |
shlibpath_overrides_runpath=yes |
|
9167 |
;; |
|
9168 |
||
9169 |
nto-qnx*) |
|
9170 |
version_type=linux |
|
9171 |
need_lib_prefix=no |
|
9172 |
need_version=no |
|
9173 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9174 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9175 |
shlibpath_var=LD_LIBRARY_PATH |
|
9176 |
shlibpath_overrides_runpath=yes |
|
9177 |
;; |
|
9178 |
||
9179 |
openbsd*) |
|
9180 |
version_type=sunos |
|
9181 |
need_lib_prefix=no |
|
9182 |
need_version=yes |
|
9183 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
9184 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
9185 |
shlibpath_var=LD_LIBRARY_PATH |
|
9186 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
9187 |
case $host_os in |
|
9188 |
openbsd2.[89] | openbsd2.[89].*) |
|
9189 |
shlibpath_overrides_runpath=no |
|
9190 |
;; |
|
9191 |
*) |
|
9192 |
shlibpath_overrides_runpath=yes |
|
9193 |
;; |
|
9194 |
esac |
|
9195 |
else |
|
9196 |
shlibpath_overrides_runpath=yes |
|
9197 |
fi |
|
9198 |
;; |
|
9199 |
||
9200 |
os2*) |
|
9201 |
libname_spec='$name' |
|
9202 |
shrext_cmds=".dll" |
|
9203 |
need_lib_prefix=no |
|
9204 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
9205 |
dynamic_linker='OS/2 ld.exe' |
|
9206 |
shlibpath_var=LIBPATH |
|
9207 |
;; |
|
9208 |
||
9209 |
osf3* | osf4* | osf5*) |
|
9210 |
version_type=osf |
|
9211 |
need_lib_prefix=no |
|
9212 |
need_version=no |
|
9213 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9214 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9215 |
shlibpath_var=LD_LIBRARY_PATH |
|
9216 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
9217 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
9218 |
;; |
|
9219 |
||
9220 |
sco3.2v5*) |
|
9221 |
version_type=osf |
|
9222 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9223 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9224 |
shlibpath_var=LD_LIBRARY_PATH |
|
9225 |
;; |
|
9226 |
||
9227 |
solaris*) |
|
9228 |
version_type=linux |
|
9229 |
need_lib_prefix=no |
|
9230 |
need_version=no |
|
9231 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9232 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9233 |
shlibpath_var=LD_LIBRARY_PATH |
|
9234 |
shlibpath_overrides_runpath=yes |
|
9235 |
hardcode_into_libs=yes |
|
9236 |
# ldd complains unless libraries are executable |
|
9237 |
postinstall_cmds='chmod +x $lib' |
|
9238 |
;; |
|
9239 |
||
9240 |
sunos4*) |
|
9241 |
version_type=sunos |
|
9242 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
9243 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
9244 |
shlibpath_var=LD_LIBRARY_PATH |
|
9245 |
shlibpath_overrides_runpath=yes |
|
9246 |
if test "$with_gnu_ld" = yes; then |
|
9247 |
need_lib_prefix=no |
|
9248 |
fi |
|
9249 |
need_version=yes |
|
9250 |
;; |
|
9251 |
||
9252 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
9253 |
version_type=linux |
|
9254 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9255 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9256 |
shlibpath_var=LD_LIBRARY_PATH |
|
9257 |
case $host_vendor in |
|
9258 |
sni) |
|
9259 |
shlibpath_overrides_runpath=no |
|
9260 |
need_lib_prefix=no |
|
9261 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
9262 |
runpath_var=LD_RUN_PATH |
|
9263 |
;; |
|
9264 |
siemens) |
|
9265 |
need_lib_prefix=no |
|
9266 |
;; |
|
9267 |
motorola) |
|
9268 |
need_lib_prefix=no |
|
9269 |
need_version=no |
|
9270 |
shlibpath_overrides_runpath=no |
|
9271 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
9272 |
;; |
|
9273 |
esac |
|
9274 |
;; |
|
9275 |
||
9276 |
sysv4*MP*) |
|
9277 |
if test -d /usr/nec ;then |
|
9278 |
version_type=linux |
|
9279 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
9280 |
soname_spec='$libname${shared_ext}.$major' |
|
9281 |
shlibpath_var=LD_LIBRARY_PATH |
|
9282 |
fi |
|
9283 |
;; |
|
9284 |
||
9285 |
uts4*) |
|
9286 |
version_type=linux |
|
9287 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9288 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9289 |
shlibpath_var=LD_LIBRARY_PATH |
|
9290 |
;; |
|
9291 |
||
9292 |
*) |
|
9293 |
dynamic_linker=no |
|
9294 |
;; |
|
9295 |
esac |
|
9296 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
9297 |
echo "${ECHO_T}$dynamic_linker" >&6 |
|
9298 |
test "$dynamic_linker" = no && can_build_shared=no |
|
9299 |
||
9300 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
9301 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
9302 |
hardcode_action= |
|
9303 |
if test -n "$hardcode_libdir_flag_spec" || \ |
|
9304 |
test -n "$runpath_var " || \ |
|
9305 |
test "X$hardcode_automatic"="Xyes" ; then |
|
9306 |
||
9307 |
# We can hardcode non-existant directories. |
|
9308 |
if test "$hardcode_direct" != no && |
|
9309 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
9310 |
# have to relink, otherwise we might link with an installed library |
|
9311 |
# when we should be linking with a yet-to-be-installed one |
|
9312 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
|
9313 |
test "$hardcode_minus_L" != no; then |
|
9314 |
# Linking always hardcodes the temporary library directory. |
|
9315 |
hardcode_action=relink |
|
9316 |
else |
|
9317 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
9318 |
hardcode_action=immediate |
|
9319 |
fi |
|
9320 |
else |
|
9321 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
9322 |
# directories. |
|
9323 |
hardcode_action=unsupported |
|
9324 |
fi |
|
9325 |
echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
9326 |
echo "${ECHO_T}$hardcode_action" >&6 |
|
9327 |
||
9328 |
if test "$hardcode_action" = relink; then |
|
9329 |
# Fast installation is not supported |
|
9330 |
enable_fast_install=no |
|
9331 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
9332 |
test "$enable_shared" = no; then |
|
9333 |
# Fast installation is not necessary |
|
9334 |
enable_fast_install=needless |
|
9335 |
fi |
|
9336 |
||
9337 |
striplib= |
|
9338 |
old_striplib= |
|
9339 |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
9340 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
9341 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
9342 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
9343 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
9344 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
9345 |
echo "${ECHO_T}yes" >&6 |
|
9346 |
else |
|
9347 |
# FIXME - insert some real tests, host_os isn't really good enough |
|
9348 |
case $host_os in |
|
9349 |
darwin*) |
|
9350 |
if test -n "$STRIP" ; then |
|
9351 |
striplib="$STRIP -x" |
|
9352 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
9353 |
echo "${ECHO_T}yes" >&6 |
|
9354 |
else |
|
9355 |
echo "$as_me:$LINENO: result: no" >&5 |
|
9356 |
echo "${ECHO_T}no" >&6 |
|
9357 |
fi |
|
9358 |
;; |
|
9359 |
*) |
|
9360 |
echo "$as_me:$LINENO: result: no" >&5 |
|
9361 |
echo "${ECHO_T}no" >&6 |
|
9362 |
;; |
|
9363 |
esac |
|
9364 |
fi |
|
9365 |
||
9366 |
if test "x$enable_dlopen" != xyes; then |
|
9367 |
enable_dlopen=unknown |
|
9368 |
enable_dlopen_self=unknown |
|
9369 |
enable_dlopen_self_static=unknown |
|
9370 |
else |
|
9371 |
lt_cv_dlopen=no |
|
9372 |
lt_cv_dlopen_libs= |
|
9373 |
||
9374 |
case $host_os in |
|
9375 |
beos*) |
|
9376 |
lt_cv_dlopen="load_add_on" |
|
9377 |
lt_cv_dlopen_libs= |
|
9378 |
lt_cv_dlopen_self=yes |
|
9379 |
;; |
|
9380 |
||
9381 |
mingw* | pw32*) |
|
9382 |
lt_cv_dlopen="LoadLibrary" |
|
9383 |
lt_cv_dlopen_libs= |
|
9384 |
;; |
|
9385 |
||
9386 |
cygwin*) |
|
9387 |
lt_cv_dlopen="dlopen" |
|
9388 |
lt_cv_dlopen_libs= |
|
9389 |
;; |
|
9390 |
||
9391 |
darwin*) |
|
9392 |
# if libdl is installed we need to link against it |
|
9393 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
9394 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
9395 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
9396 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9397 |
else |
|
9398 |
ac_check_lib_save_LIBS=$LIBS |
|
9399 |
LIBS="-ldl $LIBS" |
|
9400 |
cat >conftest.$ac_ext <<_ACEOF |
|
9401 |
/* confdefs.h. */ |
|
9402 |
_ACEOF |
|
9403 |
cat confdefs.h >>conftest.$ac_ext |
|
9404 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9405 |
/* end confdefs.h. */ |
|
9406 |
||
9407 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
9408 |
#ifdef __cplusplus |
|
9409 |
extern "C" |
|
9410 |
#endif |
|
9411 |
/* We use char because int might match the return type of a gcc2 |
|
9412 |
builtin and then its argument prototype would still apply. */ |
|
9413 |
char dlopen (); |
|
9414 |
int |
|
9415 |
main () |
|
9416 |
{ |
|
9417 |
dlopen (); |
|
9418 |
; |
|
9419 |
return 0; |
|
9420 |
} |
|
9421 |
_ACEOF |
|
9422 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
9423 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
9424 |
(eval $ac_link) 2>conftest.er1 |
|
9425 |
ac_status=$? |
|
9426 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9427 |
rm -f conftest.er1 |
|
9428 |
cat conftest.err >&5 |
|
9429 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9430 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
9431 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
9432 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9433 |
(eval $ac_try) 2>&5 |
|
9434 |
ac_status=$? |
|
9435 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9436 |
(exit $ac_status); }; } && |
|
9437 |
{ ac_try='test -s conftest$ac_exeext' |
|
9438 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
9439 |
(eval $ac_try) 2>&5 |
|
9440 |
ac_status=$? |
|
9441 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9442 |
(exit $ac_status); }; }; then |
|
9443 |
ac_cv_lib_dl_dlopen=yes |
|
9444 |
else |
|
9445 |
echo "$as_me: failed program was:" >&5 |
|
9446 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9447 |
||
9448 |
ac_cv_lib_dl_dlopen=no |
|
9449 |
fi |
|
9450 |
rm -f conftest.err conftest.$ac_objext \ |
|
9451 |
conftest$ac_exeext conftest.$ac_ext |
|
9452 |
LIBS=$ac_check_lib_save_LIBS |
|
9453 |
fi |
|
9454 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
9455 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
9456 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
9457 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
9458 |
else |
|
9459 |
||
9460 |
lt_cv_dlopen="dyld" |
|
9461 |
lt_cv_dlopen_libs= |
|
9462 |
lt_cv_dlopen_self=yes |
|
9463 |
||
9464 |
fi |
|
9465 |
||
9466 |
;; |
|
9467 |
||
9468 |
*) |
|
9469 |
echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
9470 |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
|
9471 |
if test "${ac_cv_func_shl_load+set}" = set; then |
|
9472 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9473 |
else |
|
9474 |
cat >conftest.$ac_ext <<_ACEOF |
|
9475 |
/* confdefs.h. */ |
|
9476 |
_ACEOF |
|
9477 |
cat confdefs.h >>conftest.$ac_ext |
|
9478 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9479 |
/* end confdefs.h. */ |
|
9480 |
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
9481 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
9482 |
#define shl_load innocuous_shl_load |
|
9483 |
||
9484 |
/* System header to define __stub macros and hopefully few prototypes, |
|
9485 |
which can conflict with char shl_load (); below. |
|
9486 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
9487 |
<limits.h> exists even on freestanding compilers. */ |
|
9488 |
||
9489 |
#ifdef __STDC__ |
|
9490 |
# include <limits.h> |
|
9491 |
#else |
|
9492 |
# include <assert.h> |
|
9493 |
#endif |
|
9494 |
||
9495 |
#undef shl_load |
|
9496 |
||
9497 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
9498 |
#ifdef __cplusplus |
|
9499 |
extern "C" |
|
9500 |
{ |
|
9501 |
#endif |
|
9502 |
/* We use char because int might match the return type of a gcc2 |
|
9503 |
builtin and then its argument prototype would still apply. */ |
|
9504 |
char shl_load (); |
|
9505 |
/* The GNU C library defines this for functions which it implements |
|
9506 |
to always fail with ENOSYS. Some functions are actually named |
|
9507 |
something starting with __ and the normal name is an alias. */ |
|
9508 |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
9509 |
choke me |
|
9510 |
#else |
|
9511 |
char (*f) () = shl_load; |
|
9512 |
#endif |
|
9513 |
#ifdef __cplusplus |
|
9514 |
} |
|
9515 |
#endif |
|
9516 |
||
9517 |
int |
|
9518 |
main () |
|
9519 |
{ |
|
9520 |
return f != shl_load; |
|
9521 |
; |
|
9522 |
return 0; |
|
9523 |
} |
|
9524 |
_ACEOF |
|
9525 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
9526 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
9527 |
(eval $ac_link) 2>conftest.er1 |
|
9528 |
ac_status=$? |
|
9529 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9530 |
rm -f conftest.er1 |
|
9531 |
cat conftest.err >&5 |
|
9532 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9533 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
9534 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
9535 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9536 |
(eval $ac_try) 2>&5 |
|
9537 |
ac_status=$? |
|
9538 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9539 |
(exit $ac_status); }; } && |
|
9540 |
{ ac_try='test -s conftest$ac_exeext' |
|
9541 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
9542 |
(eval $ac_try) 2>&5 |
|
9543 |
ac_status=$? |
|
9544 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9545 |
(exit $ac_status); }; }; then |
|
9546 |
ac_cv_func_shl_load=yes |
|
9547 |
else |
|
9548 |
echo "$as_me: failed program was:" >&5 |
|
9549 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9550 |
||
9551 |
ac_cv_func_shl_load=no |
|
9552 |
fi |
|
9553 |
rm -f conftest.err conftest.$ac_objext \ |
|
9554 |
conftest$ac_exeext conftest.$ac_ext |
|
9555 |
fi |
|
9556 |
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
9557 |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
9558 |
if test $ac_cv_func_shl_load = yes; then |
|
9559 |
lt_cv_dlopen="shl_load" |
|
9560 |
else |
|
9561 |
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
9562 |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
9563 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
9564 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9565 |
else |
|
9566 |
ac_check_lib_save_LIBS=$LIBS |
|
9567 |
LIBS="-ldld $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 |
||
9575 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
9576 |
#ifdef __cplusplus |
|
9577 |
extern "C" |
|
9578 |
#endif |
|
9579 |
/* We use char because int might match the return type of a gcc2 |
|
9580 |
builtin and then its argument prototype would still apply. */ |
|
9581 |
char shl_load (); |
|
9582 |
int |
|
9583 |
main () |
|
9584 |
{ |
|
9585 |
shl_load (); |
|
9586 |
; |
|
9587 |
return 0; |
|
9588 |
} |
|
9589 |
_ACEOF |
|
9590 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
9591 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
9592 |
(eval $ac_link) 2>conftest.er1 |
|
9593 |
ac_status=$? |
|
9594 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9595 |
rm -f conftest.er1 |
|
9596 |
cat conftest.err >&5 |
|
9597 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9598 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
9599 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
9600 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9601 |
(eval $ac_try) 2>&5 |
|
9602 |
ac_status=$? |
|
9603 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9604 |
(exit $ac_status); }; } && |
|
9605 |
{ ac_try='test -s conftest$ac_exeext' |
|
9606 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
9607 |
(eval $ac_try) 2>&5 |
|
9608 |
ac_status=$? |
|
9609 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9610 |
(exit $ac_status); }; }; then |
|
9611 |
ac_cv_lib_dld_shl_load=yes |
|
9612 |
else |
|
9613 |
echo "$as_me: failed program was:" >&5 |
|
9614 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9615 |
||
9616 |
ac_cv_lib_dld_shl_load=no |
|
9617 |
fi |
|
9618 |
rm -f conftest.err conftest.$ac_objext \ |
|
9619 |
conftest$ac_exeext conftest.$ac_ext |
|
9620 |
LIBS=$ac_check_lib_save_LIBS |
|
9621 |
fi |
|
9622 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
9623 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
9624 |
if test $ac_cv_lib_dld_shl_load = yes; then |
|
9625 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
9626 |
else |
|
9627 |
echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
9628 |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
9629 |
if test "${ac_cv_func_dlopen+set}" = set; then |
|
9630 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9631 |
else |
|
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 |
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
9639 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
9640 |
#define dlopen innocuous_dlopen |
|
9641 |
||
9642 |
/* System header to define __stub macros and hopefully few prototypes, |
|
9643 |
which can conflict with char dlopen (); below. |
|
9644 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
9645 |
<limits.h> exists even on freestanding compilers. */ |
|
9646 |
||
9647 |
#ifdef __STDC__ |
|
9648 |
# include <limits.h> |
|
9649 |
#else |
|
9650 |
# include <assert.h> |
|
9651 |
#endif |
|
9652 |
||
9653 |
#undef dlopen |
|
9654 |
||
9655 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
9656 |
#ifdef __cplusplus |
|
9657 |
extern "C" |
|
9658 |
{ |
|
9659 |
#endif |
|
9660 |
/* We use char because int might match the return type of a gcc2 |
|
9661 |
builtin and then its argument prototype would still apply. */ |
|
9662 |
char dlopen (); |
|
9663 |
/* The GNU C library defines this for functions which it implements |
|
9664 |
to always fail with ENOSYS. Some functions are actually named |
|
9665 |
something starting with __ and the normal name is an alias. */ |
|
9666 |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
|
9667 |
choke me |
|
9668 |
#else |
|
9669 |
char (*f) () = dlopen; |
|
9670 |
#endif |
|
9671 |
#ifdef __cplusplus |
|
9672 |
} |
|
9673 |
#endif |
|
9674 |
||
9675 |
int |
|
9676 |
main () |
|
9677 |
{ |
|
9678 |
return f != dlopen; |
|
9679 |
; |
|
9680 |
return 0; |
|
9681 |
} |
|
9682 |
_ACEOF |
|
9683 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
9684 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
9685 |
(eval $ac_link) 2>conftest.er1 |
|
9686 |
ac_status=$? |
|
9687 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9688 |
rm -f conftest.er1 |
|
9689 |
cat conftest.err >&5 |
|
9690 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9691 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
9692 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
9693 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9694 |
(eval $ac_try) 2>&5 |
|
9695 |
ac_status=$? |
|
9696 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9697 |
(exit $ac_status); }; } && |
|
9698 |
{ ac_try='test -s conftest$ac_exeext' |
|
9699 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
9700 |
(eval $ac_try) 2>&5 |
|
9701 |
ac_status=$? |
|
9702 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9703 |
(exit $ac_status); }; }; then |
|
9704 |
ac_cv_func_dlopen=yes |
|
9705 |
else |
|
9706 |
echo "$as_me: failed program was:" >&5 |
|
9707 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9708 |
||
9709 |
ac_cv_func_dlopen=no |
|
9710 |
fi |
|
9711 |
rm -f conftest.err conftest.$ac_objext \ |
|
9712 |
conftest$ac_exeext conftest.$ac_ext |
|
9713 |
fi |
|
9714 |
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
9715 |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
9716 |
if test $ac_cv_func_dlopen = yes; then |
|
9717 |
lt_cv_dlopen="dlopen" |
|
9718 |
else |
|
9719 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
9720 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
9721 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
9722 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9723 |
else |
|
9724 |
ac_check_lib_save_LIBS=$LIBS |
|
9725 |
LIBS="-ldl $LIBS" |
|
9726 |
cat >conftest.$ac_ext <<_ACEOF |
|
9727 |
/* confdefs.h. */ |
|
9728 |
_ACEOF |
|
9729 |
cat confdefs.h >>conftest.$ac_ext |
|
9730 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9731 |
/* end confdefs.h. */ |
|
9732 |
||
9733 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
9734 |
#ifdef __cplusplus |
|
9735 |
extern "C" |
|
9736 |
#endif |
|
9737 |
/* We use char because int might match the return type of a gcc2 |
|
9738 |
builtin and then its argument prototype would still apply. */ |
|
9739 |
char dlopen (); |
|
9740 |
int |
|
9741 |
main () |
|
9742 |
{ |
|
9743 |
dlopen (); |
|
9744 |
; |
|
9745 |
return 0; |
|
9746 |
} |
|
9747 |
_ACEOF |
|
9748 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
9749 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
9750 |
(eval $ac_link) 2>conftest.er1 |
|
9751 |
ac_status=$? |
|
9752 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9753 |
rm -f conftest.er1 |
|
9754 |
cat conftest.err >&5 |
|
9755 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9756 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
9757 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
9758 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9759 |
(eval $ac_try) 2>&5 |
|
9760 |
ac_status=$? |
|
9761 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9762 |
(exit $ac_status); }; } && |
|
9763 |
{ ac_try='test -s conftest$ac_exeext' |
|
9764 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
9765 |
(eval $ac_try) 2>&5 |
|
9766 |
ac_status=$? |
|
9767 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9768 |
(exit $ac_status); }; }; then |
|
9769 |
ac_cv_lib_dl_dlopen=yes |
|
9770 |
else |
|
9771 |
echo "$as_me: failed program was:" >&5 |
|
9772 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9773 |
||
9774 |
ac_cv_lib_dl_dlopen=no |
|
9775 |
fi |
|
9776 |
rm -f conftest.err conftest.$ac_objext \ |
|
9777 |
conftest$ac_exeext conftest.$ac_ext |
|
9778 |
LIBS=$ac_check_lib_save_LIBS |
|
9779 |
fi |
|
9780 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
9781 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
9782 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
9783 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
9784 |
else |
|
9785 |
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
9786 |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
9787 |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
9788 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9789 |
else |
|
9790 |
ac_check_lib_save_LIBS=$LIBS |
|
9791 |
LIBS="-lsvld $LIBS" |
|
9792 |
cat >conftest.$ac_ext <<_ACEOF |
|
9793 |
/* confdefs.h. */ |
|
9794 |
_ACEOF |
|
9795 |
cat confdefs.h >>conftest.$ac_ext |
|
9796 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9797 |
/* end confdefs.h. */ |
|
9798 |
||
9799 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
9800 |
#ifdef __cplusplus |
|
9801 |
extern "C" |
|
9802 |
#endif |
|
9803 |
/* We use char because int might match the return type of a gcc2 |
|
9804 |
builtin and then its argument prototype would still apply. */ |
|
9805 |
char dlopen (); |
|
9806 |
int |
|
9807 |
main () |
|
9808 |
{ |
|
9809 |
dlopen (); |
|
9810 |
; |
|
9811 |
return 0; |
|
9812 |
} |
|
9813 |
_ACEOF |
|
9814 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
9815 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
9816 |
(eval $ac_link) 2>conftest.er1 |
|
9817 |
ac_status=$? |
|
9818 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9819 |
rm -f conftest.er1 |
|
9820 |
cat conftest.err >&5 |
|
9821 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9822 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
9823 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
9824 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9825 |
(eval $ac_try) 2>&5 |
|
9826 |
ac_status=$? |
|
9827 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9828 |
(exit $ac_status); }; } && |
|
9829 |
{ ac_try='test -s conftest$ac_exeext' |
|
9830 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
9831 |
(eval $ac_try) 2>&5 |
|
9832 |
ac_status=$? |
|
9833 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9834 |
(exit $ac_status); }; }; then |
|
9835 |
ac_cv_lib_svld_dlopen=yes |
|
9836 |
else |
|
9837 |
echo "$as_me: failed program was:" >&5 |
|
9838 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9839 |
||
9840 |
ac_cv_lib_svld_dlopen=no |
|
9841 |
fi |
|
9842 |
rm -f conftest.err conftest.$ac_objext \ |
|
9843 |
conftest$ac_exeext conftest.$ac_ext |
|
9844 |
LIBS=$ac_check_lib_save_LIBS |
|
9845 |
fi |
|
9846 |
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
9847 |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
9848 |
if test $ac_cv_lib_svld_dlopen = yes; then |
|
9849 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
9850 |
else |
|
9851 |
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
9852 |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
|
9853 |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
9854 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9855 |
else |
|
9856 |
ac_check_lib_save_LIBS=$LIBS |
|
9857 |
LIBS="-ldld $LIBS" |
|
9858 |
cat >conftest.$ac_ext <<_ACEOF |
|
9859 |
/* confdefs.h. */ |
|
9860 |
_ACEOF |
|
9861 |
cat confdefs.h >>conftest.$ac_ext |
|
9862 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9863 |
/* end confdefs.h. */ |
|
9864 |
||
9865 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
9866 |
#ifdef __cplusplus |
|
9867 |
extern "C" |
|
9868 |
#endif |
|
9869 |
/* We use char because int might match the return type of a gcc2 |
|
9870 |
builtin and then its argument prototype would still apply. */ |
|
9871 |
char dld_link (); |
|
9872 |
int |
|
9873 |
main () |
|
9874 |
{ |
|
9875 |
dld_link (); |
|
9876 |
; |
|
9877 |
return 0; |
|
9878 |
} |
|
9879 |
_ACEOF |
|
9880 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
9881 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
9882 |
(eval $ac_link) 2>conftest.er1 |
|
9883 |
ac_status=$? |
|
9884 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9885 |
rm -f conftest.er1 |
|
9886 |
cat conftest.err >&5 |
|
9887 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9888 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
9889 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
9890 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9891 |
(eval $ac_try) 2>&5 |
|
9892 |
ac_status=$? |
|
9893 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9894 |
(exit $ac_status); }; } && |
|
9895 |
{ ac_try='test -s conftest$ac_exeext' |
|
9896 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
9897 |
(eval $ac_try) 2>&5 |
|
9898 |
ac_status=$? |
|
9899 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9900 |
(exit $ac_status); }; }; then |
|
9901 |
ac_cv_lib_dld_dld_link=yes |
|
9902 |
else |
|
9903 |
echo "$as_me: failed program was:" >&5 |
|
9904 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9905 |
||
9906 |
ac_cv_lib_dld_dld_link=no |
|
9907 |
fi |
|
9908 |
rm -f conftest.err conftest.$ac_objext \ |
|
9909 |
conftest$ac_exeext conftest.$ac_ext |
|
9910 |
LIBS=$ac_check_lib_save_LIBS |
|
9911 |
fi |
|
9912 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
9913 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
9914 |
if test $ac_cv_lib_dld_dld_link = yes; then |
|
9915 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
9916 |
fi |
|
9917 |
||
9918 |
||
9919 |
fi |
|
9920 |
||
9921 |
||
9922 |
fi |
|
9923 |
||
9924 |
||
9925 |
fi |
|
9926 |
||
9927 |
||
9928 |
fi |
|
9929 |
||
9930 |
||
9931 |
fi |
|
9932 |
||
9933 |
;; |
|
9934 |
esac |
|
9935 |
||
9936 |
if test "x$lt_cv_dlopen" != xno; then |
|
9937 |
enable_dlopen=yes |
|
9938 |
else |
|
9939 |
enable_dlopen=no |
|
9940 |
fi |
|
9941 |
||
9942 |
case $lt_cv_dlopen in |
|
9943 |
dlopen) |
|
9944 |
save_CPPFLAGS="$CPPFLAGS" |
|
9945 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
9946 |
||
9947 |
save_LDFLAGS="$LDFLAGS" |
|
9948 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
9949 |
||
9950 |
save_LIBS="$LIBS" |
|
9951 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
|
9952 |
||
9953 |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
9954 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
9955 |
if test "${lt_cv_dlopen_self+set}" = set; then |
|
9956 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9957 |
else |
|
9958 |
if test "$cross_compiling" = yes; then : |
|
9959 |
lt_cv_dlopen_self=cross |
|
9960 |
else |
|
9961 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
9962 |
lt_status=$lt_dlunknown |
|
9963 |
cat > conftest.$ac_ext <<EOF |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
9964 |
#line 9964 "configure" |
1
by Daniel Holbach
Import upstream version 1.1.15 |
9965 |
#include "confdefs.h" |
9966 |
||
9967 |
#if HAVE_DLFCN_H |
|
9968 |
#include <dlfcn.h> |
|
9969 |
#endif |
|
9970 |
||
9971 |
#include <stdio.h> |
|
9972 |
||
9973 |
#ifdef RTLD_GLOBAL |
|
9974 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
9975 |
#else |
|
9976 |
# ifdef DL_GLOBAL |
|
9977 |
# define LT_DLGLOBAL DL_GLOBAL |
|
9978 |
# else |
|
9979 |
# define LT_DLGLOBAL 0 |
|
9980 |
# endif |
|
9981 |
#endif |
|
9982 |
||
9983 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
9984 |
find out it does not work in some platform. */ |
|
9985 |
#ifndef LT_DLLAZY_OR_NOW |
|
9986 |
# ifdef RTLD_LAZY |
|
9987 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
9988 |
# else |
|
9989 |
# ifdef DL_LAZY |
|
9990 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
9991 |
# else |
|
9992 |
# ifdef RTLD_NOW |
|
9993 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
9994 |
# else |
|
9995 |
# ifdef DL_NOW |
|
9996 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
9997 |
# else |
|
9998 |
# define LT_DLLAZY_OR_NOW 0 |
|
9999 |
# endif |
|
10000 |
# endif |
|
10001 |
# endif |
|
10002 |
# endif |
|
10003 |
#endif |
|
10004 |
||
10005 |
#ifdef __cplusplus |
|
10006 |
extern "C" void exit (int); |
|
10007 |
#endif |
|
10008 |
||
10009 |
void fnord() { int i=42;} |
|
10010 |
int main () |
|
10011 |
{ |
|
10012 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
10013 |
int status = $lt_dlunknown; |
|
10014 |
||
10015 |
if (self) |
|
10016 |
{ |
|
10017 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
10018 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
10019 |
/* dlclose (self); */ |
|
10020 |
} |
|
10021 |
||
10022 |
exit (status); |
|
10023 |
} |
|
10024 |
EOF |
|
10025 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
10026 |
(eval $ac_link) 2>&5 |
|
10027 |
ac_status=$? |
|
10028 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10029 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
10030 |
(./conftest; exit; ) 2>/dev/null |
|
10031 |
lt_status=$? |
|
10032 |
case x$lt_status in |
|
10033 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
10034 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
10035 |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
10036 |
esac |
|
10037 |
else : |
|
10038 |
# compilation failed |
|
10039 |
lt_cv_dlopen_self=no |
|
10040 |
fi |
|
10041 |
fi |
|
10042 |
rm -fr conftest* |
|
10043 |
||
10044 |
||
10045 |
fi |
|
10046 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
10047 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
10048 |
||
10049 |
if test "x$lt_cv_dlopen_self" = xyes; then |
|
10050 |
LDFLAGS="$LDFLAGS $link_static_flag" |
|
10051 |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
10052 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
10053 |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
10054 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10055 |
else |
|
10056 |
if test "$cross_compiling" = yes; then : |
|
10057 |
lt_cv_dlopen_self_static=cross |
|
10058 |
else |
|
10059 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
10060 |
lt_status=$lt_dlunknown |
|
10061 |
cat > conftest.$ac_ext <<EOF |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
10062 |
#line 10062 "configure" |
1
by Daniel Holbach
Import upstream version 1.1.15 |
10063 |
#include "confdefs.h" |
10064 |
||
10065 |
#if HAVE_DLFCN_H |
|
10066 |
#include <dlfcn.h> |
|
10067 |
#endif |
|
10068 |
||
10069 |
#include <stdio.h> |
|
10070 |
||
10071 |
#ifdef RTLD_GLOBAL |
|
10072 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
10073 |
#else |
|
10074 |
# ifdef DL_GLOBAL |
|
10075 |
# define LT_DLGLOBAL DL_GLOBAL |
|
10076 |
# else |
|
10077 |
# define LT_DLGLOBAL 0 |
|
10078 |
# endif |
|
10079 |
#endif |
|
10080 |
||
10081 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
10082 |
find out it does not work in some platform. */ |
|
10083 |
#ifndef LT_DLLAZY_OR_NOW |
|
10084 |
# ifdef RTLD_LAZY |
|
10085 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
10086 |
# else |
|
10087 |
# ifdef DL_LAZY |
|
10088 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
10089 |
# else |
|
10090 |
# ifdef RTLD_NOW |
|
10091 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
10092 |
# else |
|
10093 |
# ifdef DL_NOW |
|
10094 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
10095 |
# else |
|
10096 |
# define LT_DLLAZY_OR_NOW 0 |
|
10097 |
# endif |
|
10098 |
# endif |
|
10099 |
# endif |
|
10100 |
# endif |
|
10101 |
#endif |
|
10102 |
||
10103 |
#ifdef __cplusplus |
|
10104 |
extern "C" void exit (int); |
|
10105 |
#endif |
|
10106 |
||
10107 |
void fnord() { int i=42;} |
|
10108 |
int main () |
|
10109 |
{ |
|
10110 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
10111 |
int status = $lt_dlunknown; |
|
10112 |
||
10113 |
if (self) |
|
10114 |
{ |
|
10115 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
10116 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
10117 |
/* dlclose (self); */ |
|
10118 |
} |
|
10119 |
||
10120 |
exit (status); |
|
10121 |
} |
|
10122 |
EOF |
|
10123 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
10124 |
(eval $ac_link) 2>&5 |
|
10125 |
ac_status=$? |
|
10126 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10127 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
10128 |
(./conftest; exit; ) 2>/dev/null |
|
10129 |
lt_status=$? |
|
10130 |
case x$lt_status in |
|
10131 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
10132 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
10133 |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
10134 |
esac |
|
10135 |
else : |
|
10136 |
# compilation failed |
|
10137 |
lt_cv_dlopen_self_static=no |
|
10138 |
fi |
|
10139 |
fi |
|
10140 |
rm -fr conftest* |
|
10141 |
||
10142 |
||
10143 |
fi |
|
10144 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
10145 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
10146 |
fi |
|
10147 |
||
10148 |
CPPFLAGS="$save_CPPFLAGS" |
|
10149 |
LDFLAGS="$save_LDFLAGS" |
|
10150 |
LIBS="$save_LIBS" |
|
10151 |
;; |
|
10152 |
esac |
|
10153 |
||
10154 |
case $lt_cv_dlopen_self in |
|
10155 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
10156 |
*) enable_dlopen_self=unknown ;; |
|
10157 |
esac |
|
10158 |
||
10159 |
case $lt_cv_dlopen_self_static in |
|
10160 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
10161 |
*) enable_dlopen_self_static=unknown ;; |
|
10162 |
esac |
|
10163 |
fi |
|
10164 |
||
10165 |
||
10166 |
# Report which librarie types wil actually be built |
|
10167 |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
10168 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
10169 |
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
10170 |
echo "${ECHO_T}$can_build_shared" >&6 |
|
10171 |
||
10172 |
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
10173 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
|
10174 |
test "$can_build_shared" = "no" && enable_shared=no |
|
10175 |
||
10176 |
# On AIX, shared libraries and static libraries use the same namespace, and |
|
10177 |
# are all built from PIC. |
|
10178 |
case "$host_os" in |
|
10179 |
aix3*) |
|
10180 |
test "$enable_shared" = yes && enable_static=no |
|
10181 |
if test -n "$RANLIB"; then |
|
10182 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
10183 |
postinstall_cmds='$RANLIB $lib' |
|
10184 |
fi |
|
10185 |
;; |
|
10186 |
||
10187 |
aix4* | aix5*) |
|
10188 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
10189 |
test "$enable_shared" = yes && enable_static=no |
|
10190 |
fi |
|
10191 |
;; |
|
10192 |
darwin* | rhapsody*) |
|
10193 |
if test "$GCC" = yes; then |
|
10194 |
archive_cmds_need_lc=no |
|
10195 |
case "$host_os" in |
|
10196 |
rhapsody* | darwin1.[012]) |
|
10197 |
allow_undefined_flag='-undefined suppress' |
|
10198 |
;; |
|
10199 |
*) # Darwin 1.3 on |
|
10200 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
10201 |
allow_undefined_flag='-flat_namespace -undefined suppress' |
|
10202 |
else |
|
10203 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
10204 |
10.[012]) |
|
10205 |
allow_undefined_flag='-flat_namespace -undefined suppress' |
|
10206 |
;; |
|
10207 |
10.*) |
|
10208 |
allow_undefined_flag='-undefined dynamic_lookup' |
|
10209 |
;; |
|
10210 |
esac |
|
10211 |
fi |
|
10212 |
;; |
|
10213 |
esac |
|
10214 |
output_verbose_link_cmd='echo' |
|
10215 |
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
|
10216 |
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
10217 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
10218 |
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}' |
|
10219 |
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}' |
|
10220 |
hardcode_direct=no |
|
10221 |
hardcode_automatic=yes |
|
10222 |
hardcode_shlibpath_var=unsupported |
|
10223 |
whole_archive_flag_spec='-all_load $convenience' |
|
10224 |
link_all_deplibs=yes |
|
10225 |
else |
|
10226 |
ld_shlibs=no |
|
10227 |
fi |
|
10228 |
;; |
|
10229 |
esac |
|
10230 |
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
10231 |
echo "${ECHO_T}$enable_shared" >&6 |
|
10232 |
||
10233 |
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
10234 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
|
10235 |
# Make sure either enable_shared or enable_static is yes. |
|
10236 |
test "$enable_shared" = yes || enable_static=yes |
|
10237 |
echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
10238 |
echo "${ECHO_T}$enable_static" >&6 |
|
10239 |
||
10240 |
# The else clause should only fire when bootstrapping the |
|
10241 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
10242 |
# with your package, and you will get complaints that there are |
|
10243 |
# no rules to generate ltmain.sh. |
|
10244 |
if test -f "$ltmain"; then |
|
10245 |
# See if we are running on zsh, and set the options which allow our commands through |
|
10246 |
# without removal of \ escapes. |
|
10247 |
if test -n "${ZSH_VERSION+set}" ; then |
|
10248 |
setopt NO_GLOB_SUBST |
|
10249 |
fi |
|
10250 |
# Now quote all the things that may contain metacharacters while being |
|
10251 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
10252 |
# variables and quote the copies for generation of the libtool script. |
|
10253 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
10254 |
SED SHELL STRIP \ |
|
10255 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
10256 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
10257 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
10258 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
10259 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
10260 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
10261 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
10262 |
compiler \ |
|
10263 |
CC \ |
|
10264 |
LD \ |
|
10265 |
lt_prog_compiler_wl \ |
|
10266 |
lt_prog_compiler_pic \ |
|
10267 |
lt_prog_compiler_static \ |
|
10268 |
lt_prog_compiler_no_builtin_flag \ |
|
10269 |
export_dynamic_flag_spec \ |
|
10270 |
thread_safe_flag_spec \ |
|
10271 |
whole_archive_flag_spec \ |
|
10272 |
enable_shared_with_static_runtimes \ |
|
10273 |
old_archive_cmds \ |
|
10274 |
old_archive_from_new_cmds \ |
|
10275 |
predep_objects \ |
|
10276 |
postdep_objects \ |
|
10277 |
predeps \ |
|
10278 |
postdeps \ |
|
10279 |
compiler_lib_search_path \ |
|
10280 |
archive_cmds \ |
|
10281 |
archive_expsym_cmds \ |
|
10282 |
postinstall_cmds \ |
|
10283 |
postuninstall_cmds \ |
|
10284 |
old_archive_from_expsyms_cmds \ |
|
10285 |
allow_undefined_flag \ |
|
10286 |
no_undefined_flag \ |
|
10287 |
export_symbols_cmds \ |
|
10288 |
hardcode_libdir_flag_spec \ |
|
10289 |
hardcode_libdir_flag_spec_ld \ |
|
10290 |
hardcode_libdir_separator \ |
|
10291 |
hardcode_automatic \ |
|
10292 |
module_cmds \ |
|
10293 |
module_expsym_cmds \ |
|
10294 |
lt_cv_prog_compiler_c_o \ |
|
10295 |
exclude_expsyms \ |
|
10296 |
include_expsyms; do |
|
10297 |
||
10298 |
case $var in |
|
10299 |
old_archive_cmds | \ |
|
10300 |
old_archive_from_new_cmds | \ |
|
10301 |
archive_cmds | \ |
|
10302 |
archive_expsym_cmds | \ |
|
10303 |
module_cmds | \ |
|
10304 |
module_expsym_cmds | \ |
|
10305 |
old_archive_from_expsyms_cmds | \ |
|
10306 |
export_symbols_cmds | \ |
|
10307 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
10308 |
postinstall_cmds | postuninstall_cmds | \ |
|
10309 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
10310 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
10311 |
# Double-quote double-evaled strings. |
|
10312 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
10313 |
;; |
|
10314 |
*) |
|
10315 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
10316 |
;; |
|
10317 |
esac |
|
10318 |
done |
|
10319 |
||
10320 |
case $lt_echo in |
|
10321 |
*'\$0 --fallback-echo"') |
|
10322 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
10323 |
;; |
|
10324 |
esac |
|
10325 |
||
10326 |
cfgfile="${ofile}T" |
|
10327 |
trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
|
10328 |
$rm -f "$cfgfile" |
|
10329 |
{ echo "$as_me:$LINENO: creating $ofile" >&5 |
|
10330 |
echo "$as_me: creating $ofile" >&6;} |
|
10331 |
||
10332 |
cat <<__EOF__ >> "$cfgfile" |
|
10333 |
#! $SHELL |
|
10334 |
||
10335 |
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
10336 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
10337 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
10338 |
# |
|
10339 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
|
10340 |
# Free Software Foundation, Inc. |
|
10341 |
# |
|
10342 |
# This file is part of GNU Libtool: |
|
10343 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
10344 |
# |
|
10345 |
# This program is free software; you can redistribute it and/or modify |
|
10346 |
# it under the terms of the GNU General Public License as published by |
|
10347 |
# the Free Software Foundation; either version 2 of the License, or |
|
10348 |
# (at your option) any later version. |
|
10349 |
# |
|
10350 |
# This program is distributed in the hope that it will be useful, but |
|
10351 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
|
10352 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
10353 |
# General Public License for more details. |
|
10354 |
# |
|
10355 |
# You should have received a copy of the GNU General Public License |
|
10356 |
# along with this program; if not, write to the Free Software |
|
10357 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
10358 |
# |
|
10359 |
# As a special exception to the GNU General Public License, if you |
|
10360 |
# distribute this file as part of a program that contains a |
|
10361 |
# configuration script generated by Autoconf, you may include it under |
|
10362 |
# the same distribution terms that you use for the rest of that program. |
|
10363 |
||
10364 |
# A sed program that does not truncate output. |
|
10365 |
SED=$lt_SED |
|
10366 |
||
10367 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
10368 |
Xsed="$SED -e s/^X//" |
|
10369 |
||
10370 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
|
10371 |
# if CDPATH is set. |
|
10372 |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
10373 |
||
10374 |
# The names of the tagged configurations supported by this script. |
|
10375 |
available_tags= |
|
10376 |
||
10377 |
# ### BEGIN LIBTOOL CONFIG |
|
10378 |
||
10379 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
10380 |
||
10381 |
# Shell to use when invoking shell scripts. |
|
10382 |
SHELL=$lt_SHELL |
|
10383 |
||
10384 |
# Whether or not to build shared libraries. |
|
10385 |
build_libtool_libs=$enable_shared |
|
10386 |
||
10387 |
# Whether or not to build static libraries. |
|
10388 |
build_old_libs=$enable_static |
|
10389 |
||
10390 |
# Whether or not to add -lc for building shared libraries. |
|
10391 |
build_libtool_need_lc=$archive_cmds_need_lc |
|
10392 |
||
10393 |
# Whether or not to disallow shared libs when runtime libs are static |
|
10394 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
|
10395 |
||
10396 |
# Whether or not to optimize for fast installation. |
|
10397 |
fast_install=$enable_fast_install |
|
10398 |
||
10399 |
# The host system. |
|
10400 |
host_alias=$host_alias |
|
10401 |
host=$host |
|
10402 |
||
10403 |
# An echo program that does not interpret backslashes. |
|
10404 |
echo=$lt_echo |
|
10405 |
||
10406 |
# The archiver. |
|
10407 |
AR=$lt_AR |
|
10408 |
AR_FLAGS=$lt_AR_FLAGS |
|
10409 |
||
10410 |
# A C compiler. |
|
10411 |
LTCC=$lt_LTCC |
|
10412 |
||
10413 |
# A language-specific compiler. |
|
10414 |
CC=$lt_compiler |
|
10415 |
||
10416 |
# Is the compiler the GNU C compiler? |
|
10417 |
with_gcc=$GCC |
|
10418 |
||
10419 |
# An ERE matcher. |
|
10420 |
EGREP=$lt_EGREP |
|
10421 |
||
10422 |
# The linker used to build libraries. |
|
10423 |
LD=$lt_LD |
|
10424 |
||
10425 |
# Whether we need hard or soft links. |
|
10426 |
LN_S=$lt_LN_S |
|
10427 |
||
10428 |
# A BSD-compatible nm program. |
|
10429 |
NM=$lt_NM |
|
10430 |
||
10431 |
# A symbol stripping program |
|
10432 |
STRIP=$lt_STRIP |
|
10433 |
||
10434 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
10435 |
MAGIC_CMD=$MAGIC_CMD |
|
10436 |
||
10437 |
# Used on cygwin: DLL creation program. |
|
10438 |
DLLTOOL="$DLLTOOL" |
|
10439 |
||
10440 |
# Used on cygwin: object dumper. |
|
10441 |
OBJDUMP="$OBJDUMP" |
|
10442 |
||
10443 |
# Used on cygwin: assembler. |
|
10444 |
AS="$AS" |
|
10445 |
||
10446 |
# The name of the directory that contains temporary libtool files. |
|
10447 |
objdir=$objdir |
|
10448 |
||
10449 |
# How to create reloadable object files. |
|
10450 |
reload_flag=$lt_reload_flag |
|
10451 |
reload_cmds=$lt_reload_cmds |
|
10452 |
||
10453 |
# How to pass a linker flag through the compiler. |
|
10454 |
wl=$lt_lt_prog_compiler_wl |
|
10455 |
||
10456 |
# Object file suffix (normally "o"). |
|
10457 |
objext="$ac_objext" |
|
10458 |
||
10459 |
# Old archive suffix (normally "a"). |
|
10460 |
libext="$libext" |
|
10461 |
||
10462 |
# Shared library suffix (normally ".so"). |
|
10463 |
shrext_cmds='$shrext_cmds' |
|
10464 |
||
10465 |
# Executable file suffix (normally ""). |
|
10466 |
exeext="$exeext" |
|
10467 |
||
10468 |
# Additional compiler flags for building library objects. |
|
10469 |
pic_flag=$lt_lt_prog_compiler_pic |
|
10470 |
pic_mode=$pic_mode |
|
10471 |
||
10472 |
# What is the maximum length of a command? |
|
10473 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
10474 |
||
10475 |
# Does compiler simultaneously support -c and -o options? |
|
10476 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
|
10477 |
||
10478 |
# Must we lock files when doing compilation ? |
|
10479 |
need_locks=$lt_need_locks |
|
10480 |
||
10481 |
# Do we need the lib prefix for modules? |
|
10482 |
need_lib_prefix=$need_lib_prefix |
|
10483 |
||
10484 |
# Do we need a version for libraries? |
|
10485 |
need_version=$need_version |
|
10486 |
||
10487 |
# Whether dlopen is supported. |
|
10488 |
dlopen_support=$enable_dlopen |
|
10489 |
||
10490 |
# Whether dlopen of programs is supported. |
|
10491 |
dlopen_self=$enable_dlopen_self |
|
10492 |
||
10493 |
# Whether dlopen of statically linked programs is supported. |
|
10494 |
dlopen_self_static=$enable_dlopen_self_static |
|
10495 |
||
10496 |
# Compiler flag to prevent dynamic linking. |
|
10497 |
link_static_flag=$lt_lt_prog_compiler_static |
|
10498 |
||
10499 |
# Compiler flag to turn off builtin functions. |
|
10500 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
|
10501 |
||
10502 |
# Compiler flag to allow reflexive dlopens. |
|
10503 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
10504 |
||
10505 |
# Compiler flag to generate shared objects directly from archives. |
|
10506 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
10507 |
||
10508 |
# Compiler flag to generate thread-safe objects. |
|
10509 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
10510 |
||
10511 |
# Library versioning type. |
|
10512 |
version_type=$version_type |
|
10513 |
||
10514 |
# Format of library name prefix. |
|
10515 |
libname_spec=$lt_libname_spec |
|
10516 |
||
10517 |
# List of archive names. First name is the real one, the rest are links. |
|
10518 |
# The last name is the one that the linker finds with -lNAME. |
|
10519 |
library_names_spec=$lt_library_names_spec |
|
10520 |
||
10521 |
# The coded name of the library, if different from the real name. |
|
10522 |
soname_spec=$lt_soname_spec |
|
10523 |
||
10524 |
# Commands used to build and install an old-style archive. |
|
10525 |
RANLIB=$lt_RANLIB |
|
10526 |
old_archive_cmds=$lt_old_archive_cmds |
|
10527 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
10528 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
10529 |
||
10530 |
# Create an old-style archive from a shared archive. |
|
10531 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
10532 |
||
10533 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
10534 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
10535 |
||
10536 |
# Commands used to build and install a shared archive. |
|
10537 |
archive_cmds=$lt_archive_cmds |
|
10538 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
|
10539 |
postinstall_cmds=$lt_postinstall_cmds |
|
10540 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
10541 |
||
10542 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
10543 |
module_cmds=$lt_module_cmds |
|
10544 |
module_expsym_cmds=$lt_module_expsym_cmds |
|
10545 |
||
10546 |
# Commands to strip libraries. |
|
10547 |
old_striplib=$lt_old_striplib |
|
10548 |
striplib=$lt_striplib |
|
10549 |
||
10550 |
# Dependencies to place before the objects being linked to create a |
|
10551 |
# shared library. |
|
10552 |
predep_objects=$lt_predep_objects |
|
10553 |
||
10554 |
# Dependencies to place after the objects being linked to create a |
|
10555 |
# shared library. |
|
10556 |
postdep_objects=$lt_postdep_objects |
|
10557 |
||
10558 |
# Dependencies to place before the objects being linked to create a |
|
10559 |
# shared library. |
|
10560 |
predeps=$lt_predeps |
|
10561 |
||
10562 |
# Dependencies to place after the objects being linked to create a |
|
10563 |
# shared library. |
|
10564 |
postdeps=$lt_postdeps |
|
10565 |
||
10566 |
# The library search path used internally by the compiler when linking |
|
10567 |
# a shared library. |
|
10568 |
compiler_lib_search_path=$lt_compiler_lib_search_path |
|
10569 |
||
10570 |
# Method to check whether dependent libraries are shared objects. |
|
10571 |
deplibs_check_method=$lt_deplibs_check_method |
|
10572 |
||
10573 |
# Command to use when deplibs_check_method == file_magic. |
|
10574 |
file_magic_cmd=$lt_file_magic_cmd |
|
10575 |
||
10576 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
10577 |
allow_undefined_flag=$lt_allow_undefined_flag |
|
10578 |
||
10579 |
# Flag that forces no undefined symbols. |
|
10580 |
no_undefined_flag=$lt_no_undefined_flag |
|
10581 |
||
10582 |
# Commands used to finish a libtool library installation in a directory. |
|
10583 |
finish_cmds=$lt_finish_cmds |
|
10584 |
||
10585 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
10586 |
finish_eval=$lt_finish_eval |
|
10587 |
||
10588 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
10589 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
10590 |
||
10591 |
# Transform the output of nm in a proper C declaration |
|
10592 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
10593 |
||
10594 |
# Transform the output of nm in a C name address pair |
|
10595 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
10596 |
||
10597 |
# This is the shared library runtime path variable. |
|
10598 |
runpath_var=$runpath_var |
|
10599 |
||
10600 |
# This is the shared library path variable. |
|
10601 |
shlibpath_var=$shlibpath_var |
|
10602 |
||
10603 |
# Is shlibpath searched before the hard-coded library search path? |
|
10604 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
10605 |
||
10606 |
# How to hardcode a shared library path into an executable. |
|
10607 |
hardcode_action=$hardcode_action |
|
10608 |
||
10609 |
# Whether we should hardcode library paths into libraries. |
|
10610 |
hardcode_into_libs=$hardcode_into_libs |
|
10611 |
||
10612 |
# Flag to hardcode \$libdir into a binary during linking. |
|
10613 |
# This must work even if \$libdir does not exist. |
|
10614 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
10615 |
||
10616 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
10617 |
# a binary during linking. This must work even if \$libdir does |
|
10618 |
# not exist. |
|
10619 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
|
10620 |
||
10621 |
# Whether we need a single -rpath flag with a separated argument. |
|
10622 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
10623 |
||
10624 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
10625 |
# resulting binary. |
|
10626 |
hardcode_direct=$hardcode_direct |
|
10627 |
||
10628 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
10629 |
# resulting binary. |
|
10630 |
hardcode_minus_L=$hardcode_minus_L |
|
10631 |
||
10632 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
10633 |
# the resulting binary. |
|
10634 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
10635 |
||
10636 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
10637 |
# and all subsequent libraries and executables linked against it. |
|
10638 |
hardcode_automatic=$hardcode_automatic |
|
10639 |
||
10640 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
10641 |
# restored at relink time. |
|
10642 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
10643 |
||
10644 |
# Whether libtool must link a program against all its dependency libraries. |
|
10645 |
link_all_deplibs=$link_all_deplibs |
|
10646 |
||
10647 |
# Compile-time system search path for libraries |
|
10648 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
10649 |
||
10650 |
# Run-time system search path for libraries |
|
10651 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
10652 |
||
10653 |
# Fix the shell variable \$srcfile for the compiler. |
|
10654 |
fix_srcfile_path="$fix_srcfile_path" |
|
10655 |
||
10656 |
# Set to yes if exported symbols are required. |
|
10657 |
always_export_symbols=$always_export_symbols |
|
10658 |
||
10659 |
# The commands to list exported symbols. |
|
10660 |
export_symbols_cmds=$lt_export_symbols_cmds |
|
10661 |
||
10662 |
# The commands to extract the exported symbol list from a shared archive. |
|
10663 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
10664 |
||
10665 |
# Symbols that should not be listed in the preloaded symbols. |
|
10666 |
exclude_expsyms=$lt_exclude_expsyms |
|
10667 |
||
10668 |
# Symbols that must always be exported. |
|
10669 |
include_expsyms=$lt_include_expsyms |
|
10670 |
||
10671 |
# ### END LIBTOOL CONFIG |
|
10672 |
||
10673 |
__EOF__ |
|
10674 |
||
10675 |
||
10676 |
case $host_os in |
|
10677 |
aix3*) |
|
10678 |
cat <<\EOF >> "$cfgfile" |
|
10679 |
||
10680 |
# AIX sometimes has problems with the GCC collect2 program. For some |
|
10681 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
|
10682 |
# vanish in a puff of smoke. |
|
10683 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
|
10684 |
COLLECT_NAMES= |
|
10685 |
export COLLECT_NAMES |
|
10686 |
fi |
|
10687 |
EOF |
|
10688 |
;; |
|
10689 |
esac |
|
10690 |
||
10691 |
# We use sed instead of cat because bash on DJGPP gets confused if |
|
10692 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
10693 |
# text mode, it properly converts lines to CR/LF. This bash problem |
|
10694 |
# is reportedly fixed, but why not run on old versions too? |
|
10695 |
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
|
10696 |
||
10697 |
mv -f "$cfgfile" "$ofile" || \ |
|
10698 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
10699 |
chmod +x "$ofile" |
|
10700 |
||
10701 |
else |
|
10702 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
10703 |
# `config.status --recheck' to rerun these tests and create the |
|
10704 |
# libtool script then. |
|
10705 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
10706 |
if test -f "$ltmain_in"; then |
|
10707 |
test -f Makefile && make "$ltmain" |
|
10708 |
fi |
|
10709 |
fi |
|
10710 |
||
10711 |
||
10712 |
ac_ext=c |
|
10713 |
ac_cpp='$CPP $CPPFLAGS' |
|
10714 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
10715 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
10716 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
10717 |
||
10718 |
CC="$lt_save_CC" |
|
10719 |
||
10720 |
||
10721 |
# Check whether --with-tags or --without-tags was given. |
|
10722 |
if test "${with_tags+set}" = set; then |
|
10723 |
withval="$with_tags" |
|
10724 |
tagnames="$withval" |
|
10725 |
fi; |
|
10726 |
||
10727 |
if test -f "$ltmain" && test -n "$tagnames"; then |
|
10728 |
if test ! -f "${ofile}"; then |
|
10729 |
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
|
10730 |
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
|
10731 |
fi |
|
10732 |
||
10733 |
if test -z "$LTCC"; then |
|
10734 |
eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
|
10735 |
if test -z "$LTCC"; then |
|
10736 |
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
|
10737 |
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
|
10738 |
else |
|
10739 |
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
|
10740 |
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
|
10741 |
fi |
|
10742 |
fi |
|
10743 |
||
10744 |
# Extract list of available tagged configurations in $ofile. |
|
10745 |
# Note that this assumes the entire list is on one line. |
|
10746 |
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
|
10747 |
||
10748 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
10749 |
for tagname in $tagnames; do |
|
10750 |
IFS="$lt_save_ifs" |
|
10751 |
# Check whether tagname contains only valid characters |
|
10752 |
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
|
10753 |
"") ;; |
|
10754 |
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
|
10755 |
echo "$as_me: error: invalid tag name: $tagname" >&2;} |
|
10756 |
{ (exit 1); exit 1; }; } |
|
10757 |
;; |
|
10758 |
esac |
|
10759 |
||
10760 |
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
|
10761 |
then |
|
10762 |
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
|
10763 |
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
|
10764 |
{ (exit 1); exit 1; }; } |
|
10765 |
fi |
|
10766 |
||
10767 |
# Update the list of available tags. |
|
10768 |
if test -n "$tagname"; then |
|
10769 |
echo appending configuration tag \"$tagname\" to $ofile |
|
10770 |
||
10771 |
case $tagname in |
|
10772 |
CXX) |
|
10773 |
if test -n "$CXX" && test "X$CXX" != "Xno"; then |
|
10774 |
ac_ext=cc |
|
10775 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
10776 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
10777 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
10778 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
10779 |
||
10780 |
||
10781 |
||
10782 |
||
10783 |
archive_cmds_need_lc_CXX=no |
|
10784 |
allow_undefined_flag_CXX= |
|
10785 |
always_export_symbols_CXX=no |
|
10786 |
archive_expsym_cmds_CXX= |
|
10787 |
export_dynamic_flag_spec_CXX= |
|
10788 |
hardcode_direct_CXX=no |
|
10789 |
hardcode_libdir_flag_spec_CXX= |
|
10790 |
hardcode_libdir_flag_spec_ld_CXX= |
|
10791 |
hardcode_libdir_separator_CXX= |
|
10792 |
hardcode_minus_L_CXX=no |
|
10793 |
hardcode_automatic_CXX=no |
|
10794 |
module_cmds_CXX= |
|
10795 |
module_expsym_cmds_CXX= |
|
10796 |
link_all_deplibs_CXX=unknown |
|
10797 |
old_archive_cmds_CXX=$old_archive_cmds |
|
10798 |
no_undefined_flag_CXX= |
|
10799 |
whole_archive_flag_spec_CXX= |
|
10800 |
enable_shared_with_static_runtimes_CXX=no |
|
10801 |
||
10802 |
# Dependencies to place before and after the object being linked: |
|
10803 |
predep_objects_CXX= |
|
10804 |
postdep_objects_CXX= |
|
10805 |
predeps_CXX= |
|
10806 |
postdeps_CXX= |
|
10807 |
compiler_lib_search_path_CXX= |
|
10808 |
||
10809 |
# Source file extension for C++ test sources. |
|
10810 |
ac_ext=cc |
|
10811 |
||
10812 |
# Object file extension for compiled C++ test sources. |
|
10813 |
objext=o |
|
10814 |
objext_CXX=$objext |
|
10815 |
||
10816 |
# Code to be used in simple compile tests |
|
10817 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
|
10818 |
||
10819 |
# Code to be used in simple link tests |
|
10820 |
lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
|
10821 |
||
10822 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
10823 |
||
10824 |
# If no C compiler was specified, use CC. |
|
10825 |
LTCC=${LTCC-"$CC"} |
|
10826 |
||
10827 |
# Allow CC to be a program name with arguments. |
|
10828 |
compiler=$CC |
|
10829 |
||
10830 |
||
10831 |
# Allow CC to be a program name with arguments. |
|
10832 |
lt_save_CC=$CC |
|
10833 |
lt_save_LD=$LD |
|
10834 |
lt_save_GCC=$GCC |
|
10835 |
GCC=$GXX |
|
10836 |
lt_save_with_gnu_ld=$with_gnu_ld |
|
10837 |
lt_save_path_LD=$lt_cv_path_LD |
|
10838 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
|
10839 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
|
10840 |
else |
|
10841 |
unset lt_cv_prog_gnu_ld |
|
10842 |
fi |
|
10843 |
if test -n "${lt_cv_path_LDCXX+set}"; then |
|
10844 |
lt_cv_path_LD=$lt_cv_path_LDCXX |
|
10845 |
else |
|
10846 |
unset lt_cv_path_LD |
|
10847 |
fi |
|
10848 |
test -z "${LDCXX+set}" || LD=$LDCXX |
|
10849 |
CC=${CXX-"c++"} |
|
10850 |
compiler=$CC |
|
10851 |
compiler_CXX=$CC |
|
10852 |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
|
10853 |
||
10854 |
# We don't want -fno-exception wen compiling C++ code, so set the |
|
10855 |
# no_builtin_flag separately |
|
10856 |
if test "$GXX" = yes; then |
|
10857 |
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
|
10858 |
else |
|
10859 |
lt_prog_compiler_no_builtin_flag_CXX= |
|
10860 |
fi |
|
10861 |
||
10862 |
if test "$GXX" = yes; then |
|
10863 |
# Set up default GNU C++ configuration |
|
10864 |
||
10865 |
||
10866 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
10867 |
if test "${with_gnu_ld+set}" = set; then |
|
10868 |
withval="$with_gnu_ld" |
|
10869 |
test "$withval" = no || with_gnu_ld=yes |
|
10870 |
else |
|
10871 |
with_gnu_ld=no |
|
10872 |
fi; |
|
10873 |
ac_prog=ld |
|
10874 |
if test "$GCC" = yes; then |
|
10875 |
# Check if gcc -print-prog-name=ld gives a path. |
|
10876 |
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
|
10877 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
|
10878 |
case $host in |
|
10879 |
*-*-mingw*) |
|
10880 |
# gcc leaves a trailing carriage return which upsets mingw |
|
10881 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
10882 |
*) |
|
10883 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
10884 |
esac |
|
10885 |
case $ac_prog in |
|
10886 |
# Accept absolute paths. |
|
10887 |
[\\/]* | ?:[\\/]*) |
|
10888 |
re_direlt='/[^/][^/]*/\.\./' |
|
10889 |
# Canonicalize the pathname of ld |
|
10890 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
10891 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
10892 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
10893 |
done |
|
10894 |
test -z "$LD" && LD="$ac_prog" |
|
10895 |
;; |
|
10896 |
"") |
|
10897 |
# If it fails, then pretend we aren't using GCC. |
|
10898 |
ac_prog=ld |
|
10899 |
;; |
|
10900 |
*) |
|
10901 |
# If it is relative, then search for the first ld in PATH. |
|
10902 |
with_gnu_ld=unknown |
|
10903 |
;; |
|
10904 |
esac |
|
10905 |
elif test "$with_gnu_ld" = yes; then |
|
10906 |
echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
10907 |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
|
10908 |
else |
|
10909 |
echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
10910 |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
10911 |
fi |
|
10912 |
if test "${lt_cv_path_LD+set}" = set; then |
|
10913 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10914 |
else |
|
10915 |
if test -z "$LD"; then |
|
10916 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
10917 |
for ac_dir in $PATH; do |
|
10918 |
IFS="$lt_save_ifs" |
|
10919 |
test -z "$ac_dir" && ac_dir=. |
|
10920 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
10921 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
|
10922 |
# Check to see if the program is GNU ld. I'd rather use --version, |
|
10923 |
# but apparently some GNU ld's only accept -v. |
|
10924 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
|
10925 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
10926 |
*GNU* | *'with BFD'*) |
|
10927 |
test "$with_gnu_ld" != no && break |
|
10928 |
;; |
|
10929 |
*) |
|
10930 |
test "$with_gnu_ld" != yes && break |
|
10931 |
;; |
|
10932 |
esac |
|
10933 |
fi |
|
10934 |
done |
|
10935 |
IFS="$lt_save_ifs" |
|
10936 |
else |
|
10937 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
10938 |
fi |
|
10939 |
fi |
|
10940 |
||
10941 |
LD="$lt_cv_path_LD" |
|
10942 |
if test -n "$LD"; then |
|
10943 |
echo "$as_me:$LINENO: result: $LD" >&5 |
|
10944 |
echo "${ECHO_T}$LD" >&6 |
|
10945 |
else |
|
10946 |
echo "$as_me:$LINENO: result: no" >&5 |
|
10947 |
echo "${ECHO_T}no" >&6 |
|
10948 |
fi |
|
10949 |
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
10950 |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
10951 |
{ (exit 1); exit 1; }; } |
|
10952 |
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
10953 |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
10954 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
10955 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10956 |
else |
|
10957 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
10958 |
case `$LD -v 2>&1 </dev/null` in |
|
10959 |
*GNU* | *'with BFD'*) |
|
10960 |
lt_cv_prog_gnu_ld=yes |
|
10961 |
;; |
|
10962 |
*) |
|
10963 |
lt_cv_prog_gnu_ld=no |
|
10964 |
;; |
|
10965 |
esac |
|
10966 |
fi |
|
10967 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
10968 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
10969 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
|
10970 |
||
10971 |
||
10972 |
||
10973 |
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
|
10974 |
# archiving commands below assume that GNU ld is being used. |
|
10975 |
if test "$with_gnu_ld" = yes; then |
|
10976 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
10977 |
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' |
|
10978 |
||
10979 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
10980 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
10981 |
||
10982 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
10983 |
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
|
10984 |
# investigate it a little bit more. (MM) |
|
10985 |
wlarc='${wl}' |
|
10986 |
||
10987 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
10988 |
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
|
10989 |
grep 'no-whole-archive' > /dev/null; then |
|
10990 |
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
10991 |
else |
|
10992 |
whole_archive_flag_spec_CXX= |
|
10993 |
fi |
|
10994 |
else |
|
10995 |
with_gnu_ld=no |
|
10996 |
wlarc= |
|
10997 |
||
10998 |
# A generic and very simple default shared library creation |
|
10999 |
# command for GNU C++ for the case where it uses the native |
|
11000 |
# linker, instead of GNU ld. If possible, this setting should |
|
11001 |
# overridden to take advantage of the native linker features on |
|
11002 |
# the platform it is being used on. |
|
11003 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
11004 |
fi |
|
11005 |
||
11006 |
# Commands to make compiler produce verbose output that lists |
|
11007 |
# what "hidden" libraries, object files and flags are used when |
|
11008 |
# linking a shared library. |
|
11009 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
11010 |
||
11011 |
else |
|
11012 |
GXX=no |
|
11013 |
with_gnu_ld=no |
|
11014 |
wlarc= |
|
11015 |
fi |
|
11016 |
||
11017 |
# PORTME: fill in a description of your system's C++ link characteristics |
|
11018 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
11019 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
11020 |
ld_shlibs_CXX=yes |
|
11021 |
case $host_os in |
|
11022 |
aix3*) |
|
11023 |
# FIXME: insert proper C++ library support |
|
11024 |
ld_shlibs_CXX=no |
|
11025 |
;; |
|
11026 |
aix4* | aix5*) |
|
11027 |
if test "$host_cpu" = ia64; then |
|
11028 |
# On IA64, the linker does run time linking by default, so we don't |
|
11029 |
# have to do anything special. |
|
11030 |
aix_use_runtimelinking=no |
|
11031 |
exp_sym_flag='-Bexport' |
|
11032 |
no_entry_flag="" |
|
11033 |
else |
|
11034 |
aix_use_runtimelinking=no |
|
11035 |
||
11036 |
# Test if we are trying to use run time linking or normal |
|
11037 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
11038 |
# need to do runtime linking. |
|
11039 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
11040 |
for ld_flag in $LDFLAGS; do |
|
11041 |
case $ld_flag in |
|
11042 |
*-brtl*) |
|
11043 |
aix_use_runtimelinking=yes |
|
11044 |
break |
|
11045 |
;; |
|
11046 |
esac |
|
11047 |
done |
|
11048 |
esac |
|
11049 |
||
11050 |
exp_sym_flag='-bexport' |
|
11051 |
no_entry_flag='-bnoentry' |
|
11052 |
fi |
|
11053 |
||
11054 |
# When large executables or shared objects are built, AIX ld can |
|
11055 |
# have problems creating the table of contents. If linking a library |
|
11056 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
11057 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
11058 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
11059 |
||
11060 |
archive_cmds_CXX='' |
|
11061 |
hardcode_direct_CXX=yes |
|
11062 |
hardcode_libdir_separator_CXX=':' |
|
11063 |
link_all_deplibs_CXX=yes |
|
11064 |
||
11065 |
if test "$GXX" = yes; then |
|
11066 |
case $host_os in aix4.012|aix4.012.*) |
|
11067 |
# We only want to do this on AIX 4.2 and lower, the check |
|
11068 |
# below for broken collect2 doesn't work under 4.3+ |
|
11069 |
collect2name=`${CC} -print-prog-name=collect2` |
|
11070 |
if test -f "$collect2name" && \ |
|
11071 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
11072 |
then |
|
11073 |
# We have reworked collect2 |
|
11074 |
hardcode_direct_CXX=yes |
|
11075 |
else |
|
11076 |
# We have old collect2 |
|
11077 |
hardcode_direct_CXX=unsupported |
|
11078 |
# It fails to find uninstalled libraries when the uninstalled |
|
11079 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
11080 |
# to unsupported forces relinking |
|
11081 |
hardcode_minus_L_CXX=yes |
|
11082 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
11083 |
hardcode_libdir_separator_CXX= |
|
11084 |
fi |
|
11085 |
esac |
|
11086 |
shared_flag='-shared' |
|
11087 |
else |
|
11088 |
# not using gcc |
|
11089 |
if test "$host_cpu" = ia64; then |
|
11090 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
11091 |
# chokes on -Wl,-G. The following line is correct: |
|
11092 |
shared_flag='-G' |
|
11093 |
else |
|
11094 |
if test "$aix_use_runtimelinking" = yes; then |
|
11095 |
shared_flag='${wl}-G' |
|
11096 |
else |
|
11097 |
shared_flag='${wl}-bM:SRE' |
|
11098 |
fi |
|
11099 |
fi |
|
11100 |
fi |
|
11101 |
||
11102 |
# It seems that -bexpall does not export symbols beginning with |
|
11103 |
# underscore (_), so it is better to generate a list of symbols to export. |
|
11104 |
always_export_symbols_CXX=yes |
|
11105 |
if test "$aix_use_runtimelinking" = yes; then |
|
11106 |
# Warning - without using the other runtime loading flags (-brtl), |
|
11107 |
# -berok will link without error, but may produce a broken library. |
|
11108 |
allow_undefined_flag_CXX='-berok' |
|
11109 |
# Determine the default libpath from the value encoded in an empty executable. |
|
11110 |
cat >conftest.$ac_ext <<_ACEOF |
|
11111 |
/* confdefs.h. */ |
|
11112 |
_ACEOF |
|
11113 |
cat confdefs.h >>conftest.$ac_ext |
|
11114 |
cat >>conftest.$ac_ext <<_ACEOF |
|
11115 |
/* end confdefs.h. */ |
|
11116 |
||
11117 |
int |
|
11118 |
main () |
|
11119 |
{ |
|
11120 |
||
11121 |
; |
|
11122 |
return 0; |
|
11123 |
} |
|
11124 |
_ACEOF |
|
11125 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
11126 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
11127 |
(eval $ac_link) 2>conftest.er1 |
|
11128 |
ac_status=$? |
|
11129 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
11130 |
rm -f conftest.er1 |
|
11131 |
cat conftest.err >&5 |
|
11132 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11133 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
11134 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
11135 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11136 |
(eval $ac_try) 2>&5 |
|
11137 |
ac_status=$? |
|
11138 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11139 |
(exit $ac_status); }; } && |
|
11140 |
{ ac_try='test -s conftest$ac_exeext' |
|
11141 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
11142 |
(eval $ac_try) 2>&5 |
|
11143 |
ac_status=$? |
|
11144 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11145 |
(exit $ac_status); }; }; then |
|
11146 |
||
11147 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
11148 |
}'` |
|
11149 |
# Check for a 64-bit object if we didn't find anything. |
|
11150 |
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; } |
|
11151 |
}'`; fi |
|
11152 |
else |
|
11153 |
echo "$as_me: failed program was:" >&5 |
|
11154 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
11155 |
||
11156 |
fi |
|
11157 |
rm -f conftest.err conftest.$ac_objext \ |
|
11158 |
conftest$ac_exeext conftest.$ac_ext |
|
11159 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
11160 |
||
11161 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
11162 |
||
11163 |
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
11164 |
else |
|
11165 |
if test "$host_cpu" = ia64; then |
|
11166 |
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
|
11167 |
allow_undefined_flag_CXX="-z nodefs" |
|
11168 |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
11169 |
else |
|
11170 |
# Determine the default libpath from the value encoded in an empty executable. |
|
11171 |
cat >conftest.$ac_ext <<_ACEOF |
|
11172 |
/* confdefs.h. */ |
|
11173 |
_ACEOF |
|
11174 |
cat confdefs.h >>conftest.$ac_ext |
|
11175 |
cat >>conftest.$ac_ext <<_ACEOF |
|
11176 |
/* end confdefs.h. */ |
|
11177 |
||
11178 |
int |
|
11179 |
main () |
|
11180 |
{ |
|
11181 |
||
11182 |
; |
|
11183 |
return 0; |
|
11184 |
} |
|
11185 |
_ACEOF |
|
11186 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
11187 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
11188 |
(eval $ac_link) 2>conftest.er1 |
|
11189 |
ac_status=$? |
|
11190 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
11191 |
rm -f conftest.er1 |
|
11192 |
cat conftest.err >&5 |
|
11193 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11194 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
11195 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
11196 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11197 |
(eval $ac_try) 2>&5 |
|
11198 |
ac_status=$? |
|
11199 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11200 |
(exit $ac_status); }; } && |
|
11201 |
{ ac_try='test -s conftest$ac_exeext' |
|
11202 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
11203 |
(eval $ac_try) 2>&5 |
|
11204 |
ac_status=$? |
|
11205 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11206 |
(exit $ac_status); }; }; then |
|
11207 |
||
11208 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
11209 |
}'` |
|
11210 |
# Check for a 64-bit object if we didn't find anything. |
|
11211 |
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; } |
|
11212 |
}'`; fi |
|
11213 |
else |
|
11214 |
echo "$as_me: failed program was:" >&5 |
|
11215 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
11216 |
||
11217 |
fi |
|
11218 |
rm -f conftest.err conftest.$ac_objext \ |
|
11219 |
conftest$ac_exeext conftest.$ac_ext |
|
11220 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
11221 |
||
11222 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
11223 |
# Warning - without using the other run time loading flags, |
|
11224 |
# -berok will link without error, but may produce a broken library. |
|
11225 |
no_undefined_flag_CXX=' ${wl}-bernotok' |
|
11226 |
allow_undefined_flag_CXX=' ${wl}-berok' |
|
11227 |
# -bexpall does not export symbols beginning with underscore (_) |
|
11228 |
always_export_symbols_CXX=yes |
|
11229 |
# Exported symbols can be pulled into shared objects from archives |
|
11230 |
whole_archive_flag_spec_CXX=' ' |
|
11231 |
archive_cmds_need_lc_CXX=yes |
|
11232 |
# This is similar to how AIX traditionally builds it's shared libraries. |
|
11233 |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
11234 |
fi |
|
11235 |
fi |
|
11236 |
;; |
|
11237 |
chorus*) |
|
11238 |
case $cc_basename in |
|
11239 |
*) |
|
11240 |
# FIXME: insert proper C++ library support |
|
11241 |
ld_shlibs_CXX=no |
|
11242 |
;; |
|
11243 |
esac |
|
11244 |
;; |
|
11245 |
||
11246 |
cygwin* | mingw* | pw32*) |
|
11247 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
|
11248 |
# as there is no search path for DLLs. |
|
11249 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
11250 |
allow_undefined_flag_CXX=unsupported |
|
11251 |
always_export_symbols_CXX=no |
|
11252 |
enable_shared_with_static_runtimes_CXX=yes |
|
11253 |
||
11254 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
11255 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
11256 |
# If the export-symbols file already is a .def file (1st line |
|
11257 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
11258 |
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
11259 |
cp $export_symbols $output_objdir/$soname.def; |
|
11260 |
else |
|
11261 |
echo EXPORTS > $output_objdir/$soname.def; |
|
11262 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
11263 |
fi~ |
|
11264 |
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
11265 |
else |
|
11266 |
ld_shlibs_CXX=no |
|
11267 |
fi |
|
11268 |
;; |
|
11269 |
||
11270 |
darwin* | rhapsody*) |
|
11271 |
if test "$GXX" = yes; then |
|
11272 |
archive_cmds_need_lc_CXX=no |
|
11273 |
case "$host_os" in |
|
11274 |
rhapsody* | darwin1.[012]) |
|
11275 |
allow_undefined_flag_CXX='-undefined suppress' |
|
11276 |
;; |
|
11277 |
*) # Darwin 1.3 on |
|
11278 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
11279 |
allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
|
11280 |
else |
|
11281 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
11282 |
10.[012]) |
|
11283 |
allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
|
11284 |
;; |
|
11285 |
10.*) |
|
11286 |
allow_undefined_flag_CXX='-undefined dynamic_lookup' |
|
11287 |
;; |
|
11288 |
esac |
|
11289 |
fi |
|
11290 |
;; |
|
11291 |
esac |
|
11292 |
lt_int_apple_cc_single_mod=no |
|
11293 |
output_verbose_link_cmd='echo' |
|
11294 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
11295 |
lt_int_apple_cc_single_mod=yes |
|
11296 |
fi |
|
11297 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
11298 |
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
11299 |
else |
|
11300 |
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' |
|
11301 |
fi |
|
11302 |
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
11303 |
||
11304 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
11305 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
11306 |
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}' |
|
11307 |
else |
|
11308 |
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
|
11309 |
fi |
|
11310 |
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}' |
|
11311 |
hardcode_direct_CXX=no |
|
11312 |
hardcode_automatic_CXX=yes |
|
11313 |
hardcode_shlibpath_var_CXX=unsupported |
|
11314 |
whole_archive_flag_spec_CXX='-all_load $convenience' |
|
11315 |
link_all_deplibs_CXX=yes |
|
11316 |
else |
|
11317 |
ld_shlibs_CXX=no |
|
11318 |
fi |
|
11319 |
;; |
|
11320 |
||
11321 |
dgux*) |
|
11322 |
case $cc_basename in |
|
11323 |
ec++) |
|
11324 |
# FIXME: insert proper C++ library support |
|
11325 |
ld_shlibs_CXX=no |
|
11326 |
;; |
|
11327 |
ghcx) |
|
11328 |
# Green Hills C++ Compiler |
|
11329 |
# FIXME: insert proper C++ library support |
|
11330 |
ld_shlibs_CXX=no |
|
11331 |
;; |
|
11332 |
*) |
|
11333 |
# FIXME: insert proper C++ library support |
|
11334 |
ld_shlibs_CXX=no |
|
11335 |
;; |
|
11336 |
esac |
|
11337 |
;; |
|
11338 |
freebsd12*) |
|
11339 |
# C++ shared libraries reported to be fairly broken before switch to ELF |
|
11340 |
ld_shlibs_CXX=no |
|
11341 |
;; |
|
11342 |
freebsd-elf*) |
|
11343 |
archive_cmds_need_lc_CXX=no |
|
11344 |
;; |
|
11345 |
freebsd* | kfreebsd*-gnu) |
|
11346 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
|
11347 |
# conventions |
|
11348 |
ld_shlibs_CXX=yes |
|
11349 |
;; |
|
11350 |
gnu*) |
|
11351 |
;; |
|
11352 |
hpux9*) |
|
11353 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
11354 |
hardcode_libdir_separator_CXX=: |
|
11355 |
export_dynamic_flag_spec_CXX='${wl}-E' |
|
11356 |
hardcode_direct_CXX=yes |
|
11357 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
11358 |
# but as the default |
|
11359 |
# location of the library. |
|
11360 |
||
11361 |
case $cc_basename in |
|
11362 |
CC) |
|
11363 |
# FIXME: insert proper C++ library support |
|
11364 |
ld_shlibs_CXX=no |
|
11365 |
;; |
|
11366 |
aCC) |
|
11367 |
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' |
|
11368 |
# Commands to make compiler produce verbose output that lists |
|
11369 |
# what "hidden" libraries, object files and flags are used when |
|
11370 |
# linking a shared library. |
|
11371 |
# |
|
11372 |
# There doesn't appear to be a way to prevent this compiler from |
|
11373 |
# explicitly linking system object files so we need to strip them |
|
11374 |
# from the output so that they don't get included in the library |
|
11375 |
# dependencies. |
|
11376 |
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' |
|
11377 |
;; |
|
11378 |
*) |
|
11379 |
if test "$GXX" = yes; then |
|
11380 |
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' |
|
11381 |
else |
|
11382 |
# FIXME: insert proper C++ library support |
|
11383 |
ld_shlibs_CXX=no |
|
11384 |
fi |
|
11385 |
;; |
|
11386 |
esac |
|
11387 |
;; |
|
11388 |
hpux10*|hpux11*) |
|
11389 |
if test $with_gnu_ld = no; then |
|
11390 |
case "$host_cpu" in |
|
11391 |
hppa*64*) |
|
11392 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
11393 |
hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
|
11394 |
hardcode_libdir_separator_CXX=: |
|
11395 |
;; |
|
11396 |
ia64*) |
|
11397 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
11398 |
;; |
|
11399 |
*) |
|
11400 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
11401 |
hardcode_libdir_separator_CXX=: |
|
11402 |
export_dynamic_flag_spec_CXX='${wl}-E' |
|
11403 |
;; |
|
11404 |
esac |
|
11405 |
fi |
|
11406 |
case "$host_cpu" in |
|
11407 |
hppa*64*) |
|
11408 |
hardcode_direct_CXX=no |
|
11409 |
hardcode_shlibpath_var_CXX=no |
|
11410 |
;; |
|
11411 |
ia64*) |
|
11412 |
hardcode_direct_CXX=no |
|
11413 |
hardcode_shlibpath_var_CXX=no |
|
11414 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
11415 |
# but as the default |
|
11416 |
# location of the library. |
|
11417 |
;; |
|
11418 |
*) |
|
11419 |
hardcode_direct_CXX=yes |
|
11420 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
11421 |
# but as the default |
|
11422 |
# location of the library. |
|
11423 |
;; |
|
11424 |
esac |
|
11425 |
||
11426 |
case $cc_basename in |
|
11427 |
CC) |
|
11428 |
# FIXME: insert proper C++ library support |
|
11429 |
ld_shlibs_CXX=no |
|
11430 |
;; |
|
11431 |
aCC) |
|
11432 |
case "$host_cpu" in |
|
11433 |
hppa*64*|ia64*) |
|
11434 |
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
|
11435 |
;; |
|
11436 |
*) |
|
11437 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
11438 |
;; |
|
11439 |
esac |
|
11440 |
# Commands to make compiler produce verbose output that lists |
|
11441 |
# what "hidden" libraries, object files and flags are used when |
|
11442 |
# linking a shared library. |
|
11443 |
# |
|
11444 |
# There doesn't appear to be a way to prevent this compiler from |
|
11445 |
# explicitly linking system object files so we need to strip them |
|
11446 |
# from the output so that they don't get included in the library |
|
11447 |
# dependencies. |
|
11448 |
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' |
|
11449 |
;; |
|
11450 |
*) |
|
11451 |
if test "$GXX" = yes; then |
|
11452 |
if test $with_gnu_ld = no; then |
|
11453 |
case "$host_cpu" in |
|
11454 |
ia64*|hppa*64*) |
|
11455 |
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
|
11456 |
;; |
|
11457 |
*) |
|
11458 |
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' |
|
11459 |
;; |
|
11460 |
esac |
|
11461 |
fi |
|
11462 |
else |
|
11463 |
# FIXME: insert proper C++ library support |
|
11464 |
ld_shlibs_CXX=no |
|
11465 |
fi |
|
11466 |
;; |
|
11467 |
esac |
|
11468 |
;; |
|
11469 |
irix5* | irix6*) |
|
11470 |
case $cc_basename in |
|
11471 |
CC) |
|
11472 |
# SGI C++ |
|
11473 |
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 ${objdir}/so_locations -o $lib' |
|
11474 |
||
11475 |
# Archives containing C++ object files must be created using |
|
11476 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
|
11477 |
# necessary to make sure instantiated templates are included |
|
11478 |
# in the archive. |
|
11479 |
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
|
11480 |
;; |
|
11481 |
*) |
|
11482 |
if test "$GXX" = yes; then |
|
11483 |
if test "$with_gnu_ld" = no; then |
|
11484 |
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}${objdir}/so_locations -o $lib' |
|
11485 |
else |
|
11486 |
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' |
|
11487 |
fi |
|
11488 |
fi |
|
11489 |
link_all_deplibs_CXX=yes |
|
11490 |
;; |
|
11491 |
esac |
|
11492 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
11493 |
hardcode_libdir_separator_CXX=: |
|
11494 |
;; |
|
11495 |
linux*) |
|
11496 |
case $cc_basename in |
|
11497 |
KCC) |
|
11498 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
|
11499 |
||
11500 |
# KCC will only create a shared library if the output file |
|
11501 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
11502 |
# to its proper name (with version) after linking. |
|
11503 |
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' |
|
11504 |
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' |
|
11505 |
# Commands to make compiler produce verbose output that lists |
|
11506 |
# what "hidden" libraries, object files and flags are used when |
|
11507 |
# linking a shared library. |
|
11508 |
# |
|
11509 |
# There doesn't appear to be a way to prevent this compiler from |
|
11510 |
# explicitly linking system object files so we need to strip them |
|
11511 |
# from the output so that they don't get included in the library |
|
11512 |
# dependencies. |
|
11513 |
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' |
|
11514 |
||
11515 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
|
11516 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
11517 |
||
11518 |
# Archives containing C++ object files must be created using |
|
11519 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
11520 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
11521 |
;; |
|
11522 |
icpc) |
|
11523 |
# Intel C++ |
|
11524 |
with_gnu_ld=yes |
|
11525 |
archive_cmds_need_lc_CXX=no |
|
11526 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
11527 |
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' |
|
11528 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
11529 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
11530 |
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
11531 |
;; |
|
11532 |
cxx) |
|
11533 |
# Compaq C++ |
|
11534 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
11535 |
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' |
|
11536 |
||
11537 |
runpath_var=LD_RUN_PATH |
|
11538 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
11539 |
hardcode_libdir_separator_CXX=: |
|
11540 |
||
11541 |
# Commands to make compiler produce verbose output that lists |
|
11542 |
# what "hidden" libraries, object files and flags are used when |
|
11543 |
# linking a shared library. |
|
11544 |
# |
|
11545 |
# There doesn't appear to be a way to prevent this compiler from |
|
11546 |
# explicitly linking system object files so we need to strip them |
|
11547 |
# from the output so that they don't get included in the library |
|
11548 |
# dependencies. |
|
11549 |
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' |
|
11550 |
;; |
|
11551 |
esac |
|
11552 |
;; |
|
11553 |
lynxos*) |
|
11554 |
# FIXME: insert proper C++ library support |
|
11555 |
ld_shlibs_CXX=no |
|
11556 |
;; |
|
11557 |
m88k*) |
|
11558 |
# FIXME: insert proper C++ library support |
|
11559 |
ld_shlibs_CXX=no |
|
11560 |
;; |
|
11561 |
mvs*) |
|
11562 |
case $cc_basename in |
|
11563 |
cxx) |
|
11564 |
# FIXME: insert proper C++ library support |
|
11565 |
ld_shlibs_CXX=no |
|
11566 |
;; |
|
11567 |
*) |
|
11568 |
# FIXME: insert proper C++ library support |
|
11569 |
ld_shlibs_CXX=no |
|
11570 |
;; |
|
11571 |
esac |
|
11572 |
;; |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
11573 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
11574 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11575 |
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
|
11576 |
wlarc= |
|
11577 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
11578 |
hardcode_direct_CXX=yes |
|
11579 |
hardcode_shlibpath_var_CXX=no |
|
11580 |
fi |
|
11581 |
# Workaround some broken pre-1.5 toolchains |
|
11582 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
|
11583 |
;; |
|
11584 |
osf3*) |
|
11585 |
case $cc_basename in |
|
11586 |
KCC) |
|
11587 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
|
11588 |
||
11589 |
# KCC will only create a shared library if the output file |
|
11590 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
11591 |
# to its proper name (with version) after linking. |
|
11592 |
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' |
|
11593 |
||
11594 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
11595 |
hardcode_libdir_separator_CXX=: |
|
11596 |
||
11597 |
# Archives containing C++ object files must be created using |
|
11598 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
11599 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
11600 |
||
11601 |
;; |
|
11602 |
RCC) |
|
11603 |
# Rational C++ 2.4.1 |
|
11604 |
# FIXME: insert proper C++ library support |
|
11605 |
ld_shlibs_CXX=no |
|
11606 |
;; |
|
11607 |
cxx) |
|
11608 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
11609 |
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 ${objdir}/so_locations -o $lib' |
|
11610 |
||
11611 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
11612 |
hardcode_libdir_separator_CXX=: |
|
11613 |
||
11614 |
# Commands to make compiler produce verbose output that lists |
|
11615 |
# what "hidden" libraries, object files and flags are used when |
|
11616 |
# linking a shared library. |
|
11617 |
# |
|
11618 |
# There doesn't appear to be a way to prevent this compiler from |
|
11619 |
# explicitly linking system object files so we need to strip them |
|
11620 |
# from the output so that they don't get included in the library |
|
11621 |
# dependencies. |
|
11622 |
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' |
|
11623 |
;; |
|
11624 |
*) |
|
11625 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
11626 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
11627 |
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}${objdir}/so_locations -o $lib' |
|
11628 |
||
11629 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
11630 |
hardcode_libdir_separator_CXX=: |
|
11631 |
||
11632 |
# Commands to make compiler produce verbose output that lists |
|
11633 |
# what "hidden" libraries, object files and flags are used when |
|
11634 |
# linking a shared library. |
|
11635 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
11636 |
||
11637 |
else |
|
11638 |
# FIXME: insert proper C++ library support |
|
11639 |
ld_shlibs_CXX=no |
|
11640 |
fi |
|
11641 |
;; |
|
11642 |
esac |
|
11643 |
;; |
|
11644 |
osf4* | osf5*) |
|
11645 |
case $cc_basename in |
|
11646 |
KCC) |
|
11647 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
|
11648 |
||
11649 |
# KCC will only create a shared library if the output file |
|
11650 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
11651 |
# to its proper name (with version) after linking. |
|
11652 |
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' |
|
11653 |
||
11654 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
11655 |
hardcode_libdir_separator_CXX=: |
|
11656 |
||
11657 |
# Archives containing C++ object files must be created using |
|
11658 |
# the KAI C++ compiler. |
|
11659 |
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
|
11660 |
;; |
|
11661 |
RCC) |
|
11662 |
# Rational C++ 2.4.1 |
|
11663 |
# FIXME: insert proper C++ library support |
|
11664 |
ld_shlibs_CXX=no |
|
11665 |
;; |
|
11666 |
cxx) |
|
11667 |
allow_undefined_flag_CXX=' -expect_unresolved \*' |
|
11668 |
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 ${objdir}/so_locations -o $lib' |
|
11669 |
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
|
11670 |
echo "-hidden">> $lib.exp~ |
|
11671 |
$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 $objdir/so_locations -o $lib~ |
|
11672 |
$rm $lib.exp' |
|
11673 |
||
11674 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
11675 |
hardcode_libdir_separator_CXX=: |
|
11676 |
||
11677 |
# Commands to make compiler produce verbose output that lists |
|
11678 |
# what "hidden" libraries, object files and flags are used when |
|
11679 |
# linking a shared library. |
|
11680 |
# |
|
11681 |
# There doesn't appear to be a way to prevent this compiler from |
|
11682 |
# explicitly linking system object files so we need to strip them |
|
11683 |
# from the output so that they don't get included in the library |
|
11684 |
# dependencies. |
|
11685 |
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' |
|
11686 |
;; |
|
11687 |
*) |
|
11688 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
11689 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
11690 |
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}${objdir}/so_locations -o $lib' |
|
11691 |
||
11692 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
11693 |
hardcode_libdir_separator_CXX=: |
|
11694 |
||
11695 |
# Commands to make compiler produce verbose output that lists |
|
11696 |
# what "hidden" libraries, object files and flags are used when |
|
11697 |
# linking a shared library. |
|
11698 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
11699 |
||
11700 |
else |
|
11701 |
# FIXME: insert proper C++ library support |
|
11702 |
ld_shlibs_CXX=no |
|
11703 |
fi |
|
11704 |
;; |
|
11705 |
esac |
|
11706 |
;; |
|
11707 |
psos*) |
|
11708 |
# FIXME: insert proper C++ library support |
|
11709 |
ld_shlibs_CXX=no |
|
11710 |
;; |
|
11711 |
sco*) |
|
11712 |
archive_cmds_need_lc_CXX=no |
|
11713 |
case $cc_basename in |
|
11714 |
CC) |
|
11715 |
# FIXME: insert proper C++ library support |
|
11716 |
ld_shlibs_CXX=no |
|
11717 |
;; |
|
11718 |
*) |
|
11719 |
# FIXME: insert proper C++ library support |
|
11720 |
ld_shlibs_CXX=no |
|
11721 |
;; |
|
11722 |
esac |
|
11723 |
;; |
|
11724 |
sunos4*) |
|
11725 |
case $cc_basename in |
|
11726 |
CC) |
|
11727 |
# Sun C++ 4.x |
|
11728 |
# FIXME: insert proper C++ library support |
|
11729 |
ld_shlibs_CXX=no |
|
11730 |
;; |
|
11731 |
lcc) |
|
11732 |
# Lucid |
|
11733 |
# FIXME: insert proper C++ library support |
|
11734 |
ld_shlibs_CXX=no |
|
11735 |
;; |
|
11736 |
*) |
|
11737 |
# FIXME: insert proper C++ library support |
|
11738 |
ld_shlibs_CXX=no |
|
11739 |
;; |
|
11740 |
esac |
|
11741 |
;; |
|
11742 |
solaris*) |
|
11743 |
case $cc_basename in |
|
11744 |
CC) |
|
11745 |
# Sun C++ 4.2, 5.x and Centerline C++ |
|
11746 |
no_undefined_flag_CXX=' -zdefs' |
|
11747 |
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
11748 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
11749 |
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
11750 |
||
11751 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
11752 |
hardcode_shlibpath_var_CXX=no |
|
11753 |
case $host_os in |
|
11754 |
solaris2.0-5 | solaris2.0-5.*) ;; |
|
11755 |
*) |
|
11756 |
# The C++ compiler is used as linker so we must use $wl |
|
11757 |
# flag to pass the commands to the underlying system |
|
11758 |
# linker. |
|
11759 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
|
11760 |
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
|
11761 |
;; |
|
11762 |
esac |
|
11763 |
link_all_deplibs_CXX=yes |
|
11764 |
||
11765 |
# Commands to make compiler produce verbose output that lists |
|
11766 |
# what "hidden" libraries, object files and flags are used when |
|
11767 |
# linking a shared library. |
|
11768 |
# |
|
11769 |
# There doesn't appear to be a way to prevent this compiler from |
|
11770 |
# explicitly linking system object files so we need to strip them |
|
11771 |
# from the output so that they don't get included in the library |
|
11772 |
# dependencies. |
|
11773 |
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
11774 |
||
11775 |
# Archives containing C++ object files must be created using |
|
11776 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
11777 |
# necessary to make sure instantiated templates are included |
|
11778 |
# in the archive. |
|
11779 |
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
|
11780 |
;; |
|
11781 |
gcx) |
|
11782 |
# Green Hills C++ Compiler |
|
11783 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
11784 |
||
11785 |
# The C++ compiler must be used to create the archive. |
|
11786 |
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
|
11787 |
;; |
|
11788 |
*) |
|
11789 |
# GNU C++ compiler with Solaris linker |
|
11790 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
11791 |
no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
|
11792 |
if $CC --version | grep -v '^2\.7' > /dev/null; then |
|
11793 |
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
11794 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
11795 |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
11796 |
||
11797 |
# Commands to make compiler produce verbose output that lists |
|
11798 |
# what "hidden" libraries, object files and flags are used when |
|
11799 |
# linking a shared library. |
|
11800 |
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
11801 |
else |
|
11802 |
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
|
11803 |
# platform. |
|
11804 |
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
11805 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
11806 |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
11807 |
||
11808 |
# Commands to make compiler produce verbose output that lists |
|
11809 |
# what "hidden" libraries, object files and flags are used when |
|
11810 |
# linking a shared library. |
|
11811 |
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
11812 |
fi |
|
11813 |
||
11814 |
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
|
11815 |
fi |
|
11816 |
;; |
|
11817 |
esac |
|
11818 |
;; |
|
11819 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
11820 |
archive_cmds_need_lc_CXX=no |
|
11821 |
;; |
|
11822 |
tandem*) |
|
11823 |
case $cc_basename in |
|
11824 |
NCC) |
|
11825 |
# NonStop-UX NCC 3.20 |
|
11826 |
# FIXME: insert proper C++ library support |
|
11827 |
ld_shlibs_CXX=no |
|
11828 |
;; |
|
11829 |
*) |
|
11830 |
# FIXME: insert proper C++ library support |
|
11831 |
ld_shlibs_CXX=no |
|
11832 |
;; |
|
11833 |
esac |
|
11834 |
;; |
|
11835 |
vxworks*) |
|
11836 |
# FIXME: insert proper C++ library support |
|
11837 |
ld_shlibs_CXX=no |
|
11838 |
;; |
|
11839 |
*) |
|
11840 |
# FIXME: insert proper C++ library support |
|
11841 |
ld_shlibs_CXX=no |
|
11842 |
;; |
|
11843 |
esac |
|
11844 |
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
|
11845 |
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
|
11846 |
test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
11847 |
||
11848 |
GCC_CXX="$GXX" |
|
11849 |
LD_CXX="$LD" |
|
11850 |
||
11851 |
||
11852 |
cat > conftest.$ac_ext <<EOF |
|
11853 |
class Foo |
|
11854 |
{ |
|
11855 |
public: |
|
11856 |
Foo (void) { a = 0; } |
|
11857 |
private: |
|
11858 |
int a; |
|
11859 |
}; |
|
11860 |
EOF |
|
11861 |
||
11862 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
11863 |
(eval $ac_compile) 2>&5 |
|
11864 |
ac_status=$? |
|
11865 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11866 |
(exit $ac_status); }; then |
|
11867 |
# Parse the compiler output and extract the necessary |
|
11868 |
# objects, libraries and library flags. |
|
11869 |
||
11870 |
# Sentinel used to keep track of whether or not we are before |
|
11871 |
# the conftest object file. |
|
11872 |
pre_test_object_deps_done=no |
|
11873 |
||
11874 |
# The `*' in the case matches for architectures that use `case' in |
|
11875 |
# $output_verbose_cmd can trigger glob expansion during the loop |
|
11876 |
# eval without this substitution. |
|
11877 |
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
|
11878 |
||
11879 |
for p in `eval $output_verbose_link_cmd`; do |
|
11880 |
case $p in |
|
11881 |
||
11882 |
-L* | -R* | -l*) |
|
11883 |
# Some compilers place space between "-{L,R}" and the path. |
|
11884 |
# Remove the space. |
|
11885 |
if test $p = "-L" \ |
|
11886 |
|| test $p = "-R"; then |
|
11887 |
prev=$p |
|
11888 |
continue |
|
11889 |
else |
|
11890 |
prev= |
|
11891 |
fi |
|
11892 |
||
11893 |
if test "$pre_test_object_deps_done" = no; then |
|
11894 |
case $p in |
|
11895 |
-L* | -R*) |
|
11896 |
# Internal compiler library paths should come after those |
|
11897 |
# provided the user. The postdeps already come after the |
|
11898 |
# user supplied libs so there is no need to process them. |
|
11899 |
if test -z "$compiler_lib_search_path_CXX"; then |
|
11900 |
compiler_lib_search_path_CXX="${prev}${p}" |
|
11901 |
else |
|
11902 |
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
|
11903 |
fi |
|
11904 |
;; |
|
11905 |
# The "-l" case would never come before the object being |
|
11906 |
# linked, so don't bother handling this case. |
|
11907 |
esac |
|
11908 |
else |
|
11909 |
if test -z "$postdeps_CXX"; then |
|
11910 |
postdeps_CXX="${prev}${p}" |
|
11911 |
else |
|
11912 |
postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
|
11913 |
fi |
|
11914 |
fi |
|
11915 |
;; |
|
11916 |
||
11917 |
*.$objext) |
|
11918 |
# This assumes that the test object file only shows up |
|
11919 |
# once in the compiler output. |
|
11920 |
if test "$p" = "conftest.$objext"; then |
|
11921 |
pre_test_object_deps_done=yes |
|
11922 |
continue |
|
11923 |
fi |
|
11924 |
||
11925 |
if test "$pre_test_object_deps_done" = no; then |
|
11926 |
if test -z "$predep_objects_CXX"; then |
|
11927 |
predep_objects_CXX="$p" |
|
11928 |
else |
|
11929 |
predep_objects_CXX="$predep_objects_CXX $p" |
|
11930 |
fi |
|
11931 |
else |
|
11932 |
if test -z "$postdep_objects_CXX"; then |
|
11933 |
postdep_objects_CXX="$p" |
|
11934 |
else |
|
11935 |
postdep_objects_CXX="$postdep_objects_CXX $p" |
|
11936 |
fi |
|
11937 |
fi |
|
11938 |
;; |
|
11939 |
||
11940 |
*) ;; # Ignore the rest. |
|
11941 |
||
11942 |
esac |
|
11943 |
done |
|
11944 |
||
11945 |
# Clean up. |
|
11946 |
rm -f a.out a.exe |
|
11947 |
else |
|
11948 |
echo "libtool.m4: error: problem compiling CXX test program" |
|
11949 |
fi |
|
11950 |
||
11951 |
$rm -f confest.$objext |
|
11952 |
||
11953 |
case " $postdeps_CXX " in |
|
11954 |
*" -lc "*) archive_cmds_need_lc_CXX=no ;; |
|
11955 |
esac |
|
11956 |
||
11957 |
lt_prog_compiler_wl_CXX= |
|
11958 |
lt_prog_compiler_pic_CXX= |
|
11959 |
lt_prog_compiler_static_CXX= |
|
11960 |
||
11961 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
11962 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
11963 |
||
11964 |
# C++ specific cases for pic, static, wl, etc. |
|
11965 |
if test "$GXX" = yes; then |
|
11966 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
11967 |
lt_prog_compiler_static_CXX='-static' |
|
11968 |
||
11969 |
case $host_os in |
|
11970 |
aix*) |
|
11971 |
# All AIX code is PIC. |
|
11972 |
if test "$host_cpu" = ia64; then |
|
11973 |
# AIX 5 now supports IA64 processor |
|
11974 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
11975 |
fi |
|
11976 |
;; |
|
11977 |
amigaos*) |
|
11978 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
11979 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
11980 |
# like `-m68040'. |
|
11981 |
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
|
11982 |
;; |
|
11983 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
11984 |
# PIC is the default for these OSes. |
|
11985 |
;; |
|
11986 |
mingw* | os2* | pw32*) |
|
11987 |
# This hack is so that the source file can tell whether it is being |
|
11988 |
# built for inclusion in a dll (and should export symbols for example). |
|
11989 |
lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
|
11990 |
;; |
|
11991 |
darwin* | rhapsody*) |
|
11992 |
# PIC is the default on this platform |
|
11993 |
# Common symbols not allowed in MH_DYLIB files |
|
11994 |
lt_prog_compiler_pic_CXX='-fno-common' |
|
11995 |
;; |
|
11996 |
*djgpp*) |
|
11997 |
# DJGPP does not support shared libraries at all |
|
11998 |
lt_prog_compiler_pic_CXX= |
|
11999 |
;; |
|
12000 |
sysv4*MP*) |
|
12001 |
if test -d /usr/nec; then |
|
12002 |
lt_prog_compiler_pic_CXX=-Kconform_pic |
|
12003 |
fi |
|
12004 |
;; |
|
12005 |
hpux*) |
|
12006 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
12007 |
# not for PA HP-UX. |
|
12008 |
case "$host_cpu" in |
|
12009 |
hppa*64*|ia64*) |
|
12010 |
;; |
|
12011 |
*) |
|
12012 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
12013 |
;; |
|
12014 |
esac |
|
12015 |
;; |
|
12016 |
*) |
|
12017 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
12018 |
;; |
|
12019 |
esac |
|
12020 |
else |
|
12021 |
case $host_os in |
|
12022 |
aix4* | aix5*) |
|
12023 |
# All AIX code is PIC. |
|
12024 |
if test "$host_cpu" = ia64; then |
|
12025 |
# AIX 5 now supports IA64 processor |
|
12026 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
12027 |
else |
|
12028 |
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
|
12029 |
fi |
|
12030 |
;; |
|
12031 |
chorus*) |
|
12032 |
case $cc_basename in |
|
12033 |
cxch68) |
|
12034 |
# Green Hills C++ Compiler |
|
12035 |
# _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" |
|
12036 |
;; |
|
12037 |
esac |
|
12038 |
;; |
|
12039 |
dgux*) |
|
12040 |
case $cc_basename in |
|
12041 |
ec++) |
|
12042 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
12043 |
;; |
|
12044 |
ghcx) |
|
12045 |
# Green Hills C++ Compiler |
|
12046 |
lt_prog_compiler_pic_CXX='-pic' |
|
12047 |
;; |
|
12048 |
*) |
|
12049 |
;; |
|
12050 |
esac |
|
12051 |
;; |
|
12052 |
freebsd* | kfreebsd*-gnu) |
|
12053 |
# FreeBSD uses GNU C++ |
|
12054 |
;; |
|
12055 |
hpux9* | hpux10* | hpux11*) |
|
12056 |
case $cc_basename in |
|
12057 |
CC) |
|
12058 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12059 |
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
|
12060 |
if test "$host_cpu" != ia64; then |
|
12061 |
lt_prog_compiler_pic_CXX='+Z' |
|
12062 |
fi |
|
12063 |
;; |
|
12064 |
aCC) |
|
12065 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12066 |
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
|
12067 |
case "$host_cpu" in |
|
12068 |
hppa*64*|ia64*) |
|
12069 |
# +Z the default |
|
12070 |
;; |
|
12071 |
*) |
|
12072 |
lt_prog_compiler_pic_CXX='+Z' |
|
12073 |
;; |
|
12074 |
esac |
|
12075 |
;; |
|
12076 |
*) |
|
12077 |
;; |
|
12078 |
esac |
|
12079 |
;; |
|
12080 |
irix5* | irix6* | nonstopux*) |
|
12081 |
case $cc_basename in |
|
12082 |
CC) |
|
12083 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12084 |
lt_prog_compiler_static_CXX='-non_shared' |
|
12085 |
# CC pic flag -KPIC is the default. |
|
12086 |
;; |
|
12087 |
*) |
|
12088 |
;; |
|
12089 |
esac |
|
12090 |
;; |
|
12091 |
linux*) |
|
12092 |
case $cc_basename in |
|
12093 |
KCC) |
|
12094 |
# KAI C++ Compiler |
|
12095 |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
12096 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
12097 |
;; |
|
12098 |
icpc) |
|
12099 |
# Intel C++ |
|
12100 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12101 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
12102 |
lt_prog_compiler_static_CXX='-static' |
|
12103 |
;; |
|
12104 |
cxx) |
|
12105 |
# Compaq C++ |
|
12106 |
# Make sure the PIC flag is empty. It appears that all Alpha |
|
12107 |
# Linux and Compaq Tru64 Unix objects are PIC. |
|
12108 |
lt_prog_compiler_pic_CXX= |
|
12109 |
lt_prog_compiler_static_CXX='-non_shared' |
|
12110 |
;; |
|
12111 |
*) |
|
12112 |
;; |
|
12113 |
esac |
|
12114 |
;; |
|
12115 |
lynxos*) |
|
12116 |
;; |
|
12117 |
m88k*) |
|
12118 |
;; |
|
12119 |
mvs*) |
|
12120 |
case $cc_basename in |
|
12121 |
cxx) |
|
12122 |
lt_prog_compiler_pic_CXX='-W c,exportall' |
|
12123 |
;; |
|
12124 |
*) |
|
12125 |
;; |
|
12126 |
esac |
|
12127 |
;; |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
12128 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
12129 |
;; |
12130 |
osf3* | osf4* | osf5*) |
|
12131 |
case $cc_basename in |
|
12132 |
KCC) |
|
12133 |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
12134 |
;; |
|
12135 |
RCC) |
|
12136 |
# Rational C++ 2.4.1 |
|
12137 |
lt_prog_compiler_pic_CXX='-pic' |
|
12138 |
;; |
|
12139 |
cxx) |
|
12140 |
# Digital/Compaq C++ |
|
12141 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12142 |
# Make sure the PIC flag is empty. It appears that all Alpha |
|
12143 |
# Linux and Compaq Tru64 Unix objects are PIC. |
|
12144 |
lt_prog_compiler_pic_CXX= |
|
12145 |
lt_prog_compiler_static_CXX='-non_shared' |
|
12146 |
;; |
|
12147 |
*) |
|
12148 |
;; |
|
12149 |
esac |
|
12150 |
;; |
|
12151 |
psos*) |
|
12152 |
;; |
|
12153 |
sco*) |
|
12154 |
case $cc_basename in |
|
12155 |
CC) |
|
12156 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
12157 |
;; |
|
12158 |
*) |
|
12159 |
;; |
|
12160 |
esac |
|
12161 |
;; |
|
12162 |
solaris*) |
|
12163 |
case $cc_basename in |
|
12164 |
CC) |
|
12165 |
# Sun C++ 4.2, 5.x and Centerline C++ |
|
12166 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
12167 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
12168 |
lt_prog_compiler_wl_CXX='-Qoption ld ' |
|
12169 |
;; |
|
12170 |
gcx) |
|
12171 |
# Green Hills C++ Compiler |
|
12172 |
lt_prog_compiler_pic_CXX='-PIC' |
|
12173 |
;; |
|
12174 |
*) |
|
12175 |
;; |
|
12176 |
esac |
|
12177 |
;; |
|
12178 |
sunos4*) |
|
12179 |
case $cc_basename in |
|
12180 |
CC) |
|
12181 |
# Sun C++ 4.x |
|
12182 |
lt_prog_compiler_pic_CXX='-pic' |
|
12183 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
12184 |
;; |
|
12185 |
lcc) |
|
12186 |
# Lucid |
|
12187 |
lt_prog_compiler_pic_CXX='-pic' |
|
12188 |
;; |
|
12189 |
*) |
|
12190 |
;; |
|
12191 |
esac |
|
12192 |
;; |
|
12193 |
tandem*) |
|
12194 |
case $cc_basename in |
|
12195 |
NCC) |
|
12196 |
# NonStop-UX NCC 3.20 |
|
12197 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
12198 |
;; |
|
12199 |
*) |
|
12200 |
;; |
|
12201 |
esac |
|
12202 |
;; |
|
12203 |
unixware*) |
|
12204 |
;; |
|
12205 |
vxworks*) |
|
12206 |
;; |
|
12207 |
*) |
|
12208 |
lt_prog_compiler_can_build_shared_CXX=no |
|
12209 |
;; |
|
12210 |
esac |
|
12211 |
fi |
|
12212 |
||
12213 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
|
12214 |
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
|
12215 |
||
12216 |
# |
|
12217 |
# Check to make sure the PIC flag actually works. |
|
12218 |
# |
|
12219 |
if test -n "$lt_prog_compiler_pic_CXX"; then |
|
12220 |
||
12221 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
|
12222 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
|
12223 |
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
|
12224 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
12225 |
else |
|
12226 |
lt_prog_compiler_pic_works_CXX=no |
|
12227 |
ac_outfile=conftest.$ac_objext |
|
12228 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
12229 |
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
|
12230 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
12231 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
12232 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
12233 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
12234 |
# The option is referenced via a variable to avoid confusing sed. |
|
12235 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
12236 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
12237 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
12238 |
-e 's:$: $lt_compiler_flag:'` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
12239 |
(eval echo "\"\$as_me:12239: $lt_compile\"" >&5) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
12240 |
(eval "$lt_compile" 2>conftest.err) |
12241 |
ac_status=$? |
|
12242 |
cat conftest.err >&5 |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
12243 |
echo "$as_me:12243: \$? = $ac_status" >&5 |
1
by Daniel Holbach
Import upstream version 1.1.15 |
12244 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
12245 |
# The compiler can only warn and ignore the option if not recognized |
|
12246 |
# So say no if there are warnings |
|
12247 |
if test ! -s conftest.err; then |
|
12248 |
lt_prog_compiler_pic_works_CXX=yes |
|
12249 |
fi |
|
12250 |
fi |
|
12251 |
$rm conftest* |
|
12252 |
||
12253 |
fi |
|
12254 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
|
12255 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
|
12256 |
||
12257 |
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
|
12258 |
case $lt_prog_compiler_pic_CXX in |
|
12259 |
"" | " "*) ;; |
|
12260 |
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
|
12261 |
esac |
|
12262 |
else |
|
12263 |
lt_prog_compiler_pic_CXX= |
|
12264 |
lt_prog_compiler_can_build_shared_CXX=no |
|
12265 |
fi |
|
12266 |
||
12267 |
fi |
|
12268 |
case "$host_os" in |
|
12269 |
# For platforms which do not support PIC, -DPIC is meaningless: |
|
12270 |
*djgpp*) |
|
12271 |
lt_prog_compiler_pic_CXX= |
|
12272 |
;; |
|
12273 |
*) |
|
12274 |
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
|
12275 |
;; |
|
12276 |
esac |
|
12277 |
||
12278 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
12279 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
12280 |
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
|
12281 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
12282 |
else |
|
12283 |
lt_cv_prog_compiler_c_o_CXX=no |
|
12284 |
$rm -r conftest 2>/dev/null |
|
12285 |
mkdir conftest |
|
12286 |
cd conftest |
|
12287 |
mkdir out |
|
12288 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
12289 |
||
12290 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
12291 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
12292 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
12293 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
12294 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
12295 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
12296 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
12297 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
12298 |
-e 's:$: $lt_compiler_flag:'` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
12299 |
(eval echo "\"\$as_me:12299: $lt_compile\"" >&5) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
12300 |
(eval "$lt_compile" 2>out/conftest.err) |
12301 |
ac_status=$? |
|
12302 |
cat out/conftest.err >&5 |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
12303 |
echo "$as_me:12303: \$? = $ac_status" >&5 |
1
by Daniel Holbach
Import upstream version 1.1.15 |
12304 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12305 |
then |
|
12306 |
# The compiler can only warn and ignore the option if not recognized |
|
12307 |
# So say no if there are warnings |
|
12308 |
if test ! -s out/conftest.err; then |
|
12309 |
lt_cv_prog_compiler_c_o_CXX=yes |
|
12310 |
fi |
|
12311 |
fi |
|
12312 |
chmod u+w . |
|
12313 |
$rm conftest* |
|
12314 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
12315 |
# template instantiation |
|
12316 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
12317 |
$rm out/* && rmdir out |
|
12318 |
cd .. |
|
12319 |
rmdir conftest |
|
12320 |
$rm conftest* |
|
12321 |
||
12322 |
fi |
|
12323 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
|
12324 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
|
12325 |
||
12326 |
||
12327 |
hard_links="nottested" |
|
12328 |
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
|
12329 |
# do not overwrite the value of need_locks provided by the user |
|
12330 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
12331 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
12332 |
hard_links=yes |
|
12333 |
$rm conftest* |
|
12334 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
12335 |
touch conftest.a |
|
12336 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
12337 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
12338 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
12339 |
echo "${ECHO_T}$hard_links" >&6 |
|
12340 |
if test "$hard_links" = no; then |
|
12341 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
12342 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
12343 |
need_locks=warn |
|
12344 |
fi |
|
12345 |
else |
|
12346 |
need_locks=no |
|
12347 |
fi |
|
12348 |
||
12349 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
12350 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
12351 |
||
12352 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
12353 |
case $host_os in |
|
12354 |
aix4* | aix5*) |
|
12355 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
12356 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
12357 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
12358 |
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' |
|
12359 |
else |
|
12360 |
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' |
|
12361 |
fi |
|
12362 |
;; |
|
12363 |
pw32*) |
|
12364 |
export_symbols_cmds_CXX="$ltdll_cmds" |
|
12365 |
;; |
|
12366 |
cygwin* | mingw*) |
|
12367 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
12368 |
;; |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
12369 |
linux*) |
12370 |
link_all_deplibs_CXX=no |
|
12371 |
;; |
|
1
by Daniel Holbach
Import upstream version 1.1.15 |
12372 |
*) |
12373 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
12374 |
;; |
|
12375 |
esac |
|
12376 |
||
12377 |
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
|
12378 |
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
|
12379 |
test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
12380 |
||
12381 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
12382 |
if test "$GCC" = yes; then |
|
12383 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
12384 |
fi |
|
12385 |
||
12386 |
# |
|
12387 |
# Do we need to explicitly link libc? |
|
12388 |
# |
|
12389 |
case "x$archive_cmds_need_lc_CXX" in |
|
12390 |
x|xyes) |
|
12391 |
# Assume -lc should be added |
|
12392 |
archive_cmds_need_lc_CXX=yes |
|
12393 |
||
12394 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
12395 |
case $archive_cmds_CXX in |
|
12396 |
*'~'*) |
|
12397 |
# FIXME: we may have to deal with multi-command sequences. |
|
12398 |
;; |
|
12399 |
'$CC '*) |
|
12400 |
# Test whether the compiler implicitly links with -lc since on some |
|
12401 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
12402 |
# to ld, don't add -lc before -lgcc. |
|
12403 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
12404 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
12405 |
$rm conftest* |
|
12406 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
12407 |
||
12408 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
12409 |
(eval $ac_compile) 2>&5 |
|
12410 |
ac_status=$? |
|
12411 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12412 |
(exit $ac_status); } 2>conftest.err; then |
|
12413 |
soname=conftest |
|
12414 |
lib=conftest |
|
12415 |
libobjs=conftest.$ac_objext |
|
12416 |
deplibs= |
|
12417 |
wl=$lt_prog_compiler_wl_CXX |
|
12418 |
compiler_flags=-v |
|
12419 |
linker_flags=-v |
|
12420 |
verstring= |
|
12421 |
output_objdir=. |
|
12422 |
libname=conftest |
|
12423 |
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
|
12424 |
allow_undefined_flag_CXX= |
|
12425 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
12426 |
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
12427 |
ac_status=$? |
|
12428 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12429 |
(exit $ac_status); } |
|
12430 |
then |
|
12431 |
archive_cmds_need_lc_CXX=no |
|
12432 |
else |
|
12433 |
archive_cmds_need_lc_CXX=yes |
|
12434 |
fi |
|
12435 |
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
|
12436 |
else |
|
12437 |
cat conftest.err 1>&5 |
|
12438 |
fi |
|
12439 |
$rm conftest* |
|
12440 |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
|
12441 |
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
|
12442 |
;; |
|
12443 |
esac |
|
12444 |
fi |
|
12445 |
;; |
|
12446 |
esac |
|
12447 |
||
12448 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
12449 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
12450 |
library_names_spec= |
|
12451 |
libname_spec='lib$name' |
|
12452 |
soname_spec= |
|
12453 |
shrext_cmds=".so" |
|
12454 |
postinstall_cmds= |
|
12455 |
postuninstall_cmds= |
|
12456 |
finish_cmds= |
|
12457 |
finish_eval= |
|
12458 |
shlibpath_var= |
|
12459 |
shlibpath_overrides_runpath=unknown |
|
12460 |
version_type=none |
|
12461 |
dynamic_linker="$host_os ld.so" |
|
12462 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
12463 |
if test "$GCC" = yes; then |
|
12464 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
12465 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
12466 |
# if the path contains ";" then we assume it to be the separator |
|
12467 |
# otherwise default to the standard path separator (i.e. ":") - it is |
|
12468 |
# assumed that no part of a normal pathname contains ";" but that should |
|
12469 |
# okay in the real world where ";" in dirpaths is itself problematic. |
|
12470 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
12471 |
else |
|
12472 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
12473 |
fi |
|
12474 |
else |
|
12475 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
12476 |
fi |
|
12477 |
need_lib_prefix=unknown |
|
12478 |
hardcode_into_libs=no |
|
12479 |
||
12480 |
# when you set need_version to no, make sure it does not cause -set_version |
|
12481 |
# flags to be left without arguments |
|
12482 |
need_version=unknown |
|
12483 |
||
12484 |
case $host_os in |
|
12485 |
aix3*) |
|
12486 |
version_type=linux |
|
12487 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
12488 |
shlibpath_var=LIBPATH |
|
12489 |
||
12490 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
12491 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12492 |
;; |
|
12493 |
||
12494 |
aix4* | aix5*) |
|
12495 |
version_type=linux |
|
12496 |
need_lib_prefix=no |
|
12497 |
need_version=no |
|
12498 |
hardcode_into_libs=yes |
|
12499 |
if test "$host_cpu" = ia64; then |
|
12500 |
# AIX 5 supports IA64 |
|
12501 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
12502 |
shlibpath_var=LD_LIBRARY_PATH |
|
12503 |
else |
|
12504 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
12505 |
# for dependence libraries. The import file would start with |
|
12506 |
# the line `#! .'. This would cause the generated library to |
|
12507 |
# depend on `.', always an invalid library. This was fixed in |
|
12508 |
# development snapshots of GCC prior to 3.0. |
|
12509 |
case $host_os in |
|
12510 |
aix4 | aix4.[01] | aix4.[01].*) |
|
12511 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
12512 |
echo ' yes ' |
|
12513 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
12514 |
: |
|
12515 |
else |
|
12516 |
can_build_shared=no |
|
12517 |
fi |
|
12518 |
;; |
|
12519 |
esac |
|
12520 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
12521 |
# soname into executable. Probably we can add versioning support to |
|
12522 |
# collect2, so additional links can be useful in future. |
|
12523 |
if test "$aix_use_runtimelinking" = yes; then |
|
12524 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
12525 |
# instead of lib<name>.a to let people know that these are not |
|
12526 |
# typical AIX shared libraries. |
|
12527 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12528 |
else |
|
12529 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
12530 |
# and later when we are not doing run time linking. |
|
12531 |
library_names_spec='${libname}${release}.a $libname.a' |
|
12532 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12533 |
fi |
|
12534 |
shlibpath_var=LIBPATH |
|
12535 |
fi |
|
12536 |
;; |
|
12537 |
||
12538 |
amigaos*) |
|
12539 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
12540 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
12541 |
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' |
|
12542 |
;; |
|
12543 |
||
12544 |
beos*) |
|
12545 |
library_names_spec='${libname}${shared_ext}' |
|
12546 |
dynamic_linker="$host_os ld.so" |
|
12547 |
shlibpath_var=LIBRARY_PATH |
|
12548 |
;; |
|
12549 |
||
12550 |
bsdi4*) |
|
12551 |
version_type=linux |
|
12552 |
need_version=no |
|
12553 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12554 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12555 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
12556 |
shlibpath_var=LD_LIBRARY_PATH |
|
12557 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
12558 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
12559 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
12560 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
12561 |
# libtool to hard-code these into programs |
|
12562 |
;; |
|
12563 |
||
12564 |
cygwin* | mingw* | pw32*) |
|
12565 |
version_type=windows |
|
12566 |
shrext_cmds=".dll" |
|
12567 |
need_version=no |
|
12568 |
need_lib_prefix=no |
|
12569 |
||
12570 |
case $GCC,$host_os in |
|
12571 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
|
12572 |
library_names_spec='$libname.dll.a' |
|
12573 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
12574 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
12575 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
12576 |
dldir=$destdir/`dirname \$dlpath`~ |
|
12577 |
test -d \$dldir || mkdir -p \$dldir~ |
|
12578 |
$install_prog $dir/$dlname \$dldir/$dlname' |
|
12579 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
12580 |
dlpath=$dir/\$dldll~ |
|
12581 |
$rm \$dlpath' |
|
12582 |
shlibpath_overrides_runpath=yes |
|
12583 |
||
12584 |
case $host_os in |
|
12585 |
cygwin*) |
|
12586 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
12587 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
12588 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
12589 |
;; |
|
12590 |
mingw*) |
|
12591 |
# MinGW DLLs use traditional 'lib' prefix |
|
12592 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
12593 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
12594 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
12595 |
# It is most probably a Windows format PATH printed by |
|
12596 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
12597 |
# path with ; separators, and with drive letters. We can handle the |
|
12598 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
12599 |
# especially as we might pass files found there to a mingw objdump, |
|
12600 |
# which wouldn't understand a cygwinified path. Ahh. |
|
12601 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
12602 |
else |
|
12603 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
12604 |
fi |
|
12605 |
;; |
|
12606 |
pw32*) |
|
12607 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
12608 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
|
12609 |
;; |
|
12610 |
esac |
|
12611 |
;; |
|
12612 |
||
12613 |
*) |
|
12614 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
12615 |
;; |
|
12616 |
esac |
|
12617 |
dynamic_linker='Win32 ld.exe' |
|
12618 |
# FIXME: first we should search . and the directory the executable is in |
|
12619 |
shlibpath_var=PATH |
|
12620 |
;; |
|
12621 |
||
12622 |
darwin* | rhapsody*) |
|
12623 |
dynamic_linker="$host_os dyld" |
|
12624 |
version_type=darwin |
|
12625 |
need_lib_prefix=no |
|
12626 |
need_version=no |
|
12627 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
12628 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
12629 |
shlibpath_overrides_runpath=yes |
|
12630 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
12631 |
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
|
12632 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
12633 |
if test "$GCC" = yes; then |
|
12634 |
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"` |
|
12635 |
else |
|
12636 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
12637 |
fi |
|
12638 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
12639 |
;; |
|
12640 |
||
12641 |
dgux*) |
|
12642 |
version_type=linux |
|
12643 |
need_lib_prefix=no |
|
12644 |
need_version=no |
|
12645 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
12646 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12647 |
shlibpath_var=LD_LIBRARY_PATH |
|
12648 |
;; |
|
12649 |
||
12650 |
freebsd1*) |
|
12651 |
dynamic_linker=no |
|
12652 |
;; |
|
12653 |
||
12654 |
kfreebsd*-gnu) |
|
12655 |
version_type=linux |
|
12656 |
need_lib_prefix=no |
|
12657 |
need_version=no |
|
12658 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
12659 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12660 |
shlibpath_var=LD_LIBRARY_PATH |
|
12661 |
shlibpath_overrides_runpath=no |
|
12662 |
hardcode_into_libs=yes |
|
12663 |
dynamic_linker='GNU ld.so' |
|
12664 |
;; |
|
12665 |
||
12666 |
freebsd*) |
|
12667 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
12668 |
version_type=freebsd-$objformat |
|
12669 |
case $version_type in |
|
12670 |
freebsd-elf*) |
|
12671 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
12672 |
need_version=no |
|
12673 |
need_lib_prefix=no |
|
12674 |
;; |
|
12675 |
freebsd-*) |
|
12676 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
12677 |
need_version=yes |
|
12678 |
;; |
|
12679 |
esac |
|
12680 |
shlibpath_var=LD_LIBRARY_PATH |
|
12681 |
case $host_os in |
|
12682 |
freebsd2*) |
|
12683 |
shlibpath_overrides_runpath=yes |
|
12684 |
;; |
|
12685 |
freebsd3.01* | freebsdelf3.01*) |
|
12686 |
shlibpath_overrides_runpath=yes |
|
12687 |
hardcode_into_libs=yes |
|
12688 |
;; |
|
12689 |
*) # from 3.2 on |
|
12690 |
shlibpath_overrides_runpath=no |
|
12691 |
hardcode_into_libs=yes |
|
12692 |
;; |
|
12693 |
esac |
|
12694 |
;; |
|
12695 |
||
12696 |
gnu*) |
|
12697 |
version_type=linux |
|
12698 |
need_lib_prefix=no |
|
12699 |
need_version=no |
|
12700 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
12701 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12702 |
shlibpath_var=LD_LIBRARY_PATH |
|
12703 |
hardcode_into_libs=yes |
|
12704 |
;; |
|
12705 |
||
12706 |
hpux9* | hpux10* | hpux11*) |
|
12707 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
12708 |
# link against other versions. |
|
12709 |
version_type=sunos |
|
12710 |
need_lib_prefix=no |
|
12711 |
need_version=no |
|
12712 |
case "$host_cpu" in |
|
12713 |
ia64*) |
|
12714 |
shrext_cmds='.so' |
|
12715 |
hardcode_into_libs=yes |
|
12716 |
dynamic_linker="$host_os dld.so" |
|
12717 |
shlibpath_var=LD_LIBRARY_PATH |
|
12718 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
12719 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12720 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12721 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
12722 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
12723 |
else |
|
12724 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
12725 |
fi |
|
12726 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
12727 |
;; |
|
12728 |
hppa*64*) |
|
12729 |
shrext_cmds='.sl' |
|
12730 |
hardcode_into_libs=yes |
|
12731 |
dynamic_linker="$host_os dld.sl" |
|
12732 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
12733 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
12734 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12735 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12736 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
12737 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
12738 |
;; |
|
12739 |
*) |
|
12740 |
shrext_cmds='.sl' |
|
12741 |
dynamic_linker="$host_os dld.sl" |
|
12742 |
shlibpath_var=SHLIB_PATH |
|
12743 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
12744 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12745 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12746 |
;; |
|
12747 |
esac |
|
12748 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
12749 |
postinstall_cmds='chmod 555 $lib' |
|
12750 |
;; |
|
12751 |
||
12752 |
irix5* | irix6* | nonstopux*) |
|
12753 |
case $host_os in |
|
12754 |
nonstopux*) version_type=nonstopux ;; |
|
12755 |
*) |
|
12756 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
12757 |
version_type=linux |
|
12758 |
else |
|
12759 |
version_type=irix |
|
12760 |
fi ;; |
|
12761 |
esac |
|
12762 |
need_lib_prefix=no |
|
12763 |
need_version=no |
|
12764 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12765 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
12766 |
case $host_os in |
|
12767 |
irix5* | nonstopux*) |
|
12768 |
libsuff= shlibsuff= |
|
12769 |
;; |
|
12770 |
*) |
|
12771 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
12772 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
12773 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
12774 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
12775 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
12776 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
12777 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
12778 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
12779 |
esac |
|
12780 |
;; |
|
12781 |
esac |
|
12782 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
12783 |
shlibpath_overrides_runpath=no |
|
12784 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
12785 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
12786 |
hardcode_into_libs=yes |
|
12787 |
;; |
|
12788 |
||
12789 |
# No shared lib support for Linux oldld, aout, or coff. |
|
12790 |
linux*oldld* | linux*aout* | linux*coff*) |
|
12791 |
dynamic_linker=no |
|
12792 |
;; |
|
12793 |
||
12794 |
# This must be Linux ELF. |
|
12795 |
linux*) |
|
12796 |
version_type=linux |
|
12797 |
need_lib_prefix=no |
|
12798 |
need_version=no |
|
12799 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12800 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12801 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
12802 |
shlibpath_var=LD_LIBRARY_PATH |
|
12803 |
shlibpath_overrides_runpath=no |
|
12804 |
# This implies no fast_install, which is unacceptable. |
|
12805 |
# Some rework will be needed to allow for fast_install |
|
12806 |
# before this can be enabled. |
|
12807 |
hardcode_into_libs=yes |
|
12808 |
||
12809 |
# Append ld.so.conf contents to the search path |
|
12810 |
if test -f /etc/ld.so.conf; then |
|
12811 |
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
12812 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
1
by Daniel Holbach
Import upstream version 1.1.15 |
12813 |
fi |
12814 |
||
12815 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
12816 |
# powerpc, because MkLinux only supported shared libraries with the |
|
12817 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
12818 |
# most powerpc-linux boxes support dynamic linking these days and |
|
12819 |
# people can always --disable-shared, the test was removed, and we |
|
12820 |
# assume the GNU/Linux dynamic linker is in use. |
|
12821 |
dynamic_linker='GNU/Linux ld.so' |
|
12822 |
;; |
|
12823 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
12824 |
netbsdelf*-gnu) |
12825 |
version_type=linux |
|
12826 |
need_lib_prefix=no |
|
12827 |
need_version=no |
|
12828 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
12829 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12830 |
shlibpath_var=LD_LIBRARY_PATH |
|
12831 |
shlibpath_overrides_runpath=no |
|
12832 |
hardcode_into_libs=yes |
|
12833 |
dynamic_linker='NetBSD ld.elf_so' |
|
12834 |
;; |
|
12835 |
||
1
by Daniel Holbach
Import upstream version 1.1.15 |
12836 |
knetbsd*-gnu) |
12837 |
version_type=linux |
|
12838 |
need_lib_prefix=no |
|
12839 |
need_version=no |
|
12840 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
12841 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12842 |
shlibpath_var=LD_LIBRARY_PATH |
|
12843 |
shlibpath_overrides_runpath=no |
|
12844 |
hardcode_into_libs=yes |
|
12845 |
dynamic_linker='GNU ld.so' |
|
12846 |
;; |
|
12847 |
||
12848 |
netbsd*) |
|
12849 |
version_type=sunos |
|
12850 |
need_lib_prefix=no |
|
12851 |
need_version=no |
|
12852 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
12853 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
12854 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
12855 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
12856 |
else |
|
12857 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
12858 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12859 |
dynamic_linker='NetBSD ld.elf_so' |
|
12860 |
fi |
|
12861 |
shlibpath_var=LD_LIBRARY_PATH |
|
12862 |
shlibpath_overrides_runpath=yes |
|
12863 |
hardcode_into_libs=yes |
|
12864 |
;; |
|
12865 |
||
12866 |
newsos6) |
|
12867 |
version_type=linux |
|
12868 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12869 |
shlibpath_var=LD_LIBRARY_PATH |
|
12870 |
shlibpath_overrides_runpath=yes |
|
12871 |
;; |
|
12872 |
||
12873 |
nto-qnx*) |
|
12874 |
version_type=linux |
|
12875 |
need_lib_prefix=no |
|
12876 |
need_version=no |
|
12877 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12878 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12879 |
shlibpath_var=LD_LIBRARY_PATH |
|
12880 |
shlibpath_overrides_runpath=yes |
|
12881 |
;; |
|
12882 |
||
12883 |
openbsd*) |
|
12884 |
version_type=sunos |
|
12885 |
need_lib_prefix=no |
|
12886 |
need_version=yes |
|
12887 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
12888 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
12889 |
shlibpath_var=LD_LIBRARY_PATH |
|
12890 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
12891 |
case $host_os in |
|
12892 |
openbsd2.[89] | openbsd2.[89].*) |
|
12893 |
shlibpath_overrides_runpath=no |
|
12894 |
;; |
|
12895 |
*) |
|
12896 |
shlibpath_overrides_runpath=yes |
|
12897 |
;; |
|
12898 |
esac |
|
12899 |
else |
|
12900 |
shlibpath_overrides_runpath=yes |
|
12901 |
fi |
|
12902 |
;; |
|
12903 |
||
12904 |
os2*) |
|
12905 |
libname_spec='$name' |
|
12906 |
shrext_cmds=".dll" |
|
12907 |
need_lib_prefix=no |
|
12908 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
12909 |
dynamic_linker='OS/2 ld.exe' |
|
12910 |
shlibpath_var=LIBPATH |
|
12911 |
;; |
|
12912 |
||
12913 |
osf3* | osf4* | osf5*) |
|
12914 |
version_type=osf |
|
12915 |
need_lib_prefix=no |
|
12916 |
need_version=no |
|
12917 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12918 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12919 |
shlibpath_var=LD_LIBRARY_PATH |
|
12920 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
12921 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
12922 |
;; |
|
12923 |
||
12924 |
sco3.2v5*) |
|
12925 |
version_type=osf |
|
12926 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12927 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12928 |
shlibpath_var=LD_LIBRARY_PATH |
|
12929 |
;; |
|
12930 |
||
12931 |
solaris*) |
|
12932 |
version_type=linux |
|
12933 |
need_lib_prefix=no |
|
12934 |
need_version=no |
|
12935 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12936 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12937 |
shlibpath_var=LD_LIBRARY_PATH |
|
12938 |
shlibpath_overrides_runpath=yes |
|
12939 |
hardcode_into_libs=yes |
|
12940 |
# ldd complains unless libraries are executable |
|
12941 |
postinstall_cmds='chmod +x $lib' |
|
12942 |
;; |
|
12943 |
||
12944 |
sunos4*) |
|
12945 |
version_type=sunos |
|
12946 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
12947 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
12948 |
shlibpath_var=LD_LIBRARY_PATH |
|
12949 |
shlibpath_overrides_runpath=yes |
|
12950 |
if test "$with_gnu_ld" = yes; then |
|
12951 |
need_lib_prefix=no |
|
12952 |
fi |
|
12953 |
need_version=yes |
|
12954 |
;; |
|
12955 |
||
12956 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
12957 |
version_type=linux |
|
12958 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12959 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12960 |
shlibpath_var=LD_LIBRARY_PATH |
|
12961 |
case $host_vendor in |
|
12962 |
sni) |
|
12963 |
shlibpath_overrides_runpath=no |
|
12964 |
need_lib_prefix=no |
|
12965 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
12966 |
runpath_var=LD_RUN_PATH |
|
12967 |
;; |
|
12968 |
siemens) |
|
12969 |
need_lib_prefix=no |
|
12970 |
;; |
|
12971 |
motorola) |
|
12972 |
need_lib_prefix=no |
|
12973 |
need_version=no |
|
12974 |
shlibpath_overrides_runpath=no |
|
12975 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
12976 |
;; |
|
12977 |
esac |
|
12978 |
;; |
|
12979 |
||
12980 |
sysv4*MP*) |
|
12981 |
if test -d /usr/nec ;then |
|
12982 |
version_type=linux |
|
12983 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
12984 |
soname_spec='$libname${shared_ext}.$major' |
|
12985 |
shlibpath_var=LD_LIBRARY_PATH |
|
12986 |
fi |
|
12987 |
;; |
|
12988 |
||
12989 |
uts4*) |
|
12990 |
version_type=linux |
|
12991 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
12992 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
12993 |
shlibpath_var=LD_LIBRARY_PATH |
|
12994 |
;; |
|
12995 |
||
12996 |
*) |
|
12997 |
dynamic_linker=no |
|
12998 |
;; |
|
12999 |
esac |
|
13000 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
13001 |
echo "${ECHO_T}$dynamic_linker" >&6 |
|
13002 |
test "$dynamic_linker" = no && can_build_shared=no |
|
13003 |
||
13004 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
13005 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
13006 |
hardcode_action_CXX= |
|
13007 |
if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
|
13008 |
test -n "$runpath_var CXX" || \ |
|
13009 |
test "X$hardcode_automatic_CXX"="Xyes" ; then |
|
13010 |
||
13011 |
# We can hardcode non-existant directories. |
|
13012 |
if test "$hardcode_direct_CXX" != no && |
|
13013 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
13014 |
# have to relink, otherwise we might link with an installed library |
|
13015 |
# when we should be linking with a yet-to-be-installed one |
|
13016 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
|
13017 |
test "$hardcode_minus_L_CXX" != no; then |
|
13018 |
# Linking always hardcodes the temporary library directory. |
|
13019 |
hardcode_action_CXX=relink |
|
13020 |
else |
|
13021 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
13022 |
hardcode_action_CXX=immediate |
|
13023 |
fi |
|
13024 |
else |
|
13025 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
13026 |
# directories. |
|
13027 |
hardcode_action_CXX=unsupported |
|
13028 |
fi |
|
13029 |
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
|
13030 |
echo "${ECHO_T}$hardcode_action_CXX" >&6 |
|
13031 |
||
13032 |
if test "$hardcode_action_CXX" = relink; then |
|
13033 |
# Fast installation is not supported |
|
13034 |
enable_fast_install=no |
|
13035 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
13036 |
test "$enable_shared" = no; then |
|
13037 |
# Fast installation is not necessary |
|
13038 |
enable_fast_install=needless |
|
13039 |
fi |
|
13040 |
||
13041 |
striplib= |
|
13042 |
old_striplib= |
|
13043 |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
13044 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
13045 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
13046 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
13047 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
13048 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
13049 |
echo "${ECHO_T}yes" >&6 |
|
13050 |
else |
|
13051 |
# FIXME - insert some real tests, host_os isn't really good enough |
|
13052 |
case $host_os in |
|
13053 |
darwin*) |
|
13054 |
if test -n "$STRIP" ; then |
|
13055 |
striplib="$STRIP -x" |
|
13056 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
13057 |
echo "${ECHO_T}yes" >&6 |
|
13058 |
else |
|
13059 |
echo "$as_me:$LINENO: result: no" >&5 |
|
13060 |
echo "${ECHO_T}no" >&6 |
|
13061 |
fi |
|
13062 |
;; |
|
13063 |
*) |
|
13064 |
echo "$as_me:$LINENO: result: no" >&5 |
|
13065 |
echo "${ECHO_T}no" >&6 |
|
13066 |
;; |
|
13067 |
esac |
|
13068 |
fi |
|
13069 |
||
13070 |
if test "x$enable_dlopen" != xyes; then |
|
13071 |
enable_dlopen=unknown |
|
13072 |
enable_dlopen_self=unknown |
|
13073 |
enable_dlopen_self_static=unknown |
|
13074 |
else |
|
13075 |
lt_cv_dlopen=no |
|
13076 |
lt_cv_dlopen_libs= |
|
13077 |
||
13078 |
case $host_os in |
|
13079 |
beos*) |
|
13080 |
lt_cv_dlopen="load_add_on" |
|
13081 |
lt_cv_dlopen_libs= |
|
13082 |
lt_cv_dlopen_self=yes |
|
13083 |
;; |
|
13084 |
||
13085 |
mingw* | pw32*) |
|
13086 |
lt_cv_dlopen="LoadLibrary" |
|
13087 |
lt_cv_dlopen_libs= |
|
13088 |
;; |
|
13089 |
||
13090 |
cygwin*) |
|
13091 |
lt_cv_dlopen="dlopen" |
|
13092 |
lt_cv_dlopen_libs= |
|
13093 |
;; |
|
13094 |
||
13095 |
darwin*) |
|
13096 |
# if libdl is installed we need to link against it |
|
13097 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
13098 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
13099 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
13100 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13101 |
else |
|
13102 |
ac_check_lib_save_LIBS=$LIBS |
|
13103 |
LIBS="-ldl $LIBS" |
|
13104 |
cat >conftest.$ac_ext <<_ACEOF |
|
13105 |
/* confdefs.h. */ |
|
13106 |
_ACEOF |
|
13107 |
cat confdefs.h >>conftest.$ac_ext |
|
13108 |
cat >>conftest.$ac_ext <<_ACEOF |
|
13109 |
/* end confdefs.h. */ |
|
13110 |
||
13111 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
13112 |
#ifdef __cplusplus |
|
13113 |
extern "C" |
|
13114 |
#endif |
|
13115 |
/* We use char because int might match the return type of a gcc2 |
|
13116 |
builtin and then its argument prototype would still apply. */ |
|
13117 |
char dlopen (); |
|
13118 |
int |
|
13119 |
main () |
|
13120 |
{ |
|
13121 |
dlopen (); |
|
13122 |
; |
|
13123 |
return 0; |
|
13124 |
} |
|
13125 |
_ACEOF |
|
13126 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
13127 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
13128 |
(eval $ac_link) 2>conftest.er1 |
|
13129 |
ac_status=$? |
|
13130 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
13131 |
rm -f conftest.er1 |
|
13132 |
cat conftest.err >&5 |
|
13133 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13134 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
13135 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
13136 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13137 |
(eval $ac_try) 2>&5 |
|
13138 |
ac_status=$? |
|
13139 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13140 |
(exit $ac_status); }; } && |
|
13141 |
{ ac_try='test -s conftest$ac_exeext' |
|
13142 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
13143 |
(eval $ac_try) 2>&5 |
|
13144 |
ac_status=$? |
|
13145 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13146 |
(exit $ac_status); }; }; then |
|
13147 |
ac_cv_lib_dl_dlopen=yes |
|
13148 |
else |
|
13149 |
echo "$as_me: failed program was:" >&5 |
|
13150 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
13151 |
||
13152 |
ac_cv_lib_dl_dlopen=no |
|
13153 |
fi |
|
13154 |
rm -f conftest.err conftest.$ac_objext \ |
|
13155 |
conftest$ac_exeext conftest.$ac_ext |
|
13156 |
LIBS=$ac_check_lib_save_LIBS |
|
13157 |
fi |
|
13158 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
13159 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
13160 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
13161 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
13162 |
else |
|
13163 |
||
13164 |
lt_cv_dlopen="dyld" |
|
13165 |
lt_cv_dlopen_libs= |
|
13166 |
lt_cv_dlopen_self=yes |
|
13167 |
||
13168 |
fi |
|
13169 |
||
13170 |
;; |
|
13171 |
||
13172 |
*) |
|
13173 |
echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
13174 |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
|
13175 |
if test "${ac_cv_func_shl_load+set}" = set; then |
|
13176 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13177 |
else |
|
13178 |
cat >conftest.$ac_ext <<_ACEOF |
|
13179 |
/* confdefs.h. */ |
|
13180 |
_ACEOF |
|
13181 |
cat confdefs.h >>conftest.$ac_ext |
|
13182 |
cat >>conftest.$ac_ext <<_ACEOF |
|
13183 |
/* end confdefs.h. */ |
|
13184 |
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
13185 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
13186 |
#define shl_load innocuous_shl_load |
|
13187 |
||
13188 |
/* System header to define __stub macros and hopefully few prototypes, |
|
13189 |
which can conflict with char shl_load (); below. |
|
13190 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
13191 |
<limits.h> exists even on freestanding compilers. */ |
|
13192 |
||
13193 |
#ifdef __STDC__ |
|
13194 |
# include <limits.h> |
|
13195 |
#else |
|
13196 |
# include <assert.h> |
|
13197 |
#endif |
|
13198 |
||
13199 |
#undef shl_load |
|
13200 |
||
13201 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
13202 |
#ifdef __cplusplus |
|
13203 |
extern "C" |
|
13204 |
{ |
|
13205 |
#endif |
|
13206 |
/* We use char because int might match the return type of a gcc2 |
|
13207 |
builtin and then its argument prototype would still apply. */ |
|
13208 |
char shl_load (); |
|
13209 |
/* The GNU C library defines this for functions which it implements |
|
13210 |
to always fail with ENOSYS. Some functions are actually named |
|
13211 |
something starting with __ and the normal name is an alias. */ |
|
13212 |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
13213 |
choke me |
|
13214 |
#else |
|
13215 |
char (*f) () = shl_load; |
|
13216 |
#endif |
|
13217 |
#ifdef __cplusplus |
|
13218 |
} |
|
13219 |
#endif |
|
13220 |
||
13221 |
int |
|
13222 |
main () |
|
13223 |
{ |
|
13224 |
return f != shl_load; |
|
13225 |
; |
|
13226 |
return 0; |
|
13227 |
} |
|
13228 |
_ACEOF |
|
13229 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
13230 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
13231 |
(eval $ac_link) 2>conftest.er1 |
|
13232 |
ac_status=$? |
|
13233 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
13234 |
rm -f conftest.er1 |
|
13235 |
cat conftest.err >&5 |
|
13236 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13237 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
13238 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
13239 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13240 |
(eval $ac_try) 2>&5 |
|
13241 |
ac_status=$? |
|
13242 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13243 |
(exit $ac_status); }; } && |
|
13244 |
{ ac_try='test -s conftest$ac_exeext' |
|
13245 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
13246 |
(eval $ac_try) 2>&5 |
|
13247 |
ac_status=$? |
|
13248 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13249 |
(exit $ac_status); }; }; then |
|
13250 |
ac_cv_func_shl_load=yes |
|
13251 |
else |
|
13252 |
echo "$as_me: failed program was:" >&5 |
|
13253 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
13254 |
||
13255 |
ac_cv_func_shl_load=no |
|
13256 |
fi |
|
13257 |
rm -f conftest.err conftest.$ac_objext \ |
|
13258 |
conftest$ac_exeext conftest.$ac_ext |
|
13259 |
fi |
|
13260 |
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
13261 |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
13262 |
if test $ac_cv_func_shl_load = yes; then |
|
13263 |
lt_cv_dlopen="shl_load" |
|
13264 |
else |
|
13265 |
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
13266 |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
13267 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
13268 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13269 |
else |
|
13270 |
ac_check_lib_save_LIBS=$LIBS |
|
13271 |
LIBS="-ldld $LIBS" |
|
13272 |
cat >conftest.$ac_ext <<_ACEOF |
|
13273 |
/* confdefs.h. */ |
|
13274 |
_ACEOF |
|
13275 |
cat confdefs.h >>conftest.$ac_ext |
|
13276 |
cat >>conftest.$ac_ext <<_ACEOF |
|
13277 |
/* end confdefs.h. */ |
|
13278 |
||
13279 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
13280 |
#ifdef __cplusplus |
|
13281 |
extern "C" |
|
13282 |
#endif |
|
13283 |
/* We use char because int might match the return type of a gcc2 |
|
13284 |
builtin and then its argument prototype would still apply. */ |
|
13285 |
char shl_load (); |
|
13286 |
int |
|
13287 |
main () |
|
13288 |
{ |
|
13289 |
shl_load (); |
|
13290 |
; |
|
13291 |
return 0; |
|
13292 |
} |
|
13293 |
_ACEOF |
|
13294 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
13295 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
13296 |
(eval $ac_link) 2>conftest.er1 |
|
13297 |
ac_status=$? |
|
13298 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
13299 |
rm -f conftest.er1 |
|
13300 |
cat conftest.err >&5 |
|
13301 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13302 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
13303 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
13304 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13305 |
(eval $ac_try) 2>&5 |
|
13306 |
ac_status=$? |
|
13307 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13308 |
(exit $ac_status); }; } && |
|
13309 |
{ ac_try='test -s conftest$ac_exeext' |
|
13310 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
13311 |
(eval $ac_try) 2>&5 |
|
13312 |
ac_status=$? |
|
13313 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13314 |
(exit $ac_status); }; }; then |
|
13315 |
ac_cv_lib_dld_shl_load=yes |
|
13316 |
else |
|
13317 |
echo "$as_me: failed program was:" >&5 |
|
13318 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
13319 |
||
13320 |
ac_cv_lib_dld_shl_load=no |
|
13321 |
fi |
|
13322 |
rm -f conftest.err conftest.$ac_objext \ |
|
13323 |
conftest$ac_exeext conftest.$ac_ext |
|
13324 |
LIBS=$ac_check_lib_save_LIBS |
|
13325 |
fi |
|
13326 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
13327 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
13328 |
if test $ac_cv_lib_dld_shl_load = yes; then |
|
13329 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
13330 |
else |
|
13331 |
echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
13332 |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
13333 |
if test "${ac_cv_func_dlopen+set}" = set; then |
|
13334 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13335 |
else |
|
13336 |
cat >conftest.$ac_ext <<_ACEOF |
|
13337 |
/* confdefs.h. */ |
|
13338 |
_ACEOF |
|
13339 |
cat confdefs.h >>conftest.$ac_ext |
|
13340 |
cat >>conftest.$ac_ext <<_ACEOF |
|
13341 |
/* end confdefs.h. */ |
|
13342 |
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
13343 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
13344 |
#define dlopen innocuous_dlopen |
|
13345 |
||
13346 |
/* System header to define __stub macros and hopefully few prototypes, |
|
13347 |
which can conflict with char dlopen (); below. |
|
13348 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
13349 |
<limits.h> exists even on freestanding compilers. */ |
|
13350 |
||
13351 |
#ifdef __STDC__ |
|
13352 |
# include <limits.h> |
|
13353 |
#else |
|
13354 |
# include <assert.h> |
|
13355 |
#endif |
|
13356 |
||
13357 |
#undef dlopen |
|
13358 |
||
13359 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
13360 |
#ifdef __cplusplus |
|
13361 |
extern "C" |
|
13362 |
{ |
|
13363 |
#endif |
|
13364 |
/* We use char because int might match the return type of a gcc2 |
|
13365 |
builtin and then its argument prototype would still apply. */ |
|
13366 |
char dlopen (); |
|
13367 |
/* The GNU C library defines this for functions which it implements |
|
13368 |
to always fail with ENOSYS. Some functions are actually named |
|
13369 |
something starting with __ and the normal name is an alias. */ |
|
13370 |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
|
13371 |
choke me |
|
13372 |
#else |
|
13373 |
char (*f) () = dlopen; |
|
13374 |
#endif |
|
13375 |
#ifdef __cplusplus |
|
13376 |
} |
|
13377 |
#endif |
|
13378 |
||
13379 |
int |
|
13380 |
main () |
|
13381 |
{ |
|
13382 |
return f != dlopen; |
|
13383 |
; |
|
13384 |
return 0; |
|
13385 |
} |
|
13386 |
_ACEOF |
|
13387 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
13388 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
13389 |
(eval $ac_link) 2>conftest.er1 |
|
13390 |
ac_status=$? |
|
13391 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
13392 |
rm -f conftest.er1 |
|
13393 |
cat conftest.err >&5 |
|
13394 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13395 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
13396 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
13397 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13398 |
(eval $ac_try) 2>&5 |
|
13399 |
ac_status=$? |
|
13400 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13401 |
(exit $ac_status); }; } && |
|
13402 |
{ ac_try='test -s conftest$ac_exeext' |
|
13403 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
13404 |
(eval $ac_try) 2>&5 |
|
13405 |
ac_status=$? |
|
13406 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13407 |
(exit $ac_status); }; }; then |
|
13408 |
ac_cv_func_dlopen=yes |
|
13409 |
else |
|
13410 |
echo "$as_me: failed program was:" >&5 |
|
13411 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
13412 |
||
13413 |
ac_cv_func_dlopen=no |
|
13414 |
fi |
|
13415 |
rm -f conftest.err conftest.$ac_objext \ |
|
13416 |
conftest$ac_exeext conftest.$ac_ext |
|
13417 |
fi |
|
13418 |
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
13419 |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
13420 |
if test $ac_cv_func_dlopen = yes; then |
|
13421 |
lt_cv_dlopen="dlopen" |
|
13422 |
else |
|
13423 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
13424 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
13425 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
13426 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13427 |
else |
|
13428 |
ac_check_lib_save_LIBS=$LIBS |
|
13429 |
LIBS="-ldl $LIBS" |
|
13430 |
cat >conftest.$ac_ext <<_ACEOF |
|
13431 |
/* confdefs.h. */ |
|
13432 |
_ACEOF |
|
13433 |
cat confdefs.h >>conftest.$ac_ext |
|
13434 |
cat >>conftest.$ac_ext <<_ACEOF |
|
13435 |
/* end confdefs.h. */ |
|
13436 |
||
13437 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
13438 |
#ifdef __cplusplus |
|
13439 |
extern "C" |
|
13440 |
#endif |
|
13441 |
/* We use char because int might match the return type of a gcc2 |
|
13442 |
builtin and then its argument prototype would still apply. */ |
|
13443 |
char dlopen (); |
|
13444 |
int |
|
13445 |
main () |
|
13446 |
{ |
|
13447 |
dlopen (); |
|
13448 |
; |
|
13449 |
return 0; |
|
13450 |
} |
|
13451 |
_ACEOF |
|
13452 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
13453 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
13454 |
(eval $ac_link) 2>conftest.er1 |
|
13455 |
ac_status=$? |
|
13456 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
13457 |
rm -f conftest.er1 |
|
13458 |
cat conftest.err >&5 |
|
13459 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13460 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
13461 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
13462 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13463 |
(eval $ac_try) 2>&5 |
|
13464 |
ac_status=$? |
|
13465 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13466 |
(exit $ac_status); }; } && |
|
13467 |
{ ac_try='test -s conftest$ac_exeext' |
|
13468 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
13469 |
(eval $ac_try) 2>&5 |
|
13470 |
ac_status=$? |
|
13471 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13472 |
(exit $ac_status); }; }; then |
|
13473 |
ac_cv_lib_dl_dlopen=yes |
|
13474 |
else |
|
13475 |
echo "$as_me: failed program was:" >&5 |
|
13476 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
13477 |
||
13478 |
ac_cv_lib_dl_dlopen=no |
|
13479 |
fi |
|
13480 |
rm -f conftest.err conftest.$ac_objext \ |
|
13481 |
conftest$ac_exeext conftest.$ac_ext |
|
13482 |
LIBS=$ac_check_lib_save_LIBS |
|
13483 |
fi |
|
13484 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
13485 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
13486 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
13487 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
13488 |
else |
|
13489 |
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
13490 |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
13491 |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
13492 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13493 |
else |
|
13494 |
ac_check_lib_save_LIBS=$LIBS |
|
13495 |
LIBS="-lsvld $LIBS" |
|
13496 |
cat >conftest.$ac_ext <<_ACEOF |
|
13497 |
/* confdefs.h. */ |
|
13498 |
_ACEOF |
|
13499 |
cat confdefs.h >>conftest.$ac_ext |
|
13500 |
cat >>conftest.$ac_ext <<_ACEOF |
|
13501 |
/* end confdefs.h. */ |
|
13502 |
||
13503 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
13504 |
#ifdef __cplusplus |
|
13505 |
extern "C" |
|
13506 |
#endif |
|
13507 |
/* We use char because int might match the return type of a gcc2 |
|
13508 |
builtin and then its argument prototype would still apply. */ |
|
13509 |
char dlopen (); |
|
13510 |
int |
|
13511 |
main () |
|
13512 |
{ |
|
13513 |
dlopen (); |
|
13514 |
; |
|
13515 |
return 0; |
|
13516 |
} |
|
13517 |
_ACEOF |
|
13518 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
13519 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
13520 |
(eval $ac_link) 2>conftest.er1 |
|
13521 |
ac_status=$? |
|
13522 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
13523 |
rm -f conftest.er1 |
|
13524 |
cat conftest.err >&5 |
|
13525 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13526 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
13527 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
13528 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13529 |
(eval $ac_try) 2>&5 |
|
13530 |
ac_status=$? |
|
13531 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13532 |
(exit $ac_status); }; } && |
|
13533 |
{ ac_try='test -s conftest$ac_exeext' |
|
13534 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
13535 |
(eval $ac_try) 2>&5 |
|
13536 |
ac_status=$? |
|
13537 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13538 |
(exit $ac_status); }; }; then |
|
13539 |
ac_cv_lib_svld_dlopen=yes |
|
13540 |
else |
|
13541 |
echo "$as_me: failed program was:" >&5 |
|
13542 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
13543 |
||
13544 |
ac_cv_lib_svld_dlopen=no |
|
13545 |
fi |
|
13546 |
rm -f conftest.err conftest.$ac_objext \ |
|
13547 |
conftest$ac_exeext conftest.$ac_ext |
|
13548 |
LIBS=$ac_check_lib_save_LIBS |
|
13549 |
fi |
|
13550 |
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
13551 |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
13552 |
if test $ac_cv_lib_svld_dlopen = yes; then |
|
13553 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
13554 |
else |
|
13555 |
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
13556 |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
|
13557 |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
13558 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13559 |
else |
|
13560 |
ac_check_lib_save_LIBS=$LIBS |
|
13561 |
LIBS="-ldld $LIBS" |
|
13562 |
cat >conftest.$ac_ext <<_ACEOF |
|
13563 |
/* confdefs.h. */ |
|
13564 |
_ACEOF |
|
13565 |
cat confdefs.h >>conftest.$ac_ext |
|
13566 |
cat >>conftest.$ac_ext <<_ACEOF |
|
13567 |
/* end confdefs.h. */ |
|
13568 |
||
13569 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
13570 |
#ifdef __cplusplus |
|
13571 |
extern "C" |
|
13572 |
#endif |
|
13573 |
/* We use char because int might match the return type of a gcc2 |
|
13574 |
builtin and then its argument prototype would still apply. */ |
|
13575 |
char dld_link (); |
|
13576 |
int |
|
13577 |
main () |
|
13578 |
{ |
|
13579 |
dld_link (); |
|
13580 |
; |
|
13581 |
return 0; |
|
13582 |
} |
|
13583 |
_ACEOF |
|
13584 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
13585 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
13586 |
(eval $ac_link) 2>conftest.er1 |
|
13587 |
ac_status=$? |
|
13588 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
13589 |
rm -f conftest.er1 |
|
13590 |
cat conftest.err >&5 |
|
13591 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13592 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
13593 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
13594 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13595 |
(eval $ac_try) 2>&5 |
|
13596 |
ac_status=$? |
|
13597 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13598 |
(exit $ac_status); }; } && |
|
13599 |
{ ac_try='test -s conftest$ac_exeext' |
|
13600 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
13601 |
(eval $ac_try) 2>&5 |
|
13602 |
ac_status=$? |
|
13603 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13604 |
(exit $ac_status); }; }; then |
|
13605 |
ac_cv_lib_dld_dld_link=yes |
|
13606 |
else |
|
13607 |
echo "$as_me: failed program was:" >&5 |
|
13608 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
13609 |
||
13610 |
ac_cv_lib_dld_dld_link=no |
|
13611 |
fi |
|
13612 |
rm -f conftest.err conftest.$ac_objext \ |
|
13613 |
conftest$ac_exeext conftest.$ac_ext |
|
13614 |
LIBS=$ac_check_lib_save_LIBS |
|
13615 |
fi |
|
13616 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
13617 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
13618 |
if test $ac_cv_lib_dld_dld_link = yes; then |
|
13619 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
13620 |
fi |
|
13621 |
||
13622 |
||
13623 |
fi |
|
13624 |
||
13625 |
||
13626 |
fi |
|
13627 |
||
13628 |
||
13629 |
fi |
|
13630 |
||
13631 |
||
13632 |
fi |
|
13633 |
||
13634 |
||
13635 |
fi |
|
13636 |
||
13637 |
;; |
|
13638 |
esac |
|
13639 |
||
13640 |
if test "x$lt_cv_dlopen" != xno; then |
|
13641 |
enable_dlopen=yes |
|
13642 |
else |
|
13643 |
enable_dlopen=no |
|
13644 |
fi |
|
13645 |
||
13646 |
case $lt_cv_dlopen in |
|
13647 |
dlopen) |
|
13648 |
save_CPPFLAGS="$CPPFLAGS" |
|
13649 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
13650 |
||
13651 |
save_LDFLAGS="$LDFLAGS" |
|
13652 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
13653 |
||
13654 |
save_LIBS="$LIBS" |
|
13655 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
|
13656 |
||
13657 |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
13658 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
13659 |
if test "${lt_cv_dlopen_self+set}" = set; then |
|
13660 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13661 |
else |
|
13662 |
if test "$cross_compiling" = yes; then : |
|
13663 |
lt_cv_dlopen_self=cross |
|
13664 |
else |
|
13665 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
13666 |
lt_status=$lt_dlunknown |
|
13667 |
cat > conftest.$ac_ext <<EOF |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
13668 |
#line 13668 "configure" |
1
by Daniel Holbach
Import upstream version 1.1.15 |
13669 |
#include "confdefs.h" |
13670 |
||
13671 |
#if HAVE_DLFCN_H |
|
13672 |
#include <dlfcn.h> |
|
13673 |
#endif |
|
13674 |
||
13675 |
#include <stdio.h> |
|
13676 |
||
13677 |
#ifdef RTLD_GLOBAL |
|
13678 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
13679 |
#else |
|
13680 |
# ifdef DL_GLOBAL |
|
13681 |
# define LT_DLGLOBAL DL_GLOBAL |
|
13682 |
# else |
|
13683 |
# define LT_DLGLOBAL 0 |
|
13684 |
# endif |
|
13685 |
#endif |
|
13686 |
||
13687 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
13688 |
find out it does not work in some platform. */ |
|
13689 |
#ifndef LT_DLLAZY_OR_NOW |
|
13690 |
# ifdef RTLD_LAZY |
|
13691 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
13692 |
# else |
|
13693 |
# ifdef DL_LAZY |
|
13694 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
13695 |
# else |
|
13696 |
# ifdef RTLD_NOW |
|
13697 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
13698 |
# else |
|
13699 |
# ifdef DL_NOW |
|
13700 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
13701 |
# else |
|
13702 |
# define LT_DLLAZY_OR_NOW 0 |
|
13703 |
# endif |
|
13704 |
# endif |
|
13705 |
# endif |
|
13706 |
# endif |
|
13707 |
#endif |
|
13708 |
||
13709 |
#ifdef __cplusplus |
|
13710 |
extern "C" void exit (int); |
|
13711 |
#endif |
|
13712 |
||
13713 |
void fnord() { int i=42;} |
|
13714 |
int main () |
|
13715 |
{ |
|
13716 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
13717 |
int status = $lt_dlunknown; |
|
13718 |
||
13719 |
if (self) |
|
13720 |
{ |
|
13721 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
13722 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
13723 |
/* dlclose (self); */ |
|
13724 |
} |
|
13725 |
||
13726 |
exit (status); |
|
13727 |
} |
|
13728 |
EOF |
|
13729 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
13730 |
(eval $ac_link) 2>&5 |
|
13731 |
ac_status=$? |
|
13732 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13733 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
13734 |
(./conftest; exit; ) 2>/dev/null |
|
13735 |
lt_status=$? |
|
13736 |
case x$lt_status in |
|
13737 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
13738 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
13739 |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
13740 |
esac |
|
13741 |
else : |
|
13742 |
# compilation failed |
|
13743 |
lt_cv_dlopen_self=no |
|
13744 |
fi |
|
13745 |
fi |
|
13746 |
rm -fr conftest* |
|
13747 |
||
13748 |
||
13749 |
fi |
|
13750 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
13751 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
13752 |
||
13753 |
if test "x$lt_cv_dlopen_self" = xyes; then |
|
13754 |
LDFLAGS="$LDFLAGS $link_static_flag" |
|
13755 |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
13756 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
13757 |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
13758 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13759 |
else |
|
13760 |
if test "$cross_compiling" = yes; then : |
|
13761 |
lt_cv_dlopen_self_static=cross |
|
13762 |
else |
|
13763 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
13764 |
lt_status=$lt_dlunknown |
|
13765 |
cat > conftest.$ac_ext <<EOF |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
13766 |
#line 13766 "configure" |
1
by Daniel Holbach
Import upstream version 1.1.15 |
13767 |
#include "confdefs.h" |
13768 |
||
13769 |
#if HAVE_DLFCN_H |
|
13770 |
#include <dlfcn.h> |
|
13771 |
#endif |
|
13772 |
||
13773 |
#include <stdio.h> |
|
13774 |
||
13775 |
#ifdef RTLD_GLOBAL |
|
13776 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
13777 |
#else |
|
13778 |
# ifdef DL_GLOBAL |
|
13779 |
# define LT_DLGLOBAL DL_GLOBAL |
|
13780 |
# else |
|
13781 |
# define LT_DLGLOBAL 0 |
|
13782 |
# endif |
|
13783 |
#endif |
|
13784 |
||
13785 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
13786 |
find out it does not work in some platform. */ |
|
13787 |
#ifndef LT_DLLAZY_OR_NOW |
|
13788 |
# ifdef RTLD_LAZY |
|
13789 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
13790 |
# else |
|
13791 |
# ifdef DL_LAZY |
|
13792 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
13793 |
# else |
|
13794 |
# ifdef RTLD_NOW |
|
13795 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
13796 |
# else |
|
13797 |
# ifdef DL_NOW |
|
13798 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
13799 |
# else |
|
13800 |
# define LT_DLLAZY_OR_NOW 0 |
|
13801 |
# endif |
|
13802 |
# endif |
|
13803 |
# endif |
|
13804 |
# endif |
|
13805 |
#endif |
|
13806 |
||
13807 |
#ifdef __cplusplus |
|
13808 |
extern "C" void exit (int); |
|
13809 |
#endif |
|
13810 |
||
13811 |
void fnord() { int i=42;} |
|
13812 |
int main () |
|
13813 |
{ |
|
13814 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
13815 |
int status = $lt_dlunknown; |
|
13816 |
||
13817 |
if (self) |
|
13818 |
{ |
|
13819 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
13820 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
13821 |
/* dlclose (self); */ |
|
13822 |
} |
|
13823 |
||
13824 |
exit (status); |
|
13825 |
} |
|
13826 |
EOF |
|
13827 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
13828 |
(eval $ac_link) 2>&5 |
|
13829 |
ac_status=$? |
|
13830 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13831 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
13832 |
(./conftest; exit; ) 2>/dev/null |
|
13833 |
lt_status=$? |
|
13834 |
case x$lt_status in |
|
13835 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
13836 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
13837 |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
13838 |
esac |
|
13839 |
else : |
|
13840 |
# compilation failed |
|
13841 |
lt_cv_dlopen_self_static=no |
|
13842 |
fi |
|
13843 |
fi |
|
13844 |
rm -fr conftest* |
|
13845 |
||
13846 |
||
13847 |
fi |
|
13848 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
13849 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
13850 |
fi |
|
13851 |
||
13852 |
CPPFLAGS="$save_CPPFLAGS" |
|
13853 |
LDFLAGS="$save_LDFLAGS" |
|
13854 |
LIBS="$save_LIBS" |
|
13855 |
;; |
|
13856 |
esac |
|
13857 |
||
13858 |
case $lt_cv_dlopen_self in |
|
13859 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
13860 |
*) enable_dlopen_self=unknown ;; |
|
13861 |
esac |
|
13862 |
||
13863 |
case $lt_cv_dlopen_self_static in |
|
13864 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
13865 |
*) enable_dlopen_self_static=unknown ;; |
|
13866 |
esac |
|
13867 |
fi |
|
13868 |
||
13869 |
||
13870 |
# The else clause should only fire when bootstrapping the |
|
13871 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
13872 |
# with your package, and you will get complaints that there are |
|
13873 |
# no rules to generate ltmain.sh. |
|
13874 |
if test -f "$ltmain"; then |
|
13875 |
# See if we are running on zsh, and set the options which allow our commands through |
|
13876 |
# without removal of \ escapes. |
|
13877 |
if test -n "${ZSH_VERSION+set}" ; then |
|
13878 |
setopt NO_GLOB_SUBST |
|
13879 |
fi |
|
13880 |
# Now quote all the things that may contain metacharacters while being |
|
13881 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
13882 |
# variables and quote the copies for generation of the libtool script. |
|
13883 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
13884 |
SED SHELL STRIP \ |
|
13885 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
13886 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
13887 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
13888 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
13889 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
13890 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
13891 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
13892 |
compiler_CXX \ |
|
13893 |
CC_CXX \ |
|
13894 |
LD_CXX \ |
|
13895 |
lt_prog_compiler_wl_CXX \ |
|
13896 |
lt_prog_compiler_pic_CXX \ |
|
13897 |
lt_prog_compiler_static_CXX \ |
|
13898 |
lt_prog_compiler_no_builtin_flag_CXX \ |
|
13899 |
export_dynamic_flag_spec_CXX \ |
|
13900 |
thread_safe_flag_spec_CXX \ |
|
13901 |
whole_archive_flag_spec_CXX \ |
|
13902 |
enable_shared_with_static_runtimes_CXX \ |
|
13903 |
old_archive_cmds_CXX \ |
|
13904 |
old_archive_from_new_cmds_CXX \ |
|
13905 |
predep_objects_CXX \ |
|
13906 |
postdep_objects_CXX \ |
|
13907 |
predeps_CXX \ |
|
13908 |
postdeps_CXX \ |
|
13909 |
compiler_lib_search_path_CXX \ |
|
13910 |
archive_cmds_CXX \ |
|
13911 |
archive_expsym_cmds_CXX \ |
|
13912 |
postinstall_cmds_CXX \ |
|
13913 |
postuninstall_cmds_CXX \ |
|
13914 |
old_archive_from_expsyms_cmds_CXX \ |
|
13915 |
allow_undefined_flag_CXX \ |
|
13916 |
no_undefined_flag_CXX \ |
|
13917 |
export_symbols_cmds_CXX \ |
|
13918 |
hardcode_libdir_flag_spec_CXX \ |
|
13919 |
hardcode_libdir_flag_spec_ld_CXX \ |
|
13920 |
hardcode_libdir_separator_CXX \ |
|
13921 |
hardcode_automatic_CXX \ |
|
13922 |
module_cmds_CXX \ |
|
13923 |
module_expsym_cmds_CXX \ |
|
13924 |
lt_cv_prog_compiler_c_o_CXX \ |
|
13925 |
exclude_expsyms_CXX \ |
|
13926 |
include_expsyms_CXX; do |
|
13927 |
||
13928 |
case $var in |
|
13929 |
old_archive_cmds_CXX | \ |
|
13930 |
old_archive_from_new_cmds_CXX | \ |
|
13931 |
archive_cmds_CXX | \ |
|
13932 |
archive_expsym_cmds_CXX | \ |
|
13933 |
module_cmds_CXX | \ |
|
13934 |
module_expsym_cmds_CXX | \ |
|
13935 |
old_archive_from_expsyms_cmds_CXX | \ |
|
13936 |
export_symbols_cmds_CXX | \ |
|
13937 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
13938 |
postinstall_cmds | postuninstall_cmds | \ |
|
13939 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
13940 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
13941 |
# Double-quote double-evaled strings. |
|
13942 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
13943 |
;; |
|
13944 |
*) |
|
13945 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
13946 |
;; |
|
13947 |
esac |
|
13948 |
done |
|
13949 |
||
13950 |
case $lt_echo in |
|
13951 |
*'\$0 --fallback-echo"') |
|
13952 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
13953 |
;; |
|
13954 |
esac |
|
13955 |
||
13956 |
cfgfile="$ofile" |
|
13957 |
||
13958 |
cat <<__EOF__ >> "$cfgfile" |
|
13959 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
13960 |
||
13961 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
13962 |
||
13963 |
# Shell to use when invoking shell scripts. |
|
13964 |
SHELL=$lt_SHELL |
|
13965 |
||
13966 |
# Whether or not to build shared libraries. |
|
13967 |
build_libtool_libs=$enable_shared |
|
13968 |
||
13969 |
# Whether or not to build static libraries. |
|
13970 |
build_old_libs=$enable_static |
|
13971 |
||
13972 |
# Whether or not to add -lc for building shared libraries. |
|
13973 |
build_libtool_need_lc=$archive_cmds_need_lc_CXX |
|
13974 |
||
13975 |
# Whether or not to disallow shared libs when runtime libs are static |
|
13976 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
|
13977 |
||
13978 |
# Whether or not to optimize for fast installation. |
|
13979 |
fast_install=$enable_fast_install |
|
13980 |
||
13981 |
# The host system. |
|
13982 |
host_alias=$host_alias |
|
13983 |
host=$host |
|
13984 |
||
13985 |
# An echo program that does not interpret backslashes. |
|
13986 |
echo=$lt_echo |
|
13987 |
||
13988 |
# The archiver. |
|
13989 |
AR=$lt_AR |
|
13990 |
AR_FLAGS=$lt_AR_FLAGS |
|
13991 |
||
13992 |
# A C compiler. |
|
13993 |
LTCC=$lt_LTCC |
|
13994 |
||
13995 |
# A language-specific compiler. |
|
13996 |
CC=$lt_compiler_CXX |
|
13997 |
||
13998 |
# Is the compiler the GNU C compiler? |
|
13999 |
with_gcc=$GCC_CXX |
|
14000 |
||
14001 |
# An ERE matcher. |
|
14002 |
EGREP=$lt_EGREP |
|
14003 |
||
14004 |
# The linker used to build libraries. |
|
14005 |
LD=$lt_LD_CXX |
|
14006 |
||
14007 |
# Whether we need hard or soft links. |
|
14008 |
LN_S=$lt_LN_S |
|
14009 |
||
14010 |
# A BSD-compatible nm program. |
|
14011 |
NM=$lt_NM |
|
14012 |
||
14013 |
# A symbol stripping program |
|
14014 |
STRIP=$lt_STRIP |
|
14015 |
||
14016 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
14017 |
MAGIC_CMD=$MAGIC_CMD |
|
14018 |
||
14019 |
# Used on cygwin: DLL creation program. |
|
14020 |
DLLTOOL="$DLLTOOL" |
|
14021 |
||
14022 |
# Used on cygwin: object dumper. |
|
14023 |
OBJDUMP="$OBJDUMP" |
|
14024 |
||
14025 |
# Used on cygwin: assembler. |
|
14026 |
AS="$AS" |
|
14027 |
||
14028 |
# The name of the directory that contains temporary libtool files. |
|
14029 |
objdir=$objdir |
|
14030 |
||
14031 |
# How to create reloadable object files. |
|
14032 |
reload_flag=$lt_reload_flag |
|
14033 |
reload_cmds=$lt_reload_cmds |
|
14034 |
||
14035 |
# How to pass a linker flag through the compiler. |
|
14036 |
wl=$lt_lt_prog_compiler_wl_CXX |
|
14037 |
||
14038 |
# Object file suffix (normally "o"). |
|
14039 |
objext="$ac_objext" |
|
14040 |
||
14041 |
# Old archive suffix (normally "a"). |
|
14042 |
libext="$libext" |
|
14043 |
||
14044 |
# Shared library suffix (normally ".so"). |
|
14045 |
shrext_cmds='$shrext_cmds' |
|
14046 |
||
14047 |
# Executable file suffix (normally ""). |
|
14048 |
exeext="$exeext" |
|
14049 |
||
14050 |
# Additional compiler flags for building library objects. |
|
14051 |
pic_flag=$lt_lt_prog_compiler_pic_CXX |
|
14052 |
pic_mode=$pic_mode |
|
14053 |
||
14054 |
# What is the maximum length of a command? |
|
14055 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
14056 |
||
14057 |
# Does compiler simultaneously support -c and -o options? |
|
14058 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
|
14059 |
||
14060 |
# Must we lock files when doing compilation ? |
|
14061 |
need_locks=$lt_need_locks |
|
14062 |
||
14063 |
# Do we need the lib prefix for modules? |
|
14064 |
need_lib_prefix=$need_lib_prefix |
|
14065 |
||
14066 |
# Do we need a version for libraries? |
|
14067 |
need_version=$need_version |
|
14068 |
||
14069 |
# Whether dlopen is supported. |
|
14070 |
dlopen_support=$enable_dlopen |
|
14071 |
||
14072 |
# Whether dlopen of programs is supported. |
|
14073 |
dlopen_self=$enable_dlopen_self |
|
14074 |
||
14075 |
# Whether dlopen of statically linked programs is supported. |
|
14076 |
dlopen_self_static=$enable_dlopen_self_static |
|
14077 |
||
14078 |
# Compiler flag to prevent dynamic linking. |
|
14079 |
link_static_flag=$lt_lt_prog_compiler_static_CXX |
|
14080 |
||
14081 |
# Compiler flag to turn off builtin functions. |
|
14082 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
|
14083 |
||
14084 |
# Compiler flag to allow reflexive dlopens. |
|
14085 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
|
14086 |
||
14087 |
# Compiler flag to generate shared objects directly from archives. |
|
14088 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
|
14089 |
||
14090 |
# Compiler flag to generate thread-safe objects. |
|
14091 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
|
14092 |
||
14093 |
# Library versioning type. |
|
14094 |
version_type=$version_type |
|
14095 |
||
14096 |
# Format of library name prefix. |
|
14097 |
libname_spec=$lt_libname_spec |
|
14098 |
||
14099 |
# List of archive names. First name is the real one, the rest are links. |
|
14100 |
# The last name is the one that the linker finds with -lNAME. |
|
14101 |
library_names_spec=$lt_library_names_spec |
|
14102 |
||
14103 |
# The coded name of the library, if different from the real name. |
|
14104 |
soname_spec=$lt_soname_spec |
|
14105 |
||
14106 |
# Commands used to build and install an old-style archive. |
|
14107 |
RANLIB=$lt_RANLIB |
|
14108 |
old_archive_cmds=$lt_old_archive_cmds_CXX |
|
14109 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
14110 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
14111 |
||
14112 |
# Create an old-style archive from a shared archive. |
|
14113 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
|
14114 |
||
14115 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
14116 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
|
14117 |
||
14118 |
# Commands used to build and install a shared archive. |
|
14119 |
archive_cmds=$lt_archive_cmds_CXX |
|
14120 |
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
|
14121 |
postinstall_cmds=$lt_postinstall_cmds |
|
14122 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
14123 |
||
14124 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
14125 |
module_cmds=$lt_module_cmds_CXX |
|
14126 |
module_expsym_cmds=$lt_module_expsym_cmds_CXX |
|
14127 |
||
14128 |
# Commands to strip libraries. |
|
14129 |
old_striplib=$lt_old_striplib |
|
14130 |
striplib=$lt_striplib |
|
14131 |
||
14132 |
# Dependencies to place before the objects being linked to create a |
|
14133 |
# shared library. |
|
14134 |
predep_objects=$lt_predep_objects_CXX |
|
14135 |
||
14136 |
# Dependencies to place after the objects being linked to create a |
|
14137 |
# shared library. |
|
14138 |
postdep_objects=$lt_postdep_objects_CXX |
|
14139 |
||
14140 |
# Dependencies to place before the objects being linked to create a |
|
14141 |
# shared library. |
|
14142 |
predeps=$lt_predeps_CXX |
|
14143 |
||
14144 |
# Dependencies to place after the objects being linked to create a |
|
14145 |
# shared library. |
|
14146 |
postdeps=$lt_postdeps_CXX |
|
14147 |
||
14148 |
# The library search path used internally by the compiler when linking |
|
14149 |
# a shared library. |
|
14150 |
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
|
14151 |
||
14152 |
# Method to check whether dependent libraries are shared objects. |
|
14153 |
deplibs_check_method=$lt_deplibs_check_method |
|
14154 |
||
14155 |
# Command to use when deplibs_check_method == file_magic. |
|
14156 |
file_magic_cmd=$lt_file_magic_cmd |
|
14157 |
||
14158 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
14159 |
allow_undefined_flag=$lt_allow_undefined_flag_CXX |
|
14160 |
||
14161 |
# Flag that forces no undefined symbols. |
|
14162 |
no_undefined_flag=$lt_no_undefined_flag_CXX |
|
14163 |
||
14164 |
# Commands used to finish a libtool library installation in a directory. |
|
14165 |
finish_cmds=$lt_finish_cmds |
|
14166 |
||
14167 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
14168 |
finish_eval=$lt_finish_eval |
|
14169 |
||
14170 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
14171 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
14172 |
||
14173 |
# Transform the output of nm in a proper C declaration |
|
14174 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
14175 |
||
14176 |
# Transform the output of nm in a C name address pair |
|
14177 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
14178 |
||
14179 |
# This is the shared library runtime path variable. |
|
14180 |
runpath_var=$runpath_var |
|
14181 |
||
14182 |
# This is the shared library path variable. |
|
14183 |
shlibpath_var=$shlibpath_var |
|
14184 |
||
14185 |
# Is shlibpath searched before the hard-coded library search path? |
|
14186 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
14187 |
||
14188 |
# How to hardcode a shared library path into an executable. |
|
14189 |
hardcode_action=$hardcode_action_CXX |
|
14190 |
||
14191 |
# Whether we should hardcode library paths into libraries. |
|
14192 |
hardcode_into_libs=$hardcode_into_libs |
|
14193 |
||
14194 |
# Flag to hardcode \$libdir into a binary during linking. |
|
14195 |
# This must work even if \$libdir does not exist. |
|
14196 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
|
14197 |
||
14198 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
14199 |
# a binary during linking. This must work even if \$libdir does |
|
14200 |
# not exist. |
|
14201 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
|
14202 |
||
14203 |
# Whether we need a single -rpath flag with a separated argument. |
|
14204 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
|
14205 |
||
14206 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
14207 |
# resulting binary. |
|
14208 |
hardcode_direct=$hardcode_direct_CXX |
|
14209 |
||
14210 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
14211 |
# resulting binary. |
|
14212 |
hardcode_minus_L=$hardcode_minus_L_CXX |
|
14213 |
||
14214 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
14215 |
# the resulting binary. |
|
14216 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
|
14217 |
||
14218 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
14219 |
# and all subsequent libraries and executables linked against it. |
|
14220 |
hardcode_automatic=$hardcode_automatic_CXX |
|
14221 |
||
14222 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
14223 |
# restored at relink time. |
|
14224 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
14225 |
||
14226 |
# Whether libtool must link a program against all its dependency libraries. |
|
14227 |
link_all_deplibs=$link_all_deplibs_CXX |
|
14228 |
||
14229 |
# Compile-time system search path for libraries |
|
14230 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
14231 |
||
14232 |
# Run-time system search path for libraries |
|
14233 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
14234 |
||
14235 |
# Fix the shell variable \$srcfile for the compiler. |
|
14236 |
fix_srcfile_path="$fix_srcfile_path_CXX" |
|
14237 |
||
14238 |
# Set to yes if exported symbols are required. |
|
14239 |
always_export_symbols=$always_export_symbols_CXX |
|
14240 |
||
14241 |
# The commands to list exported symbols. |
|
14242 |
export_symbols_cmds=$lt_export_symbols_cmds_CXX |
|
14243 |
||
14244 |
# The commands to extract the exported symbol list from a shared archive. |
|
14245 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
14246 |
||
14247 |
# Symbols that should not be listed in the preloaded symbols. |
|
14248 |
exclude_expsyms=$lt_exclude_expsyms_CXX |
|
14249 |
||
14250 |
# Symbols that must always be exported. |
|
14251 |
include_expsyms=$lt_include_expsyms_CXX |
|
14252 |
||
14253 |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
14254 |
||
14255 |
__EOF__ |
|
14256 |
||
14257 |
||
14258 |
else |
|
14259 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
14260 |
# `config.status --recheck' to rerun these tests and create the |
|
14261 |
# libtool script then. |
|
14262 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
14263 |
if test -f "$ltmain_in"; then |
|
14264 |
test -f Makefile && make "$ltmain" |
|
14265 |
fi |
|
14266 |
fi |
|
14267 |
||
14268 |
||
14269 |
ac_ext=c |
|
14270 |
ac_cpp='$CPP $CPPFLAGS' |
|
14271 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
14272 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
14273 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
14274 |
||
14275 |
CC=$lt_save_CC |
|
14276 |
LDCXX=$LD |
|
14277 |
LD=$lt_save_LD |
|
14278 |
GCC=$lt_save_GCC |
|
14279 |
with_gnu_ldcxx=$with_gnu_ld |
|
14280 |
with_gnu_ld=$lt_save_with_gnu_ld |
|
14281 |
lt_cv_path_LDCXX=$lt_cv_path_LD |
|
14282 |
lt_cv_path_LD=$lt_save_path_LD |
|
14283 |
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
|
14284 |
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
|
14285 |
||
14286 |
else |
|
14287 |
tagname="" |
|
14288 |
fi |
|
14289 |
;; |
|
14290 |
||
14291 |
F77) |
|
14292 |
if test -n "$F77" && test "X$F77" != "Xno"; then |
|
14293 |
||
14294 |
ac_ext=f |
|
14295 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
14296 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
14297 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
14298 |
||
14299 |
||
14300 |
archive_cmds_need_lc_F77=no |
|
14301 |
allow_undefined_flag_F77= |
|
14302 |
always_export_symbols_F77=no |
|
14303 |
archive_expsym_cmds_F77= |
|
14304 |
export_dynamic_flag_spec_F77= |
|
14305 |
hardcode_direct_F77=no |
|
14306 |
hardcode_libdir_flag_spec_F77= |
|
14307 |
hardcode_libdir_flag_spec_ld_F77= |
|
14308 |
hardcode_libdir_separator_F77= |
|
14309 |
hardcode_minus_L_F77=no |
|
14310 |
hardcode_automatic_F77=no |
|
14311 |
module_cmds_F77= |
|
14312 |
module_expsym_cmds_F77= |
|
14313 |
link_all_deplibs_F77=unknown |
|
14314 |
old_archive_cmds_F77=$old_archive_cmds |
|
14315 |
no_undefined_flag_F77= |
|
14316 |
whole_archive_flag_spec_F77= |
|
14317 |
enable_shared_with_static_runtimes_F77=no |
|
14318 |
||
14319 |
# Source file extension for f77 test sources. |
|
14320 |
ac_ext=f |
|
14321 |
||
14322 |
# Object file extension for compiled f77 test sources. |
|
14323 |
objext=o |
|
14324 |
objext_F77=$objext |
|
14325 |
||
14326 |
# Code to be used in simple compile tests |
|
14327 |
lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
|
14328 |
||
14329 |
# Code to be used in simple link tests |
|
14330 |
lt_simple_link_test_code=" program t\n end\n" |
|
14331 |
||
14332 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
14333 |
||
14334 |
# If no C compiler was specified, use CC. |
|
14335 |
LTCC=${LTCC-"$CC"} |
|
14336 |
||
14337 |
# Allow CC to be a program name with arguments. |
|
14338 |
compiler=$CC |
|
14339 |
||
14340 |
||
14341 |
# Allow CC to be a program name with arguments. |
|
14342 |
lt_save_CC="$CC" |
|
14343 |
CC=${F77-"f77"} |
|
14344 |
compiler=$CC |
|
14345 |
compiler_F77=$CC |
|
14346 |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
|
14347 |
||
14348 |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
14349 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
14350 |
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
14351 |
echo "${ECHO_T}$can_build_shared" >&6 |
|
14352 |
||
14353 |
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
14354 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
|
14355 |
test "$can_build_shared" = "no" && enable_shared=no |
|
14356 |
||
14357 |
# On AIX, shared libraries and static libraries use the same namespace, and |
|
14358 |
# are all built from PIC. |
|
14359 |
case "$host_os" in |
|
14360 |
aix3*) |
|
14361 |
test "$enable_shared" = yes && enable_static=no |
|
14362 |
if test -n "$RANLIB"; then |
|
14363 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
14364 |
postinstall_cmds='$RANLIB $lib' |
|
14365 |
fi |
|
14366 |
;; |
|
14367 |
aix4* | aix5*) |
|
14368 |
test "$enable_shared" = yes && enable_static=no |
|
14369 |
;; |
|
14370 |
esac |
|
14371 |
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
14372 |
echo "${ECHO_T}$enable_shared" >&6 |
|
14373 |
||
14374 |
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
14375 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
|
14376 |
# Make sure either enable_shared or enable_static is yes. |
|
14377 |
test "$enable_shared" = yes || enable_static=yes |
|
14378 |
echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
14379 |
echo "${ECHO_T}$enable_static" >&6 |
|
14380 |
||
14381 |
test "$ld_shlibs_F77" = no && can_build_shared=no |
|
14382 |
||
14383 |
GCC_F77="$G77" |
|
14384 |
LD_F77="$LD" |
|
14385 |
||
14386 |
lt_prog_compiler_wl_F77= |
|
14387 |
lt_prog_compiler_pic_F77= |
|
14388 |
lt_prog_compiler_static_F77= |
|
14389 |
||
14390 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
14391 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
14392 |
||
14393 |
if test "$GCC" = yes; then |
|
14394 |
lt_prog_compiler_wl_F77='-Wl,' |
|
14395 |
lt_prog_compiler_static_F77='-static' |
|
14396 |
||
14397 |
case $host_os in |
|
14398 |
aix*) |
|
14399 |
# All AIX code is PIC. |
|
14400 |
if test "$host_cpu" = ia64; then |
|
14401 |
# AIX 5 now supports IA64 processor |
|
14402 |
lt_prog_compiler_static_F77='-Bstatic' |
|
14403 |
fi |
|
14404 |
;; |
|
14405 |
||
14406 |
amigaos*) |
|
14407 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
14408 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
14409 |
# like `-m68040'. |
|
14410 |
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
|
14411 |
;; |
|
14412 |
||
14413 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
14414 |
# PIC is the default for these OSes. |
|
14415 |
;; |
|
14416 |
||
14417 |
mingw* | pw32* | os2*) |
|
14418 |
# This hack is so that the source file can tell whether it is being |
|
14419 |
# built for inclusion in a dll (and should export symbols for example). |
|
14420 |
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
14421 |
;; |
|
14422 |
||
14423 |
darwin* | rhapsody*) |
|
14424 |
# PIC is the default on this platform |
|
14425 |
# Common symbols not allowed in MH_DYLIB files |
|
14426 |
lt_prog_compiler_pic_F77='-fno-common' |
|
14427 |
;; |
|
14428 |
||
14429 |
msdosdjgpp*) |
|
14430 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
|
14431 |
# on systems that don't support them. |
|
14432 |
lt_prog_compiler_can_build_shared_F77=no |
|
14433 |
enable_shared=no |
|
14434 |
;; |
|
14435 |
||
14436 |
sysv4*MP*) |
|
14437 |
if test -d /usr/nec; then |
|
14438 |
lt_prog_compiler_pic_F77=-Kconform_pic |
|
14439 |
fi |
|
14440 |
;; |
|
14441 |
||
14442 |
hpux*) |
|
14443 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
14444 |
# not for PA HP-UX. |
|
14445 |
case "$host_cpu" in |
|
14446 |
hppa*64*|ia64*) |
|
14447 |
# +Z the default |
|
14448 |
;; |
|
14449 |
*) |
|
14450 |
lt_prog_compiler_pic_F77='-fPIC' |
|
14451 |
;; |
|
14452 |
esac |
|
14453 |
;; |
|
14454 |
||
14455 |
*) |
|
14456 |
lt_prog_compiler_pic_F77='-fPIC' |
|
14457 |
;; |
|
14458 |
esac |
|
14459 |
else |
|
14460 |
# PORTME Check for flag to pass linker flags through the system compiler. |
|
14461 |
case $host_os in |
|
14462 |
aix*) |
|
14463 |
lt_prog_compiler_wl_F77='-Wl,' |
|
14464 |
if test "$host_cpu" = ia64; then |
|
14465 |
# AIX 5 now supports IA64 processor |
|
14466 |
lt_prog_compiler_static_F77='-Bstatic' |
|
14467 |
else |
|
14468 |
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
|
14469 |
fi |
|
14470 |
;; |
|
14471 |
||
14472 |
mingw* | pw32* | os2*) |
|
14473 |
# This hack is so that the source file can tell whether it is being |
|
14474 |
# built for inclusion in a dll (and should export symbols for example). |
|
14475 |
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
14476 |
;; |
|
14477 |
||
14478 |
hpux9* | hpux10* | hpux11*) |
|
14479 |
lt_prog_compiler_wl_F77='-Wl,' |
|
14480 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
14481 |
# not for PA HP-UX. |
|
14482 |
case "$host_cpu" in |
|
14483 |
hppa*64*|ia64*) |
|
14484 |
# +Z the default |
|
14485 |
;; |
|
14486 |
*) |
|
14487 |
lt_prog_compiler_pic_F77='+Z' |
|
14488 |
;; |
|
14489 |
esac |
|
14490 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
14491 |
lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
|
14492 |
;; |
|
14493 |
||
14494 |
irix5* | irix6* | nonstopux*) |
|
14495 |
lt_prog_compiler_wl_F77='-Wl,' |
|
14496 |
# PIC (with -KPIC) is the default. |
|
14497 |
lt_prog_compiler_static_F77='-non_shared' |
|
14498 |
;; |
|
14499 |
||
14500 |
newsos6) |
|
14501 |
lt_prog_compiler_pic_F77='-KPIC' |
|
14502 |
lt_prog_compiler_static_F77='-Bstatic' |
|
14503 |
;; |
|
14504 |
||
14505 |
linux*) |
|
14506 |
case $CC in |
|
14507 |
icc* | ecc*) |
|
14508 |
lt_prog_compiler_wl_F77='-Wl,' |
|
14509 |
lt_prog_compiler_pic_F77='-KPIC' |
|
14510 |
lt_prog_compiler_static_F77='-static' |
|
14511 |
;; |
|
14512 |
ccc*) |
|
14513 |
lt_prog_compiler_wl_F77='-Wl,' |
|
14514 |
# All Alpha code is PIC. |
|
14515 |
lt_prog_compiler_static_F77='-non_shared' |
|
14516 |
;; |
|
14517 |
esac |
|
14518 |
;; |
|
14519 |
||
14520 |
osf3* | osf4* | osf5*) |
|
14521 |
lt_prog_compiler_wl_F77='-Wl,' |
|
14522 |
# All OSF/1 code is PIC. |
|
14523 |
lt_prog_compiler_static_F77='-non_shared' |
|
14524 |
;; |
|
14525 |
||
14526 |
sco3.2v5*) |
|
14527 |
lt_prog_compiler_pic_F77='-Kpic' |
|
14528 |
lt_prog_compiler_static_F77='-dn' |
|
14529 |
;; |
|
14530 |
||
14531 |
solaris*) |
|
14532 |
lt_prog_compiler_wl_F77='-Wl,' |
|
14533 |
lt_prog_compiler_pic_F77='-KPIC' |
|
14534 |
lt_prog_compiler_static_F77='-Bstatic' |
|
14535 |
;; |
|
14536 |
||
14537 |
sunos4*) |
|
14538 |
lt_prog_compiler_wl_F77='-Qoption ld ' |
|
14539 |
lt_prog_compiler_pic_F77='-PIC' |
|
14540 |
lt_prog_compiler_static_F77='-Bstatic' |
|
14541 |
;; |
|
14542 |
||
14543 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
14544 |
lt_prog_compiler_wl_F77='-Wl,' |
|
14545 |
lt_prog_compiler_pic_F77='-KPIC' |
|
14546 |
lt_prog_compiler_static_F77='-Bstatic' |
|
14547 |
;; |
|
14548 |
||
14549 |
sysv4*MP*) |
|
14550 |
if test -d /usr/nec ;then |
|
14551 |
lt_prog_compiler_pic_F77='-Kconform_pic' |
|
14552 |
lt_prog_compiler_static_F77='-Bstatic' |
|
14553 |
fi |
|
14554 |
;; |
|
14555 |
||
14556 |
uts4*) |
|
14557 |
lt_prog_compiler_pic_F77='-pic' |
|
14558 |
lt_prog_compiler_static_F77='-Bstatic' |
|
14559 |
;; |
|
14560 |
||
14561 |
*) |
|
14562 |
lt_prog_compiler_can_build_shared_F77=no |
|
14563 |
;; |
|
14564 |
esac |
|
14565 |
fi |
|
14566 |
||
14567 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
|
14568 |
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
|
14569 |
||
14570 |
# |
|
14571 |
# Check to make sure the PIC flag actually works. |
|
14572 |
# |
|
14573 |
if test -n "$lt_prog_compiler_pic_F77"; then |
|
14574 |
||
14575 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
|
14576 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
|
14577 |
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
|
14578 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
14579 |
else |
|
14580 |
lt_prog_compiler_pic_works_F77=no |
|
14581 |
ac_outfile=conftest.$ac_objext |
|
14582 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
14583 |
lt_compiler_flag="$lt_prog_compiler_pic_F77" |
|
14584 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
14585 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
14586 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
14587 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
14588 |
# The option is referenced via a variable to avoid confusing sed. |
|
14589 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
14590 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
14591 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
14592 |
-e 's:$: $lt_compiler_flag:'` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
14593 |
(eval echo "\"\$as_me:14593: $lt_compile\"" >&5) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
14594 |
(eval "$lt_compile" 2>conftest.err) |
14595 |
ac_status=$? |
|
14596 |
cat conftest.err >&5 |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
14597 |
echo "$as_me:14597: \$? = $ac_status" >&5 |
1
by Daniel Holbach
Import upstream version 1.1.15 |
14598 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
14599 |
# The compiler can only warn and ignore the option if not recognized |
|
14600 |
# So say no if there are warnings |
|
14601 |
if test ! -s conftest.err; then |
|
14602 |
lt_prog_compiler_pic_works_F77=yes |
|
14603 |
fi |
|
14604 |
fi |
|
14605 |
$rm conftest* |
|
14606 |
||
14607 |
fi |
|
14608 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
|
14609 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
|
14610 |
||
14611 |
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
|
14612 |
case $lt_prog_compiler_pic_F77 in |
|
14613 |
"" | " "*) ;; |
|
14614 |
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
|
14615 |
esac |
|
14616 |
else |
|
14617 |
lt_prog_compiler_pic_F77= |
|
14618 |
lt_prog_compiler_can_build_shared_F77=no |
|
14619 |
fi |
|
14620 |
||
14621 |
fi |
|
14622 |
case "$host_os" in |
|
14623 |
# For platforms which do not support PIC, -DPIC is meaningless: |
|
14624 |
*djgpp*) |
|
14625 |
lt_prog_compiler_pic_F77= |
|
14626 |
;; |
|
14627 |
*) |
|
14628 |
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
|
14629 |
;; |
|
14630 |
esac |
|
14631 |
||
14632 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
14633 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
14634 |
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
|
14635 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
14636 |
else |
|
14637 |
lt_cv_prog_compiler_c_o_F77=no |
|
14638 |
$rm -r conftest 2>/dev/null |
|
14639 |
mkdir conftest |
|
14640 |
cd conftest |
|
14641 |
mkdir out |
|
14642 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
14643 |
||
14644 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
14645 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
14646 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
14647 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
14648 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
14649 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
14650 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
14651 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
14652 |
-e 's:$: $lt_compiler_flag:'` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
14653 |
(eval echo "\"\$as_me:14653: $lt_compile\"" >&5) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
14654 |
(eval "$lt_compile" 2>out/conftest.err) |
14655 |
ac_status=$? |
|
14656 |
cat out/conftest.err >&5 |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
14657 |
echo "$as_me:14657: \$? = $ac_status" >&5 |
1
by Daniel Holbach
Import upstream version 1.1.15 |
14658 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14659 |
then |
|
14660 |
# The compiler can only warn and ignore the option if not recognized |
|
14661 |
# So say no if there are warnings |
|
14662 |
if test ! -s out/conftest.err; then |
|
14663 |
lt_cv_prog_compiler_c_o_F77=yes |
|
14664 |
fi |
|
14665 |
fi |
|
14666 |
chmod u+w . |
|
14667 |
$rm conftest* |
|
14668 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
14669 |
# template instantiation |
|
14670 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
14671 |
$rm out/* && rmdir out |
|
14672 |
cd .. |
|
14673 |
rmdir conftest |
|
14674 |
$rm conftest* |
|
14675 |
||
14676 |
fi |
|
14677 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
|
14678 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
|
14679 |
||
14680 |
||
14681 |
hard_links="nottested" |
|
14682 |
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
|
14683 |
# do not overwrite the value of need_locks provided by the user |
|
14684 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
14685 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
14686 |
hard_links=yes |
|
14687 |
$rm conftest* |
|
14688 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
14689 |
touch conftest.a |
|
14690 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
14691 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
14692 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
14693 |
echo "${ECHO_T}$hard_links" >&6 |
|
14694 |
if test "$hard_links" = no; then |
|
14695 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
14696 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
14697 |
need_locks=warn |
|
14698 |
fi |
|
14699 |
else |
|
14700 |
need_locks=no |
|
14701 |
fi |
|
14702 |
||
14703 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
14704 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
14705 |
||
14706 |
runpath_var= |
|
14707 |
allow_undefined_flag_F77= |
|
14708 |
enable_shared_with_static_runtimes_F77=no |
|
14709 |
archive_cmds_F77= |
|
14710 |
archive_expsym_cmds_F77= |
|
14711 |
old_archive_From_new_cmds_F77= |
|
14712 |
old_archive_from_expsyms_cmds_F77= |
|
14713 |
export_dynamic_flag_spec_F77= |
|
14714 |
whole_archive_flag_spec_F77= |
|
14715 |
thread_safe_flag_spec_F77= |
|
14716 |
hardcode_libdir_flag_spec_F77= |
|
14717 |
hardcode_libdir_flag_spec_ld_F77= |
|
14718 |
hardcode_libdir_separator_F77= |
|
14719 |
hardcode_direct_F77=no |
|
14720 |
hardcode_minus_L_F77=no |
|
14721 |
hardcode_shlibpath_var_F77=unsupported |
|
14722 |
link_all_deplibs_F77=unknown |
|
14723 |
hardcode_automatic_F77=no |
|
14724 |
module_cmds_F77= |
|
14725 |
module_expsym_cmds_F77= |
|
14726 |
always_export_symbols_F77=no |
|
14727 |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
14728 |
# include_expsyms should be a list of space-separated symbols to be *always* |
|
14729 |
# included in the symbol list |
|
14730 |
include_expsyms_F77= |
|
14731 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
|
14732 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
14733 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
14734 |
# as well as any symbol that contains `d'. |
|
14735 |
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
|
14736 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
14737 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
14738 |
# the symbol is explicitly referenced. Since portable code cannot |
|
14739 |
# rely on this symbol name, it's probably fine to never include it in |
|
14740 |
# preloaded symbol tables. |
|
14741 |
extract_expsyms_cmds= |
|
14742 |
||
14743 |
case $host_os in |
|
14744 |
cygwin* | mingw* | pw32*) |
|
14745 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
14746 |
# When not using gcc, we currently assume that we are using |
|
14747 |
# Microsoft Visual C++. |
|
14748 |
if test "$GCC" != yes; then |
|
14749 |
with_gnu_ld=no |
|
14750 |
fi |
|
14751 |
;; |
|
14752 |
openbsd*) |
|
14753 |
with_gnu_ld=no |
|
14754 |
;; |
|
14755 |
esac |
|
14756 |
||
14757 |
ld_shlibs_F77=yes |
|
14758 |
if test "$with_gnu_ld" = yes; then |
|
14759 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
14760 |
wlarc='${wl}' |
|
14761 |
||
14762 |
# See if GNU ld supports shared libraries. |
|
14763 |
case $host_os in |
|
14764 |
aix3* | aix4* | aix5*) |
|
14765 |
# On AIX/PPC, the GNU linker is very broken |
|
14766 |
if test "$host_cpu" != ia64; then |
|
14767 |
ld_shlibs_F77=no |
|
14768 |
cat <<EOF 1>&2 |
|
14769 |
||
14770 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
14771 |
*** to be unable to reliably create shared libraries on AIX. |
|
14772 |
*** Therefore, libtool is disabling shared libraries support. If you |
|
14773 |
*** really care for shared libraries, you may want to modify your PATH |
|
14774 |
*** so that a non-GNU linker is found, and then restart. |
|
14775 |
||
14776 |
EOF |
|
14777 |
fi |
|
14778 |
;; |
|
14779 |
||
14780 |
amigaos*) |
|
14781 |
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)' |
|
14782 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
14783 |
hardcode_minus_L_F77=yes |
|
14784 |
||
14785 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
14786 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
|
14787 |
# to version 4, is to share data among multiple programs linked |
|
14788 |
# with the same dynamic library. Since this doesn't match the |
|
14789 |
# behavior of shared libraries on other platforms, we can't use |
|
14790 |
# them. |
|
14791 |
ld_shlibs_F77=no |
|
14792 |
;; |
|
14793 |
||
14794 |
beos*) |
|
14795 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
14796 |
allow_undefined_flag_F77=unsupported |
|
14797 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
14798 |
# support --undefined. This deserves some investigation. FIXME |
|
14799 |
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
14800 |
else |
|
14801 |
ld_shlibs_F77=no |
|
14802 |
fi |
|
14803 |
;; |
|
14804 |
||
14805 |
cygwin* | mingw* | pw32*) |
|
14806 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
|
14807 |
# as there is no search path for DLLs. |
|
14808 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
14809 |
allow_undefined_flag_F77=unsupported |
|
14810 |
always_export_symbols_F77=no |
|
14811 |
enable_shared_with_static_runtimes_F77=yes |
|
14812 |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
14813 |
||
14814 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
14815 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
14816 |
# If the export-symbols file already is a .def file (1st line |
|
14817 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
14818 |
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
14819 |
cp $export_symbols $output_objdir/$soname.def; |
|
14820 |
else |
|
14821 |
echo EXPORTS > $output_objdir/$soname.def; |
|
14822 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
14823 |
fi~ |
|
14824 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
14825 |
else |
|
14826 |
ld_shlibs=no |
|
14827 |
fi |
|
14828 |
;; |
|
14829 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
14830 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
14831 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14832 |
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
14833 |
wlarc= |
|
14834 |
else |
|
14835 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
14836 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
14837 |
fi |
|
14838 |
;; |
|
14839 |
||
14840 |
solaris* | sysv5*) |
|
14841 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
14842 |
ld_shlibs_F77=no |
|
14843 |
cat <<EOF 1>&2 |
|
14844 |
||
14845 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
14846 |
*** create shared libraries on Solaris systems. Therefore, libtool |
|
14847 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
14848 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
|
14849 |
*** your PATH or compiler configuration so that the native linker is |
|
14850 |
*** used, and then restart. |
|
14851 |
||
14852 |
EOF |
|
14853 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
14854 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
14855 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
14856 |
else |
|
14857 |
ld_shlibs_F77=no |
|
14858 |
fi |
|
14859 |
;; |
|
14860 |
||
14861 |
sunos4*) |
|
14862 |
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
14863 |
wlarc= |
|
14864 |
hardcode_direct_F77=yes |
|
14865 |
hardcode_shlibpath_var_F77=no |
|
14866 |
;; |
|
14867 |
||
14868 |
linux*) |
|
14869 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
14870 |
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
14871 |
archive_cmds_F77="$tmp_archive_cmds" |
|
14872 |
supports_anon_versioning=no |
|
14873 |
case `$LD -v 2>/dev/null` in |
|
14874 |
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
14875 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
14876 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
14877 |
*\ 2.11.*) ;; # other 2.11 versions |
|
14878 |
*) supports_anon_versioning=yes ;; |
|
14879 |
esac |
|
14880 |
if test $supports_anon_versioning = yes; then |
|
14881 |
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
14882 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
14883 |
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
14884 |
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
14885 |
else |
|
14886 |
archive_expsym_cmds_F77="$tmp_archive_cmds" |
|
14887 |
fi |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
14888 |
link_all_deplibs_F77=no |
1
by Daniel Holbach
Import upstream version 1.1.15 |
14889 |
else |
14890 |
ld_shlibs_F77=no |
|
14891 |
fi |
|
14892 |
;; |
|
14893 |
||
14894 |
*) |
|
14895 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
14896 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
14897 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
14898 |
else |
|
14899 |
ld_shlibs_F77=no |
|
14900 |
fi |
|
14901 |
;; |
|
14902 |
esac |
|
14903 |
||
14904 |
if test "$ld_shlibs_F77" = yes; then |
|
14905 |
runpath_var=LD_RUN_PATH |
|
14906 |
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
|
14907 |
export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
|
14908 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
14909 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
14910 |
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
14911 |
else |
|
14912 |
whole_archive_flag_spec_F77= |
|
14913 |
fi |
|
14914 |
fi |
|
14915 |
else |
|
14916 |
# PORTME fill in a description of your system's linker (not GNU ld) |
|
14917 |
case $host_os in |
|
14918 |
aix3*) |
|
14919 |
allow_undefined_flag_F77=unsupported |
|
14920 |
always_export_symbols_F77=yes |
|
14921 |
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' |
|
14922 |
# Note: this linker hardcodes the directories in LIBPATH if there |
|
14923 |
# are no directories specified by -L. |
|
14924 |
hardcode_minus_L_F77=yes |
|
14925 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
14926 |
# Neither direct hardcoding nor static linking is supported with a |
|
14927 |
# broken collect2. |
|
14928 |
hardcode_direct_F77=unsupported |
|
14929 |
fi |
|
14930 |
;; |
|
14931 |
||
14932 |
aix4* | aix5*) |
|
14933 |
if test "$host_cpu" = ia64; then |
|
14934 |
# On IA64, the linker does run time linking by default, so we don't |
|
14935 |
# have to do anything special. |
|
14936 |
aix_use_runtimelinking=no |
|
14937 |
exp_sym_flag='-Bexport' |
|
14938 |
no_entry_flag="" |
|
14939 |
else |
|
14940 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
14941 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
14942 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
14943 |
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' |
|
14944 |
else |
|
14945 |
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' |
|
14946 |
fi |
|
14947 |
aix_use_runtimelinking=no |
|
14948 |
||
14949 |
# Test if we are trying to use run time linking or normal |
|
14950 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
14951 |
# need to do runtime linking. |
|
14952 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
14953 |
for ld_flag in $LDFLAGS; do |
|
14954 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
14955 |
aix_use_runtimelinking=yes |
|
14956 |
break |
|
14957 |
fi |
|
14958 |
done |
|
14959 |
esac |
|
14960 |
||
14961 |
exp_sym_flag='-bexport' |
|
14962 |
no_entry_flag='-bnoentry' |
|
14963 |
fi |
|
14964 |
||
14965 |
# When large executables or shared objects are built, AIX ld can |
|
14966 |
# have problems creating the table of contents. If linking a library |
|
14967 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
14968 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
14969 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
14970 |
||
14971 |
archive_cmds_F77='' |
|
14972 |
hardcode_direct_F77=yes |
|
14973 |
hardcode_libdir_separator_F77=':' |
|
14974 |
link_all_deplibs_F77=yes |
|
14975 |
||
14976 |
if test "$GCC" = yes; then |
|
14977 |
case $host_os in aix4.012|aix4.012.*) |
|
14978 |
# We only want to do this on AIX 4.2 and lower, the check |
|
14979 |
# below for broken collect2 doesn't work under 4.3+ |
|
14980 |
collect2name=`${CC} -print-prog-name=collect2` |
|
14981 |
if test -f "$collect2name" && \ |
|
14982 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
14983 |
then |
|
14984 |
# We have reworked collect2 |
|
14985 |
hardcode_direct_F77=yes |
|
14986 |
else |
|
14987 |
# We have old collect2 |
|
14988 |
hardcode_direct_F77=unsupported |
|
14989 |
# It fails to find uninstalled libraries when the uninstalled |
|
14990 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
14991 |
# to unsupported forces relinking |
|
14992 |
hardcode_minus_L_F77=yes |
|
14993 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
14994 |
hardcode_libdir_separator_F77= |
|
14995 |
fi |
|
14996 |
esac |
|
14997 |
shared_flag='-shared' |
|
14998 |
else |
|
14999 |
# not using gcc |
|
15000 |
if test "$host_cpu" = ia64; then |
|
15001 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
15002 |
# chokes on -Wl,-G. The following line is correct: |
|
15003 |
shared_flag='-G' |
|
15004 |
else |
|
15005 |
if test "$aix_use_runtimelinking" = yes; then |
|
15006 |
shared_flag='${wl}-G' |
|
15007 |
else |
|
15008 |
shared_flag='${wl}-bM:SRE' |
|
15009 |
fi |
|
15010 |
fi |
|
15011 |
fi |
|
15012 |
||
15013 |
# It seems that -bexpall does not export symbols beginning with |
|
15014 |
# underscore (_), so it is better to generate a list of symbols to export. |
|
15015 |
always_export_symbols_F77=yes |
|
15016 |
if test "$aix_use_runtimelinking" = yes; then |
|
15017 |
# Warning - without using the other runtime loading flags (-brtl), |
|
15018 |
# -berok will link without error, but may produce a broken library. |
|
15019 |
allow_undefined_flag_F77='-berok' |
|
15020 |
# Determine the default libpath from the value encoded in an empty executable. |
|
15021 |
cat >conftest.$ac_ext <<_ACEOF |
|
15022 |
program main |
|
15023 |
||
15024 |
end |
|
15025 |
_ACEOF |
|
15026 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
15027 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
15028 |
(eval $ac_link) 2>conftest.er1 |
|
15029 |
ac_status=$? |
|
15030 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
15031 |
rm -f conftest.er1 |
|
15032 |
cat conftest.err >&5 |
|
15033 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15034 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
15035 |
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
15036 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15037 |
(eval $ac_try) 2>&5 |
|
15038 |
ac_status=$? |
|
15039 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15040 |
(exit $ac_status); }; } && |
|
15041 |
{ ac_try='test -s conftest$ac_exeext' |
|
15042 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
15043 |
(eval $ac_try) 2>&5 |
|
15044 |
ac_status=$? |
|
15045 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15046 |
(exit $ac_status); }; }; then |
|
15047 |
||
15048 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
15049 |
}'` |
|
15050 |
# Check for a 64-bit object if we didn't find anything. |
|
15051 |
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; } |
|
15052 |
}'`; fi |
|
15053 |
else |
|
15054 |
echo "$as_me: failed program was:" >&5 |
|
15055 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
15056 |
||
15057 |
fi |
|
15058 |
rm -f conftest.err conftest.$ac_objext \ |
|
15059 |
conftest$ac_exeext conftest.$ac_ext |
|
15060 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
15061 |
||
15062 |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
15063 |
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
15064 |
else |
|
15065 |
if test "$host_cpu" = ia64; then |
|
15066 |
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
|
15067 |
allow_undefined_flag_F77="-z nodefs" |
|
15068 |
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
15069 |
else |
|
15070 |
# Determine the default libpath from the value encoded in an empty executable. |
|
15071 |
cat >conftest.$ac_ext <<_ACEOF |
|
15072 |
program main |
|
15073 |
||
15074 |
end |
|
15075 |
_ACEOF |
|
15076 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
15077 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
15078 |
(eval $ac_link) 2>conftest.er1 |
|
15079 |
ac_status=$? |
|
15080 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
15081 |
rm -f conftest.er1 |
|
15082 |
cat conftest.err >&5 |
|
15083 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15084 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
15085 |
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
15086 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15087 |
(eval $ac_try) 2>&5 |
|
15088 |
ac_status=$? |
|
15089 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15090 |
(exit $ac_status); }; } && |
|
15091 |
{ ac_try='test -s conftest$ac_exeext' |
|
15092 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
15093 |
(eval $ac_try) 2>&5 |
|
15094 |
ac_status=$? |
|
15095 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15096 |
(exit $ac_status); }; }; then |
|
15097 |
||
15098 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
15099 |
}'` |
|
15100 |
# Check for a 64-bit object if we didn't find anything. |
|
15101 |
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; } |
|
15102 |
}'`; fi |
|
15103 |
else |
|
15104 |
echo "$as_me: failed program was:" >&5 |
|
15105 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
15106 |
||
15107 |
fi |
|
15108 |
rm -f conftest.err conftest.$ac_objext \ |
|
15109 |
conftest$ac_exeext conftest.$ac_ext |
|
15110 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
15111 |
||
15112 |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
15113 |
# Warning - without using the other run time loading flags, |
|
15114 |
# -berok will link without error, but may produce a broken library. |
|
15115 |
no_undefined_flag_F77=' ${wl}-bernotok' |
|
15116 |
allow_undefined_flag_F77=' ${wl}-berok' |
|
15117 |
# -bexpall does not export symbols beginning with underscore (_) |
|
15118 |
always_export_symbols_F77=yes |
|
15119 |
# Exported symbols can be pulled into shared objects from archives |
|
15120 |
whole_archive_flag_spec_F77=' ' |
|
15121 |
archive_cmds_need_lc_F77=yes |
|
15122 |
# This is similar to how AIX traditionally builds it's shared libraries. |
|
15123 |
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
15124 |
fi |
|
15125 |
fi |
|
15126 |
;; |
|
15127 |
||
15128 |
amigaos*) |
|
15129 |
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)' |
|
15130 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15131 |
hardcode_minus_L_F77=yes |
|
15132 |
# see comment about different semantics on the GNU ld section |
|
15133 |
ld_shlibs_F77=no |
|
15134 |
;; |
|
15135 |
||
15136 |
bsdi4*) |
|
15137 |
export_dynamic_flag_spec_F77=-rdynamic |
|
15138 |
;; |
|
15139 |
||
15140 |
cygwin* | mingw* | pw32*) |
|
15141 |
# When not using gcc, we currently assume that we are using |
|
15142 |
# Microsoft Visual C++. |
|
15143 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
15144 |
# no search path for DLLs. |
|
15145 |
hardcode_libdir_flag_spec_F77=' ' |
|
15146 |
allow_undefined_flag_F77=unsupported |
|
15147 |
# Tell ltmain to make .lib files, not .a files. |
|
15148 |
libext=lib |
|
15149 |
# Tell ltmain to make .dll files, not .so files. |
|
15150 |
shrext_cmds=".dll" |
|
15151 |
# FIXME: Setting linknames here is a bad hack. |
|
15152 |
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
15153 |
# The linker will automatically build a .lib file if we build a DLL. |
|
15154 |
old_archive_From_new_cmds_F77='true' |
|
15155 |
# FIXME: Should let the user specify the lib program. |
|
15156 |
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
15157 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
15158 |
enable_shared_with_static_runtimes_F77=yes |
|
15159 |
;; |
|
15160 |
||
15161 |
darwin* | rhapsody*) |
|
15162 |
if test "$GXX" = yes ; then |
|
15163 |
archive_cmds_need_lc_F77=no |
|
15164 |
case "$host_os" in |
|
15165 |
rhapsody* | darwin1.[012]) |
|
15166 |
allow_undefined_flag_F77='-undefined suppress' |
|
15167 |
;; |
|
15168 |
*) # Darwin 1.3 on |
|
15169 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
15170 |
allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
|
15171 |
else |
|
15172 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
15173 |
10.[012]) |
|
15174 |
allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
|
15175 |
;; |
|
15176 |
10.*) |
|
15177 |
allow_undefined_flag_F77='-undefined dynamic_lookup' |
|
15178 |
;; |
|
15179 |
esac |
|
15180 |
fi |
|
15181 |
;; |
|
15182 |
esac |
|
15183 |
lt_int_apple_cc_single_mod=no |
|
15184 |
output_verbose_link_cmd='echo' |
|
15185 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
15186 |
lt_int_apple_cc_single_mod=yes |
|
15187 |
fi |
|
15188 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
15189 |
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
15190 |
else |
|
15191 |
archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' |
|
15192 |
fi |
|
15193 |
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
15194 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
15195 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
15196 |
archive_expsym_cmds_F77='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}' |
|
15197 |
else |
|
15198 |
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
|
15199 |
fi |
|
15200 |
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}' |
|
15201 |
hardcode_direct_F77=no |
|
15202 |
hardcode_automatic_F77=yes |
|
15203 |
hardcode_shlibpath_var_F77=unsupported |
|
15204 |
whole_archive_flag_spec_F77='-all_load $convenience' |
|
15205 |
link_all_deplibs_F77=yes |
|
15206 |
else |
|
15207 |
ld_shlibs_F77=no |
|
15208 |
fi |
|
15209 |
;; |
|
15210 |
||
15211 |
dgux*) |
|
15212 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15213 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15214 |
hardcode_shlibpath_var_F77=no |
|
15215 |
;; |
|
15216 |
||
15217 |
freebsd1*) |
|
15218 |
ld_shlibs_F77=no |
|
15219 |
;; |
|
15220 |
||
15221 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
15222 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
15223 |
# does not break anything, and helps significantly (at the cost of a little |
|
15224 |
# extra space). |
|
15225 |
freebsd2.2*) |
|
15226 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
15227 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
15228 |
hardcode_direct_F77=yes |
|
15229 |
hardcode_shlibpath_var_F77=no |
|
15230 |
;; |
|
15231 |
||
15232 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
15233 |
freebsd2*) |
|
15234 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
15235 |
hardcode_direct_F77=yes |
|
15236 |
hardcode_minus_L_F77=yes |
|
15237 |
hardcode_shlibpath_var_F77=no |
|
15238 |
;; |
|
15239 |
||
15240 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
15241 |
freebsd* | kfreebsd*-gnu) |
|
15242 |
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
15243 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
15244 |
hardcode_direct_F77=yes |
|
15245 |
hardcode_shlibpath_var_F77=no |
|
15246 |
;; |
|
15247 |
||
15248 |
hpux9*) |
|
15249 |
if test "$GCC" = yes; then |
|
15250 |
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' |
|
15251 |
else |
|
15252 |
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' |
|
15253 |
fi |
|
15254 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
15255 |
hardcode_libdir_separator_F77=: |
|
15256 |
hardcode_direct_F77=yes |
|
15257 |
||
15258 |
# hardcode_minus_L: Not really in the search PATH, |
|
15259 |
# but as the default location of the library. |
|
15260 |
hardcode_minus_L_F77=yes |
|
15261 |
export_dynamic_flag_spec_F77='${wl}-E' |
|
15262 |
;; |
|
15263 |
||
15264 |
hpux10* | hpux11*) |
|
15265 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
15266 |
case "$host_cpu" in |
|
15267 |
hppa*64*|ia64*) |
|
15268 |
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15269 |
;; |
|
15270 |
*) |
|
15271 |
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
15272 |
;; |
|
15273 |
esac |
|
15274 |
else |
|
15275 |
case "$host_cpu" in |
|
15276 |
hppa*64*|ia64*) |
|
15277 |
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15278 |
;; |
|
15279 |
*) |
|
15280 |
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
15281 |
;; |
|
15282 |
esac |
|
15283 |
fi |
|
15284 |
if test "$with_gnu_ld" = no; then |
|
15285 |
case "$host_cpu" in |
|
15286 |
hppa*64*) |
|
15287 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
15288 |
hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
|
15289 |
hardcode_libdir_separator_F77=: |
|
15290 |
hardcode_direct_F77=no |
|
15291 |
hardcode_shlibpath_var_F77=no |
|
15292 |
;; |
|
15293 |
ia64*) |
|
15294 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15295 |
hardcode_direct_F77=no |
|
15296 |
hardcode_shlibpath_var_F77=no |
|
15297 |
||
15298 |
# hardcode_minus_L: Not really in the search PATH, |
|
15299 |
# but as the default location of the library. |
|
15300 |
hardcode_minus_L_F77=yes |
|
15301 |
;; |
|
15302 |
*) |
|
15303 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
15304 |
hardcode_libdir_separator_F77=: |
|
15305 |
hardcode_direct_F77=yes |
|
15306 |
export_dynamic_flag_spec_F77='${wl}-E' |
|
15307 |
||
15308 |
# hardcode_minus_L: Not really in the search PATH, |
|
15309 |
# but as the default location of the library. |
|
15310 |
hardcode_minus_L_F77=yes |
|
15311 |
;; |
|
15312 |
esac |
|
15313 |
fi |
|
15314 |
;; |
|
15315 |
||
15316 |
irix5* | irix6* | nonstopux*) |
|
15317 |
if test "$GCC" = yes; then |
|
15318 |
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' |
|
15319 |
else |
|
15320 |
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' |
|
15321 |
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
|
15322 |
fi |
|
15323 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
15324 |
hardcode_libdir_separator_F77=: |
|
15325 |
link_all_deplibs_F77=yes |
|
15326 |
;; |
|
15327 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
15328 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
15329 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15330 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
15331 |
else |
|
15332 |
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
15333 |
fi |
|
15334 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
15335 |
hardcode_direct_F77=yes |
|
15336 |
hardcode_shlibpath_var_F77=no |
|
15337 |
;; |
|
15338 |
||
15339 |
newsos6) |
|
15340 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15341 |
hardcode_direct_F77=yes |
|
15342 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
15343 |
hardcode_libdir_separator_F77=: |
|
15344 |
hardcode_shlibpath_var_F77=no |
|
15345 |
;; |
|
15346 |
||
15347 |
openbsd*) |
|
15348 |
hardcode_direct_F77=yes |
|
15349 |
hardcode_shlibpath_var_F77=no |
|
15350 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
15351 |
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
15352 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
15353 |
export_dynamic_flag_spec_F77='${wl}-E' |
|
15354 |
else |
|
15355 |
case $host_os in |
|
15356 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
15357 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
15358 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
15359 |
;; |
|
15360 |
*) |
|
15361 |
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
15362 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
15363 |
;; |
|
15364 |
esac |
|
15365 |
fi |
|
15366 |
;; |
|
15367 |
||
15368 |
os2*) |
|
15369 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15370 |
hardcode_minus_L_F77=yes |
|
15371 |
allow_undefined_flag_F77=unsupported |
|
15372 |
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' |
|
15373 |
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
15374 |
;; |
|
15375 |
||
15376 |
osf3*) |
|
15377 |
if test "$GCC" = yes; then |
|
15378 |
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
15379 |
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' |
|
15380 |
else |
|
15381 |
allow_undefined_flag_F77=' -expect_unresolved \*' |
|
15382 |
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' |
|
15383 |
fi |
|
15384 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
15385 |
hardcode_libdir_separator_F77=: |
|
15386 |
;; |
|
15387 |
||
15388 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
15389 |
if test "$GCC" = yes; then |
|
15390 |
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
15391 |
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' |
|
15392 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
15393 |
else |
|
15394 |
allow_undefined_flag_F77=' -expect_unresolved \*' |
|
15395 |
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' |
|
15396 |
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~ |
|
15397 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
15398 |
||
15399 |
# Both c and cxx compiler support -rpath directly |
|
15400 |
hardcode_libdir_flag_spec_F77='-rpath $libdir' |
|
15401 |
fi |
|
15402 |
hardcode_libdir_separator_F77=: |
|
15403 |
;; |
|
15404 |
||
15405 |
sco3.2v5*) |
|
15406 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15407 |
hardcode_shlibpath_var_F77=no |
|
15408 |
export_dynamic_flag_spec_F77='${wl}-Bexport' |
|
15409 |
runpath_var=LD_RUN_PATH |
|
15410 |
hardcode_runpath_var=yes |
|
15411 |
;; |
|
15412 |
||
15413 |
solaris*) |
|
15414 |
no_undefined_flag_F77=' -z text' |
|
15415 |
if test "$GCC" = yes; then |
|
15416 |
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15417 |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
15418 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
15419 |
else |
|
15420 |
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15421 |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
15422 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
15423 |
fi |
|
15424 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
15425 |
hardcode_shlibpath_var_F77=no |
|
15426 |
case $host_os in |
|
15427 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
15428 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
15429 |
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
|
15430 |
esac |
|
15431 |
link_all_deplibs_F77=yes |
|
15432 |
;; |
|
15433 |
||
15434 |
sunos4*) |
|
15435 |
if test "x$host_vendor" = xsequent; then |
|
15436 |
# Use $CC to link under sequent, because it throws in some extra .o |
|
15437 |
# files that make .init and .fini sections work. |
|
15438 |
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15439 |
else |
|
15440 |
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
15441 |
fi |
|
15442 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15443 |
hardcode_direct_F77=yes |
|
15444 |
hardcode_minus_L_F77=yes |
|
15445 |
hardcode_shlibpath_var_F77=no |
|
15446 |
;; |
|
15447 |
||
15448 |
sysv4) |
|
15449 |
case $host_vendor in |
|
15450 |
sni) |
|
15451 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15452 |
hardcode_direct_F77=yes # is this really true??? |
|
15453 |
;; |
|
15454 |
siemens) |
|
15455 |
## LD is ld it makes a PLAMLIB |
|
15456 |
## CC just makes a GrossModule. |
|
15457 |
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
15458 |
reload_cmds_F77='$CC -r -o $output$reload_objs' |
|
15459 |
hardcode_direct_F77=no |
|
15460 |
;; |
|
15461 |
motorola) |
|
15462 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15463 |
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
|
15464 |
;; |
|
15465 |
esac |
|
15466 |
runpath_var='LD_RUN_PATH' |
|
15467 |
hardcode_shlibpath_var_F77=no |
|
15468 |
;; |
|
15469 |
||
15470 |
sysv4.3*) |
|
15471 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15472 |
hardcode_shlibpath_var_F77=no |
|
15473 |
export_dynamic_flag_spec_F77='-Bexport' |
|
15474 |
;; |
|
15475 |
||
15476 |
sysv4*MP*) |
|
15477 |
if test -d /usr/nec; then |
|
15478 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15479 |
hardcode_shlibpath_var_F77=no |
|
15480 |
runpath_var=LD_RUN_PATH |
|
15481 |
hardcode_runpath_var=yes |
|
15482 |
ld_shlibs_F77=yes |
|
15483 |
fi |
|
15484 |
;; |
|
15485 |
||
15486 |
sysv4.2uw2*) |
|
15487 |
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
15488 |
hardcode_direct_F77=yes |
|
15489 |
hardcode_minus_L_F77=no |
|
15490 |
hardcode_shlibpath_var_F77=no |
|
15491 |
hardcode_runpath_var=yes |
|
15492 |
runpath_var=LD_RUN_PATH |
|
15493 |
;; |
|
15494 |
||
15495 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
15496 |
no_undefined_flag_F77='${wl}-z ${wl}text' |
|
15497 |
if test "$GCC" = yes; then |
|
15498 |
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15499 |
else |
|
15500 |
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15501 |
fi |
|
15502 |
runpath_var='LD_RUN_PATH' |
|
15503 |
hardcode_shlibpath_var_F77=no |
|
15504 |
;; |
|
15505 |
||
15506 |
sysv5*) |
|
15507 |
no_undefined_flag_F77=' -z text' |
|
15508 |
# $CC -shared without GNU ld will not create a library from C++ |
|
15509 |
# object files and a static libstdc++, better avoid it by now |
|
15510 |
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15511 |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
15512 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
15513 |
hardcode_libdir_flag_spec_F77= |
|
15514 |
hardcode_shlibpath_var_F77=no |
|
15515 |
runpath_var='LD_RUN_PATH' |
|
15516 |
;; |
|
15517 |
||
15518 |
uts4*) |
|
15519 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15520 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15521 |
hardcode_shlibpath_var_F77=no |
|
15522 |
;; |
|
15523 |
||
15524 |
*) |
|
15525 |
ld_shlibs_F77=no |
|
15526 |
;; |
|
15527 |
esac |
|
15528 |
fi |
|
15529 |
||
15530 |
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
|
15531 |
echo "${ECHO_T}$ld_shlibs_F77" >&6 |
|
15532 |
test "$ld_shlibs_F77" = no && can_build_shared=no |
|
15533 |
||
15534 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
15535 |
if test "$GCC" = yes; then |
|
15536 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
15537 |
fi |
|
15538 |
||
15539 |
# |
|
15540 |
# Do we need to explicitly link libc? |
|
15541 |
# |
|
15542 |
case "x$archive_cmds_need_lc_F77" in |
|
15543 |
x|xyes) |
|
15544 |
# Assume -lc should be added |
|
15545 |
archive_cmds_need_lc_F77=yes |
|
15546 |
||
15547 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
15548 |
case $archive_cmds_F77 in |
|
15549 |
*'~'*) |
|
15550 |
# FIXME: we may have to deal with multi-command sequences. |
|
15551 |
;; |
|
15552 |
'$CC '*) |
|
15553 |
# Test whether the compiler implicitly links with -lc since on some |
|
15554 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
15555 |
# to ld, don't add -lc before -lgcc. |
|
15556 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
15557 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
15558 |
$rm conftest* |
|
15559 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
15560 |
||
15561 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
15562 |
(eval $ac_compile) 2>&5 |
|
15563 |
ac_status=$? |
|
15564 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15565 |
(exit $ac_status); } 2>conftest.err; then |
|
15566 |
soname=conftest |
|
15567 |
lib=conftest |
|
15568 |
libobjs=conftest.$ac_objext |
|
15569 |
deplibs= |
|
15570 |
wl=$lt_prog_compiler_wl_F77 |
|
15571 |
compiler_flags=-v |
|
15572 |
linker_flags=-v |
|
15573 |
verstring= |
|
15574 |
output_objdir=. |
|
15575 |
libname=conftest |
|
15576 |
lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
|
15577 |
allow_undefined_flag_F77= |
|
15578 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
15579 |
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
15580 |
ac_status=$? |
|
15581 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15582 |
(exit $ac_status); } |
|
15583 |
then |
|
15584 |
archive_cmds_need_lc_F77=no |
|
15585 |
else |
|
15586 |
archive_cmds_need_lc_F77=yes |
|
15587 |
fi |
|
15588 |
allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
|
15589 |
else |
|
15590 |
cat conftest.err 1>&5 |
|
15591 |
fi |
|
15592 |
$rm conftest* |
|
15593 |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
|
15594 |
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
|
15595 |
;; |
|
15596 |
esac |
|
15597 |
fi |
|
15598 |
;; |
|
15599 |
esac |
|
15600 |
||
15601 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
15602 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
15603 |
library_names_spec= |
|
15604 |
libname_spec='lib$name' |
|
15605 |
soname_spec= |
|
15606 |
shrext_cmds=".so" |
|
15607 |
postinstall_cmds= |
|
15608 |
postuninstall_cmds= |
|
15609 |
finish_cmds= |
|
15610 |
finish_eval= |
|
15611 |
shlibpath_var= |
|
15612 |
shlibpath_overrides_runpath=unknown |
|
15613 |
version_type=none |
|
15614 |
dynamic_linker="$host_os ld.so" |
|
15615 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
15616 |
if test "$GCC" = yes; then |
|
15617 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
15618 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
15619 |
# if the path contains ";" then we assume it to be the separator |
|
15620 |
# otherwise default to the standard path separator (i.e. ":") - it is |
|
15621 |
# assumed that no part of a normal pathname contains ";" but that should |
|
15622 |
# okay in the real world where ";" in dirpaths is itself problematic. |
|
15623 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
15624 |
else |
|
15625 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
15626 |
fi |
|
15627 |
else |
|
15628 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
15629 |
fi |
|
15630 |
need_lib_prefix=unknown |
|
15631 |
hardcode_into_libs=no |
|
15632 |
||
15633 |
# when you set need_version to no, make sure it does not cause -set_version |
|
15634 |
# flags to be left without arguments |
|
15635 |
need_version=unknown |
|
15636 |
||
15637 |
case $host_os in |
|
15638 |
aix3*) |
|
15639 |
version_type=linux |
|
15640 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
15641 |
shlibpath_var=LIBPATH |
|
15642 |
||
15643 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
15644 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15645 |
;; |
|
15646 |
||
15647 |
aix4* | aix5*) |
|
15648 |
version_type=linux |
|
15649 |
need_lib_prefix=no |
|
15650 |
need_version=no |
|
15651 |
hardcode_into_libs=yes |
|
15652 |
if test "$host_cpu" = ia64; then |
|
15653 |
# AIX 5 supports IA64 |
|
15654 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
15655 |
shlibpath_var=LD_LIBRARY_PATH |
|
15656 |
else |
|
15657 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
15658 |
# for dependence libraries. The import file would start with |
|
15659 |
# the line `#! .'. This would cause the generated library to |
|
15660 |
# depend on `.', always an invalid library. This was fixed in |
|
15661 |
# development snapshots of GCC prior to 3.0. |
|
15662 |
case $host_os in |
|
15663 |
aix4 | aix4.[01] | aix4.[01].*) |
|
15664 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
15665 |
echo ' yes ' |
|
15666 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
15667 |
: |
|
15668 |
else |
|
15669 |
can_build_shared=no |
|
15670 |
fi |
|
15671 |
;; |
|
15672 |
esac |
|
15673 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
15674 |
# soname into executable. Probably we can add versioning support to |
|
15675 |
# collect2, so additional links can be useful in future. |
|
15676 |
if test "$aix_use_runtimelinking" = yes; then |
|
15677 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
15678 |
# instead of lib<name>.a to let people know that these are not |
|
15679 |
# typical AIX shared libraries. |
|
15680 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15681 |
else |
|
15682 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
15683 |
# and later when we are not doing run time linking. |
|
15684 |
library_names_spec='${libname}${release}.a $libname.a' |
|
15685 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15686 |
fi |
|
15687 |
shlibpath_var=LIBPATH |
|
15688 |
fi |
|
15689 |
;; |
|
15690 |
||
15691 |
amigaos*) |
|
15692 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
15693 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
15694 |
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' |
|
15695 |
;; |
|
15696 |
||
15697 |
beos*) |
|
15698 |
library_names_spec='${libname}${shared_ext}' |
|
15699 |
dynamic_linker="$host_os ld.so" |
|
15700 |
shlibpath_var=LIBRARY_PATH |
|
15701 |
;; |
|
15702 |
||
15703 |
bsdi4*) |
|
15704 |
version_type=linux |
|
15705 |
need_version=no |
|
15706 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15707 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15708 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
15709 |
shlibpath_var=LD_LIBRARY_PATH |
|
15710 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
15711 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
15712 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
15713 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
15714 |
# libtool to hard-code these into programs |
|
15715 |
;; |
|
15716 |
||
15717 |
cygwin* | mingw* | pw32*) |
|
15718 |
version_type=windows |
|
15719 |
shrext_cmds=".dll" |
|
15720 |
need_version=no |
|
15721 |
need_lib_prefix=no |
|
15722 |
||
15723 |
case $GCC,$host_os in |
|
15724 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
|
15725 |
library_names_spec='$libname.dll.a' |
|
15726 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
15727 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
15728 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
15729 |
dldir=$destdir/`dirname \$dlpath`~ |
|
15730 |
test -d \$dldir || mkdir -p \$dldir~ |
|
15731 |
$install_prog $dir/$dlname \$dldir/$dlname' |
|
15732 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
15733 |
dlpath=$dir/\$dldll~ |
|
15734 |
$rm \$dlpath' |
|
15735 |
shlibpath_overrides_runpath=yes |
|
15736 |
||
15737 |
case $host_os in |
|
15738 |
cygwin*) |
|
15739 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
15740 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
15741 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
15742 |
;; |
|
15743 |
mingw*) |
|
15744 |
# MinGW DLLs use traditional 'lib' prefix |
|
15745 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
15746 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
15747 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
15748 |
# It is most probably a Windows format PATH printed by |
|
15749 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
15750 |
# path with ; separators, and with drive letters. We can handle the |
|
15751 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
15752 |
# especially as we might pass files found there to a mingw objdump, |
|
15753 |
# which wouldn't understand a cygwinified path. Ahh. |
|
15754 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
15755 |
else |
|
15756 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
15757 |
fi |
|
15758 |
;; |
|
15759 |
pw32*) |
|
15760 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
15761 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
|
15762 |
;; |
|
15763 |
esac |
|
15764 |
;; |
|
15765 |
||
15766 |
*) |
|
15767 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
15768 |
;; |
|
15769 |
esac |
|
15770 |
dynamic_linker='Win32 ld.exe' |
|
15771 |
# FIXME: first we should search . and the directory the executable is in |
|
15772 |
shlibpath_var=PATH |
|
15773 |
;; |
|
15774 |
||
15775 |
darwin* | rhapsody*) |
|
15776 |
dynamic_linker="$host_os dyld" |
|
15777 |
version_type=darwin |
|
15778 |
need_lib_prefix=no |
|
15779 |
need_version=no |
|
15780 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
15781 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
15782 |
shlibpath_overrides_runpath=yes |
|
15783 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
15784 |
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
|
15785 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
15786 |
if test "$GCC" = yes; then |
|
15787 |
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"` |
|
15788 |
else |
|
15789 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
15790 |
fi |
|
15791 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
15792 |
;; |
|
15793 |
||
15794 |
dgux*) |
|
15795 |
version_type=linux |
|
15796 |
need_lib_prefix=no |
|
15797 |
need_version=no |
|
15798 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
15799 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15800 |
shlibpath_var=LD_LIBRARY_PATH |
|
15801 |
;; |
|
15802 |
||
15803 |
freebsd1*) |
|
15804 |
dynamic_linker=no |
|
15805 |
;; |
|
15806 |
||
15807 |
kfreebsd*-gnu) |
|
15808 |
version_type=linux |
|
15809 |
need_lib_prefix=no |
|
15810 |
need_version=no |
|
15811 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
15812 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15813 |
shlibpath_var=LD_LIBRARY_PATH |
|
15814 |
shlibpath_overrides_runpath=no |
|
15815 |
hardcode_into_libs=yes |
|
15816 |
dynamic_linker='GNU ld.so' |
|
15817 |
;; |
|
15818 |
||
15819 |
freebsd*) |
|
15820 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
15821 |
version_type=freebsd-$objformat |
|
15822 |
case $version_type in |
|
15823 |
freebsd-elf*) |
|
15824 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
15825 |
need_version=no |
|
15826 |
need_lib_prefix=no |
|
15827 |
;; |
|
15828 |
freebsd-*) |
|
15829 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
15830 |
need_version=yes |
|
15831 |
;; |
|
15832 |
esac |
|
15833 |
shlibpath_var=LD_LIBRARY_PATH |
|
15834 |
case $host_os in |
|
15835 |
freebsd2*) |
|
15836 |
shlibpath_overrides_runpath=yes |
|
15837 |
;; |
|
15838 |
freebsd3.01* | freebsdelf3.01*) |
|
15839 |
shlibpath_overrides_runpath=yes |
|
15840 |
hardcode_into_libs=yes |
|
15841 |
;; |
|
15842 |
*) # from 3.2 on |
|
15843 |
shlibpath_overrides_runpath=no |
|
15844 |
hardcode_into_libs=yes |
|
15845 |
;; |
|
15846 |
esac |
|
15847 |
;; |
|
15848 |
||
15849 |
gnu*) |
|
15850 |
version_type=linux |
|
15851 |
need_lib_prefix=no |
|
15852 |
need_version=no |
|
15853 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
15854 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15855 |
shlibpath_var=LD_LIBRARY_PATH |
|
15856 |
hardcode_into_libs=yes |
|
15857 |
;; |
|
15858 |
||
15859 |
hpux9* | hpux10* | hpux11*) |
|
15860 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
15861 |
# link against other versions. |
|
15862 |
version_type=sunos |
|
15863 |
need_lib_prefix=no |
|
15864 |
need_version=no |
|
15865 |
case "$host_cpu" in |
|
15866 |
ia64*) |
|
15867 |
shrext_cmds='.so' |
|
15868 |
hardcode_into_libs=yes |
|
15869 |
dynamic_linker="$host_os dld.so" |
|
15870 |
shlibpath_var=LD_LIBRARY_PATH |
|
15871 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
15872 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15873 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15874 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
15875 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
15876 |
else |
|
15877 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
15878 |
fi |
|
15879 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
15880 |
;; |
|
15881 |
hppa*64*) |
|
15882 |
shrext_cmds='.sl' |
|
15883 |
hardcode_into_libs=yes |
|
15884 |
dynamic_linker="$host_os dld.sl" |
|
15885 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
15886 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
15887 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15888 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15889 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
15890 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
15891 |
;; |
|
15892 |
*) |
|
15893 |
shrext_cmds='.sl' |
|
15894 |
dynamic_linker="$host_os dld.sl" |
|
15895 |
shlibpath_var=SHLIB_PATH |
|
15896 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
15897 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15898 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15899 |
;; |
|
15900 |
esac |
|
15901 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
15902 |
postinstall_cmds='chmod 555 $lib' |
|
15903 |
;; |
|
15904 |
||
15905 |
irix5* | irix6* | nonstopux*) |
|
15906 |
case $host_os in |
|
15907 |
nonstopux*) version_type=nonstopux ;; |
|
15908 |
*) |
|
15909 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
15910 |
version_type=linux |
|
15911 |
else |
|
15912 |
version_type=irix |
|
15913 |
fi ;; |
|
15914 |
esac |
|
15915 |
need_lib_prefix=no |
|
15916 |
need_version=no |
|
15917 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15918 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
15919 |
case $host_os in |
|
15920 |
irix5* | nonstopux*) |
|
15921 |
libsuff= shlibsuff= |
|
15922 |
;; |
|
15923 |
*) |
|
15924 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
15925 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
15926 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
15927 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
15928 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
15929 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
15930 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
15931 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
15932 |
esac |
|
15933 |
;; |
|
15934 |
esac |
|
15935 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
15936 |
shlibpath_overrides_runpath=no |
|
15937 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
15938 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
15939 |
hardcode_into_libs=yes |
|
15940 |
;; |
|
15941 |
||
15942 |
# No shared lib support for Linux oldld, aout, or coff. |
|
15943 |
linux*oldld* | linux*aout* | linux*coff*) |
|
15944 |
dynamic_linker=no |
|
15945 |
;; |
|
15946 |
||
15947 |
# This must be Linux ELF. |
|
15948 |
linux*) |
|
15949 |
version_type=linux |
|
15950 |
need_lib_prefix=no |
|
15951 |
need_version=no |
|
15952 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
15953 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15954 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
15955 |
shlibpath_var=LD_LIBRARY_PATH |
|
15956 |
shlibpath_overrides_runpath=no |
|
15957 |
# This implies no fast_install, which is unacceptable. |
|
15958 |
# Some rework will be needed to allow for fast_install |
|
15959 |
# before this can be enabled. |
|
15960 |
hardcode_into_libs=yes |
|
15961 |
||
15962 |
# Append ld.so.conf contents to the search path |
|
15963 |
if test -f /etc/ld.so.conf; then |
|
15964 |
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
15965 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
1
by Daniel Holbach
Import upstream version 1.1.15 |
15966 |
fi |
15967 |
||
15968 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
15969 |
# powerpc, because MkLinux only supported shared libraries with the |
|
15970 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
15971 |
# most powerpc-linux boxes support dynamic linking these days and |
|
15972 |
# people can always --disable-shared, the test was removed, and we |
|
15973 |
# assume the GNU/Linux dynamic linker is in use. |
|
15974 |
dynamic_linker='GNU/Linux ld.so' |
|
15975 |
;; |
|
15976 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
15977 |
netbsdelf*-gnu) |
15978 |
version_type=linux |
|
15979 |
need_lib_prefix=no |
|
15980 |
need_version=no |
|
15981 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
15982 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15983 |
shlibpath_var=LD_LIBRARY_PATH |
|
15984 |
shlibpath_overrides_runpath=no |
|
15985 |
hardcode_into_libs=yes |
|
15986 |
dynamic_linker='NetBSD ld.elf_so' |
|
15987 |
;; |
|
15988 |
||
1
by Daniel Holbach
Import upstream version 1.1.15 |
15989 |
knetbsd*-gnu) |
15990 |
version_type=linux |
|
15991 |
need_lib_prefix=no |
|
15992 |
need_version=no |
|
15993 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
15994 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
15995 |
shlibpath_var=LD_LIBRARY_PATH |
|
15996 |
shlibpath_overrides_runpath=no |
|
15997 |
hardcode_into_libs=yes |
|
15998 |
dynamic_linker='GNU ld.so' |
|
15999 |
;; |
|
16000 |
||
16001 |
netbsd*) |
|
16002 |
version_type=sunos |
|
16003 |
need_lib_prefix=no |
|
16004 |
need_version=no |
|
16005 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
16006 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
16007 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
16008 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
16009 |
else |
|
16010 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
16011 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
16012 |
dynamic_linker='NetBSD ld.elf_so' |
|
16013 |
fi |
|
16014 |
shlibpath_var=LD_LIBRARY_PATH |
|
16015 |
shlibpath_overrides_runpath=yes |
|
16016 |
hardcode_into_libs=yes |
|
16017 |
;; |
|
16018 |
||
16019 |
newsos6) |
|
16020 |
version_type=linux |
|
16021 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16022 |
shlibpath_var=LD_LIBRARY_PATH |
|
16023 |
shlibpath_overrides_runpath=yes |
|
16024 |
;; |
|
16025 |
||
16026 |
nto-qnx*) |
|
16027 |
version_type=linux |
|
16028 |
need_lib_prefix=no |
|
16029 |
need_version=no |
|
16030 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16031 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
16032 |
shlibpath_var=LD_LIBRARY_PATH |
|
16033 |
shlibpath_overrides_runpath=yes |
|
16034 |
;; |
|
16035 |
||
16036 |
openbsd*) |
|
16037 |
version_type=sunos |
|
16038 |
need_lib_prefix=no |
|
16039 |
need_version=yes |
|
16040 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
16041 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
16042 |
shlibpath_var=LD_LIBRARY_PATH |
|
16043 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
16044 |
case $host_os in |
|
16045 |
openbsd2.[89] | openbsd2.[89].*) |
|
16046 |
shlibpath_overrides_runpath=no |
|
16047 |
;; |
|
16048 |
*) |
|
16049 |
shlibpath_overrides_runpath=yes |
|
16050 |
;; |
|
16051 |
esac |
|
16052 |
else |
|
16053 |
shlibpath_overrides_runpath=yes |
|
16054 |
fi |
|
16055 |
;; |
|
16056 |
||
16057 |
os2*) |
|
16058 |
libname_spec='$name' |
|
16059 |
shrext_cmds=".dll" |
|
16060 |
need_lib_prefix=no |
|
16061 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
16062 |
dynamic_linker='OS/2 ld.exe' |
|
16063 |
shlibpath_var=LIBPATH |
|
16064 |
;; |
|
16065 |
||
16066 |
osf3* | osf4* | osf5*) |
|
16067 |
version_type=osf |
|
16068 |
need_lib_prefix=no |
|
16069 |
need_version=no |
|
16070 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
16071 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16072 |
shlibpath_var=LD_LIBRARY_PATH |
|
16073 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
16074 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
16075 |
;; |
|
16076 |
||
16077 |
sco3.2v5*) |
|
16078 |
version_type=osf |
|
16079 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
16080 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16081 |
shlibpath_var=LD_LIBRARY_PATH |
|
16082 |
;; |
|
16083 |
||
16084 |
solaris*) |
|
16085 |
version_type=linux |
|
16086 |
need_lib_prefix=no |
|
16087 |
need_version=no |
|
16088 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16089 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
16090 |
shlibpath_var=LD_LIBRARY_PATH |
|
16091 |
shlibpath_overrides_runpath=yes |
|
16092 |
hardcode_into_libs=yes |
|
16093 |
# ldd complains unless libraries are executable |
|
16094 |
postinstall_cmds='chmod +x $lib' |
|
16095 |
;; |
|
16096 |
||
16097 |
sunos4*) |
|
16098 |
version_type=sunos |
|
16099 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
16100 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
16101 |
shlibpath_var=LD_LIBRARY_PATH |
|
16102 |
shlibpath_overrides_runpath=yes |
|
16103 |
if test "$with_gnu_ld" = yes; then |
|
16104 |
need_lib_prefix=no |
|
16105 |
fi |
|
16106 |
need_version=yes |
|
16107 |
;; |
|
16108 |
||
16109 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
16110 |
version_type=linux |
|
16111 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16112 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
16113 |
shlibpath_var=LD_LIBRARY_PATH |
|
16114 |
case $host_vendor in |
|
16115 |
sni) |
|
16116 |
shlibpath_overrides_runpath=no |
|
16117 |
need_lib_prefix=no |
|
16118 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
16119 |
runpath_var=LD_RUN_PATH |
|
16120 |
;; |
|
16121 |
siemens) |
|
16122 |
need_lib_prefix=no |
|
16123 |
;; |
|
16124 |
motorola) |
|
16125 |
need_lib_prefix=no |
|
16126 |
need_version=no |
|
16127 |
shlibpath_overrides_runpath=no |
|
16128 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
16129 |
;; |
|
16130 |
esac |
|
16131 |
;; |
|
16132 |
||
16133 |
sysv4*MP*) |
|
16134 |
if test -d /usr/nec ;then |
|
16135 |
version_type=linux |
|
16136 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
16137 |
soname_spec='$libname${shared_ext}.$major' |
|
16138 |
shlibpath_var=LD_LIBRARY_PATH |
|
16139 |
fi |
|
16140 |
;; |
|
16141 |
||
16142 |
uts4*) |
|
16143 |
version_type=linux |
|
16144 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16145 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
16146 |
shlibpath_var=LD_LIBRARY_PATH |
|
16147 |
;; |
|
16148 |
||
16149 |
*) |
|
16150 |
dynamic_linker=no |
|
16151 |
;; |
|
16152 |
esac |
|
16153 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
16154 |
echo "${ECHO_T}$dynamic_linker" >&6 |
|
16155 |
test "$dynamic_linker" = no && can_build_shared=no |
|
16156 |
||
16157 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
16158 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
16159 |
hardcode_action_F77= |
|
16160 |
if test -n "$hardcode_libdir_flag_spec_F77" || \ |
|
16161 |
test -n "$runpath_var F77" || \ |
|
16162 |
test "X$hardcode_automatic_F77"="Xyes" ; then |
|
16163 |
||
16164 |
# We can hardcode non-existant directories. |
|
16165 |
if test "$hardcode_direct_F77" != no && |
|
16166 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
16167 |
# have to relink, otherwise we might link with an installed library |
|
16168 |
# when we should be linking with a yet-to-be-installed one |
|
16169 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
|
16170 |
test "$hardcode_minus_L_F77" != no; then |
|
16171 |
# Linking always hardcodes the temporary library directory. |
|
16172 |
hardcode_action_F77=relink |
|
16173 |
else |
|
16174 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
16175 |
hardcode_action_F77=immediate |
|
16176 |
fi |
|
16177 |
else |
|
16178 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
16179 |
# directories. |
|
16180 |
hardcode_action_F77=unsupported |
|
16181 |
fi |
|
16182 |
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
|
16183 |
echo "${ECHO_T}$hardcode_action_F77" >&6 |
|
16184 |
||
16185 |
if test "$hardcode_action_F77" = relink; then |
|
16186 |
# Fast installation is not supported |
|
16187 |
enable_fast_install=no |
|
16188 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
16189 |
test "$enable_shared" = no; then |
|
16190 |
# Fast installation is not necessary |
|
16191 |
enable_fast_install=needless |
|
16192 |
fi |
|
16193 |
||
16194 |
striplib= |
|
16195 |
old_striplib= |
|
16196 |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
16197 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
16198 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
16199 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
16200 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
16201 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
16202 |
echo "${ECHO_T}yes" >&6 |
|
16203 |
else |
|
16204 |
# FIXME - insert some real tests, host_os isn't really good enough |
|
16205 |
case $host_os in |
|
16206 |
darwin*) |
|
16207 |
if test -n "$STRIP" ; then |
|
16208 |
striplib="$STRIP -x" |
|
16209 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
16210 |
echo "${ECHO_T}yes" >&6 |
|
16211 |
else |
|
16212 |
echo "$as_me:$LINENO: result: no" >&5 |
|
16213 |
echo "${ECHO_T}no" >&6 |
|
16214 |
fi |
|
16215 |
;; |
|
16216 |
*) |
|
16217 |
echo "$as_me:$LINENO: result: no" >&5 |
|
16218 |
echo "${ECHO_T}no" >&6 |
|
16219 |
;; |
|
16220 |
esac |
|
16221 |
fi |
|
16222 |
||
16223 |
||
16224 |
||
16225 |
# The else clause should only fire when bootstrapping the |
|
16226 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
16227 |
# with your package, and you will get complaints that there are |
|
16228 |
# no rules to generate ltmain.sh. |
|
16229 |
if test -f "$ltmain"; then |
|
16230 |
# See if we are running on zsh, and set the options which allow our commands through |
|
16231 |
# without removal of \ escapes. |
|
16232 |
if test -n "${ZSH_VERSION+set}" ; then |
|
16233 |
setopt NO_GLOB_SUBST |
|
16234 |
fi |
|
16235 |
# Now quote all the things that may contain metacharacters while being |
|
16236 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
16237 |
# variables and quote the copies for generation of the libtool script. |
|
16238 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
16239 |
SED SHELL STRIP \ |
|
16240 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
16241 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
16242 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
16243 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
16244 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
16245 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
16246 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
16247 |
compiler_F77 \ |
|
16248 |
CC_F77 \ |
|
16249 |
LD_F77 \ |
|
16250 |
lt_prog_compiler_wl_F77 \ |
|
16251 |
lt_prog_compiler_pic_F77 \ |
|
16252 |
lt_prog_compiler_static_F77 \ |
|
16253 |
lt_prog_compiler_no_builtin_flag_F77 \ |
|
16254 |
export_dynamic_flag_spec_F77 \ |
|
16255 |
thread_safe_flag_spec_F77 \ |
|
16256 |
whole_archive_flag_spec_F77 \ |
|
16257 |
enable_shared_with_static_runtimes_F77 \ |
|
16258 |
old_archive_cmds_F77 \ |
|
16259 |
old_archive_from_new_cmds_F77 \ |
|
16260 |
predep_objects_F77 \ |
|
16261 |
postdep_objects_F77 \ |
|
16262 |
predeps_F77 \ |
|
16263 |
postdeps_F77 \ |
|
16264 |
compiler_lib_search_path_F77 \ |
|
16265 |
archive_cmds_F77 \ |
|
16266 |
archive_expsym_cmds_F77 \ |
|
16267 |
postinstall_cmds_F77 \ |
|
16268 |
postuninstall_cmds_F77 \ |
|
16269 |
old_archive_from_expsyms_cmds_F77 \ |
|
16270 |
allow_undefined_flag_F77 \ |
|
16271 |
no_undefined_flag_F77 \ |
|
16272 |
export_symbols_cmds_F77 \ |
|
16273 |
hardcode_libdir_flag_spec_F77 \ |
|
16274 |
hardcode_libdir_flag_spec_ld_F77 \ |
|
16275 |
hardcode_libdir_separator_F77 \ |
|
16276 |
hardcode_automatic_F77 \ |
|
16277 |
module_cmds_F77 \ |
|
16278 |
module_expsym_cmds_F77 \ |
|
16279 |
lt_cv_prog_compiler_c_o_F77 \ |
|
16280 |
exclude_expsyms_F77 \ |
|
16281 |
include_expsyms_F77; do |
|
16282 |
||
16283 |
case $var in |
|
16284 |
old_archive_cmds_F77 | \ |
|
16285 |
old_archive_from_new_cmds_F77 | \ |
|
16286 |
archive_cmds_F77 | \ |
|
16287 |
archive_expsym_cmds_F77 | \ |
|
16288 |
module_cmds_F77 | \ |
|
16289 |
module_expsym_cmds_F77 | \ |
|
16290 |
old_archive_from_expsyms_cmds_F77 | \ |
|
16291 |
export_symbols_cmds_F77 | \ |
|
16292 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
16293 |
postinstall_cmds | postuninstall_cmds | \ |
|
16294 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
16295 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
16296 |
# Double-quote double-evaled strings. |
|
16297 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
16298 |
;; |
|
16299 |
*) |
|
16300 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
16301 |
;; |
|
16302 |
esac |
|
16303 |
done |
|
16304 |
||
16305 |
case $lt_echo in |
|
16306 |
*'\$0 --fallback-echo"') |
|
16307 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
16308 |
;; |
|
16309 |
esac |
|
16310 |
||
16311 |
cfgfile="$ofile" |
|
16312 |
||
16313 |
cat <<__EOF__ >> "$cfgfile" |
|
16314 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
16315 |
||
16316 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
16317 |
||
16318 |
# Shell to use when invoking shell scripts. |
|
16319 |
SHELL=$lt_SHELL |
|
16320 |
||
16321 |
# Whether or not to build shared libraries. |
|
16322 |
build_libtool_libs=$enable_shared |
|
16323 |
||
16324 |
# Whether or not to build static libraries. |
|
16325 |
build_old_libs=$enable_static |
|
16326 |
||
16327 |
# Whether or not to add -lc for building shared libraries. |
|
16328 |
build_libtool_need_lc=$archive_cmds_need_lc_F77 |
|
16329 |
||
16330 |
# Whether or not to disallow shared libs when runtime libs are static |
|
16331 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
|
16332 |
||
16333 |
# Whether or not to optimize for fast installation. |
|
16334 |
fast_install=$enable_fast_install |
|
16335 |
||
16336 |
# The host system. |
|
16337 |
host_alias=$host_alias |
|
16338 |
host=$host |
|
16339 |
||
16340 |
# An echo program that does not interpret backslashes. |
|
16341 |
echo=$lt_echo |
|
16342 |
||
16343 |
# The archiver. |
|
16344 |
AR=$lt_AR |
|
16345 |
AR_FLAGS=$lt_AR_FLAGS |
|
16346 |
||
16347 |
# A C compiler. |
|
16348 |
LTCC=$lt_LTCC |
|
16349 |
||
16350 |
# A language-specific compiler. |
|
16351 |
CC=$lt_compiler_F77 |
|
16352 |
||
16353 |
# Is the compiler the GNU C compiler? |
|
16354 |
with_gcc=$GCC_F77 |
|
16355 |
||
16356 |
# An ERE matcher. |
|
16357 |
EGREP=$lt_EGREP |
|
16358 |
||
16359 |
# The linker used to build libraries. |
|
16360 |
LD=$lt_LD_F77 |
|
16361 |
||
16362 |
# Whether we need hard or soft links. |
|
16363 |
LN_S=$lt_LN_S |
|
16364 |
||
16365 |
# A BSD-compatible nm program. |
|
16366 |
NM=$lt_NM |
|
16367 |
||
16368 |
# A symbol stripping program |
|
16369 |
STRIP=$lt_STRIP |
|
16370 |
||
16371 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
16372 |
MAGIC_CMD=$MAGIC_CMD |
|
16373 |
||
16374 |
# Used on cygwin: DLL creation program. |
|
16375 |
DLLTOOL="$DLLTOOL" |
|
16376 |
||
16377 |
# Used on cygwin: object dumper. |
|
16378 |
OBJDUMP="$OBJDUMP" |
|
16379 |
||
16380 |
# Used on cygwin: assembler. |
|
16381 |
AS="$AS" |
|
16382 |
||
16383 |
# The name of the directory that contains temporary libtool files. |
|
16384 |
objdir=$objdir |
|
16385 |
||
16386 |
# How to create reloadable object files. |
|
16387 |
reload_flag=$lt_reload_flag |
|
16388 |
reload_cmds=$lt_reload_cmds |
|
16389 |
||
16390 |
# How to pass a linker flag through the compiler. |
|
16391 |
wl=$lt_lt_prog_compiler_wl_F77 |
|
16392 |
||
16393 |
# Object file suffix (normally "o"). |
|
16394 |
objext="$ac_objext" |
|
16395 |
||
16396 |
# Old archive suffix (normally "a"). |
|
16397 |
libext="$libext" |
|
16398 |
||
16399 |
# Shared library suffix (normally ".so"). |
|
16400 |
shrext_cmds='$shrext_cmds' |
|
16401 |
||
16402 |
# Executable file suffix (normally ""). |
|
16403 |
exeext="$exeext" |
|
16404 |
||
16405 |
# Additional compiler flags for building library objects. |
|
16406 |
pic_flag=$lt_lt_prog_compiler_pic_F77 |
|
16407 |
pic_mode=$pic_mode |
|
16408 |
||
16409 |
# What is the maximum length of a command? |
|
16410 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
16411 |
||
16412 |
# Does compiler simultaneously support -c and -o options? |
|
16413 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
|
16414 |
||
16415 |
# Must we lock files when doing compilation ? |
|
16416 |
need_locks=$lt_need_locks |
|
16417 |
||
16418 |
# Do we need the lib prefix for modules? |
|
16419 |
need_lib_prefix=$need_lib_prefix |
|
16420 |
||
16421 |
# Do we need a version for libraries? |
|
16422 |
need_version=$need_version |
|
16423 |
||
16424 |
# Whether dlopen is supported. |
|
16425 |
dlopen_support=$enable_dlopen |
|
16426 |
||
16427 |
# Whether dlopen of programs is supported. |
|
16428 |
dlopen_self=$enable_dlopen_self |
|
16429 |
||
16430 |
# Whether dlopen of statically linked programs is supported. |
|
16431 |
dlopen_self_static=$enable_dlopen_self_static |
|
16432 |
||
16433 |
# Compiler flag to prevent dynamic linking. |
|
16434 |
link_static_flag=$lt_lt_prog_compiler_static_F77 |
|
16435 |
||
16436 |
# Compiler flag to turn off builtin functions. |
|
16437 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
|
16438 |
||
16439 |
# Compiler flag to allow reflexive dlopens. |
|
16440 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
|
16441 |
||
16442 |
# Compiler flag to generate shared objects directly from archives. |
|
16443 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
|
16444 |
||
16445 |
# Compiler flag to generate thread-safe objects. |
|
16446 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
|
16447 |
||
16448 |
# Library versioning type. |
|
16449 |
version_type=$version_type |
|
16450 |
||
16451 |
# Format of library name prefix. |
|
16452 |
libname_spec=$lt_libname_spec |
|
16453 |
||
16454 |
# List of archive names. First name is the real one, the rest are links. |
|
16455 |
# The last name is the one that the linker finds with -lNAME. |
|
16456 |
library_names_spec=$lt_library_names_spec |
|
16457 |
||
16458 |
# The coded name of the library, if different from the real name. |
|
16459 |
soname_spec=$lt_soname_spec |
|
16460 |
||
16461 |
# Commands used to build and install an old-style archive. |
|
16462 |
RANLIB=$lt_RANLIB |
|
16463 |
old_archive_cmds=$lt_old_archive_cmds_F77 |
|
16464 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
16465 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
16466 |
||
16467 |
# Create an old-style archive from a shared archive. |
|
16468 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
|
16469 |
||
16470 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
16471 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
|
16472 |
||
16473 |
# Commands used to build and install a shared archive. |
|
16474 |
archive_cmds=$lt_archive_cmds_F77 |
|
16475 |
archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
|
16476 |
postinstall_cmds=$lt_postinstall_cmds |
|
16477 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
16478 |
||
16479 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
16480 |
module_cmds=$lt_module_cmds_F77 |
|
16481 |
module_expsym_cmds=$lt_module_expsym_cmds_F77 |
|
16482 |
||
16483 |
# Commands to strip libraries. |
|
16484 |
old_striplib=$lt_old_striplib |
|
16485 |
striplib=$lt_striplib |
|
16486 |
||
16487 |
# Dependencies to place before the objects being linked to create a |
|
16488 |
# shared library. |
|
16489 |
predep_objects=$lt_predep_objects_F77 |
|
16490 |
||
16491 |
# Dependencies to place after the objects being linked to create a |
|
16492 |
# shared library. |
|
16493 |
postdep_objects=$lt_postdep_objects_F77 |
|
16494 |
||
16495 |
# Dependencies to place before the objects being linked to create a |
|
16496 |
# shared library. |
|
16497 |
predeps=$lt_predeps_F77 |
|
16498 |
||
16499 |
# Dependencies to place after the objects being linked to create a |
|
16500 |
# shared library. |
|
16501 |
postdeps=$lt_postdeps_F77 |
|
16502 |
||
16503 |
# The library search path used internally by the compiler when linking |
|
16504 |
# a shared library. |
|
16505 |
compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
|
16506 |
||
16507 |
# Method to check whether dependent libraries are shared objects. |
|
16508 |
deplibs_check_method=$lt_deplibs_check_method |
|
16509 |
||
16510 |
# Command to use when deplibs_check_method == file_magic. |
|
16511 |
file_magic_cmd=$lt_file_magic_cmd |
|
16512 |
||
16513 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
16514 |
allow_undefined_flag=$lt_allow_undefined_flag_F77 |
|
16515 |
||
16516 |
# Flag that forces no undefined symbols. |
|
16517 |
no_undefined_flag=$lt_no_undefined_flag_F77 |
|
16518 |
||
16519 |
# Commands used to finish a libtool library installation in a directory. |
|
16520 |
finish_cmds=$lt_finish_cmds |
|
16521 |
||
16522 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
16523 |
finish_eval=$lt_finish_eval |
|
16524 |
||
16525 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
16526 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
16527 |
||
16528 |
# Transform the output of nm in a proper C declaration |
|
16529 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
16530 |
||
16531 |
# Transform the output of nm in a C name address pair |
|
16532 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
16533 |
||
16534 |
# This is the shared library runtime path variable. |
|
16535 |
runpath_var=$runpath_var |
|
16536 |
||
16537 |
# This is the shared library path variable. |
|
16538 |
shlibpath_var=$shlibpath_var |
|
16539 |
||
16540 |
# Is shlibpath searched before the hard-coded library search path? |
|
16541 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
16542 |
||
16543 |
# How to hardcode a shared library path into an executable. |
|
16544 |
hardcode_action=$hardcode_action_F77 |
|
16545 |
||
16546 |
# Whether we should hardcode library paths into libraries. |
|
16547 |
hardcode_into_libs=$hardcode_into_libs |
|
16548 |
||
16549 |
# Flag to hardcode \$libdir into a binary during linking. |
|
16550 |
# This must work even if \$libdir does not exist. |
|
16551 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
|
16552 |
||
16553 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
16554 |
# a binary during linking. This must work even if \$libdir does |
|
16555 |
# not exist. |
|
16556 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
|
16557 |
||
16558 |
# Whether we need a single -rpath flag with a separated argument. |
|
16559 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
|
16560 |
||
16561 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
16562 |
# resulting binary. |
|
16563 |
hardcode_direct=$hardcode_direct_F77 |
|
16564 |
||
16565 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
16566 |
# resulting binary. |
|
16567 |
hardcode_minus_L=$hardcode_minus_L_F77 |
|
16568 |
||
16569 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
16570 |
# the resulting binary. |
|
16571 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
|
16572 |
||
16573 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
16574 |
# and all subsequent libraries and executables linked against it. |
|
16575 |
hardcode_automatic=$hardcode_automatic_F77 |
|
16576 |
||
16577 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
16578 |
# restored at relink time. |
|
16579 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
16580 |
||
16581 |
# Whether libtool must link a program against all its dependency libraries. |
|
16582 |
link_all_deplibs=$link_all_deplibs_F77 |
|
16583 |
||
16584 |
# Compile-time system search path for libraries |
|
16585 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
16586 |
||
16587 |
# Run-time system search path for libraries |
|
16588 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
16589 |
||
16590 |
# Fix the shell variable \$srcfile for the compiler. |
|
16591 |
fix_srcfile_path="$fix_srcfile_path_F77" |
|
16592 |
||
16593 |
# Set to yes if exported symbols are required. |
|
16594 |
always_export_symbols=$always_export_symbols_F77 |
|
16595 |
||
16596 |
# The commands to list exported symbols. |
|
16597 |
export_symbols_cmds=$lt_export_symbols_cmds_F77 |
|
16598 |
||
16599 |
# The commands to extract the exported symbol list from a shared archive. |
|
16600 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
16601 |
||
16602 |
# Symbols that should not be listed in the preloaded symbols. |
|
16603 |
exclude_expsyms=$lt_exclude_expsyms_F77 |
|
16604 |
||
16605 |
# Symbols that must always be exported. |
|
16606 |
include_expsyms=$lt_include_expsyms_F77 |
|
16607 |
||
16608 |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
16609 |
||
16610 |
__EOF__ |
|
16611 |
||
16612 |
||
16613 |
else |
|
16614 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
16615 |
# `config.status --recheck' to rerun these tests and create the |
|
16616 |
# libtool script then. |
|
16617 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
16618 |
if test -f "$ltmain_in"; then |
|
16619 |
test -f Makefile && make "$ltmain" |
|
16620 |
fi |
|
16621 |
fi |
|
16622 |
||
16623 |
||
16624 |
ac_ext=c |
|
16625 |
ac_cpp='$CPP $CPPFLAGS' |
|
16626 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
16627 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
16628 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
16629 |
||
16630 |
CC="$lt_save_CC" |
|
16631 |
||
16632 |
else |
|
16633 |
tagname="" |
|
16634 |
fi |
|
16635 |
;; |
|
16636 |
||
16637 |
GCJ) |
|
16638 |
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
|
16639 |
||
16640 |
||
16641 |
||
16642 |
# Source file extension for Java test sources. |
|
16643 |
ac_ext=java |
|
16644 |
||
16645 |
# Object file extension for compiled Java test sources. |
|
16646 |
objext=o |
|
16647 |
objext_GCJ=$objext |
|
16648 |
||
16649 |
# Code to be used in simple compile tests |
|
16650 |
lt_simple_compile_test_code="class foo {}\n" |
|
16651 |
||
16652 |
# Code to be used in simple link tests |
|
16653 |
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
|
16654 |
||
16655 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
16656 |
||
16657 |
# If no C compiler was specified, use CC. |
|
16658 |
LTCC=${LTCC-"$CC"} |
|
16659 |
||
16660 |
# Allow CC to be a program name with arguments. |
|
16661 |
compiler=$CC |
|
16662 |
||
16663 |
||
16664 |
# Allow CC to be a program name with arguments. |
|
16665 |
lt_save_CC="$CC" |
|
16666 |
CC=${GCJ-"gcj"} |
|
16667 |
compiler=$CC |
|
16668 |
compiler_GCJ=$CC |
|
16669 |
||
16670 |
# GCJ did not exist at the time GCC didn't implicitly link libc in. |
|
16671 |
archive_cmds_need_lc_GCJ=no |
|
16672 |
||
16673 |
||
16674 |
lt_prog_compiler_no_builtin_flag_GCJ= |
|
16675 |
||
16676 |
if test "$GCC" = yes; then |
|
16677 |
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
|
16678 |
||
16679 |
||
16680 |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
16681 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
16682 |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
|
16683 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
16684 |
else |
|
16685 |
lt_cv_prog_compiler_rtti_exceptions=no |
|
16686 |
ac_outfile=conftest.$ac_objext |
|
16687 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
16688 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
16689 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
16690 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
16691 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
16692 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
16693 |
# The option is referenced via a variable to avoid confusing sed. |
|
16694 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
16695 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
16696 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
16697 |
-e 's:$: $lt_compiler_flag:'` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
16698 |
(eval echo "\"\$as_me:16698: $lt_compile\"" >&5) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
16699 |
(eval "$lt_compile" 2>conftest.err) |
16700 |
ac_status=$? |
|
16701 |
cat conftest.err >&5 |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
16702 |
echo "$as_me:16702: \$? = $ac_status" >&5 |
1
by Daniel Holbach
Import upstream version 1.1.15 |
16703 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
16704 |
# The compiler can only warn and ignore the option if not recognized |
|
16705 |
# So say no if there are warnings |
|
16706 |
if test ! -s conftest.err; then |
|
16707 |
lt_cv_prog_compiler_rtti_exceptions=yes |
|
16708 |
fi |
|
16709 |
fi |
|
16710 |
$rm conftest* |
|
16711 |
||
16712 |
fi |
|
16713 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
16714 |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
|
16715 |
||
16716 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
16717 |
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
|
16718 |
else |
|
16719 |
: |
|
16720 |
fi |
|
16721 |
||
16722 |
fi |
|
16723 |
||
16724 |
lt_prog_compiler_wl_GCJ= |
|
16725 |
lt_prog_compiler_pic_GCJ= |
|
16726 |
lt_prog_compiler_static_GCJ= |
|
16727 |
||
16728 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
16729 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
16730 |
||
16731 |
if test "$GCC" = yes; then |
|
16732 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16733 |
lt_prog_compiler_static_GCJ='-static' |
|
16734 |
||
16735 |
case $host_os in |
|
16736 |
aix*) |
|
16737 |
# All AIX code is PIC. |
|
16738 |
if test "$host_cpu" = ia64; then |
|
16739 |
# AIX 5 now supports IA64 processor |
|
16740 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16741 |
fi |
|
16742 |
;; |
|
16743 |
||
16744 |
amigaos*) |
|
16745 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
16746 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
16747 |
# like `-m68040'. |
|
16748 |
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
|
16749 |
;; |
|
16750 |
||
16751 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
16752 |
# PIC is the default for these OSes. |
|
16753 |
;; |
|
16754 |
||
16755 |
mingw* | pw32* | os2*) |
|
16756 |
# This hack is so that the source file can tell whether it is being |
|
16757 |
# built for inclusion in a dll (and should export symbols for example). |
|
16758 |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
|
16759 |
;; |
|
16760 |
||
16761 |
darwin* | rhapsody*) |
|
16762 |
# PIC is the default on this platform |
|
16763 |
# Common symbols not allowed in MH_DYLIB files |
|
16764 |
lt_prog_compiler_pic_GCJ='-fno-common' |
|
16765 |
;; |
|
16766 |
||
16767 |
msdosdjgpp*) |
|
16768 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
|
16769 |
# on systems that don't support them. |
|
16770 |
lt_prog_compiler_can_build_shared_GCJ=no |
|
16771 |
enable_shared=no |
|
16772 |
;; |
|
16773 |
||
16774 |
sysv4*MP*) |
|
16775 |
if test -d /usr/nec; then |
|
16776 |
lt_prog_compiler_pic_GCJ=-Kconform_pic |
|
16777 |
fi |
|
16778 |
;; |
|
16779 |
||
16780 |
hpux*) |
|
16781 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
16782 |
# not for PA HP-UX. |
|
16783 |
case "$host_cpu" in |
|
16784 |
hppa*64*|ia64*) |
|
16785 |
# +Z the default |
|
16786 |
;; |
|
16787 |
*) |
|
16788 |
lt_prog_compiler_pic_GCJ='-fPIC' |
|
16789 |
;; |
|
16790 |
esac |
|
16791 |
;; |
|
16792 |
||
16793 |
*) |
|
16794 |
lt_prog_compiler_pic_GCJ='-fPIC' |
|
16795 |
;; |
|
16796 |
esac |
|
16797 |
else |
|
16798 |
# PORTME Check for flag to pass linker flags through the system compiler. |
|
16799 |
case $host_os in |
|
16800 |
aix*) |
|
16801 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16802 |
if test "$host_cpu" = ia64; then |
|
16803 |
# AIX 5 now supports IA64 processor |
|
16804 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16805 |
else |
|
16806 |
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
|
16807 |
fi |
|
16808 |
;; |
|
16809 |
||
16810 |
mingw* | pw32* | os2*) |
|
16811 |
# This hack is so that the source file can tell whether it is being |
|
16812 |
# built for inclusion in a dll (and should export symbols for example). |
|
16813 |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
|
16814 |
;; |
|
16815 |
||
16816 |
hpux9* | hpux10* | hpux11*) |
|
16817 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16818 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
16819 |
# not for PA HP-UX. |
|
16820 |
case "$host_cpu" in |
|
16821 |
hppa*64*|ia64*) |
|
16822 |
# +Z the default |
|
16823 |
;; |
|
16824 |
*) |
|
16825 |
lt_prog_compiler_pic_GCJ='+Z' |
|
16826 |
;; |
|
16827 |
esac |
|
16828 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
16829 |
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
|
16830 |
;; |
|
16831 |
||
16832 |
irix5* | irix6* | nonstopux*) |
|
16833 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16834 |
# PIC (with -KPIC) is the default. |
|
16835 |
lt_prog_compiler_static_GCJ='-non_shared' |
|
16836 |
;; |
|
16837 |
||
16838 |
newsos6) |
|
16839 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
16840 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16841 |
;; |
|
16842 |
||
16843 |
linux*) |
|
16844 |
case $CC in |
|
16845 |
icc* | ecc*) |
|
16846 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16847 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
16848 |
lt_prog_compiler_static_GCJ='-static' |
|
16849 |
;; |
|
16850 |
ccc*) |
|
16851 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16852 |
# All Alpha code is PIC. |
|
16853 |
lt_prog_compiler_static_GCJ='-non_shared' |
|
16854 |
;; |
|
16855 |
esac |
|
16856 |
;; |
|
16857 |
||
16858 |
osf3* | osf4* | osf5*) |
|
16859 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16860 |
# All OSF/1 code is PIC. |
|
16861 |
lt_prog_compiler_static_GCJ='-non_shared' |
|
16862 |
;; |
|
16863 |
||
16864 |
sco3.2v5*) |
|
16865 |
lt_prog_compiler_pic_GCJ='-Kpic' |
|
16866 |
lt_prog_compiler_static_GCJ='-dn' |
|
16867 |
;; |
|
16868 |
||
16869 |
solaris*) |
|
16870 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16871 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
16872 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16873 |
;; |
|
16874 |
||
16875 |
sunos4*) |
|
16876 |
lt_prog_compiler_wl_GCJ='-Qoption ld ' |
|
16877 |
lt_prog_compiler_pic_GCJ='-PIC' |
|
16878 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16879 |
;; |
|
16880 |
||
16881 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
16882 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
16883 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
16884 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16885 |
;; |
|
16886 |
||
16887 |
sysv4*MP*) |
|
16888 |
if test -d /usr/nec ;then |
|
16889 |
lt_prog_compiler_pic_GCJ='-Kconform_pic' |
|
16890 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16891 |
fi |
|
16892 |
;; |
|
16893 |
||
16894 |
uts4*) |
|
16895 |
lt_prog_compiler_pic_GCJ='-pic' |
|
16896 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
16897 |
;; |
|
16898 |
||
16899 |
*) |
|
16900 |
lt_prog_compiler_can_build_shared_GCJ=no |
|
16901 |
;; |
|
16902 |
esac |
|
16903 |
fi |
|
16904 |
||
16905 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
|
16906 |
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
|
16907 |
||
16908 |
# |
|
16909 |
# Check to make sure the PIC flag actually works. |
|
16910 |
# |
|
16911 |
if test -n "$lt_prog_compiler_pic_GCJ"; then |
|
16912 |
||
16913 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
|
16914 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
|
16915 |
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
|
16916 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
16917 |
else |
|
16918 |
lt_prog_compiler_pic_works_GCJ=no |
|
16919 |
ac_outfile=conftest.$ac_objext |
|
16920 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
16921 |
lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
|
16922 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
16923 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
16924 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
16925 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
16926 |
# The option is referenced via a variable to avoid confusing sed. |
|
16927 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
16928 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
16929 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
16930 |
-e 's:$: $lt_compiler_flag:'` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
16931 |
(eval echo "\"\$as_me:16931: $lt_compile\"" >&5) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
16932 |
(eval "$lt_compile" 2>conftest.err) |
16933 |
ac_status=$? |
|
16934 |
cat conftest.err >&5 |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
16935 |
echo "$as_me:16935: \$? = $ac_status" >&5 |
1
by Daniel Holbach
Import upstream version 1.1.15 |
16936 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
16937 |
# The compiler can only warn and ignore the option if not recognized |
|
16938 |
# So say no if there are warnings |
|
16939 |
if test ! -s conftest.err; then |
|
16940 |
lt_prog_compiler_pic_works_GCJ=yes |
|
16941 |
fi |
|
16942 |
fi |
|
16943 |
$rm conftest* |
|
16944 |
||
16945 |
fi |
|
16946 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
|
16947 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
|
16948 |
||
16949 |
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
|
16950 |
case $lt_prog_compiler_pic_GCJ in |
|
16951 |
"" | " "*) ;; |
|
16952 |
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
|
16953 |
esac |
|
16954 |
else |
|
16955 |
lt_prog_compiler_pic_GCJ= |
|
16956 |
lt_prog_compiler_can_build_shared_GCJ=no |
|
16957 |
fi |
|
16958 |
||
16959 |
fi |
|
16960 |
case "$host_os" in |
|
16961 |
# For platforms which do not support PIC, -DPIC is meaningless: |
|
16962 |
*djgpp*) |
|
16963 |
lt_prog_compiler_pic_GCJ= |
|
16964 |
;; |
|
16965 |
*) |
|
16966 |
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
|
16967 |
;; |
|
16968 |
esac |
|
16969 |
||
16970 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
16971 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
16972 |
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
|
16973 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
16974 |
else |
|
16975 |
lt_cv_prog_compiler_c_o_GCJ=no |
|
16976 |
$rm -r conftest 2>/dev/null |
|
16977 |
mkdir conftest |
|
16978 |
cd conftest |
|
16979 |
mkdir out |
|
16980 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
16981 |
||
16982 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
16983 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
16984 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
16985 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
16986 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
16987 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
16988 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
16989 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
16990 |
-e 's:$: $lt_compiler_flag:'` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
16991 |
(eval echo "\"\$as_me:16991: $lt_compile\"" >&5) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
16992 |
(eval "$lt_compile" 2>out/conftest.err) |
16993 |
ac_status=$? |
|
16994 |
cat out/conftest.err >&5 |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
16995 |
echo "$as_me:16995: \$? = $ac_status" >&5 |
1
by Daniel Holbach
Import upstream version 1.1.15 |
16996 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16997 |
then |
|
16998 |
# The compiler can only warn and ignore the option if not recognized |
|
16999 |
# So say no if there are warnings |
|
17000 |
if test ! -s out/conftest.err; then |
|
17001 |
lt_cv_prog_compiler_c_o_GCJ=yes |
|
17002 |
fi |
|
17003 |
fi |
|
17004 |
chmod u+w . |
|
17005 |
$rm conftest* |
|
17006 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
17007 |
# template instantiation |
|
17008 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
17009 |
$rm out/* && rmdir out |
|
17010 |
cd .. |
|
17011 |
rmdir conftest |
|
17012 |
$rm conftest* |
|
17013 |
||
17014 |
fi |
|
17015 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
|
17016 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
|
17017 |
||
17018 |
||
17019 |
hard_links="nottested" |
|
17020 |
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
|
17021 |
# do not overwrite the value of need_locks provided by the user |
|
17022 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
17023 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
17024 |
hard_links=yes |
|
17025 |
$rm conftest* |
|
17026 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
17027 |
touch conftest.a |
|
17028 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
17029 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
17030 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
17031 |
echo "${ECHO_T}$hard_links" >&6 |
|
17032 |
if test "$hard_links" = no; then |
|
17033 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
17034 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
17035 |
need_locks=warn |
|
17036 |
fi |
|
17037 |
else |
|
17038 |
need_locks=no |
|
17039 |
fi |
|
17040 |
||
17041 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
17042 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
17043 |
||
17044 |
runpath_var= |
|
17045 |
allow_undefined_flag_GCJ= |
|
17046 |
enable_shared_with_static_runtimes_GCJ=no |
|
17047 |
archive_cmds_GCJ= |
|
17048 |
archive_expsym_cmds_GCJ= |
|
17049 |
old_archive_From_new_cmds_GCJ= |
|
17050 |
old_archive_from_expsyms_cmds_GCJ= |
|
17051 |
export_dynamic_flag_spec_GCJ= |
|
17052 |
whole_archive_flag_spec_GCJ= |
|
17053 |
thread_safe_flag_spec_GCJ= |
|
17054 |
hardcode_libdir_flag_spec_GCJ= |
|
17055 |
hardcode_libdir_flag_spec_ld_GCJ= |
|
17056 |
hardcode_libdir_separator_GCJ= |
|
17057 |
hardcode_direct_GCJ=no |
|
17058 |
hardcode_minus_L_GCJ=no |
|
17059 |
hardcode_shlibpath_var_GCJ=unsupported |
|
17060 |
link_all_deplibs_GCJ=unknown |
|
17061 |
hardcode_automatic_GCJ=no |
|
17062 |
module_cmds_GCJ= |
|
17063 |
module_expsym_cmds_GCJ= |
|
17064 |
always_export_symbols_GCJ=no |
|
17065 |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
17066 |
# include_expsyms should be a list of space-separated symbols to be *always* |
|
17067 |
# included in the symbol list |
|
17068 |
include_expsyms_GCJ= |
|
17069 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
|
17070 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
17071 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
17072 |
# as well as any symbol that contains `d'. |
|
17073 |
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
|
17074 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
17075 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
17076 |
# the symbol is explicitly referenced. Since portable code cannot |
|
17077 |
# rely on this symbol name, it's probably fine to never include it in |
|
17078 |
# preloaded symbol tables. |
|
17079 |
extract_expsyms_cmds= |
|
17080 |
||
17081 |
case $host_os in |
|
17082 |
cygwin* | mingw* | pw32*) |
|
17083 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
17084 |
# When not using gcc, we currently assume that we are using |
|
17085 |
# Microsoft Visual C++. |
|
17086 |
if test "$GCC" != yes; then |
|
17087 |
with_gnu_ld=no |
|
17088 |
fi |
|
17089 |
;; |
|
17090 |
openbsd*) |
|
17091 |
with_gnu_ld=no |
|
17092 |
;; |
|
17093 |
esac |
|
17094 |
||
17095 |
ld_shlibs_GCJ=yes |
|
17096 |
if test "$with_gnu_ld" = yes; then |
|
17097 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
17098 |
wlarc='${wl}' |
|
17099 |
||
17100 |
# See if GNU ld supports shared libraries. |
|
17101 |
case $host_os in |
|
17102 |
aix3* | aix4* | aix5*) |
|
17103 |
# On AIX/PPC, the GNU linker is very broken |
|
17104 |
if test "$host_cpu" != ia64; then |
|
17105 |
ld_shlibs_GCJ=no |
|
17106 |
cat <<EOF 1>&2 |
|
17107 |
||
17108 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
17109 |
*** to be unable to reliably create shared libraries on AIX. |
|
17110 |
*** Therefore, libtool is disabling shared libraries support. If you |
|
17111 |
*** really care for shared libraries, you may want to modify your PATH |
|
17112 |
*** so that a non-GNU linker is found, and then restart. |
|
17113 |
||
17114 |
EOF |
|
17115 |
fi |
|
17116 |
;; |
|
17117 |
||
17118 |
amigaos*) |
|
17119 |
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)' |
|
17120 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17121 |
hardcode_minus_L_GCJ=yes |
|
17122 |
||
17123 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
17124 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
|
17125 |
# to version 4, is to share data among multiple programs linked |
|
17126 |
# with the same dynamic library. Since this doesn't match the |
|
17127 |
# behavior of shared libraries on other platforms, we can't use |
|
17128 |
# them. |
|
17129 |
ld_shlibs_GCJ=no |
|
17130 |
;; |
|
17131 |
||
17132 |
beos*) |
|
17133 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
17134 |
allow_undefined_flag_GCJ=unsupported |
|
17135 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
17136 |
# support --undefined. This deserves some investigation. FIXME |
|
17137 |
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
17138 |
else |
|
17139 |
ld_shlibs_GCJ=no |
|
17140 |
fi |
|
17141 |
;; |
|
17142 |
||
17143 |
cygwin* | mingw* | pw32*) |
|
17144 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
|
17145 |
# as there is no search path for DLLs. |
|
17146 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17147 |
allow_undefined_flag_GCJ=unsupported |
|
17148 |
always_export_symbols_GCJ=no |
|
17149 |
enable_shared_with_static_runtimes_GCJ=yes |
|
17150 |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
17151 |
||
17152 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
17153 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
17154 |
# If the export-symbols file already is a .def file (1st line |
|
17155 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
17156 |
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
17157 |
cp $export_symbols $output_objdir/$soname.def; |
|
17158 |
else |
|
17159 |
echo EXPORTS > $output_objdir/$soname.def; |
|
17160 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
17161 |
fi~ |
|
17162 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
17163 |
else |
|
17164 |
ld_shlibs=no |
|
17165 |
fi |
|
17166 |
;; |
|
17167 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
17168 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
17169 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17170 |
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
17171 |
wlarc= |
|
17172 |
else |
|
17173 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
17174 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
17175 |
fi |
|
17176 |
;; |
|
17177 |
||
17178 |
solaris* | sysv5*) |
|
17179 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
17180 |
ld_shlibs_GCJ=no |
|
17181 |
cat <<EOF 1>&2 |
|
17182 |
||
17183 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
17184 |
*** create shared libraries on Solaris systems. Therefore, libtool |
|
17185 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
17186 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
|
17187 |
*** your PATH or compiler configuration so that the native linker is |
|
17188 |
*** used, and then restart. |
|
17189 |
||
17190 |
EOF |
|
17191 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
17192 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
17193 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
17194 |
else |
|
17195 |
ld_shlibs_GCJ=no |
|
17196 |
fi |
|
17197 |
;; |
|
17198 |
||
17199 |
sunos4*) |
|
17200 |
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
17201 |
wlarc= |
|
17202 |
hardcode_direct_GCJ=yes |
|
17203 |
hardcode_shlibpath_var_GCJ=no |
|
17204 |
;; |
|
17205 |
||
17206 |
linux*) |
|
17207 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
17208 |
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
17209 |
archive_cmds_GCJ="$tmp_archive_cmds" |
|
17210 |
supports_anon_versioning=no |
|
17211 |
case `$LD -v 2>/dev/null` in |
|
17212 |
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
17213 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
17214 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
17215 |
*\ 2.11.*) ;; # other 2.11 versions |
|
17216 |
*) supports_anon_versioning=yes ;; |
|
17217 |
esac |
|
17218 |
if test $supports_anon_versioning = yes; then |
|
17219 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
17220 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
17221 |
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
17222 |
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
17223 |
else |
|
17224 |
archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
|
17225 |
fi |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
17226 |
link_all_deplibs_GCJ=no |
1
by Daniel Holbach
Import upstream version 1.1.15 |
17227 |
else |
17228 |
ld_shlibs_GCJ=no |
|
17229 |
fi |
|
17230 |
;; |
|
17231 |
||
17232 |
*) |
|
17233 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
17234 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
17235 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
17236 |
else |
|
17237 |
ld_shlibs_GCJ=no |
|
17238 |
fi |
|
17239 |
;; |
|
17240 |
esac |
|
17241 |
||
17242 |
if test "$ld_shlibs_GCJ" = yes; then |
|
17243 |
runpath_var=LD_RUN_PATH |
|
17244 |
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
|
17245 |
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
|
17246 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
17247 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
17248 |
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
17249 |
else |
|
17250 |
whole_archive_flag_spec_GCJ= |
|
17251 |
fi |
|
17252 |
fi |
|
17253 |
else |
|
17254 |
# PORTME fill in a description of your system's linker (not GNU ld) |
|
17255 |
case $host_os in |
|
17256 |
aix3*) |
|
17257 |
allow_undefined_flag_GCJ=unsupported |
|
17258 |
always_export_symbols_GCJ=yes |
|
17259 |
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' |
|
17260 |
# Note: this linker hardcodes the directories in LIBPATH if there |
|
17261 |
# are no directories specified by -L. |
|
17262 |
hardcode_minus_L_GCJ=yes |
|
17263 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
17264 |
# Neither direct hardcoding nor static linking is supported with a |
|
17265 |
# broken collect2. |
|
17266 |
hardcode_direct_GCJ=unsupported |
|
17267 |
fi |
|
17268 |
;; |
|
17269 |
||
17270 |
aix4* | aix5*) |
|
17271 |
if test "$host_cpu" = ia64; then |
|
17272 |
# On IA64, the linker does run time linking by default, so we don't |
|
17273 |
# have to do anything special. |
|
17274 |
aix_use_runtimelinking=no |
|
17275 |
exp_sym_flag='-Bexport' |
|
17276 |
no_entry_flag="" |
|
17277 |
else |
|
17278 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
17279 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
17280 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
17281 |
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' |
|
17282 |
else |
|
17283 |
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' |
|
17284 |
fi |
|
17285 |
aix_use_runtimelinking=no |
|
17286 |
||
17287 |
# Test if we are trying to use run time linking or normal |
|
17288 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
17289 |
# need to do runtime linking. |
|
17290 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
17291 |
for ld_flag in $LDFLAGS; do |
|
17292 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
17293 |
aix_use_runtimelinking=yes |
|
17294 |
break |
|
17295 |
fi |
|
17296 |
done |
|
17297 |
esac |
|
17298 |
||
17299 |
exp_sym_flag='-bexport' |
|
17300 |
no_entry_flag='-bnoentry' |
|
17301 |
fi |
|
17302 |
||
17303 |
# When large executables or shared objects are built, AIX ld can |
|
17304 |
# have problems creating the table of contents. If linking a library |
|
17305 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
17306 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
17307 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
17308 |
||
17309 |
archive_cmds_GCJ='' |
|
17310 |
hardcode_direct_GCJ=yes |
|
17311 |
hardcode_libdir_separator_GCJ=':' |
|
17312 |
link_all_deplibs_GCJ=yes |
|
17313 |
||
17314 |
if test "$GCC" = yes; then |
|
17315 |
case $host_os in aix4.012|aix4.012.*) |
|
17316 |
# We only want to do this on AIX 4.2 and lower, the check |
|
17317 |
# below for broken collect2 doesn't work under 4.3+ |
|
17318 |
collect2name=`${CC} -print-prog-name=collect2` |
|
17319 |
if test -f "$collect2name" && \ |
|
17320 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
17321 |
then |
|
17322 |
# We have reworked collect2 |
|
17323 |
hardcode_direct_GCJ=yes |
|
17324 |
else |
|
17325 |
# We have old collect2 |
|
17326 |
hardcode_direct_GCJ=unsupported |
|
17327 |
# It fails to find uninstalled libraries when the uninstalled |
|
17328 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
17329 |
# to unsupported forces relinking |
|
17330 |
hardcode_minus_L_GCJ=yes |
|
17331 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17332 |
hardcode_libdir_separator_GCJ= |
|
17333 |
fi |
|
17334 |
esac |
|
17335 |
shared_flag='-shared' |
|
17336 |
else |
|
17337 |
# not using gcc |
|
17338 |
if test "$host_cpu" = ia64; then |
|
17339 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
17340 |
# chokes on -Wl,-G. The following line is correct: |
|
17341 |
shared_flag='-G' |
|
17342 |
else |
|
17343 |
if test "$aix_use_runtimelinking" = yes; then |
|
17344 |
shared_flag='${wl}-G' |
|
17345 |
else |
|
17346 |
shared_flag='${wl}-bM:SRE' |
|
17347 |
fi |
|
17348 |
fi |
|
17349 |
fi |
|
17350 |
||
17351 |
# It seems that -bexpall does not export symbols beginning with |
|
17352 |
# underscore (_), so it is better to generate a list of symbols to export. |
|
17353 |
always_export_symbols_GCJ=yes |
|
17354 |
if test "$aix_use_runtimelinking" = yes; then |
|
17355 |
# Warning - without using the other runtime loading flags (-brtl), |
|
17356 |
# -berok will link without error, but may produce a broken library. |
|
17357 |
allow_undefined_flag_GCJ='-berok' |
|
17358 |
# Determine the default libpath from the value encoded in an empty executable. |
|
17359 |
cat >conftest.$ac_ext <<_ACEOF |
|
17360 |
/* confdefs.h. */ |
|
17361 |
_ACEOF |
|
17362 |
cat confdefs.h >>conftest.$ac_ext |
|
17363 |
cat >>conftest.$ac_ext <<_ACEOF |
|
17364 |
/* end confdefs.h. */ |
|
17365 |
||
17366 |
int |
|
17367 |
main () |
|
17368 |
{ |
|
17369 |
||
17370 |
; |
|
17371 |
return 0; |
|
17372 |
} |
|
17373 |
_ACEOF |
|
17374 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
17375 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
17376 |
(eval $ac_link) 2>conftest.er1 |
|
17377 |
ac_status=$? |
|
17378 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
17379 |
rm -f conftest.er1 |
|
17380 |
cat conftest.err >&5 |
|
17381 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
17382 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
17383 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
17384 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17385 |
(eval $ac_try) 2>&5 |
|
17386 |
ac_status=$? |
|
17387 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
17388 |
(exit $ac_status); }; } && |
|
17389 |
{ ac_try='test -s conftest$ac_exeext' |
|
17390 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
17391 |
(eval $ac_try) 2>&5 |
|
17392 |
ac_status=$? |
|
17393 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
17394 |
(exit $ac_status); }; }; then |
|
17395 |
||
17396 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
17397 |
}'` |
|
17398 |
# Check for a 64-bit object if we didn't find anything. |
|
17399 |
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; } |
|
17400 |
}'`; fi |
|
17401 |
else |
|
17402 |
echo "$as_me: failed program was:" >&5 |
|
17403 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
17404 |
||
17405 |
fi |
|
17406 |
rm -f conftest.err conftest.$ac_objext \ |
|
17407 |
conftest$ac_exeext conftest.$ac_ext |
|
17408 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
17409 |
||
17410 |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
17411 |
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
17412 |
else |
|
17413 |
if test "$host_cpu" = ia64; then |
|
17414 |
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
|
17415 |
allow_undefined_flag_GCJ="-z nodefs" |
|
17416 |
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
17417 |
else |
|
17418 |
# Determine the default libpath from the value encoded in an empty executable. |
|
17419 |
cat >conftest.$ac_ext <<_ACEOF |
|
17420 |
/* confdefs.h. */ |
|
17421 |
_ACEOF |
|
17422 |
cat confdefs.h >>conftest.$ac_ext |
|
17423 |
cat >>conftest.$ac_ext <<_ACEOF |
|
17424 |
/* end confdefs.h. */ |
|
17425 |
||
17426 |
int |
|
17427 |
main () |
|
17428 |
{ |
|
17429 |
||
17430 |
; |
|
17431 |
return 0; |
|
17432 |
} |
|
17433 |
_ACEOF |
|
17434 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
17435 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
17436 |
(eval $ac_link) 2>conftest.er1 |
|
17437 |
ac_status=$? |
|
17438 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
17439 |
rm -f conftest.er1 |
|
17440 |
cat conftest.err >&5 |
|
17441 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
17442 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
17443 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
17444 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17445 |
(eval $ac_try) 2>&5 |
|
17446 |
ac_status=$? |
|
17447 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
17448 |
(exit $ac_status); }; } && |
|
17449 |
{ ac_try='test -s conftest$ac_exeext' |
|
17450 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
17451 |
(eval $ac_try) 2>&5 |
|
17452 |
ac_status=$? |
|
17453 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
17454 |
(exit $ac_status); }; }; then |
|
17455 |
||
17456 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
17457 |
}'` |
|
17458 |
# Check for a 64-bit object if we didn't find anything. |
|
17459 |
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; } |
|
17460 |
}'`; fi |
|
17461 |
else |
|
17462 |
echo "$as_me: failed program was:" >&5 |
|
17463 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
17464 |
||
17465 |
fi |
|
17466 |
rm -f conftest.err conftest.$ac_objext \ |
|
17467 |
conftest$ac_exeext conftest.$ac_ext |
|
17468 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
17469 |
||
17470 |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
17471 |
# Warning - without using the other run time loading flags, |
|
17472 |
# -berok will link without error, but may produce a broken library. |
|
17473 |
no_undefined_flag_GCJ=' ${wl}-bernotok' |
|
17474 |
allow_undefined_flag_GCJ=' ${wl}-berok' |
|
17475 |
# -bexpall does not export symbols beginning with underscore (_) |
|
17476 |
always_export_symbols_GCJ=yes |
|
17477 |
# Exported symbols can be pulled into shared objects from archives |
|
17478 |
whole_archive_flag_spec_GCJ=' ' |
|
17479 |
archive_cmds_need_lc_GCJ=yes |
|
17480 |
# This is similar to how AIX traditionally builds it's shared libraries. |
|
17481 |
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
17482 |
fi |
|
17483 |
fi |
|
17484 |
;; |
|
17485 |
||
17486 |
amigaos*) |
|
17487 |
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)' |
|
17488 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17489 |
hardcode_minus_L_GCJ=yes |
|
17490 |
# see comment about different semantics on the GNU ld section |
|
17491 |
ld_shlibs_GCJ=no |
|
17492 |
;; |
|
17493 |
||
17494 |
bsdi4*) |
|
17495 |
export_dynamic_flag_spec_GCJ=-rdynamic |
|
17496 |
;; |
|
17497 |
||
17498 |
cygwin* | mingw* | pw32*) |
|
17499 |
# When not using gcc, we currently assume that we are using |
|
17500 |
# Microsoft Visual C++. |
|
17501 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
17502 |
# no search path for DLLs. |
|
17503 |
hardcode_libdir_flag_spec_GCJ=' ' |
|
17504 |
allow_undefined_flag_GCJ=unsupported |
|
17505 |
# Tell ltmain to make .lib files, not .a files. |
|
17506 |
libext=lib |
|
17507 |
# Tell ltmain to make .dll files, not .so files. |
|
17508 |
shrext_cmds=".dll" |
|
17509 |
# FIXME: Setting linknames here is a bad hack. |
|
17510 |
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
17511 |
# The linker will automatically build a .lib file if we build a DLL. |
|
17512 |
old_archive_From_new_cmds_GCJ='true' |
|
17513 |
# FIXME: Should let the user specify the lib program. |
|
17514 |
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
17515 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
17516 |
enable_shared_with_static_runtimes_GCJ=yes |
|
17517 |
;; |
|
17518 |
||
17519 |
darwin* | rhapsody*) |
|
17520 |
if test "$GXX" = yes ; then |
|
17521 |
archive_cmds_need_lc_GCJ=no |
|
17522 |
case "$host_os" in |
|
17523 |
rhapsody* | darwin1.[012]) |
|
17524 |
allow_undefined_flag_GCJ='-undefined suppress' |
|
17525 |
;; |
|
17526 |
*) # Darwin 1.3 on |
|
17527 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
17528 |
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
|
17529 |
else |
|
17530 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
17531 |
10.[012]) |
|
17532 |
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
|
17533 |
;; |
|
17534 |
10.*) |
|
17535 |
allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
|
17536 |
;; |
|
17537 |
esac |
|
17538 |
fi |
|
17539 |
;; |
|
17540 |
esac |
|
17541 |
lt_int_apple_cc_single_mod=no |
|
17542 |
output_verbose_link_cmd='echo' |
|
17543 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
17544 |
lt_int_apple_cc_single_mod=yes |
|
17545 |
fi |
|
17546 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
17547 |
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
17548 |
else |
|
17549 |
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' |
|
17550 |
fi |
|
17551 |
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
17552 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
17553 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
17554 |
archive_expsym_cmds_GCJ='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}' |
|
17555 |
else |
|
17556 |
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
|
17557 |
fi |
|
17558 |
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}' |
|
17559 |
hardcode_direct_GCJ=no |
|
17560 |
hardcode_automatic_GCJ=yes |
|
17561 |
hardcode_shlibpath_var_GCJ=unsupported |
|
17562 |
whole_archive_flag_spec_GCJ='-all_load $convenience' |
|
17563 |
link_all_deplibs_GCJ=yes |
|
17564 |
else |
|
17565 |
ld_shlibs_GCJ=no |
|
17566 |
fi |
|
17567 |
;; |
|
17568 |
||
17569 |
dgux*) |
|
17570 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17571 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17572 |
hardcode_shlibpath_var_GCJ=no |
|
17573 |
;; |
|
17574 |
||
17575 |
freebsd1*) |
|
17576 |
ld_shlibs_GCJ=no |
|
17577 |
;; |
|
17578 |
||
17579 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
17580 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
17581 |
# does not break anything, and helps significantly (at the cost of a little |
|
17582 |
# extra space). |
|
17583 |
freebsd2.2*) |
|
17584 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
17585 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
17586 |
hardcode_direct_GCJ=yes |
|
17587 |
hardcode_shlibpath_var_GCJ=no |
|
17588 |
;; |
|
17589 |
||
17590 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
17591 |
freebsd2*) |
|
17592 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
17593 |
hardcode_direct_GCJ=yes |
|
17594 |
hardcode_minus_L_GCJ=yes |
|
17595 |
hardcode_shlibpath_var_GCJ=no |
|
17596 |
;; |
|
17597 |
||
17598 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
17599 |
freebsd* | kfreebsd*-gnu) |
|
17600 |
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
17601 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
17602 |
hardcode_direct_GCJ=yes |
|
17603 |
hardcode_shlibpath_var_GCJ=no |
|
17604 |
;; |
|
17605 |
||
17606 |
hpux9*) |
|
17607 |
if test "$GCC" = yes; then |
|
17608 |
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' |
|
17609 |
else |
|
17610 |
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' |
|
17611 |
fi |
|
17612 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
17613 |
hardcode_libdir_separator_GCJ=: |
|
17614 |
hardcode_direct_GCJ=yes |
|
17615 |
||
17616 |
# hardcode_minus_L: Not really in the search PATH, |
|
17617 |
# but as the default location of the library. |
|
17618 |
hardcode_minus_L_GCJ=yes |
|
17619 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
|
17620 |
;; |
|
17621 |
||
17622 |
hpux10* | hpux11*) |
|
17623 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
17624 |
case "$host_cpu" in |
|
17625 |
hppa*64*|ia64*) |
|
17626 |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17627 |
;; |
|
17628 |
*) |
|
17629 |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
17630 |
;; |
|
17631 |
esac |
|
17632 |
else |
|
17633 |
case "$host_cpu" in |
|
17634 |
hppa*64*|ia64*) |
|
17635 |
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17636 |
;; |
|
17637 |
*) |
|
17638 |
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
17639 |
;; |
|
17640 |
esac |
|
17641 |
fi |
|
17642 |
if test "$with_gnu_ld" = no; then |
|
17643 |
case "$host_cpu" in |
|
17644 |
hppa*64*) |
|
17645 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
17646 |
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
|
17647 |
hardcode_libdir_separator_GCJ=: |
|
17648 |
hardcode_direct_GCJ=no |
|
17649 |
hardcode_shlibpath_var_GCJ=no |
|
17650 |
;; |
|
17651 |
ia64*) |
|
17652 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17653 |
hardcode_direct_GCJ=no |
|
17654 |
hardcode_shlibpath_var_GCJ=no |
|
17655 |
||
17656 |
# hardcode_minus_L: Not really in the search PATH, |
|
17657 |
# but as the default location of the library. |
|
17658 |
hardcode_minus_L_GCJ=yes |
|
17659 |
;; |
|
17660 |
*) |
|
17661 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
17662 |
hardcode_libdir_separator_GCJ=: |
|
17663 |
hardcode_direct_GCJ=yes |
|
17664 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
|
17665 |
||
17666 |
# hardcode_minus_L: Not really in the search PATH, |
|
17667 |
# but as the default location of the library. |
|
17668 |
hardcode_minus_L_GCJ=yes |
|
17669 |
;; |
|
17670 |
esac |
|
17671 |
fi |
|
17672 |
;; |
|
17673 |
||
17674 |
irix5* | irix6* | nonstopux*) |
|
17675 |
if test "$GCC" = yes; then |
|
17676 |
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' |
|
17677 |
else |
|
17678 |
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' |
|
17679 |
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
|
17680 |
fi |
|
17681 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
17682 |
hardcode_libdir_separator_GCJ=: |
|
17683 |
link_all_deplibs_GCJ=yes |
|
17684 |
;; |
|
17685 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
17686 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
1
by Daniel Holbach
Import upstream version 1.1.15 |
17687 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17688 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
17689 |
else |
|
17690 |
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
17691 |
fi |
|
17692 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
17693 |
hardcode_direct_GCJ=yes |
|
17694 |
hardcode_shlibpath_var_GCJ=no |
|
17695 |
;; |
|
17696 |
||
17697 |
newsos6) |
|
17698 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17699 |
hardcode_direct_GCJ=yes |
|
17700 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
17701 |
hardcode_libdir_separator_GCJ=: |
|
17702 |
hardcode_shlibpath_var_GCJ=no |
|
17703 |
;; |
|
17704 |
||
17705 |
openbsd*) |
|
17706 |
hardcode_direct_GCJ=yes |
|
17707 |
hardcode_shlibpath_var_GCJ=no |
|
17708 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
17709 |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
17710 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
17711 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
|
17712 |
else |
|
17713 |
case $host_os in |
|
17714 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
17715 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
17716 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
17717 |
;; |
|
17718 |
*) |
|
17719 |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
17720 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
17721 |
;; |
|
17722 |
esac |
|
17723 |
fi |
|
17724 |
;; |
|
17725 |
||
17726 |
os2*) |
|
17727 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17728 |
hardcode_minus_L_GCJ=yes |
|
17729 |
allow_undefined_flag_GCJ=unsupported |
|
17730 |
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' |
|
17731 |
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
17732 |
;; |
|
17733 |
||
17734 |
osf3*) |
|
17735 |
if test "$GCC" = yes; then |
|
17736 |
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
17737 |
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' |
|
17738 |
else |
|
17739 |
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
17740 |
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' |
|
17741 |
fi |
|
17742 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
17743 |
hardcode_libdir_separator_GCJ=: |
|
17744 |
;; |
|
17745 |
||
17746 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
17747 |
if test "$GCC" = yes; then |
|
17748 |
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
17749 |
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' |
|
17750 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
17751 |
else |
|
17752 |
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
17753 |
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' |
|
17754 |
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~ |
|
17755 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
17756 |
||
17757 |
# Both c and cxx compiler support -rpath directly |
|
17758 |
hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
|
17759 |
fi |
|
17760 |
hardcode_libdir_separator_GCJ=: |
|
17761 |
;; |
|
17762 |
||
17763 |
sco3.2v5*) |
|
17764 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17765 |
hardcode_shlibpath_var_GCJ=no |
|
17766 |
export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
|
17767 |
runpath_var=LD_RUN_PATH |
|
17768 |
hardcode_runpath_var=yes |
|
17769 |
;; |
|
17770 |
||
17771 |
solaris*) |
|
17772 |
no_undefined_flag_GCJ=' -z text' |
|
17773 |
if test "$GCC" = yes; then |
|
17774 |
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17775 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
17776 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
17777 |
else |
|
17778 |
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17779 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
17780 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
17781 |
fi |
|
17782 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
17783 |
hardcode_shlibpath_var_GCJ=no |
|
17784 |
case $host_os in |
|
17785 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
17786 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
17787 |
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
|
17788 |
esac |
|
17789 |
link_all_deplibs_GCJ=yes |
|
17790 |
;; |
|
17791 |
||
17792 |
sunos4*) |
|
17793 |
if test "x$host_vendor" = xsequent; then |
|
17794 |
# Use $CC to link under sequent, because it throws in some extra .o |
|
17795 |
# files that make .init and .fini sections work. |
|
17796 |
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17797 |
else |
|
17798 |
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
17799 |
fi |
|
17800 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17801 |
hardcode_direct_GCJ=yes |
|
17802 |
hardcode_minus_L_GCJ=yes |
|
17803 |
hardcode_shlibpath_var_GCJ=no |
|
17804 |
;; |
|
17805 |
||
17806 |
sysv4) |
|
17807 |
case $host_vendor in |
|
17808 |
sni) |
|
17809 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17810 |
hardcode_direct_GCJ=yes # is this really true??? |
|
17811 |
;; |
|
17812 |
siemens) |
|
17813 |
## LD is ld it makes a PLAMLIB |
|
17814 |
## CC just makes a GrossModule. |
|
17815 |
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
17816 |
reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
|
17817 |
hardcode_direct_GCJ=no |
|
17818 |
;; |
|
17819 |
motorola) |
|
17820 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17821 |
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
|
17822 |
;; |
|
17823 |
esac |
|
17824 |
runpath_var='LD_RUN_PATH' |
|
17825 |
hardcode_shlibpath_var_GCJ=no |
|
17826 |
;; |
|
17827 |
||
17828 |
sysv4.3*) |
|
17829 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17830 |
hardcode_shlibpath_var_GCJ=no |
|
17831 |
export_dynamic_flag_spec_GCJ='-Bexport' |
|
17832 |
;; |
|
17833 |
||
17834 |
sysv4*MP*) |
|
17835 |
if test -d /usr/nec; then |
|
17836 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17837 |
hardcode_shlibpath_var_GCJ=no |
|
17838 |
runpath_var=LD_RUN_PATH |
|
17839 |
hardcode_runpath_var=yes |
|
17840 |
ld_shlibs_GCJ=yes |
|
17841 |
fi |
|
17842 |
;; |
|
17843 |
||
17844 |
sysv4.2uw2*) |
|
17845 |
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
17846 |
hardcode_direct_GCJ=yes |
|
17847 |
hardcode_minus_L_GCJ=no |
|
17848 |
hardcode_shlibpath_var_GCJ=no |
|
17849 |
hardcode_runpath_var=yes |
|
17850 |
runpath_var=LD_RUN_PATH |
|
17851 |
;; |
|
17852 |
||
17853 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
17854 |
no_undefined_flag_GCJ='${wl}-z ${wl}text' |
|
17855 |
if test "$GCC" = yes; then |
|
17856 |
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17857 |
else |
|
17858 |
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
17859 |
fi |
|
17860 |
runpath_var='LD_RUN_PATH' |
|
17861 |
hardcode_shlibpath_var_GCJ=no |
|
17862 |
;; |
|
17863 |
||
17864 |
sysv5*) |
|
17865 |
no_undefined_flag_GCJ=' -z text' |
|
17866 |
# $CC -shared without GNU ld will not create a library from C++ |
|
17867 |
# object files and a static libstdc++, better avoid it by now |
|
17868 |
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17869 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
17870 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
17871 |
hardcode_libdir_flag_spec_GCJ= |
|
17872 |
hardcode_shlibpath_var_GCJ=no |
|
17873 |
runpath_var='LD_RUN_PATH' |
|
17874 |
;; |
|
17875 |
||
17876 |
uts4*) |
|
17877 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17878 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17879 |
hardcode_shlibpath_var_GCJ=no |
|
17880 |
;; |
|
17881 |
||
17882 |
*) |
|
17883 |
ld_shlibs_GCJ=no |
|
17884 |
;; |
|
17885 |
esac |
|
17886 |
fi |
|
17887 |
||
17888 |
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
|
17889 |
echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
|
17890 |
test "$ld_shlibs_GCJ" = no && can_build_shared=no |
|
17891 |
||
17892 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
17893 |
if test "$GCC" = yes; then |
|
17894 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
17895 |
fi |
|
17896 |
||
17897 |
# |
|
17898 |
# Do we need to explicitly link libc? |
|
17899 |
# |
|
17900 |
case "x$archive_cmds_need_lc_GCJ" in |
|
17901 |
x|xyes) |
|
17902 |
# Assume -lc should be added |
|
17903 |
archive_cmds_need_lc_GCJ=yes |
|
17904 |
||
17905 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
17906 |
case $archive_cmds_GCJ in |
|
17907 |
*'~'*) |
|
17908 |
# FIXME: we may have to deal with multi-command sequences. |
|
17909 |
;; |
|
17910 |
'$CC '*) |
|
17911 |
# Test whether the compiler implicitly links with -lc since on some |
|
17912 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
17913 |
# to ld, don't add -lc before -lgcc. |
|
17914 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
17915 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
17916 |
$rm conftest* |
|
17917 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
17918 |
||
17919 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
17920 |
(eval $ac_compile) 2>&5 |
|
17921 |
ac_status=$? |
|
17922 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
17923 |
(exit $ac_status); } 2>conftest.err; then |
|
17924 |
soname=conftest |
|
17925 |
lib=conftest |
|
17926 |
libobjs=conftest.$ac_objext |
|
17927 |
deplibs= |
|
17928 |
wl=$lt_prog_compiler_wl_GCJ |
|
17929 |
compiler_flags=-v |
|
17930 |
linker_flags=-v |
|
17931 |
verstring= |
|
17932 |
output_objdir=. |
|
17933 |
libname=conftest |
|
17934 |
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
|
17935 |
allow_undefined_flag_GCJ= |
|
17936 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
17937 |
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
17938 |
ac_status=$? |
|
17939 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
17940 |
(exit $ac_status); } |
|
17941 |
then |
|
17942 |
archive_cmds_need_lc_GCJ=no |
|
17943 |
else |
|
17944 |
archive_cmds_need_lc_GCJ=yes |
|
17945 |
fi |
|
17946 |
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
|
17947 |
else |
|
17948 |
cat conftest.err 1>&5 |
|
17949 |
fi |
|
17950 |
$rm conftest* |
|
17951 |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
|
17952 |
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
|
17953 |
;; |
|
17954 |
esac |
|
17955 |
fi |
|
17956 |
;; |
|
17957 |
esac |
|
17958 |
||
17959 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
17960 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
17961 |
library_names_spec= |
|
17962 |
libname_spec='lib$name' |
|
17963 |
soname_spec= |
|
17964 |
shrext_cmds=".so" |
|
17965 |
postinstall_cmds= |
|
17966 |
postuninstall_cmds= |
|
17967 |
finish_cmds= |
|
17968 |
finish_eval= |
|
17969 |
shlibpath_var= |
|
17970 |
shlibpath_overrides_runpath=unknown |
|
17971 |
version_type=none |
|
17972 |
dynamic_linker="$host_os ld.so" |
|
17973 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
17974 |
if test "$GCC" = yes; then |
|
17975 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
17976 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
17977 |
# if the path contains ";" then we assume it to be the separator |
|
17978 |
# otherwise default to the standard path separator (i.e. ":") - it is |
|
17979 |
# assumed that no part of a normal pathname contains ";" but that should |
|
17980 |
# okay in the real world where ";" in dirpaths is itself problematic. |
|
17981 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
17982 |
else |
|
17983 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
17984 |
fi |
|
17985 |
else |
|
17986 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
17987 |
fi |
|
17988 |
need_lib_prefix=unknown |
|
17989 |
hardcode_into_libs=no |
|
17990 |
||
17991 |
# when you set need_version to no, make sure it does not cause -set_version |
|
17992 |
# flags to be left without arguments |
|
17993 |
need_version=unknown |
|
17994 |
||
17995 |
case $host_os in |
|
17996 |
aix3*) |
|
17997 |
version_type=linux |
|
17998 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
17999 |
shlibpath_var=LIBPATH |
|
18000 |
||
18001 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
18002 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18003 |
;; |
|
18004 |
||
18005 |
aix4* | aix5*) |
|
18006 |
version_type=linux |
|
18007 |
need_lib_prefix=no |
|
18008 |
need_version=no |
|
18009 |
hardcode_into_libs=yes |
|
18010 |
if test "$host_cpu" = ia64; then |
|
18011 |
# AIX 5 supports IA64 |
|
18012 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
18013 |
shlibpath_var=LD_LIBRARY_PATH |
|
18014 |
else |
|
18015 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
18016 |
# for dependence libraries. The import file would start with |
|
18017 |
# the line `#! .'. This would cause the generated library to |
|
18018 |
# depend on `.', always an invalid library. This was fixed in |
|
18019 |
# development snapshots of GCC prior to 3.0. |
|
18020 |
case $host_os in |
|
18021 |
aix4 | aix4.[01] | aix4.[01].*) |
|
18022 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
18023 |
echo ' yes ' |
|
18024 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
18025 |
: |
|
18026 |
else |
|
18027 |
can_build_shared=no |
|
18028 |
fi |
|
18029 |
;; |
|
18030 |
esac |
|
18031 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
18032 |
# soname into executable. Probably we can add versioning support to |
|
18033 |
# collect2, so additional links can be useful in future. |
|
18034 |
if test "$aix_use_runtimelinking" = yes; then |
|
18035 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
18036 |
# instead of lib<name>.a to let people know that these are not |
|
18037 |
# typical AIX shared libraries. |
|
18038 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18039 |
else |
|
18040 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
18041 |
# and later when we are not doing run time linking. |
|
18042 |
library_names_spec='${libname}${release}.a $libname.a' |
|
18043 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18044 |
fi |
|
18045 |
shlibpath_var=LIBPATH |
|
18046 |
fi |
|
18047 |
;; |
|
18048 |
||
18049 |
amigaos*) |
|
18050 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
18051 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
18052 |
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' |
|
18053 |
;; |
|
18054 |
||
18055 |
beos*) |
|
18056 |
library_names_spec='${libname}${shared_ext}' |
|
18057 |
dynamic_linker="$host_os ld.so" |
|
18058 |
shlibpath_var=LIBRARY_PATH |
|
18059 |
;; |
|
18060 |
||
18061 |
bsdi4*) |
|
18062 |
version_type=linux |
|
18063 |
need_version=no |
|
18064 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18065 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18066 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
18067 |
shlibpath_var=LD_LIBRARY_PATH |
|
18068 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
18069 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
18070 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
18071 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
18072 |
# libtool to hard-code these into programs |
|
18073 |
;; |
|
18074 |
||
18075 |
cygwin* | mingw* | pw32*) |
|
18076 |
version_type=windows |
|
18077 |
shrext_cmds=".dll" |
|
18078 |
need_version=no |
|
18079 |
need_lib_prefix=no |
|
18080 |
||
18081 |
case $GCC,$host_os in |
|
18082 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
|
18083 |
library_names_spec='$libname.dll.a' |
|
18084 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
18085 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
18086 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
18087 |
dldir=$destdir/`dirname \$dlpath`~ |
|
18088 |
test -d \$dldir || mkdir -p \$dldir~ |
|
18089 |
$install_prog $dir/$dlname \$dldir/$dlname' |
|
18090 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
18091 |
dlpath=$dir/\$dldll~ |
|
18092 |
$rm \$dlpath' |
|
18093 |
shlibpath_overrides_runpath=yes |
|
18094 |
||
18095 |
case $host_os in |
|
18096 |
cygwin*) |
|
18097 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
18098 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
18099 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
18100 |
;; |
|
18101 |
mingw*) |
|
18102 |
# MinGW DLLs use traditional 'lib' prefix |
|
18103 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
18104 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
18105 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
18106 |
# It is most probably a Windows format PATH printed by |
|
18107 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
18108 |
# path with ; separators, and with drive letters. We can handle the |
|
18109 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
18110 |
# especially as we might pass files found there to a mingw objdump, |
|
18111 |
# which wouldn't understand a cygwinified path. Ahh. |
|
18112 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
18113 |
else |
|
18114 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
18115 |
fi |
|
18116 |
;; |
|
18117 |
pw32*) |
|
18118 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
18119 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
|
18120 |
;; |
|
18121 |
esac |
|
18122 |
;; |
|
18123 |
||
18124 |
*) |
|
18125 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
18126 |
;; |
|
18127 |
esac |
|
18128 |
dynamic_linker='Win32 ld.exe' |
|
18129 |
# FIXME: first we should search . and the directory the executable is in |
|
18130 |
shlibpath_var=PATH |
|
18131 |
;; |
|
18132 |
||
18133 |
darwin* | rhapsody*) |
|
18134 |
dynamic_linker="$host_os dyld" |
|
18135 |
version_type=darwin |
|
18136 |
need_lib_prefix=no |
|
18137 |
need_version=no |
|
18138 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
18139 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
18140 |
shlibpath_overrides_runpath=yes |
|
18141 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
18142 |
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
|
18143 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
18144 |
if test "$GCC" = yes; then |
|
18145 |
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"` |
|
18146 |
else |
|
18147 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
18148 |
fi |
|
18149 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
18150 |
;; |
|
18151 |
||
18152 |
dgux*) |
|
18153 |
version_type=linux |
|
18154 |
need_lib_prefix=no |
|
18155 |
need_version=no |
|
18156 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
18157 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18158 |
shlibpath_var=LD_LIBRARY_PATH |
|
18159 |
;; |
|
18160 |
||
18161 |
freebsd1*) |
|
18162 |
dynamic_linker=no |
|
18163 |
;; |
|
18164 |
||
18165 |
kfreebsd*-gnu) |
|
18166 |
version_type=linux |
|
18167 |
need_lib_prefix=no |
|
18168 |
need_version=no |
|
18169 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
18170 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18171 |
shlibpath_var=LD_LIBRARY_PATH |
|
18172 |
shlibpath_overrides_runpath=no |
|
18173 |
hardcode_into_libs=yes |
|
18174 |
dynamic_linker='GNU ld.so' |
|
18175 |
;; |
|
18176 |
||
18177 |
freebsd*) |
|
18178 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
18179 |
version_type=freebsd-$objformat |
|
18180 |
case $version_type in |
|
18181 |
freebsd-elf*) |
|
18182 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
18183 |
need_version=no |
|
18184 |
need_lib_prefix=no |
|
18185 |
;; |
|
18186 |
freebsd-*) |
|
18187 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
18188 |
need_version=yes |
|
18189 |
;; |
|
18190 |
esac |
|
18191 |
shlibpath_var=LD_LIBRARY_PATH |
|
18192 |
case $host_os in |
|
18193 |
freebsd2*) |
|
18194 |
shlibpath_overrides_runpath=yes |
|
18195 |
;; |
|
18196 |
freebsd3.01* | freebsdelf3.01*) |
|
18197 |
shlibpath_overrides_runpath=yes |
|
18198 |
hardcode_into_libs=yes |
|
18199 |
;; |
|
18200 |
*) # from 3.2 on |
|
18201 |
shlibpath_overrides_runpath=no |
|
18202 |
hardcode_into_libs=yes |
|
18203 |
;; |
|
18204 |
esac |
|
18205 |
;; |
|
18206 |
||
18207 |
gnu*) |
|
18208 |
version_type=linux |
|
18209 |
need_lib_prefix=no |
|
18210 |
need_version=no |
|
18211 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
18212 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18213 |
shlibpath_var=LD_LIBRARY_PATH |
|
18214 |
hardcode_into_libs=yes |
|
18215 |
;; |
|
18216 |
||
18217 |
hpux9* | hpux10* | hpux11*) |
|
18218 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
18219 |
# link against other versions. |
|
18220 |
version_type=sunos |
|
18221 |
need_lib_prefix=no |
|
18222 |
need_version=no |
|
18223 |
case "$host_cpu" in |
|
18224 |
ia64*) |
|
18225 |
shrext_cmds='.so' |
|
18226 |
hardcode_into_libs=yes |
|
18227 |
dynamic_linker="$host_os dld.so" |
|
18228 |
shlibpath_var=LD_LIBRARY_PATH |
|
18229 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
18230 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18231 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18232 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
18233 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
18234 |
else |
|
18235 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
18236 |
fi |
|
18237 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
18238 |
;; |
|
18239 |
hppa*64*) |
|
18240 |
shrext_cmds='.sl' |
|
18241 |
hardcode_into_libs=yes |
|
18242 |
dynamic_linker="$host_os dld.sl" |
|
18243 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
18244 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
18245 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18246 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18247 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
18248 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
18249 |
;; |
|
18250 |
*) |
|
18251 |
shrext_cmds='.sl' |
|
18252 |
dynamic_linker="$host_os dld.sl" |
|
18253 |
shlibpath_var=SHLIB_PATH |
|
18254 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
18255 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18256 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18257 |
;; |
|
18258 |
esac |
|
18259 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
18260 |
postinstall_cmds='chmod 555 $lib' |
|
18261 |
;; |
|
18262 |
||
18263 |
irix5* | irix6* | nonstopux*) |
|
18264 |
case $host_os in |
|
18265 |
nonstopux*) version_type=nonstopux ;; |
|
18266 |
*) |
|
18267 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
18268 |
version_type=linux |
|
18269 |
else |
|
18270 |
version_type=irix |
|
18271 |
fi ;; |
|
18272 |
esac |
|
18273 |
need_lib_prefix=no |
|
18274 |
need_version=no |
|
18275 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18276 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
18277 |
case $host_os in |
|
18278 |
irix5* | nonstopux*) |
|
18279 |
libsuff= shlibsuff= |
|
18280 |
;; |
|
18281 |
*) |
|
18282 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
18283 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
18284 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
18285 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
18286 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
18287 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
18288 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
18289 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
18290 |
esac |
|
18291 |
;; |
|
18292 |
esac |
|
18293 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
18294 |
shlibpath_overrides_runpath=no |
|
18295 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
18296 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
18297 |
hardcode_into_libs=yes |
|
18298 |
;; |
|
18299 |
||
18300 |
# No shared lib support for Linux oldld, aout, or coff. |
|
18301 |
linux*oldld* | linux*aout* | linux*coff*) |
|
18302 |
dynamic_linker=no |
|
18303 |
;; |
|
18304 |
||
18305 |
# This must be Linux ELF. |
|
18306 |
linux*) |
|
18307 |
version_type=linux |
|
18308 |
need_lib_prefix=no |
|
18309 |
need_version=no |
|
18310 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18311 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18312 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
18313 |
shlibpath_var=LD_LIBRARY_PATH |
|
18314 |
shlibpath_overrides_runpath=no |
|
18315 |
# This implies no fast_install, which is unacceptable. |
|
18316 |
# Some rework will be needed to allow for fast_install |
|
18317 |
# before this can be enabled. |
|
18318 |
hardcode_into_libs=yes |
|
18319 |
||
18320 |
# Append ld.so.conf contents to the search path |
|
18321 |
if test -f /etc/ld.so.conf; then |
|
18322 |
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
18323 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
1
by Daniel Holbach
Import upstream version 1.1.15 |
18324 |
fi |
18325 |
||
18326 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
18327 |
# powerpc, because MkLinux only supported shared libraries with the |
|
18328 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
18329 |
# most powerpc-linux boxes support dynamic linking these days and |
|
18330 |
# people can always --disable-shared, the test was removed, and we |
|
18331 |
# assume the GNU/Linux dynamic linker is in use. |
|
18332 |
dynamic_linker='GNU/Linux ld.so' |
|
18333 |
;; |
|
18334 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
18335 |
netbsdelf*-gnu) |
18336 |
version_type=linux |
|
18337 |
need_lib_prefix=no |
|
18338 |
need_version=no |
|
18339 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
18340 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18341 |
shlibpath_var=LD_LIBRARY_PATH |
|
18342 |
shlibpath_overrides_runpath=no |
|
18343 |
hardcode_into_libs=yes |
|
18344 |
dynamic_linker='NetBSD ld.elf_so' |
|
18345 |
;; |
|
18346 |
||
1
by Daniel Holbach
Import upstream version 1.1.15 |
18347 |
knetbsd*-gnu) |
18348 |
version_type=linux |
|
18349 |
need_lib_prefix=no |
|
18350 |
need_version=no |
|
18351 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
18352 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18353 |
shlibpath_var=LD_LIBRARY_PATH |
|
18354 |
shlibpath_overrides_runpath=no |
|
18355 |
hardcode_into_libs=yes |
|
18356 |
dynamic_linker='GNU ld.so' |
|
18357 |
;; |
|
18358 |
||
18359 |
netbsd*) |
|
18360 |
version_type=sunos |
|
18361 |
need_lib_prefix=no |
|
18362 |
need_version=no |
|
18363 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
18364 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
18365 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
18366 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
18367 |
else |
|
18368 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
18369 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18370 |
dynamic_linker='NetBSD ld.elf_so' |
|
18371 |
fi |
|
18372 |
shlibpath_var=LD_LIBRARY_PATH |
|
18373 |
shlibpath_overrides_runpath=yes |
|
18374 |
hardcode_into_libs=yes |
|
18375 |
;; |
|
18376 |
||
18377 |
newsos6) |
|
18378 |
version_type=linux |
|
18379 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18380 |
shlibpath_var=LD_LIBRARY_PATH |
|
18381 |
shlibpath_overrides_runpath=yes |
|
18382 |
;; |
|
18383 |
||
18384 |
nto-qnx*) |
|
18385 |
version_type=linux |
|
18386 |
need_lib_prefix=no |
|
18387 |
need_version=no |
|
18388 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18389 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18390 |
shlibpath_var=LD_LIBRARY_PATH |
|
18391 |
shlibpath_overrides_runpath=yes |
|
18392 |
;; |
|
18393 |
||
18394 |
openbsd*) |
|
18395 |
version_type=sunos |
|
18396 |
need_lib_prefix=no |
|
18397 |
need_version=yes |
|
18398 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
18399 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
18400 |
shlibpath_var=LD_LIBRARY_PATH |
|
18401 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
18402 |
case $host_os in |
|
18403 |
openbsd2.[89] | openbsd2.[89].*) |
|
18404 |
shlibpath_overrides_runpath=no |
|
18405 |
;; |
|
18406 |
*) |
|
18407 |
shlibpath_overrides_runpath=yes |
|
18408 |
;; |
|
18409 |
esac |
|
18410 |
else |
|
18411 |
shlibpath_overrides_runpath=yes |
|
18412 |
fi |
|
18413 |
;; |
|
18414 |
||
18415 |
os2*) |
|
18416 |
libname_spec='$name' |
|
18417 |
shrext_cmds=".dll" |
|
18418 |
need_lib_prefix=no |
|
18419 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
18420 |
dynamic_linker='OS/2 ld.exe' |
|
18421 |
shlibpath_var=LIBPATH |
|
18422 |
;; |
|
18423 |
||
18424 |
osf3* | osf4* | osf5*) |
|
18425 |
version_type=osf |
|
18426 |
need_lib_prefix=no |
|
18427 |
need_version=no |
|
18428 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18429 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18430 |
shlibpath_var=LD_LIBRARY_PATH |
|
18431 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
18432 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
18433 |
;; |
|
18434 |
||
18435 |
sco3.2v5*) |
|
18436 |
version_type=osf |
|
18437 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18438 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18439 |
shlibpath_var=LD_LIBRARY_PATH |
|
18440 |
;; |
|
18441 |
||
18442 |
solaris*) |
|
18443 |
version_type=linux |
|
18444 |
need_lib_prefix=no |
|
18445 |
need_version=no |
|
18446 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18447 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18448 |
shlibpath_var=LD_LIBRARY_PATH |
|
18449 |
shlibpath_overrides_runpath=yes |
|
18450 |
hardcode_into_libs=yes |
|
18451 |
# ldd complains unless libraries are executable |
|
18452 |
postinstall_cmds='chmod +x $lib' |
|
18453 |
;; |
|
18454 |
||
18455 |
sunos4*) |
|
18456 |
version_type=sunos |
|
18457 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
18458 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
18459 |
shlibpath_var=LD_LIBRARY_PATH |
|
18460 |
shlibpath_overrides_runpath=yes |
|
18461 |
if test "$with_gnu_ld" = yes; then |
|
18462 |
need_lib_prefix=no |
|
18463 |
fi |
|
18464 |
need_version=yes |
|
18465 |
;; |
|
18466 |
||
18467 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
18468 |
version_type=linux |
|
18469 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18470 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18471 |
shlibpath_var=LD_LIBRARY_PATH |
|
18472 |
case $host_vendor in |
|
18473 |
sni) |
|
18474 |
shlibpath_overrides_runpath=no |
|
18475 |
need_lib_prefix=no |
|
18476 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
18477 |
runpath_var=LD_RUN_PATH |
|
18478 |
;; |
|
18479 |
siemens) |
|
18480 |
need_lib_prefix=no |
|
18481 |
;; |
|
18482 |
motorola) |
|
18483 |
need_lib_prefix=no |
|
18484 |
need_version=no |
|
18485 |
shlibpath_overrides_runpath=no |
|
18486 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
18487 |
;; |
|
18488 |
esac |
|
18489 |
;; |
|
18490 |
||
18491 |
sysv4*MP*) |
|
18492 |
if test -d /usr/nec ;then |
|
18493 |
version_type=linux |
|
18494 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
18495 |
soname_spec='$libname${shared_ext}.$major' |
|
18496 |
shlibpath_var=LD_LIBRARY_PATH |
|
18497 |
fi |
|
18498 |
;; |
|
18499 |
||
18500 |
uts4*) |
|
18501 |
version_type=linux |
|
18502 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18503 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
18504 |
shlibpath_var=LD_LIBRARY_PATH |
|
18505 |
;; |
|
18506 |
||
18507 |
*) |
|
18508 |
dynamic_linker=no |
|
18509 |
;; |
|
18510 |
esac |
|
18511 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
18512 |
echo "${ECHO_T}$dynamic_linker" >&6 |
|
18513 |
test "$dynamic_linker" = no && can_build_shared=no |
|
18514 |
||
18515 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
18516 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
18517 |
hardcode_action_GCJ= |
|
18518 |
if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
|
18519 |
test -n "$runpath_var GCJ" || \ |
|
18520 |
test "X$hardcode_automatic_GCJ"="Xyes" ; then |
|
18521 |
||
18522 |
# We can hardcode non-existant directories. |
|
18523 |
if test "$hardcode_direct_GCJ" != no && |
|
18524 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
18525 |
# have to relink, otherwise we might link with an installed library |
|
18526 |
# when we should be linking with a yet-to-be-installed one |
|
18527 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
|
18528 |
test "$hardcode_minus_L_GCJ" != no; then |
|
18529 |
# Linking always hardcodes the temporary library directory. |
|
18530 |
hardcode_action_GCJ=relink |
|
18531 |
else |
|
18532 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
18533 |
hardcode_action_GCJ=immediate |
|
18534 |
fi |
|
18535 |
else |
|
18536 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
18537 |
# directories. |
|
18538 |
hardcode_action_GCJ=unsupported |
|
18539 |
fi |
|
18540 |
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
|
18541 |
echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
|
18542 |
||
18543 |
if test "$hardcode_action_GCJ" = relink; then |
|
18544 |
# Fast installation is not supported |
|
18545 |
enable_fast_install=no |
|
18546 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
18547 |
test "$enable_shared" = no; then |
|
18548 |
# Fast installation is not necessary |
|
18549 |
enable_fast_install=needless |
|
18550 |
fi |
|
18551 |
||
18552 |
striplib= |
|
18553 |
old_striplib= |
|
18554 |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
18555 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
18556 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
18557 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
18558 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
18559 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
18560 |
echo "${ECHO_T}yes" >&6 |
|
18561 |
else |
|
18562 |
# FIXME - insert some real tests, host_os isn't really good enough |
|
18563 |
case $host_os in |
|
18564 |
darwin*) |
|
18565 |
if test -n "$STRIP" ; then |
|
18566 |
striplib="$STRIP -x" |
|
18567 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
18568 |
echo "${ECHO_T}yes" >&6 |
|
18569 |
else |
|
18570 |
echo "$as_me:$LINENO: result: no" >&5 |
|
18571 |
echo "${ECHO_T}no" >&6 |
|
18572 |
fi |
|
18573 |
;; |
|
18574 |
*) |
|
18575 |
echo "$as_me:$LINENO: result: no" >&5 |
|
18576 |
echo "${ECHO_T}no" >&6 |
|
18577 |
;; |
|
18578 |
esac |
|
18579 |
fi |
|
18580 |
||
18581 |
if test "x$enable_dlopen" != xyes; then |
|
18582 |
enable_dlopen=unknown |
|
18583 |
enable_dlopen_self=unknown |
|
18584 |
enable_dlopen_self_static=unknown |
|
18585 |
else |
|
18586 |
lt_cv_dlopen=no |
|
18587 |
lt_cv_dlopen_libs= |
|
18588 |
||
18589 |
case $host_os in |
|
18590 |
beos*) |
|
18591 |
lt_cv_dlopen="load_add_on" |
|
18592 |
lt_cv_dlopen_libs= |
|
18593 |
lt_cv_dlopen_self=yes |
|
18594 |
;; |
|
18595 |
||
18596 |
mingw* | pw32*) |
|
18597 |
lt_cv_dlopen="LoadLibrary" |
|
18598 |
lt_cv_dlopen_libs= |
|
18599 |
;; |
|
18600 |
||
18601 |
cygwin*) |
|
18602 |
lt_cv_dlopen="dlopen" |
|
18603 |
lt_cv_dlopen_libs= |
|
18604 |
;; |
|
18605 |
||
18606 |
darwin*) |
|
18607 |
# if libdl is installed we need to link against it |
|
18608 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
18609 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
18610 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
18611 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
18612 |
else |
|
18613 |
ac_check_lib_save_LIBS=$LIBS |
|
18614 |
LIBS="-ldl $LIBS" |
|
18615 |
cat >conftest.$ac_ext <<_ACEOF |
|
18616 |
/* confdefs.h. */ |
|
18617 |
_ACEOF |
|
18618 |
cat confdefs.h >>conftest.$ac_ext |
|
18619 |
cat >>conftest.$ac_ext <<_ACEOF |
|
18620 |
/* end confdefs.h. */ |
|
18621 |
||
18622 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
18623 |
#ifdef __cplusplus |
|
18624 |
extern "C" |
|
18625 |
#endif |
|
18626 |
/* We use char because int might match the return type of a gcc2 |
|
18627 |
builtin and then its argument prototype would still apply. */ |
|
18628 |
char dlopen (); |
|
18629 |
int |
|
18630 |
main () |
|
18631 |
{ |
|
18632 |
dlopen (); |
|
18633 |
; |
|
18634 |
return 0; |
|
18635 |
} |
|
18636 |
_ACEOF |
|
18637 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
18638 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
18639 |
(eval $ac_link) 2>conftest.er1 |
|
18640 |
ac_status=$? |
|
18641 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
18642 |
rm -f conftest.er1 |
|
18643 |
cat conftest.err >&5 |
|
18644 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18645 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
18646 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
18647 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18648 |
(eval $ac_try) 2>&5 |
|
18649 |
ac_status=$? |
|
18650 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18651 |
(exit $ac_status); }; } && |
|
18652 |
{ ac_try='test -s conftest$ac_exeext' |
|
18653 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
18654 |
(eval $ac_try) 2>&5 |
|
18655 |
ac_status=$? |
|
18656 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18657 |
(exit $ac_status); }; }; then |
|
18658 |
ac_cv_lib_dl_dlopen=yes |
|
18659 |
else |
|
18660 |
echo "$as_me: failed program was:" >&5 |
|
18661 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
18662 |
||
18663 |
ac_cv_lib_dl_dlopen=no |
|
18664 |
fi |
|
18665 |
rm -f conftest.err conftest.$ac_objext \ |
|
18666 |
conftest$ac_exeext conftest.$ac_ext |
|
18667 |
LIBS=$ac_check_lib_save_LIBS |
|
18668 |
fi |
|
18669 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
18670 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
18671 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
18672 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
18673 |
else |
|
18674 |
||
18675 |
lt_cv_dlopen="dyld" |
|
18676 |
lt_cv_dlopen_libs= |
|
18677 |
lt_cv_dlopen_self=yes |
|
18678 |
||
18679 |
fi |
|
18680 |
||
18681 |
;; |
|
18682 |
||
18683 |
*) |
|
18684 |
echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
18685 |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
|
18686 |
if test "${ac_cv_func_shl_load+set}" = set; then |
|
18687 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
18688 |
else |
|
18689 |
cat >conftest.$ac_ext <<_ACEOF |
|
18690 |
/* confdefs.h. */ |
|
18691 |
_ACEOF |
|
18692 |
cat confdefs.h >>conftest.$ac_ext |
|
18693 |
cat >>conftest.$ac_ext <<_ACEOF |
|
18694 |
/* end confdefs.h. */ |
|
18695 |
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
18696 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
18697 |
#define shl_load innocuous_shl_load |
|
18698 |
||
18699 |
/* System header to define __stub macros and hopefully few prototypes, |
|
18700 |
which can conflict with char shl_load (); below. |
|
18701 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
18702 |
<limits.h> exists even on freestanding compilers. */ |
|
18703 |
||
18704 |
#ifdef __STDC__ |
|
18705 |
# include <limits.h> |
|
18706 |
#else |
|
18707 |
# include <assert.h> |
|
18708 |
#endif |
|
18709 |
||
18710 |
#undef shl_load |
|
18711 |
||
18712 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
18713 |
#ifdef __cplusplus |
|
18714 |
extern "C" |
|
18715 |
{ |
|
18716 |
#endif |
|
18717 |
/* We use char because int might match the return type of a gcc2 |
|
18718 |
builtin and then its argument prototype would still apply. */ |
|
18719 |
char shl_load (); |
|
18720 |
/* The GNU C library defines this for functions which it implements |
|
18721 |
to always fail with ENOSYS. Some functions are actually named |
|
18722 |
something starting with __ and the normal name is an alias. */ |
|
18723 |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
18724 |
choke me |
|
18725 |
#else |
|
18726 |
char (*f) () = shl_load; |
|
18727 |
#endif |
|
18728 |
#ifdef __cplusplus |
|
18729 |
} |
|
18730 |
#endif |
|
18731 |
||
18732 |
int |
|
18733 |
main () |
|
18734 |
{ |
|
18735 |
return f != shl_load; |
|
18736 |
; |
|
18737 |
return 0; |
|
18738 |
} |
|
18739 |
_ACEOF |
|
18740 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
18741 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
18742 |
(eval $ac_link) 2>conftest.er1 |
|
18743 |
ac_status=$? |
|
18744 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
18745 |
rm -f conftest.er1 |
|
18746 |
cat conftest.err >&5 |
|
18747 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18748 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
18749 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
18750 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18751 |
(eval $ac_try) 2>&5 |
|
18752 |
ac_status=$? |
|
18753 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18754 |
(exit $ac_status); }; } && |
|
18755 |
{ ac_try='test -s conftest$ac_exeext' |
|
18756 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
18757 |
(eval $ac_try) 2>&5 |
|
18758 |
ac_status=$? |
|
18759 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18760 |
(exit $ac_status); }; }; then |
|
18761 |
ac_cv_func_shl_load=yes |
|
18762 |
else |
|
18763 |
echo "$as_me: failed program was:" >&5 |
|
18764 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
18765 |
||
18766 |
ac_cv_func_shl_load=no |
|
18767 |
fi |
|
18768 |
rm -f conftest.err conftest.$ac_objext \ |
|
18769 |
conftest$ac_exeext conftest.$ac_ext |
|
18770 |
fi |
|
18771 |
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
18772 |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
18773 |
if test $ac_cv_func_shl_load = yes; then |
|
18774 |
lt_cv_dlopen="shl_load" |
|
18775 |
else |
|
18776 |
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
18777 |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
18778 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
18779 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
18780 |
else |
|
18781 |
ac_check_lib_save_LIBS=$LIBS |
|
18782 |
LIBS="-ldld $LIBS" |
|
18783 |
cat >conftest.$ac_ext <<_ACEOF |
|
18784 |
/* confdefs.h. */ |
|
18785 |
_ACEOF |
|
18786 |
cat confdefs.h >>conftest.$ac_ext |
|
18787 |
cat >>conftest.$ac_ext <<_ACEOF |
|
18788 |
/* end confdefs.h. */ |
|
18789 |
||
18790 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
18791 |
#ifdef __cplusplus |
|
18792 |
extern "C" |
|
18793 |
#endif |
|
18794 |
/* We use char because int might match the return type of a gcc2 |
|
18795 |
builtin and then its argument prototype would still apply. */ |
|
18796 |
char shl_load (); |
|
18797 |
int |
|
18798 |
main () |
|
18799 |
{ |
|
18800 |
shl_load (); |
|
18801 |
; |
|
18802 |
return 0; |
|
18803 |
} |
|
18804 |
_ACEOF |
|
18805 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
18806 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
18807 |
(eval $ac_link) 2>conftest.er1 |
|
18808 |
ac_status=$? |
|
18809 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
18810 |
rm -f conftest.er1 |
|
18811 |
cat conftest.err >&5 |
|
18812 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18813 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
18814 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
18815 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18816 |
(eval $ac_try) 2>&5 |
|
18817 |
ac_status=$? |
|
18818 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18819 |
(exit $ac_status); }; } && |
|
18820 |
{ ac_try='test -s conftest$ac_exeext' |
|
18821 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
18822 |
(eval $ac_try) 2>&5 |
|
18823 |
ac_status=$? |
|
18824 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18825 |
(exit $ac_status); }; }; then |
|
18826 |
ac_cv_lib_dld_shl_load=yes |
|
18827 |
else |
|
18828 |
echo "$as_me: failed program was:" >&5 |
|
18829 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
18830 |
||
18831 |
ac_cv_lib_dld_shl_load=no |
|
18832 |
fi |
|
18833 |
rm -f conftest.err conftest.$ac_objext \ |
|
18834 |
conftest$ac_exeext conftest.$ac_ext |
|
18835 |
LIBS=$ac_check_lib_save_LIBS |
|
18836 |
fi |
|
18837 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
18838 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
18839 |
if test $ac_cv_lib_dld_shl_load = yes; then |
|
18840 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
18841 |
else |
|
18842 |
echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
18843 |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
18844 |
if test "${ac_cv_func_dlopen+set}" = set; then |
|
18845 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
18846 |
else |
|
18847 |
cat >conftest.$ac_ext <<_ACEOF |
|
18848 |
/* confdefs.h. */ |
|
18849 |
_ACEOF |
|
18850 |
cat confdefs.h >>conftest.$ac_ext |
|
18851 |
cat >>conftest.$ac_ext <<_ACEOF |
|
18852 |
/* end confdefs.h. */ |
|
18853 |
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
18854 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
18855 |
#define dlopen innocuous_dlopen |
|
18856 |
||
18857 |
/* System header to define __stub macros and hopefully few prototypes, |
|
18858 |
which can conflict with char dlopen (); below. |
|
18859 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
18860 |
<limits.h> exists even on freestanding compilers. */ |
|
18861 |
||
18862 |
#ifdef __STDC__ |
|
18863 |
# include <limits.h> |
|
18864 |
#else |
|
18865 |
# include <assert.h> |
|
18866 |
#endif |
|
18867 |
||
18868 |
#undef dlopen |
|
18869 |
||
18870 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
18871 |
#ifdef __cplusplus |
|
18872 |
extern "C" |
|
18873 |
{ |
|
18874 |
#endif |
|
18875 |
/* We use char because int might match the return type of a gcc2 |
|
18876 |
builtin and then its argument prototype would still apply. */ |
|
18877 |
char dlopen (); |
|
18878 |
/* The GNU C library defines this for functions which it implements |
|
18879 |
to always fail with ENOSYS. Some functions are actually named |
|
18880 |
something starting with __ and the normal name is an alias. */ |
|
18881 |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
|
18882 |
choke me |
|
18883 |
#else |
|
18884 |
char (*f) () = dlopen; |
|
18885 |
#endif |
|
18886 |
#ifdef __cplusplus |
|
18887 |
} |
|
18888 |
#endif |
|
18889 |
||
18890 |
int |
|
18891 |
main () |
|
18892 |
{ |
|
18893 |
return f != dlopen; |
|
18894 |
; |
|
18895 |
return 0; |
|
18896 |
} |
|
18897 |
_ACEOF |
|
18898 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
18899 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
18900 |
(eval $ac_link) 2>conftest.er1 |
|
18901 |
ac_status=$? |
|
18902 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
18903 |
rm -f conftest.er1 |
|
18904 |
cat conftest.err >&5 |
|
18905 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18906 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
18907 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
18908 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18909 |
(eval $ac_try) 2>&5 |
|
18910 |
ac_status=$? |
|
18911 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18912 |
(exit $ac_status); }; } && |
|
18913 |
{ ac_try='test -s conftest$ac_exeext' |
|
18914 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
18915 |
(eval $ac_try) 2>&5 |
|
18916 |
ac_status=$? |
|
18917 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18918 |
(exit $ac_status); }; }; then |
|
18919 |
ac_cv_func_dlopen=yes |
|
18920 |
else |
|
18921 |
echo "$as_me: failed program was:" >&5 |
|
18922 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
18923 |
||
18924 |
ac_cv_func_dlopen=no |
|
18925 |
fi |
|
18926 |
rm -f conftest.err conftest.$ac_objext \ |
|
18927 |
conftest$ac_exeext conftest.$ac_ext |
|
18928 |
fi |
|
18929 |
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
18930 |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
18931 |
if test $ac_cv_func_dlopen = yes; then |
|
18932 |
lt_cv_dlopen="dlopen" |
|
18933 |
else |
|
18934 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
18935 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
18936 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
18937 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
18938 |
else |
|
18939 |
ac_check_lib_save_LIBS=$LIBS |
|
18940 |
LIBS="-ldl $LIBS" |
|
18941 |
cat >conftest.$ac_ext <<_ACEOF |
|
18942 |
/* confdefs.h. */ |
|
18943 |
_ACEOF |
|
18944 |
cat confdefs.h >>conftest.$ac_ext |
|
18945 |
cat >>conftest.$ac_ext <<_ACEOF |
|
18946 |
/* end confdefs.h. */ |
|
18947 |
||
18948 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
18949 |
#ifdef __cplusplus |
|
18950 |
extern "C" |
|
18951 |
#endif |
|
18952 |
/* We use char because int might match the return type of a gcc2 |
|
18953 |
builtin and then its argument prototype would still apply. */ |
|
18954 |
char dlopen (); |
|
18955 |
int |
|
18956 |
main () |
|
18957 |
{ |
|
18958 |
dlopen (); |
|
18959 |
; |
|
18960 |
return 0; |
|
18961 |
} |
|
18962 |
_ACEOF |
|
18963 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
18964 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
18965 |
(eval $ac_link) 2>conftest.er1 |
|
18966 |
ac_status=$? |
|
18967 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
18968 |
rm -f conftest.er1 |
|
18969 |
cat conftest.err >&5 |
|
18970 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18971 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
18972 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
18973 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18974 |
(eval $ac_try) 2>&5 |
|
18975 |
ac_status=$? |
|
18976 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18977 |
(exit $ac_status); }; } && |
|
18978 |
{ ac_try='test -s conftest$ac_exeext' |
|
18979 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
18980 |
(eval $ac_try) 2>&5 |
|
18981 |
ac_status=$? |
|
18982 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18983 |
(exit $ac_status); }; }; then |
|
18984 |
ac_cv_lib_dl_dlopen=yes |
|
18985 |
else |
|
18986 |
echo "$as_me: failed program was:" >&5 |
|
18987 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
18988 |
||
18989 |
ac_cv_lib_dl_dlopen=no |
|
18990 |
fi |
|
18991 |
rm -f conftest.err conftest.$ac_objext \ |
|
18992 |
conftest$ac_exeext conftest.$ac_ext |
|
18993 |
LIBS=$ac_check_lib_save_LIBS |
|
18994 |
fi |
|
18995 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
18996 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
18997 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
18998 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
18999 |
else |
|
19000 |
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
19001 |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
19002 |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
19003 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
19004 |
else |
|
19005 |
ac_check_lib_save_LIBS=$LIBS |
|
19006 |
LIBS="-lsvld $LIBS" |
|
19007 |
cat >conftest.$ac_ext <<_ACEOF |
|
19008 |
/* confdefs.h. */ |
|
19009 |
_ACEOF |
|
19010 |
cat confdefs.h >>conftest.$ac_ext |
|
19011 |
cat >>conftest.$ac_ext <<_ACEOF |
|
19012 |
/* end confdefs.h. */ |
|
19013 |
||
19014 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
19015 |
#ifdef __cplusplus |
|
19016 |
extern "C" |
|
19017 |
#endif |
|
19018 |
/* We use char because int might match the return type of a gcc2 |
|
19019 |
builtin and then its argument prototype would still apply. */ |
|
19020 |
char dlopen (); |
|
19021 |
int |
|
19022 |
main () |
|
19023 |
{ |
|
19024 |
dlopen (); |
|
19025 |
; |
|
19026 |
return 0; |
|
19027 |
} |
|
19028 |
_ACEOF |
|
19029 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
19030 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
19031 |
(eval $ac_link) 2>conftest.er1 |
|
19032 |
ac_status=$? |
|
19033 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
19034 |
rm -f conftest.er1 |
|
19035 |
cat conftest.err >&5 |
|
19036 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19037 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
19038 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
19039 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19040 |
(eval $ac_try) 2>&5 |
|
19041 |
ac_status=$? |
|
19042 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19043 |
(exit $ac_status); }; } && |
|
19044 |
{ ac_try='test -s conftest$ac_exeext' |
|
19045 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
19046 |
(eval $ac_try) 2>&5 |
|
19047 |
ac_status=$? |
|
19048 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19049 |
(exit $ac_status); }; }; then |
|
19050 |
ac_cv_lib_svld_dlopen=yes |
|
19051 |
else |
|
19052 |
echo "$as_me: failed program was:" >&5 |
|
19053 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
19054 |
||
19055 |
ac_cv_lib_svld_dlopen=no |
|
19056 |
fi |
|
19057 |
rm -f conftest.err conftest.$ac_objext \ |
|
19058 |
conftest$ac_exeext conftest.$ac_ext |
|
19059 |
LIBS=$ac_check_lib_save_LIBS |
|
19060 |
fi |
|
19061 |
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
19062 |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
19063 |
if test $ac_cv_lib_svld_dlopen = yes; then |
|
19064 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
19065 |
else |
|
19066 |
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
19067 |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
|
19068 |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
19069 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
19070 |
else |
|
19071 |
ac_check_lib_save_LIBS=$LIBS |
|
19072 |
LIBS="-ldld $LIBS" |
|
19073 |
cat >conftest.$ac_ext <<_ACEOF |
|
19074 |
/* confdefs.h. */ |
|
19075 |
_ACEOF |
|
19076 |
cat confdefs.h >>conftest.$ac_ext |
|
19077 |
cat >>conftest.$ac_ext <<_ACEOF |
|
19078 |
/* end confdefs.h. */ |
|
19079 |
||
19080 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
19081 |
#ifdef __cplusplus |
|
19082 |
extern "C" |
|
19083 |
#endif |
|
19084 |
/* We use char because int might match the return type of a gcc2 |
|
19085 |
builtin and then its argument prototype would still apply. */ |
|
19086 |
char dld_link (); |
|
19087 |
int |
|
19088 |
main () |
|
19089 |
{ |
|
19090 |
dld_link (); |
|
19091 |
; |
|
19092 |
return 0; |
|
19093 |
} |
|
19094 |
_ACEOF |
|
19095 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
19096 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
19097 |
(eval $ac_link) 2>conftest.er1 |
|
19098 |
ac_status=$? |
|
19099 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
19100 |
rm -f conftest.er1 |
|
19101 |
cat conftest.err >&5 |
|
19102 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19103 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
19104 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
19105 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19106 |
(eval $ac_try) 2>&5 |
|
19107 |
ac_status=$? |
|
19108 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19109 |
(exit $ac_status); }; } && |
|
19110 |
{ ac_try='test -s conftest$ac_exeext' |
|
19111 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
19112 |
(eval $ac_try) 2>&5 |
|
19113 |
ac_status=$? |
|
19114 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19115 |
(exit $ac_status); }; }; then |
|
19116 |
ac_cv_lib_dld_dld_link=yes |
|
19117 |
else |
|
19118 |
echo "$as_me: failed program was:" >&5 |
|
19119 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
19120 |
||
19121 |
ac_cv_lib_dld_dld_link=no |
|
19122 |
fi |
|
19123 |
rm -f conftest.err conftest.$ac_objext \ |
|
19124 |
conftest$ac_exeext conftest.$ac_ext |
|
19125 |
LIBS=$ac_check_lib_save_LIBS |
|
19126 |
fi |
|
19127 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
19128 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
19129 |
if test $ac_cv_lib_dld_dld_link = yes; then |
|
19130 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
19131 |
fi |
|
19132 |
||
19133 |
||
19134 |
fi |
|
19135 |
||
19136 |
||
19137 |
fi |
|
19138 |
||
19139 |
||
19140 |
fi |
|
19141 |
||
19142 |
||
19143 |
fi |
|
19144 |
||
19145 |
||
19146 |
fi |
|
19147 |
||
19148 |
;; |
|
19149 |
esac |
|
19150 |
||
19151 |
if test "x$lt_cv_dlopen" != xno; then |
|
19152 |
enable_dlopen=yes |
|
19153 |
else |
|
19154 |
enable_dlopen=no |
|
19155 |
fi |
|
19156 |
||
19157 |
case $lt_cv_dlopen in |
|
19158 |
dlopen) |
|
19159 |
save_CPPFLAGS="$CPPFLAGS" |
|
19160 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
19161 |
||
19162 |
save_LDFLAGS="$LDFLAGS" |
|
19163 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
19164 |
||
19165 |
save_LIBS="$LIBS" |
|
19166 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
|
19167 |
||
19168 |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
19169 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
19170 |
if test "${lt_cv_dlopen_self+set}" = set; then |
|
19171 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
19172 |
else |
|
19173 |
if test "$cross_compiling" = yes; then : |
|
19174 |
lt_cv_dlopen_self=cross |
|
19175 |
else |
|
19176 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
19177 |
lt_status=$lt_dlunknown |
|
19178 |
cat > conftest.$ac_ext <<EOF |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
19179 |
#line 19179 "configure" |
1
by Daniel Holbach
Import upstream version 1.1.15 |
19180 |
#include "confdefs.h" |
19181 |
||
19182 |
#if HAVE_DLFCN_H |
|
19183 |
#include <dlfcn.h> |
|
19184 |
#endif |
|
19185 |
||
19186 |
#include <stdio.h> |
|
19187 |
||
19188 |
#ifdef RTLD_GLOBAL |
|
19189 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
19190 |
#else |
|
19191 |
# ifdef DL_GLOBAL |
|
19192 |
# define LT_DLGLOBAL DL_GLOBAL |
|
19193 |
# else |
|
19194 |
# define LT_DLGLOBAL 0 |
|
19195 |
# endif |
|
19196 |
#endif |
|
19197 |
||
19198 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
19199 |
find out it does not work in some platform. */ |
|
19200 |
#ifndef LT_DLLAZY_OR_NOW |
|
19201 |
# ifdef RTLD_LAZY |
|
19202 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
19203 |
# else |
|
19204 |
# ifdef DL_LAZY |
|
19205 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
19206 |
# else |
|
19207 |
# ifdef RTLD_NOW |
|
19208 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
19209 |
# else |
|
19210 |
# ifdef DL_NOW |
|
19211 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
19212 |
# else |
|
19213 |
# define LT_DLLAZY_OR_NOW 0 |
|
19214 |
# endif |
|
19215 |
# endif |
|
19216 |
# endif |
|
19217 |
# endif |
|
19218 |
#endif |
|
19219 |
||
19220 |
#ifdef __cplusplus |
|
19221 |
extern "C" void exit (int); |
|
19222 |
#endif |
|
19223 |
||
19224 |
void fnord() { int i=42;} |
|
19225 |
int main () |
|
19226 |
{ |
|
19227 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
19228 |
int status = $lt_dlunknown; |
|
19229 |
||
19230 |
if (self) |
|
19231 |
{ |
|
19232 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
19233 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
19234 |
/* dlclose (self); */ |
|
19235 |
} |
|
19236 |
||
19237 |
exit (status); |
|
19238 |
} |
|
19239 |
EOF |
|
19240 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
19241 |
(eval $ac_link) 2>&5 |
|
19242 |
ac_status=$? |
|
19243 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19244 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
19245 |
(./conftest; exit; ) 2>/dev/null |
|
19246 |
lt_status=$? |
|
19247 |
case x$lt_status in |
|
19248 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
19249 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
19250 |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
19251 |
esac |
|
19252 |
else : |
|
19253 |
# compilation failed |
|
19254 |
lt_cv_dlopen_self=no |
|
19255 |
fi |
|
19256 |
fi |
|
19257 |
rm -fr conftest* |
|
19258 |
||
19259 |
||
19260 |
fi |
|
19261 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
19262 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
19263 |
||
19264 |
if test "x$lt_cv_dlopen_self" = xyes; then |
|
19265 |
LDFLAGS="$LDFLAGS $link_static_flag" |
|
19266 |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
19267 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
19268 |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
19269 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
19270 |
else |
|
19271 |
if test "$cross_compiling" = yes; then : |
|
19272 |
lt_cv_dlopen_self_static=cross |
|
19273 |
else |
|
19274 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
19275 |
lt_status=$lt_dlunknown |
|
19276 |
cat > conftest.$ac_ext <<EOF |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
19277 |
#line 19277 "configure" |
1
by Daniel Holbach
Import upstream version 1.1.15 |
19278 |
#include "confdefs.h" |
19279 |
||
19280 |
#if HAVE_DLFCN_H |
|
19281 |
#include <dlfcn.h> |
|
19282 |
#endif |
|
19283 |
||
19284 |
#include <stdio.h> |
|
19285 |
||
19286 |
#ifdef RTLD_GLOBAL |
|
19287 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
19288 |
#else |
|
19289 |
# ifdef DL_GLOBAL |
|
19290 |
# define LT_DLGLOBAL DL_GLOBAL |
|
19291 |
# else |
|
19292 |
# define LT_DLGLOBAL 0 |
|
19293 |
# endif |
|
19294 |
#endif |
|
19295 |
||
19296 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
19297 |
find out it does not work in some platform. */ |
|
19298 |
#ifndef LT_DLLAZY_OR_NOW |
|
19299 |
# ifdef RTLD_LAZY |
|
19300 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
19301 |
# else |
|
19302 |
# ifdef DL_LAZY |
|
19303 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
19304 |
# else |
|
19305 |
# ifdef RTLD_NOW |
|
19306 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
19307 |
# else |
|
19308 |
# ifdef DL_NOW |
|
19309 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
19310 |
# else |
|
19311 |
# define LT_DLLAZY_OR_NOW 0 |
|
19312 |
# endif |
|
19313 |
# endif |
|
19314 |
# endif |
|
19315 |
# endif |
|
19316 |
#endif |
|
19317 |
||
19318 |
#ifdef __cplusplus |
|
19319 |
extern "C" void exit (int); |
|
19320 |
#endif |
|
19321 |
||
19322 |
void fnord() { int i=42;} |
|
19323 |
int main () |
|
19324 |
{ |
|
19325 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
19326 |
int status = $lt_dlunknown; |
|
19327 |
||
19328 |
if (self) |
|
19329 |
{ |
|
19330 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
19331 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
19332 |
/* dlclose (self); */ |
|
19333 |
} |
|
19334 |
||
19335 |
exit (status); |
|
19336 |
} |
|
19337 |
EOF |
|
19338 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
19339 |
(eval $ac_link) 2>&5 |
|
19340 |
ac_status=$? |
|
19341 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19342 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
19343 |
(./conftest; exit; ) 2>/dev/null |
|
19344 |
lt_status=$? |
|
19345 |
case x$lt_status in |
|
19346 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
19347 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
19348 |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
19349 |
esac |
|
19350 |
else : |
|
19351 |
# compilation failed |
|
19352 |
lt_cv_dlopen_self_static=no |
|
19353 |
fi |
|
19354 |
fi |
|
19355 |
rm -fr conftest* |
|
19356 |
||
19357 |
||
19358 |
fi |
|
19359 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
19360 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
19361 |
fi |
|
19362 |
||
19363 |
CPPFLAGS="$save_CPPFLAGS" |
|
19364 |
LDFLAGS="$save_LDFLAGS" |
|
19365 |
LIBS="$save_LIBS" |
|
19366 |
;; |
|
19367 |
esac |
|
19368 |
||
19369 |
case $lt_cv_dlopen_self in |
|
19370 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
19371 |
*) enable_dlopen_self=unknown ;; |
|
19372 |
esac |
|
19373 |
||
19374 |
case $lt_cv_dlopen_self_static in |
|
19375 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
19376 |
*) enable_dlopen_self_static=unknown ;; |
|
19377 |
esac |
|
19378 |
fi |
|
19379 |
||
19380 |
||
19381 |
# The else clause should only fire when bootstrapping the |
|
19382 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
19383 |
# with your package, and you will get complaints that there are |
|
19384 |
# no rules to generate ltmain.sh. |
|
19385 |
if test -f "$ltmain"; then |
|
19386 |
# See if we are running on zsh, and set the options which allow our commands through |
|
19387 |
# without removal of \ escapes. |
|
19388 |
if test -n "${ZSH_VERSION+set}" ; then |
|
19389 |
setopt NO_GLOB_SUBST |
|
19390 |
fi |
|
19391 |
# Now quote all the things that may contain metacharacters while being |
|
19392 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
19393 |
# variables and quote the copies for generation of the libtool script. |
|
19394 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
19395 |
SED SHELL STRIP \ |
|
19396 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
19397 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
19398 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
19399 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
19400 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
19401 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
19402 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
19403 |
compiler_GCJ \ |
|
19404 |
CC_GCJ \ |
|
19405 |
LD_GCJ \ |
|
19406 |
lt_prog_compiler_wl_GCJ \ |
|
19407 |
lt_prog_compiler_pic_GCJ \ |
|
19408 |
lt_prog_compiler_static_GCJ \ |
|
19409 |
lt_prog_compiler_no_builtin_flag_GCJ \ |
|
19410 |
export_dynamic_flag_spec_GCJ \ |
|
19411 |
thread_safe_flag_spec_GCJ \ |
|
19412 |
whole_archive_flag_spec_GCJ \ |
|
19413 |
enable_shared_with_static_runtimes_GCJ \ |
|
19414 |
old_archive_cmds_GCJ \ |
|
19415 |
old_archive_from_new_cmds_GCJ \ |
|
19416 |
predep_objects_GCJ \ |
|
19417 |
postdep_objects_GCJ \ |
|
19418 |
predeps_GCJ \ |
|
19419 |
postdeps_GCJ \ |
|
19420 |
compiler_lib_search_path_GCJ \ |
|
19421 |
archive_cmds_GCJ \ |
|
19422 |
archive_expsym_cmds_GCJ \ |
|
19423 |
postinstall_cmds_GCJ \ |
|
19424 |
postuninstall_cmds_GCJ \ |
|
19425 |
old_archive_from_expsyms_cmds_GCJ \ |
|
19426 |
allow_undefined_flag_GCJ \ |
|
19427 |
no_undefined_flag_GCJ \ |
|
19428 |
export_symbols_cmds_GCJ \ |
|
19429 |
hardcode_libdir_flag_spec_GCJ \ |
|
19430 |
hardcode_libdir_flag_spec_ld_GCJ \ |
|
19431 |
hardcode_libdir_separator_GCJ \ |
|
19432 |
hardcode_automatic_GCJ \ |
|
19433 |
module_cmds_GCJ \ |
|
19434 |
module_expsym_cmds_GCJ \ |
|
19435 |
lt_cv_prog_compiler_c_o_GCJ \ |
|
19436 |
exclude_expsyms_GCJ \ |
|
19437 |
include_expsyms_GCJ; do |
|
19438 |
||
19439 |
case $var in |
|
19440 |
old_archive_cmds_GCJ | \ |
|
19441 |
old_archive_from_new_cmds_GCJ | \ |
|
19442 |
archive_cmds_GCJ | \ |
|
19443 |
archive_expsym_cmds_GCJ | \ |
|
19444 |
module_cmds_GCJ | \ |
|
19445 |
module_expsym_cmds_GCJ | \ |
|
19446 |
old_archive_from_expsyms_cmds_GCJ | \ |
|
19447 |
export_symbols_cmds_GCJ | \ |
|
19448 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
19449 |
postinstall_cmds | postuninstall_cmds | \ |
|
19450 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
19451 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
19452 |
# Double-quote double-evaled strings. |
|
19453 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
19454 |
;; |
|
19455 |
*) |
|
19456 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
19457 |
;; |
|
19458 |
esac |
|
19459 |
done |
|
19460 |
||
19461 |
case $lt_echo in |
|
19462 |
*'\$0 --fallback-echo"') |
|
19463 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
19464 |
;; |
|
19465 |
esac |
|
19466 |
||
19467 |
cfgfile="$ofile" |
|
19468 |
||
19469 |
cat <<__EOF__ >> "$cfgfile" |
|
19470 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
19471 |
||
19472 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
19473 |
||
19474 |
# Shell to use when invoking shell scripts. |
|
19475 |
SHELL=$lt_SHELL |
|
19476 |
||
19477 |
# Whether or not to build shared libraries. |
|
19478 |
build_libtool_libs=$enable_shared |
|
19479 |
||
19480 |
# Whether or not to build static libraries. |
|
19481 |
build_old_libs=$enable_static |
|
19482 |
||
19483 |
# Whether or not to add -lc for building shared libraries. |
|
19484 |
build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
|
19485 |
||
19486 |
# Whether or not to disallow shared libs when runtime libs are static |
|
19487 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
|
19488 |
||
19489 |
# Whether or not to optimize for fast installation. |
|
19490 |
fast_install=$enable_fast_install |
|
19491 |
||
19492 |
# The host system. |
|
19493 |
host_alias=$host_alias |
|
19494 |
host=$host |
|
19495 |
||
19496 |
# An echo program that does not interpret backslashes. |
|
19497 |
echo=$lt_echo |
|
19498 |
||
19499 |
# The archiver. |
|
19500 |
AR=$lt_AR |
|
19501 |
AR_FLAGS=$lt_AR_FLAGS |
|
19502 |
||
19503 |
# A C compiler. |
|
19504 |
LTCC=$lt_LTCC |
|
19505 |
||
19506 |
# A language-specific compiler. |
|
19507 |
CC=$lt_compiler_GCJ |
|
19508 |
||
19509 |
# Is the compiler the GNU C compiler? |
|
19510 |
with_gcc=$GCC_GCJ |
|
19511 |
||
19512 |
# An ERE matcher. |
|
19513 |
EGREP=$lt_EGREP |
|
19514 |
||
19515 |
# The linker used to build libraries. |
|
19516 |
LD=$lt_LD_GCJ |
|
19517 |
||
19518 |
# Whether we need hard or soft links. |
|
19519 |
LN_S=$lt_LN_S |
|
19520 |
||
19521 |
# A BSD-compatible nm program. |
|
19522 |
NM=$lt_NM |
|
19523 |
||
19524 |
# A symbol stripping program |
|
19525 |
STRIP=$lt_STRIP |
|
19526 |
||
19527 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
19528 |
MAGIC_CMD=$MAGIC_CMD |
|
19529 |
||
19530 |
# Used on cygwin: DLL creation program. |
|
19531 |
DLLTOOL="$DLLTOOL" |
|
19532 |
||
19533 |
# Used on cygwin: object dumper. |
|
19534 |
OBJDUMP="$OBJDUMP" |
|
19535 |
||
19536 |
# Used on cygwin: assembler. |
|
19537 |
AS="$AS" |
|
19538 |
||
19539 |
# The name of the directory that contains temporary libtool files. |
|
19540 |
objdir=$objdir |
|
19541 |
||
19542 |
# How to create reloadable object files. |
|
19543 |
reload_flag=$lt_reload_flag |
|
19544 |
reload_cmds=$lt_reload_cmds |
|
19545 |
||
19546 |
# How to pass a linker flag through the compiler. |
|
19547 |
wl=$lt_lt_prog_compiler_wl_GCJ |
|
19548 |
||
19549 |
# Object file suffix (normally "o"). |
|
19550 |
objext="$ac_objext" |
|
19551 |
||
19552 |
# Old archive suffix (normally "a"). |
|
19553 |
libext="$libext" |
|
19554 |
||
19555 |
# Shared library suffix (normally ".so"). |
|
19556 |
shrext_cmds='$shrext_cmds' |
|
19557 |
||
19558 |
# Executable file suffix (normally ""). |
|
19559 |
exeext="$exeext" |
|
19560 |
||
19561 |
# Additional compiler flags for building library objects. |
|
19562 |
pic_flag=$lt_lt_prog_compiler_pic_GCJ |
|
19563 |
pic_mode=$pic_mode |
|
19564 |
||
19565 |
# What is the maximum length of a command? |
|
19566 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
19567 |
||
19568 |
# Does compiler simultaneously support -c and -o options? |
|
19569 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
|
19570 |
||
19571 |
# Must we lock files when doing compilation ? |
|
19572 |
need_locks=$lt_need_locks |
|
19573 |
||
19574 |
# Do we need the lib prefix for modules? |
|
19575 |
need_lib_prefix=$need_lib_prefix |
|
19576 |
||
19577 |
# Do we need a version for libraries? |
|
19578 |
need_version=$need_version |
|
19579 |
||
19580 |
# Whether dlopen is supported. |
|
19581 |
dlopen_support=$enable_dlopen |
|
19582 |
||
19583 |
# Whether dlopen of programs is supported. |
|
19584 |
dlopen_self=$enable_dlopen_self |
|
19585 |
||
19586 |
# Whether dlopen of statically linked programs is supported. |
|
19587 |
dlopen_self_static=$enable_dlopen_self_static |
|
19588 |
||
19589 |
# Compiler flag to prevent dynamic linking. |
|
19590 |
link_static_flag=$lt_lt_prog_compiler_static_GCJ |
|
19591 |
||
19592 |
# Compiler flag to turn off builtin functions. |
|
19593 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
|
19594 |
||
19595 |
# Compiler flag to allow reflexive dlopens. |
|
19596 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
|
19597 |
||
19598 |
# Compiler flag to generate shared objects directly from archives. |
|
19599 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
|
19600 |
||
19601 |
# Compiler flag to generate thread-safe objects. |
|
19602 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
|
19603 |
||
19604 |
# Library versioning type. |
|
19605 |
version_type=$version_type |
|
19606 |
||
19607 |
# Format of library name prefix. |
|
19608 |
libname_spec=$lt_libname_spec |
|
19609 |
||
19610 |
# List of archive names. First name is the real one, the rest are links. |
|
19611 |
# The last name is the one that the linker finds with -lNAME. |
|
19612 |
library_names_spec=$lt_library_names_spec |
|
19613 |
||
19614 |
# The coded name of the library, if different from the real name. |
|
19615 |
soname_spec=$lt_soname_spec |
|
19616 |
||
19617 |
# Commands used to build and install an old-style archive. |
|
19618 |
RANLIB=$lt_RANLIB |
|
19619 |
old_archive_cmds=$lt_old_archive_cmds_GCJ |
|
19620 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
19621 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
19622 |
||
19623 |
# Create an old-style archive from a shared archive. |
|
19624 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
|
19625 |
||
19626 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
19627 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
|
19628 |
||
19629 |
# Commands used to build and install a shared archive. |
|
19630 |
archive_cmds=$lt_archive_cmds_GCJ |
|
19631 |
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
|
19632 |
postinstall_cmds=$lt_postinstall_cmds |
|
19633 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
19634 |
||
19635 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
19636 |
module_cmds=$lt_module_cmds_GCJ |
|
19637 |
module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
|
19638 |
||
19639 |
# Commands to strip libraries. |
|
19640 |
old_striplib=$lt_old_striplib |
|
19641 |
striplib=$lt_striplib |
|
19642 |
||
19643 |
# Dependencies to place before the objects being linked to create a |
|
19644 |
# shared library. |
|
19645 |
predep_objects=$lt_predep_objects_GCJ |
|
19646 |
||
19647 |
# Dependencies to place after the objects being linked to create a |
|
19648 |
# shared library. |
|
19649 |
postdep_objects=$lt_postdep_objects_GCJ |
|
19650 |
||
19651 |
# Dependencies to place before the objects being linked to create a |
|
19652 |
# shared library. |
|
19653 |
predeps=$lt_predeps_GCJ |
|
19654 |
||
19655 |
# Dependencies to place after the objects being linked to create a |
|
19656 |
# shared library. |
|
19657 |
postdeps=$lt_postdeps_GCJ |
|
19658 |
||
19659 |
# The library search path used internally by the compiler when linking |
|
19660 |
# a shared library. |
|
19661 |
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
|
19662 |
||
19663 |
# Method to check whether dependent libraries are shared objects. |
|
19664 |
deplibs_check_method=$lt_deplibs_check_method |
|
19665 |
||
19666 |
# Command to use when deplibs_check_method == file_magic. |
|
19667 |
file_magic_cmd=$lt_file_magic_cmd |
|
19668 |
||
19669 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
19670 |
allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
|
19671 |
||
19672 |
# Flag that forces no undefined symbols. |
|
19673 |
no_undefined_flag=$lt_no_undefined_flag_GCJ |
|
19674 |
||
19675 |
# Commands used to finish a libtool library installation in a directory. |
|
19676 |
finish_cmds=$lt_finish_cmds |
|
19677 |
||
19678 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
19679 |
finish_eval=$lt_finish_eval |
|
19680 |
||
19681 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
19682 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
19683 |
||
19684 |
# Transform the output of nm in a proper C declaration |
|
19685 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
19686 |
||
19687 |
# Transform the output of nm in a C name address pair |
|
19688 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
19689 |
||
19690 |
# This is the shared library runtime path variable. |
|
19691 |
runpath_var=$runpath_var |
|
19692 |
||
19693 |
# This is the shared library path variable. |
|
19694 |
shlibpath_var=$shlibpath_var |
|
19695 |
||
19696 |
# Is shlibpath searched before the hard-coded library search path? |
|
19697 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
19698 |
||
19699 |
# How to hardcode a shared library path into an executable. |
|
19700 |
hardcode_action=$hardcode_action_GCJ |
|
19701 |
||
19702 |
# Whether we should hardcode library paths into libraries. |
|
19703 |
hardcode_into_libs=$hardcode_into_libs |
|
19704 |
||
19705 |
# Flag to hardcode \$libdir into a binary during linking. |
|
19706 |
# This must work even if \$libdir does not exist. |
|
19707 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
|
19708 |
||
19709 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
19710 |
# a binary during linking. This must work even if \$libdir does |
|
19711 |
# not exist. |
|
19712 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
|
19713 |
||
19714 |
# Whether we need a single -rpath flag with a separated argument. |
|
19715 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
|
19716 |
||
19717 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
19718 |
# resulting binary. |
|
19719 |
hardcode_direct=$hardcode_direct_GCJ |
|
19720 |
||
19721 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
19722 |
# resulting binary. |
|
19723 |
hardcode_minus_L=$hardcode_minus_L_GCJ |
|
19724 |
||
19725 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
19726 |
# the resulting binary. |
|
19727 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
|
19728 |
||
19729 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
19730 |
# and all subsequent libraries and executables linked against it. |
|
19731 |
hardcode_automatic=$hardcode_automatic_GCJ |
|
19732 |
||
19733 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
19734 |
# restored at relink time. |
|
19735 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
19736 |
||
19737 |
# Whether libtool must link a program against all its dependency libraries. |
|
19738 |
link_all_deplibs=$link_all_deplibs_GCJ |
|
19739 |
||
19740 |
# Compile-time system search path for libraries |
|
19741 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
19742 |
||
19743 |
# Run-time system search path for libraries |
|
19744 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
19745 |
||
19746 |
# Fix the shell variable \$srcfile for the compiler. |
|
19747 |
fix_srcfile_path="$fix_srcfile_path_GCJ" |
|
19748 |
||
19749 |
# Set to yes if exported symbols are required. |
|
19750 |
always_export_symbols=$always_export_symbols_GCJ |
|
19751 |
||
19752 |
# The commands to list exported symbols. |
|
19753 |
export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
|
19754 |
||
19755 |
# The commands to extract the exported symbol list from a shared archive. |
|
19756 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
19757 |
||
19758 |
# Symbols that should not be listed in the preloaded symbols. |
|
19759 |
exclude_expsyms=$lt_exclude_expsyms_GCJ |
|
19760 |
||
19761 |
# Symbols that must always be exported. |
|
19762 |
include_expsyms=$lt_include_expsyms_GCJ |
|
19763 |
||
19764 |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
19765 |
||
19766 |
__EOF__ |
|
19767 |
||
19768 |
||
19769 |
else |
|
19770 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
19771 |
# `config.status --recheck' to rerun these tests and create the |
|
19772 |
# libtool script then. |
|
19773 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
19774 |
if test -f "$ltmain_in"; then |
|
19775 |
test -f Makefile && make "$ltmain" |
|
19776 |
fi |
|
19777 |
fi |
|
19778 |
||
19779 |
||
19780 |
ac_ext=c |
|
19781 |
ac_cpp='$CPP $CPPFLAGS' |
|
19782 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
19783 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
19784 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
19785 |
||
19786 |
CC="$lt_save_CC" |
|
19787 |
||
19788 |
else |
|
19789 |
tagname="" |
|
19790 |
fi |
|
19791 |
;; |
|
19792 |
||
19793 |
RC) |
|
19794 |
||
19795 |
||
19796 |
||
19797 |
# Source file extension for RC test sources. |
|
19798 |
ac_ext=rc |
|
19799 |
||
19800 |
# Object file extension for compiled RC test sources. |
|
19801 |
objext=o |
|
19802 |
objext_RC=$objext |
|
19803 |
||
19804 |
# Code to be used in simple compile tests |
|
19805 |
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
|
19806 |
||
19807 |
# Code to be used in simple link tests |
|
19808 |
lt_simple_link_test_code="$lt_simple_compile_test_code" |
|
19809 |
||
19810 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
19811 |
||
19812 |
# If no C compiler was specified, use CC. |
|
19813 |
LTCC=${LTCC-"$CC"} |
|
19814 |
||
19815 |
# Allow CC to be a program name with arguments. |
|
19816 |
compiler=$CC |
|
19817 |
||
19818 |
||
19819 |
# Allow CC to be a program name with arguments. |
|
19820 |
lt_save_CC="$CC" |
|
19821 |
CC=${RC-"windres"} |
|
19822 |
compiler=$CC |
|
19823 |
compiler_RC=$CC |
|
19824 |
lt_cv_prog_compiler_c_o_RC=yes |
|
19825 |
||
19826 |
# The else clause should only fire when bootstrapping the |
|
19827 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
19828 |
# with your package, and you will get complaints that there are |
|
19829 |
# no rules to generate ltmain.sh. |
|
19830 |
if test -f "$ltmain"; then |
|
19831 |
# See if we are running on zsh, and set the options which allow our commands through |
|
19832 |
# without removal of \ escapes. |
|
19833 |
if test -n "${ZSH_VERSION+set}" ; then |
|
19834 |
setopt NO_GLOB_SUBST |
|
19835 |
fi |
|
19836 |
# Now quote all the things that may contain metacharacters while being |
|
19837 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
19838 |
# variables and quote the copies for generation of the libtool script. |
|
19839 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
19840 |
SED SHELL STRIP \ |
|
19841 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
19842 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
19843 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
19844 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
19845 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
19846 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
19847 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
19848 |
compiler_RC \ |
|
19849 |
CC_RC \ |
|
19850 |
LD_RC \ |
|
19851 |
lt_prog_compiler_wl_RC \ |
|
19852 |
lt_prog_compiler_pic_RC \ |
|
19853 |
lt_prog_compiler_static_RC \ |
|
19854 |
lt_prog_compiler_no_builtin_flag_RC \ |
|
19855 |
export_dynamic_flag_spec_RC \ |
|
19856 |
thread_safe_flag_spec_RC \ |
|
19857 |
whole_archive_flag_spec_RC \ |
|
19858 |
enable_shared_with_static_runtimes_RC \ |
|
19859 |
old_archive_cmds_RC \ |
|
19860 |
old_archive_from_new_cmds_RC \ |
|
19861 |
predep_objects_RC \ |
|
19862 |
postdep_objects_RC \ |
|
19863 |
predeps_RC \ |
|
19864 |
postdeps_RC \ |
|
19865 |
compiler_lib_search_path_RC \ |
|
19866 |
archive_cmds_RC \ |
|
19867 |
archive_expsym_cmds_RC \ |
|
19868 |
postinstall_cmds_RC \ |
|
19869 |
postuninstall_cmds_RC \ |
|
19870 |
old_archive_from_expsyms_cmds_RC \ |
|
19871 |
allow_undefined_flag_RC \ |
|
19872 |
no_undefined_flag_RC \ |
|
19873 |
export_symbols_cmds_RC \ |
|
19874 |
hardcode_libdir_flag_spec_RC \ |
|
19875 |
hardcode_libdir_flag_spec_ld_RC \ |
|
19876 |
hardcode_libdir_separator_RC \ |
|
19877 |
hardcode_automatic_RC \ |
|
19878 |
module_cmds_RC \ |
|
19879 |
module_expsym_cmds_RC \ |
|
19880 |
lt_cv_prog_compiler_c_o_RC \ |
|
19881 |
exclude_expsyms_RC \ |
|
19882 |
include_expsyms_RC; do |
|
19883 |
||
19884 |
case $var in |
|
19885 |
old_archive_cmds_RC | \ |
|
19886 |
old_archive_from_new_cmds_RC | \ |
|
19887 |
archive_cmds_RC | \ |
|
19888 |
archive_expsym_cmds_RC | \ |
|
19889 |
module_cmds_RC | \ |
|
19890 |
module_expsym_cmds_RC | \ |
|
19891 |
old_archive_from_expsyms_cmds_RC | \ |
|
19892 |
export_symbols_cmds_RC | \ |
|
19893 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
19894 |
postinstall_cmds | postuninstall_cmds | \ |
|
19895 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
19896 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
19897 |
# Double-quote double-evaled strings. |
|
19898 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
19899 |
;; |
|
19900 |
*) |
|
19901 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
19902 |
;; |
|
19903 |
esac |
|
19904 |
done |
|
19905 |
||
19906 |
case $lt_echo in |
|
19907 |
*'\$0 --fallback-echo"') |
|
19908 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
19909 |
;; |
|
19910 |
esac |
|
19911 |
||
19912 |
cfgfile="$ofile" |
|
19913 |
||
19914 |
cat <<__EOF__ >> "$cfgfile" |
|
19915 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
19916 |
||
19917 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
19918 |
||
19919 |
# Shell to use when invoking shell scripts. |
|
19920 |
SHELL=$lt_SHELL |
|
19921 |
||
19922 |
# Whether or not to build shared libraries. |
|
19923 |
build_libtool_libs=$enable_shared |
|
19924 |
||
19925 |
# Whether or not to build static libraries. |
|
19926 |
build_old_libs=$enable_static |
|
19927 |
||
19928 |
# Whether or not to add -lc for building shared libraries. |
|
19929 |
build_libtool_need_lc=$archive_cmds_need_lc_RC |
|
19930 |
||
19931 |
# Whether or not to disallow shared libs when runtime libs are static |
|
19932 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
|
19933 |
||
19934 |
# Whether or not to optimize for fast installation. |
|
19935 |
fast_install=$enable_fast_install |
|
19936 |
||
19937 |
# The host system. |
|
19938 |
host_alias=$host_alias |
|
19939 |
host=$host |
|
19940 |
||
19941 |
# An echo program that does not interpret backslashes. |
|
19942 |
echo=$lt_echo |
|
19943 |
||
19944 |
# The archiver. |
|
19945 |
AR=$lt_AR |
|
19946 |
AR_FLAGS=$lt_AR_FLAGS |
|
19947 |
||
19948 |
# A C compiler. |
|
19949 |
LTCC=$lt_LTCC |
|
19950 |
||
19951 |
# A language-specific compiler. |
|
19952 |
CC=$lt_compiler_RC |
|
19953 |
||
19954 |
# Is the compiler the GNU C compiler? |
|
19955 |
with_gcc=$GCC_RC |
|
19956 |
||
19957 |
# An ERE matcher. |
|
19958 |
EGREP=$lt_EGREP |
|
19959 |
||
19960 |
# The linker used to build libraries. |
|
19961 |
LD=$lt_LD_RC |
|
19962 |
||
19963 |
# Whether we need hard or soft links. |
|
19964 |
LN_S=$lt_LN_S |
|
19965 |
||
19966 |
# A BSD-compatible nm program. |
|
19967 |
NM=$lt_NM |
|
19968 |
||
19969 |
# A symbol stripping program |
|
19970 |
STRIP=$lt_STRIP |
|
19971 |
||
19972 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
19973 |
MAGIC_CMD=$MAGIC_CMD |
|
19974 |
||
19975 |
# Used on cygwin: DLL creation program. |
|
19976 |
DLLTOOL="$DLLTOOL" |
|
19977 |
||
19978 |
# Used on cygwin: object dumper. |
|
19979 |
OBJDUMP="$OBJDUMP" |
|
19980 |
||
19981 |
# Used on cygwin: assembler. |
|
19982 |
AS="$AS" |
|
19983 |
||
19984 |
# The name of the directory that contains temporary libtool files. |
|
19985 |
objdir=$objdir |
|
19986 |
||
19987 |
# How to create reloadable object files. |
|
19988 |
reload_flag=$lt_reload_flag |
|
19989 |
reload_cmds=$lt_reload_cmds |
|
19990 |
||
19991 |
# How to pass a linker flag through the compiler. |
|
19992 |
wl=$lt_lt_prog_compiler_wl_RC |
|
19993 |
||
19994 |
# Object file suffix (normally "o"). |
|
19995 |
objext="$ac_objext" |
|
19996 |
||
19997 |
# Old archive suffix (normally "a"). |
|
19998 |
libext="$libext" |
|
19999 |
||
20000 |
# Shared library suffix (normally ".so"). |
|
20001 |
shrext_cmds='$shrext_cmds' |
|
20002 |
||
20003 |
# Executable file suffix (normally ""). |
|
20004 |
exeext="$exeext" |
|
20005 |
||
20006 |
# Additional compiler flags for building library objects. |
|
20007 |
pic_flag=$lt_lt_prog_compiler_pic_RC |
|
20008 |
pic_mode=$pic_mode |
|
20009 |
||
20010 |
# What is the maximum length of a command? |
|
20011 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
20012 |
||
20013 |
# Does compiler simultaneously support -c and -o options? |
|
20014 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
|
20015 |
||
20016 |
# Must we lock files when doing compilation ? |
|
20017 |
need_locks=$lt_need_locks |
|
20018 |
||
20019 |
# Do we need the lib prefix for modules? |
|
20020 |
need_lib_prefix=$need_lib_prefix |
|
20021 |
||
20022 |
# Do we need a version for libraries? |
|
20023 |
need_version=$need_version |
|
20024 |
||
20025 |
# Whether dlopen is supported. |
|
20026 |
dlopen_support=$enable_dlopen |
|
20027 |
||
20028 |
# Whether dlopen of programs is supported. |
|
20029 |
dlopen_self=$enable_dlopen_self |
|
20030 |
||
20031 |
# Whether dlopen of statically linked programs is supported. |
|
20032 |
dlopen_self_static=$enable_dlopen_self_static |
|
20033 |
||
20034 |
# Compiler flag to prevent dynamic linking. |
|
20035 |
link_static_flag=$lt_lt_prog_compiler_static_RC |
|
20036 |
||
20037 |
# Compiler flag to turn off builtin functions. |
|
20038 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
|
20039 |
||
20040 |
# Compiler flag to allow reflexive dlopens. |
|
20041 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
|
20042 |
||
20043 |
# Compiler flag to generate shared objects directly from archives. |
|
20044 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
|
20045 |
||
20046 |
# Compiler flag to generate thread-safe objects. |
|
20047 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
|
20048 |
||
20049 |
# Library versioning type. |
|
20050 |
version_type=$version_type |
|
20051 |
||
20052 |
# Format of library name prefix. |
|
20053 |
libname_spec=$lt_libname_spec |
|
20054 |
||
20055 |
# List of archive names. First name is the real one, the rest are links. |
|
20056 |
# The last name is the one that the linker finds with -lNAME. |
|
20057 |
library_names_spec=$lt_library_names_spec |
|
20058 |
||
20059 |
# The coded name of the library, if different from the real name. |
|
20060 |
soname_spec=$lt_soname_spec |
|
20061 |
||
20062 |
# Commands used to build and install an old-style archive. |
|
20063 |
RANLIB=$lt_RANLIB |
|
20064 |
old_archive_cmds=$lt_old_archive_cmds_RC |
|
20065 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
20066 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
20067 |
||
20068 |
# Create an old-style archive from a shared archive. |
|
20069 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
|
20070 |
||
20071 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
20072 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
|
20073 |
||
20074 |
# Commands used to build and install a shared archive. |
|
20075 |
archive_cmds=$lt_archive_cmds_RC |
|
20076 |
archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
|
20077 |
postinstall_cmds=$lt_postinstall_cmds |
|
20078 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
20079 |
||
20080 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
20081 |
module_cmds=$lt_module_cmds_RC |
|
20082 |
module_expsym_cmds=$lt_module_expsym_cmds_RC |
|
20083 |
||
20084 |
# Commands to strip libraries. |
|
20085 |
old_striplib=$lt_old_striplib |
|
20086 |
striplib=$lt_striplib |
|
20087 |
||
20088 |
# Dependencies to place before the objects being linked to create a |
|
20089 |
# shared library. |
|
20090 |
predep_objects=$lt_predep_objects_RC |
|
20091 |
||
20092 |
# Dependencies to place after the objects being linked to create a |
|
20093 |
# shared library. |
|
20094 |
postdep_objects=$lt_postdep_objects_RC |
|
20095 |
||
20096 |
# Dependencies to place before the objects being linked to create a |
|
20097 |
# shared library. |
|
20098 |
predeps=$lt_predeps_RC |
|
20099 |
||
20100 |
# Dependencies to place after the objects being linked to create a |
|
20101 |
# shared library. |
|
20102 |
postdeps=$lt_postdeps_RC |
|
20103 |
||
20104 |
# The library search path used internally by the compiler when linking |
|
20105 |
# a shared library. |
|
20106 |
compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
|
20107 |
||
20108 |
# Method to check whether dependent libraries are shared objects. |
|
20109 |
deplibs_check_method=$lt_deplibs_check_method |
|
20110 |
||
20111 |
# Command to use when deplibs_check_method == file_magic. |
|
20112 |
file_magic_cmd=$lt_file_magic_cmd |
|
20113 |
||
20114 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
20115 |
allow_undefined_flag=$lt_allow_undefined_flag_RC |
|
20116 |
||
20117 |
# Flag that forces no undefined symbols. |
|
20118 |
no_undefined_flag=$lt_no_undefined_flag_RC |
|
20119 |
||
20120 |
# Commands used to finish a libtool library installation in a directory. |
|
20121 |
finish_cmds=$lt_finish_cmds |
|
20122 |
||
20123 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
20124 |
finish_eval=$lt_finish_eval |
|
20125 |
||
20126 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
20127 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
20128 |
||
20129 |
# Transform the output of nm in a proper C declaration |
|
20130 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
20131 |
||
20132 |
# Transform the output of nm in a C name address pair |
|
20133 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
20134 |
||
20135 |
# This is the shared library runtime path variable. |
|
20136 |
runpath_var=$runpath_var |
|
20137 |
||
20138 |
# This is the shared library path variable. |
|
20139 |
shlibpath_var=$shlibpath_var |
|
20140 |
||
20141 |
# Is shlibpath searched before the hard-coded library search path? |
|
20142 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
20143 |
||
20144 |
# How to hardcode a shared library path into an executable. |
|
20145 |
hardcode_action=$hardcode_action_RC |
|
20146 |
||
20147 |
# Whether we should hardcode library paths into libraries. |
|
20148 |
hardcode_into_libs=$hardcode_into_libs |
|
20149 |
||
20150 |
# Flag to hardcode \$libdir into a binary during linking. |
|
20151 |
# This must work even if \$libdir does not exist. |
|
20152 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
|
20153 |
||
20154 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
20155 |
# a binary during linking. This must work even if \$libdir does |
|
20156 |
# not exist. |
|
20157 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
|
20158 |
||
20159 |
# Whether we need a single -rpath flag with a separated argument. |
|
20160 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
|
20161 |
||
20162 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
20163 |
# resulting binary. |
|
20164 |
hardcode_direct=$hardcode_direct_RC |
|
20165 |
||
20166 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
20167 |
# resulting binary. |
|
20168 |
hardcode_minus_L=$hardcode_minus_L_RC |
|
20169 |
||
20170 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
20171 |
# the resulting binary. |
|
20172 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
|
20173 |
||
20174 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
20175 |
# and all subsequent libraries and executables linked against it. |
|
20176 |
hardcode_automatic=$hardcode_automatic_RC |
|
20177 |
||
20178 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
20179 |
# restored at relink time. |
|
20180 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
20181 |
||
20182 |
# Whether libtool must link a program against all its dependency libraries. |
|
20183 |
link_all_deplibs=$link_all_deplibs_RC |
|
20184 |
||
20185 |
# Compile-time system search path for libraries |
|
20186 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
20187 |
||
20188 |
# Run-time system search path for libraries |
|
20189 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
20190 |
||
20191 |
# Fix the shell variable \$srcfile for the compiler. |
|
20192 |
fix_srcfile_path="$fix_srcfile_path_RC" |
|
20193 |
||
20194 |
# Set to yes if exported symbols are required. |
|
20195 |
always_export_symbols=$always_export_symbols_RC |
|
20196 |
||
20197 |
# The commands to list exported symbols. |
|
20198 |
export_symbols_cmds=$lt_export_symbols_cmds_RC |
|
20199 |
||
20200 |
# The commands to extract the exported symbol list from a shared archive. |
|
20201 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
20202 |
||
20203 |
# Symbols that should not be listed in the preloaded symbols. |
|
20204 |
exclude_expsyms=$lt_exclude_expsyms_RC |
|
20205 |
||
20206 |
# Symbols that must always be exported. |
|
20207 |
include_expsyms=$lt_include_expsyms_RC |
|
20208 |
||
20209 |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
20210 |
||
20211 |
__EOF__ |
|
20212 |
||
20213 |
||
20214 |
else |
|
20215 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
20216 |
# `config.status --recheck' to rerun these tests and create the |
|
20217 |
# libtool script then. |
|
20218 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
20219 |
if test -f "$ltmain_in"; then |
|
20220 |
test -f Makefile && make "$ltmain" |
|
20221 |
fi |
|
20222 |
fi |
|
20223 |
||
20224 |
||
20225 |
ac_ext=c |
|
20226 |
ac_cpp='$CPP $CPPFLAGS' |
|
20227 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
20228 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
20229 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
20230 |
||
20231 |
CC="$lt_save_CC" |
|
20232 |
||
20233 |
;; |
|
20234 |
||
20235 |
*) |
|
20236 |
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
|
20237 |
echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
|
20238 |
{ (exit 1); exit 1; }; } |
|
20239 |
;; |
|
20240 |
esac |
|
20241 |
||
20242 |
# Append the new tag name to the list of available tags. |
|
20243 |
if test -n "$tagname" ; then |
|
20244 |
available_tags="$available_tags $tagname" |
|
20245 |
fi |
|
20246 |
fi |
|
20247 |
done |
|
20248 |
IFS="$lt_save_ifs" |
|
20249 |
||
20250 |
# Now substitute the updated list of available tags. |
|
20251 |
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
|
20252 |
mv "${ofile}T" "$ofile" |
|
20253 |
chmod +x "$ofile" |
|
20254 |
else |
|
20255 |
rm -f "${ofile}T" |
|
20256 |
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
|
20257 |
echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
|
20258 |
{ (exit 1); exit 1; }; } |
|
20259 |
fi |
|
20260 |
fi |
|
20261 |
||
20262 |
||
20263 |
||
20264 |
# This can be used to rebuild libtool when needed |
|
20265 |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
20266 |
||
20267 |
# Always use our own libtool. |
|
20268 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
20269 |
||
20270 |
# Prevent multiple expansion |
|
20271 |
||
20272 |
||
20273 |
||
20274 |
||
20275 |
||
20276 |
||
20277 |
||
20278 |
||
20279 |
||
20280 |
||
20281 |
||
20282 |
||
20283 |
||
20284 |
||
20285 |
||
20286 |
||
20287 |
||
20288 |
||
20289 |
||
20290 |
||
20291 |
||
20292 |
||
20293 |
||
20294 |
||
20295 |
||
20296 |
||
20297 |
||
20298 |
for ac_header in sys/types.h sys/time.h stdlib.h unistd.h string.h |
|
20299 |
do |
|
20300 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
20301 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
20302 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
20303 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
20304 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
20305 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20306 |
fi |
|
20307 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
20308 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
20309 |
else |
|
20310 |
# Is the header compilable? |
|
20311 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
20312 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
20313 |
cat >conftest.$ac_ext <<_ACEOF |
|
20314 |
/* confdefs.h. */ |
|
20315 |
_ACEOF |
|
20316 |
cat confdefs.h >>conftest.$ac_ext |
|
20317 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20318 |
/* end confdefs.h. */ |
|
20319 |
$ac_includes_default |
|
20320 |
#include <$ac_header> |
|
20321 |
_ACEOF |
|
20322 |
rm -f conftest.$ac_objext |
|
20323 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
20324 |
(eval $ac_compile) 2>conftest.er1 |
|
20325 |
ac_status=$? |
|
20326 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20327 |
rm -f conftest.er1 |
|
20328 |
cat conftest.err >&5 |
|
20329 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20330 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
20331 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
20332 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20333 |
(eval $ac_try) 2>&5 |
|
20334 |
ac_status=$? |
|
20335 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20336 |
(exit $ac_status); }; } && |
|
20337 |
{ ac_try='test -s conftest.$ac_objext' |
|
20338 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20339 |
(eval $ac_try) 2>&5 |
|
20340 |
ac_status=$? |
|
20341 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20342 |
(exit $ac_status); }; }; then |
|
20343 |
ac_header_compiler=yes |
|
20344 |
else |
|
20345 |
echo "$as_me: failed program was:" >&5 |
|
20346 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20347 |
||
20348 |
ac_header_compiler=no |
|
20349 |
fi |
|
20350 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
20351 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
20352 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
20353 |
||
20354 |
# Is the header present? |
|
20355 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
20356 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
20357 |
cat >conftest.$ac_ext <<_ACEOF |
|
20358 |
/* confdefs.h. */ |
|
20359 |
_ACEOF |
|
20360 |
cat confdefs.h >>conftest.$ac_ext |
|
20361 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20362 |
/* end confdefs.h. */ |
|
20363 |
#include <$ac_header> |
|
20364 |
_ACEOF |
|
20365 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
20366 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
20367 |
ac_status=$? |
|
20368 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20369 |
rm -f conftest.er1 |
|
20370 |
cat conftest.err >&5 |
|
20371 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20372 |
(exit $ac_status); } >/dev/null; then |
|
20373 |
if test -s conftest.err; then |
|
20374 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
20375 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
20376 |
else |
|
20377 |
ac_cpp_err= |
|
20378 |
fi |
|
20379 |
else |
|
20380 |
ac_cpp_err=yes |
|
20381 |
fi |
|
20382 |
if test -z "$ac_cpp_err"; then |
|
20383 |
ac_header_preproc=yes |
|
20384 |
else |
|
20385 |
echo "$as_me: failed program was:" >&5 |
|
20386 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20387 |
||
20388 |
ac_header_preproc=no |
|
20389 |
fi |
|
20390 |
rm -f conftest.err conftest.$ac_ext |
|
20391 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
20392 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
20393 |
||
20394 |
# So? What about this header? |
|
20395 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
20396 |
yes:no: ) |
|
20397 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
20398 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
20399 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
20400 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
20401 |
ac_header_preproc=yes |
|
20402 |
;; |
|
20403 |
no:yes:* ) |
|
20404 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
20405 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
20406 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
20407 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
20408 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
20409 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
20410 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
20411 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
20412 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
20413 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
20414 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
20415 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
20416 |
( |
|
20417 |
cat <<\_ASBOX |
|
20418 |
## ------------------------------------------ ## |
|
20419 |
## Report this to the AC_PACKAGE_NAME lists. ## |
|
20420 |
## ------------------------------------------ ## |
|
20421 |
_ASBOX |
|
20422 |
) | |
|
20423 |
sed "s/^/$as_me: WARNING: /" >&2 |
|
20424 |
;; |
|
20425 |
esac |
|
20426 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
20427 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
20428 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
20429 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20430 |
else |
|
20431 |
eval "$as_ac_Header=\$ac_header_preproc" |
|
20432 |
fi |
|
20433 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
20434 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
20435 |
||
20436 |
fi |
|
20437 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
20438 |
cat >>confdefs.h <<_ACEOF |
|
20439 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
20440 |
_ACEOF |
|
20441 |
||
20442 |
fi |
|
20443 |
||
20444 |
done |
|
20445 |
||
20446 |
||
20447 |
||
20448 |
||
20449 |
||
20450 |
||
20451 |
||
20452 |
for ac_header in ieeefp.h nan.h math.h fp_class.h float.h ansidecl.h |
|
20453 |
do |
|
20454 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
20455 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
20456 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
20457 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
20458 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
20459 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20460 |
fi |
|
20461 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
20462 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
20463 |
else |
|
20464 |
# Is the header compilable? |
|
20465 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
20466 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
20467 |
cat >conftest.$ac_ext <<_ACEOF |
|
20468 |
/* confdefs.h. */ |
|
20469 |
_ACEOF |
|
20470 |
cat confdefs.h >>conftest.$ac_ext |
|
20471 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20472 |
/* end confdefs.h. */ |
|
20473 |
$ac_includes_default |
|
20474 |
#include <$ac_header> |
|
20475 |
_ACEOF |
|
20476 |
rm -f conftest.$ac_objext |
|
20477 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
20478 |
(eval $ac_compile) 2>conftest.er1 |
|
20479 |
ac_status=$? |
|
20480 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20481 |
rm -f conftest.er1 |
|
20482 |
cat conftest.err >&5 |
|
20483 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20484 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
20485 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
20486 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20487 |
(eval $ac_try) 2>&5 |
|
20488 |
ac_status=$? |
|
20489 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20490 |
(exit $ac_status); }; } && |
|
20491 |
{ ac_try='test -s conftest.$ac_objext' |
|
20492 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20493 |
(eval $ac_try) 2>&5 |
|
20494 |
ac_status=$? |
|
20495 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20496 |
(exit $ac_status); }; }; then |
|
20497 |
ac_header_compiler=yes |
|
20498 |
else |
|
20499 |
echo "$as_me: failed program was:" >&5 |
|
20500 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20501 |
||
20502 |
ac_header_compiler=no |
|
20503 |
fi |
|
20504 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
20505 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
20506 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
20507 |
||
20508 |
# Is the header present? |
|
20509 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
20510 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
20511 |
cat >conftest.$ac_ext <<_ACEOF |
|
20512 |
/* confdefs.h. */ |
|
20513 |
_ACEOF |
|
20514 |
cat confdefs.h >>conftest.$ac_ext |
|
20515 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20516 |
/* end confdefs.h. */ |
|
20517 |
#include <$ac_header> |
|
20518 |
_ACEOF |
|
20519 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
20520 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
20521 |
ac_status=$? |
|
20522 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20523 |
rm -f conftest.er1 |
|
20524 |
cat conftest.err >&5 |
|
20525 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20526 |
(exit $ac_status); } >/dev/null; then |
|
20527 |
if test -s conftest.err; then |
|
20528 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
20529 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
20530 |
else |
|
20531 |
ac_cpp_err= |
|
20532 |
fi |
|
20533 |
else |
|
20534 |
ac_cpp_err=yes |
|
20535 |
fi |
|
20536 |
if test -z "$ac_cpp_err"; then |
|
20537 |
ac_header_preproc=yes |
|
20538 |
else |
|
20539 |
echo "$as_me: failed program was:" >&5 |
|
20540 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20541 |
||
20542 |
ac_header_preproc=no |
|
20543 |
fi |
|
20544 |
rm -f conftest.err conftest.$ac_ext |
|
20545 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
20546 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
20547 |
||
20548 |
# So? What about this header? |
|
20549 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
20550 |
yes:no: ) |
|
20551 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
20552 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
20553 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
20554 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
20555 |
ac_header_preproc=yes |
|
20556 |
;; |
|
20557 |
no:yes:* ) |
|
20558 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
20559 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
20560 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
20561 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
20562 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
20563 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
20564 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
20565 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
20566 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
20567 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
20568 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
20569 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
20570 |
( |
|
20571 |
cat <<\_ASBOX |
|
20572 |
## ------------------------------------------ ## |
|
20573 |
## Report this to the AC_PACKAGE_NAME lists. ## |
|
20574 |
## ------------------------------------------ ## |
|
20575 |
_ASBOX |
|
20576 |
) | |
|
20577 |
sed "s/^/$as_me: WARNING: /" >&2 |
|
20578 |
;; |
|
20579 |
esac |
|
20580 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
20581 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
20582 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
20583 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20584 |
else |
|
20585 |
eval "$as_ac_Header=\$ac_header_preproc" |
|
20586 |
fi |
|
20587 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
20588 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
20589 |
||
20590 |
fi |
|
20591 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
20592 |
cat >>confdefs.h <<_ACEOF |
|
20593 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
20594 |
_ACEOF |
|
20595 |
||
20596 |
fi |
|
20597 |
||
20598 |
done |
|
20599 |
||
20600 |
||
20601 |
||
20602 |
||
20603 |
||
20604 |
||
20605 |
for ac_header in sys/timeb.h time.h sys/stat.h sys/select.h stdarg.h |
|
20606 |
do |
|
20607 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
20608 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
20609 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
20610 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
20611 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
20612 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20613 |
fi |
|
20614 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
20615 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
20616 |
else |
|
20617 |
# Is the header compilable? |
|
20618 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
20619 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
20620 |
cat >conftest.$ac_ext <<_ACEOF |
|
20621 |
/* confdefs.h. */ |
|
20622 |
_ACEOF |
|
20623 |
cat confdefs.h >>conftest.$ac_ext |
|
20624 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20625 |
/* end confdefs.h. */ |
|
20626 |
$ac_includes_default |
|
20627 |
#include <$ac_header> |
|
20628 |
_ACEOF |
|
20629 |
rm -f conftest.$ac_objext |
|
20630 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
20631 |
(eval $ac_compile) 2>conftest.er1 |
|
20632 |
ac_status=$? |
|
20633 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20634 |
rm -f conftest.er1 |
|
20635 |
cat conftest.err >&5 |
|
20636 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20637 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
20638 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
20639 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20640 |
(eval $ac_try) 2>&5 |
|
20641 |
ac_status=$? |
|
20642 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20643 |
(exit $ac_status); }; } && |
|
20644 |
{ ac_try='test -s conftest.$ac_objext' |
|
20645 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20646 |
(eval $ac_try) 2>&5 |
|
20647 |
ac_status=$? |
|
20648 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20649 |
(exit $ac_status); }; }; then |
|
20650 |
ac_header_compiler=yes |
|
20651 |
else |
|
20652 |
echo "$as_me: failed program was:" >&5 |
|
20653 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20654 |
||
20655 |
ac_header_compiler=no |
|
20656 |
fi |
|
20657 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
20658 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
20659 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
20660 |
||
20661 |
# Is the header present? |
|
20662 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
20663 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
20664 |
cat >conftest.$ac_ext <<_ACEOF |
|
20665 |
/* confdefs.h. */ |
|
20666 |
_ACEOF |
|
20667 |
cat confdefs.h >>conftest.$ac_ext |
|
20668 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20669 |
/* end confdefs.h. */ |
|
20670 |
#include <$ac_header> |
|
20671 |
_ACEOF |
|
20672 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
20673 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
20674 |
ac_status=$? |
|
20675 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20676 |
rm -f conftest.er1 |
|
20677 |
cat conftest.err >&5 |
|
20678 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20679 |
(exit $ac_status); } >/dev/null; then |
|
20680 |
if test -s conftest.err; then |
|
20681 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
20682 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
20683 |
else |
|
20684 |
ac_cpp_err= |
|
20685 |
fi |
|
20686 |
else |
|
20687 |
ac_cpp_err=yes |
|
20688 |
fi |
|
20689 |
if test -z "$ac_cpp_err"; then |
|
20690 |
ac_header_preproc=yes |
|
20691 |
else |
|
20692 |
echo "$as_me: failed program was:" >&5 |
|
20693 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20694 |
||
20695 |
ac_header_preproc=no |
|
20696 |
fi |
|
20697 |
rm -f conftest.err conftest.$ac_ext |
|
20698 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
20699 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
20700 |
||
20701 |
# So? What about this header? |
|
20702 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
20703 |
yes:no: ) |
|
20704 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
20705 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
20706 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
20707 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
20708 |
ac_header_preproc=yes |
|
20709 |
;; |
|
20710 |
no:yes:* ) |
|
20711 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
20712 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
20713 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
20714 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
20715 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
20716 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
20717 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
20718 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
20719 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
20720 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
20721 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
20722 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
20723 |
( |
|
20724 |
cat <<\_ASBOX |
|
20725 |
## ------------------------------------------ ## |
|
20726 |
## Report this to the AC_PACKAGE_NAME lists. ## |
|
20727 |
## ------------------------------------------ ## |
|
20728 |
_ASBOX |
|
20729 |
) | |
|
20730 |
sed "s/^/$as_me: WARNING: /" >&2 |
|
20731 |
;; |
|
20732 |
esac |
|
20733 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
20734 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
20735 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
20736 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20737 |
else |
|
20738 |
eval "$as_ac_Header=\$ac_header_preproc" |
|
20739 |
fi |
|
20740 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
20741 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
20742 |
||
20743 |
fi |
|
20744 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
20745 |
cat >>confdefs.h <<_ACEOF |
|
20746 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
20747 |
_ACEOF |
|
20748 |
||
20749 |
fi |
|
20750 |
||
20751 |
done |
|
20752 |
||
20753 |
||
20754 |
||
20755 |
for ac_func in stat _stat |
|
20756 |
do |
|
20757 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
20758 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
20759 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
20760 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
20761 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20762 |
else |
|
20763 |
cat >conftest.$ac_ext <<_ACEOF |
|
20764 |
/* confdefs.h. */ |
|
20765 |
_ACEOF |
|
20766 |
cat confdefs.h >>conftest.$ac_ext |
|
20767 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20768 |
/* end confdefs.h. */ |
|
20769 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
20770 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
20771 |
#define $ac_func innocuous_$ac_func |
|
20772 |
||
20773 |
/* System header to define __stub macros and hopefully few prototypes, |
|
20774 |
which can conflict with char $ac_func (); below. |
|
20775 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
20776 |
<limits.h> exists even on freestanding compilers. */ |
|
20777 |
||
20778 |
#ifdef __STDC__ |
|
20779 |
# include <limits.h> |
|
20780 |
#else |
|
20781 |
# include <assert.h> |
|
20782 |
#endif |
|
20783 |
||
20784 |
#undef $ac_func |
|
20785 |
||
20786 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
20787 |
#ifdef __cplusplus |
|
20788 |
extern "C" |
|
20789 |
{ |
|
20790 |
#endif |
|
20791 |
/* We use char because int might match the return type of a gcc2 |
|
20792 |
builtin and then its argument prototype would still apply. */ |
|
20793 |
char $ac_func (); |
|
20794 |
/* The GNU C library defines this for functions which it implements |
|
20795 |
to always fail with ENOSYS. Some functions are actually named |
|
20796 |
something starting with __ and the normal name is an alias. */ |
|
20797 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
20798 |
choke me |
|
20799 |
#else |
|
20800 |
char (*f) () = $ac_func; |
|
20801 |
#endif |
|
20802 |
#ifdef __cplusplus |
|
20803 |
} |
|
20804 |
#endif |
|
20805 |
||
20806 |
int |
|
20807 |
main () |
|
20808 |
{ |
|
20809 |
return f != $ac_func; |
|
20810 |
; |
|
20811 |
return 0; |
|
20812 |
} |
|
20813 |
_ACEOF |
|
20814 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
20815 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
20816 |
(eval $ac_link) 2>conftest.er1 |
|
20817 |
ac_status=$? |
|
20818 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20819 |
rm -f conftest.er1 |
|
20820 |
cat conftest.err >&5 |
|
20821 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20822 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
20823 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
20824 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20825 |
(eval $ac_try) 2>&5 |
|
20826 |
ac_status=$? |
|
20827 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20828 |
(exit $ac_status); }; } && |
|
20829 |
{ ac_try='test -s conftest$ac_exeext' |
|
20830 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20831 |
(eval $ac_try) 2>&5 |
|
20832 |
ac_status=$? |
|
20833 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20834 |
(exit $ac_status); }; }; then |
|
20835 |
eval "$as_ac_var=yes" |
|
20836 |
else |
|
20837 |
echo "$as_me: failed program was:" >&5 |
|
20838 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20839 |
||
20840 |
eval "$as_ac_var=no" |
|
20841 |
fi |
|
20842 |
rm -f conftest.err conftest.$ac_objext \ |
|
20843 |
conftest$ac_exeext conftest.$ac_ext |
|
20844 |
fi |
|
20845 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
20846 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
20847 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
20848 |
cat >>confdefs.h <<_ACEOF |
|
20849 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
20850 |
_ACEOF |
|
20851 |
||
20852 |
fi |
|
20853 |
done |
|
20854 |
||
20855 |
echo "$as_me:$LINENO: checking for isnan" >&5 |
|
20856 |
echo $ECHO_N "checking for isnan... $ECHO_C" >&6 |
|
20857 |
if test "${ac_cv_func_isnan+set}" = set; then |
|
20858 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20859 |
else |
|
20860 |
cat >conftest.$ac_ext <<_ACEOF |
|
20861 |
/* confdefs.h. */ |
|
20862 |
_ACEOF |
|
20863 |
cat confdefs.h >>conftest.$ac_ext |
|
20864 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20865 |
/* end confdefs.h. */ |
|
20866 |
/* Define isnan to an innocuous variant, in case <limits.h> declares isnan. |
|
20867 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
20868 |
#define isnan innocuous_isnan |
|
20869 |
||
20870 |
/* System header to define __stub macros and hopefully few prototypes, |
|
20871 |
which can conflict with char isnan (); below. |
|
20872 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
20873 |
<limits.h> exists even on freestanding compilers. */ |
|
20874 |
||
20875 |
#ifdef __STDC__ |
|
20876 |
# include <limits.h> |
|
20877 |
#else |
|
20878 |
# include <assert.h> |
|
20879 |
#endif |
|
20880 |
||
20881 |
#undef isnan |
|
20882 |
||
20883 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
20884 |
#ifdef __cplusplus |
|
20885 |
extern "C" |
|
20886 |
{ |
|
20887 |
#endif |
|
20888 |
/* We use char because int might match the return type of a gcc2 |
|
20889 |
builtin and then its argument prototype would still apply. */ |
|
20890 |
char isnan (); |
|
20891 |
/* The GNU C library defines this for functions which it implements |
|
20892 |
to always fail with ENOSYS. Some functions are actually named |
|
20893 |
something starting with __ and the normal name is an alias. */ |
|
20894 |
#if defined (__stub_isnan) || defined (__stub___isnan) |
|
20895 |
choke me |
|
20896 |
#else |
|
20897 |
char (*f) () = isnan; |
|
20898 |
#endif |
|
20899 |
#ifdef __cplusplus |
|
20900 |
} |
|
20901 |
#endif |
|
20902 |
||
20903 |
int |
|
20904 |
main () |
|
20905 |
{ |
|
20906 |
return f != isnan; |
|
20907 |
; |
|
20908 |
return 0; |
|
20909 |
} |
|
20910 |
_ACEOF |
|
20911 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
20912 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
20913 |
(eval $ac_link) 2>conftest.er1 |
|
20914 |
ac_status=$? |
|
20915 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20916 |
rm -f conftest.er1 |
|
20917 |
cat conftest.err >&5 |
|
20918 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20919 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
20920 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
20921 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20922 |
(eval $ac_try) 2>&5 |
|
20923 |
ac_status=$? |
|
20924 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20925 |
(exit $ac_status); }; } && |
|
20926 |
{ ac_try='test -s conftest$ac_exeext' |
|
20927 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20928 |
(eval $ac_try) 2>&5 |
|
20929 |
ac_status=$? |
|
20930 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20931 |
(exit $ac_status); }; }; then |
|
20932 |
ac_cv_func_isnan=yes |
|
20933 |
else |
|
20934 |
echo "$as_me: failed program was:" >&5 |
|
20935 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20936 |
||
20937 |
ac_cv_func_isnan=no |
|
20938 |
fi |
|
20939 |
rm -f conftest.err conftest.$ac_objext \ |
|
20940 |
conftest$ac_exeext conftest.$ac_ext |
|
20941 |
fi |
|
20942 |
echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5 |
|
20943 |
echo "${ECHO_T}$ac_cv_func_isnan" >&6 |
|
20944 |
if test $ac_cv_func_isnan = yes; then |
|
20945 |
: |
|
20946 |
else |
|
20947 |
echo "$as_me:$LINENO: checking for isnan in -lm" >&5 |
|
20948 |
echo $ECHO_N "checking for isnan in -lm... $ECHO_C" >&6 |
|
20949 |
if test "${ac_cv_lib_m_isnan+set}" = set; then |
|
20950 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20951 |
else |
|
20952 |
ac_check_lib_save_LIBS=$LIBS |
|
20953 |
LIBS="-lm $LIBS" |
|
20954 |
cat >conftest.$ac_ext <<_ACEOF |
|
20955 |
/* confdefs.h. */ |
|
20956 |
_ACEOF |
|
20957 |
cat confdefs.h >>conftest.$ac_ext |
|
20958 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20959 |
/* end confdefs.h. */ |
|
20960 |
||
20961 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
20962 |
#ifdef __cplusplus |
|
20963 |
extern "C" |
|
20964 |
#endif |
|
20965 |
/* We use char because int might match the return type of a gcc2 |
|
20966 |
builtin and then its argument prototype would still apply. */ |
|
20967 |
char isnan (); |
|
20968 |
int |
|
20969 |
main () |
|
20970 |
{ |
|
20971 |
isnan (); |
|
20972 |
; |
|
20973 |
return 0; |
|
20974 |
} |
|
20975 |
_ACEOF |
|
20976 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
20977 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
20978 |
(eval $ac_link) 2>conftest.er1 |
|
20979 |
ac_status=$? |
|
20980 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20981 |
rm -f conftest.er1 |
|
20982 |
cat conftest.err >&5 |
|
20983 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20984 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
20985 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
20986 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20987 |
(eval $ac_try) 2>&5 |
|
20988 |
ac_status=$? |
|
20989 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20990 |
(exit $ac_status); }; } && |
|
20991 |
{ ac_try='test -s conftest$ac_exeext' |
|
20992 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20993 |
(eval $ac_try) 2>&5 |
|
20994 |
ac_status=$? |
|
20995 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20996 |
(exit $ac_status); }; }; then |
|
20997 |
ac_cv_lib_m_isnan=yes |
|
20998 |
else |
|
20999 |
echo "$as_me: failed program was:" >&5 |
|
21000 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
21001 |
||
21002 |
ac_cv_lib_m_isnan=no |
|
21003 |
fi |
|
21004 |
rm -f conftest.err conftest.$ac_objext \ |
|
21005 |
conftest$ac_exeext conftest.$ac_ext |
|
21006 |
LIBS=$ac_check_lib_save_LIBS |
|
21007 |
fi |
|
21008 |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_isnan" >&5 |
|
21009 |
echo "${ECHO_T}$ac_cv_lib_m_isnan" >&6 |
|
21010 |
if test $ac_cv_lib_m_isnan = yes; then |
|
21011 |
M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF |
|
21012 |
#define HAVE_ISNAN 1 |
|
21013 |
_ACEOF |
|
21014 |
||
21015 |
fi |
|
21016 |
||
21017 |
fi |
|
21018 |
||
21019 |
||
21020 |
echo "$as_me:$LINENO: checking for isinf" >&5 |
|
21021 |
echo $ECHO_N "checking for isinf... $ECHO_C" >&6 |
|
21022 |
if test "${ac_cv_func_isinf+set}" = set; then |
|
21023 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21024 |
else |
|
21025 |
cat >conftest.$ac_ext <<_ACEOF |
|
21026 |
/* confdefs.h. */ |
|
21027 |
_ACEOF |
|
21028 |
cat confdefs.h >>conftest.$ac_ext |
|
21029 |
cat >>conftest.$ac_ext <<_ACEOF |
|
21030 |
/* end confdefs.h. */ |
|
21031 |
/* Define isinf to an innocuous variant, in case <limits.h> declares isinf. |
|
21032 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
21033 |
#define isinf innocuous_isinf |
|
21034 |
||
21035 |
/* System header to define __stub macros and hopefully few prototypes, |
|
21036 |
which can conflict with char isinf (); below. |
|
21037 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
21038 |
<limits.h> exists even on freestanding compilers. */ |
|
21039 |
||
21040 |
#ifdef __STDC__ |
|
21041 |
# include <limits.h> |
|
21042 |
#else |
|
21043 |
# include <assert.h> |
|
21044 |
#endif |
|
21045 |
||
21046 |
#undef isinf |
|
21047 |
||
21048 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
21049 |
#ifdef __cplusplus |
|
21050 |
extern "C" |
|
21051 |
{ |
|
21052 |
#endif |
|
21053 |
/* We use char because int might match the return type of a gcc2 |
|
21054 |
builtin and then its argument prototype would still apply. */ |
|
21055 |
char isinf (); |
|
21056 |
/* The GNU C library defines this for functions which it implements |
|
21057 |
to always fail with ENOSYS. Some functions are actually named |
|
21058 |
something starting with __ and the normal name is an alias. */ |
|
21059 |
#if defined (__stub_isinf) || defined (__stub___isinf) |
|
21060 |
choke me |
|
21061 |
#else |
|
21062 |
char (*f) () = isinf; |
|
21063 |
#endif |
|
21064 |
#ifdef __cplusplus |
|
21065 |
} |
|
21066 |
#endif |
|
21067 |
||
21068 |
int |
|
21069 |
main () |
|
21070 |
{ |
|
21071 |
return f != isinf; |
|
21072 |
; |
|
21073 |
return 0; |
|
21074 |
} |
|
21075 |
_ACEOF |
|
21076 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
21077 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
21078 |
(eval $ac_link) 2>conftest.er1 |
|
21079 |
ac_status=$? |
|
21080 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
21081 |
rm -f conftest.er1 |
|
21082 |
cat conftest.err >&5 |
|
21083 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21084 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
21085 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
21086 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21087 |
(eval $ac_try) 2>&5 |
|
21088 |
ac_status=$? |
|
21089 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21090 |
(exit $ac_status); }; } && |
|
21091 |
{ ac_try='test -s conftest$ac_exeext' |
|
21092 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
21093 |
(eval $ac_try) 2>&5 |
|
21094 |
ac_status=$? |
|
21095 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21096 |
(exit $ac_status); }; }; then |
|
21097 |
ac_cv_func_isinf=yes |
|
21098 |
else |
|
21099 |
echo "$as_me: failed program was:" >&5 |
|
21100 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
21101 |
||
21102 |
ac_cv_func_isinf=no |
|
21103 |
fi |
|
21104 |
rm -f conftest.err conftest.$ac_objext \ |
|
21105 |
conftest$ac_exeext conftest.$ac_ext |
|
21106 |
fi |
|
21107 |
echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5 |
|
21108 |
echo "${ECHO_T}$ac_cv_func_isinf" >&6 |
|
21109 |
if test $ac_cv_func_isinf = yes; then |
|
21110 |
: |
|
21111 |
else |
|
21112 |
echo "$as_me:$LINENO: checking for isinf in -lm" >&5 |
|
21113 |
echo $ECHO_N "checking for isinf in -lm... $ECHO_C" >&6 |
|
21114 |
if test "${ac_cv_lib_m_isinf+set}" = set; then |
|
21115 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21116 |
else |
|
21117 |
ac_check_lib_save_LIBS=$LIBS |
|
21118 |
LIBS="-lm $LIBS" |
|
21119 |
cat >conftest.$ac_ext <<_ACEOF |
|
21120 |
/* confdefs.h. */ |
|
21121 |
_ACEOF |
|
21122 |
cat confdefs.h >>conftest.$ac_ext |
|
21123 |
cat >>conftest.$ac_ext <<_ACEOF |
|
21124 |
/* end confdefs.h. */ |
|
21125 |
||
21126 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
21127 |
#ifdef __cplusplus |
|
21128 |
extern "C" |
|
21129 |
#endif |
|
21130 |
/* We use char because int might match the return type of a gcc2 |
|
21131 |
builtin and then its argument prototype would still apply. */ |
|
21132 |
char isinf (); |
|
21133 |
int |
|
21134 |
main () |
|
21135 |
{ |
|
21136 |
isinf (); |
|
21137 |
; |
|
21138 |
return 0; |
|
21139 |
} |
|
21140 |
_ACEOF |
|
21141 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
21142 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
21143 |
(eval $ac_link) 2>conftest.er1 |
|
21144 |
ac_status=$? |
|
21145 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
21146 |
rm -f conftest.er1 |
|
21147 |
cat conftest.err >&5 |
|
21148 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21149 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
21150 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
21151 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21152 |
(eval $ac_try) 2>&5 |
|
21153 |
ac_status=$? |
|
21154 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21155 |
(exit $ac_status); }; } && |
|
21156 |
{ ac_try='test -s conftest$ac_exeext' |
|
21157 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
21158 |
(eval $ac_try) 2>&5 |
|
21159 |
ac_status=$? |
|
21160 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21161 |
(exit $ac_status); }; }; then |
|
21162 |
ac_cv_lib_m_isinf=yes |
|
21163 |
else |
|
21164 |
echo "$as_me: failed program was:" >&5 |
|
21165 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
21166 |
||
21167 |
ac_cv_lib_m_isinf=no |
|
21168 |
fi |
|
21169 |
rm -f conftest.err conftest.$ac_objext \ |
|
21170 |
conftest$ac_exeext conftest.$ac_ext |
|
21171 |
LIBS=$ac_check_lib_save_LIBS |
|
21172 |
fi |
|
21173 |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_isinf" >&5 |
|
21174 |
echo "${ECHO_T}$ac_cv_lib_m_isinf" >&6 |
|
21175 |
if test $ac_cv_lib_m_isinf = yes; then |
|
21176 |
M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF |
|
21177 |
#define HAVE_ISINF 1 |
|
21178 |
_ACEOF |
|
21179 |
||
21180 |
fi |
|
21181 |
||
21182 |
fi |
|
21183 |
||
21184 |
||
21185 |
echo "$as_me:$LINENO: checking for pow" >&5 |
|
21186 |
echo $ECHO_N "checking for pow... $ECHO_C" >&6 |
|
21187 |
if test "${ac_cv_func_pow+set}" = set; then |
|
21188 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21189 |
else |
|
21190 |
cat >conftest.$ac_ext <<_ACEOF |
|
21191 |
/* confdefs.h. */ |
|
21192 |
_ACEOF |
|
21193 |
cat confdefs.h >>conftest.$ac_ext |
|
21194 |
cat >>conftest.$ac_ext <<_ACEOF |
|
21195 |
/* end confdefs.h. */ |
|
21196 |
/* Define pow to an innocuous variant, in case <limits.h> declares pow. |
|
21197 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
21198 |
#define pow innocuous_pow |
|
21199 |
||
21200 |
/* System header to define __stub macros and hopefully few prototypes, |
|
21201 |
which can conflict with char pow (); below. |
|
21202 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
21203 |
<limits.h> exists even on freestanding compilers. */ |
|
21204 |
||
21205 |
#ifdef __STDC__ |
|
21206 |
# include <limits.h> |
|
21207 |
#else |
|
21208 |
# include <assert.h> |
|
21209 |
#endif |
|
21210 |
||
21211 |
#undef pow |
|
21212 |
||
21213 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
21214 |
#ifdef __cplusplus |
|
21215 |
extern "C" |
|
21216 |
{ |
|
21217 |
#endif |
|
21218 |
/* We use char because int might match the return type of a gcc2 |
|
21219 |
builtin and then its argument prototype would still apply. */ |
|
21220 |
char pow (); |
|
21221 |
/* The GNU C library defines this for functions which it implements |
|
21222 |
to always fail with ENOSYS. Some functions are actually named |
|
21223 |
something starting with __ and the normal name is an alias. */ |
|
21224 |
#if defined (__stub_pow) || defined (__stub___pow) |
|
21225 |
choke me |
|
21226 |
#else |
|
21227 |
char (*f) () = pow; |
|
21228 |
#endif |
|
21229 |
#ifdef __cplusplus |
|
21230 |
} |
|
21231 |
#endif |
|
21232 |
||
21233 |
int |
|
21234 |
main () |
|
21235 |
{ |
|
21236 |
return f != pow; |
|
21237 |
; |
|
21238 |
return 0; |
|
21239 |
} |
|
21240 |
_ACEOF |
|
21241 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
21242 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
21243 |
(eval $ac_link) 2>conftest.er1 |
|
21244 |
ac_status=$? |
|
21245 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
21246 |
rm -f conftest.er1 |
|
21247 |
cat conftest.err >&5 |
|
21248 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21249 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
21250 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
21251 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21252 |
(eval $ac_try) 2>&5 |
|
21253 |
ac_status=$? |
|
21254 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21255 |
(exit $ac_status); }; } && |
|
21256 |
{ ac_try='test -s conftest$ac_exeext' |
|
21257 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
21258 |
(eval $ac_try) 2>&5 |
|
21259 |
ac_status=$? |
|
21260 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21261 |
(exit $ac_status); }; }; then |
|
21262 |
ac_cv_func_pow=yes |
|
21263 |
else |
|
21264 |
echo "$as_me: failed program was:" >&5 |
|
21265 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
21266 |
||
21267 |
ac_cv_func_pow=no |
|
21268 |
fi |
|
21269 |
rm -f conftest.err conftest.$ac_objext \ |
|
21270 |
conftest$ac_exeext conftest.$ac_ext |
|
21271 |
fi |
|
21272 |
echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
|
21273 |
echo "${ECHO_T}$ac_cv_func_pow" >&6 |
|
21274 |
if test $ac_cv_func_pow = yes; then |
|
21275 |
: |
|
21276 |
else |
|
21277 |
echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
|
21278 |
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 |
|
21279 |
if test "${ac_cv_lib_m_pow+set}" = set; then |
|
21280 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21281 |
else |
|
21282 |
ac_check_lib_save_LIBS=$LIBS |
|
21283 |
LIBS="-lm $LIBS" |
|
21284 |
cat >conftest.$ac_ext <<_ACEOF |
|
21285 |
/* confdefs.h. */ |
|
21286 |
_ACEOF |
|
21287 |
cat confdefs.h >>conftest.$ac_ext |
|
21288 |
cat >>conftest.$ac_ext <<_ACEOF |
|
21289 |
/* end confdefs.h. */ |
|
21290 |
||
21291 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
21292 |
#ifdef __cplusplus |
|
21293 |
extern "C" |
|
21294 |
#endif |
|
21295 |
/* We use char because int might match the return type of a gcc2 |
|
21296 |
builtin and then its argument prototype would still apply. */ |
|
21297 |
char pow (); |
|
21298 |
int |
|
21299 |
main () |
|
21300 |
{ |
|
21301 |
pow (); |
|
21302 |
; |
|
21303 |
return 0; |
|
21304 |
} |
|
21305 |
_ACEOF |
|
21306 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
21307 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
21308 |
(eval $ac_link) 2>conftest.er1 |
|
21309 |
ac_status=$? |
|
21310 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
21311 |
rm -f conftest.er1 |
|
21312 |
cat conftest.err >&5 |
|
21313 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21314 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
21315 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
21316 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21317 |
(eval $ac_try) 2>&5 |
|
21318 |
ac_status=$? |
|
21319 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21320 |
(exit $ac_status); }; } && |
|
21321 |
{ ac_try='test -s conftest$ac_exeext' |
|
21322 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
21323 |
(eval $ac_try) 2>&5 |
|
21324 |
ac_status=$? |
|
21325 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21326 |
(exit $ac_status); }; }; then |
|
21327 |
ac_cv_lib_m_pow=yes |
|
21328 |
else |
|
21329 |
echo "$as_me: failed program was:" >&5 |
|
21330 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
21331 |
||
21332 |
ac_cv_lib_m_pow=no |
|
21333 |
fi |
|
21334 |
rm -f conftest.err conftest.$ac_objext \ |
|
21335 |
conftest$ac_exeext conftest.$ac_ext |
|
21336 |
LIBS=$ac_check_lib_save_LIBS |
|
21337 |
fi |
|
21338 |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
|
21339 |
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 |
|
21340 |
if test $ac_cv_lib_m_pow = yes; then |
|
21341 |
M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF |
|
21342 |
#define HAVE_POW 1 |
|
21343 |
_ACEOF |
|
21344 |
||
21345 |
fi |
|
21346 |
||
21347 |
fi |
|
21348 |
||
21349 |
||
21350 |
echo "$as_me:$LINENO: checking for floor" >&5 |
|
21351 |
echo $ECHO_N "checking for floor... $ECHO_C" >&6 |
|
21352 |
if test "${ac_cv_func_floor+set}" = set; then |
|
21353 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21354 |
else |
|
21355 |
cat >conftest.$ac_ext <<_ACEOF |
|
21356 |
/* confdefs.h. */ |
|
21357 |
_ACEOF |
|
21358 |
cat confdefs.h >>conftest.$ac_ext |
|
21359 |
cat >>conftest.$ac_ext <<_ACEOF |
|
21360 |
/* end confdefs.h. */ |
|
21361 |
/* Define floor to an innocuous variant, in case <limits.h> declares floor. |
|
21362 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
21363 |
#define floor innocuous_floor |
|
21364 |
||
21365 |
/* System header to define __stub macros and hopefully few prototypes, |
|
21366 |
which can conflict with char floor (); below. |
|
21367 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
21368 |
<limits.h> exists even on freestanding compilers. */ |
|
21369 |
||
21370 |
#ifdef __STDC__ |
|
21371 |
# include <limits.h> |
|
21372 |
#else |
|
21373 |
# include <assert.h> |
|
21374 |
#endif |
|
21375 |
||
21376 |
#undef floor |
|
21377 |
||
21378 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
21379 |
#ifdef __cplusplus |
|
21380 |
extern "C" |
|
21381 |
{ |
|
21382 |
#endif |
|
21383 |
/* We use char because int might match the return type of a gcc2 |
|
21384 |
builtin and then its argument prototype would still apply. */ |
|
21385 |
char floor (); |
|
21386 |
/* The GNU C library defines this for functions which it implements |
|
21387 |
to always fail with ENOSYS. Some functions are actually named |
|
21388 |
something starting with __ and the normal name is an alias. */ |
|
21389 |
#if defined (__stub_floor) || defined (__stub___floor) |
|
21390 |
choke me |
|
21391 |
#else |
|
21392 |
char (*f) () = floor; |
|
21393 |
#endif |
|
21394 |
#ifdef __cplusplus |
|
21395 |
} |
|
21396 |
#endif |
|
21397 |
||
21398 |
int |
|
21399 |
main () |
|
21400 |
{ |
|
21401 |
return f != floor; |
|
21402 |
; |
|
21403 |
return 0; |
|
21404 |
} |
|
21405 |
_ACEOF |
|
21406 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
21407 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
21408 |
(eval $ac_link) 2>conftest.er1 |
|
21409 |
ac_status=$? |
|
21410 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
21411 |
rm -f conftest.er1 |
|
21412 |
cat conftest.err >&5 |
|
21413 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21414 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
21415 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
21416 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21417 |
(eval $ac_try) 2>&5 |
|
21418 |
ac_status=$? |
|
21419 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21420 |
(exit $ac_status); }; } && |
|
21421 |
{ ac_try='test -s conftest$ac_exeext' |
|
21422 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
21423 |
(eval $ac_try) 2>&5 |
|
21424 |
ac_status=$? |
|
21425 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21426 |
(exit $ac_status); }; }; then |
|
21427 |
ac_cv_func_floor=yes |
|
21428 |
else |
|
21429 |
echo "$as_me: failed program was:" >&5 |
|
21430 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
21431 |
||
21432 |
ac_cv_func_floor=no |
|
21433 |
fi |
|
21434 |
rm -f conftest.err conftest.$ac_objext \ |
|
21435 |
conftest$ac_exeext conftest.$ac_ext |
|
21436 |
fi |
|
21437 |
echo "$as_me:$LINENO: result: $ac_cv_func_floor" >&5 |
|
21438 |
echo "${ECHO_T}$ac_cv_func_floor" >&6 |
|
21439 |
if test $ac_cv_func_floor = yes; then |
|
21440 |
: |
|
21441 |
else |
|
21442 |
echo "$as_me:$LINENO: checking for floor in -lm" >&5 |
|
21443 |
echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 |
|
21444 |
if test "${ac_cv_lib_m_floor+set}" = set; then |
|
21445 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21446 |
else |
|
21447 |
ac_check_lib_save_LIBS=$LIBS |
|
21448 |
LIBS="-lm $LIBS" |
|
21449 |
cat >conftest.$ac_ext <<_ACEOF |
|
21450 |
/* confdefs.h. */ |
|
21451 |
_ACEOF |
|
21452 |
cat confdefs.h >>conftest.$ac_ext |
|
21453 |
cat >>conftest.$ac_ext <<_ACEOF |
|
21454 |
/* end confdefs.h. */ |
|
21455 |
||
21456 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
21457 |
#ifdef __cplusplus |
|
21458 |
extern "C" |
|
21459 |
#endif |
|
21460 |
/* We use char because int might match the return type of a gcc2 |
|
21461 |
builtin and then its argument prototype would still apply. */ |
|
21462 |
char floor (); |
|
21463 |
int |
|
21464 |
main () |
|
21465 |
{ |
|
21466 |
floor (); |
|
21467 |
; |
|
21468 |
return 0; |
|
21469 |
} |
|
21470 |
_ACEOF |
|
21471 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
21472 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
21473 |
(eval $ac_link) 2>conftest.er1 |
|
21474 |
ac_status=$? |
|
21475 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
21476 |
rm -f conftest.er1 |
|
21477 |
cat conftest.err >&5 |
|
21478 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21479 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
21480 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
21481 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21482 |
(eval $ac_try) 2>&5 |
|
21483 |
ac_status=$? |
|
21484 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21485 |
(exit $ac_status); }; } && |
|
21486 |
{ ac_try='test -s conftest$ac_exeext' |
|
21487 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
21488 |
(eval $ac_try) 2>&5 |
|
21489 |
ac_status=$? |
|
21490 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21491 |
(exit $ac_status); }; }; then |
|
21492 |
ac_cv_lib_m_floor=yes |
|
21493 |
else |
|
21494 |
echo "$as_me: failed program was:" >&5 |
|
21495 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
21496 |
||
21497 |
ac_cv_lib_m_floor=no |
|
21498 |
fi |
|
21499 |
rm -f conftest.err conftest.$ac_objext \ |
|
21500 |
conftest$ac_exeext conftest.$ac_ext |
|
21501 |
LIBS=$ac_check_lib_save_LIBS |
|
21502 |
fi |
|
21503 |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 |
|
21504 |
echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 |
|
21505 |
if test $ac_cv_lib_m_floor = yes; then |
|
21506 |
M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF |
|
21507 |
#define HAVE_FLOOR 1 |
|
21508 |
_ACEOF |
|
21509 |
||
21510 |
fi |
|
21511 |
||
21512 |
fi |
|
21513 |
||
21514 |
||
21515 |
echo "$as_me:$LINENO: checking for fabs" >&5 |
|
21516 |
echo $ECHO_N "checking for fabs... $ECHO_C" >&6 |
|
21517 |
if test "${ac_cv_func_fabs+set}" = set; then |
|
21518 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21519 |
else |
|
21520 |
cat >conftest.$ac_ext <<_ACEOF |
|
21521 |
/* confdefs.h. */ |
|
21522 |
_ACEOF |
|
21523 |
cat confdefs.h >>conftest.$ac_ext |
|
21524 |
cat >>conftest.$ac_ext <<_ACEOF |
|
21525 |
/* end confdefs.h. */ |
|
21526 |
/* Define fabs to an innocuous variant, in case <limits.h> declares fabs. |
|
21527 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
21528 |
#define fabs innocuous_fabs |
|
21529 |
||
21530 |
/* System header to define __stub macros and hopefully few prototypes, |
|
21531 |
which can conflict with char fabs (); below. |
|
21532 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
21533 |
<limits.h> exists even on freestanding compilers. */ |
|
21534 |
||
21535 |
#ifdef __STDC__ |
|
21536 |
# include <limits.h> |
|
21537 |
#else |
|
21538 |
# include <assert.h> |
|
21539 |
#endif |
|
21540 |
||
21541 |
#undef fabs |
|
21542 |
||
21543 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
21544 |
#ifdef __cplusplus |
|
21545 |
extern "C" |
|
21546 |
{ |
|
21547 |
#endif |
|
21548 |
/* We use char because int might match the return type of a gcc2 |
|
21549 |
builtin and then its argument prototype would still apply. */ |
|
21550 |
char fabs (); |
|
21551 |
/* The GNU C library defines this for functions which it implements |
|
21552 |
to always fail with ENOSYS. Some functions are actually named |
|
21553 |
something starting with __ and the normal name is an alias. */ |
|
21554 |
#if defined (__stub_fabs) || defined (__stub___fabs) |
|
21555 |
choke me |
|
21556 |
#else |
|
21557 |
char (*f) () = fabs; |
|
21558 |
#endif |
|
21559 |
#ifdef __cplusplus |
|
21560 |
} |
|
21561 |
#endif |
|
21562 |
||
21563 |
int |
|
21564 |
main () |
|
21565 |
{ |
|
21566 |
return f != fabs; |
|
21567 |
; |
|
21568 |
return 0; |
|
21569 |
} |
|
21570 |
_ACEOF |
|
21571 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
21572 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
21573 |
(eval $ac_link) 2>conftest.er1 |
|
21574 |
ac_status=$? |
|
21575 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
21576 |
rm -f conftest.er1 |
|
21577 |
cat conftest.err >&5 |
|
21578 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21579 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
21580 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
21581 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21582 |
(eval $ac_try) 2>&5 |
|
21583 |
ac_status=$? |
|
21584 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21585 |
(exit $ac_status); }; } && |
|
21586 |
{ ac_try='test -s conftest$ac_exeext' |
|
21587 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
21588 |
(eval $ac_try) 2>&5 |
|
21589 |
ac_status=$? |
|
21590 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21591 |
(exit $ac_status); }; }; then |
|
21592 |
ac_cv_func_fabs=yes |
|
21593 |
else |
|
21594 |
echo "$as_me: failed program was:" >&5 |
|
21595 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
21596 |
||
21597 |
ac_cv_func_fabs=no |
|
21598 |
fi |
|
21599 |
rm -f conftest.err conftest.$ac_objext \ |
|
21600 |
conftest$ac_exeext conftest.$ac_ext |
|
21601 |
fi |
|
21602 |
echo "$as_me:$LINENO: result: $ac_cv_func_fabs" >&5 |
|
21603 |
echo "${ECHO_T}$ac_cv_func_fabs" >&6 |
|
21604 |
if test $ac_cv_func_fabs = yes; then |
|
21605 |
: |
|
21606 |
else |
|
21607 |
echo "$as_me:$LINENO: checking for fabs in -lm" >&5 |
|
21608 |
echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6 |
|
21609 |
if test "${ac_cv_lib_m_fabs+set}" = set; then |
|
21610 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21611 |
else |
|
21612 |
ac_check_lib_save_LIBS=$LIBS |
|
21613 |
LIBS="-lm $LIBS" |
|
21614 |
cat >conftest.$ac_ext <<_ACEOF |
|
21615 |
/* confdefs.h. */ |
|
21616 |
_ACEOF |
|
21617 |
cat confdefs.h >>conftest.$ac_ext |
|
21618 |
cat >>conftest.$ac_ext <<_ACEOF |
|
21619 |
/* end confdefs.h. */ |
|
21620 |
||
21621 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
21622 |
#ifdef __cplusplus |
|
21623 |
extern "C" |
|
21624 |
#endif |
|
21625 |
/* We use char because int might match the return type of a gcc2 |
|
21626 |
builtin and then its argument prototype would still apply. */ |
|
21627 |
char fabs (); |
|
21628 |
int |
|
21629 |
main () |
|
21630 |
{ |
|
21631 |
fabs (); |
|
21632 |
; |
|
21633 |
return 0; |
|
21634 |
} |
|
21635 |
_ACEOF |
|
21636 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
21637 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
21638 |
(eval $ac_link) 2>conftest.er1 |
|
21639 |
ac_status=$? |
|
21640 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
21641 |
rm -f conftest.er1 |
|
21642 |
cat conftest.err >&5 |
|
21643 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21644 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
21645 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
21646 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21647 |
(eval $ac_try) 2>&5 |
|
21648 |
ac_status=$? |
|
21649 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21650 |
(exit $ac_status); }; } && |
|
21651 |
{ ac_try='test -s conftest$ac_exeext' |
|
21652 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
21653 |
(eval $ac_try) 2>&5 |
|
21654 |
ac_status=$? |
|
21655 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21656 |
(exit $ac_status); }; }; then |
|
21657 |
ac_cv_lib_m_fabs=yes |
|
21658 |
else |
|
21659 |
echo "$as_me: failed program was:" >&5 |
|
21660 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
21661 |
||
21662 |
ac_cv_lib_m_fabs=no |
|
21663 |
fi |
|
21664 |
rm -f conftest.err conftest.$ac_objext \ |
|
21665 |
conftest$ac_exeext conftest.$ac_ext |
|
21666 |
LIBS=$ac_check_lib_save_LIBS |
|
21667 |
fi |
|
21668 |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5 |
|
21669 |
echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6 |
|
21670 |
if test $ac_cv_lib_m_fabs = yes; then |
|
21671 |
M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF |
|
21672 |
#define HAVE_FABS 1 |
|
21673 |
_ACEOF |
|
21674 |
||
21675 |
fi |
|
21676 |
||
21677 |
fi |
|
21678 |
||
21679 |
||
21680 |
for ac_func in gettimeofday |
|
21681 |
do |
|
21682 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
21683 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
21684 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
21685 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
21686 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21687 |
else |
|
21688 |
cat >conftest.$ac_ext <<_ACEOF |
|
21689 |
/* confdefs.h. */ |
|
21690 |
_ACEOF |
|
21691 |
cat confdefs.h >>conftest.$ac_ext |
|
21692 |
cat >>conftest.$ac_ext <<_ACEOF |
|
21693 |
/* end confdefs.h. */ |
|
21694 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
21695 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
21696 |
#define $ac_func innocuous_$ac_func |
|
21697 |
||
21698 |
/* System header to define __stub macros and hopefully few prototypes, |
|
21699 |
which can conflict with char $ac_func (); below. |
|
21700 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
21701 |
<limits.h> exists even on freestanding compilers. */ |
|
21702 |
||
21703 |
#ifdef __STDC__ |
|
21704 |
# include <limits.h> |
|
21705 |
#else |
|
21706 |
# include <assert.h> |
|
21707 |
#endif |
|
21708 |
||
21709 |
#undef $ac_func |
|
21710 |
||
21711 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
21712 |
#ifdef __cplusplus |
|
21713 |
extern "C" |
|
21714 |
{ |
|
21715 |
#endif |
|
21716 |
/* We use char because int might match the return type of a gcc2 |
|
21717 |
builtin and then its argument prototype would still apply. */ |
|
21718 |
char $ac_func (); |
|
21719 |
/* The GNU C library defines this for functions which it implements |
|
21720 |
to always fail with ENOSYS. Some functions are actually named |
|
21721 |
something starting with __ and the normal name is an alias. */ |
|
21722 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
21723 |
choke me |
|
21724 |
#else |
|
21725 |
char (*f) () = $ac_func; |
|
21726 |
#endif |
|
21727 |
#ifdef __cplusplus |
|
21728 |
} |
|
21729 |
#endif |
|
21730 |
||
21731 |
int |
|
21732 |
main () |
|
21733 |
{ |
|
21734 |
return f != $ac_func; |
|
21735 |
; |
|
21736 |
return 0; |
|
21737 |
} |
|
21738 |
_ACEOF |
|
21739 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
21740 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
21741 |
(eval $ac_link) 2>conftest.er1 |
|
21742 |
ac_status=$? |
|
21743 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
21744 |
rm -f conftest.er1 |
|
21745 |
cat conftest.err >&5 |
|
21746 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21747 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
21748 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
21749 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21750 |
(eval $ac_try) 2>&5 |
|
21751 |
ac_status=$? |
|
21752 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21753 |
(exit $ac_status); }; } && |
|
21754 |
{ ac_try='test -s conftest$ac_exeext' |
|
21755 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
21756 |
(eval $ac_try) 2>&5 |
|
21757 |
ac_status=$? |
|
21758 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21759 |
(exit $ac_status); }; }; then |
|
21760 |
eval "$as_ac_var=yes" |
|
21761 |
else |
|
21762 |
echo "$as_me: failed program was:" >&5 |
|
21763 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
21764 |
||
21765 |
eval "$as_ac_var=no" |
|
21766 |
fi |
|
21767 |
rm -f conftest.err conftest.$ac_objext \ |
|
21768 |
conftest$ac_exeext conftest.$ac_ext |
|
21769 |
fi |
|
21770 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
21771 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
21772 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
21773 |
cat >>confdefs.h <<_ACEOF |
|
21774 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
21775 |
_ACEOF |
|
21776 |
||
21777 |
fi |
|
21778 |
done |
|
21779 |
||
21780 |
||
21781 |
||
21782 |
||
21783 |
||
21784 |
||
21785 |
||
21786 |
||
21787 |
for ac_func in mktime localtime localtime_r asctime time gmtime_r ftime |
|
21788 |
do |
|
21789 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
21790 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
21791 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
21792 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
21793 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21794 |
else |
|
21795 |
cat >conftest.$ac_ext <<_ACEOF |
|
21796 |
/* confdefs.h. */ |
|
21797 |
_ACEOF |
|
21798 |
cat confdefs.h >>conftest.$ac_ext |
|
21799 |
cat >>conftest.$ac_ext <<_ACEOF |
|
21800 |
/* end confdefs.h. */ |
|
21801 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
21802 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
21803 |
#define $ac_func innocuous_$ac_func |
|
21804 |
||
21805 |
/* System header to define __stub macros and hopefully few prototypes, |
|
21806 |
which can conflict with char $ac_func (); below. |
|
21807 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
21808 |
<limits.h> exists even on freestanding compilers. */ |
|
21809 |
||
21810 |
#ifdef __STDC__ |
|
21811 |
# include <limits.h> |
|
21812 |
#else |
|
21813 |
# include <assert.h> |
|
21814 |
#endif |
|
21815 |
||
21816 |
#undef $ac_func |
|
21817 |
||
21818 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
21819 |
#ifdef __cplusplus |
|
21820 |
extern "C" |
|
21821 |
{ |
|
21822 |
#endif |
|
21823 |
/* We use char because int might match the return type of a gcc2 |
|
21824 |
builtin and then its argument prototype would still apply. */ |
|
21825 |
char $ac_func (); |
|
21826 |
/* The GNU C library defines this for functions which it implements |
|
21827 |
to always fail with ENOSYS. Some functions are actually named |
|
21828 |
something starting with __ and the normal name is an alias. */ |
|
21829 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
21830 |
choke me |
|
21831 |
#else |
|
21832 |
char (*f) () = $ac_func; |
|
21833 |
#endif |
|
21834 |
#ifdef __cplusplus |
|
21835 |
} |
|
21836 |
#endif |
|
21837 |
||
21838 |
int |
|
21839 |
main () |
|
21840 |
{ |
|
21841 |
return f != $ac_func; |
|
21842 |
; |
|
21843 |
return 0; |
|
21844 |
} |
|
21845 |
_ACEOF |
|
21846 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
21847 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
21848 |
(eval $ac_link) 2>conftest.er1 |
|
21849 |
ac_status=$? |
|
21850 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
21851 |
rm -f conftest.er1 |
|
21852 |
cat conftest.err >&5 |
|
21853 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21854 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
21855 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
21856 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21857 |
(eval $ac_try) 2>&5 |
|
21858 |
ac_status=$? |
|
21859 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21860 |
(exit $ac_status); }; } && |
|
21861 |
{ ac_try='test -s conftest$ac_exeext' |
|
21862 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
21863 |
(eval $ac_try) 2>&5 |
|
21864 |
ac_status=$? |
|
21865 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21866 |
(exit $ac_status); }; }; then |
|
21867 |
eval "$as_ac_var=yes" |
|
21868 |
else |
|
21869 |
echo "$as_me: failed program was:" >&5 |
|
21870 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
21871 |
||
21872 |
eval "$as_ac_var=no" |
|
21873 |
fi |
|
21874 |
rm -f conftest.err conftest.$ac_objext \ |
|
21875 |
conftest$ac_exeext conftest.$ac_ext |
|
21876 |
fi |
|
21877 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
21878 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
21879 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
21880 |
cat >>confdefs.h <<_ACEOF |
|
21881 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
21882 |
_ACEOF |
|
21883 |
||
21884 |
fi |
|
21885 |
done |
|
21886 |
||
21887 |
||
21888 |
||
21889 |
||
21890 |
||
21891 |
||
21892 |
||
21893 |
||
21894 |
||
21895 |
||
21896 |
for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf |
|
21897 |
do |
|
21898 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
21899 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
21900 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
21901 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
21902 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21903 |
else |
|
21904 |
cat >conftest.$ac_ext <<_ACEOF |
|
21905 |
/* confdefs.h. */ |
|
21906 |
_ACEOF |
|
21907 |
cat confdefs.h >>conftest.$ac_ext |
|
21908 |
cat >>conftest.$ac_ext <<_ACEOF |
|
21909 |
/* end confdefs.h. */ |
|
21910 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
21911 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
21912 |
#define $ac_func innocuous_$ac_func |
|
21913 |
||
21914 |
/* System header to define __stub macros and hopefully few prototypes, |
|
21915 |
which can conflict with char $ac_func (); below. |
|
21916 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
21917 |
<limits.h> exists even on freestanding compilers. */ |
|
21918 |
||
21919 |
#ifdef __STDC__ |
|
21920 |
# include <limits.h> |
|
21921 |
#else |
|
21922 |
# include <assert.h> |
|
21923 |
#endif |
|
21924 |
||
21925 |
#undef $ac_func |
|
21926 |
||
21927 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
21928 |
#ifdef __cplusplus |
|
21929 |
extern "C" |
|
21930 |
{ |
|
21931 |
#endif |
|
21932 |
/* We use char because int might match the return type of a gcc2 |
|
21933 |
builtin and then its argument prototype would still apply. */ |
|
21934 |
char $ac_func (); |
|
21935 |
/* The GNU C library defines this for functions which it implements |
|
21936 |
to always fail with ENOSYS. Some functions are actually named |
|
21937 |
something starting with __ and the normal name is an alias. */ |
|
21938 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
21939 |
choke me |
|
21940 |
#else |
|
21941 |
char (*f) () = $ac_func; |
|
21942 |
#endif |
|
21943 |
#ifdef __cplusplus |
|
21944 |
} |
|
21945 |
#endif |
|
21946 |
||
21947 |
int |
|
21948 |
main () |
|
21949 |
{ |
|
21950 |
return f != $ac_func; |
|
21951 |
; |
|
21952 |
return 0; |
|
21953 |
} |
|
21954 |
_ACEOF |
|
21955 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
21956 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
21957 |
(eval $ac_link) 2>conftest.er1 |
|
21958 |
ac_status=$? |
|
21959 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
21960 |
rm -f conftest.er1 |
|
21961 |
cat conftest.err >&5 |
|
21962 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21963 |
(exit $ac_status); } && |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
21964 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Daniel Holbach
Import upstream version 1.1.15 |
21965 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21966 |
(eval $ac_try) 2>&5 |
|
21967 |
ac_status=$? |
|
21968 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21969 |
(exit $ac_status); }; } && |
|
21970 |
{ ac_try='test -s conftest$ac_exeext' |
|
21971 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
21972 |
(eval $ac_try) 2>&5 |
|
21973 |
ac_status=$? |
|
21974 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21975 |
(exit $ac_status); }; }; then |
|
21976 |
eval "$as_ac_var=yes" |
|
21977 |
else |
|
21978 |
echo "$as_me: failed program was:" >&5 |
|
21979 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
21980 |
||
21981 |
eval "$as_ac_var=no" |
|
21982 |
fi |
|
21983 |
rm -f conftest.err conftest.$ac_objext \ |
|
21984 |
conftest$ac_exeext conftest.$ac_ext |
|
21985 |
fi |
|
21986 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
21987 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
21988 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
21989 |
cat >>confdefs.h <<_ACEOF |
|
21990 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
21991 |
_ACEOF |
|
21992 |
||
21993 |
else |
|
21994 |
NEED_TRIO=1 |
|
21995 |
fi |
|
21996 |
done |
|
21997 |
||
21998 |
||
21999 |
||
22000 |
if test "${NEED_TRIO}" = "1" ; then |
|
22001 |
echo Reusing trio library for string functions |
|
22002 |
WITH_TRIO=1 |
|
22003 |
else |
|
22004 |
WITH_TRIO=0 |
|
22005 |
fi |
|
22006 |
||
22007 |
||
22008 |
||
22009 |
||
22010 |
||
22011 |
# Extract the first word of "perl", so it can be a program name with args. |
|
22012 |
set dummy perl; ac_word=$2 |
|
22013 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
22014 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
22015 |
if test "${ac_cv_prog_PERL+set}" = set; then |
|
22016 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22017 |
else |
|
22018 |
if test -n "$PERL"; then |
|
22019 |
ac_cv_prog_PERL="$PERL" # Let the user override the test. |
|
22020 |
else |
|
22021 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
22022 |
for as_dir in $PATH |
|
22023 |
do |
|
22024 |
IFS=$as_save_IFS |
|
22025 |
test -z "$as_dir" && as_dir=. |
|
22026 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
22027 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
22028 |
ac_cv_prog_PERL="perl" |
|
22029 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
22030 |
break 2 |
|
22031 |
fi |
|
22032 |
done |
|
22033 |
done |
|
22034 |
||
22035 |
test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false" |
|
22036 |
fi |
|
22037 |
fi |
|
22038 |
PERL=$ac_cv_prog_PERL |
|
22039 |
if test -n "$PERL"; then |
|
22040 |
echo "$as_me:$LINENO: result: $PERL" >&5 |
|
22041 |
echo "${ECHO_T}$PERL" >&6 |
|
22042 |
else |
|
22043 |
echo "$as_me:$LINENO: result: no" >&5 |
|
22044 |
echo "${ECHO_T}no" >&6 |
|
22045 |
fi |
|
22046 |
||
22047 |
||
22048 |
||
22049 |
if test "$PERL" != "false"; then |
|
22050 |
WITH_PERL_TRUE= |
|
22051 |
WITH_PERL_FALSE='#' |
|
22052 |
else |
|
22053 |
WITH_PERL_TRUE='#' |
|
22054 |
WITH_PERL_FALSE= |
|
22055 |
fi |
|
22056 |
||
22057 |
||
22058 |
||
22059 |
PYTHON= |
|
22060 |
PYTHON_VERSION= |
|
22061 |
PYTHON_INCLUDES= |
|
22062 |
PYTHON_SITE_PACKAGES= |
|
22063 |
pythondir= |
|
22064 |
||
22065 |
# Check whether --with-python or --without-python was given. |
|
22066 |
if test "${with_python+set}" = set; then |
|
22067 |
withval="$with_python" |
|
22068 |
||
22069 |
fi; |
|
22070 |
if test "$with_python" != "no" ; then |
|
22071 |
if test -x "$with_python/bin/python" |
|
22072 |
then |
|
22073 |
echo Found python in $with_python/bin/python |
|
22074 |
PYTHON="$with_python/bin/python" |
|
22075 |
else |
|
22076 |
if test -x "$with_python" |
|
22077 |
then |
|
22078 |
echo Found python in $with_python |
|
22079 |
PYTHON="$with_python" |
|
22080 |
else |
|
22081 |
# Extract the first word of "python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args. |
|
22082 |
set dummy python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2 |
|
22083 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
22084 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
22085 |
if test "${ac_cv_path_PYTHON+set}" = set; then |
|
22086 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22087 |
else |
|
22088 |
case $PYTHON in |
|
22089 |
[\\/]* | ?:[\\/]*) |
|
22090 |
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
|
22091 |
;; |
|
22092 |
*) |
|
22093 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
22094 |
for as_dir in $PATH |
|
22095 |
do |
|
22096 |
IFS=$as_save_IFS |
|
22097 |
test -z "$as_dir" && as_dir=. |
|
22098 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
22099 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
22100 |
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
|
22101 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
22102 |
break 2 |
|
22103 |
fi |
|
22104 |
done |
|
22105 |
done |
|
22106 |
||
22107 |
;; |
|
22108 |
esac |
|
22109 |
fi |
|
22110 |
PYTHON=$ac_cv_path_PYTHON |
|
22111 |
||
22112 |
if test -n "$PYTHON"; then |
|
22113 |
echo "$as_me:$LINENO: result: $PYTHON" >&5 |
|
22114 |
echo "${ECHO_T}$PYTHON" >&6 |
|
22115 |
else |
|
22116 |
echo "$as_me:$LINENO: result: no" >&5 |
|
22117 |
echo "${ECHO_T}no" >&6 |
|
22118 |
fi |
|
22119 |
||
22120 |
fi |
|
22121 |
fi |
|
22122 |
if test "$PYTHON" != "" |
|
22123 |
then |
|
22124 |
PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"` |
|
22125 |
echo Found Python version $PYTHON_VERSION |
|
22126 |
LIBXML2_PYTHON=`$PYTHON -c "try : import libxml2 ; print 1 |
|
22127 |
except: print 0"` |
|
22128 |
if test "$LIBXML2_PYTHON" = "1" |
|
22129 |
then |
|
22130 |
echo Found libxml2-python module |
|
22131 |
else |
|
22132 |
echo Warning: Missing libxml2-python |
|
22133 |
fi |
|
22134 |
fi |
|
22135 |
if test "$PYTHON_VERSION" != "" |
|
22136 |
then |
|
22137 |
if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \ |
|
22138 |
-d $with_python/lib/python$PYTHON_VERSION/site-packages |
|
22139 |
then |
|
22140 |
PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION |
|
22141 |
PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages |
|
22142 |
else |
|
22143 |
if test -r $prefix/include/python$PYTHON_VERSION/Python.h |
|
22144 |
then |
|
22145 |
PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)' |
|
22146 |
PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' |
|
22147 |
else |
|
22148 |
if test -r /usr/include/python$PYTHON_VERSION/Python.h |
|
22149 |
then |
|
22150 |
PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION |
|
22151 |
PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' |
|
22152 |
else |
|
22153 |
echo could not find python$PYTHON_VERSION/Python.h |
|
22154 |
fi |
|
22155 |
fi |
|
22156 |
if test ! -d "$PYTHON_SITE_PACKAGES" |
|
22157 |
then |
|
22158 |
PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"` |
|
22159 |
fi |
|
22160 |
fi |
|
22161 |
fi |
|
22162 |
if test "$with_python" != "" |
|
22163 |
then |
|
22164 |
pythondir='$(PYTHON_SITE_PACKAGES)' |
|
22165 |
else |
|
22166 |
pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages' |
|
22167 |
fi |
|
22168 |
fi |
|
22169 |
||
22170 |
||
22171 |
if test "$PYTHON_INCLUDES" != ""; then |
|
22172 |
WITH_PYTHON_TRUE= |
|
22173 |
WITH_PYTHON_FALSE='#' |
|
22174 |
else |
|
22175 |
WITH_PYTHON_TRUE='#' |
|
22176 |
WITH_PYTHON_FALSE= |
|
22177 |
fi |
|
22178 |
||
22179 |
if test "$PYTHON_INCLUDES" != "" |
|
22180 |
then |
|
22181 |
PYTHON_SUBDIR=python |
|
22182 |
else |
|
22183 |
PYTHON_SUBDIR= |
|
22184 |
fi |
|
22185 |
||
22186 |
||
22187 |
||
22188 |
||
22189 |
# Check whether --with-crypto or --without-crypto was given. |
|
22190 |
if test "${with_crypto+set}" = set; then |
|
22191 |
withval="$with_crypto" |
|
22192 |
||
22193 |
fi; |
|
22194 |
WITH_CRYPTO=0 |
|
22195 |
if test "$with_crypto" = "no" ; then |
|
22196 |
echo Disabling crypto support |
|
22197 |
LIBGCRYPT_CFLAGS="" |
|
22198 |
LIBGCRYPT_LIBS="" |
|
22199 |
else |
|
22200 |
# Extract the first word of "libgcrypt-config", so it can be a program name with args. |
|
22201 |
set dummy libgcrypt-config; ac_word=$2 |
|
22202 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
22203 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
22204 |
if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then |
|
22205 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22206 |
else |
|
22207 |
case $LIBGCRYPT_CONFIG in |
|
22208 |
[\\/]* | ?:[\\/]*) |
|
22209 |
ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. |
|
22210 |
;; |
|
22211 |
*) |
|
22212 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
22213 |
for as_dir in $PATH |
|
22214 |
do |
|
22215 |
IFS=$as_save_IFS |
|
22216 |
test -z "$as_dir" && as_dir=. |
|
22217 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
22218 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
22219 |
ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
22220 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
22221 |
break 2 |
|
22222 |
fi |
|
22223 |
done |
|
22224 |
done |
|
22225 |
||
22226 |
test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no" |
|
22227 |
;; |
|
22228 |
esac |
|
22229 |
fi |
|
22230 |
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG |
|
22231 |
||
22232 |
if test -n "$LIBGCRYPT_CONFIG"; then |
|
22233 |
echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5 |
|
22234 |
echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6 |
|
22235 |
else |
|
22236 |
echo "$as_me:$LINENO: result: no" >&5 |
|
22237 |
echo "${ECHO_T}no" >&6 |
|
22238 |
fi |
|
22239 |
||
22240 |
if test "$LIBGCRYPT_CONFIG" != "no" ; then |
|
22241 |
LIBGCRYPT_VERSION=`$LIBGCRYPT_CONFIG --version` |
|
22242 |
if test `echo $LIBGCRYPT_VERSION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -lt `echo "1.1.42" | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` |
|
22243 |
then |
|
22244 |
LIBGCRYPT_CFLAGS="" |
|
22245 |
LIBGCRYPT_LIBS="" |
|
22246 |
echo gcrypt library version < 1.1.42 - Crypto extensions will not be available. |
|
22247 |
else |
|
22248 |
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags` |
|
22249 |
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs` |
|
22250 |
||
22251 |
cat >>confdefs.h <<\_ACEOF |
|
22252 |
#define HAVE_GCRYPT 1 |
|
22253 |
_ACEOF |
|
22254 |
||
22255 |
echo Crypto extensions will be available. |
|
22256 |
WITH_CRYPTO=1 |
|
22257 |
fi |
|
22258 |
else |
|
22259 |
LIBGCRYPT_CFLAGS="" |
|
22260 |
LIBGCRYPT_LIBS="" |
|
22261 |
echo Crypto extensions will not be available. Install libgcrypt and reconfigure to make available. |
|
22262 |
fi |
|
22263 |
fi |
|
22264 |
||
22265 |
||
22266 |
||
22267 |
||
22268 |
if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ] || \ |
|
22269 |
[ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomecvs/xsltest" ] |
|
22270 |
then |
|
22271 |
if test "${with_mem_debug}" = "" ; |
|
22272 |
then |
|
22273 |
with_mem_debug="yes" |
|
22274 |
fi |
|
22275 |
CFLAGS="-Wall -g -O -ansi -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline " |
|
22276 |
if test "`uname -i`" != "x86_64" ; |
|
22277 |
then |
|
22278 |
STATIC_BINARIES="-static" |
|
22279 |
else |
|
22280 |
STATIC_BINARIES= |
|
22281 |
fi |
|
22282 |
if test "$LOGNAME" = "veillard" |
|
22283 |
then |
|
22284 |
LIBXML_SRC="/u/veillard/XML" |
|
22285 |
EXTRA_LIBS="$EXTRA_LIBS -ldl" |
|
22286 |
fi |
|
22287 |
else |
|
22288 |
STATIC_BINARIES= |
|
22289 |
fi |
|
22290 |
||
22291 |
||
22292 |
||
22293 |
# Check whether --with-debug or --without-debug was given. |
|
22294 |
if test "${with_debug+set}" = set; then |
|
22295 |
withval="$with_debug" |
|
22296 |
||
22297 |
fi; |
|
22298 |
if test "$with_debug" = "no" ; then |
|
22299 |
echo Disabling debug support |
|
22300 |
WITH_XSLT_DEBUG=0 |
|
22301 |
else |
|
22302 |
WITH_XSLT_DEBUG=1 |
|
22303 |
fi |
|
22304 |
||
22305 |
||
22306 |
||
22307 |
# Check whether --with-mem_debug or --without-mem_debug was given. |
|
22308 |
if test "${with_mem_debug+set}" = set; then |
|
22309 |
withval="$with_mem_debug" |
|
22310 |
||
22311 |
fi; |
|
22312 |
if test "$with_mem_debug" = "yes" ; then |
|
22313 |
echo Enabling memory debug support |
|
22314 |
WITH_MEM_DEBUG=1 |
|
22315 |
else |
|
22316 |
WITH_MEM_DEBUG=0 |
|
22317 |
fi |
|
22318 |
||
22319 |
||
22320 |
||
22321 |
# Check whether --with-with_debugger or --without-with_debugger was given. |
|
22322 |
if test "${with_with_debugger+set}" = set; then |
|
22323 |
withval="$with_with_debugger" |
|
22324 |
||
22325 |
fi; |
|
22326 |
if test "$with_debugger" = "no" ; then |
|
22327 |
echo Disabling debugger |
|
22328 |
WITH_DEBUGGER=0 |
|
22329 |
else |
|
22330 |
echo Enabling debugger |
|
22331 |
WITH_DEBUGGER=1 |
|
22332 |
cat >>confdefs.h <<\_ACEOF |
|
22333 |
#define WITH_DEBUGGER 1 |
|
22334 |
_ACEOF |
|
22335 |
||
22336 |
fi |
|
22337 |
||
22338 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
22339 |
if test "${WITH_DEBUGGER}" = "1"; then |
22340 |
WITH_DEBUGGER_TRUE= |
|
22341 |
WITH_DEBUGGER_FALSE='#' |
|
22342 |
else |
|
22343 |
WITH_DEBUGGER_TRUE='#' |
|
22344 |
WITH_DEBUGGER_FALSE= |
|
22345 |
fi |
|
22346 |
||
22347 |
||
22348 |
||
1
by Daniel Holbach
Import upstream version 1.1.15 |
22349 |
|
22350 |
LIBXML_CONFIG_PREFIX="" |
|
22351 |
LIBXML_SRC="" |
|
22352 |
||
22353 |
||
22354 |
# Check whether --with-libxml-prefix or --without-libxml-prefix was given. |
|
22355 |
if test "${with_libxml_prefix+set}" = set; then |
|
22356 |
withval="$with_libxml_prefix" |
|
22357 |
LIBXML_CONFIG_PREFIX=$withval |
|
22358 |
||
22359 |
fi; |
|
22360 |
||
22361 |
||
22362 |
# Check whether --with-libxml-include-prefix or --without-libxml-include-prefix was given. |
|
22363 |
if test "${with_libxml_include_prefix+set}" = set; then |
|
22364 |
withval="$with_libxml_include_prefix" |
|
22365 |
LIBXML_CFLAGS="-I$withval" |
|
22366 |
||
22367 |
fi; |
|
22368 |
||
22369 |
||
22370 |
# Check whether --with-libxml-libs-prefix or --without-libxml-libs-prefix was given. |
|
22371 |
if test "${with_libxml_libs_prefix+set}" = set; then |
|
22372 |
withval="$with_libxml_libs_prefix" |
|
22373 |
LIBXML_LIBS="-L$withval" |
|
22374 |
||
22375 |
fi; |
|
22376 |
||
22377 |
||
22378 |
# Check whether --with-libxml-src or --without-libxml-src was given. |
|
22379 |
if test "${with_libxml_src+set}" = set; then |
|
22380 |
withval="$with_libxml_src" |
|
22381 |
LIBXML_SRC="$withval" |
|
22382 |
||
22383 |
fi; |
|
22384 |
||
22385 |
||
22386 |
||
22387 |
||
22388 |
echo "$as_me:$LINENO: checking for libxml libraries >= $LIBXML_REQUIRED_VERSION" >&5 |
|
22389 |
echo $ECHO_N "checking for libxml libraries >= $LIBXML_REQUIRED_VERSION... $ECHO_C" >&6 |
|
22390 |
if test "x$LIBXML_CONFIG_PREFIX" != "x" |
|
22391 |
then |
|
22392 |
XML_CONFIG=${LIBXML_CONFIG_PREFIX}/bin/xml2-config |
|
22393 |
else |
|
22394 |
XML_CONFIG=xml2-config |
|
22395 |
fi |
|
22396 |
||
22397 |
if test "${GCC}" != "yes" ; then |
|
22398 |
case "${host}" in |
|
22399 |
*-*-hpux* ) |
|
22400 |
CFLAGS="${CFLAGS} -Wp,-H30000" |
|
22401 |
;; |
|
22402 |
*-dec-osf* ) |
|
22403 |
CFLAGS="${CFLAGS} -ieee" |
|
22404 |
;; |
|
22405 |
esac |
|
22406 |
else |
|
22407 |
CFLAGS="${CFLAGS} -Wall" |
|
22408 |
case "${host}" in |
|
22409 |
alpha*-*-linux* ) |
|
22410 |
CFLAGS="${CFLAGS} -mieee" |
|
22411 |
;; |
|
22412 |
alpha*-*-osf* ) |
|
22413 |
CFLAGS="${CFLAGS} -mieee" |
|
22414 |
;; |
|
22415 |
esac |
|
22416 |
fi |
|
22417 |
||
22418 |
||
22419 |
if test "x$LIBXML_SRC" != "x" |
|
22420 |
then |
|
22421 |
CWD=`pwd` |
|
22422 |
if cd $LIBXML_SRC |
|
22423 |
then |
|
22424 |
SRC_DIR=`pwd` |
|
22425 |
XML_CONFIG=${SRC_DIR}/xml2-config |
|
22426 |
LIBXML_CFLAGS="-I${SRC_DIR}/include" |
|
22427 |
LIBXML_LIBS="-L${SRC_DIR}" |
|
22428 |
cd $CWD |
|
22429 |
else |
|
22430 |
{ { echo "$as_me:$LINENO: error: libxml source dir not found (${LIBXML_SRC}), typo?" >&5 |
|
22431 |
echo "$as_me: error: libxml source dir not found (${LIBXML_SRC}), typo?" >&2;} |
|
22432 |
{ (exit 1); exit 1; }; } |
|
22433 |
fi |
|
22434 |
fi |
|
22435 |
||
22436 |
||
22437 |
if ${XML_CONFIG} --libs print > /dev/null 2>&1 |
|
22438 |
then |
|
22439 |
XMLVERS=`$XML_CONFIG --version` |
|
22440 |
if test `echo $XMLVERS | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -ge `echo $LIBXML_REQUIRED_VERSION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` |
|
22441 |
then |
|
22442 |
LIBXML_LIBS="$LIBXML_LIBS `$XML_CONFIG --libs`" |
|
22443 |
LIBXML_CFLAGS="$LIBXML_CFLAGS `$XML_CONFIG --cflags`" |
|
22444 |
echo "$as_me:$LINENO: result: $XMLVERS found" >&5 |
|
22445 |
echo "${ECHO_T}$XMLVERS found" >&6 |
|
22446 |
else |
|
22447 |
{ { echo "$as_me:$LINENO: error: Version $XMLVERS found. You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt" >&5 |
|
22448 |
echo "$as_me: error: Version $XMLVERS found. You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt" >&2;} |
|
22449 |
{ (exit 1); exit 1; }; } |
|
22450 |
fi |
|
22451 |
else |
|
22452 |
{ { echo "$as_me:$LINENO: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/." >&5 |
|
22453 |
echo "$as_me: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/." >&2;} |
|
22454 |
{ (exit 1); exit 1; }; } |
|
22455 |
fi |
|
22456 |
||
22457 |
||
22458 |
||
22459 |
||
22460 |
||
22461 |
||
22462 |
||
22463 |
# Check whether --with-plugins or --without-plugins was given. |
|
22464 |
if test "${with_plugins+set}" = set; then |
|
22465 |
withval="$with_plugins" |
|
22466 |
||
22467 |
fi; |
|
22468 |
if test "$with_plugins" = "" |
|
22469 |
then |
|
22470 |
with_plugins=yes |
|
22471 |
fi |
|
22472 |
||
22473 |
echo "$as_me:$LINENO: checking whether shared libraries will be built (required for plugins)" >&5 |
|
22474 |
echo $ECHO_N "checking whether shared libraries will be built (required for plugins)... $ECHO_C" >&6 |
|
22475 |
if test "$enable_shared" = "no" -a "$with_plugins" = "yes"; then |
|
22476 |
echo "$as_me:$LINENO: result: no" >&5 |
|
22477 |
echo "${ECHO_T}no" >&6 |
|
22478 |
{ echo "$as_me:$LINENO: WARNING: Disabling plugin support." >&5 |
|
22479 |
echo "$as_me: WARNING: Disabling plugin support." >&2;} |
|
22480 |
{ echo "$as_me:$LINENO: WARNING: Plugins require that shared libraries be built." >&5 |
|
22481 |
echo "$as_me: WARNING: Plugins require that shared libraries be built." >&2;} |
|
22482 |
with_plugins=no |
|
22483 |
else |
|
22484 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
22485 |
echo "${ECHO_T}yes" >&6 |
|
22486 |
fi |
|
22487 |
||
22488 |
if test "$with_plugins" = "yes" ; then |
|
22489 |
echo "$as_me:$LINENO: checking libxml2 module support" >&5 |
|
22490 |
echo $ECHO_N "checking libxml2 module support... $ECHO_C" >&6 |
|
22491 |
WITH_MODULES="`$XML_CONFIG --modules`" |
|
22492 |
if test "${WITH_MODULES}" = "1"; then |
|
22493 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
22494 |
echo "${ECHO_T}yes" >&6 |
|
22495 |
else |
|
22496 |
echo "$as_me:$LINENO: result: no" >&5 |
|
22497 |
echo "${ECHO_T}no" >&6 |
|
22498 |
WITH_MODULES="0" |
|
22499 |
fi |
|
22500 |
else |
|
22501 |
WITH_MODULES="0" |
|
22502 |
fi |
|
22503 |
||
22504 |
||
22505 |
||
22506 |
||
22507 |
if test "$WITH_MODULES" == "1"; then |
|
22508 |
WITH_MODULES_TRUE= |
|
22509 |
WITH_MODULES_FALSE='#' |
|
22510 |
else |
|
22511 |
WITH_MODULES_TRUE='#' |
|
22512 |
WITH_MODULES_FALSE= |
|
22513 |
fi |
|
22514 |
||
22515 |
||
22516 |
module_prefix=$prefix |
|
22517 |
test "x$module_prefix" = xNONE && module_prefix=$ac_default_prefix |
|
22518 |
LIBXSLT_DEFAULT_PLUGINS_PATH="\"$module_prefix/lib/libxslt/$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION\"" |
|
22519 |
||
22520 |
||
22521 |
if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ; then |
|
22522 |
if test "`uname -i`" != "x86_64" -a -e $HOME/XML/.libs/libxml2.a ; |
|
22523 |
then |
|
22524 |
LIBXML_LIBS="$HOME/XML/.libs/libxml2.a -lpthread -lz" |
|
22525 |
fi |
|
22526 |
DV_LINK="1" |
|
22527 |
XSLTPROCDV="xsltproc.dv" |
|
22528 |
INSTALLED_XSLT_LIB="" |
|
22529 |
LIBXML_SRC="$HOME/XML/" |
|
22530 |
fi |
|
22531 |
||
22532 |
WIN32_EXTRA_LIBADD= |
|
22533 |
WIN32_EXTRA_LDFLAGS= |
|
22534 |
case "$host" in |
|
22535 |
*-*-mingw*) |
|
22536 |
WIN32_EXTRA_LIBADD="-lwsock32" |
|
22537 |
WIN32_EXTRA_LDFLAGS="-no-undefined" |
|
22538 |
||
22539 |
cat >>confdefs.h <<\_ACEOF |
|
22540 |
#define _WINSOCKAPI_ 1 |
|
22541 |
_ACEOF |
|
22542 |
||
22543 |
||
22544 |
cat >>confdefs.h <<\_ACEOF |
|
22545 |
#define snprintf _snprintf |
|
22546 |
_ACEOF |
|
22547 |
||
22548 |
||
22549 |
cat >>confdefs.h <<\_ACEOF |
|
22550 |
#define vsnprintf _vsnprintf |
|
22551 |
_ACEOF |
|
22552 |
||
22553 |
;; |
|
22554 |
esac |
|
22555 |
||
22556 |
||
22557 |
||
22558 |
||
22559 |
||
22560 |
||
22561 |
||
22562 |
||
22563 |
||
22564 |
||
22565 |
||
22566 |
||
22567 |
||
22568 |
||
22569 |
XSLT_LIBDIR='-L${libdir}' |
|
22570 |
XSLT_INCLUDEDIR='-I${includedir}' |
|
22571 |
XSLT_LIBS="-lxslt $LIBXML_LIBS $M_LIBS" |
|
22572 |
||
22573 |
||
22574 |
||
22575 |
||
22576 |
EXSLT_LIBDIR='-L${libdir}' |
|
22577 |
EXSLT_INCLUDEDIR='-I${includedir}' |
|
22578 |
EXSLT_LIBS="-lexslt $XSLT_LIBS $LIBGCRYPT_LIBS" |
|
22579 |
||
22580 |
||
22581 |
||
22582 |
||
22583 |
EXTRA_LIBS="$EXTRA_LIBS $LIBXML_LIBS $M_LIBS" |
|
22584 |
||
22585 |
||
22586 |
||
22587 |
||
22588 |
RELDATE=`date +'%a %b %e %Y'` |
|
22589 |
||
22590 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
22591 |
#rm -f COPYING.LIB COPYING |
22592 |
#ln -s Copyright COPYING |
|
1
by Daniel Holbach
Import upstream version 1.1.15 |
22593 |
|
22594 |
||
22595 |
ac_config_files="$ac_config_files Makefile libxslt.pc libexslt.pc libxslt/Makefile libxslt/xsltconfig.h libxslt/xsltwin32config.h libexslt/Makefile libexslt/exsltconfig.h xsltproc/Makefile python/Makefile python/tests/Makefile tests/Makefile tests/docs/Makefile tests/REC1/Makefile tests/REC2/Makefile tests/REC/Makefile tests/general/Makefile tests/reports/Makefile tests/extensions/Makefile tests/namespaces/Makefile tests/keys/Makefile tests/numbers/Makefile tests/documents/Makefile tests/xmlspec/Makefile tests/multiple/Makefile tests/xinclude/Makefile tests/XSLTMark/Makefile tests/docbook/Makefile tests/exslt/Makefile tests/exslt/common/Makefile tests/exslt/functions/Makefile tests/exslt/math/Makefile tests/exslt/sets/Makefile tests/exslt/strings/Makefile tests/exslt/date/Makefile tests/exslt/dynamic/Makefile tests/plugins/Makefile doc/Makefile xslt-config libxslt.spec" |
|
22596 |
cat >confcache <<\_ACEOF |
|
22597 |
# This file is a shell script that caches the results of configure |
|
22598 |
# tests run on this system so they can be shared between configure |
|
22599 |
# scripts and configure runs, see configure's option --config-cache. |
|
22600 |
# It is not useful on other systems. If it contains results you don't |
|
22601 |
# want to keep, you may remove or edit it. |
|
22602 |
# |
|
22603 |
# config.status only pays attention to the cache file if you give it |
|
22604 |
# the --recheck option to rerun configure. |
|
22605 |
# |
|
22606 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
22607 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
22608 |
# following values. |
|
22609 |
||
22610 |
_ACEOF |
|
22611 |
||
22612 |
# The following way of writing the cache mishandles newlines in values, |
|
22613 |
# but we know of no workaround that is simple, portable, and efficient. |
|
22614 |
# So, don't put newlines in cache variables' values. |
|
22615 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
|
22616 |
# and sets the high bit in the cache file unless we assign to the vars. |
|
22617 |
{ |
|
22618 |
(set) 2>&1 | |
|
22619 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
|
22620 |
*ac_space=\ *) |
|
22621 |
# `set' does not quote correctly, so add quotes (double-quote |
|
22622 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
|
22623 |
sed -n \ |
|
22624 |
"s/'/'\\\\''/g; |
|
22625 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
22626 |
;; |
|
22627 |
*) |
|
22628 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
|
22629 |
sed -n \ |
|
22630 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
|
22631 |
;; |
|
22632 |
esac; |
|
22633 |
} | |
|
22634 |
sed ' |
|
22635 |
t clear |
|
22636 |
: clear |
|
22637 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
22638 |
t end |
|
22639 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
22640 |
: end' >>confcache |
|
22641 |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
|
22642 |
if test -w $cache_file; then |
|
22643 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
|
22644 |
cat confcache >$cache_file |
|
22645 |
else |
|
22646 |
echo "not updating unwritable cache $cache_file" |
|
22647 |
fi |
|
22648 |
fi |
|
22649 |
rm -f confcache |
|
22650 |
||
22651 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
22652 |
# Let make expand exec_prefix. |
|
22653 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
22654 |
||
22655 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
22656 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|
22657 |
# trailing colons and then remove the whole line if VPATH becomes empty |
|
22658 |
# (actually we leave an empty line to preserve line numbers). |
|
22659 |
if test "x$srcdir" = x.; then |
|
22660 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
22661 |
s/:*\$(srcdir):*/:/; |
|
22662 |
s/:*\${srcdir}:*/:/; |
|
22663 |
s/:*@srcdir@:*/:/; |
|
22664 |
s/^\([^=]*=[ ]*\):*/\1/; |
|
22665 |
s/:*$//; |
|
22666 |
s/^[^=]*=[ ]*$//; |
|
22667 |
}' |
|
22668 |
fi |
|
22669 |
||
22670 |
DEFS=-DHAVE_CONFIG_H |
|
22671 |
||
22672 |
ac_libobjs= |
|
22673 |
ac_ltlibobjs= |
|
22674 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
22675 |
# 1. Remove the extension, and $U if already installed. |
|
22676 |
ac_i=`echo "$ac_i" | |
|
22677 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
|
22678 |
# 2. Add them. |
|
22679 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
|
22680 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
|
22681 |
done |
|
22682 |
LIBOBJS=$ac_libobjs |
|
22683 |
||
22684 |
LTLIBOBJS=$ac_ltlibobjs |
|
22685 |
||
22686 |
||
2
by Daniel Holbach
* Resynchronize with Debian: |
22687 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22688 |
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
|
22689 |
Usually this means the macro was only invoked conditionally." >&5 |
|
22690 |
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
|
22691 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
22692 |
{ (exit 1); exit 1; }; } |
|
22693 |
fi |
|
1
by Daniel Holbach
Import upstream version 1.1.15 |
22694 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22695 |
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
|
22696 |
Usually this means the macro was only invoked conditionally." >&5 |
|
22697 |
echo "$as_me: error: conditional \"AMDEP\" was never defined. |
|
22698 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
22699 |
{ (exit 1); exit 1; }; } |
|
22700 |
fi |
|
22701 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
|
22702 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
|
22703 |
Usually this means the macro was only invoked conditionally." >&5 |
|
22704 |
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
|
22705 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
22706 |
{ (exit 1); exit 1; }; } |
|
22707 |
fi |
|
22708 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
|
22709 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
|
22710 |
Usually this means the macro was only invoked conditionally." >&5 |
|
22711 |
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
|
22712 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
22713 |
{ (exit 1); exit 1; }; } |
|
22714 |
fi |
|
22715 |
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
|
22716 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
|
22717 |
Usually this means the macro was only invoked conditionally." >&5 |
|
22718 |
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
|
22719 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
22720 |
{ (exit 1); exit 1; }; } |
|
22721 |
fi |
|
22722 |
if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then |
|
22723 |
{ { echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined. |
|
22724 |
Usually this means the macro was only invoked conditionally." >&5 |
|
22725 |
echo "$as_me: error: conditional \"WITH_PERL\" was never defined. |
|
22726 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
22727 |
{ (exit 1); exit 1; }; } |
|
22728 |
fi |
|
22729 |
if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then |
|
22730 |
{ { echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined. |
|
22731 |
Usually this means the macro was only invoked conditionally." >&5 |
|
22732 |
echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined. |
|
22733 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
22734 |
{ (exit 1); exit 1; }; } |
|
22735 |
fi |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
22736 |
if test -z "${WITH_DEBUGGER_TRUE}" && test -z "${WITH_DEBUGGER_FALSE}"; then |
22737 |
{ { echo "$as_me:$LINENO: error: conditional \"WITH_DEBUGGER\" was never defined. |
|
22738 |
Usually this means the macro was only invoked conditionally." >&5 |
|
22739 |
echo "$as_me: error: conditional \"WITH_DEBUGGER\" was never defined. |
|
22740 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
22741 |
{ (exit 1); exit 1; }; } |
|
22742 |
fi |
|
1
by Daniel Holbach
Import upstream version 1.1.15 |
22743 |
if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then |
22744 |
{ { echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never defined. |
|
22745 |
Usually this means the macro was only invoked conditionally." >&5 |
|
22746 |
echo "$as_me: error: conditional \"WITH_MODULES\" was never defined. |
|
22747 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
22748 |
{ (exit 1); exit 1; }; } |
|
22749 |
fi |
|
22750 |
||
22751 |
: ${CONFIG_STATUS=./config.status} |
|
22752 |
ac_clean_files_save=$ac_clean_files |
|
22753 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
22754 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
|
22755 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
22756 |
cat >$CONFIG_STATUS <<_ACEOF |
|
22757 |
#! $SHELL |
|
22758 |
# Generated by $as_me. |
|
22759 |
# Run this file to recreate the current configuration. |
|
22760 |
# Compiler output produced by configure, useful for debugging |
|
22761 |
# configure, is in config.log if it exists. |
|
22762 |
||
22763 |
debug=false |
|
22764 |
ac_cs_recheck=false |
|
22765 |
ac_cs_silent=false |
|
22766 |
SHELL=\${CONFIG_SHELL-$SHELL} |
|
22767 |
_ACEOF |
|
22768 |
||
22769 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
22770 |
## --------------------- ## |
|
22771 |
## M4sh Initialization. ## |
|
22772 |
## --------------------- ## |
|
22773 |
||
22774 |
# Be Bourne compatible |
|
22775 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
22776 |
emulate sh |
|
22777 |
NULLCMD=: |
|
22778 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
22779 |
# is contrary to our usage. Disable this feature. |
|
22780 |
alias -g '${1+"$@"}'='"$@"' |
|
22781 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|
22782 |
set -o posix |
|
22783 |
fi |
|
22784 |
DUALCASE=1; export DUALCASE # for MKS sh |
|
22785 |
||
22786 |
# Support unset when possible. |
|
22787 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
22788 |
as_unset=unset |
|
22789 |
else |
|
22790 |
as_unset=false |
|
22791 |
fi |
|
22792 |
||
22793 |
||
22794 |
# Work around bugs in pre-3.0 UWIN ksh. |
|
22795 |
$as_unset ENV MAIL MAILPATH |
|
22796 |
PS1='$ ' |
|
22797 |
PS2='> ' |
|
22798 |
PS4='+ ' |
|
22799 |
||
22800 |
# NLS nuisances. |
|
22801 |
for as_var in \ |
|
22802 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
22803 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
22804 |
LC_TELEPHONE LC_TIME |
|
22805 |
do |
|
22806 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
22807 |
eval $as_var=C; export $as_var |
|
22808 |
else |
|
22809 |
$as_unset $as_var |
|
22810 |
fi |
|
22811 |
done |
|
22812 |
||
22813 |
# Required to use basename. |
|
22814 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
22815 |
as_expr=expr |
|
22816 |
else |
|
22817 |
as_expr=false |
|
22818 |
fi |
|
22819 |
||
22820 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
|
22821 |
as_basename=basename |
|
22822 |
else |
|
22823 |
as_basename=false |
|
22824 |
fi |
|
22825 |
||
22826 |
||
22827 |
# Name of the executable. |
|
22828 |
as_me=`$as_basename "$0" || |
|
22829 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
22830 |
X"$0" : 'X\(//\)$' \| \ |
|
22831 |
X"$0" : 'X\(/\)$' \| \ |
|
22832 |
. : '\(.\)' 2>/dev/null || |
|
22833 |
echo X/"$0" | |
|
22834 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
|
22835 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
|
22836 |
/^X\/\(\/\).*/{ s//\1/; q; } |
|
22837 |
s/.*/./; q'` |
|
22838 |
||
22839 |
||
22840 |
# PATH needs CR, and LINENO needs CR and PATH. |
|
22841 |
# Avoid depending upon Character Ranges. |
|
22842 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
22843 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
22844 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
22845 |
as_cr_digits='0123456789' |
|
22846 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
22847 |
||
22848 |
# The user is always right. |
|
22849 |
if test "${PATH_SEPARATOR+set}" != set; then |
|
22850 |
echo "#! /bin/sh" >conf$$.sh |
|
22851 |
echo "exit 0" >>conf$$.sh |
|
22852 |
chmod +x conf$$.sh |
|
22853 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
22854 |
PATH_SEPARATOR=';' |
|
22855 |
else |
|
22856 |
PATH_SEPARATOR=: |
|
22857 |
fi |
|
22858 |
rm -f conf$$.sh |
|
22859 |
fi |
|
22860 |
||
22861 |
||
22862 |
as_lineno_1=$LINENO |
|
22863 |
as_lineno_2=$LINENO |
|
22864 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
22865 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
22866 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
|
22867 |
# Find who we are. Look in the path if we contain no path at all |
|
22868 |
# relative or not. |
|
22869 |
case $0 in |
|
22870 |
*[\\/]* ) as_myself=$0 ;; |
|
22871 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
22872 |
for as_dir in $PATH |
|
22873 |
do |
|
22874 |
IFS=$as_save_IFS |
|
22875 |
test -z "$as_dir" && as_dir=. |
|
22876 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
22877 |
done |
|
22878 |
||
22879 |
;; |
|
22880 |
esac |
|
22881 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
|
22882 |
# in which case we are not to be found in the path. |
|
22883 |
if test "x$as_myself" = x; then |
|
22884 |
as_myself=$0 |
|
22885 |
fi |
|
22886 |
if test ! -f "$as_myself"; then |
|
22887 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
|
22888 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
|
22889 |
{ (exit 1); exit 1; }; } |
|
22890 |
fi |
|
22891 |
case $CONFIG_SHELL in |
|
22892 |
'') |
|
22893 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
22894 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
22895 |
do |
|
22896 |
IFS=$as_save_IFS |
|
22897 |
test -z "$as_dir" && as_dir=. |
|
22898 |
for as_base in sh bash ksh sh5; do |
|
22899 |
case $as_dir in |
|
22900 |
/*) |
|
22901 |
if ("$as_dir/$as_base" -c ' |
|
22902 |
as_lineno_1=$LINENO |
|
22903 |
as_lineno_2=$LINENO |
|
22904 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
22905 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
22906 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
|
22907 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
|
22908 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
|
22909 |
CONFIG_SHELL=$as_dir/$as_base |
|
22910 |
export CONFIG_SHELL |
|
22911 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
|
22912 |
fi;; |
|
22913 |
esac |
|
22914 |
done |
|
22915 |
done |
|
22916 |
;; |
|
22917 |
esac |
|
22918 |
||
22919 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
22920 |
# uniformly replaced by the line number. The first 'sed' inserts a |
|
22921 |
# line-number line before each line; the second 'sed' does the real |
|
22922 |
# work. The second script uses 'N' to pair each line-number line |
|
22923 |
# with the numbered line, and appends trailing '-' during |
|
22924 |
# substitution so that $LINENO is not a special case at line end. |
|
22925 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
22926 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
|
22927 |
sed '=' <$as_myself | |
|
22928 |
sed ' |
|
22929 |
N |
|
22930 |
s,$,-, |
|
22931 |
: loop |
|
22932 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
|
22933 |
t loop |
|
22934 |
s,-$,, |
|
22935 |
s,^['$as_cr_digits']*\n,, |
|
22936 |
' >$as_me.lineno && |
|
22937 |
chmod +x $as_me.lineno || |
|
22938 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
|
22939 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
|
22940 |
{ (exit 1); exit 1; }; } |
|
22941 |
||
22942 |
# Don't try to exec as it changes $[0], causing all sort of problems |
|
22943 |
# (the dirname of $[0] is not the place where we might find the |
|
22944 |
# original and so on. Autoconf is especially sensible to this). |
|
22945 |
. ./$as_me.lineno |
|
22946 |
# Exit status is that of the last command. |
|
22947 |
exit |
|
22948 |
} |
|
22949 |
||
22950 |
||
22951 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
|
22952 |
*c*,-n*) ECHO_N= ECHO_C=' |
|
22953 |
' ECHO_T=' ' ;; |
|
22954 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
|
22955 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
|
22956 |
esac |
|
22957 |
||
22958 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
22959 |
as_expr=expr |
|
22960 |
else |
|
22961 |
as_expr=false |
|
22962 |
fi |
|
22963 |
||
22964 |
rm -f conf$$ conf$$.exe conf$$.file |
|
22965 |
echo >conf$$.file |
|
22966 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
22967 |
# We could just check for DJGPP; but this test a) works b) is more generic |
|
22968 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
|
22969 |
if test -f conf$$.exe; then |
|
22970 |
# Don't use ln at all; we don't have any links |
|
22971 |
as_ln_s='cp -p' |
|
22972 |
else |
|
22973 |
as_ln_s='ln -s' |
|
22974 |
fi |
|
22975 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
22976 |
as_ln_s=ln |
|
22977 |
else |
|
22978 |
as_ln_s='cp -p' |
|
22979 |
fi |
|
22980 |
rm -f conf$$ conf$$.exe conf$$.file |
|
22981 |
||
22982 |
if mkdir -p . 2>/dev/null; then |
|
22983 |
as_mkdir_p=: |
|
22984 |
else |
|
22985 |
test -d ./-p && rmdir ./-p |
|
22986 |
as_mkdir_p=false |
|
22987 |
fi |
|
22988 |
||
22989 |
as_executable_p="test -f" |
|
22990 |
||
22991 |
# Sed expression to map a string onto a valid CPP name. |
|
22992 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
22993 |
||
22994 |
# Sed expression to map a string onto a valid variable name. |
|
22995 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
22996 |
||
22997 |
||
22998 |
# IFS |
|
22999 |
# We need space, tab and new line, in precisely that order. |
|
23000 |
as_nl=' |
|
23001 |
' |
|
23002 |
IFS=" $as_nl" |
|
23003 |
||
23004 |
# CDPATH. |
|
23005 |
$as_unset CDPATH |
|
23006 |
||
23007 |
exec 6>&1 |
|
23008 |
||
23009 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
|
23010 |
# report actual input values of CONFIG_FILES etc. instead of their |
|
23011 |
# values after options handling. Logging --version etc. is OK. |
|
23012 |
exec 5>>config.log |
|
23013 |
{ |
|
23014 |
echo |
|
23015 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
23016 |
## Running $as_me. ## |
|
23017 |
_ASBOX |
|
23018 |
} >&5 |
|
23019 |
cat >&5 <<_CSEOF |
|
23020 |
||
23021 |
This file was extended by $as_me, which was |
|
23022 |
generated by GNU Autoconf 2.59. Invocation command line was |
|
23023 |
||
23024 |
CONFIG_FILES = $CONFIG_FILES |
|
23025 |
CONFIG_HEADERS = $CONFIG_HEADERS |
|
23026 |
CONFIG_LINKS = $CONFIG_LINKS |
|
23027 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
23028 |
$ $0 $@ |
|
23029 |
||
23030 |
_CSEOF |
|
23031 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
|
23032 |
echo >&5 |
|
23033 |
_ACEOF |
|
23034 |
||
23035 |
# Files that config.status was made for. |
|
23036 |
if test -n "$ac_config_files"; then |
|
23037 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
|
23038 |
fi |
|
23039 |
||
23040 |
if test -n "$ac_config_headers"; then |
|
23041 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
|
23042 |
fi |
|
23043 |
||
23044 |
if test -n "$ac_config_links"; then |
|
23045 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
|
23046 |
fi |
|
23047 |
||
23048 |
if test -n "$ac_config_commands"; then |
|
23049 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
|
23050 |
fi |
|
23051 |
||
23052 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
23053 |
||
23054 |
ac_cs_usage="\ |
|
23055 |
\`$as_me' instantiates files from templates according to the |
|
23056 |
current configuration. |
|
23057 |
||
23058 |
Usage: $0 [OPTIONS] [FILE]... |
|
23059 |
||
23060 |
-h, --help print this help, then exit |
|
23061 |
-V, --version print version number, then exit |
|
23062 |
-q, --quiet do not print progress messages |
|
23063 |
-d, --debug don't remove temporary files |
|
23064 |
--recheck update $as_me by reconfiguring in the same conditions |
|
23065 |
--file=FILE[:TEMPLATE] |
|
23066 |
instantiate the configuration file FILE |
|
23067 |
--header=FILE[:TEMPLATE] |
|
23068 |
instantiate the configuration header FILE |
|
23069 |
||
23070 |
Configuration files: |
|
23071 |
$config_files |
|
23072 |
||
23073 |
Configuration headers: |
|
23074 |
$config_headers |
|
23075 |
||
23076 |
Configuration commands: |
|
23077 |
$config_commands |
|
23078 |
||
23079 |
Report bugs to <bug-autoconf@gnu.org>." |
|
23080 |
_ACEOF |
|
23081 |
||
23082 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
23083 |
ac_cs_version="\\ |
|
23084 |
config.status |
|
23085 |
configured by $0, generated by GNU Autoconf 2.59, |
|
23086 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
|
23087 |
||
23088 |
Copyright (C) 2003 Free Software Foundation, Inc. |
|
23089 |
This config.status script is free software; the Free Software Foundation |
|
23090 |
gives unlimited permission to copy, distribute and modify it." |
|
23091 |
srcdir=$srcdir |
|
23092 |
INSTALL="$INSTALL" |
|
23093 |
_ACEOF |
|
23094 |
||
23095 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
23096 |
# If no file are specified by the user, then we need to provide default |
|
23097 |
# value. By we need to know if files were specified by the user. |
|
23098 |
ac_need_defaults=: |
|
23099 |
while test $# != 0 |
|
23100 |
do |
|
23101 |
case $1 in |
|
23102 |
--*=*) |
|
23103 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
|
23104 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
|
23105 |
ac_shift=: |
|
23106 |
;; |
|
23107 |
-*) |
|
23108 |
ac_option=$1 |
|
23109 |
ac_optarg=$2 |
|
23110 |
ac_shift=shift |
|
23111 |
;; |
|
23112 |
*) # This is not an option, so the user has probably given explicit |
|
23113 |
# arguments. |
|
23114 |
ac_option=$1 |
|
23115 |
ac_need_defaults=false;; |
|
23116 |
esac |
|
23117 |
||
23118 |
case $ac_option in |
|
23119 |
# Handling of the options. |
|
23120 |
_ACEOF |
|
23121 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
23122 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
23123 |
ac_cs_recheck=: ;; |
|
23124 |
--version | --vers* | -V ) |
|
23125 |
echo "$ac_cs_version"; exit 0 ;; |
|
23126 |
--he | --h) |
|
23127 |
# Conflict between --help and --header |
|
23128 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
|
23129 |
Try \`$0 --help' for more information." >&5 |
|
23130 |
echo "$as_me: error: ambiguous option: $1 |
|
23131 |
Try \`$0 --help' for more information." >&2;} |
|
23132 |
{ (exit 1); exit 1; }; };; |
|
23133 |
--help | --hel | -h ) |
|
23134 |
echo "$ac_cs_usage"; exit 0 ;; |
|
23135 |
--debug | --d* | -d ) |
|
23136 |
debug=: ;; |
|
23137 |
--file | --fil | --fi | --f ) |
|
23138 |
$ac_shift |
|
23139 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
|
23140 |
ac_need_defaults=false;; |
|
23141 |
--header | --heade | --head | --hea ) |
|
23142 |
$ac_shift |
|
23143 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
|
23144 |
ac_need_defaults=false;; |
|
23145 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
23146 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
23147 |
ac_cs_silent=: ;; |
|
23148 |
||
23149 |
# This is an error. |
|
23150 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
|
23151 |
Try \`$0 --help' for more information." >&5 |
|
23152 |
echo "$as_me: error: unrecognized option: $1 |
|
23153 |
Try \`$0 --help' for more information." >&2;} |
|
23154 |
{ (exit 1); exit 1; }; } ;; |
|
23155 |
||
23156 |
*) ac_config_targets="$ac_config_targets $1" ;; |
|
23157 |
||
23158 |
esac |
|
23159 |
shift |
|
23160 |
done |
|
23161 |
||
23162 |
ac_configure_extra_args= |
|
23163 |
||
23164 |
if $ac_cs_silent; then |
|
23165 |
exec 6>/dev/null |
|
23166 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
23167 |
fi |
|
23168 |
||
23169 |
_ACEOF |
|
23170 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
23171 |
if \$ac_cs_recheck; then |
|
23172 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
|
23173 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
23174 |
fi |
|
23175 |
||
23176 |
_ACEOF |
|
23177 |
||
23178 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
23179 |
# |
|
23180 |
# INIT-COMMANDS section. |
|
23181 |
# |
|
23182 |
||
23183 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
|
23184 |
||
23185 |
_ACEOF |
|
23186 |
||
23187 |
||
23188 |
||
23189 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
23190 |
for ac_config_target in $ac_config_targets |
|
23191 |
do |
|
23192 |
case "$ac_config_target" in |
|
23193 |
# Handling of arguments. |
|
23194 |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
23195 |
"libxslt.pc" ) CONFIG_FILES="$CONFIG_FILES libxslt.pc" ;; |
|
23196 |
"libexslt.pc" ) CONFIG_FILES="$CONFIG_FILES libexslt.pc" ;; |
|
23197 |
"libxslt/Makefile" ) CONFIG_FILES="$CONFIG_FILES libxslt/Makefile" ;; |
|
23198 |
"libxslt/xsltconfig.h" ) CONFIG_FILES="$CONFIG_FILES libxslt/xsltconfig.h" ;; |
|
23199 |
"libxslt/xsltwin32config.h" ) CONFIG_FILES="$CONFIG_FILES libxslt/xsltwin32config.h" ;; |
|
23200 |
"libexslt/Makefile" ) CONFIG_FILES="$CONFIG_FILES libexslt/Makefile" ;; |
|
23201 |
"libexslt/exsltconfig.h" ) CONFIG_FILES="$CONFIG_FILES libexslt/exsltconfig.h" ;; |
|
23202 |
"xsltproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES xsltproc/Makefile" ;; |
|
23203 |
"python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; |
|
23204 |
"python/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;; |
|
23205 |
"tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
|
23206 |
"tests/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/docs/Makefile" ;; |
|
23207 |
"tests/REC1/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/REC1/Makefile" ;; |
|
23208 |
"tests/REC2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/REC2/Makefile" ;; |
|
23209 |
"tests/REC/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/REC/Makefile" ;; |
|
23210 |
"tests/general/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/general/Makefile" ;; |
|
23211 |
"tests/reports/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/reports/Makefile" ;; |
|
23212 |
"tests/extensions/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/extensions/Makefile" ;; |
|
23213 |
"tests/namespaces/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/namespaces/Makefile" ;; |
|
23214 |
"tests/keys/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/keys/Makefile" ;; |
|
23215 |
"tests/numbers/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/numbers/Makefile" ;; |
|
23216 |
"tests/documents/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/documents/Makefile" ;; |
|
23217 |
"tests/xmlspec/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/xmlspec/Makefile" ;; |
|
23218 |
"tests/multiple/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/multiple/Makefile" ;; |
|
23219 |
"tests/xinclude/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/xinclude/Makefile" ;; |
|
23220 |
"tests/XSLTMark/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/XSLTMark/Makefile" ;; |
|
23221 |
"tests/docbook/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/docbook/Makefile" ;; |
|
23222 |
"tests/exslt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/Makefile" ;; |
|
23223 |
"tests/exslt/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/common/Makefile" ;; |
|
23224 |
"tests/exslt/functions/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/functions/Makefile" ;; |
|
23225 |
"tests/exslt/math/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/math/Makefile" ;; |
|
23226 |
"tests/exslt/sets/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/sets/Makefile" ;; |
|
23227 |
"tests/exslt/strings/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/strings/Makefile" ;; |
|
23228 |
"tests/exslt/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/date/Makefile" ;; |
|
23229 |
"tests/exslt/dynamic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/dynamic/Makefile" ;; |
|
23230 |
"tests/plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/plugins/Makefile" ;; |
|
23231 |
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
|
23232 |
"xslt-config" ) CONFIG_FILES="$CONFIG_FILES xslt-config" ;; |
|
23233 |
"libxslt.spec" ) CONFIG_FILES="$CONFIG_FILES libxslt.spec" ;; |
|
23234 |
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
|
23235 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
|
23236 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
|
23237 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
|
23238 |
{ (exit 1); exit 1; }; };; |
|
23239 |
esac |
|
23240 |
done |
|
23241 |
||
23242 |
# If the user did not use the arguments to specify the items to instantiate, |
|
23243 |
# then the envvar interface is used. Set only those that are not. |
|
23244 |
# We use the long form for the default assignment because of an extremely |
|
23245 |
# bizarre bug on SunOS 4.1.3. |
|
23246 |
if $ac_need_defaults; then |
|
23247 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
23248 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|
23249 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
|
23250 |
fi |
|
23251 |
||
23252 |
# Have a temporary directory for convenience. Make it in the build tree |
|
23253 |
# simply because there is no reason to put it here, and in addition, |
|
23254 |
# creating and moving files from /tmp can sometimes cause problems. |
|
23255 |
# Create a temporary directory, and hook for its removal unless debugging. |
|
23256 |
$debug || |
|
23257 |
{ |
|
23258 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
|
23259 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
23260 |
} |
|
23261 |
||
23262 |
# Create a (secure) tmp directory for tmp files. |
|
23263 |
||
23264 |
{ |
|
23265 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
|
23266 |
test -n "$tmp" && test -d "$tmp" |
|
23267 |
} || |
|
23268 |
{ |
|
23269 |
tmp=./confstat$$-$RANDOM |
|
23270 |
(umask 077 && mkdir $tmp) |
|
23271 |
} || |
|
23272 |
{ |
|
23273 |
echo "$me: cannot create a temporary directory in ." >&2 |
|
23274 |
{ (exit 1); exit 1; } |
|
23275 |
} |
|
23276 |
||
23277 |
_ACEOF |
|
23278 |
||
23279 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
23280 |
||
23281 |
# |
|
23282 |
# CONFIG_FILES section. |
|
23283 |
# |
|
23284 |
||
23285 |
# No need to generate the scripts if there are no CONFIG_FILES. |
|
23286 |
# This happens for instance when ./config.status config.h |
|
23287 |
if test -n "\$CONFIG_FILES"; then |
|
23288 |
# Protect against being on the right side of a sed subst in config.status. |
|
23289 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
|
23290 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
|
23291 |
s,@SHELL@,$SHELL,;t t |
|
23292 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
|
23293 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
|
23294 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
|
23295 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
|
23296 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
|
23297 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
|
23298 |
s,@exec_prefix@,$exec_prefix,;t t |
|
23299 |
s,@prefix@,$prefix,;t t |
|
23300 |
s,@program_transform_name@,$program_transform_name,;t t |
|
23301 |
s,@bindir@,$bindir,;t t |
|
23302 |
s,@sbindir@,$sbindir,;t t |
|
23303 |
s,@libexecdir@,$libexecdir,;t t |
|
23304 |
s,@datadir@,$datadir,;t t |
|
23305 |
s,@sysconfdir@,$sysconfdir,;t t |
|
23306 |
s,@sharedstatedir@,$sharedstatedir,;t t |
|
23307 |
s,@localstatedir@,$localstatedir,;t t |
|
23308 |
s,@libdir@,$libdir,;t t |
|
23309 |
s,@includedir@,$includedir,;t t |
|
23310 |
s,@oldincludedir@,$oldincludedir,;t t |
|
23311 |
s,@infodir@,$infodir,;t t |
|
23312 |
s,@mandir@,$mandir,;t t |
|
23313 |
s,@build_alias@,$build_alias,;t t |
|
23314 |
s,@host_alias@,$host_alias,;t t |
|
23315 |
s,@target_alias@,$target_alias,;t t |
|
23316 |
s,@DEFS@,$DEFS,;t t |
|
23317 |
s,@ECHO_C@,$ECHO_C,;t t |
|
23318 |
s,@ECHO_N@,$ECHO_N,;t t |
|
23319 |
s,@ECHO_T@,$ECHO_T,;t t |
|
23320 |
s,@LIBS@,$LIBS,;t t |
|
23321 |
s,@build@,$build,;t t |
|
23322 |
s,@build_cpu@,$build_cpu,;t t |
|
23323 |
s,@build_vendor@,$build_vendor,;t t |
|
23324 |
s,@build_os@,$build_os,;t t |
|
23325 |
s,@host@,$host,;t t |
|
23326 |
s,@host_cpu@,$host_cpu,;t t |
|
23327 |
s,@host_vendor@,$host_vendor,;t t |
|
23328 |
s,@host_os@,$host_os,;t t |
|
23329 |
s,@LIBXSLT_MAJOR_VERSION@,$LIBXSLT_MAJOR_VERSION,;t t |
|
23330 |
s,@LIBXSLT_MINOR_VERSION@,$LIBXSLT_MINOR_VERSION,;t t |
|
23331 |
s,@LIBXSLT_MICRO_VERSION@,$LIBXSLT_MICRO_VERSION,;t t |
|
23332 |
s,@LIBXSLT_VERSION@,$LIBXSLT_VERSION,;t t |
|
23333 |
s,@LIBXSLT_VERSION_INFO@,$LIBXSLT_VERSION_INFO,;t t |
|
23334 |
s,@LIBXSLT_VERSION_NUMBER@,$LIBXSLT_VERSION_NUMBER,;t t |
|
23335 |
s,@LIBXSLT_VERSION_EXTRA@,$LIBXSLT_VERSION_EXTRA,;t t |
|
23336 |
s,@LIBXSLT_MAJOR_MINOR_VERSION@,$LIBXSLT_MAJOR_MINOR_VERSION,;t t |
|
23337 |
s,@LIBEXSLT_MAJOR_VERSION@,$LIBEXSLT_MAJOR_VERSION,;t t |
|
23338 |
s,@LIBEXSLT_MINOR_VERSION@,$LIBEXSLT_MINOR_VERSION,;t t |
|
23339 |
s,@LIBEXSLT_MICRO_VERSION@,$LIBEXSLT_MICRO_VERSION,;t t |
|
23340 |
s,@LIBEXSLT_VERSION@,$LIBEXSLT_VERSION,;t t |
|
23341 |
s,@LIBEXSLT_VERSION_INFO@,$LIBEXSLT_VERSION_INFO,;t t |
|
23342 |
s,@LIBEXSLT_VERSION_NUMBER@,$LIBEXSLT_VERSION_NUMBER,;t t |
|
23343 |
s,@LIBEXSLT_VERSION_EXTRA@,$LIBEXSLT_VERSION_EXTRA,;t t |
|
23344 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
|
23345 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
|
23346 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
|
23347 |
s,@CYGPATH_W@,$CYGPATH_W,;t t |
|
23348 |
s,@PACKAGE@,$PACKAGE,;t t |
|
23349 |
s,@VERSION@,$VERSION,;t t |
|
23350 |
s,@ACLOCAL@,$ACLOCAL,;t t |
|
23351 |
s,@AUTOCONF@,$AUTOCONF,;t t |
|
23352 |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
|
23353 |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
|
23354 |
s,@MAKEINFO@,$MAKEINFO,;t t |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
23355 |
s,@AMTAR@,$AMTAR,;t t |
1
by Daniel Holbach
Import upstream version 1.1.15 |
23356 |
s,@install_sh@,$install_sh,;t t |
23357 |
s,@STRIP@,$STRIP,;t t |
|
23358 |
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
23359 |
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
|
23360 |
s,@mkdir_p@,$mkdir_p,;t t |
|
23361 |
s,@AWK@,$AWK,;t t |
|
23362 |
s,@SET_MAKE@,$SET_MAKE,;t t |
|
23363 |
s,@am__leading_dot@,$am__leading_dot,;t t |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
23364 |
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
23365 |
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
|
23366 |
s,@MAINT@,$MAINT,;t t |
|
1
by Daniel Holbach
Import upstream version 1.1.15 |
23367 |
s,@HTML_DIR@,$HTML_DIR,;t t |
23368 |
s,@CC@,$CC,;t t |
|
23369 |
s,@CFLAGS@,$CFLAGS,;t t |
|
23370 |
s,@LDFLAGS@,$LDFLAGS,;t t |
|
23371 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
|
23372 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
|
23373 |
s,@EXEEXT@,$EXEEXT,;t t |
|
23374 |
s,@OBJEXT@,$OBJEXT,;t t |
|
23375 |
s,@DEPDIR@,$DEPDIR,;t t |
|
23376 |
s,@am__include@,$am__include,;t t |
|
23377 |
s,@am__quote@,$am__quote,;t t |
|
23378 |
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
|
23379 |
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
|
23380 |
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
|
23381 |
s,@CCDEPMODE@,$CCDEPMODE,;t t |
|
23382 |
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
|
23383 |
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
|
23384 |
s,@CPP@,$CPP,;t t |
|
23385 |
s,@RM@,$RM,;t t |
|
23386 |
s,@MV@,$MV,;t t |
|
23387 |
s,@TAR@,$TAR,;t t |
|
23388 |
s,@EGREP@,$EGREP,;t t |
|
23389 |
s,@LN_S@,$LN_S,;t t |
|
23390 |
s,@ECHO@,$ECHO,;t t |
|
23391 |
s,@AR@,$AR,;t t |
|
23392 |
s,@ac_ct_AR@,$ac_ct_AR,;t t |
|
23393 |
s,@RANLIB@,$RANLIB,;t t |
|
23394 |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
23395 |
s,@CXX@,$CXX,;t t |
|
23396 |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
|
23397 |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
|
23398 |
s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
|
23399 |
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
|
23400 |
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
|
23401 |
s,@CXXCPP@,$CXXCPP,;t t |
|
23402 |
s,@F77@,$F77,;t t |
|
23403 |
s,@FFLAGS@,$FFLAGS,;t t |
|
23404 |
s,@ac_ct_F77@,$ac_ct_F77,;t t |
|
23405 |
s,@LIBTOOL@,$LIBTOOL,;t t |
|
23406 |
s,@WITH_TRIO@,$WITH_TRIO,;t t |
|
23407 |
s,@PERL@,$PERL,;t t |
|
23408 |
s,@WITH_PERL_TRUE@,$WITH_PERL_TRUE,;t t |
|
23409 |
s,@WITH_PERL_FALSE@,$WITH_PERL_FALSE,;t t |
|
23410 |
s,@PYTHON@,$PYTHON,;t t |
|
23411 |
s,@WITH_PYTHON_TRUE@,$WITH_PYTHON_TRUE,;t t |
|
23412 |
s,@WITH_PYTHON_FALSE@,$WITH_PYTHON_FALSE,;t t |
|
23413 |
s,@pythondir@,$pythondir,;t t |
|
23414 |
s,@PYTHON_SUBDIR@,$PYTHON_SUBDIR,;t t |
|
23415 |
s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t |
|
23416 |
s,@WITH_CRYPTO@,$WITH_CRYPTO,;t t |
|
23417 |
s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t |
|
23418 |
s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t |
|
23419 |
s,@STATIC_BINARIES@,$STATIC_BINARIES,;t t |
|
23420 |
s,@WITH_XSLT_DEBUG@,$WITH_XSLT_DEBUG,;t t |
|
23421 |
s,@WITH_MEM_DEBUG@,$WITH_MEM_DEBUG,;t t |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
23422 |
s,@WITH_DEBUGGER_TRUE@,$WITH_DEBUGGER_TRUE,;t t |
23423 |
s,@WITH_DEBUGGER_FALSE@,$WITH_DEBUGGER_FALSE,;t t |
|
1
by Daniel Holbach
Import upstream version 1.1.15 |
23424 |
s,@WITH_DEBUGGER@,$WITH_DEBUGGER,;t t |
23425 |
s,@LIBXML_SRC@,$LIBXML_SRC,;t t |
|
23426 |
s,@LIBXML_REQUIRED_VERSION@,$LIBXML_REQUIRED_VERSION,;t t |
|
23427 |
s,@WITH_MODULES@,$WITH_MODULES,;t t |
|
23428 |
s,@WITH_MODULES_TRUE@,$WITH_MODULES_TRUE,;t t |
|
23429 |
s,@WITH_MODULES_FALSE@,$WITH_MODULES_FALSE,;t t |
|
23430 |
s,@LIBXSLT_DEFAULT_PLUGINS_PATH@,$LIBXSLT_DEFAULT_PLUGINS_PATH,;t t |
|
23431 |
s,@WIN32_EXTRA_LIBADD@,$WIN32_EXTRA_LIBADD,;t t |
|
23432 |
s,@WIN32_EXTRA_LDFLAGS@,$WIN32_EXTRA_LDFLAGS,;t t |
|
23433 |
s,@XSLTPROCDV@,$XSLTPROCDV,;t t |
|
23434 |
s,@PYTHONSODV@,$PYTHONSODV,;t t |
|
23435 |
s,@XML_CONFIG@,$XML_CONFIG,;t t |
|
23436 |
s,@LIBXML_LIBS@,$LIBXML_LIBS,;t t |
|
23437 |
s,@LIBXML_CFLAGS@,$LIBXML_CFLAGS,;t t |
|
23438 |
s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t |
|
23439 |
s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t |
|
23440 |
s,@PYTHON_SITE_PACKAGES@,$PYTHON_SITE_PACKAGES,;t t |
|
23441 |
s,@XSLT_LIBDIR@,$XSLT_LIBDIR,;t t |
|
23442 |
s,@XSLT_INCLUDEDIR@,$XSLT_INCLUDEDIR,;t t |
|
23443 |
s,@XSLT_LIBS@,$XSLT_LIBS,;t t |
|
23444 |
s,@EXSLT_LIBDIR@,$EXSLT_LIBDIR,;t t |
|
23445 |
s,@EXSLT_INCLUDEDIR@,$EXSLT_INCLUDEDIR,;t t |
|
23446 |
s,@EXSLT_LIBS@,$EXSLT_LIBS,;t t |
|
23447 |
s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t |
|
23448 |
s,@M_LIBS@,$M_LIBS,;t t |
|
23449 |
s,@RELDATE@,$RELDATE,;t t |
|
23450 |
s,@LIBOBJS@,$LIBOBJS,;t t |
|
23451 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
|
23452 |
CEOF |
|
23453 |
||
23454 |
_ACEOF |
|
23455 |
||
23456 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
23457 |
# Split the substitutions into bite-sized pieces for seds with |
|
23458 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
|
23459 |
ac_max_sed_lines=48 |
|
23460 |
ac_sed_frag=1 # Number of current file. |
|
23461 |
ac_beg=1 # First line for current file. |
|
23462 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
|
23463 |
ac_more_lines=: |
|
23464 |
ac_sed_cmds= |
|
23465 |
while $ac_more_lines; do |
|
23466 |
if test $ac_beg -gt 1; then |
|
23467 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
|
23468 |
else |
|
23469 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
|
23470 |
fi |
|
23471 |
if test ! -s $tmp/subs.frag; then |
|
23472 |
ac_more_lines=false |
|
23473 |
else |
|
23474 |
# The purpose of the label and of the branching condition is to |
|
23475 |
# speed up the sed processing (if there are no `@' at all, there |
|
23476 |
# is no need to browse any of the substitutions). |
|
23477 |
# These are the two extra sed commands mentioned above. |
|
23478 |
(echo ':t |
|
23479 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
|
23480 |
if test -z "$ac_sed_cmds"; then |
|
23481 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
|
23482 |
else |
|
23483 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
|
23484 |
fi |
|
23485 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
|
23486 |
ac_beg=$ac_end |
|
23487 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
|
23488 |
fi |
|
23489 |
done |
|
23490 |
if test -z "$ac_sed_cmds"; then |
|
23491 |
ac_sed_cmds=cat |
|
23492 |
fi |
|
23493 |
fi # test -n "$CONFIG_FILES" |
|
23494 |
||
23495 |
_ACEOF |
|
23496 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
23497 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
|
23498 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
|
23499 |
case $ac_file in |
|
23500 |
- | *:- | *:-:* ) # input from stdin |
|
23501 |
cat >$tmp/stdin |
|
23502 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
23503 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
23504 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
23505 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
23506 |
* ) ac_file_in=$ac_file.in ;; |
|
23507 |
esac |
|
23508 |
||
23509 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
|
23510 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
|
23511 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
23512 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
23513 |
X"$ac_file" : 'X\(//\)$' \| \ |
|
23514 |
X"$ac_file" : 'X\(/\)' \| \ |
|
23515 |
. : '\(.\)' 2>/dev/null || |
|
23516 |
echo X"$ac_file" | |
|
23517 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
23518 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
23519 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
23520 |
/^X\(\/\).*/{ s//\1/; q; } |
|
23521 |
s/.*/./; q'` |
|
23522 |
{ if $as_mkdir_p; then |
|
23523 |
mkdir -p "$ac_dir" |
|
23524 |
else |
|
23525 |
as_dir="$ac_dir" |
|
23526 |
as_dirs= |
|
23527 |
while test ! -d "$as_dir"; do |
|
23528 |
as_dirs="$as_dir $as_dirs" |
|
23529 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
23530 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
23531 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
23532 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
23533 |
X"$as_dir" : 'X\(/\)' \| \ |
|
23534 |
. : '\(.\)' 2>/dev/null || |
|
23535 |
echo X"$as_dir" | |
|
23536 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
23537 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
23538 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
23539 |
/^X\(\/\).*/{ s//\1/; q; } |
|
23540 |
s/.*/./; q'` |
|
23541 |
done |
|
23542 |
test ! -n "$as_dirs" || mkdir $as_dirs |
|
23543 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
23544 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
23545 |
{ (exit 1); exit 1; }; }; } |
|
23546 |
||
23547 |
ac_builddir=. |
|
23548 |
||
23549 |
if test "$ac_dir" != .; then |
|
23550 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
23551 |
# A "../" for each directory in $ac_dir_suffix. |
|
23552 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|
23553 |
else |
|
23554 |
ac_dir_suffix= ac_top_builddir= |
|
23555 |
fi |
|
23556 |
||
23557 |
case $srcdir in |
|
23558 |
.) # No --srcdir option. We are building in place. |
|
23559 |
ac_srcdir=. |
|
23560 |
if test -z "$ac_top_builddir"; then |
|
23561 |
ac_top_srcdir=. |
|
23562 |
else |
|
23563 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
23564 |
fi ;; |
|
23565 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
|
23566 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
23567 |
ac_top_srcdir=$srcdir ;; |
|
23568 |
*) # Relative path. |
|
23569 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
|
23570 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
|
23571 |
esac |
|
23572 |
||
23573 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
|
23574 |
# the directories may not exist. |
|
23575 |
case `pwd` in |
|
23576 |
.) ac_abs_builddir="$ac_dir";; |
|
23577 |
*) |
|
23578 |
case "$ac_dir" in |
|
23579 |
.) ac_abs_builddir=`pwd`;; |
|
23580 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|
23581 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
|
23582 |
esac;; |
|
23583 |
esac |
|
23584 |
case $ac_abs_builddir in |
|
23585 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
23586 |
*) |
|
23587 |
case ${ac_top_builddir}. in |
|
23588 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
|
23589 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
23590 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|
23591 |
esac;; |
|
23592 |
esac |
|
23593 |
case $ac_abs_builddir in |
|
23594 |
.) ac_abs_srcdir=$ac_srcdir;; |
|
23595 |
*) |
|
23596 |
case $ac_srcdir in |
|
23597 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
|
23598 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|
23599 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|
23600 |
esac;; |
|
23601 |
esac |
|
23602 |
case $ac_abs_builddir in |
|
23603 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
23604 |
*) |
|
23605 |
case $ac_top_srcdir in |
|
23606 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
|
23607 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
23608 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
|
23609 |
esac;; |
|
23610 |
esac |
|
23611 |
||
23612 |
||
23613 |
case $INSTALL in |
|
23614 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
|
23615 |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
|
23616 |
esac |
|
23617 |
||
23618 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
|
23619 |
# use $as_me), people would be surprised to read: |
|
23620 |
# /* config.h. Generated by config.status. */ |
|
23621 |
if test x"$ac_file" = x-; then |
|
23622 |
configure_input= |
|
23623 |
else |
|
23624 |
configure_input="$ac_file. " |
|
23625 |
fi |
|
23626 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
|
23627 |
sed 's,.*/,,'` by configure." |
|
23628 |
||
23629 |
# First look for the input files in the build tree, otherwise in the |
|
23630 |
# src tree. |
|
23631 |
ac_file_inputs=`IFS=: |
|
23632 |
for f in $ac_file_in; do |
|
23633 |
case $f in |
|
23634 |
-) echo $tmp/stdin ;; |
|
23635 |
[\\/$]*) |
|
23636 |
# Absolute (can't be DOS-style, as IFS=:) |
|
23637 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
23638 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
23639 |
{ (exit 1); exit 1; }; } |
|
23640 |
echo "$f";; |
|
23641 |
*) # Relative |
|
23642 |
if test -f "$f"; then |
|
23643 |
# Build tree |
|
23644 |
echo "$f" |
|
23645 |
elif test -f "$srcdir/$f"; then |
|
23646 |
# Source tree |
|
23647 |
echo "$srcdir/$f" |
|
23648 |
else |
|
23649 |
# /dev/null tree |
|
23650 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
23651 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
23652 |
{ (exit 1); exit 1; }; } |
|
23653 |
fi;; |
|
23654 |
esac |
|
23655 |
done` || { (exit 1); exit 1; } |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
23656 |
|
23657 |
if test x"$ac_file" != x-; then |
|
23658 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
23659 |
echo "$as_me: creating $ac_file" >&6;} |
|
23660 |
rm -f "$ac_file" |
|
23661 |
fi |
|
1
by Daniel Holbach
Import upstream version 1.1.15 |
23662 |
_ACEOF |
23663 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
23664 |
sed "$ac_vpsub |
|
23665 |
$extrasub |
|
23666 |
_ACEOF |
|
23667 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
23668 |
:t |
|
23669 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
23670 |
s,@configure_input@,$configure_input,;t t |
|
23671 |
s,@srcdir@,$ac_srcdir,;t t |
|
23672 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
|
23673 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
|
23674 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
|
23675 |
s,@builddir@,$ac_builddir,;t t |
|
23676 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
|
23677 |
s,@top_builddir@,$ac_top_builddir,;t t |
|
23678 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
|
23679 |
s,@INSTALL@,$ac_INSTALL,;t t |
|
23680 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
|
23681 |
rm -f $tmp/stdin |
|
23682 |
if test x"$ac_file" != x-; then |
|
23683 |
mv $tmp/out $ac_file |
|
23684 |
else |
|
23685 |
cat $tmp/out |
|
23686 |
rm -f $tmp/out |
|
23687 |
fi |
|
23688 |
||
23689 |
done |
|
23690 |
_ACEOF |
|
23691 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
23692 |
||
23693 |
# |
|
23694 |
# CONFIG_HEADER section. |
|
23695 |
# |
|
23696 |
||
23697 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
|
23698 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
|
23699 |
# |
|
23700 |
# ac_d sets the value in "#define NAME VALUE" lines. |
|
23701 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
|
23702 |
ac_dB='[ ].*$,\1#\2' |
|
23703 |
ac_dC=' ' |
|
23704 |
ac_dD=',;t' |
|
23705 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
|
23706 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
|
23707 |
ac_uB='$,\1#\2define\3' |
|
23708 |
ac_uC=' ' |
|
23709 |
ac_uD=',;t' |
|
23710 |
||
23711 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
|
23712 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
|
23713 |
case $ac_file in |
|
23714 |
- | *:- | *:-:* ) # input from stdin |
|
23715 |
cat >$tmp/stdin |
|
23716 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
23717 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
23718 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
23719 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
23720 |
* ) ac_file_in=$ac_file.in ;; |
|
23721 |
esac |
|
23722 |
||
23723 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
23724 |
echo "$as_me: creating $ac_file" >&6;} |
|
23725 |
||
23726 |
# First look for the input files in the build tree, otherwise in the |
|
23727 |
# src tree. |
|
23728 |
ac_file_inputs=`IFS=: |
|
23729 |
for f in $ac_file_in; do |
|
23730 |
case $f in |
|
23731 |
-) echo $tmp/stdin ;; |
|
23732 |
[\\/$]*) |
|
23733 |
# Absolute (can't be DOS-style, as IFS=:) |
|
23734 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
23735 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
23736 |
{ (exit 1); exit 1; }; } |
|
23737 |
# Do quote $f, to prevent DOS paths from being IFS'd. |
|
23738 |
echo "$f";; |
|
23739 |
*) # Relative |
|
23740 |
if test -f "$f"; then |
|
23741 |
# Build tree |
|
23742 |
echo "$f" |
|
23743 |
elif test -f "$srcdir/$f"; then |
|
23744 |
# Source tree |
|
23745 |
echo "$srcdir/$f" |
|
23746 |
else |
|
23747 |
# /dev/null tree |
|
23748 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
23749 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
23750 |
{ (exit 1); exit 1; }; } |
|
23751 |
fi;; |
|
23752 |
esac |
|
23753 |
done` || { (exit 1); exit 1; } |
|
23754 |
# Remove the trailing spaces. |
|
23755 |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
|
23756 |
||
23757 |
_ACEOF |
|
23758 |
||
23759 |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
|
23760 |
# `conftest.undefs', that substitutes the proper values into |
|
23761 |
# config.h.in to produce config.h. The first handles `#define' |
|
23762 |
# templates, and the second `#undef' templates. |
|
23763 |
# And first: Protect against being on the right side of a sed subst in |
|
23764 |
# config.status. Protect against being in an unquoted here document |
|
23765 |
# in config.status. |
|
23766 |
rm -f conftest.defines conftest.undefs |
|
23767 |
# Using a here document instead of a string reduces the quoting nightmare. |
|
23768 |
# Putting comments in sed scripts is not portable. |
|
23769 |
# |
|
23770 |
# `end' is used to avoid that the second main sed command (meant for |
|
23771 |
# 0-ary CPP macros) applies to n-ary macro definitions. |
|
23772 |
# See the Autoconf documentation for `clear'. |
|
23773 |
cat >confdef2sed.sed <<\_ACEOF |
|
23774 |
s/[\\&,]/\\&/g |
|
23775 |
s,[\\$`],\\&,g |
|
23776 |
t clear |
|
23777 |
: clear |
|
23778 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
|
23779 |
t end |
|
23780 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
|
23781 |
: end |
|
23782 |
_ACEOF |
|
23783 |
# If some macros were called several times there might be several times |
|
23784 |
# the same #defines, which is useless. Nevertheless, we may not want to |
|
23785 |
# sort them, since we want the *last* AC-DEFINE to be honored. |
|
23786 |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
|
23787 |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
|
23788 |
rm -f confdef2sed.sed |
|
23789 |
||
23790 |
# This sed command replaces #undef with comments. This is necessary, for |
|
23791 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
|
23792 |
# on some systems where configure will not decide to define it. |
|
23793 |
cat >>conftest.undefs <<\_ACEOF |
|
23794 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
|
23795 |
_ACEOF |
|
23796 |
||
23797 |
# Break up conftest.defines because some shells have a limit on the size |
|
23798 |
# of here documents, and old seds have small limits too (100 cmds). |
|
23799 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
|
23800 |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
|
23801 |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
|
23802 |
echo ' :' >>$CONFIG_STATUS |
|
23803 |
rm -f conftest.tail |
|
23804 |
while grep . conftest.defines >/dev/null |
|
23805 |
do |
|
23806 |
# Write a limited-size here document to $tmp/defines.sed. |
|
23807 |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
|
23808 |
# Speed up: don't consider the non `#define' lines. |
|
23809 |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
|
23810 |
# Work around the forget-to-reset-the-flag bug. |
|
23811 |
echo 't clr' >>$CONFIG_STATUS |
|
23812 |
echo ': clr' >>$CONFIG_STATUS |
|
23813 |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
|
23814 |
echo 'CEOF |
|
23815 |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
|
23816 |
rm -f $tmp/in |
|
23817 |
mv $tmp/out $tmp/in |
|
23818 |
' >>$CONFIG_STATUS |
|
23819 |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
|
23820 |
rm -f conftest.defines |
|
23821 |
mv conftest.tail conftest.defines |
|
23822 |
done |
|
23823 |
rm -f conftest.defines |
|
23824 |
echo ' fi # grep' >>$CONFIG_STATUS |
|
23825 |
echo >>$CONFIG_STATUS |
|
23826 |
||
23827 |
# Break up conftest.undefs because some shells have a limit on the size |
|
23828 |
# of here documents, and old seds have small limits too (100 cmds). |
|
23829 |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
|
23830 |
rm -f conftest.tail |
|
23831 |
while grep . conftest.undefs >/dev/null |
|
23832 |
do |
|
23833 |
# Write a limited-size here document to $tmp/undefs.sed. |
|
23834 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
|
23835 |
# Speed up: don't consider the non `#undef' |
|
23836 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
|
23837 |
# Work around the forget-to-reset-the-flag bug. |
|
23838 |
echo 't clr' >>$CONFIG_STATUS |
|
23839 |
echo ': clr' >>$CONFIG_STATUS |
|
23840 |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
|
23841 |
echo 'CEOF |
|
23842 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
|
23843 |
rm -f $tmp/in |
|
23844 |
mv $tmp/out $tmp/in |
|
23845 |
' >>$CONFIG_STATUS |
|
23846 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
|
23847 |
rm -f conftest.undefs |
|
23848 |
mv conftest.tail conftest.undefs |
|
23849 |
done |
|
23850 |
rm -f conftest.undefs |
|
23851 |
||
23852 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
23853 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
|
23854 |
# use $as_me), people would be surprised to read: |
|
23855 |
# /* config.h. Generated by config.status. */ |
|
23856 |
if test x"$ac_file" = x-; then |
|
23857 |
echo "/* Generated by configure. */" >$tmp/config.h |
|
23858 |
else |
|
23859 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
|
23860 |
fi |
|
23861 |
cat $tmp/in >>$tmp/config.h |
|
23862 |
rm -f $tmp/in |
|
23863 |
if test x"$ac_file" != x-; then |
|
23864 |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
|
23865 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
|
23866 |
echo "$as_me: $ac_file is unchanged" >&6;} |
|
23867 |
else |
|
23868 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
|
23869 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
23870 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
23871 |
X"$ac_file" : 'X\(//\)$' \| \ |
|
23872 |
X"$ac_file" : 'X\(/\)' \| \ |
|
23873 |
. : '\(.\)' 2>/dev/null || |
|
23874 |
echo X"$ac_file" | |
|
23875 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
23876 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
23877 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
23878 |
/^X\(\/\).*/{ s//\1/; q; } |
|
23879 |
s/.*/./; q'` |
|
23880 |
{ if $as_mkdir_p; then |
|
23881 |
mkdir -p "$ac_dir" |
|
23882 |
else |
|
23883 |
as_dir="$ac_dir" |
|
23884 |
as_dirs= |
|
23885 |
while test ! -d "$as_dir"; do |
|
23886 |
as_dirs="$as_dir $as_dirs" |
|
23887 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
23888 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
23889 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
23890 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
23891 |
X"$as_dir" : 'X\(/\)' \| \ |
|
23892 |
. : '\(.\)' 2>/dev/null || |
|
23893 |
echo X"$as_dir" | |
|
23894 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
23895 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
23896 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
23897 |
/^X\(\/\).*/{ s//\1/; q; } |
|
23898 |
s/.*/./; q'` |
|
23899 |
done |
|
23900 |
test ! -n "$as_dirs" || mkdir $as_dirs |
|
23901 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
23902 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
23903 |
{ (exit 1); exit 1; }; }; } |
|
23904 |
||
23905 |
rm -f $ac_file |
|
23906 |
mv $tmp/config.h $ac_file |
|
23907 |
fi |
|
23908 |
else |
|
23909 |
cat $tmp/config.h |
|
23910 |
rm -f $tmp/config.h |
|
23911 |
fi |
|
23912 |
# Compute $ac_file's index in $config_headers. |
|
23913 |
_am_stamp_count=1 |
|
23914 |
for _am_header in $config_headers :; do |
|
23915 |
case $_am_header in |
|
23916 |
$ac_file | $ac_file:* ) |
|
23917 |
break ;; |
|
23918 |
* ) |
|
23919 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
|
23920 |
esac |
|
23921 |
done |
|
23922 |
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
|
23923 |
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
23924 |
X$ac_file : 'X\(//\)[^/]' \| \ |
|
23925 |
X$ac_file : 'X\(//\)$' \| \ |
|
23926 |
X$ac_file : 'X\(/\)' \| \ |
|
23927 |
. : '\(.\)' 2>/dev/null || |
|
23928 |
echo X$ac_file | |
|
23929 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
23930 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
23931 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
23932 |
/^X\(\/\).*/{ s//\1/; q; } |
|
23933 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
|
23934 |
done |
|
23935 |
_ACEOF |
|
23936 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
23937 |
||
23938 |
# |
|
23939 |
# CONFIG_COMMANDS section. |
|
23940 |
# |
|
23941 |
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
|
23942 |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
|
23943 |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
23944 |
ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
|
23945 |
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
23946 |
X"$ac_dest" : 'X\(//\)[^/]' \| \ |
|
23947 |
X"$ac_dest" : 'X\(//\)$' \| \ |
|
23948 |
X"$ac_dest" : 'X\(/\)' \| \ |
|
23949 |
. : '\(.\)' 2>/dev/null || |
|
23950 |
echo X"$ac_dest" | |
|
23951 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
23952 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
23953 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
23954 |
/^X\(\/\).*/{ s//\1/; q; } |
|
23955 |
s/.*/./; q'` |
|
23956 |
{ if $as_mkdir_p; then |
|
23957 |
mkdir -p "$ac_dir" |
|
23958 |
else |
|
23959 |
as_dir="$ac_dir" |
|
23960 |
as_dirs= |
|
23961 |
while test ! -d "$as_dir"; do |
|
23962 |
as_dirs="$as_dir $as_dirs" |
|
23963 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
23964 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
23965 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
23966 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
23967 |
X"$as_dir" : 'X\(/\)' \| \ |
|
23968 |
. : '\(.\)' 2>/dev/null || |
|
23969 |
echo X"$as_dir" | |
|
23970 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
23971 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
23972 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
23973 |
/^X\(\/\).*/{ s//\1/; q; } |
|
23974 |
s/.*/./; q'` |
|
23975 |
done |
|
23976 |
test ! -n "$as_dirs" || mkdir $as_dirs |
|
23977 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
23978 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
23979 |
{ (exit 1); exit 1; }; }; } |
|
23980 |
||
23981 |
ac_builddir=. |
|
23982 |
||
23983 |
if test "$ac_dir" != .; then |
|
23984 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
23985 |
# A "../" for each directory in $ac_dir_suffix. |
|
23986 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|
23987 |
else |
|
23988 |
ac_dir_suffix= ac_top_builddir= |
|
23989 |
fi |
|
23990 |
||
23991 |
case $srcdir in |
|
23992 |
.) # No --srcdir option. We are building in place. |
|
23993 |
ac_srcdir=. |
|
23994 |
if test -z "$ac_top_builddir"; then |
|
23995 |
ac_top_srcdir=. |
|
23996 |
else |
|
23997 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
23998 |
fi ;; |
|
23999 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
|
24000 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
24001 |
ac_top_srcdir=$srcdir ;; |
|
24002 |
*) # Relative path. |
|
24003 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
|
24004 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
|
24005 |
esac |
|
24006 |
||
24007 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
|
24008 |
# the directories may not exist. |
|
24009 |
case `pwd` in |
|
24010 |
.) ac_abs_builddir="$ac_dir";; |
|
24011 |
*) |
|
24012 |
case "$ac_dir" in |
|
24013 |
.) ac_abs_builddir=`pwd`;; |
|
24014 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|
24015 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
|
24016 |
esac;; |
|
24017 |
esac |
|
24018 |
case $ac_abs_builddir in |
|
24019 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
24020 |
*) |
|
24021 |
case ${ac_top_builddir}. in |
|
24022 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
|
24023 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
24024 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|
24025 |
esac;; |
|
24026 |
esac |
|
24027 |
case $ac_abs_builddir in |
|
24028 |
.) ac_abs_srcdir=$ac_srcdir;; |
|
24029 |
*) |
|
24030 |
case $ac_srcdir in |
|
24031 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
|
24032 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|
24033 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|
24034 |
esac;; |
|
24035 |
esac |
|
24036 |
case $ac_abs_builddir in |
|
24037 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
24038 |
*) |
|
24039 |
case $ac_top_srcdir in |
|
24040 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
|
24041 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
24042 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
|
24043 |
esac;; |
|
24044 |
esac |
|
24045 |
||
24046 |
||
24047 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
|
24048 |
echo "$as_me: executing $ac_dest commands" >&6;} |
|
24049 |
case $ac_dest in |
|
24050 |
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
|
24051 |
# Strip MF so we end up with the name of the file. |
|
24052 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
24053 |
# Check whether this is an Automake generated Makefile or not. |
|
24054 |
# We used to match only the files named `Makefile.in', but |
|
24055 |
# some people rename them; so instead we look at the file content. |
|
24056 |
# Grep'ing the first line is not enough: some people post-process |
|
24057 |
# each Makefile.in and add a new line on top of each file to say so. |
|
24058 |
# So let's grep whole file. |
|
24059 |
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
|
24060 |
dirpart=`(dirname "$mf") 2>/dev/null || |
|
24061 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
24062 |
X"$mf" : 'X\(//\)[^/]' \| \ |
|
24063 |
X"$mf" : 'X\(//\)$' \| \ |
|
24064 |
X"$mf" : 'X\(/\)' \| \ |
|
24065 |
. : '\(.\)' 2>/dev/null || |
|
24066 |
echo X"$mf" | |
|
24067 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
24068 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
24069 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
24070 |
/^X\(\/\).*/{ s//\1/; q; } |
|
24071 |
s/.*/./; q'` |
|
24072 |
else |
|
24073 |
continue |
|
24074 |
fi |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
24075 |
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
24076 |
# Extract the definition of DEP_FILES from the Makefile without |
|
24077 |
# running `make'. |
|
1
by Daniel Holbach
Import upstream version 1.1.15 |
24078 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
24079 |
test -z "$DEPDIR" && continue |
|
24080 |
# When using ansi2knr, U may be empty or an underscore; expand it |
|
24081 |
U=`sed -n 's/^U = //p' < "$mf"` |
|
2
by Daniel Holbach
* Resynchronize with Debian: |
24082 |
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
24083 |
# We invoke sed twice because it is the simplest approach to |
|
24084 |
# changing $(DEPDIR) to its actual value in the expansion. |
|
24085 |
for file in `sed -n ' |
|
24086 |
/^DEP_FILES = .*\\\\$/ { |
|
24087 |
s/^DEP_FILES = // |
|
24088 |
:loop |
|
24089 |
s/\\\\$// |
|
24090 |
p |
|
24091 |
n |
|
24092 |
/\\\\$/ b loop |
|
24093 |
p |
|
24094 |
} |
|
24095 |
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
|
1
by Daniel Holbach
Import upstream version 1.1.15 |
24096 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
24097 |
# Make sure the directory exists. |
|
24098 |
test -f "$dirpart/$file" && continue |
|
24099 |
fdir=`(dirname "$file") 2>/dev/null || |
|
24100 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
24101 |
X"$file" : 'X\(//\)[^/]' \| \ |
|
24102 |
X"$file" : 'X\(//\)$' \| \ |
|
24103 |
X"$file" : 'X\(/\)' \| \ |
|
24104 |
. : '\(.\)' 2>/dev/null || |
|
24105 |
echo X"$file" | |
|
24106 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
24107 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
24108 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
24109 |
/^X\(\/\).*/{ s//\1/; q; } |
|
24110 |
s/.*/./; q'` |
|
24111 |
{ if $as_mkdir_p; then |
|
24112 |
mkdir -p $dirpart/$fdir |
|
24113 |
else |
|
24114 |
as_dir=$dirpart/$fdir |
|
24115 |
as_dirs= |
|
24116 |
while test ! -d "$as_dir"; do |
|
24117 |
as_dirs="$as_dir $as_dirs" |
|
24118 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
24119 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
24120 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
24121 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
24122 |
X"$as_dir" : 'X\(/\)' \| \ |
|
24123 |
. : '\(.\)' 2>/dev/null || |
|
24124 |
echo X"$as_dir" | |
|
24125 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
24126 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
24127 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
24128 |
/^X\(\/\).*/{ s//\1/; q; } |
|
24129 |
s/.*/./; q'` |
|
24130 |
done |
|
24131 |
test ! -n "$as_dirs" || mkdir $as_dirs |
|
24132 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
|
24133 |
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
|
24134 |
{ (exit 1); exit 1; }; }; } |
|
24135 |
||
24136 |
# echo "creating $dirpart/$file" |
|
24137 |
echo '# dummy' > "$dirpart/$file" |
|
24138 |
done |
|
24139 |
done |
|
24140 |
;; |
|
24141 |
esac |
|
24142 |
done |
|
24143 |
_ACEOF |
|
24144 |
||
24145 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
24146 |
||
24147 |
{ (exit 0); exit 0; } |
|
24148 |
_ACEOF |
|
24149 |
chmod +x $CONFIG_STATUS |
|
24150 |
ac_clean_files=$ac_clean_files_save |
|
24151 |
||
24152 |
||
24153 |
# configure is writing to config.log, and then calls config.status. |
|
24154 |
# config.status does its own redirection, appending to config.log. |
|
24155 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
|
24156 |
# by configure, so config.status won't be able to write to it; its |
|
24157 |
# output is simply discarded. So we exec the FD to /dev/null, |
|
24158 |
# effectively closing config.log, so it can be properly (re)opened and |
|
24159 |
# appended to by config.status. When coming back to configure, we |
|
24160 |
# need to make the FD available again. |
|
24161 |
if test "$no_create" != yes; then |
|
24162 |
ac_cs_success=: |
|
24163 |
ac_config_status_args= |
|
24164 |
test "$silent" = yes && |
|
24165 |
ac_config_status_args="$ac_config_status_args --quiet" |
|
24166 |
exec 5>/dev/null |
|
24167 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
24168 |
exec 5>>config.log |
|
24169 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
24170 |
# would make configure fail if this is the last instruction. |
|
24171 |
$ac_cs_success || { (exit 1); exit 1; } |
|
24172 |
fi |
|
24173 |