1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.59. |
4 |
# |
5 |
# Copyright (C) 2003 Free Software Foundation, Inc. |
6 |
# This configure script is free software; the Free Software Foundation |
7 |
# gives unlimited permission to copy, distribute and modify it. |
8 |
## --------------------- ## |
9 |
## M4sh Initialization. ## |
10 |
## --------------------- ## |
11 |
|
12 |
# Be Bourne compatible |
13 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14 |
emulate sh |
15 |
NULLCMD=: |
16 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
17 |
# is contrary to our usage. Disable this feature. |
18 |
alias -g '${1+"$@"}'='"$@"' |
19 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 |
set -o posix |
21 |
fi |
22 |
DUALCASE=1; export DUALCASE # for MKS sh |
23 |
|
24 |
# Support unset when possible. |
25 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
26 |
as_unset=unset |
27 |
else |
28 |
as_unset=false |
29 |
fi |
30 |
|
31 |
|
32 |
# Work around bugs in pre-3.0 UWIN ksh. |
33 |
$as_unset ENV MAIL MAILPATH |
34 |
PS1='$ ' |
35 |
PS2='> ' |
36 |
PS4='+ ' |
37 |
|
38 |
# NLS nuisances. |
39 |
for as_var in \ |
40 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
41 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
42 |
LC_TELEPHONE LC_TIME |
43 |
do |
44 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
45 |
eval $as_var=C; export $as_var |
46 |
else |
47 |
$as_unset $as_var |
48 |
fi |
49 |
done |
50 |
|
51 |
# Required to use basename. |
52 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
53 |
as_expr=expr |
54 |
else |
55 |
as_expr=false |
56 |
fi |
57 |
|
58 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
59 |
as_basename=basename |
60 |
else |
61 |
as_basename=false |
62 |
fi |
63 |
|
64 |
|
65 |
# Name of the executable. |
66 |
as_me=`$as_basename "$0" || |
67 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 |
X"$0" : 'X\(//\)$' \| \ |
69 |
X"$0" : 'X\(/\)$' \| \ |
70 |
. : '\(.\)' 2>/dev/null || |
71 |
echo X/"$0" | |
72 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
74 |
/^X\/\(\/\).*/{ s//\1/; q; } |
75 |
s/.*/./; q'` |
76 |
|
77 |
|
78 |
# PATH needs CR, and LINENO needs CR and PATH. |
79 |
# Avoid depending upon Character Ranges. |
80 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
81 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
82 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
83 |
as_cr_digits='0123456789' |
84 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
85 |
|
86 |
# The user is always right. |
87 |
if test "${PATH_SEPARATOR+set}" != set; then |
88 |
echo "#! /bin/sh" >conf$$.sh |
89 |
echo "exit 0" >>conf$$.sh |
90 |
chmod +x conf$$.sh |
91 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
92 |
PATH_SEPARATOR=';' |
93 |
else |
94 |
PATH_SEPARATOR=: |
95 |
fi |
96 |
rm -f conf$$.sh |
97 |
fi |
98 |
|
99 |
|
100 |
as_lineno_1=$LINENO |
101 |
as_lineno_2=$LINENO |
102 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
103 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
104 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
105 |
# Find who we are. Look in the path if we contain no path at all |
106 |
# relative or not. |
107 |
case $0 in |
108 |
*[\\/]* ) as_myself=$0 ;; |
109 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
110 |
for as_dir in $PATH |
111 |
do |
112 |
IFS=$as_save_IFS |
113 |
test -z "$as_dir" && as_dir=. |
114 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
115 |
done |
116 |
|
117 |
;; |
118 |
esac |
119 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
120 |
# in which case we are not to be found in the path. |
121 |
if test "x$as_myself" = x; then |
122 |
as_myself=$0 |
123 |
fi |
124 |
if test ! -f "$as_myself"; then |
125 |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
126 |
{ (exit 1); exit 1; }; } |
127 |
fi |
128 |
case $CONFIG_SHELL in |
129 |
'') |
130 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
131 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
132 |
do |
133 |
IFS=$as_save_IFS |
134 |
test -z "$as_dir" && as_dir=. |
135 |
for as_base in sh bash ksh sh5; do |
136 |
case $as_dir in |
137 |
/*) |
138 |
if ("$as_dir/$as_base" -c ' |
139 |
as_lineno_1=$LINENO |
140 |
as_lineno_2=$LINENO |
141 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
142 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
143 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
144 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
145 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
146 |
CONFIG_SHELL=$as_dir/$as_base |
147 |
export CONFIG_SHELL |
148 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
149 |
fi;; |
150 |
esac |
151 |
done |
152 |
done |
153 |
;; |
154 |
esac |
155 |
|
156 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
157 |
# uniformly replaced by the line number. The first 'sed' inserts a |
158 |
# line-number line before each line; the second 'sed' does the real |
159 |
# work. The second script uses 'N' to pair each line-number line |
160 |
# with the numbered line, and appends trailing '-' during |
161 |
# substitution so that $LINENO is not a special case at line end. |
162 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
163 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 |
sed '=' <$as_myself | |
165 |
sed ' |
166 |
N |
167 |
s,$,-, |
168 |
: loop |
169 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
170 |
t loop |
171 |
s,-$,, |
172 |
s,^['$as_cr_digits']*\n,, |
173 |
' >$as_me.lineno && |
174 |
chmod +x $as_me.lineno || |
175 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
176 |
{ (exit 1); exit 1; }; } |
177 |
|
178 |
# Don't try to exec as it changes $[0], causing all sort of problems |
179 |
# (the dirname of $[0] is not the place where we might find the |
180 |
# original and so on. Autoconf is especially sensible to this). |
181 |
. ./$as_me.lineno |
182 |
# Exit status is that of the last command. |
183 |
exit |
184 |
} |
185 |
|
186 |
|
187 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
188 |
*c*,-n*) ECHO_N= ECHO_C=' |
189 |
' ECHO_T=' ' ;; |
190 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
191 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
192 |
esac |
193 |
|
194 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
195 |
as_expr=expr |
196 |
else |
197 |
as_expr=false |
198 |
fi |
199 |
|
200 |
rm -f conf$$ conf$$.exe conf$$.file |
201 |
echo >conf$$.file |
202 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
203 |
# We could just check for DJGPP; but this test a) works b) is more generic |
204 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
205 |
if test -f conf$$.exe; then |
206 |
# Don't use ln at all; we don't have any links |
207 |
as_ln_s='cp -p' |
208 |
else |
209 |
as_ln_s='ln -s' |
210 |
fi |
211 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
212 |
as_ln_s=ln |
213 |
else |
214 |
as_ln_s='cp -p' |
215 |
fi |
216 |
rm -f conf$$ conf$$.exe conf$$.file |
217 |
|
218 |
if mkdir -p . 2>/dev/null; then |
219 |
as_mkdir_p=: |
220 |
else |
221 |
test -d ./-p && rmdir ./-p |
222 |
as_mkdir_p=false |
223 |
fi |
224 |
|
225 |
as_executable_p="test -f" |
226 |
|
227 |
# Sed expression to map a string onto a valid CPP name. |
228 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
229 |
|
230 |
# Sed expression to map a string onto a valid variable name. |
231 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
232 |
|
233 |
|
234 |
# IFS |
235 |
# We need space, tab and new line, in precisely that order. |
236 |
as_nl=' |
237 |
' |
238 |
IFS=" $as_nl" |
239 |
|
240 |
# CDPATH. |
241 |
$as_unset CDPATH |
242 |
|
243 |
|
244 |
# Find the correct PATH separator. Usually this is `:', but |
245 |
# DJGPP uses `;' like DOS. |
246 |
if test "X${PATH_SEPARATOR+set}" != Xset; then |
247 |
UNAME=${UNAME-`uname 2>/dev/null`} |
248 |
case X$UNAME in |
249 |
*-DOS) lt_cv_sys_path_separator=';' ;; |
250 |
*) lt_cv_sys_path_separator=':' ;; |
251 |
esac |
252 |
PATH_SEPARATOR=$lt_cv_sys_path_separator |
253 |
fi |
254 |
|
255 |
|
256 |
# Check that we are running under the correct shell. |
257 |
SHELL=${CONFIG_SHELL-/bin/sh} |
258 |
|
259 |
case X$ECHO in |
260 |
X*--fallback-echo) |
261 |
# Remove one level of quotation (which was required for Make). |
262 |
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
263 |
;; |
264 |
esac |
265 |
|
266 |
echo=${ECHO-echo} |
267 |
if test "X$1" = X--no-reexec; then |
268 |
# Discard the --no-reexec flag, and continue. |
269 |
shift |
270 |
elif test "X$1" = X--fallback-echo; then |
271 |
# Avoid inline document here, it may be left over |
272 |
: |
273 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
274 |
# Yippee, $echo works! |
275 |
: |
276 |
else |
277 |
# Restart under the correct shell. |
278 |
exec $SHELL "$0" --no-reexec ${1+"$@"} |
279 |
fi |
280 |
|
281 |
if test "X$1" = X--fallback-echo; then |
282 |
# used as fallback echo |
283 |
shift |
284 |
cat <<EOF |
285 |
|
286 |
EOF |
287 |
exit 0 |
288 |
fi |
289 |
|
290 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
291 |
# if CDPATH is set. |
292 |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
293 |
|
294 |
if test -z "$ECHO"; then |
295 |
if test "X${echo_test_string+set}" != Xset; then |
296 |
# find a string as large as possible, as long as the shell can cope with it |
297 |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
298 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
299 |
if (echo_test_string="`eval $cmd`") 2>/dev/null && |
300 |
echo_test_string="`eval $cmd`" && |
301 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
302 |
then |
303 |
break |
304 |
fi |
305 |
done |
306 |
fi |
307 |
|
308 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
309 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
310 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
311 |
: |
312 |
else |
313 |
# The Solaris, AIX, and Digital Unix default echo programs unquote |
314 |
# backslashes. This makes it impossible to quote backslashes using |
315 |
# echo "$something" | sed 's/\\/\\\\/g' |
316 |
# |
317 |
# So, first we look for a working echo in the user's PATH. |
318 |
|
319 |
IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
320 |
for dir in $PATH /usr/ucb; do |
321 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
322 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
323 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
324 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
325 |
echo="$dir/echo" |
326 |
break |
327 |
fi |
328 |
done |
329 |
IFS="$save_ifs" |
330 |
|
331 |
if test "X$echo" = Xecho; then |
332 |
# We didn't find a better echo, so look for alternatives. |
333 |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
334 |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
335 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
336 |
# This shell has a builtin print -r that does the trick. |
337 |
echo='print -r' |
338 |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
339 |
test "X$CONFIG_SHELL" != X/bin/ksh; then |
340 |
# If we have ksh, try running configure again with it. |
341 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
342 |
export ORIGINAL_CONFIG_SHELL |
343 |
CONFIG_SHELL=/bin/ksh |
344 |
export CONFIG_SHELL |
345 |
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
346 |
else |
347 |
# Try using printf. |
348 |
echo='printf %s\n' |
349 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
350 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
351 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
352 |
# Cool, printf works |
353 |
: |
354 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
355 |
test "X$echo_testing_string" = 'X\t' && |
356 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
357 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
358 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
359 |
export CONFIG_SHELL |
360 |
SHELL="$CONFIG_SHELL" |
361 |
export SHELL |
362 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
363 |
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
364 |
test "X$echo_testing_string" = 'X\t' && |
365 |
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
366 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
367 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
368 |
else |
369 |
# maybe with a smaller string... |
370 |
prev=: |
371 |
|
372 |
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
373 |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
374 |
then |
375 |
break |
376 |
fi |
377 |
prev="$cmd" |
378 |
done |
379 |
|
380 |
if test "$prev" != 'sed 50q "$0"'; then |
381 |
echo_test_string=`eval $prev` |
382 |
export echo_test_string |
383 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
384 |
else |
385 |
# Oops. We lost completely, so just stick with echo. |
386 |
echo=echo |
387 |
fi |
388 |
fi |
389 |
fi |
390 |
fi |
391 |
fi |
392 |
fi |
393 |
|
394 |
# Copy echo and quote the copy suitably for passing to libtool from |
395 |
# the Makefile, instead of quoting the original, which is used later. |
396 |
ECHO=$echo |
397 |
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
398 |
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
399 |
fi |
400 |
|
401 |
|
402 |
|
403 |
# Name of the host. |
404 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
405 |
# so uname gets run too. |
406 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
407 |
|
408 |
exec 6>&1 |
409 |
|
410 |
# |
411 |
# Initializations. |
412 |
# |
413 |
ac_default_prefix=/usr/local |
414 |
ac_config_libobj_dir=. |
415 |
cross_compiling=no |
416 |
subdirs= |
417 |
MFLAGS= |
418 |
MAKEFLAGS= |
419 |
SHELL=${CONFIG_SHELL-/bin/sh} |
420 |
|
421 |
# Maximum number of lines to put in a shell here document. |
422 |
# This variable seems obsolete. It should probably be removed, and |
423 |
# only ac_max_sed_lines should be used. |
424 |
: ${ac_max_here_lines=38} |
425 |
|
426 |
# Identity of this package. |
427 |
PACKAGE_NAME= |
428 |
PACKAGE_TARNAME= |
429 |
PACKAGE_VERSION= |
430 |
PACKAGE_STRING= |
431 |
PACKAGE_BUGREPORT= |
432 |
|
433 |
ac_unique_file="event/PamelaRun.h" |
434 |
# Factoring default headers for most tests. |
435 |
ac_includes_default="\ |
436 |
#include <stdio.h> |
437 |
#if HAVE_SYS_TYPES_H |
438 |
# include <sys/types.h> |
439 |
#endif |
440 |
#if HAVE_SYS_STAT_H |
441 |
# include <sys/stat.h> |
442 |
#endif |
443 |
#if STDC_HEADERS |
444 |
# include <stdlib.h> |
445 |
# include <stddef.h> |
446 |
#else |
447 |
# if HAVE_STDLIB_H |
448 |
# include <stdlib.h> |
449 |
# endif |
450 |
#endif |
451 |
#if HAVE_STRING_H |
452 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
453 |
# include <memory.h> |
454 |
# endif |
455 |
# include <string.h> |
456 |
#endif |
457 |
#if HAVE_STRINGS_H |
458 |
# include <strings.h> |
459 |
#endif |
460 |
#if HAVE_INTTYPES_H |
461 |
# include <inttypes.h> |
462 |
#else |
463 |
# if HAVE_STDINT_H |
464 |
# include <stdint.h> |
465 |
# endif |
466 |
#endif |
467 |
#if HAVE_UNISTD_H |
468 |
# include <unistd.h> |
469 |
#endif" |
470 |
|
471 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT F77 FFLAGS ac_ct_F77 FLIBS CXX CXXFLAGS ac_ct_CXX LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL HAS_DOXYFILE ROOT_INCLUDES ROOT_LDFLAGS ROOTCINT LIBOBJS LTLIBOBJS' |
472 |
ac_subst_files='' |
473 |
|
474 |
# Initialize some variables set by options. |
475 |
ac_init_help= |
476 |
ac_init_version=false |
477 |
# The variables have the same names as the options, with |
478 |
# dashes changed to underlines. |
479 |
cache_file=/dev/null |
480 |
exec_prefix=NONE |
481 |
no_create= |
482 |
no_recursion= |
483 |
prefix=NONE |
484 |
program_prefix=NONE |
485 |
program_suffix=NONE |
486 |
program_transform_name=s,x,x, |
487 |
silent= |
488 |
site= |
489 |
srcdir= |
490 |
verbose= |
491 |
x_includes=NONE |
492 |
x_libraries=NONE |
493 |
|
494 |
# Installation directory options. |
495 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
496 |
# and all the variables that are supposed to be based on exec_prefix |
497 |
# by default will actually change. |
498 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
499 |
bindir='${exec_prefix}/bin' |
500 |
sbindir='${exec_prefix}/sbin' |
501 |
libexecdir='${exec_prefix}/libexec' |
502 |
datadir='${prefix}/share' |
503 |
sysconfdir='${prefix}/etc' |
504 |
sharedstatedir='${prefix}/com' |
505 |
localstatedir='${prefix}/var' |
506 |
libdir='${exec_prefix}/lib' |
507 |
includedir='${prefix}/include' |
508 |
oldincludedir='/usr/include' |
509 |
infodir='${prefix}/info' |
510 |
mandir='${prefix}/man' |
511 |
|
512 |
ac_prev= |
513 |
for ac_option |
514 |
do |
515 |
# If the previous option needs an argument, assign it. |
516 |
if test -n "$ac_prev"; then |
517 |
eval "$ac_prev=\$ac_option" |
518 |
ac_prev= |
519 |
continue |
520 |
fi |
521 |
|
522 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
523 |
|
524 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
525 |
|
526 |
case $ac_option in |
527 |
|
528 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
529 |
ac_prev=bindir ;; |
530 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
531 |
bindir=$ac_optarg ;; |
532 |
|
533 |
-build | --build | --buil | --bui | --bu) |
534 |
ac_prev=build_alias ;; |
535 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
536 |
build_alias=$ac_optarg ;; |
537 |
|
538 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
539 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
540 |
ac_prev=cache_file ;; |
541 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
542 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
543 |
cache_file=$ac_optarg ;; |
544 |
|
545 |
--config-cache | -C) |
546 |
cache_file=config.cache ;; |
547 |
|
548 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
549 |
ac_prev=datadir ;; |
550 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
551 |
| --da=*) |
552 |
datadir=$ac_optarg ;; |
553 |
|
554 |
-disable-* | --disable-*) |
555 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
556 |
# Reject names that are not valid shell variable names. |
557 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
558 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
559 |
{ (exit 1); exit 1; }; } |
560 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
561 |
eval "enable_$ac_feature=no" ;; |
562 |
|
563 |
-enable-* | --enable-*) |
564 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
565 |
# Reject names that are not valid shell variable names. |
566 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
567 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
568 |
{ (exit 1); exit 1; }; } |
569 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
570 |
case $ac_option in |
571 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
572 |
*) ac_optarg=yes ;; |
573 |
esac |
574 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
575 |
|
576 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
577 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
578 |
| --exec | --exe | --ex) |
579 |
ac_prev=exec_prefix ;; |
580 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
581 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
582 |
| --exec=* | --exe=* | --ex=*) |
583 |
exec_prefix=$ac_optarg ;; |
584 |
|
585 |
-gas | --gas | --ga | --g) |
586 |
# Obsolete; use --with-gas. |
587 |
with_gas=yes ;; |
588 |
|
589 |
-help | --help | --hel | --he | -h) |
590 |
ac_init_help=long ;; |
591 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
592 |
ac_init_help=recursive ;; |
593 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
594 |
ac_init_help=short ;; |
595 |
|
596 |
-host | --host | --hos | --ho) |
597 |
ac_prev=host_alias ;; |
598 |
-host=* | --host=* | --hos=* | --ho=*) |
599 |
host_alias=$ac_optarg ;; |
600 |
|
601 |
-includedir | --includedir | --includedi | --included | --include \ |
602 |
| --includ | --inclu | --incl | --inc) |
603 |
ac_prev=includedir ;; |
604 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
605 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
606 |
includedir=$ac_optarg ;; |
607 |
|
608 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
609 |
ac_prev=infodir ;; |
610 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
611 |
infodir=$ac_optarg ;; |
612 |
|
613 |
-libdir | --libdir | --libdi | --libd) |
614 |
ac_prev=libdir ;; |
615 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
616 |
libdir=$ac_optarg ;; |
617 |
|
618 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
619 |
| --libexe | --libex | --libe) |
620 |
ac_prev=libexecdir ;; |
621 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
622 |
| --libexe=* | --libex=* | --libe=*) |
623 |
libexecdir=$ac_optarg ;; |
624 |
|
625 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
626 |
| --localstate | --localstat | --localsta | --localst \ |
627 |
| --locals | --local | --loca | --loc | --lo) |
628 |
ac_prev=localstatedir ;; |
629 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
630 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
631 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
632 |
localstatedir=$ac_optarg ;; |
633 |
|
634 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
635 |
ac_prev=mandir ;; |
636 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
637 |
mandir=$ac_optarg ;; |
638 |
|
639 |
-nfp | --nfp | --nf) |
640 |
# Obsolete; use --without-fp. |
641 |
with_fp=no ;; |
642 |
|
643 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
644 |
| --no-cr | --no-c | -n) |
645 |
no_create=yes ;; |
646 |
|
647 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
648 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
649 |
no_recursion=yes ;; |
650 |
|
651 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
652 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
653 |
| --oldin | --oldi | --old | --ol | --o) |
654 |
ac_prev=oldincludedir ;; |
655 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
656 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
657 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
658 |
oldincludedir=$ac_optarg ;; |
659 |
|
660 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
661 |
ac_prev=prefix ;; |
662 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
663 |
prefix=$ac_optarg ;; |
664 |
|
665 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
666 |
| --program-pre | --program-pr | --program-p) |
667 |
ac_prev=program_prefix ;; |
668 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
669 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
670 |
program_prefix=$ac_optarg ;; |
671 |
|
672 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
673 |
| --program-suf | --program-su | --program-s) |
674 |
ac_prev=program_suffix ;; |
675 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
676 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
677 |
program_suffix=$ac_optarg ;; |
678 |
|
679 |
-program-transform-name | --program-transform-name \ |
680 |
| --program-transform-nam | --program-transform-na \ |
681 |
| --program-transform-n | --program-transform- \ |
682 |
| --program-transform | --program-transfor \ |
683 |
| --program-transfo | --program-transf \ |
684 |
| --program-trans | --program-tran \ |
685 |
| --progr-tra | --program-tr | --program-t) |
686 |
ac_prev=program_transform_name ;; |
687 |
-program-transform-name=* | --program-transform-name=* \ |
688 |
| --program-transform-nam=* | --program-transform-na=* \ |
689 |
| --program-transform-n=* | --program-transform-=* \ |
690 |
| --program-transform=* | --program-transfor=* \ |
691 |
| --program-transfo=* | --program-transf=* \ |
692 |
| --program-trans=* | --program-tran=* \ |
693 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
694 |
program_transform_name=$ac_optarg ;; |
695 |
|
696 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
697 |
| -silent | --silent | --silen | --sile | --sil) |
698 |
silent=yes ;; |
699 |
|
700 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
701 |
ac_prev=sbindir ;; |
702 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
703 |
| --sbi=* | --sb=*) |
704 |
sbindir=$ac_optarg ;; |
705 |
|
706 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
707 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
708 |
| --sharedst | --shareds | --shared | --share | --shar \ |
709 |
| --sha | --sh) |
710 |
ac_prev=sharedstatedir ;; |
711 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
712 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
713 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
714 |
| --sha=* | --sh=*) |
715 |
sharedstatedir=$ac_optarg ;; |
716 |
|
717 |
-site | --site | --sit) |
718 |
ac_prev=site ;; |
719 |
-site=* | --site=* | --sit=*) |
720 |
site=$ac_optarg ;; |
721 |
|
722 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
723 |
ac_prev=srcdir ;; |
724 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
725 |
srcdir=$ac_optarg ;; |
726 |
|
727 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
728 |
| --syscon | --sysco | --sysc | --sys | --sy) |
729 |
ac_prev=sysconfdir ;; |
730 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
731 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
732 |
sysconfdir=$ac_optarg ;; |
733 |
|
734 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
735 |
ac_prev=target_alias ;; |
736 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
737 |
target_alias=$ac_optarg ;; |
738 |
|
739 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
740 |
verbose=yes ;; |
741 |
|
742 |
-version | --version | --versio | --versi | --vers | -V) |
743 |
ac_init_version=: ;; |
744 |
|
745 |
-with-* | --with-*) |
746 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
747 |
# Reject names that are not valid shell variable names. |
748 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
749 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
750 |
{ (exit 1); exit 1; }; } |
751 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
752 |
case $ac_option in |
753 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
754 |
*) ac_optarg=yes ;; |
755 |
esac |
756 |
eval "with_$ac_package='$ac_optarg'" ;; |
757 |
|
758 |
-without-* | --without-*) |
759 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
760 |
# Reject names that are not valid shell variable names. |
761 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
762 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
763 |
{ (exit 1); exit 1; }; } |
764 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
765 |
eval "with_$ac_package=no" ;; |
766 |
|
767 |
--x) |
768 |
# Obsolete; use --with-x. |
769 |
with_x=yes ;; |
770 |
|
771 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
772 |
| --x-incl | --x-inc | --x-in | --x-i) |
773 |
ac_prev=x_includes ;; |
774 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
775 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
776 |
x_includes=$ac_optarg ;; |
777 |
|
778 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
779 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
780 |
ac_prev=x_libraries ;; |
781 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
782 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
783 |
x_libraries=$ac_optarg ;; |
784 |
|
785 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
786 |
Try \`$0 --help' for more information." >&2 |
787 |
{ (exit 1); exit 1; }; } |
788 |
;; |
789 |
|
790 |
*=*) |
791 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
792 |
# Reject names that are not valid shell variable names. |
793 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
794 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
795 |
{ (exit 1); exit 1; }; } |
796 |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
797 |
eval "$ac_envvar='$ac_optarg'" |
798 |
export $ac_envvar ;; |
799 |
|
800 |
*) |
801 |
# FIXME: should be removed in autoconf 3.0. |
802 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
803 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
804 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
805 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
806 |
;; |
807 |
|
808 |
esac |
809 |
done |
810 |
|
811 |
if test -n "$ac_prev"; then |
812 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
813 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
814 |
{ (exit 1); exit 1; }; } |
815 |
fi |
816 |
|
817 |
# Be sure to have absolute paths. |
818 |
for ac_var in exec_prefix prefix |
819 |
do |
820 |
eval ac_val=$`echo $ac_var` |
821 |
case $ac_val in |
822 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
823 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
824 |
{ (exit 1); exit 1; }; };; |
825 |
esac |
826 |
done |
827 |
|
828 |
# Be sure to have absolute paths. |
829 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
830 |
localstatedir libdir includedir oldincludedir infodir mandir |
831 |
do |
832 |
eval ac_val=$`echo $ac_var` |
833 |
case $ac_val in |
834 |
[\\/$]* | ?:[\\/]* ) ;; |
835 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
836 |
{ (exit 1); exit 1; }; };; |
837 |
esac |
838 |
done |
839 |
|
840 |
# There might be people who depend on the old broken behavior: `$host' |
841 |
# used to hold the argument of --host etc. |
842 |
# FIXME: To remove some day. |
843 |
build=$build_alias |
844 |
host=$host_alias |
845 |
target=$target_alias |
846 |
|
847 |
# FIXME: To remove some day. |
848 |
if test "x$host_alias" != x; then |
849 |
if test "x$build_alias" = x; then |
850 |
cross_compiling=maybe |
851 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
852 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
853 |
elif test "x$build_alias" != "x$host_alias"; then |
854 |
cross_compiling=yes |
855 |
fi |
856 |
fi |
857 |
|
858 |
ac_tool_prefix= |
859 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
860 |
|
861 |
test "$silent" = yes && exec 6>/dev/null |
862 |
|
863 |
|
864 |
# Find the source files, if location was not specified. |
865 |
if test -z "$srcdir"; then |
866 |
ac_srcdir_defaulted=yes |
867 |
# Try the directory containing this script, then its parent. |
868 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
869 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
870 |
X"$0" : 'X\(//\)[^/]' \| \ |
871 |
X"$0" : 'X\(//\)$' \| \ |
872 |
X"$0" : 'X\(/\)' \| \ |
873 |
. : '\(.\)' 2>/dev/null || |
874 |
echo X"$0" | |
875 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
876 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
877 |
/^X\(\/\/\)$/{ s//\1/; q; } |
878 |
/^X\(\/\).*/{ s//\1/; q; } |
879 |
s/.*/./; q'` |
880 |
srcdir=$ac_confdir |
881 |
if test ! -r $srcdir/$ac_unique_file; then |
882 |
srcdir=.. |
883 |
fi |
884 |
else |
885 |
ac_srcdir_defaulted=no |
886 |
fi |
887 |
if test ! -r $srcdir/$ac_unique_file; then |
888 |
if test "$ac_srcdir_defaulted" = yes; then |
889 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
890 |
{ (exit 1); exit 1; }; } |
891 |
else |
892 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
893 |
{ (exit 1); exit 1; }; } |
894 |
fi |
895 |
fi |
896 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
897 |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
898 |
{ (exit 1); exit 1; }; } |
899 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
900 |
ac_env_build_alias_set=${build_alias+set} |
901 |
ac_env_build_alias_value=$build_alias |
902 |
ac_cv_env_build_alias_set=${build_alias+set} |
903 |
ac_cv_env_build_alias_value=$build_alias |
904 |
ac_env_host_alias_set=${host_alias+set} |
905 |
ac_env_host_alias_value=$host_alias |
906 |
ac_cv_env_host_alias_set=${host_alias+set} |
907 |
ac_cv_env_host_alias_value=$host_alias |
908 |
ac_env_target_alias_set=${target_alias+set} |
909 |
ac_env_target_alias_value=$target_alias |
910 |
ac_cv_env_target_alias_set=${target_alias+set} |
911 |
ac_cv_env_target_alias_value=$target_alias |
912 |
ac_env_CC_set=${CC+set} |
913 |
ac_env_CC_value=$CC |
914 |
ac_cv_env_CC_set=${CC+set} |
915 |
ac_cv_env_CC_value=$CC |
916 |
ac_env_CFLAGS_set=${CFLAGS+set} |
917 |
ac_env_CFLAGS_value=$CFLAGS |
918 |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
919 |
ac_cv_env_CFLAGS_value=$CFLAGS |
920 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
921 |
ac_env_LDFLAGS_value=$LDFLAGS |
922 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
923 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
924 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
925 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
926 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
927 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
928 |
ac_env_F77_set=${F77+set} |
929 |
ac_env_F77_value=$F77 |
930 |
ac_cv_env_F77_set=${F77+set} |
931 |
ac_cv_env_F77_value=$F77 |
932 |
ac_env_FFLAGS_set=${FFLAGS+set} |
933 |
ac_env_FFLAGS_value=$FFLAGS |
934 |
ac_cv_env_FFLAGS_set=${FFLAGS+set} |
935 |
ac_cv_env_FFLAGS_value=$FFLAGS |
936 |
ac_env_CXX_set=${CXX+set} |
937 |
ac_env_CXX_value=$CXX |
938 |
ac_cv_env_CXX_set=${CXX+set} |
939 |
ac_cv_env_CXX_value=$CXX |
940 |
ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
941 |
ac_env_CXXFLAGS_value=$CXXFLAGS |
942 |
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
943 |
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
944 |
ac_env_CPP_set=${CPP+set} |
945 |
ac_env_CPP_value=$CPP |
946 |
ac_cv_env_CPP_set=${CPP+set} |
947 |
ac_cv_env_CPP_value=$CPP |
948 |
|
949 |
# |
950 |
# Report the --help message. |
951 |
# |
952 |
if test "$ac_init_help" = "long"; then |
953 |
# Omit some internal or obsolete options to make the list less imposing. |
954 |
# This message is too long to be a string in the A/UX 3.1 sh. |
955 |
cat <<_ACEOF |
956 |
\`configure' configures this package to adapt to many kinds of systems. |
957 |
|
958 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
959 |
|
960 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
961 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
962 |
|
963 |
Defaults for the options are specified in brackets. |
964 |
|
965 |
Configuration: |
966 |
-h, --help display this help and exit |
967 |
--help=short display options specific to this package |
968 |
--help=recursive display the short help of all the included packages |
969 |
-V, --version display version information and exit |
970 |
-q, --quiet, --silent do not print \`checking...' messages |
971 |
--cache-file=FILE cache test results in FILE [disabled] |
972 |
-C, --config-cache alias for \`--cache-file=config.cache' |
973 |
-n, --no-create do not create output files |
974 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
975 |
|
976 |
_ACEOF |
977 |
|
978 |
cat <<_ACEOF |
979 |
Installation directories: |
980 |
--prefix=PREFIX install architecture-independent files in PREFIX |
981 |
[$ac_default_prefix] |
982 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
983 |
[PREFIX] |
984 |
|
985 |
By default, \`make install' will install all the files in |
986 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
987 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
988 |
for instance \`--prefix=\$HOME'. |
989 |
|
990 |
For better control, use the options below. |
991 |
|
992 |
Fine tuning of the installation directories: |
993 |
--bindir=DIR user executables [EPREFIX/bin] |
994 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
995 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
996 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
997 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
998 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
999 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1000 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1001 |
--includedir=DIR C header files [PREFIX/include] |
1002 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1003 |
--infodir=DIR info documentation [PREFIX/info] |
1004 |
--mandir=DIR man documentation [PREFIX/man] |
1005 |
_ACEOF |
1006 |
|
1007 |
cat <<\_ACEOF |
1008 |
|
1009 |
Program names: |
1010 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
1011 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
1012 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1013 |
|
1014 |
System types: |
1015 |
--build=BUILD configure for building on BUILD [guessed] |
1016 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
1017 |
_ACEOF |
1018 |
fi |
1019 |
|
1020 |
if test -n "$ac_init_help"; then |
1021 |
|
1022 |
cat <<\_ACEOF |
1023 |
|
1024 |
Optional Features: |
1025 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1026 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1027 |
--enable-shared=PKGS build shared libraries default=yes |
1028 |
--enable-static=PKGS build static libraries default=yes |
1029 |
--enable-fast-install=PKGS optimize for fast installation default=yes |
1030 |
--disable-libtool-lock avoid locking (might break parallel builds) |
1031 |
|
1032 |
Optional Packages: |
1033 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1034 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1035 |
--with-gnu-ld assume the C compiler uses GNU ld default=no |
1036 |
--with-pic try to use only PIC/non-PIC objects default=use both |
1037 |
--with-root=path Use the specified ROOT directory |
1038 |
--with-log4cpp=path Use the specified directroy for log4cpp |
1039 |
|
1040 |
Some influential environment variables: |
1041 |
CC C compiler command |
1042 |
CFLAGS C compiler flags |
1043 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1044 |
nonstandard directory <lib dir> |
1045 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1046 |
headers in a nonstandard directory <include dir> |
1047 |
F77 Fortran 77 compiler command |
1048 |
FFLAGS Fortran 77 compiler flags |
1049 |
CXX C++ compiler command |
1050 |
CXXFLAGS C++ compiler flags |
1051 |
CPP C preprocessor |
1052 |
|
1053 |
Use these variables to override the choices made by `configure' or to help |
1054 |
it to find libraries and programs with nonstandard names/locations. |
1055 |
|
1056 |
_ACEOF |
1057 |
fi |
1058 |
|
1059 |
if test "$ac_init_help" = "recursive"; then |
1060 |
# If there are subdirs, report their specific --help. |
1061 |
ac_popdir=`pwd` |
1062 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1063 |
test -d $ac_dir || continue |
1064 |
ac_builddir=. |
1065 |
|
1066 |
if test "$ac_dir" != .; then |
1067 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1068 |
# A "../" for each directory in $ac_dir_suffix. |
1069 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
1070 |
else |
1071 |
ac_dir_suffix= ac_top_builddir= |
1072 |
fi |
1073 |
|
1074 |
case $srcdir in |
1075 |
.) # No --srcdir option. We are building in place. |
1076 |
ac_srcdir=. |
1077 |
if test -z "$ac_top_builddir"; then |
1078 |
ac_top_srcdir=. |
1079 |
else |
1080 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
1081 |
fi ;; |
1082 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
1083 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1084 |
ac_top_srcdir=$srcdir ;; |
1085 |
*) # Relative path. |
1086 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
1087 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
1088 |
esac |
1089 |
|
1090 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
1091 |
# the directories may not exist. |
1092 |
case `pwd` in |
1093 |
.) ac_abs_builddir="$ac_dir";; |
1094 |
*) |
1095 |
case "$ac_dir" in |
1096 |
.) ac_abs_builddir=`pwd`;; |
1097 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
1098 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
1099 |
esac;; |
1100 |
esac |
1101 |
case $ac_abs_builddir in |
1102 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
1103 |
*) |
1104 |
case ${ac_top_builddir}. in |
1105 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
1106 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
1107 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
1108 |
esac;; |
1109 |
esac |
1110 |
case $ac_abs_builddir in |
1111 |
.) ac_abs_srcdir=$ac_srcdir;; |
1112 |
*) |
1113 |
case $ac_srcdir in |
1114 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
1115 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
1116 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
1117 |
esac;; |
1118 |
esac |
1119 |
case $ac_abs_builddir in |
1120 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
1121 |
*) |
1122 |
case $ac_top_srcdir in |
1123 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
1124 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
1125 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
1126 |
esac;; |
1127 |
esac |
1128 |
|
1129 |
cd $ac_dir |
1130 |
# Check for guested configure; otherwise get Cygnus style configure. |
1131 |
if test -f $ac_srcdir/configure.gnu; then |
1132 |
echo |
1133 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
1134 |
elif test -f $ac_srcdir/configure; then |
1135 |
echo |
1136 |
$SHELL $ac_srcdir/configure --help=recursive |
1137 |
elif test -f $ac_srcdir/configure.ac || |
1138 |
test -f $ac_srcdir/configure.in; then |
1139 |
echo |
1140 |
$ac_configure --help |
1141 |
else |
1142 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1143 |
fi |
1144 |
cd $ac_popdir |
1145 |
done |
1146 |
fi |
1147 |
|
1148 |
test -n "$ac_init_help" && exit 0 |
1149 |
if $ac_init_version; then |
1150 |
cat <<\_ACEOF |
1151 |
|
1152 |
Copyright (C) 2003 Free Software Foundation, Inc. |
1153 |
This configure script is free software; the Free Software Foundation |
1154 |
gives unlimited permission to copy, distribute and modify it. |
1155 |
_ACEOF |
1156 |
exit 0 |
1157 |
fi |
1158 |
exec 5>config.log |
1159 |
cat >&5 <<_ACEOF |
1160 |
This file contains any messages produced by compilers while |
1161 |
running configure, to aid debugging if configure makes a mistake. |
1162 |
|
1163 |
It was created by $as_me, which was |
1164 |
generated by GNU Autoconf 2.59. Invocation command line was |
1165 |
|
1166 |
$ $0 $@ |
1167 |
|
1168 |
_ACEOF |
1169 |
{ |
1170 |
cat <<_ASUNAME |
1171 |
## --------- ## |
1172 |
## Platform. ## |
1173 |
## --------- ## |
1174 |
|
1175 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1176 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1177 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1178 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1179 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1180 |
|
1181 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1182 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1183 |
|
1184 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1185 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1186 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1187 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1188 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1189 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1190 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1191 |
|
1192 |
_ASUNAME |
1193 |
|
1194 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1195 |
for as_dir in $PATH |
1196 |
do |
1197 |
IFS=$as_save_IFS |
1198 |
test -z "$as_dir" && as_dir=. |
1199 |
echo "PATH: $as_dir" |
1200 |
done |
1201 |
|
1202 |
} >&5 |
1203 |
|
1204 |
cat >&5 <<_ACEOF |
1205 |
|
1206 |
|
1207 |
## ----------- ## |
1208 |
## Core tests. ## |
1209 |
## ----------- ## |
1210 |
|
1211 |
_ACEOF |
1212 |
|
1213 |
|
1214 |
# Keep a trace of the command line. |
1215 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1216 |
# Strip out --silent because we don't want to record it for future runs. |
1217 |
# Also quote any args containing shell meta-characters. |
1218 |
# Make two passes to allow for proper duplicate-argument suppression. |
1219 |
ac_configure_args= |
1220 |
ac_configure_args0= |
1221 |
ac_configure_args1= |
1222 |
ac_sep= |
1223 |
ac_must_keep_next=false |
1224 |
for ac_pass in 1 2 |
1225 |
do |
1226 |
for ac_arg |
1227 |
do |
1228 |
case $ac_arg in |
1229 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1230 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1231 |
| -silent | --silent | --silen | --sile | --sil) |
1232 |
continue ;; |
1233 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1234 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1235 |
esac |
1236 |
case $ac_pass in |
1237 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1238 |
2) |
1239 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1240 |
if test $ac_must_keep_next = true; then |
1241 |
ac_must_keep_next=false # Got value, back to normal. |
1242 |
else |
1243 |
case $ac_arg in |
1244 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1245 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1246 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1247 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1248 |
case "$ac_configure_args0 " in |
1249 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1250 |
esac |
1251 |
;; |
1252 |
-* ) ac_must_keep_next=true ;; |
1253 |
esac |
1254 |
fi |
1255 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1256 |
# Get rid of the leading space. |
1257 |
ac_sep=" " |
1258 |
;; |
1259 |
esac |
1260 |
done |
1261 |
done |
1262 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1263 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1264 |
|
1265 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1266 |
# config.log. We remove comments because anyway the quotes in there |
1267 |
# would cause problems or look ugly. |
1268 |
# WARNING: Be sure not to use single quotes in there, as some shells, |
1269 |
# such as our DU 5.0 friend, will then `close' the trap. |
1270 |
trap 'exit_status=$? |
1271 |
# Save into config.log some information that might help in debugging. |
1272 |
{ |
1273 |
echo |
1274 |
|
1275 |
cat <<\_ASBOX |
1276 |
## ---------------- ## |
1277 |
## Cache variables. ## |
1278 |
## ---------------- ## |
1279 |
_ASBOX |
1280 |
echo |
1281 |
# The following way of writing the cache mishandles newlines in values, |
1282 |
{ |
1283 |
(set) 2>&1 | |
1284 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1285 |
*ac_space=\ *) |
1286 |
sed -n \ |
1287 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1288 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1289 |
;; |
1290 |
*) |
1291 |
sed -n \ |
1292 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1293 |
;; |
1294 |
esac; |
1295 |
} |
1296 |
echo |
1297 |
|
1298 |
cat <<\_ASBOX |
1299 |
## ----------------- ## |
1300 |
## Output variables. ## |
1301 |
## ----------------- ## |
1302 |
_ASBOX |
1303 |
echo |
1304 |
for ac_var in $ac_subst_vars |
1305 |
do |
1306 |
eval ac_val=$`echo $ac_var` |
1307 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1308 |
done | sort |
1309 |
echo |
1310 |
|
1311 |
if test -n "$ac_subst_files"; then |
1312 |
cat <<\_ASBOX |
1313 |
## ------------- ## |
1314 |
## Output files. ## |
1315 |
## ------------- ## |
1316 |
_ASBOX |
1317 |
echo |
1318 |
for ac_var in $ac_subst_files |
1319 |
do |
1320 |
eval ac_val=$`echo $ac_var` |
1321 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1322 |
done | sort |
1323 |
echo |
1324 |
fi |
1325 |
|
1326 |
if test -s confdefs.h; then |
1327 |
cat <<\_ASBOX |
1328 |
## ----------- ## |
1329 |
## confdefs.h. ## |
1330 |
## ----------- ## |
1331 |
_ASBOX |
1332 |
echo |
1333 |
sed "/^$/d" confdefs.h | sort |
1334 |
echo |
1335 |
fi |
1336 |
test "$ac_signal" != 0 && |
1337 |
echo "$as_me: caught signal $ac_signal" |
1338 |
echo "$as_me: exit $exit_status" |
1339 |
} >&5 |
1340 |
rm -f core *.core && |
1341 |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1342 |
exit $exit_status |
1343 |
' 0 |
1344 |
for ac_signal in 1 2 13 15; do |
1345 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1346 |
done |
1347 |
ac_signal=0 |
1348 |
|
1349 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1350 |
rm -rf conftest* confdefs.h |
1351 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1352 |
echo >confdefs.h |
1353 |
|
1354 |
# Predefined preprocessor variables. |
1355 |
|
1356 |
cat >>confdefs.h <<_ACEOF |
1357 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1358 |
_ACEOF |
1359 |
|
1360 |
|
1361 |
cat >>confdefs.h <<_ACEOF |
1362 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1363 |
_ACEOF |
1364 |
|
1365 |
|
1366 |
cat >>confdefs.h <<_ACEOF |
1367 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1368 |
_ACEOF |
1369 |
|
1370 |
|
1371 |
cat >>confdefs.h <<_ACEOF |
1372 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
1373 |
_ACEOF |
1374 |
|
1375 |
|
1376 |
cat >>confdefs.h <<_ACEOF |
1377 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1378 |
_ACEOF |
1379 |
|
1380 |
|
1381 |
# Let the site file select an alternate cache file if it wants to. |
1382 |
# Prefer explicitly selected file to automatically selected ones. |
1383 |
if test -z "$CONFIG_SITE"; then |
1384 |
if test "x$prefix" != xNONE; then |
1385 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1386 |
else |
1387 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1388 |
fi |
1389 |
fi |
1390 |
for ac_site_file in $CONFIG_SITE; do |
1391 |
if test -r "$ac_site_file"; then |
1392 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1393 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
1394 |
sed 's/^/| /' "$ac_site_file" >&5 |
1395 |
. "$ac_site_file" |
1396 |
fi |
1397 |
done |
1398 |
|
1399 |
if test -r "$cache_file"; then |
1400 |
# Some versions of bash will fail to source /dev/null (special |
1401 |
# files actually), so we avoid doing that. |
1402 |
if test -f "$cache_file"; then |
1403 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1404 |
echo "$as_me: loading cache $cache_file" >&6;} |
1405 |
case $cache_file in |
1406 |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
1407 |
*) . ./$cache_file;; |
1408 |
esac |
1409 |
fi |
1410 |
else |
1411 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1412 |
echo "$as_me: creating cache $cache_file" >&6;} |
1413 |
>$cache_file |
1414 |
fi |
1415 |
|
1416 |
# Check that the precious variables saved in the cache have kept the same |
1417 |
# value. |
1418 |
ac_cache_corrupted=false |
1419 |
for ac_var in `(set) 2>&1 | |
1420 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1421 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1422 |
eval ac_new_set=\$ac_env_${ac_var}_set |
1423 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1424 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
1425 |
case $ac_old_set,$ac_new_set in |
1426 |
set,) |
1427 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1428 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1429 |
ac_cache_corrupted=: ;; |
1430 |
,set) |
1431 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1432 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1433 |
ac_cache_corrupted=: ;; |
1434 |
,);; |
1435 |
*) |
1436 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
1437 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1438 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1439 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1440 |
echo "$as_me: former value: $ac_old_val" >&2;} |
1441 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1442 |
echo "$as_me: current value: $ac_new_val" >&2;} |
1443 |
ac_cache_corrupted=: |
1444 |
fi;; |
1445 |
esac |
1446 |
# Pass precious variables to config.status. |
1447 |
if test "$ac_new_set" = set; then |
1448 |
case $ac_new_val in |
1449 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1450 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1451 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1452 |
esac |
1453 |
case " $ac_configure_args " in |
1454 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1455 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1456 |
esac |
1457 |
fi |
1458 |
done |
1459 |
if $ac_cache_corrupted; then |
1460 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1461 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1462 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1463 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1464 |
{ (exit 1); exit 1; }; } |
1465 |
fi |
1466 |
|
1467 |
ac_ext=c |
1468 |
ac_cpp='$CPP $CPPFLAGS' |
1469 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1470 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1471 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1472 |
|
1473 |
|
1474 |
|
1475 |
|
1476 |
|
1477 |
|
1478 |
|
1479 |
|
1480 |
|
1481 |
|
1482 |
|
1483 |
|
1484 |
|
1485 |
|
1486 |
|
1487 |
|
1488 |
|
1489 |
|
1490 |
|
1491 |
|
1492 |
am__api_version="1.4" |
1493 |
ac_aux_dir= |
1494 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1495 |
if test -f $ac_dir/install-sh; then |
1496 |
ac_aux_dir=$ac_dir |
1497 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
1498 |
break |
1499 |
elif test -f $ac_dir/install.sh; then |
1500 |
ac_aux_dir=$ac_dir |
1501 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
1502 |
break |
1503 |
elif test -f $ac_dir/shtool; then |
1504 |
ac_aux_dir=$ac_dir |
1505 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
1506 |
break |
1507 |
fi |
1508 |
done |
1509 |
if test -z "$ac_aux_dir"; then |
1510 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1511 |
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1512 |
{ (exit 1); exit 1; }; } |
1513 |
fi |
1514 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1515 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1516 |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1517 |
|
1518 |
# Find a good install program. We prefer a C program (faster), |
1519 |
# so one script is as good as another. But avoid the broken or |
1520 |
# incompatible versions: |
1521 |
# SysV /etc/install, /usr/sbin/install |
1522 |
# SunOS /usr/etc/install |
1523 |
# IRIX /sbin/install |
1524 |
# AIX /bin/install |
1525 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
1526 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1527 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1528 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1529 |
# OS/2's system install, which has a completely different semantic |
1530 |
# ./install, which can be erroneously created by make from ./install.sh. |
1531 |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1532 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
1533 |
if test -z "$INSTALL"; then |
1534 |
if test "${ac_cv_path_install+set}" = set; then |
1535 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1536 |
else |
1537 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1538 |
for as_dir in $PATH |
1539 |
do |
1540 |
IFS=$as_save_IFS |
1541 |
test -z "$as_dir" && as_dir=. |
1542 |
# Account for people who put trailing slashes in PATH elements. |
1543 |
case $as_dir/ in |
1544 |
./ | .// | /cC/* | \ |
1545 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1546 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1547 |
/usr/ucb/* ) ;; |
1548 |
*) |
1549 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
1550 |
# Don't use installbsd from OSF since it installs stuff as root |
1551 |
# by default. |
1552 |
for ac_prog in ginstall scoinst install; do |
1553 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1554 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1555 |
if test $ac_prog = install && |
1556 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1557 |
# AIX install. It has an incompatible calling convention. |
1558 |
: |
1559 |
elif test $ac_prog = install && |
1560 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1561 |
# program-specific install script used by HP pwplus--don't use. |
1562 |
: |
1563 |
else |
1564 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1565 |
break 3 |
1566 |
fi |
1567 |
fi |
1568 |
done |
1569 |
done |
1570 |
;; |
1571 |
esac |
1572 |
done |
1573 |
|
1574 |
|
1575 |
fi |
1576 |
if test "${ac_cv_path_install+set}" = set; then |
1577 |
INSTALL=$ac_cv_path_install |
1578 |
else |
1579 |
# As a last resort, use the slow shell script. We don't cache a |
1580 |
# path for INSTALL within a source directory, because that will |
1581 |
# break other packages using the cache if that directory is |
1582 |
# removed, or if the path is relative. |
1583 |
INSTALL=$ac_install_sh |
1584 |
fi |
1585 |
fi |
1586 |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1587 |
echo "${ECHO_T}$INSTALL" >&6 |
1588 |
|
1589 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1590 |
# It thinks the first close brace ends the variable substitution. |
1591 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
1592 |
|
1593 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
1594 |
|
1595 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1596 |
|
1597 |
echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1598 |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1599 |
# Just in case |
1600 |
sleep 1 |
1601 |
echo timestamp > conftestfile |
1602 |
# Do `set' in a subshell so we don't clobber the current shell's |
1603 |
# arguments. Must try -L first in case configure is actually a |
1604 |
# symlink; some systems play weird games with the mod time of symlinks |
1605 |
# (eg FreeBSD returns the mod time of the symlink's containing |
1606 |
# directory). |
1607 |
if ( |
1608 |
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
1609 |
if test "$*" = "X"; then |
1610 |
# -L didn't work. |
1611 |
set X `ls -t $srcdir/configure conftestfile` |
1612 |
fi |
1613 |
if test "$*" != "X $srcdir/configure conftestfile" \ |
1614 |
&& test "$*" != "X conftestfile $srcdir/configure"; then |
1615 |
|
1616 |
# If neither matched, then we have a broken ls. This can happen |
1617 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
1618 |
# broken ls alias from the environment. This has actually |
1619 |
# happened. Such a system could not be considered "sane". |
1620 |
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1621 |
alias in your environment" >&5 |
1622 |
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
1623 |
alias in your environment" >&2;} |
1624 |
{ (exit 1); exit 1; }; } |
1625 |
fi |
1626 |
|
1627 |
test "$2" = conftestfile |
1628 |
) |
1629 |
then |
1630 |
# Ok. |
1631 |
: |
1632 |
else |
1633 |
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1634 |
Check your system clock" >&5 |
1635 |
echo "$as_me: error: newly created file is older than distributed files! |
1636 |
Check your system clock" >&2;} |
1637 |
{ (exit 1); exit 1; }; } |
1638 |
fi |
1639 |
rm -f conftest* |
1640 |
echo "$as_me:$LINENO: result: yes" >&5 |
1641 |
echo "${ECHO_T}yes" >&6 |
1642 |
test "$program_prefix" != NONE && |
1643 |
program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1644 |
# Use a double $ so make ignores it. |
1645 |
test "$program_suffix" != NONE && |
1646 |
program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1647 |
# Double any \ or $. echo might interpret backslashes. |
1648 |
# By default was `s,x,x', remove it if useless. |
1649 |
cat <<\_ACEOF >conftest.sed |
1650 |
s/[\\$]/&&/g;s/;s,x,x,$// |
1651 |
_ACEOF |
1652 |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1653 |
rm conftest.sed |
1654 |
|
1655 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1656 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1657 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1658 |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1659 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1660 |
else |
1661 |
cat >conftest.make <<\_ACEOF |
1662 |
all: |
1663 |
@echo 'ac_maketemp="$(MAKE)"' |
1664 |
_ACEOF |
1665 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1666 |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1667 |
if test -n "$ac_maketemp"; then |
1668 |
eval ac_cv_prog_make_${ac_make}_set=yes |
1669 |
else |
1670 |
eval ac_cv_prog_make_${ac_make}_set=no |
1671 |
fi |
1672 |
rm -f conftest.make |
1673 |
fi |
1674 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1675 |
echo "$as_me:$LINENO: result: yes" >&5 |
1676 |
echo "${ECHO_T}yes" >&6 |
1677 |
SET_MAKE= |
1678 |
else |
1679 |
echo "$as_me:$LINENO: result: no" >&5 |
1680 |
echo "${ECHO_T}no" >&6 |
1681 |
SET_MAKE="MAKE=${MAKE-make}" |
1682 |
fi |
1683 |
|
1684 |
|
1685 |
PACKAGE=yoda |
1686 |
|
1687 |
VERSION=0.1.0 |
1688 |
|
1689 |
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
1690 |
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1691 |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1692 |
{ (exit 1); exit 1; }; } |
1693 |
fi |
1694 |
|
1695 |
cat >>confdefs.h <<_ACEOF |
1696 |
#define PACKAGE "$PACKAGE" |
1697 |
_ACEOF |
1698 |
|
1699 |
|
1700 |
cat >>confdefs.h <<_ACEOF |
1701 |
#define VERSION "$VERSION" |
1702 |
_ACEOF |
1703 |
|
1704 |
|
1705 |
|
1706 |
missing_dir=`cd $ac_aux_dir && pwd` |
1707 |
echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 |
1708 |
echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 |
1709 |
# Run test in a subshell; some versions of sh will print an error if |
1710 |
# an executable is not found, even if stderr is redirected. |
1711 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
1712 |
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
1713 |
ACLOCAL=aclocal-${am__api_version} |
1714 |
echo "$as_me:$LINENO: result: found" >&5 |
1715 |
echo "${ECHO_T}found" >&6 |
1716 |
else |
1717 |
ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" |
1718 |
echo "$as_me:$LINENO: result: missing" >&5 |
1719 |
echo "${ECHO_T}missing" >&6 |
1720 |
fi |
1721 |
|
1722 |
echo "$as_me:$LINENO: checking for working autoconf" >&5 |
1723 |
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
1724 |
# Run test in a subshell; some versions of sh will print an error if |
1725 |
# an executable is not found, even if stderr is redirected. |
1726 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
1727 |
if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
1728 |
AUTOCONF=autoconf |
1729 |
echo "$as_me:$LINENO: result: found" >&5 |
1730 |
echo "${ECHO_T}found" >&6 |
1731 |
else |
1732 |
AUTOCONF="$missing_dir/missing autoconf" |
1733 |
echo "$as_me:$LINENO: result: missing" >&5 |
1734 |
echo "${ECHO_T}missing" >&6 |
1735 |
fi |
1736 |
|
1737 |
echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 |
1738 |
echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 |
1739 |
# Run test in a subshell; some versions of sh will print an error if |
1740 |
# an executable is not found, even if stderr is redirected. |
1741 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
1742 |
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
1743 |
AUTOMAKE=automake-${am__api_version} |
1744 |
echo "$as_me:$LINENO: result: found" >&5 |
1745 |
echo "${ECHO_T}found" >&6 |
1746 |
else |
1747 |
AUTOMAKE="$missing_dir/missing automake-${am__api_version}" |
1748 |
echo "$as_me:$LINENO: result: missing" >&5 |
1749 |
echo "${ECHO_T}missing" >&6 |
1750 |
fi |
1751 |
|
1752 |
echo "$as_me:$LINENO: checking for working autoheader" >&5 |
1753 |
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
1754 |
# Run test in a subshell; some versions of sh will print an error if |
1755 |
# an executable is not found, even if stderr is redirected. |
1756 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
1757 |
if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
1758 |
AUTOHEADER=autoheader |
1759 |
echo "$as_me:$LINENO: result: found" >&5 |
1760 |
echo "${ECHO_T}found" >&6 |
1761 |
else |
1762 |
AUTOHEADER="$missing_dir/missing autoheader" |
1763 |
echo "$as_me:$LINENO: result: missing" >&5 |
1764 |
echo "${ECHO_T}missing" >&6 |
1765 |
fi |
1766 |
|
1767 |
echo "$as_me:$LINENO: checking for working makeinfo" >&5 |
1768 |
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
1769 |
# Run test in a subshell; some versions of sh will print an error if |
1770 |
# an executable is not found, even if stderr is redirected. |
1771 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
1772 |
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
1773 |
MAKEINFO=makeinfo |
1774 |
echo "$as_me:$LINENO: result: found" >&5 |
1775 |
echo "${ECHO_T}found" >&6 |
1776 |
else |
1777 |
MAKEINFO="$missing_dir/missing makeinfo" |
1778 |
echo "$as_me:$LINENO: result: missing" >&5 |
1779 |
echo "${ECHO_T}missing" >&6 |
1780 |
fi |
1781 |
|
1782 |
|
1783 |
|
1784 |
|
1785 |
ac_config_headers="$ac_config_headers config.h" |
1786 |
|
1787 |
ac_config_commands="$ac_config_commands default-1" |
1788 |
|
1789 |
|
1790 |
|
1791 |
|
1792 |
# Make sure we can run config.sub. |
1793 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
1794 |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
1795 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1796 |
{ (exit 1); exit 1; }; } |
1797 |
|
1798 |
echo "$as_me:$LINENO: checking build system type" >&5 |
1799 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1800 |
if test "${ac_cv_build+set}" = set; then |
1801 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1802 |
else |
1803 |
ac_cv_build_alias=$build_alias |
1804 |
test -z "$ac_cv_build_alias" && |
1805 |
ac_cv_build_alias=`$ac_config_guess` |
1806 |
test -z "$ac_cv_build_alias" && |
1807 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1808 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1809 |
{ (exit 1); exit 1; }; } |
1810 |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1811 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1812 |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
1813 |
{ (exit 1); exit 1; }; } |
1814 |
|
1815 |
fi |
1816 |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1817 |
echo "${ECHO_T}$ac_cv_build" >&6 |
1818 |
build=$ac_cv_build |
1819 |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1820 |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1821 |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1822 |
|
1823 |
|
1824 |
echo "$as_me:$LINENO: checking host system type" >&5 |
1825 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1826 |
if test "${ac_cv_host+set}" = set; then |
1827 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1828 |
else |
1829 |
ac_cv_host_alias=$host_alias |
1830 |
test -z "$ac_cv_host_alias" && |
1831 |
ac_cv_host_alias=$ac_cv_build_alias |
1832 |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
1833 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
1834 |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1835 |
{ (exit 1); exit 1; }; } |
1836 |
|
1837 |
fi |
1838 |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1839 |
echo "${ECHO_T}$ac_cv_host" >&6 |
1840 |
host=$ac_cv_host |
1841 |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1842 |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1843 |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1844 |
|
1845 |
|
1846 |
|
1847 |
ac_ext=c |
1848 |
ac_cpp='$CPP $CPPFLAGS' |
1849 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1850 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1851 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1852 |
if test -n "$ac_tool_prefix"; then |
1853 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1854 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1855 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1856 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1857 |
if test "${ac_cv_prog_CC+set}" = set; then |
1858 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1859 |
else |
1860 |
if test -n "$CC"; then |
1861 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1862 |
else |
1863 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1864 |
for as_dir in $PATH |
1865 |
do |
1866 |
IFS=$as_save_IFS |
1867 |
test -z "$as_dir" && as_dir=. |
1868 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1869 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1870 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1871 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1872 |
break 2 |
1873 |
fi |
1874 |
done |
1875 |
done |
1876 |
|
1877 |
fi |
1878 |
fi |
1879 |
CC=$ac_cv_prog_CC |
1880 |
if test -n "$CC"; then |
1881 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1882 |
echo "${ECHO_T}$CC" >&6 |
1883 |
else |
1884 |
echo "$as_me:$LINENO: result: no" >&5 |
1885 |
echo "${ECHO_T}no" >&6 |
1886 |
fi |
1887 |
|
1888 |
fi |
1889 |
if test -z "$ac_cv_prog_CC"; then |
1890 |
ac_ct_CC=$CC |
1891 |
# Extract the first word of "gcc", so it can be a program name with args. |
1892 |
set dummy gcc; ac_word=$2 |
1893 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1894 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1895 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1896 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1897 |
else |
1898 |
if test -n "$ac_ct_CC"; then |
1899 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1900 |
else |
1901 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1902 |
for as_dir in $PATH |
1903 |
do |
1904 |
IFS=$as_save_IFS |
1905 |
test -z "$as_dir" && as_dir=. |
1906 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1907 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1908 |
ac_cv_prog_ac_ct_CC="gcc" |
1909 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1910 |
break 2 |
1911 |
fi |
1912 |
done |
1913 |
done |
1914 |
|
1915 |
fi |
1916 |
fi |
1917 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1918 |
if test -n "$ac_ct_CC"; then |
1919 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1920 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1921 |
else |
1922 |
echo "$as_me:$LINENO: result: no" >&5 |
1923 |
echo "${ECHO_T}no" >&6 |
1924 |
fi |
1925 |
|
1926 |
CC=$ac_ct_CC |
1927 |
else |
1928 |
CC="$ac_cv_prog_CC" |
1929 |
fi |
1930 |
|
1931 |
if test -z "$CC"; then |
1932 |
if test -n "$ac_tool_prefix"; then |
1933 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1934 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1935 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1936 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1937 |
if test "${ac_cv_prog_CC+set}" = set; then |
1938 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1939 |
else |
1940 |
if test -n "$CC"; then |
1941 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1942 |
else |
1943 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1944 |
for as_dir in $PATH |
1945 |
do |
1946 |
IFS=$as_save_IFS |
1947 |
test -z "$as_dir" && as_dir=. |
1948 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1949 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1950 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
1951 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1952 |
break 2 |
1953 |
fi |
1954 |
done |
1955 |
done |
1956 |
|
1957 |
fi |
1958 |
fi |
1959 |
CC=$ac_cv_prog_CC |
1960 |
if test -n "$CC"; then |
1961 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1962 |
echo "${ECHO_T}$CC" >&6 |
1963 |
else |
1964 |
echo "$as_me:$LINENO: result: no" >&5 |
1965 |
echo "${ECHO_T}no" >&6 |
1966 |
fi |
1967 |
|
1968 |
fi |
1969 |
if test -z "$ac_cv_prog_CC"; then |
1970 |
ac_ct_CC=$CC |
1971 |
# Extract the first word of "cc", so it can be a program name with args. |
1972 |
set dummy cc; ac_word=$2 |
1973 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1974 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1975 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1976 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1977 |
else |
1978 |
if test -n "$ac_ct_CC"; then |
1979 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1980 |
else |
1981 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1982 |
for as_dir in $PATH |
1983 |
do |
1984 |
IFS=$as_save_IFS |
1985 |
test -z "$as_dir" && as_dir=. |
1986 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1987 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1988 |
ac_cv_prog_ac_ct_CC="cc" |
1989 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1990 |
break 2 |
1991 |
fi |
1992 |
done |
1993 |
done |
1994 |
|
1995 |
fi |
1996 |
fi |
1997 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1998 |
if test -n "$ac_ct_CC"; then |
1999 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2000 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
2001 |
else |
2002 |
echo "$as_me:$LINENO: result: no" >&5 |
2003 |
echo "${ECHO_T}no" >&6 |
2004 |
fi |
2005 |
|
2006 |
CC=$ac_ct_CC |
2007 |
else |
2008 |
CC="$ac_cv_prog_CC" |
2009 |
fi |
2010 |
|
2011 |
fi |
2012 |
if test -z "$CC"; then |
2013 |
# Extract the first word of "cc", so it can be a program name with args. |
2014 |
set dummy cc; ac_word=$2 |
2015 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2016 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2017 |
if test "${ac_cv_prog_CC+set}" = set; then |
2018 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2019 |
else |
2020 |
if test -n "$CC"; then |
2021 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2022 |
else |
2023 |
ac_prog_rejected=no |
2024 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2025 |
for as_dir in $PATH |
2026 |
do |
2027 |
IFS=$as_save_IFS |
2028 |
test -z "$as_dir" && as_dir=. |
2029 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2030 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2031 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2032 |
ac_prog_rejected=yes |
2033 |
continue |
2034 |
fi |
2035 |
ac_cv_prog_CC="cc" |
2036 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2037 |
break 2 |
2038 |
fi |
2039 |
done |
2040 |
done |
2041 |
|
2042 |
if test $ac_prog_rejected = yes; then |
2043 |
# We found a bogon in the path, so make sure we never use it. |
2044 |
set dummy $ac_cv_prog_CC |
2045 |
shift |
2046 |
if test $# != 0; then |
2047 |
# We chose a different compiler from the bogus one. |
2048 |
# However, it has the same basename, so the bogon will be chosen |
2049 |
# first if we set CC to just the basename; use the full file name. |
2050 |
shift |
2051 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2052 |
fi |
2053 |
fi |
2054 |
fi |
2055 |
fi |
2056 |
CC=$ac_cv_prog_CC |
2057 |
if test -n "$CC"; then |
2058 |
echo "$as_me:$LINENO: result: $CC" >&5 |
2059 |
echo "${ECHO_T}$CC" >&6 |
2060 |
else |
2061 |
echo "$as_me:$LINENO: result: no" >&5 |
2062 |
echo "${ECHO_T}no" >&6 |
2063 |
fi |
2064 |
|
2065 |
fi |
2066 |
if test -z "$CC"; then |
2067 |
if test -n "$ac_tool_prefix"; then |
2068 |
for ac_prog in cl |
2069 |
do |
2070 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2071 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2072 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2073 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2074 |
if test "${ac_cv_prog_CC+set}" = set; then |
2075 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2076 |
else |
2077 |
if test -n "$CC"; then |
2078 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2079 |
else |
2080 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2081 |
for as_dir in $PATH |
2082 |
do |
2083 |
IFS=$as_save_IFS |
2084 |
test -z "$as_dir" && as_dir=. |
2085 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2086 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2087 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2088 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2089 |
break 2 |
2090 |
fi |
2091 |
done |
2092 |
done |
2093 |
|
2094 |
fi |
2095 |
fi |
2096 |
CC=$ac_cv_prog_CC |
2097 |
if test -n "$CC"; then |
2098 |
echo "$as_me:$LINENO: result: $CC" >&5 |
2099 |
echo "${ECHO_T}$CC" >&6 |
2100 |
else |
2101 |
echo "$as_me:$LINENO: result: no" >&5 |
2102 |
echo "${ECHO_T}no" >&6 |
2103 |
fi |
2104 |
|
2105 |
test -n "$CC" && break |
2106 |
done |
2107 |
fi |
2108 |
if test -z "$CC"; then |
2109 |
ac_ct_CC=$CC |
2110 |
for ac_prog in cl |
2111 |
do |
2112 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2113 |
set dummy $ac_prog; ac_word=$2 |
2114 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2115 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2116 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2117 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2118 |
else |
2119 |
if test -n "$ac_ct_CC"; then |
2120 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2121 |
else |
2122 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2123 |
for as_dir in $PATH |
2124 |
do |
2125 |
IFS=$as_save_IFS |
2126 |
test -z "$as_dir" && as_dir=. |
2127 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2128 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2129 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2130 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2131 |
break 2 |
2132 |
fi |
2133 |
done |
2134 |
done |
2135 |
|
2136 |
fi |
2137 |
fi |
2138 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2139 |
if test -n "$ac_ct_CC"; then |
2140 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2141 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
2142 |
else |
2143 |
echo "$as_me:$LINENO: result: no" >&5 |
2144 |
echo "${ECHO_T}no" >&6 |
2145 |
fi |
2146 |
|
2147 |
test -n "$ac_ct_CC" && break |
2148 |
done |
2149 |
|
2150 |
CC=$ac_ct_CC |
2151 |
fi |
2152 |
|
2153 |
fi |
2154 |
|
2155 |
|
2156 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2157 |
See \`config.log' for more details." >&5 |
2158 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
2159 |
See \`config.log' for more details." >&2;} |
2160 |
{ (exit 1); exit 1; }; } |
2161 |
|
2162 |
# Provide some information about the compiler. |
2163 |
echo "$as_me:$LINENO:" \ |
2164 |
"checking for C compiler version" >&5 |
2165 |
ac_compiler=`set X $ac_compile; echo $2` |
2166 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2167 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
2168 |
ac_status=$? |
2169 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2170 |
(exit $ac_status); } |
2171 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2172 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
2173 |
ac_status=$? |
2174 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2175 |
(exit $ac_status); } |
2176 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2177 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
2178 |
ac_status=$? |
2179 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2180 |
(exit $ac_status); } |
2181 |
|
2182 |
cat >conftest.$ac_ext <<_ACEOF |
2183 |
/* confdefs.h. */ |
2184 |
_ACEOF |
2185 |
cat confdefs.h >>conftest.$ac_ext |
2186 |
cat >>conftest.$ac_ext <<_ACEOF |
2187 |
/* end confdefs.h. */ |
2188 |
|
2189 |
int |
2190 |
main () |
2191 |
{ |
2192 |
|
2193 |
; |
2194 |
return 0; |
2195 |
} |
2196 |
_ACEOF |
2197 |
ac_clean_files_save=$ac_clean_files |
2198 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2199 |
# Try to create an executable without -o first, disregard a.out. |
2200 |
# It will help us diagnose broken compilers, and finding out an intuition |
2201 |
# of exeext. |
2202 |
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2203 |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2204 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2205 |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2206 |
(eval $ac_link_default) 2>&5 |
2207 |
ac_status=$? |
2208 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2209 |
(exit $ac_status); }; then |
2210 |
# Find the output, starting from the most likely. This scheme is |
2211 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2212 |
# resort. |
2213 |
|
2214 |
# Be careful to initialize this variable, since it used to be cached. |
2215 |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2216 |
ac_cv_exeext= |
2217 |
# b.out is created by i960 compilers. |
2218 |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2219 |
do |
2220 |
test -f "$ac_file" || continue |
2221 |
case $ac_file in |
2222 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2223 |
;; |
2224 |
conftest.$ac_ext ) |
2225 |
# This is the source file. |
2226 |
;; |
2227 |
[ab].out ) |
2228 |
# We found the default executable, but exeext='' is most |
2229 |
# certainly right. |
2230 |
break;; |
2231 |
*.* ) |
2232 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2233 |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
2234 |
# but it would be cool to find out if it's true. Does anybody |
2235 |
# maintain Libtool? --akim. |
2236 |
export ac_cv_exeext |
2237 |
break;; |
2238 |
* ) |
2239 |
break;; |
2240 |
esac |
2241 |
done |
2242 |
else |
2243 |
echo "$as_me: failed program was:" >&5 |
2244 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2245 |
|
2246 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2247 |
See \`config.log' for more details." >&5 |
2248 |
echo "$as_me: error: C compiler cannot create executables |
2249 |
See \`config.log' for more details." >&2;} |
2250 |
{ (exit 77); exit 77; }; } |
2251 |
fi |
2252 |
|
2253 |
ac_exeext=$ac_cv_exeext |
2254 |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
2255 |
echo "${ECHO_T}$ac_file" >&6 |
2256 |
|
2257 |
# Check the compiler produces executables we can run. If not, either |
2258 |
# the compiler is broken, or we cross compile. |
2259 |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2260 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2261 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2262 |
# If not cross compiling, check that we can run a simple program. |
2263 |
if test "$cross_compiling" != yes; then |
2264 |
if { ac_try='./$ac_file' |
2265 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2266 |
(eval $ac_try) 2>&5 |
2267 |
ac_status=$? |
2268 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2269 |
(exit $ac_status); }; }; then |
2270 |
cross_compiling=no |
2271 |
else |
2272 |
if test "$cross_compiling" = maybe; then |
2273 |
cross_compiling=yes |
2274 |
else |
2275 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2276 |
If you meant to cross compile, use \`--host'. |
2277 |
See \`config.log' for more details." >&5 |
2278 |
echo "$as_me: error: cannot run C compiled programs. |
2279 |
If you meant to cross compile, use \`--host'. |
2280 |
See \`config.log' for more details." >&2;} |
2281 |
{ (exit 1); exit 1; }; } |
2282 |
fi |
2283 |
fi |
2284 |
fi |
2285 |
echo "$as_me:$LINENO: result: yes" >&5 |
2286 |
echo "${ECHO_T}yes" >&6 |
2287 |
|
2288 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2289 |
ac_clean_files=$ac_clean_files_save |
2290 |
# Check the compiler produces executables we can run. If not, either |
2291 |
# the compiler is broken, or we cross compile. |
2292 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2293 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2294 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2295 |
echo "${ECHO_T}$cross_compiling" >&6 |
2296 |
|
2297 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2298 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2299 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2300 |
(eval $ac_link) 2>&5 |
2301 |
ac_status=$? |
2302 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2303 |
(exit $ac_status); }; then |
2304 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2305 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2306 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2307 |
# `rm'. |
2308 |
for ac_file in conftest.exe conftest conftest.*; do |
2309 |
test -f "$ac_file" || continue |
2310 |
case $ac_file in |
2311 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2312 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2313 |
export ac_cv_exeext |
2314 |
break;; |
2315 |
* ) break;; |
2316 |
esac |
2317 |
done |
2318 |
else |
2319 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2320 |
See \`config.log' for more details." >&5 |
2321 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2322 |
See \`config.log' for more details." >&2;} |
2323 |
{ (exit 1); exit 1; }; } |
2324 |
fi |
2325 |
|
2326 |
rm -f conftest$ac_cv_exeext |
2327 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2328 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
2329 |
|
2330 |
rm -f conftest.$ac_ext |
2331 |
EXEEXT=$ac_cv_exeext |
2332 |
ac_exeext=$EXEEXT |
2333 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2334 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2335 |
if test "${ac_cv_objext+set}" = set; then |
2336 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2337 |
else |
2338 |
cat >conftest.$ac_ext <<_ACEOF |
2339 |
/* confdefs.h. */ |
2340 |
_ACEOF |
2341 |
cat confdefs.h >>conftest.$ac_ext |
2342 |
cat >>conftest.$ac_ext <<_ACEOF |
2343 |
/* end confdefs.h. */ |
2344 |
|
2345 |
int |
2346 |
main () |
2347 |
{ |
2348 |
|
2349 |
; |
2350 |
return 0; |
2351 |
} |
2352 |
_ACEOF |
2353 |
rm -f conftest.o conftest.obj |
2354 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2355 |
(eval $ac_compile) 2>&5 |
2356 |
ac_status=$? |
2357 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2358 |
(exit $ac_status); }; then |
2359 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2360 |
case $ac_file in |
2361 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2362 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2363 |
break;; |
2364 |
esac |
2365 |
done |
2366 |
else |
2367 |
echo "$as_me: failed program was:" >&5 |
2368 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2369 |
|
2370 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2371 |
See \`config.log' for more details." >&5 |
2372 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2373 |
See \`config.log' for more details." >&2;} |
2374 |
{ (exit 1); exit 1; }; } |
2375 |
fi |
2376 |
|
2377 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2378 |
fi |
2379 |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2380 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
2381 |
OBJEXT=$ac_cv_objext |
2382 |
ac_objext=$OBJEXT |
2383 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2384 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2385 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2386 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2387 |
else |
2388 |
cat >conftest.$ac_ext <<_ACEOF |
2389 |
/* confdefs.h. */ |
2390 |
_ACEOF |
2391 |
cat confdefs.h >>conftest.$ac_ext |
2392 |
cat >>conftest.$ac_ext <<_ACEOF |
2393 |
/* end confdefs.h. */ |
2394 |
|
2395 |
int |
2396 |
main () |
2397 |
{ |
2398 |
#ifndef __GNUC__ |
2399 |
choke me |
2400 |
#endif |
2401 |
|
2402 |
; |
2403 |
return 0; |
2404 |
} |
2405 |
_ACEOF |
2406 |
rm -f conftest.$ac_objext |
2407 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2408 |
(eval $ac_compile) 2>conftest.er1 |
2409 |
ac_status=$? |
2410 |
grep -v '^ *+' conftest.er1 >conftest.err |
2411 |
rm -f conftest.er1 |
2412 |
cat conftest.err >&5 |
2413 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2414 |
(exit $ac_status); } && |
2415 |
{ ac_try='test -z "$ac_c_werror_flag" |
2416 |
|| test ! -s conftest.err' |
2417 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2418 |
(eval $ac_try) 2>&5 |
2419 |
ac_status=$? |
2420 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2421 |
(exit $ac_status); }; } && |
2422 |
{ ac_try='test -s conftest.$ac_objext' |
2423 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2424 |
(eval $ac_try) 2>&5 |
2425 |
ac_status=$? |
2426 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2427 |
(exit $ac_status); }; }; then |
2428 |
ac_compiler_gnu=yes |
2429 |
else |
2430 |
echo "$as_me: failed program was:" >&5 |
2431 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2432 |
|
2433 |
ac_compiler_gnu=no |
2434 |
fi |
2435 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2436 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2437 |
|
2438 |
fi |
2439 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2440 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2441 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2442 |
ac_test_CFLAGS=${CFLAGS+set} |
2443 |
ac_save_CFLAGS=$CFLAGS |
2444 |
CFLAGS="-g" |
2445 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2446 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2447 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
2448 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2449 |
else |
2450 |
cat >conftest.$ac_ext <<_ACEOF |
2451 |
/* confdefs.h. */ |
2452 |
_ACEOF |
2453 |
cat confdefs.h >>conftest.$ac_ext |
2454 |
cat >>conftest.$ac_ext <<_ACEOF |
2455 |
/* end confdefs.h. */ |
2456 |
|
2457 |
int |
2458 |
main () |
2459 |
{ |
2460 |
|
2461 |
; |
2462 |
return 0; |
2463 |
} |
2464 |
_ACEOF |
2465 |
rm -f conftest.$ac_objext |
2466 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2467 |
(eval $ac_compile) 2>conftest.er1 |
2468 |
ac_status=$? |
2469 |
grep -v '^ *+' conftest.er1 >conftest.err |
2470 |
rm -f conftest.er1 |
2471 |
cat conftest.err >&5 |
2472 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2473 |
(exit $ac_status); } && |
2474 |
{ ac_try='test -z "$ac_c_werror_flag" |
2475 |
|| test ! -s conftest.err' |
2476 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2477 |
(eval $ac_try) 2>&5 |
2478 |
ac_status=$? |
2479 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2480 |
(exit $ac_status); }; } && |
2481 |
{ ac_try='test -s conftest.$ac_objext' |
2482 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2483 |
(eval $ac_try) 2>&5 |
2484 |
ac_status=$? |
2485 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2486 |
(exit $ac_status); }; }; then |
2487 |
ac_cv_prog_cc_g=yes |
2488 |
else |
2489 |
echo "$as_me: failed program was:" >&5 |
2490 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2491 |
|
2492 |
ac_cv_prog_cc_g=no |
2493 |
fi |
2494 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2495 |
fi |
2496 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2497 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2498 |
if test "$ac_test_CFLAGS" = set; then |
2499 |
CFLAGS=$ac_save_CFLAGS |
2500 |
elif test $ac_cv_prog_cc_g = yes; then |
2501 |
if test "$GCC" = yes; then |
2502 |
CFLAGS="-g -O2" |
2503 |
else |
2504 |
CFLAGS="-g" |
2505 |
fi |
2506 |
else |
2507 |
if test "$GCC" = yes; then |
2508 |
CFLAGS="-O2" |
2509 |
else |
2510 |
CFLAGS= |
2511 |
fi |
2512 |
fi |
2513 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2514 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2515 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2516 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2517 |
else |
2518 |
ac_cv_prog_cc_stdc=no |
2519 |
ac_save_CC=$CC |
2520 |
cat >conftest.$ac_ext <<_ACEOF |
2521 |
/* confdefs.h. */ |
2522 |
_ACEOF |
2523 |
cat confdefs.h >>conftest.$ac_ext |
2524 |
cat >>conftest.$ac_ext <<_ACEOF |
2525 |
/* end confdefs.h. */ |
2526 |
#include <stdarg.h> |
2527 |
#include <stdio.h> |
2528 |
#include <sys/types.h> |
2529 |
#include <sys/stat.h> |
2530 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2531 |
struct buf { int x; }; |
2532 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2533 |
static char *e (p, i) |
2534 |
char **p; |
2535 |
int i; |
2536 |
{ |
2537 |
return p[i]; |
2538 |
} |
2539 |
static char *f (char * (*g) (char **, int), char **p, ...) |
2540 |
{ |
2541 |
char *s; |
2542 |
va_list v; |
2543 |
va_start (v,p); |
2544 |
s = g (p, va_arg (v,int)); |
2545 |
va_end (v); |
2546 |
return s; |
2547 |
} |
2548 |
|
2549 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2550 |
function prototypes and stuff, but not '\xHH' hex character constants. |
2551 |
These don't provoke an error unfortunately, instead are silently treated |
2552 |
as 'x'. The following induces an error, until -std1 is added to get |
2553 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2554 |
array size at least. It's necessary to write '\x00'==0 to get something |
2555 |
that's true only with -std1. */ |
2556 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2557 |
|
2558 |
int test (int i, double x); |
2559 |
struct s1 {int (*f) (int a);}; |
2560 |
struct s2 {int (*f) (double a);}; |
2561 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2562 |
int argc; |
2563 |
char **argv; |
2564 |
int |
2565 |
main () |
2566 |
{ |
2567 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2568 |
; |
2569 |
return 0; |
2570 |
} |
2571 |
_ACEOF |
2572 |
# Don't try gcc -ansi; that turns off useful extensions and |
2573 |
# breaks some systems' header files. |
2574 |
# AIX -qlanglvl=ansi |
2575 |
# Ultrix and OSF/1 -std1 |
2576 |
# HP-UX 10.20 and later -Ae |
2577 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
2578 |
# SVR4 -Xc -D__EXTENSIONS__ |
2579 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2580 |
do |
2581 |
CC="$ac_save_CC $ac_arg" |
2582 |
rm -f conftest.$ac_objext |
2583 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2584 |
(eval $ac_compile) 2>conftest.er1 |
2585 |
ac_status=$? |
2586 |
grep -v '^ *+' conftest.er1 >conftest.err |
2587 |
rm -f conftest.er1 |
2588 |
cat conftest.err >&5 |
2589 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2590 |
(exit $ac_status); } && |
2591 |
{ ac_try='test -z "$ac_c_werror_flag" |
2592 |
|| test ! -s conftest.err' |
2593 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2594 |
(eval $ac_try) 2>&5 |
2595 |
ac_status=$? |
2596 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2597 |
(exit $ac_status); }; } && |
2598 |
{ ac_try='test -s conftest.$ac_objext' |
2599 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2600 |
(eval $ac_try) 2>&5 |
2601 |
ac_status=$? |
2602 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2603 |
(exit $ac_status); }; }; then |
2604 |
ac_cv_prog_cc_stdc=$ac_arg |
2605 |
break |
2606 |
else |
2607 |
echo "$as_me: failed program was:" >&5 |
2608 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2609 |
|
2610 |
fi |
2611 |
rm -f conftest.err conftest.$ac_objext |
2612 |
done |
2613 |
rm -f conftest.$ac_ext conftest.$ac_objext |
2614 |
CC=$ac_save_CC |
2615 |
|
2616 |
fi |
2617 |
|
2618 |
case "x$ac_cv_prog_cc_stdc" in |
2619 |
x|xno) |
2620 |
echo "$as_me:$LINENO: result: none needed" >&5 |
2621 |
echo "${ECHO_T}none needed" >&6 ;; |
2622 |
*) |
2623 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2624 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2625 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
2626 |
esac |
2627 |
|
2628 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
2629 |
# in C++ we need to declare it. In case someone uses the same compiler |
2630 |
# for both compiling C and C++ we need to have the C++ compiler decide |
2631 |
# the declaration of exit, since it's the most demanding environment. |
2632 |
cat >conftest.$ac_ext <<_ACEOF |
2633 |
#ifndef __cplusplus |
2634 |
choke me |
2635 |
#endif |
2636 |
_ACEOF |
2637 |
rm -f conftest.$ac_objext |
2638 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2639 |
(eval $ac_compile) 2>conftest.er1 |
2640 |
ac_status=$? |
2641 |
grep -v '^ *+' conftest.er1 >conftest.err |
2642 |
rm -f conftest.er1 |
2643 |
cat conftest.err >&5 |
2644 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2645 |
(exit $ac_status); } && |
2646 |
{ ac_try='test -z "$ac_c_werror_flag" |
2647 |
|| test ! -s conftest.err' |
2648 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2649 |
(eval $ac_try) 2>&5 |
2650 |
ac_status=$? |
2651 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2652 |
(exit $ac_status); }; } && |
2653 |
{ ac_try='test -s conftest.$ac_objext' |
2654 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2655 |
(eval $ac_try) 2>&5 |
2656 |
ac_status=$? |
2657 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2658 |
(exit $ac_status); }; }; then |
2659 |
for ac_declaration in \ |
2660 |
'' \ |
2661 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2662 |
'extern "C" void std::exit (int); using std::exit;' \ |
2663 |
'extern "C" void exit (int) throw ();' \ |
2664 |
'extern "C" void exit (int);' \ |
2665 |
'void exit (int);' |
2666 |
do |
2667 |
cat >conftest.$ac_ext <<_ACEOF |
2668 |
/* confdefs.h. */ |
2669 |
_ACEOF |
2670 |
cat confdefs.h >>conftest.$ac_ext |
2671 |
cat >>conftest.$ac_ext <<_ACEOF |
2672 |
/* end confdefs.h. */ |
2673 |
$ac_declaration |
2674 |
#include <stdlib.h> |
2675 |
int |
2676 |
main () |
2677 |
{ |
2678 |
exit (42); |
2679 |
; |
2680 |
return 0; |
2681 |
} |
2682 |
_ACEOF |
2683 |
rm -f conftest.$ac_objext |
2684 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2685 |
(eval $ac_compile) 2>conftest.er1 |
2686 |
ac_status=$? |
2687 |
grep -v '^ *+' conftest.er1 >conftest.err |
2688 |
rm -f conftest.er1 |
2689 |
cat conftest.err >&5 |
2690 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2691 |
(exit $ac_status); } && |
2692 |
{ ac_try='test -z "$ac_c_werror_flag" |
2693 |
|| test ! -s conftest.err' |
2694 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2695 |
(eval $ac_try) 2>&5 |
2696 |
ac_status=$? |
2697 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2698 |
(exit $ac_status); }; } && |
2699 |
{ ac_try='test -s conftest.$ac_objext' |
2700 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2701 |
(eval $ac_try) 2>&5 |
2702 |
ac_status=$? |
2703 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2704 |
(exit $ac_status); }; }; then |
2705 |
: |
2706 |
else |
2707 |
echo "$as_me: failed program was:" >&5 |
2708 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2709 |
|
2710 |
continue |
2711 |
fi |
2712 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2713 |
cat >conftest.$ac_ext <<_ACEOF |
2714 |
/* confdefs.h. */ |
2715 |
_ACEOF |
2716 |
cat confdefs.h >>conftest.$ac_ext |
2717 |
cat >>conftest.$ac_ext <<_ACEOF |
2718 |
/* end confdefs.h. */ |
2719 |
$ac_declaration |
2720 |
int |
2721 |
main () |
2722 |
{ |
2723 |
exit (42); |
2724 |
; |
2725 |
return 0; |
2726 |
} |
2727 |
_ACEOF |
2728 |
rm -f conftest.$ac_objext |
2729 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2730 |
(eval $ac_compile) 2>conftest.er1 |
2731 |
ac_status=$? |
2732 |
grep -v '^ *+' conftest.er1 >conftest.err |
2733 |
rm -f conftest.er1 |
2734 |
cat conftest.err >&5 |
2735 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2736 |
(exit $ac_status); } && |
2737 |
{ ac_try='test -z "$ac_c_werror_flag" |
2738 |
|| test ! -s conftest.err' |
2739 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2740 |
(eval $ac_try) 2>&5 |
2741 |
ac_status=$? |
2742 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2743 |
(exit $ac_status); }; } && |
2744 |
{ ac_try='test -s conftest.$ac_objext' |
2745 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2746 |
(eval $ac_try) 2>&5 |
2747 |
ac_status=$? |
2748 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2749 |
(exit $ac_status); }; }; then |
2750 |
break |
2751 |
else |
2752 |
echo "$as_me: failed program was:" >&5 |
2753 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2754 |
|
2755 |
fi |
2756 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2757 |
done |
2758 |
rm -f conftest* |
2759 |
if test -n "$ac_declaration"; then |
2760 |
echo '#ifdef __cplusplus' >>confdefs.h |
2761 |
echo $ac_declaration >>confdefs.h |
2762 |
echo '#endif' >>confdefs.h |
2763 |
fi |
2764 |
|
2765 |
else |
2766 |
echo "$as_me: failed program was:" >&5 |
2767 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2768 |
|
2769 |
fi |
2770 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2771 |
ac_ext=c |
2772 |
ac_cpp='$CPP $CPPFLAGS' |
2773 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2774 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2775 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2776 |
|
2777 |
|
2778 |
ac_ext=f |
2779 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
2780 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2781 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
2782 |
if test -n "$ac_tool_prefix"; then |
2783 |
for ac_prog in f77 fort77 g77 |
2784 |
do |
2785 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2786 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2787 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2788 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2789 |
if test "${ac_cv_prog_F77+set}" = set; then |
2790 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2791 |
else |
2792 |
if test -n "$F77"; then |
2793 |
ac_cv_prog_F77="$F77" # Let the user override the test. |
2794 |
else |
2795 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2796 |
for as_dir in $PATH |
2797 |
do |
2798 |
IFS=$as_save_IFS |
2799 |
test -z "$as_dir" && as_dir=. |
2800 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2801 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2802 |
ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
2803 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2804 |
break 2 |
2805 |
fi |
2806 |
done |
2807 |
done |
2808 |
|
2809 |
fi |
2810 |
fi |
2811 |
F77=$ac_cv_prog_F77 |
2812 |
if test -n "$F77"; then |
2813 |
echo "$as_me:$LINENO: result: $F77" >&5 |
2814 |
echo "${ECHO_T}$F77" >&6 |
2815 |
else |
2816 |
echo "$as_me:$LINENO: result: no" >&5 |
2817 |
echo "${ECHO_T}no" >&6 |
2818 |
fi |
2819 |
|
2820 |
test -n "$F77" && break |
2821 |
done |
2822 |
fi |
2823 |
if test -z "$F77"; then |
2824 |
ac_ct_F77=$F77 |
2825 |
for ac_prog in f77 fort77 g77 |
2826 |
do |
2827 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2828 |
set dummy $ac_prog; ac_word=$2 |
2829 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2830 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2831 |
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
2832 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2833 |
else |
2834 |
if test -n "$ac_ct_F77"; then |
2835 |
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
2836 |
else |
2837 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2838 |
for as_dir in $PATH |
2839 |
do |
2840 |
IFS=$as_save_IFS |
2841 |
test -z "$as_dir" && as_dir=. |
2842 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2843 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2844 |
ac_cv_prog_ac_ct_F77="$ac_prog" |
2845 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2846 |
break 2 |
2847 |
fi |
2848 |
done |
2849 |
done |
2850 |
|
2851 |
fi |
2852 |
fi |
2853 |
ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
2854 |
if test -n "$ac_ct_F77"; then |
2855 |
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
2856 |
echo "${ECHO_T}$ac_ct_F77" >&6 |
2857 |
else |
2858 |
echo "$as_me:$LINENO: result: no" >&5 |
2859 |
echo "${ECHO_T}no" >&6 |
2860 |
fi |
2861 |
|
2862 |
test -n "$ac_ct_F77" && break |
2863 |
done |
2864 |
|
2865 |
F77=$ac_ct_F77 |
2866 |
fi |
2867 |
|
2868 |
|
2869 |
# Provide some information about the compiler. |
2870 |
echo "$as_me:2870:" \ |
2871 |
"checking for Fortran 77 compiler version" >&5 |
2872 |
ac_compiler=`set X $ac_compile; echo $2` |
2873 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2874 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
2875 |
ac_status=$? |
2876 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2877 |
(exit $ac_status); } |
2878 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2879 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
2880 |
ac_status=$? |
2881 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2882 |
(exit $ac_status); } |
2883 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2884 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
2885 |
ac_status=$? |
2886 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2887 |
(exit $ac_status); } |
2888 |
rm -f a.out |
2889 |
|
2890 |
# If we don't use `.F' as extension, the preprocessor is not run on the |
2891 |
# input file. (Note that this only needs to work for GNU compilers.) |
2892 |
ac_save_ext=$ac_ext |
2893 |
ac_ext=F |
2894 |
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
2895 |
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
2896 |
if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
2897 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2898 |
else |
2899 |
cat >conftest.$ac_ext <<_ACEOF |
2900 |
program main |
2901 |
#ifndef __GNUC__ |
2902 |
choke me |
2903 |
#endif |
2904 |
|
2905 |
end |
2906 |
_ACEOF |
2907 |
rm -f conftest.$ac_objext |
2908 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2909 |
(eval $ac_compile) 2>conftest.er1 |
2910 |
ac_status=$? |
2911 |
grep -v '^ *+' conftest.er1 >conftest.err |
2912 |
rm -f conftest.er1 |
2913 |
cat conftest.err >&5 |
2914 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2915 |
(exit $ac_status); } && |
2916 |
{ ac_try='test -z "$ac_f77_werror_flag" |
2917 |
|| test ! -s conftest.err' |
2918 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2919 |
(eval $ac_try) 2>&5 |
2920 |
ac_status=$? |
2921 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2922 |
(exit $ac_status); }; } && |
2923 |
{ ac_try='test -s conftest.$ac_objext' |
2924 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2925 |
(eval $ac_try) 2>&5 |
2926 |
ac_status=$? |
2927 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2928 |
(exit $ac_status); }; }; then |
2929 |
ac_compiler_gnu=yes |
2930 |
else |
2931 |
echo "$as_me: failed program was:" >&5 |
2932 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2933 |
|
2934 |
ac_compiler_gnu=no |
2935 |
fi |
2936 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2937 |
ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
2938 |
|
2939 |
fi |
2940 |
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
2941 |
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
2942 |
ac_ext=$ac_save_ext |
2943 |
ac_test_FFLAGS=${FFLAGS+set} |
2944 |
ac_save_FFLAGS=$FFLAGS |
2945 |
FFLAGS= |
2946 |
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
2947 |
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
2948 |
if test "${ac_cv_prog_f77_g+set}" = set; then |
2949 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2950 |
else |
2951 |
FFLAGS=-g |
2952 |
cat >conftest.$ac_ext <<_ACEOF |
2953 |
program main |
2954 |
|
2955 |
end |
2956 |
_ACEOF |
2957 |
rm -f conftest.$ac_objext |
2958 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2959 |
(eval $ac_compile) 2>conftest.er1 |
2960 |
ac_status=$? |
2961 |
grep -v '^ *+' conftest.er1 >conftest.err |
2962 |
rm -f conftest.er1 |
2963 |
cat conftest.err >&5 |
2964 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2965 |
(exit $ac_status); } && |
2966 |
{ ac_try='test -z "$ac_f77_werror_flag" |
2967 |
|| test ! -s conftest.err' |
2968 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2969 |
(eval $ac_try) 2>&5 |
2970 |
ac_status=$? |
2971 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2972 |
(exit $ac_status); }; } && |
2973 |
{ ac_try='test -s conftest.$ac_objext' |
2974 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2975 |
(eval $ac_try) 2>&5 |
2976 |
ac_status=$? |
2977 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2978 |
(exit $ac_status); }; }; then |
2979 |
ac_cv_prog_f77_g=yes |
2980 |
else |
2981 |
echo "$as_me: failed program was:" >&5 |
2982 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2983 |
|
2984 |
ac_cv_prog_f77_g=no |
2985 |
fi |
2986 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2987 |
|
2988 |
fi |
2989 |
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
2990 |
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
2991 |
if test "$ac_test_FFLAGS" = set; then |
2992 |
FFLAGS=$ac_save_FFLAGS |
2993 |
elif test $ac_cv_prog_f77_g = yes; then |
2994 |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
2995 |
FFLAGS="-g -O2" |
2996 |
else |
2997 |
FFLAGS="-g" |
2998 |
fi |
2999 |
else |
3000 |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
3001 |
FFLAGS="-O2" |
3002 |
else |
3003 |
FFLAGS= |
3004 |
fi |
3005 |
fi |
3006 |
|
3007 |
G77=`test $ac_compiler_gnu = yes && echo yes` |
3008 |
ac_ext=c |
3009 |
ac_cpp='$CPP $CPPFLAGS' |
3010 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3011 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3012 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3013 |
|
3014 |
|
3015 |
|
3016 |
ac_ext=f |
3017 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
3018 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3019 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
3020 |
echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5 |
3021 |
echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6 |
3022 |
if test "${ac_cv_prog_f77_v+set}" = set; then |
3023 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3024 |
else |
3025 |
cat >conftest.$ac_ext <<_ACEOF |
3026 |
program main |
3027 |
|
3028 |
end |
3029 |
_ACEOF |
3030 |
rm -f conftest.$ac_objext |
3031 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3032 |
(eval $ac_compile) 2>conftest.er1 |
3033 |
ac_status=$? |
3034 |
grep -v '^ *+' conftest.er1 >conftest.err |
3035 |
rm -f conftest.er1 |
3036 |
cat conftest.err >&5 |
3037 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3038 |
(exit $ac_status); } && |
3039 |
{ ac_try='test -z "$ac_f77_werror_flag" |
3040 |
|| test ! -s conftest.err' |
3041 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3042 |
(eval $ac_try) 2>&5 |
3043 |
ac_status=$? |
3044 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3045 |
(exit $ac_status); }; } && |
3046 |
{ ac_try='test -s conftest.$ac_objext' |
3047 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3048 |
(eval $ac_try) 2>&5 |
3049 |
ac_status=$? |
3050 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3051 |
(exit $ac_status); }; }; then |
3052 |
ac_cv_prog_f77_v= |
3053 |
# Try some options frequently used verbose output |
3054 |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
3055 |
cat >conftest.$ac_ext <<_ACEOF |
3056 |
program main |
3057 |
|
3058 |
end |
3059 |
_ACEOF |
3060 |
|
3061 |
# Compile and link our simple test program by passing a flag (argument |
3062 |
# 1 to this macro) to the Fortran compiler in order to get |
3063 |
# "verbose" output that we can then parse for the Fortran linker |
3064 |
# flags. |
3065 |
ac_save_FFLAGS=$FFLAGS |
3066 |
FFLAGS="$FFLAGS $ac_verb" |
3067 |
(eval echo $as_me:3067: \"$ac_link\") >&5 |
3068 |
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3069 |
echo "$ac_f77_v_output" >&5 |
3070 |
FFLAGS=$ac_save_FFLAGS |
3071 |
|
3072 |
rm -f conftest* |
3073 |
|
3074 |
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
3075 |
# /foo, /bar, and /baz are search directories for the Fortran linker. |
3076 |
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
3077 |
ac_f77_v_output="`echo $ac_f77_v_output | |
3078 |
grep 'LPATH is:' | |
3079 |
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" |
3080 |
|
3081 |
case $ac_f77_v_output in |
3082 |
# If we are using xlf then replace all the commas with spaces. |
3083 |
*xlfentry*) |
3084 |
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; |
3085 |
|
3086 |
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
3087 |
# $LIBS confuse us, and the libraries appear later in the output anyway). |
3088 |
*mGLOB_options_string*) |
3089 |
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; |
3090 |
|
3091 |
# If we are using Cray Fortran then delete quotes. |
3092 |
# Use "\"" instead of '"' for font-lock-mode. |
3093 |
# FIXME: a more general fix for quoted arguments with spaces? |
3094 |
*cft90*) |
3095 |
ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; |
3096 |
esac |
3097 |
|
3098 |
|
3099 |
# look for -l* and *.a constructs in the output |
3100 |
for ac_arg in $ac_f77_v_output; do |
3101 |
case $ac_arg in |
3102 |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
3103 |
ac_cv_prog_f77_v=$ac_verb |
3104 |
break 2 ;; |
3105 |
esac |
3106 |
done |
3107 |
done |
3108 |
if test -z "$ac_cv_prog_f77_v"; then |
3109 |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5 |
3110 |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} |
3111 |
fi |
3112 |
else |
3113 |
echo "$as_me: failed program was:" >&5 |
3114 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3115 |
|
3116 |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
3117 |
echo "$as_me: WARNING: compilation failed" >&2;} |
3118 |
fi |
3119 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3120 |
|
3121 |
fi |
3122 |
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5 |
3123 |
echo "${ECHO_T}$ac_cv_prog_f77_v" >&6 |
3124 |
echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5 |
3125 |
echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6 |
3126 |
if test "${ac_cv_f77_libs+set}" = set; then |
3127 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3128 |
else |
3129 |
if test "x$FLIBS" != "x"; then |
3130 |
ac_cv_f77_libs="$FLIBS" # Let the user override the test. |
3131 |
else |
3132 |
|
3133 |
cat >conftest.$ac_ext <<_ACEOF |
3134 |
program main |
3135 |
|
3136 |
end |
3137 |
_ACEOF |
3138 |
|
3139 |
# Compile and link our simple test program by passing a flag (argument |
3140 |
# 1 to this macro) to the Fortran compiler in order to get |
3141 |
# "verbose" output that we can then parse for the Fortran linker |
3142 |
# flags. |
3143 |
ac_save_FFLAGS=$FFLAGS |
3144 |
FFLAGS="$FFLAGS $ac_cv_prog_f77_v" |
3145 |
(eval echo $as_me:3145: \"$ac_link\") >&5 |
3146 |
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3147 |
echo "$ac_f77_v_output" >&5 |
3148 |
FFLAGS=$ac_save_FFLAGS |
3149 |
|
3150 |
rm -f conftest* |
3151 |
|
3152 |
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
3153 |
# /foo, /bar, and /baz are search directories for the Fortran linker. |
3154 |
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
3155 |
ac_f77_v_output="`echo $ac_f77_v_output | |
3156 |
grep 'LPATH is:' | |
3157 |
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" |
3158 |
|
3159 |
case $ac_f77_v_output in |
3160 |
# If we are using xlf then replace all the commas with spaces. |
3161 |
*xlfentry*) |
3162 |
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; |
3163 |
|
3164 |
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
3165 |
# $LIBS confuse us, and the libraries appear later in the output anyway). |
3166 |
*mGLOB_options_string*) |
3167 |
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; |
3168 |
|
3169 |
# If we are using Cray Fortran then delete quotes. |
3170 |
# Use "\"" instead of '"' for font-lock-mode. |
3171 |
# FIXME: a more general fix for quoted arguments with spaces? |
3172 |
*cft90*) |
3173 |
ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; |
3174 |
esac |
3175 |
|
3176 |
|
3177 |
|
3178 |
ac_cv_f77_libs= |
3179 |
|
3180 |
# Save positional arguments (if any) |
3181 |
ac_save_positional="$@" |
3182 |
|
3183 |
set X $ac_f77_v_output |
3184 |
while test $# != 1; do |
3185 |
shift |
3186 |
ac_arg=$1 |
3187 |
case $ac_arg in |
3188 |
[\\/]*.a | ?:[\\/]*.a) |
3189 |
ac_exists=false |
3190 |
for ac_i in $ac_cv_f77_libs; do |
3191 |
if test x"$ac_arg" = x"$ac_i"; then |
3192 |
ac_exists=true |
3193 |
break |
3194 |
fi |
3195 |
done |
3196 |
|
3197 |
if test x"$ac_exists" = xtrue; then |
3198 |
: |
3199 |
else |
3200 |
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
3201 |
fi |
3202 |
|
3203 |
;; |
3204 |
-bI:*) |
3205 |
ac_exists=false |
3206 |
for ac_i in $ac_cv_f77_libs; do |
3207 |
if test x"$ac_arg" = x"$ac_i"; then |
3208 |
ac_exists=true |
3209 |
break |
3210 |
fi |
3211 |
done |
3212 |
|
3213 |
if test x"$ac_exists" = xtrue; then |
3214 |
: |
3215 |
else |
3216 |
if test "$ac_compiler_gnu" = yes; then |
3217 |
for ac_link_opt in $ac_arg; do |
3218 |
ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" |
3219 |
done |
3220 |
else |
3221 |
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
3222 |
fi |
3223 |
fi |
3224 |
|
3225 |
;; |
3226 |
# Ignore these flags. |
3227 |
-lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) |
3228 |
;; |
3229 |
-lkernel32) |
3230 |
test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
3231 |
;; |
3232 |
-[LRuY]) |
3233 |
# These flags, when seen by themselves, take an argument. |
3234 |
# We remove the space between option and argument and re-iterate |
3235 |
# unless we find an empty arg or a new option (starting with -) |
3236 |
case $2 in |
3237 |
"" | -*);; |
3238 |
*) |
3239 |
ac_arg="$ac_arg$2" |
3240 |
shift; shift |
3241 |
set X $ac_arg "$@" |
3242 |
;; |
3243 |
esac |
3244 |
;; |
3245 |
-YP,*) |
3246 |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
3247 |
ac_exists=false |
3248 |
for ac_i in $ac_cv_f77_libs; do |
3249 |
if test x"$ac_j" = x"$ac_i"; then |
3250 |
ac_exists=true |
3251 |
break |
3252 |
fi |
3253 |
done |
3254 |
|
3255 |
if test x"$ac_exists" = xtrue; then |
3256 |
: |
3257 |
else |
3258 |
ac_arg="$ac_arg $ac_j" |
3259 |
ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" |
3260 |
fi |
3261 |
|
3262 |
done |
3263 |
;; |
3264 |
-[lLR]*) |
3265 |
ac_exists=false |
3266 |
for ac_i in $ac_cv_f77_libs; do |
3267 |
if test x"$ac_arg" = x"$ac_i"; then |
3268 |
ac_exists=true |
3269 |
break |
3270 |
fi |
3271 |
done |
3272 |
|
3273 |
if test x"$ac_exists" = xtrue; then |
3274 |
: |
3275 |
else |
3276 |
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
3277 |
fi |
3278 |
|
3279 |
;; |
3280 |
# Ignore everything else. |
3281 |
esac |
3282 |
done |
3283 |
# restore positional arguments |
3284 |
set X $ac_save_positional; shift |
3285 |
|
3286 |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
3287 |
# then we insist that the "run path" must be an absolute path (i.e. it |
3288 |
# must begin with a "/"). |
3289 |
case `(uname -sr) 2>/dev/null` in |
3290 |
"SunOS 5"*) |
3291 |
ac_ld_run_path=`echo $ac_f77_v_output | |
3292 |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
3293 |
test "x$ac_ld_run_path" != x && |
3294 |
if test "$ac_compiler_gnu" = yes; then |
3295 |
for ac_link_opt in $ac_ld_run_path; do |
3296 |
ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" |
3297 |
done |
3298 |
else |
3299 |
ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" |
3300 |
fi |
3301 |
;; |
3302 |
esac |
3303 |
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
3304 |
|
3305 |
fi |
3306 |
echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5 |
3307 |
echo "${ECHO_T}$ac_cv_f77_libs" >&6 |
3308 |
FLIBS="$ac_cv_f77_libs" |
3309 |
|
3310 |
|
3311 |
ac_ext=c |
3312 |
ac_cpp='$CPP $CPPFLAGS' |
3313 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3314 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3315 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3316 |
|
3317 |
|
3318 |
|
3319 |
ac_ext=cc |
3320 |
ac_cpp='$CXXCPP $CPPFLAGS' |
3321 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3322 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3323 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3324 |
if test -n "$ac_tool_prefix"; then |
3325 |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
3326 |
do |
3327 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3328 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3329 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3330 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3331 |
if test "${ac_cv_prog_CXX+set}" = set; then |
3332 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3333 |
else |
3334 |
if test -n "$CXX"; then |
3335 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
3336 |
else |
3337 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3338 |
for as_dir in $PATH |
3339 |
do |
3340 |
IFS=$as_save_IFS |
3341 |
test -z "$as_dir" && as_dir=. |
3342 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3343 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3344 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
3345 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3346 |
break 2 |
3347 |
fi |
3348 |
done |
3349 |
done |
3350 |
|
3351 |
fi |
3352 |
fi |
3353 |
CXX=$ac_cv_prog_CXX |
3354 |
if test -n "$CXX"; then |
3355 |
echo "$as_me:$LINENO: result: $CXX" >&5 |
3356 |
echo "${ECHO_T}$CXX" >&6 |
3357 |
else |
3358 |
echo "$as_me:$LINENO: result: no" >&5 |
3359 |
echo "${ECHO_T}no" >&6 |
3360 |
fi |
3361 |
|
3362 |
test -n "$CXX" && break |
3363 |
done |
3364 |
fi |
3365 |
if test -z "$CXX"; then |
3366 |
ac_ct_CXX=$CXX |
3367 |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
3368 |
do |
3369 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3370 |
set dummy $ac_prog; ac_word=$2 |
3371 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3372 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3373 |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
3374 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3375 |
else |
3376 |
if test -n "$ac_ct_CXX"; then |
3377 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
3378 |
else |
3379 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3380 |
for as_dir in $PATH |
3381 |
do |
3382 |
IFS=$as_save_IFS |
3383 |
test -z "$as_dir" && as_dir=. |
3384 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3385 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3386 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
3387 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3388 |
break 2 |
3389 |
fi |
3390 |
done |
3391 |
done |
3392 |
|
3393 |
fi |
3394 |
fi |
3395 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
3396 |
if test -n "$ac_ct_CXX"; then |
3397 |
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3398 |
echo "${ECHO_T}$ac_ct_CXX" >&6 |
3399 |
else |
3400 |
echo "$as_me:$LINENO: result: no" >&5 |
3401 |
echo "${ECHO_T}no" >&6 |
3402 |
fi |
3403 |
|
3404 |
test -n "$ac_ct_CXX" && break |
3405 |
done |
3406 |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
3407 |
|
3408 |
CXX=$ac_ct_CXX |
3409 |
fi |
3410 |
|
3411 |
|
3412 |
# Provide some information about the compiler. |
3413 |
echo "$as_me:$LINENO:" \ |
3414 |
"checking for C++ compiler version" >&5 |
3415 |
ac_compiler=`set X $ac_compile; echo $2` |
3416 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
3417 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
3418 |
ac_status=$? |
3419 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3420 |
(exit $ac_status); } |
3421 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
3422 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
3423 |
ac_status=$? |
3424 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3425 |
(exit $ac_status); } |
3426 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
3427 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
3428 |
ac_status=$? |
3429 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3430 |
(exit $ac_status); } |
3431 |
|
3432 |
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3433 |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
3434 |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
3435 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3436 |
else |
3437 |
cat >conftest.$ac_ext <<_ACEOF |
3438 |
/* confdefs.h. */ |
3439 |
_ACEOF |
3440 |
cat confdefs.h >>conftest.$ac_ext |
3441 |
cat >>conftest.$ac_ext <<_ACEOF |
3442 |
/* end confdefs.h. */ |
3443 |
|
3444 |
int |
3445 |
main () |
3446 |
{ |
3447 |
#ifndef __GNUC__ |
3448 |
choke me |
3449 |
#endif |
3450 |
|
3451 |
; |
3452 |
return 0; |
3453 |
} |
3454 |
_ACEOF |
3455 |
rm -f conftest.$ac_objext |
3456 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3457 |
(eval $ac_compile) 2>conftest.er1 |
3458 |
ac_status=$? |
3459 |
grep -v '^ *+' conftest.er1 >conftest.err |
3460 |
rm -f conftest.er1 |
3461 |
cat conftest.err >&5 |
3462 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3463 |
(exit $ac_status); } && |
3464 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
3465 |
|| test ! -s conftest.err' |
3466 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3467 |
(eval $ac_try) 2>&5 |
3468 |
ac_status=$? |
3469 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3470 |
(exit $ac_status); }; } && |
3471 |
{ ac_try='test -s conftest.$ac_objext' |
3472 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3473 |
(eval $ac_try) 2>&5 |
3474 |
ac_status=$? |
3475 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3476 |
(exit $ac_status); }; }; then |
3477 |
ac_compiler_gnu=yes |
3478 |
else |
3479 |
echo "$as_me: failed program was:" >&5 |
3480 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3481 |
|
3482 |
ac_compiler_gnu=no |
3483 |
fi |
3484 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3485 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3486 |
|
3487 |
fi |
3488 |
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3489 |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
3490 |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
3491 |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
3492 |
ac_save_CXXFLAGS=$CXXFLAGS |
3493 |
CXXFLAGS="-g" |
3494 |
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3495 |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
3496 |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
3497 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3498 |
else |
3499 |
cat >conftest.$ac_ext <<_ACEOF |
3500 |
/* confdefs.h. */ |
3501 |
_ACEOF |
3502 |
cat confdefs.h >>conftest.$ac_ext |
3503 |
cat >>conftest.$ac_ext <<_ACEOF |
3504 |
/* end confdefs.h. */ |
3505 |
|
3506 |
int |
3507 |
main () |
3508 |
{ |
3509 |
|
3510 |
; |
3511 |
return 0; |
3512 |
} |
3513 |
_ACEOF |
3514 |
rm -f conftest.$ac_objext |
3515 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3516 |
(eval $ac_compile) 2>conftest.er1 |
3517 |
ac_status=$? |
3518 |
grep -v '^ *+' conftest.er1 >conftest.err |
3519 |
rm -f conftest.er1 |
3520 |
cat conftest.err >&5 |
3521 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3522 |
(exit $ac_status); } && |
3523 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
3524 |
|| test ! -s conftest.err' |
3525 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3526 |
(eval $ac_try) 2>&5 |
3527 |
ac_status=$? |
3528 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3529 |
(exit $ac_status); }; } && |
3530 |
{ ac_try='test -s conftest.$ac_objext' |
3531 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3532 |
(eval $ac_try) 2>&5 |
3533 |
ac_status=$? |
3534 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3535 |
(exit $ac_status); }; }; then |
3536 |
ac_cv_prog_cxx_g=yes |
3537 |
else |
3538 |
echo "$as_me: failed program was:" >&5 |
3539 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3540 |
|
3541 |
ac_cv_prog_cxx_g=no |
3542 |
fi |
3543 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3544 |
fi |
3545 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3546 |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
3547 |
if test "$ac_test_CXXFLAGS" = set; then |
3548 |
CXXFLAGS=$ac_save_CXXFLAGS |
3549 |
elif test $ac_cv_prog_cxx_g = yes; then |
3550 |
if test "$GXX" = yes; then |
3551 |
CXXFLAGS="-g -O2" |
3552 |
else |
3553 |
CXXFLAGS="-g" |
3554 |
fi |
3555 |
else |
3556 |
if test "$GXX" = yes; then |
3557 |
CXXFLAGS="-O2" |
3558 |
else |
3559 |
CXXFLAGS= |
3560 |
fi |
3561 |
fi |
3562 |
for ac_declaration in \ |
3563 |
'' \ |
3564 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3565 |
'extern "C" void std::exit (int); using std::exit;' \ |
3566 |
'extern "C" void exit (int) throw ();' \ |
3567 |
'extern "C" void exit (int);' \ |
3568 |
'void exit (int);' |
3569 |
do |
3570 |
cat >conftest.$ac_ext <<_ACEOF |
3571 |
/* confdefs.h. */ |
3572 |
_ACEOF |
3573 |
cat confdefs.h >>conftest.$ac_ext |
3574 |
cat >>conftest.$ac_ext <<_ACEOF |
3575 |
/* end confdefs.h. */ |
3576 |
$ac_declaration |
3577 |
#include <stdlib.h> |
3578 |
int |
3579 |
main () |
3580 |
{ |
3581 |
exit (42); |
3582 |
; |
3583 |
return 0; |
3584 |
} |
3585 |
_ACEOF |
3586 |
rm -f conftest.$ac_objext |
3587 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3588 |
(eval $ac_compile) 2>conftest.er1 |
3589 |
ac_status=$? |
3590 |
grep -v '^ *+' conftest.er1 >conftest.err |
3591 |
rm -f conftest.er1 |
3592 |
cat conftest.err >&5 |
3593 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3594 |
(exit $ac_status); } && |
3595 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
3596 |
|| test ! -s conftest.err' |
3597 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3598 |
(eval $ac_try) 2>&5 |
3599 |
ac_status=$? |
3600 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3601 |
(exit $ac_status); }; } && |
3602 |
{ ac_try='test -s conftest.$ac_objext' |
3603 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3604 |
(eval $ac_try) 2>&5 |
3605 |
ac_status=$? |
3606 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3607 |
(exit $ac_status); }; }; then |
3608 |
: |
3609 |
else |
3610 |
echo "$as_me: failed program was:" >&5 |
3611 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3612 |
|
3613 |
continue |
3614 |
fi |
3615 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3616 |
cat >conftest.$ac_ext <<_ACEOF |
3617 |
/* confdefs.h. */ |
3618 |
_ACEOF |
3619 |
cat confdefs.h >>conftest.$ac_ext |
3620 |
cat >>conftest.$ac_ext <<_ACEOF |
3621 |
/* end confdefs.h. */ |
3622 |
$ac_declaration |
3623 |
int |
3624 |
main () |
3625 |
{ |
3626 |
exit (42); |
3627 |
; |
3628 |
return 0; |
3629 |
} |
3630 |
_ACEOF |
3631 |
rm -f conftest.$ac_objext |
3632 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3633 |
(eval $ac_compile) 2>conftest.er1 |
3634 |
ac_status=$? |
3635 |
grep -v '^ *+' conftest.er1 >conftest.err |
3636 |
rm -f conftest.er1 |
3637 |
cat conftest.err >&5 |
3638 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3639 |
(exit $ac_status); } && |
3640 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
3641 |
|| test ! -s conftest.err' |
3642 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3643 |
(eval $ac_try) 2>&5 |
3644 |
ac_status=$? |
3645 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3646 |
(exit $ac_status); }; } && |
3647 |
{ ac_try='test -s conftest.$ac_objext' |
3648 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3649 |
(eval $ac_try) 2>&5 |
3650 |
ac_status=$? |
3651 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3652 |
(exit $ac_status); }; }; then |
3653 |
break |
3654 |
else |
3655 |
echo "$as_me: failed program was:" >&5 |
3656 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3657 |
|
3658 |
fi |
3659 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3660 |
done |
3661 |
rm -f conftest* |
3662 |
if test -n "$ac_declaration"; then |
3663 |
echo '#ifdef __cplusplus' >>confdefs.h |
3664 |
echo $ac_declaration >>confdefs.h |
3665 |
echo '#endif' >>confdefs.h |
3666 |
fi |
3667 |
|
3668 |
ac_ext=c |
3669 |
ac_cpp='$CPP $CPPFLAGS' |
3670 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3671 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3672 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3673 |
|
3674 |
# Check whether --enable-shared or --disable-shared was given. |
3675 |
if test "${enable_shared+set}" = set; then |
3676 |
enableval="$enable_shared" |
3677 |
p=${PACKAGE-default} |
3678 |
case $enableval in |
3679 |
yes) enable_shared=yes ;; |
3680 |
no) enable_shared=no ;; |
3681 |
*) |
3682 |
enable_shared=no |
3683 |
# Look at the argument we got. We use all the common list separators. |
3684 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
3685 |
for pkg in $enableval; do |
3686 |
if test "X$pkg" = "X$p"; then |
3687 |
enable_shared=yes |
3688 |
fi |
3689 |
done |
3690 |
IFS="$ac_save_ifs" |
3691 |
;; |
3692 |
esac |
3693 |
else |
3694 |
enable_shared=yes |
3695 |
fi; |
3696 |
# Check whether --enable-static or --disable-static was given. |
3697 |
if test "${enable_static+set}" = set; then |
3698 |
enableval="$enable_static" |
3699 |
p=${PACKAGE-default} |
3700 |
case $enableval in |
3701 |
yes) enable_static=yes ;; |
3702 |
no) enable_static=no ;; |
3703 |
*) |
3704 |
enable_static=no |
3705 |
# Look at the argument we got. We use all the common list separators. |
3706 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
3707 |
for pkg in $enableval; do |
3708 |
if test "X$pkg" = "X$p"; then |
3709 |
enable_static=yes |
3710 |
fi |
3711 |
done |
3712 |
IFS="$ac_save_ifs" |
3713 |
;; |
3714 |
esac |
3715 |
else |
3716 |
enable_static=yes |
3717 |
fi; |
3718 |
# Check whether --enable-fast-install or --disable-fast-install was given. |
3719 |
if test "${enable_fast_install+set}" = set; then |
3720 |
enableval="$enable_fast_install" |
3721 |
p=${PACKAGE-default} |
3722 |
case $enableval in |
3723 |
yes) enable_fast_install=yes ;; |
3724 |
no) enable_fast_install=no ;; |
3725 |
*) |
3726 |
enable_fast_install=no |
3727 |
# Look at the argument we got. We use all the common list separators. |
3728 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
3729 |
for pkg in $enableval; do |
3730 |
if test "X$pkg" = "X$p"; then |
3731 |
enable_fast_install=yes |
3732 |
fi |
3733 |
done |
3734 |
IFS="$ac_save_ifs" |
3735 |
;; |
3736 |
esac |
3737 |
else |
3738 |
enable_fast_install=yes |
3739 |
fi; |
3740 |
# Find the correct PATH separator. Usually this is `:', but |
3741 |
# DJGPP uses `;' like DOS. |
3742 |
if test "X${PATH_SEPARATOR+set}" != Xset; then |
3743 |
UNAME=${UNAME-`uname 2>/dev/null`} |
3744 |
case X$UNAME in |
3745 |
*-DOS) lt_cv_sys_path_separator=';' ;; |
3746 |
*) lt_cv_sys_path_separator=':' ;; |
3747 |
esac |
3748 |
PATH_SEPARATOR=$lt_cv_sys_path_separator |
3749 |
fi |
3750 |
|
3751 |
|
3752 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
3753 |
if test "${with_gnu_ld+set}" = set; then |
3754 |
withval="$with_gnu_ld" |
3755 |
test "$withval" = no || with_gnu_ld=yes |
3756 |
else |
3757 |
with_gnu_ld=no |
3758 |
fi; |
3759 |
ac_prog=ld |
3760 |
if test "$GCC" = yes; then |
3761 |
# Check if gcc -print-prog-name=ld gives a path. |
3762 |
echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3763 |
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
3764 |
case $host in |
3765 |
*-*-mingw*) |
3766 |
# gcc leaves a trailing carriage return which upsets mingw |
3767 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3768 |
*) |
3769 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3770 |
esac |
3771 |
case $ac_prog in |
3772 |
# Accept absolute paths. |
3773 |
[\\/]* | [A-Za-z]:[\\/]*) |
3774 |
re_direlt='/[^/][^/]*/\.\./' |
3775 |
# Canonicalize the path of ld |
3776 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
3777 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3778 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
3779 |
done |
3780 |
test -z "$LD" && LD="$ac_prog" |
3781 |
;; |
3782 |
"") |
3783 |
# If it fails, then pretend we aren't using GCC. |
3784 |
ac_prog=ld |
3785 |
;; |
3786 |
*) |
3787 |
# If it is relative, then search for the first ld in PATH. |
3788 |
with_gnu_ld=unknown |
3789 |
;; |
3790 |
esac |
3791 |
elif test "$with_gnu_ld" = yes; then |
3792 |
echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3793 |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3794 |
else |
3795 |
echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3796 |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
3797 |
fi |
3798 |
if test "${lt_cv_path_LD+set}" = set; then |
3799 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3800 |
else |
3801 |
if test -z "$LD"; then |
3802 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3803 |
for ac_dir in $PATH; do |
3804 |
test -z "$ac_dir" && ac_dir=. |
3805 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3806 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
3807 |
# Check to see if the program is GNU ld. I'd rather use --version, |
3808 |
# but apparently some GNU ld's only accept -v. |
3809 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
3810 |
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
3811 |
test "$with_gnu_ld" != no && break |
3812 |
else |
3813 |
test "$with_gnu_ld" != yes && break |
3814 |
fi |
3815 |
fi |
3816 |
done |
3817 |
IFS="$ac_save_ifs" |
3818 |
else |
3819 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3820 |
fi |
3821 |
fi |
3822 |
|
3823 |
LD="$lt_cv_path_LD" |
3824 |
if test -n "$LD"; then |
3825 |
echo "$as_me:$LINENO: result: $LD" >&5 |
3826 |
echo "${ECHO_T}$LD" >&6 |
3827 |
else |
3828 |
echo "$as_me:$LINENO: result: no" >&5 |
3829 |
echo "${ECHO_T}no" >&6 |
3830 |
fi |
3831 |
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3832 |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
3833 |
{ (exit 1); exit 1; }; } |
3834 |
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
3835 |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
3836 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
3837 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3838 |
else |
3839 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
3840 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
3841 |
lt_cv_prog_gnu_ld=yes |
3842 |
else |
3843 |
lt_cv_prog_gnu_ld=no |
3844 |
fi |
3845 |
fi |
3846 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3847 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
3848 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
3849 |
|
3850 |
|
3851 |
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3852 |
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
3853 |
if test "${lt_cv_ld_reload_flag+set}" = set; then |
3854 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3855 |
else |
3856 |
lt_cv_ld_reload_flag='-r' |
3857 |
fi |
3858 |
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3859 |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
3860 |
reload_flag=$lt_cv_ld_reload_flag |
3861 |
test -n "$reload_flag" && reload_flag=" $reload_flag" |
3862 |
|
3863 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3864 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
3865 |
if test "${lt_cv_path_NM+set}" = set; then |
3866 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3867 |
else |
3868 |
if test -n "$NM"; then |
3869 |
# Let the user override the test. |
3870 |
lt_cv_path_NM="$NM" |
3871 |
else |
3872 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3873 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3874 |
test -z "$ac_dir" && ac_dir=. |
3875 |
tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3876 |
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
3877 |
# Check to see if the nm accepts a BSD-compat flag. |
3878 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3879 |
# nm: unknown option "B" ignored |
3880 |
# Tru64's nm complains that /dev/null is an invalid object file |
3881 |
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
3882 |
lt_cv_path_NM="$tmp_nm -B" |
3883 |
break |
3884 |
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
3885 |
lt_cv_path_NM="$tmp_nm -p" |
3886 |
break |
3887 |
else |
3888 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
3889 |
continue # so that we can try to find one that supports BSD flags |
3890 |
fi |
3891 |
fi |
3892 |
done |
3893 |
IFS="$ac_save_ifs" |
3894 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
3895 |
fi |
3896 |
fi |
3897 |
|
3898 |
NM="$lt_cv_path_NM" |
3899 |
echo "$as_me:$LINENO: result: $NM" >&5 |
3900 |
echo "${ECHO_T}$NM" >&6 |
3901 |
|
3902 |
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3903 |
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
3904 |
if test "${lt_cv_path_SED+set}" = set; then |
3905 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3906 |
else |
3907 |
# Loop through the user's path and test for sed and gsed. |
3908 |
# Then use that list of sed's as ones to test for truncation. |
3909 |
as_executable_p="test -f" |
3910 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3911 |
for as_dir in $PATH |
3912 |
do |
3913 |
IFS=$as_save_IFS |
3914 |
test -z "$as_dir" && as_dir=. |
3915 |
for ac_prog in sed gsed; do |
3916 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3917 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3918 |
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
3919 |
fi |
3920 |
done |
3921 |
done |
3922 |
done |
3923 |
|
3924 |
# Create a temporary directory, and hook for its removal unless debugging. |
3925 |
$debug || |
3926 |
{ |
3927 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
3928 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
3929 |
} |
3930 |
|
3931 |
# Create a (secure) tmp directory for tmp files. |
3932 |
: ${TMPDIR=/tmp} |
3933 |
{ |
3934 |
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
3935 |
test -n "$tmp" && test -d "$tmp" |
3936 |
} || |
3937 |
{ |
3938 |
tmp=$TMPDIR/sed$$-$RANDOM |
3939 |
(umask 077 && mkdir $tmp) |
3940 |
} || |
3941 |
{ |
3942 |
echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
3943 |
{ (exit 1); exit 1; } |
3944 |
} |
3945 |
_max=0 |
3946 |
_count=0 |
3947 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3948 |
# along with /bin/sed that truncates output. |
3949 |
for _sed in $_sed_list /usr/xpg4/bin/sed; do |
3950 |
test ! -f ${_sed} && break |
3951 |
cat /dev/null > "$tmp/sed.in" |
3952 |
_count=0 |
3953 |
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
3954 |
# Check for GNU sed and select it if it is found. |
3955 |
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
3956 |
lt_cv_path_SED=${_sed} |
3957 |
break |
3958 |
fi |
3959 |
while true; do |
3960 |
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
3961 |
mv "$tmp/sed.tmp" "$tmp/sed.in" |
3962 |
cp "$tmp/sed.in" "$tmp/sed.nl" |
3963 |
echo >>"$tmp/sed.nl" |
3964 |
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
3965 |
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
3966 |
# 40000 chars as input seems more than enough |
3967 |
test $_count -gt 10 && break |
3968 |
_count=`expr $_count + 1` |
3969 |
if test $_count -gt $_max; then |
3970 |
_max=$_count |
3971 |
lt_cv_path_SED=$_sed |
3972 |
fi |
3973 |
done |
3974 |
done |
3975 |
rm -rf "$tmp" |
3976 |
|
3977 |
fi |
3978 |
|
3979 |
if test "X$SED" != "X"; then |
3980 |
lt_cv_path_SED=$SED |
3981 |
else |
3982 |
SED=$lt_cv_path_SED |
3983 |
fi |
3984 |
echo "$as_me:$LINENO: result: $SED" >&5 |
3985 |
echo "${ECHO_T}$SED" >&6 |
3986 |
|
3987 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3988 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3989 |
LN_S=$as_ln_s |
3990 |
if test "$LN_S" = "ln -s"; then |
3991 |
echo "$as_me:$LINENO: result: yes" >&5 |
3992 |
echo "${ECHO_T}yes" >&6 |
3993 |
else |
3994 |
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3995 |
echo "${ECHO_T}no, using $LN_S" >&6 |
3996 |
fi |
3997 |
|
3998 |
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
3999 |
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
4000 |
if test "${lt_cv_deplibs_check_method+set}" = set; then |
4001 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4002 |
else |
4003 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
4004 |
lt_cv_file_magic_test_file= |
4005 |
lt_cv_deplibs_check_method='unknown' |
4006 |
# Need to set the preceding variable on all platforms that support |
4007 |
# interlibrary dependencies. |
4008 |
# 'none' -- dependencies not supported. |
4009 |
# `unknown' -- same as none, but documents that we really don't know. |
4010 |
# 'pass_all' -- all dependencies passed with no checks. |
4011 |
# 'test_compile' -- check by making test program. |
4012 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
4013 |
# which responds to the $file_magic_cmd with a given egrep regex. |
4014 |
# If you have `file' or equivalent on your system and you're not sure |
4015 |
# whether `pass_all' will *always* work, you probably want this one. |
4016 |
|
4017 |
case $host_os in |
4018 |
aix4* | aix5*) |
4019 |
lt_cv_deplibs_check_method=pass_all |
4020 |
;; |
4021 |
|
4022 |
beos*) |
4023 |
lt_cv_deplibs_check_method=pass_all |
4024 |
;; |
4025 |
|
4026 |
bsdi4*) |
4027 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4028 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
4029 |
lt_cv_file_magic_test_file=/shlib/libc.so |
4030 |
;; |
4031 |
|
4032 |
cygwin* | mingw* | pw32*) |
4033 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4034 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
4035 |
;; |
4036 |
|
4037 |
darwin* | rhapsody*) |
4038 |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
4039 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
4040 |
case "$host_os" in |
4041 |
rhapsody* | darwin1.[012]) |
4042 |
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
4043 |
;; |
4044 |
*) # Darwin 1.3 on |
4045 |
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
4046 |
;; |
4047 |
esac |
4048 |
;; |
4049 |
|
4050 |
freebsd*) |
4051 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4052 |
case $host_cpu in |
4053 |
i*86 ) |
4054 |
# Not sure whether the presence of OpenBSD here was a mistake. |
4055 |
# Let's accept both of them until this is cleared up. |
4056 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
4057 |
lt_cv_file_magic_cmd=/usr/bin/file |
4058 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4059 |
;; |
4060 |
esac |
4061 |
else |
4062 |
lt_cv_deplibs_check_method=pass_all |
4063 |
fi |
4064 |
;; |
4065 |
|
4066 |
gnu*) |
4067 |
lt_cv_deplibs_check_method=pass_all |
4068 |
;; |
4069 |
|
4070 |
hpux10.20*|hpux11*) |
4071 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4072 |
lt_cv_file_magic_cmd=/usr/bin/file |
4073 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4074 |
;; |
4075 |
|
4076 |
irix5* | irix6* | nonstopux*) |
4077 |
case $host_os in |
4078 |
irix5* | nonstopux*) |
4079 |
# this will be overridden with pass_all, but let us keep it just in case |
4080 |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
4081 |
;; |
4082 |
*) |
4083 |
case $LD in |
4084 |
*-32|*"-32 ") libmagic=32-bit;; |
4085 |
*-n32|*"-n32 ") libmagic=N32;; |
4086 |
*-64|*"-64 ") libmagic=64-bit;; |
4087 |
*) libmagic=never-match;; |
4088 |
esac |
4089 |
# this will be overridden with pass_all, but let us keep it just in case |
4090 |
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
4091 |
;; |
4092 |
esac |
4093 |
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
4094 |
lt_cv_deplibs_check_method=pass_all |
4095 |
;; |
4096 |
|
4097 |
# This must be Linux ELF. |
4098 |
linux-gnu*) |
4099 |
case $host_cpu in |
4100 |
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*) |
4101 |
lt_cv_deplibs_check_method=pass_all ;; |
4102 |
*) |
4103 |
# glibc up to 2.1.1 does not perform some relocations on ARM |
4104 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
4105 |
esac |
4106 |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
4107 |
;; |
4108 |
|
4109 |
netbsd*) |
4110 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4111 |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
4112 |
else |
4113 |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
4114 |
fi |
4115 |
;; |
4116 |
|
4117 |
newos6*) |
4118 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4119 |
lt_cv_file_magic_cmd=/usr/bin/file |
4120 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4121 |
;; |
4122 |
|
4123 |
openbsd*) |
4124 |
lt_cv_file_magic_cmd=/usr/bin/file |
4125 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4126 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4127 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
4128 |
else |
4129 |
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
4130 |
fi |
4131 |
;; |
4132 |
|
4133 |
osf3* | osf4* | osf5*) |
4134 |
# this will be overridden with pass_all, but let us keep it just in case |
4135 |
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
4136 |
lt_cv_file_magic_test_file=/shlib/libc.so |
4137 |
lt_cv_deplibs_check_method=pass_all |
4138 |
;; |
4139 |
|
4140 |
sco3.2v5*) |
4141 |
lt_cv_deplibs_check_method=pass_all |
4142 |
;; |
4143 |
|
4144 |
solaris*) |
4145 |
lt_cv_deplibs_check_method=pass_all |
4146 |
lt_cv_file_magic_test_file=/lib/libc.so |
4147 |
;; |
4148 |
|
4149 |
sysv5uw[78]* | sysv4*uw2*) |
4150 |
lt_cv_deplibs_check_method=pass_all |
4151 |
;; |
4152 |
|
4153 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
4154 |
case $host_vendor in |
4155 |
motorola) |
4156 |
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]' |
4157 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4158 |
;; |
4159 |
ncr) |
4160 |
lt_cv_deplibs_check_method=pass_all |
4161 |
;; |
4162 |
sequent) |
4163 |
lt_cv_file_magic_cmd='/bin/file' |
4164 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4165 |
;; |
4166 |
sni) |
4167 |
lt_cv_file_magic_cmd='/bin/file' |
4168 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4169 |
lt_cv_file_magic_test_file=/lib/libc.so |
4170 |
;; |
4171 |
siemens) |
4172 |
lt_cv_deplibs_check_method=pass_all |
4173 |
;; |
4174 |
esac |
4175 |
;; |
4176 |
esac |
4177 |
|
4178 |
fi |
4179 |
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4180 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
4181 |
file_magic_cmd=$lt_cv_file_magic_cmd |
4182 |
deplibs_check_method=$lt_cv_deplibs_check_method |
4183 |
|
4184 |
|
4185 |
|
4186 |
|
4187 |
|
4188 |
|
4189 |
|
4190 |
|
4191 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
4192 |
echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
4193 |
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
4194 |
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
4195 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4196 |
else |
4197 |
|
4198 |
# These are sane defaults that work on at least a few old systems. |
4199 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
4200 |
|
4201 |
# Character class describing NM global symbol codes. |
4202 |
symcode='[BCDEGRST]' |
4203 |
|
4204 |
# Regexp to match symbols that can be accessed directly from C. |
4205 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
4206 |
|
4207 |
# Transform the above into a raw symbol and a C symbol. |
4208 |
symxfrm='\1 \2\3 \3' |
4209 |
|
4210 |
# Transform an extracted symbol line into a proper C declaration |
4211 |
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
4212 |
|
4213 |
# Transform an extracted symbol line into symbol name and symbol address |
4214 |
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
4215 |
|
4216 |
# Define system-specific variables. |
4217 |
case $host_os in |
4218 |
aix*) |
4219 |
symcode='[BCDT]' |
4220 |
;; |
4221 |
cygwin* | mingw* | pw32*) |
4222 |
symcode='[ABCDGISTW]' |
4223 |
;; |
4224 |
hpux*) # Its linker distinguishes data from code symbols |
4225 |
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
4226 |
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
4227 |
;; |
4228 |
irix* | nonstopux*) |
4229 |
symcode='[BCDEGRST]' |
4230 |
;; |
4231 |
osf*) |
4232 |
symcode='[BCDEGQRST]' |
4233 |
;; |
4234 |
solaris* | sysv5*) |
4235 |
symcode='[BDT]' |
4236 |
;; |
4237 |
sysv4) |
4238 |
symcode='[DFNSTU]' |
4239 |
;; |
4240 |
esac |
4241 |
|
4242 |
# Handle CRLF in mingw tool chain |
4243 |
opt_cr= |
4244 |
case $host_os in |
4245 |
mingw*) |
4246 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
4247 |
;; |
4248 |
esac |
4249 |
|
4250 |
# If we're using GNU nm, then use its standard symbol codes. |
4251 |
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
4252 |
symcode='[ABCDGISTW]' |
4253 |
fi |
4254 |
|
4255 |
# Try without a prefix undercore, then with it. |
4256 |
for ac_symprfx in "" "_"; do |
4257 |
|
4258 |
# Write the raw and C identifiers. |
4259 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
4260 |
|
4261 |
# Check to see that the pipe works correctly. |
4262 |
pipe_works=no |
4263 |
rm -f conftest* |
4264 |
cat > conftest.$ac_ext <<EOF |
4265 |
#ifdef __cplusplus |
4266 |
extern "C" { |
4267 |
#endif |
4268 |
char nm_test_var; |
4269 |
void nm_test_func(){} |
4270 |
#ifdef __cplusplus |
4271 |
} |
4272 |
#endif |
4273 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
4274 |
EOF |
4275 |
|
4276 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4277 |
(eval $ac_compile) 2>&5 |
4278 |
ac_status=$? |
4279 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4280 |
(exit $ac_status); }; then |
4281 |
# Now try to grab the symbols. |
4282 |
nlist=conftest.nm |
4283 |
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
4284 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
4285 |
ac_status=$? |
4286 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4287 |
(exit $ac_status); } && test -s "$nlist"; then |
4288 |
# Try sorting and uniquifying the output. |
4289 |
if sort "$nlist" | uniq > "$nlist"T; then |
4290 |
mv -f "$nlist"T "$nlist" |
4291 |
else |
4292 |
rm -f "$nlist"T |
4293 |
fi |
4294 |
|
4295 |
# Make sure that we snagged all the symbols we need. |
4296 |
if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
4297 |
if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
4298 |
cat <<EOF > conftest.$ac_ext |
4299 |
#ifdef __cplusplus |
4300 |
extern "C" { |
4301 |
#endif |
4302 |
|
4303 |
EOF |
4304 |
# Now generate the symbol file. |
4305 |
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
4306 |
|
4307 |
cat <<EOF >> conftest.$ac_ext |
4308 |
#if defined (__STDC__) && __STDC__ |
4309 |
# define lt_ptr void * |
4310 |
#else |
4311 |
# define lt_ptr char * |
4312 |
# define const |
4313 |
#endif |
4314 |
|
4315 |
/* The mapping between symbol names and symbols. */ |
4316 |
const struct { |
4317 |
const char *name; |
4318 |
lt_ptr address; |
4319 |
} |
4320 |
lt_preloaded_symbols[] = |
4321 |
{ |
4322 |
EOF |
4323 |
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
4324 |
cat <<\EOF >> conftest.$ac_ext |
4325 |
{0, (lt_ptr) 0} |
4326 |
}; |
4327 |
|
4328 |
#ifdef __cplusplus |
4329 |
} |
4330 |
#endif |
4331 |
EOF |
4332 |
# Now try linking the two files. |
4333 |
mv conftest.$ac_objext conftstm.$ac_objext |
4334 |
save_LIBS="$LIBS" |
4335 |
save_CFLAGS="$CFLAGS" |
4336 |
LIBS="conftstm.$ac_objext" |
4337 |
CFLAGS="$CFLAGS$no_builtin_flag" |
4338 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4339 |
(eval $ac_link) 2>&5 |
4340 |
ac_status=$? |
4341 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4342 |
(exit $ac_status); } && test -s conftest$ac_exeext; then |
4343 |
pipe_works=yes |
4344 |
fi |
4345 |
LIBS="$save_LIBS" |
4346 |
CFLAGS="$save_CFLAGS" |
4347 |
else |
4348 |
echo "cannot find nm_test_func in $nlist" >&5 |
4349 |
fi |
4350 |
else |
4351 |
echo "cannot find nm_test_var in $nlist" >&5 |
4352 |
fi |
4353 |
else |
4354 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
4355 |
fi |
4356 |
else |
4357 |
echo "$progname: failed program was:" >&5 |
4358 |
cat conftest.$ac_ext >&5 |
4359 |
fi |
4360 |
rm -f conftest* conftst* |
4361 |
|
4362 |
# Do not use the global_symbol_pipe unless it works. |
4363 |
if test "$pipe_works" = yes; then |
4364 |
break |
4365 |
else |
4366 |
lt_cv_sys_global_symbol_pipe= |
4367 |
fi |
4368 |
done |
4369 |
|
4370 |
fi |
4371 |
|
4372 |
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
4373 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
4374 |
global_symbol_to_cdecl= |
4375 |
global_symbol_to_c_name_address= |
4376 |
else |
4377 |
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
4378 |
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
4379 |
fi |
4380 |
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
4381 |
then |
4382 |
echo "$as_me:$LINENO: result: failed" >&5 |
4383 |
echo "${ECHO_T}failed" >&6 |
4384 |
else |
4385 |
echo "$as_me:$LINENO: result: ok" >&5 |
4386 |
echo "${ECHO_T}ok" >&6 |
4387 |
fi |
4388 |
|
4389 |
ac_ext=c |
4390 |
ac_cpp='$CPP $CPPFLAGS' |
4391 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4392 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4393 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4394 |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4395 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
4396 |
# On Suns, sometimes $CPP names a directory. |
4397 |
if test -n "$CPP" && test -d "$CPP"; then |
4398 |
CPP= |
4399 |
fi |
4400 |
if test -z "$CPP"; then |
4401 |
if test "${ac_cv_prog_CPP+set}" = set; then |
4402 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4403 |
else |
4404 |
# Double quotes because CPP needs to be expanded |
4405 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4406 |
do |
4407 |
ac_preproc_ok=false |
4408 |
for ac_c_preproc_warn_flag in '' yes |
4409 |
do |
4410 |
# Use a header file that comes with gcc, so configuring glibc |
4411 |
# with a fresh cross-compiler works. |
4412 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4413 |
# <limits.h> exists even on freestanding compilers. |
4414 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
4415 |
# not just through cpp. "Syntax error" is here to catch this case. |
4416 |
cat >conftest.$ac_ext <<_ACEOF |
4417 |
/* confdefs.h. */ |
4418 |
_ACEOF |
4419 |
cat confdefs.h >>conftest.$ac_ext |
4420 |
cat >>conftest.$ac_ext <<_ACEOF |
4421 |
/* end confdefs.h. */ |
4422 |
#ifdef __STDC__ |
4423 |
# include <limits.h> |
4424 |
#else |
4425 |
# include <assert.h> |
4426 |
#endif |
4427 |
Syntax error |
4428 |
_ACEOF |
4429 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4430 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4431 |
ac_status=$? |
4432 |
grep -v '^ *+' conftest.er1 >conftest.err |
4433 |
rm -f conftest.er1 |
4434 |
cat conftest.err >&5 |
4435 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4436 |
(exit $ac_status); } >/dev/null; then |
4437 |
if test -s conftest.err; then |
4438 |
ac_cpp_err=$ac_c_preproc_warn_flag |
4439 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4440 |
else |
4441 |
ac_cpp_err= |
4442 |
fi |
4443 |
else |
4444 |
ac_cpp_err=yes |
4445 |
fi |
4446 |
if test -z "$ac_cpp_err"; then |
4447 |
: |
4448 |
else |
4449 |
echo "$as_me: failed program was:" >&5 |
4450 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4451 |
|
4452 |
# Broken: fails on valid input. |
4453 |
continue |
4454 |
fi |
4455 |
rm -f conftest.err conftest.$ac_ext |
4456 |
|
4457 |
# OK, works on sane cases. Now check whether non-existent headers |
4458 |
# can be detected and how. |
4459 |
cat >conftest.$ac_ext <<_ACEOF |
4460 |
/* confdefs.h. */ |
4461 |
_ACEOF |
4462 |
cat confdefs.h >>conftest.$ac_ext |
4463 |
cat >>conftest.$ac_ext <<_ACEOF |
4464 |
/* end confdefs.h. */ |
4465 |
#include <ac_nonexistent.h> |
4466 |
_ACEOF |
4467 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4468 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4469 |
ac_status=$? |
4470 |
grep -v '^ *+' conftest.er1 >conftest.err |
4471 |
rm -f conftest.er1 |
4472 |
cat conftest.err >&5 |
4473 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4474 |
(exit $ac_status); } >/dev/null; then |
4475 |
if test -s conftest.err; then |
4476 |
ac_cpp_err=$ac_c_preproc_warn_flag |
4477 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4478 |
else |
4479 |
ac_cpp_err= |
4480 |
fi |
4481 |
else |
4482 |
ac_cpp_err=yes |
4483 |
fi |
4484 |
if test -z "$ac_cpp_err"; then |
4485 |
# Broken: success on invalid input. |
4486 |
continue |
4487 |
else |
4488 |
echo "$as_me: failed program was:" >&5 |
4489 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4490 |
|
4491 |
# Passes both tests. |
4492 |
ac_preproc_ok=: |
4493 |
break |
4494 |
fi |
4495 |
rm -f conftest.err conftest.$ac_ext |
4496 |
|
4497 |
done |
4498 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4499 |
rm -f conftest.err conftest.$ac_ext |
4500 |
if $ac_preproc_ok; then |
4501 |
break |
4502 |
fi |
4503 |
|
4504 |
done |
4505 |
ac_cv_prog_CPP=$CPP |
4506 |
|
4507 |
fi |
4508 |
CPP=$ac_cv_prog_CPP |
4509 |
else |
4510 |
ac_cv_prog_CPP=$CPP |
4511 |
fi |
4512 |
echo "$as_me:$LINENO: result: $CPP" >&5 |
4513 |
echo "${ECHO_T}$CPP" >&6 |
4514 |
ac_preproc_ok=false |
4515 |
for ac_c_preproc_warn_flag in '' yes |
4516 |
do |
4517 |
# Use a header file that comes with gcc, so configuring glibc |
4518 |
# with a fresh cross-compiler works. |
4519 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4520 |
# <limits.h> exists even on freestanding compilers. |
4521 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
4522 |
# not just through cpp. "Syntax error" is here to catch this case. |
4523 |
cat >conftest.$ac_ext <<_ACEOF |
4524 |
/* confdefs.h. */ |
4525 |
_ACEOF |
4526 |
cat confdefs.h >>conftest.$ac_ext |
4527 |
cat >>conftest.$ac_ext <<_ACEOF |
4528 |
/* end confdefs.h. */ |
4529 |
#ifdef __STDC__ |
4530 |
# include <limits.h> |
4531 |
#else |
4532 |
# include <assert.h> |
4533 |
#endif |
4534 |
Syntax error |
4535 |
_ACEOF |
4536 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4537 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4538 |
ac_status=$? |
4539 |
grep -v '^ *+' conftest.er1 >conftest.err |
4540 |
rm -f conftest.er1 |
4541 |
cat conftest.err >&5 |
4542 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4543 |
(exit $ac_status); } >/dev/null; then |
4544 |
if test -s conftest.err; then |
4545 |
ac_cpp_err=$ac_c_preproc_warn_flag |
4546 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4547 |
else |
4548 |
ac_cpp_err= |
4549 |
fi |
4550 |
else |
4551 |
ac_cpp_err=yes |
4552 |
fi |
4553 |
if test -z "$ac_cpp_err"; then |
4554 |
: |
4555 |
else |
4556 |
echo "$as_me: failed program was:" >&5 |
4557 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4558 |
|
4559 |
# Broken: fails on valid input. |
4560 |
continue |
4561 |
fi |
4562 |
rm -f conftest.err conftest.$ac_ext |
4563 |
|
4564 |
# OK, works on sane cases. Now check whether non-existent headers |
4565 |
# can be detected and how. |
4566 |
cat >conftest.$ac_ext <<_ACEOF |
4567 |
/* confdefs.h. */ |
4568 |
_ACEOF |
4569 |
cat confdefs.h >>conftest.$ac_ext |
4570 |
cat >>conftest.$ac_ext <<_ACEOF |
4571 |
/* end confdefs.h. */ |
4572 |
#include <ac_nonexistent.h> |
4573 |
_ACEOF |
4574 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4575 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4576 |
ac_status=$? |
4577 |
grep -v '^ *+' conftest.er1 >conftest.err |
4578 |
rm -f conftest.er1 |
4579 |
cat conftest.err >&5 |
4580 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4581 |
(exit $ac_status); } >/dev/null; then |
4582 |
if test -s conftest.err; then |
4583 |
ac_cpp_err=$ac_c_preproc_warn_flag |
4584 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4585 |
else |
4586 |
ac_cpp_err= |
4587 |
fi |
4588 |
else |
4589 |
ac_cpp_err=yes |
4590 |
fi |
4591 |
if test -z "$ac_cpp_err"; then |
4592 |
# Broken: success on invalid input. |
4593 |
continue |
4594 |
else |
4595 |
echo "$as_me: failed program was:" >&5 |
4596 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4597 |
|
4598 |
# Passes both tests. |
4599 |
ac_preproc_ok=: |
4600 |
break |
4601 |
fi |
4602 |
rm -f conftest.err conftest.$ac_ext |
4603 |
|
4604 |
done |
4605 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4606 |
rm -f conftest.err conftest.$ac_ext |
4607 |
if $ac_preproc_ok; then |
4608 |
: |
4609 |
else |
4610 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4611 |
See \`config.log' for more details." >&5 |
4612 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4613 |
See \`config.log' for more details." >&2;} |
4614 |
{ (exit 1); exit 1; }; } |
4615 |
fi |
4616 |
|
4617 |
ac_ext=c |
4618 |
ac_cpp='$CPP $CPPFLAGS' |
4619 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4620 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4621 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4622 |
|
4623 |
|
4624 |
echo "$as_me:$LINENO: checking for egrep" >&5 |
4625 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
4626 |
if test "${ac_cv_prog_egrep+set}" = set; then |
4627 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4628 |
else |
4629 |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
4630 |
then ac_cv_prog_egrep='grep -E' |
4631 |
else ac_cv_prog_egrep='egrep' |
4632 |
fi |
4633 |
fi |
4634 |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
4635 |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
4636 |
EGREP=$ac_cv_prog_egrep |
4637 |
|
4638 |
|
4639 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4640 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4641 |
if test "${ac_cv_header_stdc+set}" = set; then |
4642 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4643 |
else |
4644 |
cat >conftest.$ac_ext <<_ACEOF |
4645 |
/* confdefs.h. */ |
4646 |
_ACEOF |
4647 |
cat confdefs.h >>conftest.$ac_ext |
4648 |
cat >>conftest.$ac_ext <<_ACEOF |
4649 |
/* end confdefs.h. */ |
4650 |
#include <stdlib.h> |
4651 |
#include <stdarg.h> |
4652 |
#include <string.h> |
4653 |
#include <float.h> |
4654 |
|
4655 |
int |
4656 |
main () |
4657 |
{ |
4658 |
|
4659 |
; |
4660 |
return 0; |
4661 |
} |
4662 |
_ACEOF |
4663 |
rm -f conftest.$ac_objext |
4664 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4665 |
(eval $ac_compile) 2>conftest.er1 |
4666 |
ac_status=$? |
4667 |
grep -v '^ *+' conftest.er1 >conftest.err |
4668 |
rm -f conftest.er1 |
4669 |
cat conftest.err >&5 |
4670 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4671 |
(exit $ac_status); } && |
4672 |
{ ac_try='test -z "$ac_c_werror_flag" |
4673 |
|| test ! -s conftest.err' |
4674 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4675 |
(eval $ac_try) 2>&5 |
4676 |
ac_status=$? |
4677 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4678 |
(exit $ac_status); }; } && |
4679 |
{ ac_try='test -s conftest.$ac_objext' |
4680 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4681 |
(eval $ac_try) 2>&5 |
4682 |
ac_status=$? |
4683 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4684 |
(exit $ac_status); }; }; then |
4685 |
ac_cv_header_stdc=yes |
4686 |
else |
4687 |
echo "$as_me: failed program was:" >&5 |
4688 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4689 |
|
4690 |
ac_cv_header_stdc=no |
4691 |
fi |
4692 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4693 |
|
4694 |
if test $ac_cv_header_stdc = yes; then |
4695 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4696 |
cat >conftest.$ac_ext <<_ACEOF |
4697 |
/* confdefs.h. */ |
4698 |
_ACEOF |
4699 |
cat confdefs.h >>conftest.$ac_ext |
4700 |
cat >>conftest.$ac_ext <<_ACEOF |
4701 |
/* end confdefs.h. */ |
4702 |
#include <string.h> |
4703 |
|
4704 |
_ACEOF |
4705 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4706 |
$EGREP "memchr" >/dev/null 2>&1; then |
4707 |
: |
4708 |
else |
4709 |
ac_cv_header_stdc=no |
4710 |
fi |
4711 |
rm -f conftest* |
4712 |
|
4713 |
fi |
4714 |
|
4715 |
if test $ac_cv_header_stdc = yes; then |
4716 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4717 |
cat >conftest.$ac_ext <<_ACEOF |
4718 |
/* confdefs.h. */ |
4719 |
_ACEOF |
4720 |
cat confdefs.h >>conftest.$ac_ext |
4721 |
cat >>conftest.$ac_ext <<_ACEOF |
4722 |
/* end confdefs.h. */ |
4723 |
#include <stdlib.h> |
4724 |
|
4725 |
_ACEOF |
4726 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4727 |
$EGREP "free" >/dev/null 2>&1; then |
4728 |
: |
4729 |
else |
4730 |
ac_cv_header_stdc=no |
4731 |
fi |
4732 |
rm -f conftest* |
4733 |
|
4734 |
fi |
4735 |
|
4736 |
if test $ac_cv_header_stdc = yes; then |
4737 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4738 |
if test "$cross_compiling" = yes; then |
4739 |
: |
4740 |
else |
4741 |
cat >conftest.$ac_ext <<_ACEOF |
4742 |
/* confdefs.h. */ |
4743 |
_ACEOF |
4744 |
cat confdefs.h >>conftest.$ac_ext |
4745 |
cat >>conftest.$ac_ext <<_ACEOF |
4746 |
/* end confdefs.h. */ |
4747 |
#include <ctype.h> |
4748 |
#if ((' ' & 0x0FF) == 0x020) |
4749 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4750 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4751 |
#else |
4752 |
# define ISLOWER(c) \ |
4753 |
(('a' <= (c) && (c) <= 'i') \ |
4754 |
|| ('j' <= (c) && (c) <= 'r') \ |
4755 |
|| ('s' <= (c) && (c) <= 'z')) |
4756 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4757 |
#endif |
4758 |
|
4759 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4760 |
int |
4761 |
main () |
4762 |
{ |
4763 |
int i; |
4764 |
for (i = 0; i < 256; i++) |
4765 |
if (XOR (islower (i), ISLOWER (i)) |
4766 |
|| toupper (i) != TOUPPER (i)) |
4767 |
exit(2); |
4768 |
exit (0); |
4769 |
} |
4770 |
_ACEOF |
4771 |
rm -f conftest$ac_exeext |
4772 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4773 |
(eval $ac_link) 2>&5 |
4774 |
ac_status=$? |
4775 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4776 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4777 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4778 |
(eval $ac_try) 2>&5 |
4779 |
ac_status=$? |
4780 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4781 |
(exit $ac_status); }; }; then |
4782 |
: |
4783 |
else |
4784 |
echo "$as_me: program exited with status $ac_status" >&5 |
4785 |
echo "$as_me: failed program was:" >&5 |
4786 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4787 |
|
4788 |
( exit $ac_status ) |
4789 |
ac_cv_header_stdc=no |
4790 |
fi |
4791 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4792 |
fi |
4793 |
fi |
4794 |
fi |
4795 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4796 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
4797 |
if test $ac_cv_header_stdc = yes; then |
4798 |
|
4799 |
cat >>confdefs.h <<\_ACEOF |
4800 |
#define STDC_HEADERS 1 |
4801 |
_ACEOF |
4802 |
|
4803 |
fi |
4804 |
|
4805 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4806 |
|
4807 |
|
4808 |
|
4809 |
|
4810 |
|
4811 |
|
4812 |
|
4813 |
|
4814 |
|
4815 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4816 |
inttypes.h stdint.h unistd.h |
4817 |
do |
4818 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4819 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4820 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4821 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4822 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4823 |
else |
4824 |
cat >conftest.$ac_ext <<_ACEOF |
4825 |
/* confdefs.h. */ |
4826 |
_ACEOF |
4827 |
cat confdefs.h >>conftest.$ac_ext |
4828 |
cat >>conftest.$ac_ext <<_ACEOF |
4829 |
/* end confdefs.h. */ |
4830 |
$ac_includes_default |
4831 |
|
4832 |
#include <$ac_header> |
4833 |
_ACEOF |
4834 |
rm -f conftest.$ac_objext |
4835 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4836 |
(eval $ac_compile) 2>conftest.er1 |
4837 |
ac_status=$? |
4838 |
grep -v '^ *+' conftest.er1 >conftest.err |
4839 |
rm -f conftest.er1 |
4840 |
cat conftest.err >&5 |
4841 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4842 |
(exit $ac_status); } && |
4843 |
{ ac_try='test -z "$ac_c_werror_flag" |
4844 |
|| test ! -s conftest.err' |
4845 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4846 |
(eval $ac_try) 2>&5 |
4847 |
ac_status=$? |
4848 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4849 |
(exit $ac_status); }; } && |
4850 |
{ ac_try='test -s conftest.$ac_objext' |
4851 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4852 |
(eval $ac_try) 2>&5 |
4853 |
ac_status=$? |
4854 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4855 |
(exit $ac_status); }; }; then |
4856 |
eval "$as_ac_Header=yes" |
4857 |
else |
4858 |
echo "$as_me: failed program was:" >&5 |
4859 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4860 |
|
4861 |
eval "$as_ac_Header=no" |
4862 |
fi |
4863 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4864 |
fi |
4865 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4866 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4867 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4868 |
cat >>confdefs.h <<_ACEOF |
4869 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4870 |
_ACEOF |
4871 |
|
4872 |
fi |
4873 |
|
4874 |
done |
4875 |
|
4876 |
|
4877 |
|
4878 |
for ac_header in dlfcn.h |
4879 |
do |
4880 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4881 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4882 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4883 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4884 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4885 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4886 |
fi |
4887 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4888 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4889 |
else |
4890 |
# Is the header compilable? |
4891 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4892 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4893 |
cat >conftest.$ac_ext <<_ACEOF |
4894 |
/* confdefs.h. */ |
4895 |
_ACEOF |
4896 |
cat confdefs.h >>conftest.$ac_ext |
4897 |
cat >>conftest.$ac_ext <<_ACEOF |
4898 |
/* end confdefs.h. */ |
4899 |
$ac_includes_default |
4900 |
#include <$ac_header> |
4901 |
_ACEOF |
4902 |
rm -f conftest.$ac_objext |
4903 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4904 |
(eval $ac_compile) 2>conftest.er1 |
4905 |
ac_status=$? |
4906 |
grep -v '^ *+' conftest.er1 >conftest.err |
4907 |
rm -f conftest.er1 |
4908 |
cat conftest.err >&5 |
4909 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4910 |
(exit $ac_status); } && |
4911 |
{ ac_try='test -z "$ac_c_werror_flag" |
4912 |
|| test ! -s conftest.err' |
4913 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4914 |
(eval $ac_try) 2>&5 |
4915 |
ac_status=$? |
4916 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4917 |
(exit $ac_status); }; } && |
4918 |
{ ac_try='test -s conftest.$ac_objext' |
4919 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4920 |
(eval $ac_try) 2>&5 |
4921 |
ac_status=$? |
4922 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4923 |
(exit $ac_status); }; }; then |
4924 |
ac_header_compiler=yes |
4925 |
else |
4926 |
echo "$as_me: failed program was:" >&5 |
4927 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4928 |
|
4929 |
ac_header_compiler=no |
4930 |
fi |
4931 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4932 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4933 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
4934 |
|
4935 |
# Is the header present? |
4936 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4937 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4938 |
cat >conftest.$ac_ext <<_ACEOF |
4939 |
/* confdefs.h. */ |
4940 |
_ACEOF |
4941 |
cat confdefs.h >>conftest.$ac_ext |
4942 |
cat >>conftest.$ac_ext <<_ACEOF |
4943 |
/* end confdefs.h. */ |
4944 |
#include <$ac_header> |
4945 |
_ACEOF |
4946 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4947 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4948 |
ac_status=$? |
4949 |
grep -v '^ *+' conftest.er1 >conftest.err |
4950 |
rm -f conftest.er1 |
4951 |
cat conftest.err >&5 |
4952 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4953 |
(exit $ac_status); } >/dev/null; then |
4954 |
if test -s conftest.err; then |
4955 |
ac_cpp_err=$ac_c_preproc_warn_flag |
4956 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4957 |
else |
4958 |
ac_cpp_err= |
4959 |
fi |
4960 |
else |
4961 |
ac_cpp_err=yes |
4962 |
fi |
4963 |
if test -z "$ac_cpp_err"; then |
4964 |
ac_header_preproc=yes |
4965 |
else |
4966 |
echo "$as_me: failed program was:" >&5 |
4967 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4968 |
|
4969 |
ac_header_preproc=no |
4970 |
fi |
4971 |
rm -f conftest.err conftest.$ac_ext |
4972 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4973 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
4974 |
|
4975 |
# So? What about this header? |
4976 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4977 |
yes:no: ) |
4978 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4979 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4980 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4981 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
4982 |
ac_header_preproc=yes |
4983 |
;; |
4984 |
no:yes:* ) |
4985 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4986 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4987 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4988 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4989 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
4990 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
4991 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
4992 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
4993 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4994 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4995 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4996 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4997 |
( |
4998 |
cat <<\_ASBOX |
4999 |
## ------------------------------------------ ## |
5000 |
## Report this to the AC_PACKAGE_NAME lists. ## |
5001 |
## ------------------------------------------ ## |
5002 |
_ASBOX |
5003 |
) | |
5004 |
sed "s/^/$as_me: WARNING: /" >&2 |
5005 |
;; |
5006 |
esac |
5007 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5008 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5009 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5010 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5011 |
else |
5012 |
eval "$as_ac_Header=\$ac_header_preproc" |
5013 |
fi |
5014 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5015 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5016 |
|
5017 |
fi |
5018 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5019 |
cat >>confdefs.h <<_ACEOF |
5020 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5021 |
_ACEOF |
5022 |
|
5023 |
fi |
5024 |
|
5025 |
done |
5026 |
|
5027 |
|
5028 |
|
5029 |
|
5030 |
|
5031 |
|
5032 |
# Only perform the check for file, if the check method requires it |
5033 |
case $deplibs_check_method in |
5034 |
file_magic*) |
5035 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
5036 |
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
5037 |
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
5038 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
5039 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5040 |
else |
5041 |
case $MAGIC_CMD in |
5042 |
/*) |
5043 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
5044 |
;; |
5045 |
?:/*) |
5046 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
5047 |
;; |
5048 |
*) |
5049 |
ac_save_MAGIC_CMD="$MAGIC_CMD" |
5050 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5051 |
ac_dummy="/usr/bin:$PATH" |
5052 |
for ac_dir in $ac_dummy; do |
5053 |
test -z "$ac_dir" && ac_dir=. |
5054 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
5055 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
5056 |
if test -n "$file_magic_test_file"; then |
5057 |
case $deplibs_check_method in |
5058 |
"file_magic "*) |
5059 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
5060 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5061 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
5062 |
egrep "$file_magic_regex" > /dev/null; then |
5063 |
: |
5064 |
else |
5065 |
cat <<EOF 1>&2 |
5066 |
|
5067 |
*** Warning: the command libtool uses to detect shared libraries, |
5068 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
5069 |
*** The result is that libtool may fail to recognize shared libraries |
5070 |
*** as such. This will affect the creation of libtool libraries that |
5071 |
*** depend on shared libraries, but programs linked with such libtool |
5072 |
*** libraries will work regardless of this problem. Nevertheless, you |
5073 |
*** may want to report the problem to your system manager and/or to |
5074 |
*** bug-libtool@gnu.org |
5075 |
|
5076 |
EOF |
5077 |
fi ;; |
5078 |
esac |
5079 |
fi |
5080 |
break |
5081 |
fi |
5082 |
done |
5083 |
IFS="$ac_save_ifs" |
5084 |
MAGIC_CMD="$ac_save_MAGIC_CMD" |
5085 |
;; |
5086 |
esac |
5087 |
fi |
5088 |
|
5089 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5090 |
if test -n "$MAGIC_CMD"; then |
5091 |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
5092 |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
5093 |
else |
5094 |
echo "$as_me:$LINENO: result: no" >&5 |
5095 |
echo "${ECHO_T}no" >&6 |
5096 |
fi |
5097 |
|
5098 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
5099 |
if test -n "$ac_tool_prefix"; then |
5100 |
echo "$as_me:$LINENO: checking for file" >&5 |
5101 |
echo $ECHO_N "checking for file... $ECHO_C" >&6 |
5102 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
5103 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5104 |
else |
5105 |
case $MAGIC_CMD in |
5106 |
/*) |
5107 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
5108 |
;; |
5109 |
?:/*) |
5110 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
5111 |
;; |
5112 |
*) |
5113 |
ac_save_MAGIC_CMD="$MAGIC_CMD" |
5114 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5115 |
ac_dummy="/usr/bin:$PATH" |
5116 |
for ac_dir in $ac_dummy; do |
5117 |
test -z "$ac_dir" && ac_dir=. |
5118 |
if test -f $ac_dir/file; then |
5119 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
5120 |
if test -n "$file_magic_test_file"; then |
5121 |
case $deplibs_check_method in |
5122 |
"file_magic "*) |
5123 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
5124 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5125 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
5126 |
egrep "$file_magic_regex" > /dev/null; then |
5127 |
: |
5128 |
else |
5129 |
cat <<EOF 1>&2 |
5130 |
|
5131 |
*** Warning: the command libtool uses to detect shared libraries, |
5132 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
5133 |
*** The result is that libtool may fail to recognize shared libraries |
5134 |
*** as such. This will affect the creation of libtool libraries that |
5135 |
*** depend on shared libraries, but programs linked with such libtool |
5136 |
*** libraries will work regardless of this problem. Nevertheless, you |
5137 |
*** may want to report the problem to your system manager and/or to |
5138 |
*** bug-libtool@gnu.org |
5139 |
|
5140 |
EOF |
5141 |
fi ;; |
5142 |
esac |
5143 |
fi |
5144 |
break |
5145 |
fi |
5146 |
done |
5147 |
IFS="$ac_save_ifs" |
5148 |
MAGIC_CMD="$ac_save_MAGIC_CMD" |
5149 |
;; |
5150 |
esac |
5151 |
fi |
5152 |
|
5153 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5154 |
if test -n "$MAGIC_CMD"; then |
5155 |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
5156 |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
5157 |
else |
5158 |
echo "$as_me:$LINENO: result: no" >&5 |
5159 |
echo "${ECHO_T}no" >&6 |
5160 |
fi |
5161 |
|
5162 |
else |
5163 |
MAGIC_CMD=: |
5164 |
fi |
5165 |
fi |
5166 |
|
5167 |
fi |
5168 |
;; |
5169 |
esac |
5170 |
|
5171 |
if test -n "$ac_tool_prefix"; then |
5172 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
5173 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5174 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5175 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5176 |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
5177 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5178 |
else |
5179 |
if test -n "$RANLIB"; then |
5180 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5181 |
else |
5182 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5183 |
for as_dir in $PATH |
5184 |
do |
5185 |
IFS=$as_save_IFS |
5186 |
test -z "$as_dir" && as_dir=. |
5187 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5188 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5189 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5190 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5191 |
break 2 |
5192 |
fi |
5193 |
done |
5194 |
done |
5195 |
|
5196 |
fi |
5197 |
fi |
5198 |
RANLIB=$ac_cv_prog_RANLIB |
5199 |
if test -n "$RANLIB"; then |
5200 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5201 |
echo "${ECHO_T}$RANLIB" >&6 |
5202 |
else |
5203 |
echo "$as_me:$LINENO: result: no" >&5 |
5204 |
echo "${ECHO_T}no" >&6 |
5205 |
fi |
5206 |
|
5207 |
fi |
5208 |
if test -z "$ac_cv_prog_RANLIB"; then |
5209 |
ac_ct_RANLIB=$RANLIB |
5210 |
# Extract the first word of "ranlib", so it can be a program name with args. |
5211 |
set dummy ranlib; ac_word=$2 |
5212 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5213 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5214 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
5215 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5216 |
else |
5217 |
if test -n "$ac_ct_RANLIB"; then |
5218 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
5219 |
else |
5220 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5221 |
for as_dir in $PATH |
5222 |
do |
5223 |
IFS=$as_save_IFS |
5224 |
test -z "$as_dir" && as_dir=. |
5225 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5226 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5227 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
5228 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5229 |
break 2 |
5230 |
fi |
5231 |
done |
5232 |
done |
5233 |
|
5234 |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
5235 |
fi |
5236 |
fi |
5237 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5238 |
if test -n "$ac_ct_RANLIB"; then |
5239 |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5240 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
5241 |
else |
5242 |
echo "$as_me:$LINENO: result: no" >&5 |
5243 |
echo "${ECHO_T}no" >&6 |
5244 |
fi |
5245 |
|
5246 |
RANLIB=$ac_ct_RANLIB |
5247 |
else |
5248 |
RANLIB="$ac_cv_prog_RANLIB" |
5249 |
fi |
5250 |
|
5251 |
if test -n "$ac_tool_prefix"; then |
5252 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
5253 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5254 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5255 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5256 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
5257 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5258 |
else |
5259 |
if test -n "$STRIP"; then |
5260 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
5261 |
else |
5262 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5263 |
for as_dir in $PATH |
5264 |
do |
5265 |
IFS=$as_save_IFS |
5266 |
test -z "$as_dir" && as_dir=. |
5267 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5268 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5269 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5270 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5271 |
break 2 |
5272 |
fi |
5273 |
done |
5274 |
done |
5275 |
|
5276 |
fi |
5277 |
fi |
5278 |
STRIP=$ac_cv_prog_STRIP |
5279 |
if test -n "$STRIP"; then |
5280 |
echo "$as_me:$LINENO: result: $STRIP" >&5 |
5281 |
echo "${ECHO_T}$STRIP" >&6 |
5282 |
else |
5283 |
echo "$as_me:$LINENO: result: no" >&5 |
5284 |
echo "${ECHO_T}no" >&6 |
5285 |
fi |
5286 |
|
5287 |
fi |
5288 |
if test -z "$ac_cv_prog_STRIP"; then |
5289 |
ac_ct_STRIP=$STRIP |
5290 |
# Extract the first word of "strip", so it can be a program name with args. |
5291 |
set dummy strip; ac_word=$2 |
5292 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5293 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5294 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
5295 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5296 |
else |
5297 |
if test -n "$ac_ct_STRIP"; then |
5298 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
5299 |
else |
5300 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5301 |
for as_dir in $PATH |
5302 |
do |
5303 |
IFS=$as_save_IFS |
5304 |
test -z "$as_dir" && as_dir=. |
5305 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5306 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5307 |
ac_cv_prog_ac_ct_STRIP="strip" |
5308 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5309 |
break 2 |
5310 |
fi |
5311 |
done |
5312 |
done |
5313 |
|
5314 |
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
5315 |
fi |
5316 |
fi |
5317 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5318 |
if test -n "$ac_ct_STRIP"; then |
5319 |
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
5320 |
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
5321 |
else |
5322 |
echo "$as_me:$LINENO: result: no" >&5 |
5323 |
echo "${ECHO_T}no" >&6 |
5324 |
fi |
5325 |
|
5326 |
STRIP=$ac_ct_STRIP |
5327 |
else |
5328 |
STRIP="$ac_cv_prog_STRIP" |
5329 |
fi |
5330 |
|
5331 |
|
5332 |
enable_dlopen=no |
5333 |
enable_win32_dll=no |
5334 |
|
5335 |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
5336 |
if test "${enable_libtool_lock+set}" = set; then |
5337 |
enableval="$enable_libtool_lock" |
5338 |
|
5339 |
fi; |
5340 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
5341 |
|
5342 |
# Some flags need to be propagated to the compiler or linker for good |
5343 |
# libtool support. |
5344 |
case $host in |
5345 |
*-*-irix6*) |
5346 |
# Find out which ABI we are using. |
5347 |
echo '#line 5347 "configure"' > conftest.$ac_ext |
5348 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5349 |
(eval $ac_compile) 2>&5 |
5350 |
ac_status=$? |
5351 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5352 |
(exit $ac_status); }; then |
5353 |
case `/usr/bin/file conftest.$ac_objext` in |
5354 |
*32-bit*) |
5355 |
LD="${LD-ld} -32" |
5356 |
;; |
5357 |
*N32*) |
5358 |
LD="${LD-ld} -n32" |
5359 |
;; |
5360 |
*64-bit*) |
5361 |
LD="${LD-ld} -64" |
5362 |
;; |
5363 |
esac |
5364 |
fi |
5365 |
rm -rf conftest* |
5366 |
;; |
5367 |
|
5368 |
*-*-linux*) |
5369 |
# Test if the compiler is 64bit |
5370 |
echo 'int i;' > conftest.$ac_ext |
5371 |
lt_cv_cc_64bit_output=no |
5372 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5373 |
(eval $ac_compile) 2>&5 |
5374 |
ac_status=$? |
5375 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5376 |
(exit $ac_status); }; then |
5377 |
case `/usr/bin/file conftest.$ac_objext` in |
5378 |
*"ELF 64"*) |
5379 |
lt_cv_cc_64bit_output=yes |
5380 |
;; |
5381 |
esac |
5382 |
fi |
5383 |
rm -rf conftest* |
5384 |
;; |
5385 |
|
5386 |
*-*-sco3.2v5*) |
5387 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
5388 |
SAVE_CFLAGS="$CFLAGS" |
5389 |
CFLAGS="$CFLAGS -belf" |
5390 |
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
5391 |
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
5392 |
if test "${lt_cv_cc_needs_belf+set}" = set; then |
5393 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5394 |
else |
5395 |
|
5396 |
|
5397 |
ac_ext=c |
5398 |
ac_cpp='$CPP $CPPFLAGS' |
5399 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5400 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5401 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5402 |
|
5403 |
cat >conftest.$ac_ext <<_ACEOF |
5404 |
/* confdefs.h. */ |
5405 |
_ACEOF |
5406 |
cat confdefs.h >>conftest.$ac_ext |
5407 |
cat >>conftest.$ac_ext <<_ACEOF |
5408 |
/* end confdefs.h. */ |
5409 |
|
5410 |
int |
5411 |
main () |
5412 |
{ |
5413 |
|
5414 |
; |
5415 |
return 0; |
5416 |
} |
5417 |
_ACEOF |
5418 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5419 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5420 |
(eval $ac_link) 2>conftest.er1 |
5421 |
ac_status=$? |
5422 |
grep -v '^ *+' conftest.er1 >conftest.err |
5423 |
rm -f conftest.er1 |
5424 |
cat conftest.err >&5 |
5425 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5426 |
(exit $ac_status); } && |
5427 |
{ ac_try='test -z "$ac_c_werror_flag" |
5428 |
|| test ! -s conftest.err' |
5429 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5430 |
(eval $ac_try) 2>&5 |
5431 |
ac_status=$? |
5432 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5433 |
(exit $ac_status); }; } && |
5434 |
{ ac_try='test -s conftest$ac_exeext' |
5435 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5436 |
(eval $ac_try) 2>&5 |
5437 |
ac_status=$? |
5438 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5439 |
(exit $ac_status); }; }; then |
5440 |
lt_cv_cc_needs_belf=yes |
5441 |
else |
5442 |
echo "$as_me: failed program was:" >&5 |
5443 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5444 |
|
5445 |
lt_cv_cc_needs_belf=no |
5446 |
fi |
5447 |
rm -f conftest.err conftest.$ac_objext \ |
5448 |
conftest$ac_exeext conftest.$ac_ext |
5449 |
ac_ext=c |
5450 |
ac_cpp='$CPP $CPPFLAGS' |
5451 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5452 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5453 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5454 |
|
5455 |
fi |
5456 |
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
5457 |
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
5458 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
5459 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
5460 |
CFLAGS="$SAVE_CFLAGS" |
5461 |
fi |
5462 |
;; |
5463 |
|
5464 |
|
5465 |
esac |
5466 |
|
5467 |
# Sed substitution that helps us do robust quoting. It backslashifies |
5468 |
# metacharacters that are still active within double-quoted strings. |
5469 |
Xsed='sed -e s/^X//' |
5470 |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
5471 |
|
5472 |
# Same as above, but do not quote variable references. |
5473 |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
5474 |
|
5475 |
# Sed substitution to delay expansion of an escaped shell variable in a |
5476 |
# double_quote_subst'ed string. |
5477 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
5478 |
|
5479 |
# Constants: |
5480 |
rm="rm -f" |
5481 |
|
5482 |
# Global variables: |
5483 |
default_ofile=libtool |
5484 |
can_build_shared=yes |
5485 |
|
5486 |
# All known linkers require a `.a' archive for static linking (except M$VC, |
5487 |
# which needs '.lib'). |
5488 |
libext=a |
5489 |
ltmain="$ac_aux_dir/ltmain.sh" |
5490 |
ofile="$default_ofile" |
5491 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
5492 |
need_locks="$enable_libtool_lock" |
5493 |
|
5494 |
old_CC="$CC" |
5495 |
old_CFLAGS="$CFLAGS" |
5496 |
|
5497 |
# Set sane defaults for various variables |
5498 |
test -z "$AR" && AR=ar |
5499 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
5500 |
test -z "$AS" && AS=as |
5501 |
test -z "$CC" && CC=cc |
5502 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
5503 |
test -z "$LD" && LD=ld |
5504 |
test -z "$LN_S" && LN_S="ln -s" |
5505 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
5506 |
test -z "$NM" && NM=nm |
5507 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
5508 |
test -z "$RANLIB" && RANLIB=: |
5509 |
test -z "$STRIP" && STRIP=: |
5510 |
test -z "$ac_objext" && ac_objext=o |
5511 |
|
5512 |
if test x"$host" != x"$build"; then |
5513 |
ac_tool_prefix=${host_alias}- |
5514 |
else |
5515 |
ac_tool_prefix= |
5516 |
fi |
5517 |
|
5518 |
# Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
5519 |
case $host_os in |
5520 |
linux-gnu*) ;; |
5521 |
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
5522 |
esac |
5523 |
|
5524 |
case $host_os in |
5525 |
aix3*) |
5526 |
# AIX sometimes has problems with the GCC collect2 program. For some |
5527 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
5528 |
# vanish in a puff of smoke. |
5529 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
5530 |
COLLECT_NAMES= |
5531 |
export COLLECT_NAMES |
5532 |
fi |
5533 |
;; |
5534 |
esac |
5535 |
|
5536 |
# Determine commands to create old-style static archives. |
5537 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
5538 |
old_postinstall_cmds='chmod 644 $oldlib' |
5539 |
old_postuninstall_cmds= |
5540 |
|
5541 |
if test -n "$RANLIB"; then |
5542 |
case $host_os in |
5543 |
openbsd*) |
5544 |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
5545 |
;; |
5546 |
*) |
5547 |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
5548 |
;; |
5549 |
esac |
5550 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
5551 |
fi |
5552 |
|
5553 |
# Allow CC to be a program name with arguments. |
5554 |
set dummy $CC |
5555 |
compiler="$2" |
5556 |
|
5557 |
echo "$as_me:$LINENO: checking for objdir" >&5 |
5558 |
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
5559 |
rm -f .libs 2>/dev/null |
5560 |
mkdir .libs 2>/dev/null |
5561 |
if test -d .libs; then |
5562 |
objdir=.libs |
5563 |
else |
5564 |
# MS-DOS does not allow filenames that begin with a dot. |
5565 |
objdir=_libs |
5566 |
fi |
5567 |
rmdir .libs 2>/dev/null |
5568 |
echo "$as_me:$LINENO: result: $objdir" >&5 |
5569 |
echo "${ECHO_T}$objdir" >&6 |
5570 |
|
5571 |
|
5572 |
|
5573 |
# Check whether --with-pic or --without-pic was given. |
5574 |
if test "${with_pic+set}" = set; then |
5575 |
withval="$with_pic" |
5576 |
pic_mode="$withval" |
5577 |
else |
5578 |
pic_mode=default |
5579 |
fi; |
5580 |
test -z "$pic_mode" && pic_mode=default |
5581 |
|
5582 |
# We assume here that the value for lt_cv_prog_cc_pic will not be cached |
5583 |
# in isolation, and that seeing it set (from the cache) indicates that |
5584 |
# the associated values are set (in the cache) correctly too. |
5585 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
5586 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
5587 |
if test "${lt_cv_prog_cc_pic+set}" = set; then |
5588 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5589 |
else |
5590 |
lt_cv_prog_cc_pic= |
5591 |
lt_cv_prog_cc_shlib= |
5592 |
lt_cv_prog_cc_wl= |
5593 |
lt_cv_prog_cc_static= |
5594 |
lt_cv_prog_cc_no_builtin= |
5595 |
lt_cv_prog_cc_can_build_shared=$can_build_shared |
5596 |
|
5597 |
if test "$GCC" = yes; then |
5598 |
lt_cv_prog_cc_wl='-Wl,' |
5599 |
lt_cv_prog_cc_static='-static' |
5600 |
|
5601 |
case $host_os in |
5602 |
aix*) |
5603 |
# Below there is a dirty hack to force normal static linking with -ldl |
5604 |
# The problem is because libdl dynamically linked with both libc and |
5605 |
# libC (AIX C++ library), which obviously doesn't included in libraries |
5606 |
# list by gcc. This cause undefined symbols with -static flags. |
5607 |
# This hack allows C programs to be linked with "-static -ldl", but |
5608 |
# not sure about C++ programs. |
5609 |
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
5610 |
;; |
5611 |
amigaos*) |
5612 |
# FIXME: we need at least 68020 code to build shared libraries, but |
5613 |
# adding the `-m68020' flag to GCC prevents building anything better, |
5614 |
# like `-m68040'. |
5615 |
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
5616 |
;; |
5617 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
5618 |
# PIC is the default for these OSes. |
5619 |
;; |
5620 |
darwin* | rhapsody*) |
5621 |
# PIC is the default on this platform |
5622 |
# Common symbols not allowed in MH_DYLIB files |
5623 |
lt_cv_prog_cc_pic='-fno-common' |
5624 |
;; |
5625 |
cygwin* | mingw* | pw32* | os2*) |
5626 |
# This hack is so that the source file can tell whether it is being |
5627 |
# built for inclusion in a dll (and should export symbols for example). |
5628 |
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
5629 |
;; |
5630 |
sysv4*MP*) |
5631 |
if test -d /usr/nec; then |
5632 |
lt_cv_prog_cc_pic=-Kconform_pic |
5633 |
fi |
5634 |
;; |
5635 |
*) |
5636 |
lt_cv_prog_cc_pic='-fPIC' |
5637 |
;; |
5638 |
esac |
5639 |
else |
5640 |
# PORTME Check for PIC flags for the system compiler. |
5641 |
case $host_os in |
5642 |
aix3* | aix4* | aix5*) |
5643 |
lt_cv_prog_cc_wl='-Wl,' |
5644 |
# All AIX code is PIC. |
5645 |
if test "$host_cpu" = ia64; then |
5646 |
# AIX 5 now supports IA64 processor |
5647 |
lt_cv_prog_cc_static='-Bstatic' |
5648 |
else |
5649 |
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
5650 |
fi |
5651 |
;; |
5652 |
|
5653 |
hpux9* | hpux10* | hpux11*) |
5654 |
# Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
5655 |
lt_cv_prog_cc_wl='-Wl,' |
5656 |
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
5657 |
lt_cv_prog_cc_pic='+Z' |
5658 |
;; |
5659 |
|
5660 |
irix5* | irix6* | nonstopux*) |
5661 |
lt_cv_prog_cc_wl='-Wl,' |
5662 |
lt_cv_prog_cc_static='-non_shared' |
5663 |
# PIC (with -KPIC) is the default. |
5664 |
;; |
5665 |
|
5666 |
cygwin* | mingw* | pw32* | os2*) |
5667 |
# This hack is so that the source file can tell whether it is being |
5668 |
# built for inclusion in a dll (and should export symbols for example). |
5669 |
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
5670 |
;; |
5671 |
|
5672 |
newsos6) |
5673 |
lt_cv_prog_cc_pic='-KPIC' |
5674 |
lt_cv_prog_cc_static='-Bstatic' |
5675 |
;; |
5676 |
|
5677 |
osf3* | osf4* | osf5*) |
5678 |
# All OSF/1 code is PIC. |
5679 |
lt_cv_prog_cc_wl='-Wl,' |
5680 |
lt_cv_prog_cc_static='-non_shared' |
5681 |
;; |
5682 |
|
5683 |
sco3.2v5*) |
5684 |
lt_cv_prog_cc_pic='-Kpic' |
5685 |
lt_cv_prog_cc_static='-dn' |
5686 |
lt_cv_prog_cc_shlib='-belf' |
5687 |
;; |
5688 |
|
5689 |
solaris*) |
5690 |
lt_cv_prog_cc_pic='-KPIC' |
5691 |
lt_cv_prog_cc_static='-Bstatic' |
5692 |
lt_cv_prog_cc_wl='-Wl,' |
5693 |
;; |
5694 |
|
5695 |
sunos4*) |
5696 |
lt_cv_prog_cc_pic='-PIC' |
5697 |
lt_cv_prog_cc_static='-Bstatic' |
5698 |
lt_cv_prog_cc_wl='-Qoption ld ' |
5699 |
;; |
5700 |
|
5701 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
5702 |
lt_cv_prog_cc_pic='-KPIC' |
5703 |
lt_cv_prog_cc_static='-Bstatic' |
5704 |
lt_cv_prog_cc_wl='-Wl,' |
5705 |
;; |
5706 |
|
5707 |
uts4*) |
5708 |
lt_cv_prog_cc_pic='-pic' |
5709 |
lt_cv_prog_cc_static='-Bstatic' |
5710 |
;; |
5711 |
|
5712 |
sysv4*MP*) |
5713 |
if test -d /usr/nec ;then |
5714 |
lt_cv_prog_cc_pic='-Kconform_pic' |
5715 |
lt_cv_prog_cc_static='-Bstatic' |
5716 |
fi |
5717 |
;; |
5718 |
|
5719 |
*) |
5720 |
lt_cv_prog_cc_can_build_shared=no |
5721 |
;; |
5722 |
esac |
5723 |
fi |
5724 |
|
5725 |
fi |
5726 |
|
5727 |
if test -z "$lt_cv_prog_cc_pic"; then |
5728 |
echo "$as_me:$LINENO: result: none" >&5 |
5729 |
echo "${ECHO_T}none" >&6 |
5730 |
else |
5731 |
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
5732 |
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
5733 |
|
5734 |
# Check to make sure the pic_flag actually works. |
5735 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
5736 |
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
5737 |
if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
5738 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5739 |
else |
5740 |
save_CFLAGS="$CFLAGS" |
5741 |
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
5742 |
cat >conftest.$ac_ext <<_ACEOF |
5743 |
/* confdefs.h. */ |
5744 |
_ACEOF |
5745 |
cat confdefs.h >>conftest.$ac_ext |
5746 |
cat >>conftest.$ac_ext <<_ACEOF |
5747 |
/* end confdefs.h. */ |
5748 |
|
5749 |
int |
5750 |
main () |
5751 |
{ |
5752 |
|
5753 |
; |
5754 |
return 0; |
5755 |
} |
5756 |
_ACEOF |
5757 |
rm -f conftest.$ac_objext |
5758 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5759 |
(eval $ac_compile) 2>conftest.er1 |
5760 |
ac_status=$? |
5761 |
grep -v '^ *+' conftest.er1 >conftest.err |
5762 |
rm -f conftest.er1 |
5763 |
cat conftest.err >&5 |
5764 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5765 |
(exit $ac_status); } && |
5766 |
{ ac_try='test -z "$ac_c_werror_flag" |
5767 |
|| test ! -s conftest.err' |
5768 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5769 |
(eval $ac_try) 2>&5 |
5770 |
ac_status=$? |
5771 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5772 |
(exit $ac_status); }; } && |
5773 |
{ ac_try='test -s conftest.$ac_objext' |
5774 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5775 |
(eval $ac_try) 2>&5 |
5776 |
ac_status=$? |
5777 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5778 |
(exit $ac_status); }; }; then |
5779 |
case $host_os in |
5780 |
hpux9* | hpux10* | hpux11*) |
5781 |
# On HP-UX, both CC and GCC only warn that PIC is supported... then |
5782 |
# they create non-PIC objects. So, if there were any warnings, we |
5783 |
# assume that PIC is not supported. |
5784 |
if test -s conftest.err; then |
5785 |
lt_cv_prog_cc_pic_works=no |
5786 |
else |
5787 |
lt_cv_prog_cc_pic_works=yes |
5788 |
fi |
5789 |
;; |
5790 |
*) |
5791 |
lt_cv_prog_cc_pic_works=yes |
5792 |
;; |
5793 |
esac |
5794 |
|
5795 |
else |
5796 |
echo "$as_me: failed program was:" >&5 |
5797 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5798 |
|
5799 |
lt_cv_prog_cc_pic_works=no |
5800 |
|
5801 |
fi |
5802 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5803 |
CFLAGS="$save_CFLAGS" |
5804 |
|
5805 |
fi |
5806 |
|
5807 |
|
5808 |
if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
5809 |
lt_cv_prog_cc_pic= |
5810 |
lt_cv_prog_cc_can_build_shared=no |
5811 |
else |
5812 |
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
5813 |
fi |
5814 |
|
5815 |
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
5816 |
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
5817 |
fi |
5818 |
|
5819 |
# Check for any special shared library compilation flags. |
5820 |
if test -n "$lt_cv_prog_cc_shlib"; then |
5821 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
5822 |
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
5823 |
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
5824 |
else |
5825 |
{ echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
5826 |
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
5827 |
lt_cv_prog_cc_can_build_shared=no |
5828 |
fi |
5829 |
fi |
5830 |
|
5831 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
5832 |
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
5833 |
if test "${lt_cv_prog_cc_static_works+set}" = set; then |
5834 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5835 |
else |
5836 |
lt_cv_prog_cc_static_works=no |
5837 |
save_LDFLAGS="$LDFLAGS" |
5838 |
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
5839 |
cat >conftest.$ac_ext <<_ACEOF |
5840 |
/* confdefs.h. */ |
5841 |
_ACEOF |
5842 |
cat confdefs.h >>conftest.$ac_ext |
5843 |
cat >>conftest.$ac_ext <<_ACEOF |
5844 |
/* end confdefs.h. */ |
5845 |
|
5846 |
int |
5847 |
main () |
5848 |
{ |
5849 |
|
5850 |
; |
5851 |
return 0; |
5852 |
} |
5853 |
_ACEOF |
5854 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5855 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5856 |
(eval $ac_link) 2>conftest.er1 |
5857 |
ac_status=$? |
5858 |
grep -v '^ *+' conftest.er1 >conftest.err |
5859 |
rm -f conftest.er1 |
5860 |
cat conftest.err >&5 |
5861 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5862 |
(exit $ac_status); } && |
5863 |
{ ac_try='test -z "$ac_c_werror_flag" |
5864 |
|| test ! -s conftest.err' |
5865 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5866 |
(eval $ac_try) 2>&5 |
5867 |
ac_status=$? |
5868 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5869 |
(exit $ac_status); }; } && |
5870 |
{ ac_try='test -s conftest$ac_exeext' |
5871 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5872 |
(eval $ac_try) 2>&5 |
5873 |
ac_status=$? |
5874 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5875 |
(exit $ac_status); }; }; then |
5876 |
lt_cv_prog_cc_static_works=yes |
5877 |
else |
5878 |
echo "$as_me: failed program was:" >&5 |
5879 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5880 |
|
5881 |
fi |
5882 |
rm -f conftest.err conftest.$ac_objext \ |
5883 |
conftest$ac_exeext conftest.$ac_ext |
5884 |
LDFLAGS="$save_LDFLAGS" |
5885 |
|
5886 |
fi |
5887 |
|
5888 |
|
5889 |
# Belt *and* braces to stop my trousers falling down: |
5890 |
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
5891 |
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
5892 |
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
5893 |
|
5894 |
pic_flag="$lt_cv_prog_cc_pic" |
5895 |
special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
5896 |
wl="$lt_cv_prog_cc_wl" |
5897 |
link_static_flag="$lt_cv_prog_cc_static" |
5898 |
no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
5899 |
can_build_shared="$lt_cv_prog_cc_can_build_shared" |
5900 |
|
5901 |
|
5902 |
# Check to see if options -o and -c are simultaneously supported by compiler |
5903 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
5904 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
5905 |
if test "${lt_cv_compiler_c_o+set}" = set; then |
5906 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5907 |
else |
5908 |
|
5909 |
$rm -r conftest 2>/dev/null |
5910 |
mkdir conftest |
5911 |
cd conftest |
5912 |
echo "int some_variable = 0;" > conftest.$ac_ext |
5913 |
mkdir out |
5914 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
5915 |
# that will create temporary files in the current directory regardless of |
5916 |
# the output directory. Thus, making CWD read-only will cause this test |
5917 |
# to fail, enabling locking or at least warning the user not to do parallel |
5918 |
# builds. |
5919 |
chmod -w . |
5920 |
save_CFLAGS="$CFLAGS" |
5921 |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
5922 |
compiler_c_o=no |
5923 |
if { (eval echo configure:5923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
5924 |
# The compiler can only warn and ignore the option if not recognized |
5925 |
# So say no if there are warnings |
5926 |
if test -s out/conftest.err; then |
5927 |
lt_cv_compiler_c_o=no |
5928 |
else |
5929 |
lt_cv_compiler_c_o=yes |
5930 |
fi |
5931 |
else |
5932 |
# Append any errors to the config.log. |
5933 |
cat out/conftest.err 1>&5 |
5934 |
lt_cv_compiler_c_o=no |
5935 |
fi |
5936 |
CFLAGS="$save_CFLAGS" |
5937 |
chmod u+w . |
5938 |
$rm conftest* out/* |
5939 |
rmdir out |
5940 |
cd .. |
5941 |
rmdir conftest |
5942 |
$rm -r conftest 2>/dev/null |
5943 |
|
5944 |
fi |
5945 |
|
5946 |
compiler_c_o=$lt_cv_compiler_c_o |
5947 |
echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
5948 |
echo "${ECHO_T}$compiler_c_o" >&6 |
5949 |
|
5950 |
if test x"$compiler_c_o" = x"yes"; then |
5951 |
# Check to see if we can write to a .lo |
5952 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
5953 |
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
5954 |
if test "${lt_cv_compiler_o_lo+set}" = set; then |
5955 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5956 |
else |
5957 |
|
5958 |
lt_cv_compiler_o_lo=no |
5959 |
save_CFLAGS="$CFLAGS" |
5960 |
CFLAGS="$CFLAGS -c -o conftest.lo" |
5961 |
save_objext="$ac_objext" |
5962 |
ac_objext=lo |
5963 |
cat >conftest.$ac_ext <<_ACEOF |
5964 |
/* confdefs.h. */ |
5965 |
_ACEOF |
5966 |
cat confdefs.h >>conftest.$ac_ext |
5967 |
cat >>conftest.$ac_ext <<_ACEOF |
5968 |
/* end confdefs.h. */ |
5969 |
|
5970 |
int |
5971 |
main () |
5972 |
{ |
5973 |
int some_variable = 0; |
5974 |
; |
5975 |
return 0; |
5976 |
} |
5977 |
_ACEOF |
5978 |
rm -f conftest.$ac_objext |
5979 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5980 |
(eval $ac_compile) 2>conftest.er1 |
5981 |
ac_status=$? |
5982 |
grep -v '^ *+' conftest.er1 >conftest.err |
5983 |
rm -f conftest.er1 |
5984 |
cat conftest.err >&5 |
5985 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5986 |
(exit $ac_status); } && |
5987 |
{ ac_try='test -z "$ac_c_werror_flag" |
5988 |
|| test ! -s conftest.err' |
5989 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5990 |
(eval $ac_try) 2>&5 |
5991 |
ac_status=$? |
5992 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5993 |
(exit $ac_status); }; } && |
5994 |
{ ac_try='test -s conftest.$ac_objext' |
5995 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5996 |
(eval $ac_try) 2>&5 |
5997 |
ac_status=$? |
5998 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5999 |
(exit $ac_status); }; }; then |
6000 |
# The compiler can only warn and ignore the option if not recognized |
6001 |
# So say no if there are warnings |
6002 |
if test -s conftest.err; then |
6003 |
lt_cv_compiler_o_lo=no |
6004 |
else |
6005 |
lt_cv_compiler_o_lo=yes |
6006 |
fi |
6007 |
|
6008 |
else |
6009 |
echo "$as_me: failed program was:" >&5 |
6010 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6011 |
|
6012 |
fi |
6013 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6014 |
ac_objext="$save_objext" |
6015 |
CFLAGS="$save_CFLAGS" |
6016 |
|
6017 |
fi |
6018 |
|
6019 |
compiler_o_lo=$lt_cv_compiler_o_lo |
6020 |
echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
6021 |
echo "${ECHO_T}$compiler_o_lo" >&6 |
6022 |
else |
6023 |
compiler_o_lo=no |
6024 |
fi |
6025 |
|
6026 |
# Check to see if we can do hard links to lock some files if needed |
6027 |
hard_links="nottested" |
6028 |
if test "$compiler_c_o" = no && test "$need_locks" != no; then |
6029 |
# do not overwrite the value of need_locks provided by the user |
6030 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
6031 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
6032 |
hard_links=yes |
6033 |
$rm conftest* |
6034 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6035 |
touch conftest.a |
6036 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
6037 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6038 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
6039 |
echo "${ECHO_T}$hard_links" >&6 |
6040 |
if test "$hard_links" = no; then |
6041 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
6042 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
6043 |
need_locks=warn |
6044 |
fi |
6045 |
else |
6046 |
need_locks=no |
6047 |
fi |
6048 |
|
6049 |
if test "$GCC" = yes; then |
6050 |
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
6051 |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6052 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
6053 |
echo "int some_variable = 0;" > conftest.$ac_ext |
6054 |
save_CFLAGS="$CFLAGS" |
6055 |
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
6056 |
compiler_rtti_exceptions=no |
6057 |
cat >conftest.$ac_ext <<_ACEOF |
6058 |
/* confdefs.h. */ |
6059 |
_ACEOF |
6060 |
cat confdefs.h >>conftest.$ac_ext |
6061 |
cat >>conftest.$ac_ext <<_ACEOF |
6062 |
/* end confdefs.h. */ |
6063 |
|
6064 |
int |
6065 |
main () |
6066 |
{ |
6067 |
int some_variable = 0; |
6068 |
; |
6069 |
return 0; |
6070 |
} |
6071 |
_ACEOF |
6072 |
rm -f conftest.$ac_objext |
6073 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6074 |
(eval $ac_compile) 2>conftest.er1 |
6075 |
ac_status=$? |
6076 |
grep -v '^ *+' conftest.er1 >conftest.err |
6077 |
rm -f conftest.er1 |
6078 |
cat conftest.err >&5 |
6079 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6080 |
(exit $ac_status); } && |
6081 |
{ ac_try='test -z "$ac_c_werror_flag" |
6082 |
|| test ! -s conftest.err' |
6083 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6084 |
(eval $ac_try) 2>&5 |
6085 |
ac_status=$? |
6086 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6087 |
(exit $ac_status); }; } && |
6088 |
{ ac_try='test -s conftest.$ac_objext' |
6089 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6090 |
(eval $ac_try) 2>&5 |
6091 |
ac_status=$? |
6092 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6093 |
(exit $ac_status); }; }; then |
6094 |
# The compiler can only warn and ignore the option if not recognized |
6095 |
# So say no if there are warnings |
6096 |
if test -s conftest.err; then |
6097 |
compiler_rtti_exceptions=no |
6098 |
else |
6099 |
compiler_rtti_exceptions=yes |
6100 |
fi |
6101 |
|
6102 |
else |
6103 |
echo "$as_me: failed program was:" >&5 |
6104 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6105 |
|
6106 |
fi |
6107 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6108 |
CFLAGS="$save_CFLAGS" |
6109 |
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
6110 |
echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
6111 |
|
6112 |
if test "$compiler_rtti_exceptions" = "yes"; then |
6113 |
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
6114 |
else |
6115 |
no_builtin_flag=' -fno-builtin' |
6116 |
fi |
6117 |
fi |
6118 |
|
6119 |
# See if the linker supports building shared libraries. |
6120 |
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
6121 |
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
6122 |
|
6123 |
allow_undefined_flag= |
6124 |
no_undefined_flag= |
6125 |
need_lib_prefix=unknown |
6126 |
need_version=unknown |
6127 |
# when you set need_version to no, make sure it does not cause -set_version |
6128 |
# flags to be left without arguments |
6129 |
archive_cmds= |
6130 |
archive_expsym_cmds= |
6131 |
old_archive_from_new_cmds= |
6132 |
old_archive_from_expsyms_cmds= |
6133 |
export_dynamic_flag_spec= |
6134 |
whole_archive_flag_spec= |
6135 |
thread_safe_flag_spec= |
6136 |
hardcode_into_libs=no |
6137 |
hardcode_libdir_flag_spec= |
6138 |
hardcode_libdir_separator= |
6139 |
hardcode_direct=no |
6140 |
hardcode_minus_L=no |
6141 |
hardcode_shlibpath_var=unsupported |
6142 |
runpath_var= |
6143 |
link_all_deplibs=unknown |
6144 |
always_export_symbols=no |
6145 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6146 |
# include_expsyms should be a list of space-separated symbols to be *always* |
6147 |
# included in the symbol list |
6148 |
include_expsyms= |
6149 |
# exclude_expsyms can be an egrep regular expression of symbols to exclude |
6150 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
6151 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
6152 |
# as well as any symbol that contains `d'. |
6153 |
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
6154 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
6155 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
6156 |
# the symbol is explicitly referenced. Since portable code cannot |
6157 |
# rely on this symbol name, it's probably fine to never include it in |
6158 |
# preloaded symbol tables. |
6159 |
extract_expsyms_cmds= |
6160 |
|
6161 |
case $host_os in |
6162 |
cygwin* | mingw* | pw32*) |
6163 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
6164 |
# When not using gcc, we currently assume that we are using |
6165 |
# Microsoft Visual C++. |
6166 |
if test "$GCC" != yes; then |
6167 |
with_gnu_ld=no |
6168 |
fi |
6169 |
;; |
6170 |
openbsd*) |
6171 |
with_gnu_ld=no |
6172 |
;; |
6173 |
esac |
6174 |
|
6175 |
ld_shlibs=yes |
6176 |
if test "$with_gnu_ld" = yes; then |
6177 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
6178 |
wlarc='${wl}' |
6179 |
|
6180 |
# See if GNU ld supports shared libraries. |
6181 |
case $host_os in |
6182 |
aix3* | aix4* | aix5*) |
6183 |
# On AIX, the GNU linker is very broken |
6184 |
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
6185 |
ld_shlibs=no |
6186 |
cat <<EOF 1>&2 |
6187 |
|
6188 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
6189 |
*** to be unable to reliably create shared libraries on AIX. |
6190 |
*** Therefore, libtool is disabling shared libraries support. If you |
6191 |
*** really care for shared libraries, you may want to modify your PATH |
6192 |
*** so that a non-GNU linker is found, and then restart. |
6193 |
|
6194 |
EOF |
6195 |
;; |
6196 |
|
6197 |
amigaos*) |
6198 |
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)' |
6199 |
hardcode_libdir_flag_spec='-L$libdir' |
6200 |
hardcode_minus_L=yes |
6201 |
|
6202 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
6203 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
6204 |
# to version 4, is to share data among multiple programs linked |
6205 |
# with the same dynamic library. Since this doesn't match the |
6206 |
# behavior of shared libraries on other platforms, we can use |
6207 |
# them. |
6208 |
ld_shlibs=no |
6209 |
;; |
6210 |
|
6211 |
beos*) |
6212 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
6213 |
allow_undefined_flag=unsupported |
6214 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
6215 |
# support --undefined. This deserves some investigation. FIXME |
6216 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6217 |
else |
6218 |
ld_shlibs=no |
6219 |
fi |
6220 |
;; |
6221 |
|
6222 |
cygwin* | mingw* | pw32*) |
6223 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
6224 |
# no search path for DLLs. |
6225 |
hardcode_libdir_flag_spec='-L$libdir' |
6226 |
allow_undefined_flag=unsupported |
6227 |
always_export_symbols=yes |
6228 |
|
6229 |
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
6230 |
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
6231 |
test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
6232 |
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
6233 |
else $CC -o impgen impgen.c ; fi)~ |
6234 |
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
6235 |
|
6236 |
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
6237 |
|
6238 |
# cygwin and mingw dlls have different entry points and sets of symbols |
6239 |
# to exclude. |
6240 |
# FIXME: what about values for MSVC? |
6241 |
dll_entry=__cygwin_dll_entry@12 |
6242 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
6243 |
case $host_os in |
6244 |
mingw*) |
6245 |
# mingw values |
6246 |
dll_entry=_DllMainCRTStartup@12 |
6247 |
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
6248 |
;; |
6249 |
esac |
6250 |
|
6251 |
# mingw and cygwin differ, and it's simplest to just exclude the union |
6252 |
# of the two symbol sets. |
6253 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
6254 |
|
6255 |
# recent cygwin and mingw systems supply a stub DllMain which the user |
6256 |
# can override, but on older systems we have to supply one (in ltdll.c) |
6257 |
if test "x$lt_cv_need_dllmain" = "xyes"; then |
6258 |
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
6259 |
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
6260 |
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
6261 |
else |
6262 |
ltdll_obj= |
6263 |
ltdll_cmds= |
6264 |
fi |
6265 |
|
6266 |
# Extract the symbol export list from an `--export-all' def file, |
6267 |
# then regenerate the def file from the symbol export list, so that |
6268 |
# the compiled dll only exports the symbol export list. |
6269 |
# Be careful not to strip the DATA tag left be newer dlltools. |
6270 |
export_symbols_cmds="$ltdll_cmds"' |
6271 |
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
6272 |
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
6273 |
|
6274 |
# If the export-symbols file already is a .def file (1st line |
6275 |
# is EXPORTS), use it as is. |
6276 |
# If DATA tags from a recent dlltool are present, honour them! |
6277 |
archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
6278 |
cp $export_symbols $output_objdir/$soname-def; |
6279 |
else |
6280 |
echo EXPORTS > $output_objdir/$soname-def; |
6281 |
_lt_hint=1; |
6282 |
cat $export_symbols | while read symbol; do |
6283 |
set dummy \$symbol; |
6284 |
case \$# in |
6285 |
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
6286 |
4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
6287 |
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
6288 |
esac; |
6289 |
_lt_hint=`expr 1 + \$_lt_hint`; |
6290 |
done; |
6291 |
fi~ |
6292 |
'"$ltdll_cmds"' |
6293 |
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
6294 |
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
6295 |
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
6296 |
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
6297 |
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
6298 |
;; |
6299 |
|
6300 |
netbsd*) |
6301 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
6302 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
6303 |
wlarc= |
6304 |
else |
6305 |
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6306 |
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6307 |
fi |
6308 |
;; |
6309 |
|
6310 |
solaris* | sysv5*) |
6311 |
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
6312 |
ld_shlibs=no |
6313 |
cat <<EOF 1>&2 |
6314 |
|
6315 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
6316 |
*** create shared libraries on Solaris systems. Therefore, libtool |
6317 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
6318 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
6319 |
*** your PATH or compiler configuration so that the native linker is |
6320 |
*** used, and then restart. |
6321 |
|
6322 |
EOF |
6323 |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
6324 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6325 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6326 |
else |
6327 |
ld_shlibs=no |
6328 |
fi |
6329 |
;; |
6330 |
|
6331 |
sunos4*) |
6332 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
6333 |
wlarc= |
6334 |
hardcode_direct=yes |
6335 |
hardcode_shlibpath_var=no |
6336 |
;; |
6337 |
|
6338 |
*) |
6339 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
6340 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6341 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6342 |
else |
6343 |
ld_shlibs=no |
6344 |
fi |
6345 |
;; |
6346 |
esac |
6347 |
|
6348 |
if test "$ld_shlibs" = yes; then |
6349 |
runpath_var=LD_RUN_PATH |
6350 |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
6351 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
6352 |
case $host_os in |
6353 |
cygwin* | mingw* | pw32*) |
6354 |
# dlltool doesn't understand --whole-archive et. al. |
6355 |
whole_archive_flag_spec= |
6356 |
;; |
6357 |
*) |
6358 |
# ancient GNU ld didn't support --whole-archive et. al. |
6359 |
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
6360 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6361 |
else |
6362 |
whole_archive_flag_spec= |
6363 |
fi |
6364 |
;; |
6365 |
esac |
6366 |
fi |
6367 |
else |
6368 |
# PORTME fill in a description of your system's linker (not GNU ld) |
6369 |
case $host_os in |
6370 |
aix3*) |
6371 |
allow_undefined_flag=unsupported |
6372 |
always_export_symbols=yes |
6373 |
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' |
6374 |
# Note: this linker hardcodes the directories in LIBPATH if there |
6375 |
# are no directories specified by -L. |
6376 |
hardcode_minus_L=yes |
6377 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
6378 |
# Neither direct hardcoding nor static linking is supported with a |
6379 |
# broken collect2. |
6380 |
hardcode_direct=unsupported |
6381 |
fi |
6382 |
;; |
6383 |
|
6384 |
aix4* | aix5*) |
6385 |
if test "$host_cpu" = ia64; then |
6386 |
# On IA64, the linker does run time linking by default, so we don't |
6387 |
# have to do anything special. |
6388 |
aix_use_runtimelinking=no |
6389 |
exp_sym_flag='-Bexport' |
6390 |
no_entry_flag="" |
6391 |
else |
6392 |
aix_use_runtimelinking=no |
6393 |
|
6394 |
# Test if we are trying to use run time linking or normal |
6395 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
6396 |
# need to do runtime linking. |
6397 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
6398 |
for ld_flag in $LDFLAGS; do |
6399 |
case $ld_flag in |
6400 |
*-brtl*) |
6401 |
aix_use_runtimelinking=yes |
6402 |
break |
6403 |
;; |
6404 |
esac |
6405 |
done |
6406 |
esac |
6407 |
|
6408 |
exp_sym_flag='-bexport' |
6409 |
no_entry_flag='-bnoentry' |
6410 |
fi |
6411 |
|
6412 |
# When large executables or shared objects are built, AIX ld can |
6413 |
# have problems creating the table of contents. If linking a library |
6414 |
# or program results in "error TOC overflow" add -mminimal-toc to |
6415 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
6416 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
6417 |
|
6418 |
hardcode_direct=yes |
6419 |
archive_cmds='' |
6420 |
hardcode_libdir_separator=':' |
6421 |
if test "$GCC" = yes; then |
6422 |
case $host_os in aix4.[012]|aix4.[012].*) |
6423 |
collect2name=`${CC} -print-prog-name=collect2` |
6424 |
if test -f "$collect2name" && \ |
6425 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
6426 |
then |
6427 |
# We have reworked collect2 |
6428 |
hardcode_direct=yes |
6429 |
else |
6430 |
# We have old collect2 |
6431 |
hardcode_direct=unsupported |
6432 |
# It fails to find uninstalled libraries when the uninstalled |
6433 |
# path is not listed in the libpath. Setting hardcode_minus_L |
6434 |
# to unsupported forces relinking |
6435 |
hardcode_minus_L=yes |
6436 |
hardcode_libdir_flag_spec='-L$libdir' |
6437 |
hardcode_libdir_separator= |
6438 |
fi |
6439 |
esac |
6440 |
|
6441 |
shared_flag='-shared' |
6442 |
else |
6443 |
# not using gcc |
6444 |
if test "$host_cpu" = ia64; then |
6445 |
shared_flag='${wl}-G' |
6446 |
else |
6447 |
if test "$aix_use_runtimelinking" = yes; then |
6448 |
shared_flag='${wl}-G' |
6449 |
else |
6450 |
shared_flag='${wl}-bM:SRE' |
6451 |
fi |
6452 |
fi |
6453 |
fi |
6454 |
|
6455 |
# It seems that -bexpall can do strange things, so it is better to |
6456 |
# generate a list of symbols to export. |
6457 |
always_export_symbols=yes |
6458 |
if test "$aix_use_runtimelinking" = yes; then |
6459 |
# Warning - without using the other runtime loading flags (-brtl), |
6460 |
# -berok will link without error, but may produce a broken library. |
6461 |
allow_undefined_flag='-berok' |
6462 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
6463 |
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
6464 |
else |
6465 |
if test "$host_cpu" = ia64; then |
6466 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
6467 |
allow_undefined_flag="-z nodefs" |
6468 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
6469 |
else |
6470 |
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
6471 |
# Warning - without using the other run time loading flags, |
6472 |
# -berok will link without error, but may produce a broken library. |
6473 |
allow_undefined_flag='${wl}-berok' |
6474 |
# This is a bit strange, but is similar to how AIX traditionally builds |
6475 |
# it's shared libraries. |
6476 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
6477 |
fi |
6478 |
fi |
6479 |
;; |
6480 |
|
6481 |
amigaos*) |
6482 |
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)' |
6483 |
hardcode_libdir_flag_spec='-L$libdir' |
6484 |
hardcode_minus_L=yes |
6485 |
# see comment about different semantics on the GNU ld section |
6486 |
ld_shlibs=no |
6487 |
;; |
6488 |
|
6489 |
cygwin* | mingw* | pw32*) |
6490 |
# When not using gcc, we currently assume that we are using |
6491 |
# Microsoft Visual C++. |
6492 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
6493 |
# no search path for DLLs. |
6494 |
hardcode_libdir_flag_spec=' ' |
6495 |
allow_undefined_flag=unsupported |
6496 |
# Tell ltmain to make .lib files, not .a files. |
6497 |
libext=lib |
6498 |
# FIXME: Setting linknames here is a bad hack. |
6499 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
6500 |
# The linker will automatically build a .lib file if we build a DLL. |
6501 |
old_archive_from_new_cmds='true' |
6502 |
# FIXME: Should let the user specify the lib program. |
6503 |
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
6504 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
6505 |
;; |
6506 |
|
6507 |
darwin* | rhapsody*) |
6508 |
case "$host_os" in |
6509 |
rhapsody* | darwin1.[012]) |
6510 |
allow_undefined_flag='-undefined suppress' |
6511 |
;; |
6512 |
*) # Darwin 1.3 on |
6513 |
allow_undefined_flag='-flat_namespace -undefined suppress' |
6514 |
;; |
6515 |
esac |
6516 |
# FIXME: Relying on posixy $() will cause problems for |
6517 |
# cross-compilation, but unfortunately the echo tests do not |
6518 |
# yet detect zsh echo's removal of \ escapes. Also zsh mangles |
6519 |
# `"' quotes if we put them in here... so don't! |
6520 |
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' |
6521 |
# We need to add '_' to the symbols in $export_symbols first |
6522 |
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
6523 |
hardcode_direct=yes |
6524 |
hardcode_shlibpath_var=no |
6525 |
whole_archive_flag_spec='-all_load $convenience' |
6526 |
;; |
6527 |
|
6528 |
freebsd1*) |
6529 |
ld_shlibs=no |
6530 |
;; |
6531 |
|
6532 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
6533 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
6534 |
# does not break anything, and helps significantly (at the cost of a little |
6535 |
# extra space). |
6536 |
freebsd2.2*) |
6537 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
6538 |
hardcode_libdir_flag_spec='-R$libdir' |
6539 |
hardcode_direct=yes |
6540 |
hardcode_shlibpath_var=no |
6541 |
;; |
6542 |
|
6543 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6544 |
freebsd2*) |
6545 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
6546 |
hardcode_direct=yes |
6547 |
hardcode_minus_L=yes |
6548 |
hardcode_shlibpath_var=no |
6549 |
;; |
6550 |
|
6551 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
6552 |
freebsd*) |
6553 |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
6554 |
hardcode_libdir_flag_spec='-R$libdir' |
6555 |
hardcode_direct=yes |
6556 |
hardcode_shlibpath_var=no |
6557 |
;; |
6558 |
|
6559 |
hpux9* | hpux10* | hpux11*) |
6560 |
case $host_os in |
6561 |
hpux9*) 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' ;; |
6562 |
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
6563 |
esac |
6564 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
6565 |
hardcode_libdir_separator=: |
6566 |
hardcode_direct=yes |
6567 |
hardcode_minus_L=yes # Not in the search PATH, but as the default |
6568 |
# location of the library. |
6569 |
export_dynamic_flag_spec='${wl}-E' |
6570 |
;; |
6571 |
|
6572 |
irix5* | irix6* | nonstopux*) |
6573 |
if test "$GCC" = yes; then |
6574 |
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' |
6575 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
6576 |
else |
6577 |
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' |
6578 |
hardcode_libdir_flag_spec='-rpath $libdir' |
6579 |
fi |
6580 |
hardcode_libdir_separator=: |
6581 |
link_all_deplibs=yes |
6582 |
;; |
6583 |
|
6584 |
netbsd*) |
6585 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
6586 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
6587 |
else |
6588 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
6589 |
fi |
6590 |
hardcode_libdir_flag_spec='-R$libdir' |
6591 |
hardcode_direct=yes |
6592 |
hardcode_shlibpath_var=no |
6593 |
;; |
6594 |
|
6595 |
newsos6) |
6596 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6597 |
hardcode_direct=yes |
6598 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
6599 |
hardcode_libdir_separator=: |
6600 |
hardcode_shlibpath_var=no |
6601 |
;; |
6602 |
|
6603 |
openbsd*) |
6604 |
hardcode_direct=yes |
6605 |
hardcode_shlibpath_var=no |
6606 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
6607 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6608 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
6609 |
export_dynamic_flag_spec='${wl}-E' |
6610 |
else |
6611 |
case "$host_os" in |
6612 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
6613 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
6614 |
hardcode_libdir_flag_spec='-R$libdir' |
6615 |
;; |
6616 |
*) |
6617 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6618 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
6619 |
;; |
6620 |
esac |
6621 |
fi |
6622 |
;; |
6623 |
|
6624 |
os2*) |
6625 |
hardcode_libdir_flag_spec='-L$libdir' |
6626 |
hardcode_minus_L=yes |
6627 |
allow_undefined_flag=unsupported |
6628 |
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' |
6629 |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
6630 |
;; |
6631 |
|
6632 |
osf3*) |
6633 |
if test "$GCC" = yes; then |
6634 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
6635 |
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' |
6636 |
else |
6637 |
allow_undefined_flag=' -expect_unresolved \*' |
6638 |
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' |
6639 |
fi |
6640 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
6641 |
hardcode_libdir_separator=: |
6642 |
;; |
6643 |
|
6644 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
6645 |
if test "$GCC" = yes; then |
6646 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
6647 |
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' |
6648 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
6649 |
else |
6650 |
allow_undefined_flag=' -expect_unresolved \*' |
6651 |
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' |
6652 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
6653 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
6654 |
|
6655 |
#Both c and cxx compiler support -rpath directly |
6656 |
hardcode_libdir_flag_spec='-rpath $libdir' |
6657 |
fi |
6658 |
hardcode_libdir_separator=: |
6659 |
;; |
6660 |
|
6661 |
sco3.2v5*) |
6662 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6663 |
hardcode_shlibpath_var=no |
6664 |
runpath_var=LD_RUN_PATH |
6665 |
hardcode_runpath_var=yes |
6666 |
export_dynamic_flag_spec='${wl}-Bexport' |
6667 |
;; |
6668 |
|
6669 |
solaris*) |
6670 |
# gcc --version < 3.0 without binutils cannot create self contained |
6671 |
# shared libraries reliably, requiring libgcc.a to resolve some of |
6672 |
# the object symbols generated in some cases. Libraries that use |
6673 |
# assert need libgcc.a to resolve __eprintf, for example. Linking |
6674 |
# a copy of libgcc.a into every shared library to guarantee resolving |
6675 |
# such symbols causes other problems: According to Tim Van Holder |
6676 |
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
6677 |
# (to the application) exception stack for one thing. |
6678 |
no_undefined_flag=' -z defs' |
6679 |
if test "$GCC" = yes; then |
6680 |
case `$CC --version 2>/dev/null` in |
6681 |
[12].*) |
6682 |
cat <<EOF 1>&2 |
6683 |
|
6684 |
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
6685 |
*** create self contained shared libraries on Solaris systems, without |
6686 |
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
6687 |
*** -no-undefined support, which will at least allow you to build shared |
6688 |
*** libraries. However, you may find that when you link such libraries |
6689 |
*** into an application without using GCC, you have to manually add |
6690 |
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
6691 |
*** upgrade to a newer version of GCC. Another option is to rebuild your |
6692 |
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
6693 |
|
6694 |
EOF |
6695 |
no_undefined_flag= |
6696 |
;; |
6697 |
esac |
6698 |
fi |
6699 |
# $CC -shared without GNU ld will not create a library from C++ |
6700 |
# object files and a static libstdc++, better avoid it by now |
6701 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6702 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
6703 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
6704 |
hardcode_libdir_flag_spec='-R$libdir' |
6705 |
hardcode_shlibpath_var=no |
6706 |
case $host_os in |
6707 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
6708 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
6709 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
6710 |
esac |
6711 |
link_all_deplibs=yes |
6712 |
;; |
6713 |
|
6714 |
sunos4*) |
6715 |
if test "x$host_vendor" = xsequent; then |
6716 |
# Use $CC to link under sequent, because it throws in some extra .o |
6717 |
# files that make .init and .fini sections work. |
6718 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
6719 |
else |
6720 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
6721 |
fi |
6722 |
hardcode_libdir_flag_spec='-L$libdir' |
6723 |
hardcode_direct=yes |
6724 |
hardcode_minus_L=yes |
6725 |
hardcode_shlibpath_var=no |
6726 |
;; |
6727 |
|
6728 |
sysv4) |
6729 |
case $host_vendor in |
6730 |
sni) |
6731 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6732 |
hardcode_direct=yes # is this really true??? |
6733 |
;; |
6734 |
siemens) |
6735 |
## LD is ld it makes a PLAMLIB |
6736 |
## CC just makes a GrossModule. |
6737 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
6738 |
reload_cmds='$CC -r -o $output$reload_objs' |
6739 |
hardcode_direct=no |
6740 |
;; |
6741 |
motorola) |
6742 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6743 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
6744 |
;; |
6745 |
esac |
6746 |
runpath_var='LD_RUN_PATH' |
6747 |
hardcode_shlibpath_var=no |
6748 |
;; |
6749 |
|
6750 |
sysv4.3*) |
6751 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6752 |
hardcode_shlibpath_var=no |
6753 |
export_dynamic_flag_spec='-Bexport' |
6754 |
;; |
6755 |
|
6756 |
sysv5*) |
6757 |
no_undefined_flag=' -z text' |
6758 |
# $CC -shared without GNU ld will not create a library from C++ |
6759 |
# object files and a static libstdc++, better avoid it by now |
6760 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6761 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
6762 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
6763 |
hardcode_libdir_flag_spec= |
6764 |
hardcode_shlibpath_var=no |
6765 |
runpath_var='LD_RUN_PATH' |
6766 |
;; |
6767 |
|
6768 |
uts4*) |
6769 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6770 |
hardcode_libdir_flag_spec='-L$libdir' |
6771 |
hardcode_shlibpath_var=no |
6772 |
;; |
6773 |
|
6774 |
dgux*) |
6775 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6776 |
hardcode_libdir_flag_spec='-L$libdir' |
6777 |
hardcode_shlibpath_var=no |
6778 |
;; |
6779 |
|
6780 |
sysv4*MP*) |
6781 |
if test -d /usr/nec; then |
6782 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6783 |
hardcode_shlibpath_var=no |
6784 |
runpath_var=LD_RUN_PATH |
6785 |
hardcode_runpath_var=yes |
6786 |
ld_shlibs=yes |
6787 |
fi |
6788 |
;; |
6789 |
|
6790 |
sysv4.2uw2*) |
6791 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
6792 |
hardcode_direct=yes |
6793 |
hardcode_minus_L=no |
6794 |
hardcode_shlibpath_var=no |
6795 |
hardcode_runpath_var=yes |
6796 |
runpath_var=LD_RUN_PATH |
6797 |
;; |
6798 |
|
6799 |
sysv5uw7* | unixware7*) |
6800 |
no_undefined_flag='${wl}-z ${wl}text' |
6801 |
if test "$GCC" = yes; then |
6802 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
6803 |
else |
6804 |
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
6805 |
fi |
6806 |
runpath_var='LD_RUN_PATH' |
6807 |
hardcode_shlibpath_var=no |
6808 |
;; |
6809 |
|
6810 |
*) |
6811 |
ld_shlibs=no |
6812 |
;; |
6813 |
esac |
6814 |
fi |
6815 |
echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
6816 |
echo "${ECHO_T}$ld_shlibs" >&6 |
6817 |
test "$ld_shlibs" = no && can_build_shared=no |
6818 |
|
6819 |
# Check hardcoding attributes. |
6820 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
6821 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
6822 |
hardcode_action= |
6823 |
if test -n "$hardcode_libdir_flag_spec" || \ |
6824 |
test -n "$runpath_var"; then |
6825 |
|
6826 |
# We can hardcode non-existant directories. |
6827 |
if test "$hardcode_direct" != no && |
6828 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
6829 |
# have to relink, otherwise we might link with an installed library |
6830 |
# when we should be linking with a yet-to-be-installed one |
6831 |
## test "$hardcode_shlibpath_var" != no && |
6832 |
test "$hardcode_minus_L" != no; then |
6833 |
# Linking always hardcodes the temporary library directory. |
6834 |
hardcode_action=relink |
6835 |
else |
6836 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
6837 |
hardcode_action=immediate |
6838 |
fi |
6839 |
else |
6840 |
# We cannot hardcode anything, or else we can only hardcode existing |
6841 |
# directories. |
6842 |
hardcode_action=unsupported |
6843 |
fi |
6844 |
echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
6845 |
echo "${ECHO_T}$hardcode_action" >&6 |
6846 |
|
6847 |
striplib= |
6848 |
old_striplib= |
6849 |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
6850 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
6851 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
6852 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
6853 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
6854 |
echo "$as_me:$LINENO: result: yes" >&5 |
6855 |
echo "${ECHO_T}yes" >&6 |
6856 |
else |
6857 |
echo "$as_me:$LINENO: result: no" >&5 |
6858 |
echo "${ECHO_T}no" >&6 |
6859 |
fi |
6860 |
|
6861 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
6862 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
6863 |
|
6864 |
# PORTME Fill in your ld.so characteristics |
6865 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
6866 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
6867 |
library_names_spec= |
6868 |
libname_spec='lib$name' |
6869 |
soname_spec= |
6870 |
postinstall_cmds= |
6871 |
postuninstall_cmds= |
6872 |
finish_cmds= |
6873 |
finish_eval= |
6874 |
shlibpath_var= |
6875 |
shlibpath_overrides_runpath=unknown |
6876 |
version_type=none |
6877 |
dynamic_linker="$host_os ld.so" |
6878 |
sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib" |
6879 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib" |
6880 |
|
6881 |
case $host_os in |
6882 |
aix3*) |
6883 |
version_type=linux |
6884 |
library_names_spec='${libname}${release}.so$versuffix $libname.a' |
6885 |
shlibpath_var=LIBPATH |
6886 |
|
6887 |
# AIX has no versioning support, so we append a major version to the name. |
6888 |
soname_spec='${libname}${release}.so$major' |
6889 |
;; |
6890 |
|
6891 |
aix4* | aix5*) |
6892 |
version_type=linux |
6893 |
need_lib_prefix=no |
6894 |
need_version=no |
6895 |
hardcode_into_libs=yes |
6896 |
if test "$host_cpu" = ia64; then |
6897 |
# AIX 5 supports IA64 |
6898 |
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
6899 |
shlibpath_var=LD_LIBRARY_PATH |
6900 |
else |
6901 |
# With GCC up to 2.95.x, collect2 would create an import file |
6902 |
# for dependence libraries. The import file would start with |
6903 |
# the line `#! .'. This would cause the generated library to |
6904 |
# depend on `.', always an invalid library. This was fixed in |
6905 |
# development snapshots of GCC prior to 3.0. |
6906 |
case $host_os in |
6907 |
aix4 | aix4.[01] | aix4.[01].*) |
6908 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
6909 |
echo ' yes ' |
6910 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
6911 |
: |
6912 |
else |
6913 |
can_build_shared=no |
6914 |
fi |
6915 |
;; |
6916 |
esac |
6917 |
# AIX (on Power*) has no versioning support, so currently we can |
6918 |
# not hardcode correct soname into executable. Probably we can |
6919 |
# add versioning support to collect2, so additional links can |
6920 |
# be useful in future. |
6921 |
if test "$aix_use_runtimelinking" = yes; then |
6922 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
6923 |
# instead of lib<name>.a to let people know that these are not |
6924 |
# typical AIX shared libraries. |
6925 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
6926 |
else |
6927 |
# We preserve .a as extension for shared libraries through AIX4.2 |
6928 |
# and later when we are not doing run time linking. |
6929 |
library_names_spec='${libname}${release}.a $libname.a' |
6930 |
soname_spec='${libname}${release}.so$major' |
6931 |
fi |
6932 |
shlibpath_var=LIBPATH |
6933 |
fi |
6934 |
hardcode_into_libs=yes |
6935 |
;; |
6936 |
|
6937 |
amigaos*) |
6938 |
library_names_spec='$libname.ixlibrary $libname.a' |
6939 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
6940 |
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' |
6941 |
;; |
6942 |
|
6943 |
beos*) |
6944 |
library_names_spec='${libname}.so' |
6945 |
dynamic_linker="$host_os ld.so" |
6946 |
shlibpath_var=LIBRARY_PATH |
6947 |
;; |
6948 |
|
6949 |
bsdi4*) |
6950 |
version_type=linux |
6951 |
need_version=no |
6952 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
6953 |
soname_spec='${libname}${release}.so$major' |
6954 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
6955 |
shlibpath_var=LD_LIBRARY_PATH |
6956 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
6957 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
6958 |
export_dynamic_flag_spec=-rdynamic |
6959 |
# the default ld.so.conf also contains /usr/contrib/lib and |
6960 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
6961 |
# libtool to hard-code these into programs |
6962 |
;; |
6963 |
|
6964 |
cygwin* | mingw* | pw32*) |
6965 |
version_type=windows |
6966 |
need_version=no |
6967 |
need_lib_prefix=no |
6968 |
case $GCC,$host_os in |
6969 |
yes,cygwin*) |
6970 |
library_names_spec='$libname.dll.a' |
6971 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
6972 |
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
6973 |
dldir=$destdir/`dirname \$dlpath`~ |
6974 |
test -d \$dldir || mkdir -p \$dldir~ |
6975 |
$install_prog .libs/$dlname \$dldir/$dlname' |
6976 |
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
6977 |
dlpath=$dir/\$dldll~ |
6978 |
$rm \$dlpath' |
6979 |
;; |
6980 |
yes,mingw*) |
6981 |
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
6982 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` |
6983 |
;; |
6984 |
yes,pw32*) |
6985 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
6986 |
;; |
6987 |
*) |
6988 |
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
6989 |
;; |
6990 |
esac |
6991 |
dynamic_linker='Win32 ld.exe' |
6992 |
# FIXME: first we should search . and the directory the executable is in |
6993 |
shlibpath_var=PATH |
6994 |
;; |
6995 |
|
6996 |
darwin* | rhapsody*) |
6997 |
dynamic_linker="$host_os dyld" |
6998 |
version_type=darwin |
6999 |
need_lib_prefix=no |
7000 |
need_version=no |
7001 |
# FIXME: Relying on posixy $() will cause problems for |
7002 |
# cross-compilation, but unfortunately the echo tests do not |
7003 |
# yet detect zsh echo's removal of \ escapes. |
7004 |
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
7005 |
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
7006 |
shlibpath_overrides_runpath=yes |
7007 |
shlibpath_var=DYLD_LIBRARY_PATH |
7008 |
;; |
7009 |
|
7010 |
freebsd1*) |
7011 |
dynamic_linker=no |
7012 |
;; |
7013 |
|
7014 |
freebsd*) |
7015 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
7016 |
version_type=freebsd-$objformat |
7017 |
case $version_type in |
7018 |
freebsd-elf*) |
7019 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
7020 |
need_version=no |
7021 |
need_lib_prefix=no |
7022 |
;; |
7023 |
freebsd-*) |
7024 |
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
7025 |
need_version=yes |
7026 |
;; |
7027 |
esac |
7028 |
shlibpath_var=LD_LIBRARY_PATH |
7029 |
case $host_os in |
7030 |
freebsd2*) |
7031 |
shlibpath_overrides_runpath=yes |
7032 |
;; |
7033 |
*) |
7034 |
shlibpath_overrides_runpath=no |
7035 |
hardcode_into_libs=yes |
7036 |
;; |
7037 |
esac |
7038 |
;; |
7039 |
|
7040 |
gnu*) |
7041 |
version_type=linux |
7042 |
need_lib_prefix=no |
7043 |
need_version=no |
7044 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
7045 |
soname_spec='${libname}${release}.so$major' |
7046 |
shlibpath_var=LD_LIBRARY_PATH |
7047 |
hardcode_into_libs=yes |
7048 |
;; |
7049 |
|
7050 |
hpux9* | hpux10* | hpux11*) |
7051 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
7052 |
# link against other versions. |
7053 |
dynamic_linker="$host_os dld.sl" |
7054 |
version_type=sunos |
7055 |
need_lib_prefix=no |
7056 |
need_version=no |
7057 |
shlibpath_var=SHLIB_PATH |
7058 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
7059 |
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
7060 |
soname_spec='${libname}${release}.sl$major' |
7061 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
7062 |
postinstall_cmds='chmod 555 $lib' |
7063 |
;; |
7064 |
|
7065 |
irix5* | irix6* | nonstopux*) |
7066 |
case $host_os in |
7067 |
nonstopux*) version_type=nonstopux ;; |
7068 |
*) version_type=irix ;; |
7069 |
esac |
7070 |
need_lib_prefix=no |
7071 |
need_version=no |
7072 |
soname_spec='${libname}${release}.so$major' |
7073 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
7074 |
case $host_os in |
7075 |
irix5* | nonstopux*) |
7076 |
libsuff= shlibsuff= |
7077 |
;; |
7078 |
*) |
7079 |
case $LD in # libtool.m4 will add one of these switches to LD |
7080 |
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
7081 |
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
7082 |
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
7083 |
*) libsuff= shlibsuff= libmagic=never-match;; |
7084 |
esac |
7085 |
;; |
7086 |
esac |
7087 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
7088 |
shlibpath_overrides_runpath=no |
7089 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
7090 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
7091 |
;; |
7092 |
|
7093 |
# No shared lib support for Linux oldld, aout, or coff. |
7094 |
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
7095 |
dynamic_linker=no |
7096 |
;; |
7097 |
|
7098 |
# This must be Linux ELF. |
7099 |
linux-gnu*) |
7100 |
version_type=linux |
7101 |
need_lib_prefix=no |
7102 |
need_version=no |
7103 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
7104 |
soname_spec='${libname}${release}.so$major' |
7105 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
7106 |
shlibpath_var=LD_LIBRARY_PATH |
7107 |
shlibpath_overrides_runpath=no |
7108 |
# This implies no fast_install, which is unacceptable. |
7109 |
# Some rework will be needed to allow for fast_install |
7110 |
# before this can be enabled. |
7111 |
hardcode_into_libs=yes |
7112 |
|
7113 |
case $host_cpu:$lt_cv_cc_64bit_output in |
7114 |
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) |
7115 |
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" |
7116 |
sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" |
7117 |
;; |
7118 |
esac |
7119 |
|
7120 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
7121 |
# powerpc, because MkLinux only supported shared libraries with the |
7122 |
# GNU dynamic linker. Since this was broken with cross compilers, |
7123 |
# most powerpc-linux boxes support dynamic linking these days and |
7124 |
# people can always --disable-shared, the test was removed, and we |
7125 |
# assume the GNU/Linux dynamic linker is in use. |
7126 |
dynamic_linker='GNU/Linux ld.so' |
7127 |
;; |
7128 |
|
7129 |
netbsd*) |
7130 |
version_type=sunos |
7131 |
need_lib_prefix=no |
7132 |
need_version=no |
7133 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7134 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
7135 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
7136 |
dynamic_linker='NetBSD (a.out) ld.so' |
7137 |
else |
7138 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
7139 |
soname_spec='${libname}${release}.so$major' |
7140 |
dynamic_linker='NetBSD ld.elf_so' |
7141 |
fi |
7142 |
shlibpath_var=LD_LIBRARY_PATH |
7143 |
shlibpath_overrides_runpath=yes |
7144 |
hardcode_into_libs=yes |
7145 |
;; |
7146 |
|
7147 |
newsos6) |
7148 |
version_type=linux |
7149 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
7150 |
shlibpath_var=LD_LIBRARY_PATH |
7151 |
shlibpath_overrides_runpath=yes |
7152 |
;; |
7153 |
|
7154 |
openbsd*) |
7155 |
version_type=sunos |
7156 |
need_lib_prefix=no |
7157 |
need_version=no |
7158 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7159 |
case "$host_os" in |
7160 |
openbsd2.[89] | openbsd2.[89].*) |
7161 |
shlibpath_overrides_runpath=no |
7162 |
;; |
7163 |
*) |
7164 |
shlibpath_overrides_runpath=yes |
7165 |
;; |
7166 |
esac |
7167 |
else |
7168 |
shlibpath_overrides_runpath=yes |
7169 |
fi |
7170 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
7171 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
7172 |
shlibpath_var=LD_LIBRARY_PATH |
7173 |
;; |
7174 |
|
7175 |
os2*) |
7176 |
libname_spec='$name' |
7177 |
need_lib_prefix=no |
7178 |
library_names_spec='$libname.dll $libname.a' |
7179 |
dynamic_linker='OS/2 ld.exe' |
7180 |
shlibpath_var=LIBPATH |
7181 |
;; |
7182 |
|
7183 |
osf3* | osf4* | osf5*) |
7184 |
version_type=osf |
7185 |
need_version=no |
7186 |
soname_spec='${libname}${release}.so$major' |
7187 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
7188 |
shlibpath_var=LD_LIBRARY_PATH |
7189 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
7190 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
7191 |
hardcode_into_libs=yes |
7192 |
;; |
7193 |
|
7194 |
sco3.2v5*) |
7195 |
version_type=osf |
7196 |
soname_spec='${libname}${release}.so$major' |
7197 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
7198 |
shlibpath_var=LD_LIBRARY_PATH |
7199 |
;; |
7200 |
|
7201 |
solaris*) |
7202 |
version_type=linux |
7203 |
need_lib_prefix=no |
7204 |
need_version=no |
7205 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
7206 |
soname_spec='${libname}${release}.so$major' |
7207 |
shlibpath_var=LD_LIBRARY_PATH |
7208 |
shlibpath_overrides_runpath=yes |
7209 |
hardcode_into_libs=yes |
7210 |
# ldd complains unless libraries are executable |
7211 |
postinstall_cmds='chmod +x $lib' |
7212 |
;; |
7213 |
|
7214 |
sunos4*) |
7215 |
version_type=sunos |
7216 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
7217 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
7218 |
shlibpath_var=LD_LIBRARY_PATH |
7219 |
shlibpath_overrides_runpath=yes |
7220 |
if test "$with_gnu_ld" = yes; then |
7221 |
need_lib_prefix=no |
7222 |
fi |
7223 |
need_version=yes |
7224 |
;; |
7225 |
|
7226 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
7227 |
version_type=linux |
7228 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
7229 |
soname_spec='${libname}${release}.so$major' |
7230 |
shlibpath_var=LD_LIBRARY_PATH |
7231 |
case $host_vendor in |
7232 |
sni) |
7233 |
shlibpath_overrides_runpath=no |
7234 |
need_lib_prefix=no |
7235 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
7236 |
runpath_var=LD_RUN_PATH |
7237 |
;; |
7238 |
siemens) |
7239 |
need_lib_prefix=no |
7240 |
;; |
7241 |
motorola) |
7242 |
need_lib_prefix=no |
7243 |
need_version=no |
7244 |
shlibpath_overrides_runpath=no |
7245 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
7246 |
;; |
7247 |
esac |
7248 |
;; |
7249 |
|
7250 |
uts4*) |
7251 |
version_type=linux |
7252 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
7253 |
soname_spec='${libname}${release}.so$major' |
7254 |
shlibpath_var=LD_LIBRARY_PATH |
7255 |
;; |
7256 |
|
7257 |
dgux*) |
7258 |
version_type=linux |
7259 |
need_lib_prefix=no |
7260 |
need_version=no |
7261 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
7262 |
soname_spec='${libname}${release}.so$major' |
7263 |
shlibpath_var=LD_LIBRARY_PATH |
7264 |
;; |
7265 |
|
7266 |
sysv4*MP*) |
7267 |
if test -d /usr/nec ;then |
7268 |
version_type=linux |
7269 |
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
7270 |
soname_spec='$libname.so.$major' |
7271 |
shlibpath_var=LD_LIBRARY_PATH |
7272 |
fi |
7273 |
;; |
7274 |
|
7275 |
*) |
7276 |
dynamic_linker=no |
7277 |
;; |
7278 |
esac |
7279 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
7280 |
echo "${ECHO_T}$dynamic_linker" >&6 |
7281 |
test "$dynamic_linker" = no && can_build_shared=no |
7282 |
|
7283 |
# Report the final consequences. |
7284 |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
7285 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
7286 |
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
7287 |
echo "${ECHO_T}$can_build_shared" >&6 |
7288 |
|
7289 |
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
7290 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
7291 |
test "$can_build_shared" = "no" && enable_shared=no |
7292 |
|
7293 |
# On AIX, shared libraries and static libraries use the same namespace, and |
7294 |
# are all built from PIC. |
7295 |
case "$host_os" in |
7296 |
aix3*) |
7297 |
test "$enable_shared" = yes && enable_static=no |
7298 |
if test -n "$RANLIB"; then |
7299 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
7300 |
postinstall_cmds='$RANLIB $lib' |
7301 |
fi |
7302 |
;; |
7303 |
|
7304 |
aix4*) |
7305 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
7306 |
test "$enable_shared" = yes && enable_static=no |
7307 |
fi |
7308 |
;; |
7309 |
esac |
7310 |
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
7311 |
echo "${ECHO_T}$enable_shared" >&6 |
7312 |
|
7313 |
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
7314 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
7315 |
# Make sure either enable_shared or enable_static is yes. |
7316 |
test "$enable_shared" = yes || enable_static=yes |
7317 |
echo "$as_me:$LINENO: result: $enable_static" >&5 |
7318 |
echo "${ECHO_T}$enable_static" >&6 |
7319 |
|
7320 |
if test "$hardcode_action" = relink; then |
7321 |
# Fast installation is not supported |
7322 |
enable_fast_install=no |
7323 |
elif test "$shlibpath_overrides_runpath" = yes || |
7324 |
test "$enable_shared" = no; then |
7325 |
# Fast installation is not necessary |
7326 |
enable_fast_install=needless |
7327 |
fi |
7328 |
|
7329 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
7330 |
if test "$GCC" = yes; then |
7331 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
7332 |
fi |
7333 |
|
7334 |
if test "x$enable_dlopen" != xyes; then |
7335 |
enable_dlopen=unknown |
7336 |
enable_dlopen_self=unknown |
7337 |
enable_dlopen_self_static=unknown |
7338 |
else |
7339 |
lt_cv_dlopen=no |
7340 |
lt_cv_dlopen_libs= |
7341 |
|
7342 |
case $host_os in |
7343 |
beos*) |
7344 |
lt_cv_dlopen="load_add_on" |
7345 |
lt_cv_dlopen_libs= |
7346 |
lt_cv_dlopen_self=yes |
7347 |
;; |
7348 |
|
7349 |
cygwin* | mingw* | pw32*) |
7350 |
lt_cv_dlopen="LoadLibrary" |
7351 |
lt_cv_dlopen_libs= |
7352 |
;; |
7353 |
|
7354 |
*) |
7355 |
echo "$as_me:$LINENO: checking for shl_load" >&5 |
7356 |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
7357 |
if test "${ac_cv_func_shl_load+set}" = set; then |
7358 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7359 |
else |
7360 |
cat >conftest.$ac_ext <<_ACEOF |
7361 |
/* confdefs.h. */ |
7362 |
_ACEOF |
7363 |
cat confdefs.h >>conftest.$ac_ext |
7364 |
cat >>conftest.$ac_ext <<_ACEOF |
7365 |
/* end confdefs.h. */ |
7366 |
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
7367 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7368 |
#define shl_load innocuous_shl_load |
7369 |
|
7370 |
/* System header to define __stub macros and hopefully few prototypes, |
7371 |
which can conflict with char shl_load (); below. |
7372 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7373 |
<limits.h> exists even on freestanding compilers. */ |
7374 |
|
7375 |
#ifdef __STDC__ |
7376 |
# include <limits.h> |
7377 |
#else |
7378 |
# include <assert.h> |
7379 |
#endif |
7380 |
|
7381 |
#undef shl_load |
7382 |
|
7383 |
/* Override any gcc2 internal prototype to avoid an error. */ |
7384 |
#ifdef __cplusplus |
7385 |
extern "C" |
7386 |
{ |
7387 |
#endif |
7388 |
/* We use char because int might match the return type of a gcc2 |
7389 |
builtin and then its argument prototype would still apply. */ |
7390 |
char shl_load (); |
7391 |
/* The GNU C library defines this for functions which it implements |
7392 |
to always fail with ENOSYS. Some functions are actually named |
7393 |
something starting with __ and the normal name is an alias. */ |
7394 |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
7395 |
choke me |
7396 |
#else |
7397 |
char (*f) () = shl_load; |
7398 |
#endif |
7399 |
#ifdef __cplusplus |
7400 |
} |
7401 |
#endif |
7402 |
|
7403 |
int |
7404 |
main () |
7405 |
{ |
7406 |
return f != shl_load; |
7407 |
; |
7408 |
return 0; |
7409 |
} |
7410 |
_ACEOF |
7411 |
rm -f conftest.$ac_objext conftest$ac_exeext |
7412 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7413 |
(eval $ac_link) 2>conftest.er1 |
7414 |
ac_status=$? |
7415 |
grep -v '^ *+' conftest.er1 >conftest.err |
7416 |
rm -f conftest.er1 |
7417 |
cat conftest.err >&5 |
7418 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7419 |
(exit $ac_status); } && |
7420 |
{ ac_try='test -z "$ac_c_werror_flag" |
7421 |
|| test ! -s conftest.err' |
7422 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7423 |
(eval $ac_try) 2>&5 |
7424 |
ac_status=$? |
7425 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7426 |
(exit $ac_status); }; } && |
7427 |
{ ac_try='test -s conftest$ac_exeext' |
7428 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7429 |
(eval $ac_try) 2>&5 |
7430 |
ac_status=$? |
7431 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7432 |
(exit $ac_status); }; }; then |
7433 |
ac_cv_func_shl_load=yes |
7434 |
else |
7435 |
echo "$as_me: failed program was:" >&5 |
7436 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7437 |
|
7438 |
ac_cv_func_shl_load=no |
7439 |
fi |
7440 |
rm -f conftest.err conftest.$ac_objext \ |
7441 |
conftest$ac_exeext conftest.$ac_ext |
7442 |
fi |
7443 |
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
7444 |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
7445 |
if test $ac_cv_func_shl_load = yes; then |
7446 |
lt_cv_dlopen="shl_load" |
7447 |
else |
7448 |
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
7449 |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
7450 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
7451 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7452 |
else |
7453 |
ac_check_lib_save_LIBS=$LIBS |
7454 |
LIBS="-ldld $LIBS" |
7455 |
cat >conftest.$ac_ext <<_ACEOF |
7456 |
/* confdefs.h. */ |
7457 |
_ACEOF |
7458 |
cat confdefs.h >>conftest.$ac_ext |
7459 |
cat >>conftest.$ac_ext <<_ACEOF |
7460 |
/* end confdefs.h. */ |
7461 |
|
7462 |
/* Override any gcc2 internal prototype to avoid an error. */ |
7463 |
#ifdef __cplusplus |
7464 |
extern "C" |
7465 |
#endif |
7466 |
/* We use char because int might match the return type of a gcc2 |
7467 |
builtin and then its argument prototype would still apply. */ |
7468 |
char shl_load (); |
7469 |
int |
7470 |
main () |
7471 |
{ |
7472 |
shl_load (); |
7473 |
; |
7474 |
return 0; |
7475 |
} |
7476 |
_ACEOF |
7477 |
rm -f conftest.$ac_objext conftest$ac_exeext |
7478 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7479 |
(eval $ac_link) 2>conftest.er1 |
7480 |
ac_status=$? |
7481 |
grep -v '^ *+' conftest.er1 >conftest.err |
7482 |
rm -f conftest.er1 |
7483 |
cat conftest.err >&5 |
7484 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7485 |
(exit $ac_status); } && |
7486 |
{ ac_try='test -z "$ac_c_werror_flag" |
7487 |
|| test ! -s conftest.err' |
7488 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7489 |
(eval $ac_try) 2>&5 |
7490 |
ac_status=$? |
7491 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7492 |
(exit $ac_status); }; } && |
7493 |
{ ac_try='test -s conftest$ac_exeext' |
7494 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7495 |
(eval $ac_try) 2>&5 |
7496 |
ac_status=$? |
7497 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7498 |
(exit $ac_status); }; }; then |
7499 |
ac_cv_lib_dld_shl_load=yes |
7500 |
else |
7501 |
echo "$as_me: failed program was:" >&5 |
7502 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7503 |
|
7504 |
ac_cv_lib_dld_shl_load=no |
7505 |
fi |
7506 |
rm -f conftest.err conftest.$ac_objext \ |
7507 |
conftest$ac_exeext conftest.$ac_ext |
7508 |
LIBS=$ac_check_lib_save_LIBS |
7509 |
fi |
7510 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
7511 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
7512 |
if test $ac_cv_lib_dld_shl_load = yes; then |
7513 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
7514 |
else |
7515 |
echo "$as_me:$LINENO: checking for dlopen" >&5 |
7516 |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
7517 |
if test "${ac_cv_func_dlopen+set}" = set; then |
7518 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7519 |
else |
7520 |
cat >conftest.$ac_ext <<_ACEOF |
7521 |
/* confdefs.h. */ |
7522 |
_ACEOF |
7523 |
cat confdefs.h >>conftest.$ac_ext |
7524 |
cat >>conftest.$ac_ext <<_ACEOF |
7525 |
/* end confdefs.h. */ |
7526 |
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
7527 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7528 |
#define dlopen innocuous_dlopen |
7529 |
|
7530 |
/* System header to define __stub macros and hopefully few prototypes, |
7531 |
which can conflict with char dlopen (); below. |
7532 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7533 |
<limits.h> exists even on freestanding compilers. */ |
7534 |
|
7535 |
#ifdef __STDC__ |
7536 |
# include <limits.h> |
7537 |
#else |
7538 |
# include <assert.h> |
7539 |
#endif |
7540 |
|
7541 |
#undef dlopen |
7542 |
|
7543 |
/* Override any gcc2 internal prototype to avoid an error. */ |
7544 |
#ifdef __cplusplus |
7545 |
extern "C" |
7546 |
{ |
7547 |
#endif |
7548 |
/* We use char because int might match the return type of a gcc2 |
7549 |
builtin and then its argument prototype would still apply. */ |
7550 |
char dlopen (); |
7551 |
/* The GNU C library defines this for functions which it implements |
7552 |
to always fail with ENOSYS. Some functions are actually named |
7553 |
something starting with __ and the normal name is an alias. */ |
7554 |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
7555 |
choke me |
7556 |
#else |
7557 |
char (*f) () = dlopen; |
7558 |
#endif |
7559 |
#ifdef __cplusplus |
7560 |
} |
7561 |
#endif |
7562 |
|
7563 |
int |
7564 |
main () |
7565 |
{ |
7566 |
return f != dlopen; |
7567 |
; |
7568 |
return 0; |
7569 |
} |
7570 |
_ACEOF |
7571 |
rm -f conftest.$ac_objext conftest$ac_exeext |
7572 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7573 |
(eval $ac_link) 2>conftest.er1 |
7574 |
ac_status=$? |
7575 |
grep -v '^ *+' conftest.er1 >conftest.err |
7576 |
rm -f conftest.er1 |
7577 |
cat conftest.err >&5 |
7578 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7579 |
(exit $ac_status); } && |
7580 |
{ ac_try='test -z "$ac_c_werror_flag" |
7581 |
|| test ! -s conftest.err' |
7582 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7583 |
(eval $ac_try) 2>&5 |
7584 |
ac_status=$? |
7585 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7586 |
(exit $ac_status); }; } && |
7587 |
{ ac_try='test -s conftest$ac_exeext' |
7588 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7589 |
(eval $ac_try) 2>&5 |
7590 |
ac_status=$? |
7591 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7592 |
(exit $ac_status); }; }; then |
7593 |
ac_cv_func_dlopen=yes |
7594 |
else |
7595 |
echo "$as_me: failed program was:" >&5 |
7596 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7597 |
|
7598 |
ac_cv_func_dlopen=no |
7599 |
fi |
7600 |
rm -f conftest.err conftest.$ac_objext \ |
7601 |
conftest$ac_exeext conftest.$ac_ext |
7602 |
fi |
7603 |
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
7604 |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
7605 |
if test $ac_cv_func_dlopen = yes; then |
7606 |
lt_cv_dlopen="dlopen" |
7607 |
else |
7608 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
7609 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
7610 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
7611 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7612 |
else |
7613 |
ac_check_lib_save_LIBS=$LIBS |
7614 |
LIBS="-ldl $LIBS" |
7615 |
cat >conftest.$ac_ext <<_ACEOF |
7616 |
/* confdefs.h. */ |
7617 |
_ACEOF |
7618 |
cat confdefs.h >>conftest.$ac_ext |
7619 |
cat >>conftest.$ac_ext <<_ACEOF |
7620 |
/* end confdefs.h. */ |
7621 |
|
7622 |
/* Override any gcc2 internal prototype to avoid an error. */ |
7623 |
#ifdef __cplusplus |
7624 |
extern "C" |
7625 |
#endif |
7626 |
/* We use char because int might match the return type of a gcc2 |
7627 |
builtin and then its argument prototype would still apply. */ |
7628 |
char dlopen (); |
7629 |
int |
7630 |
main () |
7631 |
{ |
7632 |
dlopen (); |
7633 |
; |
7634 |
return 0; |
7635 |
} |
7636 |
_ACEOF |
7637 |
rm -f conftest.$ac_objext conftest$ac_exeext |
7638 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7639 |
(eval $ac_link) 2>conftest.er1 |
7640 |
ac_status=$? |
7641 |
grep -v '^ *+' conftest.er1 >conftest.err |
7642 |
rm -f conftest.er1 |
7643 |
cat conftest.err >&5 |
7644 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7645 |
(exit $ac_status); } && |
7646 |
{ ac_try='test -z "$ac_c_werror_flag" |
7647 |
|| test ! -s conftest.err' |
7648 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7649 |
(eval $ac_try) 2>&5 |
7650 |
ac_status=$? |
7651 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7652 |
(exit $ac_status); }; } && |
7653 |
{ ac_try='test -s conftest$ac_exeext' |
7654 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7655 |
(eval $ac_try) 2>&5 |
7656 |
ac_status=$? |
7657 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7658 |
(exit $ac_status); }; }; then |
7659 |
ac_cv_lib_dl_dlopen=yes |
7660 |
else |
7661 |
echo "$as_me: failed program was:" >&5 |
7662 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7663 |
|
7664 |
ac_cv_lib_dl_dlopen=no |
7665 |
fi |
7666 |
rm -f conftest.err conftest.$ac_objext \ |
7667 |
conftest$ac_exeext conftest.$ac_ext |
7668 |
LIBS=$ac_check_lib_save_LIBS |
7669 |
fi |
7670 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
7671 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
7672 |
if test $ac_cv_lib_dl_dlopen = yes; then |
7673 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
7674 |
else |
7675 |
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
7676 |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
7677 |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
7678 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7679 |
else |
7680 |
ac_check_lib_save_LIBS=$LIBS |
7681 |
LIBS="-lsvld $LIBS" |
7682 |
cat >conftest.$ac_ext <<_ACEOF |
7683 |
/* confdefs.h. */ |
7684 |
_ACEOF |
7685 |
cat confdefs.h >>conftest.$ac_ext |
7686 |
cat >>conftest.$ac_ext <<_ACEOF |
7687 |
/* end confdefs.h. */ |
7688 |
|
7689 |
/* Override any gcc2 internal prototype to avoid an error. */ |
7690 |
#ifdef __cplusplus |
7691 |
extern "C" |
7692 |
#endif |
7693 |
/* We use char because int might match the return type of a gcc2 |
7694 |
builtin and then its argument prototype would still apply. */ |
7695 |
char dlopen (); |
7696 |
int |
7697 |
main () |
7698 |
{ |
7699 |
dlopen (); |
7700 |
; |
7701 |
return 0; |
7702 |
} |
7703 |
_ACEOF |
7704 |
rm -f conftest.$ac_objext conftest$ac_exeext |
7705 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7706 |
(eval $ac_link) 2>conftest.er1 |
7707 |
ac_status=$? |
7708 |
grep -v '^ *+' conftest.er1 >conftest.err |
7709 |
rm -f conftest.er1 |
7710 |
cat conftest.err >&5 |
7711 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7712 |
(exit $ac_status); } && |
7713 |
{ ac_try='test -z "$ac_c_werror_flag" |
7714 |
|| test ! -s conftest.err' |
7715 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7716 |
(eval $ac_try) 2>&5 |
7717 |
ac_status=$? |
7718 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7719 |
(exit $ac_status); }; } && |
7720 |
{ ac_try='test -s conftest$ac_exeext' |
7721 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7722 |
(eval $ac_try) 2>&5 |
7723 |
ac_status=$? |
7724 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7725 |
(exit $ac_status); }; }; then |
7726 |
ac_cv_lib_svld_dlopen=yes |
7727 |
else |
7728 |
echo "$as_me: failed program was:" >&5 |
7729 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7730 |
|
7731 |
ac_cv_lib_svld_dlopen=no |
7732 |
fi |
7733 |
rm -f conftest.err conftest.$ac_objext \ |
7734 |
conftest$ac_exeext conftest.$ac_ext |
7735 |
LIBS=$ac_check_lib_save_LIBS |
7736 |
fi |
7737 |
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
7738 |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
7739 |
if test $ac_cv_lib_svld_dlopen = yes; then |
7740 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
7741 |
else |
7742 |
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
7743 |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
7744 |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
7745 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7746 |
else |
7747 |
ac_check_lib_save_LIBS=$LIBS |
7748 |
LIBS="-ldld $LIBS" |
7749 |
cat >conftest.$ac_ext <<_ACEOF |
7750 |
/* confdefs.h. */ |
7751 |
_ACEOF |
7752 |
cat confdefs.h >>conftest.$ac_ext |
7753 |
cat >>conftest.$ac_ext <<_ACEOF |
7754 |
/* end confdefs.h. */ |
7755 |
|
7756 |
/* Override any gcc2 internal prototype to avoid an error. */ |
7757 |
#ifdef __cplusplus |
7758 |
extern "C" |
7759 |
#endif |
7760 |
/* We use char because int might match the return type of a gcc2 |
7761 |
builtin and then its argument prototype would still apply. */ |
7762 |
char dld_link (); |
7763 |
int |
7764 |
main () |
7765 |
{ |
7766 |
dld_link (); |
7767 |
; |
7768 |
return 0; |
7769 |
} |
7770 |
_ACEOF |
7771 |
rm -f conftest.$ac_objext conftest$ac_exeext |
7772 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7773 |
(eval $ac_link) 2>conftest.er1 |
7774 |
ac_status=$? |
7775 |
grep -v '^ *+' conftest.er1 >conftest.err |
7776 |
rm -f conftest.er1 |
7777 |
cat conftest.err >&5 |
7778 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7779 |
(exit $ac_status); } && |
7780 |
{ ac_try='test -z "$ac_c_werror_flag" |
7781 |
|| test ! -s conftest.err' |
7782 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7783 |
(eval $ac_try) 2>&5 |
7784 |
ac_status=$? |
7785 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7786 |
(exit $ac_status); }; } && |
7787 |
{ ac_try='test -s conftest$ac_exeext' |
7788 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7789 |
(eval $ac_try) 2>&5 |
7790 |
ac_status=$? |
7791 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7792 |
(exit $ac_status); }; }; then |
7793 |
ac_cv_lib_dld_dld_link=yes |
7794 |
else |
7795 |
echo "$as_me: failed program was:" >&5 |
7796 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7797 |
|
7798 |
ac_cv_lib_dld_dld_link=no |
7799 |
fi |
7800 |
rm -f conftest.err conftest.$ac_objext \ |
7801 |
conftest$ac_exeext conftest.$ac_ext |
7802 |
LIBS=$ac_check_lib_save_LIBS |
7803 |
fi |
7804 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
7805 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
7806 |
if test $ac_cv_lib_dld_dld_link = yes; then |
7807 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
7808 |
fi |
7809 |
|
7810 |
|
7811 |
fi |
7812 |
|
7813 |
|
7814 |
fi |
7815 |
|
7816 |
|
7817 |
fi |
7818 |
|
7819 |
|
7820 |
fi |
7821 |
|
7822 |
|
7823 |
fi |
7824 |
|
7825 |
;; |
7826 |
esac |
7827 |
|
7828 |
if test "x$lt_cv_dlopen" != xno; then |
7829 |
enable_dlopen=yes |
7830 |
else |
7831 |
enable_dlopen=no |
7832 |
fi |
7833 |
|
7834 |
case $lt_cv_dlopen in |
7835 |
dlopen) |
7836 |
save_CPPFLAGS="$CPPFLAGS" |
7837 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
7838 |
|
7839 |
save_LDFLAGS="$LDFLAGS" |
7840 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
7841 |
|
7842 |
save_LIBS="$LIBS" |
7843 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
7844 |
|
7845 |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
7846 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
7847 |
if test "${lt_cv_dlopen_self+set}" = set; then |
7848 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7849 |
else |
7850 |
if test "$cross_compiling" = yes; then : |
7851 |
lt_cv_dlopen_self=cross |
7852 |
else |
7853 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
7854 |
lt_status=$lt_dlunknown |
7855 |
cat > conftest.$ac_ext <<EOF |
7856 |
#line 7856 "configure" |
7857 |
#include "confdefs.h" |
7858 |
|
7859 |
#if HAVE_DLFCN_H |
7860 |
#include <dlfcn.h> |
7861 |
#endif |
7862 |
|
7863 |
#include <stdio.h> |
7864 |
|
7865 |
#ifdef RTLD_GLOBAL |
7866 |
# define LT_DLGLOBAL RTLD_GLOBAL |
7867 |
#else |
7868 |
# ifdef DL_GLOBAL |
7869 |
# define LT_DLGLOBAL DL_GLOBAL |
7870 |
# else |
7871 |
# define LT_DLGLOBAL 0 |
7872 |
# endif |
7873 |
#endif |
7874 |
|
7875 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
7876 |
find out it does not work in some platform. */ |
7877 |
#ifndef LT_DLLAZY_OR_NOW |
7878 |
# ifdef RTLD_LAZY |
7879 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
7880 |
# else |
7881 |
# ifdef DL_LAZY |
7882 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
7883 |
# else |
7884 |
# ifdef RTLD_NOW |
7885 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
7886 |
# else |
7887 |
# ifdef DL_NOW |
7888 |
# define LT_DLLAZY_OR_NOW DL_NOW |
7889 |
# else |
7890 |
# define LT_DLLAZY_OR_NOW 0 |
7891 |
# endif |
7892 |
# endif |
7893 |
# endif |
7894 |
# endif |
7895 |
#endif |
7896 |
|
7897 |
#ifdef __cplusplus |
7898 |
extern "C" void exit (int); |
7899 |
#endif |
7900 |
|
7901 |
void fnord() { int i=42;} |
7902 |
int main () |
7903 |
{ |
7904 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
7905 |
int status = $lt_dlunknown; |
7906 |
|
7907 |
if (self) |
7908 |
{ |
7909 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
7910 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
7911 |
/* dlclose (self); */ |
7912 |
} |
7913 |
|
7914 |
exit (status); |
7915 |
} |
7916 |
EOF |
7917 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7918 |
(eval $ac_link) 2>&5 |
7919 |
ac_status=$? |
7920 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7921 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
7922 |
(./conftest; exit; ) 2>/dev/null |
7923 |
lt_status=$? |
7924 |
case x$lt_status in |
7925 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
7926 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
7927 |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
7928 |
esac |
7929 |
else : |
7930 |
# compilation failed |
7931 |
lt_cv_dlopen_self=no |
7932 |
fi |
7933 |
fi |
7934 |
rm -fr conftest* |
7935 |
|
7936 |
|
7937 |
fi |
7938 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
7939 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
7940 |
|
7941 |
if test "x$lt_cv_dlopen_self" = xyes; then |
7942 |
LDFLAGS="$LDFLAGS $link_static_flag" |
7943 |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
7944 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
7945 |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
7946 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7947 |
else |
7948 |
if test "$cross_compiling" = yes; then : |
7949 |
lt_cv_dlopen_self_static=cross |
7950 |
else |
7951 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
7952 |
lt_status=$lt_dlunknown |
7953 |
cat > conftest.$ac_ext <<EOF |
7954 |
#line 7954 "configure" |
7955 |
#include "confdefs.h" |
7956 |
|
7957 |
#if HAVE_DLFCN_H |
7958 |
#include <dlfcn.h> |
7959 |
#endif |
7960 |
|
7961 |
#include <stdio.h> |
7962 |
|
7963 |
#ifdef RTLD_GLOBAL |
7964 |
# define LT_DLGLOBAL RTLD_GLOBAL |
7965 |
#else |
7966 |
# ifdef DL_GLOBAL |
7967 |
# define LT_DLGLOBAL DL_GLOBAL |
7968 |
# else |
7969 |
# define LT_DLGLOBAL 0 |
7970 |
# endif |
7971 |
#endif |
7972 |
|
7973 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
7974 |
find out it does not work in some platform. */ |
7975 |
#ifndef LT_DLLAZY_OR_NOW |
7976 |
# ifdef RTLD_LAZY |
7977 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
7978 |
# else |
7979 |
# ifdef DL_LAZY |
7980 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
7981 |
# else |
7982 |
# ifdef RTLD_NOW |
7983 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
7984 |
# else |
7985 |
# ifdef DL_NOW |
7986 |
# define LT_DLLAZY_OR_NOW DL_NOW |
7987 |
# else |
7988 |
# define LT_DLLAZY_OR_NOW 0 |
7989 |
# endif |
7990 |
# endif |
7991 |
# endif |
7992 |
# endif |
7993 |
#endif |
7994 |
|
7995 |
#ifdef __cplusplus |
7996 |
extern "C" void exit (int); |
7997 |
#endif |
7998 |
|
7999 |
void fnord() { int i=42;} |
8000 |
int main () |
8001 |
{ |
8002 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
8003 |
int status = $lt_dlunknown; |
8004 |
|
8005 |
if (self) |
8006 |
{ |
8007 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
8008 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
8009 |
/* dlclose (self); */ |
8010 |
} |
8011 |
|
8012 |
exit (status); |
8013 |
} |
8014 |
EOF |
8015 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8016 |
(eval $ac_link) 2>&5 |
8017 |
ac_status=$? |
8018 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8019 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
8020 |
(./conftest; exit; ) 2>/dev/null |
8021 |
lt_status=$? |
8022 |
case x$lt_status in |
8023 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
8024 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
8025 |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
8026 |
esac |
8027 |
else : |
8028 |
# compilation failed |
8029 |
lt_cv_dlopen_self_static=no |
8030 |
fi |
8031 |
fi |
8032 |
rm -fr conftest* |
8033 |
|
8034 |
|
8035 |
fi |
8036 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
8037 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
8038 |
fi |
8039 |
|
8040 |
CPPFLAGS="$save_CPPFLAGS" |
8041 |
LDFLAGS="$save_LDFLAGS" |
8042 |
LIBS="$save_LIBS" |
8043 |
;; |
8044 |
esac |
8045 |
|
8046 |
case $lt_cv_dlopen_self in |
8047 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
8048 |
*) enable_dlopen_self=unknown ;; |
8049 |
esac |
8050 |
|
8051 |
case $lt_cv_dlopen_self_static in |
8052 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
8053 |
*) enable_dlopen_self_static=unknown ;; |
8054 |
esac |
8055 |
fi |
8056 |
|
8057 |
|
8058 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
8059 |
case $archive_cmds in |
8060 |
*'~'*) |
8061 |
# FIXME: we may have to deal with multi-command sequences. |
8062 |
;; |
8063 |
'$CC '*) |
8064 |
# Test whether the compiler implicitly links with -lc since on some |
8065 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
8066 |
# to ld, don't add -lc before -lgcc. |
8067 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8068 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
8069 |
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
8070 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8071 |
else |
8072 |
$rm conftest* |
8073 |
echo 'static int dummy;' > conftest.$ac_ext |
8074 |
|
8075 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8076 |
(eval $ac_compile) 2>&5 |
8077 |
ac_status=$? |
8078 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8079 |
(exit $ac_status); }; then |
8080 |
soname=conftest |
8081 |
lib=conftest |
8082 |
libobjs=conftest.$ac_objext |
8083 |
deplibs= |
8084 |
wl=$lt_cv_prog_cc_wl |
8085 |
compiler_flags=-v |
8086 |
linker_flags=-v |
8087 |
verstring= |
8088 |
output_objdir=. |
8089 |
libname=conftest |
8090 |
save_allow_undefined_flag=$allow_undefined_flag |
8091 |
allow_undefined_flag= |
8092 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8093 |
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8094 |
ac_status=$? |
8095 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8096 |
(exit $ac_status); } |
8097 |
then |
8098 |
lt_cv_archive_cmds_need_lc=no |
8099 |
else |
8100 |
lt_cv_archive_cmds_need_lc=yes |
8101 |
fi |
8102 |
allow_undefined_flag=$save_allow_undefined_flag |
8103 |
else |
8104 |
cat conftest.err 1>&5 |
8105 |
fi |
8106 |
fi |
8107 |
|
8108 |
echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
8109 |
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
8110 |
;; |
8111 |
esac |
8112 |
fi |
8113 |
need_lc=${lt_cv_archive_cmds_need_lc-yes} |
8114 |
|
8115 |
# The second clause should only fire when bootstrapping the |
8116 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
8117 |
# with your package, and you will get complaints that there are |
8118 |
# no rules to generate ltmain.sh. |
8119 |
if test -f "$ltmain"; then |
8120 |
: |
8121 |
else |
8122 |
# If there is no Makefile yet, we rely on a make rule to execute |
8123 |
# `config.status --recheck' to rerun these tests and create the |
8124 |
# libtool script then. |
8125 |
test -f Makefile && make "$ltmain" |
8126 |
fi |
8127 |
|
8128 |
if test -f "$ltmain"; then |
8129 |
trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
8130 |
$rm -f "${ofile}T" |
8131 |
|
8132 |
echo creating $ofile |
8133 |
|
8134 |
# Now quote all the things that may contain metacharacters while being |
8135 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
8136 |
# variables and quote the copies for generation of the libtool script. |
8137 |
for var in echo old_CC old_CFLAGS SED \ |
8138 |
AR AR_FLAGS CC LD LN_S NM SHELL \ |
8139 |
reload_flag reload_cmds wl \ |
8140 |
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
8141 |
thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
8142 |
library_names_spec soname_spec \ |
8143 |
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
8144 |
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
8145 |
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
8146 |
old_striplib striplib file_magic_cmd export_symbols_cmds \ |
8147 |
deplibs_check_method allow_undefined_flag no_undefined_flag \ |
8148 |
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
8149 |
global_symbol_to_c_name_address \ |
8150 |
hardcode_libdir_flag_spec hardcode_libdir_separator \ |
8151 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
8152 |
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
8153 |
|
8154 |
case $var in |
8155 |
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
8156 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
8157 |
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
8158 |
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
8159 |
postinstall_cmds | postuninstall_cmds | \ |
8160 |
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
8161 |
# Double-quote double-evaled strings. |
8162 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
8163 |
;; |
8164 |
*) |
8165 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
8166 |
;; |
8167 |
esac |
8168 |
done |
8169 |
|
8170 |
cat <<__EOF__ > "${ofile}T" |
8171 |
#! $SHELL |
8172 |
|
8173 |
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
8174 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
8175 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
8176 |
# |
8177 |
# Copyright (C) 1996-2000 Free Software Foundation, Inc. |
8178 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
8179 |
# |
8180 |
# This program is free software; you can redistribute it and/or modify |
8181 |
# it under the terms of the GNU General Public License as published by |
8182 |
# the Free Software Foundation; either version 2 of the License, or |
8183 |
# (at your option) any later version. |
8184 |
# |
8185 |
# This program is distributed in the hope that it will be useful, but |
8186 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
8187 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
8188 |
# General Public License for more details. |
8189 |
# |
8190 |
# You should have received a copy of the GNU General Public License |
8191 |
# along with this program; if not, write to the Free Software |
8192 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
8193 |
# |
8194 |
# As a special exception to the GNU General Public License, if you |
8195 |
# distribute this file as part of a program that contains a |
8196 |
# configuration script generated by Autoconf, you may include it under |
8197 |
# the same distribution terms that you use for the rest of that program. |
8198 |
|
8199 |
# A sed that does not truncate output. |
8200 |
SED=$lt_SED |
8201 |
|
8202 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
8203 |
Xsed="${SED} -e s/^X//" |
8204 |
|
8205 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
8206 |
# if CDPATH is set. |
8207 |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
8208 |
|
8209 |
# ### BEGIN LIBTOOL CONFIG |
8210 |
|
8211 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
8212 |
|
8213 |
# Shell to use when invoking shell scripts. |
8214 |
SHELL=$lt_SHELL |
8215 |
|
8216 |
# Whether or not to build shared libraries. |
8217 |
build_libtool_libs=$enable_shared |
8218 |
|
8219 |
# Whether or not to build static libraries. |
8220 |
build_old_libs=$enable_static |
8221 |
|
8222 |
# Whether or not to add -lc for building shared libraries. |
8223 |
build_libtool_need_lc=$need_lc |
8224 |
|
8225 |
# Whether or not to optimize for fast installation. |
8226 |
fast_install=$enable_fast_install |
8227 |
|
8228 |
# The host system. |
8229 |
host_alias=$host_alias |
8230 |
host=$host |
8231 |
|
8232 |
# An echo program that does not interpret backslashes. |
8233 |
echo=$lt_echo |
8234 |
|
8235 |
# The archiver. |
8236 |
AR=$lt_AR |
8237 |
AR_FLAGS=$lt_AR_FLAGS |
8238 |
|
8239 |
# The default C compiler. |
8240 |
CC=$lt_CC |
8241 |
|
8242 |
# Is the compiler the GNU C compiler? |
8243 |
with_gcc=$GCC |
8244 |
|
8245 |
# The linker used to build libraries. |
8246 |
LD=$lt_LD |
8247 |
|
8248 |
# Whether we need hard or soft links. |
8249 |
LN_S=$lt_LN_S |
8250 |
|
8251 |
# A BSD-compatible nm program. |
8252 |
NM=$lt_NM |
8253 |
|
8254 |
# A symbol stripping program |
8255 |
STRIP=$STRIP |
8256 |
|
8257 |
# Used to examine libraries when file_magic_cmd begins "file" |
8258 |
MAGIC_CMD=$MAGIC_CMD |
8259 |
|
8260 |
# Used on cygwin: DLL creation program. |
8261 |
DLLTOOL="$DLLTOOL" |
8262 |
|
8263 |
# Used on cygwin: object dumper. |
8264 |
OBJDUMP="$OBJDUMP" |
8265 |
|
8266 |
# Used on cygwin: assembler. |
8267 |
AS="$AS" |
8268 |
|
8269 |
# The name of the directory that contains temporary libtool files. |
8270 |
objdir=$objdir |
8271 |
|
8272 |
# How to create reloadable object files. |
8273 |
reload_flag=$lt_reload_flag |
8274 |
reload_cmds=$lt_reload_cmds |
8275 |
|
8276 |
# How to pass a linker flag through the compiler. |
8277 |
wl=$lt_wl |
8278 |
|
8279 |
# Object file suffix (normally "o"). |
8280 |
objext="$ac_objext" |
8281 |
|
8282 |
# Old archive suffix (normally "a"). |
8283 |
libext="$libext" |
8284 |
|
8285 |
# Executable file suffix (normally ""). |
8286 |
exeext="$exeext" |
8287 |
|
8288 |
# Additional compiler flags for building library objects. |
8289 |
pic_flag=$lt_pic_flag |
8290 |
pic_mode=$pic_mode |
8291 |
|
8292 |
# Does compiler simultaneously support -c and -o options? |
8293 |
compiler_c_o=$lt_compiler_c_o |
8294 |
|
8295 |
# Can we write directly to a .lo ? |
8296 |
compiler_o_lo=$lt_compiler_o_lo |
8297 |
|
8298 |
# Must we lock files when doing compilation ? |
8299 |
need_locks=$lt_need_locks |
8300 |
|
8301 |
# Do we need the lib prefix for modules? |
8302 |
need_lib_prefix=$need_lib_prefix |
8303 |
|
8304 |
# Do we need a version for libraries? |
8305 |
need_version=$need_version |
8306 |
|
8307 |
# Whether dlopen is supported. |
8308 |
dlopen_support=$enable_dlopen |
8309 |
|
8310 |
# Whether dlopen of programs is supported. |
8311 |
dlopen_self=$enable_dlopen_self |
8312 |
|
8313 |
# Whether dlopen of statically linked programs is supported. |
8314 |
dlopen_self_static=$enable_dlopen_self_static |
8315 |
|
8316 |
# Compiler flag to prevent dynamic linking. |
8317 |
link_static_flag=$lt_link_static_flag |
8318 |
|
8319 |
# Compiler flag to turn off builtin functions. |
8320 |
no_builtin_flag=$lt_no_builtin_flag |
8321 |
|
8322 |
# Compiler flag to allow reflexive dlopens. |
8323 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
8324 |
|
8325 |
# Compiler flag to generate shared objects directly from archives. |
8326 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
8327 |
|
8328 |
# Compiler flag to generate thread-safe objects. |
8329 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
8330 |
|
8331 |
# Library versioning type. |
8332 |
version_type=$version_type |
8333 |
|
8334 |
# Format of library name prefix. |
8335 |
libname_spec=$lt_libname_spec |
8336 |
|
8337 |
# List of archive names. First name is the real one, the rest are links. |
8338 |
# The last name is the one that the linker finds with -lNAME. |
8339 |
library_names_spec=$lt_library_names_spec |
8340 |
|
8341 |
# The coded name of the library, if different from the real name. |
8342 |
soname_spec=$lt_soname_spec |
8343 |
|
8344 |
# Commands used to build and install an old-style archive. |
8345 |
RANLIB=$lt_RANLIB |
8346 |
old_archive_cmds=$lt_old_archive_cmds |
8347 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
8348 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
8349 |
|
8350 |
# Create an old-style archive from a shared archive. |
8351 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
8352 |
|
8353 |
# Create a temporary old-style archive to link instead of a shared archive. |
8354 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
8355 |
|
8356 |
# Commands used to build and install a shared archive. |
8357 |
archive_cmds=$lt_archive_cmds |
8358 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
8359 |
postinstall_cmds=$lt_postinstall_cmds |
8360 |
postuninstall_cmds=$lt_postuninstall_cmds |
8361 |
|
8362 |
# Commands to strip libraries. |
8363 |
old_striplib=$lt_old_striplib |
8364 |
striplib=$lt_striplib |
8365 |
|
8366 |
# Method to check whether dependent libraries are shared objects. |
8367 |
deplibs_check_method=$lt_deplibs_check_method |
8368 |
|
8369 |
# Command to use when deplibs_check_method == file_magic. |
8370 |
file_magic_cmd=$lt_file_magic_cmd |
8371 |
|
8372 |
# Flag that allows shared libraries with undefined symbols to be built. |
8373 |
allow_undefined_flag=$lt_allow_undefined_flag |
8374 |
|
8375 |
# Flag that forces no undefined symbols. |
8376 |
no_undefined_flag=$lt_no_undefined_flag |
8377 |
|
8378 |
# Commands used to finish a libtool library installation in a directory. |
8379 |
finish_cmds=$lt_finish_cmds |
8380 |
|
8381 |
# Same as above, but a single script fragment to be evaled but not shown. |
8382 |
finish_eval=$lt_finish_eval |
8383 |
|
8384 |
# Take the output of nm and produce a listing of raw symbols and C names. |
8385 |
global_symbol_pipe=$lt_global_symbol_pipe |
8386 |
|
8387 |
# Transform the output of nm in a proper C declaration |
8388 |
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
8389 |
|
8390 |
# Transform the output of nm in a C name address pair |
8391 |
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
8392 |
|
8393 |
# This is the shared library runtime path variable. |
8394 |
runpath_var=$runpath_var |
8395 |
|
8396 |
# This is the shared library path variable. |
8397 |
shlibpath_var=$shlibpath_var |
8398 |
|
8399 |
# Is shlibpath searched before the hard-coded library search path? |
8400 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
8401 |
|
8402 |
# How to hardcode a shared library path into an executable. |
8403 |
hardcode_action=$hardcode_action |
8404 |
|
8405 |
# Whether we should hardcode library paths into libraries. |
8406 |
hardcode_into_libs=$hardcode_into_libs |
8407 |
|
8408 |
# Flag to hardcode \$libdir into a binary during linking. |
8409 |
# This must work even if \$libdir does not exist. |
8410 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
8411 |
|
8412 |
# Whether we need a single -rpath flag with a separated argument. |
8413 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
8414 |
|
8415 |
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
8416 |
# resulting binary. |
8417 |
hardcode_direct=$hardcode_direct |
8418 |
|
8419 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
8420 |
# resulting binary. |
8421 |
hardcode_minus_L=$hardcode_minus_L |
8422 |
|
8423 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
8424 |
# the resulting binary. |
8425 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
8426 |
|
8427 |
# Variables whose values should be saved in libtool wrapper scripts and |
8428 |
# restored at relink time. |
8429 |
variables_saved_for_relink="$variables_saved_for_relink" |
8430 |
|
8431 |
# Whether libtool must link a program against all its dependency libraries. |
8432 |
link_all_deplibs=$link_all_deplibs |
8433 |
|
8434 |
# Compile-time system search path for libraries |
8435 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
8436 |
|
8437 |
# Run-time system search path for libraries |
8438 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
8439 |
|
8440 |
# Fix the shell variable \$srcfile for the compiler. |
8441 |
fix_srcfile_path="$fix_srcfile_path" |
8442 |
|
8443 |
# Set to yes if exported symbols are required. |
8444 |
always_export_symbols=$always_export_symbols |
8445 |
|
8446 |
# The commands to list exported symbols. |
8447 |
export_symbols_cmds=$lt_export_symbols_cmds |
8448 |
|
8449 |
# The commands to extract the exported symbol list from a shared archive. |
8450 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
8451 |
|
8452 |
# Symbols that should not be listed in the preloaded symbols. |
8453 |
exclude_expsyms=$lt_exclude_expsyms |
8454 |
|
8455 |
# Symbols that must always be exported. |
8456 |
include_expsyms=$lt_include_expsyms |
8457 |
|
8458 |
# ### END LIBTOOL CONFIG |
8459 |
|
8460 |
__EOF__ |
8461 |
|
8462 |
case $host_os in |
8463 |
aix3*) |
8464 |
cat <<\EOF >> "${ofile}T" |
8465 |
|
8466 |
# AIX sometimes has problems with the GCC collect2 program. For some |
8467 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
8468 |
# vanish in a puff of smoke. |
8469 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
8470 |
COLLECT_NAMES= |
8471 |
export COLLECT_NAMES |
8472 |
fi |
8473 |
EOF |
8474 |
;; |
8475 |
esac |
8476 |
|
8477 |
case $host_os in |
8478 |
cygwin* | mingw* | pw32* | os2*) |
8479 |
cat <<'EOF' >> "${ofile}T" |
8480 |
# This is a source program that is used to create dlls on Windows |
8481 |
# Don't remove nor modify the starting and closing comments |
8482 |
# /* ltdll.c starts here */ |
8483 |
# #define WIN32_LEAN_AND_MEAN |
8484 |
# #include <windows.h> |
8485 |
# #undef WIN32_LEAN_AND_MEAN |
8486 |
# #include <stdio.h> |
8487 |
# |
8488 |
# #ifndef __CYGWIN__ |
8489 |
# # ifdef __CYGWIN32__ |
8490 |
# # define __CYGWIN__ __CYGWIN32__ |
8491 |
# # endif |
8492 |
# #endif |
8493 |
# |
8494 |
# #ifdef __cplusplus |
8495 |
# extern "C" { |
8496 |
# #endif |
8497 |
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
8498 |
# #ifdef __cplusplus |
8499 |
# } |
8500 |
# #endif |
8501 |
# |
8502 |
# #ifdef __CYGWIN__ |
8503 |
# #include <cygwin/cygwin_dll.h> |
8504 |
# DECLARE_CYGWIN_DLL( DllMain ); |
8505 |
# #endif |
8506 |
# HINSTANCE __hDllInstance_base; |
8507 |
# |
8508 |
# BOOL APIENTRY |
8509 |
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
8510 |
# { |
8511 |
# __hDllInstance_base = hInst; |
8512 |
# return TRUE; |
8513 |
# } |
8514 |
# /* ltdll.c ends here */ |
8515 |
# This is a source program that is used to create import libraries |
8516 |
# on Windows for dlls which lack them. Don't remove nor modify the |
8517 |
# starting and closing comments |
8518 |
# /* impgen.c starts here */ |
8519 |
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
8520 |
# |
8521 |
# This file is part of GNU libtool. |
8522 |
# |
8523 |
# This program is free software; you can redistribute it and/or modify |
8524 |
# it under the terms of the GNU General Public License as published by |
8525 |
# the Free Software Foundation; either version 2 of the License, or |
8526 |
# (at your option) any later version. |
8527 |
# |
8528 |
# This program is distributed in the hope that it will be useful, |
8529 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
8530 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
8531 |
# GNU General Public License for more details. |
8532 |
# |
8533 |
# You should have received a copy of the GNU General Public License |
8534 |
# along with this program; if not, write to the Free Software |
8535 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
8536 |
# */ |
8537 |
# |
8538 |
# #include <stdio.h> /* for printf() */ |
8539 |
# #include <unistd.h> /* for open(), lseek(), read() */ |
8540 |
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
8541 |
# #include <string.h> /* for strdup() */ |
8542 |
# |
8543 |
# /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
8544 |
# #ifndef O_BINARY |
8545 |
# #define O_BINARY 0 |
8546 |
# #endif |
8547 |
# |
8548 |
# static unsigned int |
8549 |
# pe_get16 (fd, offset) |
8550 |
# int fd; |
8551 |
# int offset; |
8552 |
# { |
8553 |
# unsigned char b[2]; |
8554 |
# lseek (fd, offset, SEEK_SET); |
8555 |
# read (fd, b, 2); |
8556 |
# return b[0] + (b[1]<<8); |
8557 |
# } |
8558 |
# |
8559 |
# static unsigned int |
8560 |
# pe_get32 (fd, offset) |
8561 |
# int fd; |
8562 |
# int offset; |
8563 |
# { |
8564 |
# unsigned char b[4]; |
8565 |
# lseek (fd, offset, SEEK_SET); |
8566 |
# read (fd, b, 4); |
8567 |
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
8568 |
# } |
8569 |
# |
8570 |
# static unsigned int |
8571 |
# pe_as32 (ptr) |
8572 |
# void *ptr; |
8573 |
# { |
8574 |
# unsigned char *b = ptr; |
8575 |
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
8576 |
# } |
8577 |
# |
8578 |
# int |
8579 |
# main (argc, argv) |
8580 |
# int argc; |
8581 |
# char *argv[]; |
8582 |
# { |
8583 |
# int dll; |
8584 |
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
8585 |
# unsigned long export_rva, export_size, nsections, secptr, expptr; |
8586 |
# unsigned long name_rvas, nexp; |
8587 |
# unsigned char *expdata, *erva; |
8588 |
# char *filename, *dll_name; |
8589 |
# |
8590 |
# filename = argv[1]; |
8591 |
# |
8592 |
# dll = open(filename, O_RDONLY|O_BINARY); |
8593 |
# if (dll < 1) |
8594 |
# return 1; |
8595 |
# |
8596 |
# dll_name = filename; |
8597 |
# |
8598 |
# for (i=0; filename[i]; i++) |
8599 |
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
8600 |
# dll_name = filename + i +1; |
8601 |
# |
8602 |
# pe_header_offset = pe_get32 (dll, 0x3c); |
8603 |
# opthdr_ofs = pe_header_offset + 4 + 20; |
8604 |
# num_entries = pe_get32 (dll, opthdr_ofs + 92); |
8605 |
# |
8606 |
# if (num_entries < 1) /* no exports */ |
8607 |
# return 1; |
8608 |
# |
8609 |
# export_rva = pe_get32 (dll, opthdr_ofs + 96); |
8610 |
# export_size = pe_get32 (dll, opthdr_ofs + 100); |
8611 |
# nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
8612 |
# secptr = (pe_header_offset + 4 + 20 + |
8613 |
# pe_get16 (dll, pe_header_offset + 4 + 16)); |
8614 |
# |
8615 |
# expptr = 0; |
8616 |
# for (i = 0; i < nsections; i++) |
8617 |
# { |
8618 |
# char sname[8]; |
8619 |
# unsigned long secptr1 = secptr + 40 * i; |
8620 |
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
8621 |
# unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
8622 |
# unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
8623 |
# lseek(dll, secptr1, SEEK_SET); |
8624 |
# read(dll, sname, 8); |
8625 |
# if (vaddr <= export_rva && vaddr+vsize > export_rva) |
8626 |
# { |
8627 |
# expptr = fptr + (export_rva - vaddr); |
8628 |
# if (export_rva + export_size > vaddr + vsize) |
8629 |
# export_size = vsize - (export_rva - vaddr); |
8630 |
# break; |
8631 |
# } |
8632 |
# } |
8633 |
# |
8634 |
# expdata = (unsigned char*)malloc(export_size); |
8635 |
# lseek (dll, expptr, SEEK_SET); |
8636 |
# read (dll, expdata, export_size); |
8637 |
# erva = expdata - export_rva; |
8638 |
# |
8639 |
# nexp = pe_as32 (expdata+24); |
8640 |
# name_rvas = pe_as32 (expdata+32); |
8641 |
# |
8642 |
# printf ("EXPORTS\n"); |
8643 |
# for (i = 0; i<nexp; i++) |
8644 |
# { |
8645 |
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
8646 |
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
8647 |
# } |
8648 |
# |
8649 |
# return 0; |
8650 |
# } |
8651 |
# /* impgen.c ends here */ |
8652 |
|
8653 |
EOF |
8654 |
;; |
8655 |
esac |
8656 |
|
8657 |
# We use sed instead of cat because bash on DJGPP gets confused if |
8658 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
8659 |
# text mode, it properly converts lines to CR/LF. This bash problem |
8660 |
# is reportedly fixed, but why not run on old versions too? |
8661 |
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
8662 |
|
8663 |
mv -f "${ofile}T" "$ofile" || \ |
8664 |
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
8665 |
chmod +x "$ofile" |
8666 |
fi |
8667 |
|
8668 |
|
8669 |
|
8670 |
|
8671 |
|
8672 |
# This can be used to rebuild libtool when needed |
8673 |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
8674 |
|
8675 |
# Always use our own libtool. |
8676 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
8677 |
|
8678 |
# Prevent multiple expansion |
8679 |
|
8680 |
|
8681 |
|
8682 |
# Find a good install program. We prefer a C program (faster), |
8683 |
# so one script is as good as another. But avoid the broken or |
8684 |
# incompatible versions: |
8685 |
# SysV /etc/install, /usr/sbin/install |
8686 |
# SunOS /usr/etc/install |
8687 |
# IRIX /sbin/install |
8688 |
# AIX /bin/install |
8689 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
8690 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
8691 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
8692 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
8693 |
# OS/2's system install, which has a completely different semantic |
8694 |
# ./install, which can be erroneously created by make from ./install.sh. |
8695 |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
8696 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
8697 |
if test -z "$INSTALL"; then |
8698 |
if test "${ac_cv_path_install+set}" = set; then |
8699 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8700 |
else |
8701 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8702 |
for as_dir in $PATH |
8703 |
do |
8704 |
IFS=$as_save_IFS |
8705 |
test -z "$as_dir" && as_dir=. |
8706 |
# Account for people who put trailing slashes in PATH elements. |
8707 |
case $as_dir/ in |
8708 |
./ | .// | /cC/* | \ |
8709 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
8710 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
8711 |
/usr/ucb/* ) ;; |
8712 |
*) |
8713 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
8714 |
# Don't use installbsd from OSF since it installs stuff as root |
8715 |
# by default. |
8716 |
for ac_prog in ginstall scoinst install; do |
8717 |
for ac_exec_ext in '' $ac_executable_extensions; do |
8718 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
8719 |
if test $ac_prog = install && |
8720 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
8721 |
# AIX install. It has an incompatible calling convention. |
8722 |
: |
8723 |
elif test $ac_prog = install && |
8724 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
8725 |
# program-specific install script used by HP pwplus--don't use. |
8726 |
: |
8727 |
else |
8728 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
8729 |
break 3 |
8730 |
fi |
8731 |
fi |
8732 |
done |
8733 |
done |
8734 |
;; |
8735 |
esac |
8736 |
done |
8737 |
|
8738 |
|
8739 |
fi |
8740 |
if test "${ac_cv_path_install+set}" = set; then |
8741 |
INSTALL=$ac_cv_path_install |
8742 |
else |
8743 |
# As a last resort, use the slow shell script. We don't cache a |
8744 |
# path for INSTALL within a source directory, because that will |
8745 |
# break other packages using the cache if that directory is |
8746 |
# removed, or if the path is relative. |
8747 |
INSTALL=$ac_install_sh |
8748 |
fi |
8749 |
fi |
8750 |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
8751 |
echo "${ECHO_T}$INSTALL" >&6 |
8752 |
|
8753 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
8754 |
# It thinks the first close brace ends the variable substitution. |
8755 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
8756 |
|
8757 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
8758 |
|
8759 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
8760 |
|
8761 |
|
8762 |
if test -n "$ac_tool_prefix"; then |
8763 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
8764 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
8765 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8766 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8767 |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
8768 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8769 |
else |
8770 |
if test -n "$RANLIB"; then |
8771 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
8772 |
else |
8773 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8774 |
for as_dir in $PATH |
8775 |
do |
8776 |
IFS=$as_save_IFS |
8777 |
test -z "$as_dir" && as_dir=. |
8778 |
for ac_exec_ext in '' $ac_executable_extensions; do |
8779 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8780 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
8781 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8782 |
break 2 |
8783 |
fi |
8784 |
done |
8785 |
done |
8786 |
|
8787 |
fi |
8788 |
fi |
8789 |
RANLIB=$ac_cv_prog_RANLIB |
8790 |
if test -n "$RANLIB"; then |
8791 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
8792 |
echo "${ECHO_T}$RANLIB" >&6 |
8793 |
else |
8794 |
echo "$as_me:$LINENO: result: no" >&5 |
8795 |
echo "${ECHO_T}no" >&6 |
8796 |
fi |
8797 |
|
8798 |
fi |
8799 |
if test -z "$ac_cv_prog_RANLIB"; then |
8800 |
ac_ct_RANLIB=$RANLIB |
8801 |
# Extract the first word of "ranlib", so it can be a program name with args. |
8802 |
set dummy ranlib; ac_word=$2 |
8803 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8804 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8805 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
8806 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8807 |
else |
8808 |
if test -n "$ac_ct_RANLIB"; then |
8809 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
8810 |
else |
8811 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8812 |
for as_dir in $PATH |
8813 |
do |
8814 |
IFS=$as_save_IFS |
8815 |
test -z "$as_dir" && as_dir=. |
8816 |
for ac_exec_ext in '' $ac_executable_extensions; do |
8817 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8818 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
8819 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8820 |
break 2 |
8821 |
fi |
8822 |
done |
8823 |
done |
8824 |
|
8825 |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
8826 |
fi |
8827 |
fi |
8828 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
8829 |
if test -n "$ac_ct_RANLIB"; then |
8830 |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
8831 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
8832 |
else |
8833 |
echo "$as_me:$LINENO: result: no" >&5 |
8834 |
echo "${ECHO_T}no" >&6 |
8835 |
fi |
8836 |
|
8837 |
RANLIB=$ac_ct_RANLIB |
8838 |
else |
8839 |
RANLIB="$ac_cv_prog_RANLIB" |
8840 |
fi |
8841 |
|
8842 |
|
8843 |
|
8844 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8845 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
8846 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
8847 |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
8848 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8849 |
else |
8850 |
cat >conftest.make <<\_ACEOF |
8851 |
all: |
8852 |
@echo 'ac_maketemp="$(MAKE)"' |
8853 |
_ACEOF |
8854 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
8855 |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
8856 |
if test -n "$ac_maketemp"; then |
8857 |
eval ac_cv_prog_make_${ac_make}_set=yes |
8858 |
else |
8859 |
eval ac_cv_prog_make_${ac_make}_set=no |
8860 |
fi |
8861 |
rm -f conftest.make |
8862 |
fi |
8863 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
8864 |
echo "$as_me:$LINENO: result: yes" >&5 |
8865 |
echo "${ECHO_T}yes" >&6 |
8866 |
SET_MAKE= |
8867 |
else |
8868 |
echo "$as_me:$LINENO: result: no" >&5 |
8869 |
echo "${ECHO_T}no" >&6 |
8870 |
SET_MAKE="MAKE=${MAKE-make}" |
8871 |
fi |
8872 |
|
8873 |
# Extract the first word of "doxygen", so it can be a program name with args. |
8874 |
set dummy doxygen; ac_word=$2 |
8875 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8876 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8877 |
if test "${ac_cv_prog_HAS_DOXYFILE+set}" = set; then |
8878 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8879 |
else |
8880 |
if test -n "$HAS_DOXYFILE"; then |
8881 |
ac_cv_prog_HAS_DOXYFILE="$HAS_DOXYFILE" # Let the user override the test. |
8882 |
else |
8883 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8884 |
for as_dir in $PATH |
8885 |
do |
8886 |
IFS=$as_save_IFS |
8887 |
test -z "$as_dir" && as_dir=. |
8888 |
for ac_exec_ext in '' $ac_executable_extensions; do |
8889 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8890 |
ac_cv_prog_HAS_DOXYFILE="yes" |
8891 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8892 |
break 2 |
8893 |
fi |
8894 |
done |
8895 |
done |
8896 |
|
8897 |
fi |
8898 |
fi |
8899 |
HAS_DOXYFILE=$ac_cv_prog_HAS_DOXYFILE |
8900 |
if test -n "$HAS_DOXYFILE"; then |
8901 |
echo "$as_me:$LINENO: result: $HAS_DOXYFILE" >&5 |
8902 |
echo "${ECHO_T}$HAS_DOXYFILE" >&6 |
8903 |
else |
8904 |
echo "$as_me:$LINENO: result: no" >&5 |
8905 |
echo "${ECHO_T}no" >&6 |
8906 |
fi |
8907 |
|
8908 |
|
8909 |
missing_dir=`cd $ac_aux_dir && pwd` |
8910 |
echo "$as_me:$LINENO: checking for working aclocal" >&5 |
8911 |
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 |
8912 |
# Run test in a subshell; some versions of sh will print an error if |
8913 |
# an executable is not found, even if stderr is redirected. |
8914 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
8915 |
if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
8916 |
ACLOCAL=aclocal |
8917 |
echo "$as_me:$LINENO: result: found" >&5 |
8918 |
echo "${ECHO_T}found" >&6 |
8919 |
else |
8920 |
ACLOCAL="$missing_dir/missing aclocal" |
8921 |
echo "$as_me:$LINENO: result: missing" >&5 |
8922 |
echo "${ECHO_T}missing" >&6 |
8923 |
fi |
8924 |
|
8925 |
echo "$as_me:$LINENO: checking for working autoconf" >&5 |
8926 |
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
8927 |
# Run test in a subshell; some versions of sh will print an error if |
8928 |
# an executable is not found, even if stderr is redirected. |
8929 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
8930 |
if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
8931 |
AUTOCONF=autoconf |
8932 |
echo "$as_me:$LINENO: result: found" >&5 |
8933 |
echo "${ECHO_T}found" >&6 |
8934 |
else |
8935 |
AUTOCONF="$missing_dir/missing autoconf" |
8936 |
echo "$as_me:$LINENO: result: missing" >&5 |
8937 |
echo "${ECHO_T}missing" >&6 |
8938 |
fi |
8939 |
|
8940 |
echo "$as_me:$LINENO: checking for working automake" >&5 |
8941 |
echo $ECHO_N "checking for working automake... $ECHO_C" >&6 |
8942 |
# Run test in a subshell; some versions of sh will print an error if |
8943 |
# an executable is not found, even if stderr is redirected. |
8944 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
8945 |
if (automake --version) < /dev/null > /dev/null 2>&1; then |
8946 |
AUTOMAKE=automake |
8947 |
echo "$as_me:$LINENO: result: found" >&5 |
8948 |
echo "${ECHO_T}found" >&6 |
8949 |
else |
8950 |
AUTOMAKE="$missing_dir/missing automake" |
8951 |
echo "$as_me:$LINENO: result: missing" >&5 |
8952 |
echo "${ECHO_T}missing" >&6 |
8953 |
fi |
8954 |
|
8955 |
echo "$as_me:$LINENO: checking for working autoheader" >&5 |
8956 |
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
8957 |
# Run test in a subshell; some versions of sh will print an error if |
8958 |
# an executable is not found, even if stderr is redirected. |
8959 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
8960 |
if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
8961 |
AUTOHEADER=autoheader |
8962 |
echo "$as_me:$LINENO: result: found" >&5 |
8963 |
echo "${ECHO_T}found" >&6 |
8964 |
else |
8965 |
AUTOHEADER="$missing_dir/missing autoheader" |
8966 |
echo "$as_me:$LINENO: result: missing" >&5 |
8967 |
echo "${ECHO_T}missing" >&6 |
8968 |
fi |
8969 |
|
8970 |
echo "$as_me:$LINENO: checking for working makeinfo" >&5 |
8971 |
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
8972 |
# Run test in a subshell; some versions of sh will print an error if |
8973 |
# an executable is not found, even if stderr is redirected. |
8974 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
8975 |
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
8976 |
MAKEINFO=makeinfo |
8977 |
echo "$as_me:$LINENO: result: found" >&5 |
8978 |
echo "${ECHO_T}found" >&6 |
8979 |
else |
8980 |
MAKEINFO="$missing_dir/missing makeinfo" |
8981 |
echo "$as_me:$LINENO: result: missing" >&5 |
8982 |
echo "${ECHO_T}missing" >&6 |
8983 |
fi |
8984 |
|
8985 |
|
8986 |
|
8987 |
# Check whether --with-root or --without-root was given. |
8988 |
if test "${with_root+set}" = set; then |
8989 |
withval="$with_root" |
8990 |
ROOTSYS=$with_root |
8991 |
fi; |
8992 |
|
8993 |
ROOT_LIBRARY="${ROOTSYS}/lib" |
8994 |
|
8995 |
ROOT_LDFLAGS="${ROOT_LIBRARY}/libHist.so ${ROOT_LIBRARY}/libMatrix.so ${ROOT_LIBRARY}/libTree.so ${ROOT_LIBRARY}/libCore.so ${ROOT_LIBRARY}/libCint.so -ldl" |
8996 |
|
8997 |
ROOT_INCLUDES="-I${ROOTSYS}/include" |
8998 |
|
8999 |
|
9000 |
ROOTCINT=${ROOTSYS}/bin/rootcint |
9001 |
|
9002 |
|
9003 |
|
9004 |
# Check whether --with-log4cppp or --without-log4cppp was given. |
9005 |
if test "${with_log4cppp+set}" = set; then |
9006 |
withval="$with_log4cppp" |
9007 |
LOG4CPP=$with_log4cpp |
9008 |
fi; |
9009 |
|
9010 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
9011 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
9012 |
if test "${ac_cv_header_stdc+set}" = set; then |
9013 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9014 |
else |
9015 |
cat >conftest.$ac_ext <<_ACEOF |
9016 |
/* confdefs.h. */ |
9017 |
_ACEOF |
9018 |
cat confdefs.h >>conftest.$ac_ext |
9019 |
cat >>conftest.$ac_ext <<_ACEOF |
9020 |
/* end confdefs.h. */ |
9021 |
#include <stdlib.h> |
9022 |
#include <stdarg.h> |
9023 |
#include <string.h> |
9024 |
#include <float.h> |
9025 |
|
9026 |
int |
9027 |
main () |
9028 |
{ |
9029 |
|
9030 |
; |
9031 |
return 0; |
9032 |
} |
9033 |
_ACEOF |
9034 |
rm -f conftest.$ac_objext |
9035 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9036 |
(eval $ac_compile) 2>conftest.er1 |
9037 |
ac_status=$? |
9038 |
grep -v '^ *+' conftest.er1 >conftest.err |
9039 |
rm -f conftest.er1 |
9040 |
cat conftest.err >&5 |
9041 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9042 |
(exit $ac_status); } && |
9043 |
{ ac_try='test -z "$ac_c_werror_flag" |
9044 |
|| test ! -s conftest.err' |
9045 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9046 |
(eval $ac_try) 2>&5 |
9047 |
ac_status=$? |
9048 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9049 |
(exit $ac_status); }; } && |
9050 |
{ ac_try='test -s conftest.$ac_objext' |
9051 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9052 |
(eval $ac_try) 2>&5 |
9053 |
ac_status=$? |
9054 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9055 |
(exit $ac_status); }; }; then |
9056 |
ac_cv_header_stdc=yes |
9057 |
else |
9058 |
echo "$as_me: failed program was:" >&5 |
9059 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9060 |
|
9061 |
ac_cv_header_stdc=no |
9062 |
fi |
9063 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9064 |
|
9065 |
if test $ac_cv_header_stdc = yes; then |
9066 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
9067 |
cat >conftest.$ac_ext <<_ACEOF |
9068 |
/* confdefs.h. */ |
9069 |
_ACEOF |
9070 |
cat confdefs.h >>conftest.$ac_ext |
9071 |
cat >>conftest.$ac_ext <<_ACEOF |
9072 |
/* end confdefs.h. */ |
9073 |
#include <string.h> |
9074 |
|
9075 |
_ACEOF |
9076 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9077 |
$EGREP "memchr" >/dev/null 2>&1; then |
9078 |
: |
9079 |
else |
9080 |
ac_cv_header_stdc=no |
9081 |
fi |
9082 |
rm -f conftest* |
9083 |
|
9084 |
fi |
9085 |
|
9086 |
if test $ac_cv_header_stdc = yes; then |
9087 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
9088 |
cat >conftest.$ac_ext <<_ACEOF |
9089 |
/* confdefs.h. */ |
9090 |
_ACEOF |
9091 |
cat confdefs.h >>conftest.$ac_ext |
9092 |
cat >>conftest.$ac_ext <<_ACEOF |
9093 |
/* end confdefs.h. */ |
9094 |
#include <stdlib.h> |
9095 |
|
9096 |
_ACEOF |
9097 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9098 |
$EGREP "free" >/dev/null 2>&1; then |
9099 |
: |
9100 |
else |
9101 |
ac_cv_header_stdc=no |
9102 |
fi |
9103 |
rm -f conftest* |
9104 |
|
9105 |
fi |
9106 |
|
9107 |
if test $ac_cv_header_stdc = yes; then |
9108 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
9109 |
if test "$cross_compiling" = yes; then |
9110 |
: |
9111 |
else |
9112 |
cat >conftest.$ac_ext <<_ACEOF |
9113 |
/* confdefs.h. */ |
9114 |
_ACEOF |
9115 |
cat confdefs.h >>conftest.$ac_ext |
9116 |
cat >>conftest.$ac_ext <<_ACEOF |
9117 |
/* end confdefs.h. */ |
9118 |
#include <ctype.h> |
9119 |
#if ((' ' & 0x0FF) == 0x020) |
9120 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
9121 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
9122 |
#else |
9123 |
# define ISLOWER(c) \ |
9124 |
(('a' <= (c) && (c) <= 'i') \ |
9125 |
|| ('j' <= (c) && (c) <= 'r') \ |
9126 |
|| ('s' <= (c) && (c) <= 'z')) |
9127 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
9128 |
#endif |
9129 |
|
9130 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
9131 |
int |
9132 |
main () |
9133 |
{ |
9134 |
int i; |
9135 |
for (i = 0; i < 256; i++) |
9136 |
if (XOR (islower (i), ISLOWER (i)) |
9137 |
|| toupper (i) != TOUPPER (i)) |
9138 |
exit(2); |
9139 |
exit (0); |
9140 |
} |
9141 |
_ACEOF |
9142 |
rm -f conftest$ac_exeext |
9143 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9144 |
(eval $ac_link) 2>&5 |
9145 |
ac_status=$? |
9146 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9147 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9148 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9149 |
(eval $ac_try) 2>&5 |
9150 |
ac_status=$? |
9151 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9152 |
(exit $ac_status); }; }; then |
9153 |
: |
9154 |
else |
9155 |
echo "$as_me: program exited with status $ac_status" >&5 |
9156 |
echo "$as_me: failed program was:" >&5 |
9157 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9158 |
|
9159 |
( exit $ac_status ) |
9160 |
ac_cv_header_stdc=no |
9161 |
fi |
9162 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9163 |
fi |
9164 |
fi |
9165 |
fi |
9166 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
9167 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
9168 |
if test $ac_cv_header_stdc = yes; then |
9169 |
|
9170 |
cat >>confdefs.h <<\_ACEOF |
9171 |
#define STDC_HEADERS 1 |
9172 |
_ACEOF |
9173 |
|
9174 |
fi |
9175 |
|
9176 |
|
9177 |
|
9178 |
ac_config_files="$ac_config_files Makefile Doxyfile event/Makefile event/mcmd/Makefile event/tmtc/Makefile event/log/Makefile event/arrDump/Makefile event/tabDump/Makefile event/varDump/Makefile event/physics/Makefile event/physics/tracker/Makefile event/physics/anticounter/Makefile event/physics/calorimeter/Makefile techmodel/Makefile techmodel/forroutines/tracker/Makefile techmodel/forroutines/tracker/readraw/Makefile techmodel/forroutines/anticounter/Makefile techmodel/forroutines/calorimeter/Makefile techmodel/forroutines/Makefile techmodel/physics/Makefile" |
9179 |
cat >confcache <<\_ACEOF |
9180 |
# This file is a shell script that caches the results of configure |
9181 |
# tests run on this system so they can be shared between configure |
9182 |
# scripts and configure runs, see configure's option --config-cache. |
9183 |
# It is not useful on other systems. If it contains results you don't |
9184 |
# want to keep, you may remove or edit it. |
9185 |
# |
9186 |
# config.status only pays attention to the cache file if you give it |
9187 |
# the --recheck option to rerun configure. |
9188 |
# |
9189 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
9190 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
9191 |
# following values. |
9192 |
|
9193 |
_ACEOF |
9194 |
|
9195 |
# The following way of writing the cache mishandles newlines in values, |
9196 |
# but we know of no workaround that is simple, portable, and efficient. |
9197 |
# So, don't put newlines in cache variables' values. |
9198 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
9199 |
# and sets the high bit in the cache file unless we assign to the vars. |
9200 |
{ |
9201 |
(set) 2>&1 | |
9202 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
9203 |
*ac_space=\ *) |
9204 |
# `set' does not quote correctly, so add quotes (double-quote |
9205 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
9206 |
sed -n \ |
9207 |
"s/'/'\\\\''/g; |
9208 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
9209 |
;; |
9210 |
*) |
9211 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
9212 |
sed -n \ |
9213 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
9214 |
;; |
9215 |
esac; |
9216 |
} | |
9217 |
sed ' |
9218 |
t clear |
9219 |
: clear |
9220 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
9221 |
t end |
9222 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
9223 |
: end' >>confcache |
9224 |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
9225 |
if test -w $cache_file; then |
9226 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9227 |
cat confcache >$cache_file |
9228 |
else |
9229 |
echo "not updating unwritable cache $cache_file" |
9230 |
fi |
9231 |
fi |
9232 |
rm -f confcache |
9233 |
|
9234 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
9235 |
# Let make expand exec_prefix. |
9236 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
9237 |
|
9238 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
9239 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
9240 |
# trailing colons and then remove the whole line if VPATH becomes empty |
9241 |
# (actually we leave an empty line to preserve line numbers). |
9242 |
if test "x$srcdir" = x.; then |
9243 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
9244 |
s/:*\$(srcdir):*/:/; |
9245 |
s/:*\${srcdir}:*/:/; |
9246 |
s/:*@srcdir@:*/:/; |
9247 |
s/^\([^=]*=[ ]*\):*/\1/; |
9248 |
s/:*$//; |
9249 |
s/^[^=]*=[ ]*$//; |
9250 |
}' |
9251 |
fi |
9252 |
|
9253 |
DEFS=-DHAVE_CONFIG_H |
9254 |
|
9255 |
ac_libobjs= |
9256 |
ac_ltlibobjs= |
9257 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
9258 |
# 1. Remove the extension, and $U if already installed. |
9259 |
ac_i=`echo "$ac_i" | |
9260 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
9261 |
# 2. Add them. |
9262 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
9263 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
9264 |
done |
9265 |
LIBOBJS=$ac_libobjs |
9266 |
|
9267 |
LTLIBOBJS=$ac_ltlibobjs |
9268 |
|
9269 |
|
9270 |
|
9271 |
: ${CONFIG_STATUS=./config.status} |
9272 |
ac_clean_files_save=$ac_clean_files |
9273 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
9274 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
9275 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
9276 |
cat >$CONFIG_STATUS <<_ACEOF |
9277 |
#! $SHELL |
9278 |
# Generated by $as_me. |
9279 |
# Run this file to recreate the current configuration. |
9280 |
# Compiler output produced by configure, useful for debugging |
9281 |
# configure, is in config.log if it exists. |
9282 |
|
9283 |
debug=false |
9284 |
ac_cs_recheck=false |
9285 |
ac_cs_silent=false |
9286 |
SHELL=\${CONFIG_SHELL-$SHELL} |
9287 |
_ACEOF |
9288 |
|
9289 |
cat >>$CONFIG_STATUS <<\_ACEOF |
9290 |
## --------------------- ## |
9291 |
## M4sh Initialization. ## |
9292 |
## --------------------- ## |
9293 |
|
9294 |
# Be Bourne compatible |
9295 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
9296 |
emulate sh |
9297 |
NULLCMD=: |
9298 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
9299 |
# is contrary to our usage. Disable this feature. |
9300 |
alias -g '${1+"$@"}'='"$@"' |
9301 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
9302 |
set -o posix |
9303 |
fi |
9304 |
DUALCASE=1; export DUALCASE # for MKS sh |
9305 |
|
9306 |
# Support unset when possible. |
9307 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
9308 |
as_unset=unset |
9309 |
else |
9310 |
as_unset=false |
9311 |
fi |
9312 |
|
9313 |
|
9314 |
# Work around bugs in pre-3.0 UWIN ksh. |
9315 |
$as_unset ENV MAIL MAILPATH |
9316 |
PS1='$ ' |
9317 |
PS2='> ' |
9318 |
PS4='+ ' |
9319 |
|
9320 |
# NLS nuisances. |
9321 |
for as_var in \ |
9322 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
9323 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
9324 |
LC_TELEPHONE LC_TIME |
9325 |
do |
9326 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
9327 |
eval $as_var=C; export $as_var |
9328 |
else |
9329 |
$as_unset $as_var |
9330 |
fi |
9331 |
done |
9332 |
|
9333 |
# Required to use basename. |
9334 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
9335 |
as_expr=expr |
9336 |
else |
9337 |
as_expr=false |
9338 |
fi |
9339 |
|
9340 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
9341 |
as_basename=basename |
9342 |
else |
9343 |
as_basename=false |
9344 |
fi |
9345 |
|
9346 |
|
9347 |
# Name of the executable. |
9348 |
as_me=`$as_basename "$0" || |
9349 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
9350 |
X"$0" : 'X\(//\)$' \| \ |
9351 |
X"$0" : 'X\(/\)$' \| \ |
9352 |
. : '\(.\)' 2>/dev/null || |
9353 |
echo X/"$0" | |
9354 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
9355 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
9356 |
/^X\/\(\/\).*/{ s//\1/; q; } |
9357 |
s/.*/./; q'` |
9358 |
|
9359 |
|
9360 |
# PATH needs CR, and LINENO needs CR and PATH. |
9361 |
# Avoid depending upon Character Ranges. |
9362 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
9363 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
9364 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
9365 |
as_cr_digits='0123456789' |
9366 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
9367 |
|
9368 |
# The user is always right. |
9369 |
if test "${PATH_SEPARATOR+set}" != set; then |
9370 |
echo "#! /bin/sh" >conf$$.sh |
9371 |
echo "exit 0" >>conf$$.sh |
9372 |
chmod +x conf$$.sh |
9373 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
9374 |
PATH_SEPARATOR=';' |
9375 |
else |
9376 |
PATH_SEPARATOR=: |
9377 |
fi |
9378 |
rm -f conf$$.sh |
9379 |
fi |
9380 |
|
9381 |
|
9382 |
as_lineno_1=$LINENO |
9383 |
as_lineno_2=$LINENO |
9384 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
9385 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
9386 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
9387 |
# Find who we are. Look in the path if we contain no path at all |
9388 |
# relative or not. |
9389 |
case $0 in |
9390 |
*[\\/]* ) as_myself=$0 ;; |
9391 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9392 |
for as_dir in $PATH |
9393 |
do |
9394 |
IFS=$as_save_IFS |
9395 |
test -z "$as_dir" && as_dir=. |
9396 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
9397 |
done |
9398 |
|
9399 |
;; |
9400 |
esac |
9401 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
9402 |
# in which case we are not to be found in the path. |
9403 |
if test "x$as_myself" = x; then |
9404 |
as_myself=$0 |
9405 |
fi |
9406 |
if test ! -f "$as_myself"; then |
9407 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
9408 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
9409 |
{ (exit 1); exit 1; }; } |
9410 |
fi |
9411 |
case $CONFIG_SHELL in |
9412 |
'') |
9413 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9414 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
9415 |
do |
9416 |
IFS=$as_save_IFS |
9417 |
test -z "$as_dir" && as_dir=. |
9418 |
for as_base in sh bash ksh sh5; do |
9419 |
case $as_dir in |
9420 |
/*) |
9421 |
if ("$as_dir/$as_base" -c ' |
9422 |
as_lineno_1=$LINENO |
9423 |
as_lineno_2=$LINENO |
9424 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
9425 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
9426 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
9427 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
9428 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
9429 |
CONFIG_SHELL=$as_dir/$as_base |
9430 |
export CONFIG_SHELL |
9431 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
9432 |
fi;; |
9433 |
esac |
9434 |
done |
9435 |
done |
9436 |
;; |
9437 |
esac |
9438 |
|
9439 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
9440 |
# uniformly replaced by the line number. The first 'sed' inserts a |
9441 |
# line-number line before each line; the second 'sed' does the real |
9442 |
# work. The second script uses 'N' to pair each line-number line |
9443 |
# with the numbered line, and appends trailing '-' during |
9444 |
# substitution so that $LINENO is not a special case at line end. |
9445 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
9446 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
9447 |
sed '=' <$as_myself | |
9448 |
sed ' |
9449 |
N |
9450 |
s,$,-, |
9451 |
: loop |
9452 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
9453 |
t loop |
9454 |
s,-$,, |
9455 |
s,^['$as_cr_digits']*\n,, |
9456 |
' >$as_me.lineno && |
9457 |
chmod +x $as_me.lineno || |
9458 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
9459 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
9460 |
{ (exit 1); exit 1; }; } |
9461 |
|
9462 |
# Don't try to exec as it changes $[0], causing all sort of problems |
9463 |
# (the dirname of $[0] is not the place where we might find the |
9464 |
# original and so on. Autoconf is especially sensible to this). |
9465 |
. ./$as_me.lineno |
9466 |
# Exit status is that of the last command. |
9467 |
exit |
9468 |
} |
9469 |
|
9470 |
|
9471 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
9472 |
*c*,-n*) ECHO_N= ECHO_C=' |
9473 |
' ECHO_T=' ' ;; |
9474 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
9475 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
9476 |
esac |
9477 |
|
9478 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
9479 |
as_expr=expr |
9480 |
else |
9481 |
as_expr=false |
9482 |
fi |
9483 |
|
9484 |
rm -f conf$$ conf$$.exe conf$$.file |
9485 |
echo >conf$$.file |
9486 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
9487 |
# We could just check for DJGPP; but this test a) works b) is more generic |
9488 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
9489 |
if test -f conf$$.exe; then |
9490 |
# Don't use ln at all; we don't have any links |
9491 |
as_ln_s='cp -p' |
9492 |
else |
9493 |
as_ln_s='ln -s' |
9494 |
fi |
9495 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
9496 |
as_ln_s=ln |
9497 |
else |
9498 |
as_ln_s='cp -p' |
9499 |
fi |
9500 |
rm -f conf$$ conf$$.exe conf$$.file |
9501 |
|
9502 |
if mkdir -p . 2>/dev/null; then |
9503 |
as_mkdir_p=: |
9504 |
else |
9505 |
test -d ./-p && rmdir ./-p |
9506 |
as_mkdir_p=false |
9507 |
fi |
9508 |
|
9509 |
as_executable_p="test -f" |
9510 |
|
9511 |
# Sed expression to map a string onto a valid CPP name. |
9512 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
9513 |
|
9514 |
# Sed expression to map a string onto a valid variable name. |
9515 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
9516 |
|
9517 |
|
9518 |
# IFS |
9519 |
# We need space, tab and new line, in precisely that order. |
9520 |
as_nl=' |
9521 |
' |
9522 |
IFS=" $as_nl" |
9523 |
|
9524 |
# CDPATH. |
9525 |
$as_unset CDPATH |
9526 |
|
9527 |
exec 6>&1 |
9528 |
|
9529 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
9530 |
# report actual input values of CONFIG_FILES etc. instead of their |
9531 |
# values after options handling. Logging --version etc. is OK. |
9532 |
exec 5>>config.log |
9533 |
{ |
9534 |
echo |
9535 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
9536 |
## Running $as_me. ## |
9537 |
_ASBOX |
9538 |
} >&5 |
9539 |
cat >&5 <<_CSEOF |
9540 |
|
9541 |
This file was extended by $as_me, which was |
9542 |
generated by GNU Autoconf 2.59. Invocation command line was |
9543 |
|
9544 |
CONFIG_FILES = $CONFIG_FILES |
9545 |
CONFIG_HEADERS = $CONFIG_HEADERS |
9546 |
CONFIG_LINKS = $CONFIG_LINKS |
9547 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
9548 |
$ $0 $@ |
9549 |
|
9550 |
_CSEOF |
9551 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
9552 |
echo >&5 |
9553 |
_ACEOF |
9554 |
|
9555 |
# Files that config.status was made for. |
9556 |
if test -n "$ac_config_files"; then |
9557 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
9558 |
fi |
9559 |
|
9560 |
if test -n "$ac_config_headers"; then |
9561 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
9562 |
fi |
9563 |
|
9564 |
if test -n "$ac_config_links"; then |
9565 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
9566 |
fi |
9567 |
|
9568 |
if test -n "$ac_config_commands"; then |
9569 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
9570 |
fi |
9571 |
|
9572 |
cat >>$CONFIG_STATUS <<\_ACEOF |
9573 |
|
9574 |
ac_cs_usage="\ |
9575 |
\`$as_me' instantiates files from templates according to the |
9576 |
current configuration. |
9577 |
|
9578 |
Usage: $0 [OPTIONS] [FILE]... |
9579 |
|
9580 |
-h, --help print this help, then exit |
9581 |
-V, --version print version number, then exit |
9582 |
-q, --quiet do not print progress messages |
9583 |
-d, --debug don't remove temporary files |
9584 |
--recheck update $as_me by reconfiguring in the same conditions |
9585 |
--file=FILE[:TEMPLATE] |
9586 |
instantiate the configuration file FILE |
9587 |
--header=FILE[:TEMPLATE] |
9588 |
instantiate the configuration header FILE |
9589 |
|
9590 |
Configuration files: |
9591 |
$config_files |
9592 |
|
9593 |
Configuration headers: |
9594 |
$config_headers |
9595 |
|
9596 |
Configuration commands: |
9597 |
$config_commands |
9598 |
|
9599 |
Report bugs to <bug-autoconf@gnu.org>." |
9600 |
_ACEOF |
9601 |
|
9602 |
cat >>$CONFIG_STATUS <<_ACEOF |
9603 |
ac_cs_version="\\ |
9604 |
config.status |
9605 |
configured by $0, generated by GNU Autoconf 2.59, |
9606 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
9607 |
|
9608 |
Copyright (C) 2003 Free Software Foundation, Inc. |
9609 |
This config.status script is free software; the Free Software Foundation |
9610 |
gives unlimited permission to copy, distribute and modify it." |
9611 |
srcdir=$srcdir |
9612 |
INSTALL="$INSTALL" |
9613 |
_ACEOF |
9614 |
|
9615 |
cat >>$CONFIG_STATUS <<\_ACEOF |
9616 |
# If no file are specified by the user, then we need to provide default |
9617 |
# value. By we need to know if files were specified by the user. |
9618 |
ac_need_defaults=: |
9619 |
while test $# != 0 |
9620 |
do |
9621 |
case $1 in |
9622 |
--*=*) |
9623 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
9624 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
9625 |
ac_shift=: |
9626 |
;; |
9627 |
-*) |
9628 |
ac_option=$1 |
9629 |
ac_optarg=$2 |
9630 |
ac_shift=shift |
9631 |
;; |
9632 |
*) # This is not an option, so the user has probably given explicit |
9633 |
# arguments. |
9634 |
ac_option=$1 |
9635 |
ac_need_defaults=false;; |
9636 |
esac |
9637 |
|
9638 |
case $ac_option in |
9639 |
# Handling of the options. |
9640 |
_ACEOF |
9641 |
cat >>$CONFIG_STATUS <<\_ACEOF |
9642 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
9643 |
ac_cs_recheck=: ;; |
9644 |
--version | --vers* | -V ) |
9645 |
echo "$ac_cs_version"; exit 0 ;; |
9646 |
--he | --h) |
9647 |
# Conflict between --help and --header |
9648 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
9649 |
Try \`$0 --help' for more information." >&5 |
9650 |
echo "$as_me: error: ambiguous option: $1 |
9651 |
Try \`$0 --help' for more information." >&2;} |
9652 |
{ (exit 1); exit 1; }; };; |
9653 |
--help | --hel | -h ) |
9654 |
echo "$ac_cs_usage"; exit 0 ;; |
9655 |
--debug | --d* | -d ) |
9656 |
debug=: ;; |
9657 |
--file | --fil | --fi | --f ) |
9658 |
$ac_shift |
9659 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
9660 |
ac_need_defaults=false;; |
9661 |
--header | --heade | --head | --hea ) |
9662 |
$ac_shift |
9663 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
9664 |
ac_need_defaults=false;; |
9665 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
9666 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
9667 |
ac_cs_silent=: ;; |
9668 |
|
9669 |
# This is an error. |
9670 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
9671 |
Try \`$0 --help' for more information." >&5 |
9672 |
echo "$as_me: error: unrecognized option: $1 |
9673 |
Try \`$0 --help' for more information." >&2;} |
9674 |
{ (exit 1); exit 1; }; } ;; |
9675 |
|
9676 |
*) ac_config_targets="$ac_config_targets $1" ;; |
9677 |
|
9678 |
esac |
9679 |
shift |
9680 |
done |
9681 |
|
9682 |
ac_configure_extra_args= |
9683 |
|
9684 |
if $ac_cs_silent; then |
9685 |
exec 6>/dev/null |
9686 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
9687 |
fi |
9688 |
|
9689 |
_ACEOF |
9690 |
cat >>$CONFIG_STATUS <<_ACEOF |
9691 |
if \$ac_cs_recheck; then |
9692 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
9693 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9694 |
fi |
9695 |
|
9696 |
_ACEOF |
9697 |
|
9698 |
cat >>$CONFIG_STATUS <<_ACEOF |
9699 |
# |
9700 |
# INIT-COMMANDS section. |
9701 |
# |
9702 |
|
9703 |
|
9704 |
|
9705 |
_ACEOF |
9706 |
|
9707 |
|
9708 |
|
9709 |
cat >>$CONFIG_STATUS <<\_ACEOF |
9710 |
for ac_config_target in $ac_config_targets |
9711 |
do |
9712 |
case "$ac_config_target" in |
9713 |
# Handling of arguments. |
9714 |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9715 |
"Doxyfile" ) CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; |
9716 |
"event/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/Makefile" ;; |
9717 |
"event/mcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/mcmd/Makefile" ;; |
9718 |
"event/tmtc/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tmtc/Makefile" ;; |
9719 |
"event/log/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/log/Makefile" ;; |
9720 |
"event/arrDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/arrDump/Makefile" ;; |
9721 |
"event/tabDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tabDump/Makefile" ;; |
9722 |
"event/varDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/varDump/Makefile" ;; |
9723 |
"event/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/Makefile" ;; |
9724 |
"event/physics/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/tracker/Makefile" ;; |
9725 |
"event/physics/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/anticounter/Makefile" ;; |
9726 |
"event/physics/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/calorimeter/Makefile" ;; |
9727 |
"techmodel/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/Makefile" ;; |
9728 |
"techmodel/forroutines/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/Makefile" ;; |
9729 |
"techmodel/forroutines/tracker/readraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/readraw/Makefile" ;; |
9730 |
"techmodel/forroutines/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/anticounter/Makefile" ;; |
9731 |
"techmodel/forroutines/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/calorimeter/Makefile" ;; |
9732 |
"techmodel/forroutines/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/Makefile" ;; |
9733 |
"techmodel/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/physics/Makefile" ;; |
9734 |
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
9735 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
9736 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
9737 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
9738 |
{ (exit 1); exit 1; }; };; |
9739 |
esac |
9740 |
done |
9741 |
|
9742 |
# If the user did not use the arguments to specify the items to instantiate, |
9743 |
# then the envvar interface is used. Set only those that are not. |
9744 |
# We use the long form for the default assignment because of an extremely |
9745 |
# bizarre bug on SunOS 4.1.3. |
9746 |
if $ac_need_defaults; then |
9747 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
9748 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
9749 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
9750 |
fi |
9751 |
|
9752 |
# Have a temporary directory for convenience. Make it in the build tree |
9753 |
# simply because there is no reason to put it here, and in addition, |
9754 |
# creating and moving files from /tmp can sometimes cause problems. |
9755 |
# Create a temporary directory, and hook for its removal unless debugging. |
9756 |
$debug || |
9757 |
{ |
9758 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
9759 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
9760 |
} |
9761 |
|
9762 |
# Create a (secure) tmp directory for tmp files. |
9763 |
|
9764 |
{ |
9765 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
9766 |
test -n "$tmp" && test -d "$tmp" |
9767 |
} || |
9768 |
{ |
9769 |
tmp=./confstat$$-$RANDOM |
9770 |
(umask 077 && mkdir $tmp) |
9771 |
} || |
9772 |
{ |
9773 |
echo "$me: cannot create a temporary directory in ." >&2 |
9774 |
{ (exit 1); exit 1; } |
9775 |
} |
9776 |
|
9777 |
_ACEOF |
9778 |
|
9779 |
cat >>$CONFIG_STATUS <<_ACEOF |
9780 |
|
9781 |
# |
9782 |
# CONFIG_FILES section. |
9783 |
# |
9784 |
|
9785 |
# No need to generate the scripts if there are no CONFIG_FILES. |
9786 |
# This happens for instance when ./config.status config.h |
9787 |
if test -n "\$CONFIG_FILES"; then |
9788 |
# Protect against being on the right side of a sed subst in config.status. |
9789 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
9790 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
9791 |
s,@SHELL@,$SHELL,;t t |
9792 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
9793 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
9794 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
9795 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
9796 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
9797 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
9798 |
s,@exec_prefix@,$exec_prefix,;t t |
9799 |
s,@prefix@,$prefix,;t t |
9800 |
s,@program_transform_name@,$program_transform_name,;t t |
9801 |
s,@bindir@,$bindir,;t t |
9802 |
s,@sbindir@,$sbindir,;t t |
9803 |
s,@libexecdir@,$libexecdir,;t t |
9804 |
s,@datadir@,$datadir,;t t |
9805 |
s,@sysconfdir@,$sysconfdir,;t t |
9806 |
s,@sharedstatedir@,$sharedstatedir,;t t |
9807 |
s,@localstatedir@,$localstatedir,;t t |
9808 |
s,@libdir@,$libdir,;t t |
9809 |
s,@includedir@,$includedir,;t t |
9810 |
s,@oldincludedir@,$oldincludedir,;t t |
9811 |
s,@infodir@,$infodir,;t t |
9812 |
s,@mandir@,$mandir,;t t |
9813 |
s,@build_alias@,$build_alias,;t t |
9814 |
s,@host_alias@,$host_alias,;t t |
9815 |
s,@target_alias@,$target_alias,;t t |
9816 |
s,@DEFS@,$DEFS,;t t |
9817 |
s,@ECHO_C@,$ECHO_C,;t t |
9818 |
s,@ECHO_N@,$ECHO_N,;t t |
9819 |
s,@ECHO_T@,$ECHO_T,;t t |
9820 |
s,@LIBS@,$LIBS,;t t |
9821 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
9822 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
9823 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
9824 |
s,@PACKAGE@,$PACKAGE,;t t |
9825 |
s,@VERSION@,$VERSION,;t t |
9826 |
s,@ACLOCAL@,$ACLOCAL,;t t |
9827 |
s,@AUTOCONF@,$AUTOCONF,;t t |
9828 |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
9829 |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
9830 |
s,@MAKEINFO@,$MAKEINFO,;t t |
9831 |
s,@SET_MAKE@,$SET_MAKE,;t t |
9832 |
s,@build@,$build,;t t |
9833 |
s,@build_cpu@,$build_cpu,;t t |
9834 |
s,@build_vendor@,$build_vendor,;t t |
9835 |
s,@build_os@,$build_os,;t t |
9836 |
s,@host@,$host,;t t |
9837 |
s,@host_cpu@,$host_cpu,;t t |
9838 |
s,@host_vendor@,$host_vendor,;t t |
9839 |
s,@host_os@,$host_os,;t t |
9840 |
s,@CC@,$CC,;t t |
9841 |
s,@CFLAGS@,$CFLAGS,;t t |
9842 |
s,@LDFLAGS@,$LDFLAGS,;t t |
9843 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
9844 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
9845 |
s,@EXEEXT@,$EXEEXT,;t t |
9846 |
s,@OBJEXT@,$OBJEXT,;t t |
9847 |
s,@F77@,$F77,;t t |
9848 |
s,@FFLAGS@,$FFLAGS,;t t |
9849 |
s,@ac_ct_F77@,$ac_ct_F77,;t t |
9850 |
s,@FLIBS@,$FLIBS,;t t |
9851 |
s,@CXX@,$CXX,;t t |
9852 |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
9853 |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
9854 |
s,@LN_S@,$LN_S,;t t |
9855 |
s,@ECHO@,$ECHO,;t t |
9856 |
s,@RANLIB@,$RANLIB,;t t |
9857 |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
9858 |
s,@STRIP@,$STRIP,;t t |
9859 |
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
9860 |
s,@CPP@,$CPP,;t t |
9861 |
s,@EGREP@,$EGREP,;t t |
9862 |
s,@LIBTOOL@,$LIBTOOL,;t t |
9863 |
s,@HAS_DOXYFILE@,$HAS_DOXYFILE,;t t |
9864 |
s,@ROOT_INCLUDES@,$ROOT_INCLUDES,;t t |
9865 |
s,@ROOT_LDFLAGS@,$ROOT_LDFLAGS,;t t |
9866 |
s,@ROOTCINT@,$ROOTCINT,;t t |
9867 |
s,@LIBOBJS@,$LIBOBJS,;t t |
9868 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
9869 |
CEOF |
9870 |
|
9871 |
_ACEOF |
9872 |
|
9873 |
cat >>$CONFIG_STATUS <<\_ACEOF |
9874 |
# Split the substitutions into bite-sized pieces for seds with |
9875 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
9876 |
ac_max_sed_lines=48 |
9877 |
ac_sed_frag=1 # Number of current file. |
9878 |
ac_beg=1 # First line for current file. |
9879 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
9880 |
ac_more_lines=: |
9881 |
ac_sed_cmds= |
9882 |
while $ac_more_lines; do |
9883 |
if test $ac_beg -gt 1; then |
9884 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
9885 |
else |
9886 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
9887 |
fi |
9888 |
if test ! -s $tmp/subs.frag; then |
9889 |
ac_more_lines=false |
9890 |
else |
9891 |
# The purpose of the label and of the branching condition is to |
9892 |
# speed up the sed processing (if there are no `@' at all, there |
9893 |
# is no need to browse any of the substitutions). |
9894 |
# These are the two extra sed commands mentioned above. |
9895 |
(echo ':t |
9896 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
9897 |
if test -z "$ac_sed_cmds"; then |
9898 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
9899 |
else |
9900 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
9901 |
fi |
9902 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
9903 |
ac_beg=$ac_end |
9904 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
9905 |
fi |
9906 |
done |
9907 |
if test -z "$ac_sed_cmds"; then |
9908 |
ac_sed_cmds=cat |
9909 |
fi |
9910 |
fi # test -n "$CONFIG_FILES" |
9911 |
|
9912 |
_ACEOF |
9913 |
cat >>$CONFIG_STATUS <<\_ACEOF |
9914 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
9915 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
9916 |
case $ac_file in |
9917 |
- | *:- | *:-:* ) # input from stdin |
9918 |
cat >$tmp/stdin |
9919 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
9920 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
9921 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
9922 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
9923 |
* ) ac_file_in=$ac_file.in ;; |
9924 |
esac |
9925 |
|
9926 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
9927 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
9928 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9929 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
9930 |
X"$ac_file" : 'X\(//\)$' \| \ |
9931 |
X"$ac_file" : 'X\(/\)' \| \ |
9932 |
. : '\(.\)' 2>/dev/null || |
9933 |
echo X"$ac_file" | |
9934 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
9935 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
9936 |
/^X\(\/\/\)$/{ s//\1/; q; } |
9937 |
/^X\(\/\).*/{ s//\1/; q; } |
9938 |
s/.*/./; q'` |
9939 |
{ if $as_mkdir_p; then |
9940 |
mkdir -p "$ac_dir" |
9941 |
else |
9942 |
as_dir="$ac_dir" |
9943 |
as_dirs= |
9944 |
while test ! -d "$as_dir"; do |
9945 |
as_dirs="$as_dir $as_dirs" |
9946 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
9947 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9948 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
9949 |
X"$as_dir" : 'X\(//\)$' \| \ |
9950 |
X"$as_dir" : 'X\(/\)' \| \ |
9951 |
. : '\(.\)' 2>/dev/null || |
9952 |
echo X"$as_dir" | |
9953 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
9954 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
9955 |
/^X\(\/\/\)$/{ s//\1/; q; } |
9956 |
/^X\(\/\).*/{ s//\1/; q; } |
9957 |
s/.*/./; q'` |
9958 |
done |
9959 |
test ! -n "$as_dirs" || mkdir $as_dirs |
9960 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
9961 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
9962 |
{ (exit 1); exit 1; }; }; } |
9963 |
|
9964 |
ac_builddir=. |
9965 |
|
9966 |
if test "$ac_dir" != .; then |
9967 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
9968 |
# A "../" for each directory in $ac_dir_suffix. |
9969 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
9970 |
else |
9971 |
ac_dir_suffix= ac_top_builddir= |
9972 |
fi |
9973 |
|
9974 |
case $srcdir in |
9975 |
.) # No --srcdir option. We are building in place. |
9976 |
ac_srcdir=. |
9977 |
if test -z "$ac_top_builddir"; then |
9978 |
ac_top_srcdir=. |
9979 |
else |
9980 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
9981 |
fi ;; |
9982 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
9983 |
ac_srcdir=$srcdir$ac_dir_suffix; |
9984 |
ac_top_srcdir=$srcdir ;; |
9985 |
*) # Relative path. |
9986 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
9987 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
9988 |
esac |
9989 |
|
9990 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
9991 |
# the directories may not exist. |
9992 |
case `pwd` in |
9993 |
.) ac_abs_builddir="$ac_dir";; |
9994 |
*) |
9995 |
case "$ac_dir" in |
9996 |
.) ac_abs_builddir=`pwd`;; |
9997 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
9998 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
9999 |
esac;; |
10000 |
esac |
10001 |
case $ac_abs_builddir in |
10002 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
10003 |
*) |
10004 |
case ${ac_top_builddir}. in |
10005 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
10006 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
10007 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
10008 |
esac;; |
10009 |
esac |
10010 |
case $ac_abs_builddir in |
10011 |
.) ac_abs_srcdir=$ac_srcdir;; |
10012 |
*) |
10013 |
case $ac_srcdir in |
10014 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
10015 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
10016 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
10017 |
esac;; |
10018 |
esac |
10019 |
case $ac_abs_builddir in |
10020 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
10021 |
*) |
10022 |
case $ac_top_srcdir in |
10023 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
10024 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
10025 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
10026 |
esac;; |
10027 |
esac |
10028 |
|
10029 |
|
10030 |
case $INSTALL in |
10031 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
10032 |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
10033 |
esac |
10034 |
|
10035 |
if test x"$ac_file" != x-; then |
10036 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
10037 |
echo "$as_me: creating $ac_file" >&6;} |
10038 |
rm -f "$ac_file" |
10039 |
fi |
10040 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
10041 |
# use $as_me), people would be surprised to read: |
10042 |
# /* config.h. Generated by config.status. */ |
10043 |
if test x"$ac_file" = x-; then |
10044 |
configure_input= |
10045 |
else |
10046 |
configure_input="$ac_file. " |
10047 |
fi |
10048 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
10049 |
sed 's,.*/,,'` by configure." |
10050 |
|
10051 |
# First look for the input files in the build tree, otherwise in the |
10052 |
# src tree. |
10053 |
ac_file_inputs=`IFS=: |
10054 |
for f in $ac_file_in; do |
10055 |
case $f in |
10056 |
-) echo $tmp/stdin ;; |
10057 |
[\\/$]*) |
10058 |
# Absolute (can't be DOS-style, as IFS=:) |
10059 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
10060 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
10061 |
{ (exit 1); exit 1; }; } |
10062 |
echo "$f";; |
10063 |
*) # Relative |
10064 |
if test -f "$f"; then |
10065 |
# Build tree |
10066 |
echo "$f" |
10067 |
elif test -f "$srcdir/$f"; then |
10068 |
# Source tree |
10069 |
echo "$srcdir/$f" |
10070 |
else |
10071 |
# /dev/null tree |
10072 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
10073 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
10074 |
{ (exit 1); exit 1; }; } |
10075 |
fi;; |
10076 |
esac |
10077 |
done` || { (exit 1); exit 1; } |
10078 |
_ACEOF |
10079 |
cat >>$CONFIG_STATUS <<_ACEOF |
10080 |
sed "$ac_vpsub |
10081 |
$extrasub |
10082 |
_ACEOF |
10083 |
cat >>$CONFIG_STATUS <<\_ACEOF |
10084 |
:t |
10085 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
10086 |
s,@configure_input@,$configure_input,;t t |
10087 |
s,@srcdir@,$ac_srcdir,;t t |
10088 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
10089 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
10090 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
10091 |
s,@builddir@,$ac_builddir,;t t |
10092 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
10093 |
s,@top_builddir@,$ac_top_builddir,;t t |
10094 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
10095 |
s,@INSTALL@,$ac_INSTALL,;t t |
10096 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
10097 |
rm -f $tmp/stdin |
10098 |
if test x"$ac_file" != x-; then |
10099 |
mv $tmp/out $ac_file |
10100 |
else |
10101 |
cat $tmp/out |
10102 |
rm -f $tmp/out |
10103 |
fi |
10104 |
|
10105 |
done |
10106 |
_ACEOF |
10107 |
cat >>$CONFIG_STATUS <<\_ACEOF |
10108 |
|
10109 |
# |
10110 |
# CONFIG_HEADER section. |
10111 |
# |
10112 |
|
10113 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
10114 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
10115 |
# |
10116 |
# ac_d sets the value in "#define NAME VALUE" lines. |
10117 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
10118 |
ac_dB='[ ].*$,\1#\2' |
10119 |
ac_dC=' ' |
10120 |
ac_dD=',;t' |
10121 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
10122 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
10123 |
ac_uB='$,\1#\2define\3' |
10124 |
ac_uC=' ' |
10125 |
ac_uD=',;t' |
10126 |
|
10127 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
10128 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
10129 |
case $ac_file in |
10130 |
- | *:- | *:-:* ) # input from stdin |
10131 |
cat >$tmp/stdin |
10132 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
10133 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
10134 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
10135 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
10136 |
* ) ac_file_in=$ac_file.in ;; |
10137 |
esac |
10138 |
|
10139 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
10140 |
echo "$as_me: creating $ac_file" >&6;} |
10141 |
|
10142 |
# First look for the input files in the build tree, otherwise in the |
10143 |
# src tree. |
10144 |
ac_file_inputs=`IFS=: |
10145 |
for f in $ac_file_in; do |
10146 |
case $f in |
10147 |
-) echo $tmp/stdin ;; |
10148 |
[\\/$]*) |
10149 |
# Absolute (can't be DOS-style, as IFS=:) |
10150 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
10151 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
10152 |
{ (exit 1); exit 1; }; } |
10153 |
# Do quote $f, to prevent DOS paths from being IFS'd. |
10154 |
echo "$f";; |
10155 |
*) # Relative |
10156 |
if test -f "$f"; then |
10157 |
# Build tree |
10158 |
echo "$f" |
10159 |
elif test -f "$srcdir/$f"; then |
10160 |
# Source tree |
10161 |
echo "$srcdir/$f" |
10162 |
else |
10163 |
# /dev/null tree |
10164 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
10165 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
10166 |
{ (exit 1); exit 1; }; } |
10167 |
fi;; |
10168 |
esac |
10169 |
done` || { (exit 1); exit 1; } |
10170 |
# Remove the trailing spaces. |
10171 |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
10172 |
|
10173 |
_ACEOF |
10174 |
|
10175 |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
10176 |
# `conftest.undefs', that substitutes the proper values into |
10177 |
# config.h.in to produce config.h. The first handles `#define' |
10178 |
# templates, and the second `#undef' templates. |
10179 |
# And first: Protect against being on the right side of a sed subst in |
10180 |
# config.status. Protect against being in an unquoted here document |
10181 |
# in config.status. |
10182 |
rm -f conftest.defines conftest.undefs |
10183 |
# Using a here document instead of a string reduces the quoting nightmare. |
10184 |
# Putting comments in sed scripts is not portable. |
10185 |
# |
10186 |
# `end' is used to avoid that the second main sed command (meant for |
10187 |
# 0-ary CPP macros) applies to n-ary macro definitions. |
10188 |
# See the Autoconf documentation for `clear'. |
10189 |
cat >confdef2sed.sed <<\_ACEOF |
10190 |
s/[\\&,]/\\&/g |
10191 |
s,[\\$`],\\&,g |
10192 |
t clear |
10193 |
: clear |
10194 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
10195 |
t end |
10196 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
10197 |
: end |
10198 |
_ACEOF |
10199 |
# If some macros were called several times there might be several times |
10200 |
# the same #defines, which is useless. Nevertheless, we may not want to |
10201 |
# sort them, since we want the *last* AC-DEFINE to be honored. |
10202 |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
10203 |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
10204 |
rm -f confdef2sed.sed |
10205 |
|
10206 |
# This sed command replaces #undef with comments. This is necessary, for |
10207 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
10208 |
# on some systems where configure will not decide to define it. |
10209 |
cat >>conftest.undefs <<\_ACEOF |
10210 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
10211 |
_ACEOF |
10212 |
|
10213 |
# Break up conftest.defines because some shells have a limit on the size |
10214 |
# of here documents, and old seds have small limits too (100 cmds). |
10215 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
10216 |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
10217 |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
10218 |
echo ' :' >>$CONFIG_STATUS |
10219 |
rm -f conftest.tail |
10220 |
while grep . conftest.defines >/dev/null |
10221 |
do |
10222 |
# Write a limited-size here document to $tmp/defines.sed. |
10223 |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
10224 |
# Speed up: don't consider the non `#define' lines. |
10225 |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
10226 |
# Work around the forget-to-reset-the-flag bug. |
10227 |
echo 't clr' >>$CONFIG_STATUS |
10228 |
echo ': clr' >>$CONFIG_STATUS |
10229 |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
10230 |
echo 'CEOF |
10231 |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
10232 |
rm -f $tmp/in |
10233 |
mv $tmp/out $tmp/in |
10234 |
' >>$CONFIG_STATUS |
10235 |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
10236 |
rm -f conftest.defines |
10237 |
mv conftest.tail conftest.defines |
10238 |
done |
10239 |
rm -f conftest.defines |
10240 |
echo ' fi # grep' >>$CONFIG_STATUS |
10241 |
echo >>$CONFIG_STATUS |
10242 |
|
10243 |
# Break up conftest.undefs because some shells have a limit on the size |
10244 |
# of here documents, and old seds have small limits too (100 cmds). |
10245 |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
10246 |
rm -f conftest.tail |
10247 |
while grep . conftest.undefs >/dev/null |
10248 |
do |
10249 |
# Write a limited-size here document to $tmp/undefs.sed. |
10250 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
10251 |
# Speed up: don't consider the non `#undef' |
10252 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
10253 |
# Work around the forget-to-reset-the-flag bug. |
10254 |
echo 't clr' >>$CONFIG_STATUS |
10255 |
echo ': clr' >>$CONFIG_STATUS |
10256 |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
10257 |
echo 'CEOF |
10258 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
10259 |
rm -f $tmp/in |
10260 |
mv $tmp/out $tmp/in |
10261 |
' >>$CONFIG_STATUS |
10262 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
10263 |
rm -f conftest.undefs |
10264 |
mv conftest.tail conftest.undefs |
10265 |
done |
10266 |
rm -f conftest.undefs |
10267 |
|
10268 |
cat >>$CONFIG_STATUS <<\_ACEOF |
10269 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
10270 |
# use $as_me), people would be surprised to read: |
10271 |
# /* config.h. Generated by config.status. */ |
10272 |
if test x"$ac_file" = x-; then |
10273 |
echo "/* Generated by configure. */" >$tmp/config.h |
10274 |
else |
10275 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
10276 |
fi |
10277 |
cat $tmp/in >>$tmp/config.h |
10278 |
rm -f $tmp/in |
10279 |
if test x"$ac_file" != x-; then |
10280 |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
10281 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
10282 |
echo "$as_me: $ac_file is unchanged" >&6;} |
10283 |
else |
10284 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
10285 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10286 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
10287 |
X"$ac_file" : 'X\(//\)$' \| \ |
10288 |
X"$ac_file" : 'X\(/\)' \| \ |
10289 |
. : '\(.\)' 2>/dev/null || |
10290 |
echo X"$ac_file" | |
10291 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
10292 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
10293 |
/^X\(\/\/\)$/{ s//\1/; q; } |
10294 |
/^X\(\/\).*/{ s//\1/; q; } |
10295 |
s/.*/./; q'` |
10296 |
{ if $as_mkdir_p; then |
10297 |
mkdir -p "$ac_dir" |
10298 |
else |
10299 |
as_dir="$ac_dir" |
10300 |
as_dirs= |
10301 |
while test ! -d "$as_dir"; do |
10302 |
as_dirs="$as_dir $as_dirs" |
10303 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
10304 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10305 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
10306 |
X"$as_dir" : 'X\(//\)$' \| \ |
10307 |
X"$as_dir" : 'X\(/\)' \| \ |
10308 |
. : '\(.\)' 2>/dev/null || |
10309 |
echo X"$as_dir" | |
10310 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
10311 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
10312 |
/^X\(\/\/\)$/{ s//\1/; q; } |
10313 |
/^X\(\/\).*/{ s//\1/; q; } |
10314 |
s/.*/./; q'` |
10315 |
done |
10316 |
test ! -n "$as_dirs" || mkdir $as_dirs |
10317 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
10318 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
10319 |
{ (exit 1); exit 1; }; }; } |
10320 |
|
10321 |
rm -f $ac_file |
10322 |
mv $tmp/config.h $ac_file |
10323 |
fi |
10324 |
else |
10325 |
cat $tmp/config.h |
10326 |
rm -f $tmp/config.h |
10327 |
fi |
10328 |
done |
10329 |
_ACEOF |
10330 |
cat >>$CONFIG_STATUS <<\_ACEOF |
10331 |
|
10332 |
# |
10333 |
# CONFIG_COMMANDS section. |
10334 |
# |
10335 |
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
10336 |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
10337 |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
10338 |
ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
10339 |
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10340 |
X"$ac_dest" : 'X\(//\)[^/]' \| \ |
10341 |
X"$ac_dest" : 'X\(//\)$' \| \ |
10342 |
X"$ac_dest" : 'X\(/\)' \| \ |
10343 |
. : '\(.\)' 2>/dev/null || |
10344 |
echo X"$ac_dest" | |
10345 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
10346 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
10347 |
/^X\(\/\/\)$/{ s//\1/; q; } |
10348 |
/^X\(\/\).*/{ s//\1/; q; } |
10349 |
s/.*/./; q'` |
10350 |
{ if $as_mkdir_p; then |
10351 |
mkdir -p "$ac_dir" |
10352 |
else |
10353 |
as_dir="$ac_dir" |
10354 |
as_dirs= |
10355 |
while test ! -d "$as_dir"; do |
10356 |
as_dirs="$as_dir $as_dirs" |
10357 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
10358 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10359 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
10360 |
X"$as_dir" : 'X\(//\)$' \| \ |
10361 |
X"$as_dir" : 'X\(/\)' \| \ |
10362 |
. : '\(.\)' 2>/dev/null || |
10363 |
echo X"$as_dir" | |
10364 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
10365 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
10366 |
/^X\(\/\/\)$/{ s//\1/; q; } |
10367 |
/^X\(\/\).*/{ s//\1/; q; } |
10368 |
s/.*/./; q'` |
10369 |
done |
10370 |
test ! -n "$as_dirs" || mkdir $as_dirs |
10371 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
10372 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
10373 |
{ (exit 1); exit 1; }; }; } |
10374 |
|
10375 |
ac_builddir=. |
10376 |
|
10377 |
if test "$ac_dir" != .; then |
10378 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
10379 |
# A "../" for each directory in $ac_dir_suffix. |
10380 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
10381 |
else |
10382 |
ac_dir_suffix= ac_top_builddir= |
10383 |
fi |
10384 |
|
10385 |
case $srcdir in |
10386 |
.) # No --srcdir option. We are building in place. |
10387 |
ac_srcdir=. |
10388 |
if test -z "$ac_top_builddir"; then |
10389 |
ac_top_srcdir=. |
10390 |
else |
10391 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
10392 |
fi ;; |
10393 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
10394 |
ac_srcdir=$srcdir$ac_dir_suffix; |
10395 |
ac_top_srcdir=$srcdir ;; |
10396 |
*) # Relative path. |
10397 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
10398 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
10399 |
esac |
10400 |
|
10401 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
10402 |
# the directories may not exist. |
10403 |
case `pwd` in |
10404 |
.) ac_abs_builddir="$ac_dir";; |
10405 |
*) |
10406 |
case "$ac_dir" in |
10407 |
.) ac_abs_builddir=`pwd`;; |
10408 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
10409 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
10410 |
esac;; |
10411 |
esac |
10412 |
case $ac_abs_builddir in |
10413 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
10414 |
*) |
10415 |
case ${ac_top_builddir}. in |
10416 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
10417 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
10418 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
10419 |
esac;; |
10420 |
esac |
10421 |
case $ac_abs_builddir in |
10422 |
.) ac_abs_srcdir=$ac_srcdir;; |
10423 |
*) |
10424 |
case $ac_srcdir in |
10425 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
10426 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
10427 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
10428 |
esac;; |
10429 |
esac |
10430 |
case $ac_abs_builddir in |
10431 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
10432 |
*) |
10433 |
case $ac_top_srcdir in |
10434 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
10435 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
10436 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
10437 |
esac;; |
10438 |
esac |
10439 |
|
10440 |
|
10441 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
10442 |
echo "$as_me: executing $ac_dest commands" >&6;} |
10443 |
case $ac_dest in |
10444 |
default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; |
10445 |
esac |
10446 |
done |
10447 |
_ACEOF |
10448 |
|
10449 |
cat >>$CONFIG_STATUS <<\_ACEOF |
10450 |
|
10451 |
{ (exit 0); exit 0; } |
10452 |
_ACEOF |
10453 |
chmod +x $CONFIG_STATUS |
10454 |
ac_clean_files=$ac_clean_files_save |
10455 |
|
10456 |
|
10457 |
# configure is writing to config.log, and then calls config.status. |
10458 |
# config.status does its own redirection, appending to config.log. |
10459 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
10460 |
# by configure, so config.status won't be able to write to it; its |
10461 |
# output is simply discarded. So we exec the FD to /dev/null, |
10462 |
# effectively closing config.log, so it can be properly (re)opened and |
10463 |
# appended to by config.status. When coming back to configure, we |
10464 |
# need to make the FD available again. |
10465 |
if test "$no_create" != yes; then |
10466 |
ac_cs_success=: |
10467 |
ac_config_status_args= |
10468 |
test "$silent" = yes && |
10469 |
ac_config_status_args="$ac_config_status_args --quiet" |
10470 |
exec 5>/dev/null |
10471 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
10472 |
exec 5>>config.log |
10473 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
10474 |
# would make configure fail if this is the last instruction. |
10475 |
$ac_cs_success || { (exit 1); exit 1; } |
10476 |
fi |
10477 |
|
10478 |
|