1 |
19 |
jeremybenn |
@%:@! /bin/sh
|
2 |
|
|
@%:@ From configure.ac Id: configure.ac,v 1.1 2008/10/12 17:27:52 jeremybennett Exp using automake version AC_ACVERSION.
|
3 |
|
|
@%:@ Guess values for system-dependent variables and create Makefiles.
|
4 |
|
|
@%:@ Generated by GNU Autoconf 2.61 for or1ksim 0.3.0rc1.
|
5 |
|
|
@%:@
|
6 |
|
|
@%:@ Report bugs to .
|
7 |
|
|
@%:@
|
8 |
|
|
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
9 |
|
|
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
10 |
|
|
@%:@ This configure script is free software; the Free Software Foundation
|
11 |
|
|
@%:@ gives unlimited permission to copy, distribute and modify it.
|
12 |
|
|
## --------------------- ##
|
13 |
|
|
## M4sh Initialization. ##
|
14 |
|
|
## --------------------- ##
|
15 |
|
|
|
16 |
|
|
# Be more Bourne compatible
|
17 |
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
18 |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
19 |
|
|
emulate sh
|
20 |
|
|
NULLCMD=:
|
21 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
22 |
|
|
# is contrary to our usage. Disable this feature.
|
23 |
|
|
alias -g '${1+"$@"}'='"$@"'
|
24 |
|
|
setopt NO_GLOB_SUBST
|
25 |
|
|
else
|
26 |
|
|
case `(set -o) 2>/dev/null` in
|
27 |
|
|
*posix*) set -o posix ;;
|
28 |
|
|
esac
|
29 |
|
|
|
30 |
|
|
fi
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
# PATH needs CR
|
36 |
|
|
# Avoid depending upon Character Ranges.
|
37 |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
38 |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
39 |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
40 |
|
|
as_cr_digits='0123456789'
|
41 |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
42 |
|
|
|
43 |
|
|
# The user is always right.
|
44 |
|
|
if test "${PATH_SEPARATOR+set}" != set; then
|
45 |
|
|
echo "#! /bin/sh" >conf$$.sh
|
46 |
|
|
echo "exit 0" >>conf$$.sh
|
47 |
|
|
chmod +x conf$$.sh
|
48 |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
49 |
|
|
PATH_SEPARATOR=';'
|
50 |
|
|
else
|
51 |
|
|
PATH_SEPARATOR=:
|
52 |
|
|
fi
|
53 |
|
|
rm -f conf$$.sh
|
54 |
|
|
fi
|
55 |
|
|
|
56 |
|
|
# Support unset when possible.
|
57 |
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
58 |
|
|
as_unset=unset
|
59 |
|
|
else
|
60 |
|
|
as_unset=false
|
61 |
|
|
fi
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
# IFS
|
65 |
|
|
# We need space, tab and new line, in precisely that order. Quoting is
|
66 |
|
|
# there to prevent editors from complaining about space-tab.
|
67 |
|
|
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
68 |
|
|
# splitting by setting IFS to empty value.)
|
69 |
|
|
as_nl='
|
70 |
|
|
'
|
71 |
|
|
IFS=" "" $as_nl"
|
72 |
|
|
|
73 |
|
|
# Find who we are. Look in the path if we contain no directory separator.
|
74 |
|
|
case $0 in
|
75 |
|
|
*[\\/]* ) as_myself=$0 ;;
|
76 |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
77 |
|
|
for as_dir in $PATH
|
78 |
|
|
do
|
79 |
|
|
IFS=$as_save_IFS
|
80 |
|
|
test -z "$as_dir" && as_dir=.
|
81 |
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
82 |
|
|
done
|
83 |
|
|
IFS=$as_save_IFS
|
84 |
|
|
|
85 |
|
|
;;
|
86 |
|
|
esac
|
87 |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
88 |
|
|
# in which case we are not to be found in the path.
|
89 |
|
|
if test "x$as_myself" = x; then
|
90 |
|
|
as_myself=$0
|
91 |
|
|
fi
|
92 |
|
|
if test ! -f "$as_myself"; then
|
93 |
|
|
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
94 |
|
|
{ (exit 1); exit 1; }
|
95 |
|
|
fi
|
96 |
|
|
|
97 |
|
|
# Work around bugs in pre-3.0 UWIN ksh.
|
98 |
|
|
for as_var in ENV MAIL MAILPATH
|
99 |
|
|
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
100 |
|
|
done
|
101 |
|
|
PS1='$ '
|
102 |
|
|
PS2='> '
|
103 |
|
|
PS4='+ '
|
104 |
|
|
|
105 |
|
|
# NLS nuisances.
|
106 |
|
|
for as_var in \
|
107 |
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
108 |
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
109 |
|
|
LC_TELEPHONE LC_TIME
|
110 |
|
|
do
|
111 |
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
112 |
|
|
eval $as_var=C; export $as_var
|
113 |
|
|
else
|
114 |
|
|
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
115 |
|
|
fi
|
116 |
|
|
done
|
117 |
|
|
|
118 |
|
|
# Required to use basename.
|
119 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
120 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
121 |
|
|
as_expr=expr
|
122 |
|
|
else
|
123 |
|
|
as_expr=false
|
124 |
|
|
fi
|
125 |
|
|
|
126 |
|
|
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
127 |
|
|
as_basename=basename
|
128 |
|
|
else
|
129 |
|
|
as_basename=false
|
130 |
|
|
fi
|
131 |
|
|
|
132 |
|
|
|
133 |
|
|
# Name of the executable.
|
134 |
|
|
as_me=`$as_basename -- "$0" ||
|
135 |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
136 |
|
|
X"$0" : 'X\(//\)$' \| \
|
137 |
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
138 |
|
|
echo X/"$0" |
|
139 |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
140 |
|
|
s//\1/
|
141 |
|
|
q
|
142 |
|
|
}
|
143 |
|
|
/^X\/\(\/\/\)$/{
|
144 |
|
|
s//\1/
|
145 |
|
|
q
|
146 |
|
|
}
|
147 |
|
|
/^X\/\(\/\).*/{
|
148 |
|
|
s//\1/
|
149 |
|
|
q
|
150 |
|
|
}
|
151 |
|
|
s/.*/./; q'`
|
152 |
|
|
|
153 |
|
|
# CDPATH.
|
154 |
|
|
$as_unset CDPATH
|
155 |
|
|
|
156 |
|
|
|
157 |
|
|
if test "x$CONFIG_SHELL" = x; then
|
158 |
|
|
if (eval ":") 2>/dev/null; then
|
159 |
|
|
as_have_required=yes
|
160 |
|
|
else
|
161 |
|
|
as_have_required=no
|
162 |
|
|
fi
|
163 |
|
|
|
164 |
|
|
if test $as_have_required = yes && (eval ":
|
165 |
|
|
(as_func_return () {
|
166 |
|
|
(exit \$1)
|
167 |
|
|
}
|
168 |
|
|
as_func_success () {
|
169 |
|
|
as_func_return 0
|
170 |
|
|
}
|
171 |
|
|
as_func_failure () {
|
172 |
|
|
as_func_return 1
|
173 |
|
|
}
|
174 |
|
|
as_func_ret_success () {
|
175 |
|
|
return 0
|
176 |
|
|
}
|
177 |
|
|
as_func_ret_failure () {
|
178 |
|
|
return 1
|
179 |
|
|
}
|
180 |
|
|
|
181 |
|
|
exitcode=0
|
182 |
|
|
if as_func_success; then
|
183 |
|
|
:
|
184 |
|
|
else
|
185 |
|
|
exitcode=1
|
186 |
|
|
echo as_func_success failed.
|
187 |
|
|
fi
|
188 |
|
|
|
189 |
|
|
if as_func_failure; then
|
190 |
|
|
exitcode=1
|
191 |
|
|
echo as_func_failure succeeded.
|
192 |
|
|
fi
|
193 |
|
|
|
194 |
|
|
if as_func_ret_success; then
|
195 |
|
|
:
|
196 |
|
|
else
|
197 |
|
|
exitcode=1
|
198 |
|
|
echo as_func_ret_success failed.
|
199 |
|
|
fi
|
200 |
|
|
|
201 |
|
|
if as_func_ret_failure; then
|
202 |
|
|
exitcode=1
|
203 |
|
|
echo as_func_ret_failure succeeded.
|
204 |
|
|
fi
|
205 |
|
|
|
206 |
|
|
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
207 |
|
|
:
|
208 |
|
|
else
|
209 |
|
|
exitcode=1
|
210 |
|
|
echo positional parameters were not saved.
|
211 |
|
|
fi
|
212 |
|
|
|
213 |
|
|
test \$exitcode = 0) || { (exit 1); exit 1; }
|
214 |
|
|
|
215 |
|
|
(
|
216 |
|
|
as_lineno_1=\$LINENO
|
217 |
|
|
as_lineno_2=\$LINENO
|
218 |
|
|
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
|
219 |
|
|
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
|
220 |
|
|
") 2> /dev/null; then
|
221 |
|
|
:
|
222 |
|
|
else
|
223 |
|
|
as_candidate_shells=
|
224 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
225 |
|
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
226 |
|
|
do
|
227 |
|
|
IFS=$as_save_IFS
|
228 |
|
|
test -z "$as_dir" && as_dir=.
|
229 |
|
|
case $as_dir in
|
230 |
|
|
/*)
|
231 |
|
|
for as_base in sh bash ksh sh5; do
|
232 |
|
|
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
|
233 |
|
|
done;;
|
234 |
|
|
esac
|
235 |
|
|
done
|
236 |
|
|
IFS=$as_save_IFS
|
237 |
|
|
|
238 |
|
|
|
239 |
|
|
for as_shell in $as_candidate_shells $SHELL; do
|
240 |
|
|
# Try only shells that exist, to save several forks.
|
241 |
|
|
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
242 |
|
|
{ ("$as_shell") 2> /dev/null <<\_ASEOF
|
243 |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
244 |
|
|
emulate sh
|
245 |
|
|
NULLCMD=:
|
246 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
247 |
|
|
# is contrary to our usage. Disable this feature.
|
248 |
|
|
alias -g '${1+"$@"}'='"$@"'
|
249 |
|
|
setopt NO_GLOB_SUBST
|
250 |
|
|
else
|
251 |
|
|
case `(set -o) 2>/dev/null` in
|
252 |
|
|
*posix*) set -o posix ;;
|
253 |
|
|
esac
|
254 |
|
|
|
255 |
|
|
fi
|
256 |
|
|
|
257 |
|
|
|
258 |
|
|
:
|
259 |
|
|
_ASEOF
|
260 |
|
|
}; then
|
261 |
|
|
CONFIG_SHELL=$as_shell
|
262 |
|
|
as_have_required=yes
|
263 |
|
|
if { "$as_shell" 2> /dev/null <<\_ASEOF
|
264 |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
265 |
|
|
emulate sh
|
266 |
|
|
NULLCMD=:
|
267 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
268 |
|
|
# is contrary to our usage. Disable this feature.
|
269 |
|
|
alias -g '${1+"$@"}'='"$@"'
|
270 |
|
|
setopt NO_GLOB_SUBST
|
271 |
|
|
else
|
272 |
|
|
case `(set -o) 2>/dev/null` in
|
273 |
|
|
*posix*) set -o posix ;;
|
274 |
|
|
esac
|
275 |
|
|
|
276 |
|
|
fi
|
277 |
|
|
|
278 |
|
|
|
279 |
|
|
:
|
280 |
|
|
(as_func_return () {
|
281 |
|
|
(exit $1)
|
282 |
|
|
}
|
283 |
|
|
as_func_success () {
|
284 |
|
|
as_func_return 0
|
285 |
|
|
}
|
286 |
|
|
as_func_failure () {
|
287 |
|
|
as_func_return 1
|
288 |
|
|
}
|
289 |
|
|
as_func_ret_success () {
|
290 |
|
|
return 0
|
291 |
|
|
}
|
292 |
|
|
as_func_ret_failure () {
|
293 |
|
|
return 1
|
294 |
|
|
}
|
295 |
|
|
|
296 |
|
|
exitcode=0
|
297 |
|
|
if as_func_success; then
|
298 |
|
|
:
|
299 |
|
|
else
|
300 |
|
|
exitcode=1
|
301 |
|
|
echo as_func_success failed.
|
302 |
|
|
fi
|
303 |
|
|
|
304 |
|
|
if as_func_failure; then
|
305 |
|
|
exitcode=1
|
306 |
|
|
echo as_func_failure succeeded.
|
307 |
|
|
fi
|
308 |
|
|
|
309 |
|
|
if as_func_ret_success; then
|
310 |
|
|
:
|
311 |
|
|
else
|
312 |
|
|
exitcode=1
|
313 |
|
|
echo as_func_ret_success failed.
|
314 |
|
|
fi
|
315 |
|
|
|
316 |
|
|
if as_func_ret_failure; then
|
317 |
|
|
exitcode=1
|
318 |
|
|
echo as_func_ret_failure succeeded.
|
319 |
|
|
fi
|
320 |
|
|
|
321 |
|
|
if ( set x; as_func_ret_success y && test x = "$1" ); then
|
322 |
|
|
:
|
323 |
|
|
else
|
324 |
|
|
exitcode=1
|
325 |
|
|
echo positional parameters were not saved.
|
326 |
|
|
fi
|
327 |
|
|
|
328 |
|
|
test $exitcode = 0) || { (exit 1); exit 1; }
|
329 |
|
|
|
330 |
|
|
(
|
331 |
|
|
as_lineno_1=$LINENO
|
332 |
|
|
as_lineno_2=$LINENO
|
333 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
334 |
|
|
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
|
335 |
|
|
|
336 |
|
|
_ASEOF
|
337 |
|
|
}; then
|
338 |
|
|
break
|
339 |
|
|
fi
|
340 |
|
|
|
341 |
|
|
fi
|
342 |
|
|
|
343 |
|
|
done
|
344 |
|
|
|
345 |
|
|
if test "x$CONFIG_SHELL" != x; then
|
346 |
|
|
for as_var in BASH_ENV ENV
|
347 |
|
|
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
348 |
|
|
done
|
349 |
|
|
export CONFIG_SHELL
|
350 |
|
|
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
351 |
|
|
fi
|
352 |
|
|
|
353 |
|
|
|
354 |
|
|
if test $as_have_required = no; then
|
355 |
|
|
echo This script requires a shell more modern than all the
|
356 |
|
|
echo shells that I found on your system. Please install a
|
357 |
|
|
echo modern shell, or manually run the script under such a
|
358 |
|
|
echo shell if you do have one.
|
359 |
|
|
{ (exit 1); exit 1; }
|
360 |
|
|
fi
|
361 |
|
|
|
362 |
|
|
|
363 |
|
|
fi
|
364 |
|
|
|
365 |
|
|
fi
|
366 |
|
|
|
367 |
|
|
|
368 |
|
|
|
369 |
|
|
(eval "as_func_return () {
|
370 |
|
|
(exit \$1)
|
371 |
|
|
}
|
372 |
|
|
as_func_success () {
|
373 |
|
|
as_func_return 0
|
374 |
|
|
}
|
375 |
|
|
as_func_failure () {
|
376 |
|
|
as_func_return 1
|
377 |
|
|
}
|
378 |
|
|
as_func_ret_success () {
|
379 |
|
|
return 0
|
380 |
|
|
}
|
381 |
|
|
as_func_ret_failure () {
|
382 |
|
|
return 1
|
383 |
|
|
}
|
384 |
|
|
|
385 |
|
|
exitcode=0
|
386 |
|
|
if as_func_success; then
|
387 |
|
|
:
|
388 |
|
|
else
|
389 |
|
|
exitcode=1
|
390 |
|
|
echo as_func_success failed.
|
391 |
|
|
fi
|
392 |
|
|
|
393 |
|
|
if as_func_failure; then
|
394 |
|
|
exitcode=1
|
395 |
|
|
echo as_func_failure succeeded.
|
396 |
|
|
fi
|
397 |
|
|
|
398 |
|
|
if as_func_ret_success; then
|
399 |
|
|
:
|
400 |
|
|
else
|
401 |
|
|
exitcode=1
|
402 |
|
|
echo as_func_ret_success failed.
|
403 |
|
|
fi
|
404 |
|
|
|
405 |
|
|
if as_func_ret_failure; then
|
406 |
|
|
exitcode=1
|
407 |
|
|
echo as_func_ret_failure succeeded.
|
408 |
|
|
fi
|
409 |
|
|
|
410 |
|
|
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
411 |
|
|
:
|
412 |
|
|
else
|
413 |
|
|
exitcode=1
|
414 |
|
|
echo positional parameters were not saved.
|
415 |
|
|
fi
|
416 |
|
|
|
417 |
|
|
test \$exitcode = 0") || {
|
418 |
|
|
echo No shell found that supports shell functions.
|
419 |
|
|
echo Please tell autoconf@gnu.org about your system,
|
420 |
|
|
echo including any error possibly output before this
|
421 |
|
|
echo message
|
422 |
|
|
}
|
423 |
|
|
|
424 |
|
|
|
425 |
|
|
|
426 |
|
|
as_lineno_1=$LINENO
|
427 |
|
|
as_lineno_2=$LINENO
|
428 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
429 |
|
|
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
430 |
|
|
|
431 |
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
432 |
|
|
# uniformly replaced by the line number. The first 'sed' inserts a
|
433 |
|
|
# line-number line after each line using $LINENO; the second 'sed'
|
434 |
|
|
# does the real work. The second script uses 'N' to pair each
|
435 |
|
|
# line-number line with the line containing $LINENO, and appends
|
436 |
|
|
# trailing '-' during substitution so that $LINENO is not a special
|
437 |
|
|
# case at line end.
|
438 |
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
439 |
|
|
# scripts with optimization help from Paolo Bonzini. Blame Lee
|
440 |
|
|
# E. McMahon (1931-1989) for sed's syntax. :-)
|
441 |
|
|
sed -n '
|
442 |
|
|
p
|
443 |
|
|
/[$]LINENO/=
|
444 |
|
|
' <$as_myself |
|
445 |
|
|
sed '
|
446 |
|
|
s/[$]LINENO.*/&-/
|
447 |
|
|
t lineno
|
448 |
|
|
b
|
449 |
|
|
:lineno
|
450 |
|
|
N
|
451 |
|
|
:loop
|
452 |
|
|
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
453 |
|
|
t loop
|
454 |
|
|
s/-\n.*//
|
455 |
|
|
' >$as_me.lineno &&
|
456 |
|
|
chmod +x "$as_me.lineno" ||
|
457 |
|
|
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
458 |
|
|
{ (exit 1); exit 1; }; }
|
459 |
|
|
|
460 |
|
|
# Don't try to exec as it changes $[0], causing all sort of problems
|
461 |
|
|
# (the dirname of $[0] is not the place where we might find the
|
462 |
|
|
# original and so on. Autoconf is especially sensitive to this).
|
463 |
|
|
. "./$as_me.lineno"
|
464 |
|
|
# Exit status is that of the last command.
|
465 |
|
|
exit
|
466 |
|
|
}
|
467 |
|
|
|
468 |
|
|
|
469 |
|
|
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
470 |
|
|
as_dirname=dirname
|
471 |
|
|
else
|
472 |
|
|
as_dirname=false
|
473 |
|
|
fi
|
474 |
|
|
|
475 |
|
|
ECHO_C= ECHO_N= ECHO_T=
|
476 |
|
|
case `echo -n x` in
|
477 |
|
|
-n*)
|
478 |
|
|
case `echo 'x\c'` in
|
479 |
|
|
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
480 |
|
|
*) ECHO_C='\c';;
|
481 |
|
|
esac;;
|
482 |
|
|
*)
|
483 |
|
|
ECHO_N='-n';;
|
484 |
|
|
esac
|
485 |
|
|
|
486 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
487 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
488 |
|
|
as_expr=expr
|
489 |
|
|
else
|
490 |
|
|
as_expr=false
|
491 |
|
|
fi
|
492 |
|
|
|
493 |
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
494 |
|
|
if test -d conf$$.dir; then
|
495 |
|
|
rm -f conf$$.dir/conf$$.file
|
496 |
|
|
else
|
497 |
|
|
rm -f conf$$.dir
|
498 |
|
|
mkdir conf$$.dir
|
499 |
|
|
fi
|
500 |
|
|
echo >conf$$.file
|
501 |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
502 |
|
|
as_ln_s='ln -s'
|
503 |
|
|
# ... but there are two gotchas:
|
504 |
|
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
505 |
|
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
506 |
|
|
# In both cases, we have to default to `cp -p'.
|
507 |
|
|
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
508 |
|
|
as_ln_s='cp -p'
|
509 |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then
|
510 |
|
|
as_ln_s=ln
|
511 |
|
|
else
|
512 |
|
|
as_ln_s='cp -p'
|
513 |
|
|
fi
|
514 |
|
|
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
515 |
|
|
rmdir conf$$.dir 2>/dev/null
|
516 |
|
|
|
517 |
|
|
if mkdir -p . 2>/dev/null; then
|
518 |
|
|
as_mkdir_p=:
|
519 |
|
|
else
|
520 |
|
|
test -d ./-p && rmdir ./-p
|
521 |
|
|
as_mkdir_p=false
|
522 |
|
|
fi
|
523 |
|
|
|
524 |
|
|
if test -x / >/dev/null 2>&1; then
|
525 |
|
|
as_test_x='test -x'
|
526 |
|
|
else
|
527 |
|
|
if ls -dL / >/dev/null 2>&1; then
|
528 |
|
|
as_ls_L_option=L
|
529 |
|
|
else
|
530 |
|
|
as_ls_L_option=
|
531 |
|
|
fi
|
532 |
|
|
as_test_x='
|
533 |
|
|
eval sh -c '\''
|
534 |
|
|
if test -d "$1"; then
|
535 |
|
|
test -d "$1/.";
|
536 |
|
|
else
|
537 |
|
|
case $1 in
|
538 |
|
|
-*)set "./$1";;
|
539 |
|
|
esac;
|
540 |
|
|
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
541 |
|
|
???[sx]*):;;*)false;;esac;fi
|
542 |
|
|
'\'' sh
|
543 |
|
|
'
|
544 |
|
|
fi
|
545 |
|
|
as_executable_p=$as_test_x
|
546 |
|
|
|
547 |
|
|
# Sed expression to map a string onto a valid CPP name.
|
548 |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
549 |
|
|
|
550 |
|
|
# Sed expression to map a string onto a valid variable name.
|
551 |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
552 |
|
|
|
553 |
|
|
|
554 |
|
|
|
555 |
|
|
|
556 |
|
|
# Check that we are running under the correct shell.
|
557 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
558 |
|
|
|
559 |
|
|
case X$ECHO in
|
560 |
|
|
X*--fallback-echo)
|
561 |
|
|
# Remove one level of quotation (which was required for Make).
|
562 |
|
|
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
|
563 |
|
|
;;
|
564 |
|
|
esac
|
565 |
|
|
|
566 |
|
|
echo=${ECHO-echo}
|
567 |
|
|
if test "X$1" = X--no-reexec; then
|
568 |
|
|
# Discard the --no-reexec flag, and continue.
|
569 |
|
|
shift
|
570 |
|
|
elif test "X$1" = X--fallback-echo; then
|
571 |
|
|
# Avoid inline document here, it may be left over
|
572 |
|
|
:
|
573 |
|
|
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
|
574 |
|
|
# Yippee, $echo works!
|
575 |
|
|
:
|
576 |
|
|
else
|
577 |
|
|
# Restart under the correct shell.
|
578 |
|
|
exec $SHELL "$0" --no-reexec ${1+"$@"}
|
579 |
|
|
fi
|
580 |
|
|
|
581 |
|
|
if test "X$1" = X--fallback-echo; then
|
582 |
|
|
# used as fallback echo
|
583 |
|
|
shift
|
584 |
|
|
cat <
|
585 |
|
|
$*
|
586 |
|
|
EOF
|
587 |
|
|
exit 0
|
588 |
|
|
fi
|
589 |
|
|
|
590 |
|
|
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
591 |
|
|
# if CDPATH is set.
|
592 |
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
593 |
|
|
|
594 |
|
|
if test -z "$ECHO"; then
|
595 |
|
|
if test "X${echo_test_string+set}" != Xset; then
|
596 |
|
|
# find a string as large as possible, as long as the shell can cope with it
|
597 |
|
|
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
|
598 |
|
|
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
599 |
|
|
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
|
600 |
|
|
echo_test_string=`eval $cmd` &&
|
601 |
|
|
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
|
602 |
|
|
then
|
603 |
|
|
break
|
604 |
|
|
fi
|
605 |
|
|
done
|
606 |
|
|
fi
|
607 |
|
|
|
608 |
|
|
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
609 |
|
|
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
610 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
611 |
|
|
:
|
612 |
|
|
else
|
613 |
|
|
# The Solaris, AIX, and Digital Unix default echo programs unquote
|
614 |
|
|
# backslashes. This makes it impossible to quote backslashes using
|
615 |
|
|
# echo "$something" | sed 's/\\/\\\\/g'
|
616 |
|
|
#
|
617 |
|
|
# So, first we look for a working echo in the user's PATH.
|
618 |
|
|
|
619 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
620 |
|
|
for dir in $PATH /usr/ucb; do
|
621 |
|
|
IFS="$lt_save_ifs"
|
622 |
|
|
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
623 |
|
|
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
624 |
|
|
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
625 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
626 |
|
|
echo="$dir/echo"
|
627 |
|
|
break
|
628 |
|
|
fi
|
629 |
|
|
done
|
630 |
|
|
IFS="$lt_save_ifs"
|
631 |
|
|
|
632 |
|
|
if test "X$echo" = Xecho; then
|
633 |
|
|
# We didn't find a better echo, so look for alternatives.
|
634 |
|
|
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
|
635 |
|
|
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
|
636 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
637 |
|
|
# This shell has a builtin print -r that does the trick.
|
638 |
|
|
echo='print -r'
|
639 |
|
|
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
|
640 |
|
|
test "X$CONFIG_SHELL" != X/bin/ksh; then
|
641 |
|
|
# If we have ksh, try running configure again with it.
|
642 |
|
|
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
643 |
|
|
export ORIGINAL_CONFIG_SHELL
|
644 |
|
|
CONFIG_SHELL=/bin/ksh
|
645 |
|
|
export CONFIG_SHELL
|
646 |
|
|
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
|
647 |
|
|
else
|
648 |
|
|
# Try using printf.
|
649 |
|
|
echo='printf %s\n'
|
650 |
|
|
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
651 |
|
|
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
652 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
653 |
|
|
# Cool, printf works
|
654 |
|
|
:
|
655 |
|
|
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
|
656 |
|
|
test "X$echo_testing_string" = 'X\t' &&
|
657 |
|
|
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
658 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
659 |
|
|
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
660 |
|
|
export CONFIG_SHELL
|
661 |
|
|
SHELL="$CONFIG_SHELL"
|
662 |
|
|
export SHELL
|
663 |
|
|
echo="$CONFIG_SHELL $0 --fallback-echo"
|
664 |
|
|
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
|
665 |
|
|
test "X$echo_testing_string" = 'X\t' &&
|
666 |
|
|
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
667 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
668 |
|
|
echo="$CONFIG_SHELL $0 --fallback-echo"
|
669 |
|
|
else
|
670 |
|
|
# maybe with a smaller string...
|
671 |
|
|
prev=:
|
672 |
|
|
|
673 |
|
|
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
|
674 |
|
|
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
|
675 |
|
|
then
|
676 |
|
|
break
|
677 |
|
|
fi
|
678 |
|
|
prev="$cmd"
|
679 |
|
|
done
|
680 |
|
|
|
681 |
|
|
if test "$prev" != 'sed 50q "$0"'; then
|
682 |
|
|
echo_test_string=`eval $prev`
|
683 |
|
|
export echo_test_string
|
684 |
|
|
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
|
685 |
|
|
else
|
686 |
|
|
# Oops. We lost completely, so just stick with echo.
|
687 |
|
|
echo=echo
|
688 |
|
|
fi
|
689 |
|
|
fi
|
690 |
|
|
fi
|
691 |
|
|
fi
|
692 |
|
|
fi
|
693 |
|
|
fi
|
694 |
|
|
|
695 |
|
|
# Copy echo and quote the copy suitably for passing to libtool from
|
696 |
|
|
# the Makefile, instead of quoting the original, which is used later.
|
697 |
|
|
ECHO=$echo
|
698 |
|
|
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
|
699 |
|
|
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
|
700 |
|
|
fi
|
701 |
|
|
|
702 |
|
|
|
703 |
|
|
|
704 |
|
|
|
705 |
|
|
tagnames=${tagnames+${tagnames},}CXX
|
706 |
|
|
|
707 |
|
|
tagnames=${tagnames+${tagnames},}F77
|
708 |
|
|
|
709 |
|
|
exec 7<&0 &1
|
710 |
|
|
|
711 |
|
|
# Name of the host.
|
712 |
|
|
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
713 |
|
|
# so uname gets run too.
|
714 |
|
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
715 |
|
|
|
716 |
|
|
#
|
717 |
|
|
# Initializations.
|
718 |
|
|
#
|
719 |
|
|
ac_default_prefix=/usr/local
|
720 |
|
|
ac_clean_files=
|
721 |
|
|
ac_config_libobj_dir=.
|
722 |
|
|
LIB@&t@OBJS=
|
723 |
|
|
cross_compiling=no
|
724 |
|
|
subdirs=
|
725 |
|
|
MFLAGS=
|
726 |
|
|
MAKEFLAGS=
|
727 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
728 |
|
|
|
729 |
|
|
# Identity of this package.
|
730 |
|
|
PACKAGE_NAME='or1ksim'
|
731 |
|
|
PACKAGE_TARNAME='or1ksim'
|
732 |
|
|
PACKAGE_VERSION='0.3.0rc1'
|
733 |
|
|
PACKAGE_STRING='or1ksim 0.3.0rc1'
|
734 |
|
|
PACKAGE_BUGREPORT='openrisc@opencores.org'
|
735 |
|
|
|
736 |
|
|
ac_unique_file="cpu/or32/execute.c"
|
737 |
|
|
# Factoring default headers for most tests.
|
738 |
|
|
ac_includes_default="\
|
739 |
|
|
#include
|
740 |
|
|
#ifdef HAVE_SYS_TYPES_H
|
741 |
|
|
# include
|
742 |
|
|
#endif
|
743 |
|
|
#ifdef HAVE_SYS_STAT_H
|
744 |
|
|
# include
|
745 |
|
|
#endif
|
746 |
|
|
#ifdef STDC_HEADERS
|
747 |
|
|
# include
|
748 |
|
|
# include
|
749 |
|
|
#else
|
750 |
|
|
# ifdef HAVE_STDLIB_H
|
751 |
|
|
# include
|
752 |
|
|
# endif
|
753 |
|
|
#endif
|
754 |
|
|
#ifdef HAVE_STRING_H
|
755 |
|
|
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
756 |
|
|
# include
|
757 |
|
|
# endif
|
758 |
|
|
# include
|
759 |
|
|
#endif
|
760 |
|
|
#ifdef HAVE_STRINGS_H
|
761 |
|
|
# include
|
762 |
|
|
#endif
|
763 |
|
|
#ifdef HAVE_INTTYPES_H
|
764 |
|
|
# include
|
765 |
|
|
#endif
|
766 |
|
|
#ifdef HAVE_STDINT_H
|
767 |
|
|
# include
|
768 |
|
|
#endif
|
769 |
|
|
#ifdef HAVE_UNISTD_H
|
770 |
|
|
# include
|
771 |
|
|
#endif"
|
772 |
|
|
|
773 |
|
|
ac_subst_vars='SHELL
|
774 |
|
|
PATH_SEPARATOR
|
775 |
|
|
PACKAGE_NAME
|
776 |
|
|
PACKAGE_TARNAME
|
777 |
|
|
PACKAGE_VERSION
|
778 |
|
|
PACKAGE_STRING
|
779 |
|
|
PACKAGE_BUGREPORT
|
780 |
|
|
exec_prefix
|
781 |
|
|
prefix
|
782 |
|
|
program_transform_name
|
783 |
|
|
bindir
|
784 |
|
|
sbindir
|
785 |
|
|
libexecdir
|
786 |
|
|
datarootdir
|
787 |
|
|
datadir
|
788 |
|
|
sysconfdir
|
789 |
|
|
sharedstatedir
|
790 |
|
|
localstatedir
|
791 |
|
|
includedir
|
792 |
|
|
oldincludedir
|
793 |
|
|
docdir
|
794 |
|
|
infodir
|
795 |
|
|
htmldir
|
796 |
|
|
dvidir
|
797 |
|
|
pdfdir
|
798 |
|
|
psdir
|
799 |
|
|
libdir
|
800 |
|
|
localedir
|
801 |
|
|
mandir
|
802 |
|
|
DEFS
|
803 |
|
|
ECHO_C
|
804 |
|
|
ECHO_N
|
805 |
|
|
ECHO_T
|
806 |
|
|
LIBS
|
807 |
|
|
build_alias
|
808 |
|
|
host_alias
|
809 |
|
|
target_alias
|
810 |
|
|
build
|
811 |
|
|
build_cpu
|
812 |
|
|
build_vendor
|
813 |
|
|
build_os
|
814 |
|
|
host
|
815 |
|
|
host_cpu
|
816 |
|
|
host_vendor
|
817 |
|
|
host_os
|
818 |
|
|
target
|
819 |
|
|
target_cpu
|
820 |
|
|
target_vendor
|
821 |
|
|
target_os
|
822 |
|
|
CC
|
823 |
|
|
CFLAGS
|
824 |
|
|
LDFLAGS
|
825 |
|
|
CPPFLAGS
|
826 |
|
|
ac_ct_CC
|
827 |
|
|
EXEEXT
|
828 |
|
|
OBJEXT
|
829 |
|
|
SED
|
830 |
|
|
GREP
|
831 |
|
|
EGREP
|
832 |
|
|
LN_S
|
833 |
|
|
ECHO
|
834 |
|
|
AR
|
835 |
|
|
RANLIB
|
836 |
|
|
STRIP
|
837 |
|
|
CPP
|
838 |
|
|
CXX
|
839 |
|
|
CXXFLAGS
|
840 |
|
|
ac_ct_CXX
|
841 |
|
|
CXXCPP
|
842 |
|
|
F77
|
843 |
|
|
FFLAGS
|
844 |
|
|
ac_ct_F77
|
845 |
|
|
LIBTOOL
|
846 |
|
|
INSTALL_PROGRAM
|
847 |
|
|
INSTALL_SCRIPT
|
848 |
|
|
INSTALL_DATA
|
849 |
|
|
am__isrc
|
850 |
|
|
CYGPATH_W
|
851 |
|
|
PACKAGE
|
852 |
|
|
VERSION
|
853 |
|
|
ACLOCAL
|
854 |
|
|
AUTOCONF
|
855 |
|
|
AUTOMAKE
|
856 |
|
|
AUTOHEADER
|
857 |
|
|
MAKEINFO
|
858 |
|
|
install_sh
|
859 |
|
|
INSTALL_STRIP_PROGRAM
|
860 |
|
|
mkdir_p
|
861 |
|
|
AWK
|
862 |
|
|
SET_MAKE
|
863 |
|
|
am__leading_dot
|
864 |
|
|
AMTAR
|
865 |
|
|
am__tar
|
866 |
|
|
am__untar
|
867 |
|
|
DEPDIR
|
868 |
|
|
am__include
|
869 |
|
|
am__quote
|
870 |
|
|
AMDEP_TRUE
|
871 |
|
|
AMDEP_FALSE
|
872 |
|
|
AMDEPBACKSLASH
|
873 |
|
|
CCDEPMODE
|
874 |
|
|
am__fastdepCC_TRUE
|
875 |
|
|
am__fastdepCC_FALSE
|
876 |
|
|
CXXDEPMODE
|
877 |
|
|
am__fastdepCXX_TRUE
|
878 |
|
|
am__fastdepCXX_FALSE
|
879 |
|
|
CPU_ARCH
|
880 |
|
|
MAKE_SHELL
|
881 |
|
|
LIB@&t@OBJS
|
882 |
|
|
POW_LIB
|
883 |
|
|
USE_SYS_GETOPTLONG_TRUE
|
884 |
|
|
USE_SYS_GETOPTLONG_FALSE
|
885 |
|
|
USE_ARGREX_TRUE
|
886 |
|
|
USE_ARGREX_FALSE
|
887 |
|
|
USE_ARGDATE_TRUE
|
888 |
|
|
USE_ARGDATE_FALSE
|
889 |
|
|
DEBUGFLAGS
|
890 |
|
|
GENERATE_NEEDED_TRUE
|
891 |
|
|
GENERATE_NEEDED_FALSE
|
892 |
|
|
DYNAMIC_EXECUTION_TRUE
|
893 |
|
|
DYNAMIC_EXECUTION_FALSE
|
894 |
|
|
BUILD_DIR
|
895 |
|
|
LOCAL_CFLAGS
|
896 |
|
|
LOCAL_LDFLAGS
|
897 |
|
|
LOCAL_DEFS
|
898 |
|
|
ARFLAGS
|
899 |
|
|
SUMVERSION
|
900 |
|
|
TERMCAP_LIB
|
901 |
|
|
INCLUDES
|
902 |
|
|
LTLIBOBJS'
|
903 |
|
|
ac_subst_files=''
|
904 |
|
|
ac_precious_vars='build_alias
|
905 |
|
|
host_alias
|
906 |
|
|
target_alias
|
907 |
|
|
CC
|
908 |
|
|
CFLAGS
|
909 |
|
|
LDFLAGS
|
910 |
|
|
LIBS
|
911 |
|
|
CPPFLAGS
|
912 |
|
|
CPP
|
913 |
|
|
CXX
|
914 |
|
|
CXXFLAGS
|
915 |
|
|
CCC
|
916 |
|
|
CXXCPP
|
917 |
|
|
F77
|
918 |
|
|
FFLAGS'
|
919 |
|
|
|
920 |
|
|
|
921 |
|
|
# Initialize some variables set by options.
|
922 |
|
|
ac_init_help=
|
923 |
|
|
ac_init_version=false
|
924 |
|
|
# The variables have the same names as the options, with
|
925 |
|
|
# dashes changed to underlines.
|
926 |
|
|
cache_file=/dev/null
|
927 |
|
|
exec_prefix=NONE
|
928 |
|
|
no_create=
|
929 |
|
|
no_recursion=
|
930 |
|
|
prefix=NONE
|
931 |
|
|
program_prefix=NONE
|
932 |
|
|
program_suffix=NONE
|
933 |
|
|
program_transform_name=s,x,x,
|
934 |
|
|
silent=
|
935 |
|
|
site=
|
936 |
|
|
srcdir=
|
937 |
|
|
verbose=
|
938 |
|
|
x_includes=NONE
|
939 |
|
|
x_libraries=NONE
|
940 |
|
|
|
941 |
|
|
# Installation directory options.
|
942 |
|
|
# These are left unexpanded so users can "make install exec_prefix=/foo"
|
943 |
|
|
# and all the variables that are supposed to be based on exec_prefix
|
944 |
|
|
# by default will actually change.
|
945 |
|
|
# Use braces instead of parens because sh, perl, etc. also accept them.
|
946 |
|
|
# (The list follows the same order as the GNU Coding Standards.)
|
947 |
|
|
bindir='${exec_prefix}/bin'
|
948 |
|
|
sbindir='${exec_prefix}/sbin'
|
949 |
|
|
libexecdir='${exec_prefix}/libexec'
|
950 |
|
|
datarootdir='${prefix}/share'
|
951 |
|
|
datadir='${datarootdir}'
|
952 |
|
|
sysconfdir='${prefix}/etc'
|
953 |
|
|
sharedstatedir='${prefix}/com'
|
954 |
|
|
localstatedir='${prefix}/var'
|
955 |
|
|
includedir='${prefix}/include'
|
956 |
|
|
oldincludedir='/usr/include'
|
957 |
|
|
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
958 |
|
|
infodir='${datarootdir}/info'
|
959 |
|
|
htmldir='${docdir}'
|
960 |
|
|
dvidir='${docdir}'
|
961 |
|
|
pdfdir='${docdir}'
|
962 |
|
|
psdir='${docdir}'
|
963 |
|
|
libdir='${exec_prefix}/lib'
|
964 |
|
|
localedir='${datarootdir}/locale'
|
965 |
|
|
mandir='${datarootdir}/man'
|
966 |
|
|
|
967 |
|
|
ac_prev=
|
968 |
|
|
ac_dashdash=
|
969 |
|
|
for ac_option
|
970 |
|
|
do
|
971 |
|
|
# If the previous option needs an argument, assign it.
|
972 |
|
|
if test -n "$ac_prev"; then
|
973 |
|
|
eval $ac_prev=\$ac_option
|
974 |
|
|
ac_prev=
|
975 |
|
|
continue
|
976 |
|
|
fi
|
977 |
|
|
|
978 |
|
|
case $ac_option in
|
979 |
|
|
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
980 |
|
|
*) ac_optarg=yes ;;
|
981 |
|
|
esac
|
982 |
|
|
|
983 |
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
984 |
|
|
|
985 |
|
|
case $ac_dashdash$ac_option in
|
986 |
|
|
--)
|
987 |
|
|
ac_dashdash=yes ;;
|
988 |
|
|
|
989 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
990 |
|
|
ac_prev=bindir ;;
|
991 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
992 |
|
|
bindir=$ac_optarg ;;
|
993 |
|
|
|
994 |
|
|
-build | --build | --buil | --bui | --bu)
|
995 |
|
|
ac_prev=build_alias ;;
|
996 |
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
997 |
|
|
build_alias=$ac_optarg ;;
|
998 |
|
|
|
999 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
1000 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
1001 |
|
|
ac_prev=cache_file ;;
|
1002 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
1003 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
1004 |
|
|
cache_file=$ac_optarg ;;
|
1005 |
|
|
|
1006 |
|
|
--config-cache | -C)
|
1007 |
|
|
cache_file=config.cache ;;
|
1008 |
|
|
|
1009 |
|
|
-datadir | --datadir | --datadi | --datad)
|
1010 |
|
|
ac_prev=datadir ;;
|
1011 |
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=*)
|
1012 |
|
|
datadir=$ac_optarg ;;
|
1013 |
|
|
|
1014 |
|
|
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
1015 |
|
|
| --dataroo | --dataro | --datar)
|
1016 |
|
|
ac_prev=datarootdir ;;
|
1017 |
|
|
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
1018 |
|
|
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
1019 |
|
|
datarootdir=$ac_optarg ;;
|
1020 |
|
|
|
1021 |
|
|
-disable-* | --disable-*)
|
1022 |
|
|
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
1023 |
|
|
# Reject names that are not valid shell variable names.
|
1024 |
|
|
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
1025 |
|
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
1026 |
|
|
{ (exit 1); exit 1; }; }
|
1027 |
|
|
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
1028 |
|
|
eval enable_$ac_feature=no ;;
|
1029 |
|
|
|
1030 |
|
|
-docdir | --docdir | --docdi | --doc | --do)
|
1031 |
|
|
ac_prev=docdir ;;
|
1032 |
|
|
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
1033 |
|
|
docdir=$ac_optarg ;;
|
1034 |
|
|
|
1035 |
|
|
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
1036 |
|
|
ac_prev=dvidir ;;
|
1037 |
|
|
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
1038 |
|
|
dvidir=$ac_optarg ;;
|
1039 |
|
|
|
1040 |
|
|
-enable-* | --enable-*)
|
1041 |
|
|
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
1042 |
|
|
# Reject names that are not valid shell variable names.
|
1043 |
|
|
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
1044 |
|
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
1045 |
|
|
{ (exit 1); exit 1; }; }
|
1046 |
|
|
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
1047 |
|
|
eval enable_$ac_feature=\$ac_optarg ;;
|
1048 |
|
|
|
1049 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
1050 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
1051 |
|
|
| --exec | --exe | --ex)
|
1052 |
|
|
ac_prev=exec_prefix ;;
|
1053 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
1054 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
1055 |
|
|
| --exec=* | --exe=* | --ex=*)
|
1056 |
|
|
exec_prefix=$ac_optarg ;;
|
1057 |
|
|
|
1058 |
|
|
-gas | --gas | --ga | --g)
|
1059 |
|
|
# Obsolete; use --with-gas.
|
1060 |
|
|
with_gas=yes ;;
|
1061 |
|
|
|
1062 |
|
|
-help | --help | --hel | --he | -h)
|
1063 |
|
|
ac_init_help=long ;;
|
1064 |
|
|
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
1065 |
|
|
ac_init_help=recursive ;;
|
1066 |
|
|
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
1067 |
|
|
ac_init_help=short ;;
|
1068 |
|
|
|
1069 |
|
|
-host | --host | --hos | --ho)
|
1070 |
|
|
ac_prev=host_alias ;;
|
1071 |
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
1072 |
|
|
host_alias=$ac_optarg ;;
|
1073 |
|
|
|
1074 |
|
|
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
1075 |
|
|
ac_prev=htmldir ;;
|
1076 |
|
|
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
1077 |
|
|
| --ht=*)
|
1078 |
|
|
htmldir=$ac_optarg ;;
|
1079 |
|
|
|
1080 |
|
|
-includedir | --includedir | --includedi | --included | --include \
|
1081 |
|
|
| --includ | --inclu | --incl | --inc)
|
1082 |
|
|
ac_prev=includedir ;;
|
1083 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
1084 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
1085 |
|
|
includedir=$ac_optarg ;;
|
1086 |
|
|
|
1087 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
1088 |
|
|
ac_prev=infodir ;;
|
1089 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
1090 |
|
|
infodir=$ac_optarg ;;
|
1091 |
|
|
|
1092 |
|
|
-libdir | --libdir | --libdi | --libd)
|
1093 |
|
|
ac_prev=libdir ;;
|
1094 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
1095 |
|
|
libdir=$ac_optarg ;;
|
1096 |
|
|
|
1097 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
1098 |
|
|
| --libexe | --libex | --libe)
|
1099 |
|
|
ac_prev=libexecdir ;;
|
1100 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
1101 |
|
|
| --libexe=* | --libex=* | --libe=*)
|
1102 |
|
|
libexecdir=$ac_optarg ;;
|
1103 |
|
|
|
1104 |
|
|
-localedir | --localedir | --localedi | --localed | --locale)
|
1105 |
|
|
ac_prev=localedir ;;
|
1106 |
|
|
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
1107 |
|
|
localedir=$ac_optarg ;;
|
1108 |
|
|
|
1109 |
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
1110 |
|
|
| --localstate | --localstat | --localsta | --localst | --locals)
|
1111 |
|
|
ac_prev=localstatedir ;;
|
1112 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
1113 |
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
1114 |
|
|
localstatedir=$ac_optarg ;;
|
1115 |
|
|
|
1116 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
1117 |
|
|
ac_prev=mandir ;;
|
1118 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
1119 |
|
|
mandir=$ac_optarg ;;
|
1120 |
|
|
|
1121 |
|
|
-nfp | --nfp | --nf)
|
1122 |
|
|
# Obsolete; use --without-fp.
|
1123 |
|
|
with_fp=no ;;
|
1124 |
|
|
|
1125 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
1126 |
|
|
| --no-cr | --no-c | -n)
|
1127 |
|
|
no_create=yes ;;
|
1128 |
|
|
|
1129 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
1130 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
1131 |
|
|
no_recursion=yes ;;
|
1132 |
|
|
|
1133 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
1134 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
1135 |
|
|
| --oldin | --oldi | --old | --ol | --o)
|
1136 |
|
|
ac_prev=oldincludedir ;;
|
1137 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
1138 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
1139 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
1140 |
|
|
oldincludedir=$ac_optarg ;;
|
1141 |
|
|
|
1142 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
1143 |
|
|
ac_prev=prefix ;;
|
1144 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
1145 |
|
|
prefix=$ac_optarg ;;
|
1146 |
|
|
|
1147 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
1148 |
|
|
| --program-pre | --program-pr | --program-p)
|
1149 |
|
|
ac_prev=program_prefix ;;
|
1150 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
1151 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
1152 |
|
|
program_prefix=$ac_optarg ;;
|
1153 |
|
|
|
1154 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
1155 |
|
|
| --program-suf | --program-su | --program-s)
|
1156 |
|
|
ac_prev=program_suffix ;;
|
1157 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
1158 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
1159 |
|
|
program_suffix=$ac_optarg ;;
|
1160 |
|
|
|
1161 |
|
|
-program-transform-name | --program-transform-name \
|
1162 |
|
|
| --program-transform-nam | --program-transform-na \
|
1163 |
|
|
| --program-transform-n | --program-transform- \
|
1164 |
|
|
| --program-transform | --program-transfor \
|
1165 |
|
|
| --program-transfo | --program-transf \
|
1166 |
|
|
| --program-trans | --program-tran \
|
1167 |
|
|
| --progr-tra | --program-tr | --program-t)
|
1168 |
|
|
ac_prev=program_transform_name ;;
|
1169 |
|
|
-program-transform-name=* | --program-transform-name=* \
|
1170 |
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
1171 |
|
|
| --program-transform-n=* | --program-transform-=* \
|
1172 |
|
|
| --program-transform=* | --program-transfor=* \
|
1173 |
|
|
| --program-transfo=* | --program-transf=* \
|
1174 |
|
|
| --program-trans=* | --program-tran=* \
|
1175 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
1176 |
|
|
program_transform_name=$ac_optarg ;;
|
1177 |
|
|
|
1178 |
|
|
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
1179 |
|
|
ac_prev=pdfdir ;;
|
1180 |
|
|
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
1181 |
|
|
pdfdir=$ac_optarg ;;
|
1182 |
|
|
|
1183 |
|
|
-psdir | --psdir | --psdi | --psd | --ps)
|
1184 |
|
|
ac_prev=psdir ;;
|
1185 |
|
|
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
1186 |
|
|
psdir=$ac_optarg ;;
|
1187 |
|
|
|
1188 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
1189 |
|
|
| -silent | --silent | --silen | --sile | --sil)
|
1190 |
|
|
silent=yes ;;
|
1191 |
|
|
|
1192 |
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
1193 |
|
|
ac_prev=sbindir ;;
|
1194 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
1195 |
|
|
| --sbi=* | --sb=*)
|
1196 |
|
|
sbindir=$ac_optarg ;;
|
1197 |
|
|
|
1198 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
1199 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
1200 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
1201 |
|
|
| --sha | --sh)
|
1202 |
|
|
ac_prev=sharedstatedir ;;
|
1203 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
1204 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
1205 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
1206 |
|
|
| --sha=* | --sh=*)
|
1207 |
|
|
sharedstatedir=$ac_optarg ;;
|
1208 |
|
|
|
1209 |
|
|
-site | --site | --sit)
|
1210 |
|
|
ac_prev=site ;;
|
1211 |
|
|
-site=* | --site=* | --sit=*)
|
1212 |
|
|
site=$ac_optarg ;;
|
1213 |
|
|
|
1214 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
1215 |
|
|
ac_prev=srcdir ;;
|
1216 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
1217 |
|
|
srcdir=$ac_optarg ;;
|
1218 |
|
|
|
1219 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
1220 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
1221 |
|
|
ac_prev=sysconfdir ;;
|
1222 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
1223 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
1224 |
|
|
sysconfdir=$ac_optarg ;;
|
1225 |
|
|
|
1226 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
1227 |
|
|
ac_prev=target_alias ;;
|
1228 |
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
1229 |
|
|
target_alias=$ac_optarg ;;
|
1230 |
|
|
|
1231 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
1232 |
|
|
verbose=yes ;;
|
1233 |
|
|
|
1234 |
|
|
-version | --version | --versio | --versi | --vers | -V)
|
1235 |
|
|
ac_init_version=: ;;
|
1236 |
|
|
|
1237 |
|
|
-with-* | --with-*)
|
1238 |
|
|
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
1239 |
|
|
# Reject names that are not valid shell variable names.
|
1240 |
|
|
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
1241 |
|
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
1242 |
|
|
{ (exit 1); exit 1; }; }
|
1243 |
|
|
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
1244 |
|
|
eval with_$ac_package=\$ac_optarg ;;
|
1245 |
|
|
|
1246 |
|
|
-without-* | --without-*)
|
1247 |
|
|
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
1248 |
|
|
# Reject names that are not valid shell variable names.
|
1249 |
|
|
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
1250 |
|
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
1251 |
|
|
{ (exit 1); exit 1; }; }
|
1252 |
|
|
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
1253 |
|
|
eval with_$ac_package=no ;;
|
1254 |
|
|
|
1255 |
|
|
--x)
|
1256 |
|
|
# Obsolete; use --with-x.
|
1257 |
|
|
with_x=yes ;;
|
1258 |
|
|
|
1259 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
1260 |
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
1261 |
|
|
ac_prev=x_includes ;;
|
1262 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
1263 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
1264 |
|
|
x_includes=$ac_optarg ;;
|
1265 |
|
|
|
1266 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
1267 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
1268 |
|
|
ac_prev=x_libraries ;;
|
1269 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
1270 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
1271 |
|
|
x_libraries=$ac_optarg ;;
|
1272 |
|
|
|
1273 |
|
|
-*) { echo "$as_me: error: unrecognized option: $ac_option
|
1274 |
|
|
Try \`$0 --help' for more information." >&2
|
1275 |
|
|
{ (exit 1); exit 1; }; }
|
1276 |
|
|
;;
|
1277 |
|
|
|
1278 |
|
|
*=*)
|
1279 |
|
|
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
1280 |
|
|
# Reject names that are not valid shell variable names.
|
1281 |
|
|
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
1282 |
|
|
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
1283 |
|
|
{ (exit 1); exit 1; }; }
|
1284 |
|
|
eval $ac_envvar=\$ac_optarg
|
1285 |
|
|
export $ac_envvar ;;
|
1286 |
|
|
|
1287 |
|
|
*)
|
1288 |
|
|
# FIXME: should be removed in autoconf 3.0.
|
1289 |
|
|
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
1290 |
|
|
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
1291 |
|
|
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
1292 |
|
|
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
1293 |
|
|
;;
|
1294 |
|
|
|
1295 |
|
|
esac
|
1296 |
|
|
done
|
1297 |
|
|
|
1298 |
|
|
if test -n "$ac_prev"; then
|
1299 |
|
|
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
1300 |
|
|
{ echo "$as_me: error: missing argument to $ac_option" >&2
|
1301 |
|
|
{ (exit 1); exit 1; }; }
|
1302 |
|
|
fi
|
1303 |
|
|
|
1304 |
|
|
# Be sure to have absolute directory names.
|
1305 |
|
|
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
1306 |
|
|
datadir sysconfdir sharedstatedir localstatedir includedir \
|
1307 |
|
|
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
1308 |
|
|
libdir localedir mandir
|
1309 |
|
|
do
|
1310 |
|
|
eval ac_val=\$$ac_var
|
1311 |
|
|
case $ac_val in
|
1312 |
|
|
[\\/$]* | ?:[\\/]* ) continue;;
|
1313 |
|
|
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
1314 |
|
|
esac
|
1315 |
|
|
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
1316 |
|
|
{ (exit 1); exit 1; }; }
|
1317 |
|
|
done
|
1318 |
|
|
|
1319 |
|
|
# There might be people who depend on the old broken behavior: `$host'
|
1320 |
|
|
# used to hold the argument of --host etc.
|
1321 |
|
|
# FIXME: To remove some day.
|
1322 |
|
|
build=$build_alias
|
1323 |
|
|
host=$host_alias
|
1324 |
|
|
target=$target_alias
|
1325 |
|
|
|
1326 |
|
|
# FIXME: To remove some day.
|
1327 |
|
|
if test "x$host_alias" != x; then
|
1328 |
|
|
if test "x$build_alias" = x; then
|
1329 |
|
|
cross_compiling=maybe
|
1330 |
|
|
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
1331 |
|
|
If a cross compiler is detected then cross compile mode will be used." >&2
|
1332 |
|
|
elif test "x$build_alias" != "x$host_alias"; then
|
1333 |
|
|
cross_compiling=yes
|
1334 |
|
|
fi
|
1335 |
|
|
fi
|
1336 |
|
|
|
1337 |
|
|
ac_tool_prefix=
|
1338 |
|
|
test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
1339 |
|
|
|
1340 |
|
|
test "$silent" = yes && exec 6>/dev/null
|
1341 |
|
|
|
1342 |
|
|
|
1343 |
|
|
ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
1344 |
|
|
ac_ls_di=`ls -di .` &&
|
1345 |
|
|
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
1346 |
|
|
{ echo "$as_me: error: Working directory cannot be determined" >&2
|
1347 |
|
|
{ (exit 1); exit 1; }; }
|
1348 |
|
|
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
1349 |
|
|
{ echo "$as_me: error: pwd does not report name of working directory" >&2
|
1350 |
|
|
{ (exit 1); exit 1; }; }
|
1351 |
|
|
|
1352 |
|
|
|
1353 |
|
|
# Find the source files, if location was not specified.
|
1354 |
|
|
if test -z "$srcdir"; then
|
1355 |
|
|
ac_srcdir_defaulted=yes
|
1356 |
|
|
# Try the directory containing this script, then the parent directory.
|
1357 |
|
|
ac_confdir=`$as_dirname -- "$0" ||
|
1358 |
|
|
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
1359 |
|
|
X"$0" : 'X\(//\)[^/]' \| \
|
1360 |
|
|
X"$0" : 'X\(//\)$' \| \
|
1361 |
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
1362 |
|
|
echo X"$0" |
|
1363 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
1364 |
|
|
s//\1/
|
1365 |
|
|
q
|
1366 |
|
|
}
|
1367 |
|
|
/^X\(\/\/\)[^/].*/{
|
1368 |
|
|
s//\1/
|
1369 |
|
|
q
|
1370 |
|
|
}
|
1371 |
|
|
/^X\(\/\/\)$/{
|
1372 |
|
|
s//\1/
|
1373 |
|
|
q
|
1374 |
|
|
}
|
1375 |
|
|
/^X\(\/\).*/{
|
1376 |
|
|
s//\1/
|
1377 |
|
|
q
|
1378 |
|
|
}
|
1379 |
|
|
s/.*/./; q'`
|
1380 |
|
|
srcdir=$ac_confdir
|
1381 |
|
|
if test ! -r "$srcdir/$ac_unique_file"; then
|
1382 |
|
|
srcdir=..
|
1383 |
|
|
fi
|
1384 |
|
|
else
|
1385 |
|
|
ac_srcdir_defaulted=no
|
1386 |
|
|
fi
|
1387 |
|
|
if test ! -r "$srcdir/$ac_unique_file"; then
|
1388 |
|
|
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
1389 |
|
|
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
1390 |
|
|
{ (exit 1); exit 1; }; }
|
1391 |
|
|
fi
|
1392 |
|
|
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
1393 |
|
|
ac_abs_confdir=`(
|
1394 |
|
|
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
1395 |
|
|
{ (exit 1); exit 1; }; }
|
1396 |
|
|
pwd)`
|
1397 |
|
|
# When building in place, set srcdir=.
|
1398 |
|
|
if test "$ac_abs_confdir" = "$ac_pwd"; then
|
1399 |
|
|
srcdir=.
|
1400 |
|
|
fi
|
1401 |
|
|
# Remove unnecessary trailing slashes from srcdir.
|
1402 |
|
|
# Double slashes in file names in object file debugging info
|
1403 |
|
|
# mess up M-x gdb in Emacs.
|
1404 |
|
|
case $srcdir in
|
1405 |
|
|
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
1406 |
|
|
esac
|
1407 |
|
|
for ac_var in $ac_precious_vars; do
|
1408 |
|
|
eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
1409 |
|
|
eval ac_env_${ac_var}_value=\$${ac_var}
|
1410 |
|
|
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
1411 |
|
|
eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
1412 |
|
|
done
|
1413 |
|
|
|
1414 |
|
|
#
|
1415 |
|
|
# Report the --help message.
|
1416 |
|
|
#
|
1417 |
|
|
if test "$ac_init_help" = "long"; then
|
1418 |
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
1419 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
1420 |
|
|
cat <<_ACEOF
|
1421 |
|
|
\`configure' configures or1ksim 0.3.0rc1 to adapt to many kinds of systems.
|
1422 |
|
|
|
1423 |
|
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
1424 |
|
|
|
1425 |
|
|
To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
1426 |
|
|
VAR=VALUE. See below for descriptions of some of the useful variables.
|
1427 |
|
|
|
1428 |
|
|
Defaults for the options are specified in brackets.
|
1429 |
|
|
|
1430 |
|
|
Configuration:
|
1431 |
|
|
-h, --help display this help and exit
|
1432 |
|
|
--help=short display options specific to this package
|
1433 |
|
|
--help=recursive display the short help of all the included packages
|
1434 |
|
|
-V, --version display version information and exit
|
1435 |
|
|
-q, --quiet, --silent do not print \`checking...' messages
|
1436 |
|
|
--cache-file=FILE cache test results in FILE [disabled]
|
1437 |
|
|
-C, --config-cache alias for \`--cache-file=config.cache'
|
1438 |
|
|
-n, --no-create do not create output files
|
1439 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or \`..']
|
1440 |
|
|
|
1441 |
|
|
Installation directories:
|
1442 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
1443 |
|
|
[$ac_default_prefix]
|
1444 |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
1445 |
|
|
[PREFIX]
|
1446 |
|
|
|
1447 |
|
|
By default, \`make install' will install all the files in
|
1448 |
|
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
1449 |
|
|
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
1450 |
|
|
for instance \`--prefix=\$HOME'.
|
1451 |
|
|
|
1452 |
|
|
For better control, use the options below.
|
1453 |
|
|
|
1454 |
|
|
Fine tuning of the installation directories:
|
1455 |
|
|
--bindir=DIR user executables [EPREFIX/bin]
|
1456 |
|
|
--sbindir=DIR system admin executables [EPREFIX/sbin]
|
1457 |
|
|
--libexecdir=DIR program executables [EPREFIX/libexec]
|
1458 |
|
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
1459 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
1460 |
|
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
1461 |
|
|
--libdir=DIR object code libraries [EPREFIX/lib]
|
1462 |
|
|
--includedir=DIR C header files [PREFIX/include]
|
1463 |
|
|
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
1464 |
|
|
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
1465 |
|
|
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
1466 |
|
|
--infodir=DIR info documentation [DATAROOTDIR/info]
|
1467 |
|
|
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
1468 |
|
|
--mandir=DIR man documentation [DATAROOTDIR/man]
|
1469 |
|
|
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/or1ksim@:>@
|
1470 |
|
|
--htmldir=DIR html documentation [DOCDIR]
|
1471 |
|
|
--dvidir=DIR dvi documentation [DOCDIR]
|
1472 |
|
|
--pdfdir=DIR pdf documentation [DOCDIR]
|
1473 |
|
|
--psdir=DIR ps documentation [DOCDIR]
|
1474 |
|
|
_ACEOF
|
1475 |
|
|
|
1476 |
|
|
cat <<\_ACEOF
|
1477 |
|
|
|
1478 |
|
|
Program names:
|
1479 |
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names
|
1480 |
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names
|
1481 |
|
|
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
1482 |
|
|
|
1483 |
|
|
System types:
|
1484 |
|
|
--build=BUILD configure for building on BUILD [guessed]
|
1485 |
|
|
--host=HOST cross-compile to build programs to run on HOST [BUILD]
|
1486 |
|
|
--target=TARGET configure for building compilers for TARGET [HOST]
|
1487 |
|
|
_ACEOF
|
1488 |
|
|
fi
|
1489 |
|
|
|
1490 |
|
|
if test -n "$ac_init_help"; then
|
1491 |
|
|
case $ac_init_help in
|
1492 |
|
|
short | recursive ) echo "Configuration of or1ksim 0.3.0rc1:";;
|
1493 |
|
|
esac
|
1494 |
|
|
cat <<\_ACEOF
|
1495 |
|
|
|
1496 |
|
|
Optional Features:
|
1497 |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
1498 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
1499 |
|
|
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
|
1500 |
|
|
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
|
1501 |
|
|
--enable-fast-install@<:@=PKGS@:>@
|
1502 |
|
|
optimize for fast installation @<:@default=yes@:>@
|
1503 |
|
|
--disable-libtool-lock avoid locking (might break parallel builds)
|
1504 |
|
|
--disable-dependency-tracking speeds up one-time build
|
1505 |
|
|
--enable-dependency-tracking do not reject slow dependency extractors
|
1506 |
|
|
--enable-profiling generate profiling code
|
1507 |
|
|
--enable-execution Execution style to use (simple/complex/dynamic)
|
1508 |
|
|
--enable-ethphy compiles sim with ethernet phy support
|
1509 |
|
|
--enable-range-stats Specifies, whether we should do register accesses over time analysis.
|
1510 |
|
|
--enable-ov-flag Whether instructions set overflow flag.
|
1511 |
|
|
--enable-arith-flag Whether arithmethic instructions setflag.
|
1512 |
|
|
--enable-debug enable library debugging symbols
|
1513 |
|
|
|
1514 |
|
|
Optional Packages:
|
1515 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
1516 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
1517 |
|
|
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
|
1518 |
|
|
--with-pic try to use only PIC/non-PIC objects @<:@default=use
|
1519 |
|
|
both@:>@
|
1520 |
|
|
--with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
|
1521 |
|
|
|
1522 |
|
|
Some influential environment variables:
|
1523 |
|
|
CC C compiler command
|
1524 |
|
|
CFLAGS C compiler flags
|
1525 |
|
|
LDFLAGS linker flags, e.g. -L if you have libraries in a
|
1526 |
|
|
nonstandard directory
|
1527 |
|
|
LIBS libraries to pass to the linker, e.g. -l
|
1528 |
|
|
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if
|
1529 |
|
|
you have headers in a nonstandard directory
|
1530 |
|
|
CPP C preprocessor
|
1531 |
|
|
CXX C++ compiler command
|
1532 |
|
|
CXXFLAGS C++ compiler flags
|
1533 |
|
|
CXXCPP C++ preprocessor
|
1534 |
|
|
F77 Fortran 77 compiler command
|
1535 |
|
|
FFLAGS Fortran 77 compiler flags
|
1536 |
|
|
|
1537 |
|
|
Use these variables to override the choices made by `configure' or to help
|
1538 |
|
|
it to find libraries and programs with nonstandard names/locations.
|
1539 |
|
|
|
1540 |
|
|
Report bugs to .
|
1541 |
|
|
_ACEOF
|
1542 |
|
|
ac_status=$?
|
1543 |
|
|
fi
|
1544 |
|
|
|
1545 |
|
|
if test "$ac_init_help" = "recursive"; then
|
1546 |
|
|
# If there are subdirs, report their specific --help.
|
1547 |
|
|
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
1548 |
|
|
test -d "$ac_dir" || continue
|
1549 |
|
|
ac_builddir=.
|
1550 |
|
|
|
1551 |
|
|
case "$ac_dir" in
|
1552 |
|
|
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
1553 |
|
|
*)
|
1554 |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
1555 |
|
|
# A ".." for each directory in $ac_dir_suffix.
|
1556 |
|
|
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
1557 |
|
|
case $ac_top_builddir_sub in
|
1558 |
|
|
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
1559 |
|
|
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
1560 |
|
|
esac ;;
|
1561 |
|
|
esac
|
1562 |
|
|
ac_abs_top_builddir=$ac_pwd
|
1563 |
|
|
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
1564 |
|
|
# for backward compatibility:
|
1565 |
|
|
ac_top_builddir=$ac_top_build_prefix
|
1566 |
|
|
|
1567 |
|
|
case $srcdir in
|
1568 |
|
|
.) # We are building in place.
|
1569 |
|
|
ac_srcdir=.
|
1570 |
|
|
ac_top_srcdir=$ac_top_builddir_sub
|
1571 |
|
|
ac_abs_top_srcdir=$ac_pwd ;;
|
1572 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute name.
|
1573 |
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
1574 |
|
|
ac_top_srcdir=$srcdir
|
1575 |
|
|
ac_abs_top_srcdir=$srcdir ;;
|
1576 |
|
|
*) # Relative name.
|
1577 |
|
|
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
1578 |
|
|
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
1579 |
|
|
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
1580 |
|
|
esac
|
1581 |
|
|
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
1582 |
|
|
|
1583 |
|
|
cd "$ac_dir" || { ac_status=$?; continue; }
|
1584 |
|
|
# Check for guested configure.
|
1585 |
|
|
if test -f "$ac_srcdir/configure.gnu"; then
|
1586 |
|
|
echo &&
|
1587 |
|
|
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
1588 |
|
|
elif test -f "$ac_srcdir/configure"; then
|
1589 |
|
|
echo &&
|
1590 |
|
|
$SHELL "$ac_srcdir/configure" --help=recursive
|
1591 |
|
|
else
|
1592 |
|
|
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
1593 |
|
|
fi || ac_status=$?
|
1594 |
|
|
cd "$ac_pwd" || { ac_status=$?; break; }
|
1595 |
|
|
done
|
1596 |
|
|
fi
|
1597 |
|
|
|
1598 |
|
|
test -n "$ac_init_help" && exit $ac_status
|
1599 |
|
|
if $ac_init_version; then
|
1600 |
|
|
cat <<\_ACEOF
|
1601 |
|
|
or1ksim configure 0.3.0rc1
|
1602 |
|
|
generated by GNU Autoconf 2.61
|
1603 |
|
|
|
1604 |
|
|
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
1605 |
|
|
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
1606 |
|
|
This configure script is free software; the Free Software Foundation
|
1607 |
|
|
gives unlimited permission to copy, distribute and modify it.
|
1608 |
|
|
_ACEOF
|
1609 |
|
|
exit
|
1610 |
|
|
fi
|
1611 |
|
|
cat >config.log <<_ACEOF
|
1612 |
|
|
This file contains any messages produced by compilers while
|
1613 |
|
|
running configure, to aid debugging if configure makes a mistake.
|
1614 |
|
|
|
1615 |
|
|
It was created by or1ksim $as_me 0.3.0rc1, which was
|
1616 |
|
|
generated by GNU Autoconf 2.61. Invocation command line was
|
1617 |
|
|
|
1618 |
|
|
$ $0 $@
|
1619 |
|
|
|
1620 |
|
|
_ACEOF
|
1621 |
|
|
exec 5>>config.log
|
1622 |
|
|
{
|
1623 |
|
|
cat <<_ASUNAME
|
1624 |
|
|
@%:@@%:@ --------- @%:@@%:@
|
1625 |
|
|
@%:@@%:@ Platform. @%:@@%:@
|
1626 |
|
|
@%:@@%:@ --------- @%:@@%:@
|
1627 |
|
|
|
1628 |
|
|
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
1629 |
|
|
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
1630 |
|
|
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
1631 |
|
|
uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
1632 |
|
|
uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
1633 |
|
|
|
1634 |
|
|
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
1635 |
|
|
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
1636 |
|
|
|
1637 |
|
|
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
1638 |
|
|
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
1639 |
|
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
1640 |
|
|
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
1641 |
|
|
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
1642 |
|
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
1643 |
|
|
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
1644 |
|
|
|
1645 |
|
|
_ASUNAME
|
1646 |
|
|
|
1647 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1648 |
|
|
for as_dir in $PATH
|
1649 |
|
|
do
|
1650 |
|
|
IFS=$as_save_IFS
|
1651 |
|
|
test -z "$as_dir" && as_dir=.
|
1652 |
|
|
echo "PATH: $as_dir"
|
1653 |
|
|
done
|
1654 |
|
|
IFS=$as_save_IFS
|
1655 |
|
|
|
1656 |
|
|
} >&5
|
1657 |
|
|
|
1658 |
|
|
cat >&5 <<_ACEOF
|
1659 |
|
|
|
1660 |
|
|
|
1661 |
|
|
@%:@@%:@ ----------- @%:@@%:@
|
1662 |
|
|
@%:@@%:@ Core tests. @%:@@%:@
|
1663 |
|
|
@%:@@%:@ ----------- @%:@@%:@
|
1664 |
|
|
|
1665 |
|
|
_ACEOF
|
1666 |
|
|
|
1667 |
|
|
|
1668 |
|
|
# Keep a trace of the command line.
|
1669 |
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
1670 |
|
|
# Strip out --silent because we don't want to record it for future runs.
|
1671 |
|
|
# Also quote any args containing shell meta-characters.
|
1672 |
|
|
# Make two passes to allow for proper duplicate-argument suppression.
|
1673 |
|
|
ac_configure_args=
|
1674 |
|
|
ac_configure_args0=
|
1675 |
|
|
ac_configure_args1=
|
1676 |
|
|
ac_must_keep_next=false
|
1677 |
|
|
for ac_pass in 1 2
|
1678 |
|
|
do
|
1679 |
|
|
for ac_arg
|
1680 |
|
|
do
|
1681 |
|
|
case $ac_arg in
|
1682 |
|
|
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
1683 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
1684 |
|
|
| -silent | --silent | --silen | --sile | --sil)
|
1685 |
|
|
continue ;;
|
1686 |
|
|
*\'*)
|
1687 |
|
|
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
1688 |
|
|
esac
|
1689 |
|
|
case $ac_pass in
|
1690 |
|
|
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
1691 |
|
|
2)
|
1692 |
|
|
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
1693 |
|
|
if test $ac_must_keep_next = true; then
|
1694 |
|
|
ac_must_keep_next=false # Got value, back to normal.
|
1695 |
|
|
else
|
1696 |
|
|
case $ac_arg in
|
1697 |
|
|
*=* | --config-cache | -C | -disable-* | --disable-* \
|
1698 |
|
|
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
1699 |
|
|
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
1700 |
|
|
| -with-* | --with-* | -without-* | --without-* | --x)
|
1701 |
|
|
case "$ac_configure_args0 " in
|
1702 |
|
|
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
1703 |
|
|
esac
|
1704 |
|
|
;;
|
1705 |
|
|
-* ) ac_must_keep_next=true ;;
|
1706 |
|
|
esac
|
1707 |
|
|
fi
|
1708 |
|
|
ac_configure_args="$ac_configure_args '$ac_arg'"
|
1709 |
|
|
;;
|
1710 |
|
|
esac
|
1711 |
|
|
done
|
1712 |
|
|
done
|
1713 |
|
|
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
1714 |
|
|
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
1715 |
|
|
|
1716 |
|
|
# When interrupted or exit'd, cleanup temporary files, and complete
|
1717 |
|
|
# config.log. We remove comments because anyway the quotes in there
|
1718 |
|
|
# would cause problems or look ugly.
|
1719 |
|
|
# WARNING: Use '\'' to represent an apostrophe within the trap.
|
1720 |
|
|
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
1721 |
|
|
trap 'exit_status=$?
|
1722 |
|
|
# Save into config.log some information that might help in debugging.
|
1723 |
|
|
{
|
1724 |
|
|
echo
|
1725 |
|
|
|
1726 |
|
|
cat <<\_ASBOX
|
1727 |
|
|
@%:@@%:@ ---------------- @%:@@%:@
|
1728 |
|
|
@%:@@%:@ Cache variables. @%:@@%:@
|
1729 |
|
|
@%:@@%:@ ---------------- @%:@@%:@
|
1730 |
|
|
_ASBOX
|
1731 |
|
|
echo
|
1732 |
|
|
# The following way of writing the cache mishandles newlines in values,
|
1733 |
|
|
(
|
1734 |
|
|
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
1735 |
|
|
eval ac_val=\$$ac_var
|
1736 |
|
|
case $ac_val in #(
|
1737 |
|
|
*${as_nl}*)
|
1738 |
|
|
case $ac_var in #(
|
1739 |
|
|
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
1740 |
|
|
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
1741 |
|
|
esac
|
1742 |
|
|
case $ac_var in #(
|
1743 |
|
|
_ | IFS | as_nl) ;; #(
|
1744 |
|
|
*) $as_unset $ac_var ;;
|
1745 |
|
|
esac ;;
|
1746 |
|
|
esac
|
1747 |
|
|
done
|
1748 |
|
|
(set) 2>&1 |
|
1749 |
|
|
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
1750 |
|
|
*${as_nl}ac_space=\ *)
|
1751 |
|
|
sed -n \
|
1752 |
|
|
"s/'\''/'\''\\\\'\'''\''/g;
|
1753 |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
1754 |
|
|
;; #(
|
1755 |
|
|
*)
|
1756 |
|
|
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
1757 |
|
|
;;
|
1758 |
|
|
esac |
|
1759 |
|
|
sort
|
1760 |
|
|
)
|
1761 |
|
|
echo
|
1762 |
|
|
|
1763 |
|
|
cat <<\_ASBOX
|
1764 |
|
|
@%:@@%:@ ----------------- @%:@@%:@
|
1765 |
|
|
@%:@@%:@ Output variables. @%:@@%:@
|
1766 |
|
|
@%:@@%:@ ----------------- @%:@@%:@
|
1767 |
|
|
_ASBOX
|
1768 |
|
|
echo
|
1769 |
|
|
for ac_var in $ac_subst_vars
|
1770 |
|
|
do
|
1771 |
|
|
eval ac_val=\$$ac_var
|
1772 |
|
|
case $ac_val in
|
1773 |
|
|
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
1774 |
|
|
esac
|
1775 |
|
|
echo "$ac_var='\''$ac_val'\''"
|
1776 |
|
|
done | sort
|
1777 |
|
|
echo
|
1778 |
|
|
|
1779 |
|
|
if test -n "$ac_subst_files"; then
|
1780 |
|
|
cat <<\_ASBOX
|
1781 |
|
|
@%:@@%:@ ------------------- @%:@@%:@
|
1782 |
|
|
@%:@@%:@ File substitutions. @%:@@%:@
|
1783 |
|
|
@%:@@%:@ ------------------- @%:@@%:@
|
1784 |
|
|
_ASBOX
|
1785 |
|
|
echo
|
1786 |
|
|
for ac_var in $ac_subst_files
|
1787 |
|
|
do
|
1788 |
|
|
eval ac_val=\$$ac_var
|
1789 |
|
|
case $ac_val in
|
1790 |
|
|
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
1791 |
|
|
esac
|
1792 |
|
|
echo "$ac_var='\''$ac_val'\''"
|
1793 |
|
|
done | sort
|
1794 |
|
|
echo
|
1795 |
|
|
fi
|
1796 |
|
|
|
1797 |
|
|
if test -s confdefs.h; then
|
1798 |
|
|
cat <<\_ASBOX
|
1799 |
|
|
@%:@@%:@ ----------- @%:@@%:@
|
1800 |
|
|
@%:@@%:@ confdefs.h. @%:@@%:@
|
1801 |
|
|
@%:@@%:@ ----------- @%:@@%:@
|
1802 |
|
|
_ASBOX
|
1803 |
|
|
echo
|
1804 |
|
|
cat confdefs.h
|
1805 |
|
|
echo
|
1806 |
|
|
fi
|
1807 |
|
|
test "$ac_signal" != 0 &&
|
1808 |
|
|
echo "$as_me: caught signal $ac_signal"
|
1809 |
|
|
echo "$as_me: exit $exit_status"
|
1810 |
|
|
} >&5
|
1811 |
|
|
rm -f core *.core core.conftest.* &&
|
1812 |
|
|
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
1813 |
|
|
exit $exit_status
|
1814 |
|
|
' 0
|
1815 |
|
|
for ac_signal in 1 2 13 15; do
|
1816 |
|
|
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
1817 |
|
|
done
|
1818 |
|
|
ac_signal=0
|
1819 |
|
|
|
1820 |
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
1821 |
|
|
rm -f -r conftest* confdefs.h
|
1822 |
|
|
|
1823 |
|
|
# Predefined preprocessor variables.
|
1824 |
|
|
|
1825 |
|
|
cat >>confdefs.h <<_ACEOF
|
1826 |
|
|
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
|
1827 |
|
|
_ACEOF
|
1828 |
|
|
|
1829 |
|
|
|
1830 |
|
|
cat >>confdefs.h <<_ACEOF
|
1831 |
|
|
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
1832 |
|
|
_ACEOF
|
1833 |
|
|
|
1834 |
|
|
|
1835 |
|
|
cat >>confdefs.h <<_ACEOF
|
1836 |
|
|
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
|
1837 |
|
|
_ACEOF
|
1838 |
|
|
|
1839 |
|
|
|
1840 |
|
|
cat >>confdefs.h <<_ACEOF
|
1841 |
|
|
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
|
1842 |
|
|
_ACEOF
|
1843 |
|
|
|
1844 |
|
|
|
1845 |
|
|
cat >>confdefs.h <<_ACEOF
|
1846 |
|
|
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
1847 |
|
|
_ACEOF
|
1848 |
|
|
|
1849 |
|
|
|
1850 |
|
|
# Let the site file select an alternate cache file if it wants to.
|
1851 |
|
|
# Prefer explicitly selected file to automatically selected ones.
|
1852 |
|
|
if test -n "$CONFIG_SITE"; then
|
1853 |
|
|
set x "$CONFIG_SITE"
|
1854 |
|
|
elif test "x$prefix" != xNONE; then
|
1855 |
|
|
set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
1856 |
|
|
else
|
1857 |
|
|
set x "$ac_default_prefix/share/config.site" \
|
1858 |
|
|
"$ac_default_prefix/etc/config.site"
|
1859 |
|
|
fi
|
1860 |
|
|
shift
|
1861 |
|
|
for ac_site_file
|
1862 |
|
|
do
|
1863 |
|
|
if test -r "$ac_site_file"; then
|
1864 |
|
|
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
1865 |
|
|
echo "$as_me: loading site script $ac_site_file" >&6;}
|
1866 |
|
|
sed 's/^/| /' "$ac_site_file" >&5
|
1867 |
|
|
. "$ac_site_file"
|
1868 |
|
|
fi
|
1869 |
|
|
done
|
1870 |
|
|
|
1871 |
|
|
if test -r "$cache_file"; then
|
1872 |
|
|
# Some versions of bash will fail to source /dev/null (special
|
1873 |
|
|
# files actually), so we avoid doing that.
|
1874 |
|
|
if test -f "$cache_file"; then
|
1875 |
|
|
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
1876 |
|
|
echo "$as_me: loading cache $cache_file" >&6;}
|
1877 |
|
|
case $cache_file in
|
1878 |
|
|
[\\/]* | ?:[\\/]* ) . "$cache_file";;
|
1879 |
|
|
*) . "./$cache_file";;
|
1880 |
|
|
esac
|
1881 |
|
|
fi
|
1882 |
|
|
else
|
1883 |
|
|
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
1884 |
|
|
echo "$as_me: creating cache $cache_file" >&6;}
|
1885 |
|
|
>$cache_file
|
1886 |
|
|
fi
|
1887 |
|
|
|
1888 |
|
|
# Check that the precious variables saved in the cache have kept the same
|
1889 |
|
|
# value.
|
1890 |
|
|
ac_cache_corrupted=false
|
1891 |
|
|
for ac_var in $ac_precious_vars; do
|
1892 |
|
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
1893 |
|
|
eval ac_new_set=\$ac_env_${ac_var}_set
|
1894 |
|
|
eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
1895 |
|
|
eval ac_new_val=\$ac_env_${ac_var}_value
|
1896 |
|
|
case $ac_old_set,$ac_new_set in
|
1897 |
|
|
set,)
|
1898 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
1899 |
|
|
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
1900 |
|
|
ac_cache_corrupted=: ;;
|
1901 |
|
|
,set)
|
1902 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
1903 |
|
|
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
1904 |
|
|
ac_cache_corrupted=: ;;
|
1905 |
|
|
,);;
|
1906 |
|
|
*)
|
1907 |
|
|
if test "x$ac_old_val" != "x$ac_new_val"; then
|
1908 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
1909 |
|
|
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
1910 |
|
|
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
1911 |
|
|
echo "$as_me: former value: $ac_old_val" >&2;}
|
1912 |
|
|
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
1913 |
|
|
echo "$as_me: current value: $ac_new_val" >&2;}
|
1914 |
|
|
ac_cache_corrupted=:
|
1915 |
|
|
fi;;
|
1916 |
|
|
esac
|
1917 |
|
|
# Pass precious variables to config.status.
|
1918 |
|
|
if test "$ac_new_set" = set; then
|
1919 |
|
|
case $ac_new_val in
|
1920 |
|
|
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
1921 |
|
|
*) ac_arg=$ac_var=$ac_new_val ;;
|
1922 |
|
|
esac
|
1923 |
|
|
case " $ac_configure_args " in
|
1924 |
|
|
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
1925 |
|
|
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
1926 |
|
|
esac
|
1927 |
|
|
fi
|
1928 |
|
|
done
|
1929 |
|
|
if $ac_cache_corrupted; then
|
1930 |
|
|
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
1931 |
|
|
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
1932 |
|
|
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
1933 |
|
|
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
1934 |
|
|
{ (exit 1); exit 1; }; }
|
1935 |
|
|
fi
|
1936 |
|
|
|
1937 |
|
|
|
1938 |
|
|
|
1939 |
|
|
|
1940 |
|
|
|
1941 |
|
|
|
1942 |
|
|
|
1943 |
|
|
|
1944 |
|
|
|
1945 |
|
|
|
1946 |
|
|
|
1947 |
|
|
|
1948 |
|
|
|
1949 |
|
|
|
1950 |
|
|
|
1951 |
|
|
|
1952 |
|
|
|
1953 |
|
|
|
1954 |
|
|
|
1955 |
|
|
|
1956 |
|
|
|
1957 |
|
|
|
1958 |
|
|
|
1959 |
|
|
|
1960 |
|
|
|
1961 |
|
|
ac_ext=c
|
1962 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
1963 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
1964 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
1965 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
1966 |
|
|
|
1967 |
|
|
|
1968 |
|
|
|
1969 |
|
|
ac_aux_dir=
|
1970 |
|
|
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
1971 |
|
|
if test -f "$ac_dir/install-sh"; then
|
1972 |
|
|
ac_aux_dir=$ac_dir
|
1973 |
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
1974 |
|
|
break
|
1975 |
|
|
elif test -f "$ac_dir/install.sh"; then
|
1976 |
|
|
ac_aux_dir=$ac_dir
|
1977 |
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
1978 |
|
|
break
|
1979 |
|
|
elif test -f "$ac_dir/shtool"; then
|
1980 |
|
|
ac_aux_dir=$ac_dir
|
1981 |
|
|
ac_install_sh="$ac_aux_dir/shtool install -c"
|
1982 |
|
|
break
|
1983 |
|
|
fi
|
1984 |
|
|
done
|
1985 |
|
|
if test -z "$ac_aux_dir"; then
|
1986 |
|
|
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
1987 |
|
|
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
1988 |
|
|
{ (exit 1); exit 1; }; }
|
1989 |
|
|
fi
|
1990 |
|
|
|
1991 |
|
|
# These three variables are undocumented and unsupported,
|
1992 |
|
|
# and are intended to be withdrawn in a future Autoconf release.
|
1993 |
|
|
# They can cause serious problems if a builder's source tree is in a directory
|
1994 |
|
|
# whose full name contains unusual characters.
|
1995 |
|
|
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
1996 |
|
|
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
1997 |
|
|
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
1998 |
|
|
|
1999 |
|
|
|
2000 |
|
|
# Make sure we can run config.sub.
|
2001 |
|
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
2002 |
|
|
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
|
2003 |
|
|
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
|
2004 |
|
|
{ (exit 1); exit 1; }; }
|
2005 |
|
|
|
2006 |
|
|
{ echo "$as_me:$LINENO: checking build system type" >&5
|
2007 |
|
|
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
|
2008 |
|
|
if test "${ac_cv_build+set}" = set; then
|
2009 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2010 |
|
|
else
|
2011 |
|
|
ac_build_alias=$build_alias
|
2012 |
|
|
test "x$ac_build_alias" = x &&
|
2013 |
|
|
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
2014 |
|
|
test "x$ac_build_alias" = x &&
|
2015 |
|
|
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
2016 |
|
|
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
2017 |
|
|
{ (exit 1); exit 1; }; }
|
2018 |
|
|
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
2019 |
|
|
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
|
2020 |
|
|
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
|
2021 |
|
|
{ (exit 1); exit 1; }; }
|
2022 |
|
|
|
2023 |
|
|
fi
|
2024 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
2025 |
|
|
echo "${ECHO_T}$ac_cv_build" >&6; }
|
2026 |
|
|
case $ac_cv_build in
|
2027 |
|
|
*-*-*) ;;
|
2028 |
|
|
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
|
2029 |
|
|
echo "$as_me: error: invalid value of canonical build" >&2;}
|
2030 |
|
|
{ (exit 1); exit 1; }; };;
|
2031 |
|
|
esac
|
2032 |
|
|
build=$ac_cv_build
|
2033 |
|
|
ac_save_IFS=$IFS; IFS='-'
|
2034 |
|
|
set x $ac_cv_build
|
2035 |
|
|
shift
|
2036 |
|
|
build_cpu=$1
|
2037 |
|
|
build_vendor=$2
|
2038 |
|
|
shift; shift
|
2039 |
|
|
# Remember, the first character of IFS is used to create $*,
|
2040 |
|
|
# except with old shells:
|
2041 |
|
|
build_os=$*
|
2042 |
|
|
IFS=$ac_save_IFS
|
2043 |
|
|
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
2044 |
|
|
|
2045 |
|
|
|
2046 |
|
|
{ echo "$as_me:$LINENO: checking host system type" >&5
|
2047 |
|
|
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
|
2048 |
|
|
if test "${ac_cv_host+set}" = set; then
|
2049 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2050 |
|
|
else
|
2051 |
|
|
if test "x$host_alias" = x; then
|
2052 |
|
|
ac_cv_host=$ac_cv_build
|
2053 |
|
|
else
|
2054 |
|
|
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
2055 |
|
|
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
|
2056 |
|
|
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
|
2057 |
|
|
{ (exit 1); exit 1; }; }
|
2058 |
|
|
fi
|
2059 |
|
|
|
2060 |
|
|
fi
|
2061 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
2062 |
|
|
echo "${ECHO_T}$ac_cv_host" >&6; }
|
2063 |
|
|
case $ac_cv_host in
|
2064 |
|
|
*-*-*) ;;
|
2065 |
|
|
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
|
2066 |
|
|
echo "$as_me: error: invalid value of canonical host" >&2;}
|
2067 |
|
|
{ (exit 1); exit 1; }; };;
|
2068 |
|
|
esac
|
2069 |
|
|
host=$ac_cv_host
|
2070 |
|
|
ac_save_IFS=$IFS; IFS='-'
|
2071 |
|
|
set x $ac_cv_host
|
2072 |
|
|
shift
|
2073 |
|
|
host_cpu=$1
|
2074 |
|
|
host_vendor=$2
|
2075 |
|
|
shift; shift
|
2076 |
|
|
# Remember, the first character of IFS is used to create $*,
|
2077 |
|
|
# except with old shells:
|
2078 |
|
|
host_os=$*
|
2079 |
|
|
IFS=$ac_save_IFS
|
2080 |
|
|
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
2081 |
|
|
|
2082 |
|
|
|
2083 |
|
|
{ echo "$as_me:$LINENO: checking target system type" >&5
|
2084 |
|
|
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
|
2085 |
|
|
if test "${ac_cv_target+set}" = set; then
|
2086 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2087 |
|
|
else
|
2088 |
|
|
if test "x$target_alias" = x; then
|
2089 |
|
|
ac_cv_target=$ac_cv_host
|
2090 |
|
|
else
|
2091 |
|
|
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
2092 |
|
|
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
|
2093 |
|
|
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
|
2094 |
|
|
{ (exit 1); exit 1; }; }
|
2095 |
|
|
fi
|
2096 |
|
|
|
2097 |
|
|
fi
|
2098 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
2099 |
|
|
echo "${ECHO_T}$ac_cv_target" >&6; }
|
2100 |
|
|
case $ac_cv_target in
|
2101 |
|
|
*-*-*) ;;
|
2102 |
|
|
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
|
2103 |
|
|
echo "$as_me: error: invalid value of canonical target" >&2;}
|
2104 |
|
|
{ (exit 1); exit 1; }; };;
|
2105 |
|
|
esac
|
2106 |
|
|
target=$ac_cv_target
|
2107 |
|
|
ac_save_IFS=$IFS; IFS='-'
|
2108 |
|
|
set x $ac_cv_target
|
2109 |
|
|
shift
|
2110 |
|
|
target_cpu=$1
|
2111 |
|
|
target_vendor=$2
|
2112 |
|
|
shift; shift
|
2113 |
|
|
# Remember, the first character of IFS is used to create $*,
|
2114 |
|
|
# except with old shells:
|
2115 |
|
|
target_os=$*
|
2116 |
|
|
IFS=$ac_save_IFS
|
2117 |
|
|
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
2118 |
|
|
|
2119 |
|
|
|
2120 |
|
|
# The aliases save the names the user supplied, while $host etc.
|
2121 |
|
|
# will get canonicalized.
|
2122 |
|
|
test -n "$target_alias" &&
|
2123 |
|
|
test "$program_prefix$program_suffix$program_transform_name" = \
|
2124 |
|
|
NONENONEs,x,x, &&
|
2125 |
|
|
program_prefix=${target_alias}-
|
2126 |
|
|
# Check whether --enable-shared was given.
|
2127 |
|
|
if test "${enable_shared+set}" = set; then
|
2128 |
|
|
enableval=$enable_shared; p=${PACKAGE-default}
|
2129 |
|
|
case $enableval in
|
2130 |
|
|
yes) enable_shared=yes ;;
|
2131 |
|
|
no) enable_shared=no ;;
|
2132 |
|
|
*)
|
2133 |
|
|
enable_shared=no
|
2134 |
|
|
# Look at the argument we got. We use all the common list separators.
|
2135 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
2136 |
|
|
for pkg in $enableval; do
|
2137 |
|
|
IFS="$lt_save_ifs"
|
2138 |
|
|
if test "X$pkg" = "X$p"; then
|
2139 |
|
|
enable_shared=yes
|
2140 |
|
|
fi
|
2141 |
|
|
done
|
2142 |
|
|
IFS="$lt_save_ifs"
|
2143 |
|
|
;;
|
2144 |
|
|
esac
|
2145 |
|
|
else
|
2146 |
|
|
enable_shared=yes
|
2147 |
|
|
fi
|
2148 |
|
|
|
2149 |
|
|
|
2150 |
|
|
# Check whether --enable-static was given.
|
2151 |
|
|
if test "${enable_static+set}" = set; then
|
2152 |
|
|
enableval=$enable_static; p=${PACKAGE-default}
|
2153 |
|
|
case $enableval in
|
2154 |
|
|
yes) enable_static=yes ;;
|
2155 |
|
|
no) enable_static=no ;;
|
2156 |
|
|
*)
|
2157 |
|
|
enable_static=no
|
2158 |
|
|
# Look at the argument we got. We use all the common list separators.
|
2159 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
2160 |
|
|
for pkg in $enableval; do
|
2161 |
|
|
IFS="$lt_save_ifs"
|
2162 |
|
|
if test "X$pkg" = "X$p"; then
|
2163 |
|
|
enable_static=yes
|
2164 |
|
|
fi
|
2165 |
|
|
done
|
2166 |
|
|
IFS="$lt_save_ifs"
|
2167 |
|
|
;;
|
2168 |
|
|
esac
|
2169 |
|
|
else
|
2170 |
|
|
enable_static=yes
|
2171 |
|
|
fi
|
2172 |
|
|
|
2173 |
|
|
|
2174 |
|
|
# Check whether --enable-fast-install was given.
|
2175 |
|
|
if test "${enable_fast_install+set}" = set; then
|
2176 |
|
|
enableval=$enable_fast_install; p=${PACKAGE-default}
|
2177 |
|
|
case $enableval in
|
2178 |
|
|
yes) enable_fast_install=yes ;;
|
2179 |
|
|
no) enable_fast_install=no ;;
|
2180 |
|
|
*)
|
2181 |
|
|
enable_fast_install=no
|
2182 |
|
|
# Look at the argument we got. We use all the common list separators.
|
2183 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
2184 |
|
|
for pkg in $enableval; do
|
2185 |
|
|
IFS="$lt_save_ifs"
|
2186 |
|
|
if test "X$pkg" = "X$p"; then
|
2187 |
|
|
enable_fast_install=yes
|
2188 |
|
|
fi
|
2189 |
|
|
done
|
2190 |
|
|
IFS="$lt_save_ifs"
|
2191 |
|
|
;;
|
2192 |
|
|
esac
|
2193 |
|
|
else
|
2194 |
|
|
enable_fast_install=yes
|
2195 |
|
|
fi
|
2196 |
|
|
|
2197 |
|
|
|
2198 |
|
|
ac_ext=c
|
2199 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
2200 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
2201 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
2202 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2203 |
|
|
if test -n "$ac_tool_prefix"; then
|
2204 |
|
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
2205 |
|
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
2206 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2207 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
2208 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
2209 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2210 |
|
|
else
|
2211 |
|
|
if test -n "$CC"; then
|
2212 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2213 |
|
|
else
|
2214 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2215 |
|
|
for as_dir in $PATH
|
2216 |
|
|
do
|
2217 |
|
|
IFS=$as_save_IFS
|
2218 |
|
|
test -z "$as_dir" && as_dir=.
|
2219 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2220 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
2221 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
2222 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2223 |
|
|
break 2
|
2224 |
|
|
fi
|
2225 |
|
|
done
|
2226 |
|
|
done
|
2227 |
|
|
IFS=$as_save_IFS
|
2228 |
|
|
|
2229 |
|
|
fi
|
2230 |
|
|
fi
|
2231 |
|
|
CC=$ac_cv_prog_CC
|
2232 |
|
|
if test -n "$CC"; then
|
2233 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
2234 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
2235 |
|
|
else
|
2236 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
2237 |
|
|
echo "${ECHO_T}no" >&6; }
|
2238 |
|
|
fi
|
2239 |
|
|
|
2240 |
|
|
|
2241 |
|
|
fi
|
2242 |
|
|
if test -z "$ac_cv_prog_CC"; then
|
2243 |
|
|
ac_ct_CC=$CC
|
2244 |
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
2245 |
|
|
set dummy gcc; ac_word=$2
|
2246 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2247 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
2248 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
2249 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2250 |
|
|
else
|
2251 |
|
|
if test -n "$ac_ct_CC"; then
|
2252 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
2253 |
|
|
else
|
2254 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2255 |
|
|
for as_dir in $PATH
|
2256 |
|
|
do
|
2257 |
|
|
IFS=$as_save_IFS
|
2258 |
|
|
test -z "$as_dir" && as_dir=.
|
2259 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2260 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
2261 |
|
|
ac_cv_prog_ac_ct_CC="gcc"
|
2262 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2263 |
|
|
break 2
|
2264 |
|
|
fi
|
2265 |
|
|
done
|
2266 |
|
|
done
|
2267 |
|
|
IFS=$as_save_IFS
|
2268 |
|
|
|
2269 |
|
|
fi
|
2270 |
|
|
fi
|
2271 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
2272 |
|
|
if test -n "$ac_ct_CC"; then
|
2273 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
2274 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
2275 |
|
|
else
|
2276 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
2277 |
|
|
echo "${ECHO_T}no" >&6; }
|
2278 |
|
|
fi
|
2279 |
|
|
|
2280 |
|
|
if test "x$ac_ct_CC" = x; then
|
2281 |
|
|
CC=""
|
2282 |
|
|
else
|
2283 |
|
|
case $cross_compiling:$ac_tool_warned in
|
2284 |
|
|
yes:)
|
2285 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
2286 |
|
|
whose name does not start with the host triplet. If you think this
|
2287 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
2288 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
2289 |
|
|
whose name does not start with the host triplet. If you think this
|
2290 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
2291 |
|
|
ac_tool_warned=yes ;;
|
2292 |
|
|
esac
|
2293 |
|
|
CC=$ac_ct_CC
|
2294 |
|
|
fi
|
2295 |
|
|
else
|
2296 |
|
|
CC="$ac_cv_prog_CC"
|
2297 |
|
|
fi
|
2298 |
|
|
|
2299 |
|
|
if test -z "$CC"; then
|
2300 |
|
|
if test -n "$ac_tool_prefix"; then
|
2301 |
|
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
2302 |
|
|
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
2303 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2304 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
2305 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
2306 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2307 |
|
|
else
|
2308 |
|
|
if test -n "$CC"; then
|
2309 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2310 |
|
|
else
|
2311 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2312 |
|
|
for as_dir in $PATH
|
2313 |
|
|
do
|
2314 |
|
|
IFS=$as_save_IFS
|
2315 |
|
|
test -z "$as_dir" && as_dir=.
|
2316 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2317 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
2318 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
2319 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2320 |
|
|
break 2
|
2321 |
|
|
fi
|
2322 |
|
|
done
|
2323 |
|
|
done
|
2324 |
|
|
IFS=$as_save_IFS
|
2325 |
|
|
|
2326 |
|
|
fi
|
2327 |
|
|
fi
|
2328 |
|
|
CC=$ac_cv_prog_CC
|
2329 |
|
|
if test -n "$CC"; then
|
2330 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
2331 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
2332 |
|
|
else
|
2333 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
2334 |
|
|
echo "${ECHO_T}no" >&6; }
|
2335 |
|
|
fi
|
2336 |
|
|
|
2337 |
|
|
|
2338 |
|
|
fi
|
2339 |
|
|
fi
|
2340 |
|
|
if test -z "$CC"; then
|
2341 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
2342 |
|
|
set dummy cc; ac_word=$2
|
2343 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2344 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
2345 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
2346 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2347 |
|
|
else
|
2348 |
|
|
if test -n "$CC"; then
|
2349 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2350 |
|
|
else
|
2351 |
|
|
ac_prog_rejected=no
|
2352 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2353 |
|
|
for as_dir in $PATH
|
2354 |
|
|
do
|
2355 |
|
|
IFS=$as_save_IFS
|
2356 |
|
|
test -z "$as_dir" && as_dir=.
|
2357 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2358 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
2359 |
|
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
2360 |
|
|
ac_prog_rejected=yes
|
2361 |
|
|
continue
|
2362 |
|
|
fi
|
2363 |
|
|
ac_cv_prog_CC="cc"
|
2364 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2365 |
|
|
break 2
|
2366 |
|
|
fi
|
2367 |
|
|
done
|
2368 |
|
|
done
|
2369 |
|
|
IFS=$as_save_IFS
|
2370 |
|
|
|
2371 |
|
|
if test $ac_prog_rejected = yes; then
|
2372 |
|
|
# We found a bogon in the path, so make sure we never use it.
|
2373 |
|
|
set dummy $ac_cv_prog_CC
|
2374 |
|
|
shift
|
2375 |
|
|
if test $@%:@ != 0; then
|
2376 |
|
|
# We chose a different compiler from the bogus one.
|
2377 |
|
|
# However, it has the same basename, so the bogon will be chosen
|
2378 |
|
|
# first if we set CC to just the basename; use the full file name.
|
2379 |
|
|
shift
|
2380 |
|
|
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
2381 |
|
|
fi
|
2382 |
|
|
fi
|
2383 |
|
|
fi
|
2384 |
|
|
fi
|
2385 |
|
|
CC=$ac_cv_prog_CC
|
2386 |
|
|
if test -n "$CC"; then
|
2387 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
2388 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
2389 |
|
|
else
|
2390 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
2391 |
|
|
echo "${ECHO_T}no" >&6; }
|
2392 |
|
|
fi
|
2393 |
|
|
|
2394 |
|
|
|
2395 |
|
|
fi
|
2396 |
|
|
if test -z "$CC"; then
|
2397 |
|
|
if test -n "$ac_tool_prefix"; then
|
2398 |
|
|
for ac_prog in cl.exe
|
2399 |
|
|
do
|
2400 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
2401 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
2402 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2403 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
2404 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
2405 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2406 |
|
|
else
|
2407 |
|
|
if test -n "$CC"; then
|
2408 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2409 |
|
|
else
|
2410 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2411 |
|
|
for as_dir in $PATH
|
2412 |
|
|
do
|
2413 |
|
|
IFS=$as_save_IFS
|
2414 |
|
|
test -z "$as_dir" && as_dir=.
|
2415 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2416 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
2417 |
|
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
2418 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2419 |
|
|
break 2
|
2420 |
|
|
fi
|
2421 |
|
|
done
|
2422 |
|
|
done
|
2423 |
|
|
IFS=$as_save_IFS
|
2424 |
|
|
|
2425 |
|
|
fi
|
2426 |
|
|
fi
|
2427 |
|
|
CC=$ac_cv_prog_CC
|
2428 |
|
|
if test -n "$CC"; then
|
2429 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
2430 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
2431 |
|
|
else
|
2432 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
2433 |
|
|
echo "${ECHO_T}no" >&6; }
|
2434 |
|
|
fi
|
2435 |
|
|
|
2436 |
|
|
|
2437 |
|
|
test -n "$CC" && break
|
2438 |
|
|
done
|
2439 |
|
|
fi
|
2440 |
|
|
if test -z "$CC"; then
|
2441 |
|
|
ac_ct_CC=$CC
|
2442 |
|
|
for ac_prog in cl.exe
|
2443 |
|
|
do
|
2444 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
2445 |
|
|
set dummy $ac_prog; ac_word=$2
|
2446 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2447 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
2448 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
2449 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2450 |
|
|
else
|
2451 |
|
|
if test -n "$ac_ct_CC"; then
|
2452 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
2453 |
|
|
else
|
2454 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2455 |
|
|
for as_dir in $PATH
|
2456 |
|
|
do
|
2457 |
|
|
IFS=$as_save_IFS
|
2458 |
|
|
test -z "$as_dir" && as_dir=.
|
2459 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2460 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
2461 |
|
|
ac_cv_prog_ac_ct_CC="$ac_prog"
|
2462 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2463 |
|
|
break 2
|
2464 |
|
|
fi
|
2465 |
|
|
done
|
2466 |
|
|
done
|
2467 |
|
|
IFS=$as_save_IFS
|
2468 |
|
|
|
2469 |
|
|
fi
|
2470 |
|
|
fi
|
2471 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
2472 |
|
|
if test -n "$ac_ct_CC"; then
|
2473 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
2474 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
2475 |
|
|
else
|
2476 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
2477 |
|
|
echo "${ECHO_T}no" >&6; }
|
2478 |
|
|
fi
|
2479 |
|
|
|
2480 |
|
|
|
2481 |
|
|
test -n "$ac_ct_CC" && break
|
2482 |
|
|
done
|
2483 |
|
|
|
2484 |
|
|
if test "x$ac_ct_CC" = x; then
|
2485 |
|
|
CC=""
|
2486 |
|
|
else
|
2487 |
|
|
case $cross_compiling:$ac_tool_warned in
|
2488 |
|
|
yes:)
|
2489 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
2490 |
|
|
whose name does not start with the host triplet. If you think this
|
2491 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
2492 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
2493 |
|
|
whose name does not start with the host triplet. If you think this
|
2494 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
2495 |
|
|
ac_tool_warned=yes ;;
|
2496 |
|
|
esac
|
2497 |
|
|
CC=$ac_ct_CC
|
2498 |
|
|
fi
|
2499 |
|
|
fi
|
2500 |
|
|
|
2501 |
|
|
fi
|
2502 |
|
|
|
2503 |
|
|
|
2504 |
|
|
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
2505 |
|
|
See \`config.log' for more details." >&5
|
2506 |
|
|
echo "$as_me: error: no acceptable C compiler found in \$PATH
|
2507 |
|
|
See \`config.log' for more details." >&2;}
|
2508 |
|
|
{ (exit 1); exit 1; }; }
|
2509 |
|
|
|
2510 |
|
|
# Provide some information about the compiler.
|
2511 |
|
|
echo "$as_me:$LINENO: checking for C compiler version" >&5
|
2512 |
|
|
ac_compiler=`set X $ac_compile; echo $2`
|
2513 |
|
|
{ (ac_try="$ac_compiler --version >&5"
|
2514 |
|
|
case "(($ac_try" in
|
2515 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2516 |
|
|
*) ac_try_echo=$ac_try;;
|
2517 |
|
|
esac
|
2518 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2519 |
|
|
(eval "$ac_compiler --version >&5") 2>&5
|
2520 |
|
|
ac_status=$?
|
2521 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2522 |
|
|
(exit $ac_status); }
|
2523 |
|
|
{ (ac_try="$ac_compiler -v >&5"
|
2524 |
|
|
case "(($ac_try" in
|
2525 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2526 |
|
|
*) ac_try_echo=$ac_try;;
|
2527 |
|
|
esac
|
2528 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2529 |
|
|
(eval "$ac_compiler -v >&5") 2>&5
|
2530 |
|
|
ac_status=$?
|
2531 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2532 |
|
|
(exit $ac_status); }
|
2533 |
|
|
{ (ac_try="$ac_compiler -V >&5"
|
2534 |
|
|
case "(($ac_try" in
|
2535 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2536 |
|
|
*) ac_try_echo=$ac_try;;
|
2537 |
|
|
esac
|
2538 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2539 |
|
|
(eval "$ac_compiler -V >&5") 2>&5
|
2540 |
|
|
ac_status=$?
|
2541 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2542 |
|
|
(exit $ac_status); }
|
2543 |
|
|
|
2544 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2545 |
|
|
/* confdefs.h. */
|
2546 |
|
|
_ACEOF
|
2547 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2548 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2549 |
|
|
/* end confdefs.h. */
|
2550 |
|
|
|
2551 |
|
|
int
|
2552 |
|
|
main ()
|
2553 |
|
|
{
|
2554 |
|
|
|
2555 |
|
|
;
|
2556 |
|
|
return 0;
|
2557 |
|
|
}
|
2558 |
|
|
_ACEOF
|
2559 |
|
|
ac_clean_files_save=$ac_clean_files
|
2560 |
|
|
ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
2561 |
|
|
# Try to create an executable without -o first, disregard a.out.
|
2562 |
|
|
# It will help us diagnose broken compilers, and finding out an intuition
|
2563 |
|
|
# of exeext.
|
2564 |
|
|
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
2565 |
|
|
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
|
2566 |
|
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
2567 |
|
|
#
|
2568 |
|
|
# List of possible output files, starting from the most likely.
|
2569 |
|
|
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
2570 |
|
|
# only as a last resort. b.out is created by i960 compilers.
|
2571 |
|
|
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
2572 |
|
|
#
|
2573 |
|
|
# The IRIX 6 linker writes into existing files which may not be
|
2574 |
|
|
# executable, retaining their permissions. Remove them first so a
|
2575 |
|
|
# subsequent execution test works.
|
2576 |
|
|
ac_rmfiles=
|
2577 |
|
|
for ac_file in $ac_files
|
2578 |
|
|
do
|
2579 |
|
|
case $ac_file in
|
2580 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
2581 |
|
|
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
2582 |
|
|
esac
|
2583 |
|
|
done
|
2584 |
|
|
rm -f $ac_rmfiles
|
2585 |
|
|
|
2586 |
|
|
if { (ac_try="$ac_link_default"
|
2587 |
|
|
case "(($ac_try" in
|
2588 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2589 |
|
|
*) ac_try_echo=$ac_try;;
|
2590 |
|
|
esac
|
2591 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2592 |
|
|
(eval "$ac_link_default") 2>&5
|
2593 |
|
|
ac_status=$?
|
2594 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2595 |
|
|
(exit $ac_status); }; then
|
2596 |
|
|
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
2597 |
|
|
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
2598 |
|
|
# in a Makefile. We should not override ac_cv_exeext if it was cached,
|
2599 |
|
|
# so that the user can short-circuit this test for compilers unknown to
|
2600 |
|
|
# Autoconf.
|
2601 |
|
|
for ac_file in $ac_files ''
|
2602 |
|
|
do
|
2603 |
|
|
test -f "$ac_file" || continue
|
2604 |
|
|
case $ac_file in
|
2605 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
2606 |
|
|
;;
|
2607 |
|
|
[ab].out )
|
2608 |
|
|
# We found the default executable, but exeext='' is most
|
2609 |
|
|
# certainly right.
|
2610 |
|
|
break;;
|
2611 |
|
|
*.* )
|
2612 |
|
|
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
2613 |
|
|
then :; else
|
2614 |
|
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
2615 |
|
|
fi
|
2616 |
|
|
# We set ac_cv_exeext here because the later test for it is not
|
2617 |
|
|
# safe: cross compilers may not add the suffix if given an `-o'
|
2618 |
|
|
# argument, so we may need to know it at that point already.
|
2619 |
|
|
# Even if this section looks crufty: it has the advantage of
|
2620 |
|
|
# actually working.
|
2621 |
|
|
break;;
|
2622 |
|
|
* )
|
2623 |
|
|
break;;
|
2624 |
|
|
esac
|
2625 |
|
|
done
|
2626 |
|
|
test "$ac_cv_exeext" = no && ac_cv_exeext=
|
2627 |
|
|
|
2628 |
|
|
else
|
2629 |
|
|
ac_file=''
|
2630 |
|
|
fi
|
2631 |
|
|
|
2632 |
|
|
{ echo "$as_me:$LINENO: result: $ac_file" >&5
|
2633 |
|
|
echo "${ECHO_T}$ac_file" >&6; }
|
2634 |
|
|
if test -z "$ac_file"; then
|
2635 |
|
|
echo "$as_me: failed program was:" >&5
|
2636 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2637 |
|
|
|
2638 |
|
|
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
2639 |
|
|
See \`config.log' for more details." >&5
|
2640 |
|
|
echo "$as_me: error: C compiler cannot create executables
|
2641 |
|
|
See \`config.log' for more details." >&2;}
|
2642 |
|
|
{ (exit 77); exit 77; }; }
|
2643 |
|
|
fi
|
2644 |
|
|
|
2645 |
|
|
ac_exeext=$ac_cv_exeext
|
2646 |
|
|
|
2647 |
|
|
# Check that the compiler produces executables we can run. If not, either
|
2648 |
|
|
# the compiler is broken, or we cross compile.
|
2649 |
|
|
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
2650 |
|
|
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
|
2651 |
|
|
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
2652 |
|
|
# If not cross compiling, check that we can run a simple program.
|
2653 |
|
|
if test "$cross_compiling" != yes; then
|
2654 |
|
|
if { ac_try='./$ac_file'
|
2655 |
|
|
{ (case "(($ac_try" in
|
2656 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2657 |
|
|
*) ac_try_echo=$ac_try;;
|
2658 |
|
|
esac
|
2659 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2660 |
|
|
(eval "$ac_try") 2>&5
|
2661 |
|
|
ac_status=$?
|
2662 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2663 |
|
|
(exit $ac_status); }; }; then
|
2664 |
|
|
cross_compiling=no
|
2665 |
|
|
else
|
2666 |
|
|
if test "$cross_compiling" = maybe; then
|
2667 |
|
|
cross_compiling=yes
|
2668 |
|
|
else
|
2669 |
|
|
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
2670 |
|
|
If you meant to cross compile, use \`--host'.
|
2671 |
|
|
See \`config.log' for more details." >&5
|
2672 |
|
|
echo "$as_me: error: cannot run C compiled programs.
|
2673 |
|
|
If you meant to cross compile, use \`--host'.
|
2674 |
|
|
See \`config.log' for more details." >&2;}
|
2675 |
|
|
{ (exit 1); exit 1; }; }
|
2676 |
|
|
fi
|
2677 |
|
|
fi
|
2678 |
|
|
fi
|
2679 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
2680 |
|
|
echo "${ECHO_T}yes" >&6; }
|
2681 |
|
|
|
2682 |
|
|
rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
2683 |
|
|
ac_clean_files=$ac_clean_files_save
|
2684 |
|
|
# Check that the compiler produces executables we can run. If not, either
|
2685 |
|
|
# the compiler is broken, or we cross compile.
|
2686 |
|
|
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
2687 |
|
|
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
2688 |
|
|
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
2689 |
|
|
echo "${ECHO_T}$cross_compiling" >&6; }
|
2690 |
|
|
|
2691 |
|
|
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
2692 |
|
|
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
2693 |
|
|
if { (ac_try="$ac_link"
|
2694 |
|
|
case "(($ac_try" in
|
2695 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2696 |
|
|
*) ac_try_echo=$ac_try;;
|
2697 |
|
|
esac
|
2698 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2699 |
|
|
(eval "$ac_link") 2>&5
|
2700 |
|
|
ac_status=$?
|
2701 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2702 |
|
|
(exit $ac_status); }; then
|
2703 |
|
|
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
2704 |
|
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
2705 |
|
|
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
2706 |
|
|
# `rm'.
|
2707 |
|
|
for ac_file in conftest.exe conftest conftest.*; do
|
2708 |
|
|
test -f "$ac_file" || continue
|
2709 |
|
|
case $ac_file in
|
2710 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
2711 |
|
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
2712 |
|
|
break;;
|
2713 |
|
|
* ) break;;
|
2714 |
|
|
esac
|
2715 |
|
|
done
|
2716 |
|
|
else
|
2717 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
2718 |
|
|
See \`config.log' for more details." >&5
|
2719 |
|
|
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
2720 |
|
|
See \`config.log' for more details." >&2;}
|
2721 |
|
|
{ (exit 1); exit 1; }; }
|
2722 |
|
|
fi
|
2723 |
|
|
|
2724 |
|
|
rm -f conftest$ac_cv_exeext
|
2725 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
2726 |
|
|
echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
2727 |
|
|
|
2728 |
|
|
rm -f conftest.$ac_ext
|
2729 |
|
|
EXEEXT=$ac_cv_exeext
|
2730 |
|
|
ac_exeext=$EXEEXT
|
2731 |
|
|
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
2732 |
|
|
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
2733 |
|
|
if test "${ac_cv_objext+set}" = set; then
|
2734 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2735 |
|
|
else
|
2736 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2737 |
|
|
/* confdefs.h. */
|
2738 |
|
|
_ACEOF
|
2739 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2740 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2741 |
|
|
/* end confdefs.h. */
|
2742 |
|
|
|
2743 |
|
|
int
|
2744 |
|
|
main ()
|
2745 |
|
|
{
|
2746 |
|
|
|
2747 |
|
|
;
|
2748 |
|
|
return 0;
|
2749 |
|
|
}
|
2750 |
|
|
_ACEOF
|
2751 |
|
|
rm -f conftest.o conftest.obj
|
2752 |
|
|
if { (ac_try="$ac_compile"
|
2753 |
|
|
case "(($ac_try" in
|
2754 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2755 |
|
|
*) ac_try_echo=$ac_try;;
|
2756 |
|
|
esac
|
2757 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2758 |
|
|
(eval "$ac_compile") 2>&5
|
2759 |
|
|
ac_status=$?
|
2760 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2761 |
|
|
(exit $ac_status); }; then
|
2762 |
|
|
for ac_file in conftest.o conftest.obj conftest.*; do
|
2763 |
|
|
test -f "$ac_file" || continue;
|
2764 |
|
|
case $ac_file in
|
2765 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
2766 |
|
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
2767 |
|
|
break;;
|
2768 |
|
|
esac
|
2769 |
|
|
done
|
2770 |
|
|
else
|
2771 |
|
|
echo "$as_me: failed program was:" >&5
|
2772 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2773 |
|
|
|
2774 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
2775 |
|
|
See \`config.log' for more details." >&5
|
2776 |
|
|
echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
2777 |
|
|
See \`config.log' for more details." >&2;}
|
2778 |
|
|
{ (exit 1); exit 1; }; }
|
2779 |
|
|
fi
|
2780 |
|
|
|
2781 |
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
2782 |
|
|
fi
|
2783 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
2784 |
|
|
echo "${ECHO_T}$ac_cv_objext" >&6; }
|
2785 |
|
|
OBJEXT=$ac_cv_objext
|
2786 |
|
|
ac_objext=$OBJEXT
|
2787 |
|
|
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
2788 |
|
|
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
2789 |
|
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
2790 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2791 |
|
|
else
|
2792 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2793 |
|
|
/* confdefs.h. */
|
2794 |
|
|
_ACEOF
|
2795 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2796 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2797 |
|
|
/* end confdefs.h. */
|
2798 |
|
|
|
2799 |
|
|
int
|
2800 |
|
|
main ()
|
2801 |
|
|
{
|
2802 |
|
|
#ifndef __GNUC__
|
2803 |
|
|
choke me
|
2804 |
|
|
#endif
|
2805 |
|
|
|
2806 |
|
|
;
|
2807 |
|
|
return 0;
|
2808 |
|
|
}
|
2809 |
|
|
_ACEOF
|
2810 |
|
|
rm -f conftest.$ac_objext
|
2811 |
|
|
if { (ac_try="$ac_compile"
|
2812 |
|
|
case "(($ac_try" in
|
2813 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2814 |
|
|
*) ac_try_echo=$ac_try;;
|
2815 |
|
|
esac
|
2816 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2817 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
2818 |
|
|
ac_status=$?
|
2819 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2820 |
|
|
rm -f conftest.er1
|
2821 |
|
|
cat conftest.err >&5
|
2822 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2823 |
|
|
(exit $ac_status); } && {
|
2824 |
|
|
test -z "$ac_c_werror_flag" ||
|
2825 |
|
|
test ! -s conftest.err
|
2826 |
|
|
} && test -s conftest.$ac_objext; then
|
2827 |
|
|
ac_compiler_gnu=yes
|
2828 |
|
|
else
|
2829 |
|
|
echo "$as_me: failed program was:" >&5
|
2830 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2831 |
|
|
|
2832 |
|
|
ac_compiler_gnu=no
|
2833 |
|
|
fi
|
2834 |
|
|
|
2835 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2836 |
|
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
2837 |
|
|
|
2838 |
|
|
fi
|
2839 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
2840 |
|
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
2841 |
|
|
GCC=`test $ac_compiler_gnu = yes && echo yes`
|
2842 |
|
|
ac_test_CFLAGS=${CFLAGS+set}
|
2843 |
|
|
ac_save_CFLAGS=$CFLAGS
|
2844 |
|
|
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
2845 |
|
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
2846 |
|
|
if test "${ac_cv_prog_cc_g+set}" = set; then
|
2847 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2848 |
|
|
else
|
2849 |
|
|
ac_save_c_werror_flag=$ac_c_werror_flag
|
2850 |
|
|
ac_c_werror_flag=yes
|
2851 |
|
|
ac_cv_prog_cc_g=no
|
2852 |
|
|
CFLAGS="-g"
|
2853 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2854 |
|
|
/* confdefs.h. */
|
2855 |
|
|
_ACEOF
|
2856 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2857 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2858 |
|
|
/* end confdefs.h. */
|
2859 |
|
|
|
2860 |
|
|
int
|
2861 |
|
|
main ()
|
2862 |
|
|
{
|
2863 |
|
|
|
2864 |
|
|
;
|
2865 |
|
|
return 0;
|
2866 |
|
|
}
|
2867 |
|
|
_ACEOF
|
2868 |
|
|
rm -f conftest.$ac_objext
|
2869 |
|
|
if { (ac_try="$ac_compile"
|
2870 |
|
|
case "(($ac_try" in
|
2871 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2872 |
|
|
*) ac_try_echo=$ac_try;;
|
2873 |
|
|
esac
|
2874 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2875 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
2876 |
|
|
ac_status=$?
|
2877 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2878 |
|
|
rm -f conftest.er1
|
2879 |
|
|
cat conftest.err >&5
|
2880 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2881 |
|
|
(exit $ac_status); } && {
|
2882 |
|
|
test -z "$ac_c_werror_flag" ||
|
2883 |
|
|
test ! -s conftest.err
|
2884 |
|
|
} && test -s conftest.$ac_objext; then
|
2885 |
|
|
ac_cv_prog_cc_g=yes
|
2886 |
|
|
else
|
2887 |
|
|
echo "$as_me: failed program was:" >&5
|
2888 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2889 |
|
|
|
2890 |
|
|
CFLAGS=""
|
2891 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2892 |
|
|
/* confdefs.h. */
|
2893 |
|
|
_ACEOF
|
2894 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2895 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2896 |
|
|
/* end confdefs.h. */
|
2897 |
|
|
|
2898 |
|
|
int
|
2899 |
|
|
main ()
|
2900 |
|
|
{
|
2901 |
|
|
|
2902 |
|
|
;
|
2903 |
|
|
return 0;
|
2904 |
|
|
}
|
2905 |
|
|
_ACEOF
|
2906 |
|
|
rm -f conftest.$ac_objext
|
2907 |
|
|
if { (ac_try="$ac_compile"
|
2908 |
|
|
case "(($ac_try" in
|
2909 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2910 |
|
|
*) ac_try_echo=$ac_try;;
|
2911 |
|
|
esac
|
2912 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2913 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
2914 |
|
|
ac_status=$?
|
2915 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2916 |
|
|
rm -f conftest.er1
|
2917 |
|
|
cat conftest.err >&5
|
2918 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2919 |
|
|
(exit $ac_status); } && {
|
2920 |
|
|
test -z "$ac_c_werror_flag" ||
|
2921 |
|
|
test ! -s conftest.err
|
2922 |
|
|
} && test -s conftest.$ac_objext; then
|
2923 |
|
|
:
|
2924 |
|
|
else
|
2925 |
|
|
echo "$as_me: failed program was:" >&5
|
2926 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2927 |
|
|
|
2928 |
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
2929 |
|
|
CFLAGS="-g"
|
2930 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2931 |
|
|
/* confdefs.h. */
|
2932 |
|
|
_ACEOF
|
2933 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2934 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2935 |
|
|
/* end confdefs.h. */
|
2936 |
|
|
|
2937 |
|
|
int
|
2938 |
|
|
main ()
|
2939 |
|
|
{
|
2940 |
|
|
|
2941 |
|
|
;
|
2942 |
|
|
return 0;
|
2943 |
|
|
}
|
2944 |
|
|
_ACEOF
|
2945 |
|
|
rm -f conftest.$ac_objext
|
2946 |
|
|
if { (ac_try="$ac_compile"
|
2947 |
|
|
case "(($ac_try" in
|
2948 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2949 |
|
|
*) ac_try_echo=$ac_try;;
|
2950 |
|
|
esac
|
2951 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2952 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
2953 |
|
|
ac_status=$?
|
2954 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2955 |
|
|
rm -f conftest.er1
|
2956 |
|
|
cat conftest.err >&5
|
2957 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2958 |
|
|
(exit $ac_status); } && {
|
2959 |
|
|
test -z "$ac_c_werror_flag" ||
|
2960 |
|
|
test ! -s conftest.err
|
2961 |
|
|
} && test -s conftest.$ac_objext; then
|
2962 |
|
|
ac_cv_prog_cc_g=yes
|
2963 |
|
|
else
|
2964 |
|
|
echo "$as_me: failed program was:" >&5
|
2965 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2966 |
|
|
|
2967 |
|
|
|
2968 |
|
|
fi
|
2969 |
|
|
|
2970 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2971 |
|
|
fi
|
2972 |
|
|
|
2973 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2974 |
|
|
fi
|
2975 |
|
|
|
2976 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2977 |
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
2978 |
|
|
fi
|
2979 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
2980 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
2981 |
|
|
if test "$ac_test_CFLAGS" = set; then
|
2982 |
|
|
CFLAGS=$ac_save_CFLAGS
|
2983 |
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
2984 |
|
|
if test "$GCC" = yes; then
|
2985 |
|
|
CFLAGS="-g -O2"
|
2986 |
|
|
else
|
2987 |
|
|
CFLAGS="-g"
|
2988 |
|
|
fi
|
2989 |
|
|
else
|
2990 |
|
|
if test "$GCC" = yes; then
|
2991 |
|
|
CFLAGS="-O2"
|
2992 |
|
|
else
|
2993 |
|
|
CFLAGS=
|
2994 |
|
|
fi
|
2995 |
|
|
fi
|
2996 |
|
|
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
2997 |
|
|
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
2998 |
|
|
if test "${ac_cv_prog_cc_c89+set}" = set; then
|
2999 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3000 |
|
|
else
|
3001 |
|
|
ac_cv_prog_cc_c89=no
|
3002 |
|
|
ac_save_CC=$CC
|
3003 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3004 |
|
|
/* confdefs.h. */
|
3005 |
|
|
_ACEOF
|
3006 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3007 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3008 |
|
|
/* end confdefs.h. */
|
3009 |
|
|
#include
|
3010 |
|
|
#include
|
3011 |
|
|
#include
|
3012 |
|
|
#include
|
3013 |
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
3014 |
|
|
struct buf { int x; };
|
3015 |
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
3016 |
|
|
static char *e (p, i)
|
3017 |
|
|
char **p;
|
3018 |
|
|
int i;
|
3019 |
|
|
{
|
3020 |
|
|
return p[i];
|
3021 |
|
|
}
|
3022 |
|
|
static char *f (char * (*g) (char **, int), char **p, ...)
|
3023 |
|
|
{
|
3024 |
|
|
char *s;
|
3025 |
|
|
va_list v;
|
3026 |
|
|
va_start (v,p);
|
3027 |
|
|
s = g (p, va_arg (v,int));
|
3028 |
|
|
va_end (v);
|
3029 |
|
|
return s;
|
3030 |
|
|
}
|
3031 |
|
|
|
3032 |
|
|
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
3033 |
|
|
function prototypes and stuff, but not '\xHH' hex character constants.
|
3034 |
|
|
These don't provoke an error unfortunately, instead are silently treated
|
3035 |
|
|
as 'x'. The following induces an error, until -std is added to get
|
3036 |
|
|
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
3037 |
|
|
array size at least. It's necessary to write '\x00'==0 to get something
|
3038 |
|
|
that's true only with -std. */
|
3039 |
|
|
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
3040 |
|
|
|
3041 |
|
|
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
3042 |
|
|
inside strings and character constants. */
|
3043 |
|
|
#define FOO(x) 'x'
|
3044 |
|
|
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
3045 |
|
|
|
3046 |
|
|
int test (int i, double x);
|
3047 |
|
|
struct s1 {int (*f) (int a);};
|
3048 |
|
|
struct s2 {int (*f) (double a);};
|
3049 |
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
3050 |
|
|
int argc;
|
3051 |
|
|
char **argv;
|
3052 |
|
|
int
|
3053 |
|
|
main ()
|
3054 |
|
|
{
|
3055 |
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
3056 |
|
|
;
|
3057 |
|
|
return 0;
|
3058 |
|
|
}
|
3059 |
|
|
_ACEOF
|
3060 |
|
|
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
3061 |
|
|
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
3062 |
|
|
do
|
3063 |
|
|
CC="$ac_save_CC $ac_arg"
|
3064 |
|
|
rm -f conftest.$ac_objext
|
3065 |
|
|
if { (ac_try="$ac_compile"
|
3066 |
|
|
case "(($ac_try" in
|
3067 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
3068 |
|
|
*) ac_try_echo=$ac_try;;
|
3069 |
|
|
esac
|
3070 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
3071 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
3072 |
|
|
ac_status=$?
|
3073 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
3074 |
|
|
rm -f conftest.er1
|
3075 |
|
|
cat conftest.err >&5
|
3076 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3077 |
|
|
(exit $ac_status); } && {
|
3078 |
|
|
test -z "$ac_c_werror_flag" ||
|
3079 |
|
|
test ! -s conftest.err
|
3080 |
|
|
} && test -s conftest.$ac_objext; then
|
3081 |
|
|
ac_cv_prog_cc_c89=$ac_arg
|
3082 |
|
|
else
|
3083 |
|
|
echo "$as_me: failed program was:" >&5
|
3084 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3085 |
|
|
|
3086 |
|
|
|
3087 |
|
|
fi
|
3088 |
|
|
|
3089 |
|
|
rm -f core conftest.err conftest.$ac_objext
|
3090 |
|
|
test "x$ac_cv_prog_cc_c89" != "xno" && break
|
3091 |
|
|
done
|
3092 |
|
|
rm -f conftest.$ac_ext
|
3093 |
|
|
CC=$ac_save_CC
|
3094 |
|
|
|
3095 |
|
|
fi
|
3096 |
|
|
# AC_CACHE_VAL
|
3097 |
|
|
case "x$ac_cv_prog_cc_c89" in
|
3098 |
|
|
x)
|
3099 |
|
|
{ echo "$as_me:$LINENO: result: none needed" >&5
|
3100 |
|
|
echo "${ECHO_T}none needed" >&6; } ;;
|
3101 |
|
|
xno)
|
3102 |
|
|
{ echo "$as_me:$LINENO: result: unsupported" >&5
|
3103 |
|
|
echo "${ECHO_T}unsupported" >&6; } ;;
|
3104 |
|
|
*)
|
3105 |
|
|
CC="$CC $ac_cv_prog_cc_c89"
|
3106 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
3107 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
3108 |
|
|
esac
|
3109 |
|
|
|
3110 |
|
|
|
3111 |
|
|
ac_ext=c
|
3112 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
3113 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3114 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3115 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3116 |
|
|
|
3117 |
|
|
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
|
3118 |
|
|
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
|
3119 |
|
|
if test "${lt_cv_path_SED+set}" = set; then
|
3120 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3121 |
|
|
else
|
3122 |
|
|
# Loop through the user's path and test for sed and gsed.
|
3123 |
|
|
# Then use that list of sed's as ones to test for truncation.
|
3124 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3125 |
|
|
for as_dir in $PATH
|
3126 |
|
|
do
|
3127 |
|
|
IFS=$as_save_IFS
|
3128 |
|
|
test -z "$as_dir" && as_dir=.
|
3129 |
|
|
for lt_ac_prog in sed gsed; do
|
3130 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3131 |
|
|
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
|
3132 |
|
|
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
3133 |
|
|
fi
|
3134 |
|
|
done
|
3135 |
|
|
done
|
3136 |
|
|
done
|
3137 |
|
|
IFS=$as_save_IFS
|
3138 |
|
|
lt_ac_max=0
|
3139 |
|
|
lt_ac_count=0
|
3140 |
|
|
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
3141 |
|
|
# along with /bin/sed that truncates output.
|
3142 |
|
|
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
3143 |
|
|
test ! -f $lt_ac_sed && continue
|
3144 |
|
|
cat /dev/null > conftest.in
|
3145 |
|
|
lt_ac_count=0
|
3146 |
|
|
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
3147 |
|
|
# Check for GNU sed and select it if it is found.
|
3148 |
|
|
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
3149 |
|
|
lt_cv_path_SED=$lt_ac_sed
|
3150 |
|
|
break
|
3151 |
|
|
fi
|
3152 |
|
|
while true; do
|
3153 |
|
|
cat conftest.in conftest.in >conftest.tmp
|
3154 |
|
|
mv conftest.tmp conftest.in
|
3155 |
|
|
cp conftest.in conftest.nl
|
3156 |
|
|
echo >>conftest.nl
|
3157 |
|
|
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
3158 |
|
|
cmp -s conftest.out conftest.nl || break
|
3159 |
|
|
# 10000 chars as input seems more than enough
|
3160 |
|
|
test $lt_ac_count -gt 10 && break
|
3161 |
|
|
lt_ac_count=`expr $lt_ac_count + 1`
|
3162 |
|
|
if test $lt_ac_count -gt $lt_ac_max; then
|
3163 |
|
|
lt_ac_max=$lt_ac_count
|
3164 |
|
|
lt_cv_path_SED=$lt_ac_sed
|
3165 |
|
|
fi
|
3166 |
|
|
done
|
3167 |
|
|
done
|
3168 |
|
|
|
3169 |
|
|
fi
|
3170 |
|
|
|
3171 |
|
|
SED=$lt_cv_path_SED
|
3172 |
|
|
|
3173 |
|
|
{ echo "$as_me:$LINENO: result: $SED" >&5
|
3174 |
|
|
echo "${ECHO_T}$SED" >&6; }
|
3175 |
|
|
|
3176 |
|
|
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
3177 |
|
|
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
3178 |
|
|
if test "${ac_cv_path_GREP+set}" = set; then
|
3179 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3180 |
|
|
else
|
3181 |
|
|
# Extract the first word of "grep ggrep" to use in msg output
|
3182 |
|
|
if test -z "$GREP"; then
|
3183 |
|
|
set dummy grep ggrep; ac_prog_name=$2
|
3184 |
|
|
if test "${ac_cv_path_GREP+set}" = set; then
|
3185 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3186 |
|
|
else
|
3187 |
|
|
ac_path_GREP_found=false
|
3188 |
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
3189 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3190 |
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
3191 |
|
|
do
|
3192 |
|
|
IFS=$as_save_IFS
|
3193 |
|
|
test -z "$as_dir" && as_dir=.
|
3194 |
|
|
for ac_prog in grep ggrep; do
|
3195 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3196 |
|
|
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
3197 |
|
|
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
3198 |
|
|
# Check for GNU ac_path_GREP and select it if it is found.
|
3199 |
|
|
# Check for GNU $ac_path_GREP
|
3200 |
|
|
case `"$ac_path_GREP" --version 2>&1` in
|
3201 |
|
|
*GNU*)
|
3202 |
|
|
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
3203 |
|
|
*)
|
3204 |
|
|
ac_count=0
|
3205 |
|
|
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
3206 |
|
|
while :
|
3207 |
|
|
do
|
3208 |
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
3209 |
|
|
mv "conftest.tmp" "conftest.in"
|
3210 |
|
|
cp "conftest.in" "conftest.nl"
|
3211 |
|
|
echo 'GREP' >> "conftest.nl"
|
3212 |
|
|
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
3213 |
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
3214 |
|
|
ac_count=`expr $ac_count + 1`
|
3215 |
|
|
if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
3216 |
|
|
# Best one so far, save it but keep looking for a better one
|
3217 |
|
|
ac_cv_path_GREP="$ac_path_GREP"
|
3218 |
|
|
ac_path_GREP_max=$ac_count
|
3219 |
|
|
fi
|
3220 |
|
|
# 10*(2^10) chars as input seems more than enough
|
3221 |
|
|
test $ac_count -gt 10 && break
|
3222 |
|
|
done
|
3223 |
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
3224 |
|
|
esac
|
3225 |
|
|
|
3226 |
|
|
|
3227 |
|
|
$ac_path_GREP_found && break 3
|
3228 |
|
|
done
|
3229 |
|
|
done
|
3230 |
|
|
|
3231 |
|
|
done
|
3232 |
|
|
IFS=$as_save_IFS
|
3233 |
|
|
|
3234 |
|
|
|
3235 |
|
|
fi
|
3236 |
|
|
|
3237 |
|
|
GREP="$ac_cv_path_GREP"
|
3238 |
|
|
if test -z "$GREP"; then
|
3239 |
|
|
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
3240 |
|
|
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
3241 |
|
|
{ (exit 1); exit 1; }; }
|
3242 |
|
|
fi
|
3243 |
|
|
|
3244 |
|
|
else
|
3245 |
|
|
ac_cv_path_GREP=$GREP
|
3246 |
|
|
fi
|
3247 |
|
|
|
3248 |
|
|
|
3249 |
|
|
fi
|
3250 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
3251 |
|
|
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
3252 |
|
|
GREP="$ac_cv_path_GREP"
|
3253 |
|
|
|
3254 |
|
|
|
3255 |
|
|
{ echo "$as_me:$LINENO: checking for egrep" >&5
|
3256 |
|
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
3257 |
|
|
if test "${ac_cv_path_EGREP+set}" = set; then
|
3258 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3259 |
|
|
else
|
3260 |
|
|
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
3261 |
|
|
then ac_cv_path_EGREP="$GREP -E"
|
3262 |
|
|
else
|
3263 |
|
|
# Extract the first word of "egrep" to use in msg output
|
3264 |
|
|
if test -z "$EGREP"; then
|
3265 |
|
|
set dummy egrep; ac_prog_name=$2
|
3266 |
|
|
if test "${ac_cv_path_EGREP+set}" = set; then
|
3267 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3268 |
|
|
else
|
3269 |
|
|
ac_path_EGREP_found=false
|
3270 |
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
3271 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3272 |
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
3273 |
|
|
do
|
3274 |
|
|
IFS=$as_save_IFS
|
3275 |
|
|
test -z "$as_dir" && as_dir=.
|
3276 |
|
|
for ac_prog in egrep; do
|
3277 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3278 |
|
|
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
3279 |
|
|
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
3280 |
|
|
# Check for GNU ac_path_EGREP and select it if it is found.
|
3281 |
|
|
# Check for GNU $ac_path_EGREP
|
3282 |
|
|
case `"$ac_path_EGREP" --version 2>&1` in
|
3283 |
|
|
*GNU*)
|
3284 |
|
|
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
3285 |
|
|
*)
|
3286 |
|
|
ac_count=0
|
3287 |
|
|
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
3288 |
|
|
while :
|
3289 |
|
|
do
|
3290 |
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
3291 |
|
|
mv "conftest.tmp" "conftest.in"
|
3292 |
|
|
cp "conftest.in" "conftest.nl"
|
3293 |
|
|
echo 'EGREP' >> "conftest.nl"
|
3294 |
|
|
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
3295 |
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
3296 |
|
|
ac_count=`expr $ac_count + 1`
|
3297 |
|
|
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
3298 |
|
|
# Best one so far, save it but keep looking for a better one
|
3299 |
|
|
ac_cv_path_EGREP="$ac_path_EGREP"
|
3300 |
|
|
ac_path_EGREP_max=$ac_count
|
3301 |
|
|
fi
|
3302 |
|
|
# 10*(2^10) chars as input seems more than enough
|
3303 |
|
|
test $ac_count -gt 10 && break
|
3304 |
|
|
done
|
3305 |
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
3306 |
|
|
esac
|
3307 |
|
|
|
3308 |
|
|
|
3309 |
|
|
$ac_path_EGREP_found && break 3
|
3310 |
|
|
done
|
3311 |
|
|
done
|
3312 |
|
|
|
3313 |
|
|
done
|
3314 |
|
|
IFS=$as_save_IFS
|
3315 |
|
|
|
3316 |
|
|
|
3317 |
|
|
fi
|
3318 |
|
|
|
3319 |
|
|
EGREP="$ac_cv_path_EGREP"
|
3320 |
|
|
if test -z "$EGREP"; then
|
3321 |
|
|
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
3322 |
|
|
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
3323 |
|
|
{ (exit 1); exit 1; }; }
|
3324 |
|
|
fi
|
3325 |
|
|
|
3326 |
|
|
else
|
3327 |
|
|
ac_cv_path_EGREP=$EGREP
|
3328 |
|
|
fi
|
3329 |
|
|
|
3330 |
|
|
|
3331 |
|
|
fi
|
3332 |
|
|
fi
|
3333 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
3334 |
|
|
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
3335 |
|
|
EGREP="$ac_cv_path_EGREP"
|
3336 |
|
|
|
3337 |
|
|
|
3338 |
|
|
|
3339 |
|
|
# Check whether --with-gnu-ld was given.
|
3340 |
|
|
if test "${with_gnu_ld+set}" = set; then
|
3341 |
|
|
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
3342 |
|
|
else
|
3343 |
|
|
with_gnu_ld=no
|
3344 |
|
|
fi
|
3345 |
|
|
|
3346 |
|
|
ac_prog=ld
|
3347 |
|
|
if test "$GCC" = yes; then
|
3348 |
|
|
# Check if gcc -print-prog-name=ld gives a path.
|
3349 |
|
|
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
3350 |
|
|
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
|
3351 |
|
|
case $host in
|
3352 |
|
|
*-*-mingw*)
|
3353 |
|
|
# gcc leaves a trailing carriage return which upsets mingw
|
3354 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
3355 |
|
|
*)
|
3356 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
3357 |
|
|
esac
|
3358 |
|
|
case $ac_prog in
|
3359 |
|
|
# Accept absolute paths.
|
3360 |
|
|
[\\/]* | ?:[\\/]*)
|
3361 |
|
|
re_direlt='/[^/][^/]*/\.\./'
|
3362 |
|
|
# Canonicalize the pathname of ld
|
3363 |
|
|
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
3364 |
|
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
3365 |
|
|
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
3366 |
|
|
done
|
3367 |
|
|
test -z "$LD" && LD="$ac_prog"
|
3368 |
|
|
;;
|
3369 |
|
|
"")
|
3370 |
|
|
# If it fails, then pretend we aren't using GCC.
|
3371 |
|
|
ac_prog=ld
|
3372 |
|
|
;;
|
3373 |
|
|
*)
|
3374 |
|
|
# If it is relative, then search for the first ld in PATH.
|
3375 |
|
|
with_gnu_ld=unknown
|
3376 |
|
|
;;
|
3377 |
|
|
esac
|
3378 |
|
|
elif test "$with_gnu_ld" = yes; then
|
3379 |
|
|
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
|
3380 |
|
|
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
|
3381 |
|
|
else
|
3382 |
|
|
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
3383 |
|
|
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
|
3384 |
|
|
fi
|
3385 |
|
|
if test "${lt_cv_path_LD+set}" = set; then
|
3386 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3387 |
|
|
else
|
3388 |
|
|
if test -z "$LD"; then
|
3389 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
3390 |
|
|
for ac_dir in $PATH; do
|
3391 |
|
|
IFS="$lt_save_ifs"
|
3392 |
|
|
test -z "$ac_dir" && ac_dir=.
|
3393 |
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
3394 |
|
|
lt_cv_path_LD="$ac_dir/$ac_prog"
|
3395 |
|
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
3396 |
|
|
# but apparently some variants of GNU ld only accept -v.
|
3397 |
|
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
3398 |
|
|
case `"$lt_cv_path_LD" -v 2>&1
|
3399 |
|
|
*GNU* | *'with BFD'*)
|
3400 |
|
|
test "$with_gnu_ld" != no && break
|
3401 |
|
|
;;
|
3402 |
|
|
*)
|
3403 |
|
|
test "$with_gnu_ld" != yes && break
|
3404 |
|
|
;;
|
3405 |
|
|
esac
|
3406 |
|
|
fi
|
3407 |
|
|
done
|
3408 |
|
|
IFS="$lt_save_ifs"
|
3409 |
|
|
else
|
3410 |
|
|
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
3411 |
|
|
fi
|
3412 |
|
|
fi
|
3413 |
|
|
|
3414 |
|
|
LD="$lt_cv_path_LD"
|
3415 |
|
|
if test -n "$LD"; then
|
3416 |
|
|
{ echo "$as_me:$LINENO: result: $LD" >&5
|
3417 |
|
|
echo "${ECHO_T}$LD" >&6; }
|
3418 |
|
|
else
|
3419 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
3420 |
|
|
echo "${ECHO_T}no" >&6; }
|
3421 |
|
|
fi
|
3422 |
|
|
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
3423 |
|
|
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
3424 |
|
|
{ (exit 1); exit 1; }; }
|
3425 |
|
|
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
3426 |
|
|
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
|
3427 |
|
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
3428 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3429 |
|
|
else
|
3430 |
|
|
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
3431 |
|
|
case `$LD -v 2>&1
|
3432 |
|
|
*GNU* | *'with BFD'*)
|
3433 |
|
|
lt_cv_prog_gnu_ld=yes
|
3434 |
|
|
;;
|
3435 |
|
|
*)
|
3436 |
|
|
lt_cv_prog_gnu_ld=no
|
3437 |
|
|
;;
|
3438 |
|
|
esac
|
3439 |
|
|
fi
|
3440 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
3441 |
|
|
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
|
3442 |
|
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
3443 |
|
|
|
3444 |
|
|
|
3445 |
|
|
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
|
3446 |
|
|
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
|
3447 |
|
|
if test "${lt_cv_ld_reload_flag+set}" = set; then
|
3448 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3449 |
|
|
else
|
3450 |
|
|
lt_cv_ld_reload_flag='-r'
|
3451 |
|
|
fi
|
3452 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
|
3453 |
|
|
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
|
3454 |
|
|
reload_flag=$lt_cv_ld_reload_flag
|
3455 |
|
|
case $reload_flag in
|
3456 |
|
|
"" | " "*) ;;
|
3457 |
|
|
*) reload_flag=" $reload_flag" ;;
|
3458 |
|
|
esac
|
3459 |
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
3460 |
|
|
case $host_os in
|
3461 |
|
|
darwin*)
|
3462 |
|
|
if test "$GCC" = yes; then
|
3463 |
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
3464 |
|
|
else
|
3465 |
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
3466 |
|
|
fi
|
3467 |
|
|
;;
|
3468 |
|
|
esac
|
3469 |
|
|
|
3470 |
|
|
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
|
3471 |
|
|
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
|
3472 |
|
|
if test "${lt_cv_path_NM+set}" = set; then
|
3473 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3474 |
|
|
else
|
3475 |
|
|
if test -n "$NM"; then
|
3476 |
|
|
# Let the user override the test.
|
3477 |
|
|
lt_cv_path_NM="$NM"
|
3478 |
|
|
else
|
3479 |
|
|
lt_nm_to_check="${ac_tool_prefix}nm"
|
3480 |
|
|
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
3481 |
|
|
lt_nm_to_check="$lt_nm_to_check nm"
|
3482 |
|
|
fi
|
3483 |
|
|
for lt_tmp_nm in $lt_nm_to_check; do
|
3484 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
3485 |
|
|
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
3486 |
|
|
IFS="$lt_save_ifs"
|
3487 |
|
|
test -z "$ac_dir" && ac_dir=.
|
3488 |
|
|
tmp_nm="$ac_dir/$lt_tmp_nm"
|
3489 |
|
|
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
3490 |
|
|
# Check to see if the nm accepts a BSD-compat flag.
|
3491 |
|
|
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
3492 |
|
|
# nm: unknown option "B" ignored
|
3493 |
|
|
# Tru64's nm complains that /dev/null is an invalid object file
|
3494 |
|
|
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
3495 |
|
|
*/dev/null* | *'Invalid file or object type'*)
|
3496 |
|
|
lt_cv_path_NM="$tmp_nm -B"
|
3497 |
|
|
break
|
3498 |
|
|
;;
|
3499 |
|
|
*)
|
3500 |
|
|
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
3501 |
|
|
*/dev/null*)
|
3502 |
|
|
lt_cv_path_NM="$tmp_nm -p"
|
3503 |
|
|
break
|
3504 |
|
|
;;
|
3505 |
|
|
*)
|
3506 |
|
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
3507 |
|
|
continue # so that we can try to find one that supports BSD flags
|
3508 |
|
|
;;
|
3509 |
|
|
esac
|
3510 |
|
|
;;
|
3511 |
|
|
esac
|
3512 |
|
|
fi
|
3513 |
|
|
done
|
3514 |
|
|
IFS="$lt_save_ifs"
|
3515 |
|
|
done
|
3516 |
|
|
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
3517 |
|
|
fi
|
3518 |
|
|
fi
|
3519 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
|
3520 |
|
|
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
|
3521 |
|
|
NM="$lt_cv_path_NM"
|
3522 |
|
|
|
3523 |
|
|
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
3524 |
|
|
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
|
3525 |
|
|
LN_S=$as_ln_s
|
3526 |
|
|
if test "$LN_S" = "ln -s"; then
|
3527 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
3528 |
|
|
echo "${ECHO_T}yes" >&6; }
|
3529 |
|
|
else
|
3530 |
|
|
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
3531 |
|
|
echo "${ECHO_T}no, using $LN_S" >&6; }
|
3532 |
|
|
fi
|
3533 |
|
|
|
3534 |
|
|
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
|
3535 |
|
|
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
|
3536 |
|
|
if test "${lt_cv_deplibs_check_method+set}" = set; then
|
3537 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3538 |
|
|
else
|
3539 |
|
|
lt_cv_file_magic_cmd='$MAGIC_CMD'
|
3540 |
|
|
lt_cv_file_magic_test_file=
|
3541 |
|
|
lt_cv_deplibs_check_method='unknown'
|
3542 |
|
|
# Need to set the preceding variable on all platforms that support
|
3543 |
|
|
# interlibrary dependencies.
|
3544 |
|
|
# 'none' -- dependencies not supported.
|
3545 |
|
|
# `unknown' -- same as none, but documents that we really don't know.
|
3546 |
|
|
# 'pass_all' -- all dependencies passed with no checks.
|
3547 |
|
|
# 'test_compile' -- check by making test program.
|
3548 |
|
|
# 'file_magic [[regex]]' -- check by looking for files in library path
|
3549 |
|
|
# which responds to the $file_magic_cmd with a given extended regex.
|
3550 |
|
|
# If you have `file' or equivalent on your system and you're not sure
|
3551 |
|
|
# whether `pass_all' will *always* work, you probably want this one.
|
3552 |
|
|
|
3553 |
|
|
case $host_os in
|
3554 |
|
|
aix4* | aix5*)
|
3555 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3556 |
|
|
;;
|
3557 |
|
|
|
3558 |
|
|
beos*)
|
3559 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3560 |
|
|
;;
|
3561 |
|
|
|
3562 |
|
|
bsdi[45]*)
|
3563 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
3564 |
|
|
lt_cv_file_magic_cmd='/usr/bin/file -L'
|
3565 |
|
|
lt_cv_file_magic_test_file=/shlib/libc.so
|
3566 |
|
|
;;
|
3567 |
|
|
|
3568 |
|
|
cygwin*)
|
3569 |
|
|
# func_win32_libid is a shell function defined in ltmain.sh
|
3570 |
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
3571 |
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
3572 |
|
|
;;
|
3573 |
|
|
|
3574 |
|
|
mingw* | pw32*)
|
3575 |
|
|
# Base MSYS/MinGW do not provide the 'file' command needed by
|
3576 |
|
|
# func_win32_libid shell function, so use a weaker test based on 'objdump',
|
3577 |
|
|
# unless we find 'file', for example because we are cross-compiling.
|
3578 |
|
|
if ( file / ) >/dev/null 2>&1; then
|
3579 |
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
3580 |
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
3581 |
|
|
else
|
3582 |
|
|
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
3583 |
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
3584 |
|
|
fi
|
3585 |
|
|
;;
|
3586 |
|
|
|
3587 |
|
|
darwin* | rhapsody*)
|
3588 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3589 |
|
|
;;
|
3590 |
|
|
|
3591 |
|
|
freebsd* | dragonfly*)
|
3592 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
3593 |
|
|
case $host_cpu in
|
3594 |
|
|
i*86 )
|
3595 |
|
|
# Not sure whether the presence of OpenBSD here was a mistake.
|
3596 |
|
|
# Let's accept both of them until this is cleared up.
|
3597 |
|
|
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
3598 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
3599 |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
3600 |
|
|
;;
|
3601 |
|
|
esac
|
3602 |
|
|
else
|
3603 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3604 |
|
|
fi
|
3605 |
|
|
;;
|
3606 |
|
|
|
3607 |
|
|
gnu*)
|
3608 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3609 |
|
|
;;
|
3610 |
|
|
|
3611 |
|
|
hpux10.20* | hpux11*)
|
3612 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
3613 |
|
|
case $host_cpu in
|
3614 |
|
|
ia64*)
|
3615 |
|
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
3616 |
|
|
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
3617 |
|
|
;;
|
3618 |
|
|
hppa*64*)
|
3619 |
|
|
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]'
|
3620 |
|
|
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
3621 |
|
|
;;
|
3622 |
|
|
*)
|
3623 |
|
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
3624 |
|
|
lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
3625 |
|
|
;;
|
3626 |
|
|
esac
|
3627 |
|
|
;;
|
3628 |
|
|
|
3629 |
|
|
interix[3-9]*)
|
3630 |
|
|
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
3631 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
3632 |
|
|
;;
|
3633 |
|
|
|
3634 |
|
|
irix5* | irix6* | nonstopux*)
|
3635 |
|
|
case $LD in
|
3636 |
|
|
*-32|*"-32 ") libmagic=32-bit;;
|
3637 |
|
|
*-n32|*"-n32 ") libmagic=N32;;
|
3638 |
|
|
*-64|*"-64 ") libmagic=64-bit;;
|
3639 |
|
|
*) libmagic=never-match;;
|
3640 |
|
|
esac
|
3641 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3642 |
|
|
;;
|
3643 |
|
|
|
3644 |
|
|
# This must be Linux ELF.
|
3645 |
|
|
linux* | k*bsd*-gnu)
|
3646 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3647 |
|
|
;;
|
3648 |
|
|
|
3649 |
|
|
netbsd*)
|
3650 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
3651 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
3652 |
|
|
else
|
3653 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
3654 |
|
|
fi
|
3655 |
|
|
;;
|
3656 |
|
|
|
3657 |
|
|
newos6*)
|
3658 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
3659 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
3660 |
|
|
lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
3661 |
|
|
;;
|
3662 |
|
|
|
3663 |
|
|
nto-qnx*)
|
3664 |
|
|
lt_cv_deplibs_check_method=unknown
|
3665 |
|
|
;;
|
3666 |
|
|
|
3667 |
|
|
openbsd*)
|
3668 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
3669 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
3670 |
|
|
else
|
3671 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
3672 |
|
|
fi
|
3673 |
|
|
;;
|
3674 |
|
|
|
3675 |
|
|
osf3* | osf4* | osf5*)
|
3676 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3677 |
|
|
;;
|
3678 |
|
|
|
3679 |
|
|
rdos*)
|
3680 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3681 |
|
|
;;
|
3682 |
|
|
|
3683 |
|
|
solaris*)
|
3684 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3685 |
|
|
;;
|
3686 |
|
|
|
3687 |
|
|
sysv4 | sysv4.3*)
|
3688 |
|
|
case $host_vendor in
|
3689 |
|
|
motorola)
|
3690 |
|
|
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]'
|
3691 |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
3692 |
|
|
;;
|
3693 |
|
|
ncr)
|
3694 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3695 |
|
|
;;
|
3696 |
|
|
sequent)
|
3697 |
|
|
lt_cv_file_magic_cmd='/bin/file'
|
3698 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
3699 |
|
|
;;
|
3700 |
|
|
sni)
|
3701 |
|
|
lt_cv_file_magic_cmd='/bin/file'
|
3702 |
|
|
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
3703 |
|
|
lt_cv_file_magic_test_file=/lib/libc.so
|
3704 |
|
|
;;
|
3705 |
|
|
siemens)
|
3706 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3707 |
|
|
;;
|
3708 |
|
|
pc)
|
3709 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3710 |
|
|
;;
|
3711 |
|
|
esac
|
3712 |
|
|
;;
|
3713 |
|
|
|
3714 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
3715 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3716 |
|
|
;;
|
3717 |
|
|
esac
|
3718 |
|
|
|
3719 |
|
|
fi
|
3720 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
|
3721 |
|
|
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
|
3722 |
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
3723 |
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
3724 |
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
3725 |
|
|
|
3726 |
|
|
|
3727 |
|
|
|
3728 |
|
|
|
3729 |
|
|
# If no C compiler was specified, use CC.
|
3730 |
|
|
LTCC=${LTCC-"$CC"}
|
3731 |
|
|
|
3732 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
3733 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
3734 |
|
|
|
3735 |
|
|
# Allow CC to be a program name with arguments.
|
3736 |
|
|
compiler=$CC
|
3737 |
|
|
|
3738 |
|
|
|
3739 |
|
|
# Check whether --enable-libtool-lock was given.
|
3740 |
|
|
if test "${enable_libtool_lock+set}" = set; then
|
3741 |
|
|
enableval=$enable_libtool_lock;
|
3742 |
|
|
fi
|
3743 |
|
|
|
3744 |
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
3745 |
|
|
|
3746 |
|
|
# Some flags need to be propagated to the compiler or linker for good
|
3747 |
|
|
# libtool support.
|
3748 |
|
|
case $host in
|
3749 |
|
|
ia64-*-hpux*)
|
3750 |
|
|
# Find out which ABI we are using.
|
3751 |
|
|
echo 'int i;' > conftest.$ac_ext
|
3752 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3753 |
|
|
(eval $ac_compile) 2>&5
|
3754 |
|
|
ac_status=$?
|
3755 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3756 |
|
|
(exit $ac_status); }; then
|
3757 |
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
3758 |
|
|
*ELF-32*)
|
3759 |
|
|
HPUX_IA64_MODE="32"
|
3760 |
|
|
;;
|
3761 |
|
|
*ELF-64*)
|
3762 |
|
|
HPUX_IA64_MODE="64"
|
3763 |
|
|
;;
|
3764 |
|
|
esac
|
3765 |
|
|
fi
|
3766 |
|
|
rm -rf conftest*
|
3767 |
|
|
;;
|
3768 |
|
|
*-*-irix6*)
|
3769 |
|
|
# Find out which ABI we are using.
|
3770 |
|
|
echo '#line __oline__ "configure"' > conftest.$ac_ext
|
3771 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3772 |
|
|
(eval $ac_compile) 2>&5
|
3773 |
|
|
ac_status=$?
|
3774 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3775 |
|
|
(exit $ac_status); }; then
|
3776 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
3777 |
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
3778 |
|
|
*32-bit*)
|
3779 |
|
|
LD="${LD-ld} -melf32bsmip"
|
3780 |
|
|
;;
|
3781 |
|
|
*N32*)
|
3782 |
|
|
LD="${LD-ld} -melf32bmipn32"
|
3783 |
|
|
;;
|
3784 |
|
|
*64-bit*)
|
3785 |
|
|
LD="${LD-ld} -melf64bmip"
|
3786 |
|
|
;;
|
3787 |
|
|
esac
|
3788 |
|
|
else
|
3789 |
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
3790 |
|
|
*32-bit*)
|
3791 |
|
|
LD="${LD-ld} -32"
|
3792 |
|
|
;;
|
3793 |
|
|
*N32*)
|
3794 |
|
|
LD="${LD-ld} -n32"
|
3795 |
|
|
;;
|
3796 |
|
|
*64-bit*)
|
3797 |
|
|
LD="${LD-ld} -64"
|
3798 |
|
|
;;
|
3799 |
|
|
esac
|
3800 |
|
|
fi
|
3801 |
|
|
fi
|
3802 |
|
|
rm -rf conftest*
|
3803 |
|
|
;;
|
3804 |
|
|
|
3805 |
|
|
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
3806 |
|
|
s390*-*linux*|sparc*-*linux*)
|
3807 |
|
|
# Find out which ABI we are using.
|
3808 |
|
|
echo 'int i;' > conftest.$ac_ext
|
3809 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3810 |
|
|
(eval $ac_compile) 2>&5
|
3811 |
|
|
ac_status=$?
|
3812 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3813 |
|
|
(exit $ac_status); }; then
|
3814 |
|
|
case `/usr/bin/file conftest.o` in
|
3815 |
|
|
*32-bit*)
|
3816 |
|
|
case $host in
|
3817 |
|
|
x86_64-*kfreebsd*-gnu)
|
3818 |
|
|
LD="${LD-ld} -m elf_i386_fbsd"
|
3819 |
|
|
;;
|
3820 |
|
|
x86_64-*linux*)
|
3821 |
|
|
LD="${LD-ld} -m elf_i386"
|
3822 |
|
|
;;
|
3823 |
|
|
ppc64-*linux*|powerpc64-*linux*)
|
3824 |
|
|
LD="${LD-ld} -m elf32ppclinux"
|
3825 |
|
|
;;
|
3826 |
|
|
s390x-*linux*)
|
3827 |
|
|
LD="${LD-ld} -m elf_s390"
|
3828 |
|
|
;;
|
3829 |
|
|
sparc64-*linux*)
|
3830 |
|
|
LD="${LD-ld} -m elf32_sparc"
|
3831 |
|
|
;;
|
3832 |
|
|
esac
|
3833 |
|
|
;;
|
3834 |
|
|
*64-bit*)
|
3835 |
|
|
libsuff=64
|
3836 |
|
|
case $host in
|
3837 |
|
|
x86_64-*kfreebsd*-gnu)
|
3838 |
|
|
LD="${LD-ld} -m elf_x86_64_fbsd"
|
3839 |
|
|
;;
|
3840 |
|
|
x86_64-*linux*)
|
3841 |
|
|
LD="${LD-ld} -m elf_x86_64"
|
3842 |
|
|
;;
|
3843 |
|
|
ppc*-*linux*|powerpc*-*linux*)
|
3844 |
|
|
LD="${LD-ld} -m elf64ppc"
|
3845 |
|
|
;;
|
3846 |
|
|
s390*-*linux*)
|
3847 |
|
|
LD="${LD-ld} -m elf64_s390"
|
3848 |
|
|
;;
|
3849 |
|
|
sparc*-*linux*)
|
3850 |
|
|
LD="${LD-ld} -m elf64_sparc"
|
3851 |
|
|
;;
|
3852 |
|
|
esac
|
3853 |
|
|
;;
|
3854 |
|
|
esac
|
3855 |
|
|
fi
|
3856 |
|
|
rm -rf conftest*
|
3857 |
|
|
;;
|
3858 |
|
|
|
3859 |
|
|
*-*-sco3.2v5*)
|
3860 |
|
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
3861 |
|
|
SAVE_CFLAGS="$CFLAGS"
|
3862 |
|
|
CFLAGS="$CFLAGS -belf"
|
3863 |
|
|
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
|
3864 |
|
|
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
|
3865 |
|
|
if test "${lt_cv_cc_needs_belf+set}" = set; then
|
3866 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3867 |
|
|
else
|
3868 |
|
|
ac_ext=c
|
3869 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
3870 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3871 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3872 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3873 |
|
|
|
3874 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3875 |
|
|
/* confdefs.h. */
|
3876 |
|
|
_ACEOF
|
3877 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3878 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3879 |
|
|
/* end confdefs.h. */
|
3880 |
|
|
|
3881 |
|
|
int
|
3882 |
|
|
main ()
|
3883 |
|
|
{
|
3884 |
|
|
|
3885 |
|
|
;
|
3886 |
|
|
return 0;
|
3887 |
|
|
}
|
3888 |
|
|
_ACEOF
|
3889 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
3890 |
|
|
if { (ac_try="$ac_link"
|
3891 |
|
|
case "(($ac_try" in
|
3892 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
3893 |
|
|
*) ac_try_echo=$ac_try;;
|
3894 |
|
|
esac
|
3895 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
3896 |
|
|
(eval "$ac_link") 2>conftest.er1
|
3897 |
|
|
ac_status=$?
|
3898 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
3899 |
|
|
rm -f conftest.er1
|
3900 |
|
|
cat conftest.err >&5
|
3901 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3902 |
|
|
(exit $ac_status); } && {
|
3903 |
|
|
test -z "$ac_c_werror_flag" ||
|
3904 |
|
|
test ! -s conftest.err
|
3905 |
|
|
} && test -s conftest$ac_exeext &&
|
3906 |
|
|
$as_test_x conftest$ac_exeext; then
|
3907 |
|
|
lt_cv_cc_needs_belf=yes
|
3908 |
|
|
else
|
3909 |
|
|
echo "$as_me: failed program was:" >&5
|
3910 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3911 |
|
|
|
3912 |
|
|
lt_cv_cc_needs_belf=no
|
3913 |
|
|
fi
|
3914 |
|
|
|
3915 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
3916 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
3917 |
|
|
ac_ext=c
|
3918 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
3919 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3920 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3921 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3922 |
|
|
|
3923 |
|
|
fi
|
3924 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
|
3925 |
|
|
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
|
3926 |
|
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
3927 |
|
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
3928 |
|
|
CFLAGS="$SAVE_CFLAGS"
|
3929 |
|
|
fi
|
3930 |
|
|
;;
|
3931 |
|
|
sparc*-*solaris*)
|
3932 |
|
|
# Find out which ABI we are using.
|
3933 |
|
|
echo 'int i;' > conftest.$ac_ext
|
3934 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3935 |
|
|
(eval $ac_compile) 2>&5
|
3936 |
|
|
ac_status=$?
|
3937 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3938 |
|
|
(exit $ac_status); }; then
|
3939 |
|
|
case `/usr/bin/file conftest.o` in
|
3940 |
|
|
*64-bit*)
|
3941 |
|
|
case $lt_cv_prog_gnu_ld in
|
3942 |
|
|
yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
3943 |
|
|
*) LD="${LD-ld} -64" ;;
|
3944 |
|
|
esac
|
3945 |
|
|
;;
|
3946 |
|
|
esac
|
3947 |
|
|
fi
|
3948 |
|
|
rm -rf conftest*
|
3949 |
|
|
;;
|
3950 |
|
|
|
3951 |
|
|
|
3952 |
|
|
esac
|
3953 |
|
|
|
3954 |
|
|
need_locks="$enable_libtool_lock"
|
3955 |
|
|
|
3956 |
|
|
|
3957 |
|
|
ac_ext=c
|
3958 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
3959 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3960 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3961 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3962 |
|
|
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
3963 |
|
|
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
3964 |
|
|
# On Suns, sometimes $CPP names a directory.
|
3965 |
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
3966 |
|
|
CPP=
|
3967 |
|
|
fi
|
3968 |
|
|
if test -z "$CPP"; then
|
3969 |
|
|
if test "${ac_cv_prog_CPP+set}" = set; then
|
3970 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3971 |
|
|
else
|
3972 |
|
|
# Double quotes because CPP needs to be expanded
|
3973 |
|
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
3974 |
|
|
do
|
3975 |
|
|
ac_preproc_ok=false
|
3976 |
|
|
for ac_c_preproc_warn_flag in '' yes
|
3977 |
|
|
do
|
3978 |
|
|
# Use a header file that comes with gcc, so configuring glibc
|
3979 |
|
|
# with a fresh cross-compiler works.
|
3980 |
|
|
# Prefer to if __STDC__ is defined, since
|
3981 |
|
|
# exists even on freestanding compilers.
|
3982 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
3983 |
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
3984 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3985 |
|
|
/* confdefs.h. */
|
3986 |
|
|
_ACEOF
|
3987 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3988 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3989 |
|
|
/* end confdefs.h. */
|
3990 |
|
|
@%:@ifdef __STDC__
|
3991 |
|
|
@%:@ include
|
3992 |
|
|
@%:@else
|
3993 |
|
|
@%:@ include
|
3994 |
|
|
@%:@endif
|
3995 |
|
|
Syntax error
|
3996 |
|
|
_ACEOF
|
3997 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
3998 |
|
|
case "(($ac_try" in
|
3999 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4000 |
|
|
*) ac_try_echo=$ac_try;;
|
4001 |
|
|
esac
|
4002 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4003 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
4004 |
|
|
ac_status=$?
|
4005 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4006 |
|
|
rm -f conftest.er1
|
4007 |
|
|
cat conftest.err >&5
|
4008 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4009 |
|
|
(exit $ac_status); } >/dev/null && {
|
4010 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
4011 |
|
|
test ! -s conftest.err
|
4012 |
|
|
}; then
|
4013 |
|
|
:
|
4014 |
|
|
else
|
4015 |
|
|
echo "$as_me: failed program was:" >&5
|
4016 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4017 |
|
|
|
4018 |
|
|
# Broken: fails on valid input.
|
4019 |
|
|
continue
|
4020 |
|
|
fi
|
4021 |
|
|
|
4022 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4023 |
|
|
|
4024 |
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
4025 |
|
|
# can be detected and how.
|
4026 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4027 |
|
|
/* confdefs.h. */
|
4028 |
|
|
_ACEOF
|
4029 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4030 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4031 |
|
|
/* end confdefs.h. */
|
4032 |
|
|
@%:@include
|
4033 |
|
|
_ACEOF
|
4034 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
4035 |
|
|
case "(($ac_try" in
|
4036 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4037 |
|
|
*) ac_try_echo=$ac_try;;
|
4038 |
|
|
esac
|
4039 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4040 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
4041 |
|
|
ac_status=$?
|
4042 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4043 |
|
|
rm -f conftest.er1
|
4044 |
|
|
cat conftest.err >&5
|
4045 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4046 |
|
|
(exit $ac_status); } >/dev/null && {
|
4047 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
4048 |
|
|
test ! -s conftest.err
|
4049 |
|
|
}; then
|
4050 |
|
|
# Broken: success on invalid input.
|
4051 |
|
|
continue
|
4052 |
|
|
else
|
4053 |
|
|
echo "$as_me: failed program was:" >&5
|
4054 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4055 |
|
|
|
4056 |
|
|
# Passes both tests.
|
4057 |
|
|
ac_preproc_ok=:
|
4058 |
|
|
break
|
4059 |
|
|
fi
|
4060 |
|
|
|
4061 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4062 |
|
|
|
4063 |
|
|
done
|
4064 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
4065 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4066 |
|
|
if $ac_preproc_ok; then
|
4067 |
|
|
break
|
4068 |
|
|
fi
|
4069 |
|
|
|
4070 |
|
|
done
|
4071 |
|
|
ac_cv_prog_CPP=$CPP
|
4072 |
|
|
|
4073 |
|
|
fi
|
4074 |
|
|
CPP=$ac_cv_prog_CPP
|
4075 |
|
|
else
|
4076 |
|
|
ac_cv_prog_CPP=$CPP
|
4077 |
|
|
fi
|
4078 |
|
|
{ echo "$as_me:$LINENO: result: $CPP" >&5
|
4079 |
|
|
echo "${ECHO_T}$CPP" >&6; }
|
4080 |
|
|
ac_preproc_ok=false
|
4081 |
|
|
for ac_c_preproc_warn_flag in '' yes
|
4082 |
|
|
do
|
4083 |
|
|
# Use a header file that comes with gcc, so configuring glibc
|
4084 |
|
|
# with a fresh cross-compiler works.
|
4085 |
|
|
# Prefer to if __STDC__ is defined, since
|
4086 |
|
|
# exists even on freestanding compilers.
|
4087 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
4088 |
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
4089 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4090 |
|
|
/* confdefs.h. */
|
4091 |
|
|
_ACEOF
|
4092 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4093 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4094 |
|
|
/* end confdefs.h. */
|
4095 |
|
|
@%:@ifdef __STDC__
|
4096 |
|
|
@%:@ include
|
4097 |
|
|
@%:@else
|
4098 |
|
|
@%:@ include
|
4099 |
|
|
@%:@endif
|
4100 |
|
|
Syntax error
|
4101 |
|
|
_ACEOF
|
4102 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
4103 |
|
|
case "(($ac_try" in
|
4104 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4105 |
|
|
*) ac_try_echo=$ac_try;;
|
4106 |
|
|
esac
|
4107 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4108 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
4109 |
|
|
ac_status=$?
|
4110 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4111 |
|
|
rm -f conftest.er1
|
4112 |
|
|
cat conftest.err >&5
|
4113 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4114 |
|
|
(exit $ac_status); } >/dev/null && {
|
4115 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
4116 |
|
|
test ! -s conftest.err
|
4117 |
|
|
}; then
|
4118 |
|
|
:
|
4119 |
|
|
else
|
4120 |
|
|
echo "$as_me: failed program was:" >&5
|
4121 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4122 |
|
|
|
4123 |
|
|
# Broken: fails on valid input.
|
4124 |
|
|
continue
|
4125 |
|
|
fi
|
4126 |
|
|
|
4127 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4128 |
|
|
|
4129 |
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
4130 |
|
|
# can be detected and how.
|
4131 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4132 |
|
|
/* confdefs.h. */
|
4133 |
|
|
_ACEOF
|
4134 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4135 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4136 |
|
|
/* end confdefs.h. */
|
4137 |
|
|
@%:@include
|
4138 |
|
|
_ACEOF
|
4139 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
4140 |
|
|
case "(($ac_try" in
|
4141 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4142 |
|
|
*) ac_try_echo=$ac_try;;
|
4143 |
|
|
esac
|
4144 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4145 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
4146 |
|
|
ac_status=$?
|
4147 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4148 |
|
|
rm -f conftest.er1
|
4149 |
|
|
cat conftest.err >&5
|
4150 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4151 |
|
|
(exit $ac_status); } >/dev/null && {
|
4152 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
4153 |
|
|
test ! -s conftest.err
|
4154 |
|
|
}; then
|
4155 |
|
|
# Broken: success on invalid input.
|
4156 |
|
|
continue
|
4157 |
|
|
else
|
4158 |
|
|
echo "$as_me: failed program was:" >&5
|
4159 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4160 |
|
|
|
4161 |
|
|
# Passes both tests.
|
4162 |
|
|
ac_preproc_ok=:
|
4163 |
|
|
break
|
4164 |
|
|
fi
|
4165 |
|
|
|
4166 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4167 |
|
|
|
4168 |
|
|
done
|
4169 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
4170 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4171 |
|
|
if $ac_preproc_ok; then
|
4172 |
|
|
:
|
4173 |
|
|
else
|
4174 |
|
|
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
4175 |
|
|
See \`config.log' for more details." >&5
|
4176 |
|
|
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
4177 |
|
|
See \`config.log' for more details." >&2;}
|
4178 |
|
|
{ (exit 1); exit 1; }; }
|
4179 |
|
|
fi
|
4180 |
|
|
|
4181 |
|
|
ac_ext=c
|
4182 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
4183 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
4184 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
4185 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
4186 |
|
|
|
4187 |
|
|
|
4188 |
|
|
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
4189 |
|
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
4190 |
|
|
if test "${ac_cv_header_stdc+set}" = set; then
|
4191 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4192 |
|
|
else
|
4193 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4194 |
|
|
/* confdefs.h. */
|
4195 |
|
|
_ACEOF
|
4196 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4197 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4198 |
|
|
/* end confdefs.h. */
|
4199 |
|
|
#include
|
4200 |
|
|
#include
|
4201 |
|
|
#include
|
4202 |
|
|
#include
|
4203 |
|
|
|
4204 |
|
|
int
|
4205 |
|
|
main ()
|
4206 |
|
|
{
|
4207 |
|
|
|
4208 |
|
|
;
|
4209 |
|
|
return 0;
|
4210 |
|
|
}
|
4211 |
|
|
_ACEOF
|
4212 |
|
|
rm -f conftest.$ac_objext
|
4213 |
|
|
if { (ac_try="$ac_compile"
|
4214 |
|
|
case "(($ac_try" in
|
4215 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4216 |
|
|
*) ac_try_echo=$ac_try;;
|
4217 |
|
|
esac
|
4218 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4219 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4220 |
|
|
ac_status=$?
|
4221 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4222 |
|
|
rm -f conftest.er1
|
4223 |
|
|
cat conftest.err >&5
|
4224 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4225 |
|
|
(exit $ac_status); } && {
|
4226 |
|
|
test -z "$ac_c_werror_flag" ||
|
4227 |
|
|
test ! -s conftest.err
|
4228 |
|
|
} && test -s conftest.$ac_objext; then
|
4229 |
|
|
ac_cv_header_stdc=yes
|
4230 |
|
|
else
|
4231 |
|
|
echo "$as_me: failed program was:" >&5
|
4232 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4233 |
|
|
|
4234 |
|
|
ac_cv_header_stdc=no
|
4235 |
|
|
fi
|
4236 |
|
|
|
4237 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4238 |
|
|
|
4239 |
|
|
if test $ac_cv_header_stdc = yes; then
|
4240 |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
4241 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4242 |
|
|
/* confdefs.h. */
|
4243 |
|
|
_ACEOF
|
4244 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4245 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4246 |
|
|
/* end confdefs.h. */
|
4247 |
|
|
#include
|
4248 |
|
|
|
4249 |
|
|
_ACEOF
|
4250 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
4251 |
|
|
$EGREP "memchr" >/dev/null 2>&1; then
|
4252 |
|
|
:
|
4253 |
|
|
else
|
4254 |
|
|
ac_cv_header_stdc=no
|
4255 |
|
|
fi
|
4256 |
|
|
rm -f conftest*
|
4257 |
|
|
|
4258 |
|
|
fi
|
4259 |
|
|
|
4260 |
|
|
if test $ac_cv_header_stdc = yes; then
|
4261 |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
4262 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4263 |
|
|
/* confdefs.h. */
|
4264 |
|
|
_ACEOF
|
4265 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4266 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4267 |
|
|
/* end confdefs.h. */
|
4268 |
|
|
#include
|
4269 |
|
|
|
4270 |
|
|
_ACEOF
|
4271 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
4272 |
|
|
$EGREP "free" >/dev/null 2>&1; then
|
4273 |
|
|
:
|
4274 |
|
|
else
|
4275 |
|
|
ac_cv_header_stdc=no
|
4276 |
|
|
fi
|
4277 |
|
|
rm -f conftest*
|
4278 |
|
|
|
4279 |
|
|
fi
|
4280 |
|
|
|
4281 |
|
|
if test $ac_cv_header_stdc = yes; then
|
4282 |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
4283 |
|
|
if test "$cross_compiling" = yes; then
|
4284 |
|
|
:
|
4285 |
|
|
else
|
4286 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4287 |
|
|
/* confdefs.h. */
|
4288 |
|
|
_ACEOF
|
4289 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4290 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4291 |
|
|
/* end confdefs.h. */
|
4292 |
|
|
#include
|
4293 |
|
|
#include
|
4294 |
|
|
#if ((' ' & 0x0FF) == 0x020)
|
4295 |
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
4296 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
4297 |
|
|
#else
|
4298 |
|
|
# define ISLOWER(c) \
|
4299 |
|
|
(('a' <= (c) && (c) <= 'i') \
|
4300 |
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
4301 |
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
4302 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
4303 |
|
|
#endif
|
4304 |
|
|
|
4305 |
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
4306 |
|
|
int
|
4307 |
|
|
main ()
|
4308 |
|
|
{
|
4309 |
|
|
int i;
|
4310 |
|
|
for (i = 0; i < 256; i++)
|
4311 |
|
|
if (XOR (islower (i), ISLOWER (i))
|
4312 |
|
|
|| toupper (i) != TOUPPER (i))
|
4313 |
|
|
return 2;
|
4314 |
|
|
return 0;
|
4315 |
|
|
}
|
4316 |
|
|
_ACEOF
|
4317 |
|
|
rm -f conftest$ac_exeext
|
4318 |
|
|
if { (ac_try="$ac_link"
|
4319 |
|
|
case "(($ac_try" in
|
4320 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4321 |
|
|
*) ac_try_echo=$ac_try;;
|
4322 |
|
|
esac
|
4323 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4324 |
|
|
(eval "$ac_link") 2>&5
|
4325 |
|
|
ac_status=$?
|
4326 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4327 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
4328 |
|
|
{ (case "(($ac_try" in
|
4329 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4330 |
|
|
*) ac_try_echo=$ac_try;;
|
4331 |
|
|
esac
|
4332 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4333 |
|
|
(eval "$ac_try") 2>&5
|
4334 |
|
|
ac_status=$?
|
4335 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4336 |
|
|
(exit $ac_status); }; }; then
|
4337 |
|
|
:
|
4338 |
|
|
else
|
4339 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
4340 |
|
|
echo "$as_me: failed program was:" >&5
|
4341 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4342 |
|
|
|
4343 |
|
|
( exit $ac_status )
|
4344 |
|
|
ac_cv_header_stdc=no
|
4345 |
|
|
fi
|
4346 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
4347 |
|
|
fi
|
4348 |
|
|
|
4349 |
|
|
|
4350 |
|
|
fi
|
4351 |
|
|
fi
|
4352 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
4353 |
|
|
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
4354 |
|
|
if test $ac_cv_header_stdc = yes; then
|
4355 |
|
|
|
4356 |
|
|
cat >>confdefs.h <<\_ACEOF
|
4357 |
|
|
@%:@define STDC_HEADERS 1
|
4358 |
|
|
_ACEOF
|
4359 |
|
|
|
4360 |
|
|
fi
|
4361 |
|
|
|
4362 |
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
4363 |
|
|
|
4364 |
|
|
|
4365 |
|
|
|
4366 |
|
|
|
4367 |
|
|
|
4368 |
|
|
|
4369 |
|
|
|
4370 |
|
|
|
4371 |
|
|
|
4372 |
|
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
4373 |
|
|
inttypes.h stdint.h unistd.h
|
4374 |
|
|
do
|
4375 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
4376 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
4377 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
4378 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
4379 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4380 |
|
|
else
|
4381 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4382 |
|
|
/* confdefs.h. */
|
4383 |
|
|
_ACEOF
|
4384 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4385 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4386 |
|
|
/* end confdefs.h. */
|
4387 |
|
|
$ac_includes_default
|
4388 |
|
|
|
4389 |
|
|
@%:@include <$ac_header>
|
4390 |
|
|
_ACEOF
|
4391 |
|
|
rm -f conftest.$ac_objext
|
4392 |
|
|
if { (ac_try="$ac_compile"
|
4393 |
|
|
case "(($ac_try" in
|
4394 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4395 |
|
|
*) ac_try_echo=$ac_try;;
|
4396 |
|
|
esac
|
4397 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4398 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4399 |
|
|
ac_status=$?
|
4400 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4401 |
|
|
rm -f conftest.er1
|
4402 |
|
|
cat conftest.err >&5
|
4403 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4404 |
|
|
(exit $ac_status); } && {
|
4405 |
|
|
test -z "$ac_c_werror_flag" ||
|
4406 |
|
|
test ! -s conftest.err
|
4407 |
|
|
} && test -s conftest.$ac_objext; then
|
4408 |
|
|
eval "$as_ac_Header=yes"
|
4409 |
|
|
else
|
4410 |
|
|
echo "$as_me: failed program was:" >&5
|
4411 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4412 |
|
|
|
4413 |
|
|
eval "$as_ac_Header=no"
|
4414 |
|
|
fi
|
4415 |
|
|
|
4416 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4417 |
|
|
fi
|
4418 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
4419 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
4420 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
4421 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
4422 |
|
|
cat >>confdefs.h <<_ACEOF
|
4423 |
|
|
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
4424 |
|
|
_ACEOF
|
4425 |
|
|
|
4426 |
|
|
fi
|
4427 |
|
|
|
4428 |
|
|
done
|
4429 |
|
|
|
4430 |
|
|
|
4431 |
|
|
|
4432 |
|
|
for ac_header in dlfcn.h
|
4433 |
|
|
do
|
4434 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
4435 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
4436 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
4437 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
4438 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
4439 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4440 |
|
|
fi
|
4441 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
4442 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
4443 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
4444 |
|
|
else
|
4445 |
|
|
# Is the header compilable?
|
4446 |
|
|
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
4447 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
4448 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4449 |
|
|
/* confdefs.h. */
|
4450 |
|
|
_ACEOF
|
4451 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4452 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4453 |
|
|
/* end confdefs.h. */
|
4454 |
|
|
$ac_includes_default
|
4455 |
|
|
@%:@include <$ac_header>
|
4456 |
|
|
_ACEOF
|
4457 |
|
|
rm -f conftest.$ac_objext
|
4458 |
|
|
if { (ac_try="$ac_compile"
|
4459 |
|
|
case "(($ac_try" in
|
4460 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4461 |
|
|
*) ac_try_echo=$ac_try;;
|
4462 |
|
|
esac
|
4463 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4464 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4465 |
|
|
ac_status=$?
|
4466 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4467 |
|
|
rm -f conftest.er1
|
4468 |
|
|
cat conftest.err >&5
|
4469 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4470 |
|
|
(exit $ac_status); } && {
|
4471 |
|
|
test -z "$ac_c_werror_flag" ||
|
4472 |
|
|
test ! -s conftest.err
|
4473 |
|
|
} && test -s conftest.$ac_objext; then
|
4474 |
|
|
ac_header_compiler=yes
|
4475 |
|
|
else
|
4476 |
|
|
echo "$as_me: failed program was:" >&5
|
4477 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4478 |
|
|
|
4479 |
|
|
ac_header_compiler=no
|
4480 |
|
|
fi
|
4481 |
|
|
|
4482 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4483 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
4484 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
4485 |
|
|
|
4486 |
|
|
# Is the header present?
|
4487 |
|
|
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
4488 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
4489 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4490 |
|
|
/* confdefs.h. */
|
4491 |
|
|
_ACEOF
|
4492 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4493 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4494 |
|
|
/* end confdefs.h. */
|
4495 |
|
|
@%:@include <$ac_header>
|
4496 |
|
|
_ACEOF
|
4497 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
4498 |
|
|
case "(($ac_try" in
|
4499 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4500 |
|
|
*) ac_try_echo=$ac_try;;
|
4501 |
|
|
esac
|
4502 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4503 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
4504 |
|
|
ac_status=$?
|
4505 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4506 |
|
|
rm -f conftest.er1
|
4507 |
|
|
cat conftest.err >&5
|
4508 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4509 |
|
|
(exit $ac_status); } >/dev/null && {
|
4510 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
4511 |
|
|
test ! -s conftest.err
|
4512 |
|
|
}; then
|
4513 |
|
|
ac_header_preproc=yes
|
4514 |
|
|
else
|
4515 |
|
|
echo "$as_me: failed program was:" >&5
|
4516 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4517 |
|
|
|
4518 |
|
|
ac_header_preproc=no
|
4519 |
|
|
fi
|
4520 |
|
|
|
4521 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4522 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
4523 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
4524 |
|
|
|
4525 |
|
|
# So? What about this header?
|
4526 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
4527 |
|
|
yes:no: )
|
4528 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
4529 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
4530 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
4531 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
4532 |
|
|
ac_header_preproc=yes
|
4533 |
|
|
;;
|
4534 |
|
|
no:yes:* )
|
4535 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
4536 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
4537 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
4538 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
4539 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
4540 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
4541 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
4542 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
4543 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
4544 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
4545 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
4546 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
4547 |
|
|
( cat <<\_ASBOX
|
4548 |
|
|
@%:@@%:@ ------------------------------------- @%:@@%:@
|
4549 |
|
|
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
|
4550 |
|
|
@%:@@%:@ ------------------------------------- @%:@@%:@
|
4551 |
|
|
_ASBOX
|
4552 |
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
4553 |
|
|
;;
|
4554 |
|
|
esac
|
4555 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
4556 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
4557 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
4558 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4559 |
|
|
else
|
4560 |
|
|
eval "$as_ac_Header=\$ac_header_preproc"
|
4561 |
|
|
fi
|
4562 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
4563 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
4564 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
4565 |
|
|
|
4566 |
|
|
fi
|
4567 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
4568 |
|
|
cat >>confdefs.h <<_ACEOF
|
4569 |
|
|
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
4570 |
|
|
_ACEOF
|
4571 |
|
|
|
4572 |
|
|
fi
|
4573 |
|
|
|
4574 |
|
|
done
|
4575 |
|
|
|
4576 |
|
|
ac_ext=cpp
|
4577 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
4578 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
4579 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
4580 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
4581 |
|
|
if test -z "$CXX"; then
|
4582 |
|
|
if test -n "$CCC"; then
|
4583 |
|
|
CXX=$CCC
|
4584 |
|
|
else
|
4585 |
|
|
if test -n "$ac_tool_prefix"; then
|
4586 |
|
|
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
4587 |
|
|
do
|
4588 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
4589 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
4590 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
4591 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
4592 |
|
|
if test "${ac_cv_prog_CXX+set}" = set; then
|
4593 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4594 |
|
|
else
|
4595 |
|
|
if test -n "$CXX"; then
|
4596 |
|
|
ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
4597 |
|
|
else
|
4598 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
4599 |
|
|
for as_dir in $PATH
|
4600 |
|
|
do
|
4601 |
|
|
IFS=$as_save_IFS
|
4602 |
|
|
test -z "$as_dir" && as_dir=.
|
4603 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
4604 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
4605 |
|
|
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
4606 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
4607 |
|
|
break 2
|
4608 |
|
|
fi
|
4609 |
|
|
done
|
4610 |
|
|
done
|
4611 |
|
|
IFS=$as_save_IFS
|
4612 |
|
|
|
4613 |
|
|
fi
|
4614 |
|
|
fi
|
4615 |
|
|
CXX=$ac_cv_prog_CXX
|
4616 |
|
|
if test -n "$CXX"; then
|
4617 |
|
|
{ echo "$as_me:$LINENO: result: $CXX" >&5
|
4618 |
|
|
echo "${ECHO_T}$CXX" >&6; }
|
4619 |
|
|
else
|
4620 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
4621 |
|
|
echo "${ECHO_T}no" >&6; }
|
4622 |
|
|
fi
|
4623 |
|
|
|
4624 |
|
|
|
4625 |
|
|
test -n "$CXX" && break
|
4626 |
|
|
done
|
4627 |
|
|
fi
|
4628 |
|
|
if test -z "$CXX"; then
|
4629 |
|
|
ac_ct_CXX=$CXX
|
4630 |
|
|
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
4631 |
|
|
do
|
4632 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
4633 |
|
|
set dummy $ac_prog; ac_word=$2
|
4634 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
4635 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
4636 |
|
|
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
4637 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4638 |
|
|
else
|
4639 |
|
|
if test -n "$ac_ct_CXX"; then
|
4640 |
|
|
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
4641 |
|
|
else
|
4642 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
4643 |
|
|
for as_dir in $PATH
|
4644 |
|
|
do
|
4645 |
|
|
IFS=$as_save_IFS
|
4646 |
|
|
test -z "$as_dir" && as_dir=.
|
4647 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
4648 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
4649 |
|
|
ac_cv_prog_ac_ct_CXX="$ac_prog"
|
4650 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
4651 |
|
|
break 2
|
4652 |
|
|
fi
|
4653 |
|
|
done
|
4654 |
|
|
done
|
4655 |
|
|
IFS=$as_save_IFS
|
4656 |
|
|
|
4657 |
|
|
fi
|
4658 |
|
|
fi
|
4659 |
|
|
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
4660 |
|
|
if test -n "$ac_ct_CXX"; then
|
4661 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
4662 |
|
|
echo "${ECHO_T}$ac_ct_CXX" >&6; }
|
4663 |
|
|
else
|
4664 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
4665 |
|
|
echo "${ECHO_T}no" >&6; }
|
4666 |
|
|
fi
|
4667 |
|
|
|
4668 |
|
|
|
4669 |
|
|
test -n "$ac_ct_CXX" && break
|
4670 |
|
|
done
|
4671 |
|
|
|
4672 |
|
|
if test "x$ac_ct_CXX" = x; then
|
4673 |
|
|
CXX="g++"
|
4674 |
|
|
else
|
4675 |
|
|
case $cross_compiling:$ac_tool_warned in
|
4676 |
|
|
yes:)
|
4677 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
4678 |
|
|
whose name does not start with the host triplet. If you think this
|
4679 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
4680 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
4681 |
|
|
whose name does not start with the host triplet. If you think this
|
4682 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
4683 |
|
|
ac_tool_warned=yes ;;
|
4684 |
|
|
esac
|
4685 |
|
|
CXX=$ac_ct_CXX
|
4686 |
|
|
fi
|
4687 |
|
|
fi
|
4688 |
|
|
|
4689 |
|
|
fi
|
4690 |
|
|
fi
|
4691 |
|
|
# Provide some information about the compiler.
|
4692 |
|
|
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
|
4693 |
|
|
ac_compiler=`set X $ac_compile; echo $2`
|
4694 |
|
|
{ (ac_try="$ac_compiler --version >&5"
|
4695 |
|
|
case "(($ac_try" in
|
4696 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4697 |
|
|
*) ac_try_echo=$ac_try;;
|
4698 |
|
|
esac
|
4699 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4700 |
|
|
(eval "$ac_compiler --version >&5") 2>&5
|
4701 |
|
|
ac_status=$?
|
4702 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4703 |
|
|
(exit $ac_status); }
|
4704 |
|
|
{ (ac_try="$ac_compiler -v >&5"
|
4705 |
|
|
case "(($ac_try" in
|
4706 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4707 |
|
|
*) ac_try_echo=$ac_try;;
|
4708 |
|
|
esac
|
4709 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4710 |
|
|
(eval "$ac_compiler -v >&5") 2>&5
|
4711 |
|
|
ac_status=$?
|
4712 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4713 |
|
|
(exit $ac_status); }
|
4714 |
|
|
{ (ac_try="$ac_compiler -V >&5"
|
4715 |
|
|
case "(($ac_try" in
|
4716 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4717 |
|
|
*) ac_try_echo=$ac_try;;
|
4718 |
|
|
esac
|
4719 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4720 |
|
|
(eval "$ac_compiler -V >&5") 2>&5
|
4721 |
|
|
ac_status=$?
|
4722 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4723 |
|
|
(exit $ac_status); }
|
4724 |
|
|
|
4725 |
|
|
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
4726 |
|
|
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
|
4727 |
|
|
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
4728 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4729 |
|
|
else
|
4730 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4731 |
|
|
/* confdefs.h. */
|
4732 |
|
|
_ACEOF
|
4733 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4734 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4735 |
|
|
/* end confdefs.h. */
|
4736 |
|
|
|
4737 |
|
|
int
|
4738 |
|
|
main ()
|
4739 |
|
|
{
|
4740 |
|
|
#ifndef __GNUC__
|
4741 |
|
|
choke me
|
4742 |
|
|
#endif
|
4743 |
|
|
|
4744 |
|
|
;
|
4745 |
|
|
return 0;
|
4746 |
|
|
}
|
4747 |
|
|
_ACEOF
|
4748 |
|
|
rm -f conftest.$ac_objext
|
4749 |
|
|
if { (ac_try="$ac_compile"
|
4750 |
|
|
case "(($ac_try" in
|
4751 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4752 |
|
|
*) ac_try_echo=$ac_try;;
|
4753 |
|
|
esac
|
4754 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4755 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4756 |
|
|
ac_status=$?
|
4757 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4758 |
|
|
rm -f conftest.er1
|
4759 |
|
|
cat conftest.err >&5
|
4760 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4761 |
|
|
(exit $ac_status); } && {
|
4762 |
|
|
test -z "$ac_cxx_werror_flag" ||
|
4763 |
|
|
test ! -s conftest.err
|
4764 |
|
|
} && test -s conftest.$ac_objext; then
|
4765 |
|
|
ac_compiler_gnu=yes
|
4766 |
|
|
else
|
4767 |
|
|
echo "$as_me: failed program was:" >&5
|
4768 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4769 |
|
|
|
4770 |
|
|
ac_compiler_gnu=no
|
4771 |
|
|
fi
|
4772 |
|
|
|
4773 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4774 |
|
|
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
4775 |
|
|
|
4776 |
|
|
fi
|
4777 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
4778 |
|
|
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
|
4779 |
|
|
GXX=`test $ac_compiler_gnu = yes && echo yes`
|
4780 |
|
|
ac_test_CXXFLAGS=${CXXFLAGS+set}
|
4781 |
|
|
ac_save_CXXFLAGS=$CXXFLAGS
|
4782 |
|
|
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
4783 |
|
|
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
|
4784 |
|
|
if test "${ac_cv_prog_cxx_g+set}" = set; then
|
4785 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4786 |
|
|
else
|
4787 |
|
|
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
4788 |
|
|
ac_cxx_werror_flag=yes
|
4789 |
|
|
ac_cv_prog_cxx_g=no
|
4790 |
|
|
CXXFLAGS="-g"
|
4791 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4792 |
|
|
/* confdefs.h. */
|
4793 |
|
|
_ACEOF
|
4794 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4795 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4796 |
|
|
/* end confdefs.h. */
|
4797 |
|
|
|
4798 |
|
|
int
|
4799 |
|
|
main ()
|
4800 |
|
|
{
|
4801 |
|
|
|
4802 |
|
|
;
|
4803 |
|
|
return 0;
|
4804 |
|
|
}
|
4805 |
|
|
_ACEOF
|
4806 |
|
|
rm -f conftest.$ac_objext
|
4807 |
|
|
if { (ac_try="$ac_compile"
|
4808 |
|
|
case "(($ac_try" in
|
4809 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4810 |
|
|
*) ac_try_echo=$ac_try;;
|
4811 |
|
|
esac
|
4812 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4813 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4814 |
|
|
ac_status=$?
|
4815 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4816 |
|
|
rm -f conftest.er1
|
4817 |
|
|
cat conftest.err >&5
|
4818 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4819 |
|
|
(exit $ac_status); } && {
|
4820 |
|
|
test -z "$ac_cxx_werror_flag" ||
|
4821 |
|
|
test ! -s conftest.err
|
4822 |
|
|
} && test -s conftest.$ac_objext; then
|
4823 |
|
|
ac_cv_prog_cxx_g=yes
|
4824 |
|
|
else
|
4825 |
|
|
echo "$as_me: failed program was:" >&5
|
4826 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4827 |
|
|
|
4828 |
|
|
CXXFLAGS=""
|
4829 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4830 |
|
|
/* confdefs.h. */
|
4831 |
|
|
_ACEOF
|
4832 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4833 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4834 |
|
|
/* end confdefs.h. */
|
4835 |
|
|
|
4836 |
|
|
int
|
4837 |
|
|
main ()
|
4838 |
|
|
{
|
4839 |
|
|
|
4840 |
|
|
;
|
4841 |
|
|
return 0;
|
4842 |
|
|
}
|
4843 |
|
|
_ACEOF
|
4844 |
|
|
rm -f conftest.$ac_objext
|
4845 |
|
|
if { (ac_try="$ac_compile"
|
4846 |
|
|
case "(($ac_try" in
|
4847 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4848 |
|
|
*) ac_try_echo=$ac_try;;
|
4849 |
|
|
esac
|
4850 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4851 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4852 |
|
|
ac_status=$?
|
4853 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4854 |
|
|
rm -f conftest.er1
|
4855 |
|
|
cat conftest.err >&5
|
4856 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4857 |
|
|
(exit $ac_status); } && {
|
4858 |
|
|
test -z "$ac_cxx_werror_flag" ||
|
4859 |
|
|
test ! -s conftest.err
|
4860 |
|
|
} && test -s conftest.$ac_objext; then
|
4861 |
|
|
:
|
4862 |
|
|
else
|
4863 |
|
|
echo "$as_me: failed program was:" >&5
|
4864 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4865 |
|
|
|
4866 |
|
|
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
4867 |
|
|
CXXFLAGS="-g"
|
4868 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4869 |
|
|
/* confdefs.h. */
|
4870 |
|
|
_ACEOF
|
4871 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4872 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4873 |
|
|
/* end confdefs.h. */
|
4874 |
|
|
|
4875 |
|
|
int
|
4876 |
|
|
main ()
|
4877 |
|
|
{
|
4878 |
|
|
|
4879 |
|
|
;
|
4880 |
|
|
return 0;
|
4881 |
|
|
}
|
4882 |
|
|
_ACEOF
|
4883 |
|
|
rm -f conftest.$ac_objext
|
4884 |
|
|
if { (ac_try="$ac_compile"
|
4885 |
|
|
case "(($ac_try" in
|
4886 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4887 |
|
|
*) ac_try_echo=$ac_try;;
|
4888 |
|
|
esac
|
4889 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4890 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4891 |
|
|
ac_status=$?
|
4892 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4893 |
|
|
rm -f conftest.er1
|
4894 |
|
|
cat conftest.err >&5
|
4895 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4896 |
|
|
(exit $ac_status); } && {
|
4897 |
|
|
test -z "$ac_cxx_werror_flag" ||
|
4898 |
|
|
test ! -s conftest.err
|
4899 |
|
|
} && test -s conftest.$ac_objext; then
|
4900 |
|
|
ac_cv_prog_cxx_g=yes
|
4901 |
|
|
else
|
4902 |
|
|
echo "$as_me: failed program was:" >&5
|
4903 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4904 |
|
|
|
4905 |
|
|
|
4906 |
|
|
fi
|
4907 |
|
|
|
4908 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4909 |
|
|
fi
|
4910 |
|
|
|
4911 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4912 |
|
|
fi
|
4913 |
|
|
|
4914 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4915 |
|
|
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
4916 |
|
|
fi
|
4917 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
4918 |
|
|
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
|
4919 |
|
|
if test "$ac_test_CXXFLAGS" = set; then
|
4920 |
|
|
CXXFLAGS=$ac_save_CXXFLAGS
|
4921 |
|
|
elif test $ac_cv_prog_cxx_g = yes; then
|
4922 |
|
|
if test "$GXX" = yes; then
|
4923 |
|
|
CXXFLAGS="-g -O2"
|
4924 |
|
|
else
|
4925 |
|
|
CXXFLAGS="-g"
|
4926 |
|
|
fi
|
4927 |
|
|
else
|
4928 |
|
|
if test "$GXX" = yes; then
|
4929 |
|
|
CXXFLAGS="-O2"
|
4930 |
|
|
else
|
4931 |
|
|
CXXFLAGS=
|
4932 |
|
|
fi
|
4933 |
|
|
fi
|
4934 |
|
|
ac_ext=cpp
|
4935 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
4936 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
4937 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
4938 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
4939 |
|
|
|
4940 |
|
|
|
4941 |
|
|
|
4942 |
|
|
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
4943 |
|
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
4944 |
|
|
(test "X$CXX" != "Xg++"))) ; then
|
4945 |
|
|
ac_ext=cpp
|
4946 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
4947 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
4948 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
4949 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
4950 |
|
|
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
|
4951 |
|
|
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
|
4952 |
|
|
if test -z "$CXXCPP"; then
|
4953 |
|
|
if test "${ac_cv_prog_CXXCPP+set}" = set; then
|
4954 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4955 |
|
|
else
|
4956 |
|
|
# Double quotes because CXXCPP needs to be expanded
|
4957 |
|
|
for CXXCPP in "$CXX -E" "/lib/cpp"
|
4958 |
|
|
do
|
4959 |
|
|
ac_preproc_ok=false
|
4960 |
|
|
for ac_cxx_preproc_warn_flag in '' yes
|
4961 |
|
|
do
|
4962 |
|
|
# Use a header file that comes with gcc, so configuring glibc
|
4963 |
|
|
# with a fresh cross-compiler works.
|
4964 |
|
|
# Prefer to if __STDC__ is defined, since
|
4965 |
|
|
# exists even on freestanding compilers.
|
4966 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
4967 |
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
4968 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4969 |
|
|
/* confdefs.h. */
|
4970 |
|
|
_ACEOF
|
4971 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4972 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4973 |
|
|
/* end confdefs.h. */
|
4974 |
|
|
@%:@ifdef __STDC__
|
4975 |
|
|
@%:@ include
|
4976 |
|
|
@%:@else
|
4977 |
|
|
@%:@ include
|
4978 |
|
|
@%:@endif
|
4979 |
|
|
Syntax error
|
4980 |
|
|
_ACEOF
|
4981 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
4982 |
|
|
case "(($ac_try" in
|
4983 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4984 |
|
|
*) ac_try_echo=$ac_try;;
|
4985 |
|
|
esac
|
4986 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4987 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
4988 |
|
|
ac_status=$?
|
4989 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4990 |
|
|
rm -f conftest.er1
|
4991 |
|
|
cat conftest.err >&5
|
4992 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4993 |
|
|
(exit $ac_status); } >/dev/null && {
|
4994 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
|
4995 |
|
|
test ! -s conftest.err
|
4996 |
|
|
}; then
|
4997 |
|
|
:
|
4998 |
|
|
else
|
4999 |
|
|
echo "$as_me: failed program was:" >&5
|
5000 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5001 |
|
|
|
5002 |
|
|
# Broken: fails on valid input.
|
5003 |
|
|
continue
|
5004 |
|
|
fi
|
5005 |
|
|
|
5006 |
|
|
rm -f conftest.err conftest.$ac_ext
|
5007 |
|
|
|
5008 |
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
5009 |
|
|
# can be detected and how.
|
5010 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5011 |
|
|
/* confdefs.h. */
|
5012 |
|
|
_ACEOF
|
5013 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5014 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5015 |
|
|
/* end confdefs.h. */
|
5016 |
|
|
@%:@include
|
5017 |
|
|
_ACEOF
|
5018 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
5019 |
|
|
case "(($ac_try" in
|
5020 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5021 |
|
|
*) ac_try_echo=$ac_try;;
|
5022 |
|
|
esac
|
5023 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5024 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
5025 |
|
|
ac_status=$?
|
5026 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5027 |
|
|
rm -f conftest.er1
|
5028 |
|
|
cat conftest.err >&5
|
5029 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5030 |
|
|
(exit $ac_status); } >/dev/null && {
|
5031 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
|
5032 |
|
|
test ! -s conftest.err
|
5033 |
|
|
}; then
|
5034 |
|
|
# Broken: success on invalid input.
|
5035 |
|
|
continue
|
5036 |
|
|
else
|
5037 |
|
|
echo "$as_me: failed program was:" >&5
|
5038 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5039 |
|
|
|
5040 |
|
|
# Passes both tests.
|
5041 |
|
|
ac_preproc_ok=:
|
5042 |
|
|
break
|
5043 |
|
|
fi
|
5044 |
|
|
|
5045 |
|
|
rm -f conftest.err conftest.$ac_ext
|
5046 |
|
|
|
5047 |
|
|
done
|
5048 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
5049 |
|
|
rm -f conftest.err conftest.$ac_ext
|
5050 |
|
|
if $ac_preproc_ok; then
|
5051 |
|
|
break
|
5052 |
|
|
fi
|
5053 |
|
|
|
5054 |
|
|
done
|
5055 |
|
|
ac_cv_prog_CXXCPP=$CXXCPP
|
5056 |
|
|
|
5057 |
|
|
fi
|
5058 |
|
|
CXXCPP=$ac_cv_prog_CXXCPP
|
5059 |
|
|
else
|
5060 |
|
|
ac_cv_prog_CXXCPP=$CXXCPP
|
5061 |
|
|
fi
|
5062 |
|
|
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
|
5063 |
|
|
echo "${ECHO_T}$CXXCPP" >&6; }
|
5064 |
|
|
ac_preproc_ok=false
|
5065 |
|
|
for ac_cxx_preproc_warn_flag in '' yes
|
5066 |
|
|
do
|
5067 |
|
|
# Use a header file that comes with gcc, so configuring glibc
|
5068 |
|
|
# with a fresh cross-compiler works.
|
5069 |
|
|
# Prefer to if __STDC__ is defined, since
|
5070 |
|
|
# exists even on freestanding compilers.
|
5071 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
5072 |
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
5073 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5074 |
|
|
/* confdefs.h. */
|
5075 |
|
|
_ACEOF
|
5076 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5077 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5078 |
|
|
/* end confdefs.h. */
|
5079 |
|
|
@%:@ifdef __STDC__
|
5080 |
|
|
@%:@ include
|
5081 |
|
|
@%:@else
|
5082 |
|
|
@%:@ include
|
5083 |
|
|
@%:@endif
|
5084 |
|
|
Syntax error
|
5085 |
|
|
_ACEOF
|
5086 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
5087 |
|
|
case "(($ac_try" in
|
5088 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5089 |
|
|
*) ac_try_echo=$ac_try;;
|
5090 |
|
|
esac
|
5091 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5092 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
5093 |
|
|
ac_status=$?
|
5094 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5095 |
|
|
rm -f conftest.er1
|
5096 |
|
|
cat conftest.err >&5
|
5097 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5098 |
|
|
(exit $ac_status); } >/dev/null && {
|
5099 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
|
5100 |
|
|
test ! -s conftest.err
|
5101 |
|
|
}; then
|
5102 |
|
|
:
|
5103 |
|
|
else
|
5104 |
|
|
echo "$as_me: failed program was:" >&5
|
5105 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5106 |
|
|
|
5107 |
|
|
# Broken: fails on valid input.
|
5108 |
|
|
continue
|
5109 |
|
|
fi
|
5110 |
|
|
|
5111 |
|
|
rm -f conftest.err conftest.$ac_ext
|
5112 |
|
|
|
5113 |
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
5114 |
|
|
# can be detected and how.
|
5115 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5116 |
|
|
/* confdefs.h. */
|
5117 |
|
|
_ACEOF
|
5118 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5119 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5120 |
|
|
/* end confdefs.h. */
|
5121 |
|
|
@%:@include
|
5122 |
|
|
_ACEOF
|
5123 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
5124 |
|
|
case "(($ac_try" in
|
5125 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5126 |
|
|
*) ac_try_echo=$ac_try;;
|
5127 |
|
|
esac
|
5128 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5129 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
5130 |
|
|
ac_status=$?
|
5131 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5132 |
|
|
rm -f conftest.er1
|
5133 |
|
|
cat conftest.err >&5
|
5134 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5135 |
|
|
(exit $ac_status); } >/dev/null && {
|
5136 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
|
5137 |
|
|
test ! -s conftest.err
|
5138 |
|
|
}; then
|
5139 |
|
|
# Broken: success on invalid input.
|
5140 |
|
|
continue
|
5141 |
|
|
else
|
5142 |
|
|
echo "$as_me: failed program was:" >&5
|
5143 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5144 |
|
|
|
5145 |
|
|
# Passes both tests.
|
5146 |
|
|
ac_preproc_ok=:
|
5147 |
|
|
break
|
5148 |
|
|
fi
|
5149 |
|
|
|
5150 |
|
|
rm -f conftest.err conftest.$ac_ext
|
5151 |
|
|
|
5152 |
|
|
done
|
5153 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
5154 |
|
|
rm -f conftest.err conftest.$ac_ext
|
5155 |
|
|
if $ac_preproc_ok; then
|
5156 |
|
|
:
|
5157 |
|
|
else
|
5158 |
|
|
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
|
5159 |
|
|
See \`config.log' for more details." >&5
|
5160 |
|
|
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
|
5161 |
|
|
See \`config.log' for more details." >&2;}
|
5162 |
|
|
{ (exit 1); exit 1; }; }
|
5163 |
|
|
fi
|
5164 |
|
|
|
5165 |
|
|
ac_ext=cpp
|
5166 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
5167 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
5168 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
5169 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
5170 |
|
|
|
5171 |
|
|
fi
|
5172 |
|
|
|
5173 |
|
|
|
5174 |
|
|
ac_ext=f
|
5175 |
|
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
5176 |
|
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
5177 |
|
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
5178 |
|
|
if test -n "$ac_tool_prefix"; then
|
5179 |
|
|
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
|
5180 |
|
|
do
|
5181 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
5182 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
5183 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5184 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
5185 |
|
|
if test "${ac_cv_prog_F77+set}" = set; then
|
5186 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5187 |
|
|
else
|
5188 |
|
|
if test -n "$F77"; then
|
5189 |
|
|
ac_cv_prog_F77="$F77" # Let the user override the test.
|
5190 |
|
|
else
|
5191 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5192 |
|
|
for as_dir in $PATH
|
5193 |
|
|
do
|
5194 |
|
|
IFS=$as_save_IFS
|
5195 |
|
|
test -z "$as_dir" && as_dir=.
|
5196 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5197 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
5198 |
|
|
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
|
5199 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5200 |
|
|
break 2
|
5201 |
|
|
fi
|
5202 |
|
|
done
|
5203 |
|
|
done
|
5204 |
|
|
IFS=$as_save_IFS
|
5205 |
|
|
|
5206 |
|
|
fi
|
5207 |
|
|
fi
|
5208 |
|
|
F77=$ac_cv_prog_F77
|
5209 |
|
|
if test -n "$F77"; then
|
5210 |
|
|
{ echo "$as_me:$LINENO: result: $F77" >&5
|
5211 |
|
|
echo "${ECHO_T}$F77" >&6; }
|
5212 |
|
|
else
|
5213 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
5214 |
|
|
echo "${ECHO_T}no" >&6; }
|
5215 |
|
|
fi
|
5216 |
|
|
|
5217 |
|
|
|
5218 |
|
|
test -n "$F77" && break
|
5219 |
|
|
done
|
5220 |
|
|
fi
|
5221 |
|
|
if test -z "$F77"; then
|
5222 |
|
|
ac_ct_F77=$F77
|
5223 |
|
|
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
|
5224 |
|
|
do
|
5225 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
5226 |
|
|
set dummy $ac_prog; ac_word=$2
|
5227 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5228 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
5229 |
|
|
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
|
5230 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5231 |
|
|
else
|
5232 |
|
|
if test -n "$ac_ct_F77"; then
|
5233 |
|
|
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
|
5234 |
|
|
else
|
5235 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5236 |
|
|
for as_dir in $PATH
|
5237 |
|
|
do
|
5238 |
|
|
IFS=$as_save_IFS
|
5239 |
|
|
test -z "$as_dir" && as_dir=.
|
5240 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5241 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
5242 |
|
|
ac_cv_prog_ac_ct_F77="$ac_prog"
|
5243 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5244 |
|
|
break 2
|
5245 |
|
|
fi
|
5246 |
|
|
done
|
5247 |
|
|
done
|
5248 |
|
|
IFS=$as_save_IFS
|
5249 |
|
|
|
5250 |
|
|
fi
|
5251 |
|
|
fi
|
5252 |
|
|
ac_ct_F77=$ac_cv_prog_ac_ct_F77
|
5253 |
|
|
if test -n "$ac_ct_F77"; then
|
5254 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
|
5255 |
|
|
echo "${ECHO_T}$ac_ct_F77" >&6; }
|
5256 |
|
|
else
|
5257 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
5258 |
|
|
echo "${ECHO_T}no" >&6; }
|
5259 |
|
|
fi
|
5260 |
|
|
|
5261 |
|
|
|
5262 |
|
|
test -n "$ac_ct_F77" && break
|
5263 |
|
|
done
|
5264 |
|
|
|
5265 |
|
|
if test "x$ac_ct_F77" = x; then
|
5266 |
|
|
F77=""
|
5267 |
|
|
else
|
5268 |
|
|
case $cross_compiling:$ac_tool_warned in
|
5269 |
|
|
yes:)
|
5270 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
5271 |
|
|
whose name does not start with the host triplet. If you think this
|
5272 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
5273 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
5274 |
|
|
whose name does not start with the host triplet. If you think this
|
5275 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
5276 |
|
|
ac_tool_warned=yes ;;
|
5277 |
|
|
esac
|
5278 |
|
|
F77=$ac_ct_F77
|
5279 |
|
|
fi
|
5280 |
|
|
fi
|
5281 |
|
|
|
5282 |
|
|
|
5283 |
|
|
# Provide some information about the compiler.
|
5284 |
|
|
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
|
5285 |
|
|
ac_compiler=`set X $ac_compile; echo $2`
|
5286 |
|
|
{ (ac_try="$ac_compiler --version >&5"
|
5287 |
|
|
case "(($ac_try" in
|
5288 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5289 |
|
|
*) ac_try_echo=$ac_try;;
|
5290 |
|
|
esac
|
5291 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5292 |
|
|
(eval "$ac_compiler --version >&5") 2>&5
|
5293 |
|
|
ac_status=$?
|
5294 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5295 |
|
|
(exit $ac_status); }
|
5296 |
|
|
{ (ac_try="$ac_compiler -v >&5"
|
5297 |
|
|
case "(($ac_try" in
|
5298 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5299 |
|
|
*) ac_try_echo=$ac_try;;
|
5300 |
|
|
esac
|
5301 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5302 |
|
|
(eval "$ac_compiler -v >&5") 2>&5
|
5303 |
|
|
ac_status=$?
|
5304 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5305 |
|
|
(exit $ac_status); }
|
5306 |
|
|
{ (ac_try="$ac_compiler -V >&5"
|
5307 |
|
|
case "(($ac_try" in
|
5308 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5309 |
|
|
*) ac_try_echo=$ac_try;;
|
5310 |
|
|
esac
|
5311 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5312 |
|
|
(eval "$ac_compiler -V >&5") 2>&5
|
5313 |
|
|
ac_status=$?
|
5314 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5315 |
|
|
(exit $ac_status); }
|
5316 |
|
|
rm -f a.out
|
5317 |
|
|
|
5318 |
|
|
# If we don't use `.F' as extension, the preprocessor is not run on the
|
5319 |
|
|
# input file. (Note that this only needs to work for GNU compilers.)
|
5320 |
|
|
ac_save_ext=$ac_ext
|
5321 |
|
|
ac_ext=F
|
5322 |
|
|
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
|
5323 |
|
|
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
|
5324 |
|
|
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
|
5325 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5326 |
|
|
else
|
5327 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5328 |
|
|
program main
|
5329 |
|
|
#ifndef __GNUC__
|
5330 |
|
|
choke me
|
5331 |
|
|
#endif
|
5332 |
|
|
|
5333 |
|
|
end
|
5334 |
|
|
_ACEOF
|
5335 |
|
|
rm -f conftest.$ac_objext
|
5336 |
|
|
if { (ac_try="$ac_compile"
|
5337 |
|
|
case "(($ac_try" in
|
5338 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5339 |
|
|
*) ac_try_echo=$ac_try;;
|
5340 |
|
|
esac
|
5341 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5342 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
5343 |
|
|
ac_status=$?
|
5344 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5345 |
|
|
rm -f conftest.er1
|
5346 |
|
|
cat conftest.err >&5
|
5347 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5348 |
|
|
(exit $ac_status); } && {
|
5349 |
|
|
test -z "$ac_f77_werror_flag" ||
|
5350 |
|
|
test ! -s conftest.err
|
5351 |
|
|
} && test -s conftest.$ac_objext; then
|
5352 |
|
|
ac_compiler_gnu=yes
|
5353 |
|
|
else
|
5354 |
|
|
echo "$as_me: failed program was:" >&5
|
5355 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5356 |
|
|
|
5357 |
|
|
ac_compiler_gnu=no
|
5358 |
|
|
fi
|
5359 |
|
|
|
5360 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
5361 |
|
|
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
|
5362 |
|
|
|
5363 |
|
|
fi
|
5364 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
|
5365 |
|
|
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
|
5366 |
|
|
ac_ext=$ac_save_ext
|
5367 |
|
|
ac_test_FFLAGS=${FFLAGS+set}
|
5368 |
|
|
ac_save_FFLAGS=$FFLAGS
|
5369 |
|
|
FFLAGS=
|
5370 |
|
|
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
|
5371 |
|
|
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
|
5372 |
|
|
if test "${ac_cv_prog_f77_g+set}" = set; then
|
5373 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5374 |
|
|
else
|
5375 |
|
|
FFLAGS=-g
|
5376 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5377 |
|
|
program main
|
5378 |
|
|
|
5379 |
|
|
end
|
5380 |
|
|
_ACEOF
|
5381 |
|
|
rm -f conftest.$ac_objext
|
5382 |
|
|
if { (ac_try="$ac_compile"
|
5383 |
|
|
case "(($ac_try" in
|
5384 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5385 |
|
|
*) ac_try_echo=$ac_try;;
|
5386 |
|
|
esac
|
5387 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5388 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
5389 |
|
|
ac_status=$?
|
5390 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5391 |
|
|
rm -f conftest.er1
|
5392 |
|
|
cat conftest.err >&5
|
5393 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5394 |
|
|
(exit $ac_status); } && {
|
5395 |
|
|
test -z "$ac_f77_werror_flag" ||
|
5396 |
|
|
test ! -s conftest.err
|
5397 |
|
|
} && test -s conftest.$ac_objext; then
|
5398 |
|
|
ac_cv_prog_f77_g=yes
|
5399 |
|
|
else
|
5400 |
|
|
echo "$as_me: failed program was:" >&5
|
5401 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5402 |
|
|
|
5403 |
|
|
ac_cv_prog_f77_g=no
|
5404 |
|
|
fi
|
5405 |
|
|
|
5406 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
5407 |
|
|
|
5408 |
|
|
fi
|
5409 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
|
5410 |
|
|
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
|
5411 |
|
|
if test "$ac_test_FFLAGS" = set; then
|
5412 |
|
|
FFLAGS=$ac_save_FFLAGS
|
5413 |
|
|
elif test $ac_cv_prog_f77_g = yes; then
|
5414 |
|
|
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
5415 |
|
|
FFLAGS="-g -O2"
|
5416 |
|
|
else
|
5417 |
|
|
FFLAGS="-g"
|
5418 |
|
|
fi
|
5419 |
|
|
else
|
5420 |
|
|
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
5421 |
|
|
FFLAGS="-O2"
|
5422 |
|
|
else
|
5423 |
|
|
FFLAGS=
|
5424 |
|
|
fi
|
5425 |
|
|
fi
|
5426 |
|
|
|
5427 |
|
|
G77=`test $ac_compiler_gnu = yes && echo yes`
|
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 |
|
|
|
5435 |
|
|
|
5436 |
|
|
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
5437 |
|
|
|
5438 |
|
|
# find the maximum length of command line arguments
|
5439 |
|
|
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
|
5440 |
|
|
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
|
5441 |
|
|
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
|
5442 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5443 |
|
|
else
|
5444 |
|
|
i=0
|
5445 |
|
|
teststring="ABCD"
|
5446 |
|
|
|
5447 |
|
|
case $build_os in
|
5448 |
|
|
msdosdjgpp*)
|
5449 |
|
|
# On DJGPP, this test can blow up pretty badly due to problems in libc
|
5450 |
|
|
# (any single argument exceeding 2000 bytes causes a buffer overrun
|
5451 |
|
|
# during glob expansion). Even if it were fixed, the result of this
|
5452 |
|
|
# check would be larger than it should be.
|
5453 |
|
|
lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
5454 |
|
|
;;
|
5455 |
|
|
|
5456 |
|
|
gnu*)
|
5457 |
|
|
# Under GNU Hurd, this test is not required because there is
|
5458 |
|
|
# no limit to the length of command line arguments.
|
5459 |
|
|
# Libtool will interpret -1 as no limit whatsoever
|
5460 |
|
|
lt_cv_sys_max_cmd_len=-1;
|
5461 |
|
|
;;
|
5462 |
|
|
|
5463 |
|
|
cygwin* | mingw*)
|
5464 |
|
|
# On Win9x/ME, this test blows up -- it succeeds, but takes
|
5465 |
|
|
# about 5 minutes as the teststring grows exponentially.
|
5466 |
|
|
# Worse, since 9x/ME are not pre-emptively multitasking,
|
5467 |
|
|
# you end up with a "frozen" computer, even though with patience
|
5468 |
|
|
# the test eventually succeeds (with a max line length of 256k).
|
5469 |
|
|
# Instead, let's just punt: use the minimum linelength reported by
|
5470 |
|
|
# all of the supported platforms: 8192 (on NT/2K/XP).
|
5471 |
|
|
lt_cv_sys_max_cmd_len=8192;
|
5472 |
|
|
;;
|
5473 |
|
|
|
5474 |
|
|
amigaos*)
|
5475 |
|
|
# On AmigaOS with pdksh, this test takes hours, literally.
|
5476 |
|
|
# So we just punt and use a minimum line length of 8192.
|
5477 |
|
|
lt_cv_sys_max_cmd_len=8192;
|
5478 |
|
|
;;
|
5479 |
|
|
|
5480 |
|
|
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
5481 |
|
|
# This has been around since 386BSD, at least. Likely further.
|
5482 |
|
|
if test -x /sbin/sysctl; then
|
5483 |
|
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
5484 |
|
|
elif test -x /usr/sbin/sysctl; then
|
5485 |
|
|
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
5486 |
|
|
else
|
5487 |
|
|
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
5488 |
|
|
fi
|
5489 |
|
|
# And add a safety zone
|
5490 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
5491 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
5492 |
|
|
;;
|
5493 |
|
|
|
5494 |
|
|
interix*)
|
5495 |
|
|
# We know the value 262144 and hardcode it with a safety zone (like BSD)
|
5496 |
|
|
lt_cv_sys_max_cmd_len=196608
|
5497 |
|
|
;;
|
5498 |
|
|
|
5499 |
|
|
osf*)
|
5500 |
|
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
5501 |
|
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
5502 |
|
|
# nice to cause kernel panics so lets avoid the loop below.
|
5503 |
|
|
# First set a reasonable default.
|
5504 |
|
|
lt_cv_sys_max_cmd_len=16384
|
5505 |
|
|
#
|
5506 |
|
|
if test -x /sbin/sysconfig; then
|
5507 |
|
|
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
5508 |
|
|
*1*) lt_cv_sys_max_cmd_len=-1 ;;
|
5509 |
|
|
esac
|
5510 |
|
|
fi
|
5511 |
|
|
;;
|
5512 |
|
|
sco3.2v5*)
|
5513 |
|
|
lt_cv_sys_max_cmd_len=102400
|
5514 |
|
|
;;
|
5515 |
|
|
sysv5* | sco5v6* | sysv4.2uw2*)
|
5516 |
|
|
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
5517 |
|
|
if test -n "$kargmax"; then
|
5518 |
|
|
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
5519 |
|
|
else
|
5520 |
|
|
lt_cv_sys_max_cmd_len=32768
|
5521 |
|
|
fi
|
5522 |
|
|
;;
|
5523 |
|
|
*)
|
5524 |
|
|
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
5525 |
|
|
if test -n "$lt_cv_sys_max_cmd_len"; then
|
5526 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
5527 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
5528 |
|
|
else
|
5529 |
|
|
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
5530 |
|
|
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
|
5531 |
|
|
= "XX$teststring") >/dev/null 2>&1 &&
|
5532 |
|
|
new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
5533 |
|
|
lt_cv_sys_max_cmd_len=$new_result &&
|
5534 |
|
|
test $i != 17 # 1/2 MB should be enough
|
5535 |
|
|
do
|
5536 |
|
|
i=`expr $i + 1`
|
5537 |
|
|
teststring=$teststring$teststring
|
5538 |
|
|
done
|
5539 |
|
|
teststring=
|
5540 |
|
|
# Add a significant safety factor because C++ compilers can tack on massive
|
5541 |
|
|
# amounts of additional arguments before passing them to the linker.
|
5542 |
|
|
# It appears as though 1/2 is a usable value.
|
5543 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
5544 |
|
|
fi
|
5545 |
|
|
;;
|
5546 |
|
|
esac
|
5547 |
|
|
|
5548 |
|
|
fi
|
5549 |
|
|
|
5550 |
|
|
if test -n $lt_cv_sys_max_cmd_len ; then
|
5551 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
|
5552 |
|
|
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
|
5553 |
|
|
else
|
5554 |
|
|
{ echo "$as_me:$LINENO: result: none" >&5
|
5555 |
|
|
echo "${ECHO_T}none" >&6; }
|
5556 |
|
|
fi
|
5557 |
|
|
|
5558 |
|
|
|
5559 |
|
|
|
5560 |
|
|
|
5561 |
|
|
|
5562 |
|
|
# Check for command to grab the raw symbol name followed by C symbol from nm.
|
5563 |
|
|
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
|
5564 |
|
|
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
|
5565 |
|
|
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
|
5566 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5567 |
|
|
else
|
5568 |
|
|
|
5569 |
|
|
# These are sane defaults that work on at least a few old systems.
|
5570 |
|
|
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
5571 |
|
|
|
5572 |
|
|
# Character class describing NM global symbol codes.
|
5573 |
|
|
symcode='[BCDEGRST]'
|
5574 |
|
|
|
5575 |
|
|
# Regexp to match symbols that can be accessed directly from C.
|
5576 |
|
|
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
5577 |
|
|
|
5578 |
|
|
# Transform an extracted symbol line into a proper C declaration
|
5579 |
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
|
5580 |
|
|
|
5581 |
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
5582 |
|
|
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'"
|
5583 |
|
|
|
5584 |
|
|
# Define system-specific variables.
|
5585 |
|
|
case $host_os in
|
5586 |
|
|
aix*)
|
5587 |
|
|
symcode='[BCDT]'
|
5588 |
|
|
;;
|
5589 |
|
|
cygwin* | mingw* | pw32*)
|
5590 |
|
|
symcode='[ABCDGISTW]'
|
5591 |
|
|
;;
|
5592 |
|
|
hpux*) # Its linker distinguishes data from code symbols
|
5593 |
|
|
if test "$host_cpu" = ia64; then
|
5594 |
|
|
symcode='[ABCDEGRST]'
|
5595 |
|
|
fi
|
5596 |
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
5597 |
|
|
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'"
|
5598 |
|
|
;;
|
5599 |
|
|
linux* | k*bsd*-gnu)
|
5600 |
|
|
if test "$host_cpu" = ia64; then
|
5601 |
|
|
symcode='[ABCDGIRSTW]'
|
5602 |
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
5603 |
|
|
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'"
|
5604 |
|
|
fi
|
5605 |
|
|
;;
|
5606 |
|
|
irix* | nonstopux*)
|
5607 |
|
|
symcode='[BCDEGRST]'
|
5608 |
|
|
;;
|
5609 |
|
|
osf*)
|
5610 |
|
|
symcode='[BCDEGQRST]'
|
5611 |
|
|
;;
|
5612 |
|
|
solaris*)
|
5613 |
|
|
symcode='[BDRT]'
|
5614 |
|
|
;;
|
5615 |
|
|
sco3.2v5*)
|
5616 |
|
|
symcode='[DT]'
|
5617 |
|
|
;;
|
5618 |
|
|
sysv4.2uw2*)
|
5619 |
|
|
symcode='[DT]'
|
5620 |
|
|
;;
|
5621 |
|
|
sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
5622 |
|
|
symcode='[ABDT]'
|
5623 |
|
|
;;
|
5624 |
|
|
sysv4)
|
5625 |
|
|
symcode='[DFNSTU]'
|
5626 |
|
|
;;
|
5627 |
|
|
esac
|
5628 |
|
|
|
5629 |
|
|
# Handle CRLF in mingw tool chain
|
5630 |
|
|
opt_cr=
|
5631 |
|
|
case $build_os in
|
5632 |
|
|
mingw*)
|
5633 |
|
|
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
5634 |
|
|
;;
|
5635 |
|
|
esac
|
5636 |
|
|
|
5637 |
|
|
# If we're using GNU nm, then use its standard symbol codes.
|
5638 |
|
|
case `$NM -V 2>&1` in
|
5639 |
|
|
*GNU* | *'with BFD'*)
|
5640 |
|
|
symcode='[ABCDGIRSTW]' ;;
|
5641 |
|
|
esac
|
5642 |
|
|
|
5643 |
|
|
# Try without a prefix undercore, then with it.
|
5644 |
|
|
for ac_symprfx in "" "_"; do
|
5645 |
|
|
|
5646 |
|
|
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
5647 |
|
|
symxfrm="\\1 $ac_symprfx\\2 \\2"
|
5648 |
|
|
|
5649 |
|
|
# Write the raw and C identifiers.
|
5650 |
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
5651 |
|
|
|
5652 |
|
|
# Check to see that the pipe works correctly.
|
5653 |
|
|
pipe_works=no
|
5654 |
|
|
|
5655 |
|
|
rm -f conftest*
|
5656 |
|
|
cat > conftest.$ac_ext <
|
5657 |
|
|
#ifdef __cplusplus
|
5658 |
|
|
extern "C" {
|
5659 |
|
|
#endif
|
5660 |
|
|
char nm_test_var;
|
5661 |
|
|
void nm_test_func(){}
|
5662 |
|
|
#ifdef __cplusplus
|
5663 |
|
|
}
|
5664 |
|
|
#endif
|
5665 |
|
|
int main(){nm_test_var='a';nm_test_func();return(0);}
|
5666 |
|
|
EOF
|
5667 |
|
|
|
5668 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
5669 |
|
|
(eval $ac_compile) 2>&5
|
5670 |
|
|
ac_status=$?
|
5671 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5672 |
|
|
(exit $ac_status); }; then
|
5673 |
|
|
# Now try to grab the symbols.
|
5674 |
|
|
nlist=conftest.nm
|
5675 |
|
|
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
|
5676 |
|
|
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
|
5677 |
|
|
ac_status=$?
|
5678 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5679 |
|
|
(exit $ac_status); } && test -s "$nlist"; then
|
5680 |
|
|
# Try sorting and uniquifying the output.
|
5681 |
|
|
if sort "$nlist" | uniq > "$nlist"T; then
|
5682 |
|
|
mv -f "$nlist"T "$nlist"
|
5683 |
|
|
else
|
5684 |
|
|
rm -f "$nlist"T
|
5685 |
|
|
fi
|
5686 |
|
|
|
5687 |
|
|
# Make sure that we snagged all the symbols we need.
|
5688 |
|
|
if grep ' nm_test_var$' "$nlist" >/dev/null; then
|
5689 |
|
|
if grep ' nm_test_func$' "$nlist" >/dev/null; then
|
5690 |
|
|
cat < conftest.$ac_ext
|
5691 |
|
|
#ifdef __cplusplus
|
5692 |
|
|
extern "C" {
|
5693 |
|
|
#endif
|
5694 |
|
|
|
5695 |
|
|
EOF
|
5696 |
|
|
# Now generate the symbol file.
|
5697 |
|
|
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
|
5698 |
|
|
|
5699 |
|
|
cat <> conftest.$ac_ext
|
5700 |
|
|
#if defined (__STDC__) && __STDC__
|
5701 |
|
|
# define lt_ptr_t void *
|
5702 |
|
|
#else
|
5703 |
|
|
# define lt_ptr_t char *
|
5704 |
|
|
# define const
|
5705 |
|
|
#endif
|
5706 |
|
|
|
5707 |
|
|
/* The mapping between symbol names and symbols. */
|
5708 |
|
|
const struct {
|
5709 |
|
|
const char *name;
|
5710 |
|
|
lt_ptr_t address;
|
5711 |
|
|
}
|
5712 |
|
|
lt_preloaded_symbols[] =
|
5713 |
|
|
{
|
5714 |
|
|
EOF
|
5715 |
|
|
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
|
5716 |
|
|
cat <<\EOF >> conftest.$ac_ext
|
5717 |
|
|
{0, (lt_ptr_t) 0}
|
5718 |
|
|
};
|
5719 |
|
|
|
5720 |
|
|
#ifdef __cplusplus
|
5721 |
|
|
}
|
5722 |
|
|
#endif
|
5723 |
|
|
EOF
|
5724 |
|
|
# Now try linking the two files.
|
5725 |
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
5726 |
|
|
lt_save_LIBS="$LIBS"
|
5727 |
|
|
lt_save_CFLAGS="$CFLAGS"
|
5728 |
|
|
LIBS="conftstm.$ac_objext"
|
5729 |
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
5730 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
5731 |
|
|
(eval $ac_link) 2>&5
|
5732 |
|
|
ac_status=$?
|
5733 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5734 |
|
|
(exit $ac_status); } && test -s conftest${ac_exeext}; then
|
5735 |
|
|
pipe_works=yes
|
5736 |
|
|
fi
|
5737 |
|
|
LIBS="$lt_save_LIBS"
|
5738 |
|
|
CFLAGS="$lt_save_CFLAGS"
|
5739 |
|
|
else
|
5740 |
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
5741 |
|
|
fi
|
5742 |
|
|
else
|
5743 |
|
|
echo "cannot find nm_test_var in $nlist" >&5
|
5744 |
|
|
fi
|
5745 |
|
|
else
|
5746 |
|
|
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
5747 |
|
|
fi
|
5748 |
|
|
else
|
5749 |
|
|
echo "$progname: failed program was:" >&5
|
5750 |
|
|
cat conftest.$ac_ext >&5
|
5751 |
|
|
fi
|
5752 |
|
|
rm -f conftest* conftst*
|
5753 |
|
|
|
5754 |
|
|
# Do not use the global_symbol_pipe unless it works.
|
5755 |
|
|
if test "$pipe_works" = yes; then
|
5756 |
|
|
break
|
5757 |
|
|
else
|
5758 |
|
|
lt_cv_sys_global_symbol_pipe=
|
5759 |
|
|
fi
|
5760 |
|
|
done
|
5761 |
|
|
|
5762 |
|
|
fi
|
5763 |
|
|
|
5764 |
|
|
if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
5765 |
|
|
lt_cv_sys_global_symbol_to_cdecl=
|
5766 |
|
|
fi
|
5767 |
|
|
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
5768 |
|
|
{ echo "$as_me:$LINENO: result: failed" >&5
|
5769 |
|
|
echo "${ECHO_T}failed" >&6; }
|
5770 |
|
|
else
|
5771 |
|
|
{ echo "$as_me:$LINENO: result: ok" >&5
|
5772 |
|
|
echo "${ECHO_T}ok" >&6; }
|
5773 |
|
|
fi
|
5774 |
|
|
|
5775 |
|
|
{ echo "$as_me:$LINENO: checking for objdir" >&5
|
5776 |
|
|
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
|
5777 |
|
|
if test "${lt_cv_objdir+set}" = set; then
|
5778 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5779 |
|
|
else
|
5780 |
|
|
rm -f .libs 2>/dev/null
|
5781 |
|
|
mkdir .libs 2>/dev/null
|
5782 |
|
|
if test -d .libs; then
|
5783 |
|
|
lt_cv_objdir=.libs
|
5784 |
|
|
else
|
5785 |
|
|
# MS-DOS does not allow filenames that begin with a dot.
|
5786 |
|
|
lt_cv_objdir=_libs
|
5787 |
|
|
fi
|
5788 |
|
|
rmdir .libs 2>/dev/null
|
5789 |
|
|
fi
|
5790 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
|
5791 |
|
|
echo "${ECHO_T}$lt_cv_objdir" >&6; }
|
5792 |
|
|
objdir=$lt_cv_objdir
|
5793 |
|
|
|
5794 |
|
|
|
5795 |
|
|
|
5796 |
|
|
|
5797 |
|
|
|
5798 |
|
|
case $host_os in
|
5799 |
|
|
aix3*)
|
5800 |
|
|
# AIX sometimes has problems with the GCC collect2 program. For some
|
5801 |
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
5802 |
|
|
# vanish in a puff of smoke.
|
5803 |
|
|
if test "X${COLLECT_NAMES+set}" != Xset; then
|
5804 |
|
|
COLLECT_NAMES=
|
5805 |
|
|
export COLLECT_NAMES
|
5806 |
|
|
fi
|
5807 |
|
|
;;
|
5808 |
|
|
esac
|
5809 |
|
|
|
5810 |
|
|
# Sed substitution that helps us do robust quoting. It backslashifies
|
5811 |
|
|
# metacharacters that are still active within double-quoted strings.
|
5812 |
|
|
Xsed='sed -e 1s/^X//'
|
5813 |
|
|
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
|
5814 |
|
|
|
5815 |
|
|
# Same as above, but do not quote variable references.
|
5816 |
|
|
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
|
5817 |
|
|
|
5818 |
|
|
# Sed substitution to delay expansion of an escaped shell variable in a
|
5819 |
|
|
# double_quote_subst'ed string.
|
5820 |
|
|
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
5821 |
|
|
|
5822 |
|
|
# Sed substitution to avoid accidental globbing in evaled expressions
|
5823 |
|
|
no_glob_subst='s/\*/\\\*/g'
|
5824 |
|
|
|
5825 |
|
|
# Constants:
|
5826 |
|
|
rm="rm -f"
|
5827 |
|
|
|
5828 |
|
|
# Global variables:
|
5829 |
|
|
default_ofile=libtool
|
5830 |
|
|
can_build_shared=yes
|
5831 |
|
|
|
5832 |
|
|
# All known linkers require a `.a' archive for static linking (except MSVC,
|
5833 |
|
|
# which needs '.lib').
|
5834 |
|
|
libext=a
|
5835 |
|
|
ltmain="$ac_aux_dir/ltmain.sh"
|
5836 |
|
|
ofile="$default_ofile"
|
5837 |
|
|
with_gnu_ld="$lt_cv_prog_gnu_ld"
|
5838 |
|
|
|
5839 |
|
|
if test -n "$ac_tool_prefix"; then
|
5840 |
|
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
5841 |
|
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
5842 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5843 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
5844 |
|
|
if test "${ac_cv_prog_AR+set}" = set; then
|
5845 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5846 |
|
|
else
|
5847 |
|
|
if test -n "$AR"; then
|
5848 |
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
5849 |
|
|
else
|
5850 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5851 |
|
|
for as_dir in $PATH
|
5852 |
|
|
do
|
5853 |
|
|
IFS=$as_save_IFS
|
5854 |
|
|
test -z "$as_dir" && as_dir=.
|
5855 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5856 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
5857 |
|
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
5858 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5859 |
|
|
break 2
|
5860 |
|
|
fi
|
5861 |
|
|
done
|
5862 |
|
|
done
|
5863 |
|
|
IFS=$as_save_IFS
|
5864 |
|
|
|
5865 |
|
|
fi
|
5866 |
|
|
fi
|
5867 |
|
|
AR=$ac_cv_prog_AR
|
5868 |
|
|
if test -n "$AR"; then
|
5869 |
|
|
{ echo "$as_me:$LINENO: result: $AR" >&5
|
5870 |
|
|
echo "${ECHO_T}$AR" >&6; }
|
5871 |
|
|
else
|
5872 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
5873 |
|
|
echo "${ECHO_T}no" >&6; }
|
5874 |
|
|
fi
|
5875 |
|
|
|
5876 |
|
|
|
5877 |
|
|
fi
|
5878 |
|
|
if test -z "$ac_cv_prog_AR"; then
|
5879 |
|
|
ac_ct_AR=$AR
|
5880 |
|
|
# Extract the first word of "ar", so it can be a program name with args.
|
5881 |
|
|
set dummy ar; ac_word=$2
|
5882 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5883 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
5884 |
|
|
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
|
5885 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5886 |
|
|
else
|
5887 |
|
|
if test -n "$ac_ct_AR"; then
|
5888 |
|
|
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
5889 |
|
|
else
|
5890 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5891 |
|
|
for as_dir in $PATH
|
5892 |
|
|
do
|
5893 |
|
|
IFS=$as_save_IFS
|
5894 |
|
|
test -z "$as_dir" && as_dir=.
|
5895 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5896 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
5897 |
|
|
ac_cv_prog_ac_ct_AR="ar"
|
5898 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5899 |
|
|
break 2
|
5900 |
|
|
fi
|
5901 |
|
|
done
|
5902 |
|
|
done
|
5903 |
|
|
IFS=$as_save_IFS
|
5904 |
|
|
|
5905 |
|
|
fi
|
5906 |
|
|
fi
|
5907 |
|
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
5908 |
|
|
if test -n "$ac_ct_AR"; then
|
5909 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
|
5910 |
|
|
echo "${ECHO_T}$ac_ct_AR" >&6; }
|
5911 |
|
|
else
|
5912 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
5913 |
|
|
echo "${ECHO_T}no" >&6; }
|
5914 |
|
|
fi
|
5915 |
|
|
|
5916 |
|
|
if test "x$ac_ct_AR" = x; then
|
5917 |
|
|
AR="false"
|
5918 |
|
|
else
|
5919 |
|
|
case $cross_compiling:$ac_tool_warned in
|
5920 |
|
|
yes:)
|
5921 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
5922 |
|
|
whose name does not start with the host triplet. If you think this
|
5923 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
5924 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
5925 |
|
|
whose name does not start with the host triplet. If you think this
|
5926 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
5927 |
|
|
ac_tool_warned=yes ;;
|
5928 |
|
|
esac
|
5929 |
|
|
AR=$ac_ct_AR
|
5930 |
|
|
fi
|
5931 |
|
|
else
|
5932 |
|
|
AR="$ac_cv_prog_AR"
|
5933 |
|
|
fi
|
5934 |
|
|
|
5935 |
|
|
if test -n "$ac_tool_prefix"; then
|
5936 |
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
5937 |
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
5938 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5939 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
5940 |
|
|
if test "${ac_cv_prog_RANLIB+set}" = set; then
|
5941 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5942 |
|
|
else
|
5943 |
|
|
if test -n "$RANLIB"; then
|
5944 |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
5945 |
|
|
else
|
5946 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5947 |
|
|
for as_dir in $PATH
|
5948 |
|
|
do
|
5949 |
|
|
IFS=$as_save_IFS
|
5950 |
|
|
test -z "$as_dir" && as_dir=.
|
5951 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5952 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
5953 |
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
5954 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5955 |
|
|
break 2
|
5956 |
|
|
fi
|
5957 |
|
|
done
|
5958 |
|
|
done
|
5959 |
|
|
IFS=$as_save_IFS
|
5960 |
|
|
|
5961 |
|
|
fi
|
5962 |
|
|
fi
|
5963 |
|
|
RANLIB=$ac_cv_prog_RANLIB
|
5964 |
|
|
if test -n "$RANLIB"; then
|
5965 |
|
|
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
|
5966 |
|
|
echo "${ECHO_T}$RANLIB" >&6; }
|
5967 |
|
|
else
|
5968 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
5969 |
|
|
echo "${ECHO_T}no" >&6; }
|
5970 |
|
|
fi
|
5971 |
|
|
|
5972 |
|
|
|
5973 |
|
|
fi
|
5974 |
|
|
if test -z "$ac_cv_prog_RANLIB"; then
|
5975 |
|
|
ac_ct_RANLIB=$RANLIB
|
5976 |
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
5977 |
|
|
set dummy ranlib; ac_word=$2
|
5978 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5979 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
5980 |
|
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
5981 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5982 |
|
|
else
|
5983 |
|
|
if test -n "$ac_ct_RANLIB"; then
|
5984 |
|
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
5985 |
|
|
else
|
5986 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5987 |
|
|
for as_dir in $PATH
|
5988 |
|
|
do
|
5989 |
|
|
IFS=$as_save_IFS
|
5990 |
|
|
test -z "$as_dir" && as_dir=.
|
5991 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5992 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
5993 |
|
|
ac_cv_prog_ac_ct_RANLIB="ranlib"
|
5994 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5995 |
|
|
break 2
|
5996 |
|
|
fi
|
5997 |
|
|
done
|
5998 |
|
|
done
|
5999 |
|
|
IFS=$as_save_IFS
|
6000 |
|
|
|
6001 |
|
|
fi
|
6002 |
|
|
fi
|
6003 |
|
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
6004 |
|
|
if test -n "$ac_ct_RANLIB"; then
|
6005 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
6006 |
|
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
|
6007 |
|
|
else
|
6008 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
6009 |
|
|
echo "${ECHO_T}no" >&6; }
|
6010 |
|
|
fi
|
6011 |
|
|
|
6012 |
|
|
if test "x$ac_ct_RANLIB" = x; then
|
6013 |
|
|
RANLIB=":"
|
6014 |
|
|
else
|
6015 |
|
|
case $cross_compiling:$ac_tool_warned in
|
6016 |
|
|
yes:)
|
6017 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
6018 |
|
|
whose name does not start with the host triplet. If you think this
|
6019 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
6020 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
6021 |
|
|
whose name does not start with the host triplet. If you think this
|
6022 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
6023 |
|
|
ac_tool_warned=yes ;;
|
6024 |
|
|
esac
|
6025 |
|
|
RANLIB=$ac_ct_RANLIB
|
6026 |
|
|
fi
|
6027 |
|
|
else
|
6028 |
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
6029 |
|
|
fi
|
6030 |
|
|
|
6031 |
|
|
if test -n "$ac_tool_prefix"; then
|
6032 |
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
6033 |
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
6034 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6035 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
6036 |
|
|
if test "${ac_cv_prog_STRIP+set}" = set; then
|
6037 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6038 |
|
|
else
|
6039 |
|
|
if test -n "$STRIP"; then
|
6040 |
|
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
6041 |
|
|
else
|
6042 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6043 |
|
|
for as_dir in $PATH
|
6044 |
|
|
do
|
6045 |
|
|
IFS=$as_save_IFS
|
6046 |
|
|
test -z "$as_dir" && as_dir=.
|
6047 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6048 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
6049 |
|
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
6050 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6051 |
|
|
break 2
|
6052 |
|
|
fi
|
6053 |
|
|
done
|
6054 |
|
|
done
|
6055 |
|
|
IFS=$as_save_IFS
|
6056 |
|
|
|
6057 |
|
|
fi
|
6058 |
|
|
fi
|
6059 |
|
|
STRIP=$ac_cv_prog_STRIP
|
6060 |
|
|
if test -n "$STRIP"; then
|
6061 |
|
|
{ echo "$as_me:$LINENO: result: $STRIP" >&5
|
6062 |
|
|
echo "${ECHO_T}$STRIP" >&6; }
|
6063 |
|
|
else
|
6064 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
6065 |
|
|
echo "${ECHO_T}no" >&6; }
|
6066 |
|
|
fi
|
6067 |
|
|
|
6068 |
|
|
|
6069 |
|
|
fi
|
6070 |
|
|
if test -z "$ac_cv_prog_STRIP"; then
|
6071 |
|
|
ac_ct_STRIP=$STRIP
|
6072 |
|
|
# Extract the first word of "strip", so it can be a program name with args.
|
6073 |
|
|
set dummy strip; ac_word=$2
|
6074 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6075 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
6076 |
|
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
6077 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6078 |
|
|
else
|
6079 |
|
|
if test -n "$ac_ct_STRIP"; then
|
6080 |
|
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
6081 |
|
|
else
|
6082 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6083 |
|
|
for as_dir in $PATH
|
6084 |
|
|
do
|
6085 |
|
|
IFS=$as_save_IFS
|
6086 |
|
|
test -z "$as_dir" && as_dir=.
|
6087 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6088 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
6089 |
|
|
ac_cv_prog_ac_ct_STRIP="strip"
|
6090 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6091 |
|
|
break 2
|
6092 |
|
|
fi
|
6093 |
|
|
done
|
6094 |
|
|
done
|
6095 |
|
|
IFS=$as_save_IFS
|
6096 |
|
|
|
6097 |
|
|
fi
|
6098 |
|
|
fi
|
6099 |
|
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
6100 |
|
|
if test -n "$ac_ct_STRIP"; then
|
6101 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
6102 |
|
|
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
|
6103 |
|
|
else
|
6104 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
6105 |
|
|
echo "${ECHO_T}no" >&6; }
|
6106 |
|
|
fi
|
6107 |
|
|
|
6108 |
|
|
if test "x$ac_ct_STRIP" = x; then
|
6109 |
|
|
STRIP=":"
|
6110 |
|
|
else
|
6111 |
|
|
case $cross_compiling:$ac_tool_warned in
|
6112 |
|
|
yes:)
|
6113 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
6114 |
|
|
whose name does not start with the host triplet. If you think this
|
6115 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
6116 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
6117 |
|
|
whose name does not start with the host triplet. If you think this
|
6118 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
6119 |
|
|
ac_tool_warned=yes ;;
|
6120 |
|
|
esac
|
6121 |
|
|
STRIP=$ac_ct_STRIP
|
6122 |
|
|
fi
|
6123 |
|
|
else
|
6124 |
|
|
STRIP="$ac_cv_prog_STRIP"
|
6125 |
|
|
fi
|
6126 |
|
|
|
6127 |
|
|
|
6128 |
|
|
old_CC="$CC"
|
6129 |
|
|
old_CFLAGS="$CFLAGS"
|
6130 |
|
|
|
6131 |
|
|
# Set sane defaults for various variables
|
6132 |
|
|
test -z "$AR" && AR=ar
|
6133 |
|
|
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
6134 |
|
|
test -z "$AS" && AS=as
|
6135 |
|
|
test -z "$CC" && CC=cc
|
6136 |
|
|
test -z "$LTCC" && LTCC=$CC
|
6137 |
|
|
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
6138 |
|
|
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
6139 |
|
|
test -z "$LD" && LD=ld
|
6140 |
|
|
test -z "$LN_S" && LN_S="ln -s"
|
6141 |
|
|
test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
6142 |
|
|
test -z "$NM" && NM=nm
|
6143 |
|
|
test -z "$SED" && SED=sed
|
6144 |
|
|
test -z "$OBJDUMP" && OBJDUMP=objdump
|
6145 |
|
|
test -z "$RANLIB" && RANLIB=:
|
6146 |
|
|
test -z "$STRIP" && STRIP=:
|
6147 |
|
|
test -z "$ac_objext" && ac_objext=o
|
6148 |
|
|
|
6149 |
|
|
# Determine commands to create old-style static archives.
|
6150 |
|
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
6151 |
|
|
old_postinstall_cmds='chmod 644 $oldlib'
|
6152 |
|
|
old_postuninstall_cmds=
|
6153 |
|
|
|
6154 |
|
|
if test -n "$RANLIB"; then
|
6155 |
|
|
case $host_os in
|
6156 |
|
|
openbsd*)
|
6157 |
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
6158 |
|
|
;;
|
6159 |
|
|
*)
|
6160 |
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
6161 |
|
|
;;
|
6162 |
|
|
esac
|
6163 |
|
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
6164 |
|
|
fi
|
6165 |
|
|
|
6166 |
|
|
for cc_temp in $compiler""; do
|
6167 |
|
|
case $cc_temp in
|
6168 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
6169 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
6170 |
|
|
\-*) ;;
|
6171 |
|
|
*) break;;
|
6172 |
|
|
esac
|
6173 |
|
|
done
|
6174 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
6175 |
|
|
|
6176 |
|
|
|
6177 |
|
|
# Only perform the check for file, if the check method requires it
|
6178 |
|
|
case $deplibs_check_method in
|
6179 |
|
|
file_magic*)
|
6180 |
|
|
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
6181 |
|
|
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
|
6182 |
|
|
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
|
6183 |
|
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
6184 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6185 |
|
|
else
|
6186 |
|
|
case $MAGIC_CMD in
|
6187 |
|
|
[\\/*] | ?:[\\/]*)
|
6188 |
|
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
6189 |
|
|
;;
|
6190 |
|
|
*)
|
6191 |
|
|
lt_save_MAGIC_CMD="$MAGIC_CMD"
|
6192 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
6193 |
|
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
6194 |
|
|
for ac_dir in $ac_dummy; do
|
6195 |
|
|
IFS="$lt_save_ifs"
|
6196 |
|
|
test -z "$ac_dir" && ac_dir=.
|
6197 |
|
|
if test -f $ac_dir/${ac_tool_prefix}file; then
|
6198 |
|
|
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
6199 |
|
|
if test -n "$file_magic_test_file"; then
|
6200 |
|
|
case $deplibs_check_method in
|
6201 |
|
|
"file_magic "*)
|
6202 |
|
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
6203 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
6204 |
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
6205 |
|
|
$EGREP "$file_magic_regex" > /dev/null; then
|
6206 |
|
|
:
|
6207 |
|
|
else
|
6208 |
|
|
cat <&2
|
6209 |
|
|
|
6210 |
|
|
*** Warning: the command libtool uses to detect shared libraries,
|
6211 |
|
|
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
6212 |
|
|
*** The result is that libtool may fail to recognize shared libraries
|
6213 |
|
|
*** as such. This will affect the creation of libtool libraries that
|
6214 |
|
|
*** depend on shared libraries, but programs linked with such libtool
|
6215 |
|
|
*** libraries will work regardless of this problem. Nevertheless, you
|
6216 |
|
|
*** may want to report the problem to your system manager and/or to
|
6217 |
|
|
*** bug-libtool@gnu.org
|
6218 |
|
|
|
6219 |
|
|
EOF
|
6220 |
|
|
fi ;;
|
6221 |
|
|
esac
|
6222 |
|
|
fi
|
6223 |
|
|
break
|
6224 |
|
|
fi
|
6225 |
|
|
done
|
6226 |
|
|
IFS="$lt_save_ifs"
|
6227 |
|
|
MAGIC_CMD="$lt_save_MAGIC_CMD"
|
6228 |
|
|
;;
|
6229 |
|
|
esac
|
6230 |
|
|
fi
|
6231 |
|
|
|
6232 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
6233 |
|
|
if test -n "$MAGIC_CMD"; then
|
6234 |
|
|
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
6235 |
|
|
echo "${ECHO_T}$MAGIC_CMD" >&6; }
|
6236 |
|
|
else
|
6237 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
6238 |
|
|
echo "${ECHO_T}no" >&6; }
|
6239 |
|
|
fi
|
6240 |
|
|
|
6241 |
|
|
if test -z "$lt_cv_path_MAGIC_CMD"; then
|
6242 |
|
|
if test -n "$ac_tool_prefix"; then
|
6243 |
|
|
{ echo "$as_me:$LINENO: checking for file" >&5
|
6244 |
|
|
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
|
6245 |
|
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
6246 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6247 |
|
|
else
|
6248 |
|
|
case $MAGIC_CMD in
|
6249 |
|
|
[\\/*] | ?:[\\/]*)
|
6250 |
|
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
6251 |
|
|
;;
|
6252 |
|
|
*)
|
6253 |
|
|
lt_save_MAGIC_CMD="$MAGIC_CMD"
|
6254 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
6255 |
|
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
6256 |
|
|
for ac_dir in $ac_dummy; do
|
6257 |
|
|
IFS="$lt_save_ifs"
|
6258 |
|
|
test -z "$ac_dir" && ac_dir=.
|
6259 |
|
|
if test -f $ac_dir/file; then
|
6260 |
|
|
lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
6261 |
|
|
if test -n "$file_magic_test_file"; then
|
6262 |
|
|
case $deplibs_check_method in
|
6263 |
|
|
"file_magic "*)
|
6264 |
|
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
6265 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
6266 |
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
6267 |
|
|
$EGREP "$file_magic_regex" > /dev/null; then
|
6268 |
|
|
:
|
6269 |
|
|
else
|
6270 |
|
|
cat <&2
|
6271 |
|
|
|
6272 |
|
|
*** Warning: the command libtool uses to detect shared libraries,
|
6273 |
|
|
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
6274 |
|
|
*** The result is that libtool may fail to recognize shared libraries
|
6275 |
|
|
*** as such. This will affect the creation of libtool libraries that
|
6276 |
|
|
*** depend on shared libraries, but programs linked with such libtool
|
6277 |
|
|
*** libraries will work regardless of this problem. Nevertheless, you
|
6278 |
|
|
*** may want to report the problem to your system manager and/or to
|
6279 |
|
|
*** bug-libtool@gnu.org
|
6280 |
|
|
|
6281 |
|
|
EOF
|
6282 |
|
|
fi ;;
|
6283 |
|
|
esac
|
6284 |
|
|
fi
|
6285 |
|
|
break
|
6286 |
|
|
fi
|
6287 |
|
|
done
|
6288 |
|
|
IFS="$lt_save_ifs"
|
6289 |
|
|
MAGIC_CMD="$lt_save_MAGIC_CMD"
|
6290 |
|
|
;;
|
6291 |
|
|
esac
|
6292 |
|
|
fi
|
6293 |
|
|
|
6294 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
6295 |
|
|
if test -n "$MAGIC_CMD"; then
|
6296 |
|
|
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
6297 |
|
|
echo "${ECHO_T}$MAGIC_CMD" >&6; }
|
6298 |
|
|
else
|
6299 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
6300 |
|
|
echo "${ECHO_T}no" >&6; }
|
6301 |
|
|
fi
|
6302 |
|
|
|
6303 |
|
|
else
|
6304 |
|
|
MAGIC_CMD=:
|
6305 |
|
|
fi
|
6306 |
|
|
fi
|
6307 |
|
|
|
6308 |
|
|
fi
|
6309 |
|
|
;;
|
6310 |
|
|
esac
|
6311 |
|
|
|
6312 |
|
|
enable_dlopen=no
|
6313 |
|
|
enable_win32_dll=no
|
6314 |
|
|
|
6315 |
|
|
# Check whether --enable-libtool-lock was given.
|
6316 |
|
|
if test "${enable_libtool_lock+set}" = set; then
|
6317 |
|
|
enableval=$enable_libtool_lock;
|
6318 |
|
|
fi
|
6319 |
|
|
|
6320 |
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
6321 |
|
|
|
6322 |
|
|
|
6323 |
|
|
# Check whether --with-pic was given.
|
6324 |
|
|
if test "${with_pic+set}" = set; then
|
6325 |
|
|
withval=$with_pic; pic_mode="$withval"
|
6326 |
|
|
else
|
6327 |
|
|
pic_mode=default
|
6328 |
|
|
fi
|
6329 |
|
|
|
6330 |
|
|
test -z "$pic_mode" && pic_mode=default
|
6331 |
|
|
|
6332 |
|
|
# Use C for the default configuration in the libtool script
|
6333 |
|
|
tagname=
|
6334 |
|
|
lt_save_CC="$CC"
|
6335 |
|
|
ac_ext=c
|
6336 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
6337 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
6338 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
6339 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
6340 |
|
|
|
6341 |
|
|
|
6342 |
|
|
# Source file extension for C test sources.
|
6343 |
|
|
ac_ext=c
|
6344 |
|
|
|
6345 |
|
|
# Object file extension for compiled C test sources.
|
6346 |
|
|
objext=o
|
6347 |
|
|
objext=$objext
|
6348 |
|
|
|
6349 |
|
|
# Code to be used in simple compile tests
|
6350 |
|
|
lt_simple_compile_test_code="int some_variable = 0;"
|
6351 |
|
|
|
6352 |
|
|
# Code to be used in simple link tests
|
6353 |
|
|
lt_simple_link_test_code='int main(){return(0);}'
|
6354 |
|
|
|
6355 |
|
|
|
6356 |
|
|
# If no C compiler was specified, use CC.
|
6357 |
|
|
LTCC=${LTCC-"$CC"}
|
6358 |
|
|
|
6359 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
6360 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
6361 |
|
|
|
6362 |
|
|
# Allow CC to be a program name with arguments.
|
6363 |
|
|
compiler=$CC
|
6364 |
|
|
|
6365 |
|
|
|
6366 |
|
|
# save warnings/boilerplate of simple test code
|
6367 |
|
|
ac_outfile=conftest.$ac_objext
|
6368 |
|
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
6369 |
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
6370 |
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
6371 |
|
|
$rm conftest*
|
6372 |
|
|
|
6373 |
|
|
ac_outfile=conftest.$ac_objext
|
6374 |
|
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
6375 |
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
6376 |
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
6377 |
|
|
$rm conftest*
|
6378 |
|
|
|
6379 |
|
|
|
6380 |
|
|
## CAVEAT EMPTOR:
|
6381 |
|
|
## There is no encapsulation within the following macros, do not change
|
6382 |
|
|
## the running order or otherwise move them around unless you know exactly
|
6383 |
|
|
## what you are doing...
|
6384 |
|
|
|
6385 |
|
|
lt_prog_compiler_no_builtin_flag=
|
6386 |
|
|
|
6387 |
|
|
if test "$GCC" = yes; then
|
6388 |
|
|
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
|
6389 |
|
|
|
6390 |
|
|
|
6391 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
6392 |
|
|
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
|
6393 |
|
|
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
|
6394 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6395 |
|
|
else
|
6396 |
|
|
lt_cv_prog_compiler_rtti_exceptions=no
|
6397 |
|
|
ac_outfile=conftest.$ac_objext
|
6398 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
6399 |
|
|
lt_compiler_flag="-fno-rtti -fno-exceptions"
|
6400 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
6401 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
6402 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
6403 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
6404 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
6405 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
6406 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
6407 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
6408 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
6409 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
6410 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
6411 |
|
|
ac_status=$?
|
6412 |
|
|
cat conftest.err >&5
|
6413 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
6414 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
6415 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
6416 |
|
|
# So say no if there are warnings other than the usual output.
|
6417 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
6418 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
6419 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
6420 |
|
|
lt_cv_prog_compiler_rtti_exceptions=yes
|
6421 |
|
|
fi
|
6422 |
|
|
fi
|
6423 |
|
|
$rm conftest*
|
6424 |
|
|
|
6425 |
|
|
fi
|
6426 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
6427 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
6428 |
|
|
|
6429 |
|
|
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
6430 |
|
|
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
6431 |
|
|
else
|
6432 |
|
|
:
|
6433 |
|
|
fi
|
6434 |
|
|
|
6435 |
|
|
fi
|
6436 |
|
|
|
6437 |
|
|
lt_prog_compiler_wl=
|
6438 |
|
|
lt_prog_compiler_pic=
|
6439 |
|
|
lt_prog_compiler_static=
|
6440 |
|
|
|
6441 |
|
|
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
6442 |
|
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
6443 |
|
|
|
6444 |
|
|
if test "$GCC" = yes; then
|
6445 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6446 |
|
|
lt_prog_compiler_static='-static'
|
6447 |
|
|
|
6448 |
|
|
case $host_os in
|
6449 |
|
|
aix*)
|
6450 |
|
|
# All AIX code is PIC.
|
6451 |
|
|
if test "$host_cpu" = ia64; then
|
6452 |
|
|
# AIX 5 now supports IA64 processor
|
6453 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6454 |
|
|
fi
|
6455 |
|
|
;;
|
6456 |
|
|
|
6457 |
|
|
amigaos*)
|
6458 |
|
|
# FIXME: we need at least 68020 code to build shared libraries, but
|
6459 |
|
|
# adding the `-m68020' flag to GCC prevents building anything better,
|
6460 |
|
|
# like `-m68040'.
|
6461 |
|
|
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
6462 |
|
|
;;
|
6463 |
|
|
|
6464 |
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
6465 |
|
|
# PIC is the default for these OSes.
|
6466 |
|
|
;;
|
6467 |
|
|
|
6468 |
|
|
mingw* | cygwin* | pw32* | os2*)
|
6469 |
|
|
# This hack is so that the source file can tell whether it is being
|
6470 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
6471 |
|
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
6472 |
|
|
# (--disable-auto-import) libraries
|
6473 |
|
|
lt_prog_compiler_pic='-DDLL_EXPORT'
|
6474 |
|
|
;;
|
6475 |
|
|
|
6476 |
|
|
darwin* | rhapsody*)
|
6477 |
|
|
# PIC is the default on this platform
|
6478 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
6479 |
|
|
lt_prog_compiler_pic='-fno-common'
|
6480 |
|
|
;;
|
6481 |
|
|
|
6482 |
|
|
interix[3-9]*)
|
6483 |
|
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
6484 |
|
|
# Instead, we relocate shared libraries at runtime.
|
6485 |
|
|
;;
|
6486 |
|
|
|
6487 |
|
|
msdosdjgpp*)
|
6488 |
|
|
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
6489 |
|
|
# on systems that don't support them.
|
6490 |
|
|
lt_prog_compiler_can_build_shared=no
|
6491 |
|
|
enable_shared=no
|
6492 |
|
|
;;
|
6493 |
|
|
|
6494 |
|
|
sysv4*MP*)
|
6495 |
|
|
if test -d /usr/nec; then
|
6496 |
|
|
lt_prog_compiler_pic=-Kconform_pic
|
6497 |
|
|
fi
|
6498 |
|
|
;;
|
6499 |
|
|
|
6500 |
|
|
hpux*)
|
6501 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
6502 |
|
|
# not for PA HP-UX.
|
6503 |
|
|
case $host_cpu in
|
6504 |
|
|
hppa*64*|ia64*)
|
6505 |
|
|
# +Z the default
|
6506 |
|
|
;;
|
6507 |
|
|
*)
|
6508 |
|
|
lt_prog_compiler_pic='-fPIC'
|
6509 |
|
|
;;
|
6510 |
|
|
esac
|
6511 |
|
|
;;
|
6512 |
|
|
|
6513 |
|
|
*)
|
6514 |
|
|
lt_prog_compiler_pic='-fPIC'
|
6515 |
|
|
;;
|
6516 |
|
|
esac
|
6517 |
|
|
else
|
6518 |
|
|
# PORTME Check for flag to pass linker flags through the system compiler.
|
6519 |
|
|
case $host_os in
|
6520 |
|
|
aix*)
|
6521 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6522 |
|
|
if test "$host_cpu" = ia64; then
|
6523 |
|
|
# AIX 5 now supports IA64 processor
|
6524 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6525 |
|
|
else
|
6526 |
|
|
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
6527 |
|
|
fi
|
6528 |
|
|
;;
|
6529 |
|
|
darwin*)
|
6530 |
|
|
# PIC is the default on this platform
|
6531 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
6532 |
|
|
case $cc_basename in
|
6533 |
|
|
xlc*)
|
6534 |
|
|
lt_prog_compiler_pic='-qnocommon'
|
6535 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6536 |
|
|
;;
|
6537 |
|
|
esac
|
6538 |
|
|
;;
|
6539 |
|
|
|
6540 |
|
|
mingw* | cygwin* | pw32* | os2*)
|
6541 |
|
|
# This hack is so that the source file can tell whether it is being
|
6542 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
6543 |
|
|
lt_prog_compiler_pic='-DDLL_EXPORT'
|
6544 |
|
|
;;
|
6545 |
|
|
|
6546 |
|
|
hpux9* | hpux10* | hpux11*)
|
6547 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6548 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
6549 |
|
|
# not for PA HP-UX.
|
6550 |
|
|
case $host_cpu in
|
6551 |
|
|
hppa*64*|ia64*)
|
6552 |
|
|
# +Z the default
|
6553 |
|
|
;;
|
6554 |
|
|
*)
|
6555 |
|
|
lt_prog_compiler_pic='+Z'
|
6556 |
|
|
;;
|
6557 |
|
|
esac
|
6558 |
|
|
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
6559 |
|
|
lt_prog_compiler_static='${wl}-a ${wl}archive'
|
6560 |
|
|
;;
|
6561 |
|
|
|
6562 |
|
|
irix5* | irix6* | nonstopux*)
|
6563 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6564 |
|
|
# PIC (with -KPIC) is the default.
|
6565 |
|
|
lt_prog_compiler_static='-non_shared'
|
6566 |
|
|
;;
|
6567 |
|
|
|
6568 |
|
|
newsos6)
|
6569 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6570 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6571 |
|
|
;;
|
6572 |
|
|
|
6573 |
|
|
linux* | k*bsd*-gnu)
|
6574 |
|
|
case $cc_basename in
|
6575 |
|
|
icc* | ecc*)
|
6576 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6577 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6578 |
|
|
lt_prog_compiler_static='-static'
|
6579 |
|
|
;;
|
6580 |
|
|
pgcc* | pgf77* | pgf90* | pgf95*)
|
6581 |
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
6582 |
|
|
# which looks to be a dead project)
|
6583 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6584 |
|
|
lt_prog_compiler_pic='-fpic'
|
6585 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6586 |
|
|
;;
|
6587 |
|
|
ccc*)
|
6588 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6589 |
|
|
# All Alpha code is PIC.
|
6590 |
|
|
lt_prog_compiler_static='-non_shared'
|
6591 |
|
|
;;
|
6592 |
|
|
*)
|
6593 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
6594 |
|
|
*Sun\ C*)
|
6595 |
|
|
# Sun C 5.9
|
6596 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6597 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6598 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6599 |
|
|
;;
|
6600 |
|
|
*Sun\ F*)
|
6601 |
|
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
6602 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6603 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6604 |
|
|
lt_prog_compiler_wl=''
|
6605 |
|
|
;;
|
6606 |
|
|
esac
|
6607 |
|
|
;;
|
6608 |
|
|
esac
|
6609 |
|
|
;;
|
6610 |
|
|
|
6611 |
|
|
osf3* | osf4* | osf5*)
|
6612 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6613 |
|
|
# All OSF/1 code is PIC.
|
6614 |
|
|
lt_prog_compiler_static='-non_shared'
|
6615 |
|
|
;;
|
6616 |
|
|
|
6617 |
|
|
rdos*)
|
6618 |
|
|
lt_prog_compiler_static='-non_shared'
|
6619 |
|
|
;;
|
6620 |
|
|
|
6621 |
|
|
solaris*)
|
6622 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6623 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6624 |
|
|
case $cc_basename in
|
6625 |
|
|
f77* | f90* | f95*)
|
6626 |
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
6627 |
|
|
*)
|
6628 |
|
|
lt_prog_compiler_wl='-Wl,';;
|
6629 |
|
|
esac
|
6630 |
|
|
;;
|
6631 |
|
|
|
6632 |
|
|
sunos4*)
|
6633 |
|
|
lt_prog_compiler_wl='-Qoption ld '
|
6634 |
|
|
lt_prog_compiler_pic='-PIC'
|
6635 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6636 |
|
|
;;
|
6637 |
|
|
|
6638 |
|
|
sysv4 | sysv4.2uw2* | sysv4.3*)
|
6639 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6640 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6641 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6642 |
|
|
;;
|
6643 |
|
|
|
6644 |
|
|
sysv4*MP*)
|
6645 |
|
|
if test -d /usr/nec ;then
|
6646 |
|
|
lt_prog_compiler_pic='-Kconform_pic'
|
6647 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6648 |
|
|
fi
|
6649 |
|
|
;;
|
6650 |
|
|
|
6651 |
|
|
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
6652 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6653 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6654 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6655 |
|
|
;;
|
6656 |
|
|
|
6657 |
|
|
unicos*)
|
6658 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6659 |
|
|
lt_prog_compiler_can_build_shared=no
|
6660 |
|
|
;;
|
6661 |
|
|
|
6662 |
|
|
uts4*)
|
6663 |
|
|
lt_prog_compiler_pic='-pic'
|
6664 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6665 |
|
|
;;
|
6666 |
|
|
|
6667 |
|
|
*)
|
6668 |
|
|
lt_prog_compiler_can_build_shared=no
|
6669 |
|
|
;;
|
6670 |
|
|
esac
|
6671 |
|
|
fi
|
6672 |
|
|
|
6673 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
|
6674 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
|
6675 |
|
|
|
6676 |
|
|
#
|
6677 |
|
|
# Check to make sure the PIC flag actually works.
|
6678 |
|
|
#
|
6679 |
|
|
if test -n "$lt_prog_compiler_pic"; then
|
6680 |
|
|
|
6681 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
6682 |
|
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
|
6683 |
|
|
if test "${lt_prog_compiler_pic_works+set}" = set; then
|
6684 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6685 |
|
|
else
|
6686 |
|
|
lt_prog_compiler_pic_works=no
|
6687 |
|
|
ac_outfile=conftest.$ac_objext
|
6688 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
6689 |
|
|
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
|
6690 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
6691 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
6692 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
6693 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
6694 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
6695 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
6696 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
6697 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
6698 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
6699 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
6700 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
6701 |
|
|
ac_status=$?
|
6702 |
|
|
cat conftest.err >&5
|
6703 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
6704 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
6705 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
6706 |
|
|
# So say no if there are warnings other than the usual output.
|
6707 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
6708 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
6709 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
6710 |
|
|
lt_prog_compiler_pic_works=yes
|
6711 |
|
|
fi
|
6712 |
|
|
fi
|
6713 |
|
|
$rm conftest*
|
6714 |
|
|
|
6715 |
|
|
fi
|
6716 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
|
6717 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
|
6718 |
|
|
|
6719 |
|
|
if test x"$lt_prog_compiler_pic_works" = xyes; then
|
6720 |
|
|
case $lt_prog_compiler_pic in
|
6721 |
|
|
"" | " "*) ;;
|
6722 |
|
|
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
6723 |
|
|
esac
|
6724 |
|
|
else
|
6725 |
|
|
lt_prog_compiler_pic=
|
6726 |
|
|
lt_prog_compiler_can_build_shared=no
|
6727 |
|
|
fi
|
6728 |
|
|
|
6729 |
|
|
fi
|
6730 |
|
|
case $host_os in
|
6731 |
|
|
# For platforms which do not support PIC, -DPIC is meaningless:
|
6732 |
|
|
*djgpp*)
|
6733 |
|
|
lt_prog_compiler_pic=
|
6734 |
|
|
;;
|
6735 |
|
|
*)
|
6736 |
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
6737 |
|
|
;;
|
6738 |
|
|
esac
|
6739 |
|
|
|
6740 |
|
|
#
|
6741 |
|
|
# Check to make sure the static flag actually works.
|
6742 |
|
|
#
|
6743 |
|
|
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
6744 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
6745 |
|
|
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
6746 |
|
|
if test "${lt_prog_compiler_static_works+set}" = set; then
|
6747 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6748 |
|
|
else
|
6749 |
|
|
lt_prog_compiler_static_works=no
|
6750 |
|
|
save_LDFLAGS="$LDFLAGS"
|
6751 |
|
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
6752 |
|
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
6753 |
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
6754 |
|
|
# The linker can only warn and ignore the option if not recognized
|
6755 |
|
|
# So say no if there are warnings
|
6756 |
|
|
if test -s conftest.err; then
|
6757 |
|
|
# Append any errors to the config.log.
|
6758 |
|
|
cat conftest.err 1>&5
|
6759 |
|
|
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
6760 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
6761 |
|
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
6762 |
|
|
lt_prog_compiler_static_works=yes
|
6763 |
|
|
fi
|
6764 |
|
|
else
|
6765 |
|
|
lt_prog_compiler_static_works=yes
|
6766 |
|
|
fi
|
6767 |
|
|
fi
|
6768 |
|
|
$rm conftest*
|
6769 |
|
|
LDFLAGS="$save_LDFLAGS"
|
6770 |
|
|
|
6771 |
|
|
fi
|
6772 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
|
6773 |
|
|
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
|
6774 |
|
|
|
6775 |
|
|
if test x"$lt_prog_compiler_static_works" = xyes; then
|
6776 |
|
|
:
|
6777 |
|
|
else
|
6778 |
|
|
lt_prog_compiler_static=
|
6779 |
|
|
fi
|
6780 |
|
|
|
6781 |
|
|
|
6782 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
6783 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
6784 |
|
|
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
|
6785 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6786 |
|
|
else
|
6787 |
|
|
lt_cv_prog_compiler_c_o=no
|
6788 |
|
|
$rm -r conftest 2>/dev/null
|
6789 |
|
|
mkdir conftest
|
6790 |
|
|
cd conftest
|
6791 |
|
|
mkdir out
|
6792 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
6793 |
|
|
|
6794 |
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
6795 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
6796 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
6797 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
6798 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
6799 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
6800 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
6801 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
6802 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
6803 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
6804 |
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
6805 |
|
|
ac_status=$?
|
6806 |
|
|
cat out/conftest.err >&5
|
6807 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
6808 |
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
6809 |
|
|
then
|
6810 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
6811 |
|
|
# So say no if there are warnings
|
6812 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
6813 |
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
6814 |
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
6815 |
|
|
lt_cv_prog_compiler_c_o=yes
|
6816 |
|
|
fi
|
6817 |
|
|
fi
|
6818 |
|
|
chmod u+w . 2>&5
|
6819 |
|
|
$rm conftest*
|
6820 |
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
6821 |
|
|
# template instantiation
|
6822 |
|
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
6823 |
|
|
$rm out/* && rmdir out
|
6824 |
|
|
cd ..
|
6825 |
|
|
rmdir conftest
|
6826 |
|
|
$rm conftest*
|
6827 |
|
|
|
6828 |
|
|
fi
|
6829 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
|
6830 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
|
6831 |
|
|
|
6832 |
|
|
|
6833 |
|
|
hard_links="nottested"
|
6834 |
|
|
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
|
6835 |
|
|
# do not overwrite the value of need_locks provided by the user
|
6836 |
|
|
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
6837 |
|
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
6838 |
|
|
hard_links=yes
|
6839 |
|
|
$rm conftest*
|
6840 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
6841 |
|
|
touch conftest.a
|
6842 |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no
|
6843 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
6844 |
|
|
{ echo "$as_me:$LINENO: result: $hard_links" >&5
|
6845 |
|
|
echo "${ECHO_T}$hard_links" >&6; }
|
6846 |
|
|
if test "$hard_links" = no; then
|
6847 |
|
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
6848 |
|
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
6849 |
|
|
need_locks=warn
|
6850 |
|
|
fi
|
6851 |
|
|
else
|
6852 |
|
|
need_locks=no
|
6853 |
|
|
fi
|
6854 |
|
|
|
6855 |
|
|
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
6856 |
|
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
6857 |
|
|
|
6858 |
|
|
runpath_var=
|
6859 |
|
|
allow_undefined_flag=
|
6860 |
|
|
enable_shared_with_static_runtimes=no
|
6861 |
|
|
archive_cmds=
|
6862 |
|
|
archive_expsym_cmds=
|
6863 |
|
|
old_archive_From_new_cmds=
|
6864 |
|
|
old_archive_from_expsyms_cmds=
|
6865 |
|
|
export_dynamic_flag_spec=
|
6866 |
|
|
whole_archive_flag_spec=
|
6867 |
|
|
thread_safe_flag_spec=
|
6868 |
|
|
hardcode_libdir_flag_spec=
|
6869 |
|
|
hardcode_libdir_flag_spec_ld=
|
6870 |
|
|
hardcode_libdir_separator=
|
6871 |
|
|
hardcode_direct=no
|
6872 |
|
|
hardcode_minus_L=no
|
6873 |
|
|
hardcode_shlibpath_var=unsupported
|
6874 |
|
|
link_all_deplibs=unknown
|
6875 |
|
|
hardcode_automatic=no
|
6876 |
|
|
module_cmds=
|
6877 |
|
|
module_expsym_cmds=
|
6878 |
|
|
always_export_symbols=no
|
6879 |
|
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
6880 |
|
|
# include_expsyms should be a list of space-separated symbols to be *always*
|
6881 |
|
|
# included in the symbol list
|
6882 |
|
|
include_expsyms=
|
6883 |
|
|
# exclude_expsyms can be an extended regexp of symbols to exclude
|
6884 |
|
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
6885 |
|
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
6886 |
|
|
# as well as any symbol that contains `d'.
|
6887 |
|
|
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
|
6888 |
|
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
6889 |
|
|
# platforms (ab)use it in PIC code, but their linkers get confused if
|
6890 |
|
|
# the symbol is explicitly referenced. Since portable code cannot
|
6891 |
|
|
# rely on this symbol name, it's probably fine to never include it in
|
6892 |
|
|
# preloaded symbol tables.
|
6893 |
|
|
extract_expsyms_cmds=
|
6894 |
|
|
# Just being paranoid about ensuring that cc_basename is set.
|
6895 |
|
|
for cc_temp in $compiler""; do
|
6896 |
|
|
case $cc_temp in
|
6897 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
6898 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
6899 |
|
|
\-*) ;;
|
6900 |
|
|
*) break;;
|
6901 |
|
|
esac
|
6902 |
|
|
done
|
6903 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
6904 |
|
|
|
6905 |
|
|
case $host_os in
|
6906 |
|
|
cygwin* | mingw* | pw32*)
|
6907 |
|
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
6908 |
|
|
# When not using gcc, we currently assume that we are using
|
6909 |
|
|
# Microsoft Visual C++.
|
6910 |
|
|
if test "$GCC" != yes; then
|
6911 |
|
|
with_gnu_ld=no
|
6912 |
|
|
fi
|
6913 |
|
|
;;
|
6914 |
|
|
interix*)
|
6915 |
|
|
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
6916 |
|
|
with_gnu_ld=yes
|
6917 |
|
|
;;
|
6918 |
|
|
openbsd*)
|
6919 |
|
|
with_gnu_ld=no
|
6920 |
|
|
;;
|
6921 |
|
|
esac
|
6922 |
|
|
|
6923 |
|
|
ld_shlibs=yes
|
6924 |
|
|
if test "$with_gnu_ld" = yes; then
|
6925 |
|
|
# If archive_cmds runs LD, not CC, wlarc should be empty
|
6926 |
|
|
wlarc='${wl}'
|
6927 |
|
|
|
6928 |
|
|
# Set some defaults for GNU ld with shared library support. These
|
6929 |
|
|
# are reset later if shared libraries are not supported. Putting them
|
6930 |
|
|
# here allows them to be overridden if necessary.
|
6931 |
|
|
runpath_var=LD_RUN_PATH
|
6932 |
|
|
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
|
6933 |
|
|
export_dynamic_flag_spec='${wl}--export-dynamic'
|
6934 |
|
|
# ancient GNU ld didn't support --whole-archive et. al.
|
6935 |
|
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
6936 |
|
|
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
6937 |
|
|
else
|
6938 |
|
|
whole_archive_flag_spec=
|
6939 |
|
|
fi
|
6940 |
|
|
supports_anon_versioning=no
|
6941 |
|
|
case `$LD -v 2>/dev/null` in
|
6942 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
6943 |
|
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
6944 |
|
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
6945 |
|
|
*\ 2.11.*) ;; # other 2.11 versions
|
6946 |
|
|
*) supports_anon_versioning=yes ;;
|
6947 |
|
|
esac
|
6948 |
|
|
|
6949 |
|
|
# See if GNU ld supports shared libraries.
|
6950 |
|
|
case $host_os in
|
6951 |
|
|
aix3* | aix4* | aix5*)
|
6952 |
|
|
# On AIX/PPC, the GNU linker is very broken
|
6953 |
|
|
if test "$host_cpu" != ia64; then
|
6954 |
|
|
ld_shlibs=no
|
6955 |
|
|
cat <&2
|
6956 |
|
|
|
6957 |
|
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
6958 |
|
|
*** to be unable to reliably create shared libraries on AIX.
|
6959 |
|
|
*** Therefore, libtool is disabling shared libraries support. If you
|
6960 |
|
|
*** really care for shared libraries, you may want to modify your PATH
|
6961 |
|
|
*** so that a non-GNU linker is found, and then restart.
|
6962 |
|
|
|
6963 |
|
|
EOF
|
6964 |
|
|
fi
|
6965 |
|
|
;;
|
6966 |
|
|
|
6967 |
|
|
amigaos*)
|
6968 |
|
|
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)'
|
6969 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
6970 |
|
|
hardcode_minus_L=yes
|
6971 |
|
|
|
6972 |
|
|
# Samuel A. Falvo II reports
|
6973 |
|
|
# that the semantics of dynamic libraries on AmigaOS, at least up
|
6974 |
|
|
# to version 4, is to share data among multiple programs linked
|
6975 |
|
|
# with the same dynamic library. Since this doesn't match the
|
6976 |
|
|
# behavior of shared libraries on other platforms, we can't use
|
6977 |
|
|
# them.
|
6978 |
|
|
ld_shlibs=no
|
6979 |
|
|
;;
|
6980 |
|
|
|
6981 |
|
|
beos*)
|
6982 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
6983 |
|
|
allow_undefined_flag=unsupported
|
6984 |
|
|
# Joseph Beckenbach says some releases of gcc
|
6985 |
|
|
# support --undefined. This deserves some investigation. FIXME
|
6986 |
|
|
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
6987 |
|
|
else
|
6988 |
|
|
ld_shlibs=no
|
6989 |
|
|
fi
|
6990 |
|
|
;;
|
6991 |
|
|
|
6992 |
|
|
cygwin* | mingw* | pw32*)
|
6993 |
|
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
6994 |
|
|
# as there is no search path for DLLs.
|
6995 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
6996 |
|
|
allow_undefined_flag=unsupported
|
6997 |
|
|
always_export_symbols=no
|
6998 |
|
|
enable_shared_with_static_runtimes=yes
|
6999 |
|
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
7000 |
|
|
|
7001 |
|
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
7002 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
7003 |
|
|
# If the export-symbols file already is a .def file (1st line
|
7004 |
|
|
# is EXPORTS), use it as is; otherwise, prepend...
|
7005 |
|
|
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
7006 |
|
|
cp $export_symbols $output_objdir/$soname.def;
|
7007 |
|
|
else
|
7008 |
|
|
echo EXPORTS > $output_objdir/$soname.def;
|
7009 |
|
|
cat $export_symbols >> $output_objdir/$soname.def;
|
7010 |
|
|
fi~
|
7011 |
|
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
7012 |
|
|
else
|
7013 |
|
|
ld_shlibs=no
|
7014 |
|
|
fi
|
7015 |
|
|
;;
|
7016 |
|
|
|
7017 |
|
|
interix[3-9]*)
|
7018 |
|
|
hardcode_direct=no
|
7019 |
|
|
hardcode_shlibpath_var=no
|
7020 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
7021 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
7022 |
|
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
7023 |
|
|
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
7024 |
|
|
# default) and relocated if they conflict, which is a slow very memory
|
7025 |
|
|
# consuming and fragmenting process. To avoid this, we pick a random,
|
7026 |
|
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
7027 |
|
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
7028 |
|
|
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
7029 |
|
|
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
7030 |
|
|
;;
|
7031 |
|
|
|
7032 |
|
|
gnu* | linux* | k*bsd*-gnu)
|
7033 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
7034 |
|
|
tmp_addflag=
|
7035 |
|
|
case $cc_basename,$host_cpu in
|
7036 |
|
|
pgcc*) # Portland Group C compiler
|
7037 |
|
|
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
7038 |
|
|
tmp_addflag=' $pic_flag'
|
7039 |
|
|
;;
|
7040 |
|
|
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
7041 |
|
|
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
7042 |
|
|
tmp_addflag=' $pic_flag -Mnomain' ;;
|
7043 |
|
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
7044 |
|
|
tmp_addflag=' -i_dynamic' ;;
|
7045 |
|
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
7046 |
|
|
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
7047 |
|
|
ifc* | ifort*) # Intel Fortran compiler
|
7048 |
|
|
tmp_addflag=' -nofor_main' ;;
|
7049 |
|
|
esac
|
7050 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
7051 |
|
|
*Sun\ C*) # Sun C 5.9
|
7052 |
|
|
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
7053 |
|
|
tmp_sharedflag='-G' ;;
|
7054 |
|
|
*Sun\ F*) # Sun Fortran 8.3
|
7055 |
|
|
tmp_sharedflag='-G' ;;
|
7056 |
|
|
*)
|
7057 |
|
|
tmp_sharedflag='-shared' ;;
|
7058 |
|
|
esac
|
7059 |
|
|
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7060 |
|
|
|
7061 |
|
|
if test $supports_anon_versioning = yes; then
|
7062 |
|
|
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
|
7063 |
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
7064 |
|
|
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
7065 |
|
|
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
7066 |
|
|
fi
|
7067 |
|
|
else
|
7068 |
|
|
ld_shlibs=no
|
7069 |
|
|
fi
|
7070 |
|
|
;;
|
7071 |
|
|
|
7072 |
|
|
netbsd*)
|
7073 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
7074 |
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
7075 |
|
|
wlarc=
|
7076 |
|
|
else
|
7077 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7078 |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
7079 |
|
|
fi
|
7080 |
|
|
;;
|
7081 |
|
|
|
7082 |
|
|
solaris*)
|
7083 |
|
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
7084 |
|
|
ld_shlibs=no
|
7085 |
|
|
cat <&2
|
7086 |
|
|
|
7087 |
|
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
7088 |
|
|
*** create shared libraries on Solaris systems. Therefore, libtool
|
7089 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
7090 |
|
|
*** binutils to release 2.9.1 or newer. Another option is to modify
|
7091 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
7092 |
|
|
*** used, and then restart.
|
7093 |
|
|
|
7094 |
|
|
EOF
|
7095 |
|
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
7096 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7097 |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
7098 |
|
|
else
|
7099 |
|
|
ld_shlibs=no
|
7100 |
|
|
fi
|
7101 |
|
|
;;
|
7102 |
|
|
|
7103 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
7104 |
|
|
case `$LD -v 2>&1` in
|
7105 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
7106 |
|
|
ld_shlibs=no
|
7107 |
|
|
cat <<_LT_EOF 1>&2
|
7108 |
|
|
|
7109 |
|
|
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
7110 |
|
|
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
7111 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
7112 |
|
|
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
7113 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
7114 |
|
|
*** used, and then restart.
|
7115 |
|
|
|
7116 |
|
|
_LT_EOF
|
7117 |
|
|
;;
|
7118 |
|
|
*)
|
7119 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
7120 |
|
|
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
7121 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
7122 |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
7123 |
|
|
else
|
7124 |
|
|
ld_shlibs=no
|
7125 |
|
|
fi
|
7126 |
|
|
;;
|
7127 |
|
|
esac
|
7128 |
|
|
;;
|
7129 |
|
|
|
7130 |
|
|
sunos4*)
|
7131 |
|
|
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
7132 |
|
|
wlarc=
|
7133 |
|
|
hardcode_direct=yes
|
7134 |
|
|
hardcode_shlibpath_var=no
|
7135 |
|
|
;;
|
7136 |
|
|
|
7137 |
|
|
*)
|
7138 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
7139 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7140 |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
7141 |
|
|
else
|
7142 |
|
|
ld_shlibs=no
|
7143 |
|
|
fi
|
7144 |
|
|
;;
|
7145 |
|
|
esac
|
7146 |
|
|
|
7147 |
|
|
if test "$ld_shlibs" = no; then
|
7148 |
|
|
runpath_var=
|
7149 |
|
|
hardcode_libdir_flag_spec=
|
7150 |
|
|
export_dynamic_flag_spec=
|
7151 |
|
|
whole_archive_flag_spec=
|
7152 |
|
|
fi
|
7153 |
|
|
else
|
7154 |
|
|
# PORTME fill in a description of your system's linker (not GNU ld)
|
7155 |
|
|
case $host_os in
|
7156 |
|
|
aix3*)
|
7157 |
|
|
allow_undefined_flag=unsupported
|
7158 |
|
|
always_export_symbols=yes
|
7159 |
|
|
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'
|
7160 |
|
|
# Note: this linker hardcodes the directories in LIBPATH if there
|
7161 |
|
|
# are no directories specified by -L.
|
7162 |
|
|
hardcode_minus_L=yes
|
7163 |
|
|
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
7164 |
|
|
# Neither direct hardcoding nor static linking is supported with a
|
7165 |
|
|
# broken collect2.
|
7166 |
|
|
hardcode_direct=unsupported
|
7167 |
|
|
fi
|
7168 |
|
|
;;
|
7169 |
|
|
|
7170 |
|
|
aix4* | aix5*)
|
7171 |
|
|
if test "$host_cpu" = ia64; then
|
7172 |
|
|
# On IA64, the linker does run time linking by default, so we don't
|
7173 |
|
|
# have to do anything special.
|
7174 |
|
|
aix_use_runtimelinking=no
|
7175 |
|
|
exp_sym_flag='-Bexport'
|
7176 |
|
|
no_entry_flag=""
|
7177 |
|
|
else
|
7178 |
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
7179 |
|
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
7180 |
|
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
7181 |
|
|
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'
|
7182 |
|
|
else
|
7183 |
|
|
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'
|
7184 |
|
|
fi
|
7185 |
|
|
aix_use_runtimelinking=no
|
7186 |
|
|
|
7187 |
|
|
# Test if we are trying to use run time linking or normal
|
7188 |
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
7189 |
|
|
# need to do runtime linking.
|
7190 |
|
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
7191 |
|
|
for ld_flag in $LDFLAGS; do
|
7192 |
|
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
7193 |
|
|
aix_use_runtimelinking=yes
|
7194 |
|
|
break
|
7195 |
|
|
fi
|
7196 |
|
|
done
|
7197 |
|
|
;;
|
7198 |
|
|
esac
|
7199 |
|
|
|
7200 |
|
|
exp_sym_flag='-bexport'
|
7201 |
|
|
no_entry_flag='-bnoentry'
|
7202 |
|
|
fi
|
7203 |
|
|
|
7204 |
|
|
# When large executables or shared objects are built, AIX ld can
|
7205 |
|
|
# have problems creating the table of contents. If linking a library
|
7206 |
|
|
# or program results in "error TOC overflow" add -mminimal-toc to
|
7207 |
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
7208 |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
7209 |
|
|
|
7210 |
|
|
archive_cmds=''
|
7211 |
|
|
hardcode_direct=yes
|
7212 |
|
|
hardcode_libdir_separator=':'
|
7213 |
|
|
link_all_deplibs=yes
|
7214 |
|
|
|
7215 |
|
|
if test "$GCC" = yes; then
|
7216 |
|
|
case $host_os in aix4.[012]|aix4.[012].*)
|
7217 |
|
|
# We only want to do this on AIX 4.2 and lower, the check
|
7218 |
|
|
# below for broken collect2 doesn't work under 4.3+
|
7219 |
|
|
collect2name=`${CC} -print-prog-name=collect2`
|
7220 |
|
|
if test -f "$collect2name" && \
|
7221 |
|
|
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
7222 |
|
|
then
|
7223 |
|
|
# We have reworked collect2
|
7224 |
|
|
:
|
7225 |
|
|
else
|
7226 |
|
|
# We have old collect2
|
7227 |
|
|
hardcode_direct=unsupported
|
7228 |
|
|
# It fails to find uninstalled libraries when the uninstalled
|
7229 |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L
|
7230 |
|
|
# to unsupported forces relinking
|
7231 |
|
|
hardcode_minus_L=yes
|
7232 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
7233 |
|
|
hardcode_libdir_separator=
|
7234 |
|
|
fi
|
7235 |
|
|
;;
|
7236 |
|
|
esac
|
7237 |
|
|
shared_flag='-shared'
|
7238 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
7239 |
|
|
shared_flag="$shared_flag "'${wl}-G'
|
7240 |
|
|
fi
|
7241 |
|
|
else
|
7242 |
|
|
# not using gcc
|
7243 |
|
|
if test "$host_cpu" = ia64; then
|
7244 |
|
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
7245 |
|
|
# chokes on -Wl,-G. The following line is correct:
|
7246 |
|
|
shared_flag='-G'
|
7247 |
|
|
else
|
7248 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
7249 |
|
|
shared_flag='${wl}-G'
|
7250 |
|
|
else
|
7251 |
|
|
shared_flag='${wl}-bM:SRE'
|
7252 |
|
|
fi
|
7253 |
|
|
fi
|
7254 |
|
|
fi
|
7255 |
|
|
|
7256 |
|
|
# It seems that -bexpall does not export symbols beginning with
|
7257 |
|
|
# underscore (_), so it is better to generate a list of symbols to export.
|
7258 |
|
|
always_export_symbols=yes
|
7259 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
7260 |
|
|
# Warning - without using the other runtime loading flags (-brtl),
|
7261 |
|
|
# -berok will link without error, but may produce a broken library.
|
7262 |
|
|
allow_undefined_flag='-berok'
|
7263 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
7264 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7265 |
|
|
/* confdefs.h. */
|
7266 |
|
|
_ACEOF
|
7267 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7268 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7269 |
|
|
/* end confdefs.h. */
|
7270 |
|
|
|
7271 |
|
|
int
|
7272 |
|
|
main ()
|
7273 |
|
|
{
|
7274 |
|
|
|
7275 |
|
|
;
|
7276 |
|
|
return 0;
|
7277 |
|
|
}
|
7278 |
|
|
_ACEOF
|
7279 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
7280 |
|
|
if { (ac_try="$ac_link"
|
7281 |
|
|
case "(($ac_try" in
|
7282 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
7283 |
|
|
*) ac_try_echo=$ac_try;;
|
7284 |
|
|
esac
|
7285 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
7286 |
|
|
(eval "$ac_link") 2>conftest.er1
|
7287 |
|
|
ac_status=$?
|
7288 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7289 |
|
|
rm -f conftest.er1
|
7290 |
|
|
cat conftest.err >&5
|
7291 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7292 |
|
|
(exit $ac_status); } && {
|
7293 |
|
|
test -z "$ac_c_werror_flag" ||
|
7294 |
|
|
test ! -s conftest.err
|
7295 |
|
|
} && test -s conftest$ac_exeext &&
|
7296 |
|
|
$as_test_x conftest$ac_exeext; then
|
7297 |
|
|
|
7298 |
|
|
lt_aix_libpath_sed='
|
7299 |
|
|
/Import File Strings/,/^$/ {
|
7300 |
|
|
/^0/ {
|
7301 |
|
|
s/^0 *\(.*\)$/\1/
|
7302 |
|
|
p
|
7303 |
|
|
}
|
7304 |
|
|
}'
|
7305 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
7306 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
7307 |
|
|
if test -z "$aix_libpath"; then
|
7308 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
7309 |
|
|
fi
|
7310 |
|
|
else
|
7311 |
|
|
echo "$as_me: failed program was:" >&5
|
7312 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7313 |
|
|
|
7314 |
|
|
|
7315 |
|
|
fi
|
7316 |
|
|
|
7317 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
7318 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
7319 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
7320 |
|
|
|
7321 |
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
7322 |
|
|
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
7323 |
|
|
else
|
7324 |
|
|
if test "$host_cpu" = ia64; then
|
7325 |
|
|
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
7326 |
|
|
allow_undefined_flag="-z nodefs"
|
7327 |
|
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
7328 |
|
|
else
|
7329 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
7330 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7331 |
|
|
/* confdefs.h. */
|
7332 |
|
|
_ACEOF
|
7333 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7334 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7335 |
|
|
/* end confdefs.h. */
|
7336 |
|
|
|
7337 |
|
|
int
|
7338 |
|
|
main ()
|
7339 |
|
|
{
|
7340 |
|
|
|
7341 |
|
|
;
|
7342 |
|
|
return 0;
|
7343 |
|
|
}
|
7344 |
|
|
_ACEOF
|
7345 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
7346 |
|
|
if { (ac_try="$ac_link"
|
7347 |
|
|
case "(($ac_try" in
|
7348 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
7349 |
|
|
*) ac_try_echo=$ac_try;;
|
7350 |
|
|
esac
|
7351 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
7352 |
|
|
(eval "$ac_link") 2>conftest.er1
|
7353 |
|
|
ac_status=$?
|
7354 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7355 |
|
|
rm -f conftest.er1
|
7356 |
|
|
cat conftest.err >&5
|
7357 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7358 |
|
|
(exit $ac_status); } && {
|
7359 |
|
|
test -z "$ac_c_werror_flag" ||
|
7360 |
|
|
test ! -s conftest.err
|
7361 |
|
|
} && test -s conftest$ac_exeext &&
|
7362 |
|
|
$as_test_x conftest$ac_exeext; then
|
7363 |
|
|
|
7364 |
|
|
lt_aix_libpath_sed='
|
7365 |
|
|
/Import File Strings/,/^$/ {
|
7366 |
|
|
/^0/ {
|
7367 |
|
|
s/^0 *\(.*\)$/\1/
|
7368 |
|
|
p
|
7369 |
|
|
}
|
7370 |
|
|
}'
|
7371 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
7372 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
7373 |
|
|
if test -z "$aix_libpath"; then
|
7374 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
7375 |
|
|
fi
|
7376 |
|
|
else
|
7377 |
|
|
echo "$as_me: failed program was:" >&5
|
7378 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7379 |
|
|
|
7380 |
|
|
|
7381 |
|
|
fi
|
7382 |
|
|
|
7383 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
7384 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
7385 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
7386 |
|
|
|
7387 |
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
7388 |
|
|
# Warning - without using the other run time loading flags,
|
7389 |
|
|
# -berok will link without error, but may produce a broken library.
|
7390 |
|
|
no_undefined_flag=' ${wl}-bernotok'
|
7391 |
|
|
allow_undefined_flag=' ${wl}-berok'
|
7392 |
|
|
# Exported symbols can be pulled into shared objects from archives
|
7393 |
|
|
whole_archive_flag_spec='$convenience'
|
7394 |
|
|
archive_cmds_need_lc=yes
|
7395 |
|
|
# This is similar to how AIX traditionally builds its shared libraries.
|
7396 |
|
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
7397 |
|
|
fi
|
7398 |
|
|
fi
|
7399 |
|
|
;;
|
7400 |
|
|
|
7401 |
|
|
amigaos*)
|
7402 |
|
|
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)'
|
7403 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
7404 |
|
|
hardcode_minus_L=yes
|
7405 |
|
|
# see comment about different semantics on the GNU ld section
|
7406 |
|
|
ld_shlibs=no
|
7407 |
|
|
;;
|
7408 |
|
|
|
7409 |
|
|
bsdi[45]*)
|
7410 |
|
|
export_dynamic_flag_spec=-rdynamic
|
7411 |
|
|
;;
|
7412 |
|
|
|
7413 |
|
|
cygwin* | mingw* | pw32*)
|
7414 |
|
|
# When not using gcc, we currently assume that we are using
|
7415 |
|
|
# Microsoft Visual C++.
|
7416 |
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
7417 |
|
|
# no search path for DLLs.
|
7418 |
|
|
hardcode_libdir_flag_spec=' '
|
7419 |
|
|
allow_undefined_flag=unsupported
|
7420 |
|
|
# Tell ltmain to make .lib files, not .a files.
|
7421 |
|
|
libext=lib
|
7422 |
|
|
# Tell ltmain to make .dll files, not .so files.
|
7423 |
|
|
shrext_cmds=".dll"
|
7424 |
|
|
# FIXME: Setting linknames here is a bad hack.
|
7425 |
|
|
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
7426 |
|
|
# The linker will automatically build a .lib file if we build a DLL.
|
7427 |
|
|
old_archive_From_new_cmds='true'
|
7428 |
|
|
# FIXME: Should let the user specify the lib program.
|
7429 |
|
|
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
7430 |
|
|
fix_srcfile_path='`cygpath -w "$srcfile"`'
|
7431 |
|
|
enable_shared_with_static_runtimes=yes
|
7432 |
|
|
;;
|
7433 |
|
|
|
7434 |
|
|
darwin* | rhapsody*)
|
7435 |
|
|
case $host_os in
|
7436 |
|
|
rhapsody* | darwin1.[012])
|
7437 |
|
|
allow_undefined_flag='${wl}-undefined ${wl}suppress'
|
7438 |
|
|
;;
|
7439 |
|
|
*) # Darwin 1.3 on
|
7440 |
|
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
7441 |
|
|
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
7442 |
|
|
else
|
7443 |
|
|
case ${MACOSX_DEPLOYMENT_TARGET} in
|
7444 |
|
|
10.[012])
|
7445 |
|
|
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
7446 |
|
|
;;
|
7447 |
|
|
10.*)
|
7448 |
|
|
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
|
7449 |
|
|
;;
|
7450 |
|
|
esac
|
7451 |
|
|
fi
|
7452 |
|
|
;;
|
7453 |
|
|
esac
|
7454 |
|
|
archive_cmds_need_lc=no
|
7455 |
|
|
hardcode_direct=no
|
7456 |
|
|
hardcode_automatic=yes
|
7457 |
|
|
hardcode_shlibpath_var=unsupported
|
7458 |
|
|
whole_archive_flag_spec=''
|
7459 |
|
|
link_all_deplibs=yes
|
7460 |
|
|
if test "$GCC" = yes ; then
|
7461 |
|
|
output_verbose_link_cmd='echo'
|
7462 |
|
|
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
7463 |
|
|
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
7464 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
7465 |
|
|
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}'
|
7466 |
|
|
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}'
|
7467 |
|
|
else
|
7468 |
|
|
case $cc_basename in
|
7469 |
|
|
xlc*)
|
7470 |
|
|
output_verbose_link_cmd='echo'
|
7471 |
|
|
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
7472 |
|
|
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
7473 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
7474 |
|
|
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
7475 |
|
|
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}'
|
7476 |
|
|
;;
|
7477 |
|
|
*)
|
7478 |
|
|
ld_shlibs=no
|
7479 |
|
|
;;
|
7480 |
|
|
esac
|
7481 |
|
|
fi
|
7482 |
|
|
;;
|
7483 |
|
|
|
7484 |
|
|
dgux*)
|
7485 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7486 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
7487 |
|
|
hardcode_shlibpath_var=no
|
7488 |
|
|
;;
|
7489 |
|
|
|
7490 |
|
|
freebsd1*)
|
7491 |
|
|
ld_shlibs=no
|
7492 |
|
|
;;
|
7493 |
|
|
|
7494 |
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
7495 |
|
|
# support. Future versions do this automatically, but an explicit c++rt0.o
|
7496 |
|
|
# does not break anything, and helps significantly (at the cost of a little
|
7497 |
|
|
# extra space).
|
7498 |
|
|
freebsd2.2*)
|
7499 |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
7500 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
7501 |
|
|
hardcode_direct=yes
|
7502 |
|
|
hardcode_shlibpath_var=no
|
7503 |
|
|
;;
|
7504 |
|
|
|
7505 |
|
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
7506 |
|
|
freebsd2*)
|
7507 |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
7508 |
|
|
hardcode_direct=yes
|
7509 |
|
|
hardcode_minus_L=yes
|
7510 |
|
|
hardcode_shlibpath_var=no
|
7511 |
|
|
;;
|
7512 |
|
|
|
7513 |
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
7514 |
|
|
freebsd* | dragonfly*)
|
7515 |
|
|
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
7516 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
7517 |
|
|
hardcode_direct=yes
|
7518 |
|
|
hardcode_shlibpath_var=no
|
7519 |
|
|
;;
|
7520 |
|
|
|
7521 |
|
|
hpux9*)
|
7522 |
|
|
if test "$GCC" = yes; then
|
7523 |
|
|
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'
|
7524 |
|
|
else
|
7525 |
|
|
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'
|
7526 |
|
|
fi
|
7527 |
|
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
7528 |
|
|
hardcode_libdir_separator=:
|
7529 |
|
|
hardcode_direct=yes
|
7530 |
|
|
|
7531 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
7532 |
|
|
# but as the default location of the library.
|
7533 |
|
|
hardcode_minus_L=yes
|
7534 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
7535 |
|
|
;;
|
7536 |
|
|
|
7537 |
|
|
hpux10*)
|
7538 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
7539 |
|
|
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
7540 |
|
|
else
|
7541 |
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
7542 |
|
|
fi
|
7543 |
|
|
if test "$with_gnu_ld" = no; then
|
7544 |
|
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
7545 |
|
|
hardcode_libdir_separator=:
|
7546 |
|
|
|
7547 |
|
|
hardcode_direct=yes
|
7548 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
7549 |
|
|
|
7550 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
7551 |
|
|
# but as the default location of the library.
|
7552 |
|
|
hardcode_minus_L=yes
|
7553 |
|
|
fi
|
7554 |
|
|
;;
|
7555 |
|
|
|
7556 |
|
|
hpux11*)
|
7557 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
7558 |
|
|
case $host_cpu in
|
7559 |
|
|
hppa*64*)
|
7560 |
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7561 |
|
|
;;
|
7562 |
|
|
ia64*)
|
7563 |
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
7564 |
|
|
;;
|
7565 |
|
|
*)
|
7566 |
|
|
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
7567 |
|
|
;;
|
7568 |
|
|
esac
|
7569 |
|
|
else
|
7570 |
|
|
case $host_cpu in
|
7571 |
|
|
hppa*64*)
|
7572 |
|
|
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7573 |
|
|
;;
|
7574 |
|
|
ia64*)
|
7575 |
|
|
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
7576 |
|
|
;;
|
7577 |
|
|
*)
|
7578 |
|
|
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
7579 |
|
|
;;
|
7580 |
|
|
esac
|
7581 |
|
|
fi
|
7582 |
|
|
if test "$with_gnu_ld" = no; then
|
7583 |
|
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
7584 |
|
|
hardcode_libdir_separator=:
|
7585 |
|
|
|
7586 |
|
|
case $host_cpu in
|
7587 |
|
|
hppa*64*|ia64*)
|
7588 |
|
|
hardcode_libdir_flag_spec_ld='+b $libdir'
|
7589 |
|
|
hardcode_direct=no
|
7590 |
|
|
hardcode_shlibpath_var=no
|
7591 |
|
|
;;
|
7592 |
|
|
*)
|
7593 |
|
|
hardcode_direct=yes
|
7594 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
7595 |
|
|
|
7596 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
7597 |
|
|
# but as the default location of the library.
|
7598 |
|
|
hardcode_minus_L=yes
|
7599 |
|
|
;;
|
7600 |
|
|
esac
|
7601 |
|
|
fi
|
7602 |
|
|
;;
|
7603 |
|
|
|
7604 |
|
|
irix5* | irix6* | nonstopux*)
|
7605 |
|
|
if test "$GCC" = yes; then
|
7606 |
|
|
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'
|
7607 |
|
|
else
|
7608 |
|
|
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'
|
7609 |
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
7610 |
|
|
fi
|
7611 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
7612 |
|
|
hardcode_libdir_separator=:
|
7613 |
|
|
link_all_deplibs=yes
|
7614 |
|
|
;;
|
7615 |
|
|
|
7616 |
|
|
netbsd*)
|
7617 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
7618 |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
7619 |
|
|
else
|
7620 |
|
|
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
7621 |
|
|
fi
|
7622 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
7623 |
|
|
hardcode_direct=yes
|
7624 |
|
|
hardcode_shlibpath_var=no
|
7625 |
|
|
;;
|
7626 |
|
|
|
7627 |
|
|
newsos6)
|
7628 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7629 |
|
|
hardcode_direct=yes
|
7630 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
7631 |
|
|
hardcode_libdir_separator=:
|
7632 |
|
|
hardcode_shlibpath_var=no
|
7633 |
|
|
;;
|
7634 |
|
|
|
7635 |
|
|
openbsd*)
|
7636 |
|
|
if test -f /usr/libexec/ld.so; then
|
7637 |
|
|
hardcode_direct=yes
|
7638 |
|
|
hardcode_shlibpath_var=no
|
7639 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
7640 |
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
7641 |
|
|
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
7642 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
7643 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
7644 |
|
|
else
|
7645 |
|
|
case $host_os in
|
7646 |
|
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
7647 |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
7648 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
7649 |
|
|
;;
|
7650 |
|
|
*)
|
7651 |
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
7652 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
7653 |
|
|
;;
|
7654 |
|
|
esac
|
7655 |
|
|
fi
|
7656 |
|
|
else
|
7657 |
|
|
ld_shlibs=no
|
7658 |
|
|
fi
|
7659 |
|
|
;;
|
7660 |
|
|
|
7661 |
|
|
os2*)
|
7662 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
7663 |
|
|
hardcode_minus_L=yes
|
7664 |
|
|
allow_undefined_flag=unsupported
|
7665 |
|
|
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'
|
7666 |
|
|
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
7667 |
|
|
;;
|
7668 |
|
|
|
7669 |
|
|
osf3*)
|
7670 |
|
|
if test "$GCC" = yes; then
|
7671 |
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
7672 |
|
|
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'
|
7673 |
|
|
else
|
7674 |
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
7675 |
|
|
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'
|
7676 |
|
|
fi
|
7677 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
7678 |
|
|
hardcode_libdir_separator=:
|
7679 |
|
|
;;
|
7680 |
|
|
|
7681 |
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
7682 |
|
|
if test "$GCC" = yes; then
|
7683 |
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
7684 |
|
|
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'
|
7685 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
7686 |
|
|
else
|
7687 |
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
7688 |
|
|
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'
|
7689 |
|
|
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
7690 |
|
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
7691 |
|
|
|
7692 |
|
|
# Both c and cxx compiler support -rpath directly
|
7693 |
|
|
hardcode_libdir_flag_spec='-rpath $libdir'
|
7694 |
|
|
fi
|
7695 |
|
|
hardcode_libdir_separator=:
|
7696 |
|
|
;;
|
7697 |
|
|
|
7698 |
|
|
solaris*)
|
7699 |
|
|
no_undefined_flag=' -z text'
|
7700 |
|
|
if test "$GCC" = yes; then
|
7701 |
|
|
wlarc='${wl}'
|
7702 |
|
|
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7703 |
|
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
7704 |
|
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
7705 |
|
|
else
|
7706 |
|
|
wlarc=''
|
7707 |
|
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7708 |
|
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
7709 |
|
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
7710 |
|
|
fi
|
7711 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
7712 |
|
|
hardcode_shlibpath_var=no
|
7713 |
|
|
case $host_os in
|
7714 |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
7715 |
|
|
*)
|
7716 |
|
|
# The compiler driver will combine and reorder linker options,
|
7717 |
|
|
# but understands `-z linker_flag'. GCC discards it without `$wl',
|
7718 |
|
|
# but is careful enough not to reorder.
|
7719 |
|
|
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
7720 |
|
|
if test "$GCC" = yes; then
|
7721 |
|
|
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
7722 |
|
|
else
|
7723 |
|
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
7724 |
|
|
fi
|
7725 |
|
|
;;
|
7726 |
|
|
esac
|
7727 |
|
|
link_all_deplibs=yes
|
7728 |
|
|
;;
|
7729 |
|
|
|
7730 |
|
|
sunos4*)
|
7731 |
|
|
if test "x$host_vendor" = xsequent; then
|
7732 |
|
|
# Use $CC to link under sequent, because it throws in some extra .o
|
7733 |
|
|
# files that make .init and .fini sections work.
|
7734 |
|
|
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
7735 |
|
|
else
|
7736 |
|
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
7737 |
|
|
fi
|
7738 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
7739 |
|
|
hardcode_direct=yes
|
7740 |
|
|
hardcode_minus_L=yes
|
7741 |
|
|
hardcode_shlibpath_var=no
|
7742 |
|
|
;;
|
7743 |
|
|
|
7744 |
|
|
sysv4)
|
7745 |
|
|
case $host_vendor in
|
7746 |
|
|
sni)
|
7747 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7748 |
|
|
hardcode_direct=yes # is this really true???
|
7749 |
|
|
;;
|
7750 |
|
|
siemens)
|
7751 |
|
|
## LD is ld it makes a PLAMLIB
|
7752 |
|
|
## CC just makes a GrossModule.
|
7753 |
|
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
7754 |
|
|
reload_cmds='$CC -r -o $output$reload_objs'
|
7755 |
|
|
hardcode_direct=no
|
7756 |
|
|
;;
|
7757 |
|
|
motorola)
|
7758 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7759 |
|
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
7760 |
|
|
;;
|
7761 |
|
|
esac
|
7762 |
|
|
runpath_var='LD_RUN_PATH'
|
7763 |
|
|
hardcode_shlibpath_var=no
|
7764 |
|
|
;;
|
7765 |
|
|
|
7766 |
|
|
sysv4.3*)
|
7767 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7768 |
|
|
hardcode_shlibpath_var=no
|
7769 |
|
|
export_dynamic_flag_spec='-Bexport'
|
7770 |
|
|
;;
|
7771 |
|
|
|
7772 |
|
|
sysv4*MP*)
|
7773 |
|
|
if test -d /usr/nec; then
|
7774 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7775 |
|
|
hardcode_shlibpath_var=no
|
7776 |
|
|
runpath_var=LD_RUN_PATH
|
7777 |
|
|
hardcode_runpath_var=yes
|
7778 |
|
|
ld_shlibs=yes
|
7779 |
|
|
fi
|
7780 |
|
|
;;
|
7781 |
|
|
|
7782 |
|
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
7783 |
|
|
no_undefined_flag='${wl}-z,text'
|
7784 |
|
|
archive_cmds_need_lc=no
|
7785 |
|
|
hardcode_shlibpath_var=no
|
7786 |
|
|
runpath_var='LD_RUN_PATH'
|
7787 |
|
|
|
7788 |
|
|
if test "$GCC" = yes; then
|
7789 |
|
|
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7790 |
|
|
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7791 |
|
|
else
|
7792 |
|
|
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7793 |
|
|
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7794 |
|
|
fi
|
7795 |
|
|
;;
|
7796 |
|
|
|
7797 |
|
|
sysv5* | sco3.2v5* | sco5v6*)
|
7798 |
|
|
# Note: We can NOT use -z defs as we might desire, because we do not
|
7799 |
|
|
# link with -lc, and that would cause any symbols used from libc to
|
7800 |
|
|
# always be unresolved, which means just about no library would
|
7801 |
|
|
# ever link correctly. If we're not using GNU ld we use -z text
|
7802 |
|
|
# though, which does catch some bad symbols but isn't as heavy-handed
|
7803 |
|
|
# as -z defs.
|
7804 |
|
|
no_undefined_flag='${wl}-z,text'
|
7805 |
|
|
allow_undefined_flag='${wl}-z,nodefs'
|
7806 |
|
|
archive_cmds_need_lc=no
|
7807 |
|
|
hardcode_shlibpath_var=no
|
7808 |
|
|
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
7809 |
|
|
hardcode_libdir_separator=':'
|
7810 |
|
|
link_all_deplibs=yes
|
7811 |
|
|
export_dynamic_flag_spec='${wl}-Bexport'
|
7812 |
|
|
runpath_var='LD_RUN_PATH'
|
7813 |
|
|
|
7814 |
|
|
if test "$GCC" = yes; then
|
7815 |
|
|
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7816 |
|
|
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7817 |
|
|
else
|
7818 |
|
|
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7819 |
|
|
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7820 |
|
|
fi
|
7821 |
|
|
;;
|
7822 |
|
|
|
7823 |
|
|
uts4*)
|
7824 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7825 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
7826 |
|
|
hardcode_shlibpath_var=no
|
7827 |
|
|
;;
|
7828 |
|
|
|
7829 |
|
|
*)
|
7830 |
|
|
ld_shlibs=no
|
7831 |
|
|
;;
|
7832 |
|
|
esac
|
7833 |
|
|
fi
|
7834 |
|
|
|
7835 |
|
|
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
|
7836 |
|
|
echo "${ECHO_T}$ld_shlibs" >&6; }
|
7837 |
|
|
test "$ld_shlibs" = no && can_build_shared=no
|
7838 |
|
|
|
7839 |
|
|
#
|
7840 |
|
|
# Do we need to explicitly link libc?
|
7841 |
|
|
#
|
7842 |
|
|
case "x$archive_cmds_need_lc" in
|
7843 |
|
|
x|xyes)
|
7844 |
|
|
# Assume -lc should be added
|
7845 |
|
|
archive_cmds_need_lc=yes
|
7846 |
|
|
|
7847 |
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
7848 |
|
|
case $archive_cmds in
|
7849 |
|
|
*'~'*)
|
7850 |
|
|
# FIXME: we may have to deal with multi-command sequences.
|
7851 |
|
|
;;
|
7852 |
|
|
'$CC '*)
|
7853 |
|
|
# Test whether the compiler implicitly links with -lc since on some
|
7854 |
|
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
7855 |
|
|
# to ld, don't add -lc before -lgcc.
|
7856 |
|
|
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
7857 |
|
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
7858 |
|
|
$rm conftest*
|
7859 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
7860 |
|
|
|
7861 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
7862 |
|
|
(eval $ac_compile) 2>&5
|
7863 |
|
|
ac_status=$?
|
7864 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7865 |
|
|
(exit $ac_status); } 2>conftest.err; then
|
7866 |
|
|
soname=conftest
|
7867 |
|
|
lib=conftest
|
7868 |
|
|
libobjs=conftest.$ac_objext
|
7869 |
|
|
deplibs=
|
7870 |
|
|
wl=$lt_prog_compiler_wl
|
7871 |
|
|
pic_flag=$lt_prog_compiler_pic
|
7872 |
|
|
compiler_flags=-v
|
7873 |
|
|
linker_flags=-v
|
7874 |
|
|
verstring=
|
7875 |
|
|
output_objdir=.
|
7876 |
|
|
libname=conftest
|
7877 |
|
|
lt_save_allow_undefined_flag=$allow_undefined_flag
|
7878 |
|
|
allow_undefined_flag=
|
7879 |
|
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
7880 |
|
|
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
7881 |
|
|
ac_status=$?
|
7882 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7883 |
|
|
(exit $ac_status); }
|
7884 |
|
|
then
|
7885 |
|
|
archive_cmds_need_lc=no
|
7886 |
|
|
else
|
7887 |
|
|
archive_cmds_need_lc=yes
|
7888 |
|
|
fi
|
7889 |
|
|
allow_undefined_flag=$lt_save_allow_undefined_flag
|
7890 |
|
|
else
|
7891 |
|
|
cat conftest.err 1>&5
|
7892 |
|
|
fi
|
7893 |
|
|
$rm conftest*
|
7894 |
|
|
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
|
7895 |
|
|
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
|
7896 |
|
|
;;
|
7897 |
|
|
esac
|
7898 |
|
|
fi
|
7899 |
|
|
;;
|
7900 |
|
|
esac
|
7901 |
|
|
|
7902 |
|
|
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
7903 |
|
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
7904 |
|
|
library_names_spec=
|
7905 |
|
|
libname_spec='lib$name'
|
7906 |
|
|
soname_spec=
|
7907 |
|
|
shrext_cmds=".so"
|
7908 |
|
|
postinstall_cmds=
|
7909 |
|
|
postuninstall_cmds=
|
7910 |
|
|
finish_cmds=
|
7911 |
|
|
finish_eval=
|
7912 |
|
|
shlibpath_var=
|
7913 |
|
|
shlibpath_overrides_runpath=unknown
|
7914 |
|
|
version_type=none
|
7915 |
|
|
dynamic_linker="$host_os ld.so"
|
7916 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
7917 |
|
|
|
7918 |
|
|
if test "$GCC" = yes; then
|
7919 |
|
|
case $host_os in
|
7920 |
|
|
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
7921 |
|
|
*) lt_awk_arg="/^libraries:/" ;;
|
7922 |
|
|
esac
|
7923 |
|
|
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
7924 |
|
|
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
|
7925 |
|
|
# if the path contains ";" then we assume it to be the separator
|
7926 |
|
|
# otherwise default to the standard path separator (i.e. ":") - it is
|
7927 |
|
|
# assumed that no part of a normal pathname contains ";" but that should
|
7928 |
|
|
# okay in the real world where ";" in dirpaths is itself problematic.
|
7929 |
|
|
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
|
7930 |
|
|
else
|
7931 |
|
|
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
7932 |
|
|
fi
|
7933 |
|
|
# Ok, now we have the path, separated by spaces, we can step through it
|
7934 |
|
|
# and add multilib dir if necessary.
|
7935 |
|
|
lt_tmp_lt_search_path_spec=
|
7936 |
|
|
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
7937 |
|
|
for lt_sys_path in $lt_search_path_spec; do
|
7938 |
|
|
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
7939 |
|
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
7940 |
|
|
else
|
7941 |
|
|
test -d "$lt_sys_path" && \
|
7942 |
|
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
7943 |
|
|
fi
|
7944 |
|
|
done
|
7945 |
|
|
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
|
7946 |
|
|
BEGIN {RS=" "; FS="/|\n";} {
|
7947 |
|
|
lt_foo="";
|
7948 |
|
|
lt_count=0;
|
7949 |
|
|
for (lt_i = NF; lt_i > 0; lt_i--) {
|
7950 |
|
|
if ($lt_i != "" && $lt_i != ".") {
|
7951 |
|
|
if ($lt_i == "..") {
|
7952 |
|
|
lt_count++;
|
7953 |
|
|
} else {
|
7954 |
|
|
if (lt_count == 0) {
|
7955 |
|
|
lt_foo="/" $lt_i lt_foo;
|
7956 |
|
|
} else {
|
7957 |
|
|
lt_count--;
|
7958 |
|
|
}
|
7959 |
|
|
}
|
7960 |
|
|
}
|
7961 |
|
|
}
|
7962 |
|
|
if (lt_foo != "") { lt_freq[lt_foo]++; }
|
7963 |
|
|
if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
7964 |
|
|
}'`
|
7965 |
|
|
sys_lib_search_path_spec=`echo $lt_search_path_spec`
|
7966 |
|
|
else
|
7967 |
|
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
7968 |
|
|
fi
|
7969 |
|
|
need_lib_prefix=unknown
|
7970 |
|
|
hardcode_into_libs=no
|
7971 |
|
|
|
7972 |
|
|
# when you set need_version to no, make sure it does not cause -set_version
|
7973 |
|
|
# flags to be left without arguments
|
7974 |
|
|
need_version=unknown
|
7975 |
|
|
|
7976 |
|
|
case $host_os in
|
7977 |
|
|
aix3*)
|
7978 |
|
|
version_type=linux
|
7979 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
7980 |
|
|
shlibpath_var=LIBPATH
|
7981 |
|
|
|
7982 |
|
|
# AIX 3 has no versioning support, so we append a major version to the name.
|
7983 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
7984 |
|
|
;;
|
7985 |
|
|
|
7986 |
|
|
aix4* | aix5*)
|
7987 |
|
|
version_type=linux
|
7988 |
|
|
need_lib_prefix=no
|
7989 |
|
|
need_version=no
|
7990 |
|
|
hardcode_into_libs=yes
|
7991 |
|
|
if test "$host_cpu" = ia64; then
|
7992 |
|
|
# AIX 5 supports IA64
|
7993 |
|
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
7994 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
7995 |
|
|
else
|
7996 |
|
|
# With GCC up to 2.95.x, collect2 would create an import file
|
7997 |
|
|
# for dependence libraries. The import file would start with
|
7998 |
|
|
# the line `#! .'. This would cause the generated library to
|
7999 |
|
|
# depend on `.', always an invalid library. This was fixed in
|
8000 |
|
|
# development snapshots of GCC prior to 3.0.
|
8001 |
|
|
case $host_os in
|
8002 |
|
|
aix4 | aix4.[01] | aix4.[01].*)
|
8003 |
|
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
8004 |
|
|
echo ' yes '
|
8005 |
|
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
8006 |
|
|
:
|
8007 |
|
|
else
|
8008 |
|
|
can_build_shared=no
|
8009 |
|
|
fi
|
8010 |
|
|
;;
|
8011 |
|
|
esac
|
8012 |
|
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
8013 |
|
|
# soname into executable. Probably we can add versioning support to
|
8014 |
|
|
# collect2, so additional links can be useful in future.
|
8015 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
8016 |
|
|
# If using run time linking (on AIX 4.2 or later) use lib.so
|
8017 |
|
|
# instead of lib.a to let people know that these are not
|
8018 |
|
|
# typical AIX shared libraries.
|
8019 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8020 |
|
|
else
|
8021 |
|
|
# We preserve .a as extension for shared libraries through AIX4.2
|
8022 |
|
|
# and later when we are not doing run time linking.
|
8023 |
|
|
library_names_spec='${libname}${release}.a $libname.a'
|
8024 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8025 |
|
|
fi
|
8026 |
|
|
shlibpath_var=LIBPATH
|
8027 |
|
|
fi
|
8028 |
|
|
;;
|
8029 |
|
|
|
8030 |
|
|
amigaos*)
|
8031 |
|
|
library_names_spec='$libname.ixlibrary $libname.a'
|
8032 |
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
8033 |
|
|
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'
|
8034 |
|
|
;;
|
8035 |
|
|
|
8036 |
|
|
beos*)
|
8037 |
|
|
library_names_spec='${libname}${shared_ext}'
|
8038 |
|
|
dynamic_linker="$host_os ld.so"
|
8039 |
|
|
shlibpath_var=LIBRARY_PATH
|
8040 |
|
|
;;
|
8041 |
|
|
|
8042 |
|
|
bsdi[45]*)
|
8043 |
|
|
version_type=linux
|
8044 |
|
|
need_version=no
|
8045 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8046 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8047 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
8048 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8049 |
|
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
8050 |
|
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
8051 |
|
|
# the default ld.so.conf also contains /usr/contrib/lib and
|
8052 |
|
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
8053 |
|
|
# libtool to hard-code these into programs
|
8054 |
|
|
;;
|
8055 |
|
|
|
8056 |
|
|
cygwin* | mingw* | pw32*)
|
8057 |
|
|
version_type=windows
|
8058 |
|
|
shrext_cmds=".dll"
|
8059 |
|
|
need_version=no
|
8060 |
|
|
need_lib_prefix=no
|
8061 |
|
|
|
8062 |
|
|
case $GCC,$host_os in
|
8063 |
|
|
yes,cygwin* | yes,mingw* | yes,pw32*)
|
8064 |
|
|
library_names_spec='$libname.dll.a'
|
8065 |
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
8066 |
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
8067 |
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
8068 |
|
|
dldir=$destdir/`dirname \$dlpath`~
|
8069 |
|
|
test -d \$dldir || mkdir -p \$dldir~
|
8070 |
|
|
$install_prog $dir/$dlname \$dldir/$dlname~
|
8071 |
|
|
chmod a+x \$dldir/$dlname'
|
8072 |
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
8073 |
|
|
dlpath=$dir/\$dldll~
|
8074 |
|
|
$rm \$dlpath'
|
8075 |
|
|
shlibpath_overrides_runpath=yes
|
8076 |
|
|
|
8077 |
|
|
case $host_os in
|
8078 |
|
|
cygwin*)
|
8079 |
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
8080 |
|
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
8081 |
|
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
8082 |
|
|
;;
|
8083 |
|
|
mingw*)
|
8084 |
|
|
# MinGW DLLs use traditional 'lib' prefix
|
8085 |
|
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
8086 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
8087 |
|
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
8088 |
|
|
# It is most probably a Windows format PATH printed by
|
8089 |
|
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
8090 |
|
|
# path with ; separators, and with drive letters. We can handle the
|
8091 |
|
|
# drive letters (cygwin fileutils understands them), so leave them,
|
8092 |
|
|
# especially as we might pass files found there to a mingw objdump,
|
8093 |
|
|
# which wouldn't understand a cygwinified path. Ahh.
|
8094 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
8095 |
|
|
else
|
8096 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
8097 |
|
|
fi
|
8098 |
|
|
;;
|
8099 |
|
|
pw32*)
|
8100 |
|
|
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
8101 |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
8102 |
|
|
;;
|
8103 |
|
|
esac
|
8104 |
|
|
;;
|
8105 |
|
|
|
8106 |
|
|
*)
|
8107 |
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
8108 |
|
|
;;
|
8109 |
|
|
esac
|
8110 |
|
|
dynamic_linker='Win32 ld.exe'
|
8111 |
|
|
# FIXME: first we should search . and the directory the executable is in
|
8112 |
|
|
shlibpath_var=PATH
|
8113 |
|
|
;;
|
8114 |
|
|
|
8115 |
|
|
darwin* | rhapsody*)
|
8116 |
|
|
dynamic_linker="$host_os dyld"
|
8117 |
|
|
version_type=darwin
|
8118 |
|
|
need_lib_prefix=no
|
8119 |
|
|
need_version=no
|
8120 |
|
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
8121 |
|
|
soname_spec='${libname}${release}${major}$shared_ext'
|
8122 |
|
|
shlibpath_overrides_runpath=yes
|
8123 |
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
8124 |
|
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
8125 |
|
|
|
8126 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
8127 |
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
8128 |
|
|
;;
|
8129 |
|
|
|
8130 |
|
|
dgux*)
|
8131 |
|
|
version_type=linux
|
8132 |
|
|
need_lib_prefix=no
|
8133 |
|
|
need_version=no
|
8134 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
8135 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8136 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8137 |
|
|
;;
|
8138 |
|
|
|
8139 |
|
|
freebsd1*)
|
8140 |
|
|
dynamic_linker=no
|
8141 |
|
|
;;
|
8142 |
|
|
|
8143 |
|
|
freebsd* | dragonfly*)
|
8144 |
|
|
# DragonFly does not have aout. When/if they implement a new
|
8145 |
|
|
# versioning mechanism, adjust this.
|
8146 |
|
|
if test -x /usr/bin/objformat; then
|
8147 |
|
|
objformat=`/usr/bin/objformat`
|
8148 |
|
|
else
|
8149 |
|
|
case $host_os in
|
8150 |
|
|
freebsd[123]*) objformat=aout ;;
|
8151 |
|
|
*) objformat=elf ;;
|
8152 |
|
|
esac
|
8153 |
|
|
fi
|
8154 |
|
|
version_type=freebsd-$objformat
|
8155 |
|
|
case $version_type in
|
8156 |
|
|
freebsd-elf*)
|
8157 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
8158 |
|
|
need_version=no
|
8159 |
|
|
need_lib_prefix=no
|
8160 |
|
|
;;
|
8161 |
|
|
freebsd-*)
|
8162 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
8163 |
|
|
need_version=yes
|
8164 |
|
|
;;
|
8165 |
|
|
esac
|
8166 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8167 |
|
|
case $host_os in
|
8168 |
|
|
freebsd2*)
|
8169 |
|
|
shlibpath_overrides_runpath=yes
|
8170 |
|
|
;;
|
8171 |
|
|
freebsd3.[01]* | freebsdelf3.[01]*)
|
8172 |
|
|
shlibpath_overrides_runpath=yes
|
8173 |
|
|
hardcode_into_libs=yes
|
8174 |
|
|
;;
|
8175 |
|
|
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
8176 |
|
|
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
8177 |
|
|
shlibpath_overrides_runpath=no
|
8178 |
|
|
hardcode_into_libs=yes
|
8179 |
|
|
;;
|
8180 |
|
|
*) # from 4.6 on, and DragonFly
|
8181 |
|
|
shlibpath_overrides_runpath=yes
|
8182 |
|
|
hardcode_into_libs=yes
|
8183 |
|
|
;;
|
8184 |
|
|
esac
|
8185 |
|
|
;;
|
8186 |
|
|
|
8187 |
|
|
gnu*)
|
8188 |
|
|
version_type=linux
|
8189 |
|
|
need_lib_prefix=no
|
8190 |
|
|
need_version=no
|
8191 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
8192 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8193 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8194 |
|
|
hardcode_into_libs=yes
|
8195 |
|
|
;;
|
8196 |
|
|
|
8197 |
|
|
hpux9* | hpux10* | hpux11*)
|
8198 |
|
|
# Give a soname corresponding to the major version so that dld.sl refuses to
|
8199 |
|
|
# link against other versions.
|
8200 |
|
|
version_type=sunos
|
8201 |
|
|
need_lib_prefix=no
|
8202 |
|
|
need_version=no
|
8203 |
|
|
case $host_cpu in
|
8204 |
|
|
ia64*)
|
8205 |
|
|
shrext_cmds='.so'
|
8206 |
|
|
hardcode_into_libs=yes
|
8207 |
|
|
dynamic_linker="$host_os dld.so"
|
8208 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8209 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
8210 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8211 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8212 |
|
|
if test "X$HPUX_IA64_MODE" = X32; then
|
8213 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
8214 |
|
|
else
|
8215 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
8216 |
|
|
fi
|
8217 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
8218 |
|
|
;;
|
8219 |
|
|
hppa*64*)
|
8220 |
|
|
shrext_cmds='.sl'
|
8221 |
|
|
hardcode_into_libs=yes
|
8222 |
|
|
dynamic_linker="$host_os dld.sl"
|
8223 |
|
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
8224 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
8225 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8226 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8227 |
|
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
8228 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
8229 |
|
|
;;
|
8230 |
|
|
*)
|
8231 |
|
|
shrext_cmds='.sl'
|
8232 |
|
|
dynamic_linker="$host_os dld.sl"
|
8233 |
|
|
shlibpath_var=SHLIB_PATH
|
8234 |
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
8235 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8236 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8237 |
|
|
;;
|
8238 |
|
|
esac
|
8239 |
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
8240 |
|
|
postinstall_cmds='chmod 555 $lib'
|
8241 |
|
|
;;
|
8242 |
|
|
|
8243 |
|
|
interix[3-9]*)
|
8244 |
|
|
version_type=linux
|
8245 |
|
|
need_lib_prefix=no
|
8246 |
|
|
need_version=no
|
8247 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
8248 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8249 |
|
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
8250 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8251 |
|
|
shlibpath_overrides_runpath=no
|
8252 |
|
|
hardcode_into_libs=yes
|
8253 |
|
|
;;
|
8254 |
|
|
|
8255 |
|
|
irix5* | irix6* | nonstopux*)
|
8256 |
|
|
case $host_os in
|
8257 |
|
|
nonstopux*) version_type=nonstopux ;;
|
8258 |
|
|
*)
|
8259 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
8260 |
|
|
version_type=linux
|
8261 |
|
|
else
|
8262 |
|
|
version_type=irix
|
8263 |
|
|
fi ;;
|
8264 |
|
|
esac
|
8265 |
|
|
need_lib_prefix=no
|
8266 |
|
|
need_version=no
|
8267 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8268 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
8269 |
|
|
case $host_os in
|
8270 |
|
|
irix5* | nonstopux*)
|
8271 |
|
|
libsuff= shlibsuff=
|
8272 |
|
|
;;
|
8273 |
|
|
*)
|
8274 |
|
|
case $LD in # libtool.m4 will add one of these switches to LD
|
8275 |
|
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
8276 |
|
|
libsuff= shlibsuff= libmagic=32-bit;;
|
8277 |
|
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
8278 |
|
|
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
8279 |
|
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
8280 |
|
|
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
8281 |
|
|
*) libsuff= shlibsuff= libmagic=never-match;;
|
8282 |
|
|
esac
|
8283 |
|
|
;;
|
8284 |
|
|
esac
|
8285 |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
8286 |
|
|
shlibpath_overrides_runpath=no
|
8287 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
8288 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
8289 |
|
|
hardcode_into_libs=yes
|
8290 |
|
|
;;
|
8291 |
|
|
|
8292 |
|
|
# No shared lib support for Linux oldld, aout, or coff.
|
8293 |
|
|
linux*oldld* | linux*aout* | linux*coff*)
|
8294 |
|
|
dynamic_linker=no
|
8295 |
|
|
;;
|
8296 |
|
|
|
8297 |
|
|
# This must be Linux ELF.
|
8298 |
|
|
linux* | k*bsd*-gnu)
|
8299 |
|
|
version_type=linux
|
8300 |
|
|
need_lib_prefix=no
|
8301 |
|
|
need_version=no
|
8302 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8303 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8304 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
8305 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8306 |
|
|
shlibpath_overrides_runpath=no
|
8307 |
|
|
# This implies no fast_install, which is unacceptable.
|
8308 |
|
|
# Some rework will be needed to allow for fast_install
|
8309 |
|
|
# before this can be enabled.
|
8310 |
|
|
hardcode_into_libs=yes
|
8311 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
8312 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
8313 |
|
|
|
8314 |
|
|
# Append ld.so.conf contents to the search path
|
8315 |
|
|
if test -f /etc/ld.so.conf; then
|
8316 |
|
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
8317 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
8318 |
|
|
fi
|
8319 |
|
|
|
8320 |
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
8321 |
|
|
# powerpc, because MkLinux only supported shared libraries with the
|
8322 |
|
|
# GNU dynamic linker. Since this was broken with cross compilers,
|
8323 |
|
|
# most powerpc-linux boxes support dynamic linking these days and
|
8324 |
|
|
# people can always --disable-shared, the test was removed, and we
|
8325 |
|
|
# assume the GNU/Linux dynamic linker is in use.
|
8326 |
|
|
dynamic_linker='GNU/Linux ld.so'
|
8327 |
|
|
;;
|
8328 |
|
|
|
8329 |
|
|
netbsd*)
|
8330 |
|
|
version_type=sunos
|
8331 |
|
|
need_lib_prefix=no
|
8332 |
|
|
need_version=no
|
8333 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
8334 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
8335 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
8336 |
|
|
dynamic_linker='NetBSD (a.out) ld.so'
|
8337 |
|
|
else
|
8338 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
8339 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8340 |
|
|
dynamic_linker='NetBSD ld.elf_so'
|
8341 |
|
|
fi
|
8342 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8343 |
|
|
shlibpath_overrides_runpath=yes
|
8344 |
|
|
hardcode_into_libs=yes
|
8345 |
|
|
;;
|
8346 |
|
|
|
8347 |
|
|
newsos6)
|
8348 |
|
|
version_type=linux
|
8349 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8350 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8351 |
|
|
shlibpath_overrides_runpath=yes
|
8352 |
|
|
;;
|
8353 |
|
|
|
8354 |
|
|
nto-qnx*)
|
8355 |
|
|
version_type=linux
|
8356 |
|
|
need_lib_prefix=no
|
8357 |
|
|
need_version=no
|
8358 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8359 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8360 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8361 |
|
|
shlibpath_overrides_runpath=yes
|
8362 |
|
|
;;
|
8363 |
|
|
|
8364 |
|
|
openbsd*)
|
8365 |
|
|
version_type=sunos
|
8366 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib"
|
8367 |
|
|
need_lib_prefix=no
|
8368 |
|
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
8369 |
|
|
case $host_os in
|
8370 |
|
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
8371 |
|
|
*) need_version=no ;;
|
8372 |
|
|
esac
|
8373 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
8374 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
8375 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8376 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
8377 |
|
|
case $host_os in
|
8378 |
|
|
openbsd2.[89] | openbsd2.[89].*)
|
8379 |
|
|
shlibpath_overrides_runpath=no
|
8380 |
|
|
;;
|
8381 |
|
|
*)
|
8382 |
|
|
shlibpath_overrides_runpath=yes
|
8383 |
|
|
;;
|
8384 |
|
|
esac
|
8385 |
|
|
else
|
8386 |
|
|
shlibpath_overrides_runpath=yes
|
8387 |
|
|
fi
|
8388 |
|
|
;;
|
8389 |
|
|
|
8390 |
|
|
os2*)
|
8391 |
|
|
libname_spec='$name'
|
8392 |
|
|
shrext_cmds=".dll"
|
8393 |
|
|
need_lib_prefix=no
|
8394 |
|
|
library_names_spec='$libname${shared_ext} $libname.a'
|
8395 |
|
|
dynamic_linker='OS/2 ld.exe'
|
8396 |
|
|
shlibpath_var=LIBPATH
|
8397 |
|
|
;;
|
8398 |
|
|
|
8399 |
|
|
osf3* | osf4* | osf5*)
|
8400 |
|
|
version_type=osf
|
8401 |
|
|
need_lib_prefix=no
|
8402 |
|
|
need_version=no
|
8403 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8404 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8405 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8406 |
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
8407 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
8408 |
|
|
;;
|
8409 |
|
|
|
8410 |
|
|
rdos*)
|
8411 |
|
|
dynamic_linker=no
|
8412 |
|
|
;;
|
8413 |
|
|
|
8414 |
|
|
solaris*)
|
8415 |
|
|
version_type=linux
|
8416 |
|
|
need_lib_prefix=no
|
8417 |
|
|
need_version=no
|
8418 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8419 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8420 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8421 |
|
|
shlibpath_overrides_runpath=yes
|
8422 |
|
|
hardcode_into_libs=yes
|
8423 |
|
|
# ldd complains unless libraries are executable
|
8424 |
|
|
postinstall_cmds='chmod +x $lib'
|
8425 |
|
|
;;
|
8426 |
|
|
|
8427 |
|
|
sunos4*)
|
8428 |
|
|
version_type=sunos
|
8429 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
8430 |
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
8431 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8432 |
|
|
shlibpath_overrides_runpath=yes
|
8433 |
|
|
if test "$with_gnu_ld" = yes; then
|
8434 |
|
|
need_lib_prefix=no
|
8435 |
|
|
fi
|
8436 |
|
|
need_version=yes
|
8437 |
|
|
;;
|
8438 |
|
|
|
8439 |
|
|
sysv4 | sysv4.3*)
|
8440 |
|
|
version_type=linux
|
8441 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8442 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8443 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8444 |
|
|
case $host_vendor in
|
8445 |
|
|
sni)
|
8446 |
|
|
shlibpath_overrides_runpath=no
|
8447 |
|
|
need_lib_prefix=no
|
8448 |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
8449 |
|
|
runpath_var=LD_RUN_PATH
|
8450 |
|
|
;;
|
8451 |
|
|
siemens)
|
8452 |
|
|
need_lib_prefix=no
|
8453 |
|
|
;;
|
8454 |
|
|
motorola)
|
8455 |
|
|
need_lib_prefix=no
|
8456 |
|
|
need_version=no
|
8457 |
|
|
shlibpath_overrides_runpath=no
|
8458 |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
8459 |
|
|
;;
|
8460 |
|
|
esac
|
8461 |
|
|
;;
|
8462 |
|
|
|
8463 |
|
|
sysv4*MP*)
|
8464 |
|
|
if test -d /usr/nec ;then
|
8465 |
|
|
version_type=linux
|
8466 |
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
8467 |
|
|
soname_spec='$libname${shared_ext}.$major'
|
8468 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8469 |
|
|
fi
|
8470 |
|
|
;;
|
8471 |
|
|
|
8472 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
8473 |
|
|
version_type=freebsd-elf
|
8474 |
|
|
need_lib_prefix=no
|
8475 |
|
|
need_version=no
|
8476 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
8477 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8478 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8479 |
|
|
hardcode_into_libs=yes
|
8480 |
|
|
if test "$with_gnu_ld" = yes; then
|
8481 |
|
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
8482 |
|
|
shlibpath_overrides_runpath=no
|
8483 |
|
|
else
|
8484 |
|
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
8485 |
|
|
shlibpath_overrides_runpath=yes
|
8486 |
|
|
case $host_os in
|
8487 |
|
|
sco3.2v5*)
|
8488 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
8489 |
|
|
;;
|
8490 |
|
|
esac
|
8491 |
|
|
fi
|
8492 |
|
|
sys_lib_dlsearch_path_spec='/usr/lib'
|
8493 |
|
|
;;
|
8494 |
|
|
|
8495 |
|
|
uts4*)
|
8496 |
|
|
version_type=linux
|
8497 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8498 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8499 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8500 |
|
|
;;
|
8501 |
|
|
|
8502 |
|
|
*)
|
8503 |
|
|
dynamic_linker=no
|
8504 |
|
|
;;
|
8505 |
|
|
esac
|
8506 |
|
|
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
8507 |
|
|
echo "${ECHO_T}$dynamic_linker" >&6; }
|
8508 |
|
|
test "$dynamic_linker" = no && can_build_shared=no
|
8509 |
|
|
|
8510 |
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
8511 |
|
|
if test "$GCC" = yes; then
|
8512 |
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
8513 |
|
|
fi
|
8514 |
|
|
|
8515 |
|
|
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
8516 |
|
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
8517 |
|
|
hardcode_action=
|
8518 |
|
|
if test -n "$hardcode_libdir_flag_spec" || \
|
8519 |
|
|
test -n "$runpath_var" || \
|
8520 |
|
|
test "X$hardcode_automatic" = "Xyes" ; then
|
8521 |
|
|
|
8522 |
|
|
# We can hardcode non-existant directories.
|
8523 |
|
|
if test "$hardcode_direct" != no &&
|
8524 |
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
8525 |
|
|
# have to relink, otherwise we might link with an installed library
|
8526 |
|
|
# when we should be linking with a yet-to-be-installed one
|
8527 |
|
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
|
8528 |
|
|
test "$hardcode_minus_L" != no; then
|
8529 |
|
|
# Linking always hardcodes the temporary library directory.
|
8530 |
|
|
hardcode_action=relink
|
8531 |
|
|
else
|
8532 |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
8533 |
|
|
hardcode_action=immediate
|
8534 |
|
|
fi
|
8535 |
|
|
else
|
8536 |
|
|
# We cannot hardcode anything, or else we can only hardcode existing
|
8537 |
|
|
# directories.
|
8538 |
|
|
hardcode_action=unsupported
|
8539 |
|
|
fi
|
8540 |
|
|
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
|
8541 |
|
|
echo "${ECHO_T}$hardcode_action" >&6; }
|
8542 |
|
|
|
8543 |
|
|
if test "$hardcode_action" = relink; then
|
8544 |
|
|
# Fast installation is not supported
|
8545 |
|
|
enable_fast_install=no
|
8546 |
|
|
elif test "$shlibpath_overrides_runpath" = yes ||
|
8547 |
|
|
test "$enable_shared" = no; then
|
8548 |
|
|
# Fast installation is not necessary
|
8549 |
|
|
enable_fast_install=needless
|
8550 |
|
|
fi
|
8551 |
|
|
|
8552 |
|
|
striplib=
|
8553 |
|
|
old_striplib=
|
8554 |
|
|
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
8555 |
|
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
|
8556 |
|
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
8557 |
|
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
8558 |
|
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
8559 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
8560 |
|
|
echo "${ECHO_T}yes" >&6; }
|
8561 |
|
|
else
|
8562 |
|
|
# FIXME - insert some real tests, host_os isn't really good enough
|
8563 |
|
|
case $host_os in
|
8564 |
|
|
darwin*)
|
8565 |
|
|
if test -n "$STRIP" ; then
|
8566 |
|
|
striplib="$STRIP -x"
|
8567 |
|
|
old_striplib="$STRIP -S"
|
8568 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
8569 |
|
|
echo "${ECHO_T}yes" >&6; }
|
8570 |
|
|
else
|
8571 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
8572 |
|
|
echo "${ECHO_T}no" >&6; }
|
8573 |
|
|
fi
|
8574 |
|
|
;;
|
8575 |
|
|
*)
|
8576 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
8577 |
|
|
echo "${ECHO_T}no" >&6; }
|
8578 |
|
|
;;
|
8579 |
|
|
esac
|
8580 |
|
|
fi
|
8581 |
|
|
|
8582 |
|
|
if test "x$enable_dlopen" != xyes; then
|
8583 |
|
|
enable_dlopen=unknown
|
8584 |
|
|
enable_dlopen_self=unknown
|
8585 |
|
|
enable_dlopen_self_static=unknown
|
8586 |
|
|
else
|
8587 |
|
|
lt_cv_dlopen=no
|
8588 |
|
|
lt_cv_dlopen_libs=
|
8589 |
|
|
|
8590 |
|
|
case $host_os in
|
8591 |
|
|
beos*)
|
8592 |
|
|
lt_cv_dlopen="load_add_on"
|
8593 |
|
|
lt_cv_dlopen_libs=
|
8594 |
|
|
lt_cv_dlopen_self=yes
|
8595 |
|
|
;;
|
8596 |
|
|
|
8597 |
|
|
mingw* | pw32*)
|
8598 |
|
|
lt_cv_dlopen="LoadLibrary"
|
8599 |
|
|
lt_cv_dlopen_libs=
|
8600 |
|
|
;;
|
8601 |
|
|
|
8602 |
|
|
cygwin*)
|
8603 |
|
|
lt_cv_dlopen="dlopen"
|
8604 |
|
|
lt_cv_dlopen_libs=
|
8605 |
|
|
;;
|
8606 |
|
|
|
8607 |
|
|
darwin*)
|
8608 |
|
|
# if libdl is installed we need to link against it
|
8609 |
|
|
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
8610 |
|
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
|
8611 |
|
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
8612 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8613 |
|
|
else
|
8614 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
8615 |
|
|
LIBS="-ldl $LIBS"
|
8616 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8617 |
|
|
/* confdefs.h. */
|
8618 |
|
|
_ACEOF
|
8619 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8620 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8621 |
|
|
/* end confdefs.h. */
|
8622 |
|
|
|
8623 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
8624 |
|
|
Use char because int might match the return type of a GCC
|
8625 |
|
|
builtin and then its argument prototype would still apply. */
|
8626 |
|
|
#ifdef __cplusplus
|
8627 |
|
|
extern "C"
|
8628 |
|
|
#endif
|
8629 |
|
|
char dlopen ();
|
8630 |
|
|
int
|
8631 |
|
|
main ()
|
8632 |
|
|
{
|
8633 |
|
|
return dlopen ();
|
8634 |
|
|
;
|
8635 |
|
|
return 0;
|
8636 |
|
|
}
|
8637 |
|
|
_ACEOF
|
8638 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8639 |
|
|
if { (ac_try="$ac_link"
|
8640 |
|
|
case "(($ac_try" in
|
8641 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
8642 |
|
|
*) ac_try_echo=$ac_try;;
|
8643 |
|
|
esac
|
8644 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
8645 |
|
|
(eval "$ac_link") 2>conftest.er1
|
8646 |
|
|
ac_status=$?
|
8647 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8648 |
|
|
rm -f conftest.er1
|
8649 |
|
|
cat conftest.err >&5
|
8650 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8651 |
|
|
(exit $ac_status); } && {
|
8652 |
|
|
test -z "$ac_c_werror_flag" ||
|
8653 |
|
|
test ! -s conftest.err
|
8654 |
|
|
} && test -s conftest$ac_exeext &&
|
8655 |
|
|
$as_test_x conftest$ac_exeext; then
|
8656 |
|
|
ac_cv_lib_dl_dlopen=yes
|
8657 |
|
|
else
|
8658 |
|
|
echo "$as_me: failed program was:" >&5
|
8659 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8660 |
|
|
|
8661 |
|
|
ac_cv_lib_dl_dlopen=no
|
8662 |
|
|
fi
|
8663 |
|
|
|
8664 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
8665 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8666 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
8667 |
|
|
fi
|
8668 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
8669 |
|
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
|
8670 |
|
|
if test $ac_cv_lib_dl_dlopen = yes; then
|
8671 |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
8672 |
|
|
else
|
8673 |
|
|
|
8674 |
|
|
lt_cv_dlopen="dyld"
|
8675 |
|
|
lt_cv_dlopen_libs=
|
8676 |
|
|
lt_cv_dlopen_self=yes
|
8677 |
|
|
|
8678 |
|
|
fi
|
8679 |
|
|
|
8680 |
|
|
;;
|
8681 |
|
|
|
8682 |
|
|
*)
|
8683 |
|
|
{ echo "$as_me:$LINENO: checking for shl_load" >&5
|
8684 |
|
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
|
8685 |
|
|
if test "${ac_cv_func_shl_load+set}" = set; then
|
8686 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8687 |
|
|
else
|
8688 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8689 |
|
|
/* confdefs.h. */
|
8690 |
|
|
_ACEOF
|
8691 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8692 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8693 |
|
|
/* end confdefs.h. */
|
8694 |
|
|
/* Define shl_load to an innocuous variant, in case declares shl_load.
|
8695 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
8696 |
|
|
#define shl_load innocuous_shl_load
|
8697 |
|
|
|
8698 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
8699 |
|
|
which can conflict with char shl_load (); below.
|
8700 |
|
|
Prefer to if __STDC__ is defined, since
|
8701 |
|
|
exists even on freestanding compilers. */
|
8702 |
|
|
|
8703 |
|
|
#ifdef __STDC__
|
8704 |
|
|
# include
|
8705 |
|
|
#else
|
8706 |
|
|
# include
|
8707 |
|
|
#endif
|
8708 |
|
|
|
8709 |
|
|
#undef shl_load
|
8710 |
|
|
|
8711 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
8712 |
|
|
Use char because int might match the return type of a GCC
|
8713 |
|
|
builtin and then its argument prototype would still apply. */
|
8714 |
|
|
#ifdef __cplusplus
|
8715 |
|
|
extern "C"
|
8716 |
|
|
#endif
|
8717 |
|
|
char shl_load ();
|
8718 |
|
|
/* The GNU C library defines this for functions which it implements
|
8719 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
8720 |
|
|
something starting with __ and the normal name is an alias. */
|
8721 |
|
|
#if defined __stub_shl_load || defined __stub___shl_load
|
8722 |
|
|
choke me
|
8723 |
|
|
#endif
|
8724 |
|
|
|
8725 |
|
|
int
|
8726 |
|
|
main ()
|
8727 |
|
|
{
|
8728 |
|
|
return shl_load ();
|
8729 |
|
|
;
|
8730 |
|
|
return 0;
|
8731 |
|
|
}
|
8732 |
|
|
_ACEOF
|
8733 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8734 |
|
|
if { (ac_try="$ac_link"
|
8735 |
|
|
case "(($ac_try" in
|
8736 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
8737 |
|
|
*) ac_try_echo=$ac_try;;
|
8738 |
|
|
esac
|
8739 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
8740 |
|
|
(eval "$ac_link") 2>conftest.er1
|
8741 |
|
|
ac_status=$?
|
8742 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8743 |
|
|
rm -f conftest.er1
|
8744 |
|
|
cat conftest.err >&5
|
8745 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8746 |
|
|
(exit $ac_status); } && {
|
8747 |
|
|
test -z "$ac_c_werror_flag" ||
|
8748 |
|
|
test ! -s conftest.err
|
8749 |
|
|
} && test -s conftest$ac_exeext &&
|
8750 |
|
|
$as_test_x conftest$ac_exeext; then
|
8751 |
|
|
ac_cv_func_shl_load=yes
|
8752 |
|
|
else
|
8753 |
|
|
echo "$as_me: failed program was:" >&5
|
8754 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8755 |
|
|
|
8756 |
|
|
ac_cv_func_shl_load=no
|
8757 |
|
|
fi
|
8758 |
|
|
|
8759 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
8760 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8761 |
|
|
fi
|
8762 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
|
8763 |
|
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
|
8764 |
|
|
if test $ac_cv_func_shl_load = yes; then
|
8765 |
|
|
lt_cv_dlopen="shl_load"
|
8766 |
|
|
else
|
8767 |
|
|
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
|
8768 |
|
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
|
8769 |
|
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
|
8770 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8771 |
|
|
else
|
8772 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
8773 |
|
|
LIBS="-ldld $LIBS"
|
8774 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8775 |
|
|
/* confdefs.h. */
|
8776 |
|
|
_ACEOF
|
8777 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8778 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8779 |
|
|
/* end confdefs.h. */
|
8780 |
|
|
|
8781 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
8782 |
|
|
Use char because int might match the return type of a GCC
|
8783 |
|
|
builtin and then its argument prototype would still apply. */
|
8784 |
|
|
#ifdef __cplusplus
|
8785 |
|
|
extern "C"
|
8786 |
|
|
#endif
|
8787 |
|
|
char shl_load ();
|
8788 |
|
|
int
|
8789 |
|
|
main ()
|
8790 |
|
|
{
|
8791 |
|
|
return shl_load ();
|
8792 |
|
|
;
|
8793 |
|
|
return 0;
|
8794 |
|
|
}
|
8795 |
|
|
_ACEOF
|
8796 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8797 |
|
|
if { (ac_try="$ac_link"
|
8798 |
|
|
case "(($ac_try" in
|
8799 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
8800 |
|
|
*) ac_try_echo=$ac_try;;
|
8801 |
|
|
esac
|
8802 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
8803 |
|
|
(eval "$ac_link") 2>conftest.er1
|
8804 |
|
|
ac_status=$?
|
8805 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8806 |
|
|
rm -f conftest.er1
|
8807 |
|
|
cat conftest.err >&5
|
8808 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8809 |
|
|
(exit $ac_status); } && {
|
8810 |
|
|
test -z "$ac_c_werror_flag" ||
|
8811 |
|
|
test ! -s conftest.err
|
8812 |
|
|
} && test -s conftest$ac_exeext &&
|
8813 |
|
|
$as_test_x conftest$ac_exeext; then
|
8814 |
|
|
ac_cv_lib_dld_shl_load=yes
|
8815 |
|
|
else
|
8816 |
|
|
echo "$as_me: failed program was:" >&5
|
8817 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8818 |
|
|
|
8819 |
|
|
ac_cv_lib_dld_shl_load=no
|
8820 |
|
|
fi
|
8821 |
|
|
|
8822 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
8823 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8824 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
8825 |
|
|
fi
|
8826 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
|
8827 |
|
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
|
8828 |
|
|
if test $ac_cv_lib_dld_shl_load = yes; then
|
8829 |
|
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
|
8830 |
|
|
else
|
8831 |
|
|
{ echo "$as_me:$LINENO: checking for dlopen" >&5
|
8832 |
|
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
|
8833 |
|
|
if test "${ac_cv_func_dlopen+set}" = set; then
|
8834 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8835 |
|
|
else
|
8836 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8837 |
|
|
/* confdefs.h. */
|
8838 |
|
|
_ACEOF
|
8839 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8840 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8841 |
|
|
/* end confdefs.h. */
|
8842 |
|
|
/* Define dlopen to an innocuous variant, in case declares dlopen.
|
8843 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
8844 |
|
|
#define dlopen innocuous_dlopen
|
8845 |
|
|
|
8846 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
8847 |
|
|
which can conflict with char dlopen (); below.
|
8848 |
|
|
Prefer to if __STDC__ is defined, since
|
8849 |
|
|
exists even on freestanding compilers. */
|
8850 |
|
|
|
8851 |
|
|
#ifdef __STDC__
|
8852 |
|
|
# include
|
8853 |
|
|
#else
|
8854 |
|
|
# include
|
8855 |
|
|
#endif
|
8856 |
|
|
|
8857 |
|
|
#undef dlopen
|
8858 |
|
|
|
8859 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
8860 |
|
|
Use char because int might match the return type of a GCC
|
8861 |
|
|
builtin and then its argument prototype would still apply. */
|
8862 |
|
|
#ifdef __cplusplus
|
8863 |
|
|
extern "C"
|
8864 |
|
|
#endif
|
8865 |
|
|
char dlopen ();
|
8866 |
|
|
/* The GNU C library defines this for functions which it implements
|
8867 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
8868 |
|
|
something starting with __ and the normal name is an alias. */
|
8869 |
|
|
#if defined __stub_dlopen || defined __stub___dlopen
|
8870 |
|
|
choke me
|
8871 |
|
|
#endif
|
8872 |
|
|
|
8873 |
|
|
int
|
8874 |
|
|
main ()
|
8875 |
|
|
{
|
8876 |
|
|
return dlopen ();
|
8877 |
|
|
;
|
8878 |
|
|
return 0;
|
8879 |
|
|
}
|
8880 |
|
|
_ACEOF
|
8881 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8882 |
|
|
if { (ac_try="$ac_link"
|
8883 |
|
|
case "(($ac_try" in
|
8884 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
8885 |
|
|
*) ac_try_echo=$ac_try;;
|
8886 |
|
|
esac
|
8887 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
8888 |
|
|
(eval "$ac_link") 2>conftest.er1
|
8889 |
|
|
ac_status=$?
|
8890 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8891 |
|
|
rm -f conftest.er1
|
8892 |
|
|
cat conftest.err >&5
|
8893 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8894 |
|
|
(exit $ac_status); } && {
|
8895 |
|
|
test -z "$ac_c_werror_flag" ||
|
8896 |
|
|
test ! -s conftest.err
|
8897 |
|
|
} && test -s conftest$ac_exeext &&
|
8898 |
|
|
$as_test_x conftest$ac_exeext; then
|
8899 |
|
|
ac_cv_func_dlopen=yes
|
8900 |
|
|
else
|
8901 |
|
|
echo "$as_me: failed program was:" >&5
|
8902 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8903 |
|
|
|
8904 |
|
|
ac_cv_func_dlopen=no
|
8905 |
|
|
fi
|
8906 |
|
|
|
8907 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
8908 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8909 |
|
|
fi
|
8910 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
|
8911 |
|
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
|
8912 |
|
|
if test $ac_cv_func_dlopen = yes; then
|
8913 |
|
|
lt_cv_dlopen="dlopen"
|
8914 |
|
|
else
|
8915 |
|
|
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
8916 |
|
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
|
8917 |
|
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
8918 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8919 |
|
|
else
|
8920 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
8921 |
|
|
LIBS="-ldl $LIBS"
|
8922 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8923 |
|
|
/* confdefs.h. */
|
8924 |
|
|
_ACEOF
|
8925 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8926 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8927 |
|
|
/* end confdefs.h. */
|
8928 |
|
|
|
8929 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
8930 |
|
|
Use char because int might match the return type of a GCC
|
8931 |
|
|
builtin and then its argument prototype would still apply. */
|
8932 |
|
|
#ifdef __cplusplus
|
8933 |
|
|
extern "C"
|
8934 |
|
|
#endif
|
8935 |
|
|
char dlopen ();
|
8936 |
|
|
int
|
8937 |
|
|
main ()
|
8938 |
|
|
{
|
8939 |
|
|
return dlopen ();
|
8940 |
|
|
;
|
8941 |
|
|
return 0;
|
8942 |
|
|
}
|
8943 |
|
|
_ACEOF
|
8944 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8945 |
|
|
if { (ac_try="$ac_link"
|
8946 |
|
|
case "(($ac_try" in
|
8947 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
8948 |
|
|
*) ac_try_echo=$ac_try;;
|
8949 |
|
|
esac
|
8950 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
8951 |
|
|
(eval "$ac_link") 2>conftest.er1
|
8952 |
|
|
ac_status=$?
|
8953 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8954 |
|
|
rm -f conftest.er1
|
8955 |
|
|
cat conftest.err >&5
|
8956 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8957 |
|
|
(exit $ac_status); } && {
|
8958 |
|
|
test -z "$ac_c_werror_flag" ||
|
8959 |
|
|
test ! -s conftest.err
|
8960 |
|
|
} && test -s conftest$ac_exeext &&
|
8961 |
|
|
$as_test_x conftest$ac_exeext; then
|
8962 |
|
|
ac_cv_lib_dl_dlopen=yes
|
8963 |
|
|
else
|
8964 |
|
|
echo "$as_me: failed program was:" >&5
|
8965 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8966 |
|
|
|
8967 |
|
|
ac_cv_lib_dl_dlopen=no
|
8968 |
|
|
fi
|
8969 |
|
|
|
8970 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
8971 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8972 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
8973 |
|
|
fi
|
8974 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
8975 |
|
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
|
8976 |
|
|
if test $ac_cv_lib_dl_dlopen = yes; then
|
8977 |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
8978 |
|
|
else
|
8979 |
|
|
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
|
8980 |
|
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
|
8981 |
|
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
|
8982 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8983 |
|
|
else
|
8984 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
8985 |
|
|
LIBS="-lsvld $LIBS"
|
8986 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8987 |
|
|
/* confdefs.h. */
|
8988 |
|
|
_ACEOF
|
8989 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8990 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8991 |
|
|
/* end confdefs.h. */
|
8992 |
|
|
|
8993 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
8994 |
|
|
Use char because int might match the return type of a GCC
|
8995 |
|
|
builtin and then its argument prototype would still apply. */
|
8996 |
|
|
#ifdef __cplusplus
|
8997 |
|
|
extern "C"
|
8998 |
|
|
#endif
|
8999 |
|
|
char dlopen ();
|
9000 |
|
|
int
|
9001 |
|
|
main ()
|
9002 |
|
|
{
|
9003 |
|
|
return dlopen ();
|
9004 |
|
|
;
|
9005 |
|
|
return 0;
|
9006 |
|
|
}
|
9007 |
|
|
_ACEOF
|
9008 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
9009 |
|
|
if { (ac_try="$ac_link"
|
9010 |
|
|
case "(($ac_try" in
|
9011 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
9012 |
|
|
*) ac_try_echo=$ac_try;;
|
9013 |
|
|
esac
|
9014 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
9015 |
|
|
(eval "$ac_link") 2>conftest.er1
|
9016 |
|
|
ac_status=$?
|
9017 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
9018 |
|
|
rm -f conftest.er1
|
9019 |
|
|
cat conftest.err >&5
|
9020 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9021 |
|
|
(exit $ac_status); } && {
|
9022 |
|
|
test -z "$ac_c_werror_flag" ||
|
9023 |
|
|
test ! -s conftest.err
|
9024 |
|
|
} && test -s conftest$ac_exeext &&
|
9025 |
|
|
$as_test_x conftest$ac_exeext; then
|
9026 |
|
|
ac_cv_lib_svld_dlopen=yes
|
9027 |
|
|
else
|
9028 |
|
|
echo "$as_me: failed program was:" >&5
|
9029 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
9030 |
|
|
|
9031 |
|
|
ac_cv_lib_svld_dlopen=no
|
9032 |
|
|
fi
|
9033 |
|
|
|
9034 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
9035 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
9036 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
9037 |
|
|
fi
|
9038 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
|
9039 |
|
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
|
9040 |
|
|
if test $ac_cv_lib_svld_dlopen = yes; then
|
9041 |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
9042 |
|
|
else
|
9043 |
|
|
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
|
9044 |
|
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
|
9045 |
|
|
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
|
9046 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
9047 |
|
|
else
|
9048 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
9049 |
|
|
LIBS="-ldld $LIBS"
|
9050 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
9051 |
|
|
/* confdefs.h. */
|
9052 |
|
|
_ACEOF
|
9053 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
9054 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
9055 |
|
|
/* end confdefs.h. */
|
9056 |
|
|
|
9057 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
9058 |
|
|
Use char because int might match the return type of a GCC
|
9059 |
|
|
builtin and then its argument prototype would still apply. */
|
9060 |
|
|
#ifdef __cplusplus
|
9061 |
|
|
extern "C"
|
9062 |
|
|
#endif
|
9063 |
|
|
char dld_link ();
|
9064 |
|
|
int
|
9065 |
|
|
main ()
|
9066 |
|
|
{
|
9067 |
|
|
return dld_link ();
|
9068 |
|
|
;
|
9069 |
|
|
return 0;
|
9070 |
|
|
}
|
9071 |
|
|
_ACEOF
|
9072 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
9073 |
|
|
if { (ac_try="$ac_link"
|
9074 |
|
|
case "(($ac_try" in
|
9075 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
9076 |
|
|
*) ac_try_echo=$ac_try;;
|
9077 |
|
|
esac
|
9078 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
9079 |
|
|
(eval "$ac_link") 2>conftest.er1
|
9080 |
|
|
ac_status=$?
|
9081 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
9082 |
|
|
rm -f conftest.er1
|
9083 |
|
|
cat conftest.err >&5
|
9084 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9085 |
|
|
(exit $ac_status); } && {
|
9086 |
|
|
test -z "$ac_c_werror_flag" ||
|
9087 |
|
|
test ! -s conftest.err
|
9088 |
|
|
} && test -s conftest$ac_exeext &&
|
9089 |
|
|
$as_test_x conftest$ac_exeext; then
|
9090 |
|
|
ac_cv_lib_dld_dld_link=yes
|
9091 |
|
|
else
|
9092 |
|
|
echo "$as_me: failed program was:" >&5
|
9093 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
9094 |
|
|
|
9095 |
|
|
ac_cv_lib_dld_dld_link=no
|
9096 |
|
|
fi
|
9097 |
|
|
|
9098 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
9099 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
9100 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
9101 |
|
|
fi
|
9102 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
|
9103 |
|
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
|
9104 |
|
|
if test $ac_cv_lib_dld_dld_link = yes; then
|
9105 |
|
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
|
9106 |
|
|
fi
|
9107 |
|
|
|
9108 |
|
|
|
9109 |
|
|
fi
|
9110 |
|
|
|
9111 |
|
|
|
9112 |
|
|
fi
|
9113 |
|
|
|
9114 |
|
|
|
9115 |
|
|
fi
|
9116 |
|
|
|
9117 |
|
|
|
9118 |
|
|
fi
|
9119 |
|
|
|
9120 |
|
|
|
9121 |
|
|
fi
|
9122 |
|
|
|
9123 |
|
|
;;
|
9124 |
|
|
esac
|
9125 |
|
|
|
9126 |
|
|
if test "x$lt_cv_dlopen" != xno; then
|
9127 |
|
|
enable_dlopen=yes
|
9128 |
|
|
else
|
9129 |
|
|
enable_dlopen=no
|
9130 |
|
|
fi
|
9131 |
|
|
|
9132 |
|
|
case $lt_cv_dlopen in
|
9133 |
|
|
dlopen)
|
9134 |
|
|
save_CPPFLAGS="$CPPFLAGS"
|
9135 |
|
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
9136 |
|
|
|
9137 |
|
|
save_LDFLAGS="$LDFLAGS"
|
9138 |
|
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
9139 |
|
|
|
9140 |
|
|
save_LIBS="$LIBS"
|
9141 |
|
|
LIBS="$lt_cv_dlopen_libs $LIBS"
|
9142 |
|
|
|
9143 |
|
|
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
|
9144 |
|
|
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
|
9145 |
|
|
if test "${lt_cv_dlopen_self+set}" = set; then
|
9146 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
9147 |
|
|
else
|
9148 |
|
|
if test "$cross_compiling" = yes; then :
|
9149 |
|
|
lt_cv_dlopen_self=cross
|
9150 |
|
|
else
|
9151 |
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
9152 |
|
|
lt_status=$lt_dlunknown
|
9153 |
|
|
cat > conftest.$ac_ext <
|
9154 |
|
|
#line __oline__ "configure"
|
9155 |
|
|
#include "confdefs.h"
|
9156 |
|
|
|
9157 |
|
|
#if HAVE_DLFCN_H
|
9158 |
|
|
#include
|
9159 |
|
|
#endif
|
9160 |
|
|
|
9161 |
|
|
#include
|
9162 |
|
|
|
9163 |
|
|
#ifdef RTLD_GLOBAL
|
9164 |
|
|
# define LT_DLGLOBAL RTLD_GLOBAL
|
9165 |
|
|
#else
|
9166 |
|
|
# ifdef DL_GLOBAL
|
9167 |
|
|
# define LT_DLGLOBAL DL_GLOBAL
|
9168 |
|
|
# else
|
9169 |
|
|
# define LT_DLGLOBAL 0
|
9170 |
|
|
# endif
|
9171 |
|
|
#endif
|
9172 |
|
|
|
9173 |
|
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
9174 |
|
|
find out it does not work in some platform. */
|
9175 |
|
|
#ifndef LT_DLLAZY_OR_NOW
|
9176 |
|
|
# ifdef RTLD_LAZY
|
9177 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
9178 |
|
|
# else
|
9179 |
|
|
# ifdef DL_LAZY
|
9180 |
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY
|
9181 |
|
|
# else
|
9182 |
|
|
# ifdef RTLD_NOW
|
9183 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
9184 |
|
|
# else
|
9185 |
|
|
# ifdef DL_NOW
|
9186 |
|
|
# define LT_DLLAZY_OR_NOW DL_NOW
|
9187 |
|
|
# else
|
9188 |
|
|
# define LT_DLLAZY_OR_NOW 0
|
9189 |
|
|
# endif
|
9190 |
|
|
# endif
|
9191 |
|
|
# endif
|
9192 |
|
|
# endif
|
9193 |
|
|
#endif
|
9194 |
|
|
|
9195 |
|
|
#ifdef __cplusplus
|
9196 |
|
|
extern "C" void exit (int);
|
9197 |
|
|
#endif
|
9198 |
|
|
|
9199 |
|
|
void fnord() { int i=42;}
|
9200 |
|
|
int main ()
|
9201 |
|
|
{
|
9202 |
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
9203 |
|
|
int status = $lt_dlunknown;
|
9204 |
|
|
|
9205 |
|
|
if (self)
|
9206 |
|
|
{
|
9207 |
|
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
9208 |
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
9209 |
|
|
/* dlclose (self); */
|
9210 |
|
|
}
|
9211 |
|
|
else
|
9212 |
|
|
puts (dlerror ());
|
9213 |
|
|
|
9214 |
|
|
exit (status);
|
9215 |
|
|
}
|
9216 |
|
|
EOF
|
9217 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
9218 |
|
|
(eval $ac_link) 2>&5
|
9219 |
|
|
ac_status=$?
|
9220 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9221 |
|
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
9222 |
|
|
(./conftest; exit; ) >&5 2>/dev/null
|
9223 |
|
|
lt_status=$?
|
9224 |
|
|
case x$lt_status in
|
9225 |
|
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
9226 |
|
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
9227 |
|
|
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
9228 |
|
|
esac
|
9229 |
|
|
else :
|
9230 |
|
|
# compilation failed
|
9231 |
|
|
lt_cv_dlopen_self=no
|
9232 |
|
|
fi
|
9233 |
|
|
fi
|
9234 |
|
|
rm -fr conftest*
|
9235 |
|
|
|
9236 |
|
|
|
9237 |
|
|
fi
|
9238 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
|
9239 |
|
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
|
9240 |
|
|
|
9241 |
|
|
if test "x$lt_cv_dlopen_self" = xyes; then
|
9242 |
|
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
9243 |
|
|
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
|
9244 |
|
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
|
9245 |
|
|
if test "${lt_cv_dlopen_self_static+set}" = set; then
|
9246 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
9247 |
|
|
else
|
9248 |
|
|
if test "$cross_compiling" = yes; then :
|
9249 |
|
|
lt_cv_dlopen_self_static=cross
|
9250 |
|
|
else
|
9251 |
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
9252 |
|
|
lt_status=$lt_dlunknown
|
9253 |
|
|
cat > conftest.$ac_ext <
|
9254 |
|
|
#line __oline__ "configure"
|
9255 |
|
|
#include "confdefs.h"
|
9256 |
|
|
|
9257 |
|
|
#if HAVE_DLFCN_H
|
9258 |
|
|
#include
|
9259 |
|
|
#endif
|
9260 |
|
|
|
9261 |
|
|
#include
|
9262 |
|
|
|
9263 |
|
|
#ifdef RTLD_GLOBAL
|
9264 |
|
|
# define LT_DLGLOBAL RTLD_GLOBAL
|
9265 |
|
|
#else
|
9266 |
|
|
# ifdef DL_GLOBAL
|
9267 |
|
|
# define LT_DLGLOBAL DL_GLOBAL
|
9268 |
|
|
# else
|
9269 |
|
|
# define LT_DLGLOBAL 0
|
9270 |
|
|
# endif
|
9271 |
|
|
#endif
|
9272 |
|
|
|
9273 |
|
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
9274 |
|
|
find out it does not work in some platform. */
|
9275 |
|
|
#ifndef LT_DLLAZY_OR_NOW
|
9276 |
|
|
# ifdef RTLD_LAZY
|
9277 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
9278 |
|
|
# else
|
9279 |
|
|
# ifdef DL_LAZY
|
9280 |
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY
|
9281 |
|
|
# else
|
9282 |
|
|
# ifdef RTLD_NOW
|
9283 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
9284 |
|
|
# else
|
9285 |
|
|
# ifdef DL_NOW
|
9286 |
|
|
# define LT_DLLAZY_OR_NOW DL_NOW
|
9287 |
|
|
# else
|
9288 |
|
|
# define LT_DLLAZY_OR_NOW 0
|
9289 |
|
|
# endif
|
9290 |
|
|
# endif
|
9291 |
|
|
# endif
|
9292 |
|
|
# endif
|
9293 |
|
|
#endif
|
9294 |
|
|
|
9295 |
|
|
#ifdef __cplusplus
|
9296 |
|
|
extern "C" void exit (int);
|
9297 |
|
|
#endif
|
9298 |
|
|
|
9299 |
|
|
void fnord() { int i=42;}
|
9300 |
|
|
int main ()
|
9301 |
|
|
{
|
9302 |
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
9303 |
|
|
int status = $lt_dlunknown;
|
9304 |
|
|
|
9305 |
|
|
if (self)
|
9306 |
|
|
{
|
9307 |
|
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
9308 |
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
9309 |
|
|
/* dlclose (self); */
|
9310 |
|
|
}
|
9311 |
|
|
else
|
9312 |
|
|
puts (dlerror ());
|
9313 |
|
|
|
9314 |
|
|
exit (status);
|
9315 |
|
|
}
|
9316 |
|
|
EOF
|
9317 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
9318 |
|
|
(eval $ac_link) 2>&5
|
9319 |
|
|
ac_status=$?
|
9320 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9321 |
|
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
9322 |
|
|
(./conftest; exit; ) >&5 2>/dev/null
|
9323 |
|
|
lt_status=$?
|
9324 |
|
|
case x$lt_status in
|
9325 |
|
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
9326 |
|
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
9327 |
|
|
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
9328 |
|
|
esac
|
9329 |
|
|
else :
|
9330 |
|
|
# compilation failed
|
9331 |
|
|
lt_cv_dlopen_self_static=no
|
9332 |
|
|
fi
|
9333 |
|
|
fi
|
9334 |
|
|
rm -fr conftest*
|
9335 |
|
|
|
9336 |
|
|
|
9337 |
|
|
fi
|
9338 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
|
9339 |
|
|
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
|
9340 |
|
|
fi
|
9341 |
|
|
|
9342 |
|
|
CPPFLAGS="$save_CPPFLAGS"
|
9343 |
|
|
LDFLAGS="$save_LDFLAGS"
|
9344 |
|
|
LIBS="$save_LIBS"
|
9345 |
|
|
;;
|
9346 |
|
|
esac
|
9347 |
|
|
|
9348 |
|
|
case $lt_cv_dlopen_self in
|
9349 |
|
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
9350 |
|
|
*) enable_dlopen_self=unknown ;;
|
9351 |
|
|
esac
|
9352 |
|
|
|
9353 |
|
|
case $lt_cv_dlopen_self_static in
|
9354 |
|
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
9355 |
|
|
*) enable_dlopen_self_static=unknown ;;
|
9356 |
|
|
esac
|
9357 |
|
|
fi
|
9358 |
|
|
|
9359 |
|
|
|
9360 |
|
|
# Report which library types will actually be built
|
9361 |
|
|
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
9362 |
|
|
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
|
9363 |
|
|
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
9364 |
|
|
echo "${ECHO_T}$can_build_shared" >&6; }
|
9365 |
|
|
|
9366 |
|
|
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
|
9367 |
|
|
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
|
9368 |
|
|
test "$can_build_shared" = "no" && enable_shared=no
|
9369 |
|
|
|
9370 |
|
|
# On AIX, shared libraries and static libraries use the same namespace, and
|
9371 |
|
|
# are all built from PIC.
|
9372 |
|
|
case $host_os in
|
9373 |
|
|
aix3*)
|
9374 |
|
|
test "$enable_shared" = yes && enable_static=no
|
9375 |
|
|
if test -n "$RANLIB"; then
|
9376 |
|
|
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
9377 |
|
|
postinstall_cmds='$RANLIB $lib'
|
9378 |
|
|
fi
|
9379 |
|
|
;;
|
9380 |
|
|
|
9381 |
|
|
aix4* | aix5*)
|
9382 |
|
|
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
9383 |
|
|
test "$enable_shared" = yes && enable_static=no
|
9384 |
|
|
fi
|
9385 |
|
|
;;
|
9386 |
|
|
esac
|
9387 |
|
|
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
|
9388 |
|
|
echo "${ECHO_T}$enable_shared" >&6; }
|
9389 |
|
|
|
9390 |
|
|
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
|
9391 |
|
|
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
|
9392 |
|
|
# Make sure either enable_shared or enable_static is yes.
|
9393 |
|
|
test "$enable_shared" = yes || enable_static=yes
|
9394 |
|
|
{ echo "$as_me:$LINENO: result: $enable_static" >&5
|
9395 |
|
|
echo "${ECHO_T}$enable_static" >&6; }
|
9396 |
|
|
|
9397 |
|
|
# The else clause should only fire when bootstrapping the
|
9398 |
|
|
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
9399 |
|
|
# with your package, and you will get complaints that there are
|
9400 |
|
|
# no rules to generate ltmain.sh.
|
9401 |
|
|
if test -f "$ltmain"; then
|
9402 |
|
|
# See if we are running on zsh, and set the options which allow our commands through
|
9403 |
|
|
# without removal of \ escapes.
|
9404 |
|
|
if test -n "${ZSH_VERSION+set}" ; then
|
9405 |
|
|
setopt NO_GLOB_SUBST
|
9406 |
|
|
fi
|
9407 |
|
|
# Now quote all the things that may contain metacharacters while being
|
9408 |
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
9409 |
|
|
# variables and quote the copies for generation of the libtool script.
|
9410 |
|
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
9411 |
|
|
SED SHELL STRIP \
|
9412 |
|
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
9413 |
|
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
9414 |
|
|
deplibs_check_method reload_flag reload_cmds need_locks \
|
9415 |
|
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
9416 |
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
9417 |
|
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
9418 |
|
|
old_postinstall_cmds old_postuninstall_cmds \
|
9419 |
|
|
compiler \
|
9420 |
|
|
CC \
|
9421 |
|
|
LD \
|
9422 |
|
|
lt_prog_compiler_wl \
|
9423 |
|
|
lt_prog_compiler_pic \
|
9424 |
|
|
lt_prog_compiler_static \
|
9425 |
|
|
lt_prog_compiler_no_builtin_flag \
|
9426 |
|
|
export_dynamic_flag_spec \
|
9427 |
|
|
thread_safe_flag_spec \
|
9428 |
|
|
whole_archive_flag_spec \
|
9429 |
|
|
enable_shared_with_static_runtimes \
|
9430 |
|
|
old_archive_cmds \
|
9431 |
|
|
old_archive_from_new_cmds \
|
9432 |
|
|
predep_objects \
|
9433 |
|
|
postdep_objects \
|
9434 |
|
|
predeps \
|
9435 |
|
|
postdeps \
|
9436 |
|
|
compiler_lib_search_path \
|
9437 |
|
|
archive_cmds \
|
9438 |
|
|
archive_expsym_cmds \
|
9439 |
|
|
postinstall_cmds \
|
9440 |
|
|
postuninstall_cmds \
|
9441 |
|
|
old_archive_from_expsyms_cmds \
|
9442 |
|
|
allow_undefined_flag \
|
9443 |
|
|
no_undefined_flag \
|
9444 |
|
|
export_symbols_cmds \
|
9445 |
|
|
hardcode_libdir_flag_spec \
|
9446 |
|
|
hardcode_libdir_flag_spec_ld \
|
9447 |
|
|
hardcode_libdir_separator \
|
9448 |
|
|
hardcode_automatic \
|
9449 |
|
|
module_cmds \
|
9450 |
|
|
module_expsym_cmds \
|
9451 |
|
|
lt_cv_prog_compiler_c_o \
|
9452 |
|
|
fix_srcfile_path \
|
9453 |
|
|
exclude_expsyms \
|
9454 |
|
|
include_expsyms; do
|
9455 |
|
|
|
9456 |
|
|
case $var in
|
9457 |
|
|
old_archive_cmds | \
|
9458 |
|
|
old_archive_from_new_cmds | \
|
9459 |
|
|
archive_cmds | \
|
9460 |
|
|
archive_expsym_cmds | \
|
9461 |
|
|
module_cmds | \
|
9462 |
|
|
module_expsym_cmds | \
|
9463 |
|
|
old_archive_from_expsyms_cmds | \
|
9464 |
|
|
export_symbols_cmds | \
|
9465 |
|
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
9466 |
|
|
postinstall_cmds | postuninstall_cmds | \
|
9467 |
|
|
old_postinstall_cmds | old_postuninstall_cmds | \
|
9468 |
|
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
9469 |
|
|
# Double-quote double-evaled strings.
|
9470 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
9471 |
|
|
;;
|
9472 |
|
|
*)
|
9473 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
9474 |
|
|
;;
|
9475 |
|
|
esac
|
9476 |
|
|
done
|
9477 |
|
|
|
9478 |
|
|
case $lt_echo in
|
9479 |
|
|
*'\$0 --fallback-echo"')
|
9480 |
|
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
9481 |
|
|
;;
|
9482 |
|
|
esac
|
9483 |
|
|
|
9484 |
|
|
cfgfile="${ofile}T"
|
9485 |
|
|
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
|
9486 |
|
|
$rm -f "$cfgfile"
|
9487 |
|
|
{ echo "$as_me:$LINENO: creating $ofile" >&5
|
9488 |
|
|
echo "$as_me: creating $ofile" >&6;}
|
9489 |
|
|
|
9490 |
|
|
cat <<__EOF__ >> "$cfgfile"
|
9491 |
|
|
#! $SHELL
|
9492 |
|
|
|
9493 |
|
|
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
9494 |
|
|
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
9495 |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
9496 |
|
|
#
|
9497 |
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
|
9498 |
|
|
# Free Software Foundation, Inc.
|
9499 |
|
|
#
|
9500 |
|
|
# This file is part of GNU Libtool:
|
9501 |
|
|
# Originally by Gordon Matzigkeit , 1996
|
9502 |
|
|
#
|
9503 |
|
|
# This program is free software; you can redistribute it and/or modify
|
9504 |
|
|
# it under the terms of the GNU General Public License as published by
|
9505 |
|
|
# the Free Software Foundation; either version 2 of the License, or
|
9506 |
|
|
# (at your option) any later version.
|
9507 |
|
|
#
|
9508 |
|
|
# This program is distributed in the hope that it will be useful, but
|
9509 |
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
9510 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
9511 |
|
|
# General Public License for more details.
|
9512 |
|
|
#
|
9513 |
|
|
# You should have received a copy of the GNU General Public License
|
9514 |
|
|
# along with this program; if not, write to the Free Software
|
9515 |
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
9516 |
|
|
#
|
9517 |
|
|
# As a special exception to the GNU General Public License, if you
|
9518 |
|
|
# distribute this file as part of a program that contains a
|
9519 |
|
|
# configuration script generated by Autoconf, you may include it under
|
9520 |
|
|
# the same distribution terms that you use for the rest of that program.
|
9521 |
|
|
|
9522 |
|
|
# A sed program that does not truncate output.
|
9523 |
|
|
SED=$lt_SED
|
9524 |
|
|
|
9525 |
|
|
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
9526 |
|
|
Xsed="$SED -e 1s/^X//"
|
9527 |
|
|
|
9528 |
|
|
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
9529 |
|
|
# if CDPATH is set.
|
9530 |
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
9531 |
|
|
|
9532 |
|
|
# The names of the tagged configurations supported by this script.
|
9533 |
|
|
available_tags=
|
9534 |
|
|
|
9535 |
|
|
# ### BEGIN LIBTOOL CONFIG
|
9536 |
|
|
|
9537 |
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
9538 |
|
|
|
9539 |
|
|
# Shell to use when invoking shell scripts.
|
9540 |
|
|
SHELL=$lt_SHELL
|
9541 |
|
|
|
9542 |
|
|
# Whether or not to build shared libraries.
|
9543 |
|
|
build_libtool_libs=$enable_shared
|
9544 |
|
|
|
9545 |
|
|
# Whether or not to build static libraries.
|
9546 |
|
|
build_old_libs=$enable_static
|
9547 |
|
|
|
9548 |
|
|
# Whether or not to add -lc for building shared libraries.
|
9549 |
|
|
build_libtool_need_lc=$archive_cmds_need_lc
|
9550 |
|
|
|
9551 |
|
|
# Whether or not to disallow shared libs when runtime libs are static
|
9552 |
|
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
9553 |
|
|
|
9554 |
|
|
# Whether or not to optimize for fast installation.
|
9555 |
|
|
fast_install=$enable_fast_install
|
9556 |
|
|
|
9557 |
|
|
# The host system.
|
9558 |
|
|
host_alias=$host_alias
|
9559 |
|
|
host=$host
|
9560 |
|
|
host_os=$host_os
|
9561 |
|
|
|
9562 |
|
|
# The build system.
|
9563 |
|
|
build_alias=$build_alias
|
9564 |
|
|
build=$build
|
9565 |
|
|
build_os=$build_os
|
9566 |
|
|
|
9567 |
|
|
# An echo program that does not interpret backslashes.
|
9568 |
|
|
echo=$lt_echo
|
9569 |
|
|
|
9570 |
|
|
# The archiver.
|
9571 |
|
|
AR=$lt_AR
|
9572 |
|
|
AR_FLAGS=$lt_AR_FLAGS
|
9573 |
|
|
|
9574 |
|
|
# A C compiler.
|
9575 |
|
|
LTCC=$lt_LTCC
|
9576 |
|
|
|
9577 |
|
|
# LTCC compiler flags.
|
9578 |
|
|
LTCFLAGS=$lt_LTCFLAGS
|
9579 |
|
|
|
9580 |
|
|
# A language-specific compiler.
|
9581 |
|
|
CC=$lt_compiler
|
9582 |
|
|
|
9583 |
|
|
# Is the compiler the GNU C compiler?
|
9584 |
|
|
with_gcc=$GCC
|
9585 |
|
|
|
9586 |
|
|
# An ERE matcher.
|
9587 |
|
|
EGREP=$lt_EGREP
|
9588 |
|
|
|
9589 |
|
|
# The linker used to build libraries.
|
9590 |
|
|
LD=$lt_LD
|
9591 |
|
|
|
9592 |
|
|
# Whether we need hard or soft links.
|
9593 |
|
|
LN_S=$lt_LN_S
|
9594 |
|
|
|
9595 |
|
|
# A BSD-compatible nm program.
|
9596 |
|
|
NM=$lt_NM
|
9597 |
|
|
|
9598 |
|
|
# A symbol stripping program
|
9599 |
|
|
STRIP=$lt_STRIP
|
9600 |
|
|
|
9601 |
|
|
# Used to examine libraries when file_magic_cmd begins "file"
|
9602 |
|
|
MAGIC_CMD=$MAGIC_CMD
|
9603 |
|
|
|
9604 |
|
|
# Used on cygwin: DLL creation program.
|
9605 |
|
|
DLLTOOL="$DLLTOOL"
|
9606 |
|
|
|
9607 |
|
|
# Used on cygwin: object dumper.
|
9608 |
|
|
OBJDUMP="$OBJDUMP"
|
9609 |
|
|
|
9610 |
|
|
# Used on cygwin: assembler.
|
9611 |
|
|
AS="$AS"
|
9612 |
|
|
|
9613 |
|
|
# The name of the directory that contains temporary libtool files.
|
9614 |
|
|
objdir=$objdir
|
9615 |
|
|
|
9616 |
|
|
# How to create reloadable object files.
|
9617 |
|
|
reload_flag=$lt_reload_flag
|
9618 |
|
|
reload_cmds=$lt_reload_cmds
|
9619 |
|
|
|
9620 |
|
|
# How to pass a linker flag through the compiler.
|
9621 |
|
|
wl=$lt_lt_prog_compiler_wl
|
9622 |
|
|
|
9623 |
|
|
# Object file suffix (normally "o").
|
9624 |
|
|
objext="$ac_objext"
|
9625 |
|
|
|
9626 |
|
|
# Old archive suffix (normally "a").
|
9627 |
|
|
libext="$libext"
|
9628 |
|
|
|
9629 |
|
|
# Shared library suffix (normally ".so").
|
9630 |
|
|
shrext_cmds='$shrext_cmds'
|
9631 |
|
|
|
9632 |
|
|
# Executable file suffix (normally "").
|
9633 |
|
|
exeext="$exeext"
|
9634 |
|
|
|
9635 |
|
|
# Additional compiler flags for building library objects.
|
9636 |
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
9637 |
|
|
pic_mode=$pic_mode
|
9638 |
|
|
|
9639 |
|
|
# What is the maximum length of a command?
|
9640 |
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
9641 |
|
|
|
9642 |
|
|
# Does compiler simultaneously support -c and -o options?
|
9643 |
|
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
9644 |
|
|
|
9645 |
|
|
# Must we lock files when doing compilation?
|
9646 |
|
|
need_locks=$lt_need_locks
|
9647 |
|
|
|
9648 |
|
|
# Do we need the lib prefix for modules?
|
9649 |
|
|
need_lib_prefix=$need_lib_prefix
|
9650 |
|
|
|
9651 |
|
|
# Do we need a version for libraries?
|
9652 |
|
|
need_version=$need_version
|
9653 |
|
|
|
9654 |
|
|
# Whether dlopen is supported.
|
9655 |
|
|
dlopen_support=$enable_dlopen
|
9656 |
|
|
|
9657 |
|
|
# Whether dlopen of programs is supported.
|
9658 |
|
|
dlopen_self=$enable_dlopen_self
|
9659 |
|
|
|
9660 |
|
|
# Whether dlopen of statically linked programs is supported.
|
9661 |
|
|
dlopen_self_static=$enable_dlopen_self_static
|
9662 |
|
|
|
9663 |
|
|
# Compiler flag to prevent dynamic linking.
|
9664 |
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
9665 |
|
|
|
9666 |
|
|
# Compiler flag to turn off builtin functions.
|
9667 |
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
9668 |
|
|
|
9669 |
|
|
# Compiler flag to allow reflexive dlopens.
|
9670 |
|
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
9671 |
|
|
|
9672 |
|
|
# Compiler flag to generate shared objects directly from archives.
|
9673 |
|
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
9674 |
|
|
|
9675 |
|
|
# Compiler flag to generate thread-safe objects.
|
9676 |
|
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec
|
9677 |
|
|
|
9678 |
|
|
# Library versioning type.
|
9679 |
|
|
version_type=$version_type
|
9680 |
|
|
|
9681 |
|
|
# Format of library name prefix.
|
9682 |
|
|
libname_spec=$lt_libname_spec
|
9683 |
|
|
|
9684 |
|
|
# List of archive names. First name is the real one, the rest are links.
|
9685 |
|
|
# The last name is the one that the linker finds with -lNAME.
|
9686 |
|
|
library_names_spec=$lt_library_names_spec
|
9687 |
|
|
|
9688 |
|
|
# The coded name of the library, if different from the real name.
|
9689 |
|
|
soname_spec=$lt_soname_spec
|
9690 |
|
|
|
9691 |
|
|
# Commands used to build and install an old-style archive.
|
9692 |
|
|
RANLIB=$lt_RANLIB
|
9693 |
|
|
old_archive_cmds=$lt_old_archive_cmds
|
9694 |
|
|
old_postinstall_cmds=$lt_old_postinstall_cmds
|
9695 |
|
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
9696 |
|
|
|
9697 |
|
|
# Create an old-style archive from a shared archive.
|
9698 |
|
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
9699 |
|
|
|
9700 |
|
|
# Create a temporary old-style archive to link instead of a shared archive.
|
9701 |
|
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
9702 |
|
|
|
9703 |
|
|
# Commands used to build and install a shared archive.
|
9704 |
|
|
archive_cmds=$lt_archive_cmds
|
9705 |
|
|
archive_expsym_cmds=$lt_archive_expsym_cmds
|
9706 |
|
|
postinstall_cmds=$lt_postinstall_cmds
|
9707 |
|
|
postuninstall_cmds=$lt_postuninstall_cmds
|
9708 |
|
|
|
9709 |
|
|
# Commands used to build a loadable module (assumed same as above if empty)
|
9710 |
|
|
module_cmds=$lt_module_cmds
|
9711 |
|
|
module_expsym_cmds=$lt_module_expsym_cmds
|
9712 |
|
|
|
9713 |
|
|
# Commands to strip libraries.
|
9714 |
|
|
old_striplib=$lt_old_striplib
|
9715 |
|
|
striplib=$lt_striplib
|
9716 |
|
|
|
9717 |
|
|
# Dependencies to place before the objects being linked to create a
|
9718 |
|
|
# shared library.
|
9719 |
|
|
predep_objects=$lt_predep_objects
|
9720 |
|
|
|
9721 |
|
|
# Dependencies to place after the objects being linked to create a
|
9722 |
|
|
# shared library.
|
9723 |
|
|
postdep_objects=$lt_postdep_objects
|
9724 |
|
|
|
9725 |
|
|
# Dependencies to place before the objects being linked to create a
|
9726 |
|
|
# shared library.
|
9727 |
|
|
predeps=$lt_predeps
|
9728 |
|
|
|
9729 |
|
|
# Dependencies to place after the objects being linked to create a
|
9730 |
|
|
# shared library.
|
9731 |
|
|
postdeps=$lt_postdeps
|
9732 |
|
|
|
9733 |
|
|
# The library search path used internally by the compiler when linking
|
9734 |
|
|
# a shared library.
|
9735 |
|
|
compiler_lib_search_path=$lt_compiler_lib_search_path
|
9736 |
|
|
|
9737 |
|
|
# Method to check whether dependent libraries are shared objects.
|
9738 |
|
|
deplibs_check_method=$lt_deplibs_check_method
|
9739 |
|
|
|
9740 |
|
|
# Command to use when deplibs_check_method == file_magic.
|
9741 |
|
|
file_magic_cmd=$lt_file_magic_cmd
|
9742 |
|
|
|
9743 |
|
|
# Flag that allows shared libraries with undefined symbols to be built.
|
9744 |
|
|
allow_undefined_flag=$lt_allow_undefined_flag
|
9745 |
|
|
|
9746 |
|
|
# Flag that forces no undefined symbols.
|
9747 |
|
|
no_undefined_flag=$lt_no_undefined_flag
|
9748 |
|
|
|
9749 |
|
|
# Commands used to finish a libtool library installation in a directory.
|
9750 |
|
|
finish_cmds=$lt_finish_cmds
|
9751 |
|
|
|
9752 |
|
|
# Same as above, but a single script fragment to be evaled but not shown.
|
9753 |
|
|
finish_eval=$lt_finish_eval
|
9754 |
|
|
|
9755 |
|
|
# Take the output of nm and produce a listing of raw symbols and C names.
|
9756 |
|
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
9757 |
|
|
|
9758 |
|
|
# Transform the output of nm in a proper C declaration
|
9759 |
|
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
9760 |
|
|
|
9761 |
|
|
# Transform the output of nm in a C name address pair
|
9762 |
|
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
9763 |
|
|
|
9764 |
|
|
# This is the shared library runtime path variable.
|
9765 |
|
|
runpath_var=$runpath_var
|
9766 |
|
|
|
9767 |
|
|
# This is the shared library path variable.
|
9768 |
|
|
shlibpath_var=$shlibpath_var
|
9769 |
|
|
|
9770 |
|
|
# Is shlibpath searched before the hard-coded library search path?
|
9771 |
|
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
9772 |
|
|
|
9773 |
|
|
# How to hardcode a shared library path into an executable.
|
9774 |
|
|
hardcode_action=$hardcode_action
|
9775 |
|
|
|
9776 |
|
|
# Whether we should hardcode library paths into libraries.
|
9777 |
|
|
hardcode_into_libs=$hardcode_into_libs
|
9778 |
|
|
|
9779 |
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
9780 |
|
|
# This must work even if \$libdir does not exist.
|
9781 |
|
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
9782 |
|
|
|
9783 |
|
|
# If ld is used when linking, flag to hardcode \$libdir into
|
9784 |
|
|
# a binary during linking. This must work even if \$libdir does
|
9785 |
|
|
# not exist.
|
9786 |
|
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
|
9787 |
|
|
|
9788 |
|
|
# Whether we need a single -rpath flag with a separated argument.
|
9789 |
|
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
9790 |
|
|
|
9791 |
|
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
9792 |
|
|
# resulting binary.
|
9793 |
|
|
hardcode_direct=$hardcode_direct
|
9794 |
|
|
|
9795 |
|
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
9796 |
|
|
# resulting binary.
|
9797 |
|
|
hardcode_minus_L=$hardcode_minus_L
|
9798 |
|
|
|
9799 |
|
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
9800 |
|
|
# the resulting binary.
|
9801 |
|
|
hardcode_shlibpath_var=$hardcode_shlibpath_var
|
9802 |
|
|
|
9803 |
|
|
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
9804 |
|
|
# and all subsequent libraries and executables linked against it.
|
9805 |
|
|
hardcode_automatic=$hardcode_automatic
|
9806 |
|
|
|
9807 |
|
|
# Variables whose values should be saved in libtool wrapper scripts and
|
9808 |
|
|
# restored at relink time.
|
9809 |
|
|
variables_saved_for_relink="$variables_saved_for_relink"
|
9810 |
|
|
|
9811 |
|
|
# Whether libtool must link a program against all its dependency libraries.
|
9812 |
|
|
link_all_deplibs=$link_all_deplibs
|
9813 |
|
|
|
9814 |
|
|
# Compile-time system search path for libraries
|
9815 |
|
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
9816 |
|
|
|
9817 |
|
|
# Run-time system search path for libraries
|
9818 |
|
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
9819 |
|
|
|
9820 |
|
|
# Fix the shell variable \$srcfile for the compiler.
|
9821 |
|
|
fix_srcfile_path=$lt_fix_srcfile_path
|
9822 |
|
|
|
9823 |
|
|
# Set to yes if exported symbols are required.
|
9824 |
|
|
always_export_symbols=$always_export_symbols
|
9825 |
|
|
|
9826 |
|
|
# The commands to list exported symbols.
|
9827 |
|
|
export_symbols_cmds=$lt_export_symbols_cmds
|
9828 |
|
|
|
9829 |
|
|
# The commands to extract the exported symbol list from a shared archive.
|
9830 |
|
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
9831 |
|
|
|
9832 |
|
|
# Symbols that should not be listed in the preloaded symbols.
|
9833 |
|
|
exclude_expsyms=$lt_exclude_expsyms
|
9834 |
|
|
|
9835 |
|
|
# Symbols that must always be exported.
|
9836 |
|
|
include_expsyms=$lt_include_expsyms
|
9837 |
|
|
|
9838 |
|
|
# ### END LIBTOOL CONFIG
|
9839 |
|
|
|
9840 |
|
|
__EOF__
|
9841 |
|
|
|
9842 |
|
|
|
9843 |
|
|
case $host_os in
|
9844 |
|
|
aix3*)
|
9845 |
|
|
cat <<\EOF >> "$cfgfile"
|
9846 |
|
|
|
9847 |
|
|
# AIX sometimes has problems with the GCC collect2 program. For some
|
9848 |
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
9849 |
|
|
# vanish in a puff of smoke.
|
9850 |
|
|
if test "X${COLLECT_NAMES+set}" != Xset; then
|
9851 |
|
|
COLLECT_NAMES=
|
9852 |
|
|
export COLLECT_NAMES
|
9853 |
|
|
fi
|
9854 |
|
|
EOF
|
9855 |
|
|
;;
|
9856 |
|
|
esac
|
9857 |
|
|
|
9858 |
|
|
# We use sed instead of cat because bash on DJGPP gets confused if
|
9859 |
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
9860 |
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
9861 |
|
|
# is reportedly fixed, but why not run on old versions too?
|
9862 |
|
|
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
|
9863 |
|
|
|
9864 |
|
|
mv -f "$cfgfile" "$ofile" || \
|
9865 |
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
9866 |
|
|
chmod +x "$ofile"
|
9867 |
|
|
|
9868 |
|
|
else
|
9869 |
|
|
# If there is no Makefile yet, we rely on a make rule to execute
|
9870 |
|
|
# `config.status --recheck' to rerun these tests and create the
|
9871 |
|
|
# libtool script then.
|
9872 |
|
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
9873 |
|
|
if test -f "$ltmain_in"; then
|
9874 |
|
|
test -f Makefile && make "$ltmain"
|
9875 |
|
|
fi
|
9876 |
|
|
fi
|
9877 |
|
|
|
9878 |
|
|
|
9879 |
|
|
ac_ext=c
|
9880 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
9881 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
9882 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
9883 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
9884 |
|
|
|
9885 |
|
|
CC="$lt_save_CC"
|
9886 |
|
|
|
9887 |
|
|
|
9888 |
|
|
# Check whether --with-tags was given.
|
9889 |
|
|
if test "${with_tags+set}" = set; then
|
9890 |
|
|
withval=$with_tags; tagnames="$withval"
|
9891 |
|
|
fi
|
9892 |
|
|
|
9893 |
|
|
|
9894 |
|
|
if test -f "$ltmain" && test -n "$tagnames"; then
|
9895 |
|
|
if test ! -f "${ofile}"; then
|
9896 |
|
|
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
|
9897 |
|
|
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
|
9898 |
|
|
fi
|
9899 |
|
|
|
9900 |
|
|
if test -z "$LTCC"; then
|
9901 |
|
|
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
|
9902 |
|
|
if test -z "$LTCC"; then
|
9903 |
|
|
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
|
9904 |
|
|
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
|
9905 |
|
|
else
|
9906 |
|
|
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
|
9907 |
|
|
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
|
9908 |
|
|
fi
|
9909 |
|
|
fi
|
9910 |
|
|
if test -z "$LTCFLAGS"; then
|
9911 |
|
|
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
|
9912 |
|
|
fi
|
9913 |
|
|
|
9914 |
|
|
# Extract list of available tagged configurations in $ofile.
|
9915 |
|
|
# Note that this assumes the entire list is on one line.
|
9916 |
|
|
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
|
9917 |
|
|
|
9918 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
9919 |
|
|
for tagname in $tagnames; do
|
9920 |
|
|
IFS="$lt_save_ifs"
|
9921 |
|
|
# Check whether tagname contains only valid characters
|
9922 |
|
|
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
|
9923 |
|
|
"") ;;
|
9924 |
|
|
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
|
9925 |
|
|
echo "$as_me: error: invalid tag name: $tagname" >&2;}
|
9926 |
|
|
{ (exit 1); exit 1; }; }
|
9927 |
|
|
;;
|
9928 |
|
|
esac
|
9929 |
|
|
|
9930 |
|
|
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
|
9931 |
|
|
then
|
9932 |
|
|
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
|
9933 |
|
|
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
|
9934 |
|
|
{ (exit 1); exit 1; }; }
|
9935 |
|
|
fi
|
9936 |
|
|
|
9937 |
|
|
# Update the list of available tags.
|
9938 |
|
|
if test -n "$tagname"; then
|
9939 |
|
|
echo appending configuration tag \"$tagname\" to $ofile
|
9940 |
|
|
|
9941 |
|
|
case $tagname in
|
9942 |
|
|
CXX)
|
9943 |
|
|
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
9944 |
|
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
9945 |
|
|
(test "X$CXX" != "Xg++"))) ; then
|
9946 |
|
|
ac_ext=cpp
|
9947 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
9948 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
9949 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
9950 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
9951 |
|
|
|
9952 |
|
|
|
9953 |
|
|
|
9954 |
|
|
|
9955 |
|
|
archive_cmds_need_lc_CXX=no
|
9956 |
|
|
allow_undefined_flag_CXX=
|
9957 |
|
|
always_export_symbols_CXX=no
|
9958 |
|
|
archive_expsym_cmds_CXX=
|
9959 |
|
|
export_dynamic_flag_spec_CXX=
|
9960 |
|
|
hardcode_direct_CXX=no
|
9961 |
|
|
hardcode_libdir_flag_spec_CXX=
|
9962 |
|
|
hardcode_libdir_flag_spec_ld_CXX=
|
9963 |
|
|
hardcode_libdir_separator_CXX=
|
9964 |
|
|
hardcode_minus_L_CXX=no
|
9965 |
|
|
hardcode_shlibpath_var_CXX=unsupported
|
9966 |
|
|
hardcode_automatic_CXX=no
|
9967 |
|
|
module_cmds_CXX=
|
9968 |
|
|
module_expsym_cmds_CXX=
|
9969 |
|
|
link_all_deplibs_CXX=unknown
|
9970 |
|
|
old_archive_cmds_CXX=$old_archive_cmds
|
9971 |
|
|
no_undefined_flag_CXX=
|
9972 |
|
|
whole_archive_flag_spec_CXX=
|
9973 |
|
|
enable_shared_with_static_runtimes_CXX=no
|
9974 |
|
|
|
9975 |
|
|
# Dependencies to place before and after the object being linked:
|
9976 |
|
|
predep_objects_CXX=
|
9977 |
|
|
postdep_objects_CXX=
|
9978 |
|
|
predeps_CXX=
|
9979 |
|
|
postdeps_CXX=
|
9980 |
|
|
compiler_lib_search_path_CXX=
|
9981 |
|
|
|
9982 |
|
|
# Source file extension for C++ test sources.
|
9983 |
|
|
ac_ext=cpp
|
9984 |
|
|
|
9985 |
|
|
# Object file extension for compiled C++ test sources.
|
9986 |
|
|
objext=o
|
9987 |
|
|
objext_CXX=$objext
|
9988 |
|
|
|
9989 |
|
|
# Code to be used in simple compile tests
|
9990 |
|
|
lt_simple_compile_test_code="int some_variable = 0;"
|
9991 |
|
|
|
9992 |
|
|
# Code to be used in simple link tests
|
9993 |
|
|
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
|
9994 |
|
|
|
9995 |
|
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
9996 |
|
|
|
9997 |
|
|
# If no C compiler was specified, use CC.
|
9998 |
|
|
LTCC=${LTCC-"$CC"}
|
9999 |
|
|
|
10000 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
10001 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
10002 |
|
|
|
10003 |
|
|
# Allow CC to be a program name with arguments.
|
10004 |
|
|
compiler=$CC
|
10005 |
|
|
|
10006 |
|
|
|
10007 |
|
|
# save warnings/boilerplate of simple test code
|
10008 |
|
|
ac_outfile=conftest.$ac_objext
|
10009 |
|
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
10010 |
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
10011 |
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
10012 |
|
|
$rm conftest*
|
10013 |
|
|
|
10014 |
|
|
ac_outfile=conftest.$ac_objext
|
10015 |
|
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
10016 |
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
10017 |
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
10018 |
|
|
$rm conftest*
|
10019 |
|
|
|
10020 |
|
|
|
10021 |
|
|
# Allow CC to be a program name with arguments.
|
10022 |
|
|
lt_save_CC=$CC
|
10023 |
|
|
lt_save_LD=$LD
|
10024 |
|
|
lt_save_GCC=$GCC
|
10025 |
|
|
GCC=$GXX
|
10026 |
|
|
lt_save_with_gnu_ld=$with_gnu_ld
|
10027 |
|
|
lt_save_path_LD=$lt_cv_path_LD
|
10028 |
|
|
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
10029 |
|
|
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
10030 |
|
|
else
|
10031 |
|
|
$as_unset lt_cv_prog_gnu_ld
|
10032 |
|
|
fi
|
10033 |
|
|
if test -n "${lt_cv_path_LDCXX+set}"; then
|
10034 |
|
|
lt_cv_path_LD=$lt_cv_path_LDCXX
|
10035 |
|
|
else
|
10036 |
|
|
$as_unset lt_cv_path_LD
|
10037 |
|
|
fi
|
10038 |
|
|
test -z "${LDCXX+set}" || LD=$LDCXX
|
10039 |
|
|
CC=${CXX-"c++"}
|
10040 |
|
|
compiler=$CC
|
10041 |
|
|
compiler_CXX=$CC
|
10042 |
|
|
for cc_temp in $compiler""; do
|
10043 |
|
|
case $cc_temp in
|
10044 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
10045 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
10046 |
|
|
\-*) ;;
|
10047 |
|
|
*) break;;
|
10048 |
|
|
esac
|
10049 |
|
|
done
|
10050 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
10051 |
|
|
|
10052 |
|
|
|
10053 |
|
|
# We don't want -fno-exception wen compiling C++ code, so set the
|
10054 |
|
|
# no_builtin_flag separately
|
10055 |
|
|
if test "$GXX" = yes; then
|
10056 |
|
|
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
|
10057 |
|
|
else
|
10058 |
|
|
lt_prog_compiler_no_builtin_flag_CXX=
|
10059 |
|
|
fi
|
10060 |
|
|
|
10061 |
|
|
if test "$GXX" = yes; then
|
10062 |
|
|
# Set up default GNU C++ configuration
|
10063 |
|
|
|
10064 |
|
|
|
10065 |
|
|
# Check whether --with-gnu-ld was given.
|
10066 |
|
|
if test "${with_gnu_ld+set}" = set; then
|
10067 |
|
|
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
10068 |
|
|
else
|
10069 |
|
|
with_gnu_ld=no
|
10070 |
|
|
fi
|
10071 |
|
|
|
10072 |
|
|
ac_prog=ld
|
10073 |
|
|
if test "$GCC" = yes; then
|
10074 |
|
|
# Check if gcc -print-prog-name=ld gives a path.
|
10075 |
|
|
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
10076 |
|
|
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
|
10077 |
|
|
case $host in
|
10078 |
|
|
*-*-mingw*)
|
10079 |
|
|
# gcc leaves a trailing carriage return which upsets mingw
|
10080 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
10081 |
|
|
*)
|
10082 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
10083 |
|
|
esac
|
10084 |
|
|
case $ac_prog in
|
10085 |
|
|
# Accept absolute paths.
|
10086 |
|
|
[\\/]* | ?:[\\/]*)
|
10087 |
|
|
re_direlt='/[^/][^/]*/\.\./'
|
10088 |
|
|
# Canonicalize the pathname of ld
|
10089 |
|
|
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
10090 |
|
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
10091 |
|
|
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
10092 |
|
|
done
|
10093 |
|
|
test -z "$LD" && LD="$ac_prog"
|
10094 |
|
|
;;
|
10095 |
|
|
"")
|
10096 |
|
|
# If it fails, then pretend we aren't using GCC.
|
10097 |
|
|
ac_prog=ld
|
10098 |
|
|
;;
|
10099 |
|
|
*)
|
10100 |
|
|
# If it is relative, then search for the first ld in PATH.
|
10101 |
|
|
with_gnu_ld=unknown
|
10102 |
|
|
;;
|
10103 |
|
|
esac
|
10104 |
|
|
elif test "$with_gnu_ld" = yes; then
|
10105 |
|
|
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
|
10106 |
|
|
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
|
10107 |
|
|
else
|
10108 |
|
|
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
10109 |
|
|
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
|
10110 |
|
|
fi
|
10111 |
|
|
if test "${lt_cv_path_LD+set}" = set; then
|
10112 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
10113 |
|
|
else
|
10114 |
|
|
if test -z "$LD"; then
|
10115 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
10116 |
|
|
for ac_dir in $PATH; do
|
10117 |
|
|
IFS="$lt_save_ifs"
|
10118 |
|
|
test -z "$ac_dir" && ac_dir=.
|
10119 |
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
10120 |
|
|
lt_cv_path_LD="$ac_dir/$ac_prog"
|
10121 |
|
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
10122 |
|
|
# but apparently some variants of GNU ld only accept -v.
|
10123 |
|
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
10124 |
|
|
case `"$lt_cv_path_LD" -v 2>&1
|
10125 |
|
|
*GNU* | *'with BFD'*)
|
10126 |
|
|
test "$with_gnu_ld" != no && break
|
10127 |
|
|
;;
|
10128 |
|
|
*)
|
10129 |
|
|
test "$with_gnu_ld" != yes && break
|
10130 |
|
|
;;
|
10131 |
|
|
esac
|
10132 |
|
|
fi
|
10133 |
|
|
done
|
10134 |
|
|
IFS="$lt_save_ifs"
|
10135 |
|
|
else
|
10136 |
|
|
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
10137 |
|
|
fi
|
10138 |
|
|
fi
|
10139 |
|
|
|
10140 |
|
|
LD="$lt_cv_path_LD"
|
10141 |
|
|
if test -n "$LD"; then
|
10142 |
|
|
{ echo "$as_me:$LINENO: result: $LD" >&5
|
10143 |
|
|
echo "${ECHO_T}$LD" >&6; }
|
10144 |
|
|
else
|
10145 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
10146 |
|
|
echo "${ECHO_T}no" >&6; }
|
10147 |
|
|
fi
|
10148 |
|
|
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
10149 |
|
|
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
10150 |
|
|
{ (exit 1); exit 1; }; }
|
10151 |
|
|
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
10152 |
|
|
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
|
10153 |
|
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
10154 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
10155 |
|
|
else
|
10156 |
|
|
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
10157 |
|
|
case `$LD -v 2>&1
|
10158 |
|
|
*GNU* | *'with BFD'*)
|
10159 |
|
|
lt_cv_prog_gnu_ld=yes
|
10160 |
|
|
;;
|
10161 |
|
|
*)
|
10162 |
|
|
lt_cv_prog_gnu_ld=no
|
10163 |
|
|
;;
|
10164 |
|
|
esac
|
10165 |
|
|
fi
|
10166 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
10167 |
|
|
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
|
10168 |
|
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
10169 |
|
|
|
10170 |
|
|
|
10171 |
|
|
|
10172 |
|
|
# Check if GNU C++ uses GNU ld as the underlying linker, since the
|
10173 |
|
|
# archiving commands below assume that GNU ld is being used.
|
10174 |
|
|
if test "$with_gnu_ld" = yes; then
|
10175 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10176 |
|
|
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'
|
10177 |
|
|
|
10178 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
|
10179 |
|
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
10180 |
|
|
|
10181 |
|
|
# If archive_cmds runs LD, not CC, wlarc should be empty
|
10182 |
|
|
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
10183 |
|
|
# investigate it a little bit more. (MM)
|
10184 |
|
|
wlarc='${wl}'
|
10185 |
|
|
|
10186 |
|
|
# ancient GNU ld didn't support --whole-archive et. al.
|
10187 |
|
|
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
|
10188 |
|
|
grep 'no-whole-archive' > /dev/null; then
|
10189 |
|
|
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
10190 |
|
|
else
|
10191 |
|
|
whole_archive_flag_spec_CXX=
|
10192 |
|
|
fi
|
10193 |
|
|
else
|
10194 |
|
|
with_gnu_ld=no
|
10195 |
|
|
wlarc=
|
10196 |
|
|
|
10197 |
|
|
# A generic and very simple default shared library creation
|
10198 |
|
|
# command for GNU C++ for the case where it uses the native
|
10199 |
|
|
# linker, instead of GNU ld. If possible, this setting should
|
10200 |
|
|
# overridden to take advantage of the native linker features on
|
10201 |
|
|
# the platform it is being used on.
|
10202 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
10203 |
|
|
fi
|
10204 |
|
|
|
10205 |
|
|
# Commands to make compiler produce verbose output that lists
|
10206 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10207 |
|
|
# linking a shared library.
|
10208 |
|
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
10209 |
|
|
|
10210 |
|
|
else
|
10211 |
|
|
GXX=no
|
10212 |
|
|
with_gnu_ld=no
|
10213 |
|
|
wlarc=
|
10214 |
|
|
fi
|
10215 |
|
|
|
10216 |
|
|
# PORTME: fill in a description of your system's C++ link characteristics
|
10217 |
|
|
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
10218 |
|
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
10219 |
|
|
ld_shlibs_CXX=yes
|
10220 |
|
|
case $host_os in
|
10221 |
|
|
aix3*)
|
10222 |
|
|
# FIXME: insert proper C++ library support
|
10223 |
|
|
ld_shlibs_CXX=no
|
10224 |
|
|
;;
|
10225 |
|
|
aix4* | aix5*)
|
10226 |
|
|
if test "$host_cpu" = ia64; then
|
10227 |
|
|
# On IA64, the linker does run time linking by default, so we don't
|
10228 |
|
|
# have to do anything special.
|
10229 |
|
|
aix_use_runtimelinking=no
|
10230 |
|
|
exp_sym_flag='-Bexport'
|
10231 |
|
|
no_entry_flag=""
|
10232 |
|
|
else
|
10233 |
|
|
aix_use_runtimelinking=no
|
10234 |
|
|
|
10235 |
|
|
# Test if we are trying to use run time linking or normal
|
10236 |
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
10237 |
|
|
# need to do runtime linking.
|
10238 |
|
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
10239 |
|
|
for ld_flag in $LDFLAGS; do
|
10240 |
|
|
case $ld_flag in
|
10241 |
|
|
*-brtl*)
|
10242 |
|
|
aix_use_runtimelinking=yes
|
10243 |
|
|
break
|
10244 |
|
|
;;
|
10245 |
|
|
esac
|
10246 |
|
|
done
|
10247 |
|
|
;;
|
10248 |
|
|
esac
|
10249 |
|
|
|
10250 |
|
|
exp_sym_flag='-bexport'
|
10251 |
|
|
no_entry_flag='-bnoentry'
|
10252 |
|
|
fi
|
10253 |
|
|
|
10254 |
|
|
# When large executables or shared objects are built, AIX ld can
|
10255 |
|
|
# have problems creating the table of contents. If linking a library
|
10256 |
|
|
# or program results in "error TOC overflow" add -mminimal-toc to
|
10257 |
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
10258 |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
10259 |
|
|
|
10260 |
|
|
archive_cmds_CXX=''
|
10261 |
|
|
hardcode_direct_CXX=yes
|
10262 |
|
|
hardcode_libdir_separator_CXX=':'
|
10263 |
|
|
link_all_deplibs_CXX=yes
|
10264 |
|
|
|
10265 |
|
|
if test "$GXX" = yes; then
|
10266 |
|
|
case $host_os in aix4.[012]|aix4.[012].*)
|
10267 |
|
|
# We only want to do this on AIX 4.2 and lower, the check
|
10268 |
|
|
# below for broken collect2 doesn't work under 4.3+
|
10269 |
|
|
collect2name=`${CC} -print-prog-name=collect2`
|
10270 |
|
|
if test -f "$collect2name" && \
|
10271 |
|
|
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
10272 |
|
|
then
|
10273 |
|
|
# We have reworked collect2
|
10274 |
|
|
:
|
10275 |
|
|
else
|
10276 |
|
|
# We have old collect2
|
10277 |
|
|
hardcode_direct_CXX=unsupported
|
10278 |
|
|
# It fails to find uninstalled libraries when the uninstalled
|
10279 |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L
|
10280 |
|
|
# to unsupported forces relinking
|
10281 |
|
|
hardcode_minus_L_CXX=yes
|
10282 |
|
|
hardcode_libdir_flag_spec_CXX='-L$libdir'
|
10283 |
|
|
hardcode_libdir_separator_CXX=
|
10284 |
|
|
fi
|
10285 |
|
|
;;
|
10286 |
|
|
esac
|
10287 |
|
|
shared_flag='-shared'
|
10288 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
10289 |
|
|
shared_flag="$shared_flag "'${wl}-G'
|
10290 |
|
|
fi
|
10291 |
|
|
else
|
10292 |
|
|
# not using gcc
|
10293 |
|
|
if test "$host_cpu" = ia64; then
|
10294 |
|
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
10295 |
|
|
# chokes on -Wl,-G. The following line is correct:
|
10296 |
|
|
shared_flag='-G'
|
10297 |
|
|
else
|
10298 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
10299 |
|
|
shared_flag='${wl}-G'
|
10300 |
|
|
else
|
10301 |
|
|
shared_flag='${wl}-bM:SRE'
|
10302 |
|
|
fi
|
10303 |
|
|
fi
|
10304 |
|
|
fi
|
10305 |
|
|
|
10306 |
|
|
# It seems that -bexpall does not export symbols beginning with
|
10307 |
|
|
# underscore (_), so it is better to generate a list of symbols to export.
|
10308 |
|
|
always_export_symbols_CXX=yes
|
10309 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
10310 |
|
|
# Warning - without using the other runtime loading flags (-brtl),
|
10311 |
|
|
# -berok will link without error, but may produce a broken library.
|
10312 |
|
|
allow_undefined_flag_CXX='-berok'
|
10313 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
10314 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
10315 |
|
|
/* confdefs.h. */
|
10316 |
|
|
_ACEOF
|
10317 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
10318 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
10319 |
|
|
/* end confdefs.h. */
|
10320 |
|
|
|
10321 |
|
|
int
|
10322 |
|
|
main ()
|
10323 |
|
|
{
|
10324 |
|
|
|
10325 |
|
|
;
|
10326 |
|
|
return 0;
|
10327 |
|
|
}
|
10328 |
|
|
_ACEOF
|
10329 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
10330 |
|
|
if { (ac_try="$ac_link"
|
10331 |
|
|
case "(($ac_try" in
|
10332 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
10333 |
|
|
*) ac_try_echo=$ac_try;;
|
10334 |
|
|
esac
|
10335 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
10336 |
|
|
(eval "$ac_link") 2>conftest.er1
|
10337 |
|
|
ac_status=$?
|
10338 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
10339 |
|
|
rm -f conftest.er1
|
10340 |
|
|
cat conftest.err >&5
|
10341 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10342 |
|
|
(exit $ac_status); } && {
|
10343 |
|
|
test -z "$ac_cxx_werror_flag" ||
|
10344 |
|
|
test ! -s conftest.err
|
10345 |
|
|
} && test -s conftest$ac_exeext &&
|
10346 |
|
|
$as_test_x conftest$ac_exeext; then
|
10347 |
|
|
|
10348 |
|
|
lt_aix_libpath_sed='
|
10349 |
|
|
/Import File Strings/,/^$/ {
|
10350 |
|
|
/^0/ {
|
10351 |
|
|
s/^0 *\(.*\)$/\1/
|
10352 |
|
|
p
|
10353 |
|
|
}
|
10354 |
|
|
}'
|
10355 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
10356 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
10357 |
|
|
if test -z "$aix_libpath"; then
|
10358 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
10359 |
|
|
fi
|
10360 |
|
|
else
|
10361 |
|
|
echo "$as_me: failed program was:" >&5
|
10362 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
10363 |
|
|
|
10364 |
|
|
|
10365 |
|
|
fi
|
10366 |
|
|
|
10367 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
10368 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
10369 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
10370 |
|
|
|
10371 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
10372 |
|
|
|
10373 |
|
|
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
10374 |
|
|
else
|
10375 |
|
|
if test "$host_cpu" = ia64; then
|
10376 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
|
10377 |
|
|
allow_undefined_flag_CXX="-z nodefs"
|
10378 |
|
|
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
10379 |
|
|
else
|
10380 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
10381 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
10382 |
|
|
/* confdefs.h. */
|
10383 |
|
|
_ACEOF
|
10384 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
10385 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
10386 |
|
|
/* end confdefs.h. */
|
10387 |
|
|
|
10388 |
|
|
int
|
10389 |
|
|
main ()
|
10390 |
|
|
{
|
10391 |
|
|
|
10392 |
|
|
;
|
10393 |
|
|
return 0;
|
10394 |
|
|
}
|
10395 |
|
|
_ACEOF
|
10396 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
10397 |
|
|
if { (ac_try="$ac_link"
|
10398 |
|
|
case "(($ac_try" in
|
10399 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
10400 |
|
|
*) ac_try_echo=$ac_try;;
|
10401 |
|
|
esac
|
10402 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
10403 |
|
|
(eval "$ac_link") 2>conftest.er1
|
10404 |
|
|
ac_status=$?
|
10405 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
10406 |
|
|
rm -f conftest.er1
|
10407 |
|
|
cat conftest.err >&5
|
10408 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10409 |
|
|
(exit $ac_status); } && {
|
10410 |
|
|
test -z "$ac_cxx_werror_flag" ||
|
10411 |
|
|
test ! -s conftest.err
|
10412 |
|
|
} && test -s conftest$ac_exeext &&
|
10413 |
|
|
$as_test_x conftest$ac_exeext; then
|
10414 |
|
|
|
10415 |
|
|
lt_aix_libpath_sed='
|
10416 |
|
|
/Import File Strings/,/^$/ {
|
10417 |
|
|
/^0/ {
|
10418 |
|
|
s/^0 *\(.*\)$/\1/
|
10419 |
|
|
p
|
10420 |
|
|
}
|
10421 |
|
|
}'
|
10422 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
10423 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
10424 |
|
|
if test -z "$aix_libpath"; then
|
10425 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
10426 |
|
|
fi
|
10427 |
|
|
else
|
10428 |
|
|
echo "$as_me: failed program was:" >&5
|
10429 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
10430 |
|
|
|
10431 |
|
|
|
10432 |
|
|
fi
|
10433 |
|
|
|
10434 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
10435 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
10436 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
10437 |
|
|
|
10438 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
10439 |
|
|
# Warning - without using the other run time loading flags,
|
10440 |
|
|
# -berok will link without error, but may produce a broken library.
|
10441 |
|
|
no_undefined_flag_CXX=' ${wl}-bernotok'
|
10442 |
|
|
allow_undefined_flag_CXX=' ${wl}-berok'
|
10443 |
|
|
# Exported symbols can be pulled into shared objects from archives
|
10444 |
|
|
whole_archive_flag_spec_CXX='$convenience'
|
10445 |
|
|
archive_cmds_need_lc_CXX=yes
|
10446 |
|
|
# This is similar to how AIX traditionally builds its shared libraries.
|
10447 |
|
|
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
10448 |
|
|
fi
|
10449 |
|
|
fi
|
10450 |
|
|
;;
|
10451 |
|
|
|
10452 |
|
|
beos*)
|
10453 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
10454 |
|
|
allow_undefined_flag_CXX=unsupported
|
10455 |
|
|
# Joseph Beckenbach says some releases of gcc
|
10456 |
|
|
# support --undefined. This deserves some investigation. FIXME
|
10457 |
|
|
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10458 |
|
|
else
|
10459 |
|
|
ld_shlibs_CXX=no
|
10460 |
|
|
fi
|
10461 |
|
|
;;
|
10462 |
|
|
|
10463 |
|
|
chorus*)
|
10464 |
|
|
case $cc_basename in
|
10465 |
|
|
*)
|
10466 |
|
|
# FIXME: insert proper C++ library support
|
10467 |
|
|
ld_shlibs_CXX=no
|
10468 |
|
|
;;
|
10469 |
|
|
esac
|
10470 |
|
|
;;
|
10471 |
|
|
|
10472 |
|
|
cygwin* | mingw* | pw32*)
|
10473 |
|
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
|
10474 |
|
|
# as there is no search path for DLLs.
|
10475 |
|
|
hardcode_libdir_flag_spec_CXX='-L$libdir'
|
10476 |
|
|
allow_undefined_flag_CXX=unsupported
|
10477 |
|
|
always_export_symbols_CXX=no
|
10478 |
|
|
enable_shared_with_static_runtimes_CXX=yes
|
10479 |
|
|
|
10480 |
|
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
10481 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
10482 |
|
|
# If the export-symbols file already is a .def file (1st line
|
10483 |
|
|
# is EXPORTS), use it as is; otherwise, prepend...
|
10484 |
|
|
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
10485 |
|
|
cp $export_symbols $output_objdir/$soname.def;
|
10486 |
|
|
else
|
10487 |
|
|
echo EXPORTS > $output_objdir/$soname.def;
|
10488 |
|
|
cat $export_symbols >> $output_objdir/$soname.def;
|
10489 |
|
|
fi~
|
10490 |
|
|
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
10491 |
|
|
else
|
10492 |
|
|
ld_shlibs_CXX=no
|
10493 |
|
|
fi
|
10494 |
|
|
;;
|
10495 |
|
|
darwin* | rhapsody*)
|
10496 |
|
|
case $host_os in
|
10497 |
|
|
rhapsody* | darwin1.[012])
|
10498 |
|
|
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
|
10499 |
|
|
;;
|
10500 |
|
|
*) # Darwin 1.3 on
|
10501 |
|
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
10502 |
|
|
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
10503 |
|
|
else
|
10504 |
|
|
case ${MACOSX_DEPLOYMENT_TARGET} in
|
10505 |
|
|
10.[012])
|
10506 |
|
|
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
10507 |
|
|
;;
|
10508 |
|
|
10.*)
|
10509 |
|
|
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
|
10510 |
|
|
;;
|
10511 |
|
|
esac
|
10512 |
|
|
fi
|
10513 |
|
|
;;
|
10514 |
|
|
esac
|
10515 |
|
|
archive_cmds_need_lc_CXX=no
|
10516 |
|
|
hardcode_direct_CXX=no
|
10517 |
|
|
hardcode_automatic_CXX=yes
|
10518 |
|
|
hardcode_shlibpath_var_CXX=unsupported
|
10519 |
|
|
whole_archive_flag_spec_CXX=''
|
10520 |
|
|
link_all_deplibs_CXX=yes
|
10521 |
|
|
|
10522 |
|
|
if test "$GXX" = yes ; then
|
10523 |
|
|
lt_int_apple_cc_single_mod=no
|
10524 |
|
|
output_verbose_link_cmd='echo'
|
10525 |
|
|
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
|
10526 |
|
|
lt_int_apple_cc_single_mod=yes
|
10527 |
|
|
fi
|
10528 |
|
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
10529 |
|
|
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
10530 |
|
|
else
|
10531 |
|
|
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
10532 |
|
|
fi
|
10533 |
|
|
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
10534 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
10535 |
|
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
10536 |
|
|
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}'
|
10537 |
|
|
else
|
10538 |
|
|
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
10539 |
|
|
fi
|
10540 |
|
|
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}'
|
10541 |
|
|
else
|
10542 |
|
|
case $cc_basename in
|
10543 |
|
|
xlc*)
|
10544 |
|
|
output_verbose_link_cmd='echo'
|
10545 |
|
|
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
10546 |
|
|
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
10547 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
10548 |
|
|
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
10549 |
|
|
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}'
|
10550 |
|
|
;;
|
10551 |
|
|
*)
|
10552 |
|
|
ld_shlibs_CXX=no
|
10553 |
|
|
;;
|
10554 |
|
|
esac
|
10555 |
|
|
fi
|
10556 |
|
|
;;
|
10557 |
|
|
|
10558 |
|
|
dgux*)
|
10559 |
|
|
case $cc_basename in
|
10560 |
|
|
ec++*)
|
10561 |
|
|
# FIXME: insert proper C++ library support
|
10562 |
|
|
ld_shlibs_CXX=no
|
10563 |
|
|
;;
|
10564 |
|
|
ghcx*)
|
10565 |
|
|
# Green Hills C++ Compiler
|
10566 |
|
|
# FIXME: insert proper C++ library support
|
10567 |
|
|
ld_shlibs_CXX=no
|
10568 |
|
|
;;
|
10569 |
|
|
*)
|
10570 |
|
|
# FIXME: insert proper C++ library support
|
10571 |
|
|
ld_shlibs_CXX=no
|
10572 |
|
|
;;
|
10573 |
|
|
esac
|
10574 |
|
|
;;
|
10575 |
|
|
freebsd[12]*)
|
10576 |
|
|
# C++ shared libraries reported to be fairly broken before switch to ELF
|
10577 |
|
|
ld_shlibs_CXX=no
|
10578 |
|
|
;;
|
10579 |
|
|
freebsd-elf*)
|
10580 |
|
|
archive_cmds_need_lc_CXX=no
|
10581 |
|
|
;;
|
10582 |
|
|
freebsd* | dragonfly*)
|
10583 |
|
|
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
10584 |
|
|
# conventions
|
10585 |
|
|
ld_shlibs_CXX=yes
|
10586 |
|
|
;;
|
10587 |
|
|
gnu*)
|
10588 |
|
|
;;
|
10589 |
|
|
hpux9*)
|
10590 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
10591 |
|
|
hardcode_libdir_separator_CXX=:
|
10592 |
|
|
export_dynamic_flag_spec_CXX='${wl}-E'
|
10593 |
|
|
hardcode_direct_CXX=yes
|
10594 |
|
|
hardcode_minus_L_CXX=yes # Not in the search PATH,
|
10595 |
|
|
# but as the default
|
10596 |
|
|
# location of the library.
|
10597 |
|
|
|
10598 |
|
|
case $cc_basename in
|
10599 |
|
|
CC*)
|
10600 |
|
|
# FIXME: insert proper C++ library support
|
10601 |
|
|
ld_shlibs_CXX=no
|
10602 |
|
|
;;
|
10603 |
|
|
aCC*)
|
10604 |
|
|
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'
|
10605 |
|
|
# Commands to make compiler produce verbose output that lists
|
10606 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10607 |
|
|
# linking a shared library.
|
10608 |
|
|
#
|
10609 |
|
|
# There doesn't appear to be a way to prevent this compiler from
|
10610 |
|
|
# explicitly linking system object files so we need to strip them
|
10611 |
|
|
# from the output so that they don't get included in the library
|
10612 |
|
|
# dependencies.
|
10613 |
|
|
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'
|
10614 |
|
|
;;
|
10615 |
|
|
*)
|
10616 |
|
|
if test "$GXX" = yes; then
|
10617 |
|
|
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'
|
10618 |
|
|
else
|
10619 |
|
|
# FIXME: insert proper C++ library support
|
10620 |
|
|
ld_shlibs_CXX=no
|
10621 |
|
|
fi
|
10622 |
|
|
;;
|
10623 |
|
|
esac
|
10624 |
|
|
;;
|
10625 |
|
|
hpux10*|hpux11*)
|
10626 |
|
|
if test $with_gnu_ld = no; then
|
10627 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
10628 |
|
|
hardcode_libdir_separator_CXX=:
|
10629 |
|
|
|
10630 |
|
|
case $host_cpu in
|
10631 |
|
|
hppa*64*|ia64*) ;;
|
10632 |
|
|
*)
|
10633 |
|
|
export_dynamic_flag_spec_CXX='${wl}-E'
|
10634 |
|
|
;;
|
10635 |
|
|
esac
|
10636 |
|
|
fi
|
10637 |
|
|
case $host_cpu in
|
10638 |
|
|
hppa*64*|ia64*)
|
10639 |
|
|
hardcode_direct_CXX=no
|
10640 |
|
|
hardcode_shlibpath_var_CXX=no
|
10641 |
|
|
;;
|
10642 |
|
|
*)
|
10643 |
|
|
hardcode_direct_CXX=yes
|
10644 |
|
|
hardcode_minus_L_CXX=yes # Not in the search PATH,
|
10645 |
|
|
# but as the default
|
10646 |
|
|
# location of the library.
|
10647 |
|
|
;;
|
10648 |
|
|
esac
|
10649 |
|
|
|
10650 |
|
|
case $cc_basename in
|
10651 |
|
|
CC*)
|
10652 |
|
|
# FIXME: insert proper C++ library support
|
10653 |
|
|
ld_shlibs_CXX=no
|
10654 |
|
|
;;
|
10655 |
|
|
aCC*)
|
10656 |
|
|
case $host_cpu in
|
10657 |
|
|
hppa*64*)
|
10658 |
|
|
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10659 |
|
|
;;
|
10660 |
|
|
ia64*)
|
10661 |
|
|
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10662 |
|
|
;;
|
10663 |
|
|
*)
|
10664 |
|
|
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10665 |
|
|
;;
|
10666 |
|
|
esac
|
10667 |
|
|
# Commands to make compiler produce verbose output that lists
|
10668 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10669 |
|
|
# linking a shared library.
|
10670 |
|
|
#
|
10671 |
|
|
# There doesn't appear to be a way to prevent this compiler from
|
10672 |
|
|
# explicitly linking system object files so we need to strip them
|
10673 |
|
|
# from the output so that they don't get included in the library
|
10674 |
|
|
# dependencies.
|
10675 |
|
|
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'
|
10676 |
|
|
;;
|
10677 |
|
|
*)
|
10678 |
|
|
if test "$GXX" = yes; then
|
10679 |
|
|
if test $with_gnu_ld = no; then
|
10680 |
|
|
case $host_cpu in
|
10681 |
|
|
hppa*64*)
|
10682 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10683 |
|
|
;;
|
10684 |
|
|
ia64*)
|
10685 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10686 |
|
|
;;
|
10687 |
|
|
*)
|
10688 |
|
|
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'
|
10689 |
|
|
;;
|
10690 |
|
|
esac
|
10691 |
|
|
fi
|
10692 |
|
|
else
|
10693 |
|
|
# FIXME: insert proper C++ library support
|
10694 |
|
|
ld_shlibs_CXX=no
|
10695 |
|
|
fi
|
10696 |
|
|
;;
|
10697 |
|
|
esac
|
10698 |
|
|
;;
|
10699 |
|
|
interix[3-9]*)
|
10700 |
|
|
hardcode_direct_CXX=no
|
10701 |
|
|
hardcode_shlibpath_var_CXX=no
|
10702 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
10703 |
|
|
export_dynamic_flag_spec_CXX='${wl}-E'
|
10704 |
|
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
10705 |
|
|
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
10706 |
|
|
# default) and relocated if they conflict, which is a slow very memory
|
10707 |
|
|
# consuming and fragmenting process. To avoid this, we pick a random,
|
10708 |
|
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
10709 |
|
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
10710 |
|
|
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
10711 |
|
|
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
10712 |
|
|
;;
|
10713 |
|
|
irix5* | irix6*)
|
10714 |
|
|
case $cc_basename in
|
10715 |
|
|
CC*)
|
10716 |
|
|
# SGI C++
|
10717 |
|
|
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
10718 |
|
|
|
10719 |
|
|
# Archives containing C++ object files must be created using
|
10720 |
|
|
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
10721 |
|
|
# necessary to make sure instantiated templates are included
|
10722 |
|
|
# in the archive.
|
10723 |
|
|
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
10724 |
|
|
;;
|
10725 |
|
|
*)
|
10726 |
|
|
if test "$GXX" = yes; then
|
10727 |
|
|
if test "$with_gnu_ld" = no; then
|
10728 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
10729 |
|
|
else
|
10730 |
|
|
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'
|
10731 |
|
|
fi
|
10732 |
|
|
fi
|
10733 |
|
|
link_all_deplibs_CXX=yes
|
10734 |
|
|
;;
|
10735 |
|
|
esac
|
10736 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
10737 |
|
|
hardcode_libdir_separator_CXX=:
|
10738 |
|
|
;;
|
10739 |
|
|
linux* | k*bsd*-gnu)
|
10740 |
|
|
case $cc_basename in
|
10741 |
|
|
KCC*)
|
10742 |
|
|
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
10743 |
|
|
|
10744 |
|
|
# KCC will only create a shared library if the output file
|
10745 |
|
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
10746 |
|
|
# to its proper name (with version) after linking.
|
10747 |
|
|
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'
|
10748 |
|
|
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'
|
10749 |
|
|
# Commands to make compiler produce verbose output that lists
|
10750 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10751 |
|
|
# linking a shared library.
|
10752 |
|
|
#
|
10753 |
|
|
# There doesn't appear to be a way to prevent this compiler from
|
10754 |
|
|
# explicitly linking system object files so we need to strip them
|
10755 |
|
|
# from the output so that they don't get included in the library
|
10756 |
|
|
# dependencies.
|
10757 |
|
|
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'
|
10758 |
|
|
|
10759 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
|
10760 |
|
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
10761 |
|
|
|
10762 |
|
|
# Archives containing C++ object files must be created using
|
10763 |
|
|
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
10764 |
|
|
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
|
10765 |
|
|
;;
|
10766 |
|
|
icpc*)
|
10767 |
|
|
# Intel C++
|
10768 |
|
|
with_gnu_ld=yes
|
10769 |
|
|
# version 8.0 and above of icpc choke on multiply defined symbols
|
10770 |
|
|
# if we add $predep_objects and $postdep_objects, however 7.1 and
|
10771 |
|
|
# earlier do not add the objects themselves.
|
10772 |
|
|
case `$CC -V 2>&1` in
|
10773 |
|
|
*"Version 7."*)
|
10774 |
|
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10775 |
|
|
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'
|
10776 |
|
|
;;
|
10777 |
|
|
*) # Version 8.0 or newer
|
10778 |
|
|
tmp_idyn=
|
10779 |
|
|
case $host_cpu in
|
10780 |
|
|
ia64*) tmp_idyn=' -i_dynamic';;
|
10781 |
|
|
esac
|
10782 |
|
|
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10783 |
|
|
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
10784 |
|
|
;;
|
10785 |
|
|
esac
|
10786 |
|
|
archive_cmds_need_lc_CXX=no
|
10787 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
10788 |
|
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
10789 |
|
|
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
10790 |
|
|
;;
|
10791 |
|
|
pgCC*)
|
10792 |
|
|
# Portland Group C++ compiler
|
10793 |
|
|
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
10794 |
|
|
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
10795 |
|
|
|
10796 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
|
10797 |
|
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
10798 |
|
|
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
10799 |
|
|
;;
|
10800 |
|
|
cxx*)
|
10801 |
|
|
# Compaq C++
|
10802 |
|
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10803 |
|
|
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'
|
10804 |
|
|
|
10805 |
|
|
runpath_var=LD_RUN_PATH
|
10806 |
|
|
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
|
10807 |
|
|
hardcode_libdir_separator_CXX=:
|
10808 |
|
|
|
10809 |
|
|
# Commands to make compiler produce verbose output that lists
|
10810 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10811 |
|
|
# linking a shared library.
|
10812 |
|
|
#
|
10813 |
|
|
# There doesn't appear to be a way to prevent this compiler from
|
10814 |
|
|
# explicitly linking system object files so we need to strip them
|
10815 |
|
|
# from the output so that they don't get included in the library
|
10816 |
|
|
# dependencies.
|
10817 |
|
|
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'
|
10818 |
|
|
;;
|
10819 |
|
|
*)
|
10820 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
10821 |
|
|
*Sun\ C*)
|
10822 |
|
|
# Sun C++ 5.9
|
10823 |
|
|
no_undefined_flag_CXX=' -zdefs'
|
10824 |
|
|
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10825 |
|
|
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
|
10826 |
|
|
hardcode_libdir_flag_spec_CXX='-R$libdir'
|
10827 |
|
|
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
10828 |
|
|
|
10829 |
|
|
# Not sure whether something based on
|
10830 |
|
|
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
10831 |
|
|
# would be better.
|
10832 |
|
|
output_verbose_link_cmd='echo'
|
10833 |
|
|
|
10834 |
|
|
# Archives containing C++ object files must be created using
|
10835 |
|
|
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
10836 |
|
|
# necessary to make sure instantiated templates are included
|
10837 |
|
|
# in the archive.
|
10838 |
|
|
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
|
10839 |
|
|
;;
|
10840 |
|
|
esac
|
10841 |
|
|
;;
|
10842 |
|
|
esac
|
10843 |
|
|
;;
|
10844 |
|
|
lynxos*)
|
10845 |
|
|
# FIXME: insert proper C++ library support
|
10846 |
|
|
ld_shlibs_CXX=no
|
10847 |
|
|
;;
|
10848 |
|
|
m88k*)
|
10849 |
|
|
# FIXME: insert proper C++ library support
|
10850 |
|
|
ld_shlibs_CXX=no
|
10851 |
|
|
;;
|
10852 |
|
|
mvs*)
|
10853 |
|
|
case $cc_basename in
|
10854 |
|
|
cxx*)
|
10855 |
|
|
# FIXME: insert proper C++ library support
|
10856 |
|
|
ld_shlibs_CXX=no
|
10857 |
|
|
;;
|
10858 |
|
|
*)
|
10859 |
|
|
# FIXME: insert proper C++ library support
|
10860 |
|
|
ld_shlibs_CXX=no
|
10861 |
|
|
;;
|
10862 |
|
|
esac
|
10863 |
|
|
;;
|
10864 |
|
|
netbsd*)
|
10865 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
10866 |
|
|
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
10867 |
|
|
wlarc=
|
10868 |
|
|
hardcode_libdir_flag_spec_CXX='-R$libdir'
|
10869 |
|
|
hardcode_direct_CXX=yes
|
10870 |
|
|
hardcode_shlibpath_var_CXX=no
|
10871 |
|
|
fi
|
10872 |
|
|
# Workaround some broken pre-1.5 toolchains
|
10873 |
|
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
10874 |
|
|
;;
|
10875 |
|
|
openbsd2*)
|
10876 |
|
|
# C++ shared libraries are fairly broken
|
10877 |
|
|
ld_shlibs_CXX=no
|
10878 |
|
|
;;
|
10879 |
|
|
openbsd*)
|
10880 |
|
|
if test -f /usr/libexec/ld.so; then
|
10881 |
|
|
hardcode_direct_CXX=yes
|
10882 |
|
|
hardcode_shlibpath_var_CXX=no
|
10883 |
|
|
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
10884 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
10885 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
10886 |
|
|
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
|
10887 |
|
|
export_dynamic_flag_spec_CXX='${wl}-E'
|
10888 |
|
|
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
10889 |
|
|
fi
|
10890 |
|
|
output_verbose_link_cmd='echo'
|
10891 |
|
|
else
|
10892 |
|
|
ld_shlibs_CXX=no
|
10893 |
|
|
fi
|
10894 |
|
|
;;
|
10895 |
|
|
osf3*)
|
10896 |
|
|
case $cc_basename in
|
10897 |
|
|
KCC*)
|
10898 |
|
|
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
10899 |
|
|
|
10900 |
|
|
# KCC will only create a shared library if the output file
|
10901 |
|
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
10902 |
|
|
# to its proper name (with version) after linking.
|
10903 |
|
|
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'
|
10904 |
|
|
|
10905 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
10906 |
|
|
hardcode_libdir_separator_CXX=:
|
10907 |
|
|
|
10908 |
|
|
# Archives containing C++ object files must be created using
|
10909 |
|
|
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
10910 |
|
|
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
|
10911 |
|
|
|
10912 |
|
|
;;
|
10913 |
|
|
RCC*)
|
10914 |
|
|
# Rational C++ 2.4.1
|
10915 |
|
|
# FIXME: insert proper C++ library support
|
10916 |
|
|
ld_shlibs_CXX=no
|
10917 |
|
|
;;
|
10918 |
|
|
cxx*)
|
10919 |
|
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
10920 |
|
|
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
10921 |
|
|
|
10922 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
10923 |
|
|
hardcode_libdir_separator_CXX=:
|
10924 |
|
|
|
10925 |
|
|
# Commands to make compiler produce verbose output that lists
|
10926 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10927 |
|
|
# linking a shared library.
|
10928 |
|
|
#
|
10929 |
|
|
# There doesn't appear to be a way to prevent this compiler from
|
10930 |
|
|
# explicitly linking system object files so we need to strip them
|
10931 |
|
|
# from the output so that they don't get included in the library
|
10932 |
|
|
# dependencies.
|
10933 |
|
|
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'
|
10934 |
|
|
;;
|
10935 |
|
|
*)
|
10936 |
|
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
10937 |
|
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
10938 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
10939 |
|
|
|
10940 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
10941 |
|
|
hardcode_libdir_separator_CXX=:
|
10942 |
|
|
|
10943 |
|
|
# Commands to make compiler produce verbose output that lists
|
10944 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10945 |
|
|
# linking a shared library.
|
10946 |
|
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
10947 |
|
|
|
10948 |
|
|
else
|
10949 |
|
|
# FIXME: insert proper C++ library support
|
10950 |
|
|
ld_shlibs_CXX=no
|
10951 |
|
|
fi
|
10952 |
|
|
;;
|
10953 |
|
|
esac
|
10954 |
|
|
;;
|
10955 |
|
|
osf4* | osf5*)
|
10956 |
|
|
case $cc_basename in
|
10957 |
|
|
KCC*)
|
10958 |
|
|
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
10959 |
|
|
|
10960 |
|
|
# KCC will only create a shared library if the output file
|
10961 |
|
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
10962 |
|
|
# to its proper name (with version) after linking.
|
10963 |
|
|
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'
|
10964 |
|
|
|
10965 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
10966 |
|
|
hardcode_libdir_separator_CXX=:
|
10967 |
|
|
|
10968 |
|
|
# Archives containing C++ object files must be created using
|
10969 |
|
|
# the KAI C++ compiler.
|
10970 |
|
|
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
|
10971 |
|
|
;;
|
10972 |
|
|
RCC*)
|
10973 |
|
|
# Rational C++ 2.4.1
|
10974 |
|
|
# FIXME: insert proper C++ library support
|
10975 |
|
|
ld_shlibs_CXX=no
|
10976 |
|
|
;;
|
10977 |
|
|
cxx*)
|
10978 |
|
|
allow_undefined_flag_CXX=' -expect_unresolved \*'
|
10979 |
|
|
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
10980 |
|
|
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
10981 |
|
|
echo "-hidden">> $lib.exp~
|
10982 |
|
|
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
|
10983 |
|
|
$rm $lib.exp'
|
10984 |
|
|
|
10985 |
|
|
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
|
10986 |
|
|
hardcode_libdir_separator_CXX=:
|
10987 |
|
|
|
10988 |
|
|
# Commands to make compiler produce verbose output that lists
|
10989 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10990 |
|
|
# linking a shared library.
|
10991 |
|
|
#
|
10992 |
|
|
# There doesn't appear to be a way to prevent this compiler from
|
10993 |
|
|
# explicitly linking system object files so we need to strip them
|
10994 |
|
|
# from the output so that they don't get included in the library
|
10995 |
|
|
# dependencies.
|
10996 |
|
|
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'
|
10997 |
|
|
;;
|
10998 |
|
|
*)
|
10999 |
|
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
11000 |
|
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
11001 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
11002 |
|
|
|
11003 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
11004 |
|
|
hardcode_libdir_separator_CXX=:
|
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 |
|
|
# FIXME: insert proper C++ library support
|
11013 |
|
|
ld_shlibs_CXX=no
|
11014 |
|
|
fi
|
11015 |
|
|
;;
|
11016 |
|
|
esac
|
11017 |
|
|
;;
|
11018 |
|
|
psos*)
|
11019 |
|
|
# FIXME: insert proper C++ library support
|
11020 |
|
|
ld_shlibs_CXX=no
|
11021 |
|
|
;;
|
11022 |
|
|
sunos4*)
|
11023 |
|
|
case $cc_basename in
|
11024 |
|
|
CC*)
|
11025 |
|
|
# Sun C++ 4.x
|
11026 |
|
|
# FIXME: insert proper C++ library support
|
11027 |
|
|
ld_shlibs_CXX=no
|
11028 |
|
|
;;
|
11029 |
|
|
lcc*)
|
11030 |
|
|
# Lucid
|
11031 |
|
|
# FIXME: insert proper C++ library support
|
11032 |
|
|
ld_shlibs_CXX=no
|
11033 |
|
|
;;
|
11034 |
|
|
*)
|
11035 |
|
|
# FIXME: insert proper C++ library support
|
11036 |
|
|
ld_shlibs_CXX=no
|
11037 |
|
|
;;
|
11038 |
|
|
esac
|
11039 |
|
|
;;
|
11040 |
|
|
solaris*)
|
11041 |
|
|
case $cc_basename in
|
11042 |
|
|
CC*)
|
11043 |
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
11044 |
|
|
archive_cmds_need_lc_CXX=yes
|
11045 |
|
|
no_undefined_flag_CXX=' -zdefs'
|
11046 |
|
|
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
11047 |
|
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
11048 |
|
|
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
11049 |
|
|
|
11050 |
|
|
hardcode_libdir_flag_spec_CXX='-R$libdir'
|
11051 |
|
|
hardcode_shlibpath_var_CXX=no
|
11052 |
|
|
case $host_os in
|
11053 |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
11054 |
|
|
*)
|
11055 |
|
|
# The compiler driver will combine and reorder linker options,
|
11056 |
|
|
# but understands `-z linker_flag'.
|
11057 |
|
|
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
11058 |
|
|
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
|
11059 |
|
|
;;
|
11060 |
|
|
esac
|
11061 |
|
|
link_all_deplibs_CXX=yes
|
11062 |
|
|
|
11063 |
|
|
output_verbose_link_cmd='echo'
|
11064 |
|
|
|
11065 |
|
|
# Archives containing C++ object files must be created using
|
11066 |
|
|
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
11067 |
|
|
# necessary to make sure instantiated templates are included
|
11068 |
|
|
# in the archive.
|
11069 |
|
|
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
|
11070 |
|
|
;;
|
11071 |
|
|
gcx*)
|
11072 |
|
|
# Green Hills C++ Compiler
|
11073 |
|
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
11074 |
|
|
|
11075 |
|
|
# The C++ compiler must be used to create the archive.
|
11076 |
|
|
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
11077 |
|
|
;;
|
11078 |
|
|
*)
|
11079 |
|
|
# GNU C++ compiler with Solaris linker
|
11080 |
|
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
11081 |
|
|
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
|
11082 |
|
|
if $CC --version | grep -v '^2\.7' > /dev/null; then
|
11083 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
11084 |
|
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
11085 |
|
|
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
11086 |
|
|
|
11087 |
|
|
# Commands to make compiler produce verbose output that lists
|
11088 |
|
|
# what "hidden" libraries, object files and flags are used when
|
11089 |
|
|
# linking a shared library.
|
11090 |
|
|
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
11091 |
|
|
else
|
11092 |
|
|
# g++ 2.7 appears to require `-G' NOT `-shared' on this
|
11093 |
|
|
# platform.
|
11094 |
|
|
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
11095 |
|
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
11096 |
|
|
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
11097 |
|
|
|
11098 |
|
|
# Commands to make compiler produce verbose output that lists
|
11099 |
|
|
# what "hidden" libraries, object files and flags are used when
|
11100 |
|
|
# linking a shared library.
|
11101 |
|
|
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
11102 |
|
|
fi
|
11103 |
|
|
|
11104 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
|
11105 |
|
|
case $host_os in
|
11106 |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
11107 |
|
|
*)
|
11108 |
|
|
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
11109 |
|
|
;;
|
11110 |
|
|
esac
|
11111 |
|
|
fi
|
11112 |
|
|
;;
|
11113 |
|
|
esac
|
11114 |
|
|
;;
|
11115 |
|
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
11116 |
|
|
no_undefined_flag_CXX='${wl}-z,text'
|
11117 |
|
|
archive_cmds_need_lc_CXX=no
|
11118 |
|
|
hardcode_shlibpath_var_CXX=no
|
11119 |
|
|
runpath_var='LD_RUN_PATH'
|
11120 |
|
|
|
11121 |
|
|
case $cc_basename in
|
11122 |
|
|
CC*)
|
11123 |
|
|
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11124 |
|
|
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11125 |
|
|
;;
|
11126 |
|
|
*)
|
11127 |
|
|
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11128 |
|
|
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11129 |
|
|
;;
|
11130 |
|
|
esac
|
11131 |
|
|
;;
|
11132 |
|
|
sysv5* | sco3.2v5* | sco5v6*)
|
11133 |
|
|
# Note: We can NOT use -z defs as we might desire, because we do not
|
11134 |
|
|
# link with -lc, and that would cause any symbols used from libc to
|
11135 |
|
|
# always be unresolved, which means just about no library would
|
11136 |
|
|
# ever link correctly. If we're not using GNU ld we use -z text
|
11137 |
|
|
# though, which does catch some bad symbols but isn't as heavy-handed
|
11138 |
|
|
# as -z defs.
|
11139 |
|
|
# For security reasons, it is highly recommended that you always
|
11140 |
|
|
# use absolute paths for naming shared libraries, and exclude the
|
11141 |
|
|
# DT_RUNPATH tag from executables and libraries. But doing so
|
11142 |
|
|
# requires that you compile everything twice, which is a pain.
|
11143 |
|
|
# So that behaviour is only enabled if SCOABSPATH is set to a
|
11144 |
|
|
# non-empty value in the environment. Most likely only useful for
|
11145 |
|
|
# creating official distributions of packages.
|
11146 |
|
|
# This is a hack until libtool officially supports absolute path
|
11147 |
|
|
# names for shared libraries.
|
11148 |
|
|
no_undefined_flag_CXX='${wl}-z,text'
|
11149 |
|
|
allow_undefined_flag_CXX='${wl}-z,nodefs'
|
11150 |
|
|
archive_cmds_need_lc_CXX=no
|
11151 |
|
|
hardcode_shlibpath_var_CXX=no
|
11152 |
|
|
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
11153 |
|
|
hardcode_libdir_separator_CXX=':'
|
11154 |
|
|
link_all_deplibs_CXX=yes
|
11155 |
|
|
export_dynamic_flag_spec_CXX='${wl}-Bexport'
|
11156 |
|
|
runpath_var='LD_RUN_PATH'
|
11157 |
|
|
|
11158 |
|
|
case $cc_basename in
|
11159 |
|
|
CC*)
|
11160 |
|
|
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11161 |
|
|
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11162 |
|
|
;;
|
11163 |
|
|
*)
|
11164 |
|
|
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11165 |
|
|
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11166 |
|
|
;;
|
11167 |
|
|
esac
|
11168 |
|
|
;;
|
11169 |
|
|
tandem*)
|
11170 |
|
|
case $cc_basename in
|
11171 |
|
|
NCC*)
|
11172 |
|
|
# NonStop-UX NCC 3.20
|
11173 |
|
|
# FIXME: insert proper C++ library support
|
11174 |
|
|
ld_shlibs_CXX=no
|
11175 |
|
|
;;
|
11176 |
|
|
*)
|
11177 |
|
|
# FIXME: insert proper C++ library support
|
11178 |
|
|
ld_shlibs_CXX=no
|
11179 |
|
|
;;
|
11180 |
|
|
esac
|
11181 |
|
|
;;
|
11182 |
|
|
vxworks*)
|
11183 |
|
|
# FIXME: insert proper C++ library support
|
11184 |
|
|
ld_shlibs_CXX=no
|
11185 |
|
|
;;
|
11186 |
|
|
*)
|
11187 |
|
|
# FIXME: insert proper C++ library support
|
11188 |
|
|
ld_shlibs_CXX=no
|
11189 |
|
|
;;
|
11190 |
|
|
esac
|
11191 |
|
|
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
|
11192 |
|
|
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
|
11193 |
|
|
test "$ld_shlibs_CXX" = no && can_build_shared=no
|
11194 |
|
|
|
11195 |
|
|
GCC_CXX="$GXX"
|
11196 |
|
|
LD_CXX="$LD"
|
11197 |
|
|
|
11198 |
|
|
## CAVEAT EMPTOR:
|
11199 |
|
|
## There is no encapsulation within the following macros, do not change
|
11200 |
|
|
## the running order or otherwise move them around unless you know exactly
|
11201 |
|
|
## what you are doing...
|
11202 |
|
|
|
11203 |
|
|
cat > conftest.$ac_ext <
|
11204 |
|
|
class Foo
|
11205 |
|
|
{
|
11206 |
|
|
public:
|
11207 |
|
|
Foo (void) { a = 0; }
|
11208 |
|
|
private:
|
11209 |
|
|
int a;
|
11210 |
|
|
};
|
11211 |
|
|
EOF
|
11212 |
|
|
|
11213 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
11214 |
|
|
(eval $ac_compile) 2>&5
|
11215 |
|
|
ac_status=$?
|
11216 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
11217 |
|
|
(exit $ac_status); }; then
|
11218 |
|
|
# Parse the compiler output and extract the necessary
|
11219 |
|
|
# objects, libraries and library flags.
|
11220 |
|
|
|
11221 |
|
|
# Sentinel used to keep track of whether or not we are before
|
11222 |
|
|
# the conftest object file.
|
11223 |
|
|
pre_test_object_deps_done=no
|
11224 |
|
|
|
11225 |
|
|
# The `*' in the case matches for architectures that use `case' in
|
11226 |
|
|
# $output_verbose_cmd can trigger glob expansion during the loop
|
11227 |
|
|
# eval without this substitution.
|
11228 |
|
|
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
|
11229 |
|
|
|
11230 |
|
|
for p in `eval $output_verbose_link_cmd`; do
|
11231 |
|
|
case $p in
|
11232 |
|
|
|
11233 |
|
|
-L* | -R* | -l*)
|
11234 |
|
|
# Some compilers place space between "-{L,R}" and the path.
|
11235 |
|
|
# Remove the space.
|
11236 |
|
|
if test $p = "-L" \
|
11237 |
|
|
|| test $p = "-R"; then
|
11238 |
|
|
prev=$p
|
11239 |
|
|
continue
|
11240 |
|
|
else
|
11241 |
|
|
prev=
|
11242 |
|
|
fi
|
11243 |
|
|
|
11244 |
|
|
if test "$pre_test_object_deps_done" = no; then
|
11245 |
|
|
case $p in
|
11246 |
|
|
-L* | -R*)
|
11247 |
|
|
# Internal compiler library paths should come after those
|
11248 |
|
|
# provided the user. The postdeps already come after the
|
11249 |
|
|
# user supplied libs so there is no need to process them.
|
11250 |
|
|
if test -z "$compiler_lib_search_path_CXX"; then
|
11251 |
|
|
compiler_lib_search_path_CXX="${prev}${p}"
|
11252 |
|
|
else
|
11253 |
|
|
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
|
11254 |
|
|
fi
|
11255 |
|
|
;;
|
11256 |
|
|
# The "-l" case would never come before the object being
|
11257 |
|
|
# linked, so don't bother handling this case.
|
11258 |
|
|
esac
|
11259 |
|
|
else
|
11260 |
|
|
if test -z "$postdeps_CXX"; then
|
11261 |
|
|
postdeps_CXX="${prev}${p}"
|
11262 |
|
|
else
|
11263 |
|
|
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
|
11264 |
|
|
fi
|
11265 |
|
|
fi
|
11266 |
|
|
;;
|
11267 |
|
|
|
11268 |
|
|
*.$objext)
|
11269 |
|
|
# This assumes that the test object file only shows up
|
11270 |
|
|
# once in the compiler output.
|
11271 |
|
|
if test "$p" = "conftest.$objext"; then
|
11272 |
|
|
pre_test_object_deps_done=yes
|
11273 |
|
|
continue
|
11274 |
|
|
fi
|
11275 |
|
|
|
11276 |
|
|
if test "$pre_test_object_deps_done" = no; then
|
11277 |
|
|
if test -z "$predep_objects_CXX"; then
|
11278 |
|
|
predep_objects_CXX="$p"
|
11279 |
|
|
else
|
11280 |
|
|
predep_objects_CXX="$predep_objects_CXX $p"
|
11281 |
|
|
fi
|
11282 |
|
|
else
|
11283 |
|
|
if test -z "$postdep_objects_CXX"; then
|
11284 |
|
|
postdep_objects_CXX="$p"
|
11285 |
|
|
else
|
11286 |
|
|
postdep_objects_CXX="$postdep_objects_CXX $p"
|
11287 |
|
|
fi
|
11288 |
|
|
fi
|
11289 |
|
|
;;
|
11290 |
|
|
|
11291 |
|
|
*) ;; # Ignore the rest.
|
11292 |
|
|
|
11293 |
|
|
esac
|
11294 |
|
|
done
|
11295 |
|
|
|
11296 |
|
|
# Clean up.
|
11297 |
|
|
rm -f a.out a.exe
|
11298 |
|
|
else
|
11299 |
|
|
echo "libtool.m4: error: problem compiling CXX test program"
|
11300 |
|
|
fi
|
11301 |
|
|
|
11302 |
|
|
$rm -f confest.$objext
|
11303 |
|
|
|
11304 |
|
|
# PORTME: override above test on systems where it is broken
|
11305 |
|
|
case $host_os in
|
11306 |
|
|
interix[3-9]*)
|
11307 |
|
|
# Interix 3.5 installs completely hosed .la files for C++, so rather than
|
11308 |
|
|
# hack all around it, let's just trust "g++" to DTRT.
|
11309 |
|
|
predep_objects_CXX=
|
11310 |
|
|
postdep_objects_CXX=
|
11311 |
|
|
postdeps_CXX=
|
11312 |
|
|
;;
|
11313 |
|
|
|
11314 |
|
|
linux*)
|
11315 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
11316 |
|
|
*Sun\ C*)
|
11317 |
|
|
# Sun C++ 5.9
|
11318 |
|
|
#
|
11319 |
|
|
# The more standards-conforming stlport4 library is
|
11320 |
|
|
# incompatible with the Cstd library. Avoid specifying
|
11321 |
|
|
# it if it's in CXXFLAGS. Ignore libCrun as
|
11322 |
|
|
# -library=stlport4 depends on it.
|
11323 |
|
|
case " $CXX $CXXFLAGS " in
|
11324 |
|
|
*" -library=stlport4 "*)
|
11325 |
|
|
solaris_use_stlport4=yes
|
11326 |
|
|
;;
|
11327 |
|
|
esac
|
11328 |
|
|
if test "$solaris_use_stlport4" != yes; then
|
11329 |
|
|
postdeps_CXX='-library=Cstd -library=Crun'
|
11330 |
|
|
fi
|
11331 |
|
|
;;
|
11332 |
|
|
esac
|
11333 |
|
|
;;
|
11334 |
|
|
|
11335 |
|
|
solaris*)
|
11336 |
|
|
case $cc_basename in
|
11337 |
|
|
CC*)
|
11338 |
|
|
# The more standards-conforming stlport4 library is
|
11339 |
|
|
# incompatible with the Cstd library. Avoid specifying
|
11340 |
|
|
# it if it's in CXXFLAGS. Ignore libCrun as
|
11341 |
|
|
# -library=stlport4 depends on it.
|
11342 |
|
|
case " $CXX $CXXFLAGS " in
|
11343 |
|
|
*" -library=stlport4 "*)
|
11344 |
|
|
solaris_use_stlport4=yes
|
11345 |
|
|
;;
|
11346 |
|
|
esac
|
11347 |
|
|
|
11348 |
|
|
# Adding this requires a known-good setup of shared libraries for
|
11349 |
|
|
# Sun compiler versions before 5.6, else PIC objects from an old
|
11350 |
|
|
# archive will be linked into the output, leading to subtle bugs.
|
11351 |
|
|
if test "$solaris_use_stlport4" != yes; then
|
11352 |
|
|
postdeps_CXX='-library=Cstd -library=Crun'
|
11353 |
|
|
fi
|
11354 |
|
|
;;
|
11355 |
|
|
esac
|
11356 |
|
|
;;
|
11357 |
|
|
esac
|
11358 |
|
|
|
11359 |
|
|
|
11360 |
|
|
case " $postdeps_CXX " in
|
11361 |
|
|
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
|
11362 |
|
|
esac
|
11363 |
|
|
|
11364 |
|
|
lt_prog_compiler_wl_CXX=
|
11365 |
|
|
lt_prog_compiler_pic_CXX=
|
11366 |
|
|
lt_prog_compiler_static_CXX=
|
11367 |
|
|
|
11368 |
|
|
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
11369 |
|
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
11370 |
|
|
|
11371 |
|
|
# C++ specific cases for pic, static, wl, etc.
|
11372 |
|
|
if test "$GXX" = yes; then
|
11373 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11374 |
|
|
lt_prog_compiler_static_CXX='-static'
|
11375 |
|
|
|
11376 |
|
|
case $host_os in
|
11377 |
|
|
aix*)
|
11378 |
|
|
# All AIX code is PIC.
|
11379 |
|
|
if test "$host_cpu" = ia64; then
|
11380 |
|
|
# AIX 5 now supports IA64 processor
|
11381 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11382 |
|
|
fi
|
11383 |
|
|
;;
|
11384 |
|
|
amigaos*)
|
11385 |
|
|
# FIXME: we need at least 68020 code to build shared libraries, but
|
11386 |
|
|
# adding the `-m68020' flag to GCC prevents building anything better,
|
11387 |
|
|
# like `-m68040'.
|
11388 |
|
|
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
|
11389 |
|
|
;;
|
11390 |
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
11391 |
|
|
# PIC is the default for these OSes.
|
11392 |
|
|
;;
|
11393 |
|
|
mingw* | cygwin* | os2* | pw32*)
|
11394 |
|
|
# This hack is so that the source file can tell whether it is being
|
11395 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
11396 |
|
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
11397 |
|
|
# (--disable-auto-import) libraries
|
11398 |
|
|
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
|
11399 |
|
|
;;
|
11400 |
|
|
darwin* | rhapsody*)
|
11401 |
|
|
# PIC is the default on this platform
|
11402 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
11403 |
|
|
lt_prog_compiler_pic_CXX='-fno-common'
|
11404 |
|
|
;;
|
11405 |
|
|
*djgpp*)
|
11406 |
|
|
# DJGPP does not support shared libraries at all
|
11407 |
|
|
lt_prog_compiler_pic_CXX=
|
11408 |
|
|
;;
|
11409 |
|
|
interix[3-9]*)
|
11410 |
|
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
11411 |
|
|
# Instead, we relocate shared libraries at runtime.
|
11412 |
|
|
;;
|
11413 |
|
|
sysv4*MP*)
|
11414 |
|
|
if test -d /usr/nec; then
|
11415 |
|
|
lt_prog_compiler_pic_CXX=-Kconform_pic
|
11416 |
|
|
fi
|
11417 |
|
|
;;
|
11418 |
|
|
hpux*)
|
11419 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
11420 |
|
|
# not for PA HP-UX.
|
11421 |
|
|
case $host_cpu in
|
11422 |
|
|
hppa*64*|ia64*)
|
11423 |
|
|
;;
|
11424 |
|
|
*)
|
11425 |
|
|
lt_prog_compiler_pic_CXX='-fPIC'
|
11426 |
|
|
;;
|
11427 |
|
|
esac
|
11428 |
|
|
;;
|
11429 |
|
|
*)
|
11430 |
|
|
lt_prog_compiler_pic_CXX='-fPIC'
|
11431 |
|
|
;;
|
11432 |
|
|
esac
|
11433 |
|
|
else
|
11434 |
|
|
case $host_os in
|
11435 |
|
|
aix4* | aix5*)
|
11436 |
|
|
# All AIX code is PIC.
|
11437 |
|
|
if test "$host_cpu" = ia64; then
|
11438 |
|
|
# AIX 5 now supports IA64 processor
|
11439 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11440 |
|
|
else
|
11441 |
|
|
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
|
11442 |
|
|
fi
|
11443 |
|
|
;;
|
11444 |
|
|
chorus*)
|
11445 |
|
|
case $cc_basename in
|
11446 |
|
|
cxch68*)
|
11447 |
|
|
# Green Hills C++ Compiler
|
11448 |
|
|
# _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"
|
11449 |
|
|
;;
|
11450 |
|
|
esac
|
11451 |
|
|
;;
|
11452 |
|
|
darwin*)
|
11453 |
|
|
# PIC is the default on this platform
|
11454 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
11455 |
|
|
case $cc_basename in
|
11456 |
|
|
xlc*)
|
11457 |
|
|
lt_prog_compiler_pic_CXX='-qnocommon'
|
11458 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11459 |
|
|
;;
|
11460 |
|
|
esac
|
11461 |
|
|
;;
|
11462 |
|
|
dgux*)
|
11463 |
|
|
case $cc_basename in
|
11464 |
|
|
ec++*)
|
11465 |
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
11466 |
|
|
;;
|
11467 |
|
|
ghcx*)
|
11468 |
|
|
# Green Hills C++ Compiler
|
11469 |
|
|
lt_prog_compiler_pic_CXX='-pic'
|
11470 |
|
|
;;
|
11471 |
|
|
*)
|
11472 |
|
|
;;
|
11473 |
|
|
esac
|
11474 |
|
|
;;
|
11475 |
|
|
freebsd* | dragonfly*)
|
11476 |
|
|
# FreeBSD uses GNU C++
|
11477 |
|
|
;;
|
11478 |
|
|
hpux9* | hpux10* | hpux11*)
|
11479 |
|
|
case $cc_basename in
|
11480 |
|
|
CC*)
|
11481 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11482 |
|
|
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
|
11483 |
|
|
if test "$host_cpu" != ia64; then
|
11484 |
|
|
lt_prog_compiler_pic_CXX='+Z'
|
11485 |
|
|
fi
|
11486 |
|
|
;;
|
11487 |
|
|
aCC*)
|
11488 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11489 |
|
|
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
|
11490 |
|
|
case $host_cpu in
|
11491 |
|
|
hppa*64*|ia64*)
|
11492 |
|
|
# +Z the default
|
11493 |
|
|
;;
|
11494 |
|
|
*)
|
11495 |
|
|
lt_prog_compiler_pic_CXX='+Z'
|
11496 |
|
|
;;
|
11497 |
|
|
esac
|
11498 |
|
|
;;
|
11499 |
|
|
*)
|
11500 |
|
|
;;
|
11501 |
|
|
esac
|
11502 |
|
|
;;
|
11503 |
|
|
interix*)
|
11504 |
|
|
# This is c89, which is MS Visual C++ (no shared libs)
|
11505 |
|
|
# Anyone wants to do a port?
|
11506 |
|
|
;;
|
11507 |
|
|
irix5* | irix6* | nonstopux*)
|
11508 |
|
|
case $cc_basename in
|
11509 |
|
|
CC*)
|
11510 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11511 |
|
|
lt_prog_compiler_static_CXX='-non_shared'
|
11512 |
|
|
# CC pic flag -KPIC is the default.
|
11513 |
|
|
;;
|
11514 |
|
|
*)
|
11515 |
|
|
;;
|
11516 |
|
|
esac
|
11517 |
|
|
;;
|
11518 |
|
|
linux* | k*bsd*-gnu)
|
11519 |
|
|
case $cc_basename in
|
11520 |
|
|
KCC*)
|
11521 |
|
|
# KAI C++ Compiler
|
11522 |
|
|
lt_prog_compiler_wl_CXX='--backend -Wl,'
|
11523 |
|
|
lt_prog_compiler_pic_CXX='-fPIC'
|
11524 |
|
|
;;
|
11525 |
|
|
icpc* | ecpc*)
|
11526 |
|
|
# Intel C++
|
11527 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11528 |
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
11529 |
|
|
lt_prog_compiler_static_CXX='-static'
|
11530 |
|
|
;;
|
11531 |
|
|
pgCC*)
|
11532 |
|
|
# Portland Group C++ compiler.
|
11533 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11534 |
|
|
lt_prog_compiler_pic_CXX='-fpic'
|
11535 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11536 |
|
|
;;
|
11537 |
|
|
cxx*)
|
11538 |
|
|
# Compaq C++
|
11539 |
|
|
# Make sure the PIC flag is empty. It appears that all Alpha
|
11540 |
|
|
# Linux and Compaq Tru64 Unix objects are PIC.
|
11541 |
|
|
lt_prog_compiler_pic_CXX=
|
11542 |
|
|
lt_prog_compiler_static_CXX='-non_shared'
|
11543 |
|
|
;;
|
11544 |
|
|
*)
|
11545 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
11546 |
|
|
*Sun\ C*)
|
11547 |
|
|
# Sun C++ 5.9
|
11548 |
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
11549 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11550 |
|
|
lt_prog_compiler_wl_CXX='-Qoption ld '
|
11551 |
|
|
;;
|
11552 |
|
|
esac
|
11553 |
|
|
;;
|
11554 |
|
|
esac
|
11555 |
|
|
;;
|
11556 |
|
|
lynxos*)
|
11557 |
|
|
;;
|
11558 |
|
|
m88k*)
|
11559 |
|
|
;;
|
11560 |
|
|
mvs*)
|
11561 |
|
|
case $cc_basename in
|
11562 |
|
|
cxx*)
|
11563 |
|
|
lt_prog_compiler_pic_CXX='-W c,exportall'
|
11564 |
|
|
;;
|
11565 |
|
|
*)
|
11566 |
|
|
;;
|
11567 |
|
|
esac
|
11568 |
|
|
;;
|
11569 |
|
|
netbsd*)
|
11570 |
|
|
;;
|
11571 |
|
|
osf3* | osf4* | osf5*)
|
11572 |
|
|
case $cc_basename in
|
11573 |
|
|
KCC*)
|
11574 |
|
|
lt_prog_compiler_wl_CXX='--backend -Wl,'
|
11575 |
|
|
;;
|
11576 |
|
|
RCC*)
|
11577 |
|
|
# Rational C++ 2.4.1
|
11578 |
|
|
lt_prog_compiler_pic_CXX='-pic'
|
11579 |
|
|
;;
|
11580 |
|
|
cxx*)
|
11581 |
|
|
# Digital/Compaq C++
|
11582 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11583 |
|
|
# Make sure the PIC flag is empty. It appears that all Alpha
|
11584 |
|
|
# Linux and Compaq Tru64 Unix objects are PIC.
|
11585 |
|
|
lt_prog_compiler_pic_CXX=
|
11586 |
|
|
lt_prog_compiler_static_CXX='-non_shared'
|
11587 |
|
|
;;
|
11588 |
|
|
*)
|
11589 |
|
|
;;
|
11590 |
|
|
esac
|
11591 |
|
|
;;
|
11592 |
|
|
psos*)
|
11593 |
|
|
;;
|
11594 |
|
|
solaris*)
|
11595 |
|
|
case $cc_basename in
|
11596 |
|
|
CC*)
|
11597 |
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
11598 |
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
11599 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11600 |
|
|
lt_prog_compiler_wl_CXX='-Qoption ld '
|
11601 |
|
|
;;
|
11602 |
|
|
gcx*)
|
11603 |
|
|
# Green Hills C++ Compiler
|
11604 |
|
|
lt_prog_compiler_pic_CXX='-PIC'
|
11605 |
|
|
;;
|
11606 |
|
|
*)
|
11607 |
|
|
;;
|
11608 |
|
|
esac
|
11609 |
|
|
;;
|
11610 |
|
|
sunos4*)
|
11611 |
|
|
case $cc_basename in
|
11612 |
|
|
CC*)
|
11613 |
|
|
# Sun C++ 4.x
|
11614 |
|
|
lt_prog_compiler_pic_CXX='-pic'
|
11615 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11616 |
|
|
;;
|
11617 |
|
|
lcc*)
|
11618 |
|
|
# Lucid
|
11619 |
|
|
lt_prog_compiler_pic_CXX='-pic'
|
11620 |
|
|
;;
|
11621 |
|
|
*)
|
11622 |
|
|
;;
|
11623 |
|
|
esac
|
11624 |
|
|
;;
|
11625 |
|
|
tandem*)
|
11626 |
|
|
case $cc_basename in
|
11627 |
|
|
NCC*)
|
11628 |
|
|
# NonStop-UX NCC 3.20
|
11629 |
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
11630 |
|
|
;;
|
11631 |
|
|
*)
|
11632 |
|
|
;;
|
11633 |
|
|
esac
|
11634 |
|
|
;;
|
11635 |
|
|
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
11636 |
|
|
case $cc_basename in
|
11637 |
|
|
CC*)
|
11638 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11639 |
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
11640 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11641 |
|
|
;;
|
11642 |
|
|
esac
|
11643 |
|
|
;;
|
11644 |
|
|
vxworks*)
|
11645 |
|
|
;;
|
11646 |
|
|
*)
|
11647 |
|
|
lt_prog_compiler_can_build_shared_CXX=no
|
11648 |
|
|
;;
|
11649 |
|
|
esac
|
11650 |
|
|
fi
|
11651 |
|
|
|
11652 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
|
11653 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
|
11654 |
|
|
|
11655 |
|
|
#
|
11656 |
|
|
# Check to make sure the PIC flag actually works.
|
11657 |
|
|
#
|
11658 |
|
|
if test -n "$lt_prog_compiler_pic_CXX"; then
|
11659 |
|
|
|
11660 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
|
11661 |
|
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
|
11662 |
|
|
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
|
11663 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
11664 |
|
|
else
|
11665 |
|
|
lt_prog_compiler_pic_works_CXX=no
|
11666 |
|
|
ac_outfile=conftest.$ac_objext
|
11667 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
11668 |
|
|
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
|
11669 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
11670 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
11671 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
11672 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
11673 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
11674 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
11675 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
11676 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
11677 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
11678 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
11679 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
11680 |
|
|
ac_status=$?
|
11681 |
|
|
cat conftest.err >&5
|
11682 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
11683 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
11684 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
11685 |
|
|
# So say no if there are warnings other than the usual output.
|
11686 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
11687 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
11688 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
11689 |
|
|
lt_prog_compiler_pic_works_CXX=yes
|
11690 |
|
|
fi
|
11691 |
|
|
fi
|
11692 |
|
|
$rm conftest*
|
11693 |
|
|
|
11694 |
|
|
fi
|
11695 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
|
11696 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
|
11697 |
|
|
|
11698 |
|
|
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
|
11699 |
|
|
case $lt_prog_compiler_pic_CXX in
|
11700 |
|
|
"" | " "*) ;;
|
11701 |
|
|
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
|
11702 |
|
|
esac
|
11703 |
|
|
else
|
11704 |
|
|
lt_prog_compiler_pic_CXX=
|
11705 |
|
|
lt_prog_compiler_can_build_shared_CXX=no
|
11706 |
|
|
fi
|
11707 |
|
|
|
11708 |
|
|
fi
|
11709 |
|
|
case $host_os in
|
11710 |
|
|
# For platforms which do not support PIC, -DPIC is meaningless:
|
11711 |
|
|
*djgpp*)
|
11712 |
|
|
lt_prog_compiler_pic_CXX=
|
11713 |
|
|
;;
|
11714 |
|
|
*)
|
11715 |
|
|
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
|
11716 |
|
|
;;
|
11717 |
|
|
esac
|
11718 |
|
|
|
11719 |
|
|
#
|
11720 |
|
|
# Check to make sure the static flag actually works.
|
11721 |
|
|
#
|
11722 |
|
|
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
|
11723 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
11724 |
|
|
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
11725 |
|
|
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
|
11726 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
11727 |
|
|
else
|
11728 |
|
|
lt_prog_compiler_static_works_CXX=no
|
11729 |
|
|
save_LDFLAGS="$LDFLAGS"
|
11730 |
|
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
11731 |
|
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
11732 |
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
11733 |
|
|
# The linker can only warn and ignore the option if not recognized
|
11734 |
|
|
# So say no if there are warnings
|
11735 |
|
|
if test -s conftest.err; then
|
11736 |
|
|
# Append any errors to the config.log.
|
11737 |
|
|
cat conftest.err 1>&5
|
11738 |
|
|
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
11739 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
11740 |
|
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
11741 |
|
|
lt_prog_compiler_static_works_CXX=yes
|
11742 |
|
|
fi
|
11743 |
|
|
else
|
11744 |
|
|
lt_prog_compiler_static_works_CXX=yes
|
11745 |
|
|
fi
|
11746 |
|
|
fi
|
11747 |
|
|
$rm conftest*
|
11748 |
|
|
LDFLAGS="$save_LDFLAGS"
|
11749 |
|
|
|
11750 |
|
|
fi
|
11751 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
|
11752 |
|
|
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
|
11753 |
|
|
|
11754 |
|
|
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
|
11755 |
|
|
:
|
11756 |
|
|
else
|
11757 |
|
|
lt_prog_compiler_static_CXX=
|
11758 |
|
|
fi
|
11759 |
|
|
|
11760 |
|
|
|
11761 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
11762 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
11763 |
|
|
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
|
11764 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
11765 |
|
|
else
|
11766 |
|
|
lt_cv_prog_compiler_c_o_CXX=no
|
11767 |
|
|
$rm -r conftest 2>/dev/null
|
11768 |
|
|
mkdir conftest
|
11769 |
|
|
cd conftest
|
11770 |
|
|
mkdir out
|
11771 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
11772 |
|
|
|
11773 |
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
11774 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
11775 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
11776 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
11777 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
11778 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
11779 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
11780 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
11781 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
11782 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
11783 |
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
11784 |
|
|
ac_status=$?
|
11785 |
|
|
cat out/conftest.err >&5
|
11786 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
11787 |
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
11788 |
|
|
then
|
11789 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
11790 |
|
|
# So say no if there are warnings
|
11791 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
11792 |
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
11793 |
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
11794 |
|
|
lt_cv_prog_compiler_c_o_CXX=yes
|
11795 |
|
|
fi
|
11796 |
|
|
fi
|
11797 |
|
|
chmod u+w . 2>&5
|
11798 |
|
|
$rm conftest*
|
11799 |
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
11800 |
|
|
# template instantiation
|
11801 |
|
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
11802 |
|
|
$rm out/* && rmdir out
|
11803 |
|
|
cd ..
|
11804 |
|
|
rmdir conftest
|
11805 |
|
|
$rm conftest*
|
11806 |
|
|
|
11807 |
|
|
fi
|
11808 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
|
11809 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
|
11810 |
|
|
|
11811 |
|
|
|
11812 |
|
|
hard_links="nottested"
|
11813 |
|
|
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
|
11814 |
|
|
# do not overwrite the value of need_locks provided by the user
|
11815 |
|
|
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
11816 |
|
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
11817 |
|
|
hard_links=yes
|
11818 |
|
|
$rm conftest*
|
11819 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
11820 |
|
|
touch conftest.a
|
11821 |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no
|
11822 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
11823 |
|
|
{ echo "$as_me:$LINENO: result: $hard_links" >&5
|
11824 |
|
|
echo "${ECHO_T}$hard_links" >&6; }
|
11825 |
|
|
if test "$hard_links" = no; then
|
11826 |
|
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
11827 |
|
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
11828 |
|
|
need_locks=warn
|
11829 |
|
|
fi
|
11830 |
|
|
else
|
11831 |
|
|
need_locks=no
|
11832 |
|
|
fi
|
11833 |
|
|
|
11834 |
|
|
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
11835 |
|
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
11836 |
|
|
|
11837 |
|
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
11838 |
|
|
case $host_os in
|
11839 |
|
|
aix4* | aix5*)
|
11840 |
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
11841 |
|
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
11842 |
|
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
11843 |
|
|
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'
|
11844 |
|
|
else
|
11845 |
|
|
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'
|
11846 |
|
|
fi
|
11847 |
|
|
;;
|
11848 |
|
|
pw32*)
|
11849 |
|
|
export_symbols_cmds_CXX="$ltdll_cmds"
|
11850 |
|
|
;;
|
11851 |
|
|
cygwin* | mingw*)
|
11852 |
|
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
11853 |
|
|
;;
|
11854 |
|
|
*)
|
11855 |
|
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
11856 |
|
|
;;
|
11857 |
|
|
esac
|
11858 |
|
|
|
11859 |
|
|
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
|
11860 |
|
|
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
|
11861 |
|
|
test "$ld_shlibs_CXX" = no && can_build_shared=no
|
11862 |
|
|
|
11863 |
|
|
#
|
11864 |
|
|
# Do we need to explicitly link libc?
|
11865 |
|
|
#
|
11866 |
|
|
case "x$archive_cmds_need_lc_CXX" in
|
11867 |
|
|
x|xyes)
|
11868 |
|
|
# Assume -lc should be added
|
11869 |
|
|
archive_cmds_need_lc_CXX=yes
|
11870 |
|
|
|
11871 |
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
11872 |
|
|
case $archive_cmds_CXX in
|
11873 |
|
|
*'~'*)
|
11874 |
|
|
# FIXME: we may have to deal with multi-command sequences.
|
11875 |
|
|
;;
|
11876 |
|
|
'$CC '*)
|
11877 |
|
|
# Test whether the compiler implicitly links with -lc since on some
|
11878 |
|
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
11879 |
|
|
# to ld, don't add -lc before -lgcc.
|
11880 |
|
|
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
11881 |
|
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
11882 |
|
|
$rm conftest*
|
11883 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
11884 |
|
|
|
11885 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
11886 |
|
|
(eval $ac_compile) 2>&5
|
11887 |
|
|
ac_status=$?
|
11888 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
11889 |
|
|
(exit $ac_status); } 2>conftest.err; then
|
11890 |
|
|
soname=conftest
|
11891 |
|
|
lib=conftest
|
11892 |
|
|
libobjs=conftest.$ac_objext
|
11893 |
|
|
deplibs=
|
11894 |
|
|
wl=$lt_prog_compiler_wl_CXX
|
11895 |
|
|
pic_flag=$lt_prog_compiler_pic_CXX
|
11896 |
|
|
compiler_flags=-v
|
11897 |
|
|
linker_flags=-v
|
11898 |
|
|
verstring=
|
11899 |
|
|
output_objdir=.
|
11900 |
|
|
libname=conftest
|
11901 |
|
|
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
|
11902 |
|
|
allow_undefined_flag_CXX=
|
11903 |
|
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
11904 |
|
|
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
11905 |
|
|
ac_status=$?
|
11906 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
11907 |
|
|
(exit $ac_status); }
|
11908 |
|
|
then
|
11909 |
|
|
archive_cmds_need_lc_CXX=no
|
11910 |
|
|
else
|
11911 |
|
|
archive_cmds_need_lc_CXX=yes
|
11912 |
|
|
fi
|
11913 |
|
|
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
|
11914 |
|
|
else
|
11915 |
|
|
cat conftest.err 1>&5
|
11916 |
|
|
fi
|
11917 |
|
|
$rm conftest*
|
11918 |
|
|
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
|
11919 |
|
|
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
|
11920 |
|
|
;;
|
11921 |
|
|
esac
|
11922 |
|
|
fi
|
11923 |
|
|
;;
|
11924 |
|
|
esac
|
11925 |
|
|
|
11926 |
|
|
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
11927 |
|
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
11928 |
|
|
library_names_spec=
|
11929 |
|
|
libname_spec='lib$name'
|
11930 |
|
|
soname_spec=
|
11931 |
|
|
shrext_cmds=".so"
|
11932 |
|
|
postinstall_cmds=
|
11933 |
|
|
postuninstall_cmds=
|
11934 |
|
|
finish_cmds=
|
11935 |
|
|
finish_eval=
|
11936 |
|
|
shlibpath_var=
|
11937 |
|
|
shlibpath_overrides_runpath=unknown
|
11938 |
|
|
version_type=none
|
11939 |
|
|
dynamic_linker="$host_os ld.so"
|
11940 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
11941 |
|
|
|
11942 |
|
|
need_lib_prefix=unknown
|
11943 |
|
|
hardcode_into_libs=no
|
11944 |
|
|
|
11945 |
|
|
# when you set need_version to no, make sure it does not cause -set_version
|
11946 |
|
|
# flags to be left without arguments
|
11947 |
|
|
need_version=unknown
|
11948 |
|
|
|
11949 |
|
|
case $host_os in
|
11950 |
|
|
aix3*)
|
11951 |
|
|
version_type=linux
|
11952 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
11953 |
|
|
shlibpath_var=LIBPATH
|
11954 |
|
|
|
11955 |
|
|
# AIX 3 has no versioning support, so we append a major version to the name.
|
11956 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
11957 |
|
|
;;
|
11958 |
|
|
|
11959 |
|
|
aix4* | aix5*)
|
11960 |
|
|
version_type=linux
|
11961 |
|
|
need_lib_prefix=no
|
11962 |
|
|
need_version=no
|
11963 |
|
|
hardcode_into_libs=yes
|
11964 |
|
|
if test "$host_cpu" = ia64; then
|
11965 |
|
|
# AIX 5 supports IA64
|
11966 |
|
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
11967 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
11968 |
|
|
else
|
11969 |
|
|
# With GCC up to 2.95.x, collect2 would create an import file
|
11970 |
|
|
# for dependence libraries. The import file would start with
|
11971 |
|
|
# the line `#! .'. This would cause the generated library to
|
11972 |
|
|
# depend on `.', always an invalid library. This was fixed in
|
11973 |
|
|
# development snapshots of GCC prior to 3.0.
|
11974 |
|
|
case $host_os in
|
11975 |
|
|
aix4 | aix4.[01] | aix4.[01].*)
|
11976 |
|
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
11977 |
|
|
echo ' yes '
|
11978 |
|
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
11979 |
|
|
:
|
11980 |
|
|
else
|
11981 |
|
|
can_build_shared=no
|
11982 |
|
|
fi
|
11983 |
|
|
;;
|
11984 |
|
|
esac
|
11985 |
|
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
11986 |
|
|
# soname into executable. Probably we can add versioning support to
|
11987 |
|
|
# collect2, so additional links can be useful in future.
|
11988 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
11989 |
|
|
# If using run time linking (on AIX 4.2 or later) use lib.so
|
11990 |
|
|
# instead of lib.a to let people know that these are not
|
11991 |
|
|
# typical AIX shared libraries.
|
11992 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
11993 |
|
|
else
|
11994 |
|
|
# We preserve .a as extension for shared libraries through AIX4.2
|
11995 |
|
|
# and later when we are not doing run time linking.
|
11996 |
|
|
library_names_spec='${libname}${release}.a $libname.a'
|
11997 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
11998 |
|
|
fi
|
11999 |
|
|
shlibpath_var=LIBPATH
|
12000 |
|
|
fi
|
12001 |
|
|
;;
|
12002 |
|
|
|
12003 |
|
|
amigaos*)
|
12004 |
|
|
library_names_spec='$libname.ixlibrary $libname.a'
|
12005 |
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
12006 |
|
|
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'
|
12007 |
|
|
;;
|
12008 |
|
|
|
12009 |
|
|
beos*)
|
12010 |
|
|
library_names_spec='${libname}${shared_ext}'
|
12011 |
|
|
dynamic_linker="$host_os ld.so"
|
12012 |
|
|
shlibpath_var=LIBRARY_PATH
|
12013 |
|
|
;;
|
12014 |
|
|
|
12015 |
|
|
bsdi[45]*)
|
12016 |
|
|
version_type=linux
|
12017 |
|
|
need_version=no
|
12018 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12019 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12020 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
12021 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12022 |
|
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
12023 |
|
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
12024 |
|
|
# the default ld.so.conf also contains /usr/contrib/lib and
|
12025 |
|
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
12026 |
|
|
# libtool to hard-code these into programs
|
12027 |
|
|
;;
|
12028 |
|
|
|
12029 |
|
|
cygwin* | mingw* | pw32*)
|
12030 |
|
|
version_type=windows
|
12031 |
|
|
shrext_cmds=".dll"
|
12032 |
|
|
need_version=no
|
12033 |
|
|
need_lib_prefix=no
|
12034 |
|
|
|
12035 |
|
|
case $GCC,$host_os in
|
12036 |
|
|
yes,cygwin* | yes,mingw* | yes,pw32*)
|
12037 |
|
|
library_names_spec='$libname.dll.a'
|
12038 |
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
12039 |
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
12040 |
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
12041 |
|
|
dldir=$destdir/`dirname \$dlpath`~
|
12042 |
|
|
test -d \$dldir || mkdir -p \$dldir~
|
12043 |
|
|
$install_prog $dir/$dlname \$dldir/$dlname~
|
12044 |
|
|
chmod a+x \$dldir/$dlname'
|
12045 |
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
12046 |
|
|
dlpath=$dir/\$dldll~
|
12047 |
|
|
$rm \$dlpath'
|
12048 |
|
|
shlibpath_overrides_runpath=yes
|
12049 |
|
|
|
12050 |
|
|
case $host_os in
|
12051 |
|
|
cygwin*)
|
12052 |
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
12053 |
|
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
12054 |
|
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
12055 |
|
|
;;
|
12056 |
|
|
mingw*)
|
12057 |
|
|
# MinGW DLLs use traditional 'lib' prefix
|
12058 |
|
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
12059 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
12060 |
|
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
12061 |
|
|
# It is most probably a Windows format PATH printed by
|
12062 |
|
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
12063 |
|
|
# path with ; separators, and with drive letters. We can handle the
|
12064 |
|
|
# drive letters (cygwin fileutils understands them), so leave them,
|
12065 |
|
|
# especially as we might pass files found there to a mingw objdump,
|
12066 |
|
|
# which wouldn't understand a cygwinified path. Ahh.
|
12067 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
12068 |
|
|
else
|
12069 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
12070 |
|
|
fi
|
12071 |
|
|
;;
|
12072 |
|
|
pw32*)
|
12073 |
|
|
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
12074 |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
12075 |
|
|
;;
|
12076 |
|
|
esac
|
12077 |
|
|
;;
|
12078 |
|
|
|
12079 |
|
|
*)
|
12080 |
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
12081 |
|
|
;;
|
12082 |
|
|
esac
|
12083 |
|
|
dynamic_linker='Win32 ld.exe'
|
12084 |
|
|
# FIXME: first we should search . and the directory the executable is in
|
12085 |
|
|
shlibpath_var=PATH
|
12086 |
|
|
;;
|
12087 |
|
|
|
12088 |
|
|
darwin* | rhapsody*)
|
12089 |
|
|
dynamic_linker="$host_os dyld"
|
12090 |
|
|
version_type=darwin
|
12091 |
|
|
need_lib_prefix=no
|
12092 |
|
|
need_version=no
|
12093 |
|
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
12094 |
|
|
soname_spec='${libname}${release}${major}$shared_ext'
|
12095 |
|
|
shlibpath_overrides_runpath=yes
|
12096 |
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
12097 |
|
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
12098 |
|
|
|
12099 |
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
12100 |
|
|
;;
|
12101 |
|
|
|
12102 |
|
|
dgux*)
|
12103 |
|
|
version_type=linux
|
12104 |
|
|
need_lib_prefix=no
|
12105 |
|
|
need_version=no
|
12106 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
12107 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12108 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12109 |
|
|
;;
|
12110 |
|
|
|
12111 |
|
|
freebsd1*)
|
12112 |
|
|
dynamic_linker=no
|
12113 |
|
|
;;
|
12114 |
|
|
|
12115 |
|
|
freebsd* | dragonfly*)
|
12116 |
|
|
# DragonFly does not have aout. When/if they implement a new
|
12117 |
|
|
# versioning mechanism, adjust this.
|
12118 |
|
|
if test -x /usr/bin/objformat; then
|
12119 |
|
|
objformat=`/usr/bin/objformat`
|
12120 |
|
|
else
|
12121 |
|
|
case $host_os in
|
12122 |
|
|
freebsd[123]*) objformat=aout ;;
|
12123 |
|
|
*) objformat=elf ;;
|
12124 |
|
|
esac
|
12125 |
|
|
fi
|
12126 |
|
|
version_type=freebsd-$objformat
|
12127 |
|
|
case $version_type in
|
12128 |
|
|
freebsd-elf*)
|
12129 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
12130 |
|
|
need_version=no
|
12131 |
|
|
need_lib_prefix=no
|
12132 |
|
|
;;
|
12133 |
|
|
freebsd-*)
|
12134 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
12135 |
|
|
need_version=yes
|
12136 |
|
|
;;
|
12137 |
|
|
esac
|
12138 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12139 |
|
|
case $host_os in
|
12140 |
|
|
freebsd2*)
|
12141 |
|
|
shlibpath_overrides_runpath=yes
|
12142 |
|
|
;;
|
12143 |
|
|
freebsd3.[01]* | freebsdelf3.[01]*)
|
12144 |
|
|
shlibpath_overrides_runpath=yes
|
12145 |
|
|
hardcode_into_libs=yes
|
12146 |
|
|
;;
|
12147 |
|
|
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
12148 |
|
|
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
12149 |
|
|
shlibpath_overrides_runpath=no
|
12150 |
|
|
hardcode_into_libs=yes
|
12151 |
|
|
;;
|
12152 |
|
|
*) # from 4.6 on, and DragonFly
|
12153 |
|
|
shlibpath_overrides_runpath=yes
|
12154 |
|
|
hardcode_into_libs=yes
|
12155 |
|
|
;;
|
12156 |
|
|
esac
|
12157 |
|
|
;;
|
12158 |
|
|
|
12159 |
|
|
gnu*)
|
12160 |
|
|
version_type=linux
|
12161 |
|
|
need_lib_prefix=no
|
12162 |
|
|
need_version=no
|
12163 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
12164 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12165 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12166 |
|
|
hardcode_into_libs=yes
|
12167 |
|
|
;;
|
12168 |
|
|
|
12169 |
|
|
hpux9* | hpux10* | hpux11*)
|
12170 |
|
|
# Give a soname corresponding to the major version so that dld.sl refuses to
|
12171 |
|
|
# link against other versions.
|
12172 |
|
|
version_type=sunos
|
12173 |
|
|
need_lib_prefix=no
|
12174 |
|
|
need_version=no
|
12175 |
|
|
case $host_cpu in
|
12176 |
|
|
ia64*)
|
12177 |
|
|
shrext_cmds='.so'
|
12178 |
|
|
hardcode_into_libs=yes
|
12179 |
|
|
dynamic_linker="$host_os dld.so"
|
12180 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12181 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
12182 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12183 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12184 |
|
|
if test "X$HPUX_IA64_MODE" = X32; then
|
12185 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
12186 |
|
|
else
|
12187 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
12188 |
|
|
fi
|
12189 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
12190 |
|
|
;;
|
12191 |
|
|
hppa*64*)
|
12192 |
|
|
shrext_cmds='.sl'
|
12193 |
|
|
hardcode_into_libs=yes
|
12194 |
|
|
dynamic_linker="$host_os dld.sl"
|
12195 |
|
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
12196 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
12197 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12198 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12199 |
|
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
12200 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
12201 |
|
|
;;
|
12202 |
|
|
*)
|
12203 |
|
|
shrext_cmds='.sl'
|
12204 |
|
|
dynamic_linker="$host_os dld.sl"
|
12205 |
|
|
shlibpath_var=SHLIB_PATH
|
12206 |
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
12207 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12208 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12209 |
|
|
;;
|
12210 |
|
|
esac
|
12211 |
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
12212 |
|
|
postinstall_cmds='chmod 555 $lib'
|
12213 |
|
|
;;
|
12214 |
|
|
|
12215 |
|
|
interix[3-9]*)
|
12216 |
|
|
version_type=linux
|
12217 |
|
|
need_lib_prefix=no
|
12218 |
|
|
need_version=no
|
12219 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
12220 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12221 |
|
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
12222 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12223 |
|
|
shlibpath_overrides_runpath=no
|
12224 |
|
|
hardcode_into_libs=yes
|
12225 |
|
|
;;
|
12226 |
|
|
|
12227 |
|
|
irix5* | irix6* | nonstopux*)
|
12228 |
|
|
case $host_os in
|
12229 |
|
|
nonstopux*) version_type=nonstopux ;;
|
12230 |
|
|
*)
|
12231 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
12232 |
|
|
version_type=linux
|
12233 |
|
|
else
|
12234 |
|
|
version_type=irix
|
12235 |
|
|
fi ;;
|
12236 |
|
|
esac
|
12237 |
|
|
need_lib_prefix=no
|
12238 |
|
|
need_version=no
|
12239 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12240 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
12241 |
|
|
case $host_os in
|
12242 |
|
|
irix5* | nonstopux*)
|
12243 |
|
|
libsuff= shlibsuff=
|
12244 |
|
|
;;
|
12245 |
|
|
*)
|
12246 |
|
|
case $LD in # libtool.m4 will add one of these switches to LD
|
12247 |
|
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
12248 |
|
|
libsuff= shlibsuff= libmagic=32-bit;;
|
12249 |
|
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
12250 |
|
|
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
12251 |
|
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
12252 |
|
|
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
12253 |
|
|
*) libsuff= shlibsuff= libmagic=never-match;;
|
12254 |
|
|
esac
|
12255 |
|
|
;;
|
12256 |
|
|
esac
|
12257 |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
12258 |
|
|
shlibpath_overrides_runpath=no
|
12259 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
12260 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
12261 |
|
|
hardcode_into_libs=yes
|
12262 |
|
|
;;
|
12263 |
|
|
|
12264 |
|
|
# No shared lib support for Linux oldld, aout, or coff.
|
12265 |
|
|
linux*oldld* | linux*aout* | linux*coff*)
|
12266 |
|
|
dynamic_linker=no
|
12267 |
|
|
;;
|
12268 |
|
|
|
12269 |
|
|
# This must be Linux ELF.
|
12270 |
|
|
linux* | k*bsd*-gnu)
|
12271 |
|
|
version_type=linux
|
12272 |
|
|
need_lib_prefix=no
|
12273 |
|
|
need_version=no
|
12274 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12275 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12276 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
12277 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12278 |
|
|
shlibpath_overrides_runpath=no
|
12279 |
|
|
# This implies no fast_install, which is unacceptable.
|
12280 |
|
|
# Some rework will be needed to allow for fast_install
|
12281 |
|
|
# before this can be enabled.
|
12282 |
|
|
hardcode_into_libs=yes
|
12283 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
12284 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
12285 |
|
|
|
12286 |
|
|
# Append ld.so.conf contents to the search path
|
12287 |
|
|
if test -f /etc/ld.so.conf; then
|
12288 |
|
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
12289 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
12290 |
|
|
fi
|
12291 |
|
|
|
12292 |
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
12293 |
|
|
# powerpc, because MkLinux only supported shared libraries with the
|
12294 |
|
|
# GNU dynamic linker. Since this was broken with cross compilers,
|
12295 |
|
|
# most powerpc-linux boxes support dynamic linking these days and
|
12296 |
|
|
# people can always --disable-shared, the test was removed, and we
|
12297 |
|
|
# assume the GNU/Linux dynamic linker is in use.
|
12298 |
|
|
dynamic_linker='GNU/Linux ld.so'
|
12299 |
|
|
;;
|
12300 |
|
|
|
12301 |
|
|
netbsd*)
|
12302 |
|
|
version_type=sunos
|
12303 |
|
|
need_lib_prefix=no
|
12304 |
|
|
need_version=no
|
12305 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
12306 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
12307 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
12308 |
|
|
dynamic_linker='NetBSD (a.out) ld.so'
|
12309 |
|
|
else
|
12310 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
12311 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12312 |
|
|
dynamic_linker='NetBSD ld.elf_so'
|
12313 |
|
|
fi
|
12314 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12315 |
|
|
shlibpath_overrides_runpath=yes
|
12316 |
|
|
hardcode_into_libs=yes
|
12317 |
|
|
;;
|
12318 |
|
|
|
12319 |
|
|
newsos6)
|
12320 |
|
|
version_type=linux
|
12321 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12322 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12323 |
|
|
shlibpath_overrides_runpath=yes
|
12324 |
|
|
;;
|
12325 |
|
|
|
12326 |
|
|
nto-qnx*)
|
12327 |
|
|
version_type=linux
|
12328 |
|
|
need_lib_prefix=no
|
12329 |
|
|
need_version=no
|
12330 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12331 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12332 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12333 |
|
|
shlibpath_overrides_runpath=yes
|
12334 |
|
|
;;
|
12335 |
|
|
|
12336 |
|
|
openbsd*)
|
12337 |
|
|
version_type=sunos
|
12338 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib"
|
12339 |
|
|
need_lib_prefix=no
|
12340 |
|
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
12341 |
|
|
case $host_os in
|
12342 |
|
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
12343 |
|
|
*) need_version=no ;;
|
12344 |
|
|
esac
|
12345 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
12346 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
12347 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12348 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
12349 |
|
|
case $host_os in
|
12350 |
|
|
openbsd2.[89] | openbsd2.[89].*)
|
12351 |
|
|
shlibpath_overrides_runpath=no
|
12352 |
|
|
;;
|
12353 |
|
|
*)
|
12354 |
|
|
shlibpath_overrides_runpath=yes
|
12355 |
|
|
;;
|
12356 |
|
|
esac
|
12357 |
|
|
else
|
12358 |
|
|
shlibpath_overrides_runpath=yes
|
12359 |
|
|
fi
|
12360 |
|
|
;;
|
12361 |
|
|
|
12362 |
|
|
os2*)
|
12363 |
|
|
libname_spec='$name'
|
12364 |
|
|
shrext_cmds=".dll"
|
12365 |
|
|
need_lib_prefix=no
|
12366 |
|
|
library_names_spec='$libname${shared_ext} $libname.a'
|
12367 |
|
|
dynamic_linker='OS/2 ld.exe'
|
12368 |
|
|
shlibpath_var=LIBPATH
|
12369 |
|
|
;;
|
12370 |
|
|
|
12371 |
|
|
osf3* | osf4* | osf5*)
|
12372 |
|
|
version_type=osf
|
12373 |
|
|
need_lib_prefix=no
|
12374 |
|
|
need_version=no
|
12375 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12376 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12377 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12378 |
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
12379 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
12380 |
|
|
;;
|
12381 |
|
|
|
12382 |
|
|
rdos*)
|
12383 |
|
|
dynamic_linker=no
|
12384 |
|
|
;;
|
12385 |
|
|
|
12386 |
|
|
solaris*)
|
12387 |
|
|
version_type=linux
|
12388 |
|
|
need_lib_prefix=no
|
12389 |
|
|
need_version=no
|
12390 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12391 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12392 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12393 |
|
|
shlibpath_overrides_runpath=yes
|
12394 |
|
|
hardcode_into_libs=yes
|
12395 |
|
|
# ldd complains unless libraries are executable
|
12396 |
|
|
postinstall_cmds='chmod +x $lib'
|
12397 |
|
|
;;
|
12398 |
|
|
|
12399 |
|
|
sunos4*)
|
12400 |
|
|
version_type=sunos
|
12401 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
12402 |
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
12403 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12404 |
|
|
shlibpath_overrides_runpath=yes
|
12405 |
|
|
if test "$with_gnu_ld" = yes; then
|
12406 |
|
|
need_lib_prefix=no
|
12407 |
|
|
fi
|
12408 |
|
|
need_version=yes
|
12409 |
|
|
;;
|
12410 |
|
|
|
12411 |
|
|
sysv4 | sysv4.3*)
|
12412 |
|
|
version_type=linux
|
12413 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12414 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12415 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12416 |
|
|
case $host_vendor in
|
12417 |
|
|
sni)
|
12418 |
|
|
shlibpath_overrides_runpath=no
|
12419 |
|
|
need_lib_prefix=no
|
12420 |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
12421 |
|
|
runpath_var=LD_RUN_PATH
|
12422 |
|
|
;;
|
12423 |
|
|
siemens)
|
12424 |
|
|
need_lib_prefix=no
|
12425 |
|
|
;;
|
12426 |
|
|
motorola)
|
12427 |
|
|
need_lib_prefix=no
|
12428 |
|
|
need_version=no
|
12429 |
|
|
shlibpath_overrides_runpath=no
|
12430 |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
12431 |
|
|
;;
|
12432 |
|
|
esac
|
12433 |
|
|
;;
|
12434 |
|
|
|
12435 |
|
|
sysv4*MP*)
|
12436 |
|
|
if test -d /usr/nec ;then
|
12437 |
|
|
version_type=linux
|
12438 |
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
12439 |
|
|
soname_spec='$libname${shared_ext}.$major'
|
12440 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12441 |
|
|
fi
|
12442 |
|
|
;;
|
12443 |
|
|
|
12444 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
12445 |
|
|
version_type=freebsd-elf
|
12446 |
|
|
need_lib_prefix=no
|
12447 |
|
|
need_version=no
|
12448 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
12449 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12450 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12451 |
|
|
hardcode_into_libs=yes
|
12452 |
|
|
if test "$with_gnu_ld" = yes; then
|
12453 |
|
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
12454 |
|
|
shlibpath_overrides_runpath=no
|
12455 |
|
|
else
|
12456 |
|
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
12457 |
|
|
shlibpath_overrides_runpath=yes
|
12458 |
|
|
case $host_os in
|
12459 |
|
|
sco3.2v5*)
|
12460 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
12461 |
|
|
;;
|
12462 |
|
|
esac
|
12463 |
|
|
fi
|
12464 |
|
|
sys_lib_dlsearch_path_spec='/usr/lib'
|
12465 |
|
|
;;
|
12466 |
|
|
|
12467 |
|
|
uts4*)
|
12468 |
|
|
version_type=linux
|
12469 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12470 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12471 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12472 |
|
|
;;
|
12473 |
|
|
|
12474 |
|
|
*)
|
12475 |
|
|
dynamic_linker=no
|
12476 |
|
|
;;
|
12477 |
|
|
esac
|
12478 |
|
|
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
12479 |
|
|
echo "${ECHO_T}$dynamic_linker" >&6; }
|
12480 |
|
|
test "$dynamic_linker" = no && can_build_shared=no
|
12481 |
|
|
|
12482 |
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
12483 |
|
|
if test "$GCC" = yes; then
|
12484 |
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
12485 |
|
|
fi
|
12486 |
|
|
|
12487 |
|
|
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
12488 |
|
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
12489 |
|
|
hardcode_action_CXX=
|
12490 |
|
|
if test -n "$hardcode_libdir_flag_spec_CXX" || \
|
12491 |
|
|
test -n "$runpath_var_CXX" || \
|
12492 |
|
|
test "X$hardcode_automatic_CXX" = "Xyes" ; then
|
12493 |
|
|
|
12494 |
|
|
# We can hardcode non-existant directories.
|
12495 |
|
|
if test "$hardcode_direct_CXX" != no &&
|
12496 |
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
12497 |
|
|
# have to relink, otherwise we might link with an installed library
|
12498 |
|
|
# when we should be linking with a yet-to-be-installed one
|
12499 |
|
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
|
12500 |
|
|
test "$hardcode_minus_L_CXX" != no; then
|
12501 |
|
|
# Linking always hardcodes the temporary library directory.
|
12502 |
|
|
hardcode_action_CXX=relink
|
12503 |
|
|
else
|
12504 |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
12505 |
|
|
hardcode_action_CXX=immediate
|
12506 |
|
|
fi
|
12507 |
|
|
else
|
12508 |
|
|
# We cannot hardcode anything, or else we can only hardcode existing
|
12509 |
|
|
# directories.
|
12510 |
|
|
hardcode_action_CXX=unsupported
|
12511 |
|
|
fi
|
12512 |
|
|
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
|
12513 |
|
|
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
|
12514 |
|
|
|
12515 |
|
|
if test "$hardcode_action_CXX" = relink; then
|
12516 |
|
|
# Fast installation is not supported
|
12517 |
|
|
enable_fast_install=no
|
12518 |
|
|
elif test "$shlibpath_overrides_runpath" = yes ||
|
12519 |
|
|
test "$enable_shared" = no; then
|
12520 |
|
|
# Fast installation is not necessary
|
12521 |
|
|
enable_fast_install=needless
|
12522 |
|
|
fi
|
12523 |
|
|
|
12524 |
|
|
|
12525 |
|
|
# The else clause should only fire when bootstrapping the
|
12526 |
|
|
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
12527 |
|
|
# with your package, and you will get complaints that there are
|
12528 |
|
|
# no rules to generate ltmain.sh.
|
12529 |
|
|
if test -f "$ltmain"; then
|
12530 |
|
|
# See if we are running on zsh, and set the options which allow our commands through
|
12531 |
|
|
# without removal of \ escapes.
|
12532 |
|
|
if test -n "${ZSH_VERSION+set}" ; then
|
12533 |
|
|
setopt NO_GLOB_SUBST
|
12534 |
|
|
fi
|
12535 |
|
|
# Now quote all the things that may contain metacharacters while being
|
12536 |
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
12537 |
|
|
# variables and quote the copies for generation of the libtool script.
|
12538 |
|
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
12539 |
|
|
SED SHELL STRIP \
|
12540 |
|
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
12541 |
|
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
12542 |
|
|
deplibs_check_method reload_flag reload_cmds need_locks \
|
12543 |
|
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
12544 |
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
12545 |
|
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
12546 |
|
|
old_postinstall_cmds old_postuninstall_cmds \
|
12547 |
|
|
compiler_CXX \
|
12548 |
|
|
CC_CXX \
|
12549 |
|
|
LD_CXX \
|
12550 |
|
|
lt_prog_compiler_wl_CXX \
|
12551 |
|
|
lt_prog_compiler_pic_CXX \
|
12552 |
|
|
lt_prog_compiler_static_CXX \
|
12553 |
|
|
lt_prog_compiler_no_builtin_flag_CXX \
|
12554 |
|
|
export_dynamic_flag_spec_CXX \
|
12555 |
|
|
thread_safe_flag_spec_CXX \
|
12556 |
|
|
whole_archive_flag_spec_CXX \
|
12557 |
|
|
enable_shared_with_static_runtimes_CXX \
|
12558 |
|
|
old_archive_cmds_CXX \
|
12559 |
|
|
old_archive_from_new_cmds_CXX \
|
12560 |
|
|
predep_objects_CXX \
|
12561 |
|
|
postdep_objects_CXX \
|
12562 |
|
|
predeps_CXX \
|
12563 |
|
|
postdeps_CXX \
|
12564 |
|
|
compiler_lib_search_path_CXX \
|
12565 |
|
|
archive_cmds_CXX \
|
12566 |
|
|
archive_expsym_cmds_CXX \
|
12567 |
|
|
postinstall_cmds_CXX \
|
12568 |
|
|
postuninstall_cmds_CXX \
|
12569 |
|
|
old_archive_from_expsyms_cmds_CXX \
|
12570 |
|
|
allow_undefined_flag_CXX \
|
12571 |
|
|
no_undefined_flag_CXX \
|
12572 |
|
|
export_symbols_cmds_CXX \
|
12573 |
|
|
hardcode_libdir_flag_spec_CXX \
|
12574 |
|
|
hardcode_libdir_flag_spec_ld_CXX \
|
12575 |
|
|
hardcode_libdir_separator_CXX \
|
12576 |
|
|
hardcode_automatic_CXX \
|
12577 |
|
|
module_cmds_CXX \
|
12578 |
|
|
module_expsym_cmds_CXX \
|
12579 |
|
|
lt_cv_prog_compiler_c_o_CXX \
|
12580 |
|
|
fix_srcfile_path_CXX \
|
12581 |
|
|
exclude_expsyms_CXX \
|
12582 |
|
|
include_expsyms_CXX; do
|
12583 |
|
|
|
12584 |
|
|
case $var in
|
12585 |
|
|
old_archive_cmds_CXX | \
|
12586 |
|
|
old_archive_from_new_cmds_CXX | \
|
12587 |
|
|
archive_cmds_CXX | \
|
12588 |
|
|
archive_expsym_cmds_CXX | \
|
12589 |
|
|
module_cmds_CXX | \
|
12590 |
|
|
module_expsym_cmds_CXX | \
|
12591 |
|
|
old_archive_from_expsyms_cmds_CXX | \
|
12592 |
|
|
export_symbols_cmds_CXX | \
|
12593 |
|
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
12594 |
|
|
postinstall_cmds | postuninstall_cmds | \
|
12595 |
|
|
old_postinstall_cmds | old_postuninstall_cmds | \
|
12596 |
|
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
12597 |
|
|
# Double-quote double-evaled strings.
|
12598 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
12599 |
|
|
;;
|
12600 |
|
|
*)
|
12601 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
12602 |
|
|
;;
|
12603 |
|
|
esac
|
12604 |
|
|
done
|
12605 |
|
|
|
12606 |
|
|
case $lt_echo in
|
12607 |
|
|
*'\$0 --fallback-echo"')
|
12608 |
|
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
12609 |
|
|
;;
|
12610 |
|
|
esac
|
12611 |
|
|
|
12612 |
|
|
cfgfile="$ofile"
|
12613 |
|
|
|
12614 |
|
|
cat <<__EOF__ >> "$cfgfile"
|
12615 |
|
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
12616 |
|
|
|
12617 |
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
12618 |
|
|
|
12619 |
|
|
# Shell to use when invoking shell scripts.
|
12620 |
|
|
SHELL=$lt_SHELL
|
12621 |
|
|
|
12622 |
|
|
# Whether or not to build shared libraries.
|
12623 |
|
|
build_libtool_libs=$enable_shared
|
12624 |
|
|
|
12625 |
|
|
# Whether or not to build static libraries.
|
12626 |
|
|
build_old_libs=$enable_static
|
12627 |
|
|
|
12628 |
|
|
# Whether or not to add -lc for building shared libraries.
|
12629 |
|
|
build_libtool_need_lc=$archive_cmds_need_lc_CXX
|
12630 |
|
|
|
12631 |
|
|
# Whether or not to disallow shared libs when runtime libs are static
|
12632 |
|
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
|
12633 |
|
|
|
12634 |
|
|
# Whether or not to optimize for fast installation.
|
12635 |
|
|
fast_install=$enable_fast_install
|
12636 |
|
|
|
12637 |
|
|
# The host system.
|
12638 |
|
|
host_alias=$host_alias
|
12639 |
|
|
host=$host
|
12640 |
|
|
host_os=$host_os
|
12641 |
|
|
|
12642 |
|
|
# The build system.
|
12643 |
|
|
build_alias=$build_alias
|
12644 |
|
|
build=$build
|
12645 |
|
|
build_os=$build_os
|
12646 |
|
|
|
12647 |
|
|
# An echo program that does not interpret backslashes.
|
12648 |
|
|
echo=$lt_echo
|
12649 |
|
|
|
12650 |
|
|
# The archiver.
|
12651 |
|
|
AR=$lt_AR
|
12652 |
|
|
AR_FLAGS=$lt_AR_FLAGS
|
12653 |
|
|
|
12654 |
|
|
# A C compiler.
|
12655 |
|
|
LTCC=$lt_LTCC
|
12656 |
|
|
|
12657 |
|
|
# LTCC compiler flags.
|
12658 |
|
|
LTCFLAGS=$lt_LTCFLAGS
|
12659 |
|
|
|
12660 |
|
|
# A language-specific compiler.
|
12661 |
|
|
CC=$lt_compiler_CXX
|
12662 |
|
|
|
12663 |
|
|
# Is the compiler the GNU C compiler?
|
12664 |
|
|
with_gcc=$GCC_CXX
|
12665 |
|
|
|
12666 |
|
|
# An ERE matcher.
|
12667 |
|
|
EGREP=$lt_EGREP
|
12668 |
|
|
|
12669 |
|
|
# The linker used to build libraries.
|
12670 |
|
|
LD=$lt_LD_CXX
|
12671 |
|
|
|
12672 |
|
|
# Whether we need hard or soft links.
|
12673 |
|
|
LN_S=$lt_LN_S
|
12674 |
|
|
|
12675 |
|
|
# A BSD-compatible nm program.
|
12676 |
|
|
NM=$lt_NM
|
12677 |
|
|
|
12678 |
|
|
# A symbol stripping program
|
12679 |
|
|
STRIP=$lt_STRIP
|
12680 |
|
|
|
12681 |
|
|
# Used to examine libraries when file_magic_cmd begins "file"
|
12682 |
|
|
MAGIC_CMD=$MAGIC_CMD
|
12683 |
|
|
|
12684 |
|
|
# Used on cygwin: DLL creation program.
|
12685 |
|
|
DLLTOOL="$DLLTOOL"
|
12686 |
|
|
|
12687 |
|
|
# Used on cygwin: object dumper.
|
12688 |
|
|
OBJDUMP="$OBJDUMP"
|
12689 |
|
|
|
12690 |
|
|
# Used on cygwin: assembler.
|
12691 |
|
|
AS="$AS"
|
12692 |
|
|
|
12693 |
|
|
# The name of the directory that contains temporary libtool files.
|
12694 |
|
|
objdir=$objdir
|
12695 |
|
|
|
12696 |
|
|
# How to create reloadable object files.
|
12697 |
|
|
reload_flag=$lt_reload_flag
|
12698 |
|
|
reload_cmds=$lt_reload_cmds
|
12699 |
|
|
|
12700 |
|
|
# How to pass a linker flag through the compiler.
|
12701 |
|
|
wl=$lt_lt_prog_compiler_wl_CXX
|
12702 |
|
|
|
12703 |
|
|
# Object file suffix (normally "o").
|
12704 |
|
|
objext="$ac_objext"
|
12705 |
|
|
|
12706 |
|
|
# Old archive suffix (normally "a").
|
12707 |
|
|
libext="$libext"
|
12708 |
|
|
|
12709 |
|
|
# Shared library suffix (normally ".so").
|
12710 |
|
|
shrext_cmds='$shrext_cmds'
|
12711 |
|
|
|
12712 |
|
|
# Executable file suffix (normally "").
|
12713 |
|
|
exeext="$exeext"
|
12714 |
|
|
|
12715 |
|
|
# Additional compiler flags for building library objects.
|
12716 |
|
|
pic_flag=$lt_lt_prog_compiler_pic_CXX
|
12717 |
|
|
pic_mode=$pic_mode
|
12718 |
|
|
|
12719 |
|
|
# What is the maximum length of a command?
|
12720 |
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
12721 |
|
|
|
12722 |
|
|
# Does compiler simultaneously support -c and -o options?
|
12723 |
|
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
|
12724 |
|
|
|
12725 |
|
|
# Must we lock files when doing compilation?
|
12726 |
|
|
need_locks=$lt_need_locks
|
12727 |
|
|
|
12728 |
|
|
# Do we need the lib prefix for modules?
|
12729 |
|
|
need_lib_prefix=$need_lib_prefix
|
12730 |
|
|
|
12731 |
|
|
# Do we need a version for libraries?
|
12732 |
|
|
need_version=$need_version
|
12733 |
|
|
|
12734 |
|
|
# Whether dlopen is supported.
|
12735 |
|
|
dlopen_support=$enable_dlopen
|
12736 |
|
|
|
12737 |
|
|
# Whether dlopen of programs is supported.
|
12738 |
|
|
dlopen_self=$enable_dlopen_self
|
12739 |
|
|
|
12740 |
|
|
# Whether dlopen of statically linked programs is supported.
|
12741 |
|
|
dlopen_self_static=$enable_dlopen_self_static
|
12742 |
|
|
|
12743 |
|
|
# Compiler flag to prevent dynamic linking.
|
12744 |
|
|
link_static_flag=$lt_lt_prog_compiler_static_CXX
|
12745 |
|
|
|
12746 |
|
|
# Compiler flag to turn off builtin functions.
|
12747 |
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
|
12748 |
|
|
|
12749 |
|
|
# Compiler flag to allow reflexive dlopens.
|
12750 |
|
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
|
12751 |
|
|
|
12752 |
|
|
# Compiler flag to generate shared objects directly from archives.
|
12753 |
|
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
|
12754 |
|
|
|
12755 |
|
|
# Compiler flag to generate thread-safe objects.
|
12756 |
|
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
|
12757 |
|
|
|
12758 |
|
|
# Library versioning type.
|
12759 |
|
|
version_type=$version_type
|
12760 |
|
|
|
12761 |
|
|
# Format of library name prefix.
|
12762 |
|
|
libname_spec=$lt_libname_spec
|
12763 |
|
|
|
12764 |
|
|
# List of archive names. First name is the real one, the rest are links.
|
12765 |
|
|
# The last name is the one that the linker finds with -lNAME.
|
12766 |
|
|
library_names_spec=$lt_library_names_spec
|
12767 |
|
|
|
12768 |
|
|
# The coded name of the library, if different from the real name.
|
12769 |
|
|
soname_spec=$lt_soname_spec
|
12770 |
|
|
|
12771 |
|
|
# Commands used to build and install an old-style archive.
|
12772 |
|
|
RANLIB=$lt_RANLIB
|
12773 |
|
|
old_archive_cmds=$lt_old_archive_cmds_CXX
|
12774 |
|
|
old_postinstall_cmds=$lt_old_postinstall_cmds
|
12775 |
|
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
12776 |
|
|
|
12777 |
|
|
# Create an old-style archive from a shared archive.
|
12778 |
|
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
|
12779 |
|
|
|
12780 |
|
|
# Create a temporary old-style archive to link instead of a shared archive.
|
12781 |
|
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
|
12782 |
|
|
|
12783 |
|
|
# Commands used to build and install a shared archive.
|
12784 |
|
|
archive_cmds=$lt_archive_cmds_CXX
|
12785 |
|
|
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
|
12786 |
|
|
postinstall_cmds=$lt_postinstall_cmds
|
12787 |
|
|
postuninstall_cmds=$lt_postuninstall_cmds
|
12788 |
|
|
|
12789 |
|
|
# Commands used to build a loadable module (assumed same as above if empty)
|
12790 |
|
|
module_cmds=$lt_module_cmds_CXX
|
12791 |
|
|
module_expsym_cmds=$lt_module_expsym_cmds_CXX
|
12792 |
|
|
|
12793 |
|
|
# Commands to strip libraries.
|
12794 |
|
|
old_striplib=$lt_old_striplib
|
12795 |
|
|
striplib=$lt_striplib
|
12796 |
|
|
|
12797 |
|
|
# Dependencies to place before the objects being linked to create a
|
12798 |
|
|
# shared library.
|
12799 |
|
|
predep_objects=$lt_predep_objects_CXX
|
12800 |
|
|
|
12801 |
|
|
# Dependencies to place after the objects being linked to create a
|
12802 |
|
|
# shared library.
|
12803 |
|
|
postdep_objects=$lt_postdep_objects_CXX
|
12804 |
|
|
|
12805 |
|
|
# Dependencies to place before the objects being linked to create a
|
12806 |
|
|
# shared library.
|
12807 |
|
|
predeps=$lt_predeps_CXX
|
12808 |
|
|
|
12809 |
|
|
# Dependencies to place after the objects being linked to create a
|
12810 |
|
|
# shared library.
|
12811 |
|
|
postdeps=$lt_postdeps_CXX
|
12812 |
|
|
|
12813 |
|
|
# The library search path used internally by the compiler when linking
|
12814 |
|
|
# a shared library.
|
12815 |
|
|
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
|
12816 |
|
|
|
12817 |
|
|
# Method to check whether dependent libraries are shared objects.
|
12818 |
|
|
deplibs_check_method=$lt_deplibs_check_method
|
12819 |
|
|
|
12820 |
|
|
# Command to use when deplibs_check_method == file_magic.
|
12821 |
|
|
file_magic_cmd=$lt_file_magic_cmd
|
12822 |
|
|
|
12823 |
|
|
# Flag that allows shared libraries with undefined symbols to be built.
|
12824 |
|
|
allow_undefined_flag=$lt_allow_undefined_flag_CXX
|
12825 |
|
|
|
12826 |
|
|
# Flag that forces no undefined symbols.
|
12827 |
|
|
no_undefined_flag=$lt_no_undefined_flag_CXX
|
12828 |
|
|
|
12829 |
|
|
# Commands used to finish a libtool library installation in a directory.
|
12830 |
|
|
finish_cmds=$lt_finish_cmds
|
12831 |
|
|
|
12832 |
|
|
# Same as above, but a single script fragment to be evaled but not shown.
|
12833 |
|
|
finish_eval=$lt_finish_eval
|
12834 |
|
|
|
12835 |
|
|
# Take the output of nm and produce a listing of raw symbols and C names.
|
12836 |
|
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
12837 |
|
|
|
12838 |
|
|
# Transform the output of nm in a proper C declaration
|
12839 |
|
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
12840 |
|
|
|
12841 |
|
|
# Transform the output of nm in a C name address pair
|
12842 |
|
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
12843 |
|
|
|
12844 |
|
|
# This is the shared library runtime path variable.
|
12845 |
|
|
runpath_var=$runpath_var
|
12846 |
|
|
|
12847 |
|
|
# This is the shared library path variable.
|
12848 |
|
|
shlibpath_var=$shlibpath_var
|
12849 |
|
|
|
12850 |
|
|
# Is shlibpath searched before the hard-coded library search path?
|
12851 |
|
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
12852 |
|
|
|
12853 |
|
|
# How to hardcode a shared library path into an executable.
|
12854 |
|
|
hardcode_action=$hardcode_action_CXX
|
12855 |
|
|
|
12856 |
|
|
# Whether we should hardcode library paths into libraries.
|
12857 |
|
|
hardcode_into_libs=$hardcode_into_libs
|
12858 |
|
|
|
12859 |
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
12860 |
|
|
# This must work even if \$libdir does not exist.
|
12861 |
|
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
|
12862 |
|
|
|
12863 |
|
|
# If ld is used when linking, flag to hardcode \$libdir into
|
12864 |
|
|
# a binary during linking. This must work even if \$libdir does
|
12865 |
|
|
# not exist.
|
12866 |
|
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
|
12867 |
|
|
|
12868 |
|
|
# Whether we need a single -rpath flag with a separated argument.
|
12869 |
|
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
|
12870 |
|
|
|
12871 |
|
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
12872 |
|
|
# resulting binary.
|
12873 |
|
|
hardcode_direct=$hardcode_direct_CXX
|
12874 |
|
|
|
12875 |
|
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
12876 |
|
|
# resulting binary.
|
12877 |
|
|
hardcode_minus_L=$hardcode_minus_L_CXX
|
12878 |
|
|
|
12879 |
|
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
12880 |
|
|
# the resulting binary.
|
12881 |
|
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
|
12882 |
|
|
|
12883 |
|
|
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
12884 |
|
|
# and all subsequent libraries and executables linked against it.
|
12885 |
|
|
hardcode_automatic=$hardcode_automatic_CXX
|
12886 |
|
|
|
12887 |
|
|
# Variables whose values should be saved in libtool wrapper scripts and
|
12888 |
|
|
# restored at relink time.
|
12889 |
|
|
variables_saved_for_relink="$variables_saved_for_relink"
|
12890 |
|
|
|
12891 |
|
|
# Whether libtool must link a program against all its dependency libraries.
|
12892 |
|
|
link_all_deplibs=$link_all_deplibs_CXX
|
12893 |
|
|
|
12894 |
|
|
# Compile-time system search path for libraries
|
12895 |
|
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
12896 |
|
|
|
12897 |
|
|
# Run-time system search path for libraries
|
12898 |
|
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
12899 |
|
|
|
12900 |
|
|
# Fix the shell variable \$srcfile for the compiler.
|
12901 |
|
|
fix_srcfile_path=$lt_fix_srcfile_path
|
12902 |
|
|
|
12903 |
|
|
# Set to yes if exported symbols are required.
|
12904 |
|
|
always_export_symbols=$always_export_symbols_CXX
|
12905 |
|
|
|
12906 |
|
|
# The commands to list exported symbols.
|
12907 |
|
|
export_symbols_cmds=$lt_export_symbols_cmds_CXX
|
12908 |
|
|
|
12909 |
|
|
# The commands to extract the exported symbol list from a shared archive.
|
12910 |
|
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
12911 |
|
|
|
12912 |
|
|
# Symbols that should not be listed in the preloaded symbols.
|
12913 |
|
|
exclude_expsyms=$lt_exclude_expsyms_CXX
|
12914 |
|
|
|
12915 |
|
|
# Symbols that must always be exported.
|
12916 |
|
|
include_expsyms=$lt_include_expsyms_CXX
|
12917 |
|
|
|
12918 |
|
|
# ### END LIBTOOL TAG CONFIG: $tagname
|
12919 |
|
|
|
12920 |
|
|
__EOF__
|
12921 |
|
|
|
12922 |
|
|
|
12923 |
|
|
else
|
12924 |
|
|
# If there is no Makefile yet, we rely on a make rule to execute
|
12925 |
|
|
# `config.status --recheck' to rerun these tests and create the
|
12926 |
|
|
# libtool script then.
|
12927 |
|
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
12928 |
|
|
if test -f "$ltmain_in"; then
|
12929 |
|
|
test -f Makefile && make "$ltmain"
|
12930 |
|
|
fi
|
12931 |
|
|
fi
|
12932 |
|
|
|
12933 |
|
|
|
12934 |
|
|
ac_ext=c
|
12935 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
12936 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
12937 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
12938 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
12939 |
|
|
|
12940 |
|
|
CC=$lt_save_CC
|
12941 |
|
|
LDCXX=$LD
|
12942 |
|
|
LD=$lt_save_LD
|
12943 |
|
|
GCC=$lt_save_GCC
|
12944 |
|
|
with_gnu_ldcxx=$with_gnu_ld
|
12945 |
|
|
with_gnu_ld=$lt_save_with_gnu_ld
|
12946 |
|
|
lt_cv_path_LDCXX=$lt_cv_path_LD
|
12947 |
|
|
lt_cv_path_LD=$lt_save_path_LD
|
12948 |
|
|
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
12949 |
|
|
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
12950 |
|
|
|
12951 |
|
|
else
|
12952 |
|
|
tagname=""
|
12953 |
|
|
fi
|
12954 |
|
|
;;
|
12955 |
|
|
|
12956 |
|
|
F77)
|
12957 |
|
|
if test -n "$F77" && test "X$F77" != "Xno"; then
|
12958 |
|
|
|
12959 |
|
|
ac_ext=f
|
12960 |
|
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
12961 |
|
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
12962 |
|
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
12963 |
|
|
|
12964 |
|
|
|
12965 |
|
|
archive_cmds_need_lc_F77=no
|
12966 |
|
|
allow_undefined_flag_F77=
|
12967 |
|
|
always_export_symbols_F77=no
|
12968 |
|
|
archive_expsym_cmds_F77=
|
12969 |
|
|
export_dynamic_flag_spec_F77=
|
12970 |
|
|
hardcode_direct_F77=no
|
12971 |
|
|
hardcode_libdir_flag_spec_F77=
|
12972 |
|
|
hardcode_libdir_flag_spec_ld_F77=
|
12973 |
|
|
hardcode_libdir_separator_F77=
|
12974 |
|
|
hardcode_minus_L_F77=no
|
12975 |
|
|
hardcode_automatic_F77=no
|
12976 |
|
|
module_cmds_F77=
|
12977 |
|
|
module_expsym_cmds_F77=
|
12978 |
|
|
link_all_deplibs_F77=unknown
|
12979 |
|
|
old_archive_cmds_F77=$old_archive_cmds
|
12980 |
|
|
no_undefined_flag_F77=
|
12981 |
|
|
whole_archive_flag_spec_F77=
|
12982 |
|
|
enable_shared_with_static_runtimes_F77=no
|
12983 |
|
|
|
12984 |
|
|
# Source file extension for f77 test sources.
|
12985 |
|
|
ac_ext=f
|
12986 |
|
|
|
12987 |
|
|
# Object file extension for compiled f77 test sources.
|
12988 |
|
|
objext=o
|
12989 |
|
|
objext_F77=$objext
|
12990 |
|
|
|
12991 |
|
|
# Code to be used in simple compile tests
|
12992 |
|
|
lt_simple_compile_test_code="\
|
12993 |
|
|
subroutine t
|
12994 |
|
|
return
|
12995 |
|
|
end
|
12996 |
|
|
"
|
12997 |
|
|
|
12998 |
|
|
# Code to be used in simple link tests
|
12999 |
|
|
lt_simple_link_test_code="\
|
13000 |
|
|
program t
|
13001 |
|
|
end
|
13002 |
|
|
"
|
13003 |
|
|
|
13004 |
|
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
13005 |
|
|
|
13006 |
|
|
# If no C compiler was specified, use CC.
|
13007 |
|
|
LTCC=${LTCC-"$CC"}
|
13008 |
|
|
|
13009 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
13010 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
13011 |
|
|
|
13012 |
|
|
# Allow CC to be a program name with arguments.
|
13013 |
|
|
compiler=$CC
|
13014 |
|
|
|
13015 |
|
|
|
13016 |
|
|
# save warnings/boilerplate of simple test code
|
13017 |
|
|
ac_outfile=conftest.$ac_objext
|
13018 |
|
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
13019 |
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
13020 |
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
13021 |
|
|
$rm conftest*
|
13022 |
|
|
|
13023 |
|
|
ac_outfile=conftest.$ac_objext
|
13024 |
|
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
13025 |
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
13026 |
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
13027 |
|
|
$rm conftest*
|
13028 |
|
|
|
13029 |
|
|
|
13030 |
|
|
# Allow CC to be a program name with arguments.
|
13031 |
|
|
lt_save_CC="$CC"
|
13032 |
|
|
CC=${F77-"f77"}
|
13033 |
|
|
compiler=$CC
|
13034 |
|
|
compiler_F77=$CC
|
13035 |
|
|
for cc_temp in $compiler""; do
|
13036 |
|
|
case $cc_temp in
|
13037 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
13038 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
13039 |
|
|
\-*) ;;
|
13040 |
|
|
*) break;;
|
13041 |
|
|
esac
|
13042 |
|
|
done
|
13043 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
13044 |
|
|
|
13045 |
|
|
|
13046 |
|
|
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
13047 |
|
|
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
|
13048 |
|
|
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
13049 |
|
|
echo "${ECHO_T}$can_build_shared" >&6; }
|
13050 |
|
|
|
13051 |
|
|
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
|
13052 |
|
|
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
|
13053 |
|
|
test "$can_build_shared" = "no" && enable_shared=no
|
13054 |
|
|
|
13055 |
|
|
# On AIX, shared libraries and static libraries use the same namespace, and
|
13056 |
|
|
# are all built from PIC.
|
13057 |
|
|
case $host_os in
|
13058 |
|
|
aix3*)
|
13059 |
|
|
test "$enable_shared" = yes && enable_static=no
|
13060 |
|
|
if test -n "$RANLIB"; then
|
13061 |
|
|
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
13062 |
|
|
postinstall_cmds='$RANLIB $lib'
|
13063 |
|
|
fi
|
13064 |
|
|
;;
|
13065 |
|
|
aix4* | aix5*)
|
13066 |
|
|
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
13067 |
|
|
test "$enable_shared" = yes && enable_static=no
|
13068 |
|
|
fi
|
13069 |
|
|
;;
|
13070 |
|
|
esac
|
13071 |
|
|
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
|
13072 |
|
|
echo "${ECHO_T}$enable_shared" >&6; }
|
13073 |
|
|
|
13074 |
|
|
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
|
13075 |
|
|
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
|
13076 |
|
|
# Make sure either enable_shared or enable_static is yes.
|
13077 |
|
|
test "$enable_shared" = yes || enable_static=yes
|
13078 |
|
|
{ echo "$as_me:$LINENO: result: $enable_static" >&5
|
13079 |
|
|
echo "${ECHO_T}$enable_static" >&6; }
|
13080 |
|
|
|
13081 |
|
|
GCC_F77="$G77"
|
13082 |
|
|
LD_F77="$LD"
|
13083 |
|
|
|
13084 |
|
|
lt_prog_compiler_wl_F77=
|
13085 |
|
|
lt_prog_compiler_pic_F77=
|
13086 |
|
|
lt_prog_compiler_static_F77=
|
13087 |
|
|
|
13088 |
|
|
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
13089 |
|
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
13090 |
|
|
|
13091 |
|
|
if test "$GCC" = yes; then
|
13092 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13093 |
|
|
lt_prog_compiler_static_F77='-static'
|
13094 |
|
|
|
13095 |
|
|
case $host_os in
|
13096 |
|
|
aix*)
|
13097 |
|
|
# All AIX code is PIC.
|
13098 |
|
|
if test "$host_cpu" = ia64; then
|
13099 |
|
|
# AIX 5 now supports IA64 processor
|
13100 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13101 |
|
|
fi
|
13102 |
|
|
;;
|
13103 |
|
|
|
13104 |
|
|
amigaos*)
|
13105 |
|
|
# FIXME: we need at least 68020 code to build shared libraries, but
|
13106 |
|
|
# adding the `-m68020' flag to GCC prevents building anything better,
|
13107 |
|
|
# like `-m68040'.
|
13108 |
|
|
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
|
13109 |
|
|
;;
|
13110 |
|
|
|
13111 |
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
13112 |
|
|
# PIC is the default for these OSes.
|
13113 |
|
|
;;
|
13114 |
|
|
|
13115 |
|
|
mingw* | cygwin* | pw32* | os2*)
|
13116 |
|
|
# This hack is so that the source file can tell whether it is being
|
13117 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
13118 |
|
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
13119 |
|
|
# (--disable-auto-import) libraries
|
13120 |
|
|
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
13121 |
|
|
;;
|
13122 |
|
|
|
13123 |
|
|
darwin* | rhapsody*)
|
13124 |
|
|
# PIC is the default on this platform
|
13125 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
13126 |
|
|
lt_prog_compiler_pic_F77='-fno-common'
|
13127 |
|
|
;;
|
13128 |
|
|
|
13129 |
|
|
interix[3-9]*)
|
13130 |
|
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
13131 |
|
|
# Instead, we relocate shared libraries at runtime.
|
13132 |
|
|
;;
|
13133 |
|
|
|
13134 |
|
|
msdosdjgpp*)
|
13135 |
|
|
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
13136 |
|
|
# on systems that don't support them.
|
13137 |
|
|
lt_prog_compiler_can_build_shared_F77=no
|
13138 |
|
|
enable_shared=no
|
13139 |
|
|
;;
|
13140 |
|
|
|
13141 |
|
|
sysv4*MP*)
|
13142 |
|
|
if test -d /usr/nec; then
|
13143 |
|
|
lt_prog_compiler_pic_F77=-Kconform_pic
|
13144 |
|
|
fi
|
13145 |
|
|
;;
|
13146 |
|
|
|
13147 |
|
|
hpux*)
|
13148 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
13149 |
|
|
# not for PA HP-UX.
|
13150 |
|
|
case $host_cpu in
|
13151 |
|
|
hppa*64*|ia64*)
|
13152 |
|
|
# +Z the default
|
13153 |
|
|
;;
|
13154 |
|
|
*)
|
13155 |
|
|
lt_prog_compiler_pic_F77='-fPIC'
|
13156 |
|
|
;;
|
13157 |
|
|
esac
|
13158 |
|
|
;;
|
13159 |
|
|
|
13160 |
|
|
*)
|
13161 |
|
|
lt_prog_compiler_pic_F77='-fPIC'
|
13162 |
|
|
;;
|
13163 |
|
|
esac
|
13164 |
|
|
else
|
13165 |
|
|
# PORTME Check for flag to pass linker flags through the system compiler.
|
13166 |
|
|
case $host_os in
|
13167 |
|
|
aix*)
|
13168 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13169 |
|
|
if test "$host_cpu" = ia64; then
|
13170 |
|
|
# AIX 5 now supports IA64 processor
|
13171 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13172 |
|
|
else
|
13173 |
|
|
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
|
13174 |
|
|
fi
|
13175 |
|
|
;;
|
13176 |
|
|
darwin*)
|
13177 |
|
|
# PIC is the default on this platform
|
13178 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
13179 |
|
|
case $cc_basename in
|
13180 |
|
|
xlc*)
|
13181 |
|
|
lt_prog_compiler_pic_F77='-qnocommon'
|
13182 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13183 |
|
|
;;
|
13184 |
|
|
esac
|
13185 |
|
|
;;
|
13186 |
|
|
|
13187 |
|
|
mingw* | cygwin* | pw32* | os2*)
|
13188 |
|
|
# This hack is so that the source file can tell whether it is being
|
13189 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
13190 |
|
|
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
13191 |
|
|
;;
|
13192 |
|
|
|
13193 |
|
|
hpux9* | hpux10* | hpux11*)
|
13194 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13195 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
13196 |
|
|
# not for PA HP-UX.
|
13197 |
|
|
case $host_cpu in
|
13198 |
|
|
hppa*64*|ia64*)
|
13199 |
|
|
# +Z the default
|
13200 |
|
|
;;
|
13201 |
|
|
*)
|
13202 |
|
|
lt_prog_compiler_pic_F77='+Z'
|
13203 |
|
|
;;
|
13204 |
|
|
esac
|
13205 |
|
|
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
13206 |
|
|
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
|
13207 |
|
|
;;
|
13208 |
|
|
|
13209 |
|
|
irix5* | irix6* | nonstopux*)
|
13210 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13211 |
|
|
# PIC (with -KPIC) is the default.
|
13212 |
|
|
lt_prog_compiler_static_F77='-non_shared'
|
13213 |
|
|
;;
|
13214 |
|
|
|
13215 |
|
|
newsos6)
|
13216 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13217 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13218 |
|
|
;;
|
13219 |
|
|
|
13220 |
|
|
linux* | k*bsd*-gnu)
|
13221 |
|
|
case $cc_basename in
|
13222 |
|
|
icc* | ecc*)
|
13223 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13224 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13225 |
|
|
lt_prog_compiler_static_F77='-static'
|
13226 |
|
|
;;
|
13227 |
|
|
pgcc* | pgf77* | pgf90* | pgf95*)
|
13228 |
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
13229 |
|
|
# which looks to be a dead project)
|
13230 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13231 |
|
|
lt_prog_compiler_pic_F77='-fpic'
|
13232 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13233 |
|
|
;;
|
13234 |
|
|
ccc*)
|
13235 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13236 |
|
|
# All Alpha code is PIC.
|
13237 |
|
|
lt_prog_compiler_static_F77='-non_shared'
|
13238 |
|
|
;;
|
13239 |
|
|
*)
|
13240 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
13241 |
|
|
*Sun\ C*)
|
13242 |
|
|
# Sun C 5.9
|
13243 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13244 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13245 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13246 |
|
|
;;
|
13247 |
|
|
*Sun\ F*)
|
13248 |
|
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
13249 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13250 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13251 |
|
|
lt_prog_compiler_wl_F77=''
|
13252 |
|
|
;;
|
13253 |
|
|
esac
|
13254 |
|
|
;;
|
13255 |
|
|
esac
|
13256 |
|
|
;;
|
13257 |
|
|
|
13258 |
|
|
osf3* | osf4* | osf5*)
|
13259 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13260 |
|
|
# All OSF/1 code is PIC.
|
13261 |
|
|
lt_prog_compiler_static_F77='-non_shared'
|
13262 |
|
|
;;
|
13263 |
|
|
|
13264 |
|
|
rdos*)
|
13265 |
|
|
lt_prog_compiler_static_F77='-non_shared'
|
13266 |
|
|
;;
|
13267 |
|
|
|
13268 |
|
|
solaris*)
|
13269 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13270 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13271 |
|
|
case $cc_basename in
|
13272 |
|
|
f77* | f90* | f95*)
|
13273 |
|
|
lt_prog_compiler_wl_F77='-Qoption ld ';;
|
13274 |
|
|
*)
|
13275 |
|
|
lt_prog_compiler_wl_F77='-Wl,';;
|
13276 |
|
|
esac
|
13277 |
|
|
;;
|
13278 |
|
|
|
13279 |
|
|
sunos4*)
|
13280 |
|
|
lt_prog_compiler_wl_F77='-Qoption ld '
|
13281 |
|
|
lt_prog_compiler_pic_F77='-PIC'
|
13282 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13283 |
|
|
;;
|
13284 |
|
|
|
13285 |
|
|
sysv4 | sysv4.2uw2* | sysv4.3*)
|
13286 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13287 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13288 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13289 |
|
|
;;
|
13290 |
|
|
|
13291 |
|
|
sysv4*MP*)
|
13292 |
|
|
if test -d /usr/nec ;then
|
13293 |
|
|
lt_prog_compiler_pic_F77='-Kconform_pic'
|
13294 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13295 |
|
|
fi
|
13296 |
|
|
;;
|
13297 |
|
|
|
13298 |
|
|
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
13299 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13300 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13301 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13302 |
|
|
;;
|
13303 |
|
|
|
13304 |
|
|
unicos*)
|
13305 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13306 |
|
|
lt_prog_compiler_can_build_shared_F77=no
|
13307 |
|
|
;;
|
13308 |
|
|
|
13309 |
|
|
uts4*)
|
13310 |
|
|
lt_prog_compiler_pic_F77='-pic'
|
13311 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13312 |
|
|
;;
|
13313 |
|
|
|
13314 |
|
|
*)
|
13315 |
|
|
lt_prog_compiler_can_build_shared_F77=no
|
13316 |
|
|
;;
|
13317 |
|
|
esac
|
13318 |
|
|
fi
|
13319 |
|
|
|
13320 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
|
13321 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
|
13322 |
|
|
|
13323 |
|
|
#
|
13324 |
|
|
# Check to make sure the PIC flag actually works.
|
13325 |
|
|
#
|
13326 |
|
|
if test -n "$lt_prog_compiler_pic_F77"; then
|
13327 |
|
|
|
13328 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
|
13329 |
|
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
|
13330 |
|
|
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
|
13331 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
13332 |
|
|
else
|
13333 |
|
|
lt_prog_compiler_pic_works_F77=no
|
13334 |
|
|
ac_outfile=conftest.$ac_objext
|
13335 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
13336 |
|
|
lt_compiler_flag="$lt_prog_compiler_pic_F77"
|
13337 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
13338 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
13339 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
13340 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
13341 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
13342 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
13343 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
13344 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
13345 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
13346 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
13347 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
13348 |
|
|
ac_status=$?
|
13349 |
|
|
cat conftest.err >&5
|
13350 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
13351 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
13352 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
13353 |
|
|
# So say no if there are warnings other than the usual output.
|
13354 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
13355 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
13356 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
13357 |
|
|
lt_prog_compiler_pic_works_F77=yes
|
13358 |
|
|
fi
|
13359 |
|
|
fi
|
13360 |
|
|
$rm conftest*
|
13361 |
|
|
|
13362 |
|
|
fi
|
13363 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
|
13364 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
|
13365 |
|
|
|
13366 |
|
|
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
|
13367 |
|
|
case $lt_prog_compiler_pic_F77 in
|
13368 |
|
|
"" | " "*) ;;
|
13369 |
|
|
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
|
13370 |
|
|
esac
|
13371 |
|
|
else
|
13372 |
|
|
lt_prog_compiler_pic_F77=
|
13373 |
|
|
lt_prog_compiler_can_build_shared_F77=no
|
13374 |
|
|
fi
|
13375 |
|
|
|
13376 |
|
|
fi
|
13377 |
|
|
case $host_os in
|
13378 |
|
|
# For platforms which do not support PIC, -DPIC is meaningless:
|
13379 |
|
|
*djgpp*)
|
13380 |
|
|
lt_prog_compiler_pic_F77=
|
13381 |
|
|
;;
|
13382 |
|
|
*)
|
13383 |
|
|
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
|
13384 |
|
|
;;
|
13385 |
|
|
esac
|
13386 |
|
|
|
13387 |
|
|
#
|
13388 |
|
|
# Check to make sure the static flag actually works.
|
13389 |
|
|
#
|
13390 |
|
|
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
|
13391 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
13392 |
|
|
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
13393 |
|
|
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
|
13394 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
13395 |
|
|
else
|
13396 |
|
|
lt_prog_compiler_static_works_F77=no
|
13397 |
|
|
save_LDFLAGS="$LDFLAGS"
|
13398 |
|
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
13399 |
|
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
13400 |
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
13401 |
|
|
# The linker can only warn and ignore the option if not recognized
|
13402 |
|
|
# So say no if there are warnings
|
13403 |
|
|
if test -s conftest.err; then
|
13404 |
|
|
# Append any errors to the config.log.
|
13405 |
|
|
cat conftest.err 1>&5
|
13406 |
|
|
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
13407 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
13408 |
|
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
13409 |
|
|
lt_prog_compiler_static_works_F77=yes
|
13410 |
|
|
fi
|
13411 |
|
|
else
|
13412 |
|
|
lt_prog_compiler_static_works_F77=yes
|
13413 |
|
|
fi
|
13414 |
|
|
fi
|
13415 |
|
|
$rm conftest*
|
13416 |
|
|
LDFLAGS="$save_LDFLAGS"
|
13417 |
|
|
|
13418 |
|
|
fi
|
13419 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
|
13420 |
|
|
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
|
13421 |
|
|
|
13422 |
|
|
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
|
13423 |
|
|
:
|
13424 |
|
|
else
|
13425 |
|
|
lt_prog_compiler_static_F77=
|
13426 |
|
|
fi
|
13427 |
|
|
|
13428 |
|
|
|
13429 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
13430 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
13431 |
|
|
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
|
13432 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
13433 |
|
|
else
|
13434 |
|
|
lt_cv_prog_compiler_c_o_F77=no
|
13435 |
|
|
$rm -r conftest 2>/dev/null
|
13436 |
|
|
mkdir conftest
|
13437 |
|
|
cd conftest
|
13438 |
|
|
mkdir out
|
13439 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
13440 |
|
|
|
13441 |
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
13442 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
13443 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
13444 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
13445 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
13446 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
13447 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
13448 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
13449 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
13450 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
13451 |
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
13452 |
|
|
ac_status=$?
|
13453 |
|
|
cat out/conftest.err >&5
|
13454 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
13455 |
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
13456 |
|
|
then
|
13457 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
13458 |
|
|
# So say no if there are warnings
|
13459 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
13460 |
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
13461 |
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
13462 |
|
|
lt_cv_prog_compiler_c_o_F77=yes
|
13463 |
|
|
fi
|
13464 |
|
|
fi
|
13465 |
|
|
chmod u+w . 2>&5
|
13466 |
|
|
$rm conftest*
|
13467 |
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
13468 |
|
|
# template instantiation
|
13469 |
|
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
13470 |
|
|
$rm out/* && rmdir out
|
13471 |
|
|
cd ..
|
13472 |
|
|
rmdir conftest
|
13473 |
|
|
$rm conftest*
|
13474 |
|
|
|
13475 |
|
|
fi
|
13476 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
|
13477 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
|
13478 |
|
|
|
13479 |
|
|
|
13480 |
|
|
hard_links="nottested"
|
13481 |
|
|
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
|
13482 |
|
|
# do not overwrite the value of need_locks provided by the user
|
13483 |
|
|
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
13484 |
|
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
13485 |
|
|
hard_links=yes
|
13486 |
|
|
$rm conftest*
|
13487 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
13488 |
|
|
touch conftest.a
|
13489 |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no
|
13490 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
13491 |
|
|
{ echo "$as_me:$LINENO: result: $hard_links" >&5
|
13492 |
|
|
echo "${ECHO_T}$hard_links" >&6; }
|
13493 |
|
|
if test "$hard_links" = no; then
|
13494 |
|
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
13495 |
|
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
13496 |
|
|
need_locks=warn
|
13497 |
|
|
fi
|
13498 |
|
|
else
|
13499 |
|
|
need_locks=no
|
13500 |
|
|
fi
|
13501 |
|
|
|
13502 |
|
|
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
13503 |
|
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
13504 |
|
|
|
13505 |
|
|
runpath_var=
|
13506 |
|
|
allow_undefined_flag_F77=
|
13507 |
|
|
enable_shared_with_static_runtimes_F77=no
|
13508 |
|
|
archive_cmds_F77=
|
13509 |
|
|
archive_expsym_cmds_F77=
|
13510 |
|
|
old_archive_From_new_cmds_F77=
|
13511 |
|
|
old_archive_from_expsyms_cmds_F77=
|
13512 |
|
|
export_dynamic_flag_spec_F77=
|
13513 |
|
|
whole_archive_flag_spec_F77=
|
13514 |
|
|
thread_safe_flag_spec_F77=
|
13515 |
|
|
hardcode_libdir_flag_spec_F77=
|
13516 |
|
|
hardcode_libdir_flag_spec_ld_F77=
|
13517 |
|
|
hardcode_libdir_separator_F77=
|
13518 |
|
|
hardcode_direct_F77=no
|
13519 |
|
|
hardcode_minus_L_F77=no
|
13520 |
|
|
hardcode_shlibpath_var_F77=unsupported
|
13521 |
|
|
link_all_deplibs_F77=unknown
|
13522 |
|
|
hardcode_automatic_F77=no
|
13523 |
|
|
module_cmds_F77=
|
13524 |
|
|
module_expsym_cmds_F77=
|
13525 |
|
|
always_export_symbols_F77=no
|
13526 |
|
|
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
13527 |
|
|
# include_expsyms should be a list of space-separated symbols to be *always*
|
13528 |
|
|
# included in the symbol list
|
13529 |
|
|
include_expsyms_F77=
|
13530 |
|
|
# exclude_expsyms can be an extended regexp of symbols to exclude
|
13531 |
|
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
13532 |
|
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
13533 |
|
|
# as well as any symbol that contains `d'.
|
13534 |
|
|
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
|
13535 |
|
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
13536 |
|
|
# platforms (ab)use it in PIC code, but their linkers get confused if
|
13537 |
|
|
# the symbol is explicitly referenced. Since portable code cannot
|
13538 |
|
|
# rely on this symbol name, it's probably fine to never include it in
|
13539 |
|
|
# preloaded symbol tables.
|
13540 |
|
|
extract_expsyms_cmds=
|
13541 |
|
|
# Just being paranoid about ensuring that cc_basename is set.
|
13542 |
|
|
for cc_temp in $compiler""; do
|
13543 |
|
|
case $cc_temp in
|
13544 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
13545 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
13546 |
|
|
\-*) ;;
|
13547 |
|
|
*) break;;
|
13548 |
|
|
esac
|
13549 |
|
|
done
|
13550 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
13551 |
|
|
|
13552 |
|
|
case $host_os in
|
13553 |
|
|
cygwin* | mingw* | pw32*)
|
13554 |
|
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
13555 |
|
|
# When not using gcc, we currently assume that we are using
|
13556 |
|
|
# Microsoft Visual C++.
|
13557 |
|
|
if test "$GCC" != yes; then
|
13558 |
|
|
with_gnu_ld=no
|
13559 |
|
|
fi
|
13560 |
|
|
;;
|
13561 |
|
|
interix*)
|
13562 |
|
|
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
13563 |
|
|
with_gnu_ld=yes
|
13564 |
|
|
;;
|
13565 |
|
|
openbsd*)
|
13566 |
|
|
with_gnu_ld=no
|
13567 |
|
|
;;
|
13568 |
|
|
esac
|
13569 |
|
|
|
13570 |
|
|
ld_shlibs_F77=yes
|
13571 |
|
|
if test "$with_gnu_ld" = yes; then
|
13572 |
|
|
# If archive_cmds runs LD, not CC, wlarc should be empty
|
13573 |
|
|
wlarc='${wl}'
|
13574 |
|
|
|
13575 |
|
|
# Set some defaults for GNU ld with shared library support. These
|
13576 |
|
|
# are reset later if shared libraries are not supported. Putting them
|
13577 |
|
|
# here allows them to be overridden if necessary.
|
13578 |
|
|
runpath_var=LD_RUN_PATH
|
13579 |
|
|
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
|
13580 |
|
|
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
|
13581 |
|
|
# ancient GNU ld didn't support --whole-archive et. al.
|
13582 |
|
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
13583 |
|
|
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
13584 |
|
|
else
|
13585 |
|
|
whole_archive_flag_spec_F77=
|
13586 |
|
|
fi
|
13587 |
|
|
supports_anon_versioning=no
|
13588 |
|
|
case `$LD -v 2>/dev/null` in
|
13589 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
13590 |
|
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
13591 |
|
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
13592 |
|
|
*\ 2.11.*) ;; # other 2.11 versions
|
13593 |
|
|
*) supports_anon_versioning=yes ;;
|
13594 |
|
|
esac
|
13595 |
|
|
|
13596 |
|
|
# See if GNU ld supports shared libraries.
|
13597 |
|
|
case $host_os in
|
13598 |
|
|
aix3* | aix4* | aix5*)
|
13599 |
|
|
# On AIX/PPC, the GNU linker is very broken
|
13600 |
|
|
if test "$host_cpu" != ia64; then
|
13601 |
|
|
ld_shlibs_F77=no
|
13602 |
|
|
cat <&2
|
13603 |
|
|
|
13604 |
|
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
13605 |
|
|
*** to be unable to reliably create shared libraries on AIX.
|
13606 |
|
|
*** Therefore, libtool is disabling shared libraries support. If you
|
13607 |
|
|
*** really care for shared libraries, you may want to modify your PATH
|
13608 |
|
|
*** so that a non-GNU linker is found, and then restart.
|
13609 |
|
|
|
13610 |
|
|
EOF
|
13611 |
|
|
fi
|
13612 |
|
|
;;
|
13613 |
|
|
|
13614 |
|
|
amigaos*)
|
13615 |
|
|
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)'
|
13616 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
13617 |
|
|
hardcode_minus_L_F77=yes
|
13618 |
|
|
|
13619 |
|
|
# Samuel A. Falvo II reports
|
13620 |
|
|
# that the semantics of dynamic libraries on AmigaOS, at least up
|
13621 |
|
|
# to version 4, is to share data among multiple programs linked
|
13622 |
|
|
# with the same dynamic library. Since this doesn't match the
|
13623 |
|
|
# behavior of shared libraries on other platforms, we can't use
|
13624 |
|
|
# them.
|
13625 |
|
|
ld_shlibs_F77=no
|
13626 |
|
|
;;
|
13627 |
|
|
|
13628 |
|
|
beos*)
|
13629 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
13630 |
|
|
allow_undefined_flag_F77=unsupported
|
13631 |
|
|
# Joseph Beckenbach says some releases of gcc
|
13632 |
|
|
# support --undefined. This deserves some investigation. FIXME
|
13633 |
|
|
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
13634 |
|
|
else
|
13635 |
|
|
ld_shlibs_F77=no
|
13636 |
|
|
fi
|
13637 |
|
|
;;
|
13638 |
|
|
|
13639 |
|
|
cygwin* | mingw* | pw32*)
|
13640 |
|
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
|
13641 |
|
|
# as there is no search path for DLLs.
|
13642 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
13643 |
|
|
allow_undefined_flag_F77=unsupported
|
13644 |
|
|
always_export_symbols_F77=no
|
13645 |
|
|
enable_shared_with_static_runtimes_F77=yes
|
13646 |
|
|
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
13647 |
|
|
|
13648 |
|
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
13649 |
|
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
13650 |
|
|
# If the export-symbols file already is a .def file (1st line
|
13651 |
|
|
# is EXPORTS), use it as is; otherwise, prepend...
|
13652 |
|
|
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
13653 |
|
|
cp $export_symbols $output_objdir/$soname.def;
|
13654 |
|
|
else
|
13655 |
|
|
echo EXPORTS > $output_objdir/$soname.def;
|
13656 |
|
|
cat $export_symbols >> $output_objdir/$soname.def;
|
13657 |
|
|
fi~
|
13658 |
|
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
13659 |
|
|
else
|
13660 |
|
|
ld_shlibs_F77=no
|
13661 |
|
|
fi
|
13662 |
|
|
;;
|
13663 |
|
|
|
13664 |
|
|
interix[3-9]*)
|
13665 |
|
|
hardcode_direct_F77=no
|
13666 |
|
|
hardcode_shlibpath_var_F77=no
|
13667 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
13668 |
|
|
export_dynamic_flag_spec_F77='${wl}-E'
|
13669 |
|
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
13670 |
|
|
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
13671 |
|
|
# default) and relocated if they conflict, which is a slow very memory
|
13672 |
|
|
# consuming and fragmenting process. To avoid this, we pick a random,
|
13673 |
|
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
13674 |
|
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
13675 |
|
|
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
13676 |
|
|
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
13677 |
|
|
;;
|
13678 |
|
|
|
13679 |
|
|
gnu* | linux* | k*bsd*-gnu)
|
13680 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
13681 |
|
|
tmp_addflag=
|
13682 |
|
|
case $cc_basename,$host_cpu in
|
13683 |
|
|
pgcc*) # Portland Group C compiler
|
13684 |
|
|
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
13685 |
|
|
tmp_addflag=' $pic_flag'
|
13686 |
|
|
;;
|
13687 |
|
|
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
13688 |
|
|
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
13689 |
|
|
tmp_addflag=' $pic_flag -Mnomain' ;;
|
13690 |
|
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
13691 |
|
|
tmp_addflag=' -i_dynamic' ;;
|
13692 |
|
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
13693 |
|
|
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
13694 |
|
|
ifc* | ifort*) # Intel Fortran compiler
|
13695 |
|
|
tmp_addflag=' -nofor_main' ;;
|
13696 |
|
|
esac
|
13697 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
13698 |
|
|
*Sun\ C*) # Sun C 5.9
|
13699 |
|
|
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
13700 |
|
|
tmp_sharedflag='-G' ;;
|
13701 |
|
|
*Sun\ F*) # Sun Fortran 8.3
|
13702 |
|
|
tmp_sharedflag='-G' ;;
|
13703 |
|
|
*)
|
13704 |
|
|
tmp_sharedflag='-shared' ;;
|
13705 |
|
|
esac
|
13706 |
|
|
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
13707 |
|
|
|
13708 |
|
|
if test $supports_anon_versioning = yes; then
|
13709 |
|
|
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
|
13710 |
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
13711 |
|
|
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
13712 |
|
|
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
13713 |
|
|
fi
|
13714 |
|
|
else
|
13715 |
|
|
ld_shlibs_F77=no
|
13716 |
|
|
fi
|
13717 |
|
|
;;
|
13718 |
|
|
|
13719 |
|
|
netbsd*)
|
13720 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
13721 |
|
|
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
13722 |
|
|
wlarc=
|
13723 |
|
|
else
|
13724 |
|
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
13725 |
|
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
13726 |
|
|
fi
|
13727 |
|
|
;;
|
13728 |
|
|
|
13729 |
|
|
solaris*)
|
13730 |
|
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
13731 |
|
|
ld_shlibs_F77=no
|
13732 |
|
|
cat <&2
|
13733 |
|
|
|
13734 |
|
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
13735 |
|
|
*** create shared libraries on Solaris systems. Therefore, libtool
|
13736 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
13737 |
|
|
*** binutils to release 2.9.1 or newer. Another option is to modify
|
13738 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
13739 |
|
|
*** used, and then restart.
|
13740 |
|
|
|
13741 |
|
|
EOF
|
13742 |
|
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
13743 |
|
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
13744 |
|
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
13745 |
|
|
else
|
13746 |
|
|
ld_shlibs_F77=no
|
13747 |
|
|
fi
|
13748 |
|
|
;;
|
13749 |
|
|
|
13750 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
13751 |
|
|
case `$LD -v 2>&1` in
|
13752 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
13753 |
|
|
ld_shlibs_F77=no
|
13754 |
|
|
cat <<_LT_EOF 1>&2
|
13755 |
|
|
|
13756 |
|
|
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
13757 |
|
|
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
13758 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
13759 |
|
|
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
13760 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
13761 |
|
|
*** used, and then restart.
|
13762 |
|
|
|
13763 |
|
|
_LT_EOF
|
13764 |
|
|
;;
|
13765 |
|
|
*)
|
13766 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
13767 |
|
|
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
13768 |
|
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
13769 |
|
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
13770 |
|
|
else
|
13771 |
|
|
ld_shlibs_F77=no
|
13772 |
|
|
fi
|
13773 |
|
|
;;
|
13774 |
|
|
esac
|
13775 |
|
|
;;
|
13776 |
|
|
|
13777 |
|
|
sunos4*)
|
13778 |
|
|
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
13779 |
|
|
wlarc=
|
13780 |
|
|
hardcode_direct_F77=yes
|
13781 |
|
|
hardcode_shlibpath_var_F77=no
|
13782 |
|
|
;;
|
13783 |
|
|
|
13784 |
|
|
*)
|
13785 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
13786 |
|
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
13787 |
|
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
13788 |
|
|
else
|
13789 |
|
|
ld_shlibs_F77=no
|
13790 |
|
|
fi
|
13791 |
|
|
;;
|
13792 |
|
|
esac
|
13793 |
|
|
|
13794 |
|
|
if test "$ld_shlibs_F77" = no; then
|
13795 |
|
|
runpath_var=
|
13796 |
|
|
hardcode_libdir_flag_spec_F77=
|
13797 |
|
|
export_dynamic_flag_spec_F77=
|
13798 |
|
|
whole_archive_flag_spec_F77=
|
13799 |
|
|
fi
|
13800 |
|
|
else
|
13801 |
|
|
# PORTME fill in a description of your system's linker (not GNU ld)
|
13802 |
|
|
case $host_os in
|
13803 |
|
|
aix3*)
|
13804 |
|
|
allow_undefined_flag_F77=unsupported
|
13805 |
|
|
always_export_symbols_F77=yes
|
13806 |
|
|
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'
|
13807 |
|
|
# Note: this linker hardcodes the directories in LIBPATH if there
|
13808 |
|
|
# are no directories specified by -L.
|
13809 |
|
|
hardcode_minus_L_F77=yes
|
13810 |
|
|
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
13811 |
|
|
# Neither direct hardcoding nor static linking is supported with a
|
13812 |
|
|
# broken collect2.
|
13813 |
|
|
hardcode_direct_F77=unsupported
|
13814 |
|
|
fi
|
13815 |
|
|
;;
|
13816 |
|
|
|
13817 |
|
|
aix4* | aix5*)
|
13818 |
|
|
if test "$host_cpu" = ia64; then
|
13819 |
|
|
# On IA64, the linker does run time linking by default, so we don't
|
13820 |
|
|
# have to do anything special.
|
13821 |
|
|
aix_use_runtimelinking=no
|
13822 |
|
|
exp_sym_flag='-Bexport'
|
13823 |
|
|
no_entry_flag=""
|
13824 |
|
|
else
|
13825 |
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
13826 |
|
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
13827 |
|
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
13828 |
|
|
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'
|
13829 |
|
|
else
|
13830 |
|
|
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'
|
13831 |
|
|
fi
|
13832 |
|
|
aix_use_runtimelinking=no
|
13833 |
|
|
|
13834 |
|
|
# Test if we are trying to use run time linking or normal
|
13835 |
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
13836 |
|
|
# need to do runtime linking.
|
13837 |
|
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
13838 |
|
|
for ld_flag in $LDFLAGS; do
|
13839 |
|
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
13840 |
|
|
aix_use_runtimelinking=yes
|
13841 |
|
|
break
|
13842 |
|
|
fi
|
13843 |
|
|
done
|
13844 |
|
|
;;
|
13845 |
|
|
esac
|
13846 |
|
|
|
13847 |
|
|
exp_sym_flag='-bexport'
|
13848 |
|
|
no_entry_flag='-bnoentry'
|
13849 |
|
|
fi
|
13850 |
|
|
|
13851 |
|
|
# When large executables or shared objects are built, AIX ld can
|
13852 |
|
|
# have problems creating the table of contents. If linking a library
|
13853 |
|
|
# or program results in "error TOC overflow" add -mminimal-toc to
|
13854 |
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
13855 |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
13856 |
|
|
|
13857 |
|
|
archive_cmds_F77=''
|
13858 |
|
|
hardcode_direct_F77=yes
|
13859 |
|
|
hardcode_libdir_separator_F77=':'
|
13860 |
|
|
link_all_deplibs_F77=yes
|
13861 |
|
|
|
13862 |
|
|
if test "$GCC" = yes; then
|
13863 |
|
|
case $host_os in aix4.[012]|aix4.[012].*)
|
13864 |
|
|
# We only want to do this on AIX 4.2 and lower, the check
|
13865 |
|
|
# below for broken collect2 doesn't work under 4.3+
|
13866 |
|
|
collect2name=`${CC} -print-prog-name=collect2`
|
13867 |
|
|
if test -f "$collect2name" && \
|
13868 |
|
|
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
13869 |
|
|
then
|
13870 |
|
|
# We have reworked collect2
|
13871 |
|
|
:
|
13872 |
|
|
else
|
13873 |
|
|
# We have old collect2
|
13874 |
|
|
hardcode_direct_F77=unsupported
|
13875 |
|
|
# It fails to find uninstalled libraries when the uninstalled
|
13876 |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L
|
13877 |
|
|
# to unsupported forces relinking
|
13878 |
|
|
hardcode_minus_L_F77=yes
|
13879 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
13880 |
|
|
hardcode_libdir_separator_F77=
|
13881 |
|
|
fi
|
13882 |
|
|
;;
|
13883 |
|
|
esac
|
13884 |
|
|
shared_flag='-shared'
|
13885 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
13886 |
|
|
shared_flag="$shared_flag "'${wl}-G'
|
13887 |
|
|
fi
|
13888 |
|
|
else
|
13889 |
|
|
# not using gcc
|
13890 |
|
|
if test "$host_cpu" = ia64; then
|
13891 |
|
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
13892 |
|
|
# chokes on -Wl,-G. The following line is correct:
|
13893 |
|
|
shared_flag='-G'
|
13894 |
|
|
else
|
13895 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
13896 |
|
|
shared_flag='${wl}-G'
|
13897 |
|
|
else
|
13898 |
|
|
shared_flag='${wl}-bM:SRE'
|
13899 |
|
|
fi
|
13900 |
|
|
fi
|
13901 |
|
|
fi
|
13902 |
|
|
|
13903 |
|
|
# It seems that -bexpall does not export symbols beginning with
|
13904 |
|
|
# underscore (_), so it is better to generate a list of symbols to export.
|
13905 |
|
|
always_export_symbols_F77=yes
|
13906 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
13907 |
|
|
# Warning - without using the other runtime loading flags (-brtl),
|
13908 |
|
|
# -berok will link without error, but may produce a broken library.
|
13909 |
|
|
allow_undefined_flag_F77='-berok'
|
13910 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
13911 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
13912 |
|
|
program main
|
13913 |
|
|
|
13914 |
|
|
end
|
13915 |
|
|
_ACEOF
|
13916 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
13917 |
|
|
if { (ac_try="$ac_link"
|
13918 |
|
|
case "(($ac_try" in
|
13919 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
13920 |
|
|
*) ac_try_echo=$ac_try;;
|
13921 |
|
|
esac
|
13922 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
13923 |
|
|
(eval "$ac_link") 2>conftest.er1
|
13924 |
|
|
ac_status=$?
|
13925 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
13926 |
|
|
rm -f conftest.er1
|
13927 |
|
|
cat conftest.err >&5
|
13928 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
13929 |
|
|
(exit $ac_status); } && {
|
13930 |
|
|
test -z "$ac_f77_werror_flag" ||
|
13931 |
|
|
test ! -s conftest.err
|
13932 |
|
|
} && test -s conftest$ac_exeext &&
|
13933 |
|
|
$as_test_x conftest$ac_exeext; then
|
13934 |
|
|
|
13935 |
|
|
lt_aix_libpath_sed='
|
13936 |
|
|
/Import File Strings/,/^$/ {
|
13937 |
|
|
/^0/ {
|
13938 |
|
|
s/^0 *\(.*\)$/\1/
|
13939 |
|
|
p
|
13940 |
|
|
}
|
13941 |
|
|
}'
|
13942 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
13943 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
13944 |
|
|
if test -z "$aix_libpath"; then
|
13945 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
13946 |
|
|
fi
|
13947 |
|
|
else
|
13948 |
|
|
echo "$as_me: failed program was:" >&5
|
13949 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
13950 |
|
|
|
13951 |
|
|
|
13952 |
|
|
fi
|
13953 |
|
|
|
13954 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
13955 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
13956 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
13957 |
|
|
|
13958 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
13959 |
|
|
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
13960 |
|
|
else
|
13961 |
|
|
if test "$host_cpu" = ia64; then
|
13962 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
|
13963 |
|
|
allow_undefined_flag_F77="-z nodefs"
|
13964 |
|
|
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
13965 |
|
|
else
|
13966 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
13967 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
13968 |
|
|
program main
|
13969 |
|
|
|
13970 |
|
|
end
|
13971 |
|
|
_ACEOF
|
13972 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
13973 |
|
|
if { (ac_try="$ac_link"
|
13974 |
|
|
case "(($ac_try" in
|
13975 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
13976 |
|
|
*) ac_try_echo=$ac_try;;
|
13977 |
|
|
esac
|
13978 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
13979 |
|
|
(eval "$ac_link") 2>conftest.er1
|
13980 |
|
|
ac_status=$?
|
13981 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
13982 |
|
|
rm -f conftest.er1
|
13983 |
|
|
cat conftest.err >&5
|
13984 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
13985 |
|
|
(exit $ac_status); } && {
|
13986 |
|
|
test -z "$ac_f77_werror_flag" ||
|
13987 |
|
|
test ! -s conftest.err
|
13988 |
|
|
} && test -s conftest$ac_exeext &&
|
13989 |
|
|
$as_test_x conftest$ac_exeext; then
|
13990 |
|
|
|
13991 |
|
|
lt_aix_libpath_sed='
|
13992 |
|
|
/Import File Strings/,/^$/ {
|
13993 |
|
|
/^0/ {
|
13994 |
|
|
s/^0 *\(.*\)$/\1/
|
13995 |
|
|
p
|
13996 |
|
|
}
|
13997 |
|
|
}'
|
13998 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
13999 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
14000 |
|
|
if test -z "$aix_libpath"; then
|
14001 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
14002 |
|
|
fi
|
14003 |
|
|
else
|
14004 |
|
|
echo "$as_me: failed program was:" >&5
|
14005 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
14006 |
|
|
|
14007 |
|
|
|
14008 |
|
|
fi
|
14009 |
|
|
|
14010 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
14011 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
14012 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
14013 |
|
|
|
14014 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
14015 |
|
|
# Warning - without using the other run time loading flags,
|
14016 |
|
|
# -berok will link without error, but may produce a broken library.
|
14017 |
|
|
no_undefined_flag_F77=' ${wl}-bernotok'
|
14018 |
|
|
allow_undefined_flag_F77=' ${wl}-berok'
|
14019 |
|
|
# Exported symbols can be pulled into shared objects from archives
|
14020 |
|
|
whole_archive_flag_spec_F77='$convenience'
|
14021 |
|
|
archive_cmds_need_lc_F77=yes
|
14022 |
|
|
# This is similar to how AIX traditionally builds its shared libraries.
|
14023 |
|
|
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
14024 |
|
|
fi
|
14025 |
|
|
fi
|
14026 |
|
|
;;
|
14027 |
|
|
|
14028 |
|
|
amigaos*)
|
14029 |
|
|
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)'
|
14030 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
14031 |
|
|
hardcode_minus_L_F77=yes
|
14032 |
|
|
# see comment about different semantics on the GNU ld section
|
14033 |
|
|
ld_shlibs_F77=no
|
14034 |
|
|
;;
|
14035 |
|
|
|
14036 |
|
|
bsdi[45]*)
|
14037 |
|
|
export_dynamic_flag_spec_F77=-rdynamic
|
14038 |
|
|
;;
|
14039 |
|
|
|
14040 |
|
|
cygwin* | mingw* | pw32*)
|
14041 |
|
|
# When not using gcc, we currently assume that we are using
|
14042 |
|
|
# Microsoft Visual C++.
|
14043 |
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
14044 |
|
|
# no search path for DLLs.
|
14045 |
|
|
hardcode_libdir_flag_spec_F77=' '
|
14046 |
|
|
allow_undefined_flag_F77=unsupported
|
14047 |
|
|
# Tell ltmain to make .lib files, not .a files.
|
14048 |
|
|
libext=lib
|
14049 |
|
|
# Tell ltmain to make .dll files, not .so files.
|
14050 |
|
|
shrext_cmds=".dll"
|
14051 |
|
|
# FIXME: Setting linknames here is a bad hack.
|
14052 |
|
|
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
14053 |
|
|
# The linker will automatically build a .lib file if we build a DLL.
|
14054 |
|
|
old_archive_From_new_cmds_F77='true'
|
14055 |
|
|
# FIXME: Should let the user specify the lib program.
|
14056 |
|
|
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
14057 |
|
|
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
|
14058 |
|
|
enable_shared_with_static_runtimes_F77=yes
|
14059 |
|
|
;;
|
14060 |
|
|
|
14061 |
|
|
darwin* | rhapsody*)
|
14062 |
|
|
case $host_os in
|
14063 |
|
|
rhapsody* | darwin1.[012])
|
14064 |
|
|
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
|
14065 |
|
|
;;
|
14066 |
|
|
*) # Darwin 1.3 on
|
14067 |
|
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
14068 |
|
|
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
14069 |
|
|
else
|
14070 |
|
|
case ${MACOSX_DEPLOYMENT_TARGET} in
|
14071 |
|
|
10.[012])
|
14072 |
|
|
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
14073 |
|
|
;;
|
14074 |
|
|
10.*)
|
14075 |
|
|
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
|
14076 |
|
|
;;
|
14077 |
|
|
esac
|
14078 |
|
|
fi
|
14079 |
|
|
;;
|
14080 |
|
|
esac
|
14081 |
|
|
archive_cmds_need_lc_F77=no
|
14082 |
|
|
hardcode_direct_F77=no
|
14083 |
|
|
hardcode_automatic_F77=yes
|
14084 |
|
|
hardcode_shlibpath_var_F77=unsupported
|
14085 |
|
|
whole_archive_flag_spec_F77=''
|
14086 |
|
|
link_all_deplibs_F77=yes
|
14087 |
|
|
if test "$GCC" = yes ; then
|
14088 |
|
|
output_verbose_link_cmd='echo'
|
14089 |
|
|
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
14090 |
|
|
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
14091 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
14092 |
|
|
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
14093 |
|
|
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}'
|
14094 |
|
|
else
|
14095 |
|
|
case $cc_basename in
|
14096 |
|
|
xlc*)
|
14097 |
|
|
output_verbose_link_cmd='echo'
|
14098 |
|
|
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
14099 |
|
|
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
14100 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
14101 |
|
|
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
14102 |
|
|
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}'
|
14103 |
|
|
;;
|
14104 |
|
|
*)
|
14105 |
|
|
ld_shlibs_F77=no
|
14106 |
|
|
;;
|
14107 |
|
|
esac
|
14108 |
|
|
fi
|
14109 |
|
|
;;
|
14110 |
|
|
|
14111 |
|
|
dgux*)
|
14112 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14113 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
14114 |
|
|
hardcode_shlibpath_var_F77=no
|
14115 |
|
|
;;
|
14116 |
|
|
|
14117 |
|
|
freebsd1*)
|
14118 |
|
|
ld_shlibs_F77=no
|
14119 |
|
|
;;
|
14120 |
|
|
|
14121 |
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
14122 |
|
|
# support. Future versions do this automatically, but an explicit c++rt0.o
|
14123 |
|
|
# does not break anything, and helps significantly (at the cost of a little
|
14124 |
|
|
# extra space).
|
14125 |
|
|
freebsd2.2*)
|
14126 |
|
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
14127 |
|
|
hardcode_libdir_flag_spec_F77='-R$libdir'
|
14128 |
|
|
hardcode_direct_F77=yes
|
14129 |
|
|
hardcode_shlibpath_var_F77=no
|
14130 |
|
|
;;
|
14131 |
|
|
|
14132 |
|
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
14133 |
|
|
freebsd2*)
|
14134 |
|
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
14135 |
|
|
hardcode_direct_F77=yes
|
14136 |
|
|
hardcode_minus_L_F77=yes
|
14137 |
|
|
hardcode_shlibpath_var_F77=no
|
14138 |
|
|
;;
|
14139 |
|
|
|
14140 |
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
14141 |
|
|
freebsd* | dragonfly*)
|
14142 |
|
|
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
14143 |
|
|
hardcode_libdir_flag_spec_F77='-R$libdir'
|
14144 |
|
|
hardcode_direct_F77=yes
|
14145 |
|
|
hardcode_shlibpath_var_F77=no
|
14146 |
|
|
;;
|
14147 |
|
|
|
14148 |
|
|
hpux9*)
|
14149 |
|
|
if test "$GCC" = yes; then
|
14150 |
|
|
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'
|
14151 |
|
|
else
|
14152 |
|
|
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'
|
14153 |
|
|
fi
|
14154 |
|
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
14155 |
|
|
hardcode_libdir_separator_F77=:
|
14156 |
|
|
hardcode_direct_F77=yes
|
14157 |
|
|
|
14158 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
14159 |
|
|
# but as the default location of the library.
|
14160 |
|
|
hardcode_minus_L_F77=yes
|
14161 |
|
|
export_dynamic_flag_spec_F77='${wl}-E'
|
14162 |
|
|
;;
|
14163 |
|
|
|
14164 |
|
|
hpux10*)
|
14165 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
14166 |
|
|
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
14167 |
|
|
else
|
14168 |
|
|
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
14169 |
|
|
fi
|
14170 |
|
|
if test "$with_gnu_ld" = no; then
|
14171 |
|
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
14172 |
|
|
hardcode_libdir_separator_F77=:
|
14173 |
|
|
|
14174 |
|
|
hardcode_direct_F77=yes
|
14175 |
|
|
export_dynamic_flag_spec_F77='${wl}-E'
|
14176 |
|
|
|
14177 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
14178 |
|
|
# but as the default location of the library.
|
14179 |
|
|
hardcode_minus_L_F77=yes
|
14180 |
|
|
fi
|
14181 |
|
|
;;
|
14182 |
|
|
|
14183 |
|
|
hpux11*)
|
14184 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
14185 |
|
|
case $host_cpu in
|
14186 |
|
|
hppa*64*)
|
14187 |
|
|
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14188 |
|
|
;;
|
14189 |
|
|
ia64*)
|
14190 |
|
|
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
14191 |
|
|
;;
|
14192 |
|
|
*)
|
14193 |
|
|
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
14194 |
|
|
;;
|
14195 |
|
|
esac
|
14196 |
|
|
else
|
14197 |
|
|
case $host_cpu in
|
14198 |
|
|
hppa*64*)
|
14199 |
|
|
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14200 |
|
|
;;
|
14201 |
|
|
ia64*)
|
14202 |
|
|
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
14203 |
|
|
;;
|
14204 |
|
|
*)
|
14205 |
|
|
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
14206 |
|
|
;;
|
14207 |
|
|
esac
|
14208 |
|
|
fi
|
14209 |
|
|
if test "$with_gnu_ld" = no; then
|
14210 |
|
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
14211 |
|
|
hardcode_libdir_separator_F77=:
|
14212 |
|
|
|
14213 |
|
|
case $host_cpu in
|
14214 |
|
|
hppa*64*|ia64*)
|
14215 |
|
|
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
|
14216 |
|
|
hardcode_direct_F77=no
|
14217 |
|
|
hardcode_shlibpath_var_F77=no
|
14218 |
|
|
;;
|
14219 |
|
|
*)
|
14220 |
|
|
hardcode_direct_F77=yes
|
14221 |
|
|
export_dynamic_flag_spec_F77='${wl}-E'
|
14222 |
|
|
|
14223 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
14224 |
|
|
# but as the default location of the library.
|
14225 |
|
|
hardcode_minus_L_F77=yes
|
14226 |
|
|
;;
|
14227 |
|
|
esac
|
14228 |
|
|
fi
|
14229 |
|
|
;;
|
14230 |
|
|
|
14231 |
|
|
irix5* | irix6* | nonstopux*)
|
14232 |
|
|
if test "$GCC" = yes; then
|
14233 |
|
|
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'
|
14234 |
|
|
else
|
14235 |
|
|
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'
|
14236 |
|
|
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
|
14237 |
|
|
fi
|
14238 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
14239 |
|
|
hardcode_libdir_separator_F77=:
|
14240 |
|
|
link_all_deplibs_F77=yes
|
14241 |
|
|
;;
|
14242 |
|
|
|
14243 |
|
|
netbsd*)
|
14244 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
14245 |
|
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
14246 |
|
|
else
|
14247 |
|
|
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
14248 |
|
|
fi
|
14249 |
|
|
hardcode_libdir_flag_spec_F77='-R$libdir'
|
14250 |
|
|
hardcode_direct_F77=yes
|
14251 |
|
|
hardcode_shlibpath_var_F77=no
|
14252 |
|
|
;;
|
14253 |
|
|
|
14254 |
|
|
newsos6)
|
14255 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14256 |
|
|
hardcode_direct_F77=yes
|
14257 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
14258 |
|
|
hardcode_libdir_separator_F77=:
|
14259 |
|
|
hardcode_shlibpath_var_F77=no
|
14260 |
|
|
;;
|
14261 |
|
|
|
14262 |
|
|
openbsd*)
|
14263 |
|
|
if test -f /usr/libexec/ld.so; then
|
14264 |
|
|
hardcode_direct_F77=yes
|
14265 |
|
|
hardcode_shlibpath_var_F77=no
|
14266 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
14267 |
|
|
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
14268 |
|
|
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
14269 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
14270 |
|
|
export_dynamic_flag_spec_F77='${wl}-E'
|
14271 |
|
|
else
|
14272 |
|
|
case $host_os in
|
14273 |
|
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
14274 |
|
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
14275 |
|
|
hardcode_libdir_flag_spec_F77='-R$libdir'
|
14276 |
|
|
;;
|
14277 |
|
|
*)
|
14278 |
|
|
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
14279 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
14280 |
|
|
;;
|
14281 |
|
|
esac
|
14282 |
|
|
fi
|
14283 |
|
|
else
|
14284 |
|
|
ld_shlibs_F77=no
|
14285 |
|
|
fi
|
14286 |
|
|
;;
|
14287 |
|
|
|
14288 |
|
|
os2*)
|
14289 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
14290 |
|
|
hardcode_minus_L_F77=yes
|
14291 |
|
|
allow_undefined_flag_F77=unsupported
|
14292 |
|
|
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'
|
14293 |
|
|
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
14294 |
|
|
;;
|
14295 |
|
|
|
14296 |
|
|
osf3*)
|
14297 |
|
|
if test "$GCC" = yes; then
|
14298 |
|
|
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
|
14299 |
|
|
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'
|
14300 |
|
|
else
|
14301 |
|
|
allow_undefined_flag_F77=' -expect_unresolved \*'
|
14302 |
|
|
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'
|
14303 |
|
|
fi
|
14304 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
14305 |
|
|
hardcode_libdir_separator_F77=:
|
14306 |
|
|
;;
|
14307 |
|
|
|
14308 |
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
14309 |
|
|
if test "$GCC" = yes; then
|
14310 |
|
|
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
|
14311 |
|
|
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'
|
14312 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
14313 |
|
|
else
|
14314 |
|
|
allow_undefined_flag_F77=' -expect_unresolved \*'
|
14315 |
|
|
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'
|
14316 |
|
|
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~
|
14317 |
|
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
14318 |
|
|
|
14319 |
|
|
# Both c and cxx compiler support -rpath directly
|
14320 |
|
|
hardcode_libdir_flag_spec_F77='-rpath $libdir'
|
14321 |
|
|
fi
|
14322 |
|
|
hardcode_libdir_separator_F77=:
|
14323 |
|
|
;;
|
14324 |
|
|
|
14325 |
|
|
solaris*)
|
14326 |
|
|
no_undefined_flag_F77=' -z text'
|
14327 |
|
|
if test "$GCC" = yes; then
|
14328 |
|
|
wlarc='${wl}'
|
14329 |
|
|
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14330 |
|
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
14331 |
|
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
14332 |
|
|
else
|
14333 |
|
|
wlarc=''
|
14334 |
|
|
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14335 |
|
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
14336 |
|
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
14337 |
|
|
fi
|
14338 |
|
|
hardcode_libdir_flag_spec_F77='-R$libdir'
|
14339 |
|
|
hardcode_shlibpath_var_F77=no
|
14340 |
|
|
case $host_os in
|
14341 |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
14342 |
|
|
*)
|
14343 |
|
|
# The compiler driver will combine and reorder linker options,
|
14344 |
|
|
# but understands `-z linker_flag'. GCC discards it without `$wl',
|
14345 |
|
|
# but is careful enough not to reorder.
|
14346 |
|
|
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
14347 |
|
|
if test "$GCC" = yes; then
|
14348 |
|
|
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
14349 |
|
|
else
|
14350 |
|
|
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
|
14351 |
|
|
fi
|
14352 |
|
|
;;
|
14353 |
|
|
esac
|
14354 |
|
|
link_all_deplibs_F77=yes
|
14355 |
|
|
;;
|
14356 |
|
|
|
14357 |
|
|
sunos4*)
|
14358 |
|
|
if test "x$host_vendor" = xsequent; then
|
14359 |
|
|
# Use $CC to link under sequent, because it throws in some extra .o
|
14360 |
|
|
# files that make .init and .fini sections work.
|
14361 |
|
|
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
14362 |
|
|
else
|
14363 |
|
|
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
14364 |
|
|
fi
|
14365 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
14366 |
|
|
hardcode_direct_F77=yes
|
14367 |
|
|
hardcode_minus_L_F77=yes
|
14368 |
|
|
hardcode_shlibpath_var_F77=no
|
14369 |
|
|
;;
|
14370 |
|
|
|
14371 |
|
|
sysv4)
|
14372 |
|
|
case $host_vendor in
|
14373 |
|
|
sni)
|
14374 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14375 |
|
|
hardcode_direct_F77=yes # is this really true???
|
14376 |
|
|
;;
|
14377 |
|
|
siemens)
|
14378 |
|
|
## LD is ld it makes a PLAMLIB
|
14379 |
|
|
## CC just makes a GrossModule.
|
14380 |
|
|
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
14381 |
|
|
reload_cmds_F77='$CC -r -o $output$reload_objs'
|
14382 |
|
|
hardcode_direct_F77=no
|
14383 |
|
|
;;
|
14384 |
|
|
motorola)
|
14385 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14386 |
|
|
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
|
14387 |
|
|
;;
|
14388 |
|
|
esac
|
14389 |
|
|
runpath_var='LD_RUN_PATH'
|
14390 |
|
|
hardcode_shlibpath_var_F77=no
|
14391 |
|
|
;;
|
14392 |
|
|
|
14393 |
|
|
sysv4.3*)
|
14394 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14395 |
|
|
hardcode_shlibpath_var_F77=no
|
14396 |
|
|
export_dynamic_flag_spec_F77='-Bexport'
|
14397 |
|
|
;;
|
14398 |
|
|
|
14399 |
|
|
sysv4*MP*)
|
14400 |
|
|
if test -d /usr/nec; then
|
14401 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14402 |
|
|
hardcode_shlibpath_var_F77=no
|
14403 |
|
|
runpath_var=LD_RUN_PATH
|
14404 |
|
|
hardcode_runpath_var=yes
|
14405 |
|
|
ld_shlibs_F77=yes
|
14406 |
|
|
fi
|
14407 |
|
|
;;
|
14408 |
|
|
|
14409 |
|
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
14410 |
|
|
no_undefined_flag_F77='${wl}-z,text'
|
14411 |
|
|
archive_cmds_need_lc_F77=no
|
14412 |
|
|
hardcode_shlibpath_var_F77=no
|
14413 |
|
|
runpath_var='LD_RUN_PATH'
|
14414 |
|
|
|
14415 |
|
|
if test "$GCC" = yes; then
|
14416 |
|
|
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14417 |
|
|
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14418 |
|
|
else
|
14419 |
|
|
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14420 |
|
|
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14421 |
|
|
fi
|
14422 |
|
|
;;
|
14423 |
|
|
|
14424 |
|
|
sysv5* | sco3.2v5* | sco5v6*)
|
14425 |
|
|
# Note: We can NOT use -z defs as we might desire, because we do not
|
14426 |
|
|
# link with -lc, and that would cause any symbols used from libc to
|
14427 |
|
|
# always be unresolved, which means just about no library would
|
14428 |
|
|
# ever link correctly. If we're not using GNU ld we use -z text
|
14429 |
|
|
# though, which does catch some bad symbols but isn't as heavy-handed
|
14430 |
|
|
# as -z defs.
|
14431 |
|
|
no_undefined_flag_F77='${wl}-z,text'
|
14432 |
|
|
allow_undefined_flag_F77='${wl}-z,nodefs'
|
14433 |
|
|
archive_cmds_need_lc_F77=no
|
14434 |
|
|
hardcode_shlibpath_var_F77=no
|
14435 |
|
|
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
14436 |
|
|
hardcode_libdir_separator_F77=':'
|
14437 |
|
|
link_all_deplibs_F77=yes
|
14438 |
|
|
export_dynamic_flag_spec_F77='${wl}-Bexport'
|
14439 |
|
|
runpath_var='LD_RUN_PATH'
|
14440 |
|
|
|
14441 |
|
|
if test "$GCC" = yes; then
|
14442 |
|
|
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14443 |
|
|
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14444 |
|
|
else
|
14445 |
|
|
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14446 |
|
|
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14447 |
|
|
fi
|
14448 |
|
|
;;
|
14449 |
|
|
|
14450 |
|
|
uts4*)
|
14451 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14452 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
14453 |
|
|
hardcode_shlibpath_var_F77=no
|
14454 |
|
|
;;
|
14455 |
|
|
|
14456 |
|
|
*)
|
14457 |
|
|
ld_shlibs_F77=no
|
14458 |
|
|
;;
|
14459 |
|
|
esac
|
14460 |
|
|
fi
|
14461 |
|
|
|
14462 |
|
|
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
|
14463 |
|
|
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
|
14464 |
|
|
test "$ld_shlibs_F77" = no && can_build_shared=no
|
14465 |
|
|
|
14466 |
|
|
#
|
14467 |
|
|
# Do we need to explicitly link libc?
|
14468 |
|
|
#
|
14469 |
|
|
case "x$archive_cmds_need_lc_F77" in
|
14470 |
|
|
x|xyes)
|
14471 |
|
|
# Assume -lc should be added
|
14472 |
|
|
archive_cmds_need_lc_F77=yes
|
14473 |
|
|
|
14474 |
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
14475 |
|
|
case $archive_cmds_F77 in
|
14476 |
|
|
*'~'*)
|
14477 |
|
|
# FIXME: we may have to deal with multi-command sequences.
|
14478 |
|
|
;;
|
14479 |
|
|
'$CC '*)
|
14480 |
|
|
# Test whether the compiler implicitly links with -lc since on some
|
14481 |
|
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
14482 |
|
|
# to ld, don't add -lc before -lgcc.
|
14483 |
|
|
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
14484 |
|
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
14485 |
|
|
$rm conftest*
|
14486 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
14487 |
|
|
|
14488 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
14489 |
|
|
(eval $ac_compile) 2>&5
|
14490 |
|
|
ac_status=$?
|
14491 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14492 |
|
|
(exit $ac_status); } 2>conftest.err; then
|
14493 |
|
|
soname=conftest
|
14494 |
|
|
lib=conftest
|
14495 |
|
|
libobjs=conftest.$ac_objext
|
14496 |
|
|
deplibs=
|
14497 |
|
|
wl=$lt_prog_compiler_wl_F77
|
14498 |
|
|
pic_flag=$lt_prog_compiler_pic_F77
|
14499 |
|
|
compiler_flags=-v
|
14500 |
|
|
linker_flags=-v
|
14501 |
|
|
verstring=
|
14502 |
|
|
output_objdir=.
|
14503 |
|
|
libname=conftest
|
14504 |
|
|
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
|
14505 |
|
|
allow_undefined_flag_F77=
|
14506 |
|
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
14507 |
|
|
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
14508 |
|
|
ac_status=$?
|
14509 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14510 |
|
|
(exit $ac_status); }
|
14511 |
|
|
then
|
14512 |
|
|
archive_cmds_need_lc_F77=no
|
14513 |
|
|
else
|
14514 |
|
|
archive_cmds_need_lc_F77=yes
|
14515 |
|
|
fi
|
14516 |
|
|
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
|
14517 |
|
|
else
|
14518 |
|
|
cat conftest.err 1>&5
|
14519 |
|
|
fi
|
14520 |
|
|
$rm conftest*
|
14521 |
|
|
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
|
14522 |
|
|
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
|
14523 |
|
|
;;
|
14524 |
|
|
esac
|
14525 |
|
|
fi
|
14526 |
|
|
;;
|
14527 |
|
|
esac
|
14528 |
|
|
|
14529 |
|
|
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
14530 |
|
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
14531 |
|
|
library_names_spec=
|
14532 |
|
|
libname_spec='lib$name'
|
14533 |
|
|
soname_spec=
|
14534 |
|
|
shrext_cmds=".so"
|
14535 |
|
|
postinstall_cmds=
|
14536 |
|
|
postuninstall_cmds=
|
14537 |
|
|
finish_cmds=
|
14538 |
|
|
finish_eval=
|
14539 |
|
|
shlibpath_var=
|
14540 |
|
|
shlibpath_overrides_runpath=unknown
|
14541 |
|
|
version_type=none
|
14542 |
|
|
dynamic_linker="$host_os ld.so"
|
14543 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
14544 |
|
|
|
14545 |
|
|
need_lib_prefix=unknown
|
14546 |
|
|
hardcode_into_libs=no
|
14547 |
|
|
|
14548 |
|
|
# when you set need_version to no, make sure it does not cause -set_version
|
14549 |
|
|
# flags to be left without arguments
|
14550 |
|
|
need_version=unknown
|
14551 |
|
|
|
14552 |
|
|
case $host_os in
|
14553 |
|
|
aix3*)
|
14554 |
|
|
version_type=linux
|
14555 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
14556 |
|
|
shlibpath_var=LIBPATH
|
14557 |
|
|
|
14558 |
|
|
# AIX 3 has no versioning support, so we append a major version to the name.
|
14559 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14560 |
|
|
;;
|
14561 |
|
|
|
14562 |
|
|
aix4* | aix5*)
|
14563 |
|
|
version_type=linux
|
14564 |
|
|
need_lib_prefix=no
|
14565 |
|
|
need_version=no
|
14566 |
|
|
hardcode_into_libs=yes
|
14567 |
|
|
if test "$host_cpu" = ia64; then
|
14568 |
|
|
# AIX 5 supports IA64
|
14569 |
|
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
14570 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14571 |
|
|
else
|
14572 |
|
|
# With GCC up to 2.95.x, collect2 would create an import file
|
14573 |
|
|
# for dependence libraries. The import file would start with
|
14574 |
|
|
# the line `#! .'. This would cause the generated library to
|
14575 |
|
|
# depend on `.', always an invalid library. This was fixed in
|
14576 |
|
|
# development snapshots of GCC prior to 3.0.
|
14577 |
|
|
case $host_os in
|
14578 |
|
|
aix4 | aix4.[01] | aix4.[01].*)
|
14579 |
|
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
14580 |
|
|
echo ' yes '
|
14581 |
|
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
14582 |
|
|
:
|
14583 |
|
|
else
|
14584 |
|
|
can_build_shared=no
|
14585 |
|
|
fi
|
14586 |
|
|
;;
|
14587 |
|
|
esac
|
14588 |
|
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
14589 |
|
|
# soname into executable. Probably we can add versioning support to
|
14590 |
|
|
# collect2, so additional links can be useful in future.
|
14591 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
14592 |
|
|
# If using run time linking (on AIX 4.2 or later) use lib.so
|
14593 |
|
|
# instead of lib.a to let people know that these are not
|
14594 |
|
|
# typical AIX shared libraries.
|
14595 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14596 |
|
|
else
|
14597 |
|
|
# We preserve .a as extension for shared libraries through AIX4.2
|
14598 |
|
|
# and later when we are not doing run time linking.
|
14599 |
|
|
library_names_spec='${libname}${release}.a $libname.a'
|
14600 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14601 |
|
|
fi
|
14602 |
|
|
shlibpath_var=LIBPATH
|
14603 |
|
|
fi
|
14604 |
|
|
;;
|
14605 |
|
|
|
14606 |
|
|
amigaos*)
|
14607 |
|
|
library_names_spec='$libname.ixlibrary $libname.a'
|
14608 |
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
14609 |
|
|
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'
|
14610 |
|
|
;;
|
14611 |
|
|
|
14612 |
|
|
beos*)
|
14613 |
|
|
library_names_spec='${libname}${shared_ext}'
|
14614 |
|
|
dynamic_linker="$host_os ld.so"
|
14615 |
|
|
shlibpath_var=LIBRARY_PATH
|
14616 |
|
|
;;
|
14617 |
|
|
|
14618 |
|
|
bsdi[45]*)
|
14619 |
|
|
version_type=linux
|
14620 |
|
|
need_version=no
|
14621 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14622 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14623 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
14624 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14625 |
|
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
14626 |
|
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
14627 |
|
|
# the default ld.so.conf also contains /usr/contrib/lib and
|
14628 |
|
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
14629 |
|
|
# libtool to hard-code these into programs
|
14630 |
|
|
;;
|
14631 |
|
|
|
14632 |
|
|
cygwin* | mingw* | pw32*)
|
14633 |
|
|
version_type=windows
|
14634 |
|
|
shrext_cmds=".dll"
|
14635 |
|
|
need_version=no
|
14636 |
|
|
need_lib_prefix=no
|
14637 |
|
|
|
14638 |
|
|
case $GCC,$host_os in
|
14639 |
|
|
yes,cygwin* | yes,mingw* | yes,pw32*)
|
14640 |
|
|
library_names_spec='$libname.dll.a'
|
14641 |
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
14642 |
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
14643 |
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
14644 |
|
|
dldir=$destdir/`dirname \$dlpath`~
|
14645 |
|
|
test -d \$dldir || mkdir -p \$dldir~
|
14646 |
|
|
$install_prog $dir/$dlname \$dldir/$dlname~
|
14647 |
|
|
chmod a+x \$dldir/$dlname'
|
14648 |
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
14649 |
|
|
dlpath=$dir/\$dldll~
|
14650 |
|
|
$rm \$dlpath'
|
14651 |
|
|
shlibpath_overrides_runpath=yes
|
14652 |
|
|
|
14653 |
|
|
case $host_os in
|
14654 |
|
|
cygwin*)
|
14655 |
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
14656 |
|
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
14657 |
|
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
14658 |
|
|
;;
|
14659 |
|
|
mingw*)
|
14660 |
|
|
# MinGW DLLs use traditional 'lib' prefix
|
14661 |
|
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
14662 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
14663 |
|
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
14664 |
|
|
# It is most probably a Windows format PATH printed by
|
14665 |
|
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
14666 |
|
|
# path with ; separators, and with drive letters. We can handle the
|
14667 |
|
|
# drive letters (cygwin fileutils understands them), so leave them,
|
14668 |
|
|
# especially as we might pass files found there to a mingw objdump,
|
14669 |
|
|
# which wouldn't understand a cygwinified path. Ahh.
|
14670 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
14671 |
|
|
else
|
14672 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
14673 |
|
|
fi
|
14674 |
|
|
;;
|
14675 |
|
|
pw32*)
|
14676 |
|
|
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
14677 |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
14678 |
|
|
;;
|
14679 |
|
|
esac
|
14680 |
|
|
;;
|
14681 |
|
|
|
14682 |
|
|
*)
|
14683 |
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
14684 |
|
|
;;
|
14685 |
|
|
esac
|
14686 |
|
|
dynamic_linker='Win32 ld.exe'
|
14687 |
|
|
# FIXME: first we should search . and the directory the executable is in
|
14688 |
|
|
shlibpath_var=PATH
|
14689 |
|
|
;;
|
14690 |
|
|
|
14691 |
|
|
darwin* | rhapsody*)
|
14692 |
|
|
dynamic_linker="$host_os dyld"
|
14693 |
|
|
version_type=darwin
|
14694 |
|
|
need_lib_prefix=no
|
14695 |
|
|
need_version=no
|
14696 |
|
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
14697 |
|
|
soname_spec='${libname}${release}${major}$shared_ext'
|
14698 |
|
|
shlibpath_overrides_runpath=yes
|
14699 |
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
14700 |
|
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
14701 |
|
|
|
14702 |
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
14703 |
|
|
;;
|
14704 |
|
|
|
14705 |
|
|
dgux*)
|
14706 |
|
|
version_type=linux
|
14707 |
|
|
need_lib_prefix=no
|
14708 |
|
|
need_version=no
|
14709 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
14710 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14711 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14712 |
|
|
;;
|
14713 |
|
|
|
14714 |
|
|
freebsd1*)
|
14715 |
|
|
dynamic_linker=no
|
14716 |
|
|
;;
|
14717 |
|
|
|
14718 |
|
|
freebsd* | dragonfly*)
|
14719 |
|
|
# DragonFly does not have aout. When/if they implement a new
|
14720 |
|
|
# versioning mechanism, adjust this.
|
14721 |
|
|
if test -x /usr/bin/objformat; then
|
14722 |
|
|
objformat=`/usr/bin/objformat`
|
14723 |
|
|
else
|
14724 |
|
|
case $host_os in
|
14725 |
|
|
freebsd[123]*) objformat=aout ;;
|
14726 |
|
|
*) objformat=elf ;;
|
14727 |
|
|
esac
|
14728 |
|
|
fi
|
14729 |
|
|
version_type=freebsd-$objformat
|
14730 |
|
|
case $version_type in
|
14731 |
|
|
freebsd-elf*)
|
14732 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
14733 |
|
|
need_version=no
|
14734 |
|
|
need_lib_prefix=no
|
14735 |
|
|
;;
|
14736 |
|
|
freebsd-*)
|
14737 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
14738 |
|
|
need_version=yes
|
14739 |
|
|
;;
|
14740 |
|
|
esac
|
14741 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14742 |
|
|
case $host_os in
|
14743 |
|
|
freebsd2*)
|
14744 |
|
|
shlibpath_overrides_runpath=yes
|
14745 |
|
|
;;
|
14746 |
|
|
freebsd3.[01]* | freebsdelf3.[01]*)
|
14747 |
|
|
shlibpath_overrides_runpath=yes
|
14748 |
|
|
hardcode_into_libs=yes
|
14749 |
|
|
;;
|
14750 |
|
|
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
14751 |
|
|
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
14752 |
|
|
shlibpath_overrides_runpath=no
|
14753 |
|
|
hardcode_into_libs=yes
|
14754 |
|
|
;;
|
14755 |
|
|
*) # from 4.6 on, and DragonFly
|
14756 |
|
|
shlibpath_overrides_runpath=yes
|
14757 |
|
|
hardcode_into_libs=yes
|
14758 |
|
|
;;
|
14759 |
|
|
esac
|
14760 |
|
|
;;
|
14761 |
|
|
|
14762 |
|
|
gnu*)
|
14763 |
|
|
version_type=linux
|
14764 |
|
|
need_lib_prefix=no
|
14765 |
|
|
need_version=no
|
14766 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
14767 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14768 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14769 |
|
|
hardcode_into_libs=yes
|
14770 |
|
|
;;
|
14771 |
|
|
|
14772 |
|
|
hpux9* | hpux10* | hpux11*)
|
14773 |
|
|
# Give a soname corresponding to the major version so that dld.sl refuses to
|
14774 |
|
|
# link against other versions.
|
14775 |
|
|
version_type=sunos
|
14776 |
|
|
need_lib_prefix=no
|
14777 |
|
|
need_version=no
|
14778 |
|
|
case $host_cpu in
|
14779 |
|
|
ia64*)
|
14780 |
|
|
shrext_cmds='.so'
|
14781 |
|
|
hardcode_into_libs=yes
|
14782 |
|
|
dynamic_linker="$host_os dld.so"
|
14783 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14784 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
14785 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14786 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14787 |
|
|
if test "X$HPUX_IA64_MODE" = X32; then
|
14788 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
14789 |
|
|
else
|
14790 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
14791 |
|
|
fi
|
14792 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
14793 |
|
|
;;
|
14794 |
|
|
hppa*64*)
|
14795 |
|
|
shrext_cmds='.sl'
|
14796 |
|
|
hardcode_into_libs=yes
|
14797 |
|
|
dynamic_linker="$host_os dld.sl"
|
14798 |
|
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
14799 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
14800 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14801 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14802 |
|
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
14803 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
14804 |
|
|
;;
|
14805 |
|
|
*)
|
14806 |
|
|
shrext_cmds='.sl'
|
14807 |
|
|
dynamic_linker="$host_os dld.sl"
|
14808 |
|
|
shlibpath_var=SHLIB_PATH
|
14809 |
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
14810 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14811 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14812 |
|
|
;;
|
14813 |
|
|
esac
|
14814 |
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
14815 |
|
|
postinstall_cmds='chmod 555 $lib'
|
14816 |
|
|
;;
|
14817 |
|
|
|
14818 |
|
|
interix[3-9]*)
|
14819 |
|
|
version_type=linux
|
14820 |
|
|
need_lib_prefix=no
|
14821 |
|
|
need_version=no
|
14822 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
14823 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14824 |
|
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
14825 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14826 |
|
|
shlibpath_overrides_runpath=no
|
14827 |
|
|
hardcode_into_libs=yes
|
14828 |
|
|
;;
|
14829 |
|
|
|
14830 |
|
|
irix5* | irix6* | nonstopux*)
|
14831 |
|
|
case $host_os in
|
14832 |
|
|
nonstopux*) version_type=nonstopux ;;
|
14833 |
|
|
*)
|
14834 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
14835 |
|
|
version_type=linux
|
14836 |
|
|
else
|
14837 |
|
|
version_type=irix
|
14838 |
|
|
fi ;;
|
14839 |
|
|
esac
|
14840 |
|
|
need_lib_prefix=no
|
14841 |
|
|
need_version=no
|
14842 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14843 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
14844 |
|
|
case $host_os in
|
14845 |
|
|
irix5* | nonstopux*)
|
14846 |
|
|
libsuff= shlibsuff=
|
14847 |
|
|
;;
|
14848 |
|
|
*)
|
14849 |
|
|
case $LD in # libtool.m4 will add one of these switches to LD
|
14850 |
|
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
14851 |
|
|
libsuff= shlibsuff= libmagic=32-bit;;
|
14852 |
|
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
14853 |
|
|
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
14854 |
|
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
14855 |
|
|
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
14856 |
|
|
*) libsuff= shlibsuff= libmagic=never-match;;
|
14857 |
|
|
esac
|
14858 |
|
|
;;
|
14859 |
|
|
esac
|
14860 |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
14861 |
|
|
shlibpath_overrides_runpath=no
|
14862 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
14863 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
14864 |
|
|
hardcode_into_libs=yes
|
14865 |
|
|
;;
|
14866 |
|
|
|
14867 |
|
|
# No shared lib support for Linux oldld, aout, or coff.
|
14868 |
|
|
linux*oldld* | linux*aout* | linux*coff*)
|
14869 |
|
|
dynamic_linker=no
|
14870 |
|
|
;;
|
14871 |
|
|
|
14872 |
|
|
# This must be Linux ELF.
|
14873 |
|
|
linux* | k*bsd*-gnu)
|
14874 |
|
|
version_type=linux
|
14875 |
|
|
need_lib_prefix=no
|
14876 |
|
|
need_version=no
|
14877 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14878 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14879 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
14880 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14881 |
|
|
shlibpath_overrides_runpath=no
|
14882 |
|
|
# This implies no fast_install, which is unacceptable.
|
14883 |
|
|
# Some rework will be needed to allow for fast_install
|
14884 |
|
|
# before this can be enabled.
|
14885 |
|
|
hardcode_into_libs=yes
|
14886 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
14887 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
14888 |
|
|
|
14889 |
|
|
# Append ld.so.conf contents to the search path
|
14890 |
|
|
if test -f /etc/ld.so.conf; then
|
14891 |
|
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
14892 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
14893 |
|
|
fi
|
14894 |
|
|
|
14895 |
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
14896 |
|
|
# powerpc, because MkLinux only supported shared libraries with the
|
14897 |
|
|
# GNU dynamic linker. Since this was broken with cross compilers,
|
14898 |
|
|
# most powerpc-linux boxes support dynamic linking these days and
|
14899 |
|
|
# people can always --disable-shared, the test was removed, and we
|
14900 |
|
|
# assume the GNU/Linux dynamic linker is in use.
|
14901 |
|
|
dynamic_linker='GNU/Linux ld.so'
|
14902 |
|
|
;;
|
14903 |
|
|
|
14904 |
|
|
netbsd*)
|
14905 |
|
|
version_type=sunos
|
14906 |
|
|
need_lib_prefix=no
|
14907 |
|
|
need_version=no
|
14908 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
14909 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
14910 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
14911 |
|
|
dynamic_linker='NetBSD (a.out) ld.so'
|
14912 |
|
|
else
|
14913 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
14914 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14915 |
|
|
dynamic_linker='NetBSD ld.elf_so'
|
14916 |
|
|
fi
|
14917 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14918 |
|
|
shlibpath_overrides_runpath=yes
|
14919 |
|
|
hardcode_into_libs=yes
|
14920 |
|
|
;;
|
14921 |
|
|
|
14922 |
|
|
newsos6)
|
14923 |
|
|
version_type=linux
|
14924 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14925 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14926 |
|
|
shlibpath_overrides_runpath=yes
|
14927 |
|
|
;;
|
14928 |
|
|
|
14929 |
|
|
nto-qnx*)
|
14930 |
|
|
version_type=linux
|
14931 |
|
|
need_lib_prefix=no
|
14932 |
|
|
need_version=no
|
14933 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14934 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14935 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14936 |
|
|
shlibpath_overrides_runpath=yes
|
14937 |
|
|
;;
|
14938 |
|
|
|
14939 |
|
|
openbsd*)
|
14940 |
|
|
version_type=sunos
|
14941 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib"
|
14942 |
|
|
need_lib_prefix=no
|
14943 |
|
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
14944 |
|
|
case $host_os in
|
14945 |
|
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
14946 |
|
|
*) need_version=no ;;
|
14947 |
|
|
esac
|
14948 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
14949 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
14950 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14951 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
14952 |
|
|
case $host_os in
|
14953 |
|
|
openbsd2.[89] | openbsd2.[89].*)
|
14954 |
|
|
shlibpath_overrides_runpath=no
|
14955 |
|
|
;;
|
14956 |
|
|
*)
|
14957 |
|
|
shlibpath_overrides_runpath=yes
|
14958 |
|
|
;;
|
14959 |
|
|
esac
|
14960 |
|
|
else
|
14961 |
|
|
shlibpath_overrides_runpath=yes
|
14962 |
|
|
fi
|
14963 |
|
|
;;
|
14964 |
|
|
|
14965 |
|
|
os2*)
|
14966 |
|
|
libname_spec='$name'
|
14967 |
|
|
shrext_cmds=".dll"
|
14968 |
|
|
need_lib_prefix=no
|
14969 |
|
|
library_names_spec='$libname${shared_ext} $libname.a'
|
14970 |
|
|
dynamic_linker='OS/2 ld.exe'
|
14971 |
|
|
shlibpath_var=LIBPATH
|
14972 |
|
|
;;
|
14973 |
|
|
|
14974 |
|
|
osf3* | osf4* | osf5*)
|
14975 |
|
|
version_type=osf
|
14976 |
|
|
need_lib_prefix=no
|
14977 |
|
|
need_version=no
|
14978 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14979 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14980 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14981 |
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
14982 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
14983 |
|
|
;;
|
14984 |
|
|
|
14985 |
|
|
rdos*)
|
14986 |
|
|
dynamic_linker=no
|
14987 |
|
|
;;
|
14988 |
|
|
|
14989 |
|
|
solaris*)
|
14990 |
|
|
version_type=linux
|
14991 |
|
|
need_lib_prefix=no
|
14992 |
|
|
need_version=no
|
14993 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14994 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14995 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14996 |
|
|
shlibpath_overrides_runpath=yes
|
14997 |
|
|
hardcode_into_libs=yes
|
14998 |
|
|
# ldd complains unless libraries are executable
|
14999 |
|
|
postinstall_cmds='chmod +x $lib'
|
15000 |
|
|
;;
|
15001 |
|
|
|
15002 |
|
|
sunos4*)
|
15003 |
|
|
version_type=sunos
|
15004 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
15005 |
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
15006 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
15007 |
|
|
shlibpath_overrides_runpath=yes
|
15008 |
|
|
if test "$with_gnu_ld" = yes; then
|
15009 |
|
|
need_lib_prefix=no
|
15010 |
|
|
fi
|
15011 |
|
|
need_version=yes
|
15012 |
|
|
;;
|
15013 |
|
|
|
15014 |
|
|
sysv4 | sysv4.3*)
|
15015 |
|
|
version_type=linux
|
15016 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
15017 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
15018 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
15019 |
|
|
case $host_vendor in
|
15020 |
|
|
sni)
|
15021 |
|
|
shlibpath_overrides_runpath=no
|
15022 |
|
|
need_lib_prefix=no
|
15023 |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
15024 |
|
|
runpath_var=LD_RUN_PATH
|
15025 |
|
|
;;
|
15026 |
|
|
siemens)
|
15027 |
|
|
need_lib_prefix=no
|
15028 |
|
|
;;
|
15029 |
|
|
motorola)
|
15030 |
|
|
need_lib_prefix=no
|
15031 |
|
|
need_version=no
|
15032 |
|
|
shlibpath_overrides_runpath=no
|
15033 |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
15034 |
|
|
;;
|
15035 |
|
|
esac
|
15036 |
|
|
;;
|
15037 |
|
|
|
15038 |
|
|
sysv4*MP*)
|
15039 |
|
|
if test -d /usr/nec ;then
|
15040 |
|
|
version_type=linux
|
15041 |
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
15042 |
|
|
soname_spec='$libname${shared_ext}.$major'
|
15043 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
15044 |
|
|
fi
|
15045 |
|
|
;;
|
15046 |
|
|
|
15047 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
15048 |
|
|
version_type=freebsd-elf
|
15049 |
|
|
need_lib_prefix=no
|
15050 |
|
|
need_version=no
|
15051 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
15052 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
15053 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
15054 |
|
|
hardcode_into_libs=yes
|
15055 |
|
|
if test "$with_gnu_ld" = yes; then
|
15056 |
|
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
15057 |
|
|
shlibpath_overrides_runpath=no
|
15058 |
|
|
else
|
15059 |
|
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
15060 |
|
|
shlibpath_overrides_runpath=yes
|
15061 |
|
|
case $host_os in
|
15062 |
|
|
sco3.2v5*)
|
15063 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
15064 |
|
|
;;
|
15065 |
|
|
esac
|
15066 |
|
|
fi
|
15067 |
|
|
sys_lib_dlsearch_path_spec='/usr/lib'
|
15068 |
|
|
;;
|
15069 |
|
|
|
15070 |
|
|
uts4*)
|
15071 |
|
|
version_type=linux
|
15072 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
15073 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
15074 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
15075 |
|
|
;;
|
15076 |
|
|
|
15077 |
|
|
*)
|
15078 |
|
|
dynamic_linker=no
|
15079 |
|
|
;;
|
15080 |
|
|
esac
|
15081 |
|
|
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
15082 |
|
|
echo "${ECHO_T}$dynamic_linker" >&6; }
|
15083 |
|
|
test "$dynamic_linker" = no && can_build_shared=no
|
15084 |
|
|
|
15085 |
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
15086 |
|
|
if test "$GCC" = yes; then
|
15087 |
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
15088 |
|
|
fi
|
15089 |
|
|
|
15090 |
|
|
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
15091 |
|
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
15092 |
|
|
hardcode_action_F77=
|
15093 |
|
|
if test -n "$hardcode_libdir_flag_spec_F77" || \
|
15094 |
|
|
test -n "$runpath_var_F77" || \
|
15095 |
|
|
test "X$hardcode_automatic_F77" = "Xyes" ; then
|
15096 |
|
|
|
15097 |
|
|
# We can hardcode non-existant directories.
|
15098 |
|
|
if test "$hardcode_direct_F77" != no &&
|
15099 |
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
15100 |
|
|
# have to relink, otherwise we might link with an installed library
|
15101 |
|
|
# when we should be linking with a yet-to-be-installed one
|
15102 |
|
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
|
15103 |
|
|
test "$hardcode_minus_L_F77" != no; then
|
15104 |
|
|
# Linking always hardcodes the temporary library directory.
|
15105 |
|
|
hardcode_action_F77=relink
|
15106 |
|
|
else
|
15107 |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
15108 |
|
|
hardcode_action_F77=immediate
|
15109 |
|
|
fi
|
15110 |
|
|
else
|
15111 |
|
|
# We cannot hardcode anything, or else we can only hardcode existing
|
15112 |
|
|
# directories.
|
15113 |
|
|
hardcode_action_F77=unsupported
|
15114 |
|
|
fi
|
15115 |
|
|
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
|
15116 |
|
|
echo "${ECHO_T}$hardcode_action_F77" >&6; }
|
15117 |
|
|
|
15118 |
|
|
if test "$hardcode_action_F77" = relink; then
|
15119 |
|
|
# Fast installation is not supported
|
15120 |
|
|
enable_fast_install=no
|
15121 |
|
|
elif test "$shlibpath_overrides_runpath" = yes ||
|
15122 |
|
|
test "$enable_shared" = no; then
|
15123 |
|
|
# Fast installation is not necessary
|
15124 |
|
|
enable_fast_install=needless
|
15125 |
|
|
fi
|
15126 |
|
|
|
15127 |
|
|
|
15128 |
|
|
# The else clause should only fire when bootstrapping the
|
15129 |
|
|
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
15130 |
|
|
# with your package, and you will get complaints that there are
|
15131 |
|
|
# no rules to generate ltmain.sh.
|
15132 |
|
|
if test -f "$ltmain"; then
|
15133 |
|
|
# See if we are running on zsh, and set the options which allow our commands through
|
15134 |
|
|
# without removal of \ escapes.
|
15135 |
|
|
if test -n "${ZSH_VERSION+set}" ; then
|
15136 |
|
|
setopt NO_GLOB_SUBST
|
15137 |
|
|
fi
|
15138 |
|
|
# Now quote all the things that may contain metacharacters while being
|
15139 |
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
15140 |
|
|
# variables and quote the copies for generation of the libtool script.
|
15141 |
|
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
15142 |
|
|
SED SHELL STRIP \
|
15143 |
|
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
15144 |
|
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
15145 |
|
|
deplibs_check_method reload_flag reload_cmds need_locks \
|
15146 |
|
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
15147 |
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
15148 |
|
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
15149 |
|
|
old_postinstall_cmds old_postuninstall_cmds \
|
15150 |
|
|
compiler_F77 \
|
15151 |
|
|
CC_F77 \
|
15152 |
|
|
LD_F77 \
|
15153 |
|
|
lt_prog_compiler_wl_F77 \
|
15154 |
|
|
lt_prog_compiler_pic_F77 \
|
15155 |
|
|
lt_prog_compiler_static_F77 \
|
15156 |
|
|
lt_prog_compiler_no_builtin_flag_F77 \
|
15157 |
|
|
export_dynamic_flag_spec_F77 \
|
15158 |
|
|
thread_safe_flag_spec_F77 \
|
15159 |
|
|
whole_archive_flag_spec_F77 \
|
15160 |
|
|
enable_shared_with_static_runtimes_F77 \
|
15161 |
|
|
old_archive_cmds_F77 \
|
15162 |
|
|
old_archive_from_new_cmds_F77 \
|
15163 |
|
|
predep_objects_F77 \
|
15164 |
|
|
postdep_objects_F77 \
|
15165 |
|
|
predeps_F77 \
|
15166 |
|
|
postdeps_F77 \
|
15167 |
|
|
compiler_lib_search_path_F77 \
|
15168 |
|
|
archive_cmds_F77 \
|
15169 |
|
|
archive_expsym_cmds_F77 \
|
15170 |
|
|
postinstall_cmds_F77 \
|
15171 |
|
|
postuninstall_cmds_F77 \
|
15172 |
|
|
old_archive_from_expsyms_cmds_F77 \
|
15173 |
|
|
allow_undefined_flag_F77 \
|
15174 |
|
|
no_undefined_flag_F77 \
|
15175 |
|
|
export_symbols_cmds_F77 \
|
15176 |
|
|
hardcode_libdir_flag_spec_F77 \
|
15177 |
|
|
hardcode_libdir_flag_spec_ld_F77 \
|
15178 |
|
|
hardcode_libdir_separator_F77 \
|
15179 |
|
|
hardcode_automatic_F77 \
|
15180 |
|
|
module_cmds_F77 \
|
15181 |
|
|
module_expsym_cmds_F77 \
|
15182 |
|
|
lt_cv_prog_compiler_c_o_F77 \
|
15183 |
|
|
fix_srcfile_path_F77 \
|
15184 |
|
|
exclude_expsyms_F77 \
|
15185 |
|
|
include_expsyms_F77; do
|
15186 |
|
|
|
15187 |
|
|
case $var in
|
15188 |
|
|
old_archive_cmds_F77 | \
|
15189 |
|
|
old_archive_from_new_cmds_F77 | \
|
15190 |
|
|
archive_cmds_F77 | \
|
15191 |
|
|
archive_expsym_cmds_F77 | \
|
15192 |
|
|
module_cmds_F77 | \
|
15193 |
|
|
module_expsym_cmds_F77 | \
|
15194 |
|
|
old_archive_from_expsyms_cmds_F77 | \
|
15195 |
|
|
export_symbols_cmds_F77 | \
|
15196 |
|
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
15197 |
|
|
postinstall_cmds | postuninstall_cmds | \
|
15198 |
|
|
old_postinstall_cmds | old_postuninstall_cmds | \
|
15199 |
|
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
15200 |
|
|
# Double-quote double-evaled strings.
|
15201 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
15202 |
|
|
;;
|
15203 |
|
|
*)
|
15204 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
15205 |
|
|
;;
|
15206 |
|
|
esac
|
15207 |
|
|
done
|
15208 |
|
|
|
15209 |
|
|
case $lt_echo in
|
15210 |
|
|
*'\$0 --fallback-echo"')
|
15211 |
|
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
15212 |
|
|
;;
|
15213 |
|
|
esac
|
15214 |
|
|
|
15215 |
|
|
cfgfile="$ofile"
|
15216 |
|
|
|
15217 |
|
|
cat <<__EOF__ >> "$cfgfile"
|
15218 |
|
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
15219 |
|
|
|
15220 |
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
15221 |
|
|
|
15222 |
|
|
# Shell to use when invoking shell scripts.
|
15223 |
|
|
SHELL=$lt_SHELL
|
15224 |
|
|
|
15225 |
|
|
# Whether or not to build shared libraries.
|
15226 |
|
|
build_libtool_libs=$enable_shared
|
15227 |
|
|
|
15228 |
|
|
# Whether or not to build static libraries.
|
15229 |
|
|
build_old_libs=$enable_static
|
15230 |
|
|
|
15231 |
|
|
# Whether or not to add -lc for building shared libraries.
|
15232 |
|
|
build_libtool_need_lc=$archive_cmds_need_lc_F77
|
15233 |
|
|
|
15234 |
|
|
# Whether or not to disallow shared libs when runtime libs are static
|
15235 |
|
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
|
15236 |
|
|
|
15237 |
|
|
# Whether or not to optimize for fast installation.
|
15238 |
|
|
fast_install=$enable_fast_install
|
15239 |
|
|
|
15240 |
|
|
# The host system.
|
15241 |
|
|
host_alias=$host_alias
|
15242 |
|
|
host=$host
|
15243 |
|
|
host_os=$host_os
|
15244 |
|
|
|
15245 |
|
|
# The build system.
|
15246 |
|
|
build_alias=$build_alias
|
15247 |
|
|
build=$build
|
15248 |
|
|
build_os=$build_os
|
15249 |
|
|
|
15250 |
|
|
# An echo program that does not interpret backslashes.
|
15251 |
|
|
echo=$lt_echo
|
15252 |
|
|
|
15253 |
|
|
# The archiver.
|
15254 |
|
|
AR=$lt_AR
|
15255 |
|
|
AR_FLAGS=$lt_AR_FLAGS
|
15256 |
|
|
|
15257 |
|
|
# A C compiler.
|
15258 |
|
|
LTCC=$lt_LTCC
|
15259 |
|
|
|
15260 |
|
|
# LTCC compiler flags.
|
15261 |
|
|
LTCFLAGS=$lt_LTCFLAGS
|
15262 |
|
|
|
15263 |
|
|
# A language-specific compiler.
|
15264 |
|
|
CC=$lt_compiler_F77
|
15265 |
|
|
|
15266 |
|
|
# Is the compiler the GNU C compiler?
|
15267 |
|
|
with_gcc=$GCC_F77
|
15268 |
|
|
|
15269 |
|
|
# An ERE matcher.
|
15270 |
|
|
EGREP=$lt_EGREP
|
15271 |
|
|
|
15272 |
|
|
# The linker used to build libraries.
|
15273 |
|
|
LD=$lt_LD_F77
|
15274 |
|
|
|
15275 |
|
|
# Whether we need hard or soft links.
|
15276 |
|
|
LN_S=$lt_LN_S
|
15277 |
|
|
|
15278 |
|
|
# A BSD-compatible nm program.
|
15279 |
|
|
NM=$lt_NM
|
15280 |
|
|
|
15281 |
|
|
# A symbol stripping program
|
15282 |
|
|
STRIP=$lt_STRIP
|
15283 |
|
|
|
15284 |
|
|
# Used to examine libraries when file_magic_cmd begins "file"
|
15285 |
|
|
MAGIC_CMD=$MAGIC_CMD
|
15286 |
|
|
|
15287 |
|
|
# Used on cygwin: DLL creation program.
|
15288 |
|
|
DLLTOOL="$DLLTOOL"
|
15289 |
|
|
|
15290 |
|
|
# Used on cygwin: object dumper.
|
15291 |
|
|
OBJDUMP="$OBJDUMP"
|
15292 |
|
|
|
15293 |
|
|
# Used on cygwin: assembler.
|
15294 |
|
|
AS="$AS"
|
15295 |
|
|
|
15296 |
|
|
# The name of the directory that contains temporary libtool files.
|
15297 |
|
|
objdir=$objdir
|
15298 |
|
|
|
15299 |
|
|
# How to create reloadable object files.
|
15300 |
|
|
reload_flag=$lt_reload_flag
|
15301 |
|
|
reload_cmds=$lt_reload_cmds
|
15302 |
|
|
|
15303 |
|
|
# How to pass a linker flag through the compiler.
|
15304 |
|
|
wl=$lt_lt_prog_compiler_wl_F77
|
15305 |
|
|
|
15306 |
|
|
# Object file suffix (normally "o").
|
15307 |
|
|
objext="$ac_objext"
|
15308 |
|
|
|
15309 |
|
|
# Old archive suffix (normally "a").
|
15310 |
|
|
libext="$libext"
|
15311 |
|
|
|
15312 |
|
|
# Shared library suffix (normally ".so").
|
15313 |
|
|
shrext_cmds='$shrext_cmds'
|
15314 |
|
|
|
15315 |
|
|
# Executable file suffix (normally "").
|
15316 |
|
|
exeext="$exeext"
|
15317 |
|
|
|
15318 |
|
|
# Additional compiler flags for building library objects.
|
15319 |
|
|
pic_flag=$lt_lt_prog_compiler_pic_F77
|
15320 |
|
|
pic_mode=$pic_mode
|
15321 |
|
|
|
15322 |
|
|
# What is the maximum length of a command?
|
15323 |
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
15324 |
|
|
|
15325 |
|
|
# Does compiler simultaneously support -c and -o options?
|
15326 |
|
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
|
15327 |
|
|
|
15328 |
|
|
# Must we lock files when doing compilation?
|
15329 |
|
|
need_locks=$lt_need_locks
|
15330 |
|
|
|
15331 |
|
|
# Do we need the lib prefix for modules?
|
15332 |
|
|
need_lib_prefix=$need_lib_prefix
|
15333 |
|
|
|
15334 |
|
|
# Do we need a version for libraries?
|
15335 |
|
|
need_version=$need_version
|
15336 |
|
|
|
15337 |
|
|
# Whether dlopen is supported.
|
15338 |
|
|
dlopen_support=$enable_dlopen
|
15339 |
|
|
|
15340 |
|
|
# Whether dlopen of programs is supported.
|
15341 |
|
|
dlopen_self=$enable_dlopen_self
|
15342 |
|
|
|
15343 |
|
|
# Whether dlopen of statically linked programs is supported.
|
15344 |
|
|
dlopen_self_static=$enable_dlopen_self_static
|
15345 |
|
|
|
15346 |
|
|
# Compiler flag to prevent dynamic linking.
|
15347 |
|
|
link_static_flag=$lt_lt_prog_compiler_static_F77
|
15348 |
|
|
|
15349 |
|
|
# Compiler flag to turn off builtin functions.
|
15350 |
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
|
15351 |
|
|
|
15352 |
|
|
# Compiler flag to allow reflexive dlopens.
|
15353 |
|
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
|
15354 |
|
|
|
15355 |
|
|
# Compiler flag to generate shared objects directly from archives.
|
15356 |
|
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
|
15357 |
|
|
|
15358 |
|
|
# Compiler flag to generate thread-safe objects.
|
15359 |
|
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
|
15360 |
|
|
|
15361 |
|
|
# Library versioning type.
|
15362 |
|
|
version_type=$version_type
|
15363 |
|
|
|
15364 |
|
|
# Format of library name prefix.
|
15365 |
|
|
libname_spec=$lt_libname_spec
|
15366 |
|
|
|
15367 |
|
|
# List of archive names. First name is the real one, the rest are links.
|
15368 |
|
|
# The last name is the one that the linker finds with -lNAME.
|
15369 |
|
|
library_names_spec=$lt_library_names_spec
|
15370 |
|
|
|
15371 |
|
|
# The coded name of the library, if different from the real name.
|
15372 |
|
|
soname_spec=$lt_soname_spec
|
15373 |
|
|
|
15374 |
|
|
# Commands used to build and install an old-style archive.
|
15375 |
|
|
RANLIB=$lt_RANLIB
|
15376 |
|
|
old_archive_cmds=$lt_old_archive_cmds_F77
|
15377 |
|
|
old_postinstall_cmds=$lt_old_postinstall_cmds
|
15378 |
|
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
15379 |
|
|
|
15380 |
|
|
# Create an old-style archive from a shared archive.
|
15381 |
|
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
|
15382 |
|
|
|
15383 |
|
|
# Create a temporary old-style archive to link instead of a shared archive.
|
15384 |
|
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
|
15385 |
|
|
|
15386 |
|
|
# Commands used to build and install a shared archive.
|
15387 |
|
|
archive_cmds=$lt_archive_cmds_F77
|
15388 |
|
|
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
|
15389 |
|
|
postinstall_cmds=$lt_postinstall_cmds
|
15390 |
|
|
postuninstall_cmds=$lt_postuninstall_cmds
|
15391 |
|
|
|
15392 |
|
|
# Commands used to build a loadable module (assumed same as above if empty)
|
15393 |
|
|
module_cmds=$lt_module_cmds_F77
|
15394 |
|
|
module_expsym_cmds=$lt_module_expsym_cmds_F77
|
15395 |
|
|
|
15396 |
|
|
# Commands to strip libraries.
|
15397 |
|
|
old_striplib=$lt_old_striplib
|
15398 |
|
|
striplib=$lt_striplib
|
15399 |
|
|
|
15400 |
|
|
# Dependencies to place before the objects being linked to create a
|
15401 |
|
|
# shared library.
|
15402 |
|
|
predep_objects=$lt_predep_objects_F77
|
15403 |
|
|
|
15404 |
|
|
# Dependencies to place after the objects being linked to create a
|
15405 |
|
|
# shared library.
|
15406 |
|
|
postdep_objects=$lt_postdep_objects_F77
|
15407 |
|
|
|
15408 |
|
|
# Dependencies to place before the objects being linked to create a
|
15409 |
|
|
# shared library.
|
15410 |
|
|
predeps=$lt_predeps_F77
|
15411 |
|
|
|
15412 |
|
|
# Dependencies to place after the objects being linked to create a
|
15413 |
|
|
# shared library.
|
15414 |
|
|
postdeps=$lt_postdeps_F77
|
15415 |
|
|
|
15416 |
|
|
# The library search path used internally by the compiler when linking
|
15417 |
|
|
# a shared library.
|
15418 |
|
|
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
|
15419 |
|
|
|
15420 |
|
|
# Method to check whether dependent libraries are shared objects.
|
15421 |
|
|
deplibs_check_method=$lt_deplibs_check_method
|
15422 |
|
|
|
15423 |
|
|
# Command to use when deplibs_check_method == file_magic.
|
15424 |
|
|
file_magic_cmd=$lt_file_magic_cmd
|
15425 |
|
|
|
15426 |
|
|
# Flag that allows shared libraries with undefined symbols to be built.
|
15427 |
|
|
allow_undefined_flag=$lt_allow_undefined_flag_F77
|
15428 |
|
|
|
15429 |
|
|
# Flag that forces no undefined symbols.
|
15430 |
|
|
no_undefined_flag=$lt_no_undefined_flag_F77
|
15431 |
|
|
|
15432 |
|
|
# Commands used to finish a libtool library installation in a directory.
|
15433 |
|
|
finish_cmds=$lt_finish_cmds
|
15434 |
|
|
|
15435 |
|
|
# Same as above, but a single script fragment to be evaled but not shown.
|
15436 |
|
|
finish_eval=$lt_finish_eval
|
15437 |
|
|
|
15438 |
|
|
# Take the output of nm and produce a listing of raw symbols and C names.
|
15439 |
|
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
15440 |
|
|
|
15441 |
|
|
# Transform the output of nm in a proper C declaration
|
15442 |
|
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
15443 |
|
|
|
15444 |
|
|
# Transform the output of nm in a C name address pair
|
15445 |
|
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
15446 |
|
|
|
15447 |
|
|
# This is the shared library runtime path variable.
|
15448 |
|
|
runpath_var=$runpath_var
|
15449 |
|
|
|
15450 |
|
|
# This is the shared library path variable.
|
15451 |
|
|
shlibpath_var=$shlibpath_var
|
15452 |
|
|
|
15453 |
|
|
# Is shlibpath searched before the hard-coded library search path?
|
15454 |
|
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
15455 |
|
|
|
15456 |
|
|
# How to hardcode a shared library path into an executable.
|
15457 |
|
|
hardcode_action=$hardcode_action_F77
|
15458 |
|
|
|
15459 |
|
|
# Whether we should hardcode library paths into libraries.
|
15460 |
|
|
hardcode_into_libs=$hardcode_into_libs
|
15461 |
|
|
|
15462 |
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
15463 |
|
|
# This must work even if \$libdir does not exist.
|
15464 |
|
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
|
15465 |
|
|
|
15466 |
|
|
# If ld is used when linking, flag to hardcode \$libdir into
|
15467 |
|
|
# a binary during linking. This must work even if \$libdir does
|
15468 |
|
|
# not exist.
|
15469 |
|
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
|
15470 |
|
|
|
15471 |
|
|
# Whether we need a single -rpath flag with a separated argument.
|
15472 |
|
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
|
15473 |
|
|
|
15474 |
|
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
15475 |
|
|
# resulting binary.
|
15476 |
|
|
hardcode_direct=$hardcode_direct_F77
|
15477 |
|
|
|
15478 |
|
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
15479 |
|
|
# resulting binary.
|
15480 |
|
|
hardcode_minus_L=$hardcode_minus_L_F77
|
15481 |
|
|
|
15482 |
|
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
15483 |
|
|
# the resulting binary.
|
15484 |
|
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
|
15485 |
|
|
|
15486 |
|
|
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
15487 |
|
|
# and all subsequent libraries and executables linked against it.
|
15488 |
|
|
hardcode_automatic=$hardcode_automatic_F77
|
15489 |
|
|
|
15490 |
|
|
# Variables whose values should be saved in libtool wrapper scripts and
|
15491 |
|
|
# restored at relink time.
|
15492 |
|
|
variables_saved_for_relink="$variables_saved_for_relink"
|
15493 |
|
|
|
15494 |
|
|
# Whether libtool must link a program against all its dependency libraries.
|
15495 |
|
|
link_all_deplibs=$link_all_deplibs_F77
|
15496 |
|
|
|
15497 |
|
|
# Compile-time system search path for libraries
|
15498 |
|
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
15499 |
|
|
|
15500 |
|
|
# Run-time system search path for libraries
|
15501 |
|
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
15502 |
|
|
|
15503 |
|
|
# Fix the shell variable \$srcfile for the compiler.
|
15504 |
|
|
fix_srcfile_path=$lt_fix_srcfile_path
|
15505 |
|
|
|
15506 |
|
|
# Set to yes if exported symbols are required.
|
15507 |
|
|
always_export_symbols=$always_export_symbols_F77
|
15508 |
|
|
|
15509 |
|
|
# The commands to list exported symbols.
|
15510 |
|
|
export_symbols_cmds=$lt_export_symbols_cmds_F77
|
15511 |
|
|
|
15512 |
|
|
# The commands to extract the exported symbol list from a shared archive.
|
15513 |
|
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
15514 |
|
|
|
15515 |
|
|
# Symbols that should not be listed in the preloaded symbols.
|
15516 |
|
|
exclude_expsyms=$lt_exclude_expsyms_F77
|
15517 |
|
|
|
15518 |
|
|
# Symbols that must always be exported.
|
15519 |
|
|
include_expsyms=$lt_include_expsyms_F77
|
15520 |
|
|
|
15521 |
|
|
# ### END LIBTOOL TAG CONFIG: $tagname
|
15522 |
|
|
|
15523 |
|
|
__EOF__
|
15524 |
|
|
|
15525 |
|
|
|
15526 |
|
|
else
|
15527 |
|
|
# If there is no Makefile yet, we rely on a make rule to execute
|
15528 |
|
|
# `config.status --recheck' to rerun these tests and create the
|
15529 |
|
|
# libtool script then.
|
15530 |
|
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
15531 |
|
|
if test -f "$ltmain_in"; then
|
15532 |
|
|
test -f Makefile && make "$ltmain"
|
15533 |
|
|
fi
|
15534 |
|
|
fi
|
15535 |
|
|
|
15536 |
|
|
|
15537 |
|
|
ac_ext=c
|
15538 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
15539 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
15540 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
15541 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
15542 |
|
|
|
15543 |
|
|
CC="$lt_save_CC"
|
15544 |
|
|
|
15545 |
|
|
else
|
15546 |
|
|
tagname=""
|
15547 |
|
|
fi
|
15548 |
|
|
;;
|
15549 |
|
|
|
15550 |
|
|
GCJ)
|
15551 |
|
|
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
|
15552 |
|
|
|
15553 |
|
|
|
15554 |
|
|
# Source file extension for Java test sources.
|
15555 |
|
|
ac_ext=java
|
15556 |
|
|
|
15557 |
|
|
# Object file extension for compiled Java test sources.
|
15558 |
|
|
objext=o
|
15559 |
|
|
objext_GCJ=$objext
|
15560 |
|
|
|
15561 |
|
|
# Code to be used in simple compile tests
|
15562 |
|
|
lt_simple_compile_test_code="class foo {}"
|
15563 |
|
|
|
15564 |
|
|
# Code to be used in simple link tests
|
15565 |
|
|
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
|
15566 |
|
|
|
15567 |
|
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
15568 |
|
|
|
15569 |
|
|
# If no C compiler was specified, use CC.
|
15570 |
|
|
LTCC=${LTCC-"$CC"}
|
15571 |
|
|
|
15572 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
15573 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
15574 |
|
|
|
15575 |
|
|
# Allow CC to be a program name with arguments.
|
15576 |
|
|
compiler=$CC
|
15577 |
|
|
|
15578 |
|
|
|
15579 |
|
|
# save warnings/boilerplate of simple test code
|
15580 |
|
|
ac_outfile=conftest.$ac_objext
|
15581 |
|
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
15582 |
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
15583 |
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
15584 |
|
|
$rm conftest*
|
15585 |
|
|
|
15586 |
|
|
ac_outfile=conftest.$ac_objext
|
15587 |
|
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
15588 |
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
15589 |
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
15590 |
|
|
$rm conftest*
|
15591 |
|
|
|
15592 |
|
|
|
15593 |
|
|
# Allow CC to be a program name with arguments.
|
15594 |
|
|
lt_save_CC="$CC"
|
15595 |
|
|
CC=${GCJ-"gcj"}
|
15596 |
|
|
compiler=$CC
|
15597 |
|
|
compiler_GCJ=$CC
|
15598 |
|
|
for cc_temp in $compiler""; do
|
15599 |
|
|
case $cc_temp in
|
15600 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
15601 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
15602 |
|
|
\-*) ;;
|
15603 |
|
|
*) break;;
|
15604 |
|
|
esac
|
15605 |
|
|
done
|
15606 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
15607 |
|
|
|
15608 |
|
|
|
15609 |
|
|
# GCJ did not exist at the time GCC didn't implicitly link libc in.
|
15610 |
|
|
archive_cmds_need_lc_GCJ=no
|
15611 |
|
|
|
15612 |
|
|
old_archive_cmds_GCJ=$old_archive_cmds
|
15613 |
|
|
|
15614 |
|
|
## CAVEAT EMPTOR:
|
15615 |
|
|
## There is no encapsulation within the following macros, do not change
|
15616 |
|
|
## the running order or otherwise move them around unless you know exactly
|
15617 |
|
|
## what you are doing...
|
15618 |
|
|
|
15619 |
|
|
lt_prog_compiler_no_builtin_flag_GCJ=
|
15620 |
|
|
|
15621 |
|
|
if test "$GCC" = yes; then
|
15622 |
|
|
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
|
15623 |
|
|
|
15624 |
|
|
|
15625 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
15626 |
|
|
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
|
15627 |
|
|
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
|
15628 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
15629 |
|
|
else
|
15630 |
|
|
lt_cv_prog_compiler_rtti_exceptions=no
|
15631 |
|
|
ac_outfile=conftest.$ac_objext
|
15632 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
15633 |
|
|
lt_compiler_flag="-fno-rtti -fno-exceptions"
|
15634 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
15635 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
15636 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
15637 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
15638 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
15639 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
15640 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
15641 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
15642 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
15643 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
15644 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
15645 |
|
|
ac_status=$?
|
15646 |
|
|
cat conftest.err >&5
|
15647 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
15648 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
15649 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
15650 |
|
|
# So say no if there are warnings other than the usual output.
|
15651 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
15652 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
15653 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
15654 |
|
|
lt_cv_prog_compiler_rtti_exceptions=yes
|
15655 |
|
|
fi
|
15656 |
|
|
fi
|
15657 |
|
|
$rm conftest*
|
15658 |
|
|
|
15659 |
|
|
fi
|
15660 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
15661 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
15662 |
|
|
|
15663 |
|
|
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
15664 |
|
|
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
|
15665 |
|
|
else
|
15666 |
|
|
:
|
15667 |
|
|
fi
|
15668 |
|
|
|
15669 |
|
|
fi
|
15670 |
|
|
|
15671 |
|
|
lt_prog_compiler_wl_GCJ=
|
15672 |
|
|
lt_prog_compiler_pic_GCJ=
|
15673 |
|
|
lt_prog_compiler_static_GCJ=
|
15674 |
|
|
|
15675 |
|
|
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
15676 |
|
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
15677 |
|
|
|
15678 |
|
|
if test "$GCC" = yes; then
|
15679 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15680 |
|
|
lt_prog_compiler_static_GCJ='-static'
|
15681 |
|
|
|
15682 |
|
|
case $host_os in
|
15683 |
|
|
aix*)
|
15684 |
|
|
# All AIX code is PIC.
|
15685 |
|
|
if test "$host_cpu" = ia64; then
|
15686 |
|
|
# AIX 5 now supports IA64 processor
|
15687 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15688 |
|
|
fi
|
15689 |
|
|
;;
|
15690 |
|
|
|
15691 |
|
|
amigaos*)
|
15692 |
|
|
# FIXME: we need at least 68020 code to build shared libraries, but
|
15693 |
|
|
# adding the `-m68020' flag to GCC prevents building anything better,
|
15694 |
|
|
# like `-m68040'.
|
15695 |
|
|
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
|
15696 |
|
|
;;
|
15697 |
|
|
|
15698 |
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
15699 |
|
|
# PIC is the default for these OSes.
|
15700 |
|
|
;;
|
15701 |
|
|
|
15702 |
|
|
mingw* | cygwin* | pw32* | os2*)
|
15703 |
|
|
# This hack is so that the source file can tell whether it is being
|
15704 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
15705 |
|
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
15706 |
|
|
# (--disable-auto-import) libraries
|
15707 |
|
|
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
|
15708 |
|
|
;;
|
15709 |
|
|
|
15710 |
|
|
darwin* | rhapsody*)
|
15711 |
|
|
# PIC is the default on this platform
|
15712 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
15713 |
|
|
lt_prog_compiler_pic_GCJ='-fno-common'
|
15714 |
|
|
;;
|
15715 |
|
|
|
15716 |
|
|
interix[3-9]*)
|
15717 |
|
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
15718 |
|
|
# Instead, we relocate shared libraries at runtime.
|
15719 |
|
|
;;
|
15720 |
|
|
|
15721 |
|
|
msdosdjgpp*)
|
15722 |
|
|
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
15723 |
|
|
# on systems that don't support them.
|
15724 |
|
|
lt_prog_compiler_can_build_shared_GCJ=no
|
15725 |
|
|
enable_shared=no
|
15726 |
|
|
;;
|
15727 |
|
|
|
15728 |
|
|
sysv4*MP*)
|
15729 |
|
|
if test -d /usr/nec; then
|
15730 |
|
|
lt_prog_compiler_pic_GCJ=-Kconform_pic
|
15731 |
|
|
fi
|
15732 |
|
|
;;
|
15733 |
|
|
|
15734 |
|
|
hpux*)
|
15735 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
15736 |
|
|
# not for PA HP-UX.
|
15737 |
|
|
case $host_cpu in
|
15738 |
|
|
hppa*64*|ia64*)
|
15739 |
|
|
# +Z the default
|
15740 |
|
|
;;
|
15741 |
|
|
*)
|
15742 |
|
|
lt_prog_compiler_pic_GCJ='-fPIC'
|
15743 |
|
|
;;
|
15744 |
|
|
esac
|
15745 |
|
|
;;
|
15746 |
|
|
|
15747 |
|
|
*)
|
15748 |
|
|
lt_prog_compiler_pic_GCJ='-fPIC'
|
15749 |
|
|
;;
|
15750 |
|
|
esac
|
15751 |
|
|
else
|
15752 |
|
|
# PORTME Check for flag to pass linker flags through the system compiler.
|
15753 |
|
|
case $host_os in
|
15754 |
|
|
aix*)
|
15755 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15756 |
|
|
if test "$host_cpu" = ia64; then
|
15757 |
|
|
# AIX 5 now supports IA64 processor
|
15758 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15759 |
|
|
else
|
15760 |
|
|
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
|
15761 |
|
|
fi
|
15762 |
|
|
;;
|
15763 |
|
|
darwin*)
|
15764 |
|
|
# PIC is the default on this platform
|
15765 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
15766 |
|
|
case $cc_basename in
|
15767 |
|
|
xlc*)
|
15768 |
|
|
lt_prog_compiler_pic_GCJ='-qnocommon'
|
15769 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15770 |
|
|
;;
|
15771 |
|
|
esac
|
15772 |
|
|
;;
|
15773 |
|
|
|
15774 |
|
|
mingw* | cygwin* | pw32* | os2*)
|
15775 |
|
|
# This hack is so that the source file can tell whether it is being
|
15776 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
15777 |
|
|
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
|
15778 |
|
|
;;
|
15779 |
|
|
|
15780 |
|
|
hpux9* | hpux10* | hpux11*)
|
15781 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15782 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
15783 |
|
|
# not for PA HP-UX.
|
15784 |
|
|
case $host_cpu in
|
15785 |
|
|
hppa*64*|ia64*)
|
15786 |
|
|
# +Z the default
|
15787 |
|
|
;;
|
15788 |
|
|
*)
|
15789 |
|
|
lt_prog_compiler_pic_GCJ='+Z'
|
15790 |
|
|
;;
|
15791 |
|
|
esac
|
15792 |
|
|
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
15793 |
|
|
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
|
15794 |
|
|
;;
|
15795 |
|
|
|
15796 |
|
|
irix5* | irix6* | nonstopux*)
|
15797 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15798 |
|
|
# PIC (with -KPIC) is the default.
|
15799 |
|
|
lt_prog_compiler_static_GCJ='-non_shared'
|
15800 |
|
|
;;
|
15801 |
|
|
|
15802 |
|
|
newsos6)
|
15803 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15804 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15805 |
|
|
;;
|
15806 |
|
|
|
15807 |
|
|
linux* | k*bsd*-gnu)
|
15808 |
|
|
case $cc_basename in
|
15809 |
|
|
icc* | ecc*)
|
15810 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15811 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15812 |
|
|
lt_prog_compiler_static_GCJ='-static'
|
15813 |
|
|
;;
|
15814 |
|
|
pgcc* | pgf77* | pgf90* | pgf95*)
|
15815 |
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
15816 |
|
|
# which looks to be a dead project)
|
15817 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15818 |
|
|
lt_prog_compiler_pic_GCJ='-fpic'
|
15819 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15820 |
|
|
;;
|
15821 |
|
|
ccc*)
|
15822 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15823 |
|
|
# All Alpha code is PIC.
|
15824 |
|
|
lt_prog_compiler_static_GCJ='-non_shared'
|
15825 |
|
|
;;
|
15826 |
|
|
*)
|
15827 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
15828 |
|
|
*Sun\ C*)
|
15829 |
|
|
# Sun C 5.9
|
15830 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15831 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15832 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15833 |
|
|
;;
|
15834 |
|
|
*Sun\ F*)
|
15835 |
|
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
15836 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15837 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15838 |
|
|
lt_prog_compiler_wl_GCJ=''
|
15839 |
|
|
;;
|
15840 |
|
|
esac
|
15841 |
|
|
;;
|
15842 |
|
|
esac
|
15843 |
|
|
;;
|
15844 |
|
|
|
15845 |
|
|
osf3* | osf4* | osf5*)
|
15846 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15847 |
|
|
# All OSF/1 code is PIC.
|
15848 |
|
|
lt_prog_compiler_static_GCJ='-non_shared'
|
15849 |
|
|
;;
|
15850 |
|
|
|
15851 |
|
|
rdos*)
|
15852 |
|
|
lt_prog_compiler_static_GCJ='-non_shared'
|
15853 |
|
|
;;
|
15854 |
|
|
|
15855 |
|
|
solaris*)
|
15856 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15857 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15858 |
|
|
case $cc_basename in
|
15859 |
|
|
f77* | f90* | f95*)
|
15860 |
|
|
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
|
15861 |
|
|
*)
|
15862 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,';;
|
15863 |
|
|
esac
|
15864 |
|
|
;;
|
15865 |
|
|
|
15866 |
|
|
sunos4*)
|
15867 |
|
|
lt_prog_compiler_wl_GCJ='-Qoption ld '
|
15868 |
|
|
lt_prog_compiler_pic_GCJ='-PIC'
|
15869 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15870 |
|
|
;;
|
15871 |
|
|
|
15872 |
|
|
sysv4 | sysv4.2uw2* | sysv4.3*)
|
15873 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15874 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15875 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15876 |
|
|
;;
|
15877 |
|
|
|
15878 |
|
|
sysv4*MP*)
|
15879 |
|
|
if test -d /usr/nec ;then
|
15880 |
|
|
lt_prog_compiler_pic_GCJ='-Kconform_pic'
|
15881 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15882 |
|
|
fi
|
15883 |
|
|
;;
|
15884 |
|
|
|
15885 |
|
|
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
15886 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15887 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15888 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15889 |
|
|
;;
|
15890 |
|
|
|
15891 |
|
|
unicos*)
|
15892 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15893 |
|
|
lt_prog_compiler_can_build_shared_GCJ=no
|
15894 |
|
|
;;
|
15895 |
|
|
|
15896 |
|
|
uts4*)
|
15897 |
|
|
lt_prog_compiler_pic_GCJ='-pic'
|
15898 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15899 |
|
|
;;
|
15900 |
|
|
|
15901 |
|
|
*)
|
15902 |
|
|
lt_prog_compiler_can_build_shared_GCJ=no
|
15903 |
|
|
;;
|
15904 |
|
|
esac
|
15905 |
|
|
fi
|
15906 |
|
|
|
15907 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
|
15908 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
|
15909 |
|
|
|
15910 |
|
|
#
|
15911 |
|
|
# Check to make sure the PIC flag actually works.
|
15912 |
|
|
#
|
15913 |
|
|
if test -n "$lt_prog_compiler_pic_GCJ"; then
|
15914 |
|
|
|
15915 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
|
15916 |
|
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
|
15917 |
|
|
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
|
15918 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
15919 |
|
|
else
|
15920 |
|
|
lt_prog_compiler_pic_works_GCJ=no
|
15921 |
|
|
ac_outfile=conftest.$ac_objext
|
15922 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
15923 |
|
|
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
|
15924 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
15925 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
15926 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
15927 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
15928 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
15929 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
15930 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
15931 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
15932 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
15933 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
15934 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
15935 |
|
|
ac_status=$?
|
15936 |
|
|
cat conftest.err >&5
|
15937 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
15938 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
15939 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
15940 |
|
|
# So say no if there are warnings other than the usual output.
|
15941 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
15942 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
15943 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
15944 |
|
|
lt_prog_compiler_pic_works_GCJ=yes
|
15945 |
|
|
fi
|
15946 |
|
|
fi
|
15947 |
|
|
$rm conftest*
|
15948 |
|
|
|
15949 |
|
|
fi
|
15950 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
|
15951 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
|
15952 |
|
|
|
15953 |
|
|
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
|
15954 |
|
|
case $lt_prog_compiler_pic_GCJ in
|
15955 |
|
|
"" | " "*) ;;
|
15956 |
|
|
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
|
15957 |
|
|
esac
|
15958 |
|
|
else
|
15959 |
|
|
lt_prog_compiler_pic_GCJ=
|
15960 |
|
|
lt_prog_compiler_can_build_shared_GCJ=no
|
15961 |
|
|
fi
|
15962 |
|
|
|
15963 |
|
|
fi
|
15964 |
|
|
case $host_os in
|
15965 |
|
|
# For platforms which do not support PIC, -DPIC is meaningless:
|
15966 |
|
|
*djgpp*)
|
15967 |
|
|
lt_prog_compiler_pic_GCJ=
|
15968 |
|
|
;;
|
15969 |
|
|
*)
|
15970 |
|
|
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
|
15971 |
|
|
;;
|
15972 |
|
|
esac
|
15973 |
|
|
|
15974 |
|
|
#
|
15975 |
|
|
# Check to make sure the static flag actually works.
|
15976 |
|
|
#
|
15977 |
|
|
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
|
15978 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
15979 |
|
|
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
15980 |
|
|
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
|
15981 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
15982 |
|
|
else
|
15983 |
|
|
lt_prog_compiler_static_works_GCJ=no
|
15984 |
|
|
save_LDFLAGS="$LDFLAGS"
|
15985 |
|
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
15986 |
|
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
15987 |
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
15988 |
|
|
# The linker can only warn and ignore the option if not recognized
|
15989 |
|
|
# So say no if there are warnings
|
15990 |
|
|
if test -s conftest.err; then
|
15991 |
|
|
# Append any errors to the config.log.
|
15992 |
|
|
cat conftest.err 1>&5
|
15993 |
|
|
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
15994 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
15995 |
|
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
15996 |
|
|
lt_prog_compiler_static_works_GCJ=yes
|
15997 |
|
|
fi
|
15998 |
|
|
else
|
15999 |
|
|
lt_prog_compiler_static_works_GCJ=yes
|
16000 |
|
|
fi
|
16001 |
|
|
fi
|
16002 |
|
|
$rm conftest*
|
16003 |
|
|
LDFLAGS="$save_LDFLAGS"
|
16004 |
|
|
|
16005 |
|
|
fi
|
16006 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
|
16007 |
|
|
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
|
16008 |
|
|
|
16009 |
|
|
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
|
16010 |
|
|
:
|
16011 |
|
|
else
|
16012 |
|
|
lt_prog_compiler_static_GCJ=
|
16013 |
|
|
fi
|
16014 |
|
|
|
16015 |
|
|
|
16016 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
16017 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
16018 |
|
|
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
|
16019 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
16020 |
|
|
else
|
16021 |
|
|
lt_cv_prog_compiler_c_o_GCJ=no
|
16022 |
|
|
$rm -r conftest 2>/dev/null
|
16023 |
|
|
mkdir conftest
|
16024 |
|
|
cd conftest
|
16025 |
|
|
mkdir out
|
16026 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
16027 |
|
|
|
16028 |
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
16029 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
16030 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
16031 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
16032 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
16033 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
16034 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
16035 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
16036 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
16037 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
16038 |
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
16039 |
|
|
ac_status=$?
|
16040 |
|
|
cat out/conftest.err >&5
|
16041 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
16042 |
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
16043 |
|
|
then
|
16044 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
16045 |
|
|
# So say no if there are warnings
|
16046 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
16047 |
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
16048 |
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
16049 |
|
|
lt_cv_prog_compiler_c_o_GCJ=yes
|
16050 |
|
|
fi
|
16051 |
|
|
fi
|
16052 |
|
|
chmod u+w . 2>&5
|
16053 |
|
|
$rm conftest*
|
16054 |
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
16055 |
|
|
# template instantiation
|
16056 |
|
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
16057 |
|
|
$rm out/* && rmdir out
|
16058 |
|
|
cd ..
|
16059 |
|
|
rmdir conftest
|
16060 |
|
|
$rm conftest*
|
16061 |
|
|
|
16062 |
|
|
fi
|
16063 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
|
16064 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
|
16065 |
|
|
|
16066 |
|
|
|
16067 |
|
|
hard_links="nottested"
|
16068 |
|
|
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
|
16069 |
|
|
# do not overwrite the value of need_locks provided by the user
|
16070 |
|
|
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
16071 |
|
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
16072 |
|
|
hard_links=yes
|
16073 |
|
|
$rm conftest*
|
16074 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
16075 |
|
|
touch conftest.a
|
16076 |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no
|
16077 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
16078 |
|
|
{ echo "$as_me:$LINENO: result: $hard_links" >&5
|
16079 |
|
|
echo "${ECHO_T}$hard_links" >&6; }
|
16080 |
|
|
if test "$hard_links" = no; then
|
16081 |
|
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
16082 |
|
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
16083 |
|
|
need_locks=warn
|
16084 |
|
|
fi
|
16085 |
|
|
else
|
16086 |
|
|
need_locks=no
|
16087 |
|
|
fi
|
16088 |
|
|
|
16089 |
|
|
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
16090 |
|
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
16091 |
|
|
|
16092 |
|
|
runpath_var=
|
16093 |
|
|
allow_undefined_flag_GCJ=
|
16094 |
|
|
enable_shared_with_static_runtimes_GCJ=no
|
16095 |
|
|
archive_cmds_GCJ=
|
16096 |
|
|
archive_expsym_cmds_GCJ=
|
16097 |
|
|
old_archive_From_new_cmds_GCJ=
|
16098 |
|
|
old_archive_from_expsyms_cmds_GCJ=
|
16099 |
|
|
export_dynamic_flag_spec_GCJ=
|
16100 |
|
|
whole_archive_flag_spec_GCJ=
|
16101 |
|
|
thread_safe_flag_spec_GCJ=
|
16102 |
|
|
hardcode_libdir_flag_spec_GCJ=
|
16103 |
|
|
hardcode_libdir_flag_spec_ld_GCJ=
|
16104 |
|
|
hardcode_libdir_separator_GCJ=
|
16105 |
|
|
hardcode_direct_GCJ=no
|
16106 |
|
|
hardcode_minus_L_GCJ=no
|
16107 |
|
|
hardcode_shlibpath_var_GCJ=unsupported
|
16108 |
|
|
link_all_deplibs_GCJ=unknown
|
16109 |
|
|
hardcode_automatic_GCJ=no
|
16110 |
|
|
module_cmds_GCJ=
|
16111 |
|
|
module_expsym_cmds_GCJ=
|
16112 |
|
|
always_export_symbols_GCJ=no
|
16113 |
|
|
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
16114 |
|
|
# include_expsyms should be a list of space-separated symbols to be *always*
|
16115 |
|
|
# included in the symbol list
|
16116 |
|
|
include_expsyms_GCJ=
|
16117 |
|
|
# exclude_expsyms can be an extended regexp of symbols to exclude
|
16118 |
|
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
16119 |
|
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
16120 |
|
|
# as well as any symbol that contains `d'.
|
16121 |
|
|
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
|
16122 |
|
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
16123 |
|
|
# platforms (ab)use it in PIC code, but their linkers get confused if
|
16124 |
|
|
# the symbol is explicitly referenced. Since portable code cannot
|
16125 |
|
|
# rely on this symbol name, it's probably fine to never include it in
|
16126 |
|
|
# preloaded symbol tables.
|
16127 |
|
|
extract_expsyms_cmds=
|
16128 |
|
|
# Just being paranoid about ensuring that cc_basename is set.
|
16129 |
|
|
for cc_temp in $compiler""; do
|
16130 |
|
|
case $cc_temp in
|
16131 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
16132 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
16133 |
|
|
\-*) ;;
|
16134 |
|
|
*) break;;
|
16135 |
|
|
esac
|
16136 |
|
|
done
|
16137 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
16138 |
|
|
|
16139 |
|
|
case $host_os in
|
16140 |
|
|
cygwin* | mingw* | pw32*)
|
16141 |
|
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
16142 |
|
|
# When not using gcc, we currently assume that we are using
|
16143 |
|
|
# Microsoft Visual C++.
|
16144 |
|
|
if test "$GCC" != yes; then
|
16145 |
|
|
with_gnu_ld=no
|
16146 |
|
|
fi
|
16147 |
|
|
;;
|
16148 |
|
|
interix*)
|
16149 |
|
|
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
16150 |
|
|
with_gnu_ld=yes
|
16151 |
|
|
;;
|
16152 |
|
|
openbsd*)
|
16153 |
|
|
with_gnu_ld=no
|
16154 |
|
|
;;
|
16155 |
|
|
esac
|
16156 |
|
|
|
16157 |
|
|
ld_shlibs_GCJ=yes
|
16158 |
|
|
if test "$with_gnu_ld" = yes; then
|
16159 |
|
|
# If archive_cmds runs LD, not CC, wlarc should be empty
|
16160 |
|
|
wlarc='${wl}'
|
16161 |
|
|
|
16162 |
|
|
# Set some defaults for GNU ld with shared library support. These
|
16163 |
|
|
# are reset later if shared libraries are not supported. Putting them
|
16164 |
|
|
# here allows them to be overridden if necessary.
|
16165 |
|
|
runpath_var=LD_RUN_PATH
|
16166 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
|
16167 |
|
|
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
|
16168 |
|
|
# ancient GNU ld didn't support --whole-archive et. al.
|
16169 |
|
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
16170 |
|
|
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
16171 |
|
|
else
|
16172 |
|
|
whole_archive_flag_spec_GCJ=
|
16173 |
|
|
fi
|
16174 |
|
|
supports_anon_versioning=no
|
16175 |
|
|
case `$LD -v 2>/dev/null` in
|
16176 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
16177 |
|
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
16178 |
|
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
16179 |
|
|
*\ 2.11.*) ;; # other 2.11 versions
|
16180 |
|
|
*) supports_anon_versioning=yes ;;
|
16181 |
|
|
esac
|
16182 |
|
|
|
16183 |
|
|
# See if GNU ld supports shared libraries.
|
16184 |
|
|
case $host_os in
|
16185 |
|
|
aix3* | aix4* | aix5*)
|
16186 |
|
|
# On AIX/PPC, the GNU linker is very broken
|
16187 |
|
|
if test "$host_cpu" != ia64; then
|
16188 |
|
|
ld_shlibs_GCJ=no
|
16189 |
|
|
cat <&2
|
16190 |
|
|
|
16191 |
|
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
16192 |
|
|
*** to be unable to reliably create shared libraries on AIX.
|
16193 |
|
|
*** Therefore, libtool is disabling shared libraries support. If you
|
16194 |
|
|
*** really care for shared libraries, you may want to modify your PATH
|
16195 |
|
|
*** so that a non-GNU linker is found, and then restart.
|
16196 |
|
|
|
16197 |
|
|
EOF
|
16198 |
|
|
fi
|
16199 |
|
|
;;
|
16200 |
|
|
|
16201 |
|
|
amigaos*)
|
16202 |
|
|
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)'
|
16203 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16204 |
|
|
hardcode_minus_L_GCJ=yes
|
16205 |
|
|
|
16206 |
|
|
# Samuel A. Falvo II reports
|
16207 |
|
|
# that the semantics of dynamic libraries on AmigaOS, at least up
|
16208 |
|
|
# to version 4, is to share data among multiple programs linked
|
16209 |
|
|
# with the same dynamic library. Since this doesn't match the
|
16210 |
|
|
# behavior of shared libraries on other platforms, we can't use
|
16211 |
|
|
# them.
|
16212 |
|
|
ld_shlibs_GCJ=no
|
16213 |
|
|
;;
|
16214 |
|
|
|
16215 |
|
|
beos*)
|
16216 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
16217 |
|
|
allow_undefined_flag_GCJ=unsupported
|
16218 |
|
|
# Joseph Beckenbach says some releases of gcc
|
16219 |
|
|
# support --undefined. This deserves some investigation. FIXME
|
16220 |
|
|
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
16221 |
|
|
else
|
16222 |
|
|
ld_shlibs_GCJ=no
|
16223 |
|
|
fi
|
16224 |
|
|
;;
|
16225 |
|
|
|
16226 |
|
|
cygwin* | mingw* | pw32*)
|
16227 |
|
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
|
16228 |
|
|
# as there is no search path for DLLs.
|
16229 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16230 |
|
|
allow_undefined_flag_GCJ=unsupported
|
16231 |
|
|
always_export_symbols_GCJ=no
|
16232 |
|
|
enable_shared_with_static_runtimes_GCJ=yes
|
16233 |
|
|
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
16234 |
|
|
|
16235 |
|
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
16236 |
|
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
16237 |
|
|
# If the export-symbols file already is a .def file (1st line
|
16238 |
|
|
# is EXPORTS), use it as is; otherwise, prepend...
|
16239 |
|
|
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
16240 |
|
|
cp $export_symbols $output_objdir/$soname.def;
|
16241 |
|
|
else
|
16242 |
|
|
echo EXPORTS > $output_objdir/$soname.def;
|
16243 |
|
|
cat $export_symbols >> $output_objdir/$soname.def;
|
16244 |
|
|
fi~
|
16245 |
|
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
16246 |
|
|
else
|
16247 |
|
|
ld_shlibs_GCJ=no
|
16248 |
|
|
fi
|
16249 |
|
|
;;
|
16250 |
|
|
|
16251 |
|
|
interix[3-9]*)
|
16252 |
|
|
hardcode_direct_GCJ=no
|
16253 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16254 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
16255 |
|
|
export_dynamic_flag_spec_GCJ='${wl}-E'
|
16256 |
|
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
16257 |
|
|
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
16258 |
|
|
# default) and relocated if they conflict, which is a slow very memory
|
16259 |
|
|
# consuming and fragmenting process. To avoid this, we pick a random,
|
16260 |
|
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
16261 |
|
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
16262 |
|
|
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
16263 |
|
|
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
16264 |
|
|
;;
|
16265 |
|
|
|
16266 |
|
|
gnu* | linux* | k*bsd*-gnu)
|
16267 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
16268 |
|
|
tmp_addflag=
|
16269 |
|
|
case $cc_basename,$host_cpu in
|
16270 |
|
|
pgcc*) # Portland Group C compiler
|
16271 |
|
|
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
16272 |
|
|
tmp_addflag=' $pic_flag'
|
16273 |
|
|
;;
|
16274 |
|
|
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
16275 |
|
|
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
16276 |
|
|
tmp_addflag=' $pic_flag -Mnomain' ;;
|
16277 |
|
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
16278 |
|
|
tmp_addflag=' -i_dynamic' ;;
|
16279 |
|
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
16280 |
|
|
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
16281 |
|
|
ifc* | ifort*) # Intel Fortran compiler
|
16282 |
|
|
tmp_addflag=' -nofor_main' ;;
|
16283 |
|
|
esac
|
16284 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
16285 |
|
|
*Sun\ C*) # Sun C 5.9
|
16286 |
|
|
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
16287 |
|
|
tmp_sharedflag='-G' ;;
|
16288 |
|
|
*Sun\ F*) # Sun Fortran 8.3
|
16289 |
|
|
tmp_sharedflag='-G' ;;
|
16290 |
|
|
*)
|
16291 |
|
|
tmp_sharedflag='-shared' ;;
|
16292 |
|
|
esac
|
16293 |
|
|
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
16294 |
|
|
|
16295 |
|
|
if test $supports_anon_versioning = yes; then
|
16296 |
|
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
|
16297 |
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
16298 |
|
|
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
16299 |
|
|
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
16300 |
|
|
fi
|
16301 |
|
|
else
|
16302 |
|
|
ld_shlibs_GCJ=no
|
16303 |
|
|
fi
|
16304 |
|
|
;;
|
16305 |
|
|
|
16306 |
|
|
netbsd*)
|
16307 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
16308 |
|
|
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
16309 |
|
|
wlarc=
|
16310 |
|
|
else
|
16311 |
|
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
16312 |
|
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
16313 |
|
|
fi
|
16314 |
|
|
;;
|
16315 |
|
|
|
16316 |
|
|
solaris*)
|
16317 |
|
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
16318 |
|
|
ld_shlibs_GCJ=no
|
16319 |
|
|
cat <&2
|
16320 |
|
|
|
16321 |
|
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
16322 |
|
|
*** create shared libraries on Solaris systems. Therefore, libtool
|
16323 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
16324 |
|
|
*** binutils to release 2.9.1 or newer. Another option is to modify
|
16325 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
16326 |
|
|
*** used, and then restart.
|
16327 |
|
|
|
16328 |
|
|
EOF
|
16329 |
|
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
16330 |
|
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
16331 |
|
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
16332 |
|
|
else
|
16333 |
|
|
ld_shlibs_GCJ=no
|
16334 |
|
|
fi
|
16335 |
|
|
;;
|
16336 |
|
|
|
16337 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
16338 |
|
|
case `$LD -v 2>&1` in
|
16339 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
16340 |
|
|
ld_shlibs_GCJ=no
|
16341 |
|
|
cat <<_LT_EOF 1>&2
|
16342 |
|
|
|
16343 |
|
|
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
16344 |
|
|
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
16345 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
16346 |
|
|
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
16347 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
16348 |
|
|
*** used, and then restart.
|
16349 |
|
|
|
16350 |
|
|
_LT_EOF
|
16351 |
|
|
;;
|
16352 |
|
|
*)
|
16353 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
16354 |
|
|
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
16355 |
|
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
16356 |
|
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
16357 |
|
|
else
|
16358 |
|
|
ld_shlibs_GCJ=no
|
16359 |
|
|
fi
|
16360 |
|
|
;;
|
16361 |
|
|
esac
|
16362 |
|
|
;;
|
16363 |
|
|
|
16364 |
|
|
sunos4*)
|
16365 |
|
|
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
16366 |
|
|
wlarc=
|
16367 |
|
|
hardcode_direct_GCJ=yes
|
16368 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16369 |
|
|
;;
|
16370 |
|
|
|
16371 |
|
|
*)
|
16372 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
16373 |
|
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
16374 |
|
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
16375 |
|
|
else
|
16376 |
|
|
ld_shlibs_GCJ=no
|
16377 |
|
|
fi
|
16378 |
|
|
;;
|
16379 |
|
|
esac
|
16380 |
|
|
|
16381 |
|
|
if test "$ld_shlibs_GCJ" = no; then
|
16382 |
|
|
runpath_var=
|
16383 |
|
|
hardcode_libdir_flag_spec_GCJ=
|
16384 |
|
|
export_dynamic_flag_spec_GCJ=
|
16385 |
|
|
whole_archive_flag_spec_GCJ=
|
16386 |
|
|
fi
|
16387 |
|
|
else
|
16388 |
|
|
# PORTME fill in a description of your system's linker (not GNU ld)
|
16389 |
|
|
case $host_os in
|
16390 |
|
|
aix3*)
|
16391 |
|
|
allow_undefined_flag_GCJ=unsupported
|
16392 |
|
|
always_export_symbols_GCJ=yes
|
16393 |
|
|
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'
|
16394 |
|
|
# Note: this linker hardcodes the directories in LIBPATH if there
|
16395 |
|
|
# are no directories specified by -L.
|
16396 |
|
|
hardcode_minus_L_GCJ=yes
|
16397 |
|
|
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
16398 |
|
|
# Neither direct hardcoding nor static linking is supported with a
|
16399 |
|
|
# broken collect2.
|
16400 |
|
|
hardcode_direct_GCJ=unsupported
|
16401 |
|
|
fi
|
16402 |
|
|
;;
|
16403 |
|
|
|
16404 |
|
|
aix4* | aix5*)
|
16405 |
|
|
if test "$host_cpu" = ia64; then
|
16406 |
|
|
# On IA64, the linker does run time linking by default, so we don't
|
16407 |
|
|
# have to do anything special.
|
16408 |
|
|
aix_use_runtimelinking=no
|
16409 |
|
|
exp_sym_flag='-Bexport'
|
16410 |
|
|
no_entry_flag=""
|
16411 |
|
|
else
|
16412 |
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
16413 |
|
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
16414 |
|
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
16415 |
|
|
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'
|
16416 |
|
|
else
|
16417 |
|
|
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'
|
16418 |
|
|
fi
|
16419 |
|
|
aix_use_runtimelinking=no
|
16420 |
|
|
|
16421 |
|
|
# Test if we are trying to use run time linking or normal
|
16422 |
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
16423 |
|
|
# need to do runtime linking.
|
16424 |
|
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
16425 |
|
|
for ld_flag in $LDFLAGS; do
|
16426 |
|
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
16427 |
|
|
aix_use_runtimelinking=yes
|
16428 |
|
|
break
|
16429 |
|
|
fi
|
16430 |
|
|
done
|
16431 |
|
|
;;
|
16432 |
|
|
esac
|
16433 |
|
|
|
16434 |
|
|
exp_sym_flag='-bexport'
|
16435 |
|
|
no_entry_flag='-bnoentry'
|
16436 |
|
|
fi
|
16437 |
|
|
|
16438 |
|
|
# When large executables or shared objects are built, AIX ld can
|
16439 |
|
|
# have problems creating the table of contents. If linking a library
|
16440 |
|
|
# or program results in "error TOC overflow" add -mminimal-toc to
|
16441 |
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
16442 |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
16443 |
|
|
|
16444 |
|
|
archive_cmds_GCJ=''
|
16445 |
|
|
hardcode_direct_GCJ=yes
|
16446 |
|
|
hardcode_libdir_separator_GCJ=':'
|
16447 |
|
|
link_all_deplibs_GCJ=yes
|
16448 |
|
|
|
16449 |
|
|
if test "$GCC" = yes; then
|
16450 |
|
|
case $host_os in aix4.[012]|aix4.[012].*)
|
16451 |
|
|
# We only want to do this on AIX 4.2 and lower, the check
|
16452 |
|
|
# below for broken collect2 doesn't work under 4.3+
|
16453 |
|
|
collect2name=`${CC} -print-prog-name=collect2`
|
16454 |
|
|
if test -f "$collect2name" && \
|
16455 |
|
|
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
16456 |
|
|
then
|
16457 |
|
|
# We have reworked collect2
|
16458 |
|
|
:
|
16459 |
|
|
else
|
16460 |
|
|
# We have old collect2
|
16461 |
|
|
hardcode_direct_GCJ=unsupported
|
16462 |
|
|
# It fails to find uninstalled libraries when the uninstalled
|
16463 |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L
|
16464 |
|
|
# to unsupported forces relinking
|
16465 |
|
|
hardcode_minus_L_GCJ=yes
|
16466 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16467 |
|
|
hardcode_libdir_separator_GCJ=
|
16468 |
|
|
fi
|
16469 |
|
|
;;
|
16470 |
|
|
esac
|
16471 |
|
|
shared_flag='-shared'
|
16472 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
16473 |
|
|
shared_flag="$shared_flag "'${wl}-G'
|
16474 |
|
|
fi
|
16475 |
|
|
else
|
16476 |
|
|
# not using gcc
|
16477 |
|
|
if test "$host_cpu" = ia64; then
|
16478 |
|
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
16479 |
|
|
# chokes on -Wl,-G. The following line is correct:
|
16480 |
|
|
shared_flag='-G'
|
16481 |
|
|
else
|
16482 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
16483 |
|
|
shared_flag='${wl}-G'
|
16484 |
|
|
else
|
16485 |
|
|
shared_flag='${wl}-bM:SRE'
|
16486 |
|
|
fi
|
16487 |
|
|
fi
|
16488 |
|
|
fi
|
16489 |
|
|
|
16490 |
|
|
# It seems that -bexpall does not export symbols beginning with
|
16491 |
|
|
# underscore (_), so it is better to generate a list of symbols to export.
|
16492 |
|
|
always_export_symbols_GCJ=yes
|
16493 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
16494 |
|
|
# Warning - without using the other runtime loading flags (-brtl),
|
16495 |
|
|
# -berok will link without error, but may produce a broken library.
|
16496 |
|
|
allow_undefined_flag_GCJ='-berok'
|
16497 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
16498 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
16499 |
|
|
/* confdefs.h. */
|
16500 |
|
|
_ACEOF
|
16501 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
16502 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
16503 |
|
|
/* end confdefs.h. */
|
16504 |
|
|
|
16505 |
|
|
int
|
16506 |
|
|
main ()
|
16507 |
|
|
{
|
16508 |
|
|
|
16509 |
|
|
;
|
16510 |
|
|
return 0;
|
16511 |
|
|
}
|
16512 |
|
|
_ACEOF
|
16513 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
16514 |
|
|
if { (ac_try="$ac_link"
|
16515 |
|
|
case "(($ac_try" in
|
16516 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
16517 |
|
|
*) ac_try_echo=$ac_try;;
|
16518 |
|
|
esac
|
16519 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
16520 |
|
|
(eval "$ac_link") 2>conftest.er1
|
16521 |
|
|
ac_status=$?
|
16522 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
16523 |
|
|
rm -f conftest.er1
|
16524 |
|
|
cat conftest.err >&5
|
16525 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
16526 |
|
|
(exit $ac_status); } && {
|
16527 |
|
|
test -z "$ac_c_werror_flag" ||
|
16528 |
|
|
test ! -s conftest.err
|
16529 |
|
|
} && test -s conftest$ac_exeext &&
|
16530 |
|
|
$as_test_x conftest$ac_exeext; then
|
16531 |
|
|
|
16532 |
|
|
lt_aix_libpath_sed='
|
16533 |
|
|
/Import File Strings/,/^$/ {
|
16534 |
|
|
/^0/ {
|
16535 |
|
|
s/^0 *\(.*\)$/\1/
|
16536 |
|
|
p
|
16537 |
|
|
}
|
16538 |
|
|
}'
|
16539 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
16540 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
16541 |
|
|
if test -z "$aix_libpath"; then
|
16542 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
16543 |
|
|
fi
|
16544 |
|
|
else
|
16545 |
|
|
echo "$as_me: failed program was:" >&5
|
16546 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
16547 |
|
|
|
16548 |
|
|
|
16549 |
|
|
fi
|
16550 |
|
|
|
16551 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
16552 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
16553 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
16554 |
|
|
|
16555 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
|
16556 |
|
|
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
16557 |
|
|
else
|
16558 |
|
|
if test "$host_cpu" = ia64; then
|
16559 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
|
16560 |
|
|
allow_undefined_flag_GCJ="-z nodefs"
|
16561 |
|
|
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
16562 |
|
|
else
|
16563 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
16564 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
16565 |
|
|
/* confdefs.h. */
|
16566 |
|
|
_ACEOF
|
16567 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
16568 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
16569 |
|
|
/* end confdefs.h. */
|
16570 |
|
|
|
16571 |
|
|
int
|
16572 |
|
|
main ()
|
16573 |
|
|
{
|
16574 |
|
|
|
16575 |
|
|
;
|
16576 |
|
|
return 0;
|
16577 |
|
|
}
|
16578 |
|
|
_ACEOF
|
16579 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
16580 |
|
|
if { (ac_try="$ac_link"
|
16581 |
|
|
case "(($ac_try" in
|
16582 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
16583 |
|
|
*) ac_try_echo=$ac_try;;
|
16584 |
|
|
esac
|
16585 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
16586 |
|
|
(eval "$ac_link") 2>conftest.er1
|
16587 |
|
|
ac_status=$?
|
16588 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
16589 |
|
|
rm -f conftest.er1
|
16590 |
|
|
cat conftest.err >&5
|
16591 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
16592 |
|
|
(exit $ac_status); } && {
|
16593 |
|
|
test -z "$ac_c_werror_flag" ||
|
16594 |
|
|
test ! -s conftest.err
|
16595 |
|
|
} && test -s conftest$ac_exeext &&
|
16596 |
|
|
$as_test_x conftest$ac_exeext; then
|
16597 |
|
|
|
16598 |
|
|
lt_aix_libpath_sed='
|
16599 |
|
|
/Import File Strings/,/^$/ {
|
16600 |
|
|
/^0/ {
|
16601 |
|
|
s/^0 *\(.*\)$/\1/
|
16602 |
|
|
p
|
16603 |
|
|
}
|
16604 |
|
|
}'
|
16605 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
16606 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
16607 |
|
|
if test -z "$aix_libpath"; then
|
16608 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
16609 |
|
|
fi
|
16610 |
|
|
else
|
16611 |
|
|
echo "$as_me: failed program was:" >&5
|
16612 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
16613 |
|
|
|
16614 |
|
|
|
16615 |
|
|
fi
|
16616 |
|
|
|
16617 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
16618 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
16619 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
16620 |
|
|
|
16621 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
|
16622 |
|
|
# Warning - without using the other run time loading flags,
|
16623 |
|
|
# -berok will link without error, but may produce a broken library.
|
16624 |
|
|
no_undefined_flag_GCJ=' ${wl}-bernotok'
|
16625 |
|
|
allow_undefined_flag_GCJ=' ${wl}-berok'
|
16626 |
|
|
# Exported symbols can be pulled into shared objects from archives
|
16627 |
|
|
whole_archive_flag_spec_GCJ='$convenience'
|
16628 |
|
|
archive_cmds_need_lc_GCJ=yes
|
16629 |
|
|
# This is similar to how AIX traditionally builds its shared libraries.
|
16630 |
|
|
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
16631 |
|
|
fi
|
16632 |
|
|
fi
|
16633 |
|
|
;;
|
16634 |
|
|
|
16635 |
|
|
amigaos*)
|
16636 |
|
|
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)'
|
16637 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16638 |
|
|
hardcode_minus_L_GCJ=yes
|
16639 |
|
|
# see comment about different semantics on the GNU ld section
|
16640 |
|
|
ld_shlibs_GCJ=no
|
16641 |
|
|
;;
|
16642 |
|
|
|
16643 |
|
|
bsdi[45]*)
|
16644 |
|
|
export_dynamic_flag_spec_GCJ=-rdynamic
|
16645 |
|
|
;;
|
16646 |
|
|
|
16647 |
|
|
cygwin* | mingw* | pw32*)
|
16648 |
|
|
# When not using gcc, we currently assume that we are using
|
16649 |
|
|
# Microsoft Visual C++.
|
16650 |
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
16651 |
|
|
# no search path for DLLs.
|
16652 |
|
|
hardcode_libdir_flag_spec_GCJ=' '
|
16653 |
|
|
allow_undefined_flag_GCJ=unsupported
|
16654 |
|
|
# Tell ltmain to make .lib files, not .a files.
|
16655 |
|
|
libext=lib
|
16656 |
|
|
# Tell ltmain to make .dll files, not .so files.
|
16657 |
|
|
shrext_cmds=".dll"
|
16658 |
|
|
# FIXME: Setting linknames here is a bad hack.
|
16659 |
|
|
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
16660 |
|
|
# The linker will automatically build a .lib file if we build a DLL.
|
16661 |
|
|
old_archive_From_new_cmds_GCJ='true'
|
16662 |
|
|
# FIXME: Should let the user specify the lib program.
|
16663 |
|
|
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
16664 |
|
|
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
|
16665 |
|
|
enable_shared_with_static_runtimes_GCJ=yes
|
16666 |
|
|
;;
|
16667 |
|
|
|
16668 |
|
|
darwin* | rhapsody*)
|
16669 |
|
|
case $host_os in
|
16670 |
|
|
rhapsody* | darwin1.[012])
|
16671 |
|
|
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
|
16672 |
|
|
;;
|
16673 |
|
|
*) # Darwin 1.3 on
|
16674 |
|
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
16675 |
|
|
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
16676 |
|
|
else
|
16677 |
|
|
case ${MACOSX_DEPLOYMENT_TARGET} in
|
16678 |
|
|
10.[012])
|
16679 |
|
|
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
16680 |
|
|
;;
|
16681 |
|
|
10.*)
|
16682 |
|
|
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
|
16683 |
|
|
;;
|
16684 |
|
|
esac
|
16685 |
|
|
fi
|
16686 |
|
|
;;
|
16687 |
|
|
esac
|
16688 |
|
|
archive_cmds_need_lc_GCJ=no
|
16689 |
|
|
hardcode_direct_GCJ=no
|
16690 |
|
|
hardcode_automatic_GCJ=yes
|
16691 |
|
|
hardcode_shlibpath_var_GCJ=unsupported
|
16692 |
|
|
whole_archive_flag_spec_GCJ=''
|
16693 |
|
|
link_all_deplibs_GCJ=yes
|
16694 |
|
|
if test "$GCC" = yes ; then
|
16695 |
|
|
output_verbose_link_cmd='echo'
|
16696 |
|
|
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
16697 |
|
|
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
16698 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
16699 |
|
|
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
16700 |
|
|
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}'
|
16701 |
|
|
else
|
16702 |
|
|
case $cc_basename in
|
16703 |
|
|
xlc*)
|
16704 |
|
|
output_verbose_link_cmd='echo'
|
16705 |
|
|
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
16706 |
|
|
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
16707 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
16708 |
|
|
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
16709 |
|
|
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}'
|
16710 |
|
|
;;
|
16711 |
|
|
*)
|
16712 |
|
|
ld_shlibs_GCJ=no
|
16713 |
|
|
;;
|
16714 |
|
|
esac
|
16715 |
|
|
fi
|
16716 |
|
|
;;
|
16717 |
|
|
|
16718 |
|
|
dgux*)
|
16719 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16720 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16721 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16722 |
|
|
;;
|
16723 |
|
|
|
16724 |
|
|
freebsd1*)
|
16725 |
|
|
ld_shlibs_GCJ=no
|
16726 |
|
|
;;
|
16727 |
|
|
|
16728 |
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
16729 |
|
|
# support. Future versions do this automatically, but an explicit c++rt0.o
|
16730 |
|
|
# does not break anything, and helps significantly (at the cost of a little
|
16731 |
|
|
# extra space).
|
16732 |
|
|
freebsd2.2*)
|
16733 |
|
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
16734 |
|
|
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
16735 |
|
|
hardcode_direct_GCJ=yes
|
16736 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16737 |
|
|
;;
|
16738 |
|
|
|
16739 |
|
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
16740 |
|
|
freebsd2*)
|
16741 |
|
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
16742 |
|
|
hardcode_direct_GCJ=yes
|
16743 |
|
|
hardcode_minus_L_GCJ=yes
|
16744 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16745 |
|
|
;;
|
16746 |
|
|
|
16747 |
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
16748 |
|
|
freebsd* | dragonfly*)
|
16749 |
|
|
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
16750 |
|
|
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
16751 |
|
|
hardcode_direct_GCJ=yes
|
16752 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16753 |
|
|
;;
|
16754 |
|
|
|
16755 |
|
|
hpux9*)
|
16756 |
|
|
if test "$GCC" = yes; then
|
16757 |
|
|
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'
|
16758 |
|
|
else
|
16759 |
|
|
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'
|
16760 |
|
|
fi
|
16761 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
16762 |
|
|
hardcode_libdir_separator_GCJ=:
|
16763 |
|
|
hardcode_direct_GCJ=yes
|
16764 |
|
|
|
16765 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
16766 |
|
|
# but as the default location of the library.
|
16767 |
|
|
hardcode_minus_L_GCJ=yes
|
16768 |
|
|
export_dynamic_flag_spec_GCJ='${wl}-E'
|
16769 |
|
|
;;
|
16770 |
|
|
|
16771 |
|
|
hpux10*)
|
16772 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
16773 |
|
|
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
16774 |
|
|
else
|
16775 |
|
|
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
16776 |
|
|
fi
|
16777 |
|
|
if test "$with_gnu_ld" = no; then
|
16778 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
16779 |
|
|
hardcode_libdir_separator_GCJ=:
|
16780 |
|
|
|
16781 |
|
|
hardcode_direct_GCJ=yes
|
16782 |
|
|
export_dynamic_flag_spec_GCJ='${wl}-E'
|
16783 |
|
|
|
16784 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
16785 |
|
|
# but as the default location of the library.
|
16786 |
|
|
hardcode_minus_L_GCJ=yes
|
16787 |
|
|
fi
|
16788 |
|
|
;;
|
16789 |
|
|
|
16790 |
|
|
hpux11*)
|
16791 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
16792 |
|
|
case $host_cpu in
|
16793 |
|
|
hppa*64*)
|
16794 |
|
|
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
16795 |
|
|
;;
|
16796 |
|
|
ia64*)
|
16797 |
|
|
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
16798 |
|
|
;;
|
16799 |
|
|
*)
|
16800 |
|
|
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
16801 |
|
|
;;
|
16802 |
|
|
esac
|
16803 |
|
|
else
|
16804 |
|
|
case $host_cpu in
|
16805 |
|
|
hppa*64*)
|
16806 |
|
|
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
16807 |
|
|
;;
|
16808 |
|
|
ia64*)
|
16809 |
|
|
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
16810 |
|
|
;;
|
16811 |
|
|
*)
|
16812 |
|
|
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
16813 |
|
|
;;
|
16814 |
|
|
esac
|
16815 |
|
|
fi
|
16816 |
|
|
if test "$with_gnu_ld" = no; then
|
16817 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
16818 |
|
|
hardcode_libdir_separator_GCJ=:
|
16819 |
|
|
|
16820 |
|
|
case $host_cpu in
|
16821 |
|
|
hppa*64*|ia64*)
|
16822 |
|
|
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
|
16823 |
|
|
hardcode_direct_GCJ=no
|
16824 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16825 |
|
|
;;
|
16826 |
|
|
*)
|
16827 |
|
|
hardcode_direct_GCJ=yes
|
16828 |
|
|
export_dynamic_flag_spec_GCJ='${wl}-E'
|
16829 |
|
|
|
16830 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
16831 |
|
|
# but as the default location of the library.
|
16832 |
|
|
hardcode_minus_L_GCJ=yes
|
16833 |
|
|
;;
|
16834 |
|
|
esac
|
16835 |
|
|
fi
|
16836 |
|
|
;;
|
16837 |
|
|
|
16838 |
|
|
irix5* | irix6* | nonstopux*)
|
16839 |
|
|
if test "$GCC" = yes; then
|
16840 |
|
|
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'
|
16841 |
|
|
else
|
16842 |
|
|
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'
|
16843 |
|
|
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
|
16844 |
|
|
fi
|
16845 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
16846 |
|
|
hardcode_libdir_separator_GCJ=:
|
16847 |
|
|
link_all_deplibs_GCJ=yes
|
16848 |
|
|
;;
|
16849 |
|
|
|
16850 |
|
|
netbsd*)
|
16851 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
16852 |
|
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
16853 |
|
|
else
|
16854 |
|
|
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
16855 |
|
|
fi
|
16856 |
|
|
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
16857 |
|
|
hardcode_direct_GCJ=yes
|
16858 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16859 |
|
|
;;
|
16860 |
|
|
|
16861 |
|
|
newsos6)
|
16862 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16863 |
|
|
hardcode_direct_GCJ=yes
|
16864 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
16865 |
|
|
hardcode_libdir_separator_GCJ=:
|
16866 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16867 |
|
|
;;
|
16868 |
|
|
|
16869 |
|
|
openbsd*)
|
16870 |
|
|
if test -f /usr/libexec/ld.so; then
|
16871 |
|
|
hardcode_direct_GCJ=yes
|
16872 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16873 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
16874 |
|
|
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
16875 |
|
|
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
16876 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
16877 |
|
|
export_dynamic_flag_spec_GCJ='${wl}-E'
|
16878 |
|
|
else
|
16879 |
|
|
case $host_os in
|
16880 |
|
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
16881 |
|
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
16882 |
|
|
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
16883 |
|
|
;;
|
16884 |
|
|
*)
|
16885 |
|
|
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
16886 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
16887 |
|
|
;;
|
16888 |
|
|
esac
|
16889 |
|
|
fi
|
16890 |
|
|
else
|
16891 |
|
|
ld_shlibs_GCJ=no
|
16892 |
|
|
fi
|
16893 |
|
|
;;
|
16894 |
|
|
|
16895 |
|
|
os2*)
|
16896 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16897 |
|
|
hardcode_minus_L_GCJ=yes
|
16898 |
|
|
allow_undefined_flag_GCJ=unsupported
|
16899 |
|
|
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'
|
16900 |
|
|
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
16901 |
|
|
;;
|
16902 |
|
|
|
16903 |
|
|
osf3*)
|
16904 |
|
|
if test "$GCC" = yes; then
|
16905 |
|
|
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
|
16906 |
|
|
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'
|
16907 |
|
|
else
|
16908 |
|
|
allow_undefined_flag_GCJ=' -expect_unresolved \*'
|
16909 |
|
|
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'
|
16910 |
|
|
fi
|
16911 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
16912 |
|
|
hardcode_libdir_separator_GCJ=:
|
16913 |
|
|
;;
|
16914 |
|
|
|
16915 |
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
16916 |
|
|
if test "$GCC" = yes; then
|
16917 |
|
|
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
|
16918 |
|
|
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'
|
16919 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
16920 |
|
|
else
|
16921 |
|
|
allow_undefined_flag_GCJ=' -expect_unresolved \*'
|
16922 |
|
|
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'
|
16923 |
|
|
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~
|
16924 |
|
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
16925 |
|
|
|
16926 |
|
|
# Both c and cxx compiler support -rpath directly
|
16927 |
|
|
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
|
16928 |
|
|
fi
|
16929 |
|
|
hardcode_libdir_separator_GCJ=:
|
16930 |
|
|
;;
|
16931 |
|
|
|
16932 |
|
|
solaris*)
|
16933 |
|
|
no_undefined_flag_GCJ=' -z text'
|
16934 |
|
|
if test "$GCC" = yes; then
|
16935 |
|
|
wlarc='${wl}'
|
16936 |
|
|
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
16937 |
|
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
16938 |
|
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
16939 |
|
|
else
|
16940 |
|
|
wlarc=''
|
16941 |
|
|
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16942 |
|
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
16943 |
|
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
16944 |
|
|
fi
|
16945 |
|
|
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
16946 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16947 |
|
|
case $host_os in
|
16948 |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
16949 |
|
|
*)
|
16950 |
|
|
# The compiler driver will combine and reorder linker options,
|
16951 |
|
|
# but understands `-z linker_flag'. GCC discards it without `$wl',
|
16952 |
|
|
# but is careful enough not to reorder.
|
16953 |
|
|
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
16954 |
|
|
if test "$GCC" = yes; then
|
16955 |
|
|
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
16956 |
|
|
else
|
16957 |
|
|
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
|
16958 |
|
|
fi
|
16959 |
|
|
;;
|
16960 |
|
|
esac
|
16961 |
|
|
link_all_deplibs_GCJ=yes
|
16962 |
|
|
;;
|
16963 |
|
|
|
16964 |
|
|
sunos4*)
|
16965 |
|
|
if test "x$host_vendor" = xsequent; then
|
16966 |
|
|
# Use $CC to link under sequent, because it throws in some extra .o
|
16967 |
|
|
# files that make .init and .fini sections work.
|
16968 |
|
|
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
16969 |
|
|
else
|
16970 |
|
|
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
16971 |
|
|
fi
|
16972 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16973 |
|
|
hardcode_direct_GCJ=yes
|
16974 |
|
|
hardcode_minus_L_GCJ=yes
|
16975 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16976 |
|
|
;;
|
16977 |
|
|
|
16978 |
|
|
sysv4)
|
16979 |
|
|
case $host_vendor in
|
16980 |
|
|
sni)
|
16981 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16982 |
|
|
hardcode_direct_GCJ=yes # is this really true???
|
16983 |
|
|
;;
|
16984 |
|
|
siemens)
|
16985 |
|
|
## LD is ld it makes a PLAMLIB
|
16986 |
|
|
## CC just makes a GrossModule.
|
16987 |
|
|
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
16988 |
|
|
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
|
16989 |
|
|
hardcode_direct_GCJ=no
|
16990 |
|
|
;;
|
16991 |
|
|
motorola)
|
16992 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16993 |
|
|
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
|
16994 |
|
|
;;
|
16995 |
|
|
esac
|
16996 |
|
|
runpath_var='LD_RUN_PATH'
|
16997 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16998 |
|
|
;;
|
16999 |
|
|
|
17000 |
|
|
sysv4.3*)
|
17001 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
17002 |
|
|
hardcode_shlibpath_var_GCJ=no
|
17003 |
|
|
export_dynamic_flag_spec_GCJ='-Bexport'
|
17004 |
|
|
;;
|
17005 |
|
|
|
17006 |
|
|
sysv4*MP*)
|
17007 |
|
|
if test -d /usr/nec; then
|
17008 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
17009 |
|
|
hardcode_shlibpath_var_GCJ=no
|
17010 |
|
|
runpath_var=LD_RUN_PATH
|
17011 |
|
|
hardcode_runpath_var=yes
|
17012 |
|
|
ld_shlibs_GCJ=yes
|
17013 |
|
|
fi
|
17014 |
|
|
;;
|
17015 |
|
|
|
17016 |
|
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
17017 |
|
|
no_undefined_flag_GCJ='${wl}-z,text'
|
17018 |
|
|
archive_cmds_need_lc_GCJ=no
|
17019 |
|
|
hardcode_shlibpath_var_GCJ=no
|
17020 |
|
|
runpath_var='LD_RUN_PATH'
|
17021 |
|
|
|
17022 |
|
|
if test "$GCC" = yes; then
|
17023 |
|
|
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17024 |
|
|
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17025 |
|
|
else
|
17026 |
|
|
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17027 |
|
|
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17028 |
|
|
fi
|
17029 |
|
|
;;
|
17030 |
|
|
|
17031 |
|
|
sysv5* | sco3.2v5* | sco5v6*)
|
17032 |
|
|
# Note: We can NOT use -z defs as we might desire, because we do not
|
17033 |
|
|
# link with -lc, and that would cause any symbols used from libc to
|
17034 |
|
|
# always be unresolved, which means just about no library would
|
17035 |
|
|
# ever link correctly. If we're not using GNU ld we use -z text
|
17036 |
|
|
# though, which does catch some bad symbols but isn't as heavy-handed
|
17037 |
|
|
# as -z defs.
|
17038 |
|
|
no_undefined_flag_GCJ='${wl}-z,text'
|
17039 |
|
|
allow_undefined_flag_GCJ='${wl}-z,nodefs'
|
17040 |
|
|
archive_cmds_need_lc_GCJ=no
|
17041 |
|
|
hardcode_shlibpath_var_GCJ=no
|
17042 |
|
|
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
17043 |
|
|
hardcode_libdir_separator_GCJ=':'
|
17044 |
|
|
link_all_deplibs_GCJ=yes
|
17045 |
|
|
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
|
17046 |
|
|
runpath_var='LD_RUN_PATH'
|
17047 |
|
|
|
17048 |
|
|
if test "$GCC" = yes; then
|
17049 |
|
|
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17050 |
|
|
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17051 |
|
|
else
|
17052 |
|
|
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17053 |
|
|
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17054 |
|
|
fi
|
17055 |
|
|
;;
|
17056 |
|
|
|
17057 |
|
|
uts4*)
|
17058 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
17059 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
17060 |
|
|
hardcode_shlibpath_var_GCJ=no
|
17061 |
|
|
;;
|
17062 |
|
|
|
17063 |
|
|
*)
|
17064 |
|
|
ld_shlibs_GCJ=no
|
17065 |
|
|
;;
|
17066 |
|
|
esac
|
17067 |
|
|
fi
|
17068 |
|
|
|
17069 |
|
|
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
|
17070 |
|
|
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
|
17071 |
|
|
test "$ld_shlibs_GCJ" = no && can_build_shared=no
|
17072 |
|
|
|
17073 |
|
|
#
|
17074 |
|
|
# Do we need to explicitly link libc?
|
17075 |
|
|
#
|
17076 |
|
|
case "x$archive_cmds_need_lc_GCJ" in
|
17077 |
|
|
x|xyes)
|
17078 |
|
|
# Assume -lc should be added
|
17079 |
|
|
archive_cmds_need_lc_GCJ=yes
|
17080 |
|
|
|
17081 |
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
17082 |
|
|
case $archive_cmds_GCJ in
|
17083 |
|
|
*'~'*)
|
17084 |
|
|
# FIXME: we may have to deal with multi-command sequences.
|
17085 |
|
|
;;
|
17086 |
|
|
'$CC '*)
|
17087 |
|
|
# Test whether the compiler implicitly links with -lc since on some
|
17088 |
|
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
17089 |
|
|
# to ld, don't add -lc before -lgcc.
|
17090 |
|
|
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
17091 |
|
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
17092 |
|
|
$rm conftest*
|
17093 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
17094 |
|
|
|
17095 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
17096 |
|
|
(eval $ac_compile) 2>&5
|
17097 |
|
|
ac_status=$?
|
17098 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
17099 |
|
|
(exit $ac_status); } 2>conftest.err; then
|
17100 |
|
|
soname=conftest
|
17101 |
|
|
lib=conftest
|
17102 |
|
|
libobjs=conftest.$ac_objext
|
17103 |
|
|
deplibs=
|
17104 |
|
|
wl=$lt_prog_compiler_wl_GCJ
|
17105 |
|
|
pic_flag=$lt_prog_compiler_pic_GCJ
|
17106 |
|
|
compiler_flags=-v
|
17107 |
|
|
linker_flags=-v
|
17108 |
|
|
verstring=
|
17109 |
|
|
output_objdir=.
|
17110 |
|
|
libname=conftest
|
17111 |
|
|
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
|
17112 |
|
|
allow_undefined_flag_GCJ=
|
17113 |
|
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
17114 |
|
|
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
17115 |
|
|
ac_status=$?
|
17116 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
17117 |
|
|
(exit $ac_status); }
|
17118 |
|
|
then
|
17119 |
|
|
archive_cmds_need_lc_GCJ=no
|
17120 |
|
|
else
|
17121 |
|
|
archive_cmds_need_lc_GCJ=yes
|
17122 |
|
|
fi
|
17123 |
|
|
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
|
17124 |
|
|
else
|
17125 |
|
|
cat conftest.err 1>&5
|
17126 |
|
|
fi
|
17127 |
|
|
$rm conftest*
|
17128 |
|
|
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
|
17129 |
|
|
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
|
17130 |
|
|
;;
|
17131 |
|
|
esac
|
17132 |
|
|
fi
|
17133 |
|
|
;;
|
17134 |
|
|
esac
|
17135 |
|
|
|
17136 |
|
|
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
17137 |
|
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
17138 |
|
|
library_names_spec=
|
17139 |
|
|
libname_spec='lib$name'
|
17140 |
|
|
soname_spec=
|
17141 |
|
|
shrext_cmds=".so"
|
17142 |
|
|
postinstall_cmds=
|
17143 |
|
|
postuninstall_cmds=
|
17144 |
|
|
finish_cmds=
|
17145 |
|
|
finish_eval=
|
17146 |
|
|
shlibpath_var=
|
17147 |
|
|
shlibpath_overrides_runpath=unknown
|
17148 |
|
|
version_type=none
|
17149 |
|
|
dynamic_linker="$host_os ld.so"
|
17150 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
17151 |
|
|
|
17152 |
|
|
need_lib_prefix=unknown
|
17153 |
|
|
hardcode_into_libs=no
|
17154 |
|
|
|
17155 |
|
|
# when you set need_version to no, make sure it does not cause -set_version
|
17156 |
|
|
# flags to be left without arguments
|
17157 |
|
|
need_version=unknown
|
17158 |
|
|
|
17159 |
|
|
case $host_os in
|
17160 |
|
|
aix3*)
|
17161 |
|
|
version_type=linux
|
17162 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
17163 |
|
|
shlibpath_var=LIBPATH
|
17164 |
|
|
|
17165 |
|
|
# AIX 3 has no versioning support, so we append a major version to the name.
|
17166 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17167 |
|
|
;;
|
17168 |
|
|
|
17169 |
|
|
aix4* | aix5*)
|
17170 |
|
|
version_type=linux
|
17171 |
|
|
need_lib_prefix=no
|
17172 |
|
|
need_version=no
|
17173 |
|
|
hardcode_into_libs=yes
|
17174 |
|
|
if test "$host_cpu" = ia64; then
|
17175 |
|
|
# AIX 5 supports IA64
|
17176 |
|
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
17177 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17178 |
|
|
else
|
17179 |
|
|
# With GCC up to 2.95.x, collect2 would create an import file
|
17180 |
|
|
# for dependence libraries. The import file would start with
|
17181 |
|
|
# the line `#! .'. This would cause the generated library to
|
17182 |
|
|
# depend on `.', always an invalid library. This was fixed in
|
17183 |
|
|
# development snapshots of GCC prior to 3.0.
|
17184 |
|
|
case $host_os in
|
17185 |
|
|
aix4 | aix4.[01] | aix4.[01].*)
|
17186 |
|
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
17187 |
|
|
echo ' yes '
|
17188 |
|
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
17189 |
|
|
:
|
17190 |
|
|
else
|
17191 |
|
|
can_build_shared=no
|
17192 |
|
|
fi
|
17193 |
|
|
;;
|
17194 |
|
|
esac
|
17195 |
|
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
17196 |
|
|
# soname into executable. Probably we can add versioning support to
|
17197 |
|
|
# collect2, so additional links can be useful in future.
|
17198 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
17199 |
|
|
# If using run time linking (on AIX 4.2 or later) use lib.so
|
17200 |
|
|
# instead of lib.a to let people know that these are not
|
17201 |
|
|
# typical AIX shared libraries.
|
17202 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17203 |
|
|
else
|
17204 |
|
|
# We preserve .a as extension for shared libraries through AIX4.2
|
17205 |
|
|
# and later when we are not doing run time linking.
|
17206 |
|
|
library_names_spec='${libname}${release}.a $libname.a'
|
17207 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17208 |
|
|
fi
|
17209 |
|
|
shlibpath_var=LIBPATH
|
17210 |
|
|
fi
|
17211 |
|
|
;;
|
17212 |
|
|
|
17213 |
|
|
amigaos*)
|
17214 |
|
|
library_names_spec='$libname.ixlibrary $libname.a'
|
17215 |
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
17216 |
|
|
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'
|
17217 |
|
|
;;
|
17218 |
|
|
|
17219 |
|
|
beos*)
|
17220 |
|
|
library_names_spec='${libname}${shared_ext}'
|
17221 |
|
|
dynamic_linker="$host_os ld.so"
|
17222 |
|
|
shlibpath_var=LIBRARY_PATH
|
17223 |
|
|
;;
|
17224 |
|
|
|
17225 |
|
|
bsdi[45]*)
|
17226 |
|
|
version_type=linux
|
17227 |
|
|
need_version=no
|
17228 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17229 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17230 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
17231 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17232 |
|
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
17233 |
|
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
17234 |
|
|
# the default ld.so.conf also contains /usr/contrib/lib and
|
17235 |
|
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
17236 |
|
|
# libtool to hard-code these into programs
|
17237 |
|
|
;;
|
17238 |
|
|
|
17239 |
|
|
cygwin* | mingw* | pw32*)
|
17240 |
|
|
version_type=windows
|
17241 |
|
|
shrext_cmds=".dll"
|
17242 |
|
|
need_version=no
|
17243 |
|
|
need_lib_prefix=no
|
17244 |
|
|
|
17245 |
|
|
case $GCC,$host_os in
|
17246 |
|
|
yes,cygwin* | yes,mingw* | yes,pw32*)
|
17247 |
|
|
library_names_spec='$libname.dll.a'
|
17248 |
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
17249 |
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
17250 |
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
17251 |
|
|
dldir=$destdir/`dirname \$dlpath`~
|
17252 |
|
|
test -d \$dldir || mkdir -p \$dldir~
|
17253 |
|
|
$install_prog $dir/$dlname \$dldir/$dlname~
|
17254 |
|
|
chmod a+x \$dldir/$dlname'
|
17255 |
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
17256 |
|
|
dlpath=$dir/\$dldll~
|
17257 |
|
|
$rm \$dlpath'
|
17258 |
|
|
shlibpath_overrides_runpath=yes
|
17259 |
|
|
|
17260 |
|
|
case $host_os in
|
17261 |
|
|
cygwin*)
|
17262 |
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
17263 |
|
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
17264 |
|
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
17265 |
|
|
;;
|
17266 |
|
|
mingw*)
|
17267 |
|
|
# MinGW DLLs use traditional 'lib' prefix
|
17268 |
|
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
17269 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
17270 |
|
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
17271 |
|
|
# It is most probably a Windows format PATH printed by
|
17272 |
|
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
17273 |
|
|
# path with ; separators, and with drive letters. We can handle the
|
17274 |
|
|
# drive letters (cygwin fileutils understands them), so leave them,
|
17275 |
|
|
# especially as we might pass files found there to a mingw objdump,
|
17276 |
|
|
# which wouldn't understand a cygwinified path. Ahh.
|
17277 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
17278 |
|
|
else
|
17279 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
17280 |
|
|
fi
|
17281 |
|
|
;;
|
17282 |
|
|
pw32*)
|
17283 |
|
|
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
17284 |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
17285 |
|
|
;;
|
17286 |
|
|
esac
|
17287 |
|
|
;;
|
17288 |
|
|
|
17289 |
|
|
*)
|
17290 |
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
17291 |
|
|
;;
|
17292 |
|
|
esac
|
17293 |
|
|
dynamic_linker='Win32 ld.exe'
|
17294 |
|
|
# FIXME: first we should search . and the directory the executable is in
|
17295 |
|
|
shlibpath_var=PATH
|
17296 |
|
|
;;
|
17297 |
|
|
|
17298 |
|
|
darwin* | rhapsody*)
|
17299 |
|
|
dynamic_linker="$host_os dyld"
|
17300 |
|
|
version_type=darwin
|
17301 |
|
|
need_lib_prefix=no
|
17302 |
|
|
need_version=no
|
17303 |
|
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
17304 |
|
|
soname_spec='${libname}${release}${major}$shared_ext'
|
17305 |
|
|
shlibpath_overrides_runpath=yes
|
17306 |
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
17307 |
|
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
17308 |
|
|
|
17309 |
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
17310 |
|
|
;;
|
17311 |
|
|
|
17312 |
|
|
dgux*)
|
17313 |
|
|
version_type=linux
|
17314 |
|
|
need_lib_prefix=no
|
17315 |
|
|
need_version=no
|
17316 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
17317 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17318 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17319 |
|
|
;;
|
17320 |
|
|
|
17321 |
|
|
freebsd1*)
|
17322 |
|
|
dynamic_linker=no
|
17323 |
|
|
;;
|
17324 |
|
|
|
17325 |
|
|
freebsd* | dragonfly*)
|
17326 |
|
|
# DragonFly does not have aout. When/if they implement a new
|
17327 |
|
|
# versioning mechanism, adjust this.
|
17328 |
|
|
if test -x /usr/bin/objformat; then
|
17329 |
|
|
objformat=`/usr/bin/objformat`
|
17330 |
|
|
else
|
17331 |
|
|
case $host_os in
|
17332 |
|
|
freebsd[123]*) objformat=aout ;;
|
17333 |
|
|
*) objformat=elf ;;
|
17334 |
|
|
esac
|
17335 |
|
|
fi
|
17336 |
|
|
version_type=freebsd-$objformat
|
17337 |
|
|
case $version_type in
|
17338 |
|
|
freebsd-elf*)
|
17339 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
17340 |
|
|
need_version=no
|
17341 |
|
|
need_lib_prefix=no
|
17342 |
|
|
;;
|
17343 |
|
|
freebsd-*)
|
17344 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
17345 |
|
|
need_version=yes
|
17346 |
|
|
;;
|
17347 |
|
|
esac
|
17348 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17349 |
|
|
case $host_os in
|
17350 |
|
|
freebsd2*)
|
17351 |
|
|
shlibpath_overrides_runpath=yes
|
17352 |
|
|
;;
|
17353 |
|
|
freebsd3.[01]* | freebsdelf3.[01]*)
|
17354 |
|
|
shlibpath_overrides_runpath=yes
|
17355 |
|
|
hardcode_into_libs=yes
|
17356 |
|
|
;;
|
17357 |
|
|
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
17358 |
|
|
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
17359 |
|
|
shlibpath_overrides_runpath=no
|
17360 |
|
|
hardcode_into_libs=yes
|
17361 |
|
|
;;
|
17362 |
|
|
*) # from 4.6 on, and DragonFly
|
17363 |
|
|
shlibpath_overrides_runpath=yes
|
17364 |
|
|
hardcode_into_libs=yes
|
17365 |
|
|
;;
|
17366 |
|
|
esac
|
17367 |
|
|
;;
|
17368 |
|
|
|
17369 |
|
|
gnu*)
|
17370 |
|
|
version_type=linux
|
17371 |
|
|
need_lib_prefix=no
|
17372 |
|
|
need_version=no
|
17373 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
17374 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17375 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17376 |
|
|
hardcode_into_libs=yes
|
17377 |
|
|
;;
|
17378 |
|
|
|
17379 |
|
|
hpux9* | hpux10* | hpux11*)
|
17380 |
|
|
# Give a soname corresponding to the major version so that dld.sl refuses to
|
17381 |
|
|
# link against other versions.
|
17382 |
|
|
version_type=sunos
|
17383 |
|
|
need_lib_prefix=no
|
17384 |
|
|
need_version=no
|
17385 |
|
|
case $host_cpu in
|
17386 |
|
|
ia64*)
|
17387 |
|
|
shrext_cmds='.so'
|
17388 |
|
|
hardcode_into_libs=yes
|
17389 |
|
|
dynamic_linker="$host_os dld.so"
|
17390 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17391 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
17392 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17393 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17394 |
|
|
if test "X$HPUX_IA64_MODE" = X32; then
|
17395 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
17396 |
|
|
else
|
17397 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
17398 |
|
|
fi
|
17399 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
17400 |
|
|
;;
|
17401 |
|
|
hppa*64*)
|
17402 |
|
|
shrext_cmds='.sl'
|
17403 |
|
|
hardcode_into_libs=yes
|
17404 |
|
|
dynamic_linker="$host_os dld.sl"
|
17405 |
|
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
17406 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
17407 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17408 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17409 |
|
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
17410 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
17411 |
|
|
;;
|
17412 |
|
|
*)
|
17413 |
|
|
shrext_cmds='.sl'
|
17414 |
|
|
dynamic_linker="$host_os dld.sl"
|
17415 |
|
|
shlibpath_var=SHLIB_PATH
|
17416 |
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
17417 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17418 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17419 |
|
|
;;
|
17420 |
|
|
esac
|
17421 |
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
17422 |
|
|
postinstall_cmds='chmod 555 $lib'
|
17423 |
|
|
;;
|
17424 |
|
|
|
17425 |
|
|
interix[3-9]*)
|
17426 |
|
|
version_type=linux
|
17427 |
|
|
need_lib_prefix=no
|
17428 |
|
|
need_version=no
|
17429 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
17430 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17431 |
|
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
17432 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17433 |
|
|
shlibpath_overrides_runpath=no
|
17434 |
|
|
hardcode_into_libs=yes
|
17435 |
|
|
;;
|
17436 |
|
|
|
17437 |
|
|
irix5* | irix6* | nonstopux*)
|
17438 |
|
|
case $host_os in
|
17439 |
|
|
nonstopux*) version_type=nonstopux ;;
|
17440 |
|
|
*)
|
17441 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
17442 |
|
|
version_type=linux
|
17443 |
|
|
else
|
17444 |
|
|
version_type=irix
|
17445 |
|
|
fi ;;
|
17446 |
|
|
esac
|
17447 |
|
|
need_lib_prefix=no
|
17448 |
|
|
need_version=no
|
17449 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17450 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
17451 |
|
|
case $host_os in
|
17452 |
|
|
irix5* | nonstopux*)
|
17453 |
|
|
libsuff= shlibsuff=
|
17454 |
|
|
;;
|
17455 |
|
|
*)
|
17456 |
|
|
case $LD in # libtool.m4 will add one of these switches to LD
|
17457 |
|
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
17458 |
|
|
libsuff= shlibsuff= libmagic=32-bit;;
|
17459 |
|
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
17460 |
|
|
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
17461 |
|
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
17462 |
|
|
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
17463 |
|
|
*) libsuff= shlibsuff= libmagic=never-match;;
|
17464 |
|
|
esac
|
17465 |
|
|
;;
|
17466 |
|
|
esac
|
17467 |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
17468 |
|
|
shlibpath_overrides_runpath=no
|
17469 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
17470 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
17471 |
|
|
hardcode_into_libs=yes
|
17472 |
|
|
;;
|
17473 |
|
|
|
17474 |
|
|
# No shared lib support for Linux oldld, aout, or coff.
|
17475 |
|
|
linux*oldld* | linux*aout* | linux*coff*)
|
17476 |
|
|
dynamic_linker=no
|
17477 |
|
|
;;
|
17478 |
|
|
|
17479 |
|
|
# This must be Linux ELF.
|
17480 |
|
|
linux* | k*bsd*-gnu)
|
17481 |
|
|
version_type=linux
|
17482 |
|
|
need_lib_prefix=no
|
17483 |
|
|
need_version=no
|
17484 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17485 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17486 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
17487 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17488 |
|
|
shlibpath_overrides_runpath=no
|
17489 |
|
|
# This implies no fast_install, which is unacceptable.
|
17490 |
|
|
# Some rework will be needed to allow for fast_install
|
17491 |
|
|
# before this can be enabled.
|
17492 |
|
|
hardcode_into_libs=yes
|
17493 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
17494 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
17495 |
|
|
|
17496 |
|
|
# Append ld.so.conf contents to the search path
|
17497 |
|
|
if test -f /etc/ld.so.conf; then
|
17498 |
|
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
17499 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
17500 |
|
|
fi
|
17501 |
|
|
|
17502 |
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
17503 |
|
|
# powerpc, because MkLinux only supported shared libraries with the
|
17504 |
|
|
# GNU dynamic linker. Since this was broken with cross compilers,
|
17505 |
|
|
# most powerpc-linux boxes support dynamic linking these days and
|
17506 |
|
|
# people can always --disable-shared, the test was removed, and we
|
17507 |
|
|
# assume the GNU/Linux dynamic linker is in use.
|
17508 |
|
|
dynamic_linker='GNU/Linux ld.so'
|
17509 |
|
|
;;
|
17510 |
|
|
|
17511 |
|
|
netbsd*)
|
17512 |
|
|
version_type=sunos
|
17513 |
|
|
need_lib_prefix=no
|
17514 |
|
|
need_version=no
|
17515 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
17516 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
17517 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
17518 |
|
|
dynamic_linker='NetBSD (a.out) ld.so'
|
17519 |
|
|
else
|
17520 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
17521 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17522 |
|
|
dynamic_linker='NetBSD ld.elf_so'
|
17523 |
|
|
fi
|
17524 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17525 |
|
|
shlibpath_overrides_runpath=yes
|
17526 |
|
|
hardcode_into_libs=yes
|
17527 |
|
|
;;
|
17528 |
|
|
|
17529 |
|
|
newsos6)
|
17530 |
|
|
version_type=linux
|
17531 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17532 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17533 |
|
|
shlibpath_overrides_runpath=yes
|
17534 |
|
|
;;
|
17535 |
|
|
|
17536 |
|
|
nto-qnx*)
|
17537 |
|
|
version_type=linux
|
17538 |
|
|
need_lib_prefix=no
|
17539 |
|
|
need_version=no
|
17540 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17541 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17542 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17543 |
|
|
shlibpath_overrides_runpath=yes
|
17544 |
|
|
;;
|
17545 |
|
|
|
17546 |
|
|
openbsd*)
|
17547 |
|
|
version_type=sunos
|
17548 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib"
|
17549 |
|
|
need_lib_prefix=no
|
17550 |
|
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
17551 |
|
|
case $host_os in
|
17552 |
|
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
17553 |
|
|
*) need_version=no ;;
|
17554 |
|
|
esac
|
17555 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
17556 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
17557 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17558 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
17559 |
|
|
case $host_os in
|
17560 |
|
|
openbsd2.[89] | openbsd2.[89].*)
|
17561 |
|
|
shlibpath_overrides_runpath=no
|
17562 |
|
|
;;
|
17563 |
|
|
*)
|
17564 |
|
|
shlibpath_overrides_runpath=yes
|
17565 |
|
|
;;
|
17566 |
|
|
esac
|
17567 |
|
|
else
|
17568 |
|
|
shlibpath_overrides_runpath=yes
|
17569 |
|
|
fi
|
17570 |
|
|
;;
|
17571 |
|
|
|
17572 |
|
|
os2*)
|
17573 |
|
|
libname_spec='$name'
|
17574 |
|
|
shrext_cmds=".dll"
|
17575 |
|
|
need_lib_prefix=no
|
17576 |
|
|
library_names_spec='$libname${shared_ext} $libname.a'
|
17577 |
|
|
dynamic_linker='OS/2 ld.exe'
|
17578 |
|
|
shlibpath_var=LIBPATH
|
17579 |
|
|
;;
|
17580 |
|
|
|
17581 |
|
|
osf3* | osf4* | osf5*)
|
17582 |
|
|
version_type=osf
|
17583 |
|
|
need_lib_prefix=no
|
17584 |
|
|
need_version=no
|
17585 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17586 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17587 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17588 |
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
17589 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
17590 |
|
|
;;
|
17591 |
|
|
|
17592 |
|
|
rdos*)
|
17593 |
|
|
dynamic_linker=no
|
17594 |
|
|
;;
|
17595 |
|
|
|
17596 |
|
|
solaris*)
|
17597 |
|
|
version_type=linux
|
17598 |
|
|
need_lib_prefix=no
|
17599 |
|
|
need_version=no
|
17600 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17601 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17602 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17603 |
|
|
shlibpath_overrides_runpath=yes
|
17604 |
|
|
hardcode_into_libs=yes
|
17605 |
|
|
# ldd complains unless libraries are executable
|
17606 |
|
|
postinstall_cmds='chmod +x $lib'
|
17607 |
|
|
;;
|
17608 |
|
|
|
17609 |
|
|
sunos4*)
|
17610 |
|
|
version_type=sunos
|
17611 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
17612 |
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
17613 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17614 |
|
|
shlibpath_overrides_runpath=yes
|
17615 |
|
|
if test "$with_gnu_ld" = yes; then
|
17616 |
|
|
need_lib_prefix=no
|
17617 |
|
|
fi
|
17618 |
|
|
need_version=yes
|
17619 |
|
|
;;
|
17620 |
|
|
|
17621 |
|
|
sysv4 | sysv4.3*)
|
17622 |
|
|
version_type=linux
|
17623 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17624 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17625 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17626 |
|
|
case $host_vendor in
|
17627 |
|
|
sni)
|
17628 |
|
|
shlibpath_overrides_runpath=no
|
17629 |
|
|
need_lib_prefix=no
|
17630 |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
17631 |
|
|
runpath_var=LD_RUN_PATH
|
17632 |
|
|
;;
|
17633 |
|
|
siemens)
|
17634 |
|
|
need_lib_prefix=no
|
17635 |
|
|
;;
|
17636 |
|
|
motorola)
|
17637 |
|
|
need_lib_prefix=no
|
17638 |
|
|
need_version=no
|
17639 |
|
|
shlibpath_overrides_runpath=no
|
17640 |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
17641 |
|
|
;;
|
17642 |
|
|
esac
|
17643 |
|
|
;;
|
17644 |
|
|
|
17645 |
|
|
sysv4*MP*)
|
17646 |
|
|
if test -d /usr/nec ;then
|
17647 |
|
|
version_type=linux
|
17648 |
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
17649 |
|
|
soname_spec='$libname${shared_ext}.$major'
|
17650 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17651 |
|
|
fi
|
17652 |
|
|
;;
|
17653 |
|
|
|
17654 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
17655 |
|
|
version_type=freebsd-elf
|
17656 |
|
|
need_lib_prefix=no
|
17657 |
|
|
need_version=no
|
17658 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
17659 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17660 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17661 |
|
|
hardcode_into_libs=yes
|
17662 |
|
|
if test "$with_gnu_ld" = yes; then
|
17663 |
|
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
17664 |
|
|
shlibpath_overrides_runpath=no
|
17665 |
|
|
else
|
17666 |
|
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
17667 |
|
|
shlibpath_overrides_runpath=yes
|
17668 |
|
|
case $host_os in
|
17669 |
|
|
sco3.2v5*)
|
17670 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
17671 |
|
|
;;
|
17672 |
|
|
esac
|
17673 |
|
|
fi
|
17674 |
|
|
sys_lib_dlsearch_path_spec='/usr/lib'
|
17675 |
|
|
;;
|
17676 |
|
|
|
17677 |
|
|
uts4*)
|
17678 |
|
|
version_type=linux
|
17679 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17680 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17681 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17682 |
|
|
;;
|
17683 |
|
|
|
17684 |
|
|
*)
|
17685 |
|
|
dynamic_linker=no
|
17686 |
|
|
;;
|
17687 |
|
|
esac
|
17688 |
|
|
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
17689 |
|
|
echo "${ECHO_T}$dynamic_linker" >&6; }
|
17690 |
|
|
test "$dynamic_linker" = no && can_build_shared=no
|
17691 |
|
|
|
17692 |
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
17693 |
|
|
if test "$GCC" = yes; then
|
17694 |
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
17695 |
|
|
fi
|
17696 |
|
|
|
17697 |
|
|
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
17698 |
|
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
17699 |
|
|
hardcode_action_GCJ=
|
17700 |
|
|
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
|
17701 |
|
|
test -n "$runpath_var_GCJ" || \
|
17702 |
|
|
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
|
17703 |
|
|
|
17704 |
|
|
# We can hardcode non-existant directories.
|
17705 |
|
|
if test "$hardcode_direct_GCJ" != no &&
|
17706 |
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
17707 |
|
|
# have to relink, otherwise we might link with an installed library
|
17708 |
|
|
# when we should be linking with a yet-to-be-installed one
|
17709 |
|
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
|
17710 |
|
|
test "$hardcode_minus_L_GCJ" != no; then
|
17711 |
|
|
# Linking always hardcodes the temporary library directory.
|
17712 |
|
|
hardcode_action_GCJ=relink
|
17713 |
|
|
else
|
17714 |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
17715 |
|
|
hardcode_action_GCJ=immediate
|
17716 |
|
|
fi
|
17717 |
|
|
else
|
17718 |
|
|
# We cannot hardcode anything, or else we can only hardcode existing
|
17719 |
|
|
# directories.
|
17720 |
|
|
hardcode_action_GCJ=unsupported
|
17721 |
|
|
fi
|
17722 |
|
|
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
|
17723 |
|
|
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
|
17724 |
|
|
|
17725 |
|
|
if test "$hardcode_action_GCJ" = relink; then
|
17726 |
|
|
# Fast installation is not supported
|
17727 |
|
|
enable_fast_install=no
|
17728 |
|
|
elif test "$shlibpath_overrides_runpath" = yes ||
|
17729 |
|
|
test "$enable_shared" = no; then
|
17730 |
|
|
# Fast installation is not necessary
|
17731 |
|
|
enable_fast_install=needless
|
17732 |
|
|
fi
|
17733 |
|
|
|
17734 |
|
|
|
17735 |
|
|
# The else clause should only fire when bootstrapping the
|
17736 |
|
|
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
17737 |
|
|
# with your package, and you will get complaints that there are
|
17738 |
|
|
# no rules to generate ltmain.sh.
|
17739 |
|
|
if test -f "$ltmain"; then
|
17740 |
|
|
# See if we are running on zsh, and set the options which allow our commands through
|
17741 |
|
|
# without removal of \ escapes.
|
17742 |
|
|
if test -n "${ZSH_VERSION+set}" ; then
|
17743 |
|
|
setopt NO_GLOB_SUBST
|
17744 |
|
|
fi
|
17745 |
|
|
# Now quote all the things that may contain metacharacters while being
|
17746 |
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
17747 |
|
|
# variables and quote the copies for generation of the libtool script.
|
17748 |
|
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
17749 |
|
|
SED SHELL STRIP \
|
17750 |
|
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
17751 |
|
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
17752 |
|
|
deplibs_check_method reload_flag reload_cmds need_locks \
|
17753 |
|
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
17754 |
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
17755 |
|
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
17756 |
|
|
old_postinstall_cmds old_postuninstall_cmds \
|
17757 |
|
|
compiler_GCJ \
|
17758 |
|
|
CC_GCJ \
|
17759 |
|
|
LD_GCJ \
|
17760 |
|
|
lt_prog_compiler_wl_GCJ \
|
17761 |
|
|
lt_prog_compiler_pic_GCJ \
|
17762 |
|
|
lt_prog_compiler_static_GCJ \
|
17763 |
|
|
lt_prog_compiler_no_builtin_flag_GCJ \
|
17764 |
|
|
export_dynamic_flag_spec_GCJ \
|
17765 |
|
|
thread_safe_flag_spec_GCJ \
|
17766 |
|
|
whole_archive_flag_spec_GCJ \
|
17767 |
|
|
enable_shared_with_static_runtimes_GCJ \
|
17768 |
|
|
old_archive_cmds_GCJ \
|
17769 |
|
|
old_archive_from_new_cmds_GCJ \
|
17770 |
|
|
predep_objects_GCJ \
|
17771 |
|
|
postdep_objects_GCJ \
|
17772 |
|
|
predeps_GCJ \
|
17773 |
|
|
postdeps_GCJ \
|
17774 |
|
|
compiler_lib_search_path_GCJ \
|
17775 |
|
|
archive_cmds_GCJ \
|
17776 |
|
|
archive_expsym_cmds_GCJ \
|
17777 |
|
|
postinstall_cmds_GCJ \
|
17778 |
|
|
postuninstall_cmds_GCJ \
|
17779 |
|
|
old_archive_from_expsyms_cmds_GCJ \
|
17780 |
|
|
allow_undefined_flag_GCJ \
|
17781 |
|
|
no_undefined_flag_GCJ \
|
17782 |
|
|
export_symbols_cmds_GCJ \
|
17783 |
|
|
hardcode_libdir_flag_spec_GCJ \
|
17784 |
|
|
hardcode_libdir_flag_spec_ld_GCJ \
|
17785 |
|
|
hardcode_libdir_separator_GCJ \
|
17786 |
|
|
hardcode_automatic_GCJ \
|
17787 |
|
|
module_cmds_GCJ \
|
17788 |
|
|
module_expsym_cmds_GCJ \
|
17789 |
|
|
lt_cv_prog_compiler_c_o_GCJ \
|
17790 |
|
|
fix_srcfile_path_GCJ \
|
17791 |
|
|
exclude_expsyms_GCJ \
|
17792 |
|
|
include_expsyms_GCJ; do
|
17793 |
|
|
|
17794 |
|
|
case $var in
|
17795 |
|
|
old_archive_cmds_GCJ | \
|
17796 |
|
|
old_archive_from_new_cmds_GCJ | \
|
17797 |
|
|
archive_cmds_GCJ | \
|
17798 |
|
|
archive_expsym_cmds_GCJ | \
|
17799 |
|
|
module_cmds_GCJ | \
|
17800 |
|
|
module_expsym_cmds_GCJ | \
|
17801 |
|
|
old_archive_from_expsyms_cmds_GCJ | \
|
17802 |
|
|
export_symbols_cmds_GCJ | \
|
17803 |
|
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
17804 |
|
|
postinstall_cmds | postuninstall_cmds | \
|
17805 |
|
|
old_postinstall_cmds | old_postuninstall_cmds | \
|
17806 |
|
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
17807 |
|
|
# Double-quote double-evaled strings.
|
17808 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
17809 |
|
|
;;
|
17810 |
|
|
*)
|
17811 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
17812 |
|
|
;;
|
17813 |
|
|
esac
|
17814 |
|
|
done
|
17815 |
|
|
|
17816 |
|
|
case $lt_echo in
|
17817 |
|
|
*'\$0 --fallback-echo"')
|
17818 |
|
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
17819 |
|
|
;;
|
17820 |
|
|
esac
|
17821 |
|
|
|
17822 |
|
|
cfgfile="$ofile"
|
17823 |
|
|
|
17824 |
|
|
cat <<__EOF__ >> "$cfgfile"
|
17825 |
|
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
17826 |
|
|
|
17827 |
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
17828 |
|
|
|
17829 |
|
|
# Shell to use when invoking shell scripts.
|
17830 |
|
|
SHELL=$lt_SHELL
|
17831 |
|
|
|
17832 |
|
|
# Whether or not to build shared libraries.
|
17833 |
|
|
build_libtool_libs=$enable_shared
|
17834 |
|
|
|
17835 |
|
|
# Whether or not to build static libraries.
|
17836 |
|
|
build_old_libs=$enable_static
|
17837 |
|
|
|
17838 |
|
|
# Whether or not to add -lc for building shared libraries.
|
17839 |
|
|
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
|
17840 |
|
|
|
17841 |
|
|
# Whether or not to disallow shared libs when runtime libs are static
|
17842 |
|
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
|
17843 |
|
|
|
17844 |
|
|
# Whether or not to optimize for fast installation.
|
17845 |
|
|
fast_install=$enable_fast_install
|
17846 |
|
|
|
17847 |
|
|
# The host system.
|
17848 |
|
|
host_alias=$host_alias
|
17849 |
|
|
host=$host
|
17850 |
|
|
host_os=$host_os
|
17851 |
|
|
|
17852 |
|
|
# The build system.
|
17853 |
|
|
build_alias=$build_alias
|
17854 |
|
|
build=$build
|
17855 |
|
|
build_os=$build_os
|
17856 |
|
|
|
17857 |
|
|
# An echo program that does not interpret backslashes.
|
17858 |
|
|
echo=$lt_echo
|
17859 |
|
|
|
17860 |
|
|
# The archiver.
|
17861 |
|
|
AR=$lt_AR
|
17862 |
|
|
AR_FLAGS=$lt_AR_FLAGS
|
17863 |
|
|
|
17864 |
|
|
# A C compiler.
|
17865 |
|
|
LTCC=$lt_LTCC
|
17866 |
|
|
|
17867 |
|
|
# LTCC compiler flags.
|
17868 |
|
|
LTCFLAGS=$lt_LTCFLAGS
|
17869 |
|
|
|
17870 |
|
|
# A language-specific compiler.
|
17871 |
|
|
CC=$lt_compiler_GCJ
|
17872 |
|
|
|
17873 |
|
|
# Is the compiler the GNU C compiler?
|
17874 |
|
|
with_gcc=$GCC_GCJ
|
17875 |
|
|
|
17876 |
|
|
# An ERE matcher.
|
17877 |
|
|
EGREP=$lt_EGREP
|
17878 |
|
|
|
17879 |
|
|
# The linker used to build libraries.
|
17880 |
|
|
LD=$lt_LD_GCJ
|
17881 |
|
|
|
17882 |
|
|
# Whether we need hard or soft links.
|
17883 |
|
|
LN_S=$lt_LN_S
|
17884 |
|
|
|
17885 |
|
|
# A BSD-compatible nm program.
|
17886 |
|
|
NM=$lt_NM
|
17887 |
|
|
|
17888 |
|
|
# A symbol stripping program
|
17889 |
|
|
STRIP=$lt_STRIP
|
17890 |
|
|
|
17891 |
|
|
# Used to examine libraries when file_magic_cmd begins "file"
|
17892 |
|
|
MAGIC_CMD=$MAGIC_CMD
|
17893 |
|
|
|
17894 |
|
|
# Used on cygwin: DLL creation program.
|
17895 |
|
|
DLLTOOL="$DLLTOOL"
|
17896 |
|
|
|
17897 |
|
|
# Used on cygwin: object dumper.
|
17898 |
|
|
OBJDUMP="$OBJDUMP"
|
17899 |
|
|
|
17900 |
|
|
# Used on cygwin: assembler.
|
17901 |
|
|
AS="$AS"
|
17902 |
|
|
|
17903 |
|
|
# The name of the directory that contains temporary libtool files.
|
17904 |
|
|
objdir=$objdir
|
17905 |
|
|
|
17906 |
|
|
# How to create reloadable object files.
|
17907 |
|
|
reload_flag=$lt_reload_flag
|
17908 |
|
|
reload_cmds=$lt_reload_cmds
|
17909 |
|
|
|
17910 |
|
|
# How to pass a linker flag through the compiler.
|
17911 |
|
|
wl=$lt_lt_prog_compiler_wl_GCJ
|
17912 |
|
|
|
17913 |
|
|
# Object file suffix (normally "o").
|
17914 |
|
|
objext="$ac_objext"
|
17915 |
|
|
|
17916 |
|
|
# Old archive suffix (normally "a").
|
17917 |
|
|
libext="$libext"
|
17918 |
|
|
|
17919 |
|
|
# Shared library suffix (normally ".so").
|
17920 |
|
|
shrext_cmds='$shrext_cmds'
|
17921 |
|
|
|
17922 |
|
|
# Executable file suffix (normally "").
|
17923 |
|
|
exeext="$exeext"
|
17924 |
|
|
|
17925 |
|
|
# Additional compiler flags for building library objects.
|
17926 |
|
|
pic_flag=$lt_lt_prog_compiler_pic_GCJ
|
17927 |
|
|
pic_mode=$pic_mode
|
17928 |
|
|
|
17929 |
|
|
# What is the maximum length of a command?
|
17930 |
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
17931 |
|
|
|
17932 |
|
|
# Does compiler simultaneously support -c and -o options?
|
17933 |
|
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
|
17934 |
|
|
|
17935 |
|
|
# Must we lock files when doing compilation?
|
17936 |
|
|
need_locks=$lt_need_locks
|
17937 |
|
|
|
17938 |
|
|
# Do we need the lib prefix for modules?
|
17939 |
|
|
need_lib_prefix=$need_lib_prefix
|
17940 |
|
|
|
17941 |
|
|
# Do we need a version for libraries?
|
17942 |
|
|
need_version=$need_version
|
17943 |
|
|
|
17944 |
|
|
# Whether dlopen is supported.
|
17945 |
|
|
dlopen_support=$enable_dlopen
|
17946 |
|
|
|
17947 |
|
|
# Whether dlopen of programs is supported.
|
17948 |
|
|
dlopen_self=$enable_dlopen_self
|
17949 |
|
|
|
17950 |
|
|
# Whether dlopen of statically linked programs is supported.
|
17951 |
|
|
dlopen_self_static=$enable_dlopen_self_static
|
17952 |
|
|
|
17953 |
|
|
# Compiler flag to prevent dynamic linking.
|
17954 |
|
|
link_static_flag=$lt_lt_prog_compiler_static_GCJ
|
17955 |
|
|
|
17956 |
|
|
# Compiler flag to turn off builtin functions.
|
17957 |
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
|
17958 |
|
|
|
17959 |
|
|
# Compiler flag to allow reflexive dlopens.
|
17960 |
|
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
|
17961 |
|
|
|
17962 |
|
|
# Compiler flag to generate shared objects directly from archives.
|
17963 |
|
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
|
17964 |
|
|
|
17965 |
|
|
# Compiler flag to generate thread-safe objects.
|
17966 |
|
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
|
17967 |
|
|
|
17968 |
|
|
# Library versioning type.
|
17969 |
|
|
version_type=$version_type
|
17970 |
|
|
|
17971 |
|
|
# Format of library name prefix.
|
17972 |
|
|
libname_spec=$lt_libname_spec
|
17973 |
|
|
|
17974 |
|
|
# List of archive names. First name is the real one, the rest are links.
|
17975 |
|
|
# The last name is the one that the linker finds with -lNAME.
|
17976 |
|
|
library_names_spec=$lt_library_names_spec
|
17977 |
|
|
|
17978 |
|
|
# The coded name of the library, if different from the real name.
|
17979 |
|
|
soname_spec=$lt_soname_spec
|
17980 |
|
|
|
17981 |
|
|
# Commands used to build and install an old-style archive.
|
17982 |
|
|
RANLIB=$lt_RANLIB
|
17983 |
|
|
old_archive_cmds=$lt_old_archive_cmds_GCJ
|
17984 |
|
|
old_postinstall_cmds=$lt_old_postinstall_cmds
|
17985 |
|
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
17986 |
|
|
|
17987 |
|
|
# Create an old-style archive from a shared archive.
|
17988 |
|
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
|
17989 |
|
|
|
17990 |
|
|
# Create a temporary old-style archive to link instead of a shared archive.
|
17991 |
|
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
|
17992 |
|
|
|
17993 |
|
|
# Commands used to build and install a shared archive.
|
17994 |
|
|
archive_cmds=$lt_archive_cmds_GCJ
|
17995 |
|
|
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
|
17996 |
|
|
postinstall_cmds=$lt_postinstall_cmds
|
17997 |
|
|
postuninstall_cmds=$lt_postuninstall_cmds
|
17998 |
|
|
|
17999 |
|
|
# Commands used to build a loadable module (assumed same as above if empty)
|
18000 |
|
|
module_cmds=$lt_module_cmds_GCJ
|
18001 |
|
|
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
|
18002 |
|
|
|
18003 |
|
|
# Commands to strip libraries.
|
18004 |
|
|
old_striplib=$lt_old_striplib
|
18005 |
|
|
striplib=$lt_striplib
|
18006 |
|
|
|
18007 |
|
|
# Dependencies to place before the objects being linked to create a
|
18008 |
|
|
# shared library.
|
18009 |
|
|
predep_objects=$lt_predep_objects_GCJ
|
18010 |
|
|
|
18011 |
|
|
# Dependencies to place after the objects being linked to create a
|
18012 |
|
|
# shared library.
|
18013 |
|
|
postdep_objects=$lt_postdep_objects_GCJ
|
18014 |
|
|
|
18015 |
|
|
# Dependencies to place before the objects being linked to create a
|
18016 |
|
|
# shared library.
|
18017 |
|
|
predeps=$lt_predeps_GCJ
|
18018 |
|
|
|
18019 |
|
|
# Dependencies to place after the objects being linked to create a
|
18020 |
|
|
# shared library.
|
18021 |
|
|
postdeps=$lt_postdeps_GCJ
|
18022 |
|
|
|
18023 |
|
|
# The library search path used internally by the compiler when linking
|
18024 |
|
|
# a shared library.
|
18025 |
|
|
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
|
18026 |
|
|
|
18027 |
|
|
# Method to check whether dependent libraries are shared objects.
|
18028 |
|
|
deplibs_check_method=$lt_deplibs_check_method
|
18029 |
|
|
|
18030 |
|
|
# Command to use when deplibs_check_method == file_magic.
|
18031 |
|
|
file_magic_cmd=$lt_file_magic_cmd
|
18032 |
|
|
|
18033 |
|
|
# Flag that allows shared libraries with undefined symbols to be built.
|
18034 |
|
|
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
|
18035 |
|
|
|
18036 |
|
|
# Flag that forces no undefined symbols.
|
18037 |
|
|
no_undefined_flag=$lt_no_undefined_flag_GCJ
|
18038 |
|
|
|
18039 |
|
|
# Commands used to finish a libtool library installation in a directory.
|
18040 |
|
|
finish_cmds=$lt_finish_cmds
|
18041 |
|
|
|
18042 |
|
|
# Same as above, but a single script fragment to be evaled but not shown.
|
18043 |
|
|
finish_eval=$lt_finish_eval
|
18044 |
|
|
|
18045 |
|
|
# Take the output of nm and produce a listing of raw symbols and C names.
|
18046 |
|
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
18047 |
|
|
|
18048 |
|
|
# Transform the output of nm in a proper C declaration
|
18049 |
|
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
18050 |
|
|
|
18051 |
|
|
# Transform the output of nm in a C name address pair
|
18052 |
|
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
18053 |
|
|
|
18054 |
|
|
# This is the shared library runtime path variable.
|
18055 |
|
|
runpath_var=$runpath_var
|
18056 |
|
|
|
18057 |
|
|
# This is the shared library path variable.
|
18058 |
|
|
shlibpath_var=$shlibpath_var
|
18059 |
|
|
|
18060 |
|
|
# Is shlibpath searched before the hard-coded library search path?
|
18061 |
|
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
18062 |
|
|
|
18063 |
|
|
# How to hardcode a shared library path into an executable.
|
18064 |
|
|
hardcode_action=$hardcode_action_GCJ
|
18065 |
|
|
|
18066 |
|
|
# Whether we should hardcode library paths into libraries.
|
18067 |
|
|
hardcode_into_libs=$hardcode_into_libs
|
18068 |
|
|
|
18069 |
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
18070 |
|
|
# This must work even if \$libdir does not exist.
|
18071 |
|
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
|
18072 |
|
|
|
18073 |
|
|
# If ld is used when linking, flag to hardcode \$libdir into
|
18074 |
|
|
# a binary during linking. This must work even if \$libdir does
|
18075 |
|
|
# not exist.
|
18076 |
|
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
|
18077 |
|
|
|
18078 |
|
|
# Whether we need a single -rpath flag with a separated argument.
|
18079 |
|
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
|
18080 |
|
|
|
18081 |
|
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
18082 |
|
|
# resulting binary.
|
18083 |
|
|
hardcode_direct=$hardcode_direct_GCJ
|
18084 |
|
|
|
18085 |
|
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
18086 |
|
|
# resulting binary.
|
18087 |
|
|
hardcode_minus_L=$hardcode_minus_L_GCJ
|
18088 |
|
|
|
18089 |
|
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
18090 |
|
|
# the resulting binary.
|
18091 |
|
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
|
18092 |
|
|
|
18093 |
|
|
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
18094 |
|
|
# and all subsequent libraries and executables linked against it.
|
18095 |
|
|
hardcode_automatic=$hardcode_automatic_GCJ
|
18096 |
|
|
|
18097 |
|
|
# Variables whose values should be saved in libtool wrapper scripts and
|
18098 |
|
|
# restored at relink time.
|
18099 |
|
|
variables_saved_for_relink="$variables_saved_for_relink"
|
18100 |
|
|
|
18101 |
|
|
# Whether libtool must link a program against all its dependency libraries.
|
18102 |
|
|
link_all_deplibs=$link_all_deplibs_GCJ
|
18103 |
|
|
|
18104 |
|
|
# Compile-time system search path for libraries
|
18105 |
|
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
18106 |
|
|
|
18107 |
|
|
# Run-time system search path for libraries
|
18108 |
|
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
18109 |
|
|
|
18110 |
|
|
# Fix the shell variable \$srcfile for the compiler.
|
18111 |
|
|
fix_srcfile_path=$lt_fix_srcfile_path
|
18112 |
|
|
|
18113 |
|
|
# Set to yes if exported symbols are required.
|
18114 |
|
|
always_export_symbols=$always_export_symbols_GCJ
|
18115 |
|
|
|
18116 |
|
|
# The commands to list exported symbols.
|
18117 |
|
|
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
|
18118 |
|
|
|
18119 |
|
|
# The commands to extract the exported symbol list from a shared archive.
|
18120 |
|
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
18121 |
|
|
|
18122 |
|
|
# Symbols that should not be listed in the preloaded symbols.
|
18123 |
|
|
exclude_expsyms=$lt_exclude_expsyms_GCJ
|
18124 |
|
|
|
18125 |
|
|
# Symbols that must always be exported.
|
18126 |
|
|
include_expsyms=$lt_include_expsyms_GCJ
|
18127 |
|
|
|
18128 |
|
|
# ### END LIBTOOL TAG CONFIG: $tagname
|
18129 |
|
|
|
18130 |
|
|
__EOF__
|
18131 |
|
|
|
18132 |
|
|
|
18133 |
|
|
else
|
18134 |
|
|
# If there is no Makefile yet, we rely on a make rule to execute
|
18135 |
|
|
# `config.status --recheck' to rerun these tests and create the
|
18136 |
|
|
# libtool script then.
|
18137 |
|
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
18138 |
|
|
if test -f "$ltmain_in"; then
|
18139 |
|
|
test -f Makefile && make "$ltmain"
|
18140 |
|
|
fi
|
18141 |
|
|
fi
|
18142 |
|
|
|
18143 |
|
|
|
18144 |
|
|
ac_ext=c
|
18145 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
18146 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
18147 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
18148 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
18149 |
|
|
|
18150 |
|
|
CC="$lt_save_CC"
|
18151 |
|
|
|
18152 |
|
|
else
|
18153 |
|
|
tagname=""
|
18154 |
|
|
fi
|
18155 |
|
|
;;
|
18156 |
|
|
|
18157 |
|
|
RC)
|
18158 |
|
|
|
18159 |
|
|
|
18160 |
|
|
# Source file extension for RC test sources.
|
18161 |
|
|
ac_ext=rc
|
18162 |
|
|
|
18163 |
|
|
# Object file extension for compiled RC test sources.
|
18164 |
|
|
objext=o
|
18165 |
|
|
objext_RC=$objext
|
18166 |
|
|
|
18167 |
|
|
# Code to be used in simple compile tests
|
18168 |
|
|
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
|
18169 |
|
|
|
18170 |
|
|
# Code to be used in simple link tests
|
18171 |
|
|
lt_simple_link_test_code="$lt_simple_compile_test_code"
|
18172 |
|
|
|
18173 |
|
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
18174 |
|
|
|
18175 |
|
|
# If no C compiler was specified, use CC.
|
18176 |
|
|
LTCC=${LTCC-"$CC"}
|
18177 |
|
|
|
18178 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
18179 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
18180 |
|
|
|
18181 |
|
|
# Allow CC to be a program name with arguments.
|
18182 |
|
|
compiler=$CC
|
18183 |
|
|
|
18184 |
|
|
|
18185 |
|
|
# save warnings/boilerplate of simple test code
|
18186 |
|
|
ac_outfile=conftest.$ac_objext
|
18187 |
|
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
18188 |
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
18189 |
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
18190 |
|
|
$rm conftest*
|
18191 |
|
|
|
18192 |
|
|
ac_outfile=conftest.$ac_objext
|
18193 |
|
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
18194 |
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
18195 |
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
18196 |
|
|
$rm conftest*
|
18197 |
|
|
|
18198 |
|
|
|
18199 |
|
|
# Allow CC to be a program name with arguments.
|
18200 |
|
|
lt_save_CC="$CC"
|
18201 |
|
|
CC=${RC-"windres"}
|
18202 |
|
|
compiler=$CC
|
18203 |
|
|
compiler_RC=$CC
|
18204 |
|
|
for cc_temp in $compiler""; do
|
18205 |
|
|
case $cc_temp in
|
18206 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
18207 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
18208 |
|
|
\-*) ;;
|
18209 |
|
|
*) break;;
|
18210 |
|
|
esac
|
18211 |
|
|
done
|
18212 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
18213 |
|
|
|
18214 |
|
|
lt_cv_prog_compiler_c_o_RC=yes
|
18215 |
|
|
|
18216 |
|
|
# The else clause should only fire when bootstrapping the
|
18217 |
|
|
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
18218 |
|
|
# with your package, and you will get complaints that there are
|
18219 |
|
|
# no rules to generate ltmain.sh.
|
18220 |
|
|
if test -f "$ltmain"; then
|
18221 |
|
|
# See if we are running on zsh, and set the options which allow our commands through
|
18222 |
|
|
# without removal of \ escapes.
|
18223 |
|
|
if test -n "${ZSH_VERSION+set}" ; then
|
18224 |
|
|
setopt NO_GLOB_SUBST
|
18225 |
|
|
fi
|
18226 |
|
|
# Now quote all the things that may contain metacharacters while being
|
18227 |
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
18228 |
|
|
# variables and quote the copies for generation of the libtool script.
|
18229 |
|
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
18230 |
|
|
SED SHELL STRIP \
|
18231 |
|
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
18232 |
|
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
18233 |
|
|
deplibs_check_method reload_flag reload_cmds need_locks \
|
18234 |
|
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
18235 |
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
18236 |
|
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
18237 |
|
|
old_postinstall_cmds old_postuninstall_cmds \
|
18238 |
|
|
compiler_RC \
|
18239 |
|
|
CC_RC \
|
18240 |
|
|
LD_RC \
|
18241 |
|
|
lt_prog_compiler_wl_RC \
|
18242 |
|
|
lt_prog_compiler_pic_RC \
|
18243 |
|
|
lt_prog_compiler_static_RC \
|
18244 |
|
|
lt_prog_compiler_no_builtin_flag_RC \
|
18245 |
|
|
export_dynamic_flag_spec_RC \
|
18246 |
|
|
thread_safe_flag_spec_RC \
|
18247 |
|
|
whole_archive_flag_spec_RC \
|
18248 |
|
|
enable_shared_with_static_runtimes_RC \
|
18249 |
|
|
old_archive_cmds_RC \
|
18250 |
|
|
old_archive_from_new_cmds_RC \
|
18251 |
|
|
predep_objects_RC \
|
18252 |
|
|
postdep_objects_RC \
|
18253 |
|
|
predeps_RC \
|
18254 |
|
|
postdeps_RC \
|
18255 |
|
|
compiler_lib_search_path_RC \
|
18256 |
|
|
archive_cmds_RC \
|
18257 |
|
|
archive_expsym_cmds_RC \
|
18258 |
|
|
postinstall_cmds_RC \
|
18259 |
|
|
postuninstall_cmds_RC \
|
18260 |
|
|
old_archive_from_expsyms_cmds_RC \
|
18261 |
|
|
allow_undefined_flag_RC \
|
18262 |
|
|
no_undefined_flag_RC \
|
18263 |
|
|
export_symbols_cmds_RC \
|
18264 |
|
|
hardcode_libdir_flag_spec_RC \
|
18265 |
|
|
hardcode_libdir_flag_spec_ld_RC \
|
18266 |
|
|
hardcode_libdir_separator_RC \
|
18267 |
|
|
hardcode_automatic_RC \
|
18268 |
|
|
module_cmds_RC \
|
18269 |
|
|
module_expsym_cmds_RC \
|
18270 |
|
|
lt_cv_prog_compiler_c_o_RC \
|
18271 |
|
|
fix_srcfile_path_RC \
|
18272 |
|
|
exclude_expsyms_RC \
|
18273 |
|
|
include_expsyms_RC; do
|
18274 |
|
|
|
18275 |
|
|
case $var in
|
18276 |
|
|
old_archive_cmds_RC | \
|
18277 |
|
|
old_archive_from_new_cmds_RC | \
|
18278 |
|
|
archive_cmds_RC | \
|
18279 |
|
|
archive_expsym_cmds_RC | \
|
18280 |
|
|
module_cmds_RC | \
|
18281 |
|
|
module_expsym_cmds_RC | \
|
18282 |
|
|
old_archive_from_expsyms_cmds_RC | \
|
18283 |
|
|
export_symbols_cmds_RC | \
|
18284 |
|
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
18285 |
|
|
postinstall_cmds | postuninstall_cmds | \
|
18286 |
|
|
old_postinstall_cmds | old_postuninstall_cmds | \
|
18287 |
|
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
18288 |
|
|
# Double-quote double-evaled strings.
|
18289 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
18290 |
|
|
;;
|
18291 |
|
|
*)
|
18292 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
18293 |
|
|
;;
|
18294 |
|
|
esac
|
18295 |
|
|
done
|
18296 |
|
|
|
18297 |
|
|
case $lt_echo in
|
18298 |
|
|
*'\$0 --fallback-echo"')
|
18299 |
|
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
18300 |
|
|
;;
|
18301 |
|
|
esac
|
18302 |
|
|
|
18303 |
|
|
cfgfile="$ofile"
|
18304 |
|
|
|
18305 |
|
|
cat <<__EOF__ >> "$cfgfile"
|
18306 |
|
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
18307 |
|
|
|
18308 |
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
18309 |
|
|
|
18310 |
|
|
# Shell to use when invoking shell scripts.
|
18311 |
|
|
SHELL=$lt_SHELL
|
18312 |
|
|
|
18313 |
|
|
# Whether or not to build shared libraries.
|
18314 |
|
|
build_libtool_libs=$enable_shared
|
18315 |
|
|
|
18316 |
|
|
# Whether or not to build static libraries.
|
18317 |
|
|
build_old_libs=$enable_static
|
18318 |
|
|
|
18319 |
|
|
# Whether or not to add -lc for building shared libraries.
|
18320 |
|
|
build_libtool_need_lc=$archive_cmds_need_lc_RC
|
18321 |
|
|
|
18322 |
|
|
# Whether or not to disallow shared libs when runtime libs are static
|
18323 |
|
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
|
18324 |
|
|
|
18325 |
|
|
# Whether or not to optimize for fast installation.
|
18326 |
|
|
fast_install=$enable_fast_install
|
18327 |
|
|
|
18328 |
|
|
# The host system.
|
18329 |
|
|
host_alias=$host_alias
|
18330 |
|
|
host=$host
|
18331 |
|
|
host_os=$host_os
|
18332 |
|
|
|
18333 |
|
|
# The build system.
|
18334 |
|
|
build_alias=$build_alias
|
18335 |
|
|
build=$build
|
18336 |
|
|
build_os=$build_os
|
18337 |
|
|
|
18338 |
|
|
# An echo program that does not interpret backslashes.
|
18339 |
|
|
echo=$lt_echo
|
18340 |
|
|
|
18341 |
|
|
# The archiver.
|
18342 |
|
|
AR=$lt_AR
|
18343 |
|
|
AR_FLAGS=$lt_AR_FLAGS
|
18344 |
|
|
|
18345 |
|
|
# A C compiler.
|
18346 |
|
|
LTCC=$lt_LTCC
|
18347 |
|
|
|
18348 |
|
|
# LTCC compiler flags.
|
18349 |
|
|
LTCFLAGS=$lt_LTCFLAGS
|
18350 |
|
|
|
18351 |
|
|
# A language-specific compiler.
|
18352 |
|
|
CC=$lt_compiler_RC
|
18353 |
|
|
|
18354 |
|
|
# Is the compiler the GNU C compiler?
|
18355 |
|
|
with_gcc=$GCC_RC
|
18356 |
|
|
|
18357 |
|
|
# An ERE matcher.
|
18358 |
|
|
EGREP=$lt_EGREP
|
18359 |
|
|
|
18360 |
|
|
# The linker used to build libraries.
|
18361 |
|
|
LD=$lt_LD_RC
|
18362 |
|
|
|
18363 |
|
|
# Whether we need hard or soft links.
|
18364 |
|
|
LN_S=$lt_LN_S
|
18365 |
|
|
|
18366 |
|
|
# A BSD-compatible nm program.
|
18367 |
|
|
NM=$lt_NM
|
18368 |
|
|
|
18369 |
|
|
# A symbol stripping program
|
18370 |
|
|
STRIP=$lt_STRIP
|
18371 |
|
|
|
18372 |
|
|
# Used to examine libraries when file_magic_cmd begins "file"
|
18373 |
|
|
MAGIC_CMD=$MAGIC_CMD
|
18374 |
|
|
|
18375 |
|
|
# Used on cygwin: DLL creation program.
|
18376 |
|
|
DLLTOOL="$DLLTOOL"
|
18377 |
|
|
|
18378 |
|
|
# Used on cygwin: object dumper.
|
18379 |
|
|
OBJDUMP="$OBJDUMP"
|
18380 |
|
|
|
18381 |
|
|
# Used on cygwin: assembler.
|
18382 |
|
|
AS="$AS"
|
18383 |
|
|
|
18384 |
|
|
# The name of the directory that contains temporary libtool files.
|
18385 |
|
|
objdir=$objdir
|
18386 |
|
|
|
18387 |
|
|
# How to create reloadable object files.
|
18388 |
|
|
reload_flag=$lt_reload_flag
|
18389 |
|
|
reload_cmds=$lt_reload_cmds
|
18390 |
|
|
|
18391 |
|
|
# How to pass a linker flag through the compiler.
|
18392 |
|
|
wl=$lt_lt_prog_compiler_wl_RC
|
18393 |
|
|
|
18394 |
|
|
# Object file suffix (normally "o").
|
18395 |
|
|
objext="$ac_objext"
|
18396 |
|
|
|
18397 |
|
|
# Old archive suffix (normally "a").
|
18398 |
|
|
libext="$libext"
|
18399 |
|
|
|
18400 |
|
|
# Shared library suffix (normally ".so").
|
18401 |
|
|
shrext_cmds='$shrext_cmds'
|
18402 |
|
|
|
18403 |
|
|
# Executable file suffix (normally "").
|
18404 |
|
|
exeext="$exeext"
|
18405 |
|
|
|
18406 |
|
|
# Additional compiler flags for building library objects.
|
18407 |
|
|
pic_flag=$lt_lt_prog_compiler_pic_RC
|
18408 |
|
|
pic_mode=$pic_mode
|
18409 |
|
|
|
18410 |
|
|
# What is the maximum length of a command?
|
18411 |
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
18412 |
|
|
|
18413 |
|
|
# Does compiler simultaneously support -c and -o options?
|
18414 |
|
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
|
18415 |
|
|
|
18416 |
|
|
# Must we lock files when doing compilation?
|
18417 |
|
|
need_locks=$lt_need_locks
|
18418 |
|
|
|
18419 |
|
|
# Do we need the lib prefix for modules?
|
18420 |
|
|
need_lib_prefix=$need_lib_prefix
|
18421 |
|
|
|
18422 |
|
|
# Do we need a version for libraries?
|
18423 |
|
|
need_version=$need_version
|
18424 |
|
|
|
18425 |
|
|
# Whether dlopen is supported.
|
18426 |
|
|
dlopen_support=$enable_dlopen
|
18427 |
|
|
|
18428 |
|
|
# Whether dlopen of programs is supported.
|
18429 |
|
|
dlopen_self=$enable_dlopen_self
|
18430 |
|
|
|
18431 |
|
|
# Whether dlopen of statically linked programs is supported.
|
18432 |
|
|
dlopen_self_static=$enable_dlopen_self_static
|
18433 |
|
|
|
18434 |
|
|
# Compiler flag to prevent dynamic linking.
|
18435 |
|
|
link_static_flag=$lt_lt_prog_compiler_static_RC
|
18436 |
|
|
|
18437 |
|
|
# Compiler flag to turn off builtin functions.
|
18438 |
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
|
18439 |
|
|
|
18440 |
|
|
# Compiler flag to allow reflexive dlopens.
|
18441 |
|
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
|
18442 |
|
|
|
18443 |
|
|
# Compiler flag to generate shared objects directly from archives.
|
18444 |
|
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
|
18445 |
|
|
|
18446 |
|
|
# Compiler flag to generate thread-safe objects.
|
18447 |
|
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
|
18448 |
|
|
|
18449 |
|
|
# Library versioning type.
|
18450 |
|
|
version_type=$version_type
|
18451 |
|
|
|
18452 |
|
|
# Format of library name prefix.
|
18453 |
|
|
libname_spec=$lt_libname_spec
|
18454 |
|
|
|
18455 |
|
|
# List of archive names. First name is the real one, the rest are links.
|
18456 |
|
|
# The last name is the one that the linker finds with -lNAME.
|
18457 |
|
|
library_names_spec=$lt_library_names_spec
|
18458 |
|
|
|
18459 |
|
|
# The coded name of the library, if different from the real name.
|
18460 |
|
|
soname_spec=$lt_soname_spec
|
18461 |
|
|
|
18462 |
|
|
# Commands used to build and install an old-style archive.
|
18463 |
|
|
RANLIB=$lt_RANLIB
|
18464 |
|
|
old_archive_cmds=$lt_old_archive_cmds_RC
|
18465 |
|
|
old_postinstall_cmds=$lt_old_postinstall_cmds
|
18466 |
|
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
18467 |
|
|
|
18468 |
|
|
# Create an old-style archive from a shared archive.
|
18469 |
|
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
|
18470 |
|
|
|
18471 |
|
|
# Create a temporary old-style archive to link instead of a shared archive.
|
18472 |
|
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
|
18473 |
|
|
|
18474 |
|
|
# Commands used to build and install a shared archive.
|
18475 |
|
|
archive_cmds=$lt_archive_cmds_RC
|
18476 |
|
|
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
|
18477 |
|
|
postinstall_cmds=$lt_postinstall_cmds
|
18478 |
|
|
postuninstall_cmds=$lt_postuninstall_cmds
|
18479 |
|
|
|
18480 |
|
|
# Commands used to build a loadable module (assumed same as above if empty)
|
18481 |
|
|
module_cmds=$lt_module_cmds_RC
|
18482 |
|
|
module_expsym_cmds=$lt_module_expsym_cmds_RC
|
18483 |
|
|
|
18484 |
|
|
# Commands to strip libraries.
|
18485 |
|
|
old_striplib=$lt_old_striplib
|
18486 |
|
|
striplib=$lt_striplib
|
18487 |
|
|
|
18488 |
|
|
# Dependencies to place before the objects being linked to create a
|
18489 |
|
|
# shared library.
|
18490 |
|
|
predep_objects=$lt_predep_objects_RC
|
18491 |
|
|
|
18492 |
|
|
# Dependencies to place after the objects being linked to create a
|
18493 |
|
|
# shared library.
|
18494 |
|
|
postdep_objects=$lt_postdep_objects_RC
|
18495 |
|
|
|
18496 |
|
|
# Dependencies to place before the objects being linked to create a
|
18497 |
|
|
# shared library.
|
18498 |
|
|
predeps=$lt_predeps_RC
|
18499 |
|
|
|
18500 |
|
|
# Dependencies to place after the objects being linked to create a
|
18501 |
|
|
# shared library.
|
18502 |
|
|
postdeps=$lt_postdeps_RC
|
18503 |
|
|
|
18504 |
|
|
# The library search path used internally by the compiler when linking
|
18505 |
|
|
# a shared library.
|
18506 |
|
|
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
|
18507 |
|
|
|
18508 |
|
|
# Method to check whether dependent libraries are shared objects.
|
18509 |
|
|
deplibs_check_method=$lt_deplibs_check_method
|
18510 |
|
|
|
18511 |
|
|
# Command to use when deplibs_check_method == file_magic.
|
18512 |
|
|
file_magic_cmd=$lt_file_magic_cmd
|
18513 |
|
|
|
18514 |
|
|
# Flag that allows shared libraries with undefined symbols to be built.
|
18515 |
|
|
allow_undefined_flag=$lt_allow_undefined_flag_RC
|
18516 |
|
|
|
18517 |
|
|
# Flag that forces no undefined symbols.
|
18518 |
|
|
no_undefined_flag=$lt_no_undefined_flag_RC
|
18519 |
|
|
|
18520 |
|
|
# Commands used to finish a libtool library installation in a directory.
|
18521 |
|
|
finish_cmds=$lt_finish_cmds
|
18522 |
|
|
|
18523 |
|
|
# Same as above, but a single script fragment to be evaled but not shown.
|
18524 |
|
|
finish_eval=$lt_finish_eval
|
18525 |
|
|
|
18526 |
|
|
# Take the output of nm and produce a listing of raw symbols and C names.
|
18527 |
|
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
18528 |
|
|
|
18529 |
|
|
# Transform the output of nm in a proper C declaration
|
18530 |
|
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
18531 |
|
|
|
18532 |
|
|
# Transform the output of nm in a C name address pair
|
18533 |
|
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
18534 |
|
|
|
18535 |
|
|
# This is the shared library runtime path variable.
|
18536 |
|
|
runpath_var=$runpath_var
|
18537 |
|
|
|
18538 |
|
|
# This is the shared library path variable.
|
18539 |
|
|
shlibpath_var=$shlibpath_var
|
18540 |
|
|
|
18541 |
|
|
# Is shlibpath searched before the hard-coded library search path?
|
18542 |
|
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
18543 |
|
|
|
18544 |
|
|
# How to hardcode a shared library path into an executable.
|
18545 |
|
|
hardcode_action=$hardcode_action_RC
|
18546 |
|
|
|
18547 |
|
|
# Whether we should hardcode library paths into libraries.
|
18548 |
|
|
hardcode_into_libs=$hardcode_into_libs
|
18549 |
|
|
|
18550 |
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
18551 |
|
|
# This must work even if \$libdir does not exist.
|
18552 |
|
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
|
18553 |
|
|
|
18554 |
|
|
# If ld is used when linking, flag to hardcode \$libdir into
|
18555 |
|
|
# a binary during linking. This must work even if \$libdir does
|
18556 |
|
|
# not exist.
|
18557 |
|
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
|
18558 |
|
|
|
18559 |
|
|
# Whether we need a single -rpath flag with a separated argument.
|
18560 |
|
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
|
18561 |
|
|
|
18562 |
|
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
18563 |
|
|
# resulting binary.
|
18564 |
|
|
hardcode_direct=$hardcode_direct_RC
|
18565 |
|
|
|
18566 |
|
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
18567 |
|
|
# resulting binary.
|
18568 |
|
|
hardcode_minus_L=$hardcode_minus_L_RC
|
18569 |
|
|
|
18570 |
|
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
18571 |
|
|
# the resulting binary.
|
18572 |
|
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
|
18573 |
|
|
|
18574 |
|
|
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
18575 |
|
|
# and all subsequent libraries and executables linked against it.
|
18576 |
|
|
hardcode_automatic=$hardcode_automatic_RC
|
18577 |
|
|
|
18578 |
|
|
# Variables whose values should be saved in libtool wrapper scripts and
|
18579 |
|
|
# restored at relink time.
|
18580 |
|
|
variables_saved_for_relink="$variables_saved_for_relink"
|
18581 |
|
|
|
18582 |
|
|
# Whether libtool must link a program against all its dependency libraries.
|
18583 |
|
|
link_all_deplibs=$link_all_deplibs_RC
|
18584 |
|
|
|
18585 |
|
|
# Compile-time system search path for libraries
|
18586 |
|
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
18587 |
|
|
|
18588 |
|
|
# Run-time system search path for libraries
|
18589 |
|
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
18590 |
|
|
|
18591 |
|
|
# Fix the shell variable \$srcfile for the compiler.
|
18592 |
|
|
fix_srcfile_path=$lt_fix_srcfile_path
|
18593 |
|
|
|
18594 |
|
|
# Set to yes if exported symbols are required.
|
18595 |
|
|
always_export_symbols=$always_export_symbols_RC
|
18596 |
|
|
|
18597 |
|
|
# The commands to list exported symbols.
|
18598 |
|
|
export_symbols_cmds=$lt_export_symbols_cmds_RC
|
18599 |
|
|
|
18600 |
|
|
# The commands to extract the exported symbol list from a shared archive.
|
18601 |
|
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
18602 |
|
|
|
18603 |
|
|
# Symbols that should not be listed in the preloaded symbols.
|
18604 |
|
|
exclude_expsyms=$lt_exclude_expsyms_RC
|
18605 |
|
|
|
18606 |
|
|
# Symbols that must always be exported.
|
18607 |
|
|
include_expsyms=$lt_include_expsyms_RC
|
18608 |
|
|
|
18609 |
|
|
# ### END LIBTOOL TAG CONFIG: $tagname
|
18610 |
|
|
|
18611 |
|
|
__EOF__
|
18612 |
|
|
|
18613 |
|
|
|
18614 |
|
|
else
|
18615 |
|
|
# If there is no Makefile yet, we rely on a make rule to execute
|
18616 |
|
|
# `config.status --recheck' to rerun these tests and create the
|
18617 |
|
|
# libtool script then.
|
18618 |
|
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
18619 |
|
|
if test -f "$ltmain_in"; then
|
18620 |
|
|
test -f Makefile && make "$ltmain"
|
18621 |
|
|
fi
|
18622 |
|
|
fi
|
18623 |
|
|
|
18624 |
|
|
|
18625 |
|
|
ac_ext=c
|
18626 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
18627 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
18628 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
18629 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
18630 |
|
|
|
18631 |
|
|
CC="$lt_save_CC"
|
18632 |
|
|
|
18633 |
|
|
;;
|
18634 |
|
|
|
18635 |
|
|
*)
|
18636 |
|
|
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
|
18637 |
|
|
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
|
18638 |
|
|
{ (exit 1); exit 1; }; }
|
18639 |
|
|
;;
|
18640 |
|
|
esac
|
18641 |
|
|
|
18642 |
|
|
# Append the new tag name to the list of available tags.
|
18643 |
|
|
if test -n "$tagname" ; then
|
18644 |
|
|
available_tags="$available_tags $tagname"
|
18645 |
|
|
fi
|
18646 |
|
|
fi
|
18647 |
|
|
done
|
18648 |
|
|
IFS="$lt_save_ifs"
|
18649 |
|
|
|
18650 |
|
|
# Now substitute the updated list of available tags.
|
18651 |
|
|
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
|
18652 |
|
|
mv "${ofile}T" "$ofile"
|
18653 |
|
|
chmod +x "$ofile"
|
18654 |
|
|
else
|
18655 |
|
|
rm -f "${ofile}T"
|
18656 |
|
|
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
|
18657 |
|
|
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
|
18658 |
|
|
{ (exit 1); exit 1; }; }
|
18659 |
|
|
fi
|
18660 |
|
|
fi
|
18661 |
|
|
|
18662 |
|
|
|
18663 |
|
|
|
18664 |
|
|
# This can be used to rebuild libtool when needed
|
18665 |
|
|
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
18666 |
|
|
|
18667 |
|
|
# Always use our own libtool.
|
18668 |
|
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
18669 |
|
|
|
18670 |
|
|
# Prevent multiple expansion
|
18671 |
|
|
|
18672 |
|
|
|
18673 |
|
|
|
18674 |
|
|
|
18675 |
|
|
|
18676 |
|
|
|
18677 |
|
|
|
18678 |
|
|
|
18679 |
|
|
|
18680 |
|
|
|
18681 |
|
|
|
18682 |
|
|
|
18683 |
|
|
|
18684 |
|
|
|
18685 |
|
|
|
18686 |
|
|
|
18687 |
|
|
|
18688 |
|
|
|
18689 |
|
|
|
18690 |
|
|
|
18691 |
|
|
am__api_version='1.10'
|
18692 |
|
|
|
18693 |
|
|
# Find a good install program. We prefer a C program (faster),
|
18694 |
|
|
# so one script is as good as another. But avoid the broken or
|
18695 |
|
|
# incompatible versions:
|
18696 |
|
|
# SysV /etc/install, /usr/sbin/install
|
18697 |
|
|
# SunOS /usr/etc/install
|
18698 |
|
|
# IRIX /sbin/install
|
18699 |
|
|
# AIX /bin/install
|
18700 |
|
|
# AmigaOS /C/install, which installs bootblocks on floppy discs
|
18701 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
18702 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
18703 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
18704 |
|
|
# OS/2's system install, which has a completely different semantic
|
18705 |
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
18706 |
|
|
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
18707 |
|
|
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
18708 |
|
|
if test -z "$INSTALL"; then
|
18709 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
18710 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
18711 |
|
|
else
|
18712 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
18713 |
|
|
for as_dir in $PATH
|
18714 |
|
|
do
|
18715 |
|
|
IFS=$as_save_IFS
|
18716 |
|
|
test -z "$as_dir" && as_dir=.
|
18717 |
|
|
# Account for people who put trailing slashes in PATH elements.
|
18718 |
|
|
case $as_dir/ in
|
18719 |
|
|
./ | .// | /cC/* | \
|
18720 |
|
|
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
18721 |
|
|
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
18722 |
|
|
/usr/ucb/* ) ;;
|
18723 |
|
|
*)
|
18724 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
18725 |
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
18726 |
|
|
# by default.
|
18727 |
|
|
for ac_prog in ginstall scoinst install; do
|
18728 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
18729 |
|
|
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
18730 |
|
|
if test $ac_prog = install &&
|
18731 |
|
|
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
18732 |
|
|
# AIX install. It has an incompatible calling convention.
|
18733 |
|
|
:
|
18734 |
|
|
elif test $ac_prog = install &&
|
18735 |
|
|
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
18736 |
|
|
# program-specific install script used by HP pwplus--don't use.
|
18737 |
|
|
:
|
18738 |
|
|
else
|
18739 |
|
|
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
18740 |
|
|
break 3
|
18741 |
|
|
fi
|
18742 |
|
|
fi
|
18743 |
|
|
done
|
18744 |
|
|
done
|
18745 |
|
|
;;
|
18746 |
|
|
esac
|
18747 |
|
|
done
|
18748 |
|
|
IFS=$as_save_IFS
|
18749 |
|
|
|
18750 |
|
|
|
18751 |
|
|
fi
|
18752 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
18753 |
|
|
INSTALL=$ac_cv_path_install
|
18754 |
|
|
else
|
18755 |
|
|
# As a last resort, use the slow shell script. Don't cache a
|
18756 |
|
|
# value for INSTALL within a source directory, because that will
|
18757 |
|
|
# break other packages using the cache if that directory is
|
18758 |
|
|
# removed, or if the value is a relative name.
|
18759 |
|
|
INSTALL=$ac_install_sh
|
18760 |
|
|
fi
|
18761 |
|
|
fi
|
18762 |
|
|
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
|
18763 |
|
|
echo "${ECHO_T}$INSTALL" >&6; }
|
18764 |
|
|
|
18765 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
18766 |
|
|
# It thinks the first close brace ends the variable substitution.
|
18767 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
18768 |
|
|
|
18769 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
18770 |
|
|
|
18771 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
18772 |
|
|
|
18773 |
|
|
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
|
18774 |
|
|
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
|
18775 |
|
|
# Just in case
|
18776 |
|
|
sleep 1
|
18777 |
|
|
echo timestamp > conftest.file
|
18778 |
|
|
# Do `set' in a subshell so we don't clobber the current shell's
|
18779 |
|
|
# arguments. Must try -L first in case configure is actually a
|
18780 |
|
|
# symlink; some systems play weird games with the mod time of symlinks
|
18781 |
|
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
18782 |
|
|
# directory).
|
18783 |
|
|
if (
|
18784 |
|
|
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
18785 |
|
|
if test "$*" = "X"; then
|
18786 |
|
|
# -L didn't work.
|
18787 |
|
|
set X `ls -t $srcdir/configure conftest.file`
|
18788 |
|
|
fi
|
18789 |
|
|
rm -f conftest.file
|
18790 |
|
|
if test "$*" != "X $srcdir/configure conftest.file" \
|
18791 |
|
|
&& test "$*" != "X conftest.file $srcdir/configure"; then
|
18792 |
|
|
|
18793 |
|
|
# If neither matched, then we have a broken ls. This can happen
|
18794 |
|
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
18795 |
|
|
# broken ls alias from the environment. This has actually
|
18796 |
|
|
# happened. Such a system could not be considered "sane".
|
18797 |
|
|
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
|
18798 |
|
|
alias in your environment" >&5
|
18799 |
|
|
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
|
18800 |
|
|
alias in your environment" >&2;}
|
18801 |
|
|
{ (exit 1); exit 1; }; }
|
18802 |
|
|
fi
|
18803 |
|
|
|
18804 |
|
|
test "$2" = conftest.file
|
18805 |
|
|
)
|
18806 |
|
|
then
|
18807 |
|
|
# Ok.
|
18808 |
|
|
:
|
18809 |
|
|
else
|
18810 |
|
|
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
|
18811 |
|
|
Check your system clock" >&5
|
18812 |
|
|
echo "$as_me: error: newly created file is older than distributed files!
|
18813 |
|
|
Check your system clock" >&2;}
|
18814 |
|
|
{ (exit 1); exit 1; }; }
|
18815 |
|
|
fi
|
18816 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
18817 |
|
|
echo "${ECHO_T}yes" >&6; }
|
18818 |
|
|
test "$program_prefix" != NONE &&
|
18819 |
|
|
program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
18820 |
|
|
# Use a double $ so make ignores it.
|
18821 |
|
|
test "$program_suffix" != NONE &&
|
18822 |
|
|
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
18823 |
|
|
# Double any \ or $. echo might interpret backslashes.
|
18824 |
|
|
# By default was `s,x,x', remove it if useless.
|
18825 |
|
|
cat <<\_ACEOF >conftest.sed
|
18826 |
|
|
s/[\\$]/&&/g;s/;s,x,x,$//
|
18827 |
|
|
_ACEOF
|
18828 |
|
|
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
18829 |
|
|
rm -f conftest.sed
|
18830 |
|
|
|
18831 |
|
|
# expand $ac_aux_dir to an absolute path
|
18832 |
|
|
am_aux_dir=`cd $ac_aux_dir && pwd`
|
18833 |
|
|
|
18834 |
|
|
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
18835 |
|
|
# Use eval to expand $SHELL
|
18836 |
|
|
if eval "$MISSING --run true"; then
|
18837 |
|
|
am_missing_run="$MISSING --run "
|
18838 |
|
|
else
|
18839 |
|
|
am_missing_run=
|
18840 |
|
|
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
|
18841 |
|
|
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
18842 |
|
|
fi
|
18843 |
|
|
|
18844 |
|
|
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
|
18845 |
|
|
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
|
18846 |
|
|
if test -z "$MKDIR_P"; then
|
18847 |
|
|
if test "${ac_cv_path_mkdir+set}" = set; then
|
18848 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
18849 |
|
|
else
|
18850 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
18851 |
|
|
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
18852 |
|
|
do
|
18853 |
|
|
IFS=$as_save_IFS
|
18854 |
|
|
test -z "$as_dir" && as_dir=.
|
18855 |
|
|
for ac_prog in mkdir gmkdir; do
|
18856 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
18857 |
|
|
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
|
18858 |
|
|
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
18859 |
|
|
'mkdir (GNU coreutils) '* | \
|
18860 |
|
|
'mkdir (coreutils) '* | \
|
18861 |
|
|
'mkdir (fileutils) '4.1*)
|
18862 |
|
|
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
18863 |
|
|
break 3;;
|
18864 |
|
|
esac
|
18865 |
|
|
done
|
18866 |
|
|
done
|
18867 |
|
|
done
|
18868 |
|
|
IFS=$as_save_IFS
|
18869 |
|
|
|
18870 |
|
|
fi
|
18871 |
|
|
|
18872 |
|
|
if test "${ac_cv_path_mkdir+set}" = set; then
|
18873 |
|
|
MKDIR_P="$ac_cv_path_mkdir -p"
|
18874 |
|
|
else
|
18875 |
|
|
# As a last resort, use the slow shell script. Don't cache a
|
18876 |
|
|
# value for MKDIR_P within a source directory, because that will
|
18877 |
|
|
# break other packages using the cache if that directory is
|
18878 |
|
|
# removed, or if the value is a relative name.
|
18879 |
|
|
test -d ./--version && rmdir ./--version
|
18880 |
|
|
MKDIR_P="$ac_install_sh -d"
|
18881 |
|
|
fi
|
18882 |
|
|
fi
|
18883 |
|
|
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
|
18884 |
|
|
echo "${ECHO_T}$MKDIR_P" >&6; }
|
18885 |
|
|
|
18886 |
|
|
mkdir_p="$MKDIR_P"
|
18887 |
|
|
case $mkdir_p in
|
18888 |
|
|
[\\/$]* | ?:[\\/]*) ;;
|
18889 |
|
|
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
18890 |
|
|
esac
|
18891 |
|
|
|
18892 |
|
|
for ac_prog in gawk mawk nawk awk
|
18893 |
|
|
do
|
18894 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
18895 |
|
|
set dummy $ac_prog; ac_word=$2
|
18896 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
18897 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
18898 |
|
|
if test "${ac_cv_prog_AWK+set}" = set; then
|
18899 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
18900 |
|
|
else
|
18901 |
|
|
if test -n "$AWK"; then
|
18902 |
|
|
ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
18903 |
|
|
else
|
18904 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
18905 |
|
|
for as_dir in $PATH
|
18906 |
|
|
do
|
18907 |
|
|
IFS=$as_save_IFS
|
18908 |
|
|
test -z "$as_dir" && as_dir=.
|
18909 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
18910 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
18911 |
|
|
ac_cv_prog_AWK="$ac_prog"
|
18912 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
18913 |
|
|
break 2
|
18914 |
|
|
fi
|
18915 |
|
|
done
|
18916 |
|
|
done
|
18917 |
|
|
IFS=$as_save_IFS
|
18918 |
|
|
|
18919 |
|
|
fi
|
18920 |
|
|
fi
|
18921 |
|
|
AWK=$ac_cv_prog_AWK
|
18922 |
|
|
if test -n "$AWK"; then
|
18923 |
|
|
{ echo "$as_me:$LINENO: result: $AWK" >&5
|
18924 |
|
|
echo "${ECHO_T}$AWK" >&6; }
|
18925 |
|
|
else
|
18926 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
18927 |
|
|
echo "${ECHO_T}no" >&6; }
|
18928 |
|
|
fi
|
18929 |
|
|
|
18930 |
|
|
|
18931 |
|
|
test -n "$AWK" && break
|
18932 |
|
|
done
|
18933 |
|
|
|
18934 |
|
|
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
18935 |
|
|
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
|
18936 |
|
|
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
18937 |
|
|
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
|
18938 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
18939 |
|
|
else
|
18940 |
|
|
cat >conftest.make <<\_ACEOF
|
18941 |
|
|
SHELL = /bin/sh
|
18942 |
|
|
all:
|
18943 |
|
|
@echo '@@@%%%=$(MAKE)=@@@%%%'
|
18944 |
|
|
_ACEOF
|
18945 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
18946 |
|
|
case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
18947 |
|
|
*@@@%%%=?*=@@@%%%*)
|
18948 |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes;;
|
18949 |
|
|
*)
|
18950 |
|
|
eval ac_cv_prog_make_${ac_make}_set=no;;
|
18951 |
|
|
esac
|
18952 |
|
|
rm -f conftest.make
|
18953 |
|
|
fi
|
18954 |
|
|
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
18955 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
18956 |
|
|
echo "${ECHO_T}yes" >&6; }
|
18957 |
|
|
SET_MAKE=
|
18958 |
|
|
else
|
18959 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
18960 |
|
|
echo "${ECHO_T}no" >&6; }
|
18961 |
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
18962 |
|
|
fi
|
18963 |
|
|
|
18964 |
|
|
rm -rf .tst 2>/dev/null
|
18965 |
|
|
mkdir .tst 2>/dev/null
|
18966 |
|
|
if test -d .tst; then
|
18967 |
|
|
am__leading_dot=.
|
18968 |
|
|
else
|
18969 |
|
|
am__leading_dot=_
|
18970 |
|
|
fi
|
18971 |
|
|
rmdir .tst 2>/dev/null
|
18972 |
|
|
|
18973 |
|
|
DEPDIR="${am__leading_dot}deps"
|
18974 |
|
|
|
18975 |
|
|
ac_config_commands="$ac_config_commands depfiles"
|
18976 |
|
|
|
18977 |
|
|
|
18978 |
|
|
am_make=${MAKE-make}
|
18979 |
|
|
cat > confinc << 'END'
|
18980 |
|
|
am__doit:
|
18981 |
|
|
@echo done
|
18982 |
|
|
.PHONY: am__doit
|
18983 |
|
|
END
|
18984 |
|
|
# If we don't find an include directive, just comment out the code.
|
18985 |
|
|
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
|
18986 |
|
|
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
|
18987 |
|
|
am__include="#"
|
18988 |
|
|
am__quote=
|
18989 |
|
|
_am_result=none
|
18990 |
|
|
# First try GNU make style include.
|
18991 |
|
|
echo "include confinc" > confmf
|
18992 |
|
|
# We grep out `Entering directory' and `Leaving directory'
|
18993 |
|
|
# messages which can occur if `w' ends up in MAKEFLAGS.
|
18994 |
|
|
# In particular we don't look at `^make:' because GNU make might
|
18995 |
|
|
# be invoked under some other name (usually "gmake"), in which
|
18996 |
|
|
# case it prints its new name instead of `make'.
|
18997 |
|
|
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
18998 |
|
|
am__include=include
|
18999 |
|
|
am__quote=
|
19000 |
|
|
_am_result=GNU
|
19001 |
|
|
fi
|
19002 |
|
|
# Now try BSD make style include.
|
19003 |
|
|
if test "$am__include" = "#"; then
|
19004 |
|
|
echo '.include "confinc"' > confmf
|
19005 |
|
|
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
19006 |
|
|
am__include=.include
|
19007 |
|
|
am__quote="\""
|
19008 |
|
|
_am_result=BSD
|
19009 |
|
|
fi
|
19010 |
|
|
fi
|
19011 |
|
|
|
19012 |
|
|
|
19013 |
|
|
{ echo "$as_me:$LINENO: result: $_am_result" >&5
|
19014 |
|
|
echo "${ECHO_T}$_am_result" >&6; }
|
19015 |
|
|
rm -f confinc confmf
|
19016 |
|
|
|
19017 |
|
|
# Check whether --enable-dependency-tracking was given.
|
19018 |
|
|
if test "${enable_dependency_tracking+set}" = set; then
|
19019 |
|
|
enableval=$enable_dependency_tracking;
|
19020 |
|
|
fi
|
19021 |
|
|
|
19022 |
|
|
if test "x$enable_dependency_tracking" != xno; then
|
19023 |
|
|
am_depcomp="$ac_aux_dir/depcomp"
|
19024 |
|
|
AMDEPBACKSLASH='\'
|
19025 |
|
|
fi
|
19026 |
|
|
if test "x$enable_dependency_tracking" != xno; then
|
19027 |
|
|
AMDEP_TRUE=
|
19028 |
|
|
AMDEP_FALSE='#'
|
19029 |
|
|
else
|
19030 |
|
|
AMDEP_TRUE='#'
|
19031 |
|
|
AMDEP_FALSE=
|
19032 |
|
|
fi
|
19033 |
|
|
|
19034 |
|
|
|
19035 |
|
|
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
19036 |
|
|
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
19037 |
|
|
# is not polluted with repeated "-I."
|
19038 |
|
|
am__isrc=' -I$(srcdir)'
|
19039 |
|
|
# test to see if srcdir already configured
|
19040 |
|
|
if test -f $srcdir/config.status; then
|
19041 |
|
|
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
|
19042 |
|
|
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
|
19043 |
|
|
{ (exit 1); exit 1; }; }
|
19044 |
|
|
fi
|
19045 |
|
|
fi
|
19046 |
|
|
|
19047 |
|
|
# test whether we have cygpath
|
19048 |
|
|
if test -z "$CYGPATH_W"; then
|
19049 |
|
|
if (cygpath --version) >/dev/null 2>/dev/null; then
|
19050 |
|
|
CYGPATH_W='cygpath -w'
|
19051 |
|
|
else
|
19052 |
|
|
CYGPATH_W=echo
|
19053 |
|
|
fi
|
19054 |
|
|
fi
|
19055 |
|
|
|
19056 |
|
|
|
19057 |
|
|
# Define the identity of the package.
|
19058 |
|
|
PACKAGE='or1ksim'
|
19059 |
|
|
VERSION='0.3.0rc1'
|
19060 |
|
|
|
19061 |
|
|
|
19062 |
|
|
cat >>confdefs.h <<_ACEOF
|
19063 |
|
|
@%:@define PACKAGE "$PACKAGE"
|
19064 |
|
|
_ACEOF
|
19065 |
|
|
|
19066 |
|
|
|
19067 |
|
|
cat >>confdefs.h <<_ACEOF
|
19068 |
|
|
@%:@define VERSION "$VERSION"
|
19069 |
|
|
_ACEOF
|
19070 |
|
|
|
19071 |
|
|
# Some tools Automake needs.
|
19072 |
|
|
|
19073 |
|
|
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
19074 |
|
|
|
19075 |
|
|
|
19076 |
|
|
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
19077 |
|
|
|
19078 |
|
|
|
19079 |
|
|
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
19080 |
|
|
|
19081 |
|
|
|
19082 |
|
|
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
19083 |
|
|
|
19084 |
|
|
|
19085 |
|
|
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
19086 |
|
|
|
19087 |
|
|
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
|
19088 |
|
|
|
19089 |
|
|
# Installed binaries are usually stripped using `strip' when the user
|
19090 |
|
|
# run `make install-strip'. However `strip' might not be the right
|
19091 |
|
|
# tool to use in cross-compilation environments, therefore Automake
|
19092 |
|
|
# will honor the `STRIP' environment variable to overrule this program.
|
19093 |
|
|
if test "$cross_compiling" != no; then
|
19094 |
|
|
if test -n "$ac_tool_prefix"; then
|
19095 |
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
19096 |
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
19097 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19098 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19099 |
|
|
if test "${ac_cv_prog_STRIP+set}" = set; then
|
19100 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19101 |
|
|
else
|
19102 |
|
|
if test -n "$STRIP"; then
|
19103 |
|
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
19104 |
|
|
else
|
19105 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19106 |
|
|
for as_dir in $PATH
|
19107 |
|
|
do
|
19108 |
|
|
IFS=$as_save_IFS
|
19109 |
|
|
test -z "$as_dir" && as_dir=.
|
19110 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19111 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19112 |
|
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
19113 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19114 |
|
|
break 2
|
19115 |
|
|
fi
|
19116 |
|
|
done
|
19117 |
|
|
done
|
19118 |
|
|
IFS=$as_save_IFS
|
19119 |
|
|
|
19120 |
|
|
fi
|
19121 |
|
|
fi
|
19122 |
|
|
STRIP=$ac_cv_prog_STRIP
|
19123 |
|
|
if test -n "$STRIP"; then
|
19124 |
|
|
{ echo "$as_me:$LINENO: result: $STRIP" >&5
|
19125 |
|
|
echo "${ECHO_T}$STRIP" >&6; }
|
19126 |
|
|
else
|
19127 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19128 |
|
|
echo "${ECHO_T}no" >&6; }
|
19129 |
|
|
fi
|
19130 |
|
|
|
19131 |
|
|
|
19132 |
|
|
fi
|
19133 |
|
|
if test -z "$ac_cv_prog_STRIP"; then
|
19134 |
|
|
ac_ct_STRIP=$STRIP
|
19135 |
|
|
# Extract the first word of "strip", so it can be a program name with args.
|
19136 |
|
|
set dummy strip; ac_word=$2
|
19137 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19138 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19139 |
|
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
19140 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19141 |
|
|
else
|
19142 |
|
|
if test -n "$ac_ct_STRIP"; then
|
19143 |
|
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
19144 |
|
|
else
|
19145 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19146 |
|
|
for as_dir in $PATH
|
19147 |
|
|
do
|
19148 |
|
|
IFS=$as_save_IFS
|
19149 |
|
|
test -z "$as_dir" && as_dir=.
|
19150 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19151 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19152 |
|
|
ac_cv_prog_ac_ct_STRIP="strip"
|
19153 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19154 |
|
|
break 2
|
19155 |
|
|
fi
|
19156 |
|
|
done
|
19157 |
|
|
done
|
19158 |
|
|
IFS=$as_save_IFS
|
19159 |
|
|
|
19160 |
|
|
fi
|
19161 |
|
|
fi
|
19162 |
|
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
19163 |
|
|
if test -n "$ac_ct_STRIP"; then
|
19164 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
19165 |
|
|
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
|
19166 |
|
|
else
|
19167 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19168 |
|
|
echo "${ECHO_T}no" >&6; }
|
19169 |
|
|
fi
|
19170 |
|
|
|
19171 |
|
|
if test "x$ac_ct_STRIP" = x; then
|
19172 |
|
|
STRIP=":"
|
19173 |
|
|
else
|
19174 |
|
|
case $cross_compiling:$ac_tool_warned in
|
19175 |
|
|
yes:)
|
19176 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
19177 |
|
|
whose name does not start with the host triplet. If you think this
|
19178 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
19179 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
19180 |
|
|
whose name does not start with the host triplet. If you think this
|
19181 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
19182 |
|
|
ac_tool_warned=yes ;;
|
19183 |
|
|
esac
|
19184 |
|
|
STRIP=$ac_ct_STRIP
|
19185 |
|
|
fi
|
19186 |
|
|
else
|
19187 |
|
|
STRIP="$ac_cv_prog_STRIP"
|
19188 |
|
|
fi
|
19189 |
|
|
|
19190 |
|
|
fi
|
19191 |
|
|
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
19192 |
|
|
|
19193 |
|
|
# We need awk for the "check" target. The system "awk" is bad on
|
19194 |
|
|
# some platforms.
|
19195 |
|
|
# Always define AMTAR for backward compatibility.
|
19196 |
|
|
|
19197 |
|
|
AMTAR=${AMTAR-"${am_missing_run}tar"}
|
19198 |
|
|
|
19199 |
|
|
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
|
19200 |
|
|
|
19201 |
|
|
|
19202 |
|
|
|
19203 |
|
|
|
19204 |
|
|
depcc="$CC" am_compiler_list=
|
19205 |
|
|
|
19206 |
|
|
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
19207 |
|
|
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
|
19208 |
|
|
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
|
19209 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19210 |
|
|
else
|
19211 |
|
|
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
19212 |
|
|
# We make a subdir and do the tests there. Otherwise we can end up
|
19213 |
|
|
# making bogus files that we don't know about and never remove. For
|
19214 |
|
|
# instance it was reported that on HP-UX the gcc test will end up
|
19215 |
|
|
# making a dummy file named `D' -- because `-MD' means `put the output
|
19216 |
|
|
# in D'.
|
19217 |
|
|
mkdir conftest.dir
|
19218 |
|
|
# Copy depcomp to subdir because otherwise we won't find it if we're
|
19219 |
|
|
# using a relative directory.
|
19220 |
|
|
cp "$am_depcomp" conftest.dir
|
19221 |
|
|
cd conftest.dir
|
19222 |
|
|
# We will build objects and dependencies in a subdirectory because
|
19223 |
|
|
# it helps to detect inapplicable dependency modes. For instance
|
19224 |
|
|
# both Tru64's cc and ICC support -MD to output dependencies as a
|
19225 |
|
|
# side effect of compilation, but ICC will put the dependencies in
|
19226 |
|
|
# the current directory while Tru64 will put them in the object
|
19227 |
|
|
# directory.
|
19228 |
|
|
mkdir sub
|
19229 |
|
|
|
19230 |
|
|
am_cv_CC_dependencies_compiler_type=none
|
19231 |
|
|
if test "$am_compiler_list" = ""; then
|
19232 |
|
|
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
19233 |
|
|
fi
|
19234 |
|
|
for depmode in $am_compiler_list; do
|
19235 |
|
|
# Setup a source with many dependencies, because some compilers
|
19236 |
|
|
# like to wrap large dependency lists on column 80 (with \), and
|
19237 |
|
|
# we should not choose a depcomp mode which is confused by this.
|
19238 |
|
|
#
|
19239 |
|
|
# We need to recreate these files for each test, as the compiler may
|
19240 |
|
|
# overwrite some of them when testing with obscure command lines.
|
19241 |
|
|
# This happens at least with the AIX C compiler.
|
19242 |
|
|
: > sub/conftest.c
|
19243 |
|
|
for i in 1 2 3 4 5 6; do
|
19244 |
|
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
19245 |
|
|
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
19246 |
|
|
# Solaris 8's {/usr,}/bin/sh.
|
19247 |
|
|
touch sub/conftst$i.h
|
19248 |
|
|
done
|
19249 |
|
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
19250 |
|
|
|
19251 |
|
|
case $depmode in
|
19252 |
|
|
nosideeffect)
|
19253 |
|
|
# after this tag, mechanisms are not by side-effect, so they'll
|
19254 |
|
|
# only be used when explicitly requested
|
19255 |
|
|
if test "x$enable_dependency_tracking" = xyes; then
|
19256 |
|
|
continue
|
19257 |
|
|
else
|
19258 |
|
|
break
|
19259 |
|
|
fi
|
19260 |
|
|
;;
|
19261 |
|
|
none) break ;;
|
19262 |
|
|
esac
|
19263 |
|
|
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
19264 |
|
|
# mode. It turns out that the SunPro C++ compiler does not properly
|
19265 |
|
|
# handle `-M -o', and we need to detect this.
|
19266 |
|
|
if depmode=$depmode \
|
19267 |
|
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
19268 |
|
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
19269 |
|
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
19270 |
|
|
>/dev/null 2>conftest.err &&
|
19271 |
|
|
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
19272 |
|
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
19273 |
|
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
19274 |
|
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
19275 |
|
|
# icc doesn't choke on unknown options, it will just issue warnings
|
19276 |
|
|
# or remarks (even with -Werror). So we grep stderr for any message
|
19277 |
|
|
# that says an option was ignored or not supported.
|
19278 |
|
|
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
19279 |
|
|
# icc: Command line warning: ignoring option '-M'; no argument required
|
19280 |
|
|
# The diagnosis changed in icc 8.0:
|
19281 |
|
|
# icc: Command line remark: option '-MP' not supported
|
19282 |
|
|
if (grep 'ignoring option' conftest.err ||
|
19283 |
|
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
19284 |
|
|
am_cv_CC_dependencies_compiler_type=$depmode
|
19285 |
|
|
break
|
19286 |
|
|
fi
|
19287 |
|
|
fi
|
19288 |
|
|
done
|
19289 |
|
|
|
19290 |
|
|
cd ..
|
19291 |
|
|
rm -rf conftest.dir
|
19292 |
|
|
else
|
19293 |
|
|
am_cv_CC_dependencies_compiler_type=none
|
19294 |
|
|
fi
|
19295 |
|
|
|
19296 |
|
|
fi
|
19297 |
|
|
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
|
19298 |
|
|
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
|
19299 |
|
|
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
19300 |
|
|
|
19301 |
|
|
if
|
19302 |
|
|
test "x$enable_dependency_tracking" != xno \
|
19303 |
|
|
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
19304 |
|
|
am__fastdepCC_TRUE=
|
19305 |
|
|
am__fastdepCC_FALSE='#'
|
19306 |
|
|
else
|
19307 |
|
|
am__fastdepCC_TRUE='#'
|
19308 |
|
|
am__fastdepCC_FALSE=
|
19309 |
|
|
fi
|
19310 |
|
|
|
19311 |
|
|
|
19312 |
|
|
depcc="$CXX" am_compiler_list=
|
19313 |
|
|
|
19314 |
|
|
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
19315 |
|
|
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
|
19316 |
|
|
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
|
19317 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19318 |
|
|
else
|
19319 |
|
|
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
19320 |
|
|
# We make a subdir and do the tests there. Otherwise we can end up
|
19321 |
|
|
# making bogus files that we don't know about and never remove. For
|
19322 |
|
|
# instance it was reported that on HP-UX the gcc test will end up
|
19323 |
|
|
# making a dummy file named `D' -- because `-MD' means `put the output
|
19324 |
|
|
# in D'.
|
19325 |
|
|
mkdir conftest.dir
|
19326 |
|
|
# Copy depcomp to subdir because otherwise we won't find it if we're
|
19327 |
|
|
# using a relative directory.
|
19328 |
|
|
cp "$am_depcomp" conftest.dir
|
19329 |
|
|
cd conftest.dir
|
19330 |
|
|
# We will build objects and dependencies in a subdirectory because
|
19331 |
|
|
# it helps to detect inapplicable dependency modes. For instance
|
19332 |
|
|
# both Tru64's cc and ICC support -MD to output dependencies as a
|
19333 |
|
|
# side effect of compilation, but ICC will put the dependencies in
|
19334 |
|
|
# the current directory while Tru64 will put them in the object
|
19335 |
|
|
# directory.
|
19336 |
|
|
mkdir sub
|
19337 |
|
|
|
19338 |
|
|
am_cv_CXX_dependencies_compiler_type=none
|
19339 |
|
|
if test "$am_compiler_list" = ""; then
|
19340 |
|
|
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
19341 |
|
|
fi
|
19342 |
|
|
for depmode in $am_compiler_list; do
|
19343 |
|
|
# Setup a source with many dependencies, because some compilers
|
19344 |
|
|
# like to wrap large dependency lists on column 80 (with \), and
|
19345 |
|
|
# we should not choose a depcomp mode which is confused by this.
|
19346 |
|
|
#
|
19347 |
|
|
# We need to recreate these files for each test, as the compiler may
|
19348 |
|
|
# overwrite some of them when testing with obscure command lines.
|
19349 |
|
|
# This happens at least with the AIX C compiler.
|
19350 |
|
|
: > sub/conftest.c
|
19351 |
|
|
for i in 1 2 3 4 5 6; do
|
19352 |
|
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
19353 |
|
|
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
19354 |
|
|
# Solaris 8's {/usr,}/bin/sh.
|
19355 |
|
|
touch sub/conftst$i.h
|
19356 |
|
|
done
|
19357 |
|
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
19358 |
|
|
|
19359 |
|
|
case $depmode in
|
19360 |
|
|
nosideeffect)
|
19361 |
|
|
# after this tag, mechanisms are not by side-effect, so they'll
|
19362 |
|
|
# only be used when explicitly requested
|
19363 |
|
|
if test "x$enable_dependency_tracking" = xyes; then
|
19364 |
|
|
continue
|
19365 |
|
|
else
|
19366 |
|
|
break
|
19367 |
|
|
fi
|
19368 |
|
|
;;
|
19369 |
|
|
none) break ;;
|
19370 |
|
|
esac
|
19371 |
|
|
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
19372 |
|
|
# mode. It turns out that the SunPro C++ compiler does not properly
|
19373 |
|
|
# handle `-M -o', and we need to detect this.
|
19374 |
|
|
if depmode=$depmode \
|
19375 |
|
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
19376 |
|
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
19377 |
|
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
19378 |
|
|
>/dev/null 2>conftest.err &&
|
19379 |
|
|
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
19380 |
|
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
19381 |
|
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
19382 |
|
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
19383 |
|
|
# icc doesn't choke on unknown options, it will just issue warnings
|
19384 |
|
|
# or remarks (even with -Werror). So we grep stderr for any message
|
19385 |
|
|
# that says an option was ignored or not supported.
|
19386 |
|
|
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
19387 |
|
|
# icc: Command line warning: ignoring option '-M'; no argument required
|
19388 |
|
|
# The diagnosis changed in icc 8.0:
|
19389 |
|
|
# icc: Command line remark: option '-MP' not supported
|
19390 |
|
|
if (grep 'ignoring option' conftest.err ||
|
19391 |
|
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
19392 |
|
|
am_cv_CXX_dependencies_compiler_type=$depmode
|
19393 |
|
|
break
|
19394 |
|
|
fi
|
19395 |
|
|
fi
|
19396 |
|
|
done
|
19397 |
|
|
|
19398 |
|
|
cd ..
|
19399 |
|
|
rm -rf conftest.dir
|
19400 |
|
|
else
|
19401 |
|
|
am_cv_CXX_dependencies_compiler_type=none
|
19402 |
|
|
fi
|
19403 |
|
|
|
19404 |
|
|
fi
|
19405 |
|
|
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
|
19406 |
|
|
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
|
19407 |
|
|
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
|
19408 |
|
|
|
19409 |
|
|
if
|
19410 |
|
|
test "x$enable_dependency_tracking" != xno \
|
19411 |
|
|
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
|
19412 |
|
|
am__fastdepCXX_TRUE=
|
19413 |
|
|
am__fastdepCXX_FALSE='#'
|
19414 |
|
|
else
|
19415 |
|
|
am__fastdepCXX_TRUE='#'
|
19416 |
|
|
am__fastdepCXX_FALSE=
|
19417 |
|
|
fi
|
19418 |
|
|
|
19419 |
|
|
|
19420 |
|
|
|
19421 |
|
|
ac_config_headers="$ac_config_headers config.h"
|
19422 |
|
|
|
19423 |
|
|
|
19424 |
|
|
|
19425 |
|
|
|
19426 |
|
|
# make sure we are using a recent autoconf version
|
19427 |
|
|
|
19428 |
|
|
|
19429 |
|
|
# yuck
|
19430 |
|
|
case "$target_cpu" in
|
19431 |
|
|
or32*) CPU_ARCH=or32;
|
19432 |
|
|
ARCH_ISA=OR32;
|
19433 |
|
|
|
19434 |
|
|
cat >>confdefs.h <<\_ACEOF
|
19435 |
|
|
@%:@define OR32_TYPES 1
|
19436 |
|
|
_ACEOF
|
19437 |
|
|
;;
|
19438 |
|
|
dlx*) CPU_ARCH=dlx;
|
19439 |
|
|
ARCH_ISA=DLX;;
|
19440 |
|
|
*) { echo "$as_me:$LINENO: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
|
19441 |
|
|
echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
|
19442 |
|
|
CPU_ARCH=or32;
|
19443 |
|
|
ARCH_ISA=OR32;
|
19444 |
|
|
|
19445 |
|
|
cat >>confdefs.h <<\_ACEOF
|
19446 |
|
|
@%:@define OR32_TYPES 1
|
19447 |
|
|
_ACEOF
|
19448 |
|
|
;;
|
19449 |
|
|
esac
|
19450 |
|
|
|
19451 |
|
|
|
19452 |
|
|
|
19453 |
|
|
# We want these before the checks, so the checks can modify their values.
|
19454 |
|
|
test -z "$CFLAGS" && CFLAGS="-g -Wall" auto_cflags=1
|
19455 |
|
|
|
19456 |
|
|
ac_ext=c
|
19457 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
19458 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
19459 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
19460 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
19461 |
|
|
if test -n "$ac_tool_prefix"; then
|
19462 |
|
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
19463 |
|
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
19464 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19465 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19466 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
19467 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19468 |
|
|
else
|
19469 |
|
|
if test -n "$CC"; then
|
19470 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
19471 |
|
|
else
|
19472 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19473 |
|
|
for as_dir in $PATH
|
19474 |
|
|
do
|
19475 |
|
|
IFS=$as_save_IFS
|
19476 |
|
|
test -z "$as_dir" && as_dir=.
|
19477 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19478 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19479 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
19480 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19481 |
|
|
break 2
|
19482 |
|
|
fi
|
19483 |
|
|
done
|
19484 |
|
|
done
|
19485 |
|
|
IFS=$as_save_IFS
|
19486 |
|
|
|
19487 |
|
|
fi
|
19488 |
|
|
fi
|
19489 |
|
|
CC=$ac_cv_prog_CC
|
19490 |
|
|
if test -n "$CC"; then
|
19491 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
19492 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
19493 |
|
|
else
|
19494 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19495 |
|
|
echo "${ECHO_T}no" >&6; }
|
19496 |
|
|
fi
|
19497 |
|
|
|
19498 |
|
|
|
19499 |
|
|
fi
|
19500 |
|
|
if test -z "$ac_cv_prog_CC"; then
|
19501 |
|
|
ac_ct_CC=$CC
|
19502 |
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
19503 |
|
|
set dummy gcc; ac_word=$2
|
19504 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19505 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19506 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
19507 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19508 |
|
|
else
|
19509 |
|
|
if test -n "$ac_ct_CC"; then
|
19510 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
19511 |
|
|
else
|
19512 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19513 |
|
|
for as_dir in $PATH
|
19514 |
|
|
do
|
19515 |
|
|
IFS=$as_save_IFS
|
19516 |
|
|
test -z "$as_dir" && as_dir=.
|
19517 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19518 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19519 |
|
|
ac_cv_prog_ac_ct_CC="gcc"
|
19520 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19521 |
|
|
break 2
|
19522 |
|
|
fi
|
19523 |
|
|
done
|
19524 |
|
|
done
|
19525 |
|
|
IFS=$as_save_IFS
|
19526 |
|
|
|
19527 |
|
|
fi
|
19528 |
|
|
fi
|
19529 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
19530 |
|
|
if test -n "$ac_ct_CC"; then
|
19531 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
19532 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
19533 |
|
|
else
|
19534 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19535 |
|
|
echo "${ECHO_T}no" >&6; }
|
19536 |
|
|
fi
|
19537 |
|
|
|
19538 |
|
|
if test "x$ac_ct_CC" = x; then
|
19539 |
|
|
CC=""
|
19540 |
|
|
else
|
19541 |
|
|
case $cross_compiling:$ac_tool_warned in
|
19542 |
|
|
yes:)
|
19543 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
19544 |
|
|
whose name does not start with the host triplet. If you think this
|
19545 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
19546 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
19547 |
|
|
whose name does not start with the host triplet. If you think this
|
19548 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
19549 |
|
|
ac_tool_warned=yes ;;
|
19550 |
|
|
esac
|
19551 |
|
|
CC=$ac_ct_CC
|
19552 |
|
|
fi
|
19553 |
|
|
else
|
19554 |
|
|
CC="$ac_cv_prog_CC"
|
19555 |
|
|
fi
|
19556 |
|
|
|
19557 |
|
|
if test -z "$CC"; then
|
19558 |
|
|
if test -n "$ac_tool_prefix"; then
|
19559 |
|
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
19560 |
|
|
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
19561 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19562 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19563 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
19564 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19565 |
|
|
else
|
19566 |
|
|
if test -n "$CC"; then
|
19567 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
19568 |
|
|
else
|
19569 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19570 |
|
|
for as_dir in $PATH
|
19571 |
|
|
do
|
19572 |
|
|
IFS=$as_save_IFS
|
19573 |
|
|
test -z "$as_dir" && as_dir=.
|
19574 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19575 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19576 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
19577 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19578 |
|
|
break 2
|
19579 |
|
|
fi
|
19580 |
|
|
done
|
19581 |
|
|
done
|
19582 |
|
|
IFS=$as_save_IFS
|
19583 |
|
|
|
19584 |
|
|
fi
|
19585 |
|
|
fi
|
19586 |
|
|
CC=$ac_cv_prog_CC
|
19587 |
|
|
if test -n "$CC"; then
|
19588 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
19589 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
19590 |
|
|
else
|
19591 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19592 |
|
|
echo "${ECHO_T}no" >&6; }
|
19593 |
|
|
fi
|
19594 |
|
|
|
19595 |
|
|
|
19596 |
|
|
fi
|
19597 |
|
|
fi
|
19598 |
|
|
if test -z "$CC"; then
|
19599 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
19600 |
|
|
set dummy cc; ac_word=$2
|
19601 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19602 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19603 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
19604 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19605 |
|
|
else
|
19606 |
|
|
if test -n "$CC"; then
|
19607 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
19608 |
|
|
else
|
19609 |
|
|
ac_prog_rejected=no
|
19610 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19611 |
|
|
for as_dir in $PATH
|
19612 |
|
|
do
|
19613 |
|
|
IFS=$as_save_IFS
|
19614 |
|
|
test -z "$as_dir" && as_dir=.
|
19615 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19616 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19617 |
|
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
19618 |
|
|
ac_prog_rejected=yes
|
19619 |
|
|
continue
|
19620 |
|
|
fi
|
19621 |
|
|
ac_cv_prog_CC="cc"
|
19622 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19623 |
|
|
break 2
|
19624 |
|
|
fi
|
19625 |
|
|
done
|
19626 |
|
|
done
|
19627 |
|
|
IFS=$as_save_IFS
|
19628 |
|
|
|
19629 |
|
|
if test $ac_prog_rejected = yes; then
|
19630 |
|
|
# We found a bogon in the path, so make sure we never use it.
|
19631 |
|
|
set dummy $ac_cv_prog_CC
|
19632 |
|
|
shift
|
19633 |
|
|
if test $@%:@ != 0; then
|
19634 |
|
|
# We chose a different compiler from the bogus one.
|
19635 |
|
|
# However, it has the same basename, so the bogon will be chosen
|
19636 |
|
|
# first if we set CC to just the basename; use the full file name.
|
19637 |
|
|
shift
|
19638 |
|
|
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
19639 |
|
|
fi
|
19640 |
|
|
fi
|
19641 |
|
|
fi
|
19642 |
|
|
fi
|
19643 |
|
|
CC=$ac_cv_prog_CC
|
19644 |
|
|
if test -n "$CC"; then
|
19645 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
19646 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
19647 |
|
|
else
|
19648 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19649 |
|
|
echo "${ECHO_T}no" >&6; }
|
19650 |
|
|
fi
|
19651 |
|
|
|
19652 |
|
|
|
19653 |
|
|
fi
|
19654 |
|
|
if test -z "$CC"; then
|
19655 |
|
|
if test -n "$ac_tool_prefix"; then
|
19656 |
|
|
for ac_prog in cl.exe
|
19657 |
|
|
do
|
19658 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
19659 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
19660 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19661 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19662 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
19663 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19664 |
|
|
else
|
19665 |
|
|
if test -n "$CC"; then
|
19666 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
19667 |
|
|
else
|
19668 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19669 |
|
|
for as_dir in $PATH
|
19670 |
|
|
do
|
19671 |
|
|
IFS=$as_save_IFS
|
19672 |
|
|
test -z "$as_dir" && as_dir=.
|
19673 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19674 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19675 |
|
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
19676 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19677 |
|
|
break 2
|
19678 |
|
|
fi
|
19679 |
|
|
done
|
19680 |
|
|
done
|
19681 |
|
|
IFS=$as_save_IFS
|
19682 |
|
|
|
19683 |
|
|
fi
|
19684 |
|
|
fi
|
19685 |
|
|
CC=$ac_cv_prog_CC
|
19686 |
|
|
if test -n "$CC"; then
|
19687 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
19688 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
19689 |
|
|
else
|
19690 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19691 |
|
|
echo "${ECHO_T}no" >&6; }
|
19692 |
|
|
fi
|
19693 |
|
|
|
19694 |
|
|
|
19695 |
|
|
test -n "$CC" && break
|
19696 |
|
|
done
|
19697 |
|
|
fi
|
19698 |
|
|
if test -z "$CC"; then
|
19699 |
|
|
ac_ct_CC=$CC
|
19700 |
|
|
for ac_prog in cl.exe
|
19701 |
|
|
do
|
19702 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
19703 |
|
|
set dummy $ac_prog; ac_word=$2
|
19704 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19705 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19706 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
19707 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19708 |
|
|
else
|
19709 |
|
|
if test -n "$ac_ct_CC"; then
|
19710 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
19711 |
|
|
else
|
19712 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19713 |
|
|
for as_dir in $PATH
|
19714 |
|
|
do
|
19715 |
|
|
IFS=$as_save_IFS
|
19716 |
|
|
test -z "$as_dir" && as_dir=.
|
19717 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19718 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19719 |
|
|
ac_cv_prog_ac_ct_CC="$ac_prog"
|
19720 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19721 |
|
|
break 2
|
19722 |
|
|
fi
|
19723 |
|
|
done
|
19724 |
|
|
done
|
19725 |
|
|
IFS=$as_save_IFS
|
19726 |
|
|
|
19727 |
|
|
fi
|
19728 |
|
|
fi
|
19729 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
19730 |
|
|
if test -n "$ac_ct_CC"; then
|
19731 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
19732 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
19733 |
|
|
else
|
19734 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19735 |
|
|
echo "${ECHO_T}no" >&6; }
|
19736 |
|
|
fi
|
19737 |
|
|
|
19738 |
|
|
|
19739 |
|
|
test -n "$ac_ct_CC" && break
|
19740 |
|
|
done
|
19741 |
|
|
|
19742 |
|
|
if test "x$ac_ct_CC" = x; then
|
19743 |
|
|
CC=""
|
19744 |
|
|
else
|
19745 |
|
|
case $cross_compiling:$ac_tool_warned in
|
19746 |
|
|
yes:)
|
19747 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
19748 |
|
|
whose name does not start with the host triplet. If you think this
|
19749 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
19750 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
19751 |
|
|
whose name does not start with the host triplet. If you think this
|
19752 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
19753 |
|
|
ac_tool_warned=yes ;;
|
19754 |
|
|
esac
|
19755 |
|
|
CC=$ac_ct_CC
|
19756 |
|
|
fi
|
19757 |
|
|
fi
|
19758 |
|
|
|
19759 |
|
|
fi
|
19760 |
|
|
|
19761 |
|
|
|
19762 |
|
|
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
19763 |
|
|
See \`config.log' for more details." >&5
|
19764 |
|
|
echo "$as_me: error: no acceptable C compiler found in \$PATH
|
19765 |
|
|
See \`config.log' for more details." >&2;}
|
19766 |
|
|
{ (exit 1); exit 1; }; }
|
19767 |
|
|
|
19768 |
|
|
# Provide some information about the compiler.
|
19769 |
|
|
echo "$as_me:$LINENO: checking for C compiler version" >&5
|
19770 |
|
|
ac_compiler=`set X $ac_compile; echo $2`
|
19771 |
|
|
{ (ac_try="$ac_compiler --version >&5"
|
19772 |
|
|
case "(($ac_try" in
|
19773 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19774 |
|
|
*) ac_try_echo=$ac_try;;
|
19775 |
|
|
esac
|
19776 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19777 |
|
|
(eval "$ac_compiler --version >&5") 2>&5
|
19778 |
|
|
ac_status=$?
|
19779 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19780 |
|
|
(exit $ac_status); }
|
19781 |
|
|
{ (ac_try="$ac_compiler -v >&5"
|
19782 |
|
|
case "(($ac_try" in
|
19783 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19784 |
|
|
*) ac_try_echo=$ac_try;;
|
19785 |
|
|
esac
|
19786 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19787 |
|
|
(eval "$ac_compiler -v >&5") 2>&5
|
19788 |
|
|
ac_status=$?
|
19789 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19790 |
|
|
(exit $ac_status); }
|
19791 |
|
|
{ (ac_try="$ac_compiler -V >&5"
|
19792 |
|
|
case "(($ac_try" in
|
19793 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19794 |
|
|
*) ac_try_echo=$ac_try;;
|
19795 |
|
|
esac
|
19796 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19797 |
|
|
(eval "$ac_compiler -V >&5") 2>&5
|
19798 |
|
|
ac_status=$?
|
19799 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19800 |
|
|
(exit $ac_status); }
|
19801 |
|
|
|
19802 |
|
|
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
19803 |
|
|
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
19804 |
|
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
19805 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19806 |
|
|
else
|
19807 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
19808 |
|
|
/* confdefs.h. */
|
19809 |
|
|
_ACEOF
|
19810 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
19811 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
19812 |
|
|
/* end confdefs.h. */
|
19813 |
|
|
|
19814 |
|
|
int
|
19815 |
|
|
main ()
|
19816 |
|
|
{
|
19817 |
|
|
#ifndef __GNUC__
|
19818 |
|
|
choke me
|
19819 |
|
|
#endif
|
19820 |
|
|
|
19821 |
|
|
;
|
19822 |
|
|
return 0;
|
19823 |
|
|
}
|
19824 |
|
|
_ACEOF
|
19825 |
|
|
rm -f conftest.$ac_objext
|
19826 |
|
|
if { (ac_try="$ac_compile"
|
19827 |
|
|
case "(($ac_try" in
|
19828 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19829 |
|
|
*) ac_try_echo=$ac_try;;
|
19830 |
|
|
esac
|
19831 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19832 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
19833 |
|
|
ac_status=$?
|
19834 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
19835 |
|
|
rm -f conftest.er1
|
19836 |
|
|
cat conftest.err >&5
|
19837 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19838 |
|
|
(exit $ac_status); } && {
|
19839 |
|
|
test -z "$ac_c_werror_flag" ||
|
19840 |
|
|
test ! -s conftest.err
|
19841 |
|
|
} && test -s conftest.$ac_objext; then
|
19842 |
|
|
ac_compiler_gnu=yes
|
19843 |
|
|
else
|
19844 |
|
|
echo "$as_me: failed program was:" >&5
|
19845 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
19846 |
|
|
|
19847 |
|
|
ac_compiler_gnu=no
|
19848 |
|
|
fi
|
19849 |
|
|
|
19850 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
19851 |
|
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
19852 |
|
|
|
19853 |
|
|
fi
|
19854 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
19855 |
|
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
19856 |
|
|
GCC=`test $ac_compiler_gnu = yes && echo yes`
|
19857 |
|
|
ac_test_CFLAGS=${CFLAGS+set}
|
19858 |
|
|
ac_save_CFLAGS=$CFLAGS
|
19859 |
|
|
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
19860 |
|
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
19861 |
|
|
if test "${ac_cv_prog_cc_g+set}" = set; then
|
19862 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19863 |
|
|
else
|
19864 |
|
|
ac_save_c_werror_flag=$ac_c_werror_flag
|
19865 |
|
|
ac_c_werror_flag=yes
|
19866 |
|
|
ac_cv_prog_cc_g=no
|
19867 |
|
|
CFLAGS="-g"
|
19868 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
19869 |
|
|
/* confdefs.h. */
|
19870 |
|
|
_ACEOF
|
19871 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
19872 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
19873 |
|
|
/* end confdefs.h. */
|
19874 |
|
|
|
19875 |
|
|
int
|
19876 |
|
|
main ()
|
19877 |
|
|
{
|
19878 |
|
|
|
19879 |
|
|
;
|
19880 |
|
|
return 0;
|
19881 |
|
|
}
|
19882 |
|
|
_ACEOF
|
19883 |
|
|
rm -f conftest.$ac_objext
|
19884 |
|
|
if { (ac_try="$ac_compile"
|
19885 |
|
|
case "(($ac_try" in
|
19886 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19887 |
|
|
*) ac_try_echo=$ac_try;;
|
19888 |
|
|
esac
|
19889 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19890 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
19891 |
|
|
ac_status=$?
|
19892 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
19893 |
|
|
rm -f conftest.er1
|
19894 |
|
|
cat conftest.err >&5
|
19895 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19896 |
|
|
(exit $ac_status); } && {
|
19897 |
|
|
test -z "$ac_c_werror_flag" ||
|
19898 |
|
|
test ! -s conftest.err
|
19899 |
|
|
} && test -s conftest.$ac_objext; then
|
19900 |
|
|
ac_cv_prog_cc_g=yes
|
19901 |
|
|
else
|
19902 |
|
|
echo "$as_me: failed program was:" >&5
|
19903 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
19904 |
|
|
|
19905 |
|
|
CFLAGS=""
|
19906 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
19907 |
|
|
/* confdefs.h. */
|
19908 |
|
|
_ACEOF
|
19909 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
19910 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
19911 |
|
|
/* end confdefs.h. */
|
19912 |
|
|
|
19913 |
|
|
int
|
19914 |
|
|
main ()
|
19915 |
|
|
{
|
19916 |
|
|
|
19917 |
|
|
;
|
19918 |
|
|
return 0;
|
19919 |
|
|
}
|
19920 |
|
|
_ACEOF
|
19921 |
|
|
rm -f conftest.$ac_objext
|
19922 |
|
|
if { (ac_try="$ac_compile"
|
19923 |
|
|
case "(($ac_try" in
|
19924 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19925 |
|
|
*) ac_try_echo=$ac_try;;
|
19926 |
|
|
esac
|
19927 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19928 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
19929 |
|
|
ac_status=$?
|
19930 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
19931 |
|
|
rm -f conftest.er1
|
19932 |
|
|
cat conftest.err >&5
|
19933 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19934 |
|
|
(exit $ac_status); } && {
|
19935 |
|
|
test -z "$ac_c_werror_flag" ||
|
19936 |
|
|
test ! -s conftest.err
|
19937 |
|
|
} && test -s conftest.$ac_objext; then
|
19938 |
|
|
:
|
19939 |
|
|
else
|
19940 |
|
|
echo "$as_me: failed program was:" >&5
|
19941 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
19942 |
|
|
|
19943 |
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
19944 |
|
|
CFLAGS="-g"
|
19945 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
19946 |
|
|
/* confdefs.h. */
|
19947 |
|
|
_ACEOF
|
19948 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
19949 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
19950 |
|
|
/* end confdefs.h. */
|
19951 |
|
|
|
19952 |
|
|
int
|
19953 |
|
|
main ()
|
19954 |
|
|
{
|
19955 |
|
|
|
19956 |
|
|
;
|
19957 |
|
|
return 0;
|
19958 |
|
|
}
|
19959 |
|
|
_ACEOF
|
19960 |
|
|
rm -f conftest.$ac_objext
|
19961 |
|
|
if { (ac_try="$ac_compile"
|
19962 |
|
|
case "(($ac_try" in
|
19963 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19964 |
|
|
*) ac_try_echo=$ac_try;;
|
19965 |
|
|
esac
|
19966 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19967 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
19968 |
|
|
ac_status=$?
|
19969 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
19970 |
|
|
rm -f conftest.er1
|
19971 |
|
|
cat conftest.err >&5
|
19972 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19973 |
|
|
(exit $ac_status); } && {
|
19974 |
|
|
test -z "$ac_c_werror_flag" ||
|
19975 |
|
|
test ! -s conftest.err
|
19976 |
|
|
} && test -s conftest.$ac_objext; then
|
19977 |
|
|
ac_cv_prog_cc_g=yes
|
19978 |
|
|
else
|
19979 |
|
|
echo "$as_me: failed program was:" >&5
|
19980 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
19981 |
|
|
|
19982 |
|
|
|
19983 |
|
|
fi
|
19984 |
|
|
|
19985 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
19986 |
|
|
fi
|
19987 |
|
|
|
19988 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
19989 |
|
|
fi
|
19990 |
|
|
|
19991 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
19992 |
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
19993 |
|
|
fi
|
19994 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
19995 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
19996 |
|
|
if test "$ac_test_CFLAGS" = set; then
|
19997 |
|
|
CFLAGS=$ac_save_CFLAGS
|
19998 |
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
19999 |
|
|
if test "$GCC" = yes; then
|
20000 |
|
|
CFLAGS="-g -O2"
|
20001 |
|
|
else
|
20002 |
|
|
CFLAGS="-g"
|
20003 |
|
|
fi
|
20004 |
|
|
else
|
20005 |
|
|
if test "$GCC" = yes; then
|
20006 |
|
|
CFLAGS="-O2"
|
20007 |
|
|
else
|
20008 |
|
|
CFLAGS=
|
20009 |
|
|
fi
|
20010 |
|
|
fi
|
20011 |
|
|
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
20012 |
|
|
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
20013 |
|
|
if test "${ac_cv_prog_cc_c89+set}" = set; then
|
20014 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20015 |
|
|
else
|
20016 |
|
|
ac_cv_prog_cc_c89=no
|
20017 |
|
|
ac_save_CC=$CC
|
20018 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20019 |
|
|
/* confdefs.h. */
|
20020 |
|
|
_ACEOF
|
20021 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20022 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20023 |
|
|
/* end confdefs.h. */
|
20024 |
|
|
#include
|
20025 |
|
|
#include
|
20026 |
|
|
#include
|
20027 |
|
|
#include
|
20028 |
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
20029 |
|
|
struct buf { int x; };
|
20030 |
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
20031 |
|
|
static char *e (p, i)
|
20032 |
|
|
char **p;
|
20033 |
|
|
int i;
|
20034 |
|
|
{
|
20035 |
|
|
return p[i];
|
20036 |
|
|
}
|
20037 |
|
|
static char *f (char * (*g) (char **, int), char **p, ...)
|
20038 |
|
|
{
|
20039 |
|
|
char *s;
|
20040 |
|
|
va_list v;
|
20041 |
|
|
va_start (v,p);
|
20042 |
|
|
s = g (p, va_arg (v,int));
|
20043 |
|
|
va_end (v);
|
20044 |
|
|
return s;
|
20045 |
|
|
}
|
20046 |
|
|
|
20047 |
|
|
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
20048 |
|
|
function prototypes and stuff, but not '\xHH' hex character constants.
|
20049 |
|
|
These don't provoke an error unfortunately, instead are silently treated
|
20050 |
|
|
as 'x'. The following induces an error, until -std is added to get
|
20051 |
|
|
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
20052 |
|
|
array size at least. It's necessary to write '\x00'==0 to get something
|
20053 |
|
|
that's true only with -std. */
|
20054 |
|
|
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
20055 |
|
|
|
20056 |
|
|
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
20057 |
|
|
inside strings and character constants. */
|
20058 |
|
|
#define FOO(x) 'x'
|
20059 |
|
|
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
20060 |
|
|
|
20061 |
|
|
int test (int i, double x);
|
20062 |
|
|
struct s1 {int (*f) (int a);};
|
20063 |
|
|
struct s2 {int (*f) (double a);};
|
20064 |
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
20065 |
|
|
int argc;
|
20066 |
|
|
char **argv;
|
20067 |
|
|
int
|
20068 |
|
|
main ()
|
20069 |
|
|
{
|
20070 |
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
20071 |
|
|
;
|
20072 |
|
|
return 0;
|
20073 |
|
|
}
|
20074 |
|
|
_ACEOF
|
20075 |
|
|
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
20076 |
|
|
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
20077 |
|
|
do
|
20078 |
|
|
CC="$ac_save_CC $ac_arg"
|
20079 |
|
|
rm -f conftest.$ac_objext
|
20080 |
|
|
if { (ac_try="$ac_compile"
|
20081 |
|
|
case "(($ac_try" in
|
20082 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20083 |
|
|
*) ac_try_echo=$ac_try;;
|
20084 |
|
|
esac
|
20085 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20086 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
20087 |
|
|
ac_status=$?
|
20088 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20089 |
|
|
rm -f conftest.er1
|
20090 |
|
|
cat conftest.err >&5
|
20091 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20092 |
|
|
(exit $ac_status); } && {
|
20093 |
|
|
test -z "$ac_c_werror_flag" ||
|
20094 |
|
|
test ! -s conftest.err
|
20095 |
|
|
} && test -s conftest.$ac_objext; then
|
20096 |
|
|
ac_cv_prog_cc_c89=$ac_arg
|
20097 |
|
|
else
|
20098 |
|
|
echo "$as_me: failed program was:" >&5
|
20099 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20100 |
|
|
|
20101 |
|
|
|
20102 |
|
|
fi
|
20103 |
|
|
|
20104 |
|
|
rm -f core conftest.err conftest.$ac_objext
|
20105 |
|
|
test "x$ac_cv_prog_cc_c89" != "xno" && break
|
20106 |
|
|
done
|
20107 |
|
|
rm -f conftest.$ac_ext
|
20108 |
|
|
CC=$ac_save_CC
|
20109 |
|
|
|
20110 |
|
|
fi
|
20111 |
|
|
# AC_CACHE_VAL
|
20112 |
|
|
case "x$ac_cv_prog_cc_c89" in
|
20113 |
|
|
x)
|
20114 |
|
|
{ echo "$as_me:$LINENO: result: none needed" >&5
|
20115 |
|
|
echo "${ECHO_T}none needed" >&6; } ;;
|
20116 |
|
|
xno)
|
20117 |
|
|
{ echo "$as_me:$LINENO: result: unsupported" >&5
|
20118 |
|
|
echo "${ECHO_T}unsupported" >&6; } ;;
|
20119 |
|
|
*)
|
20120 |
|
|
CC="$CC $ac_cv_prog_cc_c89"
|
20121 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
20122 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
20123 |
|
|
esac
|
20124 |
|
|
|
20125 |
|
|
|
20126 |
|
|
ac_ext=c
|
20127 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
20128 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
20129 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
20130 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
20131 |
|
|
|
20132 |
|
|
if test "x$CC" != xcc; then
|
20133 |
|
|
{ echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
|
20134 |
|
|
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
|
20135 |
|
|
else
|
20136 |
|
|
{ echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
|
20137 |
|
|
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
|
20138 |
|
|
fi
|
20139 |
|
|
set dummy $CC; ac_cc=`echo $2 |
|
20140 |
|
|
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
|
20141 |
|
|
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
|
20142 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20143 |
|
|
else
|
20144 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20145 |
|
|
/* confdefs.h. */
|
20146 |
|
|
_ACEOF
|
20147 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20148 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20149 |
|
|
/* end confdefs.h. */
|
20150 |
|
|
|
20151 |
|
|
int
|
20152 |
|
|
main ()
|
20153 |
|
|
{
|
20154 |
|
|
|
20155 |
|
|
;
|
20156 |
|
|
return 0;
|
20157 |
|
|
}
|
20158 |
|
|
_ACEOF
|
20159 |
|
|
# Make sure it works both with $CC and with simple cc.
|
20160 |
|
|
# We do the test twice because some compilers refuse to overwrite an
|
20161 |
|
|
# existing .o file with -o, though they will create one.
|
20162 |
|
|
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
|
20163 |
|
|
rm -f conftest2.*
|
20164 |
|
|
if { (case "(($ac_try" in
|
20165 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20166 |
|
|
*) ac_try_echo=$ac_try;;
|
20167 |
|
|
esac
|
20168 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20169 |
|
|
(eval "$ac_try") 2>&5
|
20170 |
|
|
ac_status=$?
|
20171 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20172 |
|
|
(exit $ac_status); } &&
|
20173 |
|
|
test -f conftest2.$ac_objext && { (case "(($ac_try" in
|
20174 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20175 |
|
|
*) ac_try_echo=$ac_try;;
|
20176 |
|
|
esac
|
20177 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20178 |
|
|
(eval "$ac_try") 2>&5
|
20179 |
|
|
ac_status=$?
|
20180 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20181 |
|
|
(exit $ac_status); };
|
20182 |
|
|
then
|
20183 |
|
|
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
|
20184 |
|
|
if test "x$CC" != xcc; then
|
20185 |
|
|
# Test first that cc exists at all.
|
20186 |
|
|
if { ac_try='cc -c conftest.$ac_ext >&5'
|
20187 |
|
|
{ (case "(($ac_try" in
|
20188 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20189 |
|
|
*) ac_try_echo=$ac_try;;
|
20190 |
|
|
esac
|
20191 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20192 |
|
|
(eval "$ac_try") 2>&5
|
20193 |
|
|
ac_status=$?
|
20194 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20195 |
|
|
(exit $ac_status); }; }; then
|
20196 |
|
|
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
|
20197 |
|
|
rm -f conftest2.*
|
20198 |
|
|
if { (case "(($ac_try" in
|
20199 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20200 |
|
|
*) ac_try_echo=$ac_try;;
|
20201 |
|
|
esac
|
20202 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20203 |
|
|
(eval "$ac_try") 2>&5
|
20204 |
|
|
ac_status=$?
|
20205 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20206 |
|
|
(exit $ac_status); } &&
|
20207 |
|
|
test -f conftest2.$ac_objext && { (case "(($ac_try" in
|
20208 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20209 |
|
|
*) ac_try_echo=$ac_try;;
|
20210 |
|
|
esac
|
20211 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20212 |
|
|
(eval "$ac_try") 2>&5
|
20213 |
|
|
ac_status=$?
|
20214 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20215 |
|
|
(exit $ac_status); };
|
20216 |
|
|
then
|
20217 |
|
|
# cc works too.
|
20218 |
|
|
:
|
20219 |
|
|
else
|
20220 |
|
|
# cc exists but doesn't like -o.
|
20221 |
|
|
eval ac_cv_prog_cc_${ac_cc}_c_o=no
|
20222 |
|
|
fi
|
20223 |
|
|
fi
|
20224 |
|
|
fi
|
20225 |
|
|
else
|
20226 |
|
|
eval ac_cv_prog_cc_${ac_cc}_c_o=no
|
20227 |
|
|
fi
|
20228 |
|
|
rm -f core conftest*
|
20229 |
|
|
|
20230 |
|
|
fi
|
20231 |
|
|
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
|
20232 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
20233 |
|
|
echo "${ECHO_T}yes" >&6; }
|
20234 |
|
|
else
|
20235 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
20236 |
|
|
echo "${ECHO_T}no" >&6; }
|
20237 |
|
|
|
20238 |
|
|
cat >>confdefs.h <<\_ACEOF
|
20239 |
|
|
@%:@define NO_MINUS_C_MINUS_O 1
|
20240 |
|
|
_ACEOF
|
20241 |
|
|
|
20242 |
|
|
fi
|
20243 |
|
|
|
20244 |
|
|
# FIXME: we rely on the cache variable name because
|
20245 |
|
|
# there is no other way.
|
20246 |
|
|
set dummy $CC
|
20247 |
|
|
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
|
20248 |
|
|
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
|
20249 |
|
|
# Losing compiler, so override with the script.
|
20250 |
|
|
# FIXME: It is wrong to rewrite CC.
|
20251 |
|
|
# But if we don't then we get into trouble of one sort or another.
|
20252 |
|
|
# A longer-term fix would be to have automake use am__CC in this case,
|
20253 |
|
|
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
20254 |
|
|
CC="$am_aux_dir/compile $CC"
|
20255 |
|
|
fi
|
20256 |
|
|
|
20257 |
|
|
|
20258 |
|
|
|
20259 |
|
|
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
20260 |
|
|
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
|
20261 |
|
|
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
20262 |
|
|
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
|
20263 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20264 |
|
|
else
|
20265 |
|
|
cat >conftest.make <<\_ACEOF
|
20266 |
|
|
SHELL = /bin/sh
|
20267 |
|
|
all:
|
20268 |
|
|
@echo '@@@%%%=$(MAKE)=@@@%%%'
|
20269 |
|
|
_ACEOF
|
20270 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
20271 |
|
|
case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
20272 |
|
|
*@@@%%%=?*=@@@%%%*)
|
20273 |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes;;
|
20274 |
|
|
*)
|
20275 |
|
|
eval ac_cv_prog_make_${ac_make}_set=no;;
|
20276 |
|
|
esac
|
20277 |
|
|
rm -f conftest.make
|
20278 |
|
|
fi
|
20279 |
|
|
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
20280 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
20281 |
|
|
echo "${ECHO_T}yes" >&6; }
|
20282 |
|
|
SET_MAKE=
|
20283 |
|
|
else
|
20284 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
20285 |
|
|
echo "${ECHO_T}no" >&6; }
|
20286 |
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
20287 |
|
|
fi
|
20288 |
|
|
|
20289 |
|
|
|
20290 |
|
|
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
|
20291 |
|
|
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2 -D$ARCH_ISA"
|
20292 |
|
|
|
20293 |
|
|
if test $ac_cv_c_compiler_gnu = yes; then
|
20294 |
|
|
{ echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
20295 |
|
|
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
|
20296 |
|
|
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
20297 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20298 |
|
|
else
|
20299 |
|
|
ac_pattern="Autoconf.*'x'"
|
20300 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20301 |
|
|
/* confdefs.h. */
|
20302 |
|
|
_ACEOF
|
20303 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20304 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20305 |
|
|
/* end confdefs.h. */
|
20306 |
|
|
#include
|
20307 |
|
|
Autoconf TIOCGETP
|
20308 |
|
|
_ACEOF
|
20309 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
20310 |
|
|
$EGREP "$ac_pattern" >/dev/null 2>&1; then
|
20311 |
|
|
ac_cv_prog_gcc_traditional=yes
|
20312 |
|
|
else
|
20313 |
|
|
ac_cv_prog_gcc_traditional=no
|
20314 |
|
|
fi
|
20315 |
|
|
rm -f conftest*
|
20316 |
|
|
|
20317 |
|
|
|
20318 |
|
|
if test $ac_cv_prog_gcc_traditional = no; then
|
20319 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20320 |
|
|
/* confdefs.h. */
|
20321 |
|
|
_ACEOF
|
20322 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20323 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20324 |
|
|
/* end confdefs.h. */
|
20325 |
|
|
#include
|
20326 |
|
|
Autoconf TCGETA
|
20327 |
|
|
_ACEOF
|
20328 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
20329 |
|
|
$EGREP "$ac_pattern" >/dev/null 2>&1; then
|
20330 |
|
|
ac_cv_prog_gcc_traditional=yes
|
20331 |
|
|
fi
|
20332 |
|
|
rm -f conftest*
|
20333 |
|
|
|
20334 |
|
|
fi
|
20335 |
|
|
fi
|
20336 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
20337 |
|
|
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
|
20338 |
|
|
if test $ac_cv_prog_gcc_traditional = yes; then
|
20339 |
|
|
CC="$CC -traditional"
|
20340 |
|
|
fi
|
20341 |
|
|
fi
|
20342 |
|
|
|
20343 |
|
|
# Find a good install program. We prefer a C program (faster),
|
20344 |
|
|
# so one script is as good as another. But avoid the broken or
|
20345 |
|
|
# incompatible versions:
|
20346 |
|
|
# SysV /etc/install, /usr/sbin/install
|
20347 |
|
|
# SunOS /usr/etc/install
|
20348 |
|
|
# IRIX /sbin/install
|
20349 |
|
|
# AIX /bin/install
|
20350 |
|
|
# AmigaOS /C/install, which installs bootblocks on floppy discs
|
20351 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
20352 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
20353 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
20354 |
|
|
# OS/2's system install, which has a completely different semantic
|
20355 |
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
20356 |
|
|
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
20357 |
|
|
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
20358 |
|
|
if test -z "$INSTALL"; then
|
20359 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
20360 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20361 |
|
|
else
|
20362 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
20363 |
|
|
for as_dir in $PATH
|
20364 |
|
|
do
|
20365 |
|
|
IFS=$as_save_IFS
|
20366 |
|
|
test -z "$as_dir" && as_dir=.
|
20367 |
|
|
# Account for people who put trailing slashes in PATH elements.
|
20368 |
|
|
case $as_dir/ in
|
20369 |
|
|
./ | .// | /cC/* | \
|
20370 |
|
|
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
20371 |
|
|
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
20372 |
|
|
/usr/ucb/* ) ;;
|
20373 |
|
|
*)
|
20374 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
20375 |
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
20376 |
|
|
# by default.
|
20377 |
|
|
for ac_prog in ginstall scoinst install; do
|
20378 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
20379 |
|
|
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
20380 |
|
|
if test $ac_prog = install &&
|
20381 |
|
|
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
20382 |
|
|
# AIX install. It has an incompatible calling convention.
|
20383 |
|
|
:
|
20384 |
|
|
elif test $ac_prog = install &&
|
20385 |
|
|
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
20386 |
|
|
# program-specific install script used by HP pwplus--don't use.
|
20387 |
|
|
:
|
20388 |
|
|
else
|
20389 |
|
|
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
20390 |
|
|
break 3
|
20391 |
|
|
fi
|
20392 |
|
|
fi
|
20393 |
|
|
done
|
20394 |
|
|
done
|
20395 |
|
|
;;
|
20396 |
|
|
esac
|
20397 |
|
|
done
|
20398 |
|
|
IFS=$as_save_IFS
|
20399 |
|
|
|
20400 |
|
|
|
20401 |
|
|
fi
|
20402 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
20403 |
|
|
INSTALL=$ac_cv_path_install
|
20404 |
|
|
else
|
20405 |
|
|
# As a last resort, use the slow shell script. Don't cache a
|
20406 |
|
|
# value for INSTALL within a source directory, because that will
|
20407 |
|
|
# break other packages using the cache if that directory is
|
20408 |
|
|
# removed, or if the value is a relative name.
|
20409 |
|
|
INSTALL=$ac_install_sh
|
20410 |
|
|
fi
|
20411 |
|
|
fi
|
20412 |
|
|
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
|
20413 |
|
|
echo "${ECHO_T}$INSTALL" >&6; }
|
20414 |
|
|
|
20415 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
20416 |
|
|
# It thinks the first close brace ends the variable substitution.
|
20417 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
20418 |
|
|
|
20419 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
20420 |
|
|
|
20421 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
20422 |
|
|
|
20423 |
|
|
# Extract the first word of "ar", so it can be a program name with args.
|
20424 |
|
|
set dummy ar; ac_word=$2
|
20425 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
20426 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
20427 |
|
|
if test "${ac_cv_prog_AR+set}" = set; then
|
20428 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20429 |
|
|
else
|
20430 |
|
|
if test -n "$AR"; then
|
20431 |
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
20432 |
|
|
else
|
20433 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
20434 |
|
|
for as_dir in $PATH
|
20435 |
|
|
do
|
20436 |
|
|
IFS=$as_save_IFS
|
20437 |
|
|
test -z "$as_dir" && as_dir=.
|
20438 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
20439 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
20440 |
|
|
ac_cv_prog_AR="ar"
|
20441 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
20442 |
|
|
break 2
|
20443 |
|
|
fi
|
20444 |
|
|
done
|
20445 |
|
|
done
|
20446 |
|
|
IFS=$as_save_IFS
|
20447 |
|
|
|
20448 |
|
|
fi
|
20449 |
|
|
fi
|
20450 |
|
|
AR=$ac_cv_prog_AR
|
20451 |
|
|
if test -n "$AR"; then
|
20452 |
|
|
{ echo "$as_me:$LINENO: result: $AR" >&5
|
20453 |
|
|
echo "${ECHO_T}$AR" >&6; }
|
20454 |
|
|
else
|
20455 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
20456 |
|
|
echo "${ECHO_T}no" >&6; }
|
20457 |
|
|
fi
|
20458 |
|
|
|
20459 |
|
|
|
20460 |
|
|
|
20461 |
|
|
# This is GNU compliant source and uses GNU libraries
|
20462 |
|
|
|
20463 |
|
|
cat >>confdefs.h <<\_ACEOF
|
20464 |
|
|
@%:@define _GNU_SOURCE 1
|
20465 |
|
|
_ACEOF
|
20466 |
|
|
|
20467 |
|
|
|
20468 |
|
|
# Set default for ARFLAGS, since autoconf does not have a macro for it.
|
20469 |
|
|
# This allows people to set it when running configure or make
|
20470 |
|
|
test -n "$ARFLAGS" || ARFLAGS="cr"
|
20471 |
|
|
|
20472 |
|
|
MAKE_SHELL=/bin/sh
|
20473 |
|
|
|
20474 |
|
|
|
20475 |
|
|
|
20476 |
|
|
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
20477 |
|
|
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
|
20478 |
|
|
if test "${ac_cv_type_signal+set}" = set; then
|
20479 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20480 |
|
|
else
|
20481 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20482 |
|
|
/* confdefs.h. */
|
20483 |
|
|
_ACEOF
|
20484 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20485 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20486 |
|
|
/* end confdefs.h. */
|
20487 |
|
|
#include
|
20488 |
|
|
#include
|
20489 |
|
|
|
20490 |
|
|
int
|
20491 |
|
|
main ()
|
20492 |
|
|
{
|
20493 |
|
|
return *(signal (0, 0)) (0) == 1;
|
20494 |
|
|
;
|
20495 |
|
|
return 0;
|
20496 |
|
|
}
|
20497 |
|
|
_ACEOF
|
20498 |
|
|
rm -f conftest.$ac_objext
|
20499 |
|
|
if { (ac_try="$ac_compile"
|
20500 |
|
|
case "(($ac_try" in
|
20501 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20502 |
|
|
*) ac_try_echo=$ac_try;;
|
20503 |
|
|
esac
|
20504 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20505 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
20506 |
|
|
ac_status=$?
|
20507 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20508 |
|
|
rm -f conftest.er1
|
20509 |
|
|
cat conftest.err >&5
|
20510 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20511 |
|
|
(exit $ac_status); } && {
|
20512 |
|
|
test -z "$ac_c_werror_flag" ||
|
20513 |
|
|
test ! -s conftest.err
|
20514 |
|
|
} && test -s conftest.$ac_objext; then
|
20515 |
|
|
ac_cv_type_signal=int
|
20516 |
|
|
else
|
20517 |
|
|
echo "$as_me: failed program was:" >&5
|
20518 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20519 |
|
|
|
20520 |
|
|
ac_cv_type_signal=void
|
20521 |
|
|
fi
|
20522 |
|
|
|
20523 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
20524 |
|
|
fi
|
20525 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
20526 |
|
|
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
|
20527 |
|
|
|
20528 |
|
|
cat >>confdefs.h <<_ACEOF
|
20529 |
|
|
@%:@define RETSIGTYPE $ac_cv_type_signal
|
20530 |
|
|
_ACEOF
|
20531 |
|
|
|
20532 |
|
|
|
20533 |
|
|
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
|
20534 |
|
|
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
|
20535 |
|
|
if test "${ac_cv_header_stat_broken+set}" = set; then
|
20536 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20537 |
|
|
else
|
20538 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20539 |
|
|
/* confdefs.h. */
|
20540 |
|
|
_ACEOF
|
20541 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20542 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20543 |
|
|
/* end confdefs.h. */
|
20544 |
|
|
#include
|
20545 |
|
|
#include
|
20546 |
|
|
|
20547 |
|
|
#if defined S_ISBLK && defined S_IFDIR
|
20548 |
|
|
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
|
20549 |
|
|
#endif
|
20550 |
|
|
|
20551 |
|
|
#if defined S_ISBLK && defined S_IFCHR
|
20552 |
|
|
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
|
20553 |
|
|
#endif
|
20554 |
|
|
|
20555 |
|
|
#if defined S_ISLNK && defined S_IFREG
|
20556 |
|
|
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
|
20557 |
|
|
#endif
|
20558 |
|
|
|
20559 |
|
|
#if defined S_ISSOCK && defined S_IFREG
|
20560 |
|
|
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
|
20561 |
|
|
#endif
|
20562 |
|
|
|
20563 |
|
|
_ACEOF
|
20564 |
|
|
rm -f conftest.$ac_objext
|
20565 |
|
|
if { (ac_try="$ac_compile"
|
20566 |
|
|
case "(($ac_try" in
|
20567 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20568 |
|
|
*) ac_try_echo=$ac_try;;
|
20569 |
|
|
esac
|
20570 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20571 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
20572 |
|
|
ac_status=$?
|
20573 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20574 |
|
|
rm -f conftest.er1
|
20575 |
|
|
cat conftest.err >&5
|
20576 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20577 |
|
|
(exit $ac_status); } && {
|
20578 |
|
|
test -z "$ac_c_werror_flag" ||
|
20579 |
|
|
test ! -s conftest.err
|
20580 |
|
|
} && test -s conftest.$ac_objext; then
|
20581 |
|
|
ac_cv_header_stat_broken=no
|
20582 |
|
|
else
|
20583 |
|
|
echo "$as_me: failed program was:" >&5
|
20584 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20585 |
|
|
|
20586 |
|
|
ac_cv_header_stat_broken=yes
|
20587 |
|
|
fi
|
20588 |
|
|
|
20589 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
20590 |
|
|
fi
|
20591 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
|
20592 |
|
|
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
|
20593 |
|
|
if test $ac_cv_header_stat_broken = yes; then
|
20594 |
|
|
|
20595 |
|
|
cat >>confdefs.h <<\_ACEOF
|
20596 |
|
|
@%:@define STAT_MACROS_BROKEN 1
|
20597 |
|
|
_ACEOF
|
20598 |
|
|
|
20599 |
|
|
fi
|
20600 |
|
|
|
20601 |
|
|
|
20602 |
|
|
|
20603 |
|
|
|
20604 |
|
|
|
20605 |
|
|
|
20606 |
|
|
ac_header_dirent=no
|
20607 |
|
|
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
20608 |
|
|
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
20609 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
20610 |
|
|
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
|
20611 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
20612 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20613 |
|
|
else
|
20614 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20615 |
|
|
/* confdefs.h. */
|
20616 |
|
|
_ACEOF
|
20617 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20618 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20619 |
|
|
/* end confdefs.h. */
|
20620 |
|
|
#include
|
20621 |
|
|
#include <$ac_hdr>
|
20622 |
|
|
|
20623 |
|
|
int
|
20624 |
|
|
main ()
|
20625 |
|
|
{
|
20626 |
|
|
if ((DIR *) 0)
|
20627 |
|
|
return 0;
|
20628 |
|
|
;
|
20629 |
|
|
return 0;
|
20630 |
|
|
}
|
20631 |
|
|
_ACEOF
|
20632 |
|
|
rm -f conftest.$ac_objext
|
20633 |
|
|
if { (ac_try="$ac_compile"
|
20634 |
|
|
case "(($ac_try" in
|
20635 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20636 |
|
|
*) ac_try_echo=$ac_try;;
|
20637 |
|
|
esac
|
20638 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20639 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
20640 |
|
|
ac_status=$?
|
20641 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20642 |
|
|
rm -f conftest.er1
|
20643 |
|
|
cat conftest.err >&5
|
20644 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20645 |
|
|
(exit $ac_status); } && {
|
20646 |
|
|
test -z "$ac_c_werror_flag" ||
|
20647 |
|
|
test ! -s conftest.err
|
20648 |
|
|
} && test -s conftest.$ac_objext; then
|
20649 |
|
|
eval "$as_ac_Header=yes"
|
20650 |
|
|
else
|
20651 |
|
|
echo "$as_me: failed program was:" >&5
|
20652 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20653 |
|
|
|
20654 |
|
|
eval "$as_ac_Header=no"
|
20655 |
|
|
fi
|
20656 |
|
|
|
20657 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
20658 |
|
|
fi
|
20659 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
20660 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
20661 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
20662 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
20663 |
|
|
cat >>confdefs.h <<_ACEOF
|
20664 |
|
|
@%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
20665 |
|
|
_ACEOF
|
20666 |
|
|
|
20667 |
|
|
ac_header_dirent=$ac_hdr; break
|
20668 |
|
|
fi
|
20669 |
|
|
|
20670 |
|
|
done
|
20671 |
|
|
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
20672 |
|
|
if test $ac_header_dirent = dirent.h; then
|
20673 |
|
|
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
20674 |
|
|
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
20675 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
20676 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20677 |
|
|
else
|
20678 |
|
|
ac_func_search_save_LIBS=$LIBS
|
20679 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20680 |
|
|
/* confdefs.h. */
|
20681 |
|
|
_ACEOF
|
20682 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20683 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20684 |
|
|
/* end confdefs.h. */
|
20685 |
|
|
|
20686 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
20687 |
|
|
Use char because int might match the return type of a GCC
|
20688 |
|
|
builtin and then its argument prototype would still apply. */
|
20689 |
|
|
#ifdef __cplusplus
|
20690 |
|
|
extern "C"
|
20691 |
|
|
#endif
|
20692 |
|
|
char opendir ();
|
20693 |
|
|
int
|
20694 |
|
|
main ()
|
20695 |
|
|
{
|
20696 |
|
|
return opendir ();
|
20697 |
|
|
;
|
20698 |
|
|
return 0;
|
20699 |
|
|
}
|
20700 |
|
|
_ACEOF
|
20701 |
|
|
for ac_lib in '' dir; do
|
20702 |
|
|
if test -z "$ac_lib"; then
|
20703 |
|
|
ac_res="none required"
|
20704 |
|
|
else
|
20705 |
|
|
ac_res=-l$ac_lib
|
20706 |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
20707 |
|
|
fi
|
20708 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
20709 |
|
|
if { (ac_try="$ac_link"
|
20710 |
|
|
case "(($ac_try" in
|
20711 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20712 |
|
|
*) ac_try_echo=$ac_try;;
|
20713 |
|
|
esac
|
20714 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20715 |
|
|
(eval "$ac_link") 2>conftest.er1
|
20716 |
|
|
ac_status=$?
|
20717 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20718 |
|
|
rm -f conftest.er1
|
20719 |
|
|
cat conftest.err >&5
|
20720 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20721 |
|
|
(exit $ac_status); } && {
|
20722 |
|
|
test -z "$ac_c_werror_flag" ||
|
20723 |
|
|
test ! -s conftest.err
|
20724 |
|
|
} && test -s conftest$ac_exeext &&
|
20725 |
|
|
$as_test_x conftest$ac_exeext; then
|
20726 |
|
|
ac_cv_search_opendir=$ac_res
|
20727 |
|
|
else
|
20728 |
|
|
echo "$as_me: failed program was:" >&5
|
20729 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20730 |
|
|
|
20731 |
|
|
|
20732 |
|
|
fi
|
20733 |
|
|
|
20734 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
20735 |
|
|
conftest$ac_exeext
|
20736 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
20737 |
|
|
break
|
20738 |
|
|
fi
|
20739 |
|
|
done
|
20740 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
20741 |
|
|
:
|
20742 |
|
|
else
|
20743 |
|
|
ac_cv_search_opendir=no
|
20744 |
|
|
fi
|
20745 |
|
|
rm conftest.$ac_ext
|
20746 |
|
|
LIBS=$ac_func_search_save_LIBS
|
20747 |
|
|
fi
|
20748 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
20749 |
|
|
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
20750 |
|
|
ac_res=$ac_cv_search_opendir
|
20751 |
|
|
if test "$ac_res" != no; then
|
20752 |
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
20753 |
|
|
|
20754 |
|
|
fi
|
20755 |
|
|
|
20756 |
|
|
else
|
20757 |
|
|
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
20758 |
|
|
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
20759 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
20760 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20761 |
|
|
else
|
20762 |
|
|
ac_func_search_save_LIBS=$LIBS
|
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 |
|
|
|
20770 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
20771 |
|
|
Use char because int might match the return type of a GCC
|
20772 |
|
|
builtin and then its argument prototype would still apply. */
|
20773 |
|
|
#ifdef __cplusplus
|
20774 |
|
|
extern "C"
|
20775 |
|
|
#endif
|
20776 |
|
|
char opendir ();
|
20777 |
|
|
int
|
20778 |
|
|
main ()
|
20779 |
|
|
{
|
20780 |
|
|
return opendir ();
|
20781 |
|
|
;
|
20782 |
|
|
return 0;
|
20783 |
|
|
}
|
20784 |
|
|
_ACEOF
|
20785 |
|
|
for ac_lib in '' x; do
|
20786 |
|
|
if test -z "$ac_lib"; then
|
20787 |
|
|
ac_res="none required"
|
20788 |
|
|
else
|
20789 |
|
|
ac_res=-l$ac_lib
|
20790 |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
20791 |
|
|
fi
|
20792 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
20793 |
|
|
if { (ac_try="$ac_link"
|
20794 |
|
|
case "(($ac_try" in
|
20795 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20796 |
|
|
*) ac_try_echo=$ac_try;;
|
20797 |
|
|
esac
|
20798 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20799 |
|
|
(eval "$ac_link") 2>conftest.er1
|
20800 |
|
|
ac_status=$?
|
20801 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20802 |
|
|
rm -f conftest.er1
|
20803 |
|
|
cat conftest.err >&5
|
20804 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20805 |
|
|
(exit $ac_status); } && {
|
20806 |
|
|
test -z "$ac_c_werror_flag" ||
|
20807 |
|
|
test ! -s conftest.err
|
20808 |
|
|
} && test -s conftest$ac_exeext &&
|
20809 |
|
|
$as_test_x conftest$ac_exeext; then
|
20810 |
|
|
ac_cv_search_opendir=$ac_res
|
20811 |
|
|
else
|
20812 |
|
|
echo "$as_me: failed program was:" >&5
|
20813 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20814 |
|
|
|
20815 |
|
|
|
20816 |
|
|
fi
|
20817 |
|
|
|
20818 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
20819 |
|
|
conftest$ac_exeext
|
20820 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
20821 |
|
|
break
|
20822 |
|
|
fi
|
20823 |
|
|
done
|
20824 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
20825 |
|
|
:
|
20826 |
|
|
else
|
20827 |
|
|
ac_cv_search_opendir=no
|
20828 |
|
|
fi
|
20829 |
|
|
rm conftest.$ac_ext
|
20830 |
|
|
LIBS=$ac_func_search_save_LIBS
|
20831 |
|
|
fi
|
20832 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
20833 |
|
|
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
20834 |
|
|
ac_res=$ac_cv_search_opendir
|
20835 |
|
|
if test "$ac_res" != no; then
|
20836 |
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
20837 |
|
|
|
20838 |
|
|
fi
|
20839 |
|
|
|
20840 |
|
|
fi
|
20841 |
|
|
|
20842 |
|
|
|
20843 |
|
|
|
20844 |
|
|
|
20845 |
|
|
|
20846 |
|
|
|
20847 |
|
|
|
20848 |
|
|
|
20849 |
|
|
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
|
20850 |
|
|
do
|
20851 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
20852 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
20853 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
20854 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
20855 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20856 |
|
|
else
|
20857 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20858 |
|
|
/* confdefs.h. */
|
20859 |
|
|
_ACEOF
|
20860 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20861 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20862 |
|
|
/* end confdefs.h. */
|
20863 |
|
|
/* Define $ac_func to an innocuous variant, in case declares $ac_func.
|
20864 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
20865 |
|
|
#define $ac_func innocuous_$ac_func
|
20866 |
|
|
|
20867 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
20868 |
|
|
which can conflict with char $ac_func (); below.
|
20869 |
|
|
Prefer to if __STDC__ is defined, since
|
20870 |
|
|
exists even on freestanding compilers. */
|
20871 |
|
|
|
20872 |
|
|
#ifdef __STDC__
|
20873 |
|
|
# include
|
20874 |
|
|
#else
|
20875 |
|
|
# include
|
20876 |
|
|
#endif
|
20877 |
|
|
|
20878 |
|
|
#undef $ac_func
|
20879 |
|
|
|
20880 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
20881 |
|
|
Use char because int might match the return type of a GCC
|
20882 |
|
|
builtin and then its argument prototype would still apply. */
|
20883 |
|
|
#ifdef __cplusplus
|
20884 |
|
|
extern "C"
|
20885 |
|
|
#endif
|
20886 |
|
|
char $ac_func ();
|
20887 |
|
|
/* The GNU C library defines this for functions which it implements
|
20888 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
20889 |
|
|
something starting with __ and the normal name is an alias. */
|
20890 |
|
|
#if defined __stub_$ac_func || defined __stub___$ac_func
|
20891 |
|
|
choke me
|
20892 |
|
|
#endif
|
20893 |
|
|
|
20894 |
|
|
int
|
20895 |
|
|
main ()
|
20896 |
|
|
{
|
20897 |
|
|
return $ac_func ();
|
20898 |
|
|
;
|
20899 |
|
|
return 0;
|
20900 |
|
|
}
|
20901 |
|
|
_ACEOF
|
20902 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
20903 |
|
|
if { (ac_try="$ac_link"
|
20904 |
|
|
case "(($ac_try" in
|
20905 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20906 |
|
|
*) ac_try_echo=$ac_try;;
|
20907 |
|
|
esac
|
20908 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20909 |
|
|
(eval "$ac_link") 2>conftest.er1
|
20910 |
|
|
ac_status=$?
|
20911 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20912 |
|
|
rm -f conftest.er1
|
20913 |
|
|
cat conftest.err >&5
|
20914 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20915 |
|
|
(exit $ac_status); } && {
|
20916 |
|
|
test -z "$ac_c_werror_flag" ||
|
20917 |
|
|
test ! -s conftest.err
|
20918 |
|
|
} && test -s conftest$ac_exeext &&
|
20919 |
|
|
$as_test_x conftest$ac_exeext; then
|
20920 |
|
|
eval "$as_ac_var=yes"
|
20921 |
|
|
else
|
20922 |
|
|
echo "$as_me: failed program was:" >&5
|
20923 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20924 |
|
|
|
20925 |
|
|
eval "$as_ac_var=no"
|
20926 |
|
|
fi
|
20927 |
|
|
|
20928 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
20929 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
20930 |
|
|
fi
|
20931 |
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
20932 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
20933 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
20934 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
20935 |
|
|
cat >>confdefs.h <<_ACEOF
|
20936 |
|
|
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
20937 |
|
|
_ACEOF
|
20938 |
|
|
|
20939 |
|
|
fi
|
20940 |
|
|
done
|
20941 |
|
|
|
20942 |
|
|
|
20943 |
|
|
|
20944 |
|
|
|
20945 |
|
|
|
20946 |
|
|
|
20947 |
|
|
|
20948 |
|
|
for ac_func in strndup grantpt unlockpt ptsname on_exit isblank
|
20949 |
|
|
do
|
20950 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
20951 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
20952 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
20953 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
20954 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20955 |
|
|
else
|
20956 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20957 |
|
|
/* confdefs.h. */
|
20958 |
|
|
_ACEOF
|
20959 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20960 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20961 |
|
|
/* end confdefs.h. */
|
20962 |
|
|
/* Define $ac_func to an innocuous variant, in case declares $ac_func.
|
20963 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
20964 |
|
|
#define $ac_func innocuous_$ac_func
|
20965 |
|
|
|
20966 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
20967 |
|
|
which can conflict with char $ac_func (); below.
|
20968 |
|
|
Prefer to if __STDC__ is defined, since
|
20969 |
|
|
exists even on freestanding compilers. */
|
20970 |
|
|
|
20971 |
|
|
#ifdef __STDC__
|
20972 |
|
|
# include
|
20973 |
|
|
#else
|
20974 |
|
|
# include
|
20975 |
|
|
#endif
|
20976 |
|
|
|
20977 |
|
|
#undef $ac_func
|
20978 |
|
|
|
20979 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
20980 |
|
|
Use char because int might match the return type of a GCC
|
20981 |
|
|
builtin and then its argument prototype would still apply. */
|
20982 |
|
|
#ifdef __cplusplus
|
20983 |
|
|
extern "C"
|
20984 |
|
|
#endif
|
20985 |
|
|
char $ac_func ();
|
20986 |
|
|
/* The GNU C library defines this for functions which it implements
|
20987 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
20988 |
|
|
something starting with __ and the normal name is an alias. */
|
20989 |
|
|
#if defined __stub_$ac_func || defined __stub___$ac_func
|
20990 |
|
|
choke me
|
20991 |
|
|
#endif
|
20992 |
|
|
|
20993 |
|
|
int
|
20994 |
|
|
main ()
|
20995 |
|
|
{
|
20996 |
|
|
return $ac_func ();
|
20997 |
|
|
;
|
20998 |
|
|
return 0;
|
20999 |
|
|
}
|
21000 |
|
|
_ACEOF
|
21001 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
21002 |
|
|
if { (ac_try="$ac_link"
|
21003 |
|
|
case "(($ac_try" in
|
21004 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21005 |
|
|
*) ac_try_echo=$ac_try;;
|
21006 |
|
|
esac
|
21007 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21008 |
|
|
(eval "$ac_link") 2>conftest.er1
|
21009 |
|
|
ac_status=$?
|
21010 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21011 |
|
|
rm -f conftest.er1
|
21012 |
|
|
cat conftest.err >&5
|
21013 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21014 |
|
|
(exit $ac_status); } && {
|
21015 |
|
|
test -z "$ac_c_werror_flag" ||
|
21016 |
|
|
test ! -s conftest.err
|
21017 |
|
|
} && test -s conftest$ac_exeext &&
|
21018 |
|
|
$as_test_x conftest$ac_exeext; then
|
21019 |
|
|
eval "$as_ac_var=yes"
|
21020 |
|
|
else
|
21021 |
|
|
echo "$as_me: failed program was:" >&5
|
21022 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21023 |
|
|
|
21024 |
|
|
eval "$as_ac_var=no"
|
21025 |
|
|
fi
|
21026 |
|
|
|
21027 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
21028 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
21029 |
|
|
fi
|
21030 |
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
21031 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
21032 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
21033 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
21034 |
|
|
cat >>confdefs.h <<_ACEOF
|
21035 |
|
|
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
21036 |
|
|
_ACEOF
|
21037 |
|
|
|
21038 |
|
|
fi
|
21039 |
|
|
done
|
21040 |
|
|
|
21041 |
|
|
|
21042 |
|
|
for ac_func in basename
|
21043 |
|
|
do
|
21044 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
21045 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
21046 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
21047 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
21048 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21049 |
|
|
else
|
21050 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21051 |
|
|
/* confdefs.h. */
|
21052 |
|
|
_ACEOF
|
21053 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21054 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21055 |
|
|
/* end confdefs.h. */
|
21056 |
|
|
/* Define $ac_func to an innocuous variant, in case declares $ac_func.
|
21057 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
21058 |
|
|
#define $ac_func innocuous_$ac_func
|
21059 |
|
|
|
21060 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
21061 |
|
|
which can conflict with char $ac_func (); below.
|
21062 |
|
|
Prefer to if __STDC__ is defined, since
|
21063 |
|
|
exists even on freestanding compilers. */
|
21064 |
|
|
|
21065 |
|
|
#ifdef __STDC__
|
21066 |
|
|
# include
|
21067 |
|
|
#else
|
21068 |
|
|
# include
|
21069 |
|
|
#endif
|
21070 |
|
|
|
21071 |
|
|
#undef $ac_func
|
21072 |
|
|
|
21073 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
21074 |
|
|
Use char because int might match the return type of a GCC
|
21075 |
|
|
builtin and then its argument prototype would still apply. */
|
21076 |
|
|
#ifdef __cplusplus
|
21077 |
|
|
extern "C"
|
21078 |
|
|
#endif
|
21079 |
|
|
char $ac_func ();
|
21080 |
|
|
/* The GNU C library defines this for functions which it implements
|
21081 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
21082 |
|
|
something starting with __ and the normal name is an alias. */
|
21083 |
|
|
#if defined __stub_$ac_func || defined __stub___$ac_func
|
21084 |
|
|
choke me
|
21085 |
|
|
#endif
|
21086 |
|
|
|
21087 |
|
|
int
|
21088 |
|
|
main ()
|
21089 |
|
|
{
|
21090 |
|
|
return $ac_func ();
|
21091 |
|
|
;
|
21092 |
|
|
return 0;
|
21093 |
|
|
}
|
21094 |
|
|
_ACEOF
|
21095 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
21096 |
|
|
if { (ac_try="$ac_link"
|
21097 |
|
|
case "(($ac_try" in
|
21098 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21099 |
|
|
*) ac_try_echo=$ac_try;;
|
21100 |
|
|
esac
|
21101 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21102 |
|
|
(eval "$ac_link") 2>conftest.er1
|
21103 |
|
|
ac_status=$?
|
21104 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21105 |
|
|
rm -f conftest.er1
|
21106 |
|
|
cat conftest.err >&5
|
21107 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21108 |
|
|
(exit $ac_status); } && {
|
21109 |
|
|
test -z "$ac_c_werror_flag" ||
|
21110 |
|
|
test ! -s conftest.err
|
21111 |
|
|
} && test -s conftest$ac_exeext &&
|
21112 |
|
|
$as_test_x conftest$ac_exeext; then
|
21113 |
|
|
eval "$as_ac_var=yes"
|
21114 |
|
|
else
|
21115 |
|
|
echo "$as_me: failed program was:" >&5
|
21116 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21117 |
|
|
|
21118 |
|
|
eval "$as_ac_var=no"
|
21119 |
|
|
fi
|
21120 |
|
|
|
21121 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
21122 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
21123 |
|
|
fi
|
21124 |
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
21125 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
21126 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
21127 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
21128 |
|
|
cat >>confdefs.h <<_ACEOF
|
21129 |
|
|
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
21130 |
|
|
_ACEOF
|
21131 |
|
|
|
21132 |
|
|
fi
|
21133 |
|
|
done
|
21134 |
|
|
|
21135 |
|
|
{ echo "$as_me:$LINENO: checking for working strcoll" >&5
|
21136 |
|
|
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
|
21137 |
|
|
if test "${ac_cv_func_strcoll_works+set}" = set; then
|
21138 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21139 |
|
|
else
|
21140 |
|
|
if test "$cross_compiling" = yes; then
|
21141 |
|
|
ac_cv_func_strcoll_works=no
|
21142 |
|
|
else
|
21143 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21144 |
|
|
/* confdefs.h. */
|
21145 |
|
|
_ACEOF
|
21146 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21147 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21148 |
|
|
/* end confdefs.h. */
|
21149 |
|
|
$ac_includes_default
|
21150 |
|
|
int
|
21151 |
|
|
main ()
|
21152 |
|
|
{
|
21153 |
|
|
return (strcoll ("abc", "def") >= 0 ||
|
21154 |
|
|
strcoll ("ABC", "DEF") >= 0 ||
|
21155 |
|
|
strcoll ("123", "456") >= 0)
|
21156 |
|
|
;
|
21157 |
|
|
return 0;
|
21158 |
|
|
}
|
21159 |
|
|
_ACEOF
|
21160 |
|
|
rm -f conftest$ac_exeext
|
21161 |
|
|
if { (ac_try="$ac_link"
|
21162 |
|
|
case "(($ac_try" in
|
21163 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21164 |
|
|
*) ac_try_echo=$ac_try;;
|
21165 |
|
|
esac
|
21166 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21167 |
|
|
(eval "$ac_link") 2>&5
|
21168 |
|
|
ac_status=$?
|
21169 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21170 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
21171 |
|
|
{ (case "(($ac_try" in
|
21172 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21173 |
|
|
*) ac_try_echo=$ac_try;;
|
21174 |
|
|
esac
|
21175 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21176 |
|
|
(eval "$ac_try") 2>&5
|
21177 |
|
|
ac_status=$?
|
21178 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21179 |
|
|
(exit $ac_status); }; }; then
|
21180 |
|
|
ac_cv_func_strcoll_works=yes
|
21181 |
|
|
else
|
21182 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
21183 |
|
|
echo "$as_me: failed program was:" >&5
|
21184 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21185 |
|
|
|
21186 |
|
|
( exit $ac_status )
|
21187 |
|
|
ac_cv_func_strcoll_works=no
|
21188 |
|
|
fi
|
21189 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
21190 |
|
|
fi
|
21191 |
|
|
|
21192 |
|
|
|
21193 |
|
|
fi
|
21194 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
|
21195 |
|
|
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
|
21196 |
|
|
if test $ac_cv_func_strcoll_works = yes; then
|
21197 |
|
|
|
21198 |
|
|
cat >>confdefs.h <<\_ACEOF
|
21199 |
|
|
@%:@define HAVE_STRCOLL 1
|
21200 |
|
|
_ACEOF
|
21201 |
|
|
|
21202 |
|
|
fi
|
21203 |
|
|
|
21204 |
|
|
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
21205 |
|
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
21206 |
|
|
if test "${ac_cv_header_stdc+set}" = set; then
|
21207 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21208 |
|
|
else
|
21209 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21210 |
|
|
/* confdefs.h. */
|
21211 |
|
|
_ACEOF
|
21212 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21213 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21214 |
|
|
/* end confdefs.h. */
|
21215 |
|
|
#include
|
21216 |
|
|
#include
|
21217 |
|
|
#include
|
21218 |
|
|
#include
|
21219 |
|
|
|
21220 |
|
|
int
|
21221 |
|
|
main ()
|
21222 |
|
|
{
|
21223 |
|
|
|
21224 |
|
|
;
|
21225 |
|
|
return 0;
|
21226 |
|
|
}
|
21227 |
|
|
_ACEOF
|
21228 |
|
|
rm -f conftest.$ac_objext
|
21229 |
|
|
if { (ac_try="$ac_compile"
|
21230 |
|
|
case "(($ac_try" in
|
21231 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21232 |
|
|
*) ac_try_echo=$ac_try;;
|
21233 |
|
|
esac
|
21234 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21235 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21236 |
|
|
ac_status=$?
|
21237 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21238 |
|
|
rm -f conftest.er1
|
21239 |
|
|
cat conftest.err >&5
|
21240 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21241 |
|
|
(exit $ac_status); } && {
|
21242 |
|
|
test -z "$ac_c_werror_flag" ||
|
21243 |
|
|
test ! -s conftest.err
|
21244 |
|
|
} && test -s conftest.$ac_objext; then
|
21245 |
|
|
ac_cv_header_stdc=yes
|
21246 |
|
|
else
|
21247 |
|
|
echo "$as_me: failed program was:" >&5
|
21248 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21249 |
|
|
|
21250 |
|
|
ac_cv_header_stdc=no
|
21251 |
|
|
fi
|
21252 |
|
|
|
21253 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21254 |
|
|
|
21255 |
|
|
if test $ac_cv_header_stdc = yes; then
|
21256 |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
21257 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21258 |
|
|
/* confdefs.h. */
|
21259 |
|
|
_ACEOF
|
21260 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21261 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21262 |
|
|
/* end confdefs.h. */
|
21263 |
|
|
#include
|
21264 |
|
|
|
21265 |
|
|
_ACEOF
|
21266 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
21267 |
|
|
$EGREP "memchr" >/dev/null 2>&1; then
|
21268 |
|
|
:
|
21269 |
|
|
else
|
21270 |
|
|
ac_cv_header_stdc=no
|
21271 |
|
|
fi
|
21272 |
|
|
rm -f conftest*
|
21273 |
|
|
|
21274 |
|
|
fi
|
21275 |
|
|
|
21276 |
|
|
if test $ac_cv_header_stdc = yes; then
|
21277 |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
21278 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21279 |
|
|
/* confdefs.h. */
|
21280 |
|
|
_ACEOF
|
21281 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21282 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21283 |
|
|
/* end confdefs.h. */
|
21284 |
|
|
#include
|
21285 |
|
|
|
21286 |
|
|
_ACEOF
|
21287 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
21288 |
|
|
$EGREP "free" >/dev/null 2>&1; then
|
21289 |
|
|
:
|
21290 |
|
|
else
|
21291 |
|
|
ac_cv_header_stdc=no
|
21292 |
|
|
fi
|
21293 |
|
|
rm -f conftest*
|
21294 |
|
|
|
21295 |
|
|
fi
|
21296 |
|
|
|
21297 |
|
|
if test $ac_cv_header_stdc = yes; then
|
21298 |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
21299 |
|
|
if test "$cross_compiling" = yes; then
|
21300 |
|
|
:
|
21301 |
|
|
else
|
21302 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21303 |
|
|
/* confdefs.h. */
|
21304 |
|
|
_ACEOF
|
21305 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21306 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21307 |
|
|
/* end confdefs.h. */
|
21308 |
|
|
#include
|
21309 |
|
|
#include
|
21310 |
|
|
#if ((' ' & 0x0FF) == 0x020)
|
21311 |
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
21312 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
21313 |
|
|
#else
|
21314 |
|
|
# define ISLOWER(c) \
|
21315 |
|
|
(('a' <= (c) && (c) <= 'i') \
|
21316 |
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
21317 |
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
21318 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
21319 |
|
|
#endif
|
21320 |
|
|
|
21321 |
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
21322 |
|
|
int
|
21323 |
|
|
main ()
|
21324 |
|
|
{
|
21325 |
|
|
int i;
|
21326 |
|
|
for (i = 0; i < 256; i++)
|
21327 |
|
|
if (XOR (islower (i), ISLOWER (i))
|
21328 |
|
|
|| toupper (i) != TOUPPER (i))
|
21329 |
|
|
return 2;
|
21330 |
|
|
return 0;
|
21331 |
|
|
}
|
21332 |
|
|
_ACEOF
|
21333 |
|
|
rm -f conftest$ac_exeext
|
21334 |
|
|
if { (ac_try="$ac_link"
|
21335 |
|
|
case "(($ac_try" in
|
21336 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21337 |
|
|
*) ac_try_echo=$ac_try;;
|
21338 |
|
|
esac
|
21339 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21340 |
|
|
(eval "$ac_link") 2>&5
|
21341 |
|
|
ac_status=$?
|
21342 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21343 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
21344 |
|
|
{ (case "(($ac_try" in
|
21345 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21346 |
|
|
*) ac_try_echo=$ac_try;;
|
21347 |
|
|
esac
|
21348 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21349 |
|
|
(eval "$ac_try") 2>&5
|
21350 |
|
|
ac_status=$?
|
21351 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21352 |
|
|
(exit $ac_status); }; }; then
|
21353 |
|
|
:
|
21354 |
|
|
else
|
21355 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
21356 |
|
|
echo "$as_me: failed program was:" >&5
|
21357 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21358 |
|
|
|
21359 |
|
|
( exit $ac_status )
|
21360 |
|
|
ac_cv_header_stdc=no
|
21361 |
|
|
fi
|
21362 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
21363 |
|
|
fi
|
21364 |
|
|
|
21365 |
|
|
|
21366 |
|
|
fi
|
21367 |
|
|
fi
|
21368 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
21369 |
|
|
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
21370 |
|
|
if test $ac_cv_header_stdc = yes; then
|
21371 |
|
|
|
21372 |
|
|
cat >>confdefs.h <<\_ACEOF
|
21373 |
|
|
@%:@define STDC_HEADERS 1
|
21374 |
|
|
_ACEOF
|
21375 |
|
|
|
21376 |
|
|
fi
|
21377 |
|
|
|
21378 |
|
|
|
21379 |
|
|
|
21380 |
|
|
|
21381 |
|
|
|
21382 |
|
|
|
21383 |
|
|
|
21384 |
|
|
|
21385 |
|
|
|
21386 |
|
|
|
21387 |
|
|
|
21388 |
|
|
|
21389 |
|
|
|
21390 |
|
|
|
21391 |
|
|
|
21392 |
|
|
|
21393 |
|
|
|
21394 |
|
|
|
21395 |
|
|
|
21396 |
|
|
|
21397 |
|
|
|
21398 |
|
|
|
21399 |
|
|
|
21400 |
|
|
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
|
21401 |
|
|
sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
|
21402 |
|
|
termcap.h termios.h termio.h sys/file.h locale.h getopt.h \
|
21403 |
|
|
net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h
|
21404 |
|
|
do
|
21405 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
21406 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
21407 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
21408 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
21409 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
21410 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21411 |
|
|
fi
|
21412 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
21413 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
21414 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
21415 |
|
|
else
|
21416 |
|
|
# Is the header compilable?
|
21417 |
|
|
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
21418 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
21419 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21420 |
|
|
/* confdefs.h. */
|
21421 |
|
|
_ACEOF
|
21422 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21423 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21424 |
|
|
/* end confdefs.h. */
|
21425 |
|
|
$ac_includes_default
|
21426 |
|
|
@%:@include <$ac_header>
|
21427 |
|
|
_ACEOF
|
21428 |
|
|
rm -f conftest.$ac_objext
|
21429 |
|
|
if { (ac_try="$ac_compile"
|
21430 |
|
|
case "(($ac_try" in
|
21431 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21432 |
|
|
*) ac_try_echo=$ac_try;;
|
21433 |
|
|
esac
|
21434 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21435 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21436 |
|
|
ac_status=$?
|
21437 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21438 |
|
|
rm -f conftest.er1
|
21439 |
|
|
cat conftest.err >&5
|
21440 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21441 |
|
|
(exit $ac_status); } && {
|
21442 |
|
|
test -z "$ac_c_werror_flag" ||
|
21443 |
|
|
test ! -s conftest.err
|
21444 |
|
|
} && test -s conftest.$ac_objext; then
|
21445 |
|
|
ac_header_compiler=yes
|
21446 |
|
|
else
|
21447 |
|
|
echo "$as_me: failed program was:" >&5
|
21448 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21449 |
|
|
|
21450 |
|
|
ac_header_compiler=no
|
21451 |
|
|
fi
|
21452 |
|
|
|
21453 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21454 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
21455 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
21456 |
|
|
|
21457 |
|
|
# Is the header present?
|
21458 |
|
|
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
21459 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
21460 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21461 |
|
|
/* confdefs.h. */
|
21462 |
|
|
_ACEOF
|
21463 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21464 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21465 |
|
|
/* end confdefs.h. */
|
21466 |
|
|
@%:@include <$ac_header>
|
21467 |
|
|
_ACEOF
|
21468 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
21469 |
|
|
case "(($ac_try" in
|
21470 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21471 |
|
|
*) ac_try_echo=$ac_try;;
|
21472 |
|
|
esac
|
21473 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21474 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
21475 |
|
|
ac_status=$?
|
21476 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21477 |
|
|
rm -f conftest.er1
|
21478 |
|
|
cat conftest.err >&5
|
21479 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21480 |
|
|
(exit $ac_status); } >/dev/null && {
|
21481 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
21482 |
|
|
test ! -s conftest.err
|
21483 |
|
|
}; then
|
21484 |
|
|
ac_header_preproc=yes
|
21485 |
|
|
else
|
21486 |
|
|
echo "$as_me: failed program was:" >&5
|
21487 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21488 |
|
|
|
21489 |
|
|
ac_header_preproc=no
|
21490 |
|
|
fi
|
21491 |
|
|
|
21492 |
|
|
rm -f conftest.err conftest.$ac_ext
|
21493 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
21494 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
21495 |
|
|
|
21496 |
|
|
# So? What about this header?
|
21497 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
21498 |
|
|
yes:no: )
|
21499 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
21500 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
21501 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
21502 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
21503 |
|
|
ac_header_preproc=yes
|
21504 |
|
|
;;
|
21505 |
|
|
no:yes:* )
|
21506 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
21507 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
21508 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
21509 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
21510 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
21511 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
21512 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
21513 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
21514 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
21515 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
21516 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
21517 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
21518 |
|
|
( cat <<\_ASBOX
|
21519 |
|
|
@%:@@%:@ ------------------------------------- @%:@@%:@
|
21520 |
|
|
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
|
21521 |
|
|
@%:@@%:@ ------------------------------------- @%:@@%:@
|
21522 |
|
|
_ASBOX
|
21523 |
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
21524 |
|
|
;;
|
21525 |
|
|
esac
|
21526 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
21527 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
21528 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
21529 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21530 |
|
|
else
|
21531 |
|
|
eval "$as_ac_Header=\$ac_header_preproc"
|
21532 |
|
|
fi
|
21533 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
21534 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
21535 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
21536 |
|
|
|
21537 |
|
|
fi
|
21538 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
21539 |
|
|
cat >>confdefs.h <<_ACEOF
|
21540 |
|
|
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
21541 |
|
|
_ACEOF
|
21542 |
|
|
|
21543 |
|
|
fi
|
21544 |
|
|
|
21545 |
|
|
done
|
21546 |
|
|
|
21547 |
|
|
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
21548 |
|
|
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
|
21549 |
|
|
if test "${ac_cv_c_bigendian+set}" = set; then
|
21550 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21551 |
|
|
else
|
21552 |
|
|
# See if sys/param.h defines the BYTE_ORDER macro.
|
21553 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21554 |
|
|
/* confdefs.h. */
|
21555 |
|
|
_ACEOF
|
21556 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21557 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21558 |
|
|
/* end confdefs.h. */
|
21559 |
|
|
#include
|
21560 |
|
|
#include
|
21561 |
|
|
|
21562 |
|
|
int
|
21563 |
|
|
main ()
|
21564 |
|
|
{
|
21565 |
|
|
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
|
21566 |
|
|
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
|
21567 |
|
|
bogus endian macros
|
21568 |
|
|
#endif
|
21569 |
|
|
|
21570 |
|
|
;
|
21571 |
|
|
return 0;
|
21572 |
|
|
}
|
21573 |
|
|
_ACEOF
|
21574 |
|
|
rm -f conftest.$ac_objext
|
21575 |
|
|
if { (ac_try="$ac_compile"
|
21576 |
|
|
case "(($ac_try" in
|
21577 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21578 |
|
|
*) ac_try_echo=$ac_try;;
|
21579 |
|
|
esac
|
21580 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21581 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21582 |
|
|
ac_status=$?
|
21583 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21584 |
|
|
rm -f conftest.er1
|
21585 |
|
|
cat conftest.err >&5
|
21586 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21587 |
|
|
(exit $ac_status); } && {
|
21588 |
|
|
test -z "$ac_c_werror_flag" ||
|
21589 |
|
|
test ! -s conftest.err
|
21590 |
|
|
} && test -s conftest.$ac_objext; then
|
21591 |
|
|
# It does; now see whether it defined to BIG_ENDIAN or not.
|
21592 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21593 |
|
|
/* confdefs.h. */
|
21594 |
|
|
_ACEOF
|
21595 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21596 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21597 |
|
|
/* end confdefs.h. */
|
21598 |
|
|
#include
|
21599 |
|
|
#include
|
21600 |
|
|
|
21601 |
|
|
int
|
21602 |
|
|
main ()
|
21603 |
|
|
{
|
21604 |
|
|
#if BYTE_ORDER != BIG_ENDIAN
|
21605 |
|
|
not big endian
|
21606 |
|
|
#endif
|
21607 |
|
|
|
21608 |
|
|
;
|
21609 |
|
|
return 0;
|
21610 |
|
|
}
|
21611 |
|
|
_ACEOF
|
21612 |
|
|
rm -f conftest.$ac_objext
|
21613 |
|
|
if { (ac_try="$ac_compile"
|
21614 |
|
|
case "(($ac_try" in
|
21615 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21616 |
|
|
*) ac_try_echo=$ac_try;;
|
21617 |
|
|
esac
|
21618 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21619 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21620 |
|
|
ac_status=$?
|
21621 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21622 |
|
|
rm -f conftest.er1
|
21623 |
|
|
cat conftest.err >&5
|
21624 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21625 |
|
|
(exit $ac_status); } && {
|
21626 |
|
|
test -z "$ac_c_werror_flag" ||
|
21627 |
|
|
test ! -s conftest.err
|
21628 |
|
|
} && test -s conftest.$ac_objext; then
|
21629 |
|
|
ac_cv_c_bigendian=yes
|
21630 |
|
|
else
|
21631 |
|
|
echo "$as_me: failed program was:" >&5
|
21632 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21633 |
|
|
|
21634 |
|
|
ac_cv_c_bigendian=no
|
21635 |
|
|
fi
|
21636 |
|
|
|
21637 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21638 |
|
|
else
|
21639 |
|
|
echo "$as_me: failed program was:" >&5
|
21640 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21641 |
|
|
|
21642 |
|
|
# It does not; compile a test program.
|
21643 |
|
|
if test "$cross_compiling" = yes; then
|
21644 |
|
|
# try to guess the endianness by grepping values into an object file
|
21645 |
|
|
ac_cv_c_bigendian=unknown
|
21646 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21647 |
|
|
/* confdefs.h. */
|
21648 |
|
|
_ACEOF
|
21649 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21650 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21651 |
|
|
/* end confdefs.h. */
|
21652 |
|
|
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
21653 |
|
|
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
21654 |
|
|
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
21655 |
|
|
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
21656 |
|
|
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
21657 |
|
|
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
21658 |
|
|
int
|
21659 |
|
|
main ()
|
21660 |
|
|
{
|
21661 |
|
|
_ascii (); _ebcdic ();
|
21662 |
|
|
;
|
21663 |
|
|
return 0;
|
21664 |
|
|
}
|
21665 |
|
|
_ACEOF
|
21666 |
|
|
rm -f conftest.$ac_objext
|
21667 |
|
|
if { (ac_try="$ac_compile"
|
21668 |
|
|
case "(($ac_try" in
|
21669 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21670 |
|
|
*) ac_try_echo=$ac_try;;
|
21671 |
|
|
esac
|
21672 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21673 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21674 |
|
|
ac_status=$?
|
21675 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21676 |
|
|
rm -f conftest.er1
|
21677 |
|
|
cat conftest.err >&5
|
21678 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21679 |
|
|
(exit $ac_status); } && {
|
21680 |
|
|
test -z "$ac_c_werror_flag" ||
|
21681 |
|
|
test ! -s conftest.err
|
21682 |
|
|
} && test -s conftest.$ac_objext; then
|
21683 |
|
|
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
21684 |
|
|
ac_cv_c_bigendian=yes
|
21685 |
|
|
fi
|
21686 |
|
|
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
21687 |
|
|
if test "$ac_cv_c_bigendian" = unknown; then
|
21688 |
|
|
ac_cv_c_bigendian=no
|
21689 |
|
|
else
|
21690 |
|
|
# finding both strings is unlikely to happen, but who knows?
|
21691 |
|
|
ac_cv_c_bigendian=unknown
|
21692 |
|
|
fi
|
21693 |
|
|
fi
|
21694 |
|
|
else
|
21695 |
|
|
echo "$as_me: failed program was:" >&5
|
21696 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21697 |
|
|
|
21698 |
|
|
|
21699 |
|
|
fi
|
21700 |
|
|
|
21701 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21702 |
|
|
else
|
21703 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21704 |
|
|
/* confdefs.h. */
|
21705 |
|
|
_ACEOF
|
21706 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21707 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21708 |
|
|
/* end confdefs.h. */
|
21709 |
|
|
$ac_includes_default
|
21710 |
|
|
int
|
21711 |
|
|
main ()
|
21712 |
|
|
{
|
21713 |
|
|
|
21714 |
|
|
/* Are we little or big endian? From Harbison&Steele. */
|
21715 |
|
|
union
|
21716 |
|
|
{
|
21717 |
|
|
long int l;
|
21718 |
|
|
char c[sizeof (long int)];
|
21719 |
|
|
} u;
|
21720 |
|
|
u.l = 1;
|
21721 |
|
|
return u.c[sizeof (long int) - 1] == 1;
|
21722 |
|
|
|
21723 |
|
|
;
|
21724 |
|
|
return 0;
|
21725 |
|
|
}
|
21726 |
|
|
_ACEOF
|
21727 |
|
|
rm -f conftest$ac_exeext
|
21728 |
|
|
if { (ac_try="$ac_link"
|
21729 |
|
|
case "(($ac_try" in
|
21730 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21731 |
|
|
*) ac_try_echo=$ac_try;;
|
21732 |
|
|
esac
|
21733 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21734 |
|
|
(eval "$ac_link") 2>&5
|
21735 |
|
|
ac_status=$?
|
21736 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21737 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
21738 |
|
|
{ (case "(($ac_try" in
|
21739 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21740 |
|
|
*) ac_try_echo=$ac_try;;
|
21741 |
|
|
esac
|
21742 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21743 |
|
|
(eval "$ac_try") 2>&5
|
21744 |
|
|
ac_status=$?
|
21745 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21746 |
|
|
(exit $ac_status); }; }; then
|
21747 |
|
|
ac_cv_c_bigendian=no
|
21748 |
|
|
else
|
21749 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
21750 |
|
|
echo "$as_me: failed program was:" >&5
|
21751 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21752 |
|
|
|
21753 |
|
|
( exit $ac_status )
|
21754 |
|
|
ac_cv_c_bigendian=yes
|
21755 |
|
|
fi
|
21756 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
21757 |
|
|
fi
|
21758 |
|
|
|
21759 |
|
|
|
21760 |
|
|
fi
|
21761 |
|
|
|
21762 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21763 |
|
|
fi
|
21764 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
21765 |
|
|
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
|
21766 |
|
|
case $ac_cv_c_bigendian in
|
21767 |
|
|
yes)
|
21768 |
|
|
|
21769 |
|
|
cat >>confdefs.h <<\_ACEOF
|
21770 |
|
|
@%:@define WORDS_BIGENDIAN 1
|
21771 |
|
|
_ACEOF
|
21772 |
|
|
;;
|
21773 |
|
|
no)
|
21774 |
|
|
;;
|
21775 |
|
|
*)
|
21776 |
|
|
{ { echo "$as_me:$LINENO: error: unknown endianness
|
21777 |
|
|
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
21778 |
|
|
echo "$as_me: error: unknown endianness
|
21779 |
|
|
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
21780 |
|
|
{ (exit 1); exit 1; }; } ;;
|
21781 |
|
|
esac
|
21782 |
|
|
|
21783 |
|
|
|
21784 |
|
|
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
|
21785 |
|
|
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
21786 |
|
|
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
|
21787 |
|
|
if test "${ac_cv_c_const+set}" = set; then
|
21788 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21789 |
|
|
else
|
21790 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21791 |
|
|
/* confdefs.h. */
|
21792 |
|
|
_ACEOF
|
21793 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21794 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21795 |
|
|
/* end confdefs.h. */
|
21796 |
|
|
|
21797 |
|
|
int
|
21798 |
|
|
main ()
|
21799 |
|
|
{
|
21800 |
|
|
/* FIXME: Include the comments suggested by Paul. */
|
21801 |
|
|
#ifndef __cplusplus
|
21802 |
|
|
/* Ultrix mips cc rejects this. */
|
21803 |
|
|
typedef int charset[2];
|
21804 |
|
|
const charset cs;
|
21805 |
|
|
/* SunOS 4.1.1 cc rejects this. */
|
21806 |
|
|
char const *const *pcpcc;
|
21807 |
|
|
char **ppc;
|
21808 |
|
|
/* NEC SVR4.0.2 mips cc rejects this. */
|
21809 |
|
|
struct point {int x, y;};
|
21810 |
|
|
static struct point const zero = {0,0};
|
21811 |
|
|
/* AIX XL C 1.02.0.0 rejects this.
|
21812 |
|
|
It does not let you subtract one const X* pointer from another in
|
21813 |
|
|
an arm of an if-expression whose if-part is not a constant
|
21814 |
|
|
expression */
|
21815 |
|
|
const char *g = "string";
|
21816 |
|
|
pcpcc = &g + (g ? g-g : 0);
|
21817 |
|
|
/* HPUX 7.0 cc rejects these. */
|
21818 |
|
|
++pcpcc;
|
21819 |
|
|
ppc = (char**) pcpcc;
|
21820 |
|
|
pcpcc = (char const *const *) ppc;
|
21821 |
|
|
{ /* SCO 3.2v4 cc rejects this. */
|
21822 |
|
|
char *t;
|
21823 |
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
21824 |
|
|
|
21825 |
|
|
*t++ = 0;
|
21826 |
|
|
if (s) return 0;
|
21827 |
|
|
}
|
21828 |
|
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
21829 |
|
|
int x[] = {25, 17};
|
21830 |
|
|
const int *foo = &x[0];
|
21831 |
|
|
++foo;
|
21832 |
|
|
}
|
21833 |
|
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
21834 |
|
|
typedef const int *iptr;
|
21835 |
|
|
iptr p = 0;
|
21836 |
|
|
++p;
|
21837 |
|
|
}
|
21838 |
|
|
{ /* AIX XL C 1.02.0.0 rejects this saying
|
21839 |
|
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
21840 |
|
|
struct s { int j; const int *ap[3]; };
|
21841 |
|
|
struct s *b; b->j = 5;
|
21842 |
|
|
}
|
21843 |
|
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
21844 |
|
|
const int foo = 10;
|
21845 |
|
|
if (!foo) return 0;
|
21846 |
|
|
}
|
21847 |
|
|
return !cs[0] && !zero.x;
|
21848 |
|
|
#endif
|
21849 |
|
|
|
21850 |
|
|
;
|
21851 |
|
|
return 0;
|
21852 |
|
|
}
|
21853 |
|
|
_ACEOF
|
21854 |
|
|
rm -f conftest.$ac_objext
|
21855 |
|
|
if { (ac_try="$ac_compile"
|
21856 |
|
|
case "(($ac_try" in
|
21857 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21858 |
|
|
*) ac_try_echo=$ac_try;;
|
21859 |
|
|
esac
|
21860 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21861 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21862 |
|
|
ac_status=$?
|
21863 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21864 |
|
|
rm -f conftest.er1
|
21865 |
|
|
cat conftest.err >&5
|
21866 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21867 |
|
|
(exit $ac_status); } && {
|
21868 |
|
|
test -z "$ac_c_werror_flag" ||
|
21869 |
|
|
test ! -s conftest.err
|
21870 |
|
|
} && test -s conftest.$ac_objext; then
|
21871 |
|
|
ac_cv_c_const=yes
|
21872 |
|
|
else
|
21873 |
|
|
echo "$as_me: failed program was:" >&5
|
21874 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21875 |
|
|
|
21876 |
|
|
ac_cv_c_const=no
|
21877 |
|
|
fi
|
21878 |
|
|
|
21879 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21880 |
|
|
fi
|
21881 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
21882 |
|
|
echo "${ECHO_T}$ac_cv_c_const" >&6; }
|
21883 |
|
|
if test $ac_cv_c_const = no; then
|
21884 |
|
|
|
21885 |
|
|
cat >>confdefs.h <<\_ACEOF
|
21886 |
|
|
@%:@define const
|
21887 |
|
|
_ACEOF
|
21888 |
|
|
|
21889 |
|
|
fi
|
21890 |
|
|
|
21891 |
|
|
{ echo "$as_me:$LINENO: checking for size_t" >&5
|
21892 |
|
|
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
|
21893 |
|
|
if test "${ac_cv_type_size_t+set}" = set; then
|
21894 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21895 |
|
|
else
|
21896 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21897 |
|
|
/* confdefs.h. */
|
21898 |
|
|
_ACEOF
|
21899 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21900 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21901 |
|
|
/* end confdefs.h. */
|
21902 |
|
|
$ac_includes_default
|
21903 |
|
|
typedef size_t ac__type_new_;
|
21904 |
|
|
int
|
21905 |
|
|
main ()
|
21906 |
|
|
{
|
21907 |
|
|
if ((ac__type_new_ *) 0)
|
21908 |
|
|
return 0;
|
21909 |
|
|
if (sizeof (ac__type_new_))
|
21910 |
|
|
return 0;
|
21911 |
|
|
;
|
21912 |
|
|
return 0;
|
21913 |
|
|
}
|
21914 |
|
|
_ACEOF
|
21915 |
|
|
rm -f conftest.$ac_objext
|
21916 |
|
|
if { (ac_try="$ac_compile"
|
21917 |
|
|
case "(($ac_try" in
|
21918 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21919 |
|
|
*) ac_try_echo=$ac_try;;
|
21920 |
|
|
esac
|
21921 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21922 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21923 |
|
|
ac_status=$?
|
21924 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21925 |
|
|
rm -f conftest.er1
|
21926 |
|
|
cat conftest.err >&5
|
21927 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21928 |
|
|
(exit $ac_status); } && {
|
21929 |
|
|
test -z "$ac_c_werror_flag" ||
|
21930 |
|
|
test ! -s conftest.err
|
21931 |
|
|
} && test -s conftest.$ac_objext; then
|
21932 |
|
|
ac_cv_type_size_t=yes
|
21933 |
|
|
else
|
21934 |
|
|
echo "$as_me: failed program was:" >&5
|
21935 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21936 |
|
|
|
21937 |
|
|
ac_cv_type_size_t=no
|
21938 |
|
|
fi
|
21939 |
|
|
|
21940 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21941 |
|
|
fi
|
21942 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
21943 |
|
|
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
|
21944 |
|
|
if test $ac_cv_type_size_t = yes; then
|
21945 |
|
|
:
|
21946 |
|
|
else
|
21947 |
|
|
|
21948 |
|
|
cat >>confdefs.h <<_ACEOF
|
21949 |
|
|
@%:@define size_t unsigned int
|
21950 |
|
|
_ACEOF
|
21951 |
|
|
|
21952 |
|
|
fi
|
21953 |
|
|
|
21954 |
|
|
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
21955 |
|
|
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
|
21956 |
|
|
if test "${ac_cv_struct_tm+set}" = set; then
|
21957 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21958 |
|
|
else
|
21959 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21960 |
|
|
/* confdefs.h. */
|
21961 |
|
|
_ACEOF
|
21962 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21963 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21964 |
|
|
/* end confdefs.h. */
|
21965 |
|
|
#include
|
21966 |
|
|
#include
|
21967 |
|
|
|
21968 |
|
|
int
|
21969 |
|
|
main ()
|
21970 |
|
|
{
|
21971 |
|
|
struct tm tm;
|
21972 |
|
|
int *p = &tm.tm_sec;
|
21973 |
|
|
return !p;
|
21974 |
|
|
;
|
21975 |
|
|
return 0;
|
21976 |
|
|
}
|
21977 |
|
|
_ACEOF
|
21978 |
|
|
rm -f conftest.$ac_objext
|
21979 |
|
|
if { (ac_try="$ac_compile"
|
21980 |
|
|
case "(($ac_try" in
|
21981 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21982 |
|
|
*) ac_try_echo=$ac_try;;
|
21983 |
|
|
esac
|
21984 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21985 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21986 |
|
|
ac_status=$?
|
21987 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21988 |
|
|
rm -f conftest.er1
|
21989 |
|
|
cat conftest.err >&5
|
21990 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21991 |
|
|
(exit $ac_status); } && {
|
21992 |
|
|
test -z "$ac_c_werror_flag" ||
|
21993 |
|
|
test ! -s conftest.err
|
21994 |
|
|
} && test -s conftest.$ac_objext; then
|
21995 |
|
|
ac_cv_struct_tm=time.h
|
21996 |
|
|
else
|
21997 |
|
|
echo "$as_me: failed program was:" >&5
|
21998 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21999 |
|
|
|
22000 |
|
|
ac_cv_struct_tm=sys/time.h
|
22001 |
|
|
fi
|
22002 |
|
|
|
22003 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22004 |
|
|
fi
|
22005 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
22006 |
|
|
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
|
22007 |
|
|
if test $ac_cv_struct_tm = sys/time.h; then
|
22008 |
|
|
|
22009 |
|
|
cat >>confdefs.h <<\_ACEOF
|
22010 |
|
|
@%:@define TM_IN_SYS_TIME 1
|
22011 |
|
|
_ACEOF
|
22012 |
|
|
|
22013 |
|
|
fi
|
22014 |
|
|
|
22015 |
|
|
|
22016 |
|
|
# Checks for library functions (for argtable2).
|
22017 |
|
|
|
22018 |
|
|
for ac_header in stdlib.h
|
22019 |
|
|
do
|
22020 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
22021 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
22022 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
22023 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
22024 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
22025 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22026 |
|
|
fi
|
22027 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
22028 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
22029 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
22030 |
|
|
else
|
22031 |
|
|
# Is the header compilable?
|
22032 |
|
|
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
22033 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
22034 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22035 |
|
|
/* confdefs.h. */
|
22036 |
|
|
_ACEOF
|
22037 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22038 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22039 |
|
|
/* end confdefs.h. */
|
22040 |
|
|
$ac_includes_default
|
22041 |
|
|
@%:@include <$ac_header>
|
22042 |
|
|
_ACEOF
|
22043 |
|
|
rm -f conftest.$ac_objext
|
22044 |
|
|
if { (ac_try="$ac_compile"
|
22045 |
|
|
case "(($ac_try" in
|
22046 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22047 |
|
|
*) ac_try_echo=$ac_try;;
|
22048 |
|
|
esac
|
22049 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22050 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22051 |
|
|
ac_status=$?
|
22052 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22053 |
|
|
rm -f conftest.er1
|
22054 |
|
|
cat conftest.err >&5
|
22055 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22056 |
|
|
(exit $ac_status); } && {
|
22057 |
|
|
test -z "$ac_c_werror_flag" ||
|
22058 |
|
|
test ! -s conftest.err
|
22059 |
|
|
} && test -s conftest.$ac_objext; then
|
22060 |
|
|
ac_header_compiler=yes
|
22061 |
|
|
else
|
22062 |
|
|
echo "$as_me: failed program was:" >&5
|
22063 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22064 |
|
|
|
22065 |
|
|
ac_header_compiler=no
|
22066 |
|
|
fi
|
22067 |
|
|
|
22068 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22069 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
22070 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
22071 |
|
|
|
22072 |
|
|
# Is the header present?
|
22073 |
|
|
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
22074 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
22075 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22076 |
|
|
/* confdefs.h. */
|
22077 |
|
|
_ACEOF
|
22078 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22079 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22080 |
|
|
/* end confdefs.h. */
|
22081 |
|
|
@%:@include <$ac_header>
|
22082 |
|
|
_ACEOF
|
22083 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
22084 |
|
|
case "(($ac_try" in
|
22085 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22086 |
|
|
*) ac_try_echo=$ac_try;;
|
22087 |
|
|
esac
|
22088 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22089 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
22090 |
|
|
ac_status=$?
|
22091 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22092 |
|
|
rm -f conftest.er1
|
22093 |
|
|
cat conftest.err >&5
|
22094 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22095 |
|
|
(exit $ac_status); } >/dev/null && {
|
22096 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
22097 |
|
|
test ! -s conftest.err
|
22098 |
|
|
}; then
|
22099 |
|
|
ac_header_preproc=yes
|
22100 |
|
|
else
|
22101 |
|
|
echo "$as_me: failed program was:" >&5
|
22102 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22103 |
|
|
|
22104 |
|
|
ac_header_preproc=no
|
22105 |
|
|
fi
|
22106 |
|
|
|
22107 |
|
|
rm -f conftest.err conftest.$ac_ext
|
22108 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
22109 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
22110 |
|
|
|
22111 |
|
|
# So? What about this header?
|
22112 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
22113 |
|
|
yes:no: )
|
22114 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
22115 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
22116 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
22117 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
22118 |
|
|
ac_header_preproc=yes
|
22119 |
|
|
;;
|
22120 |
|
|
no:yes:* )
|
22121 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
22122 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
22123 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
22124 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
22125 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
22126 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
22127 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
22128 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
22129 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
22130 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
22131 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
22132 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
22133 |
|
|
( cat <<\_ASBOX
|
22134 |
|
|
@%:@@%:@ ------------------------------------- @%:@@%:@
|
22135 |
|
|
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
|
22136 |
|
|
@%:@@%:@ ------------------------------------- @%:@@%:@
|
22137 |
|
|
_ASBOX
|
22138 |
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
22139 |
|
|
;;
|
22140 |
|
|
esac
|
22141 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
22142 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
22143 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
22144 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22145 |
|
|
else
|
22146 |
|
|
eval "$as_ac_Header=\$ac_header_preproc"
|
22147 |
|
|
fi
|
22148 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
22149 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
22150 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
22151 |
|
|
|
22152 |
|
|
fi
|
22153 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
22154 |
|
|
cat >>confdefs.h <<_ACEOF
|
22155 |
|
|
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
22156 |
|
|
_ACEOF
|
22157 |
|
|
|
22158 |
|
|
fi
|
22159 |
|
|
|
22160 |
|
|
done
|
22161 |
|
|
|
22162 |
|
|
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
|
22163 |
|
|
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
|
22164 |
|
|
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
|
22165 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22166 |
|
|
else
|
22167 |
|
|
if test "$cross_compiling" = yes; then
|
22168 |
|
|
ac_cv_func_malloc_0_nonnull=no
|
22169 |
|
|
else
|
22170 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22171 |
|
|
/* confdefs.h. */
|
22172 |
|
|
_ACEOF
|
22173 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22174 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22175 |
|
|
/* end confdefs.h. */
|
22176 |
|
|
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
|
22177 |
|
|
# include
|
22178 |
|
|
#else
|
22179 |
|
|
char *malloc ();
|
22180 |
|
|
#endif
|
22181 |
|
|
|
22182 |
|
|
int
|
22183 |
|
|
main ()
|
22184 |
|
|
{
|
22185 |
|
|
return ! malloc (0);
|
22186 |
|
|
;
|
22187 |
|
|
return 0;
|
22188 |
|
|
}
|
22189 |
|
|
_ACEOF
|
22190 |
|
|
rm -f conftest$ac_exeext
|
22191 |
|
|
if { (ac_try="$ac_link"
|
22192 |
|
|
case "(($ac_try" in
|
22193 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22194 |
|
|
*) ac_try_echo=$ac_try;;
|
22195 |
|
|
esac
|
22196 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22197 |
|
|
(eval "$ac_link") 2>&5
|
22198 |
|
|
ac_status=$?
|
22199 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22200 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
22201 |
|
|
{ (case "(($ac_try" in
|
22202 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22203 |
|
|
*) ac_try_echo=$ac_try;;
|
22204 |
|
|
esac
|
22205 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22206 |
|
|
(eval "$ac_try") 2>&5
|
22207 |
|
|
ac_status=$?
|
22208 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22209 |
|
|
(exit $ac_status); }; }; then
|
22210 |
|
|
ac_cv_func_malloc_0_nonnull=yes
|
22211 |
|
|
else
|
22212 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
22213 |
|
|
echo "$as_me: failed program was:" >&5
|
22214 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22215 |
|
|
|
22216 |
|
|
( exit $ac_status )
|
22217 |
|
|
ac_cv_func_malloc_0_nonnull=no
|
22218 |
|
|
fi
|
22219 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
22220 |
|
|
fi
|
22221 |
|
|
|
22222 |
|
|
|
22223 |
|
|
fi
|
22224 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
|
22225 |
|
|
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
|
22226 |
|
|
if test $ac_cv_func_malloc_0_nonnull = yes; then
|
22227 |
|
|
|
22228 |
|
|
cat >>confdefs.h <<\_ACEOF
|
22229 |
|
|
@%:@define HAVE_MALLOC 1
|
22230 |
|
|
_ACEOF
|
22231 |
|
|
|
22232 |
|
|
else
|
22233 |
|
|
cat >>confdefs.h <<\_ACEOF
|
22234 |
|
|
@%:@define HAVE_MALLOC 0
|
22235 |
|
|
_ACEOF
|
22236 |
|
|
|
22237 |
|
|
case " $LIB@&t@OBJS " in
|
22238 |
|
|
*" malloc.$ac_objext "* ) ;;
|
22239 |
|
|
*) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
|
22240 |
|
|
;;
|
22241 |
|
|
esac
|
22242 |
|
|
|
22243 |
|
|
|
22244 |
|
|
cat >>confdefs.h <<\_ACEOF
|
22245 |
|
|
@%:@define malloc rpl_malloc
|
22246 |
|
|
_ACEOF
|
22247 |
|
|
|
22248 |
|
|
fi
|
22249 |
|
|
|
22250 |
|
|
|
22251 |
|
|
|
22252 |
|
|
|
22253 |
|
|
for ac_func in strftime
|
22254 |
|
|
do
|
22255 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
22256 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
22257 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
22258 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
22259 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22260 |
|
|
else
|
22261 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22262 |
|
|
/* confdefs.h. */
|
22263 |
|
|
_ACEOF
|
22264 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22265 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22266 |
|
|
/* end confdefs.h. */
|
22267 |
|
|
/* Define $ac_func to an innocuous variant, in case declares $ac_func.
|
22268 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
22269 |
|
|
#define $ac_func innocuous_$ac_func
|
22270 |
|
|
|
22271 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
22272 |
|
|
which can conflict with char $ac_func (); below.
|
22273 |
|
|
Prefer to if __STDC__ is defined, since
|
22274 |
|
|
exists even on freestanding compilers. */
|
22275 |
|
|
|
22276 |
|
|
#ifdef __STDC__
|
22277 |
|
|
# include
|
22278 |
|
|
#else
|
22279 |
|
|
# include
|
22280 |
|
|
#endif
|
22281 |
|
|
|
22282 |
|
|
#undef $ac_func
|
22283 |
|
|
|
22284 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
22285 |
|
|
Use char because int might match the return type of a GCC
|
22286 |
|
|
builtin and then its argument prototype would still apply. */
|
22287 |
|
|
#ifdef __cplusplus
|
22288 |
|
|
extern "C"
|
22289 |
|
|
#endif
|
22290 |
|
|
char $ac_func ();
|
22291 |
|
|
/* The GNU C library defines this for functions which it implements
|
22292 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
22293 |
|
|
something starting with __ and the normal name is an alias. */
|
22294 |
|
|
#if defined __stub_$ac_func || defined __stub___$ac_func
|
22295 |
|
|
choke me
|
22296 |
|
|
#endif
|
22297 |
|
|
|
22298 |
|
|
int
|
22299 |
|
|
main ()
|
22300 |
|
|
{
|
22301 |
|
|
return $ac_func ();
|
22302 |
|
|
;
|
22303 |
|
|
return 0;
|
22304 |
|
|
}
|
22305 |
|
|
_ACEOF
|
22306 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
22307 |
|
|
if { (ac_try="$ac_link"
|
22308 |
|
|
case "(($ac_try" in
|
22309 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22310 |
|
|
*) ac_try_echo=$ac_try;;
|
22311 |
|
|
esac
|
22312 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22313 |
|
|
(eval "$ac_link") 2>conftest.er1
|
22314 |
|
|
ac_status=$?
|
22315 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22316 |
|
|
rm -f conftest.er1
|
22317 |
|
|
cat conftest.err >&5
|
22318 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22319 |
|
|
(exit $ac_status); } && {
|
22320 |
|
|
test -z "$ac_c_werror_flag" ||
|
22321 |
|
|
test ! -s conftest.err
|
22322 |
|
|
} && test -s conftest$ac_exeext &&
|
22323 |
|
|
$as_test_x conftest$ac_exeext; then
|
22324 |
|
|
eval "$as_ac_var=yes"
|
22325 |
|
|
else
|
22326 |
|
|
echo "$as_me: failed program was:" >&5
|
22327 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22328 |
|
|
|
22329 |
|
|
eval "$as_ac_var=no"
|
22330 |
|
|
fi
|
22331 |
|
|
|
22332 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
22333 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
22334 |
|
|
fi
|
22335 |
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
22336 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
22337 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
22338 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
22339 |
|
|
cat >>confdefs.h <<_ACEOF
|
22340 |
|
|
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
22341 |
|
|
_ACEOF
|
22342 |
|
|
|
22343 |
|
|
else
|
22344 |
|
|
# strftime is in -lintl on SCO UNIX.
|
22345 |
|
|
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
|
22346 |
|
|
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
|
22347 |
|
|
if test "${ac_cv_lib_intl_strftime+set}" = set; then
|
22348 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22349 |
|
|
else
|
22350 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
22351 |
|
|
LIBS="-lintl $LIBS"
|
22352 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22353 |
|
|
/* confdefs.h. */
|
22354 |
|
|
_ACEOF
|
22355 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22356 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22357 |
|
|
/* end confdefs.h. */
|
22358 |
|
|
|
22359 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
22360 |
|
|
Use char because int might match the return type of a GCC
|
22361 |
|
|
builtin and then its argument prototype would still apply. */
|
22362 |
|
|
#ifdef __cplusplus
|
22363 |
|
|
extern "C"
|
22364 |
|
|
#endif
|
22365 |
|
|
char strftime ();
|
22366 |
|
|
int
|
22367 |
|
|
main ()
|
22368 |
|
|
{
|
22369 |
|
|
return strftime ();
|
22370 |
|
|
;
|
22371 |
|
|
return 0;
|
22372 |
|
|
}
|
22373 |
|
|
_ACEOF
|
22374 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
22375 |
|
|
if { (ac_try="$ac_link"
|
22376 |
|
|
case "(($ac_try" in
|
22377 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22378 |
|
|
*) ac_try_echo=$ac_try;;
|
22379 |
|
|
esac
|
22380 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22381 |
|
|
(eval "$ac_link") 2>conftest.er1
|
22382 |
|
|
ac_status=$?
|
22383 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22384 |
|
|
rm -f conftest.er1
|
22385 |
|
|
cat conftest.err >&5
|
22386 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22387 |
|
|
(exit $ac_status); } && {
|
22388 |
|
|
test -z "$ac_c_werror_flag" ||
|
22389 |
|
|
test ! -s conftest.err
|
22390 |
|
|
} && test -s conftest$ac_exeext &&
|
22391 |
|
|
$as_test_x conftest$ac_exeext; then
|
22392 |
|
|
ac_cv_lib_intl_strftime=yes
|
22393 |
|
|
else
|
22394 |
|
|
echo "$as_me: failed program was:" >&5
|
22395 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22396 |
|
|
|
22397 |
|
|
ac_cv_lib_intl_strftime=no
|
22398 |
|
|
fi
|
22399 |
|
|
|
22400 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
22401 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
22402 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
22403 |
|
|
fi
|
22404 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
|
22405 |
|
|
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
|
22406 |
|
|
if test $ac_cv_lib_intl_strftime = yes; then
|
22407 |
|
|
cat >>confdefs.h <<\_ACEOF
|
22408 |
|
|
@%:@define HAVE_STRFTIME 1
|
22409 |
|
|
_ACEOF
|
22410 |
|
|
|
22411 |
|
|
LIBS="-lintl $LIBS"
|
22412 |
|
|
fi
|
22413 |
|
|
|
22414 |
|
|
fi
|
22415 |
|
|
done
|
22416 |
|
|
|
22417 |
|
|
{ echo "$as_me:$LINENO: checking for working strtod" >&5
|
22418 |
|
|
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
|
22419 |
|
|
if test "${ac_cv_func_strtod+set}" = set; then
|
22420 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22421 |
|
|
else
|
22422 |
|
|
if test "$cross_compiling" = yes; then
|
22423 |
|
|
ac_cv_func_strtod=no
|
22424 |
|
|
else
|
22425 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22426 |
|
|
/* confdefs.h. */
|
22427 |
|
|
_ACEOF
|
22428 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22429 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22430 |
|
|
/* end confdefs.h. */
|
22431 |
|
|
|
22432 |
|
|
$ac_includes_default
|
22433 |
|
|
#ifndef strtod
|
22434 |
|
|
double strtod ();
|
22435 |
|
|
#endif
|
22436 |
|
|
int
|
22437 |
|
|
main()
|
22438 |
|
|
{
|
22439 |
|
|
{
|
22440 |
|
|
/* Some versions of Linux strtod mis-parse strings with leading '+'. */
|
22441 |
|
|
char *string = " +69";
|
22442 |
|
|
char *term;
|
22443 |
|
|
double value;
|
22444 |
|
|
value = strtod (string, &term);
|
22445 |
|
|
if (value != 69 || term != (string + 4))
|
22446 |
|
|
return 1;
|
22447 |
|
|
}
|
22448 |
|
|
|
22449 |
|
|
{
|
22450 |
|
|
/* Under Solaris 2.4, strtod returns the wrong value for the
|
22451 |
|
|
terminating character under some conditions. */
|
22452 |
|
|
char *string = "NaN";
|
22453 |
|
|
char *term;
|
22454 |
|
|
strtod (string, &term);
|
22455 |
|
|
if (term != string && *(term - 1) == 0)
|
22456 |
|
|
return 1;
|
22457 |
|
|
}
|
22458 |
|
|
return 0;
|
22459 |
|
|
}
|
22460 |
|
|
|
22461 |
|
|
_ACEOF
|
22462 |
|
|
rm -f conftest$ac_exeext
|
22463 |
|
|
if { (ac_try="$ac_link"
|
22464 |
|
|
case "(($ac_try" in
|
22465 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22466 |
|
|
*) ac_try_echo=$ac_try;;
|
22467 |
|
|
esac
|
22468 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22469 |
|
|
(eval "$ac_link") 2>&5
|
22470 |
|
|
ac_status=$?
|
22471 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22472 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
22473 |
|
|
{ (case "(($ac_try" in
|
22474 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22475 |
|
|
*) ac_try_echo=$ac_try;;
|
22476 |
|
|
esac
|
22477 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22478 |
|
|
(eval "$ac_try") 2>&5
|
22479 |
|
|
ac_status=$?
|
22480 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22481 |
|
|
(exit $ac_status); }; }; then
|
22482 |
|
|
ac_cv_func_strtod=yes
|
22483 |
|
|
else
|
22484 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
22485 |
|
|
echo "$as_me: failed program was:" >&5
|
22486 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22487 |
|
|
|
22488 |
|
|
( exit $ac_status )
|
22489 |
|
|
ac_cv_func_strtod=no
|
22490 |
|
|
fi
|
22491 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
22492 |
|
|
fi
|
22493 |
|
|
|
22494 |
|
|
|
22495 |
|
|
fi
|
22496 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
|
22497 |
|
|
echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
|
22498 |
|
|
if test $ac_cv_func_strtod = no; then
|
22499 |
|
|
case " $LIB@&t@OBJS " in
|
22500 |
|
|
*" strtod.$ac_objext "* ) ;;
|
22501 |
|
|
*) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext"
|
22502 |
|
|
;;
|
22503 |
|
|
esac
|
22504 |
|
|
|
22505 |
|
|
{ echo "$as_me:$LINENO: checking for pow" >&5
|
22506 |
|
|
echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
|
22507 |
|
|
if test "${ac_cv_func_pow+set}" = set; then
|
22508 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22509 |
|
|
else
|
22510 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22511 |
|
|
/* confdefs.h. */
|
22512 |
|
|
_ACEOF
|
22513 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22514 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22515 |
|
|
/* end confdefs.h. */
|
22516 |
|
|
/* Define pow to an innocuous variant, in case declares pow.
|
22517 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
22518 |
|
|
#define pow innocuous_pow
|
22519 |
|
|
|
22520 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
22521 |
|
|
which can conflict with char pow (); below.
|
22522 |
|
|
Prefer to if __STDC__ is defined, since
|
22523 |
|
|
exists even on freestanding compilers. */
|
22524 |
|
|
|
22525 |
|
|
#ifdef __STDC__
|
22526 |
|
|
# include
|
22527 |
|
|
#else
|
22528 |
|
|
# include
|
22529 |
|
|
#endif
|
22530 |
|
|
|
22531 |
|
|
#undef pow
|
22532 |
|
|
|
22533 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
22534 |
|
|
Use char because int might match the return type of a GCC
|
22535 |
|
|
builtin and then its argument prototype would still apply. */
|
22536 |
|
|
#ifdef __cplusplus
|
22537 |
|
|
extern "C"
|
22538 |
|
|
#endif
|
22539 |
|
|
char pow ();
|
22540 |
|
|
/* The GNU C library defines this for functions which it implements
|
22541 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
22542 |
|
|
something starting with __ and the normal name is an alias. */
|
22543 |
|
|
#if defined __stub_pow || defined __stub___pow
|
22544 |
|
|
choke me
|
22545 |
|
|
#endif
|
22546 |
|
|
|
22547 |
|
|
int
|
22548 |
|
|
main ()
|
22549 |
|
|
{
|
22550 |
|
|
return pow ();
|
22551 |
|
|
;
|
22552 |
|
|
return 0;
|
22553 |
|
|
}
|
22554 |
|
|
_ACEOF
|
22555 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
22556 |
|
|
if { (ac_try="$ac_link"
|
22557 |
|
|
case "(($ac_try" in
|
22558 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22559 |
|
|
*) ac_try_echo=$ac_try;;
|
22560 |
|
|
esac
|
22561 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22562 |
|
|
(eval "$ac_link") 2>conftest.er1
|
22563 |
|
|
ac_status=$?
|
22564 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22565 |
|
|
rm -f conftest.er1
|
22566 |
|
|
cat conftest.err >&5
|
22567 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22568 |
|
|
(exit $ac_status); } && {
|
22569 |
|
|
test -z "$ac_c_werror_flag" ||
|
22570 |
|
|
test ! -s conftest.err
|
22571 |
|
|
} && test -s conftest$ac_exeext &&
|
22572 |
|
|
$as_test_x conftest$ac_exeext; then
|
22573 |
|
|
ac_cv_func_pow=yes
|
22574 |
|
|
else
|
22575 |
|
|
echo "$as_me: failed program was:" >&5
|
22576 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22577 |
|
|
|
22578 |
|
|
ac_cv_func_pow=no
|
22579 |
|
|
fi
|
22580 |
|
|
|
22581 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
22582 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
22583 |
|
|
fi
|
22584 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
|
22585 |
|
|
echo "${ECHO_T}$ac_cv_func_pow" >&6; }
|
22586 |
|
|
|
22587 |
|
|
if test $ac_cv_func_pow = no; then
|
22588 |
|
|
{ echo "$as_me:$LINENO: checking for pow in -lm" >&5
|
22589 |
|
|
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
|
22590 |
|
|
if test "${ac_cv_lib_m_pow+set}" = set; then
|
22591 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22592 |
|
|
else
|
22593 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
22594 |
|
|
LIBS="-lm $LIBS"
|
22595 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22596 |
|
|
/* confdefs.h. */
|
22597 |
|
|
_ACEOF
|
22598 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22599 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22600 |
|
|
/* end confdefs.h. */
|
22601 |
|
|
|
22602 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
22603 |
|
|
Use char because int might match the return type of a GCC
|
22604 |
|
|
builtin and then its argument prototype would still apply. */
|
22605 |
|
|
#ifdef __cplusplus
|
22606 |
|
|
extern "C"
|
22607 |
|
|
#endif
|
22608 |
|
|
char pow ();
|
22609 |
|
|
int
|
22610 |
|
|
main ()
|
22611 |
|
|
{
|
22612 |
|
|
return pow ();
|
22613 |
|
|
;
|
22614 |
|
|
return 0;
|
22615 |
|
|
}
|
22616 |
|
|
_ACEOF
|
22617 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
22618 |
|
|
if { (ac_try="$ac_link"
|
22619 |
|
|
case "(($ac_try" in
|
22620 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22621 |
|
|
*) ac_try_echo=$ac_try;;
|
22622 |
|
|
esac
|
22623 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22624 |
|
|
(eval "$ac_link") 2>conftest.er1
|
22625 |
|
|
ac_status=$?
|
22626 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22627 |
|
|
rm -f conftest.er1
|
22628 |
|
|
cat conftest.err >&5
|
22629 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22630 |
|
|
(exit $ac_status); } && {
|
22631 |
|
|
test -z "$ac_c_werror_flag" ||
|
22632 |
|
|
test ! -s conftest.err
|
22633 |
|
|
} && test -s conftest$ac_exeext &&
|
22634 |
|
|
$as_test_x conftest$ac_exeext; then
|
22635 |
|
|
ac_cv_lib_m_pow=yes
|
22636 |
|
|
else
|
22637 |
|
|
echo "$as_me: failed program was:" >&5
|
22638 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22639 |
|
|
|
22640 |
|
|
ac_cv_lib_m_pow=no
|
22641 |
|
|
fi
|
22642 |
|
|
|
22643 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
22644 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
22645 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
22646 |
|
|
fi
|
22647 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
|
22648 |
|
|
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
|
22649 |
|
|
if test $ac_cv_lib_m_pow = yes; then
|
22650 |
|
|
POW_LIB=-lm
|
22651 |
|
|
else
|
22652 |
|
|
{ echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
|
22653 |
|
|
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
|
22654 |
|
|
fi
|
22655 |
|
|
|
22656 |
|
|
fi
|
22657 |
|
|
|
22658 |
|
|
fi
|
22659 |
|
|
|
22660 |
|
|
|
22661 |
|
|
|
22662 |
|
|
|
22663 |
|
|
|
22664 |
|
|
|
22665 |
|
|
for ac_func in bzero strchr strcspn strrchr strtol
|
22666 |
|
|
do
|
22667 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
22668 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
22669 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
22670 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
22671 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22672 |
|
|
else
|
22673 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22674 |
|
|
/* confdefs.h. */
|
22675 |
|
|
_ACEOF
|
22676 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22677 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22678 |
|
|
/* end confdefs.h. */
|
22679 |
|
|
/* Define $ac_func to an innocuous variant, in case declares $ac_func.
|
22680 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
22681 |
|
|
#define $ac_func innocuous_$ac_func
|
22682 |
|
|
|
22683 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
22684 |
|
|
which can conflict with char $ac_func (); below.
|
22685 |
|
|
Prefer to if __STDC__ is defined, since
|
22686 |
|
|
exists even on freestanding compilers. */
|
22687 |
|
|
|
22688 |
|
|
#ifdef __STDC__
|
22689 |
|
|
# include
|
22690 |
|
|
#else
|
22691 |
|
|
# include
|
22692 |
|
|
#endif
|
22693 |
|
|
|
22694 |
|
|
#undef $ac_func
|
22695 |
|
|
|
22696 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
22697 |
|
|
Use char because int might match the return type of a GCC
|
22698 |
|
|
builtin and then its argument prototype would still apply. */
|
22699 |
|
|
#ifdef __cplusplus
|
22700 |
|
|
extern "C"
|
22701 |
|
|
#endif
|
22702 |
|
|
char $ac_func ();
|
22703 |
|
|
/* The GNU C library defines this for functions which it implements
|
22704 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
22705 |
|
|
something starting with __ and the normal name is an alias. */
|
22706 |
|
|
#if defined __stub_$ac_func || defined __stub___$ac_func
|
22707 |
|
|
choke me
|
22708 |
|
|
#endif
|
22709 |
|
|
|
22710 |
|
|
int
|
22711 |
|
|
main ()
|
22712 |
|
|
{
|
22713 |
|
|
return $ac_func ();
|
22714 |
|
|
;
|
22715 |
|
|
return 0;
|
22716 |
|
|
}
|
22717 |
|
|
_ACEOF
|
22718 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
22719 |
|
|
if { (ac_try="$ac_link"
|
22720 |
|
|
case "(($ac_try" in
|
22721 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22722 |
|
|
*) ac_try_echo=$ac_try;;
|
22723 |
|
|
esac
|
22724 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22725 |
|
|
(eval "$ac_link") 2>conftest.er1
|
22726 |
|
|
ac_status=$?
|
22727 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22728 |
|
|
rm -f conftest.er1
|
22729 |
|
|
cat conftest.err >&5
|
22730 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22731 |
|
|
(exit $ac_status); } && {
|
22732 |
|
|
test -z "$ac_c_werror_flag" ||
|
22733 |
|
|
test ! -s conftest.err
|
22734 |
|
|
} && test -s conftest$ac_exeext &&
|
22735 |
|
|
$as_test_x conftest$ac_exeext; then
|
22736 |
|
|
eval "$as_ac_var=yes"
|
22737 |
|
|
else
|
22738 |
|
|
echo "$as_me: failed program was:" >&5
|
22739 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22740 |
|
|
|
22741 |
|
|
eval "$as_ac_var=no"
|
22742 |
|
|
fi
|
22743 |
|
|
|
22744 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
22745 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
22746 |
|
|
fi
|
22747 |
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
22748 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
22749 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
22750 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
22751 |
|
|
cat >>confdefs.h <<_ACEOF
|
22752 |
|
|
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
22753 |
|
|
_ACEOF
|
22754 |
|
|
|
22755 |
|
|
fi
|
22756 |
|
|
done
|
22757 |
|
|
|
22758 |
|
|
{ echo "$as_me:$LINENO: checking for getopt_long" >&5
|
22759 |
|
|
echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
|
22760 |
|
|
if test "${ac_cv_func_getopt_long+set}" = set; then
|
22761 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22762 |
|
|
else
|
22763 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22764 |
|
|
/* confdefs.h. */
|
22765 |
|
|
_ACEOF
|
22766 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22767 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22768 |
|
|
/* end confdefs.h. */
|
22769 |
|
|
/* Define getopt_long to an innocuous variant, in case declares getopt_long.
|
22770 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
22771 |
|
|
#define getopt_long innocuous_getopt_long
|
22772 |
|
|
|
22773 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
22774 |
|
|
which can conflict with char getopt_long (); below.
|
22775 |
|
|
Prefer to if __STDC__ is defined, since
|
22776 |
|
|
exists even on freestanding compilers. */
|
22777 |
|
|
|
22778 |
|
|
#ifdef __STDC__
|
22779 |
|
|
# include
|
22780 |
|
|
#else
|
22781 |
|
|
# include
|
22782 |
|
|
#endif
|
22783 |
|
|
|
22784 |
|
|
#undef getopt_long
|
22785 |
|
|
|
22786 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
22787 |
|
|
Use char because int might match the return type of a GCC
|
22788 |
|
|
builtin and then its argument prototype would still apply. */
|
22789 |
|
|
#ifdef __cplusplus
|
22790 |
|
|
extern "C"
|
22791 |
|
|
#endif
|
22792 |
|
|
char getopt_long ();
|
22793 |
|
|
/* The GNU C library defines this for functions which it implements
|
22794 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
22795 |
|
|
something starting with __ and the normal name is an alias. */
|
22796 |
|
|
#if defined __stub_getopt_long || defined __stub___getopt_long
|
22797 |
|
|
choke me
|
22798 |
|
|
#endif
|
22799 |
|
|
|
22800 |
|
|
int
|
22801 |
|
|
main ()
|
22802 |
|
|
{
|
22803 |
|
|
return getopt_long ();
|
22804 |
|
|
;
|
22805 |
|
|
return 0;
|
22806 |
|
|
}
|
22807 |
|
|
_ACEOF
|
22808 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
22809 |
|
|
if { (ac_try="$ac_link"
|
22810 |
|
|
case "(($ac_try" in
|
22811 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22812 |
|
|
*) ac_try_echo=$ac_try;;
|
22813 |
|
|
esac
|
22814 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22815 |
|
|
(eval "$ac_link") 2>conftest.er1
|
22816 |
|
|
ac_status=$?
|
22817 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22818 |
|
|
rm -f conftest.er1
|
22819 |
|
|
cat conftest.err >&5
|
22820 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22821 |
|
|
(exit $ac_status); } && {
|
22822 |
|
|
test -z "$ac_c_werror_flag" ||
|
22823 |
|
|
test ! -s conftest.err
|
22824 |
|
|
} && test -s conftest$ac_exeext &&
|
22825 |
|
|
$as_test_x conftest$ac_exeext; then
|
22826 |
|
|
ac_cv_func_getopt_long=yes
|
22827 |
|
|
else
|
22828 |
|
|
echo "$as_me: failed program was:" >&5
|
22829 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22830 |
|
|
|
22831 |
|
|
ac_cv_func_getopt_long=no
|
22832 |
|
|
fi
|
22833 |
|
|
|
22834 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
22835 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
22836 |
|
|
fi
|
22837 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
|
22838 |
|
|
echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
|
22839 |
|
|
if test $ac_cv_func_getopt_long = yes; then
|
22840 |
|
|
SYS_GETOPTLONG=1
|
22841 |
|
|
else
|
22842 |
|
|
SYS_GETOPTLONG=0
|
22843 |
|
|
fi
|
22844 |
|
|
|
22845 |
|
|
{ echo "$as_me:$LINENO: checking for regcomp" >&5
|
22846 |
|
|
echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
|
22847 |
|
|
if test "${ac_cv_func_regcomp+set}" = set; then
|
22848 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22849 |
|
|
else
|
22850 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22851 |
|
|
/* confdefs.h. */
|
22852 |
|
|
_ACEOF
|
22853 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22854 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22855 |
|
|
/* end confdefs.h. */
|
22856 |
|
|
/* Define regcomp to an innocuous variant, in case declares regcomp.
|
22857 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
22858 |
|
|
#define regcomp innocuous_regcomp
|
22859 |
|
|
|
22860 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
22861 |
|
|
which can conflict with char regcomp (); below.
|
22862 |
|
|
Prefer to if __STDC__ is defined, since
|
22863 |
|
|
exists even on freestanding compilers. */
|
22864 |
|
|
|
22865 |
|
|
#ifdef __STDC__
|
22866 |
|
|
# include
|
22867 |
|
|
#else
|
22868 |
|
|
# include
|
22869 |
|
|
#endif
|
22870 |
|
|
|
22871 |
|
|
#undef regcomp
|
22872 |
|
|
|
22873 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
22874 |
|
|
Use char because int might match the return type of a GCC
|
22875 |
|
|
builtin and then its argument prototype would still apply. */
|
22876 |
|
|
#ifdef __cplusplus
|
22877 |
|
|
extern "C"
|
22878 |
|
|
#endif
|
22879 |
|
|
char regcomp ();
|
22880 |
|
|
/* The GNU C library defines this for functions which it implements
|
22881 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
22882 |
|
|
something starting with __ and the normal name is an alias. */
|
22883 |
|
|
#if defined __stub_regcomp || defined __stub___regcomp
|
22884 |
|
|
choke me
|
22885 |
|
|
#endif
|
22886 |
|
|
|
22887 |
|
|
int
|
22888 |
|
|
main ()
|
22889 |
|
|
{
|
22890 |
|
|
return regcomp ();
|
22891 |
|
|
;
|
22892 |
|
|
return 0;
|
22893 |
|
|
}
|
22894 |
|
|
_ACEOF
|
22895 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
22896 |
|
|
if { (ac_try="$ac_link"
|
22897 |
|
|
case "(($ac_try" in
|
22898 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22899 |
|
|
*) ac_try_echo=$ac_try;;
|
22900 |
|
|
esac
|
22901 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22902 |
|
|
(eval "$ac_link") 2>conftest.er1
|
22903 |
|
|
ac_status=$?
|
22904 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22905 |
|
|
rm -f conftest.er1
|
22906 |
|
|
cat conftest.err >&5
|
22907 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22908 |
|
|
(exit $ac_status); } && {
|
22909 |
|
|
test -z "$ac_c_werror_flag" ||
|
22910 |
|
|
test ! -s conftest.err
|
22911 |
|
|
} && test -s conftest$ac_exeext &&
|
22912 |
|
|
$as_test_x conftest$ac_exeext; then
|
22913 |
|
|
ac_cv_func_regcomp=yes
|
22914 |
|
|
else
|
22915 |
|
|
echo "$as_me: failed program was:" >&5
|
22916 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22917 |
|
|
|
22918 |
|
|
ac_cv_func_regcomp=no
|
22919 |
|
|
fi
|
22920 |
|
|
|
22921 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
22922 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
22923 |
|
|
fi
|
22924 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
|
22925 |
|
|
echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
|
22926 |
|
|
if test $ac_cv_func_regcomp = yes; then
|
22927 |
|
|
SYS_REGEX=1
|
22928 |
|
|
else
|
22929 |
|
|
SYS_REGEX=0
|
22930 |
|
|
fi
|
22931 |
|
|
|
22932 |
|
|
{ echo "$as_me:$LINENO: checking for strptime" >&5
|
22933 |
|
|
echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
|
22934 |
|
|
if test "${ac_cv_func_strptime+set}" = set; then
|
22935 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22936 |
|
|
else
|
22937 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22938 |
|
|
/* confdefs.h. */
|
22939 |
|
|
_ACEOF
|
22940 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22941 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22942 |
|
|
/* end confdefs.h. */
|
22943 |
|
|
/* Define strptime to an innocuous variant, in case declares strptime.
|
22944 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
22945 |
|
|
#define strptime innocuous_strptime
|
22946 |
|
|
|
22947 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
22948 |
|
|
which can conflict with char strptime (); below.
|
22949 |
|
|
Prefer to if __STDC__ is defined, since
|
22950 |
|
|
exists even on freestanding compilers. */
|
22951 |
|
|
|
22952 |
|
|
#ifdef __STDC__
|
22953 |
|
|
# include
|
22954 |
|
|
#else
|
22955 |
|
|
# include
|
22956 |
|
|
#endif
|
22957 |
|
|
|
22958 |
|
|
#undef strptime
|
22959 |
|
|
|
22960 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
22961 |
|
|
Use char because int might match the return type of a GCC
|
22962 |
|
|
builtin and then its argument prototype would still apply. */
|
22963 |
|
|
#ifdef __cplusplus
|
22964 |
|
|
extern "C"
|
22965 |
|
|
#endif
|
22966 |
|
|
char strptime ();
|
22967 |
|
|
/* The GNU C library defines this for functions which it implements
|
22968 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
22969 |
|
|
something starting with __ and the normal name is an alias. */
|
22970 |
|
|
#if defined __stub_strptime || defined __stub___strptime
|
22971 |
|
|
choke me
|
22972 |
|
|
#endif
|
22973 |
|
|
|
22974 |
|
|
int
|
22975 |
|
|
main ()
|
22976 |
|
|
{
|
22977 |
|
|
return strptime ();
|
22978 |
|
|
;
|
22979 |
|
|
return 0;
|
22980 |
|
|
}
|
22981 |
|
|
_ACEOF
|
22982 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
22983 |
|
|
if { (ac_try="$ac_link"
|
22984 |
|
|
case "(($ac_try" in
|
22985 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22986 |
|
|
*) ac_try_echo=$ac_try;;
|
22987 |
|
|
esac
|
22988 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22989 |
|
|
(eval "$ac_link") 2>conftest.er1
|
22990 |
|
|
ac_status=$?
|
22991 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22992 |
|
|
rm -f conftest.er1
|
22993 |
|
|
cat conftest.err >&5
|
22994 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22995 |
|
|
(exit $ac_status); } && {
|
22996 |
|
|
test -z "$ac_c_werror_flag" ||
|
22997 |
|
|
test ! -s conftest.err
|
22998 |
|
|
} && test -s conftest$ac_exeext &&
|
22999 |
|
|
$as_test_x conftest$ac_exeext; then
|
23000 |
|
|
ac_cv_func_strptime=yes
|
23001 |
|
|
else
|
23002 |
|
|
echo "$as_me: failed program was:" >&5
|
23003 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23004 |
|
|
|
23005 |
|
|
ac_cv_func_strptime=no
|
23006 |
|
|
fi
|
23007 |
|
|
|
23008 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
23009 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
23010 |
|
|
fi
|
23011 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
|
23012 |
|
|
echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
|
23013 |
|
|
if test $ac_cv_func_strptime = yes; then
|
23014 |
|
|
SYS_STRPTIME=1
|
23015 |
|
|
else
|
23016 |
|
|
SYS_STRPTIME=0
|
23017 |
|
|
fi
|
23018 |
|
|
|
23019 |
|
|
|
23020 |
|
|
# Define automake conditionals (for argtable2)
|
23021 |
|
|
if test "$SYS_GETOPTLONG" = "1"; then
|
23022 |
|
|
USE_SYS_GETOPTLONG_TRUE=
|
23023 |
|
|
USE_SYS_GETOPTLONG_FALSE='#'
|
23024 |
|
|
else
|
23025 |
|
|
USE_SYS_GETOPTLONG_TRUE='#'
|
23026 |
|
|
USE_SYS_GETOPTLONG_FALSE=
|
23027 |
|
|
fi
|
23028 |
|
|
|
23029 |
|
|
if test "$SYS_REGEX" = "1"; then
|
23030 |
|
|
USE_ARGREX_TRUE=
|
23031 |
|
|
USE_ARGREX_FALSE='#'
|
23032 |
|
|
else
|
23033 |
|
|
USE_ARGREX_TRUE='#'
|
23034 |
|
|
USE_ARGREX_FALSE=
|
23035 |
|
|
fi
|
23036 |
|
|
|
23037 |
|
|
if test "$SYS_STRPTIME" = "1"; then
|
23038 |
|
|
USE_ARGDATE_TRUE=
|
23039 |
|
|
USE_ARGDATE_FALSE='#'
|
23040 |
|
|
else
|
23041 |
|
|
USE_ARGDATE_TRUE='#'
|
23042 |
|
|
USE_ARGDATE_FALSE=
|
23043 |
|
|
fi
|
23044 |
|
|
|
23045 |
|
|
|
23046 |
|
|
# check for "long long" (added by Erez)
|
23047 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23048 |
|
|
/* confdefs.h. */
|
23049 |
|
|
_ACEOF
|
23050 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23051 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23052 |
|
|
/* end confdefs.h. */
|
23053 |
|
|
|
23054 |
|
|
int
|
23055 |
|
|
main ()
|
23056 |
|
|
{
|
23057 |
|
|
long long ll; unsigned long long ull;
|
23058 |
|
|
;
|
23059 |
|
|
return 0;
|
23060 |
|
|
}
|
23061 |
|
|
_ACEOF
|
23062 |
|
|
rm -f conftest.$ac_objext
|
23063 |
|
|
if { (ac_try="$ac_compile"
|
23064 |
|
|
case "(($ac_try" in
|
23065 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23066 |
|
|
*) ac_try_echo=$ac_try;;
|
23067 |
|
|
esac
|
23068 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23069 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23070 |
|
|
ac_status=$?
|
23071 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23072 |
|
|
rm -f conftest.er1
|
23073 |
|
|
cat conftest.err >&5
|
23074 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23075 |
|
|
(exit $ac_status); } && {
|
23076 |
|
|
test -z "$ac_c_werror_flag" ||
|
23077 |
|
|
test ! -s conftest.err
|
23078 |
|
|
} && test -s conftest.$ac_objext; then
|
23079 |
|
|
|
23080 |
|
|
cat >>confdefs.h <<\_ACEOF
|
23081 |
|
|
@%:@define CC_HAS_LONG_LONG 1
|
23082 |
|
|
_ACEOF
|
23083 |
|
|
|
23084 |
|
|
else
|
23085 |
|
|
echo "$as_me: failed program was:" >&5
|
23086 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23087 |
|
|
|
23088 |
|
|
|
23089 |
|
|
fi
|
23090 |
|
|
|
23091 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23092 |
|
|
|
23093 |
|
|
# check for {u,}int{8,16,32}_t in inttypes.h.
|
23094 |
|
|
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
|
23095 |
|
|
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
|
23096 |
|
|
if test "${ac_cv_type_uint8_t+set}" = set; then
|
23097 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23098 |
|
|
else
|
23099 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23100 |
|
|
/* confdefs.h. */
|
23101 |
|
|
_ACEOF
|
23102 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23103 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23104 |
|
|
/* end confdefs.h. */
|
23105 |
|
|
#include
|
23106 |
|
|
|
23107 |
|
|
typedef uint8_t ac__type_new_;
|
23108 |
|
|
int
|
23109 |
|
|
main ()
|
23110 |
|
|
{
|
23111 |
|
|
if ((ac__type_new_ *) 0)
|
23112 |
|
|
return 0;
|
23113 |
|
|
if (sizeof (ac__type_new_))
|
23114 |
|
|
return 0;
|
23115 |
|
|
;
|
23116 |
|
|
return 0;
|
23117 |
|
|
}
|
23118 |
|
|
_ACEOF
|
23119 |
|
|
rm -f conftest.$ac_objext
|
23120 |
|
|
if { (ac_try="$ac_compile"
|
23121 |
|
|
case "(($ac_try" in
|
23122 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23123 |
|
|
*) ac_try_echo=$ac_try;;
|
23124 |
|
|
esac
|
23125 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23126 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23127 |
|
|
ac_status=$?
|
23128 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23129 |
|
|
rm -f conftest.er1
|
23130 |
|
|
cat conftest.err >&5
|
23131 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23132 |
|
|
(exit $ac_status); } && {
|
23133 |
|
|
test -z "$ac_c_werror_flag" ||
|
23134 |
|
|
test ! -s conftest.err
|
23135 |
|
|
} && test -s conftest.$ac_objext; then
|
23136 |
|
|
ac_cv_type_uint8_t=yes
|
23137 |
|
|
else
|
23138 |
|
|
echo "$as_me: failed program was:" >&5
|
23139 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23140 |
|
|
|
23141 |
|
|
ac_cv_type_uint8_t=no
|
23142 |
|
|
fi
|
23143 |
|
|
|
23144 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23145 |
|
|
fi
|
23146 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
|
23147 |
|
|
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
|
23148 |
|
|
if test $ac_cv_type_uint8_t = yes; then
|
23149 |
|
|
|
23150 |
|
|
cat >>confdefs.h <<_ACEOF
|
23151 |
|
|
@%:@define HAVE_UINT8_T 1
|
23152 |
|
|
_ACEOF
|
23153 |
|
|
|
23154 |
|
|
|
23155 |
|
|
fi
|
23156 |
|
|
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
|
23157 |
|
|
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
|
23158 |
|
|
if test "${ac_cv_type_uint16_t+set}" = set; then
|
23159 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23160 |
|
|
else
|
23161 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23162 |
|
|
/* confdefs.h. */
|
23163 |
|
|
_ACEOF
|
23164 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23165 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23166 |
|
|
/* end confdefs.h. */
|
23167 |
|
|
#include
|
23168 |
|
|
|
23169 |
|
|
typedef uint16_t ac__type_new_;
|
23170 |
|
|
int
|
23171 |
|
|
main ()
|
23172 |
|
|
{
|
23173 |
|
|
if ((ac__type_new_ *) 0)
|
23174 |
|
|
return 0;
|
23175 |
|
|
if (sizeof (ac__type_new_))
|
23176 |
|
|
return 0;
|
23177 |
|
|
;
|
23178 |
|
|
return 0;
|
23179 |
|
|
}
|
23180 |
|
|
_ACEOF
|
23181 |
|
|
rm -f conftest.$ac_objext
|
23182 |
|
|
if { (ac_try="$ac_compile"
|
23183 |
|
|
case "(($ac_try" in
|
23184 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23185 |
|
|
*) ac_try_echo=$ac_try;;
|
23186 |
|
|
esac
|
23187 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23188 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23189 |
|
|
ac_status=$?
|
23190 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23191 |
|
|
rm -f conftest.er1
|
23192 |
|
|
cat conftest.err >&5
|
23193 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23194 |
|
|
(exit $ac_status); } && {
|
23195 |
|
|
test -z "$ac_c_werror_flag" ||
|
23196 |
|
|
test ! -s conftest.err
|
23197 |
|
|
} && test -s conftest.$ac_objext; then
|
23198 |
|
|
ac_cv_type_uint16_t=yes
|
23199 |
|
|
else
|
23200 |
|
|
echo "$as_me: failed program was:" >&5
|
23201 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23202 |
|
|
|
23203 |
|
|
ac_cv_type_uint16_t=no
|
23204 |
|
|
fi
|
23205 |
|
|
|
23206 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23207 |
|
|
fi
|
23208 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
|
23209 |
|
|
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
|
23210 |
|
|
if test $ac_cv_type_uint16_t = yes; then
|
23211 |
|
|
|
23212 |
|
|
cat >>confdefs.h <<_ACEOF
|
23213 |
|
|
@%:@define HAVE_UINT16_T 1
|
23214 |
|
|
_ACEOF
|
23215 |
|
|
|
23216 |
|
|
|
23217 |
|
|
fi
|
23218 |
|
|
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
|
23219 |
|
|
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
|
23220 |
|
|
if test "${ac_cv_type_uint32_t+set}" = set; then
|
23221 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23222 |
|
|
else
|
23223 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23224 |
|
|
/* confdefs.h. */
|
23225 |
|
|
_ACEOF
|
23226 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23227 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23228 |
|
|
/* end confdefs.h. */
|
23229 |
|
|
#include
|
23230 |
|
|
|
23231 |
|
|
typedef uint32_t ac__type_new_;
|
23232 |
|
|
int
|
23233 |
|
|
main ()
|
23234 |
|
|
{
|
23235 |
|
|
if ((ac__type_new_ *) 0)
|
23236 |
|
|
return 0;
|
23237 |
|
|
if (sizeof (ac__type_new_))
|
23238 |
|
|
return 0;
|
23239 |
|
|
;
|
23240 |
|
|
return 0;
|
23241 |
|
|
}
|
23242 |
|
|
_ACEOF
|
23243 |
|
|
rm -f conftest.$ac_objext
|
23244 |
|
|
if { (ac_try="$ac_compile"
|
23245 |
|
|
case "(($ac_try" in
|
23246 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23247 |
|
|
*) ac_try_echo=$ac_try;;
|
23248 |
|
|
esac
|
23249 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23250 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23251 |
|
|
ac_status=$?
|
23252 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23253 |
|
|
rm -f conftest.er1
|
23254 |
|
|
cat conftest.err >&5
|
23255 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23256 |
|
|
(exit $ac_status); } && {
|
23257 |
|
|
test -z "$ac_c_werror_flag" ||
|
23258 |
|
|
test ! -s conftest.err
|
23259 |
|
|
} && test -s conftest.$ac_objext; then
|
23260 |
|
|
ac_cv_type_uint32_t=yes
|
23261 |
|
|
else
|
23262 |
|
|
echo "$as_me: failed program was:" >&5
|
23263 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23264 |
|
|
|
23265 |
|
|
ac_cv_type_uint32_t=no
|
23266 |
|
|
fi
|
23267 |
|
|
|
23268 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23269 |
|
|
fi
|
23270 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
|
23271 |
|
|
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
|
23272 |
|
|
if test $ac_cv_type_uint32_t = yes; then
|
23273 |
|
|
|
23274 |
|
|
cat >>confdefs.h <<_ACEOF
|
23275 |
|
|
@%:@define HAVE_UINT32_T 1
|
23276 |
|
|
_ACEOF
|
23277 |
|
|
|
23278 |
|
|
|
23279 |
|
|
fi
|
23280 |
|
|
|
23281 |
|
|
{ echo "$as_me:$LINENO: checking for int8_t" >&5
|
23282 |
|
|
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
|
23283 |
|
|
if test "${ac_cv_type_int8_t+set}" = set; then
|
23284 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23285 |
|
|
else
|
23286 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23287 |
|
|
/* confdefs.h. */
|
23288 |
|
|
_ACEOF
|
23289 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23290 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23291 |
|
|
/* end confdefs.h. */
|
23292 |
|
|
#include
|
23293 |
|
|
|
23294 |
|
|
typedef int8_t ac__type_new_;
|
23295 |
|
|
int
|
23296 |
|
|
main ()
|
23297 |
|
|
{
|
23298 |
|
|
if ((ac__type_new_ *) 0)
|
23299 |
|
|
return 0;
|
23300 |
|
|
if (sizeof (ac__type_new_))
|
23301 |
|
|
return 0;
|
23302 |
|
|
;
|
23303 |
|
|
return 0;
|
23304 |
|
|
}
|
23305 |
|
|
_ACEOF
|
23306 |
|
|
rm -f conftest.$ac_objext
|
23307 |
|
|
if { (ac_try="$ac_compile"
|
23308 |
|
|
case "(($ac_try" in
|
23309 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23310 |
|
|
*) ac_try_echo=$ac_try;;
|
23311 |
|
|
esac
|
23312 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23313 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23314 |
|
|
ac_status=$?
|
23315 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23316 |
|
|
rm -f conftest.er1
|
23317 |
|
|
cat conftest.err >&5
|
23318 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23319 |
|
|
(exit $ac_status); } && {
|
23320 |
|
|
test -z "$ac_c_werror_flag" ||
|
23321 |
|
|
test ! -s conftest.err
|
23322 |
|
|
} && test -s conftest.$ac_objext; then
|
23323 |
|
|
ac_cv_type_int8_t=yes
|
23324 |
|
|
else
|
23325 |
|
|
echo "$as_me: failed program was:" >&5
|
23326 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23327 |
|
|
|
23328 |
|
|
ac_cv_type_int8_t=no
|
23329 |
|
|
fi
|
23330 |
|
|
|
23331 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23332 |
|
|
fi
|
23333 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
|
23334 |
|
|
echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
|
23335 |
|
|
if test $ac_cv_type_int8_t = yes; then
|
23336 |
|
|
|
23337 |
|
|
cat >>confdefs.h <<_ACEOF
|
23338 |
|
|
@%:@define HAVE_INT8_T 1
|
23339 |
|
|
_ACEOF
|
23340 |
|
|
|
23341 |
|
|
|
23342 |
|
|
fi
|
23343 |
|
|
{ echo "$as_me:$LINENO: checking for int16_t" >&5
|
23344 |
|
|
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
|
23345 |
|
|
if test "${ac_cv_type_int16_t+set}" = set; then
|
23346 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23347 |
|
|
else
|
23348 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23349 |
|
|
/* confdefs.h. */
|
23350 |
|
|
_ACEOF
|
23351 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23352 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23353 |
|
|
/* end confdefs.h. */
|
23354 |
|
|
#include
|
23355 |
|
|
|
23356 |
|
|
typedef int16_t ac__type_new_;
|
23357 |
|
|
int
|
23358 |
|
|
main ()
|
23359 |
|
|
{
|
23360 |
|
|
if ((ac__type_new_ *) 0)
|
23361 |
|
|
return 0;
|
23362 |
|
|
if (sizeof (ac__type_new_))
|
23363 |
|
|
return 0;
|
23364 |
|
|
;
|
23365 |
|
|
return 0;
|
23366 |
|
|
}
|
23367 |
|
|
_ACEOF
|
23368 |
|
|
rm -f conftest.$ac_objext
|
23369 |
|
|
if { (ac_try="$ac_compile"
|
23370 |
|
|
case "(($ac_try" in
|
23371 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23372 |
|
|
*) ac_try_echo=$ac_try;;
|
23373 |
|
|
esac
|
23374 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23375 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23376 |
|
|
ac_status=$?
|
23377 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23378 |
|
|
rm -f conftest.er1
|
23379 |
|
|
cat conftest.err >&5
|
23380 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23381 |
|
|
(exit $ac_status); } && {
|
23382 |
|
|
test -z "$ac_c_werror_flag" ||
|
23383 |
|
|
test ! -s conftest.err
|
23384 |
|
|
} && test -s conftest.$ac_objext; then
|
23385 |
|
|
ac_cv_type_int16_t=yes
|
23386 |
|
|
else
|
23387 |
|
|
echo "$as_me: failed program was:" >&5
|
23388 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23389 |
|
|
|
23390 |
|
|
ac_cv_type_int16_t=no
|
23391 |
|
|
fi
|
23392 |
|
|
|
23393 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23394 |
|
|
fi
|
23395 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
|
23396 |
|
|
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
|
23397 |
|
|
if test $ac_cv_type_int16_t = yes; then
|
23398 |
|
|
|
23399 |
|
|
cat >>confdefs.h <<_ACEOF
|
23400 |
|
|
@%:@define HAVE_INT16_T 1
|
23401 |
|
|
_ACEOF
|
23402 |
|
|
|
23403 |
|
|
|
23404 |
|
|
fi
|
23405 |
|
|
{ echo "$as_me:$LINENO: checking for int32_t" >&5
|
23406 |
|
|
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
|
23407 |
|
|
if test "${ac_cv_type_int32_t+set}" = set; then
|
23408 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23409 |
|
|
else
|
23410 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23411 |
|
|
/* confdefs.h. */
|
23412 |
|
|
_ACEOF
|
23413 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23414 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23415 |
|
|
/* end confdefs.h. */
|
23416 |
|
|
#include
|
23417 |
|
|
|
23418 |
|
|
typedef int32_t ac__type_new_;
|
23419 |
|
|
int
|
23420 |
|
|
main ()
|
23421 |
|
|
{
|
23422 |
|
|
if ((ac__type_new_ *) 0)
|
23423 |
|
|
return 0;
|
23424 |
|
|
if (sizeof (ac__type_new_))
|
23425 |
|
|
return 0;
|
23426 |
|
|
;
|
23427 |
|
|
return 0;
|
23428 |
|
|
}
|
23429 |
|
|
_ACEOF
|
23430 |
|
|
rm -f conftest.$ac_objext
|
23431 |
|
|
if { (ac_try="$ac_compile"
|
23432 |
|
|
case "(($ac_try" in
|
23433 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23434 |
|
|
*) ac_try_echo=$ac_try;;
|
23435 |
|
|
esac
|
23436 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23437 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23438 |
|
|
ac_status=$?
|
23439 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23440 |
|
|
rm -f conftest.er1
|
23441 |
|
|
cat conftest.err >&5
|
23442 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23443 |
|
|
(exit $ac_status); } && {
|
23444 |
|
|
test -z "$ac_c_werror_flag" ||
|
23445 |
|
|
test ! -s conftest.err
|
23446 |
|
|
} && test -s conftest.$ac_objext; then
|
23447 |
|
|
ac_cv_type_int32_t=yes
|
23448 |
|
|
else
|
23449 |
|
|
echo "$as_me: failed program was:" >&5
|
23450 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23451 |
|
|
|
23452 |
|
|
ac_cv_type_int32_t=no
|
23453 |
|
|
fi
|
23454 |
|
|
|
23455 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23456 |
|
|
fi
|
23457 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
|
23458 |
|
|
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
|
23459 |
|
|
if test $ac_cv_type_int32_t = yes; then
|
23460 |
|
|
|
23461 |
|
|
cat >>confdefs.h <<_ACEOF
|
23462 |
|
|
@%:@define HAVE_INT32_T 1
|
23463 |
|
|
_ACEOF
|
23464 |
|
|
|
23465 |
|
|
|
23466 |
|
|
fi
|
23467 |
|
|
|
23468 |
|
|
|
23469 |
|
|
{ echo "$as_me:$LINENO: checking for char" >&5
|
23470 |
|
|
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
|
23471 |
|
|
if test "${ac_cv_type_char+set}" = set; then
|
23472 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23473 |
|
|
else
|
23474 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23475 |
|
|
/* confdefs.h. */
|
23476 |
|
|
_ACEOF
|
23477 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23478 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23479 |
|
|
/* end confdefs.h. */
|
23480 |
|
|
$ac_includes_default
|
23481 |
|
|
typedef char ac__type_new_;
|
23482 |
|
|
int
|
23483 |
|
|
main ()
|
23484 |
|
|
{
|
23485 |
|
|
if ((ac__type_new_ *) 0)
|
23486 |
|
|
return 0;
|
23487 |
|
|
if (sizeof (ac__type_new_))
|
23488 |
|
|
return 0;
|
23489 |
|
|
;
|
23490 |
|
|
return 0;
|
23491 |
|
|
}
|
23492 |
|
|
_ACEOF
|
23493 |
|
|
rm -f conftest.$ac_objext
|
23494 |
|
|
if { (ac_try="$ac_compile"
|
23495 |
|
|
case "(($ac_try" in
|
23496 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23497 |
|
|
*) ac_try_echo=$ac_try;;
|
23498 |
|
|
esac
|
23499 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23500 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23501 |
|
|
ac_status=$?
|
23502 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23503 |
|
|
rm -f conftest.er1
|
23504 |
|
|
cat conftest.err >&5
|
23505 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23506 |
|
|
(exit $ac_status); } && {
|
23507 |
|
|
test -z "$ac_c_werror_flag" ||
|
23508 |
|
|
test ! -s conftest.err
|
23509 |
|
|
} && test -s conftest.$ac_objext; then
|
23510 |
|
|
ac_cv_type_char=yes
|
23511 |
|
|
else
|
23512 |
|
|
echo "$as_me: failed program was:" >&5
|
23513 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23514 |
|
|
|
23515 |
|
|
ac_cv_type_char=no
|
23516 |
|
|
fi
|
23517 |
|
|
|
23518 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23519 |
|
|
fi
|
23520 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
|
23521 |
|
|
echo "${ECHO_T}$ac_cv_type_char" >&6; }
|
23522 |
|
|
|
23523 |
|
|
# The cast to long int works around a bug in the HP C Compiler
|
23524 |
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
23525 |
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
23526 |
|
|
# This bug is HP SR number 8606223364.
|
23527 |
|
|
{ echo "$as_me:$LINENO: checking size of char" >&5
|
23528 |
|
|
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
|
23529 |
|
|
if test "${ac_cv_sizeof_char+set}" = set; then
|
23530 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23531 |
|
|
else
|
23532 |
|
|
if test "$cross_compiling" = yes; then
|
23533 |
|
|
# Depending upon the size, compute the lo and hi bounds.
|
23534 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23535 |
|
|
/* confdefs.h. */
|
23536 |
|
|
_ACEOF
|
23537 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23538 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23539 |
|
|
/* end confdefs.h. */
|
23540 |
|
|
$ac_includes_default
|
23541 |
|
|
typedef char ac__type_sizeof_;
|
23542 |
|
|
int
|
23543 |
|
|
main ()
|
23544 |
|
|
{
|
23545 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
|
23546 |
|
|
test_array @<:@0@:>@ = 0
|
23547 |
|
|
|
23548 |
|
|
;
|
23549 |
|
|
return 0;
|
23550 |
|
|
}
|
23551 |
|
|
_ACEOF
|
23552 |
|
|
rm -f conftest.$ac_objext
|
23553 |
|
|
if { (ac_try="$ac_compile"
|
23554 |
|
|
case "(($ac_try" in
|
23555 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23556 |
|
|
*) ac_try_echo=$ac_try;;
|
23557 |
|
|
esac
|
23558 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23559 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23560 |
|
|
ac_status=$?
|
23561 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23562 |
|
|
rm -f conftest.er1
|
23563 |
|
|
cat conftest.err >&5
|
23564 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23565 |
|
|
(exit $ac_status); } && {
|
23566 |
|
|
test -z "$ac_c_werror_flag" ||
|
23567 |
|
|
test ! -s conftest.err
|
23568 |
|
|
} && test -s conftest.$ac_objext; then
|
23569 |
|
|
ac_lo=0 ac_mid=0
|
23570 |
|
|
while :; do
|
23571 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23572 |
|
|
/* confdefs.h. */
|
23573 |
|
|
_ACEOF
|
23574 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23575 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23576 |
|
|
/* end confdefs.h. */
|
23577 |
|
|
$ac_includes_default
|
23578 |
|
|
typedef char ac__type_sizeof_;
|
23579 |
|
|
int
|
23580 |
|
|
main ()
|
23581 |
|
|
{
|
23582 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
23583 |
|
|
test_array @<:@0@:>@ = 0
|
23584 |
|
|
|
23585 |
|
|
;
|
23586 |
|
|
return 0;
|
23587 |
|
|
}
|
23588 |
|
|
_ACEOF
|
23589 |
|
|
rm -f conftest.$ac_objext
|
23590 |
|
|
if { (ac_try="$ac_compile"
|
23591 |
|
|
case "(($ac_try" in
|
23592 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23593 |
|
|
*) ac_try_echo=$ac_try;;
|
23594 |
|
|
esac
|
23595 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23596 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23597 |
|
|
ac_status=$?
|
23598 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23599 |
|
|
rm -f conftest.er1
|
23600 |
|
|
cat conftest.err >&5
|
23601 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23602 |
|
|
(exit $ac_status); } && {
|
23603 |
|
|
test -z "$ac_c_werror_flag" ||
|
23604 |
|
|
test ! -s conftest.err
|
23605 |
|
|
} && test -s conftest.$ac_objext; then
|
23606 |
|
|
ac_hi=$ac_mid; break
|
23607 |
|
|
else
|
23608 |
|
|
echo "$as_me: failed program was:" >&5
|
23609 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23610 |
|
|
|
23611 |
|
|
ac_lo=`expr $ac_mid + 1`
|
23612 |
|
|
if test $ac_lo -le $ac_mid; then
|
23613 |
|
|
ac_lo= ac_hi=
|
23614 |
|
|
break
|
23615 |
|
|
fi
|
23616 |
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
23617 |
|
|
fi
|
23618 |
|
|
|
23619 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23620 |
|
|
done
|
23621 |
|
|
else
|
23622 |
|
|
echo "$as_me: failed program was:" >&5
|
23623 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23624 |
|
|
|
23625 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23626 |
|
|
/* confdefs.h. */
|
23627 |
|
|
_ACEOF
|
23628 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23629 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23630 |
|
|
/* end confdefs.h. */
|
23631 |
|
|
$ac_includes_default
|
23632 |
|
|
typedef char ac__type_sizeof_;
|
23633 |
|
|
int
|
23634 |
|
|
main ()
|
23635 |
|
|
{
|
23636 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
|
23637 |
|
|
test_array @<:@0@:>@ = 0
|
23638 |
|
|
|
23639 |
|
|
;
|
23640 |
|
|
return 0;
|
23641 |
|
|
}
|
23642 |
|
|
_ACEOF
|
23643 |
|
|
rm -f conftest.$ac_objext
|
23644 |
|
|
if { (ac_try="$ac_compile"
|
23645 |
|
|
case "(($ac_try" in
|
23646 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23647 |
|
|
*) ac_try_echo=$ac_try;;
|
23648 |
|
|
esac
|
23649 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23650 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23651 |
|
|
ac_status=$?
|
23652 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23653 |
|
|
rm -f conftest.er1
|
23654 |
|
|
cat conftest.err >&5
|
23655 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23656 |
|
|
(exit $ac_status); } && {
|
23657 |
|
|
test -z "$ac_c_werror_flag" ||
|
23658 |
|
|
test ! -s conftest.err
|
23659 |
|
|
} && test -s conftest.$ac_objext; then
|
23660 |
|
|
ac_hi=-1 ac_mid=-1
|
23661 |
|
|
while :; do
|
23662 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23663 |
|
|
/* confdefs.h. */
|
23664 |
|
|
_ACEOF
|
23665 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23666 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23667 |
|
|
/* end confdefs.h. */
|
23668 |
|
|
$ac_includes_default
|
23669 |
|
|
typedef char ac__type_sizeof_;
|
23670 |
|
|
int
|
23671 |
|
|
main ()
|
23672 |
|
|
{
|
23673 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
|
23674 |
|
|
test_array @<:@0@:>@ = 0
|
23675 |
|
|
|
23676 |
|
|
;
|
23677 |
|
|
return 0;
|
23678 |
|
|
}
|
23679 |
|
|
_ACEOF
|
23680 |
|
|
rm -f conftest.$ac_objext
|
23681 |
|
|
if { (ac_try="$ac_compile"
|
23682 |
|
|
case "(($ac_try" in
|
23683 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23684 |
|
|
*) ac_try_echo=$ac_try;;
|
23685 |
|
|
esac
|
23686 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23687 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23688 |
|
|
ac_status=$?
|
23689 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23690 |
|
|
rm -f conftest.er1
|
23691 |
|
|
cat conftest.err >&5
|
23692 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23693 |
|
|
(exit $ac_status); } && {
|
23694 |
|
|
test -z "$ac_c_werror_flag" ||
|
23695 |
|
|
test ! -s conftest.err
|
23696 |
|
|
} && test -s conftest.$ac_objext; then
|
23697 |
|
|
ac_lo=$ac_mid; break
|
23698 |
|
|
else
|
23699 |
|
|
echo "$as_me: failed program was:" >&5
|
23700 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23701 |
|
|
|
23702 |
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
23703 |
|
|
if test $ac_mid -le $ac_hi; then
|
23704 |
|
|
ac_lo= ac_hi=
|
23705 |
|
|
break
|
23706 |
|
|
fi
|
23707 |
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
23708 |
|
|
fi
|
23709 |
|
|
|
23710 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23711 |
|
|
done
|
23712 |
|
|
else
|
23713 |
|
|
echo "$as_me: failed program was:" >&5
|
23714 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23715 |
|
|
|
23716 |
|
|
ac_lo= ac_hi=
|
23717 |
|
|
fi
|
23718 |
|
|
|
23719 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23720 |
|
|
fi
|
23721 |
|
|
|
23722 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23723 |
|
|
# Binary search between lo and hi bounds.
|
23724 |
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
23725 |
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
23726 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23727 |
|
|
/* confdefs.h. */
|
23728 |
|
|
_ACEOF
|
23729 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23730 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23731 |
|
|
/* end confdefs.h. */
|
23732 |
|
|
$ac_includes_default
|
23733 |
|
|
typedef char ac__type_sizeof_;
|
23734 |
|
|
int
|
23735 |
|
|
main ()
|
23736 |
|
|
{
|
23737 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
23738 |
|
|
test_array @<:@0@:>@ = 0
|
23739 |
|
|
|
23740 |
|
|
;
|
23741 |
|
|
return 0;
|
23742 |
|
|
}
|
23743 |
|
|
_ACEOF
|
23744 |
|
|
rm -f conftest.$ac_objext
|
23745 |
|
|
if { (ac_try="$ac_compile"
|
23746 |
|
|
case "(($ac_try" in
|
23747 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23748 |
|
|
*) ac_try_echo=$ac_try;;
|
23749 |
|
|
esac
|
23750 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23751 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23752 |
|
|
ac_status=$?
|
23753 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23754 |
|
|
rm -f conftest.er1
|
23755 |
|
|
cat conftest.err >&5
|
23756 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23757 |
|
|
(exit $ac_status); } && {
|
23758 |
|
|
test -z "$ac_c_werror_flag" ||
|
23759 |
|
|
test ! -s conftest.err
|
23760 |
|
|
} && test -s conftest.$ac_objext; then
|
23761 |
|
|
ac_hi=$ac_mid
|
23762 |
|
|
else
|
23763 |
|
|
echo "$as_me: failed program was:" >&5
|
23764 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23765 |
|
|
|
23766 |
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
23767 |
|
|
fi
|
23768 |
|
|
|
23769 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23770 |
|
|
done
|
23771 |
|
|
case $ac_lo in
|
23772 |
|
|
?*) ac_cv_sizeof_char=$ac_lo;;
|
23773 |
|
|
'') if test "$ac_cv_type_char" = yes; then
|
23774 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
|
23775 |
|
|
See \`config.log' for more details." >&5
|
23776 |
|
|
echo "$as_me: error: cannot compute sizeof (char)
|
23777 |
|
|
See \`config.log' for more details." >&2;}
|
23778 |
|
|
{ (exit 77); exit 77; }; }
|
23779 |
|
|
else
|
23780 |
|
|
ac_cv_sizeof_char=0
|
23781 |
|
|
fi ;;
|
23782 |
|
|
esac
|
23783 |
|
|
else
|
23784 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23785 |
|
|
/* confdefs.h. */
|
23786 |
|
|
_ACEOF
|
23787 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23788 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23789 |
|
|
/* end confdefs.h. */
|
23790 |
|
|
$ac_includes_default
|
23791 |
|
|
typedef char ac__type_sizeof_;
|
23792 |
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
23793 |
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
23794 |
|
|
@%:@include
|
23795 |
|
|
@%:@include
|
23796 |
|
|
int
|
23797 |
|
|
main ()
|
23798 |
|
|
{
|
23799 |
|
|
|
23800 |
|
|
FILE *f = fopen ("conftest.val", "w");
|
23801 |
|
|
if (! f)
|
23802 |
|
|
return 1;
|
23803 |
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
23804 |
|
|
{
|
23805 |
|
|
long int i = longval ();
|
23806 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
23807 |
|
|
return 1;
|
23808 |
|
|
fprintf (f, "%ld\n", i);
|
23809 |
|
|
}
|
23810 |
|
|
else
|
23811 |
|
|
{
|
23812 |
|
|
unsigned long int i = ulongval ();
|
23813 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
23814 |
|
|
return 1;
|
23815 |
|
|
fprintf (f, "%lu\n", i);
|
23816 |
|
|
}
|
23817 |
|
|
return ferror (f) || fclose (f) != 0;
|
23818 |
|
|
|
23819 |
|
|
;
|
23820 |
|
|
return 0;
|
23821 |
|
|
}
|
23822 |
|
|
_ACEOF
|
23823 |
|
|
rm -f conftest$ac_exeext
|
23824 |
|
|
if { (ac_try="$ac_link"
|
23825 |
|
|
case "(($ac_try" in
|
23826 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23827 |
|
|
*) ac_try_echo=$ac_try;;
|
23828 |
|
|
esac
|
23829 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23830 |
|
|
(eval "$ac_link") 2>&5
|
23831 |
|
|
ac_status=$?
|
23832 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23833 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
23834 |
|
|
{ (case "(($ac_try" in
|
23835 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23836 |
|
|
*) ac_try_echo=$ac_try;;
|
23837 |
|
|
esac
|
23838 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23839 |
|
|
(eval "$ac_try") 2>&5
|
23840 |
|
|
ac_status=$?
|
23841 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23842 |
|
|
(exit $ac_status); }; }; then
|
23843 |
|
|
ac_cv_sizeof_char=`cat conftest.val`
|
23844 |
|
|
else
|
23845 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
23846 |
|
|
echo "$as_me: failed program was:" >&5
|
23847 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23848 |
|
|
|
23849 |
|
|
( exit $ac_status )
|
23850 |
|
|
if test "$ac_cv_type_char" = yes; then
|
23851 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
|
23852 |
|
|
See \`config.log' for more details." >&5
|
23853 |
|
|
echo "$as_me: error: cannot compute sizeof (char)
|
23854 |
|
|
See \`config.log' for more details." >&2;}
|
23855 |
|
|
{ (exit 77); exit 77; }; }
|
23856 |
|
|
else
|
23857 |
|
|
ac_cv_sizeof_char=0
|
23858 |
|
|
fi
|
23859 |
|
|
fi
|
23860 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
23861 |
|
|
fi
|
23862 |
|
|
rm -f conftest.val
|
23863 |
|
|
fi
|
23864 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
|
23865 |
|
|
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
|
23866 |
|
|
|
23867 |
|
|
|
23868 |
|
|
|
23869 |
|
|
cat >>confdefs.h <<_ACEOF
|
23870 |
|
|
@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
|
23871 |
|
|
_ACEOF
|
23872 |
|
|
|
23873 |
|
|
|
23874 |
|
|
{ echo "$as_me:$LINENO: checking for short" >&5
|
23875 |
|
|
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
|
23876 |
|
|
if test "${ac_cv_type_short+set}" = set; then
|
23877 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23878 |
|
|
else
|
23879 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23880 |
|
|
/* confdefs.h. */
|
23881 |
|
|
_ACEOF
|
23882 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23883 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23884 |
|
|
/* end confdefs.h. */
|
23885 |
|
|
$ac_includes_default
|
23886 |
|
|
typedef short ac__type_new_;
|
23887 |
|
|
int
|
23888 |
|
|
main ()
|
23889 |
|
|
{
|
23890 |
|
|
if ((ac__type_new_ *) 0)
|
23891 |
|
|
return 0;
|
23892 |
|
|
if (sizeof (ac__type_new_))
|
23893 |
|
|
return 0;
|
23894 |
|
|
;
|
23895 |
|
|
return 0;
|
23896 |
|
|
}
|
23897 |
|
|
_ACEOF
|
23898 |
|
|
rm -f conftest.$ac_objext
|
23899 |
|
|
if { (ac_try="$ac_compile"
|
23900 |
|
|
case "(($ac_try" in
|
23901 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23902 |
|
|
*) ac_try_echo=$ac_try;;
|
23903 |
|
|
esac
|
23904 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23905 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23906 |
|
|
ac_status=$?
|
23907 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23908 |
|
|
rm -f conftest.er1
|
23909 |
|
|
cat conftest.err >&5
|
23910 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23911 |
|
|
(exit $ac_status); } && {
|
23912 |
|
|
test -z "$ac_c_werror_flag" ||
|
23913 |
|
|
test ! -s conftest.err
|
23914 |
|
|
} && test -s conftest.$ac_objext; then
|
23915 |
|
|
ac_cv_type_short=yes
|
23916 |
|
|
else
|
23917 |
|
|
echo "$as_me: failed program was:" >&5
|
23918 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23919 |
|
|
|
23920 |
|
|
ac_cv_type_short=no
|
23921 |
|
|
fi
|
23922 |
|
|
|
23923 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23924 |
|
|
fi
|
23925 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
|
23926 |
|
|
echo "${ECHO_T}$ac_cv_type_short" >&6; }
|
23927 |
|
|
|
23928 |
|
|
# The cast to long int works around a bug in the HP C Compiler
|
23929 |
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
23930 |
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
23931 |
|
|
# This bug is HP SR number 8606223364.
|
23932 |
|
|
{ echo "$as_me:$LINENO: checking size of short" >&5
|
23933 |
|
|
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
|
23934 |
|
|
if test "${ac_cv_sizeof_short+set}" = set; then
|
23935 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23936 |
|
|
else
|
23937 |
|
|
if test "$cross_compiling" = yes; then
|
23938 |
|
|
# Depending upon the size, compute the lo and hi bounds.
|
23939 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23940 |
|
|
/* confdefs.h. */
|
23941 |
|
|
_ACEOF
|
23942 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23943 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23944 |
|
|
/* end confdefs.h. */
|
23945 |
|
|
$ac_includes_default
|
23946 |
|
|
typedef short ac__type_sizeof_;
|
23947 |
|
|
int
|
23948 |
|
|
main ()
|
23949 |
|
|
{
|
23950 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
|
23951 |
|
|
test_array @<:@0@:>@ = 0
|
23952 |
|
|
|
23953 |
|
|
;
|
23954 |
|
|
return 0;
|
23955 |
|
|
}
|
23956 |
|
|
_ACEOF
|
23957 |
|
|
rm -f conftest.$ac_objext
|
23958 |
|
|
if { (ac_try="$ac_compile"
|
23959 |
|
|
case "(($ac_try" in
|
23960 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23961 |
|
|
*) ac_try_echo=$ac_try;;
|
23962 |
|
|
esac
|
23963 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23964 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23965 |
|
|
ac_status=$?
|
23966 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23967 |
|
|
rm -f conftest.er1
|
23968 |
|
|
cat conftest.err >&5
|
23969 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23970 |
|
|
(exit $ac_status); } && {
|
23971 |
|
|
test -z "$ac_c_werror_flag" ||
|
23972 |
|
|
test ! -s conftest.err
|
23973 |
|
|
} && test -s conftest.$ac_objext; then
|
23974 |
|
|
ac_lo=0 ac_mid=0
|
23975 |
|
|
while :; do
|
23976 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23977 |
|
|
/* confdefs.h. */
|
23978 |
|
|
_ACEOF
|
23979 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23980 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23981 |
|
|
/* end confdefs.h. */
|
23982 |
|
|
$ac_includes_default
|
23983 |
|
|
typedef short ac__type_sizeof_;
|
23984 |
|
|
int
|
23985 |
|
|
main ()
|
23986 |
|
|
{
|
23987 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
23988 |
|
|
test_array @<:@0@:>@ = 0
|
23989 |
|
|
|
23990 |
|
|
;
|
23991 |
|
|
return 0;
|
23992 |
|
|
}
|
23993 |
|
|
_ACEOF
|
23994 |
|
|
rm -f conftest.$ac_objext
|
23995 |
|
|
if { (ac_try="$ac_compile"
|
23996 |
|
|
case "(($ac_try" in
|
23997 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23998 |
|
|
*) ac_try_echo=$ac_try;;
|
23999 |
|
|
esac
|
24000 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24001 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24002 |
|
|
ac_status=$?
|
24003 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24004 |
|
|
rm -f conftest.er1
|
24005 |
|
|
cat conftest.err >&5
|
24006 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24007 |
|
|
(exit $ac_status); } && {
|
24008 |
|
|
test -z "$ac_c_werror_flag" ||
|
24009 |
|
|
test ! -s conftest.err
|
24010 |
|
|
} && test -s conftest.$ac_objext; then
|
24011 |
|
|
ac_hi=$ac_mid; break
|
24012 |
|
|
else
|
24013 |
|
|
echo "$as_me: failed program was:" >&5
|
24014 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24015 |
|
|
|
24016 |
|
|
ac_lo=`expr $ac_mid + 1`
|
24017 |
|
|
if test $ac_lo -le $ac_mid; then
|
24018 |
|
|
ac_lo= ac_hi=
|
24019 |
|
|
break
|
24020 |
|
|
fi
|
24021 |
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
24022 |
|
|
fi
|
24023 |
|
|
|
24024 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24025 |
|
|
done
|
24026 |
|
|
else
|
24027 |
|
|
echo "$as_me: failed program was:" >&5
|
24028 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24029 |
|
|
|
24030 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24031 |
|
|
/* confdefs.h. */
|
24032 |
|
|
_ACEOF
|
24033 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24034 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24035 |
|
|
/* end confdefs.h. */
|
24036 |
|
|
$ac_includes_default
|
24037 |
|
|
typedef short ac__type_sizeof_;
|
24038 |
|
|
int
|
24039 |
|
|
main ()
|
24040 |
|
|
{
|
24041 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
|
24042 |
|
|
test_array @<:@0@:>@ = 0
|
24043 |
|
|
|
24044 |
|
|
;
|
24045 |
|
|
return 0;
|
24046 |
|
|
}
|
24047 |
|
|
_ACEOF
|
24048 |
|
|
rm -f conftest.$ac_objext
|
24049 |
|
|
if { (ac_try="$ac_compile"
|
24050 |
|
|
case "(($ac_try" in
|
24051 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24052 |
|
|
*) ac_try_echo=$ac_try;;
|
24053 |
|
|
esac
|
24054 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24055 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24056 |
|
|
ac_status=$?
|
24057 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24058 |
|
|
rm -f conftest.er1
|
24059 |
|
|
cat conftest.err >&5
|
24060 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24061 |
|
|
(exit $ac_status); } && {
|
24062 |
|
|
test -z "$ac_c_werror_flag" ||
|
24063 |
|
|
test ! -s conftest.err
|
24064 |
|
|
} && test -s conftest.$ac_objext; then
|
24065 |
|
|
ac_hi=-1 ac_mid=-1
|
24066 |
|
|
while :; do
|
24067 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24068 |
|
|
/* confdefs.h. */
|
24069 |
|
|
_ACEOF
|
24070 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24071 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24072 |
|
|
/* end confdefs.h. */
|
24073 |
|
|
$ac_includes_default
|
24074 |
|
|
typedef short ac__type_sizeof_;
|
24075 |
|
|
int
|
24076 |
|
|
main ()
|
24077 |
|
|
{
|
24078 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
|
24079 |
|
|
test_array @<:@0@:>@ = 0
|
24080 |
|
|
|
24081 |
|
|
;
|
24082 |
|
|
return 0;
|
24083 |
|
|
}
|
24084 |
|
|
_ACEOF
|
24085 |
|
|
rm -f conftest.$ac_objext
|
24086 |
|
|
if { (ac_try="$ac_compile"
|
24087 |
|
|
case "(($ac_try" in
|
24088 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24089 |
|
|
*) ac_try_echo=$ac_try;;
|
24090 |
|
|
esac
|
24091 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24092 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24093 |
|
|
ac_status=$?
|
24094 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24095 |
|
|
rm -f conftest.er1
|
24096 |
|
|
cat conftest.err >&5
|
24097 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24098 |
|
|
(exit $ac_status); } && {
|
24099 |
|
|
test -z "$ac_c_werror_flag" ||
|
24100 |
|
|
test ! -s conftest.err
|
24101 |
|
|
} && test -s conftest.$ac_objext; then
|
24102 |
|
|
ac_lo=$ac_mid; break
|
24103 |
|
|
else
|
24104 |
|
|
echo "$as_me: failed program was:" >&5
|
24105 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24106 |
|
|
|
24107 |
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
24108 |
|
|
if test $ac_mid -le $ac_hi; then
|
24109 |
|
|
ac_lo= ac_hi=
|
24110 |
|
|
break
|
24111 |
|
|
fi
|
24112 |
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
24113 |
|
|
fi
|
24114 |
|
|
|
24115 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24116 |
|
|
done
|
24117 |
|
|
else
|
24118 |
|
|
echo "$as_me: failed program was:" >&5
|
24119 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24120 |
|
|
|
24121 |
|
|
ac_lo= ac_hi=
|
24122 |
|
|
fi
|
24123 |
|
|
|
24124 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24125 |
|
|
fi
|
24126 |
|
|
|
24127 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24128 |
|
|
# Binary search between lo and hi bounds.
|
24129 |
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
24130 |
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
24131 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24132 |
|
|
/* confdefs.h. */
|
24133 |
|
|
_ACEOF
|
24134 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24135 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24136 |
|
|
/* end confdefs.h. */
|
24137 |
|
|
$ac_includes_default
|
24138 |
|
|
typedef short ac__type_sizeof_;
|
24139 |
|
|
int
|
24140 |
|
|
main ()
|
24141 |
|
|
{
|
24142 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
24143 |
|
|
test_array @<:@0@:>@ = 0
|
24144 |
|
|
|
24145 |
|
|
;
|
24146 |
|
|
return 0;
|
24147 |
|
|
}
|
24148 |
|
|
_ACEOF
|
24149 |
|
|
rm -f conftest.$ac_objext
|
24150 |
|
|
if { (ac_try="$ac_compile"
|
24151 |
|
|
case "(($ac_try" in
|
24152 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24153 |
|
|
*) ac_try_echo=$ac_try;;
|
24154 |
|
|
esac
|
24155 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24156 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24157 |
|
|
ac_status=$?
|
24158 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24159 |
|
|
rm -f conftest.er1
|
24160 |
|
|
cat conftest.err >&5
|
24161 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24162 |
|
|
(exit $ac_status); } && {
|
24163 |
|
|
test -z "$ac_c_werror_flag" ||
|
24164 |
|
|
test ! -s conftest.err
|
24165 |
|
|
} && test -s conftest.$ac_objext; then
|
24166 |
|
|
ac_hi=$ac_mid
|
24167 |
|
|
else
|
24168 |
|
|
echo "$as_me: failed program was:" >&5
|
24169 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24170 |
|
|
|
24171 |
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
24172 |
|
|
fi
|
24173 |
|
|
|
24174 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24175 |
|
|
done
|
24176 |
|
|
case $ac_lo in
|
24177 |
|
|
?*) ac_cv_sizeof_short=$ac_lo;;
|
24178 |
|
|
'') if test "$ac_cv_type_short" = yes; then
|
24179 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
|
24180 |
|
|
See \`config.log' for more details." >&5
|
24181 |
|
|
echo "$as_me: error: cannot compute sizeof (short)
|
24182 |
|
|
See \`config.log' for more details." >&2;}
|
24183 |
|
|
{ (exit 77); exit 77; }; }
|
24184 |
|
|
else
|
24185 |
|
|
ac_cv_sizeof_short=0
|
24186 |
|
|
fi ;;
|
24187 |
|
|
esac
|
24188 |
|
|
else
|
24189 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24190 |
|
|
/* confdefs.h. */
|
24191 |
|
|
_ACEOF
|
24192 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24193 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24194 |
|
|
/* end confdefs.h. */
|
24195 |
|
|
$ac_includes_default
|
24196 |
|
|
typedef short ac__type_sizeof_;
|
24197 |
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
24198 |
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
24199 |
|
|
@%:@include
|
24200 |
|
|
@%:@include
|
24201 |
|
|
int
|
24202 |
|
|
main ()
|
24203 |
|
|
{
|
24204 |
|
|
|
24205 |
|
|
FILE *f = fopen ("conftest.val", "w");
|
24206 |
|
|
if (! f)
|
24207 |
|
|
return 1;
|
24208 |
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
24209 |
|
|
{
|
24210 |
|
|
long int i = longval ();
|
24211 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
24212 |
|
|
return 1;
|
24213 |
|
|
fprintf (f, "%ld\n", i);
|
24214 |
|
|
}
|
24215 |
|
|
else
|
24216 |
|
|
{
|
24217 |
|
|
unsigned long int i = ulongval ();
|
24218 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
24219 |
|
|
return 1;
|
24220 |
|
|
fprintf (f, "%lu\n", i);
|
24221 |
|
|
}
|
24222 |
|
|
return ferror (f) || fclose (f) != 0;
|
24223 |
|
|
|
24224 |
|
|
;
|
24225 |
|
|
return 0;
|
24226 |
|
|
}
|
24227 |
|
|
_ACEOF
|
24228 |
|
|
rm -f conftest$ac_exeext
|
24229 |
|
|
if { (ac_try="$ac_link"
|
24230 |
|
|
case "(($ac_try" in
|
24231 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24232 |
|
|
*) ac_try_echo=$ac_try;;
|
24233 |
|
|
esac
|
24234 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24235 |
|
|
(eval "$ac_link") 2>&5
|
24236 |
|
|
ac_status=$?
|
24237 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24238 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
24239 |
|
|
{ (case "(($ac_try" in
|
24240 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24241 |
|
|
*) ac_try_echo=$ac_try;;
|
24242 |
|
|
esac
|
24243 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24244 |
|
|
(eval "$ac_try") 2>&5
|
24245 |
|
|
ac_status=$?
|
24246 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24247 |
|
|
(exit $ac_status); }; }; then
|
24248 |
|
|
ac_cv_sizeof_short=`cat conftest.val`
|
24249 |
|
|
else
|
24250 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
24251 |
|
|
echo "$as_me: failed program was:" >&5
|
24252 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24253 |
|
|
|
24254 |
|
|
( exit $ac_status )
|
24255 |
|
|
if test "$ac_cv_type_short" = yes; then
|
24256 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
|
24257 |
|
|
See \`config.log' for more details." >&5
|
24258 |
|
|
echo "$as_me: error: cannot compute sizeof (short)
|
24259 |
|
|
See \`config.log' for more details." >&2;}
|
24260 |
|
|
{ (exit 77); exit 77; }; }
|
24261 |
|
|
else
|
24262 |
|
|
ac_cv_sizeof_short=0
|
24263 |
|
|
fi
|
24264 |
|
|
fi
|
24265 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
24266 |
|
|
fi
|
24267 |
|
|
rm -f conftest.val
|
24268 |
|
|
fi
|
24269 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
|
24270 |
|
|
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
|
24271 |
|
|
|
24272 |
|
|
|
24273 |
|
|
|
24274 |
|
|
cat >>confdefs.h <<_ACEOF
|
24275 |
|
|
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
|
24276 |
|
|
_ACEOF
|
24277 |
|
|
|
24278 |
|
|
|
24279 |
|
|
{ echo "$as_me:$LINENO: checking for int" >&5
|
24280 |
|
|
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
|
24281 |
|
|
if test "${ac_cv_type_int+set}" = set; then
|
24282 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
24283 |
|
|
else
|
24284 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24285 |
|
|
/* confdefs.h. */
|
24286 |
|
|
_ACEOF
|
24287 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24288 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24289 |
|
|
/* end confdefs.h. */
|
24290 |
|
|
$ac_includes_default
|
24291 |
|
|
typedef int ac__type_new_;
|
24292 |
|
|
int
|
24293 |
|
|
main ()
|
24294 |
|
|
{
|
24295 |
|
|
if ((ac__type_new_ *) 0)
|
24296 |
|
|
return 0;
|
24297 |
|
|
if (sizeof (ac__type_new_))
|
24298 |
|
|
return 0;
|
24299 |
|
|
;
|
24300 |
|
|
return 0;
|
24301 |
|
|
}
|
24302 |
|
|
_ACEOF
|
24303 |
|
|
rm -f conftest.$ac_objext
|
24304 |
|
|
if { (ac_try="$ac_compile"
|
24305 |
|
|
case "(($ac_try" in
|
24306 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24307 |
|
|
*) ac_try_echo=$ac_try;;
|
24308 |
|
|
esac
|
24309 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24310 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24311 |
|
|
ac_status=$?
|
24312 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24313 |
|
|
rm -f conftest.er1
|
24314 |
|
|
cat conftest.err >&5
|
24315 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24316 |
|
|
(exit $ac_status); } && {
|
24317 |
|
|
test -z "$ac_c_werror_flag" ||
|
24318 |
|
|
test ! -s conftest.err
|
24319 |
|
|
} && test -s conftest.$ac_objext; then
|
24320 |
|
|
ac_cv_type_int=yes
|
24321 |
|
|
else
|
24322 |
|
|
echo "$as_me: failed program was:" >&5
|
24323 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24324 |
|
|
|
24325 |
|
|
ac_cv_type_int=no
|
24326 |
|
|
fi
|
24327 |
|
|
|
24328 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24329 |
|
|
fi
|
24330 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
|
24331 |
|
|
echo "${ECHO_T}$ac_cv_type_int" >&6; }
|
24332 |
|
|
|
24333 |
|
|
# The cast to long int works around a bug in the HP C Compiler
|
24334 |
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
24335 |
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
24336 |
|
|
# This bug is HP SR number 8606223364.
|
24337 |
|
|
{ echo "$as_me:$LINENO: checking size of int" >&5
|
24338 |
|
|
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
|
24339 |
|
|
if test "${ac_cv_sizeof_int+set}" = set; then
|
24340 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
24341 |
|
|
else
|
24342 |
|
|
if test "$cross_compiling" = yes; then
|
24343 |
|
|
# Depending upon the size, compute the lo and hi bounds.
|
24344 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24345 |
|
|
/* confdefs.h. */
|
24346 |
|
|
_ACEOF
|
24347 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24348 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24349 |
|
|
/* end confdefs.h. */
|
24350 |
|
|
$ac_includes_default
|
24351 |
|
|
typedef int ac__type_sizeof_;
|
24352 |
|
|
int
|
24353 |
|
|
main ()
|
24354 |
|
|
{
|
24355 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
|
24356 |
|
|
test_array @<:@0@:>@ = 0
|
24357 |
|
|
|
24358 |
|
|
;
|
24359 |
|
|
return 0;
|
24360 |
|
|
}
|
24361 |
|
|
_ACEOF
|
24362 |
|
|
rm -f conftest.$ac_objext
|
24363 |
|
|
if { (ac_try="$ac_compile"
|
24364 |
|
|
case "(($ac_try" in
|
24365 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24366 |
|
|
*) ac_try_echo=$ac_try;;
|
24367 |
|
|
esac
|
24368 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24369 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24370 |
|
|
ac_status=$?
|
24371 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24372 |
|
|
rm -f conftest.er1
|
24373 |
|
|
cat conftest.err >&5
|
24374 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24375 |
|
|
(exit $ac_status); } && {
|
24376 |
|
|
test -z "$ac_c_werror_flag" ||
|
24377 |
|
|
test ! -s conftest.err
|
24378 |
|
|
} && test -s conftest.$ac_objext; then
|
24379 |
|
|
ac_lo=0 ac_mid=0
|
24380 |
|
|
while :; do
|
24381 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24382 |
|
|
/* confdefs.h. */
|
24383 |
|
|
_ACEOF
|
24384 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24385 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24386 |
|
|
/* end confdefs.h. */
|
24387 |
|
|
$ac_includes_default
|
24388 |
|
|
typedef int ac__type_sizeof_;
|
24389 |
|
|
int
|
24390 |
|
|
main ()
|
24391 |
|
|
{
|
24392 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
24393 |
|
|
test_array @<:@0@:>@ = 0
|
24394 |
|
|
|
24395 |
|
|
;
|
24396 |
|
|
return 0;
|
24397 |
|
|
}
|
24398 |
|
|
_ACEOF
|
24399 |
|
|
rm -f conftest.$ac_objext
|
24400 |
|
|
if { (ac_try="$ac_compile"
|
24401 |
|
|
case "(($ac_try" in
|
24402 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24403 |
|
|
*) ac_try_echo=$ac_try;;
|
24404 |
|
|
esac
|
24405 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24406 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24407 |
|
|
ac_status=$?
|
24408 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24409 |
|
|
rm -f conftest.er1
|
24410 |
|
|
cat conftest.err >&5
|
24411 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24412 |
|
|
(exit $ac_status); } && {
|
24413 |
|
|
test -z "$ac_c_werror_flag" ||
|
24414 |
|
|
test ! -s conftest.err
|
24415 |
|
|
} && test -s conftest.$ac_objext; then
|
24416 |
|
|
ac_hi=$ac_mid; break
|
24417 |
|
|
else
|
24418 |
|
|
echo "$as_me: failed program was:" >&5
|
24419 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24420 |
|
|
|
24421 |
|
|
ac_lo=`expr $ac_mid + 1`
|
24422 |
|
|
if test $ac_lo -le $ac_mid; then
|
24423 |
|
|
ac_lo= ac_hi=
|
24424 |
|
|
break
|
24425 |
|
|
fi
|
24426 |
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
24427 |
|
|
fi
|
24428 |
|
|
|
24429 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24430 |
|
|
done
|
24431 |
|
|
else
|
24432 |
|
|
echo "$as_me: failed program was:" >&5
|
24433 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24434 |
|
|
|
24435 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24436 |
|
|
/* confdefs.h. */
|
24437 |
|
|
_ACEOF
|
24438 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24439 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24440 |
|
|
/* end confdefs.h. */
|
24441 |
|
|
$ac_includes_default
|
24442 |
|
|
typedef int ac__type_sizeof_;
|
24443 |
|
|
int
|
24444 |
|
|
main ()
|
24445 |
|
|
{
|
24446 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
|
24447 |
|
|
test_array @<:@0@:>@ = 0
|
24448 |
|
|
|
24449 |
|
|
;
|
24450 |
|
|
return 0;
|
24451 |
|
|
}
|
24452 |
|
|
_ACEOF
|
24453 |
|
|
rm -f conftest.$ac_objext
|
24454 |
|
|
if { (ac_try="$ac_compile"
|
24455 |
|
|
case "(($ac_try" in
|
24456 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24457 |
|
|
*) ac_try_echo=$ac_try;;
|
24458 |
|
|
esac
|
24459 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24460 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24461 |
|
|
ac_status=$?
|
24462 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24463 |
|
|
rm -f conftest.er1
|
24464 |
|
|
cat conftest.err >&5
|
24465 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24466 |
|
|
(exit $ac_status); } && {
|
24467 |
|
|
test -z "$ac_c_werror_flag" ||
|
24468 |
|
|
test ! -s conftest.err
|
24469 |
|
|
} && test -s conftest.$ac_objext; then
|
24470 |
|
|
ac_hi=-1 ac_mid=-1
|
24471 |
|
|
while :; do
|
24472 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24473 |
|
|
/* confdefs.h. */
|
24474 |
|
|
_ACEOF
|
24475 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24476 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24477 |
|
|
/* end confdefs.h. */
|
24478 |
|
|
$ac_includes_default
|
24479 |
|
|
typedef int ac__type_sizeof_;
|
24480 |
|
|
int
|
24481 |
|
|
main ()
|
24482 |
|
|
{
|
24483 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
|
24484 |
|
|
test_array @<:@0@:>@ = 0
|
24485 |
|
|
|
24486 |
|
|
;
|
24487 |
|
|
return 0;
|
24488 |
|
|
}
|
24489 |
|
|
_ACEOF
|
24490 |
|
|
rm -f conftest.$ac_objext
|
24491 |
|
|
if { (ac_try="$ac_compile"
|
24492 |
|
|
case "(($ac_try" in
|
24493 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24494 |
|
|
*) ac_try_echo=$ac_try;;
|
24495 |
|
|
esac
|
24496 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24497 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24498 |
|
|
ac_status=$?
|
24499 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24500 |
|
|
rm -f conftest.er1
|
24501 |
|
|
cat conftest.err >&5
|
24502 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24503 |
|
|
(exit $ac_status); } && {
|
24504 |
|
|
test -z "$ac_c_werror_flag" ||
|
24505 |
|
|
test ! -s conftest.err
|
24506 |
|
|
} && test -s conftest.$ac_objext; then
|
24507 |
|
|
ac_lo=$ac_mid; break
|
24508 |
|
|
else
|
24509 |
|
|
echo "$as_me: failed program was:" >&5
|
24510 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24511 |
|
|
|
24512 |
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
24513 |
|
|
if test $ac_mid -le $ac_hi; then
|
24514 |
|
|
ac_lo= ac_hi=
|
24515 |
|
|
break
|
24516 |
|
|
fi
|
24517 |
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
24518 |
|
|
fi
|
24519 |
|
|
|
24520 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24521 |
|
|
done
|
24522 |
|
|
else
|
24523 |
|
|
echo "$as_me: failed program was:" >&5
|
24524 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24525 |
|
|
|
24526 |
|
|
ac_lo= ac_hi=
|
24527 |
|
|
fi
|
24528 |
|
|
|
24529 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24530 |
|
|
fi
|
24531 |
|
|
|
24532 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24533 |
|
|
# Binary search between lo and hi bounds.
|
24534 |
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
24535 |
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
24536 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24537 |
|
|
/* confdefs.h. */
|
24538 |
|
|
_ACEOF
|
24539 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24540 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24541 |
|
|
/* end confdefs.h. */
|
24542 |
|
|
$ac_includes_default
|
24543 |
|
|
typedef int ac__type_sizeof_;
|
24544 |
|
|
int
|
24545 |
|
|
main ()
|
24546 |
|
|
{
|
24547 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
24548 |
|
|
test_array @<:@0@:>@ = 0
|
24549 |
|
|
|
24550 |
|
|
;
|
24551 |
|
|
return 0;
|
24552 |
|
|
}
|
24553 |
|
|
_ACEOF
|
24554 |
|
|
rm -f conftest.$ac_objext
|
24555 |
|
|
if { (ac_try="$ac_compile"
|
24556 |
|
|
case "(($ac_try" in
|
24557 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24558 |
|
|
*) ac_try_echo=$ac_try;;
|
24559 |
|
|
esac
|
24560 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24561 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24562 |
|
|
ac_status=$?
|
24563 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24564 |
|
|
rm -f conftest.er1
|
24565 |
|
|
cat conftest.err >&5
|
24566 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24567 |
|
|
(exit $ac_status); } && {
|
24568 |
|
|
test -z "$ac_c_werror_flag" ||
|
24569 |
|
|
test ! -s conftest.err
|
24570 |
|
|
} && test -s conftest.$ac_objext; then
|
24571 |
|
|
ac_hi=$ac_mid
|
24572 |
|
|
else
|
24573 |
|
|
echo "$as_me: failed program was:" >&5
|
24574 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24575 |
|
|
|
24576 |
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
24577 |
|
|
fi
|
24578 |
|
|
|
24579 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24580 |
|
|
done
|
24581 |
|
|
case $ac_lo in
|
24582 |
|
|
?*) ac_cv_sizeof_int=$ac_lo;;
|
24583 |
|
|
'') if test "$ac_cv_type_int" = yes; then
|
24584 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
|
24585 |
|
|
See \`config.log' for more details." >&5
|
24586 |
|
|
echo "$as_me: error: cannot compute sizeof (int)
|
24587 |
|
|
See \`config.log' for more details." >&2;}
|
24588 |
|
|
{ (exit 77); exit 77; }; }
|
24589 |
|
|
else
|
24590 |
|
|
ac_cv_sizeof_int=0
|
24591 |
|
|
fi ;;
|
24592 |
|
|
esac
|
24593 |
|
|
else
|
24594 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24595 |
|
|
/* confdefs.h. */
|
24596 |
|
|
_ACEOF
|
24597 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24598 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24599 |
|
|
/* end confdefs.h. */
|
24600 |
|
|
$ac_includes_default
|
24601 |
|
|
typedef int ac__type_sizeof_;
|
24602 |
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
24603 |
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
24604 |
|
|
@%:@include
|
24605 |
|
|
@%:@include
|
24606 |
|
|
int
|
24607 |
|
|
main ()
|
24608 |
|
|
{
|
24609 |
|
|
|
24610 |
|
|
FILE *f = fopen ("conftest.val", "w");
|
24611 |
|
|
if (! f)
|
24612 |
|
|
return 1;
|
24613 |
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
24614 |
|
|
{
|
24615 |
|
|
long int i = longval ();
|
24616 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
24617 |
|
|
return 1;
|
24618 |
|
|
fprintf (f, "%ld\n", i);
|
24619 |
|
|
}
|
24620 |
|
|
else
|
24621 |
|
|
{
|
24622 |
|
|
unsigned long int i = ulongval ();
|
24623 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
24624 |
|
|
return 1;
|
24625 |
|
|
fprintf (f, "%lu\n", i);
|
24626 |
|
|
}
|
24627 |
|
|
return ferror (f) || fclose (f) != 0;
|
24628 |
|
|
|
24629 |
|
|
;
|
24630 |
|
|
return 0;
|
24631 |
|
|
}
|
24632 |
|
|
_ACEOF
|
24633 |
|
|
rm -f conftest$ac_exeext
|
24634 |
|
|
if { (ac_try="$ac_link"
|
24635 |
|
|
case "(($ac_try" in
|
24636 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24637 |
|
|
*) ac_try_echo=$ac_try;;
|
24638 |
|
|
esac
|
24639 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24640 |
|
|
(eval "$ac_link") 2>&5
|
24641 |
|
|
ac_status=$?
|
24642 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24643 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
24644 |
|
|
{ (case "(($ac_try" in
|
24645 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24646 |
|
|
*) ac_try_echo=$ac_try;;
|
24647 |
|
|
esac
|
24648 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24649 |
|
|
(eval "$ac_try") 2>&5
|
24650 |
|
|
ac_status=$?
|
24651 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24652 |
|
|
(exit $ac_status); }; }; then
|
24653 |
|
|
ac_cv_sizeof_int=`cat conftest.val`
|
24654 |
|
|
else
|
24655 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
24656 |
|
|
echo "$as_me: failed program was:" >&5
|
24657 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24658 |
|
|
|
24659 |
|
|
( exit $ac_status )
|
24660 |
|
|
if test "$ac_cv_type_int" = yes; then
|
24661 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
|
24662 |
|
|
See \`config.log' for more details." >&5
|
24663 |
|
|
echo "$as_me: error: cannot compute sizeof (int)
|
24664 |
|
|
See \`config.log' for more details." >&2;}
|
24665 |
|
|
{ (exit 77); exit 77; }; }
|
24666 |
|
|
else
|
24667 |
|
|
ac_cv_sizeof_int=0
|
24668 |
|
|
fi
|
24669 |
|
|
fi
|
24670 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
24671 |
|
|
fi
|
24672 |
|
|
rm -f conftest.val
|
24673 |
|
|
fi
|
24674 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
|
24675 |
|
|
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
|
24676 |
|
|
|
24677 |
|
|
|
24678 |
|
|
|
24679 |
|
|
cat >>confdefs.h <<_ACEOF
|
24680 |
|
|
@%:@define SIZEOF_INT $ac_cv_sizeof_int
|
24681 |
|
|
_ACEOF
|
24682 |
|
|
|
24683 |
|
|
|
24684 |
|
|
{ echo "$as_me:$LINENO: checking for long" >&5
|
24685 |
|
|
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
|
24686 |
|
|
if test "${ac_cv_type_long+set}" = set; then
|
24687 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
24688 |
|
|
else
|
24689 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24690 |
|
|
/* confdefs.h. */
|
24691 |
|
|
_ACEOF
|
24692 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24693 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24694 |
|
|
/* end confdefs.h. */
|
24695 |
|
|
$ac_includes_default
|
24696 |
|
|
typedef long ac__type_new_;
|
24697 |
|
|
int
|
24698 |
|
|
main ()
|
24699 |
|
|
{
|
24700 |
|
|
if ((ac__type_new_ *) 0)
|
24701 |
|
|
return 0;
|
24702 |
|
|
if (sizeof (ac__type_new_))
|
24703 |
|
|
return 0;
|
24704 |
|
|
;
|
24705 |
|
|
return 0;
|
24706 |
|
|
}
|
24707 |
|
|
_ACEOF
|
24708 |
|
|
rm -f conftest.$ac_objext
|
24709 |
|
|
if { (ac_try="$ac_compile"
|
24710 |
|
|
case "(($ac_try" in
|
24711 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24712 |
|
|
*) ac_try_echo=$ac_try;;
|
24713 |
|
|
esac
|
24714 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24715 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24716 |
|
|
ac_status=$?
|
24717 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24718 |
|
|
rm -f conftest.er1
|
24719 |
|
|
cat conftest.err >&5
|
24720 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24721 |
|
|
(exit $ac_status); } && {
|
24722 |
|
|
test -z "$ac_c_werror_flag" ||
|
24723 |
|
|
test ! -s conftest.err
|
24724 |
|
|
} && test -s conftest.$ac_objext; then
|
24725 |
|
|
ac_cv_type_long=yes
|
24726 |
|
|
else
|
24727 |
|
|
echo "$as_me: failed program was:" >&5
|
24728 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24729 |
|
|
|
24730 |
|
|
ac_cv_type_long=no
|
24731 |
|
|
fi
|
24732 |
|
|
|
24733 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24734 |
|
|
fi
|
24735 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
|
24736 |
|
|
echo "${ECHO_T}$ac_cv_type_long" >&6; }
|
24737 |
|
|
|
24738 |
|
|
# The cast to long int works around a bug in the HP C Compiler
|
24739 |
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
24740 |
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
24741 |
|
|
# This bug is HP SR number 8606223364.
|
24742 |
|
|
{ echo "$as_me:$LINENO: checking size of long" >&5
|
24743 |
|
|
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
|
24744 |
|
|
if test "${ac_cv_sizeof_long+set}" = set; then
|
24745 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
24746 |
|
|
else
|
24747 |
|
|
if test "$cross_compiling" = yes; then
|
24748 |
|
|
# Depending upon the size, compute the lo and hi bounds.
|
24749 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24750 |
|
|
/* confdefs.h. */
|
24751 |
|
|
_ACEOF
|
24752 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24753 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24754 |
|
|
/* end confdefs.h. */
|
24755 |
|
|
$ac_includes_default
|
24756 |
|
|
typedef long ac__type_sizeof_;
|
24757 |
|
|
int
|
24758 |
|
|
main ()
|
24759 |
|
|
{
|
24760 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
|
24761 |
|
|
test_array @<:@0@:>@ = 0
|
24762 |
|
|
|
24763 |
|
|
;
|
24764 |
|
|
return 0;
|
24765 |
|
|
}
|
24766 |
|
|
_ACEOF
|
24767 |
|
|
rm -f conftest.$ac_objext
|
24768 |
|
|
if { (ac_try="$ac_compile"
|
24769 |
|
|
case "(($ac_try" in
|
24770 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24771 |
|
|
*) ac_try_echo=$ac_try;;
|
24772 |
|
|
esac
|
24773 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24774 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24775 |
|
|
ac_status=$?
|
24776 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24777 |
|
|
rm -f conftest.er1
|
24778 |
|
|
cat conftest.err >&5
|
24779 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24780 |
|
|
(exit $ac_status); } && {
|
24781 |
|
|
test -z "$ac_c_werror_flag" ||
|
24782 |
|
|
test ! -s conftest.err
|
24783 |
|
|
} && test -s conftest.$ac_objext; then
|
24784 |
|
|
ac_lo=0 ac_mid=0
|
24785 |
|
|
while :; do
|
24786 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24787 |
|
|
/* confdefs.h. */
|
24788 |
|
|
_ACEOF
|
24789 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24790 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24791 |
|
|
/* end confdefs.h. */
|
24792 |
|
|
$ac_includes_default
|
24793 |
|
|
typedef long ac__type_sizeof_;
|
24794 |
|
|
int
|
24795 |
|
|
main ()
|
24796 |
|
|
{
|
24797 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
24798 |
|
|
test_array @<:@0@:>@ = 0
|
24799 |
|
|
|
24800 |
|
|
;
|
24801 |
|
|
return 0;
|
24802 |
|
|
}
|
24803 |
|
|
_ACEOF
|
24804 |
|
|
rm -f conftest.$ac_objext
|
24805 |
|
|
if { (ac_try="$ac_compile"
|
24806 |
|
|
case "(($ac_try" in
|
24807 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24808 |
|
|
*) ac_try_echo=$ac_try;;
|
24809 |
|
|
esac
|
24810 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24811 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24812 |
|
|
ac_status=$?
|
24813 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24814 |
|
|
rm -f conftest.er1
|
24815 |
|
|
cat conftest.err >&5
|
24816 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24817 |
|
|
(exit $ac_status); } && {
|
24818 |
|
|
test -z "$ac_c_werror_flag" ||
|
24819 |
|
|
test ! -s conftest.err
|
24820 |
|
|
} && test -s conftest.$ac_objext; then
|
24821 |
|
|
ac_hi=$ac_mid; break
|
24822 |
|
|
else
|
24823 |
|
|
echo "$as_me: failed program was:" >&5
|
24824 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24825 |
|
|
|
24826 |
|
|
ac_lo=`expr $ac_mid + 1`
|
24827 |
|
|
if test $ac_lo -le $ac_mid; then
|
24828 |
|
|
ac_lo= ac_hi=
|
24829 |
|
|
break
|
24830 |
|
|
fi
|
24831 |
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
24832 |
|
|
fi
|
24833 |
|
|
|
24834 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24835 |
|
|
done
|
24836 |
|
|
else
|
24837 |
|
|
echo "$as_me: failed program was:" >&5
|
24838 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24839 |
|
|
|
24840 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24841 |
|
|
/* confdefs.h. */
|
24842 |
|
|
_ACEOF
|
24843 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24844 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24845 |
|
|
/* end confdefs.h. */
|
24846 |
|
|
$ac_includes_default
|
24847 |
|
|
typedef long ac__type_sizeof_;
|
24848 |
|
|
int
|
24849 |
|
|
main ()
|
24850 |
|
|
{
|
24851 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
|
24852 |
|
|
test_array @<:@0@:>@ = 0
|
24853 |
|
|
|
24854 |
|
|
;
|
24855 |
|
|
return 0;
|
24856 |
|
|
}
|
24857 |
|
|
_ACEOF
|
24858 |
|
|
rm -f conftest.$ac_objext
|
24859 |
|
|
if { (ac_try="$ac_compile"
|
24860 |
|
|
case "(($ac_try" in
|
24861 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24862 |
|
|
*) ac_try_echo=$ac_try;;
|
24863 |
|
|
esac
|
24864 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24865 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24866 |
|
|
ac_status=$?
|
24867 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24868 |
|
|
rm -f conftest.er1
|
24869 |
|
|
cat conftest.err >&5
|
24870 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24871 |
|
|
(exit $ac_status); } && {
|
24872 |
|
|
test -z "$ac_c_werror_flag" ||
|
24873 |
|
|
test ! -s conftest.err
|
24874 |
|
|
} && test -s conftest.$ac_objext; then
|
24875 |
|
|
ac_hi=-1 ac_mid=-1
|
24876 |
|
|
while :; do
|
24877 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24878 |
|
|
/* confdefs.h. */
|
24879 |
|
|
_ACEOF
|
24880 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24881 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24882 |
|
|
/* end confdefs.h. */
|
24883 |
|
|
$ac_includes_default
|
24884 |
|
|
typedef long ac__type_sizeof_;
|
24885 |
|
|
int
|
24886 |
|
|
main ()
|
24887 |
|
|
{
|
24888 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
|
24889 |
|
|
test_array @<:@0@:>@ = 0
|
24890 |
|
|
|
24891 |
|
|
;
|
24892 |
|
|
return 0;
|
24893 |
|
|
}
|
24894 |
|
|
_ACEOF
|
24895 |
|
|
rm -f conftest.$ac_objext
|
24896 |
|
|
if { (ac_try="$ac_compile"
|
24897 |
|
|
case "(($ac_try" in
|
24898 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24899 |
|
|
*) ac_try_echo=$ac_try;;
|
24900 |
|
|
esac
|
24901 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24902 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24903 |
|
|
ac_status=$?
|
24904 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24905 |
|
|
rm -f conftest.er1
|
24906 |
|
|
cat conftest.err >&5
|
24907 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24908 |
|
|
(exit $ac_status); } && {
|
24909 |
|
|
test -z "$ac_c_werror_flag" ||
|
24910 |
|
|
test ! -s conftest.err
|
24911 |
|
|
} && test -s conftest.$ac_objext; then
|
24912 |
|
|
ac_lo=$ac_mid; break
|
24913 |
|
|
else
|
24914 |
|
|
echo "$as_me: failed program was:" >&5
|
24915 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24916 |
|
|
|
24917 |
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
24918 |
|
|
if test $ac_mid -le $ac_hi; then
|
24919 |
|
|
ac_lo= ac_hi=
|
24920 |
|
|
break
|
24921 |
|
|
fi
|
24922 |
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
24923 |
|
|
fi
|
24924 |
|
|
|
24925 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24926 |
|
|
done
|
24927 |
|
|
else
|
24928 |
|
|
echo "$as_me: failed program was:" >&5
|
24929 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24930 |
|
|
|
24931 |
|
|
ac_lo= ac_hi=
|
24932 |
|
|
fi
|
24933 |
|
|
|
24934 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24935 |
|
|
fi
|
24936 |
|
|
|
24937 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24938 |
|
|
# Binary search between lo and hi bounds.
|
24939 |
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
24940 |
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
24941 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
24942 |
|
|
/* confdefs.h. */
|
24943 |
|
|
_ACEOF
|
24944 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
24945 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
24946 |
|
|
/* end confdefs.h. */
|
24947 |
|
|
$ac_includes_default
|
24948 |
|
|
typedef long ac__type_sizeof_;
|
24949 |
|
|
int
|
24950 |
|
|
main ()
|
24951 |
|
|
{
|
24952 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
24953 |
|
|
test_array @<:@0@:>@ = 0
|
24954 |
|
|
|
24955 |
|
|
;
|
24956 |
|
|
return 0;
|
24957 |
|
|
}
|
24958 |
|
|
_ACEOF
|
24959 |
|
|
rm -f conftest.$ac_objext
|
24960 |
|
|
if { (ac_try="$ac_compile"
|
24961 |
|
|
case "(($ac_try" in
|
24962 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
24963 |
|
|
*) ac_try_echo=$ac_try;;
|
24964 |
|
|
esac
|
24965 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
24966 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
24967 |
|
|
ac_status=$?
|
24968 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
24969 |
|
|
rm -f conftest.er1
|
24970 |
|
|
cat conftest.err >&5
|
24971 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
24972 |
|
|
(exit $ac_status); } && {
|
24973 |
|
|
test -z "$ac_c_werror_flag" ||
|
24974 |
|
|
test ! -s conftest.err
|
24975 |
|
|
} && test -s conftest.$ac_objext; then
|
24976 |
|
|
ac_hi=$ac_mid
|
24977 |
|
|
else
|
24978 |
|
|
echo "$as_me: failed program was:" >&5
|
24979 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
24980 |
|
|
|
24981 |
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
24982 |
|
|
fi
|
24983 |
|
|
|
24984 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
24985 |
|
|
done
|
24986 |
|
|
case $ac_lo in
|
24987 |
|
|
?*) ac_cv_sizeof_long=$ac_lo;;
|
24988 |
|
|
'') if test "$ac_cv_type_long" = yes; then
|
24989 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
|
24990 |
|
|
See \`config.log' for more details." >&5
|
24991 |
|
|
echo "$as_me: error: cannot compute sizeof (long)
|
24992 |
|
|
See \`config.log' for more details." >&2;}
|
24993 |
|
|
{ (exit 77); exit 77; }; }
|
24994 |
|
|
else
|
24995 |
|
|
ac_cv_sizeof_long=0
|
24996 |
|
|
fi ;;
|
24997 |
|
|
esac
|
24998 |
|
|
else
|
24999 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
25000 |
|
|
/* confdefs.h. */
|
25001 |
|
|
_ACEOF
|
25002 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
25003 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
25004 |
|
|
/* end confdefs.h. */
|
25005 |
|
|
$ac_includes_default
|
25006 |
|
|
typedef long ac__type_sizeof_;
|
25007 |
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
25008 |
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
25009 |
|
|
@%:@include
|
25010 |
|
|
@%:@include
|
25011 |
|
|
int
|
25012 |
|
|
main ()
|
25013 |
|
|
{
|
25014 |
|
|
|
25015 |
|
|
FILE *f = fopen ("conftest.val", "w");
|
25016 |
|
|
if (! f)
|
25017 |
|
|
return 1;
|
25018 |
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
25019 |
|
|
{
|
25020 |
|
|
long int i = longval ();
|
25021 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
25022 |
|
|
return 1;
|
25023 |
|
|
fprintf (f, "%ld\n", i);
|
25024 |
|
|
}
|
25025 |
|
|
else
|
25026 |
|
|
{
|
25027 |
|
|
unsigned long int i = ulongval ();
|
25028 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
25029 |
|
|
return 1;
|
25030 |
|
|
fprintf (f, "%lu\n", i);
|
25031 |
|
|
}
|
25032 |
|
|
return ferror (f) || fclose (f) != 0;
|
25033 |
|
|
|
25034 |
|
|
;
|
25035 |
|
|
return 0;
|
25036 |
|
|
}
|
25037 |
|
|
_ACEOF
|
25038 |
|
|
rm -f conftest$ac_exeext
|
25039 |
|
|
if { (ac_try="$ac_link"
|
25040 |
|
|
case "(($ac_try" in
|
25041 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
25042 |
|
|
*) ac_try_echo=$ac_try;;
|
25043 |
|
|
esac
|
25044 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
25045 |
|
|
(eval "$ac_link") 2>&5
|
25046 |
|
|
ac_status=$?
|
25047 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
25048 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
25049 |
|
|
{ (case "(($ac_try" in
|
25050 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
25051 |
|
|
*) ac_try_echo=$ac_try;;
|
25052 |
|
|
esac
|
25053 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
25054 |
|
|
(eval "$ac_try") 2>&5
|
25055 |
|
|
ac_status=$?
|
25056 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
25057 |
|
|
(exit $ac_status); }; }; then
|
25058 |
|
|
ac_cv_sizeof_long=`cat conftest.val`
|
25059 |
|
|
else
|
25060 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
25061 |
|
|
echo "$as_me: failed program was:" >&5
|
25062 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
25063 |
|
|
|
25064 |
|
|
( exit $ac_status )
|
25065 |
|
|
if test "$ac_cv_type_long" = yes; then
|
25066 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
|
25067 |
|
|
See \`config.log' for more details." >&5
|
25068 |
|
|
echo "$as_me: error: cannot compute sizeof (long)
|
25069 |
|
|
See \`config.log' for more details." >&2;}
|
25070 |
|
|
{ (exit 77); exit 77; }; }
|
25071 |
|
|
else
|
25072 |
|
|
ac_cv_sizeof_long=0
|
25073 |
|
|
fi
|
25074 |
|
|
fi
|
25075 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
25076 |
|
|
fi
|
25077 |
|
|
rm -f conftest.val
|
25078 |
|
|
fi
|
25079 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
|
25080 |
|
|
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
|
25081 |
|
|
|
25082 |
|
|
|
25083 |
|
|
|
25084 |
|
|
cat >>confdefs.h <<_ACEOF
|
25085 |
|
|
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
|
25086 |
|
|
_ACEOF
|
25087 |
|
|
|
25088 |
|
|
|
25089 |
|
|
|
25090 |
|
|
# check for GNU readline
|
25091 |
|
|
|
25092 |
|
|
{ echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
|
25093 |
|
|
echo $ECHO_N "checking for add_history in -lreadline... $ECHO_C" >&6; }
|
25094 |
|
|
if test "${ac_cv_lib_readline_add_history+set}" = set; then
|
25095 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
25096 |
|
|
else
|
25097 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
25098 |
|
|
LIBS="-lreadline $LIBS"
|
25099 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
25100 |
|
|
/* confdefs.h. */
|
25101 |
|
|
_ACEOF
|
25102 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
25103 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
25104 |
|
|
/* end confdefs.h. */
|
25105 |
|
|
|
25106 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
25107 |
|
|
Use char because int might match the return type of a GCC
|
25108 |
|
|
builtin and then its argument prototype would still apply. */
|
25109 |
|
|
#ifdef __cplusplus
|
25110 |
|
|
extern "C"
|
25111 |
|
|
#endif
|
25112 |
|
|
char add_history ();
|
25113 |
|
|
int
|
25114 |
|
|
main ()
|
25115 |
|
|
{
|
25116 |
|
|
return add_history ();
|
25117 |
|
|
;
|
25118 |
|
|
return 0;
|
25119 |
|
|
}
|
25120 |
|
|
_ACEOF
|
25121 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
25122 |
|
|
if { (ac_try="$ac_link"
|
25123 |
|
|
case "(($ac_try" in
|
25124 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
25125 |
|
|
*) ac_try_echo=$ac_try;;
|
25126 |
|
|
esac
|
25127 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
25128 |
|
|
(eval "$ac_link") 2>conftest.er1
|
25129 |
|
|
ac_status=$?
|
25130 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
25131 |
|
|
rm -f conftest.er1
|
25132 |
|
|
cat conftest.err >&5
|
25133 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
25134 |
|
|
(exit $ac_status); } && {
|
25135 |
|
|
test -z "$ac_c_werror_flag" ||
|
25136 |
|
|
test ! -s conftest.err
|
25137 |
|
|
} && test -s conftest$ac_exeext &&
|
25138 |
|
|
$as_test_x conftest$ac_exeext; then
|
25139 |
|
|
ac_cv_lib_readline_add_history=yes
|
25140 |
|
|
else
|
25141 |
|
|
echo "$as_me: failed program was:" >&5
|
25142 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
25143 |
|
|
|
25144 |
|
|
ac_cv_lib_readline_add_history=no
|
25145 |
|
|
fi
|
25146 |
|
|
|
25147 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
25148 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
25149 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
25150 |
|
|
fi
|
25151 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
|
25152 |
|
|
echo "${ECHO_T}$ac_cv_lib_readline_add_history" >&6; }
|
25153 |
|
|
if test $ac_cv_lib_readline_add_history = yes; then
|
25154 |
|
|
cat >>confdefs.h <<_ACEOF
|
25155 |
|
|
@%:@define HAVE_LIBREADLINE 1
|
25156 |
|
|
_ACEOF
|
25157 |
|
|
|
25158 |
|
|
LIBS="-lreadline $LIBS"
|
25159 |
|
|
|
25160 |
|
|
fi
|
25161 |
|
|
|
25162 |
|
|
|
25163 |
|
|
# yuck
|
25164 |
|
|
case "$host_os" in
|
25165 |
|
|
aix*) prefer_curses=yes ;;
|
25166 |
|
|
esac
|
25167 |
|
|
|
25168 |
|
|
case "$host_cpu" in
|
25169 |
|
|
*cray*) LOCAL_CFLAGS=-DCRAY ;;
|
25170 |
|
|
esac
|
25171 |
|
|
|
25172 |
|
|
case "$host_os" in
|
25173 |
|
|
isc*) LOCAL_CFLAGS=-Disc386 ;;
|
25174 |
|
|
esac
|
25175 |
|
|
|
25176 |
|
|
case "$host_os" in
|
25177 |
|
|
solaris*) LIBS="-lsocket -lnsl" ;;
|
25178 |
|
|
esac
|
25179 |
|
|
|
25180 |
|
|
# define options
|
25181 |
|
|
|
25182 |
|
|
{ echo "$as_me:$LINENO: checking whether to enable profiling" >&5
|
25183 |
|
|
echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6; }
|
25184 |
|
|
# Check whether --enable-profiling was given.
|
25185 |
|
|
if test "${enable_profiling+set}" = set; then
|
25186 |
|
|
enableval=$enable_profiling;
|
25187 |
|
|
case "$enableval" in
|
25188 |
|
|
yes) profile="-pg -a" ;;
|
25189 |
|
|
esac
|
25190 |
|
|
|
25191 |
|
|
fi
|
25192 |
|
|
|
25193 |
|
|
{ echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
|
25194 |
|
|
echo "${ECHO_T}${enable_profiling-no}" >&6; }
|
25195 |
|
|
|
25196 |
|
|
execution="1"
|
25197 |
|
|
|
25198 |
|
|
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
|
25199 |
|
|
{ echo "$as_me:$LINENO: checking which execution style to use" >&5
|
25200 |
|
|
echo $ECHO_N "checking which execution style to use... $ECHO_C" >&6; }
|
25201 |
|
|
# Check whether --enable-execution was given.
|
25202 |
|
|
if test "${enable_execution+set}" = set; then
|
25203 |
|
|
enableval=$enable_execution;
|
25204 |
|
|
case "$enableval" in
|
25205 |
|
|
simple)
|
25206 |
|
|
INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
|
25207 |
|
|
execution="0"
|
25208 |
|
|
{ echo "$as_me:$LINENO: result: simple" >&5
|
25209 |
|
|
echo "${ECHO_T}simple" >&6; }
|
25210 |
|
|
;;
|
25211 |
|
|
complex)
|
25212 |
|
|
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
|
25213 |
|
|
execution="1"
|
25214 |
|
|
{ echo "$as_me:$LINENO: result: complex" >&5
|
25215 |
|
|
echo "${ECHO_T}complex" >&6; }
|
25216 |
|
|
;;
|
25217 |
|
|
dynamic)
|
25218 |
|
|
INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
|
25219 |
|
|
execution="2"
|
25220 |
|
|
{ echo "$as_me:$LINENO: result: dynamic" >&5
|
25221 |
|
|
echo "${ECHO_T}dynamic" >&6; }
|
25222 |
|
|
;;
|
25223 |
|
|
*)
|
25224 |
|
|
{ { echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
|
25225 |
|
|
echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
|
25226 |
|
|
{ (exit 1); exit 1; }; }
|
25227 |
|
|
;;
|
25228 |
|
|
esac
|
25229 |
|
|
|
25230 |
|
|
else
|
25231 |
|
|
|
25232 |
|
|
{ echo "$as_me:$LINENO: result: complex" >&5
|
25233 |
|
|
echo "${ECHO_T}complex" >&6; }
|
25234 |
|
|
|
25235 |
|
|
fi
|
25236 |
|
|
|
25237 |
|
|
|
25238 |
|
|
eth_phy="0"
|
25239 |
|
|
{ echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
|
25240 |
|
|
echo $ECHO_N "checking whether to enable ethernet phy emulation... $ECHO_C" >&6; }
|
25241 |
|
|
# Check whether --enable-ethphy was given.
|
25242 |
|
|
if test "${enable_ethphy+set}" = set; then
|
25243 |
|
|
enableval=$enable_ethphy;
|
25244 |
|
|
case "$enableval" in
|
25245 |
|
|
no) eth_phy="0" ;;
|
25246 |
|
|
yes) eth_phy="1" ;;
|
25247 |
|
|
esac
|
25248 |
|
|
|
25249 |
|
|
fi
|
25250 |
|
|
|
25251 |
|
|
{ echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
|
25252 |
|
|
echo "${ECHO_T}${enable_eth_phy-no}" >&6; }
|
25253 |
|
|
|
25254 |
|
|
|
25255 |
|
|
raw_range_stats="0"
|
25256 |
|
|
{ echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
|
25257 |
|
|
echo $ECHO_N "checking whether to use raw range stats... $ECHO_C" >&6; }
|
25258 |
|
|
# Check whether --enable-range_stats was given.
|
25259 |
|
|
if test "${enable_range_stats+set}" = set; then
|
25260 |
|
|
enableval=$enable_range_stats;
|
25261 |
|
|
case "$enableval" in
|
25262 |
|
|
no) raw_range_stats="0" ;;
|
25263 |
|
|
yes) raw_range_stats="1" simple_execution="1" ;;
|
25264 |
|
|
esac
|
25265 |
|
|
|
25266 |
|
|
fi
|
25267 |
|
|
|
25268 |
|
|
{ echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
|
25269 |
|
|
echo "${ECHO_T}${enable_range_stats-no}" >&6; }
|
25270 |
|
|
|
25271 |
|
|
set_ov_flag="0"
|
25272 |
|
|
{ echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
|
25273 |
|
|
echo $ECHO_N "checking whether instructions set overflow flag... $ECHO_C" >&6; }
|
25274 |
|
|
# Check whether --enable-ov_flag was given.
|
25275 |
|
|
if test "${enable_ov_flag+set}" = set; then
|
25276 |
|
|
enableval=$enable_ov_flag;
|
25277 |
|
|
case "$enableval" in
|
25278 |
|
|
no) set_ov_flag="0" ;;
|
25279 |
|
|
yes) set_ov_flag="1" ;;
|
25280 |
|
|
esac
|
25281 |
|
|
|
25282 |
|
|
fi
|
25283 |
|
|
|
25284 |
|
|
{ echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
|
25285 |
|
|
echo "${ECHO_T}${enable_ov_flag-no}" >&6; }
|
25286 |
|
|
|
25287 |
|
|
set_arith_flag="0"
|
25288 |
|
|
{ echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
|
25289 |
|
|
echo $ECHO_N "checking whether arithmethic instructions set flag... $ECHO_C" >&6; }
|
25290 |
|
|
# Check whether --enable-arith_flag was given.
|
25291 |
|
|
if test "${enable_arith_flag+set}" = set; then
|
25292 |
|
|
enableval=$enable_arith_flag;
|
25293 |
|
|
case "$enableval" in
|
25294 |
|
|
no) set_arith_flag="0" ;;
|
25295 |
|
|
yes) set_arith_flag="1" ;;
|
25296 |
|
|
esac
|
25297 |
|
|
|
25298 |
|
|
fi
|
25299 |
|
|
|
25300 |
|
|
{ echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
|
25301 |
|
|
echo "${ECHO_T}${enable_arith_flag-no}" >&6; }
|
25302 |
|
|
|
25303 |
|
|
# check for --enable-debug argument (for argtable2)
|
25304 |
|
|
# Check whether --enable-debug was given.
|
25305 |
|
|
if test "${enable_debug+set}" = set; then
|
25306 |
|
|
enableval=$enable_debug;
|
25307 |
|
|
case $enableval in
|
25308 |
|
|
yes) echo "enabling debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
|
25309 |
|
|
no) echo "disabling debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
|
25310 |
|
|
*) echo "illegal argument to --enable-debug" & exit 1;;
|
25311 |
|
|
esac
|
25312 |
|
|
|
25313 |
|
|
else
|
25314 |
|
|
DEBUGFLAGS="-DNDEBUG"
|
25315 |
|
|
|
25316 |
|
|
fi
|
25317 |
|
|
|
25318 |
|
|
|
25319 |
|
|
|
25320 |
|
|
|
25321 |
|
|
cat >>confdefs.h <<_ACEOF
|
25322 |
|
|
@%:@define RAW_RANGE_STATS $raw_range_stats
|
25323 |
|
|
_ACEOF
|
25324 |
|
|
|
25325 |
|
|
|
25326 |
|
|
cat >>confdefs.h <<_ACEOF
|
25327 |
|
|
@%:@define SET_OV_FLAG $set_ov_flag
|
25328 |
|
|
_ACEOF
|
25329 |
|
|
|
25330 |
|
|
|
25331 |
|
|
cat >>confdefs.h <<_ACEOF
|
25332 |
|
|
@%:@define ARITH_SET_FLAG $set_arith_flag
|
25333 |
|
|
_ACEOF
|
25334 |
|
|
|
25335 |
|
|
|
25336 |
|
|
cat >>confdefs.h <<_ACEOF
|
25337 |
|
|
@%:@define HAVE_ETH_PHY $eth_phy
|
25338 |
|
|
_ACEOF
|
25339 |
|
|
|
25340 |
|
|
|
25341 |
|
|
cat >>confdefs.h <<_ACEOF
|
25342 |
|
|
@%:@define SIMPLE_EXECUTION $execution == 0
|
25343 |
|
|
_ACEOF
|
25344 |
|
|
|
25345 |
|
|
|
25346 |
|
|
cat >>confdefs.h <<_ACEOF
|
25347 |
|
|
@%:@define COMPLEX_EXECUTION $execution == 1
|
25348 |
|
|
_ACEOF
|
25349 |
|
|
|
25350 |
|
|
|
25351 |
|
|
cat >>confdefs.h <<_ACEOF
|
25352 |
|
|
@%:@define DYNAMIC_EXECUTION $execution == 2
|
25353 |
|
|
_ACEOF
|
25354 |
|
|
|
25355 |
|
|
if test x$execution = x1; then
|
25356 |
|
|
GENERATE_NEEDED_TRUE=
|
25357 |
|
|
GENERATE_NEEDED_FALSE='#'
|
25358 |
|
|
else
|
25359 |
|
|
GENERATE_NEEDED_TRUE='#'
|
25360 |
|
|
GENERATE_NEEDED_FALSE=
|
25361 |
|
|
fi
|
25362 |
|
|
|
25363 |
|
|
if test x$execution = x2; then
|
25364 |
|
|
DYNAMIC_EXECUTION_TRUE=
|
25365 |
|
|
DYNAMIC_EXECUTION_FALSE='#'
|
25366 |
|
|
else
|
25367 |
|
|
DYNAMIC_EXECUTION_TRUE='#'
|
25368 |
|
|
DYNAMIC_EXECUTION_FALSE=
|
25369 |
|
|
fi
|
25370 |
|
|
|
25371 |
|
|
|
25372 |
|
|
|
25373 |
|
|
test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
|
25374 |
|
|
# CFLAGS="$CFLAGS -O4"
|
25375 |
|
|
|
25376 |
|
|
BUILD_DIR=`pwd`
|
25377 |
|
|
|
25378 |
|
|
|
25379 |
|
|
|
25380 |
|
|
|
25381 |
|
|
|
25382 |
|
|
|
25383 |
|
|
|
25384 |
|
|
|
25385 |
|
|
|
25386 |
|
|
|
25387 |
|
|
|
25388 |
|
|
|
25389 |
|
|
|
25390 |
|
|
|
25391 |
|
|
|
25392 |
|
|
|
25393 |
|
|
|
25394 |
|
|
|
25395 |
|
|
cat >>confdefs.h <<\_ACEOF
|
25396 |
|
|
@%:@define HAVE_EXECUTION 1
|
25397 |
|
|
_ACEOF
|
25398 |
|
|
|
25399 |
|
|
|
25400 |
|
|
# yuck
|
25401 |
|
|
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
|
25402 |
|
|
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
|
25403 |
|
|
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
|
25404 |
|
|
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
|
25405 |
|
|
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
|
25406 |
|
|
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
|
25407 |
|
|
|
25408 |
|
|
|
25409 |
|
|
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile debug/Makefile doc/Makefile support/Makefile mmu/Makefile peripheral/Makefile tick/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile vapi/Makefile port/Makefile"
|
25410 |
|
|
|
25411 |
|
|
|
25412 |
|
|
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
|
25413 |
|
|
case "$CPU_ARCH" in
|
25414 |
|
|
dlx) ac_config_files="$ac_config_files cpu/dlx/Makefile"
|
25415 |
|
|
;;
|
25416 |
|
|
*) ac_config_files="$ac_config_files cpu/or32/Makefile"
|
25417 |
|
|
;;
|
25418 |
|
|
esac
|
25419 |
|
|
|
25420 |
|
|
# Makefile uses this timestamp file to record whether config.h is up to date.
|
25421 |
|
|
# AC_CONFIG_COMMANDS([default],[[
|
25422 |
|
|
# echo > stamp-h
|
25423 |
|
|
# ]],[[]])
|
25424 |
|
|
cat >confcache <<\_ACEOF
|
25425 |
|
|
# This file is a shell script that caches the results of configure
|
25426 |
|
|
# tests run on this system so they can be shared between configure
|
25427 |
|
|
# scripts and configure runs, see configure's option --config-cache.
|
25428 |
|
|
# It is not useful on other systems. If it contains results you don't
|
25429 |
|
|
# want to keep, you may remove or edit it.
|
25430 |
|
|
#
|
25431 |
|
|
# config.status only pays attention to the cache file if you give it
|
25432 |
|
|
# the --recheck option to rerun configure.
|
25433 |
|
|
#
|
25434 |
|
|
# `ac_cv_env_foo' variables (set or unset) will be overridden when
|
25435 |
|
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the
|
25436 |
|
|
# following values.
|
25437 |
|
|
|
25438 |
|
|
_ACEOF
|
25439 |
|
|
|
25440 |
|
|
# The following way of writing the cache mishandles newlines in values,
|
25441 |
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
25442 |
|
|
# So, we kill variables containing newlines.
|
25443 |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly,
|
25444 |
|
|
# and sets the high bit in the cache file unless we assign to the vars.
|
25445 |
|
|
(
|
25446 |
|
|
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
25447 |
|
|
eval ac_val=\$$ac_var
|
25448 |
|
|
case $ac_val in #(
|
25449 |
|
|
*${as_nl}*)
|
25450 |
|
|
case $ac_var in #(
|
25451 |
|
|
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
25452 |
|
|
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
25453 |
|
|
esac
|
25454 |
|
|
case $ac_var in #(
|
25455 |
|
|
_ | IFS | as_nl) ;; #(
|
25456 |
|
|
*) $as_unset $ac_var ;;
|
25457 |
|
|
esac ;;
|
25458 |
|
|
esac
|
25459 |
|
|
done
|
25460 |
|
|
|
25461 |
|
|
(set) 2>&1 |
|
25462 |
|
|
case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
25463 |
|
|
*${as_nl}ac_space=\ *)
|
25464 |
|
|
# `set' does not quote correctly, so add quotes (double-quote
|
25465 |
|
|
# substitution turns \\\\ into \\, and sed turns \\ into \).
|
25466 |
|
|
sed -n \
|
25467 |
|
|
"s/'/'\\\\''/g;
|
25468 |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
25469 |
|
|
;; #(
|
25470 |
|
|
*)
|
25471 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
25472 |
|
|
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
25473 |
|
|
;;
|
25474 |
|
|
esac |
|
25475 |
|
|
sort
|
25476 |
|
|
) |
|
25477 |
|
|
sed '
|
25478 |
|
|
/^ac_cv_env_/b end
|
25479 |
|
|
t clear
|
25480 |
|
|
:clear
|
25481 |
|
|
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
25482 |
|
|
t end
|
25483 |
|
|
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
25484 |
|
|
:end' >>confcache
|
25485 |
|
|
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
25486 |
|
|
if test -w "$cache_file"; then
|
25487 |
|
|
test "x$cache_file" != "x/dev/null" &&
|
25488 |
|
|
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
25489 |
|
|
echo "$as_me: updating cache $cache_file" >&6;}
|
25490 |
|
|
cat confcache >$cache_file
|
25491 |
|
|
else
|
25492 |
|
|
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
25493 |
|
|
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
25494 |
|
|
fi
|
25495 |
|
|
fi
|
25496 |
|
|
rm -f confcache
|
25497 |
|
|
|
25498 |
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
25499 |
|
|
# Let make expand exec_prefix.
|
25500 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
25501 |
|
|
|
25502 |
|
|
DEFS=-DHAVE_CONFIG_H
|
25503 |
|
|
|
25504 |
|
|
ac_libobjs=
|
25505 |
|
|
ac_ltlibobjs=
|
25506 |
|
|
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
|
25507 |
|
|
# 1. Remove the extension, and $U if already installed.
|
25508 |
|
|
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
25509 |
|
|
ac_i=`echo "$ac_i" | sed "$ac_script"`
|
25510 |
|
|
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
25511 |
|
|
# will be set to the directory where LIBOBJS objects are built.
|
25512 |
|
|
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
25513 |
|
|
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
25514 |
|
|
done
|
25515 |
|
|
LIB@&t@OBJS=$ac_libobjs
|
25516 |
|
|
|
25517 |
|
|
LTLIBOBJS=$ac_ltlibobjs
|
25518 |
|
|
|
25519 |
|
|
|
25520 |
|
|
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
25521 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
|
25522 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
25523 |
|
|
echo "$as_me: error: conditional \"AMDEP\" was never defined.
|
25524 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
25525 |
|
|
{ (exit 1); exit 1; }; }
|
25526 |
|
|
fi
|
25527 |
|
|
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
25528 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
|
25529 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
25530 |
|
|
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
|
25531 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
25532 |
|
|
{ (exit 1); exit 1; }; }
|
25533 |
|
|
fi
|
25534 |
|
|
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
|
25535 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
|
25536 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
25537 |
|
|
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
|
25538 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
25539 |
|
|
{ (exit 1); exit 1; }; }
|
25540 |
|
|
fi
|
25541 |
|
|
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
|
25542 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
|
25543 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
25544 |
|
|
echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
|
25545 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
25546 |
|
|
{ (exit 1); exit 1; }; }
|
25547 |
|
|
fi
|
25548 |
|
|
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
|
25549 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
|
25550 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
25551 |
|
|
echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
|
25552 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
25553 |
|
|
{ (exit 1); exit 1; }; }
|
25554 |
|
|
fi
|
25555 |
|
|
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
|
25556 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
|
25557 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
25558 |
|
|
echo "$as_me: error: conditional \"USE_ARGDATE\" was never defined.
|
25559 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
25560 |
|
|
{ (exit 1); exit 1; }; }
|
25561 |
|
|
fi
|
25562 |
|
|
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
|
25563 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
|
25564 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
25565 |
|
|
echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
|
25566 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
25567 |
|
|
{ (exit 1); exit 1; }; }
|
25568 |
|
|
fi
|
25569 |
|
|
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
|
25570 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
|
25571 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
25572 |
|
|
echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
|
25573 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
25574 |
|
|
{ (exit 1); exit 1; }; }
|
25575 |
|
|
fi
|
25576 |
|
|
|
25577 |
|
|
: ${CONFIG_STATUS=./config.status}
|
25578 |
|
|
ac_clean_files_save=$ac_clean_files
|
25579 |
|
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
25580 |
|
|
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
25581 |
|
|
echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
25582 |
|
|
cat >$CONFIG_STATUS <<_ACEOF
|
25583 |
|
|
#! $SHELL
|
25584 |
|
|
# Generated by $as_me.
|
25585 |
|
|
# Run this file to recreate the current configuration.
|
25586 |
|
|
# Compiler output produced by configure, useful for debugging
|
25587 |
|
|
# configure, is in config.log if it exists.
|
25588 |
|
|
|
25589 |
|
|
debug=false
|
25590 |
|
|
ac_cs_recheck=false
|
25591 |
|
|
ac_cs_silent=false
|
25592 |
|
|
SHELL=\${CONFIG_SHELL-$SHELL}
|
25593 |
|
|
_ACEOF
|
25594 |
|
|
|
25595 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
25596 |
|
|
## --------------------- ##
|
25597 |
|
|
## M4sh Initialization. ##
|
25598 |
|
|
## --------------------- ##
|
25599 |
|
|
|
25600 |
|
|
# Be more Bourne compatible
|
25601 |
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
25602 |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
25603 |
|
|
emulate sh
|
25604 |
|
|
NULLCMD=:
|
25605 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
25606 |
|
|
# is contrary to our usage. Disable this feature.
|
25607 |
|
|
alias -g '${1+"$@"}'='"$@"'
|
25608 |
|
|
setopt NO_GLOB_SUBST
|
25609 |
|
|
else
|
25610 |
|
|
case `(set -o) 2>/dev/null` in
|
25611 |
|
|
*posix*) set -o posix ;;
|
25612 |
|
|
esac
|
25613 |
|
|
|
25614 |
|
|
fi
|
25615 |
|
|
|
25616 |
|
|
|
25617 |
|
|
|
25618 |
|
|
|
25619 |
|
|
# PATH needs CR
|
25620 |
|
|
# Avoid depending upon Character Ranges.
|
25621 |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
25622 |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
25623 |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
25624 |
|
|
as_cr_digits='0123456789'
|
25625 |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
25626 |
|
|
|
25627 |
|
|
# The user is always right.
|
25628 |
|
|
if test "${PATH_SEPARATOR+set}" != set; then
|
25629 |
|
|
echo "#! /bin/sh" >conf$$.sh
|
25630 |
|
|
echo "exit 0" >>conf$$.sh
|
25631 |
|
|
chmod +x conf$$.sh
|
25632 |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
25633 |
|
|
PATH_SEPARATOR=';'
|
25634 |
|
|
else
|
25635 |
|
|
PATH_SEPARATOR=:
|
25636 |
|
|
fi
|
25637 |
|
|
rm -f conf$$.sh
|
25638 |
|
|
fi
|
25639 |
|
|
|
25640 |
|
|
# Support unset when possible.
|
25641 |
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
25642 |
|
|
as_unset=unset
|
25643 |
|
|
else
|
25644 |
|
|
as_unset=false
|
25645 |
|
|
fi
|
25646 |
|
|
|
25647 |
|
|
|
25648 |
|
|
# IFS
|
25649 |
|
|
# We need space, tab and new line, in precisely that order. Quoting is
|
25650 |
|
|
# there to prevent editors from complaining about space-tab.
|
25651 |
|
|
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
25652 |
|
|
# splitting by setting IFS to empty value.)
|
25653 |
|
|
as_nl='
|
25654 |
|
|
'
|
25655 |
|
|
IFS=" "" $as_nl"
|
25656 |
|
|
|
25657 |
|
|
# Find who we are. Look in the path if we contain no directory separator.
|
25658 |
|
|
case $0 in
|
25659 |
|
|
*[\\/]* ) as_myself=$0 ;;
|
25660 |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
25661 |
|
|
for as_dir in $PATH
|
25662 |
|
|
do
|
25663 |
|
|
IFS=$as_save_IFS
|
25664 |
|
|
test -z "$as_dir" && as_dir=.
|
25665 |
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
25666 |
|
|
done
|
25667 |
|
|
IFS=$as_save_IFS
|
25668 |
|
|
|
25669 |
|
|
;;
|
25670 |
|
|
esac
|
25671 |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
25672 |
|
|
# in which case we are not to be found in the path.
|
25673 |
|
|
if test "x$as_myself" = x; then
|
25674 |
|
|
as_myself=$0
|
25675 |
|
|
fi
|
25676 |
|
|
if test ! -f "$as_myself"; then
|
25677 |
|
|
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
25678 |
|
|
{ (exit 1); exit 1; }
|
25679 |
|
|
fi
|
25680 |
|
|
|
25681 |
|
|
# Work around bugs in pre-3.0 UWIN ksh.
|
25682 |
|
|
for as_var in ENV MAIL MAILPATH
|
25683 |
|
|
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
25684 |
|
|
done
|
25685 |
|
|
PS1='$ '
|
25686 |
|
|
PS2='> '
|
25687 |
|
|
PS4='+ '
|
25688 |
|
|
|
25689 |
|
|
# NLS nuisances.
|
25690 |
|
|
for as_var in \
|
25691 |
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
25692 |
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
25693 |
|
|
LC_TELEPHONE LC_TIME
|
25694 |
|
|
do
|
25695 |
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
25696 |
|
|
eval $as_var=C; export $as_var
|
25697 |
|
|
else
|
25698 |
|
|
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
25699 |
|
|
fi
|
25700 |
|
|
done
|
25701 |
|
|
|
25702 |
|
|
# Required to use basename.
|
25703 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
25704 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
25705 |
|
|
as_expr=expr
|
25706 |
|
|
else
|
25707 |
|
|
as_expr=false
|
25708 |
|
|
fi
|
25709 |
|
|
|
25710 |
|
|
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
25711 |
|
|
as_basename=basename
|
25712 |
|
|
else
|
25713 |
|
|
as_basename=false
|
25714 |
|
|
fi
|
25715 |
|
|
|
25716 |
|
|
|
25717 |
|
|
# Name of the executable.
|
25718 |
|
|
as_me=`$as_basename -- "$0" ||
|
25719 |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
25720 |
|
|
X"$0" : 'X\(//\)$' \| \
|
25721 |
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
25722 |
|
|
echo X/"$0" |
|
25723 |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
25724 |
|
|
s//\1/
|
25725 |
|
|
q
|
25726 |
|
|
}
|
25727 |
|
|
/^X\/\(\/\/\)$/{
|
25728 |
|
|
s//\1/
|
25729 |
|
|
q
|
25730 |
|
|
}
|
25731 |
|
|
/^X\/\(\/\).*/{
|
25732 |
|
|
s//\1/
|
25733 |
|
|
q
|
25734 |
|
|
}
|
25735 |
|
|
s/.*/./; q'`
|
25736 |
|
|
|
25737 |
|
|
# CDPATH.
|
25738 |
|
|
$as_unset CDPATH
|
25739 |
|
|
|
25740 |
|
|
|
25741 |
|
|
|
25742 |
|
|
as_lineno_1=$LINENO
|
25743 |
|
|
as_lineno_2=$LINENO
|
25744 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
25745 |
|
|
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
25746 |
|
|
|
25747 |
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
25748 |
|
|
# uniformly replaced by the line number. The first 'sed' inserts a
|
25749 |
|
|
# line-number line after each line using $LINENO; the second 'sed'
|
25750 |
|
|
# does the real work. The second script uses 'N' to pair each
|
25751 |
|
|
# line-number line with the line containing $LINENO, and appends
|
25752 |
|
|
# trailing '-' during substitution so that $LINENO is not a special
|
25753 |
|
|
# case at line end.
|
25754 |
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
25755 |
|
|
# scripts with optimization help from Paolo Bonzini. Blame Lee
|
25756 |
|
|
# E. McMahon (1931-1989) for sed's syntax. :-)
|
25757 |
|
|
sed -n '
|
25758 |
|
|
p
|
25759 |
|
|
/[$]LINENO/=
|
25760 |
|
|
' <$as_myself |
|
25761 |
|
|
sed '
|
25762 |
|
|
s/[$]LINENO.*/&-/
|
25763 |
|
|
t lineno
|
25764 |
|
|
b
|
25765 |
|
|
:lineno
|
25766 |
|
|
N
|
25767 |
|
|
:loop
|
25768 |
|
|
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
25769 |
|
|
t loop
|
25770 |
|
|
s/-\n.*//
|
25771 |
|
|
' >$as_me.lineno &&
|
25772 |
|
|
chmod +x "$as_me.lineno" ||
|
25773 |
|
|
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
25774 |
|
|
{ (exit 1); exit 1; }; }
|
25775 |
|
|
|
25776 |
|
|
# Don't try to exec as it changes $[0], causing all sort of problems
|
25777 |
|
|
# (the dirname of $[0] is not the place where we might find the
|
25778 |
|
|
# original and so on. Autoconf is especially sensitive to this).
|
25779 |
|
|
. "./$as_me.lineno"
|
25780 |
|
|
# Exit status is that of the last command.
|
25781 |
|
|
exit
|
25782 |
|
|
}
|
25783 |
|
|
|
25784 |
|
|
|
25785 |
|
|
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
25786 |
|
|
as_dirname=dirname
|
25787 |
|
|
else
|
25788 |
|
|
as_dirname=false
|
25789 |
|
|
fi
|
25790 |
|
|
|
25791 |
|
|
ECHO_C= ECHO_N= ECHO_T=
|
25792 |
|
|
case `echo -n x` in
|
25793 |
|
|
-n*)
|
25794 |
|
|
case `echo 'x\c'` in
|
25795 |
|
|
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
25796 |
|
|
*) ECHO_C='\c';;
|
25797 |
|
|
esac;;
|
25798 |
|
|
*)
|
25799 |
|
|
ECHO_N='-n';;
|
25800 |
|
|
esac
|
25801 |
|
|
|
25802 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
25803 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
25804 |
|
|
as_expr=expr
|
25805 |
|
|
else
|
25806 |
|
|
as_expr=false
|
25807 |
|
|
fi
|
25808 |
|
|
|
25809 |
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
25810 |
|
|
if test -d conf$$.dir; then
|
25811 |
|
|
rm -f conf$$.dir/conf$$.file
|
25812 |
|
|
else
|
25813 |
|
|
rm -f conf$$.dir
|
25814 |
|
|
mkdir conf$$.dir
|
25815 |
|
|
fi
|
25816 |
|
|
echo >conf$$.file
|
25817 |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
25818 |
|
|
as_ln_s='ln -s'
|
25819 |
|
|
# ... but there are two gotchas:
|
25820 |
|
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
25821 |
|
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
25822 |
|
|
# In both cases, we have to default to `cp -p'.
|
25823 |
|
|
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
25824 |
|
|
as_ln_s='cp -p'
|
25825 |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then
|
25826 |
|
|
as_ln_s=ln
|
25827 |
|
|
else
|
25828 |
|
|
as_ln_s='cp -p'
|
25829 |
|
|
fi
|
25830 |
|
|
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
25831 |
|
|
rmdir conf$$.dir 2>/dev/null
|
25832 |
|
|
|
25833 |
|
|
if mkdir -p . 2>/dev/null; then
|
25834 |
|
|
as_mkdir_p=:
|
25835 |
|
|
else
|
25836 |
|
|
test -d ./-p && rmdir ./-p
|
25837 |
|
|
as_mkdir_p=false
|
25838 |
|
|
fi
|
25839 |
|
|
|
25840 |
|
|
if test -x / >/dev/null 2>&1; then
|
25841 |
|
|
as_test_x='test -x'
|
25842 |
|
|
else
|
25843 |
|
|
if ls -dL / >/dev/null 2>&1; then
|
25844 |
|
|
as_ls_L_option=L
|
25845 |
|
|
else
|
25846 |
|
|
as_ls_L_option=
|
25847 |
|
|
fi
|
25848 |
|
|
as_test_x='
|
25849 |
|
|
eval sh -c '\''
|
25850 |
|
|
if test -d "$1"; then
|
25851 |
|
|
test -d "$1/.";
|
25852 |
|
|
else
|
25853 |
|
|
case $1 in
|
25854 |
|
|
-*)set "./$1";;
|
25855 |
|
|
esac;
|
25856 |
|
|
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
25857 |
|
|
???[sx]*):;;*)false;;esac;fi
|
25858 |
|
|
'\'' sh
|
25859 |
|
|
'
|
25860 |
|
|
fi
|
25861 |
|
|
as_executable_p=$as_test_x
|
25862 |
|
|
|
25863 |
|
|
# Sed expression to map a string onto a valid CPP name.
|
25864 |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
25865 |
|
|
|
25866 |
|
|
# Sed expression to map a string onto a valid variable name.
|
25867 |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
25868 |
|
|
|
25869 |
|
|
|
25870 |
|
|
exec 6>&1
|
25871 |
|
|
|
25872 |
|
|
# Save the log message, to keep $[0] and so on meaningful, and to
|
25873 |
|
|
# report actual input values of CONFIG_FILES etc. instead of their
|
25874 |
|
|
# values after options handling.
|
25875 |
|
|
ac_log="
|
25876 |
|
|
This file was extended by or1ksim $as_me 0.3.0rc1, which was
|
25877 |
|
|
generated by GNU Autoconf 2.61. Invocation command line was
|
25878 |
|
|
|
25879 |
|
|
CONFIG_FILES = $CONFIG_FILES
|
25880 |
|
|
CONFIG_HEADERS = $CONFIG_HEADERS
|
25881 |
|
|
CONFIG_LINKS = $CONFIG_LINKS
|
25882 |
|
|
CONFIG_COMMANDS = $CONFIG_COMMANDS
|
25883 |
|
|
$ $0 $@
|
25884 |
|
|
|
25885 |
|
|
on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
25886 |
|
|
"
|
25887 |
|
|
|
25888 |
|
|
_ACEOF
|
25889 |
|
|
|
25890 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
25891 |
|
|
# Files that config.status was made for.
|
25892 |
|
|
config_files="$ac_config_files"
|
25893 |
|
|
config_headers="$ac_config_headers"
|
25894 |
|
|
config_commands="$ac_config_commands"
|
25895 |
|
|
|
25896 |
|
|
_ACEOF
|
25897 |
|
|
|
25898 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
25899 |
|
|
ac_cs_usage="\
|
25900 |
|
|
\`$as_me' instantiates files from templates according to the
|
25901 |
|
|
current configuration.
|
25902 |
|
|
|
25903 |
|
|
Usage: $0 [OPTIONS] [FILE]...
|
25904 |
|
|
|
25905 |
|
|
-h, --help print this help, then exit
|
25906 |
|
|
-V, --version print version number and configuration settings, then exit
|
25907 |
|
|
-q, --quiet do not print progress messages
|
25908 |
|
|
-d, --debug don't remove temporary files
|
25909 |
|
|
--recheck update $as_me by reconfiguring in the same conditions
|
25910 |
|
|
--file=FILE[:TEMPLATE]
|
25911 |
|
|
instantiate the configuration file FILE
|
25912 |
|
|
--header=FILE[:TEMPLATE]
|
25913 |
|
|
instantiate the configuration header FILE
|
25914 |
|
|
|
25915 |
|
|
Configuration files:
|
25916 |
|
|
$config_files
|
25917 |
|
|
|
25918 |
|
|
Configuration headers:
|
25919 |
|
|
$config_headers
|
25920 |
|
|
|
25921 |
|
|
Configuration commands:
|
25922 |
|
|
$config_commands
|
25923 |
|
|
|
25924 |
|
|
Report bugs to ."
|
25925 |
|
|
|
25926 |
|
|
_ACEOF
|
25927 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
25928 |
|
|
ac_cs_version="\\
|
25929 |
|
|
or1ksim config.status 0.3.0rc1
|
25930 |
|
|
configured by $0, generated by GNU Autoconf 2.61,
|
25931 |
|
|
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
25932 |
|
|
|
25933 |
|
|
Copyright (C) 2006 Free Software Foundation, Inc.
|
25934 |
|
|
This config.status script is free software; the Free Software Foundation
|
25935 |
|
|
gives unlimited permission to copy, distribute and modify it."
|
25936 |
|
|
|
25937 |
|
|
ac_pwd='$ac_pwd'
|
25938 |
|
|
srcdir='$srcdir'
|
25939 |
|
|
INSTALL='$INSTALL'
|
25940 |
|
|
MKDIR_P='$MKDIR_P'
|
25941 |
|
|
_ACEOF
|
25942 |
|
|
|
25943 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
25944 |
|
|
# If no file are specified by the user, then we need to provide default
|
25945 |
|
|
# value. By we need to know if files were specified by the user.
|
25946 |
|
|
ac_need_defaults=:
|
25947 |
|
|
while test $# != 0
|
25948 |
|
|
do
|
25949 |
|
|
case $1 in
|
25950 |
|
|
--*=*)
|
25951 |
|
|
ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
25952 |
|
|
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
25953 |
|
|
ac_shift=:
|
25954 |
|
|
;;
|
25955 |
|
|
*)
|
25956 |
|
|
ac_option=$1
|
25957 |
|
|
ac_optarg=$2
|
25958 |
|
|
ac_shift=shift
|
25959 |
|
|
;;
|
25960 |
|
|
esac
|
25961 |
|
|
|
25962 |
|
|
case $ac_option in
|
25963 |
|
|
# Handling of the options.
|
25964 |
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
25965 |
|
|
ac_cs_recheck=: ;;
|
25966 |
|
|
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
25967 |
|
|
echo "$ac_cs_version"; exit ;;
|
25968 |
|
|
--debug | --debu | --deb | --de | --d | -d )
|
25969 |
|
|
debug=: ;;
|
25970 |
|
|
--file | --fil | --fi | --f )
|
25971 |
|
|
$ac_shift
|
25972 |
|
|
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
25973 |
|
|
ac_need_defaults=false;;
|
25974 |
|
|
--header | --heade | --head | --hea )
|
25975 |
|
|
$ac_shift
|
25976 |
|
|
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
25977 |
|
|
ac_need_defaults=false;;
|
25978 |
|
|
--he | --h)
|
25979 |
|
|
# Conflict between --help and --header
|
25980 |
|
|
{ echo "$as_me: error: ambiguous option: $1
|
25981 |
|
|
Try \`$0 --help' for more information." >&2
|
25982 |
|
|
{ (exit 1); exit 1; }; };;
|
25983 |
|
|
--help | --hel | -h )
|
25984 |
|
|
echo "$ac_cs_usage"; exit ;;
|
25985 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
25986 |
|
|
| -silent | --silent | --silen | --sile | --sil | --si | --s)
|
25987 |
|
|
ac_cs_silent=: ;;
|
25988 |
|
|
|
25989 |
|
|
# This is an error.
|
25990 |
|
|
-*) { echo "$as_me: error: unrecognized option: $1
|
25991 |
|
|
Try \`$0 --help' for more information." >&2
|
25992 |
|
|
{ (exit 1); exit 1; }; } ;;
|
25993 |
|
|
|
25994 |
|
|
*) ac_config_targets="$ac_config_targets $1"
|
25995 |
|
|
ac_need_defaults=false ;;
|
25996 |
|
|
|
25997 |
|
|
esac
|
25998 |
|
|
shift
|
25999 |
|
|
done
|
26000 |
|
|
|
26001 |
|
|
ac_configure_extra_args=
|
26002 |
|
|
|
26003 |
|
|
if $ac_cs_silent; then
|
26004 |
|
|
exec 6>/dev/null
|
26005 |
|
|
ac_configure_extra_args="$ac_configure_extra_args --silent"
|
26006 |
|
|
fi
|
26007 |
|
|
|
26008 |
|
|
_ACEOF
|
26009 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
26010 |
|
|
if \$ac_cs_recheck; then
|
26011 |
|
|
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
26012 |
|
|
CONFIG_SHELL=$SHELL
|
26013 |
|
|
export CONFIG_SHELL
|
26014 |
|
|
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
26015 |
|
|
fi
|
26016 |
|
|
|
26017 |
|
|
_ACEOF
|
26018 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
26019 |
|
|
exec 5>>config.log
|
26020 |
|
|
{
|
26021 |
|
|
echo
|
26022 |
|
|
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
|
26023 |
|
|
@%:@@%:@ Running $as_me. @%:@@%:@
|
26024 |
|
|
_ASBOX
|
26025 |
|
|
echo "$ac_log"
|
26026 |
|
|
} >&5
|
26027 |
|
|
|
26028 |
|
|
_ACEOF
|
26029 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
26030 |
|
|
#
|
26031 |
|
|
# INIT-COMMANDS
|
26032 |
|
|
#
|
26033 |
|
|
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
26034 |
|
|
|
26035 |
|
|
_ACEOF
|
26036 |
|
|
|
26037 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
26038 |
|
|
|
26039 |
|
|
# Handling of arguments.
|
26040 |
|
|
for ac_config_target in $ac_config_targets
|
26041 |
|
|
do
|
26042 |
|
|
case $ac_config_target in
|
26043 |
|
|
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
26044 |
|
|
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
26045 |
|
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
26046 |
|
|
"argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
|
26047 |
|
|
"bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
|
26048 |
|
|
"cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
|
26049 |
|
|
"cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
|
26050 |
|
|
"cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
|
26051 |
|
|
"cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
|
26052 |
|
|
"cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
|
26053 |
|
|
"debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
|
26054 |
|
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
26055 |
|
|
"support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
|
26056 |
|
|
"mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
|
26057 |
|
|
"peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
|
26058 |
|
|
"tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
|
26059 |
|
|
"peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
|
26060 |
|
|
"pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
|
26061 |
|
|
"pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
|
26062 |
|
|
"vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
|
26063 |
|
|
"port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
|
26064 |
|
|
"cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
|
26065 |
|
|
"cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
|
26066 |
|
|
|
26067 |
|
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
26068 |
|
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
26069 |
|
|
{ (exit 1); exit 1; }; };;
|
26070 |
|
|
esac
|
26071 |
|
|
done
|
26072 |
|
|
|
26073 |
|
|
|
26074 |
|
|
# If the user did not use the arguments to specify the items to instantiate,
|
26075 |
|
|
# then the envvar interface is used. Set only those that are not.
|
26076 |
|
|
# We use the long form for the default assignment because of an extremely
|
26077 |
|
|
# bizarre bug on SunOS 4.1.3.
|
26078 |
|
|
if $ac_need_defaults; then
|
26079 |
|
|
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
26080 |
|
|
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
26081 |
|
|
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
26082 |
|
|
fi
|
26083 |
|
|
|
26084 |
|
|
# Have a temporary directory for convenience. Make it in the build tree
|
26085 |
|
|
# simply because there is no reason against having it here, and in addition,
|
26086 |
|
|
# creating and moving files from /tmp can sometimes cause problems.
|
26087 |
|
|
# Hook for its removal unless debugging.
|
26088 |
|
|
# Note that there is a small window in which the directory will not be cleaned:
|
26089 |
|
|
# after its creation but before its name has been assigned to `$tmp'.
|
26090 |
|
|
$debug ||
|
26091 |
|
|
{
|
26092 |
|
|
tmp=
|
26093 |
|
|
trap 'exit_status=$?
|
26094 |
|
|
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
26095 |
|
|
' 0
|
26096 |
|
|
trap '{ (exit 1); exit 1; }' 1 2 13 15
|
26097 |
|
|
}
|
26098 |
|
|
# Create a (secure) tmp directory for tmp files.
|
26099 |
|
|
|
26100 |
|
|
{
|
26101 |
|
|
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
26102 |
|
|
test -n "$tmp" && test -d "$tmp"
|
26103 |
|
|
} ||
|
26104 |
|
|
{
|
26105 |
|
|
tmp=./conf$$-$RANDOM
|
26106 |
|
|
(umask 077 && mkdir "$tmp")
|
26107 |
|
|
} ||
|
26108 |
|
|
{
|
26109 |
|
|
echo "$me: cannot create a temporary directory in ." >&2
|
26110 |
|
|
{ (exit 1); exit 1; }
|
26111 |
|
|
}
|
26112 |
|
|
|
26113 |
|
|
#
|
26114 |
|
|
# Set up the sed scripts for CONFIG_FILES section.
|
26115 |
|
|
#
|
26116 |
|
|
|
26117 |
|
|
# No need to generate the scripts if there are no CONFIG_FILES.
|
26118 |
|
|
# This happens for instance when ./config.status config.h
|
26119 |
|
|
if test -n "$CONFIG_FILES"; then
|
26120 |
|
|
|
26121 |
|
|
_ACEOF
|
26122 |
|
|
|
26123 |
|
|
|
26124 |
|
|
|
26125 |
|
|
ac_delim='%!_!# '
|
26126 |
|
|
for ac_last_try in false false false false false :; do
|
26127 |
|
|
cat >conf$$subs.sed <<_ACEOF
|
26128 |
|
|
SHELL!$SHELL$ac_delim
|
26129 |
|
|
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
26130 |
|
|
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
26131 |
|
|
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
26132 |
|
|
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
26133 |
|
|
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
26134 |
|
|
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
26135 |
|
|
exec_prefix!$exec_prefix$ac_delim
|
26136 |
|
|
prefix!$prefix$ac_delim
|
26137 |
|
|
program_transform_name!$program_transform_name$ac_delim
|
26138 |
|
|
bindir!$bindir$ac_delim
|
26139 |
|
|
sbindir!$sbindir$ac_delim
|
26140 |
|
|
libexecdir!$libexecdir$ac_delim
|
26141 |
|
|
datarootdir!$datarootdir$ac_delim
|
26142 |
|
|
datadir!$datadir$ac_delim
|
26143 |
|
|
sysconfdir!$sysconfdir$ac_delim
|
26144 |
|
|
sharedstatedir!$sharedstatedir$ac_delim
|
26145 |
|
|
localstatedir!$localstatedir$ac_delim
|
26146 |
|
|
includedir!$includedir$ac_delim
|
26147 |
|
|
oldincludedir!$oldincludedir$ac_delim
|
26148 |
|
|
docdir!$docdir$ac_delim
|
26149 |
|
|
infodir!$infodir$ac_delim
|
26150 |
|
|
htmldir!$htmldir$ac_delim
|
26151 |
|
|
dvidir!$dvidir$ac_delim
|
26152 |
|
|
pdfdir!$pdfdir$ac_delim
|
26153 |
|
|
psdir!$psdir$ac_delim
|
26154 |
|
|
libdir!$libdir$ac_delim
|
26155 |
|
|
localedir!$localedir$ac_delim
|
26156 |
|
|
mandir!$mandir$ac_delim
|
26157 |
|
|
DEFS!$DEFS$ac_delim
|
26158 |
|
|
ECHO_C!$ECHO_C$ac_delim
|
26159 |
|
|
ECHO_N!$ECHO_N$ac_delim
|
26160 |
|
|
ECHO_T!$ECHO_T$ac_delim
|
26161 |
|
|
LIBS!$LIBS$ac_delim
|
26162 |
|
|
build_alias!$build_alias$ac_delim
|
26163 |
|
|
host_alias!$host_alias$ac_delim
|
26164 |
|
|
target_alias!$target_alias$ac_delim
|
26165 |
|
|
build!$build$ac_delim
|
26166 |
|
|
build_cpu!$build_cpu$ac_delim
|
26167 |
|
|
build_vendor!$build_vendor$ac_delim
|
26168 |
|
|
build_os!$build_os$ac_delim
|
26169 |
|
|
host!$host$ac_delim
|
26170 |
|
|
host_cpu!$host_cpu$ac_delim
|
26171 |
|
|
host_vendor!$host_vendor$ac_delim
|
26172 |
|
|
host_os!$host_os$ac_delim
|
26173 |
|
|
target!$target$ac_delim
|
26174 |
|
|
target_cpu!$target_cpu$ac_delim
|
26175 |
|
|
target_vendor!$target_vendor$ac_delim
|
26176 |
|
|
target_os!$target_os$ac_delim
|
26177 |
|
|
CC!$CC$ac_delim
|
26178 |
|
|
CFLAGS!$CFLAGS$ac_delim
|
26179 |
|
|
LDFLAGS!$LDFLAGS$ac_delim
|
26180 |
|
|
CPPFLAGS!$CPPFLAGS$ac_delim
|
26181 |
|
|
ac_ct_CC!$ac_ct_CC$ac_delim
|
26182 |
|
|
EXEEXT!$EXEEXT$ac_delim
|
26183 |
|
|
OBJEXT!$OBJEXT$ac_delim
|
26184 |
|
|
SED!$SED$ac_delim
|
26185 |
|
|
GREP!$GREP$ac_delim
|
26186 |
|
|
EGREP!$EGREP$ac_delim
|
26187 |
|
|
LN_S!$LN_S$ac_delim
|
26188 |
|
|
ECHO!$ECHO$ac_delim
|
26189 |
|
|
AR!$AR$ac_delim
|
26190 |
|
|
RANLIB!$RANLIB$ac_delim
|
26191 |
|
|
STRIP!$STRIP$ac_delim
|
26192 |
|
|
CPP!$CPP$ac_delim
|
26193 |
|
|
CXX!$CXX$ac_delim
|
26194 |
|
|
CXXFLAGS!$CXXFLAGS$ac_delim
|
26195 |
|
|
ac_ct_CXX!$ac_ct_CXX$ac_delim
|
26196 |
|
|
CXXCPP!$CXXCPP$ac_delim
|
26197 |
|
|
F77!$F77$ac_delim
|
26198 |
|
|
FFLAGS!$FFLAGS$ac_delim
|
26199 |
|
|
ac_ct_F77!$ac_ct_F77$ac_delim
|
26200 |
|
|
LIBTOOL!$LIBTOOL$ac_delim
|
26201 |
|
|
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
|
26202 |
|
|
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
|
26203 |
|
|
INSTALL_DATA!$INSTALL_DATA$ac_delim
|
26204 |
|
|
am__isrc!$am__isrc$ac_delim
|
26205 |
|
|
CYGPATH_W!$CYGPATH_W$ac_delim
|
26206 |
|
|
PACKAGE!$PACKAGE$ac_delim
|
26207 |
|
|
VERSION!$VERSION$ac_delim
|
26208 |
|
|
ACLOCAL!$ACLOCAL$ac_delim
|
26209 |
|
|
AUTOCONF!$AUTOCONF$ac_delim
|
26210 |
|
|
AUTOMAKE!$AUTOMAKE$ac_delim
|
26211 |
|
|
AUTOHEADER!$AUTOHEADER$ac_delim
|
26212 |
|
|
MAKEINFO!$MAKEINFO$ac_delim
|
26213 |
|
|
install_sh!$install_sh$ac_delim
|
26214 |
|
|
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
|
26215 |
|
|
mkdir_p!$mkdir_p$ac_delim
|
26216 |
|
|
AWK!$AWK$ac_delim
|
26217 |
|
|
SET_MAKE!$SET_MAKE$ac_delim
|
26218 |
|
|
am__leading_dot!$am__leading_dot$ac_delim
|
26219 |
|
|
AMTAR!$AMTAR$ac_delim
|
26220 |
|
|
am__tar!$am__tar$ac_delim
|
26221 |
|
|
am__untar!$am__untar$ac_delim
|
26222 |
|
|
DEPDIR!$DEPDIR$ac_delim
|
26223 |
|
|
am__include!$am__include$ac_delim
|
26224 |
|
|
am__quote!$am__quote$ac_delim
|
26225 |
|
|
_ACEOF
|
26226 |
|
|
|
26227 |
|
|
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
26228 |
|
|
break
|
26229 |
|
|
elif $ac_last_try; then
|
26230 |
|
|
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
26231 |
|
|
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
26232 |
|
|
{ (exit 1); exit 1; }; }
|
26233 |
|
|
else
|
26234 |
|
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
26235 |
|
|
fi
|
26236 |
|
|
done
|
26237 |
|
|
|
26238 |
|
|
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
26239 |
|
|
if test -n "$ac_eof"; then
|
26240 |
|
|
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
26241 |
|
|
ac_eof=`expr $ac_eof + 1`
|
26242 |
|
|
fi
|
26243 |
|
|
|
26244 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
26245 |
|
|
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
26246 |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
26247 |
|
|
_ACEOF
|
26248 |
|
|
sed '
|
26249 |
|
|
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
26250 |
|
|
s/^/s,@/; s/!/@,|#_!!_#|/
|
26251 |
|
|
:n
|
26252 |
|
|
t n
|
26253 |
|
|
s/'"$ac_delim"'$/,g/; t
|
26254 |
|
|
s/$/\\/; p
|
26255 |
|
|
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
26256 |
|
|
' >>$CONFIG_STATUS
|
26257 |
|
|
rm -f conf$$subs.sed
|
26258 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
26259 |
|
|
CEOF$ac_eof
|
26260 |
|
|
_ACEOF
|
26261 |
|
|
|
26262 |
|
|
|
26263 |
|
|
ac_delim='%!_!# '
|
26264 |
|
|
for ac_last_try in false false false false false :; do
|
26265 |
|
|
cat >conf$$subs.sed <<_ACEOF
|
26266 |
|
|
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
|
26267 |
|
|
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
|
26268 |
|
|
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
|
26269 |
|
|
CCDEPMODE!$CCDEPMODE$ac_delim
|
26270 |
|
|
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
|
26271 |
|
|
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
|
26272 |
|
|
CXXDEPMODE!$CXXDEPMODE$ac_delim
|
26273 |
|
|
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
|
26274 |
|
|
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
|
26275 |
|
|
CPU_ARCH!$CPU_ARCH$ac_delim
|
26276 |
|
|
MAKE_SHELL!$MAKE_SHELL$ac_delim
|
26277 |
|
|
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
|
26278 |
|
|
POW_LIB!$POW_LIB$ac_delim
|
26279 |
|
|
USE_SYS_GETOPTLONG_TRUE!$USE_SYS_GETOPTLONG_TRUE$ac_delim
|
26280 |
|
|
USE_SYS_GETOPTLONG_FALSE!$USE_SYS_GETOPTLONG_FALSE$ac_delim
|
26281 |
|
|
USE_ARGREX_TRUE!$USE_ARGREX_TRUE$ac_delim
|
26282 |
|
|
USE_ARGREX_FALSE!$USE_ARGREX_FALSE$ac_delim
|
26283 |
|
|
USE_ARGDATE_TRUE!$USE_ARGDATE_TRUE$ac_delim
|
26284 |
|
|
USE_ARGDATE_FALSE!$USE_ARGDATE_FALSE$ac_delim
|
26285 |
|
|
DEBUGFLAGS!$DEBUGFLAGS$ac_delim
|
26286 |
|
|
GENERATE_NEEDED_TRUE!$GENERATE_NEEDED_TRUE$ac_delim
|
26287 |
|
|
GENERATE_NEEDED_FALSE!$GENERATE_NEEDED_FALSE$ac_delim
|
26288 |
|
|
DYNAMIC_EXECUTION_TRUE!$DYNAMIC_EXECUTION_TRUE$ac_delim
|
26289 |
|
|
DYNAMIC_EXECUTION_FALSE!$DYNAMIC_EXECUTION_FALSE$ac_delim
|
26290 |
|
|
BUILD_DIR!$BUILD_DIR$ac_delim
|
26291 |
|
|
LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
|
26292 |
|
|
LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
|
26293 |
|
|
LOCAL_DEFS!$LOCAL_DEFS$ac_delim
|
26294 |
|
|
ARFLAGS!$ARFLAGS$ac_delim
|
26295 |
|
|
SUMVERSION!$SUMVERSION$ac_delim
|
26296 |
|
|
TERMCAP_LIB!$TERMCAP_LIB$ac_delim
|
26297 |
|
|
INCLUDES!$INCLUDES$ac_delim
|
26298 |
|
|
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
26299 |
|
|
_ACEOF
|
26300 |
|
|
|
26301 |
|
|
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
|
26302 |
|
|
break
|
26303 |
|
|
elif $ac_last_try; then
|
26304 |
|
|
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
26305 |
|
|
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
26306 |
|
|
{ (exit 1); exit 1; }; }
|
26307 |
|
|
else
|
26308 |
|
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
26309 |
|
|
fi
|
26310 |
|
|
done
|
26311 |
|
|
|
26312 |
|
|
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
26313 |
|
|
if test -n "$ac_eof"; then
|
26314 |
|
|
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
26315 |
|
|
ac_eof=`expr $ac_eof + 1`
|
26316 |
|
|
fi
|
26317 |
|
|
|
26318 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
26319 |
|
|
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
|
26320 |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
|
26321 |
|
|
_ACEOF
|
26322 |
|
|
sed '
|
26323 |
|
|
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
26324 |
|
|
s/^/s,@/; s/!/@,|#_!!_#|/
|
26325 |
|
|
:n
|
26326 |
|
|
t n
|
26327 |
|
|
s/'"$ac_delim"'$/,g/; t
|
26328 |
|
|
s/$/\\/; p
|
26329 |
|
|
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
26330 |
|
|
' >>$CONFIG_STATUS
|
26331 |
|
|
rm -f conf$$subs.sed
|
26332 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
26333 |
|
|
:end
|
26334 |
|
|
s/|#_!!_#|//g
|
26335 |
|
|
CEOF$ac_eof
|
26336 |
|
|
_ACEOF
|
26337 |
|
|
|
26338 |
|
|
|
26339 |
|
|
# VPATH may cause trouble with some makes, so we remove $(srcdir),
|
26340 |
|
|
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
26341 |
|
|
# trailing colons and then remove the whole line if VPATH becomes empty
|
26342 |
|
|
# (actually we leave an empty line to preserve line numbers).
|
26343 |
|
|
if test "x$srcdir" = x.; then
|
26344 |
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
26345 |
|
|
s/:*\$(srcdir):*/:/
|
26346 |
|
|
s/:*\${srcdir}:*/:/
|
26347 |
|
|
s/:*@srcdir@:*/:/
|
26348 |
|
|
s/^\([^=]*=[ ]*\):*/\1/
|
26349 |
|
|
s/:*$//
|
26350 |
|
|
s/^[^=]*=[ ]*$//
|
26351 |
|
|
}'
|
26352 |
|
|
fi
|
26353 |
|
|
|
26354 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
26355 |
|
|
fi # test -n "$CONFIG_FILES"
|
26356 |
|
|
|
26357 |
|
|
|
26358 |
|
|
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
|
26359 |
|
|
do
|
26360 |
|
|
case $ac_tag in
|
26361 |
|
|
:[FHLC]) ac_mode=$ac_tag; continue;;
|
26362 |
|
|
esac
|
26363 |
|
|
case $ac_mode$ac_tag in
|
26364 |
|
|
:[FHL]*:*);;
|
26365 |
|
|
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
26366 |
|
|
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
26367 |
|
|
{ (exit 1); exit 1; }; };;
|
26368 |
|
|
:[FH]-) ac_tag=-:-;;
|
26369 |
|
|
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
26370 |
|
|
esac
|
26371 |
|
|
ac_save_IFS=$IFS
|
26372 |
|
|
IFS=:
|
26373 |
|
|
set x $ac_tag
|
26374 |
|
|
IFS=$ac_save_IFS
|
26375 |
|
|
shift
|
26376 |
|
|
ac_file=$1
|
26377 |
|
|
shift
|
26378 |
|
|
|
26379 |
|
|
case $ac_mode in
|
26380 |
|
|
:L) ac_source=$1;;
|
26381 |
|
|
:[FH])
|
26382 |
|
|
ac_file_inputs=
|
26383 |
|
|
for ac_f
|
26384 |
|
|
do
|
26385 |
|
|
case $ac_f in
|
26386 |
|
|
-) ac_f="$tmp/stdin";;
|
26387 |
|
|
*) # Look for the file first in the build tree, then in the source tree
|
26388 |
|
|
# (if the path is not absolute). The absolute path cannot be DOS-style,
|
26389 |
|
|
# because $ac_f cannot contain `:'.
|
26390 |
|
|
test -f "$ac_f" ||
|
26391 |
|
|
case $ac_f in
|
26392 |
|
|
[\\/$]*) false;;
|
26393 |
|
|
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
26394 |
|
|
esac ||
|
26395 |
|
|
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
26396 |
|
|
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
26397 |
|
|
{ (exit 1); exit 1; }; };;
|
26398 |
|
|
esac
|
26399 |
|
|
ac_file_inputs="$ac_file_inputs $ac_f"
|
26400 |
|
|
done
|
26401 |
|
|
|
26402 |
|
|
# Let's still pretend it is `configure' which instantiates (i.e., don't
|
26403 |
|
|
# use $as_me), people would be surprised to read:
|
26404 |
|
|
# /* config.h. Generated by config.status. */
|
26405 |
|
|
configure_input="Generated from "`IFS=:
|
26406 |
|
|
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
26407 |
|
|
if test x"$ac_file" != x-; then
|
26408 |
|
|
configure_input="$ac_file. $configure_input"
|
26409 |
|
|
{ echo "$as_me:$LINENO: creating $ac_file" >&5
|
26410 |
|
|
echo "$as_me: creating $ac_file" >&6;}
|
26411 |
|
|
fi
|
26412 |
|
|
|
26413 |
|
|
case $ac_tag in
|
26414 |
|
|
*:-:* | *:-) cat >"$tmp/stdin";;
|
26415 |
|
|
esac
|
26416 |
|
|
;;
|
26417 |
|
|
esac
|
26418 |
|
|
|
26419 |
|
|
ac_dir=`$as_dirname -- "$ac_file" ||
|
26420 |
|
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
26421 |
|
|
X"$ac_file" : 'X\(//\)[^/]' \| \
|
26422 |
|
|
X"$ac_file" : 'X\(//\)$' \| \
|
26423 |
|
|
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
26424 |
|
|
echo X"$ac_file" |
|
26425 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
26426 |
|
|
s//\1/
|
26427 |
|
|
q
|
26428 |
|
|
}
|
26429 |
|
|
/^X\(\/\/\)[^/].*/{
|
26430 |
|
|
s//\1/
|
26431 |
|
|
q
|
26432 |
|
|
}
|
26433 |
|
|
/^X\(\/\/\)$/{
|
26434 |
|
|
s//\1/
|
26435 |
|
|
q
|
26436 |
|
|
}
|
26437 |
|
|
/^X\(\/\).*/{
|
26438 |
|
|
s//\1/
|
26439 |
|
|
q
|
26440 |
|
|
}
|
26441 |
|
|
s/.*/./; q'`
|
26442 |
|
|
{ as_dir="$ac_dir"
|
26443 |
|
|
case $as_dir in #(
|
26444 |
|
|
-*) as_dir=./$as_dir;;
|
26445 |
|
|
esac
|
26446 |
|
|
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
26447 |
|
|
as_dirs=
|
26448 |
|
|
while :; do
|
26449 |
|
|
case $as_dir in #(
|
26450 |
|
|
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
26451 |
|
|
*) as_qdir=$as_dir;;
|
26452 |
|
|
esac
|
26453 |
|
|
as_dirs="'$as_qdir' $as_dirs"
|
26454 |
|
|
as_dir=`$as_dirname -- "$as_dir" ||
|
26455 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
26456 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
26457 |
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
26458 |
|
|
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
26459 |
|
|
echo X"$as_dir" |
|
26460 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
26461 |
|
|
s//\1/
|
26462 |
|
|
q
|
26463 |
|
|
}
|
26464 |
|
|
/^X\(\/\/\)[^/].*/{
|
26465 |
|
|
s//\1/
|
26466 |
|
|
q
|
26467 |
|
|
}
|
26468 |
|
|
/^X\(\/\/\)$/{
|
26469 |
|
|
s//\1/
|
26470 |
|
|
q
|
26471 |
|
|
}
|
26472 |
|
|
/^X\(\/\).*/{
|
26473 |
|
|
s//\1/
|
26474 |
|
|
q
|
26475 |
|
|
}
|
26476 |
|
|
s/.*/./; q'`
|
26477 |
|
|
test -d "$as_dir" && break
|
26478 |
|
|
done
|
26479 |
|
|
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
26480 |
|
|
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
26481 |
|
|
echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
26482 |
|
|
{ (exit 1); exit 1; }; }; }
|
26483 |
|
|
ac_builddir=.
|
26484 |
|
|
|
26485 |
|
|
case "$ac_dir" in
|
26486 |
|
|
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
26487 |
|
|
*)
|
26488 |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
26489 |
|
|
# A ".." for each directory in $ac_dir_suffix.
|
26490 |
|
|
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
26491 |
|
|
case $ac_top_builddir_sub in
|
26492 |
|
|
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
26493 |
|
|
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
26494 |
|
|
esac ;;
|
26495 |
|
|
esac
|
26496 |
|
|
ac_abs_top_builddir=$ac_pwd
|
26497 |
|
|
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
26498 |
|
|
# for backward compatibility:
|
26499 |
|
|
ac_top_builddir=$ac_top_build_prefix
|
26500 |
|
|
|
26501 |
|
|
case $srcdir in
|
26502 |
|
|
.) # We are building in place.
|
26503 |
|
|
ac_srcdir=.
|
26504 |
|
|
ac_top_srcdir=$ac_top_builddir_sub
|
26505 |
|
|
ac_abs_top_srcdir=$ac_pwd ;;
|
26506 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute name.
|
26507 |
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
26508 |
|
|
ac_top_srcdir=$srcdir
|
26509 |
|
|
ac_abs_top_srcdir=$srcdir ;;
|
26510 |
|
|
*) # Relative name.
|
26511 |
|
|
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
26512 |
|
|
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
26513 |
|
|
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
26514 |
|
|
esac
|
26515 |
|
|
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
26516 |
|
|
|
26517 |
|
|
|
26518 |
|
|
case $ac_mode in
|
26519 |
|
|
:F)
|
26520 |
|
|
#
|
26521 |
|
|
# CONFIG_FILE
|
26522 |
|
|
#
|
26523 |
|
|
|
26524 |
|
|
case $INSTALL in
|
26525 |
|
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
26526 |
|
|
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
26527 |
|
|
esac
|
26528 |
|
|
ac_MKDIR_P=$MKDIR_P
|
26529 |
|
|
case $MKDIR_P in
|
26530 |
|
|
[\\/$]* | ?:[\\/]* ) ;;
|
26531 |
|
|
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
26532 |
|
|
esac
|
26533 |
|
|
_ACEOF
|
26534 |
|
|
|
26535 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
26536 |
|
|
# If the template does not know about datarootdir, expand it.
|
26537 |
|
|
# FIXME: This hack should be removed a few years after 2.60.
|
26538 |
|
|
ac_datarootdir_hack=; ac_datarootdir_seen=
|
26539 |
|
|
|
26540 |
|
|
case `sed -n '/datarootdir/ {
|
26541 |
|
|
p
|
26542 |
|
|
q
|
26543 |
|
|
}
|
26544 |
|
|
/@datadir@/p
|
26545 |
|
|
/@docdir@/p
|
26546 |
|
|
/@infodir@/p
|
26547 |
|
|
/@localedir@/p
|
26548 |
|
|
/@mandir@/p
|
26549 |
|
|
' $ac_file_inputs` in
|
26550 |
|
|
*datarootdir*) ac_datarootdir_seen=yes;;
|
26551 |
|
|
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
26552 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
26553 |
|
|
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
26554 |
|
|
_ACEOF
|
26555 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
26556 |
|
|
ac_datarootdir_hack='
|
26557 |
|
|
s&@datadir@&$datadir&g
|
26558 |
|
|
s&@docdir@&$docdir&g
|
26559 |
|
|
s&@infodir@&$infodir&g
|
26560 |
|
|
s&@localedir@&$localedir&g
|
26561 |
|
|
s&@mandir@&$mandir&g
|
26562 |
|
|
s&\\\${datarootdir}&$datarootdir&g' ;;
|
26563 |
|
|
esac
|
26564 |
|
|
_ACEOF
|
26565 |
|
|
|
26566 |
|
|
# Neutralize VPATH when `$srcdir' = `.'.
|
26567 |
|
|
# Shell code in configure.ac might set extrasub.
|
26568 |
|
|
# FIXME: do we really want to maintain this feature?
|
26569 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
26570 |
|
|
sed "$ac_vpsub
|
26571 |
|
|
$extrasub
|
26572 |
|
|
_ACEOF
|
26573 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
26574 |
|
|
:t
|
26575 |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
26576 |
|
|
s&@configure_input@&$configure_input&;t t
|
26577 |
|
|
s&@top_builddir@&$ac_top_builddir_sub&;t t
|
26578 |
|
|
s&@srcdir@&$ac_srcdir&;t t
|
26579 |
|
|
s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
26580 |
|
|
s&@top_srcdir@&$ac_top_srcdir&;t t
|
26581 |
|
|
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
26582 |
|
|
s&@builddir@&$ac_builddir&;t t
|
26583 |
|
|
s&@abs_builddir@&$ac_abs_builddir&;t t
|
26584 |
|
|
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
26585 |
|
|
s&@INSTALL@&$ac_INSTALL&;t t
|
26586 |
|
|
s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
26587 |
|
|
$ac_datarootdir_hack
|
26588 |
|
|
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
|
26589 |
|
|
|
26590 |
|
|
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
26591 |
|
|
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
26592 |
|
|
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
26593 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
26594 |
|
|
which seems to be undefined. Please make sure it is defined." >&5
|
26595 |
|
|
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
26596 |
|
|
which seems to be undefined. Please make sure it is defined." >&2;}
|
26597 |
|
|
|
26598 |
|
|
rm -f "$tmp/stdin"
|
26599 |
|
|
case $ac_file in
|
26600 |
|
|
-) cat "$tmp/out"; rm -f "$tmp/out";;
|
26601 |
|
|
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
26602 |
|
|
esac
|
26603 |
|
|
;;
|
26604 |
|
|
:H)
|
26605 |
|
|
#
|
26606 |
|
|
# CONFIG_HEADER
|
26607 |
|
|
#
|
26608 |
|
|
_ACEOF
|
26609 |
|
|
|
26610 |
|
|
# Transform confdefs.h into a sed script `conftest.defines', that
|
26611 |
|
|
# substitutes the proper values into config.h.in to produce config.h.
|
26612 |
|
|
rm -f conftest.defines conftest.tail
|
26613 |
|
|
# First, append a space to every undef/define line, to ease matching.
|
26614 |
|
|
echo 's/$/ /' >conftest.defines
|
26615 |
|
|
# Then, protect against being on the right side of a sed subst, or in
|
26616 |
|
|
# an unquoted here document, in config.status. If some macros were
|
26617 |
|
|
# called several times there might be several #defines for the same
|
26618 |
|
|
# symbol, which is useless. But do not sort them, since the last
|
26619 |
|
|
# AC_DEFINE must be honored.
|
26620 |
|
|
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
26621 |
|
|
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
|
26622 |
|
|
# NAME is the cpp macro being defined, VALUE is the value it is being given.
|
26623 |
|
|
# PARAMS is the parameter list in the macro definition--in most cases, it's
|
26624 |
|
|
# just an empty string.
|
26625 |
|
|
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
|
26626 |
|
|
ac_dB='\\)[ (].*,\\1define\\2'
|
26627 |
|
|
ac_dC=' '
|
26628 |
|
|
ac_dD=' ,'
|
26629 |
|
|
|
26630 |
|
|
uniq confdefs.h |
|
26631 |
|
|
sed -n '
|
26632 |
|
|
t rset
|
26633 |
|
|
:rset
|
26634 |
|
|
s/^[ ]*#[ ]*define[ ][ ]*//
|
26635 |
|
|
t ok
|
26636 |
|
|
d
|
26637 |
|
|
:ok
|
26638 |
|
|
s/[\\&,]/\\&/g
|
26639 |
|
|
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
26640 |
|
|
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
26641 |
|
|
' >>conftest.defines
|
26642 |
|
|
|
26643 |
|
|
# Remove the space that was appended to ease matching.
|
26644 |
|
|
# Then replace #undef with comments. This is necessary, for
|
26645 |
|
|
# example, in the case of _POSIX_SOURCE, which is predefined and required
|
26646 |
|
|
# on some systems where configure will not decide to define it.
|
26647 |
|
|
# (The regexp can be short, since the line contains either #define or #undef.)
|
26648 |
|
|
echo 's/ $//
|
26649 |
|
|
s,^[ #]*u.*,/* & */,' >>conftest.defines
|
26650 |
|
|
|
26651 |
|
|
# Break up conftest.defines:
|
26652 |
|
|
ac_max_sed_lines=50
|
26653 |
|
|
|
26654 |
|
|
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
|
26655 |
|
|
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
|
26656 |
|
|
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
|
26657 |
|
|
# et cetera.
|
26658 |
|
|
ac_in='$ac_file_inputs'
|
26659 |
|
|
ac_out='"$tmp/out1"'
|
26660 |
|
|
ac_nxt='"$tmp/out2"'
|
26661 |
|
|
|
26662 |
|
|
while :
|
26663 |
|
|
do
|
26664 |
|
|
# Write a here document:
|
26665 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
26666 |
|
|
# First, check the format of the line:
|
26667 |
|
|
cat >"\$tmp/defines.sed" <<\\CEOF
|
26668 |
|
|
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
|
26669 |
|
|
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
|
26670 |
|
|
b
|
26671 |
|
|
:def
|
26672 |
|
|
_ACEOF
|
26673 |
|
|
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
26674 |
|
|
echo 'CEOF
|
26675 |
|
|
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
|
26676 |
|
|
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
|
26677 |
|
|
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
26678 |
|
|
grep . conftest.tail >/dev/null || break
|
26679 |
|
|
rm -f conftest.defines
|
26680 |
|
|
mv conftest.tail conftest.defines
|
26681 |
|
|
done
|
26682 |
|
|
rm -f conftest.defines conftest.tail
|
26683 |
|
|
|
26684 |
|
|
echo "ac_result=$ac_in" >>$CONFIG_STATUS
|
26685 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
26686 |
|
|
if test x"$ac_file" != x-; then
|
26687 |
|
|
echo "/* $configure_input */" >"$tmp/config.h"
|
26688 |
|
|
cat "$ac_result" >>"$tmp/config.h"
|
26689 |
|
|
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
|
26690 |
|
|
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
26691 |
|
|
echo "$as_me: $ac_file is unchanged" >&6;}
|
26692 |
|
|
else
|
26693 |
|
|
rm -f $ac_file
|
26694 |
|
|
mv "$tmp/config.h" $ac_file
|
26695 |
|
|
fi
|
26696 |
|
|
else
|
26697 |
|
|
echo "/* $configure_input */"
|
26698 |
|
|
cat "$ac_result"
|
26699 |
|
|
fi
|
26700 |
|
|
rm -f "$tmp/out12"
|
26701 |
|
|
# Compute $ac_file's index in $config_headers.
|
26702 |
|
|
_am_arg=$ac_file
|
26703 |
|
|
_am_stamp_count=1
|
26704 |
|
|
for _am_header in $config_headers :; do
|
26705 |
|
|
case $_am_header in
|
26706 |
|
|
$_am_arg | $_am_arg:* )
|
26707 |
|
|
break ;;
|
26708 |
|
|
* )
|
26709 |
|
|
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
26710 |
|
|
esac
|
26711 |
|
|
done
|
26712 |
|
|
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
26713 |
|
|
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
26714 |
|
|
X"$_am_arg" : 'X\(//\)[^/]' \| \
|
26715 |
|
|
X"$_am_arg" : 'X\(//\)$' \| \
|
26716 |
|
|
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
26717 |
|
|
echo X"$_am_arg" |
|
26718 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
26719 |
|
|
s//\1/
|
26720 |
|
|
q
|
26721 |
|
|
}
|
26722 |
|
|
/^X\(\/\/\)[^/].*/{
|
26723 |
|
|
s//\1/
|
26724 |
|
|
q
|
26725 |
|
|
}
|
26726 |
|
|
/^X\(\/\/\)$/{
|
26727 |
|
|
s//\1/
|
26728 |
|
|
q
|
26729 |
|
|
}
|
26730 |
|
|
/^X\(\/\).*/{
|
26731 |
|
|
s//\1/
|
26732 |
|
|
q
|
26733 |
|
|
}
|
26734 |
|
|
s/.*/./; q'`/stamp-h$_am_stamp_count
|
26735 |
|
|
;;
|
26736 |
|
|
|
26737 |
|
|
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
|
26738 |
|
|
echo "$as_me: executing $ac_file commands" >&6;}
|
26739 |
|
|
;;
|
26740 |
|
|
esac
|
26741 |
|
|
|
26742 |
|
|
|
26743 |
|
|
case $ac_file$ac_mode in
|
26744 |
|
|
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
|
26745 |
|
|
# Strip MF so we end up with the name of the file.
|
26746 |
|
|
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
26747 |
|
|
# Check whether this is an Automake generated Makefile or not.
|
26748 |
|
|
# We used to match only the files named `Makefile.in', but
|
26749 |
|
|
# some people rename them; so instead we look at the file content.
|
26750 |
|
|
# Grep'ing the first line is not enough: some people post-process
|
26751 |
|
|
# each Makefile.in and add a new line on top of each file to say so.
|
26752 |
|
|
# Grep'ing the whole file is not good either: AIX grep has a line
|
26753 |
|
|
# limit of 2048, but all sed's we know have understand at least 4000.
|
26754 |
|
|
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
26755 |
|
|
dirpart=`$as_dirname -- "$mf" ||
|
26756 |
|
|
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
26757 |
|
|
X"$mf" : 'X\(//\)[^/]' \| \
|
26758 |
|
|
X"$mf" : 'X\(//\)$' \| \
|
26759 |
|
|
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
|
26760 |
|
|
echo X"$mf" |
|
26761 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
26762 |
|
|
s//\1/
|
26763 |
|
|
q
|
26764 |
|
|
}
|
26765 |
|
|
/^X\(\/\/\)[^/].*/{
|
26766 |
|
|
s//\1/
|
26767 |
|
|
q
|
26768 |
|
|
}
|
26769 |
|
|
/^X\(\/\/\)$/{
|
26770 |
|
|
s//\1/
|
26771 |
|
|
q
|
26772 |
|
|
}
|
26773 |
|
|
/^X\(\/\).*/{
|
26774 |
|
|
s//\1/
|
26775 |
|
|
q
|
26776 |
|
|
}
|
26777 |
|
|
s/.*/./; q'`
|
26778 |
|
|
else
|
26779 |
|
|
continue
|
26780 |
|
|
fi
|
26781 |
|
|
# Extract the definition of DEPDIR, am__include, and am__quote
|
26782 |
|
|
# from the Makefile without running `make'.
|
26783 |
|
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
26784 |
|
|
test -z "$DEPDIR" && continue
|
26785 |
|
|
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
26786 |
|
|
test -z "am__include" && continue
|
26787 |
|
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
26788 |
|
|
# When using ansi2knr, U may be empty or an underscore; expand it
|
26789 |
|
|
U=`sed -n 's/^U = //p' < "$mf"`
|
26790 |
|
|
# Find all dependency output files, they are included files with
|
26791 |
|
|
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
26792 |
|
|
# simplest approach to changing $(DEPDIR) to its actual value in the
|
26793 |
|
|
# expansion.
|
26794 |
|
|
for file in `sed -n "
|
26795 |
|
|
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
26796 |
|
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
26797 |
|
|
# Make sure the directory exists.
|
26798 |
|
|
test -f "$dirpart/$file" && continue
|
26799 |
|
|
fdir=`$as_dirname -- "$file" ||
|
26800 |
|
|
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
26801 |
|
|
X"$file" : 'X\(//\)[^/]' \| \
|
26802 |
|
|
X"$file" : 'X\(//\)$' \| \
|
26803 |
|
|
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
|
26804 |
|
|
echo X"$file" |
|
26805 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
26806 |
|
|
s//\1/
|
26807 |
|
|
q
|
26808 |
|
|
}
|
26809 |
|
|
/^X\(\/\/\)[^/].*/{
|
26810 |
|
|
s//\1/
|
26811 |
|
|
q
|
26812 |
|
|
}
|
26813 |
|
|
/^X\(\/\/\)$/{
|
26814 |
|
|
s//\1/
|
26815 |
|
|
q
|
26816 |
|
|
}
|
26817 |
|
|
/^X\(\/\).*/{
|
26818 |
|
|
s//\1/
|
26819 |
|
|
q
|
26820 |
|
|
}
|
26821 |
|
|
s/.*/./; q'`
|
26822 |
|
|
{ as_dir=$dirpart/$fdir
|
26823 |
|
|
case $as_dir in #(
|
26824 |
|
|
-*) as_dir=./$as_dir;;
|
26825 |
|
|
esac
|
26826 |
|
|
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
26827 |
|
|
as_dirs=
|
26828 |
|
|
while :; do
|
26829 |
|
|
case $as_dir in #(
|
26830 |
|
|
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
26831 |
|
|
*) as_qdir=$as_dir;;
|
26832 |
|
|
esac
|
26833 |
|
|
as_dirs="'$as_qdir' $as_dirs"
|
26834 |
|
|
as_dir=`$as_dirname -- "$as_dir" ||
|
26835 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
26836 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
26837 |
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
26838 |
|
|
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
26839 |
|
|
echo X"$as_dir" |
|
26840 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
26841 |
|
|
s//\1/
|
26842 |
|
|
q
|
26843 |
|
|
}
|
26844 |
|
|
/^X\(\/\/\)[^/].*/{
|
26845 |
|
|
s//\1/
|
26846 |
|
|
q
|
26847 |
|
|
}
|
26848 |
|
|
/^X\(\/\/\)$/{
|
26849 |
|
|
s//\1/
|
26850 |
|
|
q
|
26851 |
|
|
}
|
26852 |
|
|
/^X\(\/\).*/{
|
26853 |
|
|
s//\1/
|
26854 |
|
|
q
|
26855 |
|
|
}
|
26856 |
|
|
s/.*/./; q'`
|
26857 |
|
|
test -d "$as_dir" && break
|
26858 |
|
|
done
|
26859 |
|
|
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
26860 |
|
|
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
26861 |
|
|
echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
26862 |
|
|
{ (exit 1); exit 1; }; }; }
|
26863 |
|
|
# echo "creating $dirpart/$file"
|
26864 |
|
|
echo '# dummy' > "$dirpart/$file"
|
26865 |
|
|
done
|
26866 |
|
|
done
|
26867 |
|
|
;;
|
26868 |
|
|
|
26869 |
|
|
esac
|
26870 |
|
|
done # for ac_tag
|
26871 |
|
|
|
26872 |
|
|
|
26873 |
|
|
{ (exit 0); exit 0; }
|
26874 |
|
|
_ACEOF
|
26875 |
|
|
chmod +x $CONFIG_STATUS
|
26876 |
|
|
ac_clean_files=$ac_clean_files_save
|
26877 |
|
|
|
26878 |
|
|
|
26879 |
|
|
# configure is writing to config.log, and then calls config.status.
|
26880 |
|
|
# config.status does its own redirection, appending to config.log.
|
26881 |
|
|
# Unfortunately, on DOS this fails, as config.log is still kept open
|
26882 |
|
|
# by configure, so config.status won't be able to write to it; its
|
26883 |
|
|
# output is simply discarded. So we exec the FD to /dev/null,
|
26884 |
|
|
# effectively closing config.log, so it can be properly (re)opened and
|
26885 |
|
|
# appended to by config.status. When coming back to configure, we
|
26886 |
|
|
# need to make the FD available again.
|
26887 |
|
|
if test "$no_create" != yes; then
|
26888 |
|
|
ac_cs_success=:
|
26889 |
|
|
ac_config_status_args=
|
26890 |
|
|
test "$silent" = yes &&
|
26891 |
|
|
ac_config_status_args="$ac_config_status_args --quiet"
|
26892 |
|
|
exec 5>/dev/null
|
26893 |
|
|
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
26894 |
|
|
exec 5>>config.log
|
26895 |
|
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
26896 |
|
|
# would make configure fail if this is the last instruction.
|
26897 |
|
|
$ac_cs_success || { (exit 1); exit 1; }
|
26898 |
|
|
fi
|
26899 |
|
|
|