Mercurial > hg > sv-dependency-builds
comparison src/flac-1.2.1/configure @ 1:05aa0afa9217
Bring in flac, ogg, vorbis
author | Chris Cannam |
---|---|
date | Tue, 19 Mar 2013 17:37:49 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:c7265573341e | 1:05aa0afa9217 |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.59. | |
4 # | |
5 # Copyright (C) 2003 Free Software Foundation, Inc. | |
6 # This configure script is free software; the Free Software Foundation | |
7 # gives unlimited permission to copy, distribute and modify it. | |
8 ## --------------------- ## | |
9 ## M4sh Initialization. ## | |
10 ## --------------------- ## | |
11 | |
12 # Be Bourne compatible | |
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 emulate sh | |
15 NULLCMD=: | |
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 # is contrary to our usage. Disable this feature. | |
18 alias -g '${1+"$@"}'='"$@"' | |
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 set -o posix | |
21 fi | |
22 DUALCASE=1; export DUALCASE # for MKS sh | |
23 | |
24 # Support unset when possible. | |
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 as_unset=unset | |
27 else | |
28 as_unset=false | |
29 fi | |
30 | |
31 | |
32 # Work around bugs in pre-3.0 UWIN ksh. | |
33 $as_unset ENV MAIL MAILPATH | |
34 PS1='$ ' | |
35 PS2='> ' | |
36 PS4='+ ' | |
37 | |
38 # NLS nuisances. | |
39 for as_var in \ | |
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 LC_TELEPHONE LC_TIME | |
43 do | |
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 eval $as_var=C; export $as_var | |
46 else | |
47 $as_unset $as_var | |
48 fi | |
49 done | |
50 | |
51 # Required to use basename. | |
52 if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 as_expr=expr | |
54 else | |
55 as_expr=false | |
56 fi | |
57 | |
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 as_basename=basename | |
60 else | |
61 as_basename=false | |
62 fi | |
63 | |
64 | |
65 # Name of the executable. | |
66 as_me=`$as_basename "$0" || | |
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 X"$0" : 'X\(//\)$' \| \ | |
69 X"$0" : 'X\(/\)$' \| \ | |
70 . : '\(.\)' 2>/dev/null || | |
71 echo X/"$0" | | |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 /^X\/\(\/\).*/{ s//\1/; q; } | |
75 s/.*/./; q'` | |
76 | |
77 | |
78 # PATH needs CR, and LINENO needs CR and PATH. | |
79 # Avoid depending upon Character Ranges. | |
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 as_cr_digits='0123456789' | |
84 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | |
86 # The user is always right. | |
87 if test "${PATH_SEPARATOR+set}" != set; then | |
88 echo "#! /bin/sh" >conf$$.sh | |
89 echo "exit 0" >>conf$$.sh | |
90 chmod +x conf$$.sh | |
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 PATH_SEPARATOR=';' | |
93 else | |
94 PATH_SEPARATOR=: | |
95 fi | |
96 rm -f conf$$.sh | |
97 fi | |
98 | |
99 | |
100 as_lineno_1=$LINENO | |
101 as_lineno_2=$LINENO | |
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 # Find who we are. Look in the path if we contain no path at all | |
106 # relative or not. | |
107 case $0 in | |
108 *[\\/]* ) as_myself=$0 ;; | |
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 for as_dir in $PATH | |
111 do | |
112 IFS=$as_save_IFS | |
113 test -z "$as_dir" && as_dir=. | |
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 done | |
116 | |
117 ;; | |
118 esac | |
119 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 # in which case we are not to be found in the path. | |
121 if test "x$as_myself" = x; then | |
122 as_myself=$0 | |
123 fi | |
124 if test ! -f "$as_myself"; then | |
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 { (exit 1); exit 1; }; } | |
127 fi | |
128 case $CONFIG_SHELL in | |
129 '') | |
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 do | |
133 IFS=$as_save_IFS | |
134 test -z "$as_dir" && as_dir=. | |
135 for as_base in sh bash ksh sh5; do | |
136 case $as_dir in | |
137 /*) | |
138 if ("$as_dir/$as_base" -c ' | |
139 as_lineno_1=$LINENO | |
140 as_lineno_2=$LINENO | |
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 CONFIG_SHELL=$as_dir/$as_base | |
147 export CONFIG_SHELL | |
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 fi;; | |
150 esac | |
151 done | |
152 done | |
153 ;; | |
154 esac | |
155 | |
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 # uniformly replaced by the line number. The first 'sed' inserts a | |
158 # line-number line before each line; the second 'sed' does the real | |
159 # work. The second script uses 'N' to pair each line-number line | |
160 # with the numbered line, and appends trailing '-' during | |
161 # substitution so that $LINENO is not a special case at line end. | |
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 sed '=' <$as_myself | | |
165 sed ' | |
166 N | |
167 s,$,-, | |
168 : loop | |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 t loop | |
171 s,-$,, | |
172 s,^['$as_cr_digits']*\n,, | |
173 ' >$as_me.lineno && | |
174 chmod +x $as_me.lineno || | |
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 { (exit 1); exit 1; }; } | |
177 | |
178 # Don't try to exec as it changes $[0], causing all sort of problems | |
179 # (the dirname of $[0] is not the place where we might find the | |
180 # original and so on. Autoconf is especially sensible to this). | |
181 . ./$as_me.lineno | |
182 # Exit status is that of the last command. | |
183 exit | |
184 } | |
185 | |
186 | |
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 *c*,-n*) ECHO_N= ECHO_C=' | |
189 ' ECHO_T=' ' ;; | |
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 esac | |
193 | |
194 if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 as_expr=expr | |
196 else | |
197 as_expr=false | |
198 fi | |
199 | |
200 rm -f conf$$ conf$$.exe conf$$.file | |
201 echo >conf$$.file | |
202 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 # We could just check for DJGPP; but this test a) works b) is more generic | |
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 if test -f conf$$.exe; then | |
206 # Don't use ln at all; we don't have any links | |
207 as_ln_s='cp -p' | |
208 else | |
209 as_ln_s='ln -s' | |
210 fi | |
211 elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 as_ln_s=ln | |
213 else | |
214 as_ln_s='cp -p' | |
215 fi | |
216 rm -f conf$$ conf$$.exe conf$$.file | |
217 | |
218 if mkdir -p . 2>/dev/null; then | |
219 as_mkdir_p=: | |
220 else | |
221 test -d ./-p && rmdir ./-p | |
222 as_mkdir_p=false | |
223 fi | |
224 | |
225 as_executable_p="test -f" | |
226 | |
227 # Sed expression to map a string onto a valid CPP name. | |
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | |
230 # Sed expression to map a string onto a valid variable name. | |
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | |
233 | |
234 # IFS | |
235 # We need space, tab and new line, in precisely that order. | |
236 as_nl=' | |
237 ' | |
238 IFS=" $as_nl" | |
239 | |
240 # CDPATH. | |
241 $as_unset CDPATH | |
242 | |
243 | |
244 | |
245 # Check that we are running under the correct shell. | |
246 SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | |
248 case X$ECHO in | |
249 X*--fallback-echo) | |
250 # Remove one level of quotation (which was required for Make). | |
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
252 ;; | |
253 esac | |
254 | |
255 echo=${ECHO-echo} | |
256 if test "X$1" = X--no-reexec; then | |
257 # Discard the --no-reexec flag, and continue. | |
258 shift | |
259 elif test "X$1" = X--fallback-echo; then | |
260 # Avoid inline document here, it may be left over | |
261 : | |
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | |
263 # Yippee, $echo works! | |
264 : | |
265 else | |
266 # Restart under the correct shell. | |
267 exec $SHELL "$0" --no-reexec ${1+"$@"} | |
268 fi | |
269 | |
270 if test "X$1" = X--fallback-echo; then | |
271 # used as fallback echo | |
272 shift | |
273 cat <<EOF | |
274 $* | |
275 EOF | |
276 exit 0 | |
277 fi | |
278 | |
279 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
280 # if CDPATH is set. | |
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
282 | |
283 if test -z "$ECHO"; then | |
284 if test "X${echo_test_string+set}" != Xset; then | |
285 # find a string as large as possible, as long as the shell can cope with it | |
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
288 if (echo_test_string="`eval $cmd`") 2>/dev/null && | |
289 echo_test_string="`eval $cmd`" && | |
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
291 then | |
292 break | |
293 fi | |
294 done | |
295 fi | |
296 | |
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
299 test "X$echo_testing_string" = "X$echo_test_string"; then | |
300 : | |
301 else | |
302 # The Solaris, AIX, and Digital Unix default echo programs unquote | |
303 # backslashes. This makes it impossible to quote backslashes using | |
304 # echo "$something" | sed 's/\\/\\\\/g' | |
305 # | |
306 # So, first we look for a working echo in the user's PATH. | |
307 | |
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
309 for dir in $PATH /usr/ucb; do | |
310 IFS="$lt_save_ifs" | |
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
314 test "X$echo_testing_string" = "X$echo_test_string"; then | |
315 echo="$dir/echo" | |
316 break | |
317 fi | |
318 done | |
319 IFS="$lt_save_ifs" | |
320 | |
321 if test "X$echo" = Xecho; then | |
322 # We didn't find a better echo, so look for alternatives. | |
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
325 test "X$echo_testing_string" = "X$echo_test_string"; then | |
326 # This shell has a builtin print -r that does the trick. | |
327 echo='print -r' | |
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
329 test "X$CONFIG_SHELL" != X/bin/ksh; then | |
330 # If we have ksh, try running configure again with it. | |
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
332 export ORIGINAL_CONFIG_SHELL | |
333 CONFIG_SHELL=/bin/ksh | |
334 export CONFIG_SHELL | |
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
336 else | |
337 # Try using printf. | |
338 echo='printf %s\n' | |
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
341 test "X$echo_testing_string" = "X$echo_test_string"; then | |
342 # Cool, printf works | |
343 : | |
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
345 test "X$echo_testing_string" = 'X\t' && | |
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
347 test "X$echo_testing_string" = "X$echo_test_string"; then | |
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
349 export CONFIG_SHELL | |
350 SHELL="$CONFIG_SHELL" | |
351 export SHELL | |
352 echo="$CONFIG_SHELL $0 --fallback-echo" | |
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
354 test "X$echo_testing_string" = 'X\t' && | |
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
356 test "X$echo_testing_string" = "X$echo_test_string"; then | |
357 echo="$CONFIG_SHELL $0 --fallback-echo" | |
358 else | |
359 # maybe with a smaller string... | |
360 prev=: | |
361 | |
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
364 then | |
365 break | |
366 fi | |
367 prev="$cmd" | |
368 done | |
369 | |
370 if test "$prev" != 'sed 50q "$0"'; then | |
371 echo_test_string=`eval $prev` | |
372 export echo_test_string | |
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
374 else | |
375 # Oops. We lost completely, so just stick with echo. | |
376 echo=echo | |
377 fi | |
378 fi | |
379 fi | |
380 fi | |
381 fi | |
382 fi | |
383 | |
384 # Copy echo and quote the copy suitably for passing to libtool from | |
385 # the Makefile, instead of quoting the original, which is used later. | |
386 ECHO=$echo | |
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
389 fi | |
390 | |
391 | |
392 | |
393 | |
394 tagnames=${tagnames+${tagnames},}CXX | |
395 | |
396 tagnames=${tagnames+${tagnames},}F77 | |
397 | |
398 # Name of the host. | |
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
400 # so uname gets run too. | |
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
402 | |
403 exec 6>&1 | |
404 | |
405 # | |
406 # Initializations. | |
407 # | |
408 ac_default_prefix=/usr/local | |
409 ac_config_libobj_dir=. | |
410 cross_compiling=no | |
411 subdirs= | |
412 MFLAGS= | |
413 MAKEFLAGS= | |
414 SHELL=${CONFIG_SHELL-/bin/sh} | |
415 | |
416 # Maximum number of lines to put in a shell here document. | |
417 # This variable seems obsolete. It should probably be removed, and | |
418 # only ac_max_sed_lines should be used. | |
419 : ${ac_max_here_lines=38} | |
420 | |
421 # Identity of this package. | |
422 PACKAGE_NAME= | |
423 PACKAGE_TARNAME= | |
424 PACKAGE_VERSION= | |
425 PACKAGE_STRING= | |
426 PACKAGE_BUGREPORT= | |
427 | |
428 ac_unique_file="src/flac/main.c" | |
429 # Factoring default headers for most tests. | |
430 ac_includes_default="\ | |
431 #include <stdio.h> | |
432 #if HAVE_SYS_TYPES_H | |
433 # include <sys/types.h> | |
434 #endif | |
435 #if HAVE_SYS_STAT_H | |
436 # include <sys/stat.h> | |
437 #endif | |
438 #if STDC_HEADERS | |
439 # include <stdlib.h> | |
440 # include <stddef.h> | |
441 #else | |
442 # if HAVE_STDLIB_H | |
443 # include <stdlib.h> | |
444 # endif | |
445 #endif | |
446 #if HAVE_STRING_H | |
447 # if !STDC_HEADERS && HAVE_MEMORY_H | |
448 # include <memory.h> | |
449 # endif | |
450 # include <string.h> | |
451 #endif | |
452 #if HAVE_STRINGS_H | |
453 # include <strings.h> | |
454 #endif | |
455 #if HAVE_INTTYPES_H | |
456 # include <inttypes.h> | |
457 #else | |
458 # if HAVE_STDINT_H | |
459 # include <stdint.h> | |
460 # endif | |
461 #endif | |
462 #if HAVE_UNISTD_H | |
463 # include <unistd.h> | |
464 #endif" | |
465 | |
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ACLOCAL_AMFLAGS CCAS CCASFLAGS FLaC__CPU_IA32_TRUE FLaC__CPU_IA32_FALSE FLaC__CPU_PPC_TRUE FLaC__CPU_PPC_FALSE FLaC__CPU_SPARC_TRUE FLaC__CPU_SPARC_FALSE OBJ_FORMAT MINGW_WINSOCK_LIBS FLaC__SYS_DARWIN_TRUE FLaC__SYS_DARWIN_FALSE FLaC__SYS_LINUX_TRUE FLaC__SYS_LINUX_FALSE FLaC__NO_ASM_TRUE FLaC__NO_ASM_FALSE DEBUG_TRUE DEBUG_FALSE FLaC__SSE_OS_TRUE FLaC__SSE_OS_FALSE FLaC__USE_3DNOW_TRUE FLaC__USE_3DNOW_FALSE FLaC__USE_ALTIVEC_TRUE FLaC__USE_ALTIVEC_FALSE FLAC__TEST_LEVEL FLAC__TEST_WITH_VALGRIND DOXYGEN FLaC__HAS_DOXYGEN_TRUE FLaC__HAS_DOXYGEN_FALSE FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE XMMS_CONFIG XMMS_CFLAGS XMMS_LIBS XMMS_VERSION XMMS_DATA_DIR XMMS_PLUGIN_DIR XMMS_VISUALIZATION_PLUGIN_DIR XMMS_INPUT_PLUGIN_DIR XMMS_OUTPUT_PLUGIN_DIR XMMS_GENERAL_PLUGIN_DIR XMMS_EFFECT_PLUGIN_DIR FLaC__HAS_XMMS_TRUE FLaC__HAS_XMMS_FALSE FLaC__WITH_CPPLIBS_TRUE FLaC__WITH_CPPLIBS_FALSE OGG_CFLAGS OGG_LIBS FLaC__HAS_OGG_TRUE FLaC__HAS_OGG_FALSE LIBICONV LTLIBICONV DOCBOOK_TO_MAN FLaC__HAS_DOCBOOK_TO_MAN_TRUE FLaC__HAS_DOCBOOK_TO_MAN_FALSE NASM FLaC__HAS_NASM_TRUE FLaC__HAS_NASM_FALSE AS GAS FLaC__HAS_AS_TRUE FLaC__HAS_AS_FALSE FLaC__HAS_GAS_TRUE FLaC__HAS_GAS_FALSE FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE LIBOBJS LTLIBOBJS' | |
467 ac_subst_files='' | |
468 | |
469 # Initialize some variables set by options. | |
470 ac_init_help= | |
471 ac_init_version=false | |
472 # The variables have the same names as the options, with | |
473 # dashes changed to underlines. | |
474 cache_file=/dev/null | |
475 exec_prefix=NONE | |
476 no_create= | |
477 no_recursion= | |
478 prefix=NONE | |
479 program_prefix=NONE | |
480 program_suffix=NONE | |
481 program_transform_name=s,x,x, | |
482 silent= | |
483 site= | |
484 srcdir= | |
485 verbose= | |
486 x_includes=NONE | |
487 x_libraries=NONE | |
488 | |
489 # Installation directory options. | |
490 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
491 # and all the variables that are supposed to be based on exec_prefix | |
492 # by default will actually change. | |
493 # Use braces instead of parens because sh, perl, etc. also accept them. | |
494 bindir='${exec_prefix}/bin' | |
495 sbindir='${exec_prefix}/sbin' | |
496 libexecdir='${exec_prefix}/libexec' | |
497 datadir='${prefix}/share' | |
498 sysconfdir='${prefix}/etc' | |
499 sharedstatedir='${prefix}/com' | |
500 localstatedir='${prefix}/var' | |
501 libdir='${exec_prefix}/lib' | |
502 includedir='${prefix}/include' | |
503 oldincludedir='/usr/include' | |
504 infodir='${prefix}/info' | |
505 mandir='${prefix}/man' | |
506 | |
507 ac_prev= | |
508 for ac_option | |
509 do | |
510 # If the previous option needs an argument, assign it. | |
511 if test -n "$ac_prev"; then | |
512 eval "$ac_prev=\$ac_option" | |
513 ac_prev= | |
514 continue | |
515 fi | |
516 | |
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
518 | |
519 # Accept the important Cygnus configure options, so we can diagnose typos. | |
520 | |
521 case $ac_option in | |
522 | |
523 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
524 ac_prev=bindir ;; | |
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
526 bindir=$ac_optarg ;; | |
527 | |
528 -build | --build | --buil | --bui | --bu) | |
529 ac_prev=build_alias ;; | |
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
531 build_alias=$ac_optarg ;; | |
532 | |
533 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
535 ac_prev=cache_file ;; | |
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
538 cache_file=$ac_optarg ;; | |
539 | |
540 --config-cache | -C) | |
541 cache_file=config.cache ;; | |
542 | |
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
544 ac_prev=datadir ;; | |
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
546 | --da=*) | |
547 datadir=$ac_optarg ;; | |
548 | |
549 -disable-* | --disable-*) | |
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
551 # Reject names that are not valid shell variable names. | |
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
554 { (exit 1); exit 1; }; } | |
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
556 eval "enable_$ac_feature=no" ;; | |
557 | |
558 -enable-* | --enable-*) | |
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
560 # Reject names that are not valid shell variable names. | |
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
563 { (exit 1); exit 1; }; } | |
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
565 case $ac_option in | |
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
567 *) ac_optarg=yes ;; | |
568 esac | |
569 eval "enable_$ac_feature='$ac_optarg'" ;; | |
570 | |
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
573 | --exec | --exe | --ex) | |
574 ac_prev=exec_prefix ;; | |
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
577 | --exec=* | --exe=* | --ex=*) | |
578 exec_prefix=$ac_optarg ;; | |
579 | |
580 -gas | --gas | --ga | --g) | |
581 # Obsolete; use --with-gas. | |
582 with_gas=yes ;; | |
583 | |
584 -help | --help | --hel | --he | -h) | |
585 ac_init_help=long ;; | |
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
587 ac_init_help=recursive ;; | |
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
589 ac_init_help=short ;; | |
590 | |
591 -host | --host | --hos | --ho) | |
592 ac_prev=host_alias ;; | |
593 -host=* | --host=* | --hos=* | --ho=*) | |
594 host_alias=$ac_optarg ;; | |
595 | |
596 -includedir | --includedir | --includedi | --included | --include \ | |
597 | --includ | --inclu | --incl | --inc) | |
598 ac_prev=includedir ;; | |
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
600 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
601 includedir=$ac_optarg ;; | |
602 | |
603 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
604 ac_prev=infodir ;; | |
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
606 infodir=$ac_optarg ;; | |
607 | |
608 -libdir | --libdir | --libdi | --libd) | |
609 ac_prev=libdir ;; | |
610 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
611 libdir=$ac_optarg ;; | |
612 | |
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
614 | --libexe | --libex | --libe) | |
615 ac_prev=libexecdir ;; | |
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
617 | --libexe=* | --libex=* | --libe=*) | |
618 libexecdir=$ac_optarg ;; | |
619 | |
620 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
621 | --localstate | --localstat | --localsta | --localst \ | |
622 | --locals | --local | --loca | --loc | --lo) | |
623 ac_prev=localstatedir ;; | |
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
627 localstatedir=$ac_optarg ;; | |
628 | |
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
630 ac_prev=mandir ;; | |
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
632 mandir=$ac_optarg ;; | |
633 | |
634 -nfp | --nfp | --nf) | |
635 # Obsolete; use --without-fp. | |
636 with_fp=no ;; | |
637 | |
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
639 | --no-cr | --no-c | -n) | |
640 no_create=yes ;; | |
641 | |
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
644 no_recursion=yes ;; | |
645 | |
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
648 | --oldin | --oldi | --old | --ol | --o) | |
649 ac_prev=oldincludedir ;; | |
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
653 oldincludedir=$ac_optarg ;; | |
654 | |
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
656 ac_prev=prefix ;; | |
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
658 prefix=$ac_optarg ;; | |
659 | |
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
661 | --program-pre | --program-pr | --program-p) | |
662 ac_prev=program_prefix ;; | |
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
665 program_prefix=$ac_optarg ;; | |
666 | |
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
668 | --program-suf | --program-su | --program-s) | |
669 ac_prev=program_suffix ;; | |
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
672 program_suffix=$ac_optarg ;; | |
673 | |
674 -program-transform-name | --program-transform-name \ | |
675 | --program-transform-nam | --program-transform-na \ | |
676 | --program-transform-n | --program-transform- \ | |
677 | --program-transform | --program-transfor \ | |
678 | --program-transfo | --program-transf \ | |
679 | --program-trans | --program-tran \ | |
680 | --progr-tra | --program-tr | --program-t) | |
681 ac_prev=program_transform_name ;; | |
682 -program-transform-name=* | --program-transform-name=* \ | |
683 | --program-transform-nam=* | --program-transform-na=* \ | |
684 | --program-transform-n=* | --program-transform-=* \ | |
685 | --program-transform=* | --program-transfor=* \ | |
686 | --program-transfo=* | --program-transf=* \ | |
687 | --program-trans=* | --program-tran=* \ | |
688 | --progr-tra=* | --program-tr=* | --program-t=*) | |
689 program_transform_name=$ac_optarg ;; | |
690 | |
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
692 | -silent | --silent | --silen | --sile | --sil) | |
693 silent=yes ;; | |
694 | |
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
696 ac_prev=sbindir ;; | |
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
698 | --sbi=* | --sb=*) | |
699 sbindir=$ac_optarg ;; | |
700 | |
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
703 | --sharedst | --shareds | --shared | --share | --shar \ | |
704 | --sha | --sh) | |
705 ac_prev=sharedstatedir ;; | |
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
709 | --sha=* | --sh=*) | |
710 sharedstatedir=$ac_optarg ;; | |
711 | |
712 -site | --site | --sit) | |
713 ac_prev=site ;; | |
714 -site=* | --site=* | --sit=*) | |
715 site=$ac_optarg ;; | |
716 | |
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
718 ac_prev=srcdir ;; | |
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
720 srcdir=$ac_optarg ;; | |
721 | |
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
723 | --syscon | --sysco | --sysc | --sys | --sy) | |
724 ac_prev=sysconfdir ;; | |
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
727 sysconfdir=$ac_optarg ;; | |
728 | |
729 -target | --target | --targe | --targ | --tar | --ta | --t) | |
730 ac_prev=target_alias ;; | |
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
732 target_alias=$ac_optarg ;; | |
733 | |
734 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
735 verbose=yes ;; | |
736 | |
737 -version | --version | --versio | --versi | --vers | -V) | |
738 ac_init_version=: ;; | |
739 | |
740 -with-* | --with-*) | |
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
742 # Reject names that are not valid shell variable names. | |
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
744 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
745 { (exit 1); exit 1; }; } | |
746 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
747 case $ac_option in | |
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
749 *) ac_optarg=yes ;; | |
750 esac | |
751 eval "with_$ac_package='$ac_optarg'" ;; | |
752 | |
753 -without-* | --without-*) | |
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
755 # Reject names that are not valid shell variable names. | |
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
757 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
758 { (exit 1); exit 1; }; } | |
759 ac_package=`echo $ac_package | sed 's/-/_/g'` | |
760 eval "with_$ac_package=no" ;; | |
761 | |
762 --x) | |
763 # Obsolete; use --with-x. | |
764 with_x=yes ;; | |
765 | |
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
767 | --x-incl | --x-inc | --x-in | --x-i) | |
768 ac_prev=x_includes ;; | |
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
771 x_includes=$ac_optarg ;; | |
772 | |
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
775 ac_prev=x_libraries ;; | |
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
778 x_libraries=$ac_optarg ;; | |
779 | |
780 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
781 Try \`$0 --help' for more information." >&2 | |
782 { (exit 1); exit 1; }; } | |
783 ;; | |
784 | |
785 *=*) | |
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
787 # Reject names that are not valid shell variable names. | |
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
790 { (exit 1); exit 1; }; } | |
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
792 eval "$ac_envvar='$ac_optarg'" | |
793 export $ac_envvar ;; | |
794 | |
795 *) | |
796 # FIXME: should be removed in autoconf 3.0. | |
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
801 ;; | |
802 | |
803 esac | |
804 done | |
805 | |
806 if test -n "$ac_prev"; then | |
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
808 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
809 { (exit 1); exit 1; }; } | |
810 fi | |
811 | |
812 # Be sure to have absolute paths. | |
813 for ac_var in exec_prefix prefix | |
814 do | |
815 eval ac_val=$`echo $ac_var` | |
816 case $ac_val in | |
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
819 { (exit 1); exit 1; }; };; | |
820 esac | |
821 done | |
822 | |
823 # Be sure to have absolute paths. | |
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
825 localstatedir libdir includedir oldincludedir infodir mandir | |
826 do | |
827 eval ac_val=$`echo $ac_var` | |
828 case $ac_val in | |
829 [\\/$]* | ?:[\\/]* ) ;; | |
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
831 { (exit 1); exit 1; }; };; | |
832 esac | |
833 done | |
834 | |
835 # There might be people who depend on the old broken behavior: `$host' | |
836 # used to hold the argument of --host etc. | |
837 # FIXME: To remove some day. | |
838 build=$build_alias | |
839 host=$host_alias | |
840 target=$target_alias | |
841 | |
842 # FIXME: To remove some day. | |
843 if test "x$host_alias" != x; then | |
844 if test "x$build_alias" = x; then | |
845 cross_compiling=maybe | |
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
847 If a cross compiler is detected then cross compile mode will be used." >&2 | |
848 elif test "x$build_alias" != "x$host_alias"; then | |
849 cross_compiling=yes | |
850 fi | |
851 fi | |
852 | |
853 ac_tool_prefix= | |
854 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
855 | |
856 test "$silent" = yes && exec 6>/dev/null | |
857 | |
858 | |
859 # Find the source files, if location was not specified. | |
860 if test -z "$srcdir"; then | |
861 ac_srcdir_defaulted=yes | |
862 # Try the directory containing this script, then its parent. | |
863 ac_confdir=`(dirname "$0") 2>/dev/null || | |
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
865 X"$0" : 'X\(//\)[^/]' \| \ | |
866 X"$0" : 'X\(//\)$' \| \ | |
867 X"$0" : 'X\(/\)' \| \ | |
868 . : '\(.\)' 2>/dev/null || | |
869 echo X"$0" | | |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
872 /^X\(\/\/\)$/{ s//\1/; q; } | |
873 /^X\(\/\).*/{ s//\1/; q; } | |
874 s/.*/./; q'` | |
875 srcdir=$ac_confdir | |
876 if test ! -r $srcdir/$ac_unique_file; then | |
877 srcdir=.. | |
878 fi | |
879 else | |
880 ac_srcdir_defaulted=no | |
881 fi | |
882 if test ! -r $srcdir/$ac_unique_file; then | |
883 if test "$ac_srcdir_defaulted" = yes; then | |
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
885 { (exit 1); exit 1; }; } | |
886 else | |
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
888 { (exit 1); exit 1; }; } | |
889 fi | |
890 fi | |
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
893 { (exit 1); exit 1; }; } | |
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
895 ac_env_build_alias_set=${build_alias+set} | |
896 ac_env_build_alias_value=$build_alias | |
897 ac_cv_env_build_alias_set=${build_alias+set} | |
898 ac_cv_env_build_alias_value=$build_alias | |
899 ac_env_host_alias_set=${host_alias+set} | |
900 ac_env_host_alias_value=$host_alias | |
901 ac_cv_env_host_alias_set=${host_alias+set} | |
902 ac_cv_env_host_alias_value=$host_alias | |
903 ac_env_target_alias_set=${target_alias+set} | |
904 ac_env_target_alias_value=$target_alias | |
905 ac_cv_env_target_alias_set=${target_alias+set} | |
906 ac_cv_env_target_alias_value=$target_alias | |
907 ac_env_CC_set=${CC+set} | |
908 ac_env_CC_value=$CC | |
909 ac_cv_env_CC_set=${CC+set} | |
910 ac_cv_env_CC_value=$CC | |
911 ac_env_CFLAGS_set=${CFLAGS+set} | |
912 ac_env_CFLAGS_value=$CFLAGS | |
913 ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
914 ac_cv_env_CFLAGS_value=$CFLAGS | |
915 ac_env_LDFLAGS_set=${LDFLAGS+set} | |
916 ac_env_LDFLAGS_value=$LDFLAGS | |
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
918 ac_cv_env_LDFLAGS_value=$LDFLAGS | |
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
920 ac_env_CPPFLAGS_value=$CPPFLAGS | |
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
923 ac_env_CPP_set=${CPP+set} | |
924 ac_env_CPP_value=$CPP | |
925 ac_cv_env_CPP_set=${CPP+set} | |
926 ac_cv_env_CPP_value=$CPP | |
927 ac_env_CXX_set=${CXX+set} | |
928 ac_env_CXX_value=$CXX | |
929 ac_cv_env_CXX_set=${CXX+set} | |
930 ac_cv_env_CXX_value=$CXX | |
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
932 ac_env_CXXFLAGS_value=$CXXFLAGS | |
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
935 ac_env_CXXCPP_set=${CXXCPP+set} | |
936 ac_env_CXXCPP_value=$CXXCPP | |
937 ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
938 ac_cv_env_CXXCPP_value=$CXXCPP | |
939 ac_env_F77_set=${F77+set} | |
940 ac_env_F77_value=$F77 | |
941 ac_cv_env_F77_set=${F77+set} | |
942 ac_cv_env_F77_value=$F77 | |
943 ac_env_FFLAGS_set=${FFLAGS+set} | |
944 ac_env_FFLAGS_value=$FFLAGS | |
945 ac_cv_env_FFLAGS_set=${FFLAGS+set} | |
946 ac_cv_env_FFLAGS_value=$FFLAGS | |
947 | |
948 # | |
949 # Report the --help message. | |
950 # | |
951 if test "$ac_init_help" = "long"; then | |
952 # Omit some internal or obsolete options to make the list less imposing. | |
953 # This message is too long to be a string in the A/UX 3.1 sh. | |
954 cat <<_ACEOF | |
955 \`configure' configures this package to adapt to many kinds of systems. | |
956 | |
957 Usage: $0 [OPTION]... [VAR=VALUE]... | |
958 | |
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
960 VAR=VALUE. See below for descriptions of some of the useful variables. | |
961 | |
962 Defaults for the options are specified in brackets. | |
963 | |
964 Configuration: | |
965 -h, --help display this help and exit | |
966 --help=short display options specific to this package | |
967 --help=recursive display the short help of all the included packages | |
968 -V, --version display version information and exit | |
969 -q, --quiet, --silent do not print \`checking...' messages | |
970 --cache-file=FILE cache test results in FILE [disabled] | |
971 -C, --config-cache alias for \`--cache-file=config.cache' | |
972 -n, --no-create do not create output files | |
973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
974 | |
975 _ACEOF | |
976 | |
977 cat <<_ACEOF | |
978 Installation directories: | |
979 --prefix=PREFIX install architecture-independent files in PREFIX | |
980 [$ac_default_prefix] | |
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
982 [PREFIX] | |
983 | |
984 By default, \`make install' will install all the files in | |
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
987 for instance \`--prefix=\$HOME'. | |
988 | |
989 For better control, use the options below. | |
990 | |
991 Fine tuning of the installation directories: | |
992 --bindir=DIR user executables [EPREFIX/bin] | |
993 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
994 --libexecdir=DIR program executables [EPREFIX/libexec] | |
995 --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
999 --libdir=DIR object code libraries [EPREFIX/lib] | |
1000 --includedir=DIR C header files [PREFIX/include] | |
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1002 --infodir=DIR info documentation [PREFIX/info] | |
1003 --mandir=DIR man documentation [PREFIX/man] | |
1004 _ACEOF | |
1005 | |
1006 cat <<\_ACEOF | |
1007 | |
1008 Program names: | |
1009 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1010 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1012 | |
1013 System types: | |
1014 --build=BUILD configure for building on BUILD [guessed] | |
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1016 _ACEOF | |
1017 fi | |
1018 | |
1019 if test -n "$ac_init_help"; then | |
1020 | |
1021 cat <<\_ACEOF | |
1022 | |
1023 Optional Features: | |
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1026 --enable-maintainer-mode enable make rules and dependencies not useful | |
1027 (and sometimes confusing) to the casual installer | |
1028 --enable-shared[=PKGS] | |
1029 build shared libraries [default=yes] | |
1030 --enable-static[=PKGS] | |
1031 build static libraries [default=yes] | |
1032 --enable-fast-install[=PKGS] | |
1033 optimize for fast installation [default=yes] | |
1034 --disable-dependency-tracking Speeds up one-time builds | |
1035 --enable-dependency-tracking Do not reject slow dependency extractors | |
1036 --disable-libtool-lock avoid locking (might break parallel builds) | |
1037 --disable-largefile omit support for large files | |
1038 --disable-asm-optimizations | |
1039 Don't use any assembly optimization routines | |
1040 --enable-debug Turn on debugging | |
1041 --enable-sse Enable SSE support by asserting that the OS supports | |
1042 SSE instructions | |
1043 --disable-3dnow Disable 3DNOW! optimizations | |
1044 --disable-altivec Disable Altivec optimizations | |
1045 --disable-thorough-tests | |
1046 Disable thorough (long) testing, do only basic tests | |
1047 --enable-exhaustive-tests | |
1048 Enable exhaustive testing (VERY long) | |
1049 --enable-valgrind-testing | |
1050 Run all tests inside Valgrind | |
1051 --disable-doxygen-docs Disable API documentation building via Doxygen | |
1052 --enable-local-xmms-plugin | |
1053 Install XMMS plugin to ~/.xmms/Plugins instead of | |
1054 system location | |
1055 --disable-xmms-plugin Do not build XMMS plugin | |
1056 --disable-cpplibs Do not build libFLAC++ | |
1057 --disable-ogg Disable ogg support (default: test for libogg) | |
1058 --disable-oggtest Do not try to compile and run a test Ogg program | |
1059 --disable-rpath do not hardcode runtime library paths | |
1060 | |
1061 Optional Packages: | |
1062 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1063 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1064 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1065 --with-pic try to use only PIC/non-PIC objects [default=use | |
1066 both] | |
1067 --with-tags[=TAGS] | |
1068 include additional configurations [automatic] | |
1069 --with-xmms-prefix=PFX Prefix where XMMS is installed (optional) | |
1070 --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional) | |
1071 --with-ogg=PFX Prefix where libogg is installed (optional) | |
1072 --with-ogg-libraries=DIR Directory where libogg library is installed (optional) | |
1073 --with-ogg-includes=DIR Directory where libogg header files are installed (optional) | |
1074 --with-gnu-ld assume the C compiler uses GNU ld default=no | |
1075 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1076 --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1077 | |
1078 Some influential environment variables: | |
1079 CC C compiler command | |
1080 CFLAGS C compiler flags | |
1081 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1082 nonstandard directory <lib dir> | |
1083 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1084 headers in a nonstandard directory <include dir> | |
1085 CPP C preprocessor | |
1086 CXX C++ compiler command | |
1087 CXXFLAGS C++ compiler flags | |
1088 CXXCPP C++ preprocessor | |
1089 F77 Fortran 77 compiler command | |
1090 FFLAGS Fortran 77 compiler flags | |
1091 | |
1092 Use these variables to override the choices made by `configure' or to help | |
1093 it to find libraries and programs with nonstandard names/locations. | |
1094 | |
1095 _ACEOF | |
1096 fi | |
1097 | |
1098 if test "$ac_init_help" = "recursive"; then | |
1099 # If there are subdirs, report their specific --help. | |
1100 ac_popdir=`pwd` | |
1101 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1102 test -d $ac_dir || continue | |
1103 ac_builddir=. | |
1104 | |
1105 if test "$ac_dir" != .; then | |
1106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1107 # A "../" for each directory in $ac_dir_suffix. | |
1108 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1109 else | |
1110 ac_dir_suffix= ac_top_builddir= | |
1111 fi | |
1112 | |
1113 case $srcdir in | |
1114 .) # No --srcdir option. We are building in place. | |
1115 ac_srcdir=. | |
1116 if test -z "$ac_top_builddir"; then | |
1117 ac_top_srcdir=. | |
1118 else | |
1119 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1120 fi ;; | |
1121 [\\/]* | ?:[\\/]* ) # Absolute path. | |
1122 ac_srcdir=$srcdir$ac_dir_suffix; | |
1123 ac_top_srcdir=$srcdir ;; | |
1124 *) # Relative path. | |
1125 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1126 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1127 esac | |
1128 | |
1129 # Do not use `cd foo && pwd` to compute absolute paths, because | |
1130 # the directories may not exist. | |
1131 case `pwd` in | |
1132 .) ac_abs_builddir="$ac_dir";; | |
1133 *) | |
1134 case "$ac_dir" in | |
1135 .) ac_abs_builddir=`pwd`;; | |
1136 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1137 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1138 esac;; | |
1139 esac | |
1140 case $ac_abs_builddir in | |
1141 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1142 *) | |
1143 case ${ac_top_builddir}. in | |
1144 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1146 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1147 esac;; | |
1148 esac | |
1149 case $ac_abs_builddir in | |
1150 .) ac_abs_srcdir=$ac_srcdir;; | |
1151 *) | |
1152 case $ac_srcdir in | |
1153 .) ac_abs_srcdir=$ac_abs_builddir;; | |
1154 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1155 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1156 esac;; | |
1157 esac | |
1158 case $ac_abs_builddir in | |
1159 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1160 *) | |
1161 case $ac_top_srcdir in | |
1162 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1163 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1164 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1165 esac;; | |
1166 esac | |
1167 | |
1168 cd $ac_dir | |
1169 # Check for guested configure; otherwise get Cygnus style configure. | |
1170 if test -f $ac_srcdir/configure.gnu; then | |
1171 echo | |
1172 $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1173 elif test -f $ac_srcdir/configure; then | |
1174 echo | |
1175 $SHELL $ac_srcdir/configure --help=recursive | |
1176 elif test -f $ac_srcdir/configure.ac || | |
1177 test -f $ac_srcdir/configure.in; then | |
1178 echo | |
1179 $ac_configure --help | |
1180 else | |
1181 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1182 fi | |
1183 cd $ac_popdir | |
1184 done | |
1185 fi | |
1186 | |
1187 test -n "$ac_init_help" && exit 0 | |
1188 if $ac_init_version; then | |
1189 cat <<\_ACEOF | |
1190 | |
1191 Copyright (C) 2003 Free Software Foundation, Inc. | |
1192 This configure script is free software; the Free Software Foundation | |
1193 gives unlimited permission to copy, distribute and modify it. | |
1194 _ACEOF | |
1195 exit 0 | |
1196 fi | |
1197 exec 5>config.log | |
1198 cat >&5 <<_ACEOF | |
1199 This file contains any messages produced by compilers while | |
1200 running configure, to aid debugging if configure makes a mistake. | |
1201 | |
1202 It was created by $as_me, which was | |
1203 generated by GNU Autoconf 2.59. Invocation command line was | |
1204 | |
1205 $ $0 $@ | |
1206 | |
1207 _ACEOF | |
1208 { | |
1209 cat <<_ASUNAME | |
1210 ## --------- ## | |
1211 ## Platform. ## | |
1212 ## --------- ## | |
1213 | |
1214 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1215 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1216 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1217 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1218 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1219 | |
1220 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1221 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1222 | |
1223 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1224 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1225 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1226 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1227 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1228 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1229 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1230 | |
1231 _ASUNAME | |
1232 | |
1233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1234 for as_dir in $PATH | |
1235 do | |
1236 IFS=$as_save_IFS | |
1237 test -z "$as_dir" && as_dir=. | |
1238 echo "PATH: $as_dir" | |
1239 done | |
1240 | |
1241 } >&5 | |
1242 | |
1243 cat >&5 <<_ACEOF | |
1244 | |
1245 | |
1246 ## ----------- ## | |
1247 ## Core tests. ## | |
1248 ## ----------- ## | |
1249 | |
1250 _ACEOF | |
1251 | |
1252 | |
1253 # Keep a trace of the command line. | |
1254 # Strip out --no-create and --no-recursion so they do not pile up. | |
1255 # Strip out --silent because we don't want to record it for future runs. | |
1256 # Also quote any args containing shell meta-characters. | |
1257 # Make two passes to allow for proper duplicate-argument suppression. | |
1258 ac_configure_args= | |
1259 ac_configure_args0= | |
1260 ac_configure_args1= | |
1261 ac_sep= | |
1262 ac_must_keep_next=false | |
1263 for ac_pass in 1 2 | |
1264 do | |
1265 for ac_arg | |
1266 do | |
1267 case $ac_arg in | |
1268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1270 | -silent | --silent | --silen | --sile | --sil) | |
1271 continue ;; | |
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1273 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1274 esac | |
1275 case $ac_pass in | |
1276 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1277 2) | |
1278 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1279 if test $ac_must_keep_next = true; then | |
1280 ac_must_keep_next=false # Got value, back to normal. | |
1281 else | |
1282 case $ac_arg in | |
1283 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1286 | -with-* | --with-* | -without-* | --without-* | --x) | |
1287 case "$ac_configure_args0 " in | |
1288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1289 esac | |
1290 ;; | |
1291 -* ) ac_must_keep_next=true ;; | |
1292 esac | |
1293 fi | |
1294 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1295 # Get rid of the leading space. | |
1296 ac_sep=" " | |
1297 ;; | |
1298 esac | |
1299 done | |
1300 done | |
1301 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1302 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1303 | |
1304 # When interrupted or exit'd, cleanup temporary files, and complete | |
1305 # config.log. We remove comments because anyway the quotes in there | |
1306 # would cause problems or look ugly. | |
1307 # WARNING: Be sure not to use single quotes in there, as some shells, | |
1308 # such as our DU 5.0 friend, will then `close' the trap. | |
1309 trap 'exit_status=$? | |
1310 # Save into config.log some information that might help in debugging. | |
1311 { | |
1312 echo | |
1313 | |
1314 cat <<\_ASBOX | |
1315 ## ---------------- ## | |
1316 ## Cache variables. ## | |
1317 ## ---------------- ## | |
1318 _ASBOX | |
1319 echo | |
1320 # The following way of writing the cache mishandles newlines in values, | |
1321 { | |
1322 (set) 2>&1 | | |
1323 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1324 *ac_space=\ *) | |
1325 sed -n \ | |
1326 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1328 ;; | |
1329 *) | |
1330 sed -n \ | |
1331 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1332 ;; | |
1333 esac; | |
1334 } | |
1335 echo | |
1336 | |
1337 cat <<\_ASBOX | |
1338 ## ----------------- ## | |
1339 ## Output variables. ## | |
1340 ## ----------------- ## | |
1341 _ASBOX | |
1342 echo | |
1343 for ac_var in $ac_subst_vars | |
1344 do | |
1345 eval ac_val=$`echo $ac_var` | |
1346 echo "$ac_var='"'"'$ac_val'"'"'" | |
1347 done | sort | |
1348 echo | |
1349 | |
1350 if test -n "$ac_subst_files"; then | |
1351 cat <<\_ASBOX | |
1352 ## ------------- ## | |
1353 ## Output files. ## | |
1354 ## ------------- ## | |
1355 _ASBOX | |
1356 echo | |
1357 for ac_var in $ac_subst_files | |
1358 do | |
1359 eval ac_val=$`echo $ac_var` | |
1360 echo "$ac_var='"'"'$ac_val'"'"'" | |
1361 done | sort | |
1362 echo | |
1363 fi | |
1364 | |
1365 if test -s confdefs.h; then | |
1366 cat <<\_ASBOX | |
1367 ## ----------- ## | |
1368 ## confdefs.h. ## | |
1369 ## ----------- ## | |
1370 _ASBOX | |
1371 echo | |
1372 sed "/^$/d" confdefs.h | sort | |
1373 echo | |
1374 fi | |
1375 test "$ac_signal" != 0 && | |
1376 echo "$as_me: caught signal $ac_signal" | |
1377 echo "$as_me: exit $exit_status" | |
1378 } >&5 | |
1379 rm -f core *.core && | |
1380 rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1381 exit $exit_status | |
1382 ' 0 | |
1383 for ac_signal in 1 2 13 15; do | |
1384 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1385 done | |
1386 ac_signal=0 | |
1387 | |
1388 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1389 rm -rf conftest* confdefs.h | |
1390 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1391 echo >confdefs.h | |
1392 | |
1393 # Predefined preprocessor variables. | |
1394 | |
1395 cat >>confdefs.h <<_ACEOF | |
1396 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1397 _ACEOF | |
1398 | |
1399 | |
1400 cat >>confdefs.h <<_ACEOF | |
1401 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1402 _ACEOF | |
1403 | |
1404 | |
1405 cat >>confdefs.h <<_ACEOF | |
1406 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1407 _ACEOF | |
1408 | |
1409 | |
1410 cat >>confdefs.h <<_ACEOF | |
1411 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1412 _ACEOF | |
1413 | |
1414 | |
1415 cat >>confdefs.h <<_ACEOF | |
1416 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1417 _ACEOF | |
1418 | |
1419 | |
1420 # Let the site file select an alternate cache file if it wants to. | |
1421 # Prefer explicitly selected file to automatically selected ones. | |
1422 if test -z "$CONFIG_SITE"; then | |
1423 if test "x$prefix" != xNONE; then | |
1424 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1425 else | |
1426 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1427 fi | |
1428 fi | |
1429 for ac_site_file in $CONFIG_SITE; do | |
1430 if test -r "$ac_site_file"; then | |
1431 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1432 echo "$as_me: loading site script $ac_site_file" >&6;} | |
1433 sed 's/^/| /' "$ac_site_file" >&5 | |
1434 . "$ac_site_file" | |
1435 fi | |
1436 done | |
1437 | |
1438 if test -r "$cache_file"; then | |
1439 # Some versions of bash will fail to source /dev/null (special | |
1440 # files actually), so we avoid doing that. | |
1441 if test -f "$cache_file"; then | |
1442 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1443 echo "$as_me: loading cache $cache_file" >&6;} | |
1444 case $cache_file in | |
1445 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1446 *) . ./$cache_file;; | |
1447 esac | |
1448 fi | |
1449 else | |
1450 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1451 echo "$as_me: creating cache $cache_file" >&6;} | |
1452 >$cache_file | |
1453 fi | |
1454 | |
1455 # Check that the precious variables saved in the cache have kept the same | |
1456 # value. | |
1457 ac_cache_corrupted=false | |
1458 for ac_var in `(set) 2>&1 | | |
1459 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1460 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1461 eval ac_new_set=\$ac_env_${ac_var}_set | |
1462 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1463 eval ac_new_val="\$ac_env_${ac_var}_value" | |
1464 case $ac_old_set,$ac_new_set in | |
1465 set,) | |
1466 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1467 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1468 ac_cache_corrupted=: ;; | |
1469 ,set) | |
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1471 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1472 ac_cache_corrupted=: ;; | |
1473 ,);; | |
1474 *) | |
1475 if test "x$ac_old_val" != "x$ac_new_val"; then | |
1476 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1477 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1478 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1479 echo "$as_me: former value: $ac_old_val" >&2;} | |
1480 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1481 echo "$as_me: current value: $ac_new_val" >&2;} | |
1482 ac_cache_corrupted=: | |
1483 fi;; | |
1484 esac | |
1485 # Pass precious variables to config.status. | |
1486 if test "$ac_new_set" = set; then | |
1487 case $ac_new_val in | |
1488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1489 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1490 *) ac_arg=$ac_var=$ac_new_val ;; | |
1491 esac | |
1492 case " $ac_configure_args " in | |
1493 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1494 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1495 esac | |
1496 fi | |
1497 done | |
1498 if $ac_cache_corrupted; then | |
1499 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1500 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1501 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1502 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1503 { (exit 1); exit 1; }; } | |
1504 fi | |
1505 | |
1506 ac_ext=c | |
1507 ac_cpp='$CPP $CPPFLAGS' | |
1508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1510 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1511 | |
1512 | |
1513 | |
1514 | |
1515 | |
1516 | |
1517 | |
1518 | |
1519 | |
1520 | |
1521 | |
1522 | |
1523 | |
1524 | |
1525 | |
1526 | |
1527 | |
1528 | |
1529 | |
1530 am__api_version="1.7" | |
1531 ac_aux_dir= | |
1532 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1533 if test -f $ac_dir/install-sh; then | |
1534 ac_aux_dir=$ac_dir | |
1535 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1536 break | |
1537 elif test -f $ac_dir/install.sh; then | |
1538 ac_aux_dir=$ac_dir | |
1539 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1540 break | |
1541 elif test -f $ac_dir/shtool; then | |
1542 ac_aux_dir=$ac_dir | |
1543 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1544 break | |
1545 fi | |
1546 done | |
1547 if test -z "$ac_aux_dir"; then | |
1548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1549 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1550 { (exit 1); exit 1; }; } | |
1551 fi | |
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1555 | |
1556 # Find a good install program. We prefer a C program (faster), | |
1557 # so one script is as good as another. But avoid the broken or | |
1558 # incompatible versions: | |
1559 # SysV /etc/install, /usr/sbin/install | |
1560 # SunOS /usr/etc/install | |
1561 # IRIX /sbin/install | |
1562 # AIX /bin/install | |
1563 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1567 # OS/2's system install, which has a completely different semantic | |
1568 # ./install, which can be erroneously created by make from ./install.sh. | |
1569 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1571 if test -z "$INSTALL"; then | |
1572 if test "${ac_cv_path_install+set}" = set; then | |
1573 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1574 else | |
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1576 for as_dir in $PATH | |
1577 do | |
1578 IFS=$as_save_IFS | |
1579 test -z "$as_dir" && as_dir=. | |
1580 # Account for people who put trailing slashes in PATH elements. | |
1581 case $as_dir/ in | |
1582 ./ | .// | /cC/* | \ | |
1583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1584 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1585 /usr/ucb/* ) ;; | |
1586 *) | |
1587 # OSF1 and SCO ODT 3.0 have their own names for install. | |
1588 # Don't use installbsd from OSF since it installs stuff as root | |
1589 # by default. | |
1590 for ac_prog in ginstall scoinst install; do | |
1591 for ac_exec_ext in '' $ac_executable_extensions; do | |
1592 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1593 if test $ac_prog = install && | |
1594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1595 # AIX install. It has an incompatible calling convention. | |
1596 : | |
1597 elif test $ac_prog = install && | |
1598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1599 # program-specific install script used by HP pwplus--don't use. | |
1600 : | |
1601 else | |
1602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1603 break 3 | |
1604 fi | |
1605 fi | |
1606 done | |
1607 done | |
1608 ;; | |
1609 esac | |
1610 done | |
1611 | |
1612 | |
1613 fi | |
1614 if test "${ac_cv_path_install+set}" = set; then | |
1615 INSTALL=$ac_cv_path_install | |
1616 else | |
1617 # As a last resort, use the slow shell script. We don't cache a | |
1618 # path for INSTALL within a source directory, because that will | |
1619 # break other packages using the cache if that directory is | |
1620 # removed, or if the path is relative. | |
1621 INSTALL=$ac_install_sh | |
1622 fi | |
1623 fi | |
1624 echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1625 echo "${ECHO_T}$INSTALL" >&6 | |
1626 | |
1627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1628 # It thinks the first close brace ends the variable substitution. | |
1629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1630 | |
1631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1632 | |
1633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1634 | |
1635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1637 # Just in case | |
1638 sleep 1 | |
1639 echo timestamp > conftest.file | |
1640 # Do `set' in a subshell so we don't clobber the current shell's | |
1641 # arguments. Must try -L first in case configure is actually a | |
1642 # symlink; some systems play weird games with the mod time of symlinks | |
1643 # (eg FreeBSD returns the mod time of the symlink's containing | |
1644 # directory). | |
1645 if ( | |
1646 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1647 if test "$*" = "X"; then | |
1648 # -L didn't work. | |
1649 set X `ls -t $srcdir/configure conftest.file` | |
1650 fi | |
1651 rm -f conftest.file | |
1652 if test "$*" != "X $srcdir/configure conftest.file" \ | |
1653 && test "$*" != "X conftest.file $srcdir/configure"; then | |
1654 | |
1655 # If neither matched, then we have a broken ls. This can happen | |
1656 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1657 # broken ls alias from the environment. This has actually | |
1658 # happened. Such a system could not be considered "sane". | |
1659 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1660 alias in your environment" >&5 | |
1661 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1662 alias in your environment" >&2;} | |
1663 { (exit 1); exit 1; }; } | |
1664 fi | |
1665 | |
1666 test "$2" = conftest.file | |
1667 ) | |
1668 then | |
1669 # Ok. | |
1670 : | |
1671 else | |
1672 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1673 Check your system clock" >&5 | |
1674 echo "$as_me: error: newly created file is older than distributed files! | |
1675 Check your system clock" >&2;} | |
1676 { (exit 1); exit 1; }; } | |
1677 fi | |
1678 echo "$as_me:$LINENO: result: yes" >&5 | |
1679 echo "${ECHO_T}yes" >&6 | |
1680 test "$program_prefix" != NONE && | |
1681 program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1682 # Use a double $ so make ignores it. | |
1683 test "$program_suffix" != NONE && | |
1684 program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1685 # Double any \ or $. echo might interpret backslashes. | |
1686 # By default was `s,x,x', remove it if useless. | |
1687 cat <<\_ACEOF >conftest.sed | |
1688 s/[\\$]/&&/g;s/;s,x,x,$// | |
1689 _ACEOF | |
1690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1691 rm conftest.sed | |
1692 | |
1693 | |
1694 # expand $ac_aux_dir to an absolute path | |
1695 am_aux_dir=`cd $ac_aux_dir && pwd` | |
1696 | |
1697 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1698 # Use eval to expand $SHELL | |
1699 if eval "$MISSING --run true"; then | |
1700 am_missing_run="$MISSING --run " | |
1701 else | |
1702 am_missing_run= | |
1703 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1704 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1705 fi | |
1706 | |
1707 for ac_prog in gawk mawk nawk awk | |
1708 do | |
1709 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1710 set dummy $ac_prog; ac_word=$2 | |
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1713 if test "${ac_cv_prog_AWK+set}" = set; then | |
1714 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1715 else | |
1716 if test -n "$AWK"; then | |
1717 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1718 else | |
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1720 for as_dir in $PATH | |
1721 do | |
1722 IFS=$as_save_IFS | |
1723 test -z "$as_dir" && as_dir=. | |
1724 for ac_exec_ext in '' $ac_executable_extensions; do | |
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1726 ac_cv_prog_AWK="$ac_prog" | |
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1728 break 2 | |
1729 fi | |
1730 done | |
1731 done | |
1732 | |
1733 fi | |
1734 fi | |
1735 AWK=$ac_cv_prog_AWK | |
1736 if test -n "$AWK"; then | |
1737 echo "$as_me:$LINENO: result: $AWK" >&5 | |
1738 echo "${ECHO_T}$AWK" >&6 | |
1739 else | |
1740 echo "$as_me:$LINENO: result: no" >&5 | |
1741 echo "${ECHO_T}no" >&6 | |
1742 fi | |
1743 | |
1744 test -n "$AWK" && break | |
1745 done | |
1746 | |
1747 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1748 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1750 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1751 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1752 else | |
1753 cat >conftest.make <<\_ACEOF | |
1754 all: | |
1755 @echo 'ac_maketemp="$(MAKE)"' | |
1756 _ACEOF | |
1757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1758 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1759 if test -n "$ac_maketemp"; then | |
1760 eval ac_cv_prog_make_${ac_make}_set=yes | |
1761 else | |
1762 eval ac_cv_prog_make_${ac_make}_set=no | |
1763 fi | |
1764 rm -f conftest.make | |
1765 fi | |
1766 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1767 echo "$as_me:$LINENO: result: yes" >&5 | |
1768 echo "${ECHO_T}yes" >&6 | |
1769 SET_MAKE= | |
1770 else | |
1771 echo "$as_me:$LINENO: result: no" >&5 | |
1772 echo "${ECHO_T}no" >&6 | |
1773 SET_MAKE="MAKE=${MAKE-make}" | |
1774 fi | |
1775 | |
1776 rm -rf .tst 2>/dev/null | |
1777 mkdir .tst 2>/dev/null | |
1778 if test -d .tst; then | |
1779 am__leading_dot=. | |
1780 else | |
1781 am__leading_dot=_ | |
1782 fi | |
1783 rmdir .tst 2>/dev/null | |
1784 | |
1785 # test to see if srcdir already configured | |
1786 if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1787 test -f $srcdir/config.status; then | |
1788 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1789 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1790 { (exit 1); exit 1; }; } | |
1791 fi | |
1792 | |
1793 # test whether we have cygpath | |
1794 if test -z "$CYGPATH_W"; then | |
1795 if (cygpath --version) >/dev/null 2>/dev/null; then | |
1796 CYGPATH_W='cygpath -w' | |
1797 else | |
1798 CYGPATH_W=echo | |
1799 fi | |
1800 fi | |
1801 | |
1802 | |
1803 # Define the identity of the package. | |
1804 PACKAGE=flac | |
1805 VERSION=1.2.1 | |
1806 | |
1807 | |
1808 cat >>confdefs.h <<_ACEOF | |
1809 #define PACKAGE "$PACKAGE" | |
1810 _ACEOF | |
1811 | |
1812 | |
1813 cat >>confdefs.h <<_ACEOF | |
1814 #define VERSION "$VERSION" | |
1815 _ACEOF | |
1816 | |
1817 # Some tools Automake needs. | |
1818 | |
1819 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1820 | |
1821 | |
1822 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1823 | |
1824 | |
1825 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1826 | |
1827 | |
1828 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1829 | |
1830 | |
1831 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1832 | |
1833 | |
1834 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1835 | |
1836 install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1837 | |
1838 # Installed binaries are usually stripped using `strip' when the user | |
1839 # run `make install-strip'. However `strip' might not be the right | |
1840 # tool to use in cross-compilation environments, therefore Automake | |
1841 # will honor the `STRIP' environment variable to overrule this program. | |
1842 if test "$cross_compiling" != no; then | |
1843 if test -n "$ac_tool_prefix"; then | |
1844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1845 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1848 if test "${ac_cv_prog_STRIP+set}" = set; then | |
1849 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1850 else | |
1851 if test -n "$STRIP"; then | |
1852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1853 else | |
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1855 for as_dir in $PATH | |
1856 do | |
1857 IFS=$as_save_IFS | |
1858 test -z "$as_dir" && as_dir=. | |
1859 for ac_exec_ext in '' $ac_executable_extensions; do | |
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1861 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1863 break 2 | |
1864 fi | |
1865 done | |
1866 done | |
1867 | |
1868 fi | |
1869 fi | |
1870 STRIP=$ac_cv_prog_STRIP | |
1871 if test -n "$STRIP"; then | |
1872 echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1873 echo "${ECHO_T}$STRIP" >&6 | |
1874 else | |
1875 echo "$as_me:$LINENO: result: no" >&5 | |
1876 echo "${ECHO_T}no" >&6 | |
1877 fi | |
1878 | |
1879 fi | |
1880 if test -z "$ac_cv_prog_STRIP"; then | |
1881 ac_ct_STRIP=$STRIP | |
1882 # Extract the first word of "strip", so it can be a program name with args. | |
1883 set dummy strip; ac_word=$2 | |
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1886 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1887 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1888 else | |
1889 if test -n "$ac_ct_STRIP"; then | |
1890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1891 else | |
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1893 for as_dir in $PATH | |
1894 do | |
1895 IFS=$as_save_IFS | |
1896 test -z "$as_dir" && as_dir=. | |
1897 for ac_exec_ext in '' $ac_executable_extensions; do | |
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1899 ac_cv_prog_ac_ct_STRIP="strip" | |
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1901 break 2 | |
1902 fi | |
1903 done | |
1904 done | |
1905 | |
1906 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1907 fi | |
1908 fi | |
1909 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1910 if test -n "$ac_ct_STRIP"; then | |
1911 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1912 echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1913 else | |
1914 echo "$as_me:$LINENO: result: no" >&5 | |
1915 echo "${ECHO_T}no" >&6 | |
1916 fi | |
1917 | |
1918 STRIP=$ac_ct_STRIP | |
1919 else | |
1920 STRIP="$ac_cv_prog_STRIP" | |
1921 fi | |
1922 | |
1923 fi | |
1924 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1925 | |
1926 # We need awk for the "check" target. The system "awk" is bad on | |
1927 # some platforms. | |
1928 | |
1929 | |
1930 | |
1931 | |
1932 # Don't automagically regenerate autoconf/automake generated files unless | |
1933 # explicitly requested. Eases autobuilding -mdz | |
1934 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1935 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1936 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
1937 if test "${enable_maintainer_mode+set}" = set; then | |
1938 enableval="$enable_maintainer_mode" | |
1939 USE_MAINTAINER_MODE=$enableval | |
1940 else | |
1941 USE_MAINTAINER_MODE=no | |
1942 fi; | |
1943 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1944 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
1945 | |
1946 | |
1947 if test $USE_MAINTAINER_MODE = yes; then | |
1948 MAINTAINER_MODE_TRUE= | |
1949 MAINTAINER_MODE_FALSE='#' | |
1950 else | |
1951 MAINTAINER_MODE_TRUE='#' | |
1952 MAINTAINER_MODE_FALSE= | |
1953 fi | |
1954 | |
1955 MAINT=$MAINTAINER_MODE_TRUE | |
1956 | |
1957 | |
1958 | |
1959 # We need two libtools, one that builds both shared and static, and | |
1960 # one that builds only static. This is because the resulting libtool | |
1961 # does not allow us to choose which to build at runtime. | |
1962 # Check whether --enable-shared or --disable-shared was given. | |
1963 if test "${enable_shared+set}" = set; then | |
1964 enableval="$enable_shared" | |
1965 p=${PACKAGE-default} | |
1966 case $enableval in | |
1967 yes) enable_shared=yes ;; | |
1968 no) enable_shared=no ;; | |
1969 *) | |
1970 enable_shared=no | |
1971 # Look at the argument we got. We use all the common list separators. | |
1972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
1973 for pkg in $enableval; do | |
1974 IFS="$lt_save_ifs" | |
1975 if test "X$pkg" = "X$p"; then | |
1976 enable_shared=yes | |
1977 fi | |
1978 done | |
1979 IFS="$lt_save_ifs" | |
1980 ;; | |
1981 esac | |
1982 else | |
1983 enable_shared=yes | |
1984 fi; | |
1985 | |
1986 # Check whether --enable-static or --disable-static was given. | |
1987 if test "${enable_static+set}" = set; then | |
1988 enableval="$enable_static" | |
1989 p=${PACKAGE-default} | |
1990 case $enableval in | |
1991 yes) enable_static=yes ;; | |
1992 no) enable_static=no ;; | |
1993 *) | |
1994 enable_static=no | |
1995 # Look at the argument we got. We use all the common list separators. | |
1996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
1997 for pkg in $enableval; do | |
1998 IFS="$lt_save_ifs" | |
1999 if test "X$pkg" = "X$p"; then | |
2000 enable_static=yes | |
2001 fi | |
2002 done | |
2003 IFS="$lt_save_ifs" | |
2004 ;; | |
2005 esac | |
2006 else | |
2007 enable_static=yes | |
2008 fi; | |
2009 | |
2010 # Check whether --enable-fast-install or --disable-fast-install was given. | |
2011 if test "${enable_fast_install+set}" = set; then | |
2012 enableval="$enable_fast_install" | |
2013 p=${PACKAGE-default} | |
2014 case $enableval in | |
2015 yes) enable_fast_install=yes ;; | |
2016 no) enable_fast_install=no ;; | |
2017 *) | |
2018 enable_fast_install=no | |
2019 # Look at the argument we got. We use all the common list separators. | |
2020 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
2021 for pkg in $enableval; do | |
2022 IFS="$lt_save_ifs" | |
2023 if test "X$pkg" = "X$p"; then | |
2024 enable_fast_install=yes | |
2025 fi | |
2026 done | |
2027 IFS="$lt_save_ifs" | |
2028 ;; | |
2029 esac | |
2030 else | |
2031 enable_fast_install=yes | |
2032 fi; | |
2033 | |
2034 # Make sure we can run config.sub. | |
2035 $ac_config_sub sun4 >/dev/null 2>&1 || | |
2036 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2037 echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
2038 { (exit 1); exit 1; }; } | |
2039 | |
2040 echo "$as_me:$LINENO: checking build system type" >&5 | |
2041 echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
2042 if test "${ac_cv_build+set}" = set; then | |
2043 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2044 else | |
2045 ac_cv_build_alias=$build_alias | |
2046 test -z "$ac_cv_build_alias" && | |
2047 ac_cv_build_alias=`$ac_config_guess` | |
2048 test -z "$ac_cv_build_alias" && | |
2049 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2051 { (exit 1); exit 1; }; } | |
2052 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
2053 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2054 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
2055 { (exit 1); exit 1; }; } | |
2056 | |
2057 fi | |
2058 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2059 echo "${ECHO_T}$ac_cv_build" >&6 | |
2060 build=$ac_cv_build | |
2061 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2062 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2063 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2064 | |
2065 | |
2066 echo "$as_me:$LINENO: checking host system type" >&5 | |
2067 echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
2068 if test "${ac_cv_host+set}" = set; then | |
2069 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2070 else | |
2071 ac_cv_host_alias=$host_alias | |
2072 test -z "$ac_cv_host_alias" && | |
2073 ac_cv_host_alias=$ac_cv_build_alias | |
2074 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2075 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2076 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
2077 { (exit 1); exit 1; }; } | |
2078 | |
2079 fi | |
2080 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2081 echo "${ECHO_T}$ac_cv_host" >&6 | |
2082 host=$ac_cv_host | |
2083 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2084 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2085 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2086 | |
2087 | |
2088 DEPDIR="${am__leading_dot}deps" | |
2089 | |
2090 ac_config_commands="$ac_config_commands depfiles" | |
2091 | |
2092 | |
2093 am_make=${MAKE-make} | |
2094 cat > confinc << 'END' | |
2095 am__doit: | |
2096 @echo done | |
2097 .PHONY: am__doit | |
2098 END | |
2099 # If we don't find an include directive, just comment out the code. | |
2100 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2101 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2102 am__include="#" | |
2103 am__quote= | |
2104 _am_result=none | |
2105 # First try GNU make style include. | |
2106 echo "include confinc" > confmf | |
2107 # We grep out `Entering directory' and `Leaving directory' | |
2108 # messages which can occur if `w' ends up in MAKEFLAGS. | |
2109 # In particular we don't look at `^make:' because GNU make might | |
2110 # be invoked under some other name (usually "gmake"), in which | |
2111 # case it prints its new name instead of `make'. | |
2112 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2113 am__include=include | |
2114 am__quote= | |
2115 _am_result=GNU | |
2116 fi | |
2117 # Now try BSD make style include. | |
2118 if test "$am__include" = "#"; then | |
2119 echo '.include "confinc"' > confmf | |
2120 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2121 am__include=.include | |
2122 am__quote="\"" | |
2123 _am_result=BSD | |
2124 fi | |
2125 fi | |
2126 | |
2127 | |
2128 echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2129 echo "${ECHO_T}$_am_result" >&6 | |
2130 rm -f confinc confmf | |
2131 | |
2132 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2133 if test "${enable_dependency_tracking+set}" = set; then | |
2134 enableval="$enable_dependency_tracking" | |
2135 | |
2136 fi; | |
2137 if test "x$enable_dependency_tracking" != xno; then | |
2138 am_depcomp="$ac_aux_dir/depcomp" | |
2139 AMDEPBACKSLASH='\' | |
2140 fi | |
2141 | |
2142 | |
2143 if test "x$enable_dependency_tracking" != xno; then | |
2144 AMDEP_TRUE= | |
2145 AMDEP_FALSE='#' | |
2146 else | |
2147 AMDEP_TRUE='#' | |
2148 AMDEP_FALSE= | |
2149 fi | |
2150 | |
2151 | |
2152 | |
2153 ac_ext=c | |
2154 ac_cpp='$CPP $CPPFLAGS' | |
2155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2157 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2158 if test -n "$ac_tool_prefix"; then | |
2159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2160 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2161 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2163 if test "${ac_cv_prog_CC+set}" = set; then | |
2164 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2165 else | |
2166 if test -n "$CC"; then | |
2167 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2168 else | |
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2170 for as_dir in $PATH | |
2171 do | |
2172 IFS=$as_save_IFS | |
2173 test -z "$as_dir" && as_dir=. | |
2174 for ac_exec_ext in '' $ac_executable_extensions; do | |
2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2176 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2178 break 2 | |
2179 fi | |
2180 done | |
2181 done | |
2182 | |
2183 fi | |
2184 fi | |
2185 CC=$ac_cv_prog_CC | |
2186 if test -n "$CC"; then | |
2187 echo "$as_me:$LINENO: result: $CC" >&5 | |
2188 echo "${ECHO_T}$CC" >&6 | |
2189 else | |
2190 echo "$as_me:$LINENO: result: no" >&5 | |
2191 echo "${ECHO_T}no" >&6 | |
2192 fi | |
2193 | |
2194 fi | |
2195 if test -z "$ac_cv_prog_CC"; then | |
2196 ac_ct_CC=$CC | |
2197 # Extract the first word of "gcc", so it can be a program name with args. | |
2198 set dummy gcc; ac_word=$2 | |
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2202 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2203 else | |
2204 if test -n "$ac_ct_CC"; then | |
2205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2206 else | |
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2208 for as_dir in $PATH | |
2209 do | |
2210 IFS=$as_save_IFS | |
2211 test -z "$as_dir" && as_dir=. | |
2212 for ac_exec_ext in '' $ac_executable_extensions; do | |
2213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2214 ac_cv_prog_ac_ct_CC="gcc" | |
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2216 break 2 | |
2217 fi | |
2218 done | |
2219 done | |
2220 | |
2221 fi | |
2222 fi | |
2223 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2224 if test -n "$ac_ct_CC"; then | |
2225 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2226 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2227 else | |
2228 echo "$as_me:$LINENO: result: no" >&5 | |
2229 echo "${ECHO_T}no" >&6 | |
2230 fi | |
2231 | |
2232 CC=$ac_ct_CC | |
2233 else | |
2234 CC="$ac_cv_prog_CC" | |
2235 fi | |
2236 | |
2237 if test -z "$CC"; then | |
2238 if test -n "$ac_tool_prefix"; then | |
2239 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2240 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2241 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2243 if test "${ac_cv_prog_CC+set}" = set; then | |
2244 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2245 else | |
2246 if test -n "$CC"; then | |
2247 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2248 else | |
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2250 for as_dir in $PATH | |
2251 do | |
2252 IFS=$as_save_IFS | |
2253 test -z "$as_dir" && as_dir=. | |
2254 for ac_exec_ext in '' $ac_executable_extensions; do | |
2255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2256 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2258 break 2 | |
2259 fi | |
2260 done | |
2261 done | |
2262 | |
2263 fi | |
2264 fi | |
2265 CC=$ac_cv_prog_CC | |
2266 if test -n "$CC"; then | |
2267 echo "$as_me:$LINENO: result: $CC" >&5 | |
2268 echo "${ECHO_T}$CC" >&6 | |
2269 else | |
2270 echo "$as_me:$LINENO: result: no" >&5 | |
2271 echo "${ECHO_T}no" >&6 | |
2272 fi | |
2273 | |
2274 fi | |
2275 if test -z "$ac_cv_prog_CC"; then | |
2276 ac_ct_CC=$CC | |
2277 # Extract the first word of "cc", so it can be a program name with args. | |
2278 set dummy cc; ac_word=$2 | |
2279 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2281 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2282 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2283 else | |
2284 if test -n "$ac_ct_CC"; then | |
2285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2286 else | |
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2288 for as_dir in $PATH | |
2289 do | |
2290 IFS=$as_save_IFS | |
2291 test -z "$as_dir" && as_dir=. | |
2292 for ac_exec_ext in '' $ac_executable_extensions; do | |
2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2294 ac_cv_prog_ac_ct_CC="cc" | |
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2296 break 2 | |
2297 fi | |
2298 done | |
2299 done | |
2300 | |
2301 fi | |
2302 fi | |
2303 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2304 if test -n "$ac_ct_CC"; then | |
2305 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2306 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2307 else | |
2308 echo "$as_me:$LINENO: result: no" >&5 | |
2309 echo "${ECHO_T}no" >&6 | |
2310 fi | |
2311 | |
2312 CC=$ac_ct_CC | |
2313 else | |
2314 CC="$ac_cv_prog_CC" | |
2315 fi | |
2316 | |
2317 fi | |
2318 if test -z "$CC"; then | |
2319 # Extract the first word of "cc", so it can be a program name with args. | |
2320 set dummy cc; ac_word=$2 | |
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2323 if test "${ac_cv_prog_CC+set}" = set; then | |
2324 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2325 else | |
2326 if test -n "$CC"; then | |
2327 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2328 else | |
2329 ac_prog_rejected=no | |
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2331 for as_dir in $PATH | |
2332 do | |
2333 IFS=$as_save_IFS | |
2334 test -z "$as_dir" && as_dir=. | |
2335 for ac_exec_ext in '' $ac_executable_extensions; do | |
2336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2337 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2338 ac_prog_rejected=yes | |
2339 continue | |
2340 fi | |
2341 ac_cv_prog_CC="cc" | |
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2343 break 2 | |
2344 fi | |
2345 done | |
2346 done | |
2347 | |
2348 if test $ac_prog_rejected = yes; then | |
2349 # We found a bogon in the path, so make sure we never use it. | |
2350 set dummy $ac_cv_prog_CC | |
2351 shift | |
2352 if test $# != 0; then | |
2353 # We chose a different compiler from the bogus one. | |
2354 # However, it has the same basename, so the bogon will be chosen | |
2355 # first if we set CC to just the basename; use the full file name. | |
2356 shift | |
2357 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2358 fi | |
2359 fi | |
2360 fi | |
2361 fi | |
2362 CC=$ac_cv_prog_CC | |
2363 if test -n "$CC"; then | |
2364 echo "$as_me:$LINENO: result: $CC" >&5 | |
2365 echo "${ECHO_T}$CC" >&6 | |
2366 else | |
2367 echo "$as_me:$LINENO: result: no" >&5 | |
2368 echo "${ECHO_T}no" >&6 | |
2369 fi | |
2370 | |
2371 fi | |
2372 if test -z "$CC"; then | |
2373 if test -n "$ac_tool_prefix"; then | |
2374 for ac_prog in cl | |
2375 do | |
2376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2378 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2380 if test "${ac_cv_prog_CC+set}" = set; then | |
2381 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2382 else | |
2383 if test -n "$CC"; then | |
2384 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2385 else | |
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2387 for as_dir in $PATH | |
2388 do | |
2389 IFS=$as_save_IFS | |
2390 test -z "$as_dir" && as_dir=. | |
2391 for ac_exec_ext in '' $ac_executable_extensions; do | |
2392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2395 break 2 | |
2396 fi | |
2397 done | |
2398 done | |
2399 | |
2400 fi | |
2401 fi | |
2402 CC=$ac_cv_prog_CC | |
2403 if test -n "$CC"; then | |
2404 echo "$as_me:$LINENO: result: $CC" >&5 | |
2405 echo "${ECHO_T}$CC" >&6 | |
2406 else | |
2407 echo "$as_me:$LINENO: result: no" >&5 | |
2408 echo "${ECHO_T}no" >&6 | |
2409 fi | |
2410 | |
2411 test -n "$CC" && break | |
2412 done | |
2413 fi | |
2414 if test -z "$CC"; then | |
2415 ac_ct_CC=$CC | |
2416 for ac_prog in cl | |
2417 do | |
2418 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2419 set dummy $ac_prog; ac_word=$2 | |
2420 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2422 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2423 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2424 else | |
2425 if test -n "$ac_ct_CC"; then | |
2426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2427 else | |
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2429 for as_dir in $PATH | |
2430 do | |
2431 IFS=$as_save_IFS | |
2432 test -z "$as_dir" && as_dir=. | |
2433 for ac_exec_ext in '' $ac_executable_extensions; do | |
2434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2435 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2437 break 2 | |
2438 fi | |
2439 done | |
2440 done | |
2441 | |
2442 fi | |
2443 fi | |
2444 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2445 if test -n "$ac_ct_CC"; then | |
2446 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2447 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2448 else | |
2449 echo "$as_me:$LINENO: result: no" >&5 | |
2450 echo "${ECHO_T}no" >&6 | |
2451 fi | |
2452 | |
2453 test -n "$ac_ct_CC" && break | |
2454 done | |
2455 | |
2456 CC=$ac_ct_CC | |
2457 fi | |
2458 | |
2459 fi | |
2460 | |
2461 | |
2462 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2463 See \`config.log' for more details." >&5 | |
2464 echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2465 See \`config.log' for more details." >&2;} | |
2466 { (exit 1); exit 1; }; } | |
2467 | |
2468 # Provide some information about the compiler. | |
2469 echo "$as_me:$LINENO:" \ | |
2470 "checking for C compiler version" >&5 | |
2471 ac_compiler=`set X $ac_compile; echo $2` | |
2472 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2473 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2474 ac_status=$? | |
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2476 (exit $ac_status); } | |
2477 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2478 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2479 ac_status=$? | |
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2481 (exit $ac_status); } | |
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2483 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2484 ac_status=$? | |
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2486 (exit $ac_status); } | |
2487 | |
2488 cat >conftest.$ac_ext <<_ACEOF | |
2489 /* confdefs.h. */ | |
2490 _ACEOF | |
2491 cat confdefs.h >>conftest.$ac_ext | |
2492 cat >>conftest.$ac_ext <<_ACEOF | |
2493 /* end confdefs.h. */ | |
2494 | |
2495 int | |
2496 main () | |
2497 { | |
2498 | |
2499 ; | |
2500 return 0; | |
2501 } | |
2502 _ACEOF | |
2503 ac_clean_files_save=$ac_clean_files | |
2504 ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2505 # Try to create an executable without -o first, disregard a.out. | |
2506 # It will help us diagnose broken compilers, and finding out an intuition | |
2507 # of exeext. | |
2508 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2509 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2510 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2511 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2512 (eval $ac_link_default) 2>&5 | |
2513 ac_status=$? | |
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2515 (exit $ac_status); }; then | |
2516 # Find the output, starting from the most likely. This scheme is | |
2517 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2518 # resort. | |
2519 | |
2520 # Be careful to initialize this variable, since it used to be cached. | |
2521 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2522 ac_cv_exeext= | |
2523 # b.out is created by i960 compilers. | |
2524 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2525 do | |
2526 test -f "$ac_file" || continue | |
2527 case $ac_file in | |
2528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2529 ;; | |
2530 conftest.$ac_ext ) | |
2531 # This is the source file. | |
2532 ;; | |
2533 [ab].out ) | |
2534 # We found the default executable, but exeext='' is most | |
2535 # certainly right. | |
2536 break;; | |
2537 *.* ) | |
2538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2539 # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2540 # but it would be cool to find out if it's true. Does anybody | |
2541 # maintain Libtool? --akim. | |
2542 export ac_cv_exeext | |
2543 break;; | |
2544 * ) | |
2545 break;; | |
2546 esac | |
2547 done | |
2548 else | |
2549 echo "$as_me: failed program was:" >&5 | |
2550 sed 's/^/| /' conftest.$ac_ext >&5 | |
2551 | |
2552 { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2553 See \`config.log' for more details." >&5 | |
2554 echo "$as_me: error: C compiler cannot create executables | |
2555 See \`config.log' for more details." >&2;} | |
2556 { (exit 77); exit 77; }; } | |
2557 fi | |
2558 | |
2559 ac_exeext=$ac_cv_exeext | |
2560 echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2561 echo "${ECHO_T}$ac_file" >&6 | |
2562 | |
2563 # Check the compiler produces executables we can run. If not, either | |
2564 # the compiler is broken, or we cross compile. | |
2565 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2566 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2567 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2568 # If not cross compiling, check that we can run a simple program. | |
2569 if test "$cross_compiling" != yes; then | |
2570 if { ac_try='./$ac_file' | |
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2572 (eval $ac_try) 2>&5 | |
2573 ac_status=$? | |
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2575 (exit $ac_status); }; }; then | |
2576 cross_compiling=no | |
2577 else | |
2578 if test "$cross_compiling" = maybe; then | |
2579 cross_compiling=yes | |
2580 else | |
2581 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2582 If you meant to cross compile, use \`--host'. | |
2583 See \`config.log' for more details." >&5 | |
2584 echo "$as_me: error: cannot run C compiled programs. | |
2585 If you meant to cross compile, use \`--host'. | |
2586 See \`config.log' for more details." >&2;} | |
2587 { (exit 1); exit 1; }; } | |
2588 fi | |
2589 fi | |
2590 fi | |
2591 echo "$as_me:$LINENO: result: yes" >&5 | |
2592 echo "${ECHO_T}yes" >&6 | |
2593 | |
2594 rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2595 ac_clean_files=$ac_clean_files_save | |
2596 # Check the compiler produces executables we can run. If not, either | |
2597 # the compiler is broken, or we cross compile. | |
2598 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2599 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2600 echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2601 echo "${ECHO_T}$cross_compiling" >&6 | |
2602 | |
2603 echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2604 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2606 (eval $ac_link) 2>&5 | |
2607 ac_status=$? | |
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2609 (exit $ac_status); }; then | |
2610 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2611 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2612 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2613 # `rm'. | |
2614 for ac_file in conftest.exe conftest conftest.*; do | |
2615 test -f "$ac_file" || continue | |
2616 case $ac_file in | |
2617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2618 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2619 export ac_cv_exeext | |
2620 break;; | |
2621 * ) break;; | |
2622 esac | |
2623 done | |
2624 else | |
2625 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2626 See \`config.log' for more details." >&5 | |
2627 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2628 See \`config.log' for more details." >&2;} | |
2629 { (exit 1); exit 1; }; } | |
2630 fi | |
2631 | |
2632 rm -f conftest$ac_cv_exeext | |
2633 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2634 echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2635 | |
2636 rm -f conftest.$ac_ext | |
2637 EXEEXT=$ac_cv_exeext | |
2638 ac_exeext=$EXEEXT | |
2639 echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2640 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2641 if test "${ac_cv_objext+set}" = set; then | |
2642 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2643 else | |
2644 cat >conftest.$ac_ext <<_ACEOF | |
2645 /* confdefs.h. */ | |
2646 _ACEOF | |
2647 cat confdefs.h >>conftest.$ac_ext | |
2648 cat >>conftest.$ac_ext <<_ACEOF | |
2649 /* end confdefs.h. */ | |
2650 | |
2651 int | |
2652 main () | |
2653 { | |
2654 | |
2655 ; | |
2656 return 0; | |
2657 } | |
2658 _ACEOF | |
2659 rm -f conftest.o conftest.obj | |
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2661 (eval $ac_compile) 2>&5 | |
2662 ac_status=$? | |
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2664 (exit $ac_status); }; then | |
2665 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2666 case $ac_file in | |
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2669 break;; | |
2670 esac | |
2671 done | |
2672 else | |
2673 echo "$as_me: failed program was:" >&5 | |
2674 sed 's/^/| /' conftest.$ac_ext >&5 | |
2675 | |
2676 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2677 See \`config.log' for more details." >&5 | |
2678 echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2679 See \`config.log' for more details." >&2;} | |
2680 { (exit 1); exit 1; }; } | |
2681 fi | |
2682 | |
2683 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2684 fi | |
2685 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2686 echo "${ECHO_T}$ac_cv_objext" >&6 | |
2687 OBJEXT=$ac_cv_objext | |
2688 ac_objext=$OBJEXT | |
2689 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2690 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2691 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2692 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2693 else | |
2694 cat >conftest.$ac_ext <<_ACEOF | |
2695 /* confdefs.h. */ | |
2696 _ACEOF | |
2697 cat confdefs.h >>conftest.$ac_ext | |
2698 cat >>conftest.$ac_ext <<_ACEOF | |
2699 /* end confdefs.h. */ | |
2700 | |
2701 int | |
2702 main () | |
2703 { | |
2704 #ifndef __GNUC__ | |
2705 choke me | |
2706 #endif | |
2707 | |
2708 ; | |
2709 return 0; | |
2710 } | |
2711 _ACEOF | |
2712 rm -f conftest.$ac_objext | |
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2714 (eval $ac_compile) 2>conftest.er1 | |
2715 ac_status=$? | |
2716 grep -v '^ *+' conftest.er1 >conftest.err | |
2717 rm -f conftest.er1 | |
2718 cat conftest.err >&5 | |
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2720 (exit $ac_status); } && | |
2721 { ac_try='test -z "$ac_c_werror_flag" | |
2722 || test ! -s conftest.err' | |
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2724 (eval $ac_try) 2>&5 | |
2725 ac_status=$? | |
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2727 (exit $ac_status); }; } && | |
2728 { ac_try='test -s conftest.$ac_objext' | |
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2730 (eval $ac_try) 2>&5 | |
2731 ac_status=$? | |
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2733 (exit $ac_status); }; }; then | |
2734 ac_compiler_gnu=yes | |
2735 else | |
2736 echo "$as_me: failed program was:" >&5 | |
2737 sed 's/^/| /' conftest.$ac_ext >&5 | |
2738 | |
2739 ac_compiler_gnu=no | |
2740 fi | |
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2742 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2743 | |
2744 fi | |
2745 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2746 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2747 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2748 ac_test_CFLAGS=${CFLAGS+set} | |
2749 ac_save_CFLAGS=$CFLAGS | |
2750 CFLAGS="-g" | |
2751 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2752 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2753 if test "${ac_cv_prog_cc_g+set}" = set; then | |
2754 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2755 else | |
2756 cat >conftest.$ac_ext <<_ACEOF | |
2757 /* confdefs.h. */ | |
2758 _ACEOF | |
2759 cat confdefs.h >>conftest.$ac_ext | |
2760 cat >>conftest.$ac_ext <<_ACEOF | |
2761 /* end confdefs.h. */ | |
2762 | |
2763 int | |
2764 main () | |
2765 { | |
2766 | |
2767 ; | |
2768 return 0; | |
2769 } | |
2770 _ACEOF | |
2771 rm -f conftest.$ac_objext | |
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2773 (eval $ac_compile) 2>conftest.er1 | |
2774 ac_status=$? | |
2775 grep -v '^ *+' conftest.er1 >conftest.err | |
2776 rm -f conftest.er1 | |
2777 cat conftest.err >&5 | |
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2779 (exit $ac_status); } && | |
2780 { ac_try='test -z "$ac_c_werror_flag" | |
2781 || test ! -s conftest.err' | |
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2783 (eval $ac_try) 2>&5 | |
2784 ac_status=$? | |
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2786 (exit $ac_status); }; } && | |
2787 { ac_try='test -s conftest.$ac_objext' | |
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2789 (eval $ac_try) 2>&5 | |
2790 ac_status=$? | |
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2792 (exit $ac_status); }; }; then | |
2793 ac_cv_prog_cc_g=yes | |
2794 else | |
2795 echo "$as_me: failed program was:" >&5 | |
2796 sed 's/^/| /' conftest.$ac_ext >&5 | |
2797 | |
2798 ac_cv_prog_cc_g=no | |
2799 fi | |
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2801 fi | |
2802 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2803 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2804 if test "$ac_test_CFLAGS" = set; then | |
2805 CFLAGS=$ac_save_CFLAGS | |
2806 elif test $ac_cv_prog_cc_g = yes; then | |
2807 if test "$GCC" = yes; then | |
2808 CFLAGS="-g -O2" | |
2809 else | |
2810 CFLAGS="-g" | |
2811 fi | |
2812 else | |
2813 if test "$GCC" = yes; then | |
2814 CFLAGS="-O2" | |
2815 else | |
2816 CFLAGS= | |
2817 fi | |
2818 fi | |
2819 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2820 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2821 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2822 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2823 else | |
2824 ac_cv_prog_cc_stdc=no | |
2825 ac_save_CC=$CC | |
2826 cat >conftest.$ac_ext <<_ACEOF | |
2827 /* confdefs.h. */ | |
2828 _ACEOF | |
2829 cat confdefs.h >>conftest.$ac_ext | |
2830 cat >>conftest.$ac_ext <<_ACEOF | |
2831 /* end confdefs.h. */ | |
2832 #include <stdarg.h> | |
2833 #include <stdio.h> | |
2834 #include <sys/types.h> | |
2835 #include <sys/stat.h> | |
2836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2837 struct buf { int x; }; | |
2838 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2839 static char *e (p, i) | |
2840 char **p; | |
2841 int i; | |
2842 { | |
2843 return p[i]; | |
2844 } | |
2845 static char *f (char * (*g) (char **, int), char **p, ...) | |
2846 { | |
2847 char *s; | |
2848 va_list v; | |
2849 va_start (v,p); | |
2850 s = g (p, va_arg (v,int)); | |
2851 va_end (v); | |
2852 return s; | |
2853 } | |
2854 | |
2855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2856 function prototypes and stuff, but not '\xHH' hex character constants. | |
2857 These don't provoke an error unfortunately, instead are silently treated | |
2858 as 'x'. The following induces an error, until -std1 is added to get | |
2859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2860 array size at least. It's necessary to write '\x00'==0 to get something | |
2861 that's true only with -std1. */ | |
2862 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2863 | |
2864 int test (int i, double x); | |
2865 struct s1 {int (*f) (int a);}; | |
2866 struct s2 {int (*f) (double a);}; | |
2867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2868 int argc; | |
2869 char **argv; | |
2870 int | |
2871 main () | |
2872 { | |
2873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2874 ; | |
2875 return 0; | |
2876 } | |
2877 _ACEOF | |
2878 # Don't try gcc -ansi; that turns off useful extensions and | |
2879 # breaks some systems' header files. | |
2880 # AIX -qlanglvl=ansi | |
2881 # Ultrix and OSF/1 -std1 | |
2882 # HP-UX 10.20 and later -Ae | |
2883 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2884 # SVR4 -Xc -D__EXTENSIONS__ | |
2885 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2886 do | |
2887 CC="$ac_save_CC $ac_arg" | |
2888 rm -f conftest.$ac_objext | |
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2890 (eval $ac_compile) 2>conftest.er1 | |
2891 ac_status=$? | |
2892 grep -v '^ *+' conftest.er1 >conftest.err | |
2893 rm -f conftest.er1 | |
2894 cat conftest.err >&5 | |
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2896 (exit $ac_status); } && | |
2897 { ac_try='test -z "$ac_c_werror_flag" | |
2898 || test ! -s conftest.err' | |
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2900 (eval $ac_try) 2>&5 | |
2901 ac_status=$? | |
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2903 (exit $ac_status); }; } && | |
2904 { ac_try='test -s conftest.$ac_objext' | |
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2906 (eval $ac_try) 2>&5 | |
2907 ac_status=$? | |
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2909 (exit $ac_status); }; }; then | |
2910 ac_cv_prog_cc_stdc=$ac_arg | |
2911 break | |
2912 else | |
2913 echo "$as_me: failed program was:" >&5 | |
2914 sed 's/^/| /' conftest.$ac_ext >&5 | |
2915 | |
2916 fi | |
2917 rm -f conftest.err conftest.$ac_objext | |
2918 done | |
2919 rm -f conftest.$ac_ext conftest.$ac_objext | |
2920 CC=$ac_save_CC | |
2921 | |
2922 fi | |
2923 | |
2924 case "x$ac_cv_prog_cc_stdc" in | |
2925 x|xno) | |
2926 echo "$as_me:$LINENO: result: none needed" >&5 | |
2927 echo "${ECHO_T}none needed" >&6 ;; | |
2928 *) | |
2929 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2930 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2931 CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2932 esac | |
2933 | |
2934 # Some people use a C++ compiler to compile C. Since we use `exit', | |
2935 # in C++ we need to declare it. In case someone uses the same compiler | |
2936 # for both compiling C and C++ we need to have the C++ compiler decide | |
2937 # the declaration of exit, since it's the most demanding environment. | |
2938 cat >conftest.$ac_ext <<_ACEOF | |
2939 #ifndef __cplusplus | |
2940 choke me | |
2941 #endif | |
2942 _ACEOF | |
2943 rm -f conftest.$ac_objext | |
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2945 (eval $ac_compile) 2>conftest.er1 | |
2946 ac_status=$? | |
2947 grep -v '^ *+' conftest.er1 >conftest.err | |
2948 rm -f conftest.er1 | |
2949 cat conftest.err >&5 | |
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2951 (exit $ac_status); } && | |
2952 { ac_try='test -z "$ac_c_werror_flag" | |
2953 || test ! -s conftest.err' | |
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2955 (eval $ac_try) 2>&5 | |
2956 ac_status=$? | |
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2958 (exit $ac_status); }; } && | |
2959 { ac_try='test -s conftest.$ac_objext' | |
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2961 (eval $ac_try) 2>&5 | |
2962 ac_status=$? | |
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2964 (exit $ac_status); }; }; then | |
2965 for ac_declaration in \ | |
2966 '' \ | |
2967 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2968 'extern "C" void std::exit (int); using std::exit;' \ | |
2969 'extern "C" void exit (int) throw ();' \ | |
2970 'extern "C" void exit (int);' \ | |
2971 'void exit (int);' | |
2972 do | |
2973 cat >conftest.$ac_ext <<_ACEOF | |
2974 /* confdefs.h. */ | |
2975 _ACEOF | |
2976 cat confdefs.h >>conftest.$ac_ext | |
2977 cat >>conftest.$ac_ext <<_ACEOF | |
2978 /* end confdefs.h. */ | |
2979 $ac_declaration | |
2980 #include <stdlib.h> | |
2981 int | |
2982 main () | |
2983 { | |
2984 exit (42); | |
2985 ; | |
2986 return 0; | |
2987 } | |
2988 _ACEOF | |
2989 rm -f conftest.$ac_objext | |
2990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2991 (eval $ac_compile) 2>conftest.er1 | |
2992 ac_status=$? | |
2993 grep -v '^ *+' conftest.er1 >conftest.err | |
2994 rm -f conftest.er1 | |
2995 cat conftest.err >&5 | |
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2997 (exit $ac_status); } && | |
2998 { ac_try='test -z "$ac_c_werror_flag" | |
2999 || test ! -s conftest.err' | |
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3001 (eval $ac_try) 2>&5 | |
3002 ac_status=$? | |
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3004 (exit $ac_status); }; } && | |
3005 { ac_try='test -s conftest.$ac_objext' | |
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3007 (eval $ac_try) 2>&5 | |
3008 ac_status=$? | |
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3010 (exit $ac_status); }; }; then | |
3011 : | |
3012 else | |
3013 echo "$as_me: failed program was:" >&5 | |
3014 sed 's/^/| /' conftest.$ac_ext >&5 | |
3015 | |
3016 continue | |
3017 fi | |
3018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3019 cat >conftest.$ac_ext <<_ACEOF | |
3020 /* confdefs.h. */ | |
3021 _ACEOF | |
3022 cat confdefs.h >>conftest.$ac_ext | |
3023 cat >>conftest.$ac_ext <<_ACEOF | |
3024 /* end confdefs.h. */ | |
3025 $ac_declaration | |
3026 int | |
3027 main () | |
3028 { | |
3029 exit (42); | |
3030 ; | |
3031 return 0; | |
3032 } | |
3033 _ACEOF | |
3034 rm -f conftest.$ac_objext | |
3035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3036 (eval $ac_compile) 2>conftest.er1 | |
3037 ac_status=$? | |
3038 grep -v '^ *+' conftest.er1 >conftest.err | |
3039 rm -f conftest.er1 | |
3040 cat conftest.err >&5 | |
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3042 (exit $ac_status); } && | |
3043 { ac_try='test -z "$ac_c_werror_flag" | |
3044 || test ! -s conftest.err' | |
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3046 (eval $ac_try) 2>&5 | |
3047 ac_status=$? | |
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3049 (exit $ac_status); }; } && | |
3050 { ac_try='test -s conftest.$ac_objext' | |
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3052 (eval $ac_try) 2>&5 | |
3053 ac_status=$? | |
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3055 (exit $ac_status); }; }; then | |
3056 break | |
3057 else | |
3058 echo "$as_me: failed program was:" >&5 | |
3059 sed 's/^/| /' conftest.$ac_ext >&5 | |
3060 | |
3061 fi | |
3062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3063 done | |
3064 rm -f conftest* | |
3065 if test -n "$ac_declaration"; then | |
3066 echo '#ifdef __cplusplus' >>confdefs.h | |
3067 echo $ac_declaration >>confdefs.h | |
3068 echo '#endif' >>confdefs.h | |
3069 fi | |
3070 | |
3071 else | |
3072 echo "$as_me: failed program was:" >&5 | |
3073 sed 's/^/| /' conftest.$ac_ext >&5 | |
3074 | |
3075 fi | |
3076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3077 ac_ext=c | |
3078 ac_cpp='$CPP $CPPFLAGS' | |
3079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3081 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3082 | |
3083 depcc="$CC" am_compiler_list= | |
3084 | |
3085 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3086 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3087 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3088 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3089 else | |
3090 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3091 # We make a subdir and do the tests there. Otherwise we can end up | |
3092 # making bogus files that we don't know about and never remove. For | |
3093 # instance it was reported that on HP-UX the gcc test will end up | |
3094 # making a dummy file named `D' -- because `-MD' means `put the output | |
3095 # in D'. | |
3096 mkdir conftest.dir | |
3097 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3098 # using a relative directory. | |
3099 cp "$am_depcomp" conftest.dir | |
3100 cd conftest.dir | |
3101 # We will build objects and dependencies in a subdirectory because | |
3102 # it helps to detect inapplicable dependency modes. For instance | |
3103 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3104 # side effect of compilation, but ICC will put the dependencies in | |
3105 # the current directory while Tru64 will put them in the object | |
3106 # directory. | |
3107 mkdir sub | |
3108 | |
3109 am_cv_CC_dependencies_compiler_type=none | |
3110 if test "$am_compiler_list" = ""; then | |
3111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3112 fi | |
3113 for depmode in $am_compiler_list; do | |
3114 # Setup a source with many dependencies, because some compilers | |
3115 # like to wrap large dependency lists on column 80 (with \), and | |
3116 # we should not choose a depcomp mode which is confused by this. | |
3117 # | |
3118 # We need to recreate these files for each test, as the compiler may | |
3119 # overwrite some of them when testing with obscure command lines. | |
3120 # This happens at least with the AIX C compiler. | |
3121 : > sub/conftest.c | |
3122 for i in 1 2 3 4 5 6; do | |
3123 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3124 : > sub/conftst$i.h | |
3125 done | |
3126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3127 | |
3128 case $depmode in | |
3129 nosideeffect) | |
3130 # after this tag, mechanisms are not by side-effect, so they'll | |
3131 # only be used when explicitly requested | |
3132 if test "x$enable_dependency_tracking" = xyes; then | |
3133 continue | |
3134 else | |
3135 break | |
3136 fi | |
3137 ;; | |
3138 none) break ;; | |
3139 esac | |
3140 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3141 # mode. It turns out that the SunPro C++ compiler does not properly | |
3142 # handle `-M -o', and we need to detect this. | |
3143 if depmode=$depmode \ | |
3144 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3146 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3147 >/dev/null 2>conftest.err && | |
3148 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3149 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3150 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3151 # icc doesn't choke on unknown options, it will just issue warnings | |
3152 # (even with -Werror). So we grep stderr for any message | |
3153 # that says an option was ignored. | |
3154 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else | |
3155 am_cv_CC_dependencies_compiler_type=$depmode | |
3156 break | |
3157 fi | |
3158 fi | |
3159 done | |
3160 | |
3161 cd .. | |
3162 rm -rf conftest.dir | |
3163 else | |
3164 am_cv_CC_dependencies_compiler_type=none | |
3165 fi | |
3166 | |
3167 fi | |
3168 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3169 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3170 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3171 | |
3172 | |
3173 | |
3174 if | |
3175 test "x$enable_dependency_tracking" != xno \ | |
3176 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3177 am__fastdepCC_TRUE= | |
3178 am__fastdepCC_FALSE='#' | |
3179 else | |
3180 am__fastdepCC_TRUE='#' | |
3181 am__fastdepCC_FALSE= | |
3182 fi | |
3183 | |
3184 | |
3185 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
3186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
3187 if test "${lt_cv_path_SED+set}" = set; then | |
3188 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3189 else | |
3190 # Loop through the user's path and test for sed and gsed. | |
3191 # Then use that list of sed's as ones to test for truncation. | |
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3193 for as_dir in $PATH | |
3194 do | |
3195 IFS=$as_save_IFS | |
3196 test -z "$as_dir" && as_dir=. | |
3197 for lt_ac_prog in sed gsed; do | |
3198 for ac_exec_ext in '' $ac_executable_extensions; do | |
3199 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
3200 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
3201 fi | |
3202 done | |
3203 done | |
3204 done | |
3205 lt_ac_max=0 | |
3206 lt_ac_count=0 | |
3207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3208 # along with /bin/sed that truncates output. | |
3209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
3210 test ! -f $lt_ac_sed && continue | |
3211 cat /dev/null > conftest.in | |
3212 lt_ac_count=0 | |
3213 echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
3214 # Check for GNU sed and select it if it is found. | |
3215 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
3216 lt_cv_path_SED=$lt_ac_sed | |
3217 break | |
3218 fi | |
3219 while true; do | |
3220 cat conftest.in conftest.in >conftest.tmp | |
3221 mv conftest.tmp conftest.in | |
3222 cp conftest.in conftest.nl | |
3223 echo >>conftest.nl | |
3224 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
3225 cmp -s conftest.out conftest.nl || break | |
3226 # 10000 chars as input seems more than enough | |
3227 test $lt_ac_count -gt 10 && break | |
3228 lt_ac_count=`expr $lt_ac_count + 1` | |
3229 if test $lt_ac_count -gt $lt_ac_max; then | |
3230 lt_ac_max=$lt_ac_count | |
3231 lt_cv_path_SED=$lt_ac_sed | |
3232 fi | |
3233 done | |
3234 done | |
3235 | |
3236 fi | |
3237 | |
3238 SED=$lt_cv_path_SED | |
3239 echo "$as_me:$LINENO: result: $SED" >&5 | |
3240 echo "${ECHO_T}$SED" >&6 | |
3241 | |
3242 echo "$as_me:$LINENO: checking for egrep" >&5 | |
3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3244 if test "${ac_cv_prog_egrep+set}" = set; then | |
3245 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3246 else | |
3247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3248 then ac_cv_prog_egrep='grep -E' | |
3249 else ac_cv_prog_egrep='egrep' | |
3250 fi | |
3251 fi | |
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3254 EGREP=$ac_cv_prog_egrep | |
3255 | |
3256 | |
3257 | |
3258 # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3259 if test "${with_gnu_ld+set}" = set; then | |
3260 withval="$with_gnu_ld" | |
3261 test "$withval" = no || with_gnu_ld=yes | |
3262 else | |
3263 with_gnu_ld=no | |
3264 fi; | |
3265 ac_prog=ld | |
3266 if test "$GCC" = yes; then | |
3267 # Check if gcc -print-prog-name=ld gives a path. | |
3268 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
3269 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
3270 case $host in | |
3271 *-*-mingw*) | |
3272 # gcc leaves a trailing carriage return which upsets mingw | |
3273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3274 *) | |
3275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3276 esac | |
3277 case $ac_prog in | |
3278 # Accept absolute paths. | |
3279 [\\/]* | ?:[\\/]*) | |
3280 re_direlt='/[^/][^/]*/\.\./' | |
3281 # Canonicalize the pathname of ld | |
3282 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
3283 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3284 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
3285 done | |
3286 test -z "$LD" && LD="$ac_prog" | |
3287 ;; | |
3288 "") | |
3289 # If it fails, then pretend we aren't using GCC. | |
3290 ac_prog=ld | |
3291 ;; | |
3292 *) | |
3293 # If it is relative, then search for the first ld in PATH. | |
3294 with_gnu_ld=unknown | |
3295 ;; | |
3296 esac | |
3297 elif test "$with_gnu_ld" = yes; then | |
3298 echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3300 else | |
3301 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3303 fi | |
3304 if test "${lt_cv_path_LD+set}" = set; then | |
3305 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3306 else | |
3307 if test -z "$LD"; then | |
3308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3309 for ac_dir in $PATH; do | |
3310 IFS="$lt_save_ifs" | |
3311 test -z "$ac_dir" && ac_dir=. | |
3312 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3313 lt_cv_path_LD="$ac_dir/$ac_prog" | |
3314 # Check to see if the program is GNU ld. I'd rather use --version, | |
3315 # but apparently some GNU ld's only accept -v. | |
3316 # Break only if it was the GNU/non-GNU ld that we prefer. | |
3317 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3318 *GNU* | *'with BFD'*) | |
3319 test "$with_gnu_ld" != no && break | |
3320 ;; | |
3321 *) | |
3322 test "$with_gnu_ld" != yes && break | |
3323 ;; | |
3324 esac | |
3325 fi | |
3326 done | |
3327 IFS="$lt_save_ifs" | |
3328 else | |
3329 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3330 fi | |
3331 fi | |
3332 | |
3333 LD="$lt_cv_path_LD" | |
3334 if test -n "$LD"; then | |
3335 echo "$as_me:$LINENO: result: $LD" >&5 | |
3336 echo "${ECHO_T}$LD" >&6 | |
3337 else | |
3338 echo "$as_me:$LINENO: result: no" >&5 | |
3339 echo "${ECHO_T}no" >&6 | |
3340 fi | |
3341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3343 { (exit 1); exit 1; }; } | |
3344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3346 if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3347 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3348 else | |
3349 # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3350 case `$LD -v 2>&1 </dev/null` in | |
3351 *GNU* | *'with BFD'*) | |
3352 lt_cv_prog_gnu_ld=yes | |
3353 ;; | |
3354 *) | |
3355 lt_cv_prog_gnu_ld=no | |
3356 ;; | |
3357 esac | |
3358 fi | |
3359 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3360 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3361 with_gnu_ld=$lt_cv_prog_gnu_ld | |
3362 | |
3363 | |
3364 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3365 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3366 if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3367 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3368 else | |
3369 lt_cv_ld_reload_flag='-r' | |
3370 fi | |
3371 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3372 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3373 reload_flag=$lt_cv_ld_reload_flag | |
3374 case $reload_flag in | |
3375 "" | " "*) ;; | |
3376 *) reload_flag=" $reload_flag" ;; | |
3377 esac | |
3378 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3379 case $host_os in | |
3380 darwin*) | |
3381 if test "$GCC" = yes; then | |
3382 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | |
3383 else | |
3384 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3385 fi | |
3386 ;; | |
3387 esac | |
3388 | |
3389 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3390 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3391 if test "${lt_cv_path_NM+set}" = set; then | |
3392 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3393 else | |
3394 if test -n "$NM"; then | |
3395 # Let the user override the test. | |
3396 lt_cv_path_NM="$NM" | |
3397 else | |
3398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3399 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3400 IFS="$lt_save_ifs" | |
3401 test -z "$ac_dir" && ac_dir=. | |
3402 tmp_nm="$ac_dir/${ac_tool_prefix}nm" | |
3403 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3404 # Check to see if the nm accepts a BSD-compat flag. | |
3405 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3406 # nm: unknown option "B" ignored | |
3407 # Tru64's nm complains that /dev/null is an invalid object file | |
3408 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3409 */dev/null* | *'Invalid file or object type'*) | |
3410 lt_cv_path_NM="$tmp_nm -B" | |
3411 break | |
3412 ;; | |
3413 *) | |
3414 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3415 */dev/null*) | |
3416 lt_cv_path_NM="$tmp_nm -p" | |
3417 break | |
3418 ;; | |
3419 *) | |
3420 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3421 continue # so that we can try to find one that supports BSD flags | |
3422 ;; | |
3423 esac | |
3424 esac | |
3425 fi | |
3426 done | |
3427 IFS="$lt_save_ifs" | |
3428 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3429 fi | |
3430 fi | |
3431 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
3432 echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
3433 NM="$lt_cv_path_NM" | |
3434 | |
3435 echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3436 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3437 LN_S=$as_ln_s | |
3438 if test "$LN_S" = "ln -s"; then | |
3439 echo "$as_me:$LINENO: result: yes" >&5 | |
3440 echo "${ECHO_T}yes" >&6 | |
3441 else | |
3442 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3443 echo "${ECHO_T}no, using $LN_S" >&6 | |
3444 fi | |
3445 | |
3446 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | |
3447 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | |
3448 if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3449 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3450 else | |
3451 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3452 lt_cv_file_magic_test_file= | |
3453 lt_cv_deplibs_check_method='unknown' | |
3454 # Need to set the preceding variable on all platforms that support | |
3455 # interlibrary dependencies. | |
3456 # 'none' -- dependencies not supported. | |
3457 # `unknown' -- same as none, but documents that we really don't know. | |
3458 # 'pass_all' -- all dependencies passed with no checks. | |
3459 # 'test_compile' -- check by making test program. | |
3460 # 'file_magic [[regex]]' -- check by looking for files in library path | |
3461 # which responds to the $file_magic_cmd with a given extended regex. | |
3462 # If you have `file' or equivalent on your system and you're not sure | |
3463 # whether `pass_all' will *always* work, you probably want this one. | |
3464 | |
3465 case $host_os in | |
3466 aix4* | aix5*) | |
3467 lt_cv_deplibs_check_method=pass_all | |
3468 ;; | |
3469 | |
3470 beos*) | |
3471 lt_cv_deplibs_check_method=pass_all | |
3472 ;; | |
3473 | |
3474 bsdi[45]*) | |
3475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3476 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3477 lt_cv_file_magic_test_file=/shlib/libc.so | |
3478 ;; | |
3479 | |
3480 cygwin*) | |
3481 # func_win32_libid is a shell function defined in ltmain.sh | |
3482 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
3483 lt_cv_file_magic_cmd='func_win32_libid' | |
3484 ;; | |
3485 | |
3486 mingw* | pw32*) | |
3487 # Base MSYS/MinGW do not provide the 'file' command needed by | |
3488 # func_win32_libid shell function, so use a weaker test based on 'objdump'. | |
3489 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3490 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3491 ;; | |
3492 | |
3493 darwin* | rhapsody*) | |
3494 lt_cv_deplibs_check_method=pass_all | |
3495 ;; | |
3496 | |
3497 freebsd* | kfreebsd*-gnu | dragonfly*) | |
3498 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3499 case $host_cpu in | |
3500 i*86 ) | |
3501 # Not sure whether the presence of OpenBSD here was a mistake. | |
3502 # Let's accept both of them until this is cleared up. | |
3503 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
3504 lt_cv_file_magic_cmd=/usr/bin/file | |
3505 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3506 ;; | |
3507 esac | |
3508 else | |
3509 lt_cv_deplibs_check_method=pass_all | |
3510 fi | |
3511 ;; | |
3512 | |
3513 gnu*) | |
3514 lt_cv_deplibs_check_method=pass_all | |
3515 ;; | |
3516 | |
3517 hpux10.20* | hpux11*) | |
3518 lt_cv_file_magic_cmd=/usr/bin/file | |
3519 case "$host_cpu" in | |
3520 ia64*) | |
3521 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3522 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3523 ;; | |
3524 hppa*64*) | |
3525 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
3526 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
3527 ;; | |
3528 *) | |
3529 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3530 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3531 ;; | |
3532 esac | |
3533 ;; | |
3534 | |
3535 irix5* | irix6* | nonstopux*) | |
3536 case $LD in | |
3537 *-32|*"-32 ") libmagic=32-bit;; | |
3538 *-n32|*"-n32 ") libmagic=N32;; | |
3539 *-64|*"-64 ") libmagic=64-bit;; | |
3540 *) libmagic=never-match;; | |
3541 esac | |
3542 lt_cv_deplibs_check_method=pass_all | |
3543 ;; | |
3544 | |
3545 # This must be Linux ELF. | |
3546 linux*) | |
3547 lt_cv_deplibs_check_method=pass_all | |
3548 ;; | |
3549 | |
3550 netbsd*) | |
3551 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3553 else | |
3554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
3555 fi | |
3556 ;; | |
3557 | |
3558 newos6*) | |
3559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3560 lt_cv_file_magic_cmd=/usr/bin/file | |
3561 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3562 ;; | |
3563 | |
3564 nto-qnx*) | |
3565 lt_cv_deplibs_check_method=unknown | |
3566 ;; | |
3567 | |
3568 openbsd*) | |
3569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
3571 else | |
3572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3573 fi | |
3574 ;; | |
3575 | |
3576 osf3* | osf4* | osf5*) | |
3577 lt_cv_deplibs_check_method=pass_all | |
3578 ;; | |
3579 | |
3580 sco3.2v5*) | |
3581 lt_cv_deplibs_check_method=pass_all | |
3582 ;; | |
3583 | |
3584 solaris*) | |
3585 lt_cv_deplibs_check_method=pass_all | |
3586 ;; | |
3587 | |
3588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3589 case $host_vendor in | |
3590 motorola) | |
3591 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]' | |
3592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3593 ;; | |
3594 ncr) | |
3595 lt_cv_deplibs_check_method=pass_all | |
3596 ;; | |
3597 sequent) | |
3598 lt_cv_file_magic_cmd='/bin/file' | |
3599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
3600 ;; | |
3601 sni) | |
3602 lt_cv_file_magic_cmd='/bin/file' | |
3603 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
3604 lt_cv_file_magic_test_file=/lib/libc.so | |
3605 ;; | |
3606 siemens) | |
3607 lt_cv_deplibs_check_method=pass_all | |
3608 ;; | |
3609 esac | |
3610 ;; | |
3611 | |
3612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | |
3613 lt_cv_deplibs_check_method=pass_all | |
3614 ;; | |
3615 esac | |
3616 | |
3617 fi | |
3618 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3619 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3620 file_magic_cmd=$lt_cv_file_magic_cmd | |
3621 deplibs_check_method=$lt_cv_deplibs_check_method | |
3622 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
3623 | |
3624 | |
3625 | |
3626 | |
3627 # If no C compiler was specified, use CC. | |
3628 LTCC=${LTCC-"$CC"} | |
3629 | |
3630 # Allow CC to be a program name with arguments. | |
3631 compiler=$CC | |
3632 | |
3633 | |
3634 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3635 if test "${enable_libtool_lock+set}" = set; then | |
3636 enableval="$enable_libtool_lock" | |
3637 | |
3638 fi; | |
3639 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
3640 | |
3641 # Some flags need to be propagated to the compiler or linker for good | |
3642 # libtool support. | |
3643 case $host in | |
3644 ia64-*-hpux*) | |
3645 # Find out which ABI we are using. | |
3646 echo 'int i;' > conftest.$ac_ext | |
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3648 (eval $ac_compile) 2>&5 | |
3649 ac_status=$? | |
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3651 (exit $ac_status); }; then | |
3652 case `/usr/bin/file conftest.$ac_objext` in | |
3653 *ELF-32*) | |
3654 HPUX_IA64_MODE="32" | |
3655 ;; | |
3656 *ELF-64*) | |
3657 HPUX_IA64_MODE="64" | |
3658 ;; | |
3659 esac | |
3660 fi | |
3661 rm -rf conftest* | |
3662 ;; | |
3663 *-*-irix6*) | |
3664 # Find out which ABI we are using. | |
3665 echo '#line 3665 "configure"' > conftest.$ac_ext | |
3666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3667 (eval $ac_compile) 2>&5 | |
3668 ac_status=$? | |
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3670 (exit $ac_status); }; then | |
3671 if test "$lt_cv_prog_gnu_ld" = yes; then | |
3672 case `/usr/bin/file conftest.$ac_objext` in | |
3673 *32-bit*) | |
3674 LD="${LD-ld} -melf32bsmip" | |
3675 ;; | |
3676 *N32*) | |
3677 LD="${LD-ld} -melf32bmipn32" | |
3678 ;; | |
3679 *64-bit*) | |
3680 LD="${LD-ld} -melf64bmip" | |
3681 ;; | |
3682 esac | |
3683 else | |
3684 case `/usr/bin/file conftest.$ac_objext` in | |
3685 *32-bit*) | |
3686 LD="${LD-ld} -32" | |
3687 ;; | |
3688 *N32*) | |
3689 LD="${LD-ld} -n32" | |
3690 ;; | |
3691 *64-bit*) | |
3692 LD="${LD-ld} -64" | |
3693 ;; | |
3694 esac | |
3695 fi | |
3696 fi | |
3697 rm -rf conftest* | |
3698 ;; | |
3699 | |
3700 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
3701 # Find out which ABI we are using. | |
3702 echo 'int i;' > conftest.$ac_ext | |
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3704 (eval $ac_compile) 2>&5 | |
3705 ac_status=$? | |
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3707 (exit $ac_status); }; then | |
3708 case "`/usr/bin/file conftest.o`" in | |
3709 *32-bit*) | |
3710 case $host in | |
3711 x86_64-*linux*) | |
3712 LD="${LD-ld} -m elf_i386" | |
3713 ;; | |
3714 ppc64-*linux*|powerpc64-*linux*) | |
3715 LD="${LD-ld} -m elf32ppclinux" | |
3716 ;; | |
3717 s390x-*linux*) | |
3718 LD="${LD-ld} -m elf_s390" | |
3719 ;; | |
3720 sparc64-*linux*) | |
3721 LD="${LD-ld} -m elf32_sparc" | |
3722 ;; | |
3723 esac | |
3724 ;; | |
3725 *64-bit*) | |
3726 case $host in | |
3727 x86_64-*linux*) | |
3728 LD="${LD-ld} -m elf_x86_64" | |
3729 ;; | |
3730 ppc*-*linux*|powerpc*-*linux*) | |
3731 LD="${LD-ld} -m elf64ppc" | |
3732 ;; | |
3733 s390*-*linux*) | |
3734 LD="${LD-ld} -m elf64_s390" | |
3735 ;; | |
3736 sparc*-*linux*) | |
3737 LD="${LD-ld} -m elf64_sparc" | |
3738 ;; | |
3739 esac | |
3740 ;; | |
3741 esac | |
3742 fi | |
3743 rm -rf conftest* | |
3744 ;; | |
3745 | |
3746 *-*-sco3.2v5*) | |
3747 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
3748 SAVE_CFLAGS="$CFLAGS" | |
3749 CFLAGS="$CFLAGS -belf" | |
3750 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
3751 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
3752 if test "${lt_cv_cc_needs_belf+set}" = set; then | |
3753 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3754 else | |
3755 ac_ext=c | |
3756 ac_cpp='$CPP $CPPFLAGS' | |
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3760 | |
3761 cat >conftest.$ac_ext <<_ACEOF | |
3762 /* confdefs.h. */ | |
3763 _ACEOF | |
3764 cat confdefs.h >>conftest.$ac_ext | |
3765 cat >>conftest.$ac_ext <<_ACEOF | |
3766 /* end confdefs.h. */ | |
3767 | |
3768 int | |
3769 main () | |
3770 { | |
3771 | |
3772 ; | |
3773 return 0; | |
3774 } | |
3775 _ACEOF | |
3776 rm -f conftest.$ac_objext conftest$ac_exeext | |
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3778 (eval $ac_link) 2>conftest.er1 | |
3779 ac_status=$? | |
3780 grep -v '^ *+' conftest.er1 >conftest.err | |
3781 rm -f conftest.er1 | |
3782 cat conftest.err >&5 | |
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3784 (exit $ac_status); } && | |
3785 { ac_try='test -z "$ac_c_werror_flag" | |
3786 || test ! -s conftest.err' | |
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3788 (eval $ac_try) 2>&5 | |
3789 ac_status=$? | |
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3791 (exit $ac_status); }; } && | |
3792 { ac_try='test -s conftest$ac_exeext' | |
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3794 (eval $ac_try) 2>&5 | |
3795 ac_status=$? | |
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3797 (exit $ac_status); }; }; then | |
3798 lt_cv_cc_needs_belf=yes | |
3799 else | |
3800 echo "$as_me: failed program was:" >&5 | |
3801 sed 's/^/| /' conftest.$ac_ext >&5 | |
3802 | |
3803 lt_cv_cc_needs_belf=no | |
3804 fi | |
3805 rm -f conftest.err conftest.$ac_objext \ | |
3806 conftest$ac_exeext conftest.$ac_ext | |
3807 ac_ext=c | |
3808 ac_cpp='$CPP $CPPFLAGS' | |
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3812 | |
3813 fi | |
3814 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
3815 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
3816 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
3817 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
3818 CFLAGS="$SAVE_CFLAGS" | |
3819 fi | |
3820 ;; | |
3821 | |
3822 esac | |
3823 | |
3824 need_locks="$enable_libtool_lock" | |
3825 | |
3826 | |
3827 ac_ext=c | |
3828 ac_cpp='$CPP $CPPFLAGS' | |
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3832 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3834 # On Suns, sometimes $CPP names a directory. | |
3835 if test -n "$CPP" && test -d "$CPP"; then | |
3836 CPP= | |
3837 fi | |
3838 if test -z "$CPP"; then | |
3839 if test "${ac_cv_prog_CPP+set}" = set; then | |
3840 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3841 else | |
3842 # Double quotes because CPP needs to be expanded | |
3843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3844 do | |
3845 ac_preproc_ok=false | |
3846 for ac_c_preproc_warn_flag in '' yes | |
3847 do | |
3848 # Use a header file that comes with gcc, so configuring glibc | |
3849 # with a fresh cross-compiler works. | |
3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3851 # <limits.h> exists even on freestanding compilers. | |
3852 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3853 # not just through cpp. "Syntax error" is here to catch this case. | |
3854 cat >conftest.$ac_ext <<_ACEOF | |
3855 /* confdefs.h. */ | |
3856 _ACEOF | |
3857 cat confdefs.h >>conftest.$ac_ext | |
3858 cat >>conftest.$ac_ext <<_ACEOF | |
3859 /* end confdefs.h. */ | |
3860 #ifdef __STDC__ | |
3861 # include <limits.h> | |
3862 #else | |
3863 # include <assert.h> | |
3864 #endif | |
3865 Syntax error | |
3866 _ACEOF | |
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3869 ac_status=$? | |
3870 grep -v '^ *+' conftest.er1 >conftest.err | |
3871 rm -f conftest.er1 | |
3872 cat conftest.err >&5 | |
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3874 (exit $ac_status); } >/dev/null; then | |
3875 if test -s conftest.err; then | |
3876 ac_cpp_err=$ac_c_preproc_warn_flag | |
3877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3878 else | |
3879 ac_cpp_err= | |
3880 fi | |
3881 else | |
3882 ac_cpp_err=yes | |
3883 fi | |
3884 if test -z "$ac_cpp_err"; then | |
3885 : | |
3886 else | |
3887 echo "$as_me: failed program was:" >&5 | |
3888 sed 's/^/| /' conftest.$ac_ext >&5 | |
3889 | |
3890 # Broken: fails on valid input. | |
3891 continue | |
3892 fi | |
3893 rm -f conftest.err conftest.$ac_ext | |
3894 | |
3895 # OK, works on sane cases. Now check whether non-existent headers | |
3896 # can be detected and how. | |
3897 cat >conftest.$ac_ext <<_ACEOF | |
3898 /* confdefs.h. */ | |
3899 _ACEOF | |
3900 cat confdefs.h >>conftest.$ac_ext | |
3901 cat >>conftest.$ac_ext <<_ACEOF | |
3902 /* end confdefs.h. */ | |
3903 #include <ac_nonexistent.h> | |
3904 _ACEOF | |
3905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3907 ac_status=$? | |
3908 grep -v '^ *+' conftest.er1 >conftest.err | |
3909 rm -f conftest.er1 | |
3910 cat conftest.err >&5 | |
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3912 (exit $ac_status); } >/dev/null; then | |
3913 if test -s conftest.err; then | |
3914 ac_cpp_err=$ac_c_preproc_warn_flag | |
3915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3916 else | |
3917 ac_cpp_err= | |
3918 fi | |
3919 else | |
3920 ac_cpp_err=yes | |
3921 fi | |
3922 if test -z "$ac_cpp_err"; then | |
3923 # Broken: success on invalid input. | |
3924 continue | |
3925 else | |
3926 echo "$as_me: failed program was:" >&5 | |
3927 sed 's/^/| /' conftest.$ac_ext >&5 | |
3928 | |
3929 # Passes both tests. | |
3930 ac_preproc_ok=: | |
3931 break | |
3932 fi | |
3933 rm -f conftest.err conftest.$ac_ext | |
3934 | |
3935 done | |
3936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3937 rm -f conftest.err conftest.$ac_ext | |
3938 if $ac_preproc_ok; then | |
3939 break | |
3940 fi | |
3941 | |
3942 done | |
3943 ac_cv_prog_CPP=$CPP | |
3944 | |
3945 fi | |
3946 CPP=$ac_cv_prog_CPP | |
3947 else | |
3948 ac_cv_prog_CPP=$CPP | |
3949 fi | |
3950 echo "$as_me:$LINENO: result: $CPP" >&5 | |
3951 echo "${ECHO_T}$CPP" >&6 | |
3952 ac_preproc_ok=false | |
3953 for ac_c_preproc_warn_flag in '' yes | |
3954 do | |
3955 # Use a header file that comes with gcc, so configuring glibc | |
3956 # with a fresh cross-compiler works. | |
3957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3958 # <limits.h> exists even on freestanding compilers. | |
3959 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3960 # not just through cpp. "Syntax error" is here to catch this case. | |
3961 cat >conftest.$ac_ext <<_ACEOF | |
3962 /* confdefs.h. */ | |
3963 _ACEOF | |
3964 cat confdefs.h >>conftest.$ac_ext | |
3965 cat >>conftest.$ac_ext <<_ACEOF | |
3966 /* end confdefs.h. */ | |
3967 #ifdef __STDC__ | |
3968 # include <limits.h> | |
3969 #else | |
3970 # include <assert.h> | |
3971 #endif | |
3972 Syntax error | |
3973 _ACEOF | |
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3976 ac_status=$? | |
3977 grep -v '^ *+' conftest.er1 >conftest.err | |
3978 rm -f conftest.er1 | |
3979 cat conftest.err >&5 | |
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3981 (exit $ac_status); } >/dev/null; then | |
3982 if test -s conftest.err; then | |
3983 ac_cpp_err=$ac_c_preproc_warn_flag | |
3984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3985 else | |
3986 ac_cpp_err= | |
3987 fi | |
3988 else | |
3989 ac_cpp_err=yes | |
3990 fi | |
3991 if test -z "$ac_cpp_err"; then | |
3992 : | |
3993 else | |
3994 echo "$as_me: failed program was:" >&5 | |
3995 sed 's/^/| /' conftest.$ac_ext >&5 | |
3996 | |
3997 # Broken: fails on valid input. | |
3998 continue | |
3999 fi | |
4000 rm -f conftest.err conftest.$ac_ext | |
4001 | |
4002 # OK, works on sane cases. Now check whether non-existent headers | |
4003 # can be detected and how. | |
4004 cat >conftest.$ac_ext <<_ACEOF | |
4005 /* confdefs.h. */ | |
4006 _ACEOF | |
4007 cat confdefs.h >>conftest.$ac_ext | |
4008 cat >>conftest.$ac_ext <<_ACEOF | |
4009 /* end confdefs.h. */ | |
4010 #include <ac_nonexistent.h> | |
4011 _ACEOF | |
4012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4014 ac_status=$? | |
4015 grep -v '^ *+' conftest.er1 >conftest.err | |
4016 rm -f conftest.er1 | |
4017 cat conftest.err >&5 | |
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4019 (exit $ac_status); } >/dev/null; then | |
4020 if test -s conftest.err; then | |
4021 ac_cpp_err=$ac_c_preproc_warn_flag | |
4022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4023 else | |
4024 ac_cpp_err= | |
4025 fi | |
4026 else | |
4027 ac_cpp_err=yes | |
4028 fi | |
4029 if test -z "$ac_cpp_err"; then | |
4030 # Broken: success on invalid input. | |
4031 continue | |
4032 else | |
4033 echo "$as_me: failed program was:" >&5 | |
4034 sed 's/^/| /' conftest.$ac_ext >&5 | |
4035 | |
4036 # Passes both tests. | |
4037 ac_preproc_ok=: | |
4038 break | |
4039 fi | |
4040 rm -f conftest.err conftest.$ac_ext | |
4041 | |
4042 done | |
4043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4044 rm -f conftest.err conftest.$ac_ext | |
4045 if $ac_preproc_ok; then | |
4046 : | |
4047 else | |
4048 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4049 See \`config.log' for more details." >&5 | |
4050 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4051 See \`config.log' for more details." >&2;} | |
4052 { (exit 1); exit 1; }; } | |
4053 fi | |
4054 | |
4055 ac_ext=c | |
4056 ac_cpp='$CPP $CPPFLAGS' | |
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4060 | |
4061 | |
4062 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4063 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4064 if test "${ac_cv_header_stdc+set}" = set; then | |
4065 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4066 else | |
4067 cat >conftest.$ac_ext <<_ACEOF | |
4068 /* confdefs.h. */ | |
4069 _ACEOF | |
4070 cat confdefs.h >>conftest.$ac_ext | |
4071 cat >>conftest.$ac_ext <<_ACEOF | |
4072 /* end confdefs.h. */ | |
4073 #include <stdlib.h> | |
4074 #include <stdarg.h> | |
4075 #include <string.h> | |
4076 #include <float.h> | |
4077 | |
4078 int | |
4079 main () | |
4080 { | |
4081 | |
4082 ; | |
4083 return 0; | |
4084 } | |
4085 _ACEOF | |
4086 rm -f conftest.$ac_objext | |
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4088 (eval $ac_compile) 2>conftest.er1 | |
4089 ac_status=$? | |
4090 grep -v '^ *+' conftest.er1 >conftest.err | |
4091 rm -f conftest.er1 | |
4092 cat conftest.err >&5 | |
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4094 (exit $ac_status); } && | |
4095 { ac_try='test -z "$ac_c_werror_flag" | |
4096 || test ! -s conftest.err' | |
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4098 (eval $ac_try) 2>&5 | |
4099 ac_status=$? | |
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4101 (exit $ac_status); }; } && | |
4102 { ac_try='test -s conftest.$ac_objext' | |
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4104 (eval $ac_try) 2>&5 | |
4105 ac_status=$? | |
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4107 (exit $ac_status); }; }; then | |
4108 ac_cv_header_stdc=yes | |
4109 else | |
4110 echo "$as_me: failed program was:" >&5 | |
4111 sed 's/^/| /' conftest.$ac_ext >&5 | |
4112 | |
4113 ac_cv_header_stdc=no | |
4114 fi | |
4115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4116 | |
4117 if test $ac_cv_header_stdc = yes; then | |
4118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4119 cat >conftest.$ac_ext <<_ACEOF | |
4120 /* confdefs.h. */ | |
4121 _ACEOF | |
4122 cat confdefs.h >>conftest.$ac_ext | |
4123 cat >>conftest.$ac_ext <<_ACEOF | |
4124 /* end confdefs.h. */ | |
4125 #include <string.h> | |
4126 | |
4127 _ACEOF | |
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4129 $EGREP "memchr" >/dev/null 2>&1; then | |
4130 : | |
4131 else | |
4132 ac_cv_header_stdc=no | |
4133 fi | |
4134 rm -f conftest* | |
4135 | |
4136 fi | |
4137 | |
4138 if test $ac_cv_header_stdc = yes; then | |
4139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4140 cat >conftest.$ac_ext <<_ACEOF | |
4141 /* confdefs.h. */ | |
4142 _ACEOF | |
4143 cat confdefs.h >>conftest.$ac_ext | |
4144 cat >>conftest.$ac_ext <<_ACEOF | |
4145 /* end confdefs.h. */ | |
4146 #include <stdlib.h> | |
4147 | |
4148 _ACEOF | |
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4150 $EGREP "free" >/dev/null 2>&1; then | |
4151 : | |
4152 else | |
4153 ac_cv_header_stdc=no | |
4154 fi | |
4155 rm -f conftest* | |
4156 | |
4157 fi | |
4158 | |
4159 if test $ac_cv_header_stdc = yes; then | |
4160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4161 if test "$cross_compiling" = yes; then | |
4162 : | |
4163 else | |
4164 cat >conftest.$ac_ext <<_ACEOF | |
4165 /* confdefs.h. */ | |
4166 _ACEOF | |
4167 cat confdefs.h >>conftest.$ac_ext | |
4168 cat >>conftest.$ac_ext <<_ACEOF | |
4169 /* end confdefs.h. */ | |
4170 #include <ctype.h> | |
4171 #if ((' ' & 0x0FF) == 0x020) | |
4172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4174 #else | |
4175 # define ISLOWER(c) \ | |
4176 (('a' <= (c) && (c) <= 'i') \ | |
4177 || ('j' <= (c) && (c) <= 'r') \ | |
4178 || ('s' <= (c) && (c) <= 'z')) | |
4179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4180 #endif | |
4181 | |
4182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4183 int | |
4184 main () | |
4185 { | |
4186 int i; | |
4187 for (i = 0; i < 256; i++) | |
4188 if (XOR (islower (i), ISLOWER (i)) | |
4189 || toupper (i) != TOUPPER (i)) | |
4190 exit(2); | |
4191 exit (0); | |
4192 } | |
4193 _ACEOF | |
4194 rm -f conftest$ac_exeext | |
4195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4196 (eval $ac_link) 2>&5 | |
4197 ac_status=$? | |
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4201 (eval $ac_try) 2>&5 | |
4202 ac_status=$? | |
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4204 (exit $ac_status); }; }; then | |
4205 : | |
4206 else | |
4207 echo "$as_me: program exited with status $ac_status" >&5 | |
4208 echo "$as_me: failed program was:" >&5 | |
4209 sed 's/^/| /' conftest.$ac_ext >&5 | |
4210 | |
4211 ( exit $ac_status ) | |
4212 ac_cv_header_stdc=no | |
4213 fi | |
4214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4215 fi | |
4216 fi | |
4217 fi | |
4218 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4219 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4220 if test $ac_cv_header_stdc = yes; then | |
4221 | |
4222 cat >>confdefs.h <<\_ACEOF | |
4223 #define STDC_HEADERS 1 | |
4224 _ACEOF | |
4225 | |
4226 fi | |
4227 | |
4228 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4229 | |
4230 | |
4231 | |
4232 | |
4233 | |
4234 | |
4235 | |
4236 | |
4237 | |
4238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4239 inttypes.h stdint.h unistd.h | |
4240 do | |
4241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4242 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4244 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4245 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4246 else | |
4247 cat >conftest.$ac_ext <<_ACEOF | |
4248 /* confdefs.h. */ | |
4249 _ACEOF | |
4250 cat confdefs.h >>conftest.$ac_ext | |
4251 cat >>conftest.$ac_ext <<_ACEOF | |
4252 /* end confdefs.h. */ | |
4253 $ac_includes_default | |
4254 | |
4255 #include <$ac_header> | |
4256 _ACEOF | |
4257 rm -f conftest.$ac_objext | |
4258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4259 (eval $ac_compile) 2>conftest.er1 | |
4260 ac_status=$? | |
4261 grep -v '^ *+' conftest.er1 >conftest.err | |
4262 rm -f conftest.er1 | |
4263 cat conftest.err >&5 | |
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4265 (exit $ac_status); } && | |
4266 { ac_try='test -z "$ac_c_werror_flag" | |
4267 || test ! -s conftest.err' | |
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4269 (eval $ac_try) 2>&5 | |
4270 ac_status=$? | |
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4272 (exit $ac_status); }; } && | |
4273 { ac_try='test -s conftest.$ac_objext' | |
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4275 (eval $ac_try) 2>&5 | |
4276 ac_status=$? | |
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4278 (exit $ac_status); }; }; then | |
4279 eval "$as_ac_Header=yes" | |
4280 else | |
4281 echo "$as_me: failed program was:" >&5 | |
4282 sed 's/^/| /' conftest.$ac_ext >&5 | |
4283 | |
4284 eval "$as_ac_Header=no" | |
4285 fi | |
4286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4287 fi | |
4288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4290 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4291 cat >>confdefs.h <<_ACEOF | |
4292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4293 _ACEOF | |
4294 | |
4295 fi | |
4296 | |
4297 done | |
4298 | |
4299 | |
4300 | |
4301 for ac_header in dlfcn.h | |
4302 do | |
4303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4304 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4305 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4308 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4309 fi | |
4310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4312 else | |
4313 # Is the header compilable? | |
4314 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4316 cat >conftest.$ac_ext <<_ACEOF | |
4317 /* confdefs.h. */ | |
4318 _ACEOF | |
4319 cat confdefs.h >>conftest.$ac_ext | |
4320 cat >>conftest.$ac_ext <<_ACEOF | |
4321 /* end confdefs.h. */ | |
4322 $ac_includes_default | |
4323 #include <$ac_header> | |
4324 _ACEOF | |
4325 rm -f conftest.$ac_objext | |
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4327 (eval $ac_compile) 2>conftest.er1 | |
4328 ac_status=$? | |
4329 grep -v '^ *+' conftest.er1 >conftest.err | |
4330 rm -f conftest.er1 | |
4331 cat conftest.err >&5 | |
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4333 (exit $ac_status); } && | |
4334 { ac_try='test -z "$ac_c_werror_flag" | |
4335 || test ! -s conftest.err' | |
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4337 (eval $ac_try) 2>&5 | |
4338 ac_status=$? | |
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4340 (exit $ac_status); }; } && | |
4341 { ac_try='test -s conftest.$ac_objext' | |
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4343 (eval $ac_try) 2>&5 | |
4344 ac_status=$? | |
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4346 (exit $ac_status); }; }; then | |
4347 ac_header_compiler=yes | |
4348 else | |
4349 echo "$as_me: failed program was:" >&5 | |
4350 sed 's/^/| /' conftest.$ac_ext >&5 | |
4351 | |
4352 ac_header_compiler=no | |
4353 fi | |
4354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4356 echo "${ECHO_T}$ac_header_compiler" >&6 | |
4357 | |
4358 # Is the header present? | |
4359 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4361 cat >conftest.$ac_ext <<_ACEOF | |
4362 /* confdefs.h. */ | |
4363 _ACEOF | |
4364 cat confdefs.h >>conftest.$ac_ext | |
4365 cat >>conftest.$ac_ext <<_ACEOF | |
4366 /* end confdefs.h. */ | |
4367 #include <$ac_header> | |
4368 _ACEOF | |
4369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4371 ac_status=$? | |
4372 grep -v '^ *+' conftest.er1 >conftest.err | |
4373 rm -f conftest.er1 | |
4374 cat conftest.err >&5 | |
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4376 (exit $ac_status); } >/dev/null; then | |
4377 if test -s conftest.err; then | |
4378 ac_cpp_err=$ac_c_preproc_warn_flag | |
4379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4380 else | |
4381 ac_cpp_err= | |
4382 fi | |
4383 else | |
4384 ac_cpp_err=yes | |
4385 fi | |
4386 if test -z "$ac_cpp_err"; then | |
4387 ac_header_preproc=yes | |
4388 else | |
4389 echo "$as_me: failed program was:" >&5 | |
4390 sed 's/^/| /' conftest.$ac_ext >&5 | |
4391 | |
4392 ac_header_preproc=no | |
4393 fi | |
4394 rm -f conftest.err conftest.$ac_ext | |
4395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4396 echo "${ECHO_T}$ac_header_preproc" >&6 | |
4397 | |
4398 # So? What about this header? | |
4399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4400 yes:no: ) | |
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4405 ac_header_preproc=yes | |
4406 ;; | |
4407 no:yes:* ) | |
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4420 ( | |
4421 cat <<\_ASBOX | |
4422 ## ------------------------------------------ ## | |
4423 ## Report this to the AC_PACKAGE_NAME lists. ## | |
4424 ## ------------------------------------------ ## | |
4425 _ASBOX | |
4426 ) | | |
4427 sed "s/^/$as_me: WARNING: /" >&2 | |
4428 ;; | |
4429 esac | |
4430 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4432 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4433 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4434 else | |
4435 eval "$as_ac_Header=\$ac_header_preproc" | |
4436 fi | |
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4439 | |
4440 fi | |
4441 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4442 cat >>confdefs.h <<_ACEOF | |
4443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4444 _ACEOF | |
4445 | |
4446 fi | |
4447 | |
4448 done | |
4449 | |
4450 ac_ext=cc | |
4451 ac_cpp='$CXXCPP $CPPFLAGS' | |
4452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4455 if test -n "$ac_tool_prefix"; then | |
4456 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
4457 do | |
4458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4462 if test "${ac_cv_prog_CXX+set}" = set; then | |
4463 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4464 else | |
4465 if test -n "$CXX"; then | |
4466 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4467 else | |
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4469 for as_dir in $PATH | |
4470 do | |
4471 IFS=$as_save_IFS | |
4472 test -z "$as_dir" && as_dir=. | |
4473 for ac_exec_ext in '' $ac_executable_extensions; do | |
4474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4475 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4477 break 2 | |
4478 fi | |
4479 done | |
4480 done | |
4481 | |
4482 fi | |
4483 fi | |
4484 CXX=$ac_cv_prog_CXX | |
4485 if test -n "$CXX"; then | |
4486 echo "$as_me:$LINENO: result: $CXX" >&5 | |
4487 echo "${ECHO_T}$CXX" >&6 | |
4488 else | |
4489 echo "$as_me:$LINENO: result: no" >&5 | |
4490 echo "${ECHO_T}no" >&6 | |
4491 fi | |
4492 | |
4493 test -n "$CXX" && break | |
4494 done | |
4495 fi | |
4496 if test -z "$CXX"; then | |
4497 ac_ct_CXX=$CXX | |
4498 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
4499 do | |
4500 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4501 set dummy $ac_prog; ac_word=$2 | |
4502 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4504 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
4505 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4506 else | |
4507 if test -n "$ac_ct_CXX"; then | |
4508 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4509 else | |
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4511 for as_dir in $PATH | |
4512 do | |
4513 IFS=$as_save_IFS | |
4514 test -z "$as_dir" && as_dir=. | |
4515 for ac_exec_ext in '' $ac_executable_extensions; do | |
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4517 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4519 break 2 | |
4520 fi | |
4521 done | |
4522 done | |
4523 | |
4524 fi | |
4525 fi | |
4526 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4527 if test -n "$ac_ct_CXX"; then | |
4528 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
4529 echo "${ECHO_T}$ac_ct_CXX" >&6 | |
4530 else | |
4531 echo "$as_me:$LINENO: result: no" >&5 | |
4532 echo "${ECHO_T}no" >&6 | |
4533 fi | |
4534 | |
4535 test -n "$ac_ct_CXX" && break | |
4536 done | |
4537 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
4538 | |
4539 CXX=$ac_ct_CXX | |
4540 fi | |
4541 | |
4542 | |
4543 # Provide some information about the compiler. | |
4544 echo "$as_me:$LINENO:" \ | |
4545 "checking for C++ compiler version" >&5 | |
4546 ac_compiler=`set X $ac_compile; echo $2` | |
4547 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4548 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4549 ac_status=$? | |
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4551 (exit $ac_status); } | |
4552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4553 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4554 ac_status=$? | |
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4556 (exit $ac_status); } | |
4557 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4558 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4559 ac_status=$? | |
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4561 (exit $ac_status); } | |
4562 | |
4563 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
4564 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
4565 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
4566 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4567 else | |
4568 cat >conftest.$ac_ext <<_ACEOF | |
4569 /* confdefs.h. */ | |
4570 _ACEOF | |
4571 cat confdefs.h >>conftest.$ac_ext | |
4572 cat >>conftest.$ac_ext <<_ACEOF | |
4573 /* end confdefs.h. */ | |
4574 | |
4575 int | |
4576 main () | |
4577 { | |
4578 #ifndef __GNUC__ | |
4579 choke me | |
4580 #endif | |
4581 | |
4582 ; | |
4583 return 0; | |
4584 } | |
4585 _ACEOF | |
4586 rm -f conftest.$ac_objext | |
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4588 (eval $ac_compile) 2>conftest.er1 | |
4589 ac_status=$? | |
4590 grep -v '^ *+' conftest.er1 >conftest.err | |
4591 rm -f conftest.er1 | |
4592 cat conftest.err >&5 | |
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4594 (exit $ac_status); } && | |
4595 { ac_try='test -z "$ac_cxx_werror_flag" | |
4596 || test ! -s conftest.err' | |
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4598 (eval $ac_try) 2>&5 | |
4599 ac_status=$? | |
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4601 (exit $ac_status); }; } && | |
4602 { ac_try='test -s conftest.$ac_objext' | |
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4604 (eval $ac_try) 2>&5 | |
4605 ac_status=$? | |
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4607 (exit $ac_status); }; }; then | |
4608 ac_compiler_gnu=yes | |
4609 else | |
4610 echo "$as_me: failed program was:" >&5 | |
4611 sed 's/^/| /' conftest.$ac_ext >&5 | |
4612 | |
4613 ac_compiler_gnu=no | |
4614 fi | |
4615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4616 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4617 | |
4618 fi | |
4619 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4620 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
4621 GXX=`test $ac_compiler_gnu = yes && echo yes` | |
4622 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4623 ac_save_CXXFLAGS=$CXXFLAGS | |
4624 CXXFLAGS="-g" | |
4625 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
4626 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
4627 if test "${ac_cv_prog_cxx_g+set}" = set; then | |
4628 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4629 else | |
4630 cat >conftest.$ac_ext <<_ACEOF | |
4631 /* confdefs.h. */ | |
4632 _ACEOF | |
4633 cat confdefs.h >>conftest.$ac_ext | |
4634 cat >>conftest.$ac_ext <<_ACEOF | |
4635 /* end confdefs.h. */ | |
4636 | |
4637 int | |
4638 main () | |
4639 { | |
4640 | |
4641 ; | |
4642 return 0; | |
4643 } | |
4644 _ACEOF | |
4645 rm -f conftest.$ac_objext | |
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4647 (eval $ac_compile) 2>conftest.er1 | |
4648 ac_status=$? | |
4649 grep -v '^ *+' conftest.er1 >conftest.err | |
4650 rm -f conftest.er1 | |
4651 cat conftest.err >&5 | |
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4653 (exit $ac_status); } && | |
4654 { ac_try='test -z "$ac_cxx_werror_flag" | |
4655 || test ! -s conftest.err' | |
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4657 (eval $ac_try) 2>&5 | |
4658 ac_status=$? | |
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4660 (exit $ac_status); }; } && | |
4661 { ac_try='test -s conftest.$ac_objext' | |
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4663 (eval $ac_try) 2>&5 | |
4664 ac_status=$? | |
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4666 (exit $ac_status); }; }; then | |
4667 ac_cv_prog_cxx_g=yes | |
4668 else | |
4669 echo "$as_me: failed program was:" >&5 | |
4670 sed 's/^/| /' conftest.$ac_ext >&5 | |
4671 | |
4672 ac_cv_prog_cxx_g=no | |
4673 fi | |
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4675 fi | |
4676 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
4677 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
4678 if test "$ac_test_CXXFLAGS" = set; then | |
4679 CXXFLAGS=$ac_save_CXXFLAGS | |
4680 elif test $ac_cv_prog_cxx_g = yes; then | |
4681 if test "$GXX" = yes; then | |
4682 CXXFLAGS="-g -O2" | |
4683 else | |
4684 CXXFLAGS="-g" | |
4685 fi | |
4686 else | |
4687 if test "$GXX" = yes; then | |
4688 CXXFLAGS="-O2" | |
4689 else | |
4690 CXXFLAGS= | |
4691 fi | |
4692 fi | |
4693 for ac_declaration in \ | |
4694 '' \ | |
4695 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4696 'extern "C" void std::exit (int); using std::exit;' \ | |
4697 'extern "C" void exit (int) throw ();' \ | |
4698 'extern "C" void exit (int);' \ | |
4699 'void exit (int);' | |
4700 do | |
4701 cat >conftest.$ac_ext <<_ACEOF | |
4702 /* confdefs.h. */ | |
4703 _ACEOF | |
4704 cat confdefs.h >>conftest.$ac_ext | |
4705 cat >>conftest.$ac_ext <<_ACEOF | |
4706 /* end confdefs.h. */ | |
4707 $ac_declaration | |
4708 #include <stdlib.h> | |
4709 int | |
4710 main () | |
4711 { | |
4712 exit (42); | |
4713 ; | |
4714 return 0; | |
4715 } | |
4716 _ACEOF | |
4717 rm -f conftest.$ac_objext | |
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4719 (eval $ac_compile) 2>conftest.er1 | |
4720 ac_status=$? | |
4721 grep -v '^ *+' conftest.er1 >conftest.err | |
4722 rm -f conftest.er1 | |
4723 cat conftest.err >&5 | |
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4725 (exit $ac_status); } && | |
4726 { ac_try='test -z "$ac_cxx_werror_flag" | |
4727 || test ! -s conftest.err' | |
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4729 (eval $ac_try) 2>&5 | |
4730 ac_status=$? | |
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4732 (exit $ac_status); }; } && | |
4733 { ac_try='test -s conftest.$ac_objext' | |
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4735 (eval $ac_try) 2>&5 | |
4736 ac_status=$? | |
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4738 (exit $ac_status); }; }; then | |
4739 : | |
4740 else | |
4741 echo "$as_me: failed program was:" >&5 | |
4742 sed 's/^/| /' conftest.$ac_ext >&5 | |
4743 | |
4744 continue | |
4745 fi | |
4746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4747 cat >conftest.$ac_ext <<_ACEOF | |
4748 /* confdefs.h. */ | |
4749 _ACEOF | |
4750 cat confdefs.h >>conftest.$ac_ext | |
4751 cat >>conftest.$ac_ext <<_ACEOF | |
4752 /* end confdefs.h. */ | |
4753 $ac_declaration | |
4754 int | |
4755 main () | |
4756 { | |
4757 exit (42); | |
4758 ; | |
4759 return 0; | |
4760 } | |
4761 _ACEOF | |
4762 rm -f conftest.$ac_objext | |
4763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4764 (eval $ac_compile) 2>conftest.er1 | |
4765 ac_status=$? | |
4766 grep -v '^ *+' conftest.er1 >conftest.err | |
4767 rm -f conftest.er1 | |
4768 cat conftest.err >&5 | |
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4770 (exit $ac_status); } && | |
4771 { ac_try='test -z "$ac_cxx_werror_flag" | |
4772 || test ! -s conftest.err' | |
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4774 (eval $ac_try) 2>&5 | |
4775 ac_status=$? | |
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4777 (exit $ac_status); }; } && | |
4778 { ac_try='test -s conftest.$ac_objext' | |
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4780 (eval $ac_try) 2>&5 | |
4781 ac_status=$? | |
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4783 (exit $ac_status); }; }; then | |
4784 break | |
4785 else | |
4786 echo "$as_me: failed program was:" >&5 | |
4787 sed 's/^/| /' conftest.$ac_ext >&5 | |
4788 | |
4789 fi | |
4790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4791 done | |
4792 rm -f conftest* | |
4793 if test -n "$ac_declaration"; then | |
4794 echo '#ifdef __cplusplus' >>confdefs.h | |
4795 echo $ac_declaration >>confdefs.h | |
4796 echo '#endif' >>confdefs.h | |
4797 fi | |
4798 | |
4799 ac_ext=cc | |
4800 ac_cpp='$CXXCPP $CPPFLAGS' | |
4801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4804 | |
4805 depcc="$CXX" am_compiler_list= | |
4806 | |
4807 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
4808 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
4809 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
4810 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4811 else | |
4812 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4813 # We make a subdir and do the tests there. Otherwise we can end up | |
4814 # making bogus files that we don't know about and never remove. For | |
4815 # instance it was reported that on HP-UX the gcc test will end up | |
4816 # making a dummy file named `D' -- because `-MD' means `put the output | |
4817 # in D'. | |
4818 mkdir conftest.dir | |
4819 # Copy depcomp to subdir because otherwise we won't find it if we're | |
4820 # using a relative directory. | |
4821 cp "$am_depcomp" conftest.dir | |
4822 cd conftest.dir | |
4823 # We will build objects and dependencies in a subdirectory because | |
4824 # it helps to detect inapplicable dependency modes. For instance | |
4825 # both Tru64's cc and ICC support -MD to output dependencies as a | |
4826 # side effect of compilation, but ICC will put the dependencies in | |
4827 # the current directory while Tru64 will put them in the object | |
4828 # directory. | |
4829 mkdir sub | |
4830 | |
4831 am_cv_CXX_dependencies_compiler_type=none | |
4832 if test "$am_compiler_list" = ""; then | |
4833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4834 fi | |
4835 for depmode in $am_compiler_list; do | |
4836 # Setup a source with many dependencies, because some compilers | |
4837 # like to wrap large dependency lists on column 80 (with \), and | |
4838 # we should not choose a depcomp mode which is confused by this. | |
4839 # | |
4840 # We need to recreate these files for each test, as the compiler may | |
4841 # overwrite some of them when testing with obscure command lines. | |
4842 # This happens at least with the AIX C compiler. | |
4843 : > sub/conftest.c | |
4844 for i in 1 2 3 4 5 6; do | |
4845 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4846 : > sub/conftst$i.h | |
4847 done | |
4848 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4849 | |
4850 case $depmode in | |
4851 nosideeffect) | |
4852 # after this tag, mechanisms are not by side-effect, so they'll | |
4853 # only be used when explicitly requested | |
4854 if test "x$enable_dependency_tracking" = xyes; then | |
4855 continue | |
4856 else | |
4857 break | |
4858 fi | |
4859 ;; | |
4860 none) break ;; | |
4861 esac | |
4862 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4863 # mode. It turns out that the SunPro C++ compiler does not properly | |
4864 # handle `-M -o', and we need to detect this. | |
4865 if depmode=$depmode \ | |
4866 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
4867 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4868 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
4869 >/dev/null 2>conftest.err && | |
4870 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4871 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
4872 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4873 # icc doesn't choke on unknown options, it will just issue warnings | |
4874 # (even with -Werror). So we grep stderr for any message | |
4875 # that says an option was ignored. | |
4876 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else | |
4877 am_cv_CXX_dependencies_compiler_type=$depmode | |
4878 break | |
4879 fi | |
4880 fi | |
4881 done | |
4882 | |
4883 cd .. | |
4884 rm -rf conftest.dir | |
4885 else | |
4886 am_cv_CXX_dependencies_compiler_type=none | |
4887 fi | |
4888 | |
4889 fi | |
4890 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4891 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
4892 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
4893 | |
4894 | |
4895 | |
4896 if | |
4897 test "x$enable_dependency_tracking" != xno \ | |
4898 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4899 am__fastdepCXX_TRUE= | |
4900 am__fastdepCXX_FALSE='#' | |
4901 else | |
4902 am__fastdepCXX_TRUE='#' | |
4903 am__fastdepCXX_FALSE= | |
4904 fi | |
4905 | |
4906 | |
4907 | |
4908 | |
4909 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
4910 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
4911 (test "X$CXX" != "Xg++"))) ; then | |
4912 ac_ext=cc | |
4913 ac_cpp='$CXXCPP $CPPFLAGS' | |
4914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4917 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
4918 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
4919 if test -z "$CXXCPP"; then | |
4920 if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
4921 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4922 else | |
4923 # Double quotes because CXXCPP needs to be expanded | |
4924 for CXXCPP in "$CXX -E" "/lib/cpp" | |
4925 do | |
4926 ac_preproc_ok=false | |
4927 for ac_cxx_preproc_warn_flag in '' yes | |
4928 do | |
4929 # Use a header file that comes with gcc, so configuring glibc | |
4930 # with a fresh cross-compiler works. | |
4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4932 # <limits.h> exists even on freestanding compilers. | |
4933 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4934 # not just through cpp. "Syntax error" is here to catch this case. | |
4935 cat >conftest.$ac_ext <<_ACEOF | |
4936 /* confdefs.h. */ | |
4937 _ACEOF | |
4938 cat confdefs.h >>conftest.$ac_ext | |
4939 cat >>conftest.$ac_ext <<_ACEOF | |
4940 /* end confdefs.h. */ | |
4941 #ifdef __STDC__ | |
4942 # include <limits.h> | |
4943 #else | |
4944 # include <assert.h> | |
4945 #endif | |
4946 Syntax error | |
4947 _ACEOF | |
4948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4950 ac_status=$? | |
4951 grep -v '^ *+' conftest.er1 >conftest.err | |
4952 rm -f conftest.er1 | |
4953 cat conftest.err >&5 | |
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4955 (exit $ac_status); } >/dev/null; then | |
4956 if test -s conftest.err; then | |
4957 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4958 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
4959 else | |
4960 ac_cpp_err= | |
4961 fi | |
4962 else | |
4963 ac_cpp_err=yes | |
4964 fi | |
4965 if test -z "$ac_cpp_err"; then | |
4966 : | |
4967 else | |
4968 echo "$as_me: failed program was:" >&5 | |
4969 sed 's/^/| /' conftest.$ac_ext >&5 | |
4970 | |
4971 # Broken: fails on valid input. | |
4972 continue | |
4973 fi | |
4974 rm -f conftest.err conftest.$ac_ext | |
4975 | |
4976 # OK, works on sane cases. Now check whether non-existent headers | |
4977 # can be detected and how. | |
4978 cat >conftest.$ac_ext <<_ACEOF | |
4979 /* confdefs.h. */ | |
4980 _ACEOF | |
4981 cat confdefs.h >>conftest.$ac_ext | |
4982 cat >>conftest.$ac_ext <<_ACEOF | |
4983 /* end confdefs.h. */ | |
4984 #include <ac_nonexistent.h> | |
4985 _ACEOF | |
4986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4988 ac_status=$? | |
4989 grep -v '^ *+' conftest.er1 >conftest.err | |
4990 rm -f conftest.er1 | |
4991 cat conftest.err >&5 | |
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4993 (exit $ac_status); } >/dev/null; then | |
4994 if test -s conftest.err; then | |
4995 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4996 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
4997 else | |
4998 ac_cpp_err= | |
4999 fi | |
5000 else | |
5001 ac_cpp_err=yes | |
5002 fi | |
5003 if test -z "$ac_cpp_err"; then | |
5004 # Broken: success on invalid input. | |
5005 continue | |
5006 else | |
5007 echo "$as_me: failed program was:" >&5 | |
5008 sed 's/^/| /' conftest.$ac_ext >&5 | |
5009 | |
5010 # Passes both tests. | |
5011 ac_preproc_ok=: | |
5012 break | |
5013 fi | |
5014 rm -f conftest.err conftest.$ac_ext | |
5015 | |
5016 done | |
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5018 rm -f conftest.err conftest.$ac_ext | |
5019 if $ac_preproc_ok; then | |
5020 break | |
5021 fi | |
5022 | |
5023 done | |
5024 ac_cv_prog_CXXCPP=$CXXCPP | |
5025 | |
5026 fi | |
5027 CXXCPP=$ac_cv_prog_CXXCPP | |
5028 else | |
5029 ac_cv_prog_CXXCPP=$CXXCPP | |
5030 fi | |
5031 echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
5032 echo "${ECHO_T}$CXXCPP" >&6 | |
5033 ac_preproc_ok=false | |
5034 for ac_cxx_preproc_warn_flag in '' yes | |
5035 do | |
5036 # Use a header file that comes with gcc, so configuring glibc | |
5037 # with a fresh cross-compiler works. | |
5038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5039 # <limits.h> exists even on freestanding compilers. | |
5040 # On the NeXT, cc -E runs the code through the compiler's parser, | |
5041 # not just through cpp. "Syntax error" is here to catch this case. | |
5042 cat >conftest.$ac_ext <<_ACEOF | |
5043 /* confdefs.h. */ | |
5044 _ACEOF | |
5045 cat confdefs.h >>conftest.$ac_ext | |
5046 cat >>conftest.$ac_ext <<_ACEOF | |
5047 /* end confdefs.h. */ | |
5048 #ifdef __STDC__ | |
5049 # include <limits.h> | |
5050 #else | |
5051 # include <assert.h> | |
5052 #endif | |
5053 Syntax error | |
5054 _ACEOF | |
5055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5057 ac_status=$? | |
5058 grep -v '^ *+' conftest.er1 >conftest.err | |
5059 rm -f conftest.er1 | |
5060 cat conftest.err >&5 | |
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5062 (exit $ac_status); } >/dev/null; then | |
5063 if test -s conftest.err; then | |
5064 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5065 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5066 else | |
5067 ac_cpp_err= | |
5068 fi | |
5069 else | |
5070 ac_cpp_err=yes | |
5071 fi | |
5072 if test -z "$ac_cpp_err"; then | |
5073 : | |
5074 else | |
5075 echo "$as_me: failed program was:" >&5 | |
5076 sed 's/^/| /' conftest.$ac_ext >&5 | |
5077 | |
5078 # Broken: fails on valid input. | |
5079 continue | |
5080 fi | |
5081 rm -f conftest.err conftest.$ac_ext | |
5082 | |
5083 # OK, works on sane cases. Now check whether non-existent headers | |
5084 # can be detected and how. | |
5085 cat >conftest.$ac_ext <<_ACEOF | |
5086 /* confdefs.h. */ | |
5087 _ACEOF | |
5088 cat confdefs.h >>conftest.$ac_ext | |
5089 cat >>conftest.$ac_ext <<_ACEOF | |
5090 /* end confdefs.h. */ | |
5091 #include <ac_nonexistent.h> | |
5092 _ACEOF | |
5093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5095 ac_status=$? | |
5096 grep -v '^ *+' conftest.er1 >conftest.err | |
5097 rm -f conftest.er1 | |
5098 cat conftest.err >&5 | |
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5100 (exit $ac_status); } >/dev/null; then | |
5101 if test -s conftest.err; then | |
5102 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5103 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5104 else | |
5105 ac_cpp_err= | |
5106 fi | |
5107 else | |
5108 ac_cpp_err=yes | |
5109 fi | |
5110 if test -z "$ac_cpp_err"; then | |
5111 # Broken: success on invalid input. | |
5112 continue | |
5113 else | |
5114 echo "$as_me: failed program was:" >&5 | |
5115 sed 's/^/| /' conftest.$ac_ext >&5 | |
5116 | |
5117 # Passes both tests. | |
5118 ac_preproc_ok=: | |
5119 break | |
5120 fi | |
5121 rm -f conftest.err conftest.$ac_ext | |
5122 | |
5123 done | |
5124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5125 rm -f conftest.err conftest.$ac_ext | |
5126 if $ac_preproc_ok; then | |
5127 : | |
5128 else | |
5129 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5130 See \`config.log' for more details." >&5 | |
5131 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5132 See \`config.log' for more details." >&2;} | |
5133 { (exit 1); exit 1; }; } | |
5134 fi | |
5135 | |
5136 ac_ext=cc | |
5137 ac_cpp='$CXXCPP $CPPFLAGS' | |
5138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5141 | |
5142 fi | |
5143 | |
5144 | |
5145 ac_ext=f | |
5146 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
5147 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5148 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
5149 if test -n "$ac_tool_prefix"; then | |
5150 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | |
5151 do | |
5152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5156 if test "${ac_cv_prog_F77+set}" = set; then | |
5157 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5158 else | |
5159 if test -n "$F77"; then | |
5160 ac_cv_prog_F77="$F77" # Let the user override the test. | |
5161 else | |
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5163 for as_dir in $PATH | |
5164 do | |
5165 IFS=$as_save_IFS | |
5166 test -z "$as_dir" && as_dir=. | |
5167 for ac_exec_ext in '' $ac_executable_extensions; do | |
5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5169 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5171 break 2 | |
5172 fi | |
5173 done | |
5174 done | |
5175 | |
5176 fi | |
5177 fi | |
5178 F77=$ac_cv_prog_F77 | |
5179 if test -n "$F77"; then | |
5180 echo "$as_me:$LINENO: result: $F77" >&5 | |
5181 echo "${ECHO_T}$F77" >&6 | |
5182 else | |
5183 echo "$as_me:$LINENO: result: no" >&5 | |
5184 echo "${ECHO_T}no" >&6 | |
5185 fi | |
5186 | |
5187 test -n "$F77" && break | |
5188 done | |
5189 fi | |
5190 if test -z "$F77"; then | |
5191 ac_ct_F77=$F77 | |
5192 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | |
5193 do | |
5194 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5195 set dummy $ac_prog; ac_word=$2 | |
5196 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5198 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
5199 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5200 else | |
5201 if test -n "$ac_ct_F77"; then | |
5202 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
5203 else | |
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5205 for as_dir in $PATH | |
5206 do | |
5207 IFS=$as_save_IFS | |
5208 test -z "$as_dir" && as_dir=. | |
5209 for ac_exec_ext in '' $ac_executable_extensions; do | |
5210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5211 ac_cv_prog_ac_ct_F77="$ac_prog" | |
5212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5213 break 2 | |
5214 fi | |
5215 done | |
5216 done | |
5217 | |
5218 fi | |
5219 fi | |
5220 ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
5221 if test -n "$ac_ct_F77"; then | |
5222 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
5223 echo "${ECHO_T}$ac_ct_F77" >&6 | |
5224 else | |
5225 echo "$as_me:$LINENO: result: no" >&5 | |
5226 echo "${ECHO_T}no" >&6 | |
5227 fi | |
5228 | |
5229 test -n "$ac_ct_F77" && break | |
5230 done | |
5231 | |
5232 F77=$ac_ct_F77 | |
5233 fi | |
5234 | |
5235 | |
5236 # Provide some information about the compiler. | |
5237 echo "$as_me:5237:" \ | |
5238 "checking for Fortran 77 compiler version" >&5 | |
5239 ac_compiler=`set X $ac_compile; echo $2` | |
5240 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
5241 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
5242 ac_status=$? | |
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5244 (exit $ac_status); } | |
5245 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
5246 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
5247 ac_status=$? | |
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5249 (exit $ac_status); } | |
5250 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
5251 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
5252 ac_status=$? | |
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5254 (exit $ac_status); } | |
5255 rm -f a.out | |
5256 | |
5257 # If we don't use `.F' as extension, the preprocessor is not run on the | |
5258 # input file. (Note that this only needs to work for GNU compilers.) | |
5259 ac_save_ext=$ac_ext | |
5260 ac_ext=F | |
5261 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
5262 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | |
5263 if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
5264 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5265 else | |
5266 cat >conftest.$ac_ext <<_ACEOF | |
5267 program main | |
5268 #ifndef __GNUC__ | |
5269 choke me | |
5270 #endif | |
5271 | |
5272 end | |
5273 _ACEOF | |
5274 rm -f conftest.$ac_objext | |
5275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5276 (eval $ac_compile) 2>conftest.er1 | |
5277 ac_status=$? | |
5278 grep -v '^ *+' conftest.er1 >conftest.err | |
5279 rm -f conftest.er1 | |
5280 cat conftest.err >&5 | |
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5282 (exit $ac_status); } && | |
5283 { ac_try='test -z "$ac_f77_werror_flag" | |
5284 || test ! -s conftest.err' | |
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5286 (eval $ac_try) 2>&5 | |
5287 ac_status=$? | |
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5289 (exit $ac_status); }; } && | |
5290 { ac_try='test -s conftest.$ac_objext' | |
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5292 (eval $ac_try) 2>&5 | |
5293 ac_status=$? | |
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5295 (exit $ac_status); }; }; then | |
5296 ac_compiler_gnu=yes | |
5297 else | |
5298 echo "$as_me: failed program was:" >&5 | |
5299 sed 's/^/| /' conftest.$ac_ext >&5 | |
5300 | |
5301 ac_compiler_gnu=no | |
5302 fi | |
5303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5304 ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
5305 | |
5306 fi | |
5307 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
5308 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | |
5309 ac_ext=$ac_save_ext | |
5310 ac_test_FFLAGS=${FFLAGS+set} | |
5311 ac_save_FFLAGS=$FFLAGS | |
5312 FFLAGS= | |
5313 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
5314 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | |
5315 if test "${ac_cv_prog_f77_g+set}" = set; then | |
5316 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5317 else | |
5318 FFLAGS=-g | |
5319 cat >conftest.$ac_ext <<_ACEOF | |
5320 program main | |
5321 | |
5322 end | |
5323 _ACEOF | |
5324 rm -f conftest.$ac_objext | |
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5326 (eval $ac_compile) 2>conftest.er1 | |
5327 ac_status=$? | |
5328 grep -v '^ *+' conftest.er1 >conftest.err | |
5329 rm -f conftest.er1 | |
5330 cat conftest.err >&5 | |
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5332 (exit $ac_status); } && | |
5333 { ac_try='test -z "$ac_f77_werror_flag" | |
5334 || test ! -s conftest.err' | |
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5336 (eval $ac_try) 2>&5 | |
5337 ac_status=$? | |
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5339 (exit $ac_status); }; } && | |
5340 { ac_try='test -s conftest.$ac_objext' | |
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5342 (eval $ac_try) 2>&5 | |
5343 ac_status=$? | |
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5345 (exit $ac_status); }; }; then | |
5346 ac_cv_prog_f77_g=yes | |
5347 else | |
5348 echo "$as_me: failed program was:" >&5 | |
5349 sed 's/^/| /' conftest.$ac_ext >&5 | |
5350 | |
5351 ac_cv_prog_f77_g=no | |
5352 fi | |
5353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5354 | |
5355 fi | |
5356 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
5357 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | |
5358 if test "$ac_test_FFLAGS" = set; then | |
5359 FFLAGS=$ac_save_FFLAGS | |
5360 elif test $ac_cv_prog_f77_g = yes; then | |
5361 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
5362 FFLAGS="-g -O2" | |
5363 else | |
5364 FFLAGS="-g" | |
5365 fi | |
5366 else | |
5367 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
5368 FFLAGS="-O2" | |
5369 else | |
5370 FFLAGS= | |
5371 fi | |
5372 fi | |
5373 | |
5374 G77=`test $ac_compiler_gnu = yes && echo yes` | |
5375 ac_ext=c | |
5376 ac_cpp='$CPP $CPPFLAGS' | |
5377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5379 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5380 | |
5381 | |
5382 | |
5383 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
5384 | |
5385 # find the maximum length of command line arguments | |
5386 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5387 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5388 if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5389 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5390 else | |
5391 i=0 | |
5392 teststring="ABCD" | |
5393 | |
5394 case $build_os in | |
5395 msdosdjgpp*) | |
5396 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5397 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5398 # during glob expansion). Even if it were fixed, the result of this | |
5399 # check would be larger than it should be. | |
5400 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5401 ;; | |
5402 | |
5403 gnu*) | |
5404 # Under GNU Hurd, this test is not required because there is | |
5405 # no limit to the length of command line arguments. | |
5406 # Libtool will interpret -1 as no limit whatsoever | |
5407 lt_cv_sys_max_cmd_len=-1; | |
5408 ;; | |
5409 | |
5410 cygwin* | mingw*) | |
5411 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5412 # about 5 minutes as the teststring grows exponentially. | |
5413 # Worse, since 9x/ME are not pre-emptively multitasking, | |
5414 # you end up with a "frozen" computer, even though with patience | |
5415 # the test eventually succeeds (with a max line length of 256k). | |
5416 # Instead, let's just punt: use the minimum linelength reported by | |
5417 # all of the supported platforms: 8192 (on NT/2K/XP). | |
5418 lt_cv_sys_max_cmd_len=8192; | |
5419 ;; | |
5420 | |
5421 amigaos*) | |
5422 # On AmigaOS with pdksh, this test takes hours, literally. | |
5423 # So we just punt and use a minimum line length of 8192. | |
5424 lt_cv_sys_max_cmd_len=8192; | |
5425 ;; | |
5426 | |
5427 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5428 # This has been around since 386BSD, at least. Likely further. | |
5429 if test -x /sbin/sysctl; then | |
5430 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5431 elif test -x /usr/sbin/sysctl; then | |
5432 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5433 else | |
5434 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
5435 fi | |
5436 # And add a safety zone | |
5437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5439 ;; | |
5440 osf*) | |
5441 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5442 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5443 # nice to cause kernel panics so lets avoid the loop below. | |
5444 # First set a reasonable default. | |
5445 lt_cv_sys_max_cmd_len=16384 | |
5446 # | |
5447 if test -x /sbin/sysconfig; then | |
5448 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5449 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5450 esac | |
5451 fi | |
5452 ;; | |
5453 *) | |
5454 # If test is not a shell built-in, we'll probably end up computing a | |
5455 # maximum length that is only half of the actual maximum length, but | |
5456 # we can't tell. | |
5457 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5458 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | |
5459 = "XX$teststring") >/dev/null 2>&1 && | |
5460 new_result=`expr "X$teststring" : ".*" 2>&1` && | |
5461 lt_cv_sys_max_cmd_len=$new_result && | |
5462 test $i != 17 # 1/2 MB should be enough | |
5463 do | |
5464 i=`expr $i + 1` | |
5465 teststring=$teststring$teststring | |
5466 done | |
5467 teststring= | |
5468 # Add a significant safety factor because C++ compilers can tack on massive | |
5469 # amounts of additional arguments before passing them to the linker. | |
5470 # It appears as though 1/2 is a usable value. | |
5471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5472 ;; | |
5473 esac | |
5474 | |
5475 fi | |
5476 | |
5477 if test -n $lt_cv_sys_max_cmd_len ; then | |
5478 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5479 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5480 else | |
5481 echo "$as_me:$LINENO: result: none" >&5 | |
5482 echo "${ECHO_T}none" >&6 | |
5483 fi | |
5484 | |
5485 | |
5486 | |
5487 | |
5488 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5489 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5490 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5491 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5492 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5493 else | |
5494 | |
5495 # These are sane defaults that work on at least a few old systems. | |
5496 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5497 | |
5498 # Character class describing NM global symbol codes. | |
5499 symcode='[BCDEGRST]' | |
5500 | |
5501 # Regexp to match symbols that can be accessed directly from C. | |
5502 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5503 | |
5504 # Transform an extracted symbol line into a proper C declaration | |
5505 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
5506 | |
5507 # Transform an extracted symbol line into symbol name and symbol address | |
5508 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
5509 | |
5510 # Define system-specific variables. | |
5511 case $host_os in | |
5512 aix*) | |
5513 symcode='[BCDT]' | |
5514 ;; | |
5515 cygwin* | mingw* | pw32*) | |
5516 symcode='[ABCDGISTW]' | |
5517 ;; | |
5518 hpux*) # Its linker distinguishes data from code symbols | |
5519 if test "$host_cpu" = ia64; then | |
5520 symcode='[ABCDEGRST]' | |
5521 fi | |
5522 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5523 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
5524 ;; | |
5525 linux*) | |
5526 if test "$host_cpu" = ia64; then | |
5527 symcode='[ABCDGIRSTW]' | |
5528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5529 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
5530 fi | |
5531 ;; | |
5532 irix* | nonstopux*) | |
5533 symcode='[BCDEGRST]' | |
5534 ;; | |
5535 osf*) | |
5536 symcode='[BCDEGQRST]' | |
5537 ;; | |
5538 solaris* | sysv5*) | |
5539 symcode='[BDRT]' | |
5540 ;; | |
5541 sysv4) | |
5542 symcode='[DFNSTU]' | |
5543 ;; | |
5544 esac | |
5545 | |
5546 # Handle CRLF in mingw tool chain | |
5547 opt_cr= | |
5548 case $build_os in | |
5549 mingw*) | |
5550 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5551 ;; | |
5552 esac | |
5553 | |
5554 # If we're using GNU nm, then use its standard symbol codes. | |
5555 case `$NM -V 2>&1` in | |
5556 *GNU* | *'with BFD'*) | |
5557 symcode='[ABCDGIRSTW]' ;; | |
5558 esac | |
5559 | |
5560 # Try without a prefix undercore, then with it. | |
5561 for ac_symprfx in "" "_"; do | |
5562 | |
5563 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5564 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5565 | |
5566 # Write the raw and C identifiers. | |
5567 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5568 | |
5569 # Check to see that the pipe works correctly. | |
5570 pipe_works=no | |
5571 | |
5572 rm -f conftest* | |
5573 cat > conftest.$ac_ext <<EOF | |
5574 #ifdef __cplusplus | |
5575 extern "C" { | |
5576 #endif | |
5577 char nm_test_var; | |
5578 void nm_test_func(){} | |
5579 #ifdef __cplusplus | |
5580 } | |
5581 #endif | |
5582 int main(){nm_test_var='a';nm_test_func();return(0);} | |
5583 EOF | |
5584 | |
5585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5586 (eval $ac_compile) 2>&5 | |
5587 ac_status=$? | |
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5589 (exit $ac_status); }; then | |
5590 # Now try to grab the symbols. | |
5591 nlist=conftest.nm | |
5592 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5593 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5594 ac_status=$? | |
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5596 (exit $ac_status); } && test -s "$nlist"; then | |
5597 # Try sorting and uniquifying the output. | |
5598 if sort "$nlist" | uniq > "$nlist"T; then | |
5599 mv -f "$nlist"T "$nlist" | |
5600 else | |
5601 rm -f "$nlist"T | |
5602 fi | |
5603 | |
5604 # Make sure that we snagged all the symbols we need. | |
5605 if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
5606 if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
5607 cat <<EOF > conftest.$ac_ext | |
5608 #ifdef __cplusplus | |
5609 extern "C" { | |
5610 #endif | |
5611 | |
5612 EOF | |
5613 # Now generate the symbol file. | |
5614 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
5615 | |
5616 cat <<EOF >> conftest.$ac_ext | |
5617 #if defined (__STDC__) && __STDC__ | |
5618 # define lt_ptr_t void * | |
5619 #else | |
5620 # define lt_ptr_t char * | |
5621 # define const | |
5622 #endif | |
5623 | |
5624 /* The mapping between symbol names and symbols. */ | |
5625 const struct { | |
5626 const char *name; | |
5627 lt_ptr_t address; | |
5628 } | |
5629 lt_preloaded_symbols[] = | |
5630 { | |
5631 EOF | |
5632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
5633 cat <<\EOF >> conftest.$ac_ext | |
5634 {0, (lt_ptr_t) 0} | |
5635 }; | |
5636 | |
5637 #ifdef __cplusplus | |
5638 } | |
5639 #endif | |
5640 EOF | |
5641 # Now try linking the two files. | |
5642 mv conftest.$ac_objext conftstm.$ac_objext | |
5643 lt_save_LIBS="$LIBS" | |
5644 lt_save_CFLAGS="$CFLAGS" | |
5645 LIBS="conftstm.$ac_objext" | |
5646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5648 (eval $ac_link) 2>&5 | |
5649 ac_status=$? | |
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5651 (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5652 pipe_works=yes | |
5653 fi | |
5654 LIBS="$lt_save_LIBS" | |
5655 CFLAGS="$lt_save_CFLAGS" | |
5656 else | |
5657 echo "cannot find nm_test_func in $nlist" >&5 | |
5658 fi | |
5659 else | |
5660 echo "cannot find nm_test_var in $nlist" >&5 | |
5661 fi | |
5662 else | |
5663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5664 fi | |
5665 else | |
5666 echo "$progname: failed program was:" >&5 | |
5667 cat conftest.$ac_ext >&5 | |
5668 fi | |
5669 rm -f conftest* conftst* | |
5670 | |
5671 # Do not use the global_symbol_pipe unless it works. | |
5672 if test "$pipe_works" = yes; then | |
5673 break | |
5674 else | |
5675 lt_cv_sys_global_symbol_pipe= | |
5676 fi | |
5677 done | |
5678 | |
5679 fi | |
5680 | |
5681 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5682 lt_cv_sys_global_symbol_to_cdecl= | |
5683 fi | |
5684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5685 echo "$as_me:$LINENO: result: failed" >&5 | |
5686 echo "${ECHO_T}failed" >&6 | |
5687 else | |
5688 echo "$as_me:$LINENO: result: ok" >&5 | |
5689 echo "${ECHO_T}ok" >&6 | |
5690 fi | |
5691 | |
5692 echo "$as_me:$LINENO: checking for objdir" >&5 | |
5693 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
5694 if test "${lt_cv_objdir+set}" = set; then | |
5695 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5696 else | |
5697 rm -f .libs 2>/dev/null | |
5698 mkdir .libs 2>/dev/null | |
5699 if test -d .libs; then | |
5700 lt_cv_objdir=.libs | |
5701 else | |
5702 # MS-DOS does not allow filenames that begin with a dot. | |
5703 lt_cv_objdir=_libs | |
5704 fi | |
5705 rmdir .libs 2>/dev/null | |
5706 fi | |
5707 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
5708 echo "${ECHO_T}$lt_cv_objdir" >&6 | |
5709 objdir=$lt_cv_objdir | |
5710 | |
5711 | |
5712 | |
5713 | |
5714 | |
5715 case $host_os in | |
5716 aix3*) | |
5717 # AIX sometimes has problems with the GCC collect2 program. For some | |
5718 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
5719 # vanish in a puff of smoke. | |
5720 if test "X${COLLECT_NAMES+set}" != Xset; then | |
5721 COLLECT_NAMES= | |
5722 export COLLECT_NAMES | |
5723 fi | |
5724 ;; | |
5725 esac | |
5726 | |
5727 # Sed substitution that helps us do robust quoting. It backslashifies | |
5728 # metacharacters that are still active within double-quoted strings. | |
5729 Xsed='sed -e 1s/^X//' | |
5730 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
5731 | |
5732 # Same as above, but do not quote variable references. | |
5733 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
5734 | |
5735 # Sed substitution to delay expansion of an escaped shell variable in a | |
5736 # double_quote_subst'ed string. | |
5737 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5738 | |
5739 # Sed substitution to avoid accidental globbing in evaled expressions | |
5740 no_glob_subst='s/\*/\\\*/g' | |
5741 | |
5742 # Constants: | |
5743 rm="rm -f" | |
5744 | |
5745 # Global variables: | |
5746 default_ofile=libtool | |
5747 can_build_shared=yes | |
5748 | |
5749 # All known linkers require a `.a' archive for static linking (except M$VC, | |
5750 # which needs '.lib'). | |
5751 libext=a | |
5752 ltmain="$ac_aux_dir/ltmain.sh" | |
5753 ofile="$default_ofile" | |
5754 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
5755 | |
5756 if test -n "$ac_tool_prefix"; then | |
5757 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5758 set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5759 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5761 if test "${ac_cv_prog_AR+set}" = set; then | |
5762 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5763 else | |
5764 if test -n "$AR"; then | |
5765 ac_cv_prog_AR="$AR" # Let the user override the test. | |
5766 else | |
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5768 for as_dir in $PATH | |
5769 do | |
5770 IFS=$as_save_IFS | |
5771 test -z "$as_dir" && as_dir=. | |
5772 for ac_exec_ext in '' $ac_executable_extensions; do | |
5773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5774 ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5776 break 2 | |
5777 fi | |
5778 done | |
5779 done | |
5780 | |
5781 fi | |
5782 fi | |
5783 AR=$ac_cv_prog_AR | |
5784 if test -n "$AR"; then | |
5785 echo "$as_me:$LINENO: result: $AR" >&5 | |
5786 echo "${ECHO_T}$AR" >&6 | |
5787 else | |
5788 echo "$as_me:$LINENO: result: no" >&5 | |
5789 echo "${ECHO_T}no" >&6 | |
5790 fi | |
5791 | |
5792 fi | |
5793 if test -z "$ac_cv_prog_AR"; then | |
5794 ac_ct_AR=$AR | |
5795 # Extract the first word of "ar", so it can be a program name with args. | |
5796 set dummy ar; ac_word=$2 | |
5797 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5799 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5800 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5801 else | |
5802 if test -n "$ac_ct_AR"; then | |
5803 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5804 else | |
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5806 for as_dir in $PATH | |
5807 do | |
5808 IFS=$as_save_IFS | |
5809 test -z "$as_dir" && as_dir=. | |
5810 for ac_exec_ext in '' $ac_executable_extensions; do | |
5811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5812 ac_cv_prog_ac_ct_AR="ar" | |
5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5814 break 2 | |
5815 fi | |
5816 done | |
5817 done | |
5818 | |
5819 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | |
5820 fi | |
5821 fi | |
5822 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5823 if test -n "$ac_ct_AR"; then | |
5824 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5825 echo "${ECHO_T}$ac_ct_AR" >&6 | |
5826 else | |
5827 echo "$as_me:$LINENO: result: no" >&5 | |
5828 echo "${ECHO_T}no" >&6 | |
5829 fi | |
5830 | |
5831 AR=$ac_ct_AR | |
5832 else | |
5833 AR="$ac_cv_prog_AR" | |
5834 fi | |
5835 | |
5836 if test -n "$ac_tool_prefix"; then | |
5837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5839 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5841 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5842 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5843 else | |
5844 if test -n "$RANLIB"; then | |
5845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5846 else | |
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5848 for as_dir in $PATH | |
5849 do | |
5850 IFS=$as_save_IFS | |
5851 test -z "$as_dir" && as_dir=. | |
5852 for ac_exec_ext in '' $ac_executable_extensions; do | |
5853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5856 break 2 | |
5857 fi | |
5858 done | |
5859 done | |
5860 | |
5861 fi | |
5862 fi | |
5863 RANLIB=$ac_cv_prog_RANLIB | |
5864 if test -n "$RANLIB"; then | |
5865 echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5866 echo "${ECHO_T}$RANLIB" >&6 | |
5867 else | |
5868 echo "$as_me:$LINENO: result: no" >&5 | |
5869 echo "${ECHO_T}no" >&6 | |
5870 fi | |
5871 | |
5872 fi | |
5873 if test -z "$ac_cv_prog_RANLIB"; then | |
5874 ac_ct_RANLIB=$RANLIB | |
5875 # Extract the first word of "ranlib", so it can be a program name with args. | |
5876 set dummy ranlib; ac_word=$2 | |
5877 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5879 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5880 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5881 else | |
5882 if test -n "$ac_ct_RANLIB"; then | |
5883 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5884 else | |
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5886 for as_dir in $PATH | |
5887 do | |
5888 IFS=$as_save_IFS | |
5889 test -z "$as_dir" && as_dir=. | |
5890 for ac_exec_ext in '' $ac_executable_extensions; do | |
5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5892 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5894 break 2 | |
5895 fi | |
5896 done | |
5897 done | |
5898 | |
5899 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
5900 fi | |
5901 fi | |
5902 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5903 if test -n "$ac_ct_RANLIB"; then | |
5904 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5905 echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5906 else | |
5907 echo "$as_me:$LINENO: result: no" >&5 | |
5908 echo "${ECHO_T}no" >&6 | |
5909 fi | |
5910 | |
5911 RANLIB=$ac_ct_RANLIB | |
5912 else | |
5913 RANLIB="$ac_cv_prog_RANLIB" | |
5914 fi | |
5915 | |
5916 if test -n "$ac_tool_prefix"; then | |
5917 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5918 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5919 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5921 if test "${ac_cv_prog_STRIP+set}" = set; then | |
5922 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5923 else | |
5924 if test -n "$STRIP"; then | |
5925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5926 else | |
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5928 for as_dir in $PATH | |
5929 do | |
5930 IFS=$as_save_IFS | |
5931 test -z "$as_dir" && as_dir=. | |
5932 for ac_exec_ext in '' $ac_executable_extensions; do | |
5933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5934 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5936 break 2 | |
5937 fi | |
5938 done | |
5939 done | |
5940 | |
5941 fi | |
5942 fi | |
5943 STRIP=$ac_cv_prog_STRIP | |
5944 if test -n "$STRIP"; then | |
5945 echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5946 echo "${ECHO_T}$STRIP" >&6 | |
5947 else | |
5948 echo "$as_me:$LINENO: result: no" >&5 | |
5949 echo "${ECHO_T}no" >&6 | |
5950 fi | |
5951 | |
5952 fi | |
5953 if test -z "$ac_cv_prog_STRIP"; then | |
5954 ac_ct_STRIP=$STRIP | |
5955 # Extract the first word of "strip", so it can be a program name with args. | |
5956 set dummy strip; ac_word=$2 | |
5957 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5959 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5960 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5961 else | |
5962 if test -n "$ac_ct_STRIP"; then | |
5963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5964 else | |
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5966 for as_dir in $PATH | |
5967 do | |
5968 IFS=$as_save_IFS | |
5969 test -z "$as_dir" && as_dir=. | |
5970 for ac_exec_ext in '' $ac_executable_extensions; do | |
5971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5972 ac_cv_prog_ac_ct_STRIP="strip" | |
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5974 break 2 | |
5975 fi | |
5976 done | |
5977 done | |
5978 | |
5979 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
5980 fi | |
5981 fi | |
5982 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5983 if test -n "$ac_ct_STRIP"; then | |
5984 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5985 echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
5986 else | |
5987 echo "$as_me:$LINENO: result: no" >&5 | |
5988 echo "${ECHO_T}no" >&6 | |
5989 fi | |
5990 | |
5991 STRIP=$ac_ct_STRIP | |
5992 else | |
5993 STRIP="$ac_cv_prog_STRIP" | |
5994 fi | |
5995 | |
5996 | |
5997 old_CC="$CC" | |
5998 old_CFLAGS="$CFLAGS" | |
5999 | |
6000 # Set sane defaults for various variables | |
6001 test -z "$AR" && AR=ar | |
6002 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6003 test -z "$AS" && AS=as | |
6004 test -z "$CC" && CC=cc | |
6005 test -z "$LTCC" && LTCC=$CC | |
6006 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6007 test -z "$LD" && LD=ld | |
6008 test -z "$LN_S" && LN_S="ln -s" | |
6009 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6010 test -z "$NM" && NM=nm | |
6011 test -z "$SED" && SED=sed | |
6012 test -z "$OBJDUMP" && OBJDUMP=objdump | |
6013 test -z "$RANLIB" && RANLIB=: | |
6014 test -z "$STRIP" && STRIP=: | |
6015 test -z "$ac_objext" && ac_objext=o | |
6016 | |
6017 # Determine commands to create old-style static archives. | |
6018 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
6019 old_postinstall_cmds='chmod 644 $oldlib' | |
6020 old_postuninstall_cmds= | |
6021 | |
6022 if test -n "$RANLIB"; then | |
6023 case $host_os in | |
6024 openbsd*) | |
6025 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | |
6026 ;; | |
6027 *) | |
6028 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | |
6029 ;; | |
6030 esac | |
6031 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6032 fi | |
6033 | |
6034 for cc_temp in $compiler""; do | |
6035 case $cc_temp in | |
6036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6038 \-*) ;; | |
6039 *) break;; | |
6040 esac | |
6041 done | |
6042 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6043 | |
6044 | |
6045 # Only perform the check for file, if the check method requires it | |
6046 case $deplibs_check_method in | |
6047 file_magic*) | |
6048 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6049 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6050 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6051 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6052 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6053 else | |
6054 case $MAGIC_CMD in | |
6055 [\\/*] | ?:[\\/]*) | |
6056 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6057 ;; | |
6058 *) | |
6059 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6061 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6062 for ac_dir in $ac_dummy; do | |
6063 IFS="$lt_save_ifs" | |
6064 test -z "$ac_dir" && ac_dir=. | |
6065 if test -f $ac_dir/${ac_tool_prefix}file; then | |
6066 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6067 if test -n "$file_magic_test_file"; then | |
6068 case $deplibs_check_method in | |
6069 "file_magic "*) | |
6070 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
6071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6072 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6073 $EGREP "$file_magic_regex" > /dev/null; then | |
6074 : | |
6075 else | |
6076 cat <<EOF 1>&2 | |
6077 | |
6078 *** Warning: the command libtool uses to detect shared libraries, | |
6079 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6080 *** The result is that libtool may fail to recognize shared libraries | |
6081 *** as such. This will affect the creation of libtool libraries that | |
6082 *** depend on shared libraries, but programs linked with such libtool | |
6083 *** libraries will work regardless of this problem. Nevertheless, you | |
6084 *** may want to report the problem to your system manager and/or to | |
6085 *** bug-libtool@gnu.org | |
6086 | |
6087 EOF | |
6088 fi ;; | |
6089 esac | |
6090 fi | |
6091 break | |
6092 fi | |
6093 done | |
6094 IFS="$lt_save_ifs" | |
6095 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6096 ;; | |
6097 esac | |
6098 fi | |
6099 | |
6100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6101 if test -n "$MAGIC_CMD"; then | |
6102 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6103 echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6104 else | |
6105 echo "$as_me:$LINENO: result: no" >&5 | |
6106 echo "${ECHO_T}no" >&6 | |
6107 fi | |
6108 | |
6109 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6110 if test -n "$ac_tool_prefix"; then | |
6111 echo "$as_me:$LINENO: checking for file" >&5 | |
6112 echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6113 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6114 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6115 else | |
6116 case $MAGIC_CMD in | |
6117 [\\/*] | ?:[\\/]*) | |
6118 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6119 ;; | |
6120 *) | |
6121 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6123 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6124 for ac_dir in $ac_dummy; do | |
6125 IFS="$lt_save_ifs" | |
6126 test -z "$ac_dir" && ac_dir=. | |
6127 if test -f $ac_dir/file; then | |
6128 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6129 if test -n "$file_magic_test_file"; then | |
6130 case $deplibs_check_method in | |
6131 "file_magic "*) | |
6132 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
6133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6134 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6135 $EGREP "$file_magic_regex" > /dev/null; then | |
6136 : | |
6137 else | |
6138 cat <<EOF 1>&2 | |
6139 | |
6140 *** Warning: the command libtool uses to detect shared libraries, | |
6141 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6142 *** The result is that libtool may fail to recognize shared libraries | |
6143 *** as such. This will affect the creation of libtool libraries that | |
6144 *** depend on shared libraries, but programs linked with such libtool | |
6145 *** libraries will work regardless of this problem. Nevertheless, you | |
6146 *** may want to report the problem to your system manager and/or to | |
6147 *** bug-libtool@gnu.org | |
6148 | |
6149 EOF | |
6150 fi ;; | |
6151 esac | |
6152 fi | |
6153 break | |
6154 fi | |
6155 done | |
6156 IFS="$lt_save_ifs" | |
6157 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6158 ;; | |
6159 esac | |
6160 fi | |
6161 | |
6162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6163 if test -n "$MAGIC_CMD"; then | |
6164 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6165 echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6166 else | |
6167 echo "$as_me:$LINENO: result: no" >&5 | |
6168 echo "${ECHO_T}no" >&6 | |
6169 fi | |
6170 | |
6171 else | |
6172 MAGIC_CMD=: | |
6173 fi | |
6174 fi | |
6175 | |
6176 fi | |
6177 ;; | |
6178 esac | |
6179 | |
6180 enable_dlopen=no | |
6181 enable_win32_dll=no | |
6182 | |
6183 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
6184 if test "${enable_libtool_lock+set}" = set; then | |
6185 enableval="$enable_libtool_lock" | |
6186 | |
6187 fi; | |
6188 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6189 | |
6190 | |
6191 # Check whether --with-pic or --without-pic was given. | |
6192 if test "${with_pic+set}" = set; then | |
6193 withval="$with_pic" | |
6194 pic_mode="$withval" | |
6195 else | |
6196 pic_mode=default | |
6197 fi; | |
6198 test -z "$pic_mode" && pic_mode=default | |
6199 | |
6200 # Use C for the default configuration in the libtool script | |
6201 tagname= | |
6202 lt_save_CC="$CC" | |
6203 ac_ext=c | |
6204 ac_cpp='$CPP $CPPFLAGS' | |
6205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6207 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6208 | |
6209 | |
6210 # Source file extension for C test sources. | |
6211 ac_ext=c | |
6212 | |
6213 # Object file extension for compiled C test sources. | |
6214 objext=o | |
6215 objext=$objext | |
6216 | |
6217 # Code to be used in simple compile tests | |
6218 lt_simple_compile_test_code="int some_variable = 0;\n" | |
6219 | |
6220 # Code to be used in simple link tests | |
6221 lt_simple_link_test_code='int main(){return(0);}\n' | |
6222 | |
6223 | |
6224 # If no C compiler was specified, use CC. | |
6225 LTCC=${LTCC-"$CC"} | |
6226 | |
6227 # Allow CC to be a program name with arguments. | |
6228 compiler=$CC | |
6229 | |
6230 | |
6231 # save warnings/boilerplate of simple test code | |
6232 ac_outfile=conftest.$ac_objext | |
6233 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6234 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | |
6235 _lt_compiler_boilerplate=`cat conftest.err` | |
6236 $rm conftest* | |
6237 | |
6238 ac_outfile=conftest.$ac_objext | |
6239 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
6240 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | |
6241 _lt_linker_boilerplate=`cat conftest.err` | |
6242 $rm conftest* | |
6243 | |
6244 | |
6245 # | |
6246 # Check for any special shared library compilation flags. | |
6247 # | |
6248 lt_prog_cc_shlib= | |
6249 if test "$GCC" = no; then | |
6250 case $host_os in | |
6251 sco3.2v5*) | |
6252 lt_prog_cc_shlib='-belf' | |
6253 ;; | |
6254 esac | |
6255 fi | |
6256 if test -n "$lt_prog_cc_shlib"; then | |
6257 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | |
6258 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | |
6259 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | |
6260 else | |
6261 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | |
6262 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | |
6263 lt_cv_prog_cc_can_build_shared=no | |
6264 fi | |
6265 fi | |
6266 | |
6267 | |
6268 # | |
6269 # Check to make sure the static flag actually works. | |
6270 # | |
6271 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | |
6272 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | |
6273 if test "${lt_prog_compiler_static_works+set}" = set; then | |
6274 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6275 else | |
6276 lt_prog_compiler_static_works=no | |
6277 save_LDFLAGS="$LDFLAGS" | |
6278 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | |
6279 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
6280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
6281 # The compiler can only warn and ignore the option if not recognized | |
6282 # So say no if there are warnings | |
6283 if test -s conftest.err; then | |
6284 # Append any errors to the config.log. | |
6285 cat conftest.err 1>&5 | |
6286 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp | |
6287 $SED '/^$/d' conftest.err >conftest.er2 | |
6288 if diff conftest.exp conftest.er2 >/dev/null; then | |
6289 lt_prog_compiler_static_works=yes | |
6290 fi | |
6291 else | |
6292 lt_prog_compiler_static_works=yes | |
6293 fi | |
6294 fi | |
6295 $rm conftest* | |
6296 LDFLAGS="$save_LDFLAGS" | |
6297 | |
6298 fi | |
6299 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
6300 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
6301 | |
6302 if test x"$lt_prog_compiler_static_works" = xyes; then | |
6303 : | |
6304 else | |
6305 lt_prog_compiler_static= | |
6306 fi | |
6307 | |
6308 | |
6309 | |
6310 | |
6311 lt_prog_compiler_no_builtin_flag= | |
6312 | |
6313 if test "$GCC" = yes; then | |
6314 lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6315 | |
6316 | |
6317 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6318 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
6319 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6320 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6321 else | |
6322 lt_cv_prog_compiler_rtti_exceptions=no | |
6323 ac_outfile=conftest.$ac_objext | |
6324 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6325 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6326 # Insert the option either (1) after the last *FLAGS variable, or | |
6327 # (2) before a word containing "conftest.", or (3) at the end. | |
6328 # Note that $ac_compile itself does not contain backslashes and begins | |
6329 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6330 # The option is referenced via a variable to avoid confusing sed. | |
6331 lt_compile=`echo "$ac_compile" | $SED \ | |
6332 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
6333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6334 -e 's:$: $lt_compiler_flag:'` | |
6335 (eval echo "\"\$as_me:6335: $lt_compile\"" >&5) | |
6336 (eval "$lt_compile" 2>conftest.err) | |
6337 ac_status=$? | |
6338 cat conftest.err >&5 | |
6339 echo "$as_me:6339: \$? = $ac_status" >&5 | |
6340 if (exit $ac_status) && test -s "$ac_outfile"; then | |
6341 # The compiler can only warn and ignore the option if not recognized | |
6342 # So say no if there are warnings other than the usual output. | |
6343 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | |
6344 $SED '/^$/d' conftest.err >conftest.er2 | |
6345 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | |
6346 lt_cv_prog_compiler_rtti_exceptions=yes | |
6347 fi | |
6348 fi | |
6349 $rm conftest* | |
6350 | |
6351 fi | |
6352 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6353 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
6354 | |
6355 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6356 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6357 else | |
6358 : | |
6359 fi | |
6360 | |
6361 fi | |
6362 | |
6363 lt_prog_compiler_wl= | |
6364 lt_prog_compiler_pic= | |
6365 lt_prog_compiler_static= | |
6366 | |
6367 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
6368 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
6369 | |
6370 if test "$GCC" = yes; then | |
6371 lt_prog_compiler_wl='-Wl,' | |
6372 lt_prog_compiler_static='-static' | |
6373 | |
6374 case $host_os in | |
6375 aix*) | |
6376 # All AIX code is PIC. | |
6377 if test "$host_cpu" = ia64; then | |
6378 # AIX 5 now supports IA64 processor | |
6379 lt_prog_compiler_static='-Bstatic' | |
6380 fi | |
6381 ;; | |
6382 | |
6383 amigaos*) | |
6384 # FIXME: we need at least 68020 code to build shared libraries, but | |
6385 # adding the `-m68020' flag to GCC prevents building anything better, | |
6386 # like `-m68040'. | |
6387 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6388 ;; | |
6389 | |
6390 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6391 # PIC is the default for these OSes. | |
6392 ;; | |
6393 | |
6394 mingw* | pw32* | os2*) | |
6395 # This hack is so that the source file can tell whether it is being | |
6396 # built for inclusion in a dll (and should export symbols for example). | |
6397 lt_prog_compiler_pic='-DDLL_EXPORT' | |
6398 ;; | |
6399 | |
6400 darwin* | rhapsody*) | |
6401 # PIC is the default on this platform | |
6402 # Common symbols not allowed in MH_DYLIB files | |
6403 lt_prog_compiler_pic='-fno-common' | |
6404 ;; | |
6405 | |
6406 msdosdjgpp*) | |
6407 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6408 # on systems that don't support them. | |
6409 lt_prog_compiler_can_build_shared=no | |
6410 enable_shared=no | |
6411 ;; | |
6412 | |
6413 sysv4*MP*) | |
6414 if test -d /usr/nec; then | |
6415 lt_prog_compiler_pic=-Kconform_pic | |
6416 fi | |
6417 ;; | |
6418 | |
6419 hpux*) | |
6420 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6421 # not for PA HP-UX. | |
6422 case "$host_cpu" in | |
6423 hppa*64*|ia64*) | |
6424 # +Z the default | |
6425 ;; | |
6426 *) | |
6427 lt_prog_compiler_pic='-fPIC' | |
6428 ;; | |
6429 esac | |
6430 ;; | |
6431 | |
6432 *) | |
6433 lt_prog_compiler_pic='-fPIC' | |
6434 ;; | |
6435 esac | |
6436 else | |
6437 # PORTME Check for flag to pass linker flags through the system compiler. | |
6438 case $host_os in | |
6439 aix*) | |
6440 lt_prog_compiler_wl='-Wl,' | |
6441 if test "$host_cpu" = ia64; then | |
6442 # AIX 5 now supports IA64 processor | |
6443 lt_prog_compiler_static='-Bstatic' | |
6444 else | |
6445 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6446 fi | |
6447 ;; | |
6448 darwin*) | |
6449 # PIC is the default on this platform | |
6450 # Common symbols not allowed in MH_DYLIB files | |
6451 case $cc_basename in | |
6452 xlc*) | |
6453 lt_prog_compiler_pic='-qnocommon' | |
6454 lt_prog_compiler_wl='-Wl,' | |
6455 ;; | |
6456 esac | |
6457 ;; | |
6458 | |
6459 mingw* | pw32* | os2*) | |
6460 # This hack is so that the source file can tell whether it is being | |
6461 # built for inclusion in a dll (and should export symbols for example). | |
6462 lt_prog_compiler_pic='-DDLL_EXPORT' | |
6463 ;; | |
6464 | |
6465 hpux9* | hpux10* | hpux11*) | |
6466 lt_prog_compiler_wl='-Wl,' | |
6467 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6468 # not for PA HP-UX. | |
6469 case "$host_cpu" in | |
6470 hppa*64*|ia64*) | |
6471 # +Z the default | |
6472 ;; | |
6473 *) | |
6474 lt_prog_compiler_pic='+Z' | |
6475 ;; | |
6476 esac | |
6477 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6478 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6479 ;; | |
6480 | |
6481 irix5* | irix6* | nonstopux*) | |
6482 lt_prog_compiler_wl='-Wl,' | |
6483 # PIC (with -KPIC) is the default. | |
6484 lt_prog_compiler_static='-non_shared' | |
6485 ;; | |
6486 | |
6487 newsos6) | |
6488 lt_prog_compiler_pic='-KPIC' | |
6489 lt_prog_compiler_static='-Bstatic' | |
6490 ;; | |
6491 | |
6492 linux*) | |
6493 case $cc_basename in | |
6494 icc* | ecc*) | |
6495 lt_prog_compiler_wl='-Wl,' | |
6496 lt_prog_compiler_pic='-KPIC' | |
6497 lt_prog_compiler_static='-static' | |
6498 ;; | |
6499 pgcc* | pgf77* | pgf90*) | |
6500 # Portland Group compilers (*not* the Pentium gcc compiler, | |
6501 # which looks to be a dead project) | |
6502 lt_prog_compiler_wl='-Wl,' | |
6503 lt_prog_compiler_pic='-fpic' | |
6504 lt_prog_compiler_static='-static' | |
6505 ;; | |
6506 ccc*) | |
6507 lt_prog_compiler_wl='-Wl,' | |
6508 # All Alpha code is PIC. | |
6509 lt_prog_compiler_static='-non_shared' | |
6510 ;; | |
6511 esac | |
6512 ;; | |
6513 | |
6514 osf3* | osf4* | osf5*) | |
6515 lt_prog_compiler_wl='-Wl,' | |
6516 # All OSF/1 code is PIC. | |
6517 lt_prog_compiler_static='-non_shared' | |
6518 ;; | |
6519 | |
6520 sco3.2v5*) | |
6521 lt_prog_compiler_pic='-Kpic' | |
6522 lt_prog_compiler_static='-dn' | |
6523 ;; | |
6524 | |
6525 solaris*) | |
6526 lt_prog_compiler_pic='-KPIC' | |
6527 lt_prog_compiler_static='-Bstatic' | |
6528 case $cc_basename in | |
6529 f77* | f90* | f95*) | |
6530 lt_prog_compiler_wl='-Qoption ld ';; | |
6531 *) | |
6532 lt_prog_compiler_wl='-Wl,';; | |
6533 esac | |
6534 ;; | |
6535 | |
6536 sunos4*) | |
6537 lt_prog_compiler_wl='-Qoption ld ' | |
6538 lt_prog_compiler_pic='-PIC' | |
6539 lt_prog_compiler_static='-Bstatic' | |
6540 ;; | |
6541 | |
6542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
6543 lt_prog_compiler_wl='-Wl,' | |
6544 lt_prog_compiler_pic='-KPIC' | |
6545 lt_prog_compiler_static='-Bstatic' | |
6546 ;; | |
6547 | |
6548 sysv4*MP*) | |
6549 if test -d /usr/nec ;then | |
6550 lt_prog_compiler_pic='-Kconform_pic' | |
6551 lt_prog_compiler_static='-Bstatic' | |
6552 fi | |
6553 ;; | |
6554 | |
6555 unicos*) | |
6556 lt_prog_compiler_wl='-Wl,' | |
6557 lt_prog_compiler_can_build_shared=no | |
6558 ;; | |
6559 | |
6560 uts4*) | |
6561 lt_prog_compiler_pic='-pic' | |
6562 lt_prog_compiler_static='-Bstatic' | |
6563 ;; | |
6564 | |
6565 *) | |
6566 lt_prog_compiler_can_build_shared=no | |
6567 ;; | |
6568 esac | |
6569 fi | |
6570 | |
6571 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
6572 echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
6573 | |
6574 # | |
6575 # Check to make sure the PIC flag actually works. | |
6576 # | |
6577 if test -n "$lt_prog_compiler_pic"; then | |
6578 | |
6579 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
6580 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
6581 if test "${lt_prog_compiler_pic_works+set}" = set; then | |
6582 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6583 else | |
6584 lt_prog_compiler_pic_works=no | |
6585 ac_outfile=conftest.$ac_objext | |
6586 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
6588 # Insert the option either (1) after the last *FLAGS variable, or | |
6589 # (2) before a word containing "conftest.", or (3) at the end. | |
6590 # Note that $ac_compile itself does not contain backslashes and begins | |
6591 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6592 # The option is referenced via a variable to avoid confusing sed. | |
6593 lt_compile=`echo "$ac_compile" | $SED \ | |
6594 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
6595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6596 -e 's:$: $lt_compiler_flag:'` | |
6597 (eval echo "\"\$as_me:6597: $lt_compile\"" >&5) | |
6598 (eval "$lt_compile" 2>conftest.err) | |
6599 ac_status=$? | |
6600 cat conftest.err >&5 | |
6601 echo "$as_me:6601: \$? = $ac_status" >&5 | |
6602 if (exit $ac_status) && test -s "$ac_outfile"; then | |
6603 # The compiler can only warn and ignore the option if not recognized | |
6604 # So say no if there are warnings other than the usual output. | |
6605 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | |
6606 $SED '/^$/d' conftest.err >conftest.er2 | |
6607 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | |
6608 lt_prog_compiler_pic_works=yes | |
6609 fi | |
6610 fi | |
6611 $rm conftest* | |
6612 | |
6613 fi | |
6614 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
6615 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
6616 | |
6617 if test x"$lt_prog_compiler_pic_works" = xyes; then | |
6618 case $lt_prog_compiler_pic in | |
6619 "" | " "*) ;; | |
6620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
6621 esac | |
6622 else | |
6623 lt_prog_compiler_pic= | |
6624 lt_prog_compiler_can_build_shared=no | |
6625 fi | |
6626 | |
6627 fi | |
6628 case "$host_os" in | |
6629 # For platforms which do not support PIC, -DPIC is meaningless: | |
6630 *djgpp*) | |
6631 lt_prog_compiler_pic= | |
6632 ;; | |
6633 *) | |
6634 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
6635 ;; | |
6636 esac | |
6637 | |
6638 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
6639 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
6640 if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
6641 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6642 else | |
6643 lt_cv_prog_compiler_c_o=no | |
6644 $rm -r conftest 2>/dev/null | |
6645 mkdir conftest | |
6646 cd conftest | |
6647 mkdir out | |
6648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6649 | |
6650 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
6651 # Insert the option either (1) after the last *FLAGS variable, or | |
6652 # (2) before a word containing "conftest.", or (3) at the end. | |
6653 # Note that $ac_compile itself does not contain backslashes and begins | |
6654 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6655 lt_compile=`echo "$ac_compile" | $SED \ | |
6656 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
6657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6658 -e 's:$: $lt_compiler_flag:'` | |
6659 (eval echo "\"\$as_me:6659: $lt_compile\"" >&5) | |
6660 (eval "$lt_compile" 2>out/conftest.err) | |
6661 ac_status=$? | |
6662 cat out/conftest.err >&5 | |
6663 echo "$as_me:6663: \$? = $ac_status" >&5 | |
6664 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
6665 then | |
6666 # The compiler can only warn and ignore the option if not recognized | |
6667 # So say no if there are warnings | |
6668 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp | |
6669 $SED '/^$/d' out/conftest.err >out/conftest.er2 | |
6670 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
6671 lt_cv_prog_compiler_c_o=yes | |
6672 fi | |
6673 fi | |
6674 chmod u+w . | |
6675 $rm conftest* | |
6676 # SGI C++ compiler will create directory out/ii_files/ for | |
6677 # template instantiation | |
6678 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
6679 $rm out/* && rmdir out | |
6680 cd .. | |
6681 rmdir conftest | |
6682 $rm conftest* | |
6683 | |
6684 fi | |
6685 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
6686 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
6687 | |
6688 | |
6689 hard_links="nottested" | |
6690 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
6691 # do not overwrite the value of need_locks provided by the user | |
6692 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
6693 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
6694 hard_links=yes | |
6695 $rm conftest* | |
6696 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
6697 touch conftest.a | |
6698 ln conftest.a conftest.b 2>&5 || hard_links=no | |
6699 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
6700 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
6701 echo "${ECHO_T}$hard_links" >&6 | |
6702 if test "$hard_links" = no; then | |
6703 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
6704 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
6705 need_locks=warn | |
6706 fi | |
6707 else | |
6708 need_locks=no | |
6709 fi | |
6710 | |
6711 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
6712 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
6713 | |
6714 runpath_var= | |
6715 allow_undefined_flag= | |
6716 enable_shared_with_static_runtimes=no | |
6717 archive_cmds= | |
6718 archive_expsym_cmds= | |
6719 old_archive_From_new_cmds= | |
6720 old_archive_from_expsyms_cmds= | |
6721 export_dynamic_flag_spec= | |
6722 whole_archive_flag_spec= | |
6723 thread_safe_flag_spec= | |
6724 hardcode_libdir_flag_spec= | |
6725 hardcode_libdir_flag_spec_ld= | |
6726 hardcode_libdir_separator= | |
6727 hardcode_direct=no | |
6728 hardcode_minus_L=no | |
6729 hardcode_shlibpath_var=unsupported | |
6730 link_all_deplibs=unknown | |
6731 hardcode_automatic=no | |
6732 module_cmds= | |
6733 module_expsym_cmds= | |
6734 always_export_symbols=no | |
6735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
6736 # include_expsyms should be a list of space-separated symbols to be *always* | |
6737 # included in the symbol list | |
6738 include_expsyms= | |
6739 # exclude_expsyms can be an extended regexp of symbols to exclude | |
6740 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
6741 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
6742 # as well as any symbol that contains `d'. | |
6743 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
6744 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
6745 # platforms (ab)use it in PIC code, but their linkers get confused if | |
6746 # the symbol is explicitly referenced. Since portable code cannot | |
6747 # rely on this symbol name, it's probably fine to never include it in | |
6748 # preloaded symbol tables. | |
6749 extract_expsyms_cmds= | |
6750 # Just being paranoid about ensuring that cc_basename is set. | |
6751 for cc_temp in $compiler""; do | |
6752 case $cc_temp in | |
6753 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6754 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6755 \-*) ;; | |
6756 *) break;; | |
6757 esac | |
6758 done | |
6759 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6760 | |
6761 case $host_os in | |
6762 cygwin* | mingw* | pw32*) | |
6763 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
6764 # When not using gcc, we currently assume that we are using | |
6765 # Microsoft Visual C++. | |
6766 if test "$GCC" != yes; then | |
6767 with_gnu_ld=no | |
6768 fi | |
6769 ;; | |
6770 openbsd*) | |
6771 with_gnu_ld=no | |
6772 ;; | |
6773 esac | |
6774 | |
6775 ld_shlibs=yes | |
6776 if test "$with_gnu_ld" = yes; then | |
6777 # If archive_cmds runs LD, not CC, wlarc should be empty | |
6778 wlarc='${wl}' | |
6779 | |
6780 # Set some defaults for GNU ld with shared library support. These | |
6781 # are reset later if shared libraries are not supported. Putting them | |
6782 # here allows them to be overridden if necessary. | |
6783 runpath_var=LD_RUN_PATH | |
6784 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
6785 export_dynamic_flag_spec='${wl}--export-dynamic' | |
6786 # ancient GNU ld didn't support --whole-archive et. al. | |
6787 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
6788 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
6789 else | |
6790 whole_archive_flag_spec= | |
6791 fi | |
6792 supports_anon_versioning=no | |
6793 case `$LD -v 2>/dev/null` in | |
6794 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
6795 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
6796 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
6797 *\ 2.11.*) ;; # other 2.11 versions | |
6798 *) supports_anon_versioning=yes ;; | |
6799 esac | |
6800 | |
6801 # See if GNU ld supports shared libraries. | |
6802 case $host_os in | |
6803 aix3* | aix4* | aix5*) | |
6804 # On AIX/PPC, the GNU linker is very broken | |
6805 if test "$host_cpu" != ia64; then | |
6806 ld_shlibs=no | |
6807 cat <<EOF 1>&2 | |
6808 | |
6809 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
6810 *** to be unable to reliably create shared libraries on AIX. | |
6811 *** Therefore, libtool is disabling shared libraries support. If you | |
6812 *** really care for shared libraries, you may want to modify your PATH | |
6813 *** so that a non-GNU linker is found, and then restart. | |
6814 | |
6815 EOF | |
6816 fi | |
6817 ;; | |
6818 | |
6819 amigaos*) | |
6820 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)' | |
6821 hardcode_libdir_flag_spec='-L$libdir' | |
6822 hardcode_minus_L=yes | |
6823 | |
6824 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
6825 # that the semantics of dynamic libraries on AmigaOS, at least up | |
6826 # to version 4, is to share data among multiple programs linked | |
6827 # with the same dynamic library. Since this doesn't match the | |
6828 # behavior of shared libraries on other platforms, we can't use | |
6829 # them. | |
6830 ld_shlibs=no | |
6831 ;; | |
6832 | |
6833 beos*) | |
6834 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6835 allow_undefined_flag=unsupported | |
6836 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
6837 # support --undefined. This deserves some investigation. FIXME | |
6838 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6839 else | |
6840 ld_shlibs=no | |
6841 fi | |
6842 ;; | |
6843 | |
6844 cygwin* | mingw* | pw32*) | |
6845 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
6846 # as there is no search path for DLLs. | |
6847 hardcode_libdir_flag_spec='-L$libdir' | |
6848 allow_undefined_flag=unsupported | |
6849 always_export_symbols=no | |
6850 enable_shared_with_static_runtimes=yes | |
6851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
6852 | |
6853 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
6854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
6855 # If the export-symbols file already is a .def file (1st line | |
6856 # is EXPORTS), use it as is; otherwise, prepend... | |
6857 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
6858 cp $export_symbols $output_objdir/$soname.def; | |
6859 else | |
6860 echo EXPORTS > $output_objdir/$soname.def; | |
6861 cat $export_symbols >> $output_objdir/$soname.def; | |
6862 fi~ | |
6863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
6864 else | |
6865 ld_shlibs=no | |
6866 fi | |
6867 ;; | |
6868 | |
6869 linux*) | |
6870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6871 tmp_addflag= | |
6872 case $cc_basename,$host_cpu in | |
6873 pgcc*) # Portland Group C compiler | |
6874 whole_archive_flag_spec= | |
6875 ;; | |
6876 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers | |
6877 whole_archive_flag_spec= | |
6878 tmp_addflag=' -fpic -Mnomain' ;; | |
6879 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
6880 tmp_addflag=' -i_dynamic' ;; | |
6881 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
6882 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
6883 ifc* | ifort*) # Intel Fortran compiler | |
6884 tmp_addflag=' -nofor_main' ;; | |
6885 esac | |
6886 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6887 | |
6888 if test $supports_anon_versioning = yes; then | |
6889 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
6890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
6891 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
6892 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
6893 fi | |
6894 else | |
6895 ld_shlibs=no | |
6896 fi | |
6897 ;; | |
6898 | |
6899 netbsd*) | |
6900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6901 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
6902 wlarc= | |
6903 else | |
6904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6906 fi | |
6907 ;; | |
6908 | |
6909 solaris* | sysv5*) | |
6910 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
6911 ld_shlibs=no | |
6912 cat <<EOF 1>&2 | |
6913 | |
6914 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
6915 *** create shared libraries on Solaris systems. Therefore, libtool | |
6916 *** is disabling shared libraries support. We urge you to upgrade GNU | |
6917 *** binutils to release 2.9.1 or newer. Another option is to modify | |
6918 *** your PATH or compiler configuration so that the native linker is | |
6919 *** used, and then restart. | |
6920 | |
6921 EOF | |
6922 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6924 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6925 else | |
6926 ld_shlibs=no | |
6927 fi | |
6928 ;; | |
6929 | |
6930 sunos4*) | |
6931 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6932 wlarc= | |
6933 hardcode_direct=yes | |
6934 hardcode_shlibpath_var=no | |
6935 ;; | |
6936 | |
6937 *) | |
6938 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6941 else | |
6942 ld_shlibs=no | |
6943 fi | |
6944 ;; | |
6945 esac | |
6946 | |
6947 if test "$ld_shlibs" = no; then | |
6948 runpath_var= | |
6949 hardcode_libdir_flag_spec= | |
6950 export_dynamic_flag_spec= | |
6951 whole_archive_flag_spec= | |
6952 fi | |
6953 else | |
6954 # PORTME fill in a description of your system's linker (not GNU ld) | |
6955 case $host_os in | |
6956 aix3*) | |
6957 allow_undefined_flag=unsupported | |
6958 always_export_symbols=yes | |
6959 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' | |
6960 # Note: this linker hardcodes the directories in LIBPATH if there | |
6961 # are no directories specified by -L. | |
6962 hardcode_minus_L=yes | |
6963 if test "$GCC" = yes && test -z "$link_static_flag"; then | |
6964 # Neither direct hardcoding nor static linking is supported with a | |
6965 # broken collect2. | |
6966 hardcode_direct=unsupported | |
6967 fi | |
6968 ;; | |
6969 | |
6970 aix4* | aix5*) | |
6971 if test "$host_cpu" = ia64; then | |
6972 # On IA64, the linker does run time linking by default, so we don't | |
6973 # have to do anything special. | |
6974 aix_use_runtimelinking=no | |
6975 exp_sym_flag='-Bexport' | |
6976 no_entry_flag="" | |
6977 else | |
6978 # If we're using GNU nm, then we don't want the "-C" option. | |
6979 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
6980 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
6981 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
6982 else | |
6983 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
6984 fi | |
6985 aix_use_runtimelinking=no | |
6986 | |
6987 # Test if we are trying to use run time linking or normal | |
6988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
6989 # need to do runtime linking. | |
6990 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
6991 for ld_flag in $LDFLAGS; do | |
6992 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
6993 aix_use_runtimelinking=yes | |
6994 break | |
6995 fi | |
6996 done | |
6997 esac | |
6998 | |
6999 exp_sym_flag='-bexport' | |
7000 no_entry_flag='-bnoentry' | |
7001 fi | |
7002 | |
7003 # When large executables or shared objects are built, AIX ld can | |
7004 # have problems creating the table of contents. If linking a library | |
7005 # or program results in "error TOC overflow" add -mminimal-toc to | |
7006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7008 | |
7009 archive_cmds='' | |
7010 hardcode_direct=yes | |
7011 hardcode_libdir_separator=':' | |
7012 link_all_deplibs=yes | |
7013 | |
7014 if test "$GCC" = yes; then | |
7015 case $host_os in aix4.[012]|aix4.[012].*) | |
7016 # We only want to do this on AIX 4.2 and lower, the check | |
7017 # below for broken collect2 doesn't work under 4.3+ | |
7018 collect2name=`${CC} -print-prog-name=collect2` | |
7019 if test -f "$collect2name" && \ | |
7020 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
7021 then | |
7022 # We have reworked collect2 | |
7023 hardcode_direct=yes | |
7024 else | |
7025 # We have old collect2 | |
7026 hardcode_direct=unsupported | |
7027 # It fails to find uninstalled libraries when the uninstalled | |
7028 # path is not listed in the libpath. Setting hardcode_minus_L | |
7029 # to unsupported forces relinking | |
7030 hardcode_minus_L=yes | |
7031 hardcode_libdir_flag_spec='-L$libdir' | |
7032 hardcode_libdir_separator= | |
7033 fi | |
7034 esac | |
7035 shared_flag='-shared' | |
7036 if test "$aix_use_runtimelinking" = yes; then | |
7037 shared_flag="$shared_flag "'${wl}-G' | |
7038 fi | |
7039 else | |
7040 # not using gcc | |
7041 if test "$host_cpu" = ia64; then | |
7042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7043 # chokes on -Wl,-G. The following line is correct: | |
7044 shared_flag='-G' | |
7045 else | |
7046 if test "$aix_use_runtimelinking" = yes; then | |
7047 shared_flag='${wl}-G' | |
7048 else | |
7049 shared_flag='${wl}-bM:SRE' | |
7050 fi | |
7051 fi | |
7052 fi | |
7053 | |
7054 # It seems that -bexpall does not export symbols beginning with | |
7055 # underscore (_), so it is better to generate a list of symbols to export. | |
7056 always_export_symbols=yes | |
7057 if test "$aix_use_runtimelinking" = yes; then | |
7058 # Warning - without using the other runtime loading flags (-brtl), | |
7059 # -berok will link without error, but may produce a broken library. | |
7060 allow_undefined_flag='-berok' | |
7061 # Determine the default libpath from the value encoded in an empty executable. | |
7062 cat >conftest.$ac_ext <<_ACEOF | |
7063 /* confdefs.h. */ | |
7064 _ACEOF | |
7065 cat confdefs.h >>conftest.$ac_ext | |
7066 cat >>conftest.$ac_ext <<_ACEOF | |
7067 /* end confdefs.h. */ | |
7068 | |
7069 int | |
7070 main () | |
7071 { | |
7072 | |
7073 ; | |
7074 return 0; | |
7075 } | |
7076 _ACEOF | |
7077 rm -f conftest.$ac_objext conftest$ac_exeext | |
7078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7079 (eval $ac_link) 2>conftest.er1 | |
7080 ac_status=$? | |
7081 grep -v '^ *+' conftest.er1 >conftest.err | |
7082 rm -f conftest.er1 | |
7083 cat conftest.err >&5 | |
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7085 (exit $ac_status); } && | |
7086 { ac_try='test -z "$ac_c_werror_flag" | |
7087 || test ! -s conftest.err' | |
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7089 (eval $ac_try) 2>&5 | |
7090 ac_status=$? | |
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7092 (exit $ac_status); }; } && | |
7093 { ac_try='test -s conftest$ac_exeext' | |
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7095 (eval $ac_try) 2>&5 | |
7096 ac_status=$? | |
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7098 (exit $ac_status); }; }; then | |
7099 | |
7100 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7101 }'` | |
7102 # Check for a 64-bit object if we didn't find anything. | |
7103 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7104 }'`; fi | |
7105 else | |
7106 echo "$as_me: failed program was:" >&5 | |
7107 sed 's/^/| /' conftest.$ac_ext >&5 | |
7108 | |
7109 fi | |
7110 rm -f conftest.err conftest.$ac_objext \ | |
7111 conftest$ac_exeext conftest.$ac_ext | |
7112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7113 | |
7114 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7115 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" | |
7116 else | |
7117 if test "$host_cpu" = ia64; then | |
7118 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7119 allow_undefined_flag="-z nodefs" | |
7120 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
7121 else | |
7122 # Determine the default libpath from the value encoded in an empty executable. | |
7123 cat >conftest.$ac_ext <<_ACEOF | |
7124 /* confdefs.h. */ | |
7125 _ACEOF | |
7126 cat confdefs.h >>conftest.$ac_ext | |
7127 cat >>conftest.$ac_ext <<_ACEOF | |
7128 /* end confdefs.h. */ | |
7129 | |
7130 int | |
7131 main () | |
7132 { | |
7133 | |
7134 ; | |
7135 return 0; | |
7136 } | |
7137 _ACEOF | |
7138 rm -f conftest.$ac_objext conftest$ac_exeext | |
7139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7140 (eval $ac_link) 2>conftest.er1 | |
7141 ac_status=$? | |
7142 grep -v '^ *+' conftest.er1 >conftest.err | |
7143 rm -f conftest.er1 | |
7144 cat conftest.err >&5 | |
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7146 (exit $ac_status); } && | |
7147 { ac_try='test -z "$ac_c_werror_flag" | |
7148 || test ! -s conftest.err' | |
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7150 (eval $ac_try) 2>&5 | |
7151 ac_status=$? | |
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7153 (exit $ac_status); }; } && | |
7154 { ac_try='test -s conftest$ac_exeext' | |
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7156 (eval $ac_try) 2>&5 | |
7157 ac_status=$? | |
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7159 (exit $ac_status); }; }; then | |
7160 | |
7161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7162 }'` | |
7163 # Check for a 64-bit object if we didn't find anything. | |
7164 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7165 }'`; fi | |
7166 else | |
7167 echo "$as_me: failed program was:" >&5 | |
7168 sed 's/^/| /' conftest.$ac_ext >&5 | |
7169 | |
7170 fi | |
7171 rm -f conftest.err conftest.$ac_objext \ | |
7172 conftest$ac_exeext conftest.$ac_ext | |
7173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7174 | |
7175 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7176 # Warning - without using the other run time loading flags, | |
7177 # -berok will link without error, but may produce a broken library. | |
7178 no_undefined_flag=' ${wl}-bernotok' | |
7179 allow_undefined_flag=' ${wl}-berok' | |
7180 # -bexpall does not export symbols beginning with underscore (_) | |
7181 always_export_symbols=yes | |
7182 # Exported symbols can be pulled into shared objects from archives | |
7183 whole_archive_flag_spec=' ' | |
7184 archive_cmds_need_lc=yes | |
7185 # This is similar to how AIX traditionally builds it's shared libraries. | |
7186 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
7187 fi | |
7188 fi | |
7189 ;; | |
7190 | |
7191 amigaos*) | |
7192 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)' | |
7193 hardcode_libdir_flag_spec='-L$libdir' | |
7194 hardcode_minus_L=yes | |
7195 # see comment about different semantics on the GNU ld section | |
7196 ld_shlibs=no | |
7197 ;; | |
7198 | |
7199 bsdi[45]*) | |
7200 export_dynamic_flag_spec=-rdynamic | |
7201 ;; | |
7202 | |
7203 cygwin* | mingw* | pw32*) | |
7204 # When not using gcc, we currently assume that we are using | |
7205 # Microsoft Visual C++. | |
7206 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7207 # no search path for DLLs. | |
7208 hardcode_libdir_flag_spec=' ' | |
7209 allow_undefined_flag=unsupported | |
7210 # Tell ltmain to make .lib files, not .a files. | |
7211 libext=lib | |
7212 # Tell ltmain to make .dll files, not .so files. | |
7213 shrext_cmds=".dll" | |
7214 # FIXME: Setting linknames here is a bad hack. | |
7215 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7216 # The linker will automatically build a .lib file if we build a DLL. | |
7217 old_archive_From_new_cmds='true' | |
7218 # FIXME: Should let the user specify the lib program. | |
7219 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
7220 fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7221 enable_shared_with_static_runtimes=yes | |
7222 ;; | |
7223 | |
7224 darwin* | rhapsody*) | |
7225 case "$host_os" in | |
7226 rhapsody* | darwin1.[012]) | |
7227 allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
7228 ;; | |
7229 *) # Darwin 1.3 on | |
7230 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
7231 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
7232 else | |
7233 case ${MACOSX_DEPLOYMENT_TARGET} in | |
7234 10.[012]) | |
7235 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
7236 ;; | |
7237 10.*) | |
7238 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
7239 ;; | |
7240 esac | |
7241 fi | |
7242 ;; | |
7243 esac | |
7244 archive_cmds_need_lc=no | |
7245 hardcode_direct=no | |
7246 hardcode_automatic=yes | |
7247 hardcode_shlibpath_var=unsupported | |
7248 whole_archive_flag_spec='' | |
7249 link_all_deplibs=yes | |
7250 if test "$GCC" = yes ; then | |
7251 output_verbose_link_cmd='echo' | |
7252 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
7253 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
7254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
7255 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7256 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7257 else | |
7258 case $cc_basename in | |
7259 xlc*) | |
7260 output_verbose_link_cmd='echo' | |
7261 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
7262 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
7263 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
7264 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7265 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7266 ;; | |
7267 *) | |
7268 ld_shlibs=no | |
7269 ;; | |
7270 esac | |
7271 fi | |
7272 ;; | |
7273 | |
7274 dgux*) | |
7275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7276 hardcode_libdir_flag_spec='-L$libdir' | |
7277 hardcode_shlibpath_var=no | |
7278 ;; | |
7279 | |
7280 freebsd1*) | |
7281 ld_shlibs=no | |
7282 ;; | |
7283 | |
7284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7285 # support. Future versions do this automatically, but an explicit c++rt0.o | |
7286 # does not break anything, and helps significantly (at the cost of a little | |
7287 # extra space). | |
7288 freebsd2.2*) | |
7289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7290 hardcode_libdir_flag_spec='-R$libdir' | |
7291 hardcode_direct=yes | |
7292 hardcode_shlibpath_var=no | |
7293 ;; | |
7294 | |
7295 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7296 freebsd2*) | |
7297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7298 hardcode_direct=yes | |
7299 hardcode_minus_L=yes | |
7300 hardcode_shlibpath_var=no | |
7301 ;; | |
7302 | |
7303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7304 freebsd* | kfreebsd*-gnu | dragonfly*) | |
7305 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7306 hardcode_libdir_flag_spec='-R$libdir' | |
7307 hardcode_direct=yes | |
7308 hardcode_shlibpath_var=no | |
7309 ;; | |
7310 | |
7311 hpux9*) | |
7312 if test "$GCC" = yes; then | |
7313 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7314 else | |
7315 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' | |
7316 fi | |
7317 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7318 hardcode_libdir_separator=: | |
7319 hardcode_direct=yes | |
7320 | |
7321 # hardcode_minus_L: Not really in the search PATH, | |
7322 # but as the default location of the library. | |
7323 hardcode_minus_L=yes | |
7324 export_dynamic_flag_spec='${wl}-E' | |
7325 ;; | |
7326 | |
7327 hpux10* | hpux11*) | |
7328 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7329 case "$host_cpu" in | |
7330 hppa*64*|ia64*) | |
7331 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7332 ;; | |
7333 *) | |
7334 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7335 ;; | |
7336 esac | |
7337 else | |
7338 case "$host_cpu" in | |
7339 hppa*64*|ia64*) | |
7340 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7341 ;; | |
7342 *) | |
7343 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
7344 ;; | |
7345 esac | |
7346 fi | |
7347 if test "$with_gnu_ld" = no; then | |
7348 case "$host_cpu" in | |
7349 hppa*64*) | |
7350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7351 hardcode_libdir_flag_spec_ld='+b $libdir' | |
7352 hardcode_libdir_separator=: | |
7353 hardcode_direct=no | |
7354 hardcode_shlibpath_var=no | |
7355 ;; | |
7356 ia64*) | |
7357 hardcode_libdir_flag_spec='-L$libdir' | |
7358 hardcode_direct=no | |
7359 hardcode_shlibpath_var=no | |
7360 | |
7361 # hardcode_minus_L: Not really in the search PATH, | |
7362 # but as the default location of the library. | |
7363 hardcode_minus_L=yes | |
7364 ;; | |
7365 *) | |
7366 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7367 hardcode_libdir_separator=: | |
7368 hardcode_direct=yes | |
7369 export_dynamic_flag_spec='${wl}-E' | |
7370 | |
7371 # hardcode_minus_L: Not really in the search PATH, | |
7372 # but as the default location of the library. | |
7373 hardcode_minus_L=yes | |
7374 ;; | |
7375 esac | |
7376 fi | |
7377 ;; | |
7378 | |
7379 irix5* | irix6* | nonstopux*) | |
7380 if test "$GCC" = yes; then | |
7381 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' | |
7382 else | |
7383 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' | |
7384 hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7385 fi | |
7386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7387 hardcode_libdir_separator=: | |
7388 link_all_deplibs=yes | |
7389 ;; | |
7390 | |
7391 netbsd*) | |
7392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
7394 else | |
7395 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
7396 fi | |
7397 hardcode_libdir_flag_spec='-R$libdir' | |
7398 hardcode_direct=yes | |
7399 hardcode_shlibpath_var=no | |
7400 ;; | |
7401 | |
7402 newsos6) | |
7403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7404 hardcode_direct=yes | |
7405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7406 hardcode_libdir_separator=: | |
7407 hardcode_shlibpath_var=no | |
7408 ;; | |
7409 | |
7410 openbsd*) | |
7411 hardcode_direct=yes | |
7412 hardcode_shlibpath_var=no | |
7413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7415 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
7416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7417 export_dynamic_flag_spec='${wl}-E' | |
7418 else | |
7419 case $host_os in | |
7420 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
7421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7422 hardcode_libdir_flag_spec='-R$libdir' | |
7423 ;; | |
7424 *) | |
7425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7427 ;; | |
7428 esac | |
7429 fi | |
7430 ;; | |
7431 | |
7432 os2*) | |
7433 hardcode_libdir_flag_spec='-L$libdir' | |
7434 hardcode_minus_L=yes | |
7435 allow_undefined_flag=unsupported | |
7436 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' | |
7437 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
7438 ;; | |
7439 | |
7440 osf3*) | |
7441 if test "$GCC" = yes; then | |
7442 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7443 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' | |
7444 else | |
7445 allow_undefined_flag=' -expect_unresolved \*' | |
7446 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' | |
7447 fi | |
7448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7449 hardcode_libdir_separator=: | |
7450 ;; | |
7451 | |
7452 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
7453 if test "$GCC" = yes; then | |
7454 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7455 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' | |
7456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7457 else | |
7458 allow_undefined_flag=' -expect_unresolved \*' | |
7459 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' | |
7460 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
7461 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
7462 | |
7463 # Both c and cxx compiler support -rpath directly | |
7464 hardcode_libdir_flag_spec='-rpath $libdir' | |
7465 fi | |
7466 hardcode_libdir_separator=: | |
7467 ;; | |
7468 | |
7469 sco3.2v5*) | |
7470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7471 hardcode_shlibpath_var=no | |
7472 export_dynamic_flag_spec='${wl}-Bexport' | |
7473 runpath_var=LD_RUN_PATH | |
7474 hardcode_runpath_var=yes | |
7475 ;; | |
7476 | |
7477 solaris*) | |
7478 no_undefined_flag=' -z text' | |
7479 if test "$GCC" = yes; then | |
7480 wlarc='${wl}' | |
7481 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7482 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7483 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
7484 else | |
7485 wlarc='' | |
7486 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7487 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7488 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
7489 fi | |
7490 hardcode_libdir_flag_spec='-R$libdir' | |
7491 hardcode_shlibpath_var=no | |
7492 case $host_os in | |
7493 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
7494 *) | |
7495 # The compiler driver will combine linker options so we | |
7496 # cannot just pass the convience library names through | |
7497 # without $wl, iff we do not link with $LD. | |
7498 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
7499 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
7500 case $wlarc in | |
7501 '') | |
7502 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
7503 *) | |
7504 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
7505 esac ;; | |
7506 esac | |
7507 link_all_deplibs=yes | |
7508 ;; | |
7509 | |
7510 sunos4*) | |
7511 if test "x$host_vendor" = xsequent; then | |
7512 # Use $CC to link under sequent, because it throws in some extra .o | |
7513 # files that make .init and .fini sections work. | |
7514 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
7515 else | |
7516 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
7517 fi | |
7518 hardcode_libdir_flag_spec='-L$libdir' | |
7519 hardcode_direct=yes | |
7520 hardcode_minus_L=yes | |
7521 hardcode_shlibpath_var=no | |
7522 ;; | |
7523 | |
7524 sysv4) | |
7525 case $host_vendor in | |
7526 sni) | |
7527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7528 hardcode_direct=yes # is this really true??? | |
7529 ;; | |
7530 siemens) | |
7531 ## LD is ld it makes a PLAMLIB | |
7532 ## CC just makes a GrossModule. | |
7533 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
7534 reload_cmds='$CC -r -o $output$reload_objs' | |
7535 hardcode_direct=no | |
7536 ;; | |
7537 motorola) | |
7538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7539 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
7540 ;; | |
7541 esac | |
7542 runpath_var='LD_RUN_PATH' | |
7543 hardcode_shlibpath_var=no | |
7544 ;; | |
7545 | |
7546 sysv4.3*) | |
7547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7548 hardcode_shlibpath_var=no | |
7549 export_dynamic_flag_spec='-Bexport' | |
7550 ;; | |
7551 | |
7552 sysv4*MP*) | |
7553 if test -d /usr/nec; then | |
7554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7555 hardcode_shlibpath_var=no | |
7556 runpath_var=LD_RUN_PATH | |
7557 hardcode_runpath_var=yes | |
7558 ld_shlibs=yes | |
7559 fi | |
7560 ;; | |
7561 | |
7562 sysv4.2uw2*) | |
7563 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
7564 hardcode_direct=yes | |
7565 hardcode_minus_L=no | |
7566 hardcode_shlibpath_var=no | |
7567 hardcode_runpath_var=yes | |
7568 runpath_var=LD_RUN_PATH | |
7569 ;; | |
7570 | |
7571 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
7572 no_undefined_flag='${wl}-z ${wl}text' | |
7573 if test "$GCC" = yes; then | |
7574 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7575 else | |
7576 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7577 fi | |
7578 runpath_var='LD_RUN_PATH' | |
7579 hardcode_shlibpath_var=no | |
7580 ;; | |
7581 | |
7582 sysv5*) | |
7583 no_undefined_flag=' -z text' | |
7584 # $CC -shared without GNU ld will not create a library from C++ | |
7585 # object files and a static libstdc++, better avoid it by now | |
7586 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7587 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7588 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
7589 hardcode_libdir_flag_spec= | |
7590 hardcode_shlibpath_var=no | |
7591 runpath_var='LD_RUN_PATH' | |
7592 ;; | |
7593 | |
7594 uts4*) | |
7595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7596 hardcode_libdir_flag_spec='-L$libdir' | |
7597 hardcode_shlibpath_var=no | |
7598 ;; | |
7599 | |
7600 *) | |
7601 ld_shlibs=no | |
7602 ;; | |
7603 esac | |
7604 fi | |
7605 | |
7606 echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
7607 echo "${ECHO_T}$ld_shlibs" >&6 | |
7608 test "$ld_shlibs" = no && can_build_shared=no | |
7609 | |
7610 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
7611 if test "$GCC" = yes; then | |
7612 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
7613 fi | |
7614 | |
7615 # | |
7616 # Do we need to explicitly link libc? | |
7617 # | |
7618 case "x$archive_cmds_need_lc" in | |
7619 x|xyes) | |
7620 # Assume -lc should be added | |
7621 archive_cmds_need_lc=yes | |
7622 | |
7623 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
7624 case $archive_cmds in | |
7625 *'~'*) | |
7626 # FIXME: we may have to deal with multi-command sequences. | |
7627 ;; | |
7628 '$CC '*) | |
7629 # Test whether the compiler implicitly links with -lc since on some | |
7630 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
7631 # to ld, don't add -lc before -lgcc. | |
7632 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
7633 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
7634 $rm conftest* | |
7635 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7636 | |
7637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7638 (eval $ac_compile) 2>&5 | |
7639 ac_status=$? | |
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7641 (exit $ac_status); } 2>conftest.err; then | |
7642 soname=conftest | |
7643 lib=conftest | |
7644 libobjs=conftest.$ac_objext | |
7645 deplibs= | |
7646 wl=$lt_prog_compiler_wl | |
7647 compiler_flags=-v | |
7648 linker_flags=-v | |
7649 verstring= | |
7650 output_objdir=. | |
7651 libname=conftest | |
7652 lt_save_allow_undefined_flag=$allow_undefined_flag | |
7653 allow_undefined_flag= | |
7654 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
7655 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
7656 ac_status=$? | |
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7658 (exit $ac_status); } | |
7659 then | |
7660 archive_cmds_need_lc=no | |
7661 else | |
7662 archive_cmds_need_lc=yes | |
7663 fi | |
7664 allow_undefined_flag=$lt_save_allow_undefined_flag | |
7665 else | |
7666 cat conftest.err 1>&5 | |
7667 fi | |
7668 $rm conftest* | |
7669 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
7670 echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
7671 ;; | |
7672 esac | |
7673 fi | |
7674 ;; | |
7675 esac | |
7676 | |
7677 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
7678 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
7679 library_names_spec= | |
7680 libname_spec='lib$name' | |
7681 soname_spec= | |
7682 shrext_cmds=".so" | |
7683 postinstall_cmds= | |
7684 postuninstall_cmds= | |
7685 finish_cmds= | |
7686 finish_eval= | |
7687 shlibpath_var= | |
7688 shlibpath_overrides_runpath=unknown | |
7689 version_type=none | |
7690 dynamic_linker="$host_os ld.so" | |
7691 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
7692 if test "$GCC" = yes; then | |
7693 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
7694 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
7695 # if the path contains ";" then we assume it to be the separator | |
7696 # otherwise default to the standard path separator (i.e. ":") - it is | |
7697 # assumed that no part of a normal pathname contains ";" but that should | |
7698 # okay in the real world where ";" in dirpaths is itself problematic. | |
7699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
7700 else | |
7701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
7702 fi | |
7703 else | |
7704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
7705 fi | |
7706 need_lib_prefix=unknown | |
7707 hardcode_into_libs=no | |
7708 | |
7709 # when you set need_version to no, make sure it does not cause -set_version | |
7710 # flags to be left without arguments | |
7711 need_version=unknown | |
7712 | |
7713 case $host_os in | |
7714 aix3*) | |
7715 version_type=linux | |
7716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
7717 shlibpath_var=LIBPATH | |
7718 | |
7719 # AIX 3 has no versioning support, so we append a major version to the name. | |
7720 soname_spec='${libname}${release}${shared_ext}$major' | |
7721 ;; | |
7722 | |
7723 aix4* | aix5*) | |
7724 version_type=linux | |
7725 need_lib_prefix=no | |
7726 need_version=no | |
7727 hardcode_into_libs=yes | |
7728 if test "$host_cpu" = ia64; then | |
7729 # AIX 5 supports IA64 | |
7730 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
7731 shlibpath_var=LD_LIBRARY_PATH | |
7732 else | |
7733 # With GCC up to 2.95.x, collect2 would create an import file | |
7734 # for dependence libraries. The import file would start with | |
7735 # the line `#! .'. This would cause the generated library to | |
7736 # depend on `.', always an invalid library. This was fixed in | |
7737 # development snapshots of GCC prior to 3.0. | |
7738 case $host_os in | |
7739 aix4 | aix4.[01] | aix4.[01].*) | |
7740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
7741 echo ' yes ' | |
7742 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
7743 : | |
7744 else | |
7745 can_build_shared=no | |
7746 fi | |
7747 ;; | |
7748 esac | |
7749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
7750 # soname into executable. Probably we can add versioning support to | |
7751 # collect2, so additional links can be useful in future. | |
7752 if test "$aix_use_runtimelinking" = yes; then | |
7753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
7754 # instead of lib<name>.a to let people know that these are not | |
7755 # typical AIX shared libraries. | |
7756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7757 else | |
7758 # We preserve .a as extension for shared libraries through AIX4.2 | |
7759 # and later when we are not doing run time linking. | |
7760 library_names_spec='${libname}${release}.a $libname.a' | |
7761 soname_spec='${libname}${release}${shared_ext}$major' | |
7762 fi | |
7763 shlibpath_var=LIBPATH | |
7764 fi | |
7765 ;; | |
7766 | |
7767 amigaos*) | |
7768 library_names_spec='$libname.ixlibrary $libname.a' | |
7769 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
7770 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' | |
7771 ;; | |
7772 | |
7773 beos*) | |
7774 library_names_spec='${libname}${shared_ext}' | |
7775 dynamic_linker="$host_os ld.so" | |
7776 shlibpath_var=LIBRARY_PATH | |
7777 ;; | |
7778 | |
7779 bsdi[45]*) | |
7780 version_type=linux | |
7781 need_version=no | |
7782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7783 soname_spec='${libname}${release}${shared_ext}$major' | |
7784 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
7785 shlibpath_var=LD_LIBRARY_PATH | |
7786 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
7787 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
7788 # the default ld.so.conf also contains /usr/contrib/lib and | |
7789 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
7790 # libtool to hard-code these into programs | |
7791 ;; | |
7792 | |
7793 cygwin* | mingw* | pw32*) | |
7794 version_type=windows | |
7795 shrext_cmds=".dll" | |
7796 need_version=no | |
7797 need_lib_prefix=no | |
7798 | |
7799 case $GCC,$host_os in | |
7800 yes,cygwin* | yes,mingw* | yes,pw32*) | |
7801 library_names_spec='$libname.dll.a' | |
7802 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
7803 postinstall_cmds='base_file=`basename \${file}`~ | |
7804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
7805 dldir=$destdir/`dirname \$dlpath`~ | |
7806 test -d \$dldir || mkdir -p \$dldir~ | |
7807 $install_prog $dir/$dlname \$dldir/$dlname' | |
7808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
7809 dlpath=$dir/\$dldll~ | |
7810 $rm \$dlpath' | |
7811 shlibpath_overrides_runpath=yes | |
7812 | |
7813 case $host_os in | |
7814 cygwin*) | |
7815 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
7816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
7817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
7818 ;; | |
7819 mingw*) | |
7820 # MinGW DLLs use traditional 'lib' prefix | |
7821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
7822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
7823 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
7824 # It is most probably a Windows format PATH printed by | |
7825 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
7826 # path with ; separators, and with drive letters. We can handle the | |
7827 # drive letters (cygwin fileutils understands them), so leave them, | |
7828 # especially as we might pass files found there to a mingw objdump, | |
7829 # which wouldn't understand a cygwinified path. Ahh. | |
7830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
7831 else | |
7832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
7833 fi | |
7834 ;; | |
7835 pw32*) | |
7836 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
7837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
7838 ;; | |
7839 esac | |
7840 ;; | |
7841 | |
7842 *) | |
7843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
7844 ;; | |
7845 esac | |
7846 dynamic_linker='Win32 ld.exe' | |
7847 # FIXME: first we should search . and the directory the executable is in | |
7848 shlibpath_var=PATH | |
7849 ;; | |
7850 | |
7851 darwin* | rhapsody*) | |
7852 dynamic_linker="$host_os dyld" | |
7853 version_type=darwin | |
7854 need_lib_prefix=no | |
7855 need_version=no | |
7856 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
7857 soname_spec='${libname}${release}${major}$shared_ext' | |
7858 shlibpath_overrides_runpath=yes | |
7859 shlibpath_var=DYLD_LIBRARY_PATH | |
7860 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | |
7861 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
7862 if test "$GCC" = yes; then | |
7863 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
7864 else | |
7865 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
7866 fi | |
7867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
7868 ;; | |
7869 | |
7870 dgux*) | |
7871 version_type=linux | |
7872 need_lib_prefix=no | |
7873 need_version=no | |
7874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
7875 soname_spec='${libname}${release}${shared_ext}$major' | |
7876 shlibpath_var=LD_LIBRARY_PATH | |
7877 ;; | |
7878 | |
7879 freebsd1*) | |
7880 dynamic_linker=no | |
7881 ;; | |
7882 | |
7883 kfreebsd*-gnu) | |
7884 version_type=linux | |
7885 need_lib_prefix=no | |
7886 need_version=no | |
7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
7888 soname_spec='${libname}${release}${shared_ext}$major' | |
7889 shlibpath_var=LD_LIBRARY_PATH | |
7890 shlibpath_overrides_runpath=no | |
7891 hardcode_into_libs=yes | |
7892 dynamic_linker='GNU ld.so' | |
7893 ;; | |
7894 | |
7895 freebsd* | dragonfly*) | |
7896 # DragonFly does not have aout. When/if they implement a new | |
7897 # versioning mechanism, adjust this. | |
7898 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
7899 version_type=freebsd-$objformat | |
7900 case $version_type in | |
7901 freebsd-elf*) | |
7902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
7903 need_version=no | |
7904 need_lib_prefix=no | |
7905 ;; | |
7906 freebsd-*) | |
7907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
7908 need_version=yes | |
7909 ;; | |
7910 esac | |
7911 shlibpath_var=LD_LIBRARY_PATH | |
7912 case $host_os in | |
7913 freebsd2*) | |
7914 shlibpath_overrides_runpath=yes | |
7915 ;; | |
7916 freebsd3.[01]* | freebsdelf3.[01]*) | |
7917 shlibpath_overrides_runpath=yes | |
7918 hardcode_into_libs=yes | |
7919 ;; | |
7920 *) # from 3.2 on | |
7921 shlibpath_overrides_runpath=no | |
7922 hardcode_into_libs=yes | |
7923 ;; | |
7924 esac | |
7925 ;; | |
7926 | |
7927 gnu*) | |
7928 version_type=linux | |
7929 need_lib_prefix=no | |
7930 need_version=no | |
7931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
7932 soname_spec='${libname}${release}${shared_ext}$major' | |
7933 shlibpath_var=LD_LIBRARY_PATH | |
7934 hardcode_into_libs=yes | |
7935 ;; | |
7936 | |
7937 hpux9* | hpux10* | hpux11*) | |
7938 # Give a soname corresponding to the major version so that dld.sl refuses to | |
7939 # link against other versions. | |
7940 version_type=sunos | |
7941 need_lib_prefix=no | |
7942 need_version=no | |
7943 case "$host_cpu" in | |
7944 ia64*) | |
7945 shrext_cmds='.so' | |
7946 hardcode_into_libs=yes | |
7947 dynamic_linker="$host_os dld.so" | |
7948 shlibpath_var=LD_LIBRARY_PATH | |
7949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
7950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7951 soname_spec='${libname}${release}${shared_ext}$major' | |
7952 if test "X$HPUX_IA64_MODE" = X32; then | |
7953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
7954 else | |
7955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
7956 fi | |
7957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
7958 ;; | |
7959 hppa*64*) | |
7960 shrext_cmds='.sl' | |
7961 hardcode_into_libs=yes | |
7962 dynamic_linker="$host_os dld.sl" | |
7963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
7964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7966 soname_spec='${libname}${release}${shared_ext}$major' | |
7967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
7968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
7969 ;; | |
7970 *) | |
7971 shrext_cmds='.sl' | |
7972 dynamic_linker="$host_os dld.sl" | |
7973 shlibpath_var=SHLIB_PATH | |
7974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
7975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7976 soname_spec='${libname}${release}${shared_ext}$major' | |
7977 ;; | |
7978 esac | |
7979 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
7980 postinstall_cmds='chmod 555 $lib' | |
7981 ;; | |
7982 | |
7983 irix5* | irix6* | nonstopux*) | |
7984 case $host_os in | |
7985 nonstopux*) version_type=nonstopux ;; | |
7986 *) | |
7987 if test "$lt_cv_prog_gnu_ld" = yes; then | |
7988 version_type=linux | |
7989 else | |
7990 version_type=irix | |
7991 fi ;; | |
7992 esac | |
7993 need_lib_prefix=no | |
7994 need_version=no | |
7995 soname_spec='${libname}${release}${shared_ext}$major' | |
7996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
7997 case $host_os in | |
7998 irix5* | nonstopux*) | |
7999 libsuff= shlibsuff= | |
8000 ;; | |
8001 *) | |
8002 case $LD in # libtool.m4 will add one of these switches to LD | |
8003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8004 libsuff= shlibsuff= libmagic=32-bit;; | |
8005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8006 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8008 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8009 *) libsuff= shlibsuff= libmagic=never-match;; | |
8010 esac | |
8011 ;; | |
8012 esac | |
8013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8014 shlibpath_overrides_runpath=no | |
8015 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8016 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8017 hardcode_into_libs=yes | |
8018 ;; | |
8019 | |
8020 # No shared lib support for Linux oldld, aout, or coff. | |
8021 linux*oldld* | linux*aout* | linux*coff*) | |
8022 dynamic_linker=no | |
8023 ;; | |
8024 | |
8025 # This must be Linux ELF. | |
8026 linux*) | |
8027 version_type=linux | |
8028 need_lib_prefix=no | |
8029 need_version=no | |
8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8031 soname_spec='${libname}${release}${shared_ext}$major' | |
8032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8033 shlibpath_var=LD_LIBRARY_PATH | |
8034 shlibpath_overrides_runpath=no | |
8035 # This implies no fast_install, which is unacceptable. | |
8036 # Some rework will be needed to allow for fast_install | |
8037 # before this can be enabled. | |
8038 hardcode_into_libs=yes | |
8039 | |
8040 # find out which ABI we are using | |
8041 libsuff= | |
8042 case "$host_cpu" in | |
8043 x86_64*|s390x*|powerpc64*) | |
8044 echo '#line 8044 "configure"' > conftest.$ac_ext | |
8045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8046 (eval $ac_compile) 2>&5 | |
8047 ac_status=$? | |
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8049 (exit $ac_status); }; then | |
8050 case `/usr/bin/file conftest.$ac_objext` in | |
8051 *64-bit*) | |
8052 libsuff=64 | |
8053 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
8054 ;; | |
8055 esac | |
8056 fi | |
8057 rm -rf conftest* | |
8058 ;; | |
8059 esac | |
8060 | |
8061 # Append ld.so.conf contents to the search path | |
8062 if test -f /etc/ld.so.conf; then | |
8063 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
8064 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | |
8065 fi | |
8066 | |
8067 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
8068 # powerpc, because MkLinux only supported shared libraries with the | |
8069 # GNU dynamic linker. Since this was broken with cross compilers, | |
8070 # most powerpc-linux boxes support dynamic linking these days and | |
8071 # people can always --disable-shared, the test was removed, and we | |
8072 # assume the GNU/Linux dynamic linker is in use. | |
8073 dynamic_linker='GNU/Linux ld.so' | |
8074 ;; | |
8075 | |
8076 knetbsd*-gnu) | |
8077 version_type=linux | |
8078 need_lib_prefix=no | |
8079 need_version=no | |
8080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8081 soname_spec='${libname}${release}${shared_ext}$major' | |
8082 shlibpath_var=LD_LIBRARY_PATH | |
8083 shlibpath_overrides_runpath=no | |
8084 hardcode_into_libs=yes | |
8085 dynamic_linker='GNU ld.so' | |
8086 ;; | |
8087 | |
8088 netbsd*) | |
8089 version_type=sunos | |
8090 need_lib_prefix=no | |
8091 need_version=no | |
8092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
8093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
8095 dynamic_linker='NetBSD (a.out) ld.so' | |
8096 else | |
8097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8098 soname_spec='${libname}${release}${shared_ext}$major' | |
8099 dynamic_linker='NetBSD ld.elf_so' | |
8100 fi | |
8101 shlibpath_var=LD_LIBRARY_PATH | |
8102 shlibpath_overrides_runpath=yes | |
8103 hardcode_into_libs=yes | |
8104 ;; | |
8105 | |
8106 newsos6) | |
8107 version_type=linux | |
8108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8109 shlibpath_var=LD_LIBRARY_PATH | |
8110 shlibpath_overrides_runpath=yes | |
8111 ;; | |
8112 | |
8113 nto-qnx*) | |
8114 version_type=linux | |
8115 need_lib_prefix=no | |
8116 need_version=no | |
8117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8118 soname_spec='${libname}${release}${shared_ext}$major' | |
8119 shlibpath_var=LD_LIBRARY_PATH | |
8120 shlibpath_overrides_runpath=yes | |
8121 ;; | |
8122 | |
8123 openbsd*) | |
8124 version_type=sunos | |
8125 need_lib_prefix=no | |
8126 need_version=no | |
8127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
8129 shlibpath_var=LD_LIBRARY_PATH | |
8130 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8131 case $host_os in | |
8132 openbsd2.[89] | openbsd2.[89].*) | |
8133 shlibpath_overrides_runpath=no | |
8134 ;; | |
8135 *) | |
8136 shlibpath_overrides_runpath=yes | |
8137 ;; | |
8138 esac | |
8139 else | |
8140 shlibpath_overrides_runpath=yes | |
8141 fi | |
8142 ;; | |
8143 | |
8144 os2*) | |
8145 libname_spec='$name' | |
8146 shrext_cmds=".dll" | |
8147 need_lib_prefix=no | |
8148 library_names_spec='$libname${shared_ext} $libname.a' | |
8149 dynamic_linker='OS/2 ld.exe' | |
8150 shlibpath_var=LIBPATH | |
8151 ;; | |
8152 | |
8153 osf3* | osf4* | osf5*) | |
8154 version_type=osf | |
8155 need_lib_prefix=no | |
8156 need_version=no | |
8157 soname_spec='${libname}${release}${shared_ext}$major' | |
8158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8159 shlibpath_var=LD_LIBRARY_PATH | |
8160 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
8161 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
8162 ;; | |
8163 | |
8164 sco3.2v5*) | |
8165 version_type=osf | |
8166 soname_spec='${libname}${release}${shared_ext}$major' | |
8167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8168 shlibpath_var=LD_LIBRARY_PATH | |
8169 ;; | |
8170 | |
8171 solaris*) | |
8172 version_type=linux | |
8173 need_lib_prefix=no | |
8174 need_version=no | |
8175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8176 soname_spec='${libname}${release}${shared_ext}$major' | |
8177 shlibpath_var=LD_LIBRARY_PATH | |
8178 shlibpath_overrides_runpath=yes | |
8179 hardcode_into_libs=yes | |
8180 # ldd complains unless libraries are executable | |
8181 postinstall_cmds='chmod +x $lib' | |
8182 ;; | |
8183 | |
8184 sunos4*) | |
8185 version_type=sunos | |
8186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8187 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
8188 shlibpath_var=LD_LIBRARY_PATH | |
8189 shlibpath_overrides_runpath=yes | |
8190 if test "$with_gnu_ld" = yes; then | |
8191 need_lib_prefix=no | |
8192 fi | |
8193 need_version=yes | |
8194 ;; | |
8195 | |
8196 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8197 version_type=linux | |
8198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8199 soname_spec='${libname}${release}${shared_ext}$major' | |
8200 shlibpath_var=LD_LIBRARY_PATH | |
8201 case $host_vendor in | |
8202 sni) | |
8203 shlibpath_overrides_runpath=no | |
8204 need_lib_prefix=no | |
8205 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8206 runpath_var=LD_RUN_PATH | |
8207 ;; | |
8208 siemens) | |
8209 need_lib_prefix=no | |
8210 ;; | |
8211 motorola) | |
8212 need_lib_prefix=no | |
8213 need_version=no | |
8214 shlibpath_overrides_runpath=no | |
8215 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
8216 ;; | |
8217 esac | |
8218 ;; | |
8219 | |
8220 sysv4*MP*) | |
8221 if test -d /usr/nec ;then | |
8222 version_type=linux | |
8223 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
8224 soname_spec='$libname${shared_ext}.$major' | |
8225 shlibpath_var=LD_LIBRARY_PATH | |
8226 fi | |
8227 ;; | |
8228 | |
8229 uts4*) | |
8230 version_type=linux | |
8231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8232 soname_spec='${libname}${release}${shared_ext}$major' | |
8233 shlibpath_var=LD_LIBRARY_PATH | |
8234 ;; | |
8235 | |
8236 *) | |
8237 dynamic_linker=no | |
8238 ;; | |
8239 esac | |
8240 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
8241 echo "${ECHO_T}$dynamic_linker" >&6 | |
8242 test "$dynamic_linker" = no && can_build_shared=no | |
8243 | |
8244 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
8245 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
8246 hardcode_action= | |
8247 if test -n "$hardcode_libdir_flag_spec" || \ | |
8248 test -n "$runpath_var" || \ | |
8249 test "X$hardcode_automatic" = "Xyes" ; then | |
8250 | |
8251 # We can hardcode non-existant directories. | |
8252 if test "$hardcode_direct" != no && | |
8253 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
8254 # have to relink, otherwise we might link with an installed library | |
8255 # when we should be linking with a yet-to-be-installed one | |
8256 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
8257 test "$hardcode_minus_L" != no; then | |
8258 # Linking always hardcodes the temporary library directory. | |
8259 hardcode_action=relink | |
8260 else | |
8261 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
8262 hardcode_action=immediate | |
8263 fi | |
8264 else | |
8265 # We cannot hardcode anything, or else we can only hardcode existing | |
8266 # directories. | |
8267 hardcode_action=unsupported | |
8268 fi | |
8269 echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
8270 echo "${ECHO_T}$hardcode_action" >&6 | |
8271 | |
8272 if test "$hardcode_action" = relink; then | |
8273 # Fast installation is not supported | |
8274 enable_fast_install=no | |
8275 elif test "$shlibpath_overrides_runpath" = yes || | |
8276 test "$enable_shared" = no; then | |
8277 # Fast installation is not necessary | |
8278 enable_fast_install=needless | |
8279 fi | |
8280 | |
8281 striplib= | |
8282 old_striplib= | |
8283 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
8284 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
8285 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
8286 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
8287 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
8288 echo "$as_me:$LINENO: result: yes" >&5 | |
8289 echo "${ECHO_T}yes" >&6 | |
8290 else | |
8291 # FIXME - insert some real tests, host_os isn't really good enough | |
8292 case $host_os in | |
8293 darwin*) | |
8294 if test -n "$STRIP" ; then | |
8295 striplib="$STRIP -x" | |
8296 echo "$as_me:$LINENO: result: yes" >&5 | |
8297 echo "${ECHO_T}yes" >&6 | |
8298 else | |
8299 echo "$as_me:$LINENO: result: no" >&5 | |
8300 echo "${ECHO_T}no" >&6 | |
8301 fi | |
8302 ;; | |
8303 *) | |
8304 echo "$as_me:$LINENO: result: no" >&5 | |
8305 echo "${ECHO_T}no" >&6 | |
8306 ;; | |
8307 esac | |
8308 fi | |
8309 | |
8310 if test "x$enable_dlopen" != xyes; then | |
8311 enable_dlopen=unknown | |
8312 enable_dlopen_self=unknown | |
8313 enable_dlopen_self_static=unknown | |
8314 else | |
8315 lt_cv_dlopen=no | |
8316 lt_cv_dlopen_libs= | |
8317 | |
8318 case $host_os in | |
8319 beos*) | |
8320 lt_cv_dlopen="load_add_on" | |
8321 lt_cv_dlopen_libs= | |
8322 lt_cv_dlopen_self=yes | |
8323 ;; | |
8324 | |
8325 mingw* | pw32*) | |
8326 lt_cv_dlopen="LoadLibrary" | |
8327 lt_cv_dlopen_libs= | |
8328 ;; | |
8329 | |
8330 cygwin*) | |
8331 lt_cv_dlopen="dlopen" | |
8332 lt_cv_dlopen_libs= | |
8333 ;; | |
8334 | |
8335 darwin*) | |
8336 # if libdl is installed we need to link against it | |
8337 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8338 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8340 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8341 else | |
8342 ac_check_lib_save_LIBS=$LIBS | |
8343 LIBS="-ldl $LIBS" | |
8344 cat >conftest.$ac_ext <<_ACEOF | |
8345 /* confdefs.h. */ | |
8346 _ACEOF | |
8347 cat confdefs.h >>conftest.$ac_ext | |
8348 cat >>conftest.$ac_ext <<_ACEOF | |
8349 /* end confdefs.h. */ | |
8350 | |
8351 /* Override any gcc2 internal prototype to avoid an error. */ | |
8352 #ifdef __cplusplus | |
8353 extern "C" | |
8354 #endif | |
8355 /* We use char because int might match the return type of a gcc2 | |
8356 builtin and then its argument prototype would still apply. */ | |
8357 char dlopen (); | |
8358 int | |
8359 main () | |
8360 { | |
8361 dlopen (); | |
8362 ; | |
8363 return 0; | |
8364 } | |
8365 _ACEOF | |
8366 rm -f conftest.$ac_objext conftest$ac_exeext | |
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8368 (eval $ac_link) 2>conftest.er1 | |
8369 ac_status=$? | |
8370 grep -v '^ *+' conftest.er1 >conftest.err | |
8371 rm -f conftest.er1 | |
8372 cat conftest.err >&5 | |
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8374 (exit $ac_status); } && | |
8375 { ac_try='test -z "$ac_c_werror_flag" | |
8376 || test ! -s conftest.err' | |
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8378 (eval $ac_try) 2>&5 | |
8379 ac_status=$? | |
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8381 (exit $ac_status); }; } && | |
8382 { ac_try='test -s conftest$ac_exeext' | |
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8384 (eval $ac_try) 2>&5 | |
8385 ac_status=$? | |
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8387 (exit $ac_status); }; }; then | |
8388 ac_cv_lib_dl_dlopen=yes | |
8389 else | |
8390 echo "$as_me: failed program was:" >&5 | |
8391 sed 's/^/| /' conftest.$ac_ext >&5 | |
8392 | |
8393 ac_cv_lib_dl_dlopen=no | |
8394 fi | |
8395 rm -f conftest.err conftest.$ac_objext \ | |
8396 conftest$ac_exeext conftest.$ac_ext | |
8397 LIBS=$ac_check_lib_save_LIBS | |
8398 fi | |
8399 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8400 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8401 if test $ac_cv_lib_dl_dlopen = yes; then | |
8402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
8403 else | |
8404 | |
8405 lt_cv_dlopen="dyld" | |
8406 lt_cv_dlopen_libs= | |
8407 lt_cv_dlopen_self=yes | |
8408 | |
8409 fi | |
8410 | |
8411 ;; | |
8412 | |
8413 *) | |
8414 echo "$as_me:$LINENO: checking for shl_load" >&5 | |
8415 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
8416 if test "${ac_cv_func_shl_load+set}" = set; then | |
8417 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8418 else | |
8419 cat >conftest.$ac_ext <<_ACEOF | |
8420 /* confdefs.h. */ | |
8421 _ACEOF | |
8422 cat confdefs.h >>conftest.$ac_ext | |
8423 cat >>conftest.$ac_ext <<_ACEOF | |
8424 /* end confdefs.h. */ | |
8425 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
8426 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8427 #define shl_load innocuous_shl_load | |
8428 | |
8429 /* System header to define __stub macros and hopefully few prototypes, | |
8430 which can conflict with char shl_load (); below. | |
8431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8432 <limits.h> exists even on freestanding compilers. */ | |
8433 | |
8434 #ifdef __STDC__ | |
8435 # include <limits.h> | |
8436 #else | |
8437 # include <assert.h> | |
8438 #endif | |
8439 | |
8440 #undef shl_load | |
8441 | |
8442 /* Override any gcc2 internal prototype to avoid an error. */ | |
8443 #ifdef __cplusplus | |
8444 extern "C" | |
8445 { | |
8446 #endif | |
8447 /* We use char because int might match the return type of a gcc2 | |
8448 builtin and then its argument prototype would still apply. */ | |
8449 char shl_load (); | |
8450 /* The GNU C library defines this for functions which it implements | |
8451 to always fail with ENOSYS. Some functions are actually named | |
8452 something starting with __ and the normal name is an alias. */ | |
8453 #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
8454 choke me | |
8455 #else | |
8456 char (*f) () = shl_load; | |
8457 #endif | |
8458 #ifdef __cplusplus | |
8459 } | |
8460 #endif | |
8461 | |
8462 int | |
8463 main () | |
8464 { | |
8465 return f != shl_load; | |
8466 ; | |
8467 return 0; | |
8468 } | |
8469 _ACEOF | |
8470 rm -f conftest.$ac_objext conftest$ac_exeext | |
8471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8472 (eval $ac_link) 2>conftest.er1 | |
8473 ac_status=$? | |
8474 grep -v '^ *+' conftest.er1 >conftest.err | |
8475 rm -f conftest.er1 | |
8476 cat conftest.err >&5 | |
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8478 (exit $ac_status); } && | |
8479 { ac_try='test -z "$ac_c_werror_flag" | |
8480 || test ! -s conftest.err' | |
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8482 (eval $ac_try) 2>&5 | |
8483 ac_status=$? | |
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8485 (exit $ac_status); }; } && | |
8486 { ac_try='test -s conftest$ac_exeext' | |
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8488 (eval $ac_try) 2>&5 | |
8489 ac_status=$? | |
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8491 (exit $ac_status); }; }; then | |
8492 ac_cv_func_shl_load=yes | |
8493 else | |
8494 echo "$as_me: failed program was:" >&5 | |
8495 sed 's/^/| /' conftest.$ac_ext >&5 | |
8496 | |
8497 ac_cv_func_shl_load=no | |
8498 fi | |
8499 rm -f conftest.err conftest.$ac_objext \ | |
8500 conftest$ac_exeext conftest.$ac_ext | |
8501 fi | |
8502 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
8503 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
8504 if test $ac_cv_func_shl_load = yes; then | |
8505 lt_cv_dlopen="shl_load" | |
8506 else | |
8507 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
8508 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
8509 if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
8510 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8511 else | |
8512 ac_check_lib_save_LIBS=$LIBS | |
8513 LIBS="-ldld $LIBS" | |
8514 cat >conftest.$ac_ext <<_ACEOF | |
8515 /* confdefs.h. */ | |
8516 _ACEOF | |
8517 cat confdefs.h >>conftest.$ac_ext | |
8518 cat >>conftest.$ac_ext <<_ACEOF | |
8519 /* end confdefs.h. */ | |
8520 | |
8521 /* Override any gcc2 internal prototype to avoid an error. */ | |
8522 #ifdef __cplusplus | |
8523 extern "C" | |
8524 #endif | |
8525 /* We use char because int might match the return type of a gcc2 | |
8526 builtin and then its argument prototype would still apply. */ | |
8527 char shl_load (); | |
8528 int | |
8529 main () | |
8530 { | |
8531 shl_load (); | |
8532 ; | |
8533 return 0; | |
8534 } | |
8535 _ACEOF | |
8536 rm -f conftest.$ac_objext conftest$ac_exeext | |
8537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8538 (eval $ac_link) 2>conftest.er1 | |
8539 ac_status=$? | |
8540 grep -v '^ *+' conftest.er1 >conftest.err | |
8541 rm -f conftest.er1 | |
8542 cat conftest.err >&5 | |
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8544 (exit $ac_status); } && | |
8545 { ac_try='test -z "$ac_c_werror_flag" | |
8546 || test ! -s conftest.err' | |
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8548 (eval $ac_try) 2>&5 | |
8549 ac_status=$? | |
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8551 (exit $ac_status); }; } && | |
8552 { ac_try='test -s conftest$ac_exeext' | |
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8554 (eval $ac_try) 2>&5 | |
8555 ac_status=$? | |
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8557 (exit $ac_status); }; }; then | |
8558 ac_cv_lib_dld_shl_load=yes | |
8559 else | |
8560 echo "$as_me: failed program was:" >&5 | |
8561 sed 's/^/| /' conftest.$ac_ext >&5 | |
8562 | |
8563 ac_cv_lib_dld_shl_load=no | |
8564 fi | |
8565 rm -f conftest.err conftest.$ac_objext \ | |
8566 conftest$ac_exeext conftest.$ac_ext | |
8567 LIBS=$ac_check_lib_save_LIBS | |
8568 fi | |
8569 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
8570 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
8571 if test $ac_cv_lib_dld_shl_load = yes; then | |
8572 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
8573 else | |
8574 echo "$as_me:$LINENO: checking for dlopen" >&5 | |
8575 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
8576 if test "${ac_cv_func_dlopen+set}" = set; then | |
8577 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8578 else | |
8579 cat >conftest.$ac_ext <<_ACEOF | |
8580 /* confdefs.h. */ | |
8581 _ACEOF | |
8582 cat confdefs.h >>conftest.$ac_ext | |
8583 cat >>conftest.$ac_ext <<_ACEOF | |
8584 /* end confdefs.h. */ | |
8585 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
8586 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8587 #define dlopen innocuous_dlopen | |
8588 | |
8589 /* System header to define __stub macros and hopefully few prototypes, | |
8590 which can conflict with char dlopen (); below. | |
8591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8592 <limits.h> exists even on freestanding compilers. */ | |
8593 | |
8594 #ifdef __STDC__ | |
8595 # include <limits.h> | |
8596 #else | |
8597 # include <assert.h> | |
8598 #endif | |
8599 | |
8600 #undef dlopen | |
8601 | |
8602 /* Override any gcc2 internal prototype to avoid an error. */ | |
8603 #ifdef __cplusplus | |
8604 extern "C" | |
8605 { | |
8606 #endif | |
8607 /* We use char because int might match the return type of a gcc2 | |
8608 builtin and then its argument prototype would still apply. */ | |
8609 char dlopen (); | |
8610 /* The GNU C library defines this for functions which it implements | |
8611 to always fail with ENOSYS. Some functions are actually named | |
8612 something starting with __ and the normal name is an alias. */ | |
8613 #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
8614 choke me | |
8615 #else | |
8616 char (*f) () = dlopen; | |
8617 #endif | |
8618 #ifdef __cplusplus | |
8619 } | |
8620 #endif | |
8621 | |
8622 int | |
8623 main () | |
8624 { | |
8625 return f != dlopen; | |
8626 ; | |
8627 return 0; | |
8628 } | |
8629 _ACEOF | |
8630 rm -f conftest.$ac_objext conftest$ac_exeext | |
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8632 (eval $ac_link) 2>conftest.er1 | |
8633 ac_status=$? | |
8634 grep -v '^ *+' conftest.er1 >conftest.err | |
8635 rm -f conftest.er1 | |
8636 cat conftest.err >&5 | |
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8638 (exit $ac_status); } && | |
8639 { ac_try='test -z "$ac_c_werror_flag" | |
8640 || test ! -s conftest.err' | |
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8642 (eval $ac_try) 2>&5 | |
8643 ac_status=$? | |
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8645 (exit $ac_status); }; } && | |
8646 { ac_try='test -s conftest$ac_exeext' | |
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8648 (eval $ac_try) 2>&5 | |
8649 ac_status=$? | |
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8651 (exit $ac_status); }; }; then | |
8652 ac_cv_func_dlopen=yes | |
8653 else | |
8654 echo "$as_me: failed program was:" >&5 | |
8655 sed 's/^/| /' conftest.$ac_ext >&5 | |
8656 | |
8657 ac_cv_func_dlopen=no | |
8658 fi | |
8659 rm -f conftest.err conftest.$ac_objext \ | |
8660 conftest$ac_exeext conftest.$ac_ext | |
8661 fi | |
8662 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
8663 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
8664 if test $ac_cv_func_dlopen = yes; then | |
8665 lt_cv_dlopen="dlopen" | |
8666 else | |
8667 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8668 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8669 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8670 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8671 else | |
8672 ac_check_lib_save_LIBS=$LIBS | |
8673 LIBS="-ldl $LIBS" | |
8674 cat >conftest.$ac_ext <<_ACEOF | |
8675 /* confdefs.h. */ | |
8676 _ACEOF | |
8677 cat confdefs.h >>conftest.$ac_ext | |
8678 cat >>conftest.$ac_ext <<_ACEOF | |
8679 /* end confdefs.h. */ | |
8680 | |
8681 /* Override any gcc2 internal prototype to avoid an error. */ | |
8682 #ifdef __cplusplus | |
8683 extern "C" | |
8684 #endif | |
8685 /* We use char because int might match the return type of a gcc2 | |
8686 builtin and then its argument prototype would still apply. */ | |
8687 char dlopen (); | |
8688 int | |
8689 main () | |
8690 { | |
8691 dlopen (); | |
8692 ; | |
8693 return 0; | |
8694 } | |
8695 _ACEOF | |
8696 rm -f conftest.$ac_objext conftest$ac_exeext | |
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8698 (eval $ac_link) 2>conftest.er1 | |
8699 ac_status=$? | |
8700 grep -v '^ *+' conftest.er1 >conftest.err | |
8701 rm -f conftest.er1 | |
8702 cat conftest.err >&5 | |
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8704 (exit $ac_status); } && | |
8705 { ac_try='test -z "$ac_c_werror_flag" | |
8706 || test ! -s conftest.err' | |
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8708 (eval $ac_try) 2>&5 | |
8709 ac_status=$? | |
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8711 (exit $ac_status); }; } && | |
8712 { ac_try='test -s conftest$ac_exeext' | |
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8714 (eval $ac_try) 2>&5 | |
8715 ac_status=$? | |
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8717 (exit $ac_status); }; }; then | |
8718 ac_cv_lib_dl_dlopen=yes | |
8719 else | |
8720 echo "$as_me: failed program was:" >&5 | |
8721 sed 's/^/| /' conftest.$ac_ext >&5 | |
8722 | |
8723 ac_cv_lib_dl_dlopen=no | |
8724 fi | |
8725 rm -f conftest.err conftest.$ac_objext \ | |
8726 conftest$ac_exeext conftest.$ac_ext | |
8727 LIBS=$ac_check_lib_save_LIBS | |
8728 fi | |
8729 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8730 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8731 if test $ac_cv_lib_dl_dlopen = yes; then | |
8732 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
8733 else | |
8734 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
8735 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
8736 if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
8737 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8738 else | |
8739 ac_check_lib_save_LIBS=$LIBS | |
8740 LIBS="-lsvld $LIBS" | |
8741 cat >conftest.$ac_ext <<_ACEOF | |
8742 /* confdefs.h. */ | |
8743 _ACEOF | |
8744 cat confdefs.h >>conftest.$ac_ext | |
8745 cat >>conftest.$ac_ext <<_ACEOF | |
8746 /* end confdefs.h. */ | |
8747 | |
8748 /* Override any gcc2 internal prototype to avoid an error. */ | |
8749 #ifdef __cplusplus | |
8750 extern "C" | |
8751 #endif | |
8752 /* We use char because int might match the return type of a gcc2 | |
8753 builtin and then its argument prototype would still apply. */ | |
8754 char dlopen (); | |
8755 int | |
8756 main () | |
8757 { | |
8758 dlopen (); | |
8759 ; | |
8760 return 0; | |
8761 } | |
8762 _ACEOF | |
8763 rm -f conftest.$ac_objext conftest$ac_exeext | |
8764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8765 (eval $ac_link) 2>conftest.er1 | |
8766 ac_status=$? | |
8767 grep -v '^ *+' conftest.er1 >conftest.err | |
8768 rm -f conftest.er1 | |
8769 cat conftest.err >&5 | |
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8771 (exit $ac_status); } && | |
8772 { ac_try='test -z "$ac_c_werror_flag" | |
8773 || test ! -s conftest.err' | |
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8775 (eval $ac_try) 2>&5 | |
8776 ac_status=$? | |
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8778 (exit $ac_status); }; } && | |
8779 { ac_try='test -s conftest$ac_exeext' | |
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8781 (eval $ac_try) 2>&5 | |
8782 ac_status=$? | |
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8784 (exit $ac_status); }; }; then | |
8785 ac_cv_lib_svld_dlopen=yes | |
8786 else | |
8787 echo "$as_me: failed program was:" >&5 | |
8788 sed 's/^/| /' conftest.$ac_ext >&5 | |
8789 | |
8790 ac_cv_lib_svld_dlopen=no | |
8791 fi | |
8792 rm -f conftest.err conftest.$ac_objext \ | |
8793 conftest$ac_exeext conftest.$ac_ext | |
8794 LIBS=$ac_check_lib_save_LIBS | |
8795 fi | |
8796 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
8797 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
8798 if test $ac_cv_lib_svld_dlopen = yes; then | |
8799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
8800 else | |
8801 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
8802 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
8803 if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
8804 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8805 else | |
8806 ac_check_lib_save_LIBS=$LIBS | |
8807 LIBS="-ldld $LIBS" | |
8808 cat >conftest.$ac_ext <<_ACEOF | |
8809 /* confdefs.h. */ | |
8810 _ACEOF | |
8811 cat confdefs.h >>conftest.$ac_ext | |
8812 cat >>conftest.$ac_ext <<_ACEOF | |
8813 /* end confdefs.h. */ | |
8814 | |
8815 /* Override any gcc2 internal prototype to avoid an error. */ | |
8816 #ifdef __cplusplus | |
8817 extern "C" | |
8818 #endif | |
8819 /* We use char because int might match the return type of a gcc2 | |
8820 builtin and then its argument prototype would still apply. */ | |
8821 char dld_link (); | |
8822 int | |
8823 main () | |
8824 { | |
8825 dld_link (); | |
8826 ; | |
8827 return 0; | |
8828 } | |
8829 _ACEOF | |
8830 rm -f conftest.$ac_objext conftest$ac_exeext | |
8831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8832 (eval $ac_link) 2>conftest.er1 | |
8833 ac_status=$? | |
8834 grep -v '^ *+' conftest.er1 >conftest.err | |
8835 rm -f conftest.er1 | |
8836 cat conftest.err >&5 | |
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8838 (exit $ac_status); } && | |
8839 { ac_try='test -z "$ac_c_werror_flag" | |
8840 || test ! -s conftest.err' | |
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8842 (eval $ac_try) 2>&5 | |
8843 ac_status=$? | |
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8845 (exit $ac_status); }; } && | |
8846 { ac_try='test -s conftest$ac_exeext' | |
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8848 (eval $ac_try) 2>&5 | |
8849 ac_status=$? | |
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8851 (exit $ac_status); }; }; then | |
8852 ac_cv_lib_dld_dld_link=yes | |
8853 else | |
8854 echo "$as_me: failed program was:" >&5 | |
8855 sed 's/^/| /' conftest.$ac_ext >&5 | |
8856 | |
8857 ac_cv_lib_dld_dld_link=no | |
8858 fi | |
8859 rm -f conftest.err conftest.$ac_objext \ | |
8860 conftest$ac_exeext conftest.$ac_ext | |
8861 LIBS=$ac_check_lib_save_LIBS | |
8862 fi | |
8863 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
8864 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
8865 if test $ac_cv_lib_dld_dld_link = yes; then | |
8866 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
8867 fi | |
8868 | |
8869 | |
8870 fi | |
8871 | |
8872 | |
8873 fi | |
8874 | |
8875 | |
8876 fi | |
8877 | |
8878 | |
8879 fi | |
8880 | |
8881 | |
8882 fi | |
8883 | |
8884 ;; | |
8885 esac | |
8886 | |
8887 if test "x$lt_cv_dlopen" != xno; then | |
8888 enable_dlopen=yes | |
8889 else | |
8890 enable_dlopen=no | |
8891 fi | |
8892 | |
8893 case $lt_cv_dlopen in | |
8894 dlopen) | |
8895 save_CPPFLAGS="$CPPFLAGS" | |
8896 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
8897 | |
8898 save_LDFLAGS="$LDFLAGS" | |
8899 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
8900 | |
8901 save_LIBS="$LIBS" | |
8902 LIBS="$lt_cv_dlopen_libs $LIBS" | |
8903 | |
8904 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
8905 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
8906 if test "${lt_cv_dlopen_self+set}" = set; then | |
8907 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8908 else | |
8909 if test "$cross_compiling" = yes; then : | |
8910 lt_cv_dlopen_self=cross | |
8911 else | |
8912 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
8913 lt_status=$lt_dlunknown | |
8914 cat > conftest.$ac_ext <<EOF | |
8915 #line 8915 "configure" | |
8916 #include "confdefs.h" | |
8917 | |
8918 #if HAVE_DLFCN_H | |
8919 #include <dlfcn.h> | |
8920 #endif | |
8921 | |
8922 #include <stdio.h> | |
8923 | |
8924 #ifdef RTLD_GLOBAL | |
8925 # define LT_DLGLOBAL RTLD_GLOBAL | |
8926 #else | |
8927 # ifdef DL_GLOBAL | |
8928 # define LT_DLGLOBAL DL_GLOBAL | |
8929 # else | |
8930 # define LT_DLGLOBAL 0 | |
8931 # endif | |
8932 #endif | |
8933 | |
8934 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
8935 find out it does not work in some platform. */ | |
8936 #ifndef LT_DLLAZY_OR_NOW | |
8937 # ifdef RTLD_LAZY | |
8938 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
8939 # else | |
8940 # ifdef DL_LAZY | |
8941 # define LT_DLLAZY_OR_NOW DL_LAZY | |
8942 # else | |
8943 # ifdef RTLD_NOW | |
8944 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
8945 # else | |
8946 # ifdef DL_NOW | |
8947 # define LT_DLLAZY_OR_NOW DL_NOW | |
8948 # else | |
8949 # define LT_DLLAZY_OR_NOW 0 | |
8950 # endif | |
8951 # endif | |
8952 # endif | |
8953 # endif | |
8954 #endif | |
8955 | |
8956 #ifdef __cplusplus | |
8957 extern "C" void exit (int); | |
8958 #endif | |
8959 | |
8960 void fnord() { int i=42;} | |
8961 int main () | |
8962 { | |
8963 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
8964 int status = $lt_dlunknown; | |
8965 | |
8966 if (self) | |
8967 { | |
8968 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
8969 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
8970 /* dlclose (self); */ | |
8971 } | |
8972 | |
8973 exit (status); | |
8974 } | |
8975 EOF | |
8976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8977 (eval $ac_link) 2>&5 | |
8978 ac_status=$? | |
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8980 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8981 (./conftest; exit; ) 2>/dev/null | |
8982 lt_status=$? | |
8983 case x$lt_status in | |
8984 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
8985 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
8986 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
8987 esac | |
8988 else : | |
8989 # compilation failed | |
8990 lt_cv_dlopen_self=no | |
8991 fi | |
8992 fi | |
8993 rm -fr conftest* | |
8994 | |
8995 | |
8996 fi | |
8997 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
8998 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
8999 | |
9000 if test "x$lt_cv_dlopen_self" = xyes; then | |
9001 LDFLAGS="$LDFLAGS $link_static_flag" | |
9002 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
9003 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
9004 if test "${lt_cv_dlopen_self_static+set}" = set; then | |
9005 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9006 else | |
9007 if test "$cross_compiling" = yes; then : | |
9008 lt_cv_dlopen_self_static=cross | |
9009 else | |
9010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9011 lt_status=$lt_dlunknown | |
9012 cat > conftest.$ac_ext <<EOF | |
9013 #line 9013 "configure" | |
9014 #include "confdefs.h" | |
9015 | |
9016 #if HAVE_DLFCN_H | |
9017 #include <dlfcn.h> | |
9018 #endif | |
9019 | |
9020 #include <stdio.h> | |
9021 | |
9022 #ifdef RTLD_GLOBAL | |
9023 # define LT_DLGLOBAL RTLD_GLOBAL | |
9024 #else | |
9025 # ifdef DL_GLOBAL | |
9026 # define LT_DLGLOBAL DL_GLOBAL | |
9027 # else | |
9028 # define LT_DLGLOBAL 0 | |
9029 # endif | |
9030 #endif | |
9031 | |
9032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9033 find out it does not work in some platform. */ | |
9034 #ifndef LT_DLLAZY_OR_NOW | |
9035 # ifdef RTLD_LAZY | |
9036 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9037 # else | |
9038 # ifdef DL_LAZY | |
9039 # define LT_DLLAZY_OR_NOW DL_LAZY | |
9040 # else | |
9041 # ifdef RTLD_NOW | |
9042 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9043 # else | |
9044 # ifdef DL_NOW | |
9045 # define LT_DLLAZY_OR_NOW DL_NOW | |
9046 # else | |
9047 # define LT_DLLAZY_OR_NOW 0 | |
9048 # endif | |
9049 # endif | |
9050 # endif | |
9051 # endif | |
9052 #endif | |
9053 | |
9054 #ifdef __cplusplus | |
9055 extern "C" void exit (int); | |
9056 #endif | |
9057 | |
9058 void fnord() { int i=42;} | |
9059 int main () | |
9060 { | |
9061 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9062 int status = $lt_dlunknown; | |
9063 | |
9064 if (self) | |
9065 { | |
9066 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9067 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9068 /* dlclose (self); */ | |
9069 } | |
9070 | |
9071 exit (status); | |
9072 } | |
9073 EOF | |
9074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9075 (eval $ac_link) 2>&5 | |
9076 ac_status=$? | |
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9078 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9079 (./conftest; exit; ) 2>/dev/null | |
9080 lt_status=$? | |
9081 case x$lt_status in | |
9082 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9083 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9084 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
9085 esac | |
9086 else : | |
9087 # compilation failed | |
9088 lt_cv_dlopen_self_static=no | |
9089 fi | |
9090 fi | |
9091 rm -fr conftest* | |
9092 | |
9093 | |
9094 fi | |
9095 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
9096 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
9097 fi | |
9098 | |
9099 CPPFLAGS="$save_CPPFLAGS" | |
9100 LDFLAGS="$save_LDFLAGS" | |
9101 LIBS="$save_LIBS" | |
9102 ;; | |
9103 esac | |
9104 | |
9105 case $lt_cv_dlopen_self in | |
9106 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9107 *) enable_dlopen_self=unknown ;; | |
9108 esac | |
9109 | |
9110 case $lt_cv_dlopen_self_static in | |
9111 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9112 *) enable_dlopen_self_static=unknown ;; | |
9113 esac | |
9114 fi | |
9115 | |
9116 | |
9117 # Report which librarie types wil actually be built | |
9118 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
9119 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
9120 echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
9121 echo "${ECHO_T}$can_build_shared" >&6 | |
9122 | |
9123 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
9124 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
9125 test "$can_build_shared" = "no" && enable_shared=no | |
9126 | |
9127 # On AIX, shared libraries and static libraries use the same namespace, and | |
9128 # are all built from PIC. | |
9129 case "$host_os" in | |
9130 aix3*) | |
9131 test "$enable_shared" = yes && enable_static=no | |
9132 if test -n "$RANLIB"; then | |
9133 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9134 postinstall_cmds='$RANLIB $lib' | |
9135 fi | |
9136 ;; | |
9137 | |
9138 aix4* | aix5*) | |
9139 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9140 test "$enable_shared" = yes && enable_static=no | |
9141 fi | |
9142 ;; | |
9143 esac | |
9144 echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
9145 echo "${ECHO_T}$enable_shared" >&6 | |
9146 | |
9147 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
9148 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
9149 # Make sure either enable_shared or enable_static is yes. | |
9150 test "$enable_shared" = yes || enable_static=yes | |
9151 echo "$as_me:$LINENO: result: $enable_static" >&5 | |
9152 echo "${ECHO_T}$enable_static" >&6 | |
9153 | |
9154 # The else clause should only fire when bootstrapping the | |
9155 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
9156 # with your package, and you will get complaints that there are | |
9157 # no rules to generate ltmain.sh. | |
9158 if test -f "$ltmain"; then | |
9159 # See if we are running on zsh, and set the options which allow our commands through | |
9160 # without removal of \ escapes. | |
9161 if test -n "${ZSH_VERSION+set}" ; then | |
9162 setopt NO_GLOB_SUBST | |
9163 fi | |
9164 # Now quote all the things that may contain metacharacters while being | |
9165 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
9166 # variables and quote the copies for generation of the libtool script. | |
9167 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
9168 SED SHELL STRIP \ | |
9169 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
9170 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
9171 deplibs_check_method reload_flag reload_cmds need_locks \ | |
9172 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
9173 lt_cv_sys_global_symbol_to_c_name_address \ | |
9174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
9175 old_postinstall_cmds old_postuninstall_cmds \ | |
9176 compiler \ | |
9177 CC \ | |
9178 LD \ | |
9179 lt_prog_compiler_wl \ | |
9180 lt_prog_compiler_pic \ | |
9181 lt_prog_compiler_static \ | |
9182 lt_prog_compiler_no_builtin_flag \ | |
9183 export_dynamic_flag_spec \ | |
9184 thread_safe_flag_spec \ | |
9185 whole_archive_flag_spec \ | |
9186 enable_shared_with_static_runtimes \ | |
9187 old_archive_cmds \ | |
9188 old_archive_from_new_cmds \ | |
9189 predep_objects \ | |
9190 postdep_objects \ | |
9191 predeps \ | |
9192 postdeps \ | |
9193 compiler_lib_search_path \ | |
9194 archive_cmds \ | |
9195 archive_expsym_cmds \ | |
9196 postinstall_cmds \ | |
9197 postuninstall_cmds \ | |
9198 old_archive_from_expsyms_cmds \ | |
9199 allow_undefined_flag \ | |
9200 no_undefined_flag \ | |
9201 export_symbols_cmds \ | |
9202 hardcode_libdir_flag_spec \ | |
9203 hardcode_libdir_flag_spec_ld \ | |
9204 hardcode_libdir_separator \ | |
9205 hardcode_automatic \ | |
9206 module_cmds \ | |
9207 module_expsym_cmds \ | |
9208 lt_cv_prog_compiler_c_o \ | |
9209 exclude_expsyms \ | |
9210 include_expsyms; do | |
9211 | |
9212 case $var in | |
9213 old_archive_cmds | \ | |
9214 old_archive_from_new_cmds | \ | |
9215 archive_cmds | \ | |
9216 archive_expsym_cmds | \ | |
9217 module_cmds | \ | |
9218 module_expsym_cmds | \ | |
9219 old_archive_from_expsyms_cmds | \ | |
9220 export_symbols_cmds | \ | |
9221 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
9222 postinstall_cmds | postuninstall_cmds | \ | |
9223 old_postinstall_cmds | old_postuninstall_cmds | \ | |
9224 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
9225 # Double-quote double-evaled strings. | |
9226 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
9227 ;; | |
9228 *) | |
9229 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
9230 ;; | |
9231 esac | |
9232 done | |
9233 | |
9234 case $lt_echo in | |
9235 *'\$0 --fallback-echo"') | |
9236 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
9237 ;; | |
9238 esac | |
9239 | |
9240 cfgfile="${ofile}T" | |
9241 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
9242 $rm -f "$cfgfile" | |
9243 { echo "$as_me:$LINENO: creating $ofile" >&5 | |
9244 echo "$as_me: creating $ofile" >&6;} | |
9245 | |
9246 cat <<__EOF__ >> "$cfgfile" | |
9247 #! $SHELL | |
9248 | |
9249 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
9250 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
9251 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
9252 # | |
9253 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
9254 # Free Software Foundation, Inc. | |
9255 # | |
9256 # This file is part of GNU Libtool: | |
9257 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
9258 # | |
9259 # This program is free software; you can redistribute it and/or modify | |
9260 # it under the terms of the GNU General Public License as published by | |
9261 # the Free Software Foundation; either version 2 of the License, or | |
9262 # (at your option) any later version. | |
9263 # | |
9264 # This program is distributed in the hope that it will be useful, but | |
9265 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
9266 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
9267 # General Public License for more details. | |
9268 # | |
9269 # You should have received a copy of the GNU General Public License | |
9270 # along with this program; if not, write to the Free Software | |
9271 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
9272 # | |
9273 # As a special exception to the GNU General Public License, if you | |
9274 # distribute this file as part of a program that contains a | |
9275 # configuration script generated by Autoconf, you may include it under | |
9276 # the same distribution terms that you use for the rest of that program. | |
9277 | |
9278 # A sed program that does not truncate output. | |
9279 SED=$lt_SED | |
9280 | |
9281 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
9282 Xsed="$SED -e 1s/^X//" | |
9283 | |
9284 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
9285 # if CDPATH is set. | |
9286 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
9287 | |
9288 # The names of the tagged configurations supported by this script. | |
9289 available_tags= | |
9290 | |
9291 # ### BEGIN LIBTOOL CONFIG | |
9292 | |
9293 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9294 | |
9295 # Shell to use when invoking shell scripts. | |
9296 SHELL=$lt_SHELL | |
9297 | |
9298 # Whether or not to build shared libraries. | |
9299 build_libtool_libs=$enable_shared | |
9300 | |
9301 # Whether or not to build static libraries. | |
9302 build_old_libs=$enable_static | |
9303 | |
9304 # Whether or not to add -lc for building shared libraries. | |
9305 build_libtool_need_lc=$archive_cmds_need_lc | |
9306 | |
9307 # Whether or not to disallow shared libs when runtime libs are static | |
9308 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
9309 | |
9310 # Whether or not to optimize for fast installation. | |
9311 fast_install=$enable_fast_install | |
9312 | |
9313 # The host system. | |
9314 host_alias=$host_alias | |
9315 host=$host | |
9316 host_os=$host_os | |
9317 | |
9318 # The build system. | |
9319 build_alias=$build_alias | |
9320 build=$build | |
9321 build_os=$build_os | |
9322 | |
9323 # An echo program that does not interpret backslashes. | |
9324 echo=$lt_echo | |
9325 | |
9326 # The archiver. | |
9327 AR=$lt_AR | |
9328 AR_FLAGS=$lt_AR_FLAGS | |
9329 | |
9330 # A C compiler. | |
9331 LTCC=$lt_LTCC | |
9332 | |
9333 # A language-specific compiler. | |
9334 CC=$lt_compiler | |
9335 | |
9336 # Is the compiler the GNU C compiler? | |
9337 with_gcc=$GCC | |
9338 | |
9339 # An ERE matcher. | |
9340 EGREP=$lt_EGREP | |
9341 | |
9342 # The linker used to build libraries. | |
9343 LD=$lt_LD | |
9344 | |
9345 # Whether we need hard or soft links. | |
9346 LN_S=$lt_LN_S | |
9347 | |
9348 # A BSD-compatible nm program. | |
9349 NM=$lt_NM | |
9350 | |
9351 # A symbol stripping program | |
9352 STRIP=$lt_STRIP | |
9353 | |
9354 # Used to examine libraries when file_magic_cmd begins "file" | |
9355 MAGIC_CMD=$MAGIC_CMD | |
9356 | |
9357 # Used on cygwin: DLL creation program. | |
9358 DLLTOOL="$DLLTOOL" | |
9359 | |
9360 # Used on cygwin: object dumper. | |
9361 OBJDUMP="$OBJDUMP" | |
9362 | |
9363 # Used on cygwin: assembler. | |
9364 AS="$AS" | |
9365 | |
9366 # The name of the directory that contains temporary libtool files. | |
9367 objdir=$objdir | |
9368 | |
9369 # How to create reloadable object files. | |
9370 reload_flag=$lt_reload_flag | |
9371 reload_cmds=$lt_reload_cmds | |
9372 | |
9373 # How to pass a linker flag through the compiler. | |
9374 wl=$lt_lt_prog_compiler_wl | |
9375 | |
9376 # Object file suffix (normally "o"). | |
9377 objext="$ac_objext" | |
9378 | |
9379 # Old archive suffix (normally "a"). | |
9380 libext="$libext" | |
9381 | |
9382 # Shared library suffix (normally ".so"). | |
9383 shrext_cmds='$shrext_cmds' | |
9384 | |
9385 # Executable file suffix (normally ""). | |
9386 exeext="$exeext" | |
9387 | |
9388 # Additional compiler flags for building library objects. | |
9389 pic_flag=$lt_lt_prog_compiler_pic | |
9390 pic_mode=$pic_mode | |
9391 | |
9392 # What is the maximum length of a command? | |
9393 max_cmd_len=$lt_cv_sys_max_cmd_len | |
9394 | |
9395 # Does compiler simultaneously support -c and -o options? | |
9396 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
9397 | |
9398 # Must we lock files when doing compilation? | |
9399 need_locks=$lt_need_locks | |
9400 | |
9401 # Do we need the lib prefix for modules? | |
9402 need_lib_prefix=$need_lib_prefix | |
9403 | |
9404 # Do we need a version for libraries? | |
9405 need_version=$need_version | |
9406 | |
9407 # Whether dlopen is supported. | |
9408 dlopen_support=$enable_dlopen | |
9409 | |
9410 # Whether dlopen of programs is supported. | |
9411 dlopen_self=$enable_dlopen_self | |
9412 | |
9413 # Whether dlopen of statically linked programs is supported. | |
9414 dlopen_self_static=$enable_dlopen_self_static | |
9415 | |
9416 # Compiler flag to prevent dynamic linking. | |
9417 link_static_flag=$lt_lt_prog_compiler_static | |
9418 | |
9419 # Compiler flag to turn off builtin functions. | |
9420 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
9421 | |
9422 # Compiler flag to allow reflexive dlopens. | |
9423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
9424 | |
9425 # Compiler flag to generate shared objects directly from archives. | |
9426 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
9427 | |
9428 # Compiler flag to generate thread-safe objects. | |
9429 thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
9430 | |
9431 # Library versioning type. | |
9432 version_type=$version_type | |
9433 | |
9434 # Format of library name prefix. | |
9435 libname_spec=$lt_libname_spec | |
9436 | |
9437 # List of archive names. First name is the real one, the rest are links. | |
9438 # The last name is the one that the linker finds with -lNAME. | |
9439 library_names_spec=$lt_library_names_spec | |
9440 | |
9441 # The coded name of the library, if different from the real name. | |
9442 soname_spec=$lt_soname_spec | |
9443 | |
9444 # Commands used to build and install an old-style archive. | |
9445 RANLIB=$lt_RANLIB | |
9446 old_archive_cmds=$lt_old_archive_cmds | |
9447 old_postinstall_cmds=$lt_old_postinstall_cmds | |
9448 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
9449 | |
9450 # Create an old-style archive from a shared archive. | |
9451 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
9452 | |
9453 # Create a temporary old-style archive to link instead of a shared archive. | |
9454 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
9455 | |
9456 # Commands used to build and install a shared archive. | |
9457 archive_cmds=$lt_archive_cmds | |
9458 archive_expsym_cmds=$lt_archive_expsym_cmds | |
9459 postinstall_cmds=$lt_postinstall_cmds | |
9460 postuninstall_cmds=$lt_postuninstall_cmds | |
9461 | |
9462 # Commands used to build a loadable module (assumed same as above if empty) | |
9463 module_cmds=$lt_module_cmds | |
9464 module_expsym_cmds=$lt_module_expsym_cmds | |
9465 | |
9466 # Commands to strip libraries. | |
9467 old_striplib=$lt_old_striplib | |
9468 striplib=$lt_striplib | |
9469 | |
9470 # Dependencies to place before the objects being linked to create a | |
9471 # shared library. | |
9472 predep_objects=$lt_predep_objects | |
9473 | |
9474 # Dependencies to place after the objects being linked to create a | |
9475 # shared library. | |
9476 postdep_objects=$lt_postdep_objects | |
9477 | |
9478 # Dependencies to place before the objects being linked to create a | |
9479 # shared library. | |
9480 predeps=$lt_predeps | |
9481 | |
9482 # Dependencies to place after the objects being linked to create a | |
9483 # shared library. | |
9484 postdeps=$lt_postdeps | |
9485 | |
9486 # The library search path used internally by the compiler when linking | |
9487 # a shared library. | |
9488 compiler_lib_search_path=$lt_compiler_lib_search_path | |
9489 | |
9490 # Method to check whether dependent libraries are shared objects. | |
9491 deplibs_check_method=$lt_deplibs_check_method | |
9492 | |
9493 # Command to use when deplibs_check_method == file_magic. | |
9494 file_magic_cmd=$lt_file_magic_cmd | |
9495 | |
9496 # Flag that allows shared libraries with undefined symbols to be built. | |
9497 allow_undefined_flag=$lt_allow_undefined_flag | |
9498 | |
9499 # Flag that forces no undefined symbols. | |
9500 no_undefined_flag=$lt_no_undefined_flag | |
9501 | |
9502 # Commands used to finish a libtool library installation in a directory. | |
9503 finish_cmds=$lt_finish_cmds | |
9504 | |
9505 # Same as above, but a single script fragment to be evaled but not shown. | |
9506 finish_eval=$lt_finish_eval | |
9507 | |
9508 # Take the output of nm and produce a listing of raw symbols and C names. | |
9509 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
9510 | |
9511 # Transform the output of nm in a proper C declaration | |
9512 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
9513 | |
9514 # Transform the output of nm in a C name address pair | |
9515 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
9516 | |
9517 # This is the shared library runtime path variable. | |
9518 runpath_var=$runpath_var | |
9519 | |
9520 # This is the shared library path variable. | |
9521 shlibpath_var=$shlibpath_var | |
9522 | |
9523 # Is shlibpath searched before the hard-coded library search path? | |
9524 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
9525 | |
9526 # How to hardcode a shared library path into an executable. | |
9527 hardcode_action=$hardcode_action | |
9528 | |
9529 # Whether we should hardcode library paths into libraries. | |
9530 hardcode_into_libs=$hardcode_into_libs | |
9531 | |
9532 # Flag to hardcode \$libdir into a binary during linking. | |
9533 # This must work even if \$libdir does not exist. | |
9534 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
9535 | |
9536 # If ld is used when linking, flag to hardcode \$libdir into | |
9537 # a binary during linking. This must work even if \$libdir does | |
9538 # not exist. | |
9539 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
9540 | |
9541 # Whether we need a single -rpath flag with a separated argument. | |
9542 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
9543 | |
9544 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
9545 # resulting binary. | |
9546 hardcode_direct=$hardcode_direct | |
9547 | |
9548 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
9549 # resulting binary. | |
9550 hardcode_minus_L=$hardcode_minus_L | |
9551 | |
9552 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
9553 # the resulting binary. | |
9554 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
9555 | |
9556 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
9557 # and all subsequent libraries and executables linked against it. | |
9558 hardcode_automatic=$hardcode_automatic | |
9559 | |
9560 # Variables whose values should be saved in libtool wrapper scripts and | |
9561 # restored at relink time. | |
9562 variables_saved_for_relink="$variables_saved_for_relink" | |
9563 | |
9564 # Whether libtool must link a program against all its dependency libraries. | |
9565 link_all_deplibs=$link_all_deplibs | |
9566 | |
9567 # Compile-time system search path for libraries | |
9568 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
9569 | |
9570 # Run-time system search path for libraries | |
9571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
9572 | |
9573 # Fix the shell variable \$srcfile for the compiler. | |
9574 fix_srcfile_path="$fix_srcfile_path" | |
9575 | |
9576 # Set to yes if exported symbols are required. | |
9577 always_export_symbols=$always_export_symbols | |
9578 | |
9579 # The commands to list exported symbols. | |
9580 export_symbols_cmds=$lt_export_symbols_cmds | |
9581 | |
9582 # The commands to extract the exported symbol list from a shared archive. | |
9583 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
9584 | |
9585 # Symbols that should not be listed in the preloaded symbols. | |
9586 exclude_expsyms=$lt_exclude_expsyms | |
9587 | |
9588 # Symbols that must always be exported. | |
9589 include_expsyms=$lt_include_expsyms | |
9590 | |
9591 # ### END LIBTOOL CONFIG | |
9592 | |
9593 __EOF__ | |
9594 | |
9595 | |
9596 case $host_os in | |
9597 aix3*) | |
9598 cat <<\EOF >> "$cfgfile" | |
9599 | |
9600 # AIX sometimes has problems with the GCC collect2 program. For some | |
9601 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9602 # vanish in a puff of smoke. | |
9603 if test "X${COLLECT_NAMES+set}" != Xset; then | |
9604 COLLECT_NAMES= | |
9605 export COLLECT_NAMES | |
9606 fi | |
9607 EOF | |
9608 ;; | |
9609 esac | |
9610 | |
9611 # We use sed instead of cat because bash on DJGPP gets confused if | |
9612 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
9613 # text mode, it properly converts lines to CR/LF. This bash problem | |
9614 # is reportedly fixed, but why not run on old versions too? | |
9615 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
9616 | |
9617 mv -f "$cfgfile" "$ofile" || \ | |
9618 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
9619 chmod +x "$ofile" | |
9620 | |
9621 else | |
9622 # If there is no Makefile yet, we rely on a make rule to execute | |
9623 # `config.status --recheck' to rerun these tests and create the | |
9624 # libtool script then. | |
9625 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
9626 if test -f "$ltmain_in"; then | |
9627 test -f Makefile && make "$ltmain" | |
9628 fi | |
9629 fi | |
9630 | |
9631 | |
9632 ac_ext=c | |
9633 ac_cpp='$CPP $CPPFLAGS' | |
9634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9636 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9637 | |
9638 CC="$lt_save_CC" | |
9639 | |
9640 | |
9641 # Check whether --with-tags or --without-tags was given. | |
9642 if test "${with_tags+set}" = set; then | |
9643 withval="$with_tags" | |
9644 tagnames="$withval" | |
9645 fi; | |
9646 | |
9647 if test -f "$ltmain" && test -n "$tagnames"; then | |
9648 if test ! -f "${ofile}"; then | |
9649 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
9650 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
9651 fi | |
9652 | |
9653 if test -z "$LTCC"; then | |
9654 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
9655 if test -z "$LTCC"; then | |
9656 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
9657 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
9658 else | |
9659 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
9660 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
9661 fi | |
9662 fi | |
9663 | |
9664 # Extract list of available tagged configurations in $ofile. | |
9665 # Note that this assumes the entire list is on one line. | |
9666 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
9667 | |
9668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9669 for tagname in $tagnames; do | |
9670 IFS="$lt_save_ifs" | |
9671 # Check whether tagname contains only valid characters | |
9672 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
9673 "") ;; | |
9674 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
9675 echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
9676 { (exit 1); exit 1; }; } | |
9677 ;; | |
9678 esac | |
9679 | |
9680 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
9681 then | |
9682 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
9683 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
9684 { (exit 1); exit 1; }; } | |
9685 fi | |
9686 | |
9687 # Update the list of available tags. | |
9688 if test -n "$tagname"; then | |
9689 echo appending configuration tag \"$tagname\" to $ofile | |
9690 | |
9691 case $tagname in | |
9692 CXX) | |
9693 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
9694 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
9695 (test "X$CXX" != "Xg++"))) ; then | |
9696 ac_ext=cc | |
9697 ac_cpp='$CXXCPP $CPPFLAGS' | |
9698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9701 | |
9702 | |
9703 | |
9704 | |
9705 archive_cmds_need_lc_CXX=no | |
9706 allow_undefined_flag_CXX= | |
9707 always_export_symbols_CXX=no | |
9708 archive_expsym_cmds_CXX= | |
9709 export_dynamic_flag_spec_CXX= | |
9710 hardcode_direct_CXX=no | |
9711 hardcode_libdir_flag_spec_CXX= | |
9712 hardcode_libdir_flag_spec_ld_CXX= | |
9713 hardcode_libdir_separator_CXX= | |
9714 hardcode_minus_L_CXX=no | |
9715 hardcode_automatic_CXX=no | |
9716 module_cmds_CXX= | |
9717 module_expsym_cmds_CXX= | |
9718 link_all_deplibs_CXX=unknown | |
9719 old_archive_cmds_CXX=$old_archive_cmds | |
9720 no_undefined_flag_CXX= | |
9721 whole_archive_flag_spec_CXX= | |
9722 enable_shared_with_static_runtimes_CXX=no | |
9723 | |
9724 # Dependencies to place before and after the object being linked: | |
9725 predep_objects_CXX= | |
9726 postdep_objects_CXX= | |
9727 predeps_CXX= | |
9728 postdeps_CXX= | |
9729 compiler_lib_search_path_CXX= | |
9730 | |
9731 # Source file extension for C++ test sources. | |
9732 ac_ext=cc | |
9733 | |
9734 # Object file extension for compiled C++ test sources. | |
9735 objext=o | |
9736 objext_CXX=$objext | |
9737 | |
9738 # Code to be used in simple compile tests | |
9739 lt_simple_compile_test_code="int some_variable = 0;\n" | |
9740 | |
9741 # Code to be used in simple link tests | |
9742 lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | |
9743 | |
9744 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
9745 | |
9746 # If no C compiler was specified, use CC. | |
9747 LTCC=${LTCC-"$CC"} | |
9748 | |
9749 # Allow CC to be a program name with arguments. | |
9750 compiler=$CC | |
9751 | |
9752 | |
9753 # save warnings/boilerplate of simple test code | |
9754 ac_outfile=conftest.$ac_objext | |
9755 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9756 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | |
9757 _lt_compiler_boilerplate=`cat conftest.err` | |
9758 $rm conftest* | |
9759 | |
9760 ac_outfile=conftest.$ac_objext | |
9761 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
9762 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | |
9763 _lt_linker_boilerplate=`cat conftest.err` | |
9764 $rm conftest* | |
9765 | |
9766 | |
9767 # Allow CC to be a program name with arguments. | |
9768 lt_save_CC=$CC | |
9769 lt_save_LD=$LD | |
9770 lt_save_GCC=$GCC | |
9771 GCC=$GXX | |
9772 lt_save_with_gnu_ld=$with_gnu_ld | |
9773 lt_save_path_LD=$lt_cv_path_LD | |
9774 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
9775 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9776 else | |
9777 unset lt_cv_prog_gnu_ld | |
9778 fi | |
9779 if test -n "${lt_cv_path_LDCXX+set}"; then | |
9780 lt_cv_path_LD=$lt_cv_path_LDCXX | |
9781 else | |
9782 unset lt_cv_path_LD | |
9783 fi | |
9784 test -z "${LDCXX+set}" || LD=$LDCXX | |
9785 CC=${CXX-"c++"} | |
9786 compiler=$CC | |
9787 compiler_CXX=$CC | |
9788 for cc_temp in $compiler""; do | |
9789 case $cc_temp in | |
9790 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9791 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9792 \-*) ;; | |
9793 *) break;; | |
9794 esac | |
9795 done | |
9796 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
9797 | |
9798 | |
9799 # We don't want -fno-exception wen compiling C++ code, so set the | |
9800 # no_builtin_flag separately | |
9801 if test "$GXX" = yes; then | |
9802 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
9803 else | |
9804 lt_prog_compiler_no_builtin_flag_CXX= | |
9805 fi | |
9806 | |
9807 if test "$GXX" = yes; then | |
9808 # Set up default GNU C++ configuration | |
9809 | |
9810 | |
9811 # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
9812 if test "${with_gnu_ld+set}" = set; then | |
9813 withval="$with_gnu_ld" | |
9814 test "$withval" = no || with_gnu_ld=yes | |
9815 else | |
9816 with_gnu_ld=no | |
9817 fi; | |
9818 ac_prog=ld | |
9819 if test "$GCC" = yes; then | |
9820 # Check if gcc -print-prog-name=ld gives a path. | |
9821 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
9822 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
9823 case $host in | |
9824 *-*-mingw*) | |
9825 # gcc leaves a trailing carriage return which upsets mingw | |
9826 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
9827 *) | |
9828 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
9829 esac | |
9830 case $ac_prog in | |
9831 # Accept absolute paths. | |
9832 [\\/]* | ?:[\\/]*) | |
9833 re_direlt='/[^/][^/]*/\.\./' | |
9834 # Canonicalize the pathname of ld | |
9835 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
9836 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
9837 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
9838 done | |
9839 test -z "$LD" && LD="$ac_prog" | |
9840 ;; | |
9841 "") | |
9842 # If it fails, then pretend we aren't using GCC. | |
9843 ac_prog=ld | |
9844 ;; | |
9845 *) | |
9846 # If it is relative, then search for the first ld in PATH. | |
9847 with_gnu_ld=unknown | |
9848 ;; | |
9849 esac | |
9850 elif test "$with_gnu_ld" = yes; then | |
9851 echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
9852 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
9853 else | |
9854 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
9855 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
9856 fi | |
9857 if test "${lt_cv_path_LD+set}" = set; then | |
9858 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9859 else | |
9860 if test -z "$LD"; then | |
9861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9862 for ac_dir in $PATH; do | |
9863 IFS="$lt_save_ifs" | |
9864 test -z "$ac_dir" && ac_dir=. | |
9865 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9866 lt_cv_path_LD="$ac_dir/$ac_prog" | |
9867 # Check to see if the program is GNU ld. I'd rather use --version, | |
9868 # but apparently some GNU ld's only accept -v. | |
9869 # Break only if it was the GNU/non-GNU ld that we prefer. | |
9870 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
9871 *GNU* | *'with BFD'*) | |
9872 test "$with_gnu_ld" != no && break | |
9873 ;; | |
9874 *) | |
9875 test "$with_gnu_ld" != yes && break | |
9876 ;; | |
9877 esac | |
9878 fi | |
9879 done | |
9880 IFS="$lt_save_ifs" | |
9881 else | |
9882 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9883 fi | |
9884 fi | |
9885 | |
9886 LD="$lt_cv_path_LD" | |
9887 if test -n "$LD"; then | |
9888 echo "$as_me:$LINENO: result: $LD" >&5 | |
9889 echo "${ECHO_T}$LD" >&6 | |
9890 else | |
9891 echo "$as_me:$LINENO: result: no" >&5 | |
9892 echo "${ECHO_T}no" >&6 | |
9893 fi | |
9894 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
9895 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
9896 { (exit 1); exit 1; }; } | |
9897 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
9898 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
9899 if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
9900 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9901 else | |
9902 # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
9903 case `$LD -v 2>&1 </dev/null` in | |
9904 *GNU* | *'with BFD'*) | |
9905 lt_cv_prog_gnu_ld=yes | |
9906 ;; | |
9907 *) | |
9908 lt_cv_prog_gnu_ld=no | |
9909 ;; | |
9910 esac | |
9911 fi | |
9912 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
9913 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
9914 with_gnu_ld=$lt_cv_prog_gnu_ld | |
9915 | |
9916 | |
9917 | |
9918 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
9919 # archiving commands below assume that GNU ld is being used. | |
9920 if test "$with_gnu_ld" = yes; then | |
9921 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9922 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9923 | |
9924 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
9925 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9926 | |
9927 # If archive_cmds runs LD, not CC, wlarc should be empty | |
9928 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
9929 # investigate it a little bit more. (MM) | |
9930 wlarc='${wl}' | |
9931 | |
9932 # ancient GNU ld didn't support --whole-archive et. al. | |
9933 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
9934 grep 'no-whole-archive' > /dev/null; then | |
9935 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9936 else | |
9937 whole_archive_flag_spec_CXX= | |
9938 fi | |
9939 else | |
9940 with_gnu_ld=no | |
9941 wlarc= | |
9942 | |
9943 # A generic and very simple default shared library creation | |
9944 # command for GNU C++ for the case where it uses the native | |
9945 # linker, instead of GNU ld. If possible, this setting should | |
9946 # overridden to take advantage of the native linker features on | |
9947 # the platform it is being used on. | |
9948 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
9949 fi | |
9950 | |
9951 # Commands to make compiler produce verbose output that lists | |
9952 # what "hidden" libraries, object files and flags are used when | |
9953 # linking a shared library. | |
9954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
9955 | |
9956 else | |
9957 GXX=no | |
9958 with_gnu_ld=no | |
9959 wlarc= | |
9960 fi | |
9961 | |
9962 # PORTME: fill in a description of your system's C++ link characteristics | |
9963 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9964 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
9965 ld_shlibs_CXX=yes | |
9966 case $host_os in | |
9967 aix3*) | |
9968 # FIXME: insert proper C++ library support | |
9969 ld_shlibs_CXX=no | |
9970 ;; | |
9971 aix4* | aix5*) | |
9972 if test "$host_cpu" = ia64; then | |
9973 # On IA64, the linker does run time linking by default, so we don't | |
9974 # have to do anything special. | |
9975 aix_use_runtimelinking=no | |
9976 exp_sym_flag='-Bexport' | |
9977 no_entry_flag="" | |
9978 else | |
9979 aix_use_runtimelinking=no | |
9980 | |
9981 # Test if we are trying to use run time linking or normal | |
9982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9983 # need to do runtime linking. | |
9984 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
9985 for ld_flag in $LDFLAGS; do | |
9986 case $ld_flag in | |
9987 *-brtl*) | |
9988 aix_use_runtimelinking=yes | |
9989 break | |
9990 ;; | |
9991 esac | |
9992 done | |
9993 esac | |
9994 | |
9995 exp_sym_flag='-bexport' | |
9996 no_entry_flag='-bnoentry' | |
9997 fi | |
9998 | |
9999 # When large executables or shared objects are built, AIX ld can | |
10000 # have problems creating the table of contents. If linking a library | |
10001 # or program results in "error TOC overflow" add -mminimal-toc to | |
10002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10004 | |
10005 archive_cmds_CXX='' | |
10006 hardcode_direct_CXX=yes | |
10007 hardcode_libdir_separator_CXX=':' | |
10008 link_all_deplibs_CXX=yes | |
10009 | |
10010 if test "$GXX" = yes; then | |
10011 case $host_os in aix4.[012]|aix4.[012].*) | |
10012 # We only want to do this on AIX 4.2 and lower, the check | |
10013 # below for broken collect2 doesn't work under 4.3+ | |
10014 collect2name=`${CC} -print-prog-name=collect2` | |
10015 if test -f "$collect2name" && \ | |
10016 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
10017 then | |
10018 # We have reworked collect2 | |
10019 hardcode_direct_CXX=yes | |
10020 else | |
10021 # We have old collect2 | |
10022 hardcode_direct_CXX=unsupported | |
10023 # It fails to find uninstalled libraries when the uninstalled | |
10024 # path is not listed in the libpath. Setting hardcode_minus_L | |
10025 # to unsupported forces relinking | |
10026 hardcode_minus_L_CXX=yes | |
10027 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10028 hardcode_libdir_separator_CXX= | |
10029 fi | |
10030 esac | |
10031 shared_flag='-shared' | |
10032 if test "$aix_use_runtimelinking" = yes; then | |
10033 shared_flag="$shared_flag "'${wl}-G' | |
10034 fi | |
10035 else | |
10036 # not using gcc | |
10037 if test "$host_cpu" = ia64; then | |
10038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10039 # chokes on -Wl,-G. The following line is correct: | |
10040 shared_flag='-G' | |
10041 else | |
10042 if test "$aix_use_runtimelinking" = yes; then | |
10043 shared_flag='${wl}-G' | |
10044 else | |
10045 shared_flag='${wl}-bM:SRE' | |
10046 fi | |
10047 fi | |
10048 fi | |
10049 | |
10050 # It seems that -bexpall does not export symbols beginning with | |
10051 # underscore (_), so it is better to generate a list of symbols to export. | |
10052 always_export_symbols_CXX=yes | |
10053 if test "$aix_use_runtimelinking" = yes; then | |
10054 # Warning - without using the other runtime loading flags (-brtl), | |
10055 # -berok will link without error, but may produce a broken library. | |
10056 allow_undefined_flag_CXX='-berok' | |
10057 # Determine the default libpath from the value encoded in an empty executable. | |
10058 cat >conftest.$ac_ext <<_ACEOF | |
10059 /* confdefs.h. */ | |
10060 _ACEOF | |
10061 cat confdefs.h >>conftest.$ac_ext | |
10062 cat >>conftest.$ac_ext <<_ACEOF | |
10063 /* end confdefs.h. */ | |
10064 | |
10065 int | |
10066 main () | |
10067 { | |
10068 | |
10069 ; | |
10070 return 0; | |
10071 } | |
10072 _ACEOF | |
10073 rm -f conftest.$ac_objext conftest$ac_exeext | |
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10075 (eval $ac_link) 2>conftest.er1 | |
10076 ac_status=$? | |
10077 grep -v '^ *+' conftest.er1 >conftest.err | |
10078 rm -f conftest.er1 | |
10079 cat conftest.err >&5 | |
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10081 (exit $ac_status); } && | |
10082 { ac_try='test -z "$ac_cxx_werror_flag" | |
10083 || test ! -s conftest.err' | |
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10085 (eval $ac_try) 2>&5 | |
10086 ac_status=$? | |
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10088 (exit $ac_status); }; } && | |
10089 { ac_try='test -s conftest$ac_exeext' | |
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10091 (eval $ac_try) 2>&5 | |
10092 ac_status=$? | |
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10094 (exit $ac_status); }; }; then | |
10095 | |
10096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10097 }'` | |
10098 # Check for a 64-bit object if we didn't find anything. | |
10099 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10100 }'`; fi | |
10101 else | |
10102 echo "$as_me: failed program was:" >&5 | |
10103 sed 's/^/| /' conftest.$ac_ext >&5 | |
10104 | |
10105 fi | |
10106 rm -f conftest.err conftest.$ac_objext \ | |
10107 conftest$ac_exeext conftest.$ac_ext | |
10108 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10109 | |
10110 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10111 | |
10112 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
10113 else | |
10114 if test "$host_cpu" = ia64; then | |
10115 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
10116 allow_undefined_flag_CXX="-z nodefs" | |
10117 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
10118 else | |
10119 # Determine the default libpath from the value encoded in an empty executable. | |
10120 cat >conftest.$ac_ext <<_ACEOF | |
10121 /* confdefs.h. */ | |
10122 _ACEOF | |
10123 cat confdefs.h >>conftest.$ac_ext | |
10124 cat >>conftest.$ac_ext <<_ACEOF | |
10125 /* end confdefs.h. */ | |
10126 | |
10127 int | |
10128 main () | |
10129 { | |
10130 | |
10131 ; | |
10132 return 0; | |
10133 } | |
10134 _ACEOF | |
10135 rm -f conftest.$ac_objext conftest$ac_exeext | |
10136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10137 (eval $ac_link) 2>conftest.er1 | |
10138 ac_status=$? | |
10139 grep -v '^ *+' conftest.er1 >conftest.err | |
10140 rm -f conftest.er1 | |
10141 cat conftest.err >&5 | |
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10143 (exit $ac_status); } && | |
10144 { ac_try='test -z "$ac_cxx_werror_flag" | |
10145 || test ! -s conftest.err' | |
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10147 (eval $ac_try) 2>&5 | |
10148 ac_status=$? | |
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10150 (exit $ac_status); }; } && | |
10151 { ac_try='test -s conftest$ac_exeext' | |
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10153 (eval $ac_try) 2>&5 | |
10154 ac_status=$? | |
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10156 (exit $ac_status); }; }; then | |
10157 | |
10158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10159 }'` | |
10160 # Check for a 64-bit object if we didn't find anything. | |
10161 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10162 }'`; fi | |
10163 else | |
10164 echo "$as_me: failed program was:" >&5 | |
10165 sed 's/^/| /' conftest.$ac_ext >&5 | |
10166 | |
10167 fi | |
10168 rm -f conftest.err conftest.$ac_objext \ | |
10169 conftest$ac_exeext conftest.$ac_ext | |
10170 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10171 | |
10172 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10173 # Warning - without using the other run time loading flags, | |
10174 # -berok will link without error, but may produce a broken library. | |
10175 no_undefined_flag_CXX=' ${wl}-bernotok' | |
10176 allow_undefined_flag_CXX=' ${wl}-berok' | |
10177 # -bexpall does not export symbols beginning with underscore (_) | |
10178 always_export_symbols_CXX=yes | |
10179 # Exported symbols can be pulled into shared objects from archives | |
10180 whole_archive_flag_spec_CXX=' ' | |
10181 archive_cmds_need_lc_CXX=yes | |
10182 # This is similar to how AIX traditionally builds it's shared libraries. | |
10183 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
10184 fi | |
10185 fi | |
10186 ;; | |
10187 chorus*) | |
10188 case $cc_basename in | |
10189 *) | |
10190 # FIXME: insert proper C++ library support | |
10191 ld_shlibs_CXX=no | |
10192 ;; | |
10193 esac | |
10194 ;; | |
10195 | |
10196 | |
10197 cygwin* | mingw* | pw32*) | |
10198 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
10199 # as there is no search path for DLLs. | |
10200 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10201 allow_undefined_flag_CXX=unsupported | |
10202 always_export_symbols_CXX=no | |
10203 enable_shared_with_static_runtimes_CXX=yes | |
10204 | |
10205 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
10206 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
10207 # If the export-symbols file already is a .def file (1st line | |
10208 # is EXPORTS), use it as is; otherwise, prepend... | |
10209 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10210 cp $export_symbols $output_objdir/$soname.def; | |
10211 else | |
10212 echo EXPORTS > $output_objdir/$soname.def; | |
10213 cat $export_symbols >> $output_objdir/$soname.def; | |
10214 fi~ | |
10215 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
10216 else | |
10217 ld_shlibs_CXX=no | |
10218 fi | |
10219 ;; | |
10220 darwin* | rhapsody*) | |
10221 case "$host_os" in | |
10222 rhapsody* | darwin1.[012]) | |
10223 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | |
10224 ;; | |
10225 *) # Darwin 1.3 on | |
10226 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
10227 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
10228 else | |
10229 case ${MACOSX_DEPLOYMENT_TARGET} in | |
10230 10.[012]) | |
10231 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
10232 ;; | |
10233 10.*) | |
10234 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | |
10235 ;; | |
10236 esac | |
10237 fi | |
10238 ;; | |
10239 esac | |
10240 archive_cmds_need_lc_CXX=no | |
10241 hardcode_direct_CXX=no | |
10242 hardcode_automatic_CXX=yes | |
10243 hardcode_shlibpath_var_CXX=unsupported | |
10244 whole_archive_flag_spec_CXX='' | |
10245 link_all_deplibs_CXX=yes | |
10246 | |
10247 if test "$GXX" = yes ; then | |
10248 lt_int_apple_cc_single_mod=no | |
10249 output_verbose_link_cmd='echo' | |
10250 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | |
10251 lt_int_apple_cc_single_mod=yes | |
10252 fi | |
10253 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10254 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
10255 else | |
10256 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
10257 fi | |
10258 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
10259 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
10260 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10261 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10262 else | |
10263 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10264 fi | |
10265 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10266 else | |
10267 case $cc_basename in | |
10268 xlc*) | |
10269 output_verbose_link_cmd='echo' | |
10270 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
10271 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
10272 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
10273 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10274 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10275 ;; | |
10276 *) | |
10277 ld_shlibs_CXX=no | |
10278 ;; | |
10279 esac | |
10280 fi | |
10281 ;; | |
10282 | |
10283 dgux*) | |
10284 case $cc_basename in | |
10285 ec++*) | |
10286 # FIXME: insert proper C++ library support | |
10287 ld_shlibs_CXX=no | |
10288 ;; | |
10289 ghcx*) | |
10290 # Green Hills C++ Compiler | |
10291 # FIXME: insert proper C++ library support | |
10292 ld_shlibs_CXX=no | |
10293 ;; | |
10294 *) | |
10295 # FIXME: insert proper C++ library support | |
10296 ld_shlibs_CXX=no | |
10297 ;; | |
10298 esac | |
10299 ;; | |
10300 freebsd[12]*) | |
10301 # C++ shared libraries reported to be fairly broken before switch to ELF | |
10302 ld_shlibs_CXX=no | |
10303 ;; | |
10304 freebsd-elf*) | |
10305 archive_cmds_need_lc_CXX=no | |
10306 ;; | |
10307 freebsd* | kfreebsd*-gnu | dragonfly*) | |
10308 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
10309 # conventions | |
10310 ld_shlibs_CXX=yes | |
10311 ;; | |
10312 gnu*) | |
10313 ;; | |
10314 hpux9*) | |
10315 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10316 hardcode_libdir_separator_CXX=: | |
10317 export_dynamic_flag_spec_CXX='${wl}-E' | |
10318 hardcode_direct_CXX=yes | |
10319 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10320 # but as the default | |
10321 # location of the library. | |
10322 | |
10323 case $cc_basename in | |
10324 CC*) | |
10325 # FIXME: insert proper C++ library support | |
10326 ld_shlibs_CXX=no | |
10327 ;; | |
10328 aCC*) | |
10329 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10330 # Commands to make compiler produce verbose output that lists | |
10331 # what "hidden" libraries, object files and flags are used when | |
10332 # linking a shared library. | |
10333 # | |
10334 # There doesn't appear to be a way to prevent this compiler from | |
10335 # explicitly linking system object files so we need to strip them | |
10336 # from the output so that they don't get included in the library | |
10337 # dependencies. | |
10338 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10339 ;; | |
10340 *) | |
10341 if test "$GXX" = yes; then | |
10342 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10343 else | |
10344 # FIXME: insert proper C++ library support | |
10345 ld_shlibs_CXX=no | |
10346 fi | |
10347 ;; | |
10348 esac | |
10349 ;; | |
10350 hpux10*|hpux11*) | |
10351 if test $with_gnu_ld = no; then | |
10352 case "$host_cpu" in | |
10353 hppa*64*) | |
10354 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10355 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | |
10356 hardcode_libdir_separator_CXX=: | |
10357 ;; | |
10358 ia64*) | |
10359 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10360 ;; | |
10361 *) | |
10362 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10363 hardcode_libdir_separator_CXX=: | |
10364 export_dynamic_flag_spec_CXX='${wl}-E' | |
10365 ;; | |
10366 esac | |
10367 fi | |
10368 case "$host_cpu" in | |
10369 hppa*64*) | |
10370 hardcode_direct_CXX=no | |
10371 hardcode_shlibpath_var_CXX=no | |
10372 ;; | |
10373 ia64*) | |
10374 hardcode_direct_CXX=no | |
10375 hardcode_shlibpath_var_CXX=no | |
10376 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10377 # but as the default | |
10378 # location of the library. | |
10379 ;; | |
10380 *) | |
10381 hardcode_direct_CXX=yes | |
10382 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10383 # but as the default | |
10384 # location of the library. | |
10385 ;; | |
10386 esac | |
10387 | |
10388 case $cc_basename in | |
10389 CC*) | |
10390 # FIXME: insert proper C++ library support | |
10391 ld_shlibs_CXX=no | |
10392 ;; | |
10393 aCC*) | |
10394 case "$host_cpu" in | |
10395 hppa*64*|ia64*) | |
10396 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
10397 ;; | |
10398 *) | |
10399 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10400 ;; | |
10401 esac | |
10402 # Commands to make compiler produce verbose output that lists | |
10403 # what "hidden" libraries, object files and flags are used when | |
10404 # linking a shared library. | |
10405 # | |
10406 # There doesn't appear to be a way to prevent this compiler from | |
10407 # explicitly linking system object files so we need to strip them | |
10408 # from the output so that they don't get included in the library | |
10409 # dependencies. | |
10410 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10411 ;; | |
10412 *) | |
10413 if test "$GXX" = yes; then | |
10414 if test $with_gnu_ld = no; then | |
10415 case "$host_cpu" in | |
10416 ia64*|hppa*64*) | |
10417 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
10418 ;; | |
10419 *) | |
10420 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10421 ;; | |
10422 esac | |
10423 fi | |
10424 else | |
10425 # FIXME: insert proper C++ library support | |
10426 ld_shlibs_CXX=no | |
10427 fi | |
10428 ;; | |
10429 esac | |
10430 ;; | |
10431 irix5* | irix6*) | |
10432 case $cc_basename in | |
10433 CC*) | |
10434 # SGI C++ | |
10435 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
10436 | |
10437 # Archives containing C++ object files must be created using | |
10438 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
10439 # necessary to make sure instantiated templates are included | |
10440 # in the archive. | |
10441 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
10442 ;; | |
10443 *) | |
10444 if test "$GXX" = yes; then | |
10445 if test "$with_gnu_ld" = no; then | |
10446 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10447 else | |
10448 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | |
10449 fi | |
10450 fi | |
10451 link_all_deplibs_CXX=yes | |
10452 ;; | |
10453 esac | |
10454 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10455 hardcode_libdir_separator_CXX=: | |
10456 ;; | |
10457 linux*) | |
10458 case $cc_basename in | |
10459 KCC*) | |
10460 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10461 | |
10462 # KCC will only create a shared library if the output file | |
10463 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10464 # to its proper name (with version) after linking. | |
10465 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
10466 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
10467 # Commands to make compiler produce verbose output that lists | |
10468 # what "hidden" libraries, object files and flags are used when | |
10469 # linking a shared library. | |
10470 # | |
10471 # There doesn't appear to be a way to prevent this compiler from | |
10472 # explicitly linking system object files so we need to strip them | |
10473 # from the output so that they don't get included in the library | |
10474 # dependencies. | |
10475 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10476 | |
10477 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
10478 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10479 | |
10480 # Archives containing C++ object files must be created using | |
10481 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
10482 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
10483 ;; | |
10484 icpc*) | |
10485 # Intel C++ | |
10486 with_gnu_ld=yes | |
10487 # version 8.0 and above of icpc choke on multiply defined symbols | |
10488 # if we add $predep_objects and $postdep_objects, however 7.1 and | |
10489 # earlier do not add the objects themselves. | |
10490 case `$CC -V 2>&1` in | |
10491 *"Version 7."*) | |
10492 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10493 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10494 ;; | |
10495 *) # Version 8.0 or newer | |
10496 tmp_idyn= | |
10497 case $host_cpu in | |
10498 ia64*) tmp_idyn=' -i_dynamic';; | |
10499 esac | |
10500 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10501 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10502 ;; | |
10503 esac | |
10504 archive_cmds_need_lc_CXX=no | |
10505 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10506 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10507 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10508 ;; | |
10509 pgCC*) | |
10510 # Portland Group C++ compiler | |
10511 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
10512 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
10513 | |
10514 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
10515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10516 whole_archive_flag_spec_CXX='' | |
10517 ;; | |
10518 cxx*) | |
10519 # Compaq C++ | |
10520 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10521 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
10522 | |
10523 runpath_var=LD_RUN_PATH | |
10524 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
10525 hardcode_libdir_separator_CXX=: | |
10526 | |
10527 # Commands to make compiler produce verbose output that lists | |
10528 # what "hidden" libraries, object files and flags are used when | |
10529 # linking a shared library. | |
10530 # | |
10531 # There doesn't appear to be a way to prevent this compiler from | |
10532 # explicitly linking system object files so we need to strip them | |
10533 # from the output so that they don't get included in the library | |
10534 # dependencies. | |
10535 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10536 ;; | |
10537 esac | |
10538 ;; | |
10539 lynxos*) | |
10540 # FIXME: insert proper C++ library support | |
10541 ld_shlibs_CXX=no | |
10542 ;; | |
10543 m88k*) | |
10544 # FIXME: insert proper C++ library support | |
10545 ld_shlibs_CXX=no | |
10546 ;; | |
10547 mvs*) | |
10548 case $cc_basename in | |
10549 cxx*) | |
10550 # FIXME: insert proper C++ library support | |
10551 ld_shlibs_CXX=no | |
10552 ;; | |
10553 *) | |
10554 # FIXME: insert proper C++ library support | |
10555 ld_shlibs_CXX=no | |
10556 ;; | |
10557 esac | |
10558 ;; | |
10559 netbsd*) | |
10560 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
10561 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
10562 wlarc= | |
10563 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
10564 hardcode_direct_CXX=yes | |
10565 hardcode_shlibpath_var_CXX=no | |
10566 fi | |
10567 # Workaround some broken pre-1.5 toolchains | |
10568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
10569 ;; | |
10570 openbsd2*) | |
10571 # C++ shared libraries are fairly broken | |
10572 ld_shlibs_CXX=no | |
10573 ;; | |
10574 openbsd*) | |
10575 hardcode_direct_CXX=yes | |
10576 hardcode_shlibpath_var_CXX=no | |
10577 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
10578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10580 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
10581 export_dynamic_flag_spec_CXX='${wl}-E' | |
10582 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10583 fi | |
10584 output_verbose_link_cmd='echo' | |
10585 ;; | |
10586 osf3*) | |
10587 case $cc_basename in | |
10588 KCC*) | |
10589 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10590 | |
10591 # KCC will only create a shared library if the output file | |
10592 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10593 # to its proper name (with version) after linking. | |
10594 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
10595 | |
10596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10597 hardcode_libdir_separator_CXX=: | |
10598 | |
10599 # Archives containing C++ object files must be created using | |
10600 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
10601 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
10602 | |
10603 ;; | |
10604 RCC*) | |
10605 # Rational C++ 2.4.1 | |
10606 # FIXME: insert proper C++ library support | |
10607 ld_shlibs_CXX=no | |
10608 ;; | |
10609 cxx*) | |
10610 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
10611 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
10612 | |
10613 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10614 hardcode_libdir_separator_CXX=: | |
10615 | |
10616 # Commands to make compiler produce verbose output that lists | |
10617 # what "hidden" libraries, object files and flags are used when | |
10618 # linking a shared library. | |
10619 # | |
10620 # There doesn't appear to be a way to prevent this compiler from | |
10621 # explicitly linking system object files so we need to strip them | |
10622 # from the output so that they don't get included in the library | |
10623 # dependencies. | |
10624 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10625 ;; | |
10626 *) | |
10627 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
10628 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
10629 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10630 | |
10631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10632 hardcode_libdir_separator_CXX=: | |
10633 | |
10634 # Commands to make compiler produce verbose output that lists | |
10635 # what "hidden" libraries, object files and flags are used when | |
10636 # linking a shared library. | |
10637 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
10638 | |
10639 else | |
10640 # FIXME: insert proper C++ library support | |
10641 ld_shlibs_CXX=no | |
10642 fi | |
10643 ;; | |
10644 esac | |
10645 ;; | |
10646 osf4* | osf5*) | |
10647 case $cc_basename in | |
10648 KCC*) | |
10649 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10650 | |
10651 # KCC will only create a shared library if the output file | |
10652 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10653 # to its proper name (with version) after linking. | |
10654 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
10655 | |
10656 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10657 hardcode_libdir_separator_CXX=: | |
10658 | |
10659 # Archives containing C++ object files must be created using | |
10660 # the KAI C++ compiler. | |
10661 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
10662 ;; | |
10663 RCC*) | |
10664 # Rational C++ 2.4.1 | |
10665 # FIXME: insert proper C++ library support | |
10666 ld_shlibs_CXX=no | |
10667 ;; | |
10668 cxx*) | |
10669 allow_undefined_flag_CXX=' -expect_unresolved \*' | |
10670 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
10671 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
10672 echo "-hidden">> $lib.exp~ | |
10673 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ | |
10674 $rm $lib.exp' | |
10675 | |
10676 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
10677 hardcode_libdir_separator_CXX=: | |
10678 | |
10679 # Commands to make compiler produce verbose output that lists | |
10680 # what "hidden" libraries, object files and flags are used when | |
10681 # linking a shared library. | |
10682 # | |
10683 # There doesn't appear to be a way to prevent this compiler from | |
10684 # explicitly linking system object files so we need to strip them | |
10685 # from the output so that they don't get included in the library | |
10686 # dependencies. | |
10687 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10688 ;; | |
10689 *) | |
10690 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
10691 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
10692 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10693 | |
10694 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10695 hardcode_libdir_separator_CXX=: | |
10696 | |
10697 # Commands to make compiler produce verbose output that lists | |
10698 # what "hidden" libraries, object files and flags are used when | |
10699 # linking a shared library. | |
10700 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
10701 | |
10702 else | |
10703 # FIXME: insert proper C++ library support | |
10704 ld_shlibs_CXX=no | |
10705 fi | |
10706 ;; | |
10707 esac | |
10708 ;; | |
10709 psos*) | |
10710 # FIXME: insert proper C++ library support | |
10711 ld_shlibs_CXX=no | |
10712 ;; | |
10713 sco*) | |
10714 archive_cmds_need_lc_CXX=no | |
10715 case $cc_basename in | |
10716 CC*) | |
10717 # FIXME: insert proper C++ library support | |
10718 ld_shlibs_CXX=no | |
10719 ;; | |
10720 *) | |
10721 # FIXME: insert proper C++ library support | |
10722 ld_shlibs_CXX=no | |
10723 ;; | |
10724 esac | |
10725 ;; | |
10726 sunos4*) | |
10727 case $cc_basename in | |
10728 CC*) | |
10729 # Sun C++ 4.x | |
10730 # FIXME: insert proper C++ library support | |
10731 ld_shlibs_CXX=no | |
10732 ;; | |
10733 lcc*) | |
10734 # Lucid | |
10735 # FIXME: insert proper C++ library support | |
10736 ld_shlibs_CXX=no | |
10737 ;; | |
10738 *) | |
10739 # FIXME: insert proper C++ library support | |
10740 ld_shlibs_CXX=no | |
10741 ;; | |
10742 esac | |
10743 ;; | |
10744 solaris*) | |
10745 case $cc_basename in | |
10746 CC*) | |
10747 # Sun C++ 4.2, 5.x and Centerline C++ | |
10748 no_undefined_flag_CXX=' -zdefs' | |
10749 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10750 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10751 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
10752 | |
10753 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
10754 hardcode_shlibpath_var_CXX=no | |
10755 case $host_os in | |
10756 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10757 *) | |
10758 # The C++ compiler is used as linker so we must use $wl | |
10759 # flag to pass the commands to the underlying system | |
10760 # linker. We must also pass each convience library through | |
10761 # to the system linker between allextract/defaultextract. | |
10762 # The C++ compiler will combine linker options so we | |
10763 # cannot just pass the convience library names through | |
10764 # without $wl. | |
10765 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10766 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | |
10767 ;; | |
10768 esac | |
10769 link_all_deplibs_CXX=yes | |
10770 | |
10771 # Commands to make compiler produce verbose output that lists | |
10772 # what "hidden" libraries, object files and flags are used when | |
10773 # linking a shared library. | |
10774 # | |
10775 # There doesn't appear to be a way to prevent this compiler from | |
10776 # explicitly linking system object files so we need to strip them | |
10777 # from the output so that they don't get included in the library | |
10778 # dependencies. | |
10779 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10780 | |
10781 # Archives containing C++ object files must be created using | |
10782 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
10783 # necessary to make sure instantiated templates are included | |
10784 # in the archive. | |
10785 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
10786 ;; | |
10787 gcx*) | |
10788 # Green Hills C++ Compiler | |
10789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
10790 | |
10791 # The C++ compiler must be used to create the archive. | |
10792 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
10793 ;; | |
10794 *) | |
10795 # GNU C++ compiler with Solaris linker | |
10796 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
10797 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
10798 if $CC --version | grep -v '^2\.7' > /dev/null; then | |
10799 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
10800 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10801 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
10802 | |
10803 # Commands to make compiler produce verbose output that lists | |
10804 # what "hidden" libraries, object files and flags are used when | |
10805 # linking a shared library. | |
10806 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
10807 else | |
10808 # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
10809 # platform. | |
10810 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
10811 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10812 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
10813 | |
10814 # Commands to make compiler produce verbose output that lists | |
10815 # what "hidden" libraries, object files and flags are used when | |
10816 # linking a shared library. | |
10817 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
10818 fi | |
10819 | |
10820 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
10821 fi | |
10822 ;; | |
10823 esac | |
10824 ;; | |
10825 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
10826 archive_cmds_need_lc_CXX=no | |
10827 ;; | |
10828 tandem*) | |
10829 case $cc_basename in | |
10830 NCC*) | |
10831 # NonStop-UX NCC 3.20 | |
10832 # FIXME: insert proper C++ library support | |
10833 ld_shlibs_CXX=no | |
10834 ;; | |
10835 *) | |
10836 # FIXME: insert proper C++ library support | |
10837 ld_shlibs_CXX=no | |
10838 ;; | |
10839 esac | |
10840 ;; | |
10841 vxworks*) | |
10842 # FIXME: insert proper C++ library support | |
10843 ld_shlibs_CXX=no | |
10844 ;; | |
10845 *) | |
10846 # FIXME: insert proper C++ library support | |
10847 ld_shlibs_CXX=no | |
10848 ;; | |
10849 esac | |
10850 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
10851 echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
10852 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
10853 | |
10854 GCC_CXX="$GXX" | |
10855 LD_CXX="$LD" | |
10856 | |
10857 | |
10858 cat > conftest.$ac_ext <<EOF | |
10859 class Foo | |
10860 { | |
10861 public: | |
10862 Foo (void) { a = 0; } | |
10863 private: | |
10864 int a; | |
10865 }; | |
10866 EOF | |
10867 | |
10868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10869 (eval $ac_compile) 2>&5 | |
10870 ac_status=$? | |
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10872 (exit $ac_status); }; then | |
10873 # Parse the compiler output and extract the necessary | |
10874 # objects, libraries and library flags. | |
10875 | |
10876 # Sentinel used to keep track of whether or not we are before | |
10877 # the conftest object file. | |
10878 pre_test_object_deps_done=no | |
10879 | |
10880 # The `*' in the case matches for architectures that use `case' in | |
10881 # $output_verbose_cmd can trigger glob expansion during the loop | |
10882 # eval without this substitution. | |
10883 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | |
10884 | |
10885 for p in `eval $output_verbose_link_cmd`; do | |
10886 case $p in | |
10887 | |
10888 -L* | -R* | -l*) | |
10889 # Some compilers place space between "-{L,R}" and the path. | |
10890 # Remove the space. | |
10891 if test $p = "-L" \ | |
10892 || test $p = "-R"; then | |
10893 prev=$p | |
10894 continue | |
10895 else | |
10896 prev= | |
10897 fi | |
10898 | |
10899 if test "$pre_test_object_deps_done" = no; then | |
10900 case $p in | |
10901 -L* | -R*) | |
10902 # Internal compiler library paths should come after those | |
10903 # provided the user. The postdeps already come after the | |
10904 # user supplied libs so there is no need to process them. | |
10905 if test -z "$compiler_lib_search_path_CXX"; then | |
10906 compiler_lib_search_path_CXX="${prev}${p}" | |
10907 else | |
10908 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
10909 fi | |
10910 ;; | |
10911 # The "-l" case would never come before the object being | |
10912 # linked, so don't bother handling this case. | |
10913 esac | |
10914 else | |
10915 if test -z "$postdeps_CXX"; then | |
10916 postdeps_CXX="${prev}${p}" | |
10917 else | |
10918 postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
10919 fi | |
10920 fi | |
10921 ;; | |
10922 | |
10923 *.$objext) | |
10924 # This assumes that the test object file only shows up | |
10925 # once in the compiler output. | |
10926 if test "$p" = "conftest.$objext"; then | |
10927 pre_test_object_deps_done=yes | |
10928 continue | |
10929 fi | |
10930 | |
10931 if test "$pre_test_object_deps_done" = no; then | |
10932 if test -z "$predep_objects_CXX"; then | |
10933 predep_objects_CXX="$p" | |
10934 else | |
10935 predep_objects_CXX="$predep_objects_CXX $p" | |
10936 fi | |
10937 else | |
10938 if test -z "$postdep_objects_CXX"; then | |
10939 postdep_objects_CXX="$p" | |
10940 else | |
10941 postdep_objects_CXX="$postdep_objects_CXX $p" | |
10942 fi | |
10943 fi | |
10944 ;; | |
10945 | |
10946 *) ;; # Ignore the rest. | |
10947 | |
10948 esac | |
10949 done | |
10950 | |
10951 # Clean up. | |
10952 rm -f a.out a.exe | |
10953 else | |
10954 echo "libtool.m4: error: problem compiling CXX test program" | |
10955 fi | |
10956 | |
10957 $rm -f confest.$objext | |
10958 | |
10959 case " $postdeps_CXX " in | |
10960 *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
10961 esac | |
10962 | |
10963 lt_prog_compiler_wl_CXX= | |
10964 lt_prog_compiler_pic_CXX= | |
10965 lt_prog_compiler_static_CXX= | |
10966 | |
10967 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
10968 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
10969 | |
10970 # C++ specific cases for pic, static, wl, etc. | |
10971 if test "$GXX" = yes; then | |
10972 lt_prog_compiler_wl_CXX='-Wl,' | |
10973 lt_prog_compiler_static_CXX='-static' | |
10974 | |
10975 case $host_os in | |
10976 aix*) | |
10977 # All AIX code is PIC. | |
10978 if test "$host_cpu" = ia64; then | |
10979 # AIX 5 now supports IA64 processor | |
10980 lt_prog_compiler_static_CXX='-Bstatic' | |
10981 fi | |
10982 ;; | |
10983 amigaos*) | |
10984 # FIXME: we need at least 68020 code to build shared libraries, but | |
10985 # adding the `-m68020' flag to GCC prevents building anything better, | |
10986 # like `-m68040'. | |
10987 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
10988 ;; | |
10989 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
10990 # PIC is the default for these OSes. | |
10991 ;; | |
10992 mingw* | os2* | pw32*) | |
10993 # This hack is so that the source file can tell whether it is being | |
10994 # built for inclusion in a dll (and should export symbols for example). | |
10995 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
10996 ;; | |
10997 darwin* | rhapsody*) | |
10998 # PIC is the default on this platform | |
10999 # Common symbols not allowed in MH_DYLIB files | |
11000 lt_prog_compiler_pic_CXX='-fno-common' | |
11001 ;; | |
11002 *djgpp*) | |
11003 # DJGPP does not support shared libraries at all | |
11004 lt_prog_compiler_pic_CXX= | |
11005 ;; | |
11006 sysv4*MP*) | |
11007 if test -d /usr/nec; then | |
11008 lt_prog_compiler_pic_CXX=-Kconform_pic | |
11009 fi | |
11010 ;; | |
11011 hpux*) | |
11012 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
11013 # not for PA HP-UX. | |
11014 case "$host_cpu" in | |
11015 hppa*64*|ia64*) | |
11016 ;; | |
11017 *) | |
11018 lt_prog_compiler_pic_CXX='-fPIC' | |
11019 ;; | |
11020 esac | |
11021 ;; | |
11022 *) | |
11023 lt_prog_compiler_pic_CXX='-fPIC' | |
11024 ;; | |
11025 esac | |
11026 else | |
11027 case $host_os in | |
11028 aix4* | aix5*) | |
11029 # All AIX code is PIC. | |
11030 if test "$host_cpu" = ia64; then | |
11031 # AIX 5 now supports IA64 processor | |
11032 lt_prog_compiler_static_CXX='-Bstatic' | |
11033 else | |
11034 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
11035 fi | |
11036 ;; | |
11037 chorus*) | |
11038 case $cc_basename in | |
11039 cxch68*) | |
11040 # Green Hills C++ Compiler | |
11041 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
11042 ;; | |
11043 esac | |
11044 ;; | |
11045 darwin*) | |
11046 # PIC is the default on this platform | |
11047 # Common symbols not allowed in MH_DYLIB files | |
11048 case $cc_basename in | |
11049 xlc*) | |
11050 lt_prog_compiler_pic_CXX='-qnocommon' | |
11051 lt_prog_compiler_wl_CXX='-Wl,' | |
11052 ;; | |
11053 esac | |
11054 ;; | |
11055 dgux*) | |
11056 case $cc_basename in | |
11057 ec++*) | |
11058 lt_prog_compiler_pic_CXX='-KPIC' | |
11059 ;; | |
11060 ghcx*) | |
11061 # Green Hills C++ Compiler | |
11062 lt_prog_compiler_pic_CXX='-pic' | |
11063 ;; | |
11064 *) | |
11065 ;; | |
11066 esac | |
11067 ;; | |
11068 freebsd* | kfreebsd*-gnu | dragonfly*) | |
11069 # FreeBSD uses GNU C++ | |
11070 ;; | |
11071 hpux9* | hpux10* | hpux11*) | |
11072 case $cc_basename in | |
11073 CC*) | |
11074 lt_prog_compiler_wl_CXX='-Wl,' | |
11075 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
11076 if test "$host_cpu" != ia64; then | |
11077 lt_prog_compiler_pic_CXX='+Z' | |
11078 fi | |
11079 ;; | |
11080 aCC*) | |
11081 lt_prog_compiler_wl_CXX='-Wl,' | |
11082 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
11083 case "$host_cpu" in | |
11084 hppa*64*|ia64*) | |
11085 # +Z the default | |
11086 ;; | |
11087 *) | |
11088 lt_prog_compiler_pic_CXX='+Z' | |
11089 ;; | |
11090 esac | |
11091 ;; | |
11092 *) | |
11093 ;; | |
11094 esac | |
11095 ;; | |
11096 irix5* | irix6* | nonstopux*) | |
11097 case $cc_basename in | |
11098 CC*) | |
11099 lt_prog_compiler_wl_CXX='-Wl,' | |
11100 lt_prog_compiler_static_CXX='-non_shared' | |
11101 # CC pic flag -KPIC is the default. | |
11102 ;; | |
11103 *) | |
11104 ;; | |
11105 esac | |
11106 ;; | |
11107 linux*) | |
11108 case $cc_basename in | |
11109 KCC*) | |
11110 # KAI C++ Compiler | |
11111 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
11112 lt_prog_compiler_pic_CXX='-fPIC' | |
11113 ;; | |
11114 icpc* | ecpc*) | |
11115 # Intel C++ | |
11116 lt_prog_compiler_wl_CXX='-Wl,' | |
11117 lt_prog_compiler_pic_CXX='-KPIC' | |
11118 lt_prog_compiler_static_CXX='-static' | |
11119 ;; | |
11120 pgCC*) | |
11121 # Portland Group C++ compiler. | |
11122 lt_prog_compiler_wl_CXX='-Wl,' | |
11123 lt_prog_compiler_pic_CXX='-fpic' | |
11124 lt_prog_compiler_static_CXX='-static' | |
11125 ;; | |
11126 cxx*) | |
11127 # Compaq C++ | |
11128 # Make sure the PIC flag is empty. It appears that all Alpha | |
11129 # Linux and Compaq Tru64 Unix objects are PIC. | |
11130 lt_prog_compiler_pic_CXX= | |
11131 lt_prog_compiler_static_CXX='-non_shared' | |
11132 ;; | |
11133 *) | |
11134 ;; | |
11135 esac | |
11136 ;; | |
11137 lynxos*) | |
11138 ;; | |
11139 m88k*) | |
11140 ;; | |
11141 mvs*) | |
11142 case $cc_basename in | |
11143 cxx*) | |
11144 lt_prog_compiler_pic_CXX='-W c,exportall' | |
11145 ;; | |
11146 *) | |
11147 ;; | |
11148 esac | |
11149 ;; | |
11150 netbsd*) | |
11151 ;; | |
11152 osf3* | osf4* | osf5*) | |
11153 case $cc_basename in | |
11154 KCC*) | |
11155 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
11156 ;; | |
11157 RCC*) | |
11158 # Rational C++ 2.4.1 | |
11159 lt_prog_compiler_pic_CXX='-pic' | |
11160 ;; | |
11161 cxx*) | |
11162 # Digital/Compaq C++ | |
11163 lt_prog_compiler_wl_CXX='-Wl,' | |
11164 # Make sure the PIC flag is empty. It appears that all Alpha | |
11165 # Linux and Compaq Tru64 Unix objects are PIC. | |
11166 lt_prog_compiler_pic_CXX= | |
11167 lt_prog_compiler_static_CXX='-non_shared' | |
11168 ;; | |
11169 *) | |
11170 ;; | |
11171 esac | |
11172 ;; | |
11173 psos*) | |
11174 ;; | |
11175 sco*) | |
11176 case $cc_basename in | |
11177 CC*) | |
11178 lt_prog_compiler_pic_CXX='-fPIC' | |
11179 ;; | |
11180 *) | |
11181 ;; | |
11182 esac | |
11183 ;; | |
11184 solaris*) | |
11185 case $cc_basename in | |
11186 CC*) | |
11187 # Sun C++ 4.2, 5.x and Centerline C++ | |
11188 lt_prog_compiler_pic_CXX='-KPIC' | |
11189 lt_prog_compiler_static_CXX='-Bstatic' | |
11190 lt_prog_compiler_wl_CXX='-Qoption ld ' | |
11191 ;; | |
11192 gcx*) | |
11193 # Green Hills C++ Compiler | |
11194 lt_prog_compiler_pic_CXX='-PIC' | |
11195 ;; | |
11196 *) | |
11197 ;; | |
11198 esac | |
11199 ;; | |
11200 sunos4*) | |
11201 case $cc_basename in | |
11202 CC*) | |
11203 # Sun C++ 4.x | |
11204 lt_prog_compiler_pic_CXX='-pic' | |
11205 lt_prog_compiler_static_CXX='-Bstatic' | |
11206 ;; | |
11207 lcc*) | |
11208 # Lucid | |
11209 lt_prog_compiler_pic_CXX='-pic' | |
11210 ;; | |
11211 *) | |
11212 ;; | |
11213 esac | |
11214 ;; | |
11215 tandem*) | |
11216 case $cc_basename in | |
11217 NCC*) | |
11218 # NonStop-UX NCC 3.20 | |
11219 lt_prog_compiler_pic_CXX='-KPIC' | |
11220 ;; | |
11221 *) | |
11222 ;; | |
11223 esac | |
11224 ;; | |
11225 unixware*) | |
11226 ;; | |
11227 vxworks*) | |
11228 ;; | |
11229 *) | |
11230 lt_prog_compiler_can_build_shared_CXX=no | |
11231 ;; | |
11232 esac | |
11233 fi | |
11234 | |
11235 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
11236 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
11237 | |
11238 # | |
11239 # Check to make sure the PIC flag actually works. | |
11240 # | |
11241 if test -n "$lt_prog_compiler_pic_CXX"; then | |
11242 | |
11243 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
11244 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
11245 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
11246 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11247 else | |
11248 lt_prog_compiler_pic_works_CXX=no | |
11249 ac_outfile=conftest.$ac_objext | |
11250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11251 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
11252 # Insert the option either (1) after the last *FLAGS variable, or | |
11253 # (2) before a word containing "conftest.", or (3) at the end. | |
11254 # Note that $ac_compile itself does not contain backslashes and begins | |
11255 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11256 # The option is referenced via a variable to avoid confusing sed. | |
11257 lt_compile=`echo "$ac_compile" | $SED \ | |
11258 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
11259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11260 -e 's:$: $lt_compiler_flag:'` | |
11261 (eval echo "\"\$as_me:11261: $lt_compile\"" >&5) | |
11262 (eval "$lt_compile" 2>conftest.err) | |
11263 ac_status=$? | |
11264 cat conftest.err >&5 | |
11265 echo "$as_me:11265: \$? = $ac_status" >&5 | |
11266 if (exit $ac_status) && test -s "$ac_outfile"; then | |
11267 # The compiler can only warn and ignore the option if not recognized | |
11268 # So say no if there are warnings other than the usual output. | |
11269 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | |
11270 $SED '/^$/d' conftest.err >conftest.er2 | |
11271 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | |
11272 lt_prog_compiler_pic_works_CXX=yes | |
11273 fi | |
11274 fi | |
11275 $rm conftest* | |
11276 | |
11277 fi | |
11278 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
11279 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
11280 | |
11281 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
11282 case $lt_prog_compiler_pic_CXX in | |
11283 "" | " "*) ;; | |
11284 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
11285 esac | |
11286 else | |
11287 lt_prog_compiler_pic_CXX= | |
11288 lt_prog_compiler_can_build_shared_CXX=no | |
11289 fi | |
11290 | |
11291 fi | |
11292 case "$host_os" in | |
11293 # For platforms which do not support PIC, -DPIC is meaningless: | |
11294 *djgpp*) | |
11295 lt_prog_compiler_pic_CXX= | |
11296 ;; | |
11297 *) | |
11298 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
11299 ;; | |
11300 esac | |
11301 | |
11302 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
11303 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
11304 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
11305 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11306 else | |
11307 lt_cv_prog_compiler_c_o_CXX=no | |
11308 $rm -r conftest 2>/dev/null | |
11309 mkdir conftest | |
11310 cd conftest | |
11311 mkdir out | |
11312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11313 | |
11314 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
11315 # Insert the option either (1) after the last *FLAGS variable, or | |
11316 # (2) before a word containing "conftest.", or (3) at the end. | |
11317 # Note that $ac_compile itself does not contain backslashes and begins | |
11318 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11319 lt_compile=`echo "$ac_compile" | $SED \ | |
11320 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
11321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11322 -e 's:$: $lt_compiler_flag:'` | |
11323 (eval echo "\"\$as_me:11323: $lt_compile\"" >&5) | |
11324 (eval "$lt_compile" 2>out/conftest.err) | |
11325 ac_status=$? | |
11326 cat out/conftest.err >&5 | |
11327 echo "$as_me:11327: \$? = $ac_status" >&5 | |
11328 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
11329 then | |
11330 # The compiler can only warn and ignore the option if not recognized | |
11331 # So say no if there are warnings | |
11332 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp | |
11333 $SED '/^$/d' out/conftest.err >out/conftest.er2 | |
11334 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
11335 lt_cv_prog_compiler_c_o_CXX=yes | |
11336 fi | |
11337 fi | |
11338 chmod u+w . | |
11339 $rm conftest* | |
11340 # SGI C++ compiler will create directory out/ii_files/ for | |
11341 # template instantiation | |
11342 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
11343 $rm out/* && rmdir out | |
11344 cd .. | |
11345 rmdir conftest | |
11346 $rm conftest* | |
11347 | |
11348 fi | |
11349 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
11350 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
11351 | |
11352 | |
11353 hard_links="nottested" | |
11354 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
11355 # do not overwrite the value of need_locks provided by the user | |
11356 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
11357 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
11358 hard_links=yes | |
11359 $rm conftest* | |
11360 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11361 touch conftest.a | |
11362 ln conftest.a conftest.b 2>&5 || hard_links=no | |
11363 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11364 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
11365 echo "${ECHO_T}$hard_links" >&6 | |
11366 if test "$hard_links" = no; then | |
11367 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
11368 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
11369 need_locks=warn | |
11370 fi | |
11371 else | |
11372 need_locks=no | |
11373 fi | |
11374 | |
11375 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11376 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
11377 | |
11378 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11379 case $host_os in | |
11380 aix4* | aix5*) | |
11381 # If we're using GNU nm, then we don't want the "-C" option. | |
11382 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
11383 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
11384 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
11385 else | |
11386 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
11387 fi | |
11388 ;; | |
11389 pw32*) | |
11390 export_symbols_cmds_CXX="$ltdll_cmds" | |
11391 ;; | |
11392 cygwin* | mingw*) | |
11393 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
11394 ;; | |
11395 *) | |
11396 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11397 ;; | |
11398 esac | |
11399 | |
11400 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
11401 echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
11402 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
11403 | |
11404 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11405 if test "$GCC" = yes; then | |
11406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11407 fi | |
11408 | |
11409 # | |
11410 # Do we need to explicitly link libc? | |
11411 # | |
11412 case "x$archive_cmds_need_lc_CXX" in | |
11413 x|xyes) | |
11414 # Assume -lc should be added | |
11415 archive_cmds_need_lc_CXX=yes | |
11416 | |
11417 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11418 case $archive_cmds_CXX in | |
11419 *'~'*) | |
11420 # FIXME: we may have to deal with multi-command sequences. | |
11421 ;; | |
11422 '$CC '*) | |
11423 # Test whether the compiler implicitly links with -lc since on some | |
11424 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11425 # to ld, don't add -lc before -lgcc. | |
11426 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
11427 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
11428 $rm conftest* | |
11429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11430 | |
11431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11432 (eval $ac_compile) 2>&5 | |
11433 ac_status=$? | |
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11435 (exit $ac_status); } 2>conftest.err; then | |
11436 soname=conftest | |
11437 lib=conftest | |
11438 libobjs=conftest.$ac_objext | |
11439 deplibs= | |
11440 wl=$lt_prog_compiler_wl_CXX | |
11441 compiler_flags=-v | |
11442 linker_flags=-v | |
11443 verstring= | |
11444 output_objdir=. | |
11445 libname=conftest | |
11446 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
11447 allow_undefined_flag_CXX= | |
11448 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
11449 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11450 ac_status=$? | |
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11452 (exit $ac_status); } | |
11453 then | |
11454 archive_cmds_need_lc_CXX=no | |
11455 else | |
11456 archive_cmds_need_lc_CXX=yes | |
11457 fi | |
11458 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
11459 else | |
11460 cat conftest.err 1>&5 | |
11461 fi | |
11462 $rm conftest* | |
11463 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
11464 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
11465 ;; | |
11466 esac | |
11467 fi | |
11468 ;; | |
11469 esac | |
11470 | |
11471 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
11472 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
11473 library_names_spec= | |
11474 libname_spec='lib$name' | |
11475 soname_spec= | |
11476 shrext_cmds=".so" | |
11477 postinstall_cmds= | |
11478 postuninstall_cmds= | |
11479 finish_cmds= | |
11480 finish_eval= | |
11481 shlibpath_var= | |
11482 shlibpath_overrides_runpath=unknown | |
11483 version_type=none | |
11484 dynamic_linker="$host_os ld.so" | |
11485 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11486 if test "$GCC" = yes; then | |
11487 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
11488 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
11489 # if the path contains ";" then we assume it to be the separator | |
11490 # otherwise default to the standard path separator (i.e. ":") - it is | |
11491 # assumed that no part of a normal pathname contains ";" but that should | |
11492 # okay in the real world where ";" in dirpaths is itself problematic. | |
11493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11494 else | |
11495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11496 fi | |
11497 else | |
11498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11499 fi | |
11500 need_lib_prefix=unknown | |
11501 hardcode_into_libs=no | |
11502 | |
11503 # when you set need_version to no, make sure it does not cause -set_version | |
11504 # flags to be left without arguments | |
11505 need_version=unknown | |
11506 | |
11507 case $host_os in | |
11508 aix3*) | |
11509 version_type=linux | |
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11511 shlibpath_var=LIBPATH | |
11512 | |
11513 # AIX 3 has no versioning support, so we append a major version to the name. | |
11514 soname_spec='${libname}${release}${shared_ext}$major' | |
11515 ;; | |
11516 | |
11517 aix4* | aix5*) | |
11518 version_type=linux | |
11519 need_lib_prefix=no | |
11520 need_version=no | |
11521 hardcode_into_libs=yes | |
11522 if test "$host_cpu" = ia64; then | |
11523 # AIX 5 supports IA64 | |
11524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11525 shlibpath_var=LD_LIBRARY_PATH | |
11526 else | |
11527 # With GCC up to 2.95.x, collect2 would create an import file | |
11528 # for dependence libraries. The import file would start with | |
11529 # the line `#! .'. This would cause the generated library to | |
11530 # depend on `.', always an invalid library. This was fixed in | |
11531 # development snapshots of GCC prior to 3.0. | |
11532 case $host_os in | |
11533 aix4 | aix4.[01] | aix4.[01].*) | |
11534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11535 echo ' yes ' | |
11536 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
11537 : | |
11538 else | |
11539 can_build_shared=no | |
11540 fi | |
11541 ;; | |
11542 esac | |
11543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11544 # soname into executable. Probably we can add versioning support to | |
11545 # collect2, so additional links can be useful in future. | |
11546 if test "$aix_use_runtimelinking" = yes; then | |
11547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11548 # instead of lib<name>.a to let people know that these are not | |
11549 # typical AIX shared libraries. | |
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11551 else | |
11552 # We preserve .a as extension for shared libraries through AIX4.2 | |
11553 # and later when we are not doing run time linking. | |
11554 library_names_spec='${libname}${release}.a $libname.a' | |
11555 soname_spec='${libname}${release}${shared_ext}$major' | |
11556 fi | |
11557 shlibpath_var=LIBPATH | |
11558 fi | |
11559 ;; | |
11560 | |
11561 amigaos*) | |
11562 library_names_spec='$libname.ixlibrary $libname.a' | |
11563 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11564 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' | |
11565 ;; | |
11566 | |
11567 beos*) | |
11568 library_names_spec='${libname}${shared_ext}' | |
11569 dynamic_linker="$host_os ld.so" | |
11570 shlibpath_var=LIBRARY_PATH | |
11571 ;; | |
11572 | |
11573 bsdi[45]*) | |
11574 version_type=linux | |
11575 need_version=no | |
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11577 soname_spec='${libname}${release}${shared_ext}$major' | |
11578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11579 shlibpath_var=LD_LIBRARY_PATH | |
11580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11582 # the default ld.so.conf also contains /usr/contrib/lib and | |
11583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11584 # libtool to hard-code these into programs | |
11585 ;; | |
11586 | |
11587 cygwin* | mingw* | pw32*) | |
11588 version_type=windows | |
11589 shrext_cmds=".dll" | |
11590 need_version=no | |
11591 need_lib_prefix=no | |
11592 | |
11593 case $GCC,$host_os in | |
11594 yes,cygwin* | yes,mingw* | yes,pw32*) | |
11595 library_names_spec='$libname.dll.a' | |
11596 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11597 postinstall_cmds='base_file=`basename \${file}`~ | |
11598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
11599 dldir=$destdir/`dirname \$dlpath`~ | |
11600 test -d \$dldir || mkdir -p \$dldir~ | |
11601 $install_prog $dir/$dlname \$dldir/$dlname' | |
11602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11603 dlpath=$dir/\$dldll~ | |
11604 $rm \$dlpath' | |
11605 shlibpath_overrides_runpath=yes | |
11606 | |
11607 case $host_os in | |
11608 cygwin*) | |
11609 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11610 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11611 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
11612 ;; | |
11613 mingw*) | |
11614 # MinGW DLLs use traditional 'lib' prefix | |
11615 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
11617 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
11618 # It is most probably a Windows format PATH printed by | |
11619 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
11620 # path with ; separators, and with drive letters. We can handle the | |
11621 # drive letters (cygwin fileutils understands them), so leave them, | |
11622 # especially as we might pass files found there to a mingw objdump, | |
11623 # which wouldn't understand a cygwinified path. Ahh. | |
11624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11625 else | |
11626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11627 fi | |
11628 ;; | |
11629 pw32*) | |
11630 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11632 ;; | |
11633 esac | |
11634 ;; | |
11635 | |
11636 *) | |
11637 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11638 ;; | |
11639 esac | |
11640 dynamic_linker='Win32 ld.exe' | |
11641 # FIXME: first we should search . and the directory the executable is in | |
11642 shlibpath_var=PATH | |
11643 ;; | |
11644 | |
11645 darwin* | rhapsody*) | |
11646 dynamic_linker="$host_os dyld" | |
11647 version_type=darwin | |
11648 need_lib_prefix=no | |
11649 need_version=no | |
11650 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11651 soname_spec='${libname}${release}${major}$shared_ext' | |
11652 shlibpath_overrides_runpath=yes | |
11653 shlibpath_var=DYLD_LIBRARY_PATH | |
11654 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | |
11655 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
11656 if test "$GCC" = yes; then | |
11657 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
11658 else | |
11659 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
11660 fi | |
11661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11662 ;; | |
11663 | |
11664 dgux*) | |
11665 version_type=linux | |
11666 need_lib_prefix=no | |
11667 need_version=no | |
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11669 soname_spec='${libname}${release}${shared_ext}$major' | |
11670 shlibpath_var=LD_LIBRARY_PATH | |
11671 ;; | |
11672 | |
11673 freebsd1*) | |
11674 dynamic_linker=no | |
11675 ;; | |
11676 | |
11677 kfreebsd*-gnu) | |
11678 version_type=linux | |
11679 need_lib_prefix=no | |
11680 need_version=no | |
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11682 soname_spec='${libname}${release}${shared_ext}$major' | |
11683 shlibpath_var=LD_LIBRARY_PATH | |
11684 shlibpath_overrides_runpath=no | |
11685 hardcode_into_libs=yes | |
11686 dynamic_linker='GNU ld.so' | |
11687 ;; | |
11688 | |
11689 freebsd* | dragonfly*) | |
11690 # DragonFly does not have aout. When/if they implement a new | |
11691 # versioning mechanism, adjust this. | |
11692 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
11693 version_type=freebsd-$objformat | |
11694 case $version_type in | |
11695 freebsd-elf*) | |
11696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11697 need_version=no | |
11698 need_lib_prefix=no | |
11699 ;; | |
11700 freebsd-*) | |
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11702 need_version=yes | |
11703 ;; | |
11704 esac | |
11705 shlibpath_var=LD_LIBRARY_PATH | |
11706 case $host_os in | |
11707 freebsd2*) | |
11708 shlibpath_overrides_runpath=yes | |
11709 ;; | |
11710 freebsd3.[01]* | freebsdelf3.[01]*) | |
11711 shlibpath_overrides_runpath=yes | |
11712 hardcode_into_libs=yes | |
11713 ;; | |
11714 *) # from 3.2 on | |
11715 shlibpath_overrides_runpath=no | |
11716 hardcode_into_libs=yes | |
11717 ;; | |
11718 esac | |
11719 ;; | |
11720 | |
11721 gnu*) | |
11722 version_type=linux | |
11723 need_lib_prefix=no | |
11724 need_version=no | |
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11726 soname_spec='${libname}${release}${shared_ext}$major' | |
11727 shlibpath_var=LD_LIBRARY_PATH | |
11728 hardcode_into_libs=yes | |
11729 ;; | |
11730 | |
11731 hpux9* | hpux10* | hpux11*) | |
11732 # Give a soname corresponding to the major version so that dld.sl refuses to | |
11733 # link against other versions. | |
11734 version_type=sunos | |
11735 need_lib_prefix=no | |
11736 need_version=no | |
11737 case "$host_cpu" in | |
11738 ia64*) | |
11739 shrext_cmds='.so' | |
11740 hardcode_into_libs=yes | |
11741 dynamic_linker="$host_os dld.so" | |
11742 shlibpath_var=LD_LIBRARY_PATH | |
11743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11745 soname_spec='${libname}${release}${shared_ext}$major' | |
11746 if test "X$HPUX_IA64_MODE" = X32; then | |
11747 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11748 else | |
11749 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11750 fi | |
11751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11752 ;; | |
11753 hppa*64*) | |
11754 shrext_cmds='.sl' | |
11755 hardcode_into_libs=yes | |
11756 dynamic_linker="$host_os dld.sl" | |
11757 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11760 soname_spec='${libname}${release}${shared_ext}$major' | |
11761 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11763 ;; | |
11764 *) | |
11765 shrext_cmds='.sl' | |
11766 dynamic_linker="$host_os dld.sl" | |
11767 shlibpath_var=SHLIB_PATH | |
11768 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11770 soname_spec='${libname}${release}${shared_ext}$major' | |
11771 ;; | |
11772 esac | |
11773 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
11774 postinstall_cmds='chmod 555 $lib' | |
11775 ;; | |
11776 | |
11777 irix5* | irix6* | nonstopux*) | |
11778 case $host_os in | |
11779 nonstopux*) version_type=nonstopux ;; | |
11780 *) | |
11781 if test "$lt_cv_prog_gnu_ld" = yes; then | |
11782 version_type=linux | |
11783 else | |
11784 version_type=irix | |
11785 fi ;; | |
11786 esac | |
11787 need_lib_prefix=no | |
11788 need_version=no | |
11789 soname_spec='${libname}${release}${shared_ext}$major' | |
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11791 case $host_os in | |
11792 irix5* | nonstopux*) | |
11793 libsuff= shlibsuff= | |
11794 ;; | |
11795 *) | |
11796 case $LD in # libtool.m4 will add one of these switches to LD | |
11797 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11798 libsuff= shlibsuff= libmagic=32-bit;; | |
11799 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11800 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11801 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11802 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11803 *) libsuff= shlibsuff= libmagic=never-match;; | |
11804 esac | |
11805 ;; | |
11806 esac | |
11807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11808 shlibpath_overrides_runpath=no | |
11809 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11810 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11811 hardcode_into_libs=yes | |
11812 ;; | |
11813 | |
11814 # No shared lib support for Linux oldld, aout, or coff. | |
11815 linux*oldld* | linux*aout* | linux*coff*) | |
11816 dynamic_linker=no | |
11817 ;; | |
11818 | |
11819 # This must be Linux ELF. | |
11820 linux*) | |
11821 version_type=linux | |
11822 need_lib_prefix=no | |
11823 need_version=no | |
11824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11825 soname_spec='${libname}${release}${shared_ext}$major' | |
11826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11827 shlibpath_var=LD_LIBRARY_PATH | |
11828 shlibpath_overrides_runpath=no | |
11829 # This implies no fast_install, which is unacceptable. | |
11830 # Some rework will be needed to allow for fast_install | |
11831 # before this can be enabled. | |
11832 hardcode_into_libs=yes | |
11833 | |
11834 # find out which ABI we are using | |
11835 libsuff= | |
11836 case "$host_cpu" in | |
11837 x86_64*|s390x*|powerpc64*) | |
11838 echo '#line 11838 "configure"' > conftest.$ac_ext | |
11839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11840 (eval $ac_compile) 2>&5 | |
11841 ac_status=$? | |
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11843 (exit $ac_status); }; then | |
11844 case `/usr/bin/file conftest.$ac_objext` in | |
11845 *64-bit*) | |
11846 libsuff=64 | |
11847 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
11848 ;; | |
11849 esac | |
11850 fi | |
11851 rm -rf conftest* | |
11852 ;; | |
11853 esac | |
11854 | |
11855 # Append ld.so.conf contents to the search path | |
11856 if test -f /etc/ld.so.conf; then | |
11857 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
11858 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | |
11859 fi | |
11860 | |
11861 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11862 # powerpc, because MkLinux only supported shared libraries with the | |
11863 # GNU dynamic linker. Since this was broken with cross compilers, | |
11864 # most powerpc-linux boxes support dynamic linking these days and | |
11865 # people can always --disable-shared, the test was removed, and we | |
11866 # assume the GNU/Linux dynamic linker is in use. | |
11867 dynamic_linker='GNU/Linux ld.so' | |
11868 ;; | |
11869 | |
11870 knetbsd*-gnu) | |
11871 version_type=linux | |
11872 need_lib_prefix=no | |
11873 need_version=no | |
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11875 soname_spec='${libname}${release}${shared_ext}$major' | |
11876 shlibpath_var=LD_LIBRARY_PATH | |
11877 shlibpath_overrides_runpath=no | |
11878 hardcode_into_libs=yes | |
11879 dynamic_linker='GNU ld.so' | |
11880 ;; | |
11881 | |
11882 netbsd*) | |
11883 version_type=sunos | |
11884 need_lib_prefix=no | |
11885 need_version=no | |
11886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
11887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11889 dynamic_linker='NetBSD (a.out) ld.so' | |
11890 else | |
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11892 soname_spec='${libname}${release}${shared_ext}$major' | |
11893 dynamic_linker='NetBSD ld.elf_so' | |
11894 fi | |
11895 shlibpath_var=LD_LIBRARY_PATH | |
11896 shlibpath_overrides_runpath=yes | |
11897 hardcode_into_libs=yes | |
11898 ;; | |
11899 | |
11900 newsos6) | |
11901 version_type=linux | |
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11903 shlibpath_var=LD_LIBRARY_PATH | |
11904 shlibpath_overrides_runpath=yes | |
11905 ;; | |
11906 | |
11907 nto-qnx*) | |
11908 version_type=linux | |
11909 need_lib_prefix=no | |
11910 need_version=no | |
11911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11912 soname_spec='${libname}${release}${shared_ext}$major' | |
11913 shlibpath_var=LD_LIBRARY_PATH | |
11914 shlibpath_overrides_runpath=yes | |
11915 ;; | |
11916 | |
11917 openbsd*) | |
11918 version_type=sunos | |
11919 need_lib_prefix=no | |
11920 need_version=no | |
11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11923 shlibpath_var=LD_LIBRARY_PATH | |
11924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11925 case $host_os in | |
11926 openbsd2.[89] | openbsd2.[89].*) | |
11927 shlibpath_overrides_runpath=no | |
11928 ;; | |
11929 *) | |
11930 shlibpath_overrides_runpath=yes | |
11931 ;; | |
11932 esac | |
11933 else | |
11934 shlibpath_overrides_runpath=yes | |
11935 fi | |
11936 ;; | |
11937 | |
11938 os2*) | |
11939 libname_spec='$name' | |
11940 shrext_cmds=".dll" | |
11941 need_lib_prefix=no | |
11942 library_names_spec='$libname${shared_ext} $libname.a' | |
11943 dynamic_linker='OS/2 ld.exe' | |
11944 shlibpath_var=LIBPATH | |
11945 ;; | |
11946 | |
11947 osf3* | osf4* | osf5*) | |
11948 version_type=osf | |
11949 need_lib_prefix=no | |
11950 need_version=no | |
11951 soname_spec='${libname}${release}${shared_ext}$major' | |
11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11953 shlibpath_var=LD_LIBRARY_PATH | |
11954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11956 ;; | |
11957 | |
11958 sco3.2v5*) | |
11959 version_type=osf | |
11960 soname_spec='${libname}${release}${shared_ext}$major' | |
11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11962 shlibpath_var=LD_LIBRARY_PATH | |
11963 ;; | |
11964 | |
11965 solaris*) | |
11966 version_type=linux | |
11967 need_lib_prefix=no | |
11968 need_version=no | |
11969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11970 soname_spec='${libname}${release}${shared_ext}$major' | |
11971 shlibpath_var=LD_LIBRARY_PATH | |
11972 shlibpath_overrides_runpath=yes | |
11973 hardcode_into_libs=yes | |
11974 # ldd complains unless libraries are executable | |
11975 postinstall_cmds='chmod +x $lib' | |
11976 ;; | |
11977 | |
11978 sunos4*) | |
11979 version_type=sunos | |
11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11981 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11982 shlibpath_var=LD_LIBRARY_PATH | |
11983 shlibpath_overrides_runpath=yes | |
11984 if test "$with_gnu_ld" = yes; then | |
11985 need_lib_prefix=no | |
11986 fi | |
11987 need_version=yes | |
11988 ;; | |
11989 | |
11990 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11991 version_type=linux | |
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11993 soname_spec='${libname}${release}${shared_ext}$major' | |
11994 shlibpath_var=LD_LIBRARY_PATH | |
11995 case $host_vendor in | |
11996 sni) | |
11997 shlibpath_overrides_runpath=no | |
11998 need_lib_prefix=no | |
11999 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
12000 runpath_var=LD_RUN_PATH | |
12001 ;; | |
12002 siemens) | |
12003 need_lib_prefix=no | |
12004 ;; | |
12005 motorola) | |
12006 need_lib_prefix=no | |
12007 need_version=no | |
12008 shlibpath_overrides_runpath=no | |
12009 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12010 ;; | |
12011 esac | |
12012 ;; | |
12013 | |
12014 sysv4*MP*) | |
12015 if test -d /usr/nec ;then | |
12016 version_type=linux | |
12017 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12018 soname_spec='$libname${shared_ext}.$major' | |
12019 shlibpath_var=LD_LIBRARY_PATH | |
12020 fi | |
12021 ;; | |
12022 | |
12023 uts4*) | |
12024 version_type=linux | |
12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12026 soname_spec='${libname}${release}${shared_ext}$major' | |
12027 shlibpath_var=LD_LIBRARY_PATH | |
12028 ;; | |
12029 | |
12030 *) | |
12031 dynamic_linker=no | |
12032 ;; | |
12033 esac | |
12034 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
12035 echo "${ECHO_T}$dynamic_linker" >&6 | |
12036 test "$dynamic_linker" = no && can_build_shared=no | |
12037 | |
12038 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
12039 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
12040 hardcode_action_CXX= | |
12041 if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
12042 test -n "$runpath_var_CXX" || \ | |
12043 test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
12044 | |
12045 # We can hardcode non-existant directories. | |
12046 if test "$hardcode_direct_CXX" != no && | |
12047 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12048 # have to relink, otherwise we might link with an installed library | |
12049 # when we should be linking with a yet-to-be-installed one | |
12050 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
12051 test "$hardcode_minus_L_CXX" != no; then | |
12052 # Linking always hardcodes the temporary library directory. | |
12053 hardcode_action_CXX=relink | |
12054 else | |
12055 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12056 hardcode_action_CXX=immediate | |
12057 fi | |
12058 else | |
12059 # We cannot hardcode anything, or else we can only hardcode existing | |
12060 # directories. | |
12061 hardcode_action_CXX=unsupported | |
12062 fi | |
12063 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
12064 echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
12065 | |
12066 if test "$hardcode_action_CXX" = relink; then | |
12067 # Fast installation is not supported | |
12068 enable_fast_install=no | |
12069 elif test "$shlibpath_overrides_runpath" = yes || | |
12070 test "$enable_shared" = no; then | |
12071 # Fast installation is not necessary | |
12072 enable_fast_install=needless | |
12073 fi | |
12074 | |
12075 striplib= | |
12076 old_striplib= | |
12077 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
12078 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
12079 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
12080 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12081 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12082 echo "$as_me:$LINENO: result: yes" >&5 | |
12083 echo "${ECHO_T}yes" >&6 | |
12084 else | |
12085 # FIXME - insert some real tests, host_os isn't really good enough | |
12086 case $host_os in | |
12087 darwin*) | |
12088 if test -n "$STRIP" ; then | |
12089 striplib="$STRIP -x" | |
12090 echo "$as_me:$LINENO: result: yes" >&5 | |
12091 echo "${ECHO_T}yes" >&6 | |
12092 else | |
12093 echo "$as_me:$LINENO: result: no" >&5 | |
12094 echo "${ECHO_T}no" >&6 | |
12095 fi | |
12096 ;; | |
12097 *) | |
12098 echo "$as_me:$LINENO: result: no" >&5 | |
12099 echo "${ECHO_T}no" >&6 | |
12100 ;; | |
12101 esac | |
12102 fi | |
12103 | |
12104 if test "x$enable_dlopen" != xyes; then | |
12105 enable_dlopen=unknown | |
12106 enable_dlopen_self=unknown | |
12107 enable_dlopen_self_static=unknown | |
12108 else | |
12109 lt_cv_dlopen=no | |
12110 lt_cv_dlopen_libs= | |
12111 | |
12112 case $host_os in | |
12113 beos*) | |
12114 lt_cv_dlopen="load_add_on" | |
12115 lt_cv_dlopen_libs= | |
12116 lt_cv_dlopen_self=yes | |
12117 ;; | |
12118 | |
12119 mingw* | pw32*) | |
12120 lt_cv_dlopen="LoadLibrary" | |
12121 lt_cv_dlopen_libs= | |
12122 ;; | |
12123 | |
12124 cygwin*) | |
12125 lt_cv_dlopen="dlopen" | |
12126 lt_cv_dlopen_libs= | |
12127 ;; | |
12128 | |
12129 darwin*) | |
12130 # if libdl is installed we need to link against it | |
12131 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
12132 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
12133 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
12134 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12135 else | |
12136 ac_check_lib_save_LIBS=$LIBS | |
12137 LIBS="-ldl $LIBS" | |
12138 cat >conftest.$ac_ext <<_ACEOF | |
12139 /* confdefs.h. */ | |
12140 _ACEOF | |
12141 cat confdefs.h >>conftest.$ac_ext | |
12142 cat >>conftest.$ac_ext <<_ACEOF | |
12143 /* end confdefs.h. */ | |
12144 | |
12145 /* Override any gcc2 internal prototype to avoid an error. */ | |
12146 #ifdef __cplusplus | |
12147 extern "C" | |
12148 #endif | |
12149 /* We use char because int might match the return type of a gcc2 | |
12150 builtin and then its argument prototype would still apply. */ | |
12151 char dlopen (); | |
12152 int | |
12153 main () | |
12154 { | |
12155 dlopen (); | |
12156 ; | |
12157 return 0; | |
12158 } | |
12159 _ACEOF | |
12160 rm -f conftest.$ac_objext conftest$ac_exeext | |
12161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12162 (eval $ac_link) 2>conftest.er1 | |
12163 ac_status=$? | |
12164 grep -v '^ *+' conftest.er1 >conftest.err | |
12165 rm -f conftest.er1 | |
12166 cat conftest.err >&5 | |
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12168 (exit $ac_status); } && | |
12169 { ac_try='test -z "$ac_cxx_werror_flag" | |
12170 || test ! -s conftest.err' | |
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12172 (eval $ac_try) 2>&5 | |
12173 ac_status=$? | |
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12175 (exit $ac_status); }; } && | |
12176 { ac_try='test -s conftest$ac_exeext' | |
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12178 (eval $ac_try) 2>&5 | |
12179 ac_status=$? | |
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12181 (exit $ac_status); }; }; then | |
12182 ac_cv_lib_dl_dlopen=yes | |
12183 else | |
12184 echo "$as_me: failed program was:" >&5 | |
12185 sed 's/^/| /' conftest.$ac_ext >&5 | |
12186 | |
12187 ac_cv_lib_dl_dlopen=no | |
12188 fi | |
12189 rm -f conftest.err conftest.$ac_objext \ | |
12190 conftest$ac_exeext conftest.$ac_ext | |
12191 LIBS=$ac_check_lib_save_LIBS | |
12192 fi | |
12193 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
12194 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
12195 if test $ac_cv_lib_dl_dlopen = yes; then | |
12196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12197 else | |
12198 | |
12199 lt_cv_dlopen="dyld" | |
12200 lt_cv_dlopen_libs= | |
12201 lt_cv_dlopen_self=yes | |
12202 | |
12203 fi | |
12204 | |
12205 ;; | |
12206 | |
12207 *) | |
12208 echo "$as_me:$LINENO: checking for shl_load" >&5 | |
12209 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
12210 if test "${ac_cv_func_shl_load+set}" = set; then | |
12211 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12212 else | |
12213 cat >conftest.$ac_ext <<_ACEOF | |
12214 /* confdefs.h. */ | |
12215 _ACEOF | |
12216 cat confdefs.h >>conftest.$ac_ext | |
12217 cat >>conftest.$ac_ext <<_ACEOF | |
12218 /* end confdefs.h. */ | |
12219 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
12220 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12221 #define shl_load innocuous_shl_load | |
12222 | |
12223 /* System header to define __stub macros and hopefully few prototypes, | |
12224 which can conflict with char shl_load (); below. | |
12225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12226 <limits.h> exists even on freestanding compilers. */ | |
12227 | |
12228 #ifdef __STDC__ | |
12229 # include <limits.h> | |
12230 #else | |
12231 # include <assert.h> | |
12232 #endif | |
12233 | |
12234 #undef shl_load | |
12235 | |
12236 /* Override any gcc2 internal prototype to avoid an error. */ | |
12237 #ifdef __cplusplus | |
12238 extern "C" | |
12239 { | |
12240 #endif | |
12241 /* We use char because int might match the return type of a gcc2 | |
12242 builtin and then its argument prototype would still apply. */ | |
12243 char shl_load (); | |
12244 /* The GNU C library defines this for functions which it implements | |
12245 to always fail with ENOSYS. Some functions are actually named | |
12246 something starting with __ and the normal name is an alias. */ | |
12247 #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
12248 choke me | |
12249 #else | |
12250 char (*f) () = shl_load; | |
12251 #endif | |
12252 #ifdef __cplusplus | |
12253 } | |
12254 #endif | |
12255 | |
12256 int | |
12257 main () | |
12258 { | |
12259 return f != shl_load; | |
12260 ; | |
12261 return 0; | |
12262 } | |
12263 _ACEOF | |
12264 rm -f conftest.$ac_objext conftest$ac_exeext | |
12265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12266 (eval $ac_link) 2>conftest.er1 | |
12267 ac_status=$? | |
12268 grep -v '^ *+' conftest.er1 >conftest.err | |
12269 rm -f conftest.er1 | |
12270 cat conftest.err >&5 | |
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12272 (exit $ac_status); } && | |
12273 { ac_try='test -z "$ac_cxx_werror_flag" | |
12274 || test ! -s conftest.err' | |
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12276 (eval $ac_try) 2>&5 | |
12277 ac_status=$? | |
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12279 (exit $ac_status); }; } && | |
12280 { ac_try='test -s conftest$ac_exeext' | |
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12282 (eval $ac_try) 2>&5 | |
12283 ac_status=$? | |
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12285 (exit $ac_status); }; }; then | |
12286 ac_cv_func_shl_load=yes | |
12287 else | |
12288 echo "$as_me: failed program was:" >&5 | |
12289 sed 's/^/| /' conftest.$ac_ext >&5 | |
12290 | |
12291 ac_cv_func_shl_load=no | |
12292 fi | |
12293 rm -f conftest.err conftest.$ac_objext \ | |
12294 conftest$ac_exeext conftest.$ac_ext | |
12295 fi | |
12296 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
12297 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
12298 if test $ac_cv_func_shl_load = yes; then | |
12299 lt_cv_dlopen="shl_load" | |
12300 else | |
12301 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
12302 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
12303 if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
12304 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12305 else | |
12306 ac_check_lib_save_LIBS=$LIBS | |
12307 LIBS="-ldld $LIBS" | |
12308 cat >conftest.$ac_ext <<_ACEOF | |
12309 /* confdefs.h. */ | |
12310 _ACEOF | |
12311 cat confdefs.h >>conftest.$ac_ext | |
12312 cat >>conftest.$ac_ext <<_ACEOF | |
12313 /* end confdefs.h. */ | |
12314 | |
12315 /* Override any gcc2 internal prototype to avoid an error. */ | |
12316 #ifdef __cplusplus | |
12317 extern "C" | |
12318 #endif | |
12319 /* We use char because int might match the return type of a gcc2 | |
12320 builtin and then its argument prototype would still apply. */ | |
12321 char shl_load (); | |
12322 int | |
12323 main () | |
12324 { | |
12325 shl_load (); | |
12326 ; | |
12327 return 0; | |
12328 } | |
12329 _ACEOF | |
12330 rm -f conftest.$ac_objext conftest$ac_exeext | |
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12332 (eval $ac_link) 2>conftest.er1 | |
12333 ac_status=$? | |
12334 grep -v '^ *+' conftest.er1 >conftest.err | |
12335 rm -f conftest.er1 | |
12336 cat conftest.err >&5 | |
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12338 (exit $ac_status); } && | |
12339 { ac_try='test -z "$ac_cxx_werror_flag" | |
12340 || test ! -s conftest.err' | |
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12342 (eval $ac_try) 2>&5 | |
12343 ac_status=$? | |
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12345 (exit $ac_status); }; } && | |
12346 { ac_try='test -s conftest$ac_exeext' | |
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12348 (eval $ac_try) 2>&5 | |
12349 ac_status=$? | |
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12351 (exit $ac_status); }; }; then | |
12352 ac_cv_lib_dld_shl_load=yes | |
12353 else | |
12354 echo "$as_me: failed program was:" >&5 | |
12355 sed 's/^/| /' conftest.$ac_ext >&5 | |
12356 | |
12357 ac_cv_lib_dld_shl_load=no | |
12358 fi | |
12359 rm -f conftest.err conftest.$ac_objext \ | |
12360 conftest$ac_exeext conftest.$ac_ext | |
12361 LIBS=$ac_check_lib_save_LIBS | |
12362 fi | |
12363 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
12364 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
12365 if test $ac_cv_lib_dld_shl_load = yes; then | |
12366 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
12367 else | |
12368 echo "$as_me:$LINENO: checking for dlopen" >&5 | |
12369 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
12370 if test "${ac_cv_func_dlopen+set}" = set; then | |
12371 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12372 else | |
12373 cat >conftest.$ac_ext <<_ACEOF | |
12374 /* confdefs.h. */ | |
12375 _ACEOF | |
12376 cat confdefs.h >>conftest.$ac_ext | |
12377 cat >>conftest.$ac_ext <<_ACEOF | |
12378 /* end confdefs.h. */ | |
12379 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
12380 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12381 #define dlopen innocuous_dlopen | |
12382 | |
12383 /* System header to define __stub macros and hopefully few prototypes, | |
12384 which can conflict with char dlopen (); below. | |
12385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12386 <limits.h> exists even on freestanding compilers. */ | |
12387 | |
12388 #ifdef __STDC__ | |
12389 # include <limits.h> | |
12390 #else | |
12391 # include <assert.h> | |
12392 #endif | |
12393 | |
12394 #undef dlopen | |
12395 | |
12396 /* Override any gcc2 internal prototype to avoid an error. */ | |
12397 #ifdef __cplusplus | |
12398 extern "C" | |
12399 { | |
12400 #endif | |
12401 /* We use char because int might match the return type of a gcc2 | |
12402 builtin and then its argument prototype would still apply. */ | |
12403 char dlopen (); | |
12404 /* The GNU C library defines this for functions which it implements | |
12405 to always fail with ENOSYS. Some functions are actually named | |
12406 something starting with __ and the normal name is an alias. */ | |
12407 #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
12408 choke me | |
12409 #else | |
12410 char (*f) () = dlopen; | |
12411 #endif | |
12412 #ifdef __cplusplus | |
12413 } | |
12414 #endif | |
12415 | |
12416 int | |
12417 main () | |
12418 { | |
12419 return f != dlopen; | |
12420 ; | |
12421 return 0; | |
12422 } | |
12423 _ACEOF | |
12424 rm -f conftest.$ac_objext conftest$ac_exeext | |
12425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12426 (eval $ac_link) 2>conftest.er1 | |
12427 ac_status=$? | |
12428 grep -v '^ *+' conftest.er1 >conftest.err | |
12429 rm -f conftest.er1 | |
12430 cat conftest.err >&5 | |
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12432 (exit $ac_status); } && | |
12433 { ac_try='test -z "$ac_cxx_werror_flag" | |
12434 || test ! -s conftest.err' | |
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12436 (eval $ac_try) 2>&5 | |
12437 ac_status=$? | |
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12439 (exit $ac_status); }; } && | |
12440 { ac_try='test -s conftest$ac_exeext' | |
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12442 (eval $ac_try) 2>&5 | |
12443 ac_status=$? | |
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12445 (exit $ac_status); }; }; then | |
12446 ac_cv_func_dlopen=yes | |
12447 else | |
12448 echo "$as_me: failed program was:" >&5 | |
12449 sed 's/^/| /' conftest.$ac_ext >&5 | |
12450 | |
12451 ac_cv_func_dlopen=no | |
12452 fi | |
12453 rm -f conftest.err conftest.$ac_objext \ | |
12454 conftest$ac_exeext conftest.$ac_ext | |
12455 fi | |
12456 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
12457 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
12458 if test $ac_cv_func_dlopen = yes; then | |
12459 lt_cv_dlopen="dlopen" | |
12460 else | |
12461 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
12462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
12463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
12464 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12465 else | |
12466 ac_check_lib_save_LIBS=$LIBS | |
12467 LIBS="-ldl $LIBS" | |
12468 cat >conftest.$ac_ext <<_ACEOF | |
12469 /* confdefs.h. */ | |
12470 _ACEOF | |
12471 cat confdefs.h >>conftest.$ac_ext | |
12472 cat >>conftest.$ac_ext <<_ACEOF | |
12473 /* end confdefs.h. */ | |
12474 | |
12475 /* Override any gcc2 internal prototype to avoid an error. */ | |
12476 #ifdef __cplusplus | |
12477 extern "C" | |
12478 #endif | |
12479 /* We use char because int might match the return type of a gcc2 | |
12480 builtin and then its argument prototype would still apply. */ | |
12481 char dlopen (); | |
12482 int | |
12483 main () | |
12484 { | |
12485 dlopen (); | |
12486 ; | |
12487 return 0; | |
12488 } | |
12489 _ACEOF | |
12490 rm -f conftest.$ac_objext conftest$ac_exeext | |
12491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12492 (eval $ac_link) 2>conftest.er1 | |
12493 ac_status=$? | |
12494 grep -v '^ *+' conftest.er1 >conftest.err | |
12495 rm -f conftest.er1 | |
12496 cat conftest.err >&5 | |
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12498 (exit $ac_status); } && | |
12499 { ac_try='test -z "$ac_cxx_werror_flag" | |
12500 || test ! -s conftest.err' | |
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12502 (eval $ac_try) 2>&5 | |
12503 ac_status=$? | |
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12505 (exit $ac_status); }; } && | |
12506 { ac_try='test -s conftest$ac_exeext' | |
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12508 (eval $ac_try) 2>&5 | |
12509 ac_status=$? | |
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12511 (exit $ac_status); }; }; then | |
12512 ac_cv_lib_dl_dlopen=yes | |
12513 else | |
12514 echo "$as_me: failed program was:" >&5 | |
12515 sed 's/^/| /' conftest.$ac_ext >&5 | |
12516 | |
12517 ac_cv_lib_dl_dlopen=no | |
12518 fi | |
12519 rm -f conftest.err conftest.$ac_objext \ | |
12520 conftest$ac_exeext conftest.$ac_ext | |
12521 LIBS=$ac_check_lib_save_LIBS | |
12522 fi | |
12523 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
12524 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
12525 if test $ac_cv_lib_dl_dlopen = yes; then | |
12526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12527 else | |
12528 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
12529 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
12530 if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
12531 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12532 else | |
12533 ac_check_lib_save_LIBS=$LIBS | |
12534 LIBS="-lsvld $LIBS" | |
12535 cat >conftest.$ac_ext <<_ACEOF | |
12536 /* confdefs.h. */ | |
12537 _ACEOF | |
12538 cat confdefs.h >>conftest.$ac_ext | |
12539 cat >>conftest.$ac_ext <<_ACEOF | |
12540 /* end confdefs.h. */ | |
12541 | |
12542 /* Override any gcc2 internal prototype to avoid an error. */ | |
12543 #ifdef __cplusplus | |
12544 extern "C" | |
12545 #endif | |
12546 /* We use char because int might match the return type of a gcc2 | |
12547 builtin and then its argument prototype would still apply. */ | |
12548 char dlopen (); | |
12549 int | |
12550 main () | |
12551 { | |
12552 dlopen (); | |
12553 ; | |
12554 return 0; | |
12555 } | |
12556 _ACEOF | |
12557 rm -f conftest.$ac_objext conftest$ac_exeext | |
12558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12559 (eval $ac_link) 2>conftest.er1 | |
12560 ac_status=$? | |
12561 grep -v '^ *+' conftest.er1 >conftest.err | |
12562 rm -f conftest.er1 | |
12563 cat conftest.err >&5 | |
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12565 (exit $ac_status); } && | |
12566 { ac_try='test -z "$ac_cxx_werror_flag" | |
12567 || test ! -s conftest.err' | |
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12569 (eval $ac_try) 2>&5 | |
12570 ac_status=$? | |
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12572 (exit $ac_status); }; } && | |
12573 { ac_try='test -s conftest$ac_exeext' | |
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12575 (eval $ac_try) 2>&5 | |
12576 ac_status=$? | |
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12578 (exit $ac_status); }; }; then | |
12579 ac_cv_lib_svld_dlopen=yes | |
12580 else | |
12581 echo "$as_me: failed program was:" >&5 | |
12582 sed 's/^/| /' conftest.$ac_ext >&5 | |
12583 | |
12584 ac_cv_lib_svld_dlopen=no | |
12585 fi | |
12586 rm -f conftest.err conftest.$ac_objext \ | |
12587 conftest$ac_exeext conftest.$ac_ext | |
12588 LIBS=$ac_check_lib_save_LIBS | |
12589 fi | |
12590 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
12591 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
12592 if test $ac_cv_lib_svld_dlopen = yes; then | |
12593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12594 else | |
12595 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
12596 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
12597 if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
12598 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12599 else | |
12600 ac_check_lib_save_LIBS=$LIBS | |
12601 LIBS="-ldld $LIBS" | |
12602 cat >conftest.$ac_ext <<_ACEOF | |
12603 /* confdefs.h. */ | |
12604 _ACEOF | |
12605 cat confdefs.h >>conftest.$ac_ext | |
12606 cat >>conftest.$ac_ext <<_ACEOF | |
12607 /* end confdefs.h. */ | |
12608 | |
12609 /* Override any gcc2 internal prototype to avoid an error. */ | |
12610 #ifdef __cplusplus | |
12611 extern "C" | |
12612 #endif | |
12613 /* We use char because int might match the return type of a gcc2 | |
12614 builtin and then its argument prototype would still apply. */ | |
12615 char dld_link (); | |
12616 int | |
12617 main () | |
12618 { | |
12619 dld_link (); | |
12620 ; | |
12621 return 0; | |
12622 } | |
12623 _ACEOF | |
12624 rm -f conftest.$ac_objext conftest$ac_exeext | |
12625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12626 (eval $ac_link) 2>conftest.er1 | |
12627 ac_status=$? | |
12628 grep -v '^ *+' conftest.er1 >conftest.err | |
12629 rm -f conftest.er1 | |
12630 cat conftest.err >&5 | |
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12632 (exit $ac_status); } && | |
12633 { ac_try='test -z "$ac_cxx_werror_flag" | |
12634 || test ! -s conftest.err' | |
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12636 (eval $ac_try) 2>&5 | |
12637 ac_status=$? | |
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12639 (exit $ac_status); }; } && | |
12640 { ac_try='test -s conftest$ac_exeext' | |
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12642 (eval $ac_try) 2>&5 | |
12643 ac_status=$? | |
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12645 (exit $ac_status); }; }; then | |
12646 ac_cv_lib_dld_dld_link=yes | |
12647 else | |
12648 echo "$as_me: failed program was:" >&5 | |
12649 sed 's/^/| /' conftest.$ac_ext >&5 | |
12650 | |
12651 ac_cv_lib_dld_dld_link=no | |
12652 fi | |
12653 rm -f conftest.err conftest.$ac_objext \ | |
12654 conftest$ac_exeext conftest.$ac_ext | |
12655 LIBS=$ac_check_lib_save_LIBS | |
12656 fi | |
12657 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
12658 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
12659 if test $ac_cv_lib_dld_dld_link = yes; then | |
12660 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
12661 fi | |
12662 | |
12663 | |
12664 fi | |
12665 | |
12666 | |
12667 fi | |
12668 | |
12669 | |
12670 fi | |
12671 | |
12672 | |
12673 fi | |
12674 | |
12675 | |
12676 fi | |
12677 | |
12678 ;; | |
12679 esac | |
12680 | |
12681 if test "x$lt_cv_dlopen" != xno; then | |
12682 enable_dlopen=yes | |
12683 else | |
12684 enable_dlopen=no | |
12685 fi | |
12686 | |
12687 case $lt_cv_dlopen in | |
12688 dlopen) | |
12689 save_CPPFLAGS="$CPPFLAGS" | |
12690 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12691 | |
12692 save_LDFLAGS="$LDFLAGS" | |
12693 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12694 | |
12695 save_LIBS="$LIBS" | |
12696 LIBS="$lt_cv_dlopen_libs $LIBS" | |
12697 | |
12698 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
12699 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
12700 if test "${lt_cv_dlopen_self+set}" = set; then | |
12701 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12702 else | |
12703 if test "$cross_compiling" = yes; then : | |
12704 lt_cv_dlopen_self=cross | |
12705 else | |
12706 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12707 lt_status=$lt_dlunknown | |
12708 cat > conftest.$ac_ext <<EOF | |
12709 #line 12709 "configure" | |
12710 #include "confdefs.h" | |
12711 | |
12712 #if HAVE_DLFCN_H | |
12713 #include <dlfcn.h> | |
12714 #endif | |
12715 | |
12716 #include <stdio.h> | |
12717 | |
12718 #ifdef RTLD_GLOBAL | |
12719 # define LT_DLGLOBAL RTLD_GLOBAL | |
12720 #else | |
12721 # ifdef DL_GLOBAL | |
12722 # define LT_DLGLOBAL DL_GLOBAL | |
12723 # else | |
12724 # define LT_DLGLOBAL 0 | |
12725 # endif | |
12726 #endif | |
12727 | |
12728 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12729 find out it does not work in some platform. */ | |
12730 #ifndef LT_DLLAZY_OR_NOW | |
12731 # ifdef RTLD_LAZY | |
12732 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12733 # else | |
12734 # ifdef DL_LAZY | |
12735 # define LT_DLLAZY_OR_NOW DL_LAZY | |
12736 # else | |
12737 # ifdef RTLD_NOW | |
12738 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12739 # else | |
12740 # ifdef DL_NOW | |
12741 # define LT_DLLAZY_OR_NOW DL_NOW | |
12742 # else | |
12743 # define LT_DLLAZY_OR_NOW 0 | |
12744 # endif | |
12745 # endif | |
12746 # endif | |
12747 # endif | |
12748 #endif | |
12749 | |
12750 #ifdef __cplusplus | |
12751 extern "C" void exit (int); | |
12752 #endif | |
12753 | |
12754 void fnord() { int i=42;} | |
12755 int main () | |
12756 { | |
12757 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12758 int status = $lt_dlunknown; | |
12759 | |
12760 if (self) | |
12761 { | |
12762 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12763 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12764 /* dlclose (self); */ | |
12765 } | |
12766 | |
12767 exit (status); | |
12768 } | |
12769 EOF | |
12770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12771 (eval $ac_link) 2>&5 | |
12772 ac_status=$? | |
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12774 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12775 (./conftest; exit; ) 2>/dev/null | |
12776 lt_status=$? | |
12777 case x$lt_status in | |
12778 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12779 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12780 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
12781 esac | |
12782 else : | |
12783 # compilation failed | |
12784 lt_cv_dlopen_self=no | |
12785 fi | |
12786 fi | |
12787 rm -fr conftest* | |
12788 | |
12789 | |
12790 fi | |
12791 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
12792 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
12793 | |
12794 if test "x$lt_cv_dlopen_self" = xyes; then | |
12795 LDFLAGS="$LDFLAGS $link_static_flag" | |
12796 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
12797 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
12798 if test "${lt_cv_dlopen_self_static+set}" = set; then | |
12799 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12800 else | |
12801 if test "$cross_compiling" = yes; then : | |
12802 lt_cv_dlopen_self_static=cross | |
12803 else | |
12804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12805 lt_status=$lt_dlunknown | |
12806 cat > conftest.$ac_ext <<EOF | |
12807 #line 12807 "configure" | |
12808 #include "confdefs.h" | |
12809 | |
12810 #if HAVE_DLFCN_H | |
12811 #include <dlfcn.h> | |
12812 #endif | |
12813 | |
12814 #include <stdio.h> | |
12815 | |
12816 #ifdef RTLD_GLOBAL | |
12817 # define LT_DLGLOBAL RTLD_GLOBAL | |
12818 #else | |
12819 # ifdef DL_GLOBAL | |
12820 # define LT_DLGLOBAL DL_GLOBAL | |
12821 # else | |
12822 # define LT_DLGLOBAL 0 | |
12823 # endif | |
12824 #endif | |
12825 | |
12826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12827 find out it does not work in some platform. */ | |
12828 #ifndef LT_DLLAZY_OR_NOW | |
12829 # ifdef RTLD_LAZY | |
12830 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12831 # else | |
12832 # ifdef DL_LAZY | |
12833 # define LT_DLLAZY_OR_NOW DL_LAZY | |
12834 # else | |
12835 # ifdef RTLD_NOW | |
12836 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12837 # else | |
12838 # ifdef DL_NOW | |
12839 # define LT_DLLAZY_OR_NOW DL_NOW | |
12840 # else | |
12841 # define LT_DLLAZY_OR_NOW 0 | |
12842 # endif | |
12843 # endif | |
12844 # endif | |
12845 # endif | |
12846 #endif | |
12847 | |
12848 #ifdef __cplusplus | |
12849 extern "C" void exit (int); | |
12850 #endif | |
12851 | |
12852 void fnord() { int i=42;} | |
12853 int main () | |
12854 { | |
12855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12856 int status = $lt_dlunknown; | |
12857 | |
12858 if (self) | |
12859 { | |
12860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12861 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12862 /* dlclose (self); */ | |
12863 } | |
12864 | |
12865 exit (status); | |
12866 } | |
12867 EOF | |
12868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12869 (eval $ac_link) 2>&5 | |
12870 ac_status=$? | |
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12872 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12873 (./conftest; exit; ) 2>/dev/null | |
12874 lt_status=$? | |
12875 case x$lt_status in | |
12876 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12877 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12878 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
12879 esac | |
12880 else : | |
12881 # compilation failed | |
12882 lt_cv_dlopen_self_static=no | |
12883 fi | |
12884 fi | |
12885 rm -fr conftest* | |
12886 | |
12887 | |
12888 fi | |
12889 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
12890 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
12891 fi | |
12892 | |
12893 CPPFLAGS="$save_CPPFLAGS" | |
12894 LDFLAGS="$save_LDFLAGS" | |
12895 LIBS="$save_LIBS" | |
12896 ;; | |
12897 esac | |
12898 | |
12899 case $lt_cv_dlopen_self in | |
12900 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12901 *) enable_dlopen_self=unknown ;; | |
12902 esac | |
12903 | |
12904 case $lt_cv_dlopen_self_static in | |
12905 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12906 *) enable_dlopen_self_static=unknown ;; | |
12907 esac | |
12908 fi | |
12909 | |
12910 | |
12911 # The else clause should only fire when bootstrapping the | |
12912 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
12913 # with your package, and you will get complaints that there are | |
12914 # no rules to generate ltmain.sh. | |
12915 if test -f "$ltmain"; then | |
12916 # See if we are running on zsh, and set the options which allow our commands through | |
12917 # without removal of \ escapes. | |
12918 if test -n "${ZSH_VERSION+set}" ; then | |
12919 setopt NO_GLOB_SUBST | |
12920 fi | |
12921 # Now quote all the things that may contain metacharacters while being | |
12922 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
12923 # variables and quote the copies for generation of the libtool script. | |
12924 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
12925 SED SHELL STRIP \ | |
12926 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
12927 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
12928 deplibs_check_method reload_flag reload_cmds need_locks \ | |
12929 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
12930 lt_cv_sys_global_symbol_to_c_name_address \ | |
12931 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
12932 old_postinstall_cmds old_postuninstall_cmds \ | |
12933 compiler_CXX \ | |
12934 CC_CXX \ | |
12935 LD_CXX \ | |
12936 lt_prog_compiler_wl_CXX \ | |
12937 lt_prog_compiler_pic_CXX \ | |
12938 lt_prog_compiler_static_CXX \ | |
12939 lt_prog_compiler_no_builtin_flag_CXX \ | |
12940 export_dynamic_flag_spec_CXX \ | |
12941 thread_safe_flag_spec_CXX \ | |
12942 whole_archive_flag_spec_CXX \ | |
12943 enable_shared_with_static_runtimes_CXX \ | |
12944 old_archive_cmds_CXX \ | |
12945 old_archive_from_new_cmds_CXX \ | |
12946 predep_objects_CXX \ | |
12947 postdep_objects_CXX \ | |
12948 predeps_CXX \ | |
12949 postdeps_CXX \ | |
12950 compiler_lib_search_path_CXX \ | |
12951 archive_cmds_CXX \ | |
12952 archive_expsym_cmds_CXX \ | |
12953 postinstall_cmds_CXX \ | |
12954 postuninstall_cmds_CXX \ | |
12955 old_archive_from_expsyms_cmds_CXX \ | |
12956 allow_undefined_flag_CXX \ | |
12957 no_undefined_flag_CXX \ | |
12958 export_symbols_cmds_CXX \ | |
12959 hardcode_libdir_flag_spec_CXX \ | |
12960 hardcode_libdir_flag_spec_ld_CXX \ | |
12961 hardcode_libdir_separator_CXX \ | |
12962 hardcode_automatic_CXX \ | |
12963 module_cmds_CXX \ | |
12964 module_expsym_cmds_CXX \ | |
12965 lt_cv_prog_compiler_c_o_CXX \ | |
12966 exclude_expsyms_CXX \ | |
12967 include_expsyms_CXX; do | |
12968 | |
12969 case $var in | |
12970 old_archive_cmds_CXX | \ | |
12971 old_archive_from_new_cmds_CXX | \ | |
12972 archive_cmds_CXX | \ | |
12973 archive_expsym_cmds_CXX | \ | |
12974 module_cmds_CXX | \ | |
12975 module_expsym_cmds_CXX | \ | |
12976 old_archive_from_expsyms_cmds_CXX | \ | |
12977 export_symbols_cmds_CXX | \ | |
12978 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
12979 postinstall_cmds | postuninstall_cmds | \ | |
12980 old_postinstall_cmds | old_postuninstall_cmds | \ | |
12981 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
12982 # Double-quote double-evaled strings. | |
12983 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
12984 ;; | |
12985 *) | |
12986 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
12987 ;; | |
12988 esac | |
12989 done | |
12990 | |
12991 case $lt_echo in | |
12992 *'\$0 --fallback-echo"') | |
12993 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
12994 ;; | |
12995 esac | |
12996 | |
12997 cfgfile="$ofile" | |
12998 | |
12999 cat <<__EOF__ >> "$cfgfile" | |
13000 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
13001 | |
13002 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13003 | |
13004 # Shell to use when invoking shell scripts. | |
13005 SHELL=$lt_SHELL | |
13006 | |
13007 # Whether or not to build shared libraries. | |
13008 build_libtool_libs=$enable_shared | |
13009 | |
13010 # Whether or not to build static libraries. | |
13011 build_old_libs=$enable_static | |
13012 | |
13013 # Whether or not to add -lc for building shared libraries. | |
13014 build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
13015 | |
13016 # Whether or not to disallow shared libs when runtime libs are static | |
13017 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
13018 | |
13019 # Whether or not to optimize for fast installation. | |
13020 fast_install=$enable_fast_install | |
13021 | |
13022 # The host system. | |
13023 host_alias=$host_alias | |
13024 host=$host | |
13025 host_os=$host_os | |
13026 | |
13027 # The build system. | |
13028 build_alias=$build_alias | |
13029 build=$build | |
13030 build_os=$build_os | |
13031 | |
13032 # An echo program that does not interpret backslashes. | |
13033 echo=$lt_echo | |
13034 | |
13035 # The archiver. | |
13036 AR=$lt_AR | |
13037 AR_FLAGS=$lt_AR_FLAGS | |
13038 | |
13039 # A C compiler. | |
13040 LTCC=$lt_LTCC | |
13041 | |
13042 # A language-specific compiler. | |
13043 CC=$lt_compiler_CXX | |
13044 | |
13045 # Is the compiler the GNU C compiler? | |
13046 with_gcc=$GCC_CXX | |
13047 | |
13048 # An ERE matcher. | |
13049 EGREP=$lt_EGREP | |
13050 | |
13051 # The linker used to build libraries. | |
13052 LD=$lt_LD_CXX | |
13053 | |
13054 # Whether we need hard or soft links. | |
13055 LN_S=$lt_LN_S | |
13056 | |
13057 # A BSD-compatible nm program. | |
13058 NM=$lt_NM | |
13059 | |
13060 # A symbol stripping program | |
13061 STRIP=$lt_STRIP | |
13062 | |
13063 # Used to examine libraries when file_magic_cmd begins "file" | |
13064 MAGIC_CMD=$MAGIC_CMD | |
13065 | |
13066 # Used on cygwin: DLL creation program. | |
13067 DLLTOOL="$DLLTOOL" | |
13068 | |
13069 # Used on cygwin: object dumper. | |
13070 OBJDUMP="$OBJDUMP" | |
13071 | |
13072 # Used on cygwin: assembler. | |
13073 AS="$AS" | |
13074 | |
13075 # The name of the directory that contains temporary libtool files. | |
13076 objdir=$objdir | |
13077 | |
13078 # How to create reloadable object files. | |
13079 reload_flag=$lt_reload_flag | |
13080 reload_cmds=$lt_reload_cmds | |
13081 | |
13082 # How to pass a linker flag through the compiler. | |
13083 wl=$lt_lt_prog_compiler_wl_CXX | |
13084 | |
13085 # Object file suffix (normally "o"). | |
13086 objext="$ac_objext" | |
13087 | |
13088 # Old archive suffix (normally "a"). | |
13089 libext="$libext" | |
13090 | |
13091 # Shared library suffix (normally ".so"). | |
13092 shrext_cmds='$shrext_cmds' | |
13093 | |
13094 # Executable file suffix (normally ""). | |
13095 exeext="$exeext" | |
13096 | |
13097 # Additional compiler flags for building library objects. | |
13098 pic_flag=$lt_lt_prog_compiler_pic_CXX | |
13099 pic_mode=$pic_mode | |
13100 | |
13101 # What is the maximum length of a command? | |
13102 max_cmd_len=$lt_cv_sys_max_cmd_len | |
13103 | |
13104 # Does compiler simultaneously support -c and -o options? | |
13105 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
13106 | |
13107 # Must we lock files when doing compilation? | |
13108 need_locks=$lt_need_locks | |
13109 | |
13110 # Do we need the lib prefix for modules? | |
13111 need_lib_prefix=$need_lib_prefix | |
13112 | |
13113 # Do we need a version for libraries? | |
13114 need_version=$need_version | |
13115 | |
13116 # Whether dlopen is supported. | |
13117 dlopen_support=$enable_dlopen | |
13118 | |
13119 # Whether dlopen of programs is supported. | |
13120 dlopen_self=$enable_dlopen_self | |
13121 | |
13122 # Whether dlopen of statically linked programs is supported. | |
13123 dlopen_self_static=$enable_dlopen_self_static | |
13124 | |
13125 # Compiler flag to prevent dynamic linking. | |
13126 link_static_flag=$lt_lt_prog_compiler_static_CXX | |
13127 | |
13128 # Compiler flag to turn off builtin functions. | |
13129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
13130 | |
13131 # Compiler flag to allow reflexive dlopens. | |
13132 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
13133 | |
13134 # Compiler flag to generate shared objects directly from archives. | |
13135 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
13136 | |
13137 # Compiler flag to generate thread-safe objects. | |
13138 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
13139 | |
13140 # Library versioning type. | |
13141 version_type=$version_type | |
13142 | |
13143 # Format of library name prefix. | |
13144 libname_spec=$lt_libname_spec | |
13145 | |
13146 # List of archive names. First name is the real one, the rest are links. | |
13147 # The last name is the one that the linker finds with -lNAME. | |
13148 library_names_spec=$lt_library_names_spec | |
13149 | |
13150 # The coded name of the library, if different from the real name. | |
13151 soname_spec=$lt_soname_spec | |
13152 | |
13153 # Commands used to build and install an old-style archive. | |
13154 RANLIB=$lt_RANLIB | |
13155 old_archive_cmds=$lt_old_archive_cmds_CXX | |
13156 old_postinstall_cmds=$lt_old_postinstall_cmds | |
13157 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13158 | |
13159 # Create an old-style archive from a shared archive. | |
13160 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
13161 | |
13162 # Create a temporary old-style archive to link instead of a shared archive. | |
13163 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
13164 | |
13165 # Commands used to build and install a shared archive. | |
13166 archive_cmds=$lt_archive_cmds_CXX | |
13167 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
13168 postinstall_cmds=$lt_postinstall_cmds | |
13169 postuninstall_cmds=$lt_postuninstall_cmds | |
13170 | |
13171 # Commands used to build a loadable module (assumed same as above if empty) | |
13172 module_cmds=$lt_module_cmds_CXX | |
13173 module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
13174 | |
13175 # Commands to strip libraries. | |
13176 old_striplib=$lt_old_striplib | |
13177 striplib=$lt_striplib | |
13178 | |
13179 # Dependencies to place before the objects being linked to create a | |
13180 # shared library. | |
13181 predep_objects=$lt_predep_objects_CXX | |
13182 | |
13183 # Dependencies to place after the objects being linked to create a | |
13184 # shared library. | |
13185 postdep_objects=$lt_postdep_objects_CXX | |
13186 | |
13187 # Dependencies to place before the objects being linked to create a | |
13188 # shared library. | |
13189 predeps=$lt_predeps_CXX | |
13190 | |
13191 # Dependencies to place after the objects being linked to create a | |
13192 # shared library. | |
13193 postdeps=$lt_postdeps_CXX | |
13194 | |
13195 # The library search path used internally by the compiler when linking | |
13196 # a shared library. | |
13197 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
13198 | |
13199 # Method to check whether dependent libraries are shared objects. | |
13200 deplibs_check_method=$lt_deplibs_check_method | |
13201 | |
13202 # Command to use when deplibs_check_method == file_magic. | |
13203 file_magic_cmd=$lt_file_magic_cmd | |
13204 | |
13205 # Flag that allows shared libraries with undefined symbols to be built. | |
13206 allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
13207 | |
13208 # Flag that forces no undefined symbols. | |
13209 no_undefined_flag=$lt_no_undefined_flag_CXX | |
13210 | |
13211 # Commands used to finish a libtool library installation in a directory. | |
13212 finish_cmds=$lt_finish_cmds | |
13213 | |
13214 # Same as above, but a single script fragment to be evaled but not shown. | |
13215 finish_eval=$lt_finish_eval | |
13216 | |
13217 # Take the output of nm and produce a listing of raw symbols and C names. | |
13218 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13219 | |
13220 # Transform the output of nm in a proper C declaration | |
13221 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13222 | |
13223 # Transform the output of nm in a C name address pair | |
13224 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13225 | |
13226 # This is the shared library runtime path variable. | |
13227 runpath_var=$runpath_var | |
13228 | |
13229 # This is the shared library path variable. | |
13230 shlibpath_var=$shlibpath_var | |
13231 | |
13232 # Is shlibpath searched before the hard-coded library search path? | |
13233 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13234 | |
13235 # How to hardcode a shared library path into an executable. | |
13236 hardcode_action=$hardcode_action_CXX | |
13237 | |
13238 # Whether we should hardcode library paths into libraries. | |
13239 hardcode_into_libs=$hardcode_into_libs | |
13240 | |
13241 # Flag to hardcode \$libdir into a binary during linking. | |
13242 # This must work even if \$libdir does not exist. | |
13243 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
13244 | |
13245 # If ld is used when linking, flag to hardcode \$libdir into | |
13246 # a binary during linking. This must work even if \$libdir does | |
13247 # not exist. | |
13248 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
13249 | |
13250 # Whether we need a single -rpath flag with a separated argument. | |
13251 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
13252 | |
13253 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
13254 # resulting binary. | |
13255 hardcode_direct=$hardcode_direct_CXX | |
13256 | |
13257 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
13258 # resulting binary. | |
13259 hardcode_minus_L=$hardcode_minus_L_CXX | |
13260 | |
13261 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
13262 # the resulting binary. | |
13263 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
13264 | |
13265 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
13266 # and all subsequent libraries and executables linked against it. | |
13267 hardcode_automatic=$hardcode_automatic_CXX | |
13268 | |
13269 # Variables whose values should be saved in libtool wrapper scripts and | |
13270 # restored at relink time. | |
13271 variables_saved_for_relink="$variables_saved_for_relink" | |
13272 | |
13273 # Whether libtool must link a program against all its dependency libraries. | |
13274 link_all_deplibs=$link_all_deplibs_CXX | |
13275 | |
13276 # Compile-time system search path for libraries | |
13277 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13278 | |
13279 # Run-time system search path for libraries | |
13280 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13281 | |
13282 # Fix the shell variable \$srcfile for the compiler. | |
13283 fix_srcfile_path="$fix_srcfile_path_CXX" | |
13284 | |
13285 # Set to yes if exported symbols are required. | |
13286 always_export_symbols=$always_export_symbols_CXX | |
13287 | |
13288 # The commands to list exported symbols. | |
13289 export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
13290 | |
13291 # The commands to extract the exported symbol list from a shared archive. | |
13292 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13293 | |
13294 # Symbols that should not be listed in the preloaded symbols. | |
13295 exclude_expsyms=$lt_exclude_expsyms_CXX | |
13296 | |
13297 # Symbols that must always be exported. | |
13298 include_expsyms=$lt_include_expsyms_CXX | |
13299 | |
13300 # ### END LIBTOOL TAG CONFIG: $tagname | |
13301 | |
13302 __EOF__ | |
13303 | |
13304 | |
13305 else | |
13306 # If there is no Makefile yet, we rely on a make rule to execute | |
13307 # `config.status --recheck' to rerun these tests and create the | |
13308 # libtool script then. | |
13309 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
13310 if test -f "$ltmain_in"; then | |
13311 test -f Makefile && make "$ltmain" | |
13312 fi | |
13313 fi | |
13314 | |
13315 | |
13316 ac_ext=c | |
13317 ac_cpp='$CPP $CPPFLAGS' | |
13318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13320 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13321 | |
13322 CC=$lt_save_CC | |
13323 LDCXX=$LD | |
13324 LD=$lt_save_LD | |
13325 GCC=$lt_save_GCC | |
13326 with_gnu_ldcxx=$with_gnu_ld | |
13327 with_gnu_ld=$lt_save_with_gnu_ld | |
13328 lt_cv_path_LDCXX=$lt_cv_path_LD | |
13329 lt_cv_path_LD=$lt_save_path_LD | |
13330 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13331 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13332 | |
13333 else | |
13334 tagname="" | |
13335 fi | |
13336 ;; | |
13337 | |
13338 F77) | |
13339 if test -n "$F77" && test "X$F77" != "Xno"; then | |
13340 | |
13341 ac_ext=f | |
13342 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
13343 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13344 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
13345 | |
13346 | |
13347 archive_cmds_need_lc_F77=no | |
13348 allow_undefined_flag_F77= | |
13349 always_export_symbols_F77=no | |
13350 archive_expsym_cmds_F77= | |
13351 export_dynamic_flag_spec_F77= | |
13352 hardcode_direct_F77=no | |
13353 hardcode_libdir_flag_spec_F77= | |
13354 hardcode_libdir_flag_spec_ld_F77= | |
13355 hardcode_libdir_separator_F77= | |
13356 hardcode_minus_L_F77=no | |
13357 hardcode_automatic_F77=no | |
13358 module_cmds_F77= | |
13359 module_expsym_cmds_F77= | |
13360 link_all_deplibs_F77=unknown | |
13361 old_archive_cmds_F77=$old_archive_cmds | |
13362 no_undefined_flag_F77= | |
13363 whole_archive_flag_spec_F77= | |
13364 enable_shared_with_static_runtimes_F77=no | |
13365 | |
13366 # Source file extension for f77 test sources. | |
13367 ac_ext=f | |
13368 | |
13369 # Object file extension for compiled f77 test sources. | |
13370 objext=o | |
13371 objext_F77=$objext | |
13372 | |
13373 # Code to be used in simple compile tests | |
13374 lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
13375 | |
13376 # Code to be used in simple link tests | |
13377 lt_simple_link_test_code=" program t\n end\n" | |
13378 | |
13379 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13380 | |
13381 # If no C compiler was specified, use CC. | |
13382 LTCC=${LTCC-"$CC"} | |
13383 | |
13384 # Allow CC to be a program name with arguments. | |
13385 compiler=$CC | |
13386 | |
13387 | |
13388 # save warnings/boilerplate of simple test code | |
13389 ac_outfile=conftest.$ac_objext | |
13390 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | |
13392 _lt_compiler_boilerplate=`cat conftest.err` | |
13393 $rm conftest* | |
13394 | |
13395 ac_outfile=conftest.$ac_objext | |
13396 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
13397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | |
13398 _lt_linker_boilerplate=`cat conftest.err` | |
13399 $rm conftest* | |
13400 | |
13401 | |
13402 # Allow CC to be a program name with arguments. | |
13403 lt_save_CC="$CC" | |
13404 CC=${F77-"f77"} | |
13405 compiler=$CC | |
13406 compiler_F77=$CC | |
13407 for cc_temp in $compiler""; do | |
13408 case $cc_temp in | |
13409 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13410 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13411 \-*) ;; | |
13412 *) break;; | |
13413 esac | |
13414 done | |
13415 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
13416 | |
13417 | |
13418 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
13419 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
13420 echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
13421 echo "${ECHO_T}$can_build_shared" >&6 | |
13422 | |
13423 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
13424 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
13425 test "$can_build_shared" = "no" && enable_shared=no | |
13426 | |
13427 # On AIX, shared libraries and static libraries use the same namespace, and | |
13428 # are all built from PIC. | |
13429 case "$host_os" in | |
13430 aix3*) | |
13431 test "$enable_shared" = yes && enable_static=no | |
13432 if test -n "$RANLIB"; then | |
13433 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13434 postinstall_cmds='$RANLIB $lib' | |
13435 fi | |
13436 ;; | |
13437 aix4* | aix5*) | |
13438 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13439 test "$enable_shared" = yes && enable_static=no | |
13440 fi | |
13441 ;; | |
13442 esac | |
13443 echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
13444 echo "${ECHO_T}$enable_shared" >&6 | |
13445 | |
13446 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
13447 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
13448 # Make sure either enable_shared or enable_static is yes. | |
13449 test "$enable_shared" = yes || enable_static=yes | |
13450 echo "$as_me:$LINENO: result: $enable_static" >&5 | |
13451 echo "${ECHO_T}$enable_static" >&6 | |
13452 | |
13453 test "$ld_shlibs_F77" = no && can_build_shared=no | |
13454 | |
13455 GCC_F77="$G77" | |
13456 LD_F77="$LD" | |
13457 | |
13458 lt_prog_compiler_wl_F77= | |
13459 lt_prog_compiler_pic_F77= | |
13460 lt_prog_compiler_static_F77= | |
13461 | |
13462 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
13463 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
13464 | |
13465 if test "$GCC" = yes; then | |
13466 lt_prog_compiler_wl_F77='-Wl,' | |
13467 lt_prog_compiler_static_F77='-static' | |
13468 | |
13469 case $host_os in | |
13470 aix*) | |
13471 # All AIX code is PIC. | |
13472 if test "$host_cpu" = ia64; then | |
13473 # AIX 5 now supports IA64 processor | |
13474 lt_prog_compiler_static_F77='-Bstatic' | |
13475 fi | |
13476 ;; | |
13477 | |
13478 amigaos*) | |
13479 # FIXME: we need at least 68020 code to build shared libraries, but | |
13480 # adding the `-m68020' flag to GCC prevents building anything better, | |
13481 # like `-m68040'. | |
13482 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
13483 ;; | |
13484 | |
13485 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13486 # PIC is the default for these OSes. | |
13487 ;; | |
13488 | |
13489 mingw* | pw32* | os2*) | |
13490 # This hack is so that the source file can tell whether it is being | |
13491 # built for inclusion in a dll (and should export symbols for example). | |
13492 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13493 ;; | |
13494 | |
13495 darwin* | rhapsody*) | |
13496 # PIC is the default on this platform | |
13497 # Common symbols not allowed in MH_DYLIB files | |
13498 lt_prog_compiler_pic_F77='-fno-common' | |
13499 ;; | |
13500 | |
13501 msdosdjgpp*) | |
13502 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13503 # on systems that don't support them. | |
13504 lt_prog_compiler_can_build_shared_F77=no | |
13505 enable_shared=no | |
13506 ;; | |
13507 | |
13508 sysv4*MP*) | |
13509 if test -d /usr/nec; then | |
13510 lt_prog_compiler_pic_F77=-Kconform_pic | |
13511 fi | |
13512 ;; | |
13513 | |
13514 hpux*) | |
13515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13516 # not for PA HP-UX. | |
13517 case "$host_cpu" in | |
13518 hppa*64*|ia64*) | |
13519 # +Z the default | |
13520 ;; | |
13521 *) | |
13522 lt_prog_compiler_pic_F77='-fPIC' | |
13523 ;; | |
13524 esac | |
13525 ;; | |
13526 | |
13527 *) | |
13528 lt_prog_compiler_pic_F77='-fPIC' | |
13529 ;; | |
13530 esac | |
13531 else | |
13532 # PORTME Check for flag to pass linker flags through the system compiler. | |
13533 case $host_os in | |
13534 aix*) | |
13535 lt_prog_compiler_wl_F77='-Wl,' | |
13536 if test "$host_cpu" = ia64; then | |
13537 # AIX 5 now supports IA64 processor | |
13538 lt_prog_compiler_static_F77='-Bstatic' | |
13539 else | |
13540 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
13541 fi | |
13542 ;; | |
13543 darwin*) | |
13544 # PIC is the default on this platform | |
13545 # Common symbols not allowed in MH_DYLIB files | |
13546 case $cc_basename in | |
13547 xlc*) | |
13548 lt_prog_compiler_pic_F77='-qnocommon' | |
13549 lt_prog_compiler_wl_F77='-Wl,' | |
13550 ;; | |
13551 esac | |
13552 ;; | |
13553 | |
13554 mingw* | pw32* | os2*) | |
13555 # This hack is so that the source file can tell whether it is being | |
13556 # built for inclusion in a dll (and should export symbols for example). | |
13557 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13558 ;; | |
13559 | |
13560 hpux9* | hpux10* | hpux11*) | |
13561 lt_prog_compiler_wl_F77='-Wl,' | |
13562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13563 # not for PA HP-UX. | |
13564 case "$host_cpu" in | |
13565 hppa*64*|ia64*) | |
13566 # +Z the default | |
13567 ;; | |
13568 *) | |
13569 lt_prog_compiler_pic_F77='+Z' | |
13570 ;; | |
13571 esac | |
13572 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13573 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
13574 ;; | |
13575 | |
13576 irix5* | irix6* | nonstopux*) | |
13577 lt_prog_compiler_wl_F77='-Wl,' | |
13578 # PIC (with -KPIC) is the default. | |
13579 lt_prog_compiler_static_F77='-non_shared' | |
13580 ;; | |
13581 | |
13582 newsos6) | |
13583 lt_prog_compiler_pic_F77='-KPIC' | |
13584 lt_prog_compiler_static_F77='-Bstatic' | |
13585 ;; | |
13586 | |
13587 linux*) | |
13588 case $cc_basename in | |
13589 icc* | ecc*) | |
13590 lt_prog_compiler_wl_F77='-Wl,' | |
13591 lt_prog_compiler_pic_F77='-KPIC' | |
13592 lt_prog_compiler_static_F77='-static' | |
13593 ;; | |
13594 pgcc* | pgf77* | pgf90*) | |
13595 # Portland Group compilers (*not* the Pentium gcc compiler, | |
13596 # which looks to be a dead project) | |
13597 lt_prog_compiler_wl_F77='-Wl,' | |
13598 lt_prog_compiler_pic_F77='-fpic' | |
13599 lt_prog_compiler_static_F77='-static' | |
13600 ;; | |
13601 ccc*) | |
13602 lt_prog_compiler_wl_F77='-Wl,' | |
13603 # All Alpha code is PIC. | |
13604 lt_prog_compiler_static_F77='-non_shared' | |
13605 ;; | |
13606 esac | |
13607 ;; | |
13608 | |
13609 osf3* | osf4* | osf5*) | |
13610 lt_prog_compiler_wl_F77='-Wl,' | |
13611 # All OSF/1 code is PIC. | |
13612 lt_prog_compiler_static_F77='-non_shared' | |
13613 ;; | |
13614 | |
13615 sco3.2v5*) | |
13616 lt_prog_compiler_pic_F77='-Kpic' | |
13617 lt_prog_compiler_static_F77='-dn' | |
13618 ;; | |
13619 | |
13620 solaris*) | |
13621 lt_prog_compiler_pic_F77='-KPIC' | |
13622 lt_prog_compiler_static_F77='-Bstatic' | |
13623 case $cc_basename in | |
13624 f77* | f90* | f95*) | |
13625 lt_prog_compiler_wl_F77='-Qoption ld ';; | |
13626 *) | |
13627 lt_prog_compiler_wl_F77='-Wl,';; | |
13628 esac | |
13629 ;; | |
13630 | |
13631 sunos4*) | |
13632 lt_prog_compiler_wl_F77='-Qoption ld ' | |
13633 lt_prog_compiler_pic_F77='-PIC' | |
13634 lt_prog_compiler_static_F77='-Bstatic' | |
13635 ;; | |
13636 | |
13637 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
13638 lt_prog_compiler_wl_F77='-Wl,' | |
13639 lt_prog_compiler_pic_F77='-KPIC' | |
13640 lt_prog_compiler_static_F77='-Bstatic' | |
13641 ;; | |
13642 | |
13643 sysv4*MP*) | |
13644 if test -d /usr/nec ;then | |
13645 lt_prog_compiler_pic_F77='-Kconform_pic' | |
13646 lt_prog_compiler_static_F77='-Bstatic' | |
13647 fi | |
13648 ;; | |
13649 | |
13650 unicos*) | |
13651 lt_prog_compiler_wl_F77='-Wl,' | |
13652 lt_prog_compiler_can_build_shared_F77=no | |
13653 ;; | |
13654 | |
13655 uts4*) | |
13656 lt_prog_compiler_pic_F77='-pic' | |
13657 lt_prog_compiler_static_F77='-Bstatic' | |
13658 ;; | |
13659 | |
13660 *) | |
13661 lt_prog_compiler_can_build_shared_F77=no | |
13662 ;; | |
13663 esac | |
13664 fi | |
13665 | |
13666 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | |
13667 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | |
13668 | |
13669 # | |
13670 # Check to make sure the PIC flag actually works. | |
13671 # | |
13672 if test -n "$lt_prog_compiler_pic_F77"; then | |
13673 | |
13674 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
13675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | |
13676 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | |
13677 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13678 else | |
13679 lt_prog_compiler_pic_works_F77=no | |
13680 ac_outfile=conftest.$ac_objext | |
13681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13682 lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
13683 # Insert the option either (1) after the last *FLAGS variable, or | |
13684 # (2) before a word containing "conftest.", or (3) at the end. | |
13685 # Note that $ac_compile itself does not contain backslashes and begins | |
13686 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13687 # The option is referenced via a variable to avoid confusing sed. | |
13688 lt_compile=`echo "$ac_compile" | $SED \ | |
13689 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
13690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13691 -e 's:$: $lt_compiler_flag:'` | |
13692 (eval echo "\"\$as_me:13692: $lt_compile\"" >&5) | |
13693 (eval "$lt_compile" 2>conftest.err) | |
13694 ac_status=$? | |
13695 cat conftest.err >&5 | |
13696 echo "$as_me:13696: \$? = $ac_status" >&5 | |
13697 if (exit $ac_status) && test -s "$ac_outfile"; then | |
13698 # The compiler can only warn and ignore the option if not recognized | |
13699 # So say no if there are warnings other than the usual output. | |
13700 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | |
13701 $SED '/^$/d' conftest.err >conftest.er2 | |
13702 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | |
13703 lt_prog_compiler_pic_works_F77=yes | |
13704 fi | |
13705 fi | |
13706 $rm conftest* | |
13707 | |
13708 fi | |
13709 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | |
13710 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | |
13711 | |
13712 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | |
13713 case $lt_prog_compiler_pic_F77 in | |
13714 "" | " "*) ;; | |
13715 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
13716 esac | |
13717 else | |
13718 lt_prog_compiler_pic_F77= | |
13719 lt_prog_compiler_can_build_shared_F77=no | |
13720 fi | |
13721 | |
13722 fi | |
13723 case "$host_os" in | |
13724 # For platforms which do not support PIC, -DPIC is meaningless: | |
13725 *djgpp*) | |
13726 lt_prog_compiler_pic_F77= | |
13727 ;; | |
13728 *) | |
13729 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
13730 ;; | |
13731 esac | |
13732 | |
13733 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13734 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
13735 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | |
13736 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13737 else | |
13738 lt_cv_prog_compiler_c_o_F77=no | |
13739 $rm -r conftest 2>/dev/null | |
13740 mkdir conftest | |
13741 cd conftest | |
13742 mkdir out | |
13743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13744 | |
13745 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13746 # Insert the option either (1) after the last *FLAGS variable, or | |
13747 # (2) before a word containing "conftest.", or (3) at the end. | |
13748 # Note that $ac_compile itself does not contain backslashes and begins | |
13749 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13750 lt_compile=`echo "$ac_compile" | $SED \ | |
13751 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
13752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13753 -e 's:$: $lt_compiler_flag:'` | |
13754 (eval echo "\"\$as_me:13754: $lt_compile\"" >&5) | |
13755 (eval "$lt_compile" 2>out/conftest.err) | |
13756 ac_status=$? | |
13757 cat out/conftest.err >&5 | |
13758 echo "$as_me:13758: \$? = $ac_status" >&5 | |
13759 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
13760 then | |
13761 # The compiler can only warn and ignore the option if not recognized | |
13762 # So say no if there are warnings | |
13763 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp | |
13764 $SED '/^$/d' out/conftest.err >out/conftest.er2 | |
13765 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13766 lt_cv_prog_compiler_c_o_F77=yes | |
13767 fi | |
13768 fi | |
13769 chmod u+w . | |
13770 $rm conftest* | |
13771 # SGI C++ compiler will create directory out/ii_files/ for | |
13772 # template instantiation | |
13773 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
13774 $rm out/* && rmdir out | |
13775 cd .. | |
13776 rmdir conftest | |
13777 $rm conftest* | |
13778 | |
13779 fi | |
13780 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
13781 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | |
13782 | |
13783 | |
13784 hard_links="nottested" | |
13785 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
13786 # do not overwrite the value of need_locks provided by the user | |
13787 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
13788 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
13789 hard_links=yes | |
13790 $rm conftest* | |
13791 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13792 touch conftest.a | |
13793 ln conftest.a conftest.b 2>&5 || hard_links=no | |
13794 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13795 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
13796 echo "${ECHO_T}$hard_links" >&6 | |
13797 if test "$hard_links" = no; then | |
13798 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13799 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13800 need_locks=warn | |
13801 fi | |
13802 else | |
13803 need_locks=no | |
13804 fi | |
13805 | |
13806 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13807 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
13808 | |
13809 runpath_var= | |
13810 allow_undefined_flag_F77= | |
13811 enable_shared_with_static_runtimes_F77=no | |
13812 archive_cmds_F77= | |
13813 archive_expsym_cmds_F77= | |
13814 old_archive_From_new_cmds_F77= | |
13815 old_archive_from_expsyms_cmds_F77= | |
13816 export_dynamic_flag_spec_F77= | |
13817 whole_archive_flag_spec_F77= | |
13818 thread_safe_flag_spec_F77= | |
13819 hardcode_libdir_flag_spec_F77= | |
13820 hardcode_libdir_flag_spec_ld_F77= | |
13821 hardcode_libdir_separator_F77= | |
13822 hardcode_direct_F77=no | |
13823 hardcode_minus_L_F77=no | |
13824 hardcode_shlibpath_var_F77=unsupported | |
13825 link_all_deplibs_F77=unknown | |
13826 hardcode_automatic_F77=no | |
13827 module_cmds_F77= | |
13828 module_expsym_cmds_F77= | |
13829 always_export_symbols_F77=no | |
13830 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13831 # include_expsyms should be a list of space-separated symbols to be *always* | |
13832 # included in the symbol list | |
13833 include_expsyms_F77= | |
13834 # exclude_expsyms can be an extended regexp of symbols to exclude | |
13835 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
13836 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
13837 # as well as any symbol that contains `d'. | |
13838 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | |
13839 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
13840 # platforms (ab)use it in PIC code, but their linkers get confused if | |
13841 # the symbol is explicitly referenced. Since portable code cannot | |
13842 # rely on this symbol name, it's probably fine to never include it in | |
13843 # preloaded symbol tables. | |
13844 extract_expsyms_cmds= | |
13845 # Just being paranoid about ensuring that cc_basename is set. | |
13846 for cc_temp in $compiler""; do | |
13847 case $cc_temp in | |
13848 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13849 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13850 \-*) ;; | |
13851 *) break;; | |
13852 esac | |
13853 done | |
13854 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
13855 | |
13856 case $host_os in | |
13857 cygwin* | mingw* | pw32*) | |
13858 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
13859 # When not using gcc, we currently assume that we are using | |
13860 # Microsoft Visual C++. | |
13861 if test "$GCC" != yes; then | |
13862 with_gnu_ld=no | |
13863 fi | |
13864 ;; | |
13865 openbsd*) | |
13866 with_gnu_ld=no | |
13867 ;; | |
13868 esac | |
13869 | |
13870 ld_shlibs_F77=yes | |
13871 if test "$with_gnu_ld" = yes; then | |
13872 # If archive_cmds runs LD, not CC, wlarc should be empty | |
13873 wlarc='${wl}' | |
13874 | |
13875 # Set some defaults for GNU ld with shared library support. These | |
13876 # are reset later if shared libraries are not supported. Putting them | |
13877 # here allows them to be overridden if necessary. | |
13878 runpath_var=LD_RUN_PATH | |
13879 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
13880 export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
13881 # ancient GNU ld didn't support --whole-archive et. al. | |
13882 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
13883 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13884 else | |
13885 whole_archive_flag_spec_F77= | |
13886 fi | |
13887 supports_anon_versioning=no | |
13888 case `$LD -v 2>/dev/null` in | |
13889 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
13890 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
13891 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
13892 *\ 2.11.*) ;; # other 2.11 versions | |
13893 *) supports_anon_versioning=yes ;; | |
13894 esac | |
13895 | |
13896 # See if GNU ld supports shared libraries. | |
13897 case $host_os in | |
13898 aix3* | aix4* | aix5*) | |
13899 # On AIX/PPC, the GNU linker is very broken | |
13900 if test "$host_cpu" != ia64; then | |
13901 ld_shlibs_F77=no | |
13902 cat <<EOF 1>&2 | |
13903 | |
13904 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
13905 *** to be unable to reliably create shared libraries on AIX. | |
13906 *** Therefore, libtool is disabling shared libraries support. If you | |
13907 *** really care for shared libraries, you may want to modify your PATH | |
13908 *** so that a non-GNU linker is found, and then restart. | |
13909 | |
13910 EOF | |
13911 fi | |
13912 ;; | |
13913 | |
13914 amigaos*) | |
13915 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
13916 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13917 hardcode_minus_L_F77=yes | |
13918 | |
13919 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
13920 # that the semantics of dynamic libraries on AmigaOS, at least up | |
13921 # to version 4, is to share data among multiple programs linked | |
13922 # with the same dynamic library. Since this doesn't match the | |
13923 # behavior of shared libraries on other platforms, we can't use | |
13924 # them. | |
13925 ld_shlibs_F77=no | |
13926 ;; | |
13927 | |
13928 beos*) | |
13929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13930 allow_undefined_flag_F77=unsupported | |
13931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13932 # support --undefined. This deserves some investigation. FIXME | |
13933 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13934 else | |
13935 ld_shlibs_F77=no | |
13936 fi | |
13937 ;; | |
13938 | |
13939 cygwin* | mingw* | pw32*) | |
13940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
13941 # as there is no search path for DLLs. | |
13942 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13943 allow_undefined_flag_F77=unsupported | |
13944 always_export_symbols_F77=no | |
13945 enable_shared_with_static_runtimes_F77=yes | |
13946 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
13947 | |
13948 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
13949 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
13950 # If the export-symbols file already is a .def file (1st line | |
13951 # is EXPORTS), use it as is; otherwise, prepend... | |
13952 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13953 cp $export_symbols $output_objdir/$soname.def; | |
13954 else | |
13955 echo EXPORTS > $output_objdir/$soname.def; | |
13956 cat $export_symbols >> $output_objdir/$soname.def; | |
13957 fi~ | |
13958 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
13959 else | |
13960 ld_shlibs_F77=no | |
13961 fi | |
13962 ;; | |
13963 | |
13964 linux*) | |
13965 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13966 tmp_addflag= | |
13967 case $cc_basename,$host_cpu in | |
13968 pgcc*) # Portland Group C compiler | |
13969 whole_archive_flag_spec_F77= | |
13970 ;; | |
13971 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers | |
13972 whole_archive_flag_spec_F77= | |
13973 tmp_addflag=' -fpic -Mnomain' ;; | |
13974 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
13975 tmp_addflag=' -i_dynamic' ;; | |
13976 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
13977 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
13978 ifc* | ifort*) # Intel Fortran compiler | |
13979 tmp_addflag=' -nofor_main' ;; | |
13980 esac | |
13981 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13982 | |
13983 if test $supports_anon_versioning = yes; then | |
13984 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | |
13985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13986 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13987 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13988 fi | |
13989 else | |
13990 ld_shlibs_F77=no | |
13991 fi | |
13992 ;; | |
13993 | |
13994 netbsd*) | |
13995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13996 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
13997 wlarc= | |
13998 else | |
13999 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14000 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14001 fi | |
14002 ;; | |
14003 | |
14004 solaris* | sysv5*) | |
14005 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
14006 ld_shlibs_F77=no | |
14007 cat <<EOF 1>&2 | |
14008 | |
14009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14010 *** create shared libraries on Solaris systems. Therefore, libtool | |
14011 *** is disabling shared libraries support. We urge you to upgrade GNU | |
14012 *** binutils to release 2.9.1 or newer. Another option is to modify | |
14013 *** your PATH or compiler configuration so that the native linker is | |
14014 *** used, and then restart. | |
14015 | |
14016 EOF | |
14017 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14018 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14019 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14020 else | |
14021 ld_shlibs_F77=no | |
14022 fi | |
14023 ;; | |
14024 | |
14025 sunos4*) | |
14026 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14027 wlarc= | |
14028 hardcode_direct_F77=yes | |
14029 hardcode_shlibpath_var_F77=no | |
14030 ;; | |
14031 | |
14032 *) | |
14033 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14034 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14035 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14036 else | |
14037 ld_shlibs_F77=no | |
14038 fi | |
14039 ;; | |
14040 esac | |
14041 | |
14042 if test "$ld_shlibs_F77" = no; then | |
14043 runpath_var= | |
14044 hardcode_libdir_flag_spec_F77= | |
14045 export_dynamic_flag_spec_F77= | |
14046 whole_archive_flag_spec_F77= | |
14047 fi | |
14048 else | |
14049 # PORTME fill in a description of your system's linker (not GNU ld) | |
14050 case $host_os in | |
14051 aix3*) | |
14052 allow_undefined_flag_F77=unsupported | |
14053 always_export_symbols_F77=yes | |
14054 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
14055 # Note: this linker hardcodes the directories in LIBPATH if there | |
14056 # are no directories specified by -L. | |
14057 hardcode_minus_L_F77=yes | |
14058 if test "$GCC" = yes && test -z "$link_static_flag"; then | |
14059 # Neither direct hardcoding nor static linking is supported with a | |
14060 # broken collect2. | |
14061 hardcode_direct_F77=unsupported | |
14062 fi | |
14063 ;; | |
14064 | |
14065 aix4* | aix5*) | |
14066 if test "$host_cpu" = ia64; then | |
14067 # On IA64, the linker does run time linking by default, so we don't | |
14068 # have to do anything special. | |
14069 aix_use_runtimelinking=no | |
14070 exp_sym_flag='-Bexport' | |
14071 no_entry_flag="" | |
14072 else | |
14073 # If we're using GNU nm, then we don't want the "-C" option. | |
14074 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14075 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
14076 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
14077 else | |
14078 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
14079 fi | |
14080 aix_use_runtimelinking=no | |
14081 | |
14082 # Test if we are trying to use run time linking or normal | |
14083 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14084 # need to do runtime linking. | |
14085 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
14086 for ld_flag in $LDFLAGS; do | |
14087 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14088 aix_use_runtimelinking=yes | |
14089 break | |
14090 fi | |
14091 done | |
14092 esac | |
14093 | |
14094 exp_sym_flag='-bexport' | |
14095 no_entry_flag='-bnoentry' | |
14096 fi | |
14097 | |
14098 # When large executables or shared objects are built, AIX ld can | |
14099 # have problems creating the table of contents. If linking a library | |
14100 # or program results in "error TOC overflow" add -mminimal-toc to | |
14101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14103 | |
14104 archive_cmds_F77='' | |
14105 hardcode_direct_F77=yes | |
14106 hardcode_libdir_separator_F77=':' | |
14107 link_all_deplibs_F77=yes | |
14108 | |
14109 if test "$GCC" = yes; then | |
14110 case $host_os in aix4.[012]|aix4.[012].*) | |
14111 # We only want to do this on AIX 4.2 and lower, the check | |
14112 # below for broken collect2 doesn't work under 4.3+ | |
14113 collect2name=`${CC} -print-prog-name=collect2` | |
14114 if test -f "$collect2name" && \ | |
14115 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
14116 then | |
14117 # We have reworked collect2 | |
14118 hardcode_direct_F77=yes | |
14119 else | |
14120 # We have old collect2 | |
14121 hardcode_direct_F77=unsupported | |
14122 # It fails to find uninstalled libraries when the uninstalled | |
14123 # path is not listed in the libpath. Setting hardcode_minus_L | |
14124 # to unsupported forces relinking | |
14125 hardcode_minus_L_F77=yes | |
14126 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14127 hardcode_libdir_separator_F77= | |
14128 fi | |
14129 esac | |
14130 shared_flag='-shared' | |
14131 if test "$aix_use_runtimelinking" = yes; then | |
14132 shared_flag="$shared_flag "'${wl}-G' | |
14133 fi | |
14134 else | |
14135 # not using gcc | |
14136 if test "$host_cpu" = ia64; then | |
14137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14138 # chokes on -Wl,-G. The following line is correct: | |
14139 shared_flag='-G' | |
14140 else | |
14141 if test "$aix_use_runtimelinking" = yes; then | |
14142 shared_flag='${wl}-G' | |
14143 else | |
14144 shared_flag='${wl}-bM:SRE' | |
14145 fi | |
14146 fi | |
14147 fi | |
14148 | |
14149 # It seems that -bexpall does not export symbols beginning with | |
14150 # underscore (_), so it is better to generate a list of symbols to export. | |
14151 always_export_symbols_F77=yes | |
14152 if test "$aix_use_runtimelinking" = yes; then | |
14153 # Warning - without using the other runtime loading flags (-brtl), | |
14154 # -berok will link without error, but may produce a broken library. | |
14155 allow_undefined_flag_F77='-berok' | |
14156 # Determine the default libpath from the value encoded in an empty executable. | |
14157 cat >conftest.$ac_ext <<_ACEOF | |
14158 program main | |
14159 | |
14160 end | |
14161 _ACEOF | |
14162 rm -f conftest.$ac_objext conftest$ac_exeext | |
14163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14164 (eval $ac_link) 2>conftest.er1 | |
14165 ac_status=$? | |
14166 grep -v '^ *+' conftest.er1 >conftest.err | |
14167 rm -f conftest.er1 | |
14168 cat conftest.err >&5 | |
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14170 (exit $ac_status); } && | |
14171 { ac_try='test -z "$ac_f77_werror_flag" | |
14172 || test ! -s conftest.err' | |
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14174 (eval $ac_try) 2>&5 | |
14175 ac_status=$? | |
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14177 (exit $ac_status); }; } && | |
14178 { ac_try='test -s conftest$ac_exeext' | |
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14180 (eval $ac_try) 2>&5 | |
14181 ac_status=$? | |
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14183 (exit $ac_status); }; }; then | |
14184 | |
14185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14186 }'` | |
14187 # Check for a 64-bit object if we didn't find anything. | |
14188 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14189 }'`; fi | |
14190 else | |
14191 echo "$as_me: failed program was:" >&5 | |
14192 sed 's/^/| /' conftest.$ac_ext >&5 | |
14193 | |
14194 fi | |
14195 rm -f conftest.err conftest.$ac_objext \ | |
14196 conftest$ac_exeext conftest.$ac_ext | |
14197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
14198 | |
14199 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14200 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
14201 else | |
14202 if test "$host_cpu" = ia64; then | |
14203 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
14204 allow_undefined_flag_F77="-z nodefs" | |
14205 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
14206 else | |
14207 # Determine the default libpath from the value encoded in an empty executable. | |
14208 cat >conftest.$ac_ext <<_ACEOF | |
14209 program main | |
14210 | |
14211 end | |
14212 _ACEOF | |
14213 rm -f conftest.$ac_objext conftest$ac_exeext | |
14214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14215 (eval $ac_link) 2>conftest.er1 | |
14216 ac_status=$? | |
14217 grep -v '^ *+' conftest.er1 >conftest.err | |
14218 rm -f conftest.er1 | |
14219 cat conftest.err >&5 | |
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14221 (exit $ac_status); } && | |
14222 { ac_try='test -z "$ac_f77_werror_flag" | |
14223 || test ! -s conftest.err' | |
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14225 (eval $ac_try) 2>&5 | |
14226 ac_status=$? | |
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14228 (exit $ac_status); }; } && | |
14229 { ac_try='test -s conftest$ac_exeext' | |
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14231 (eval $ac_try) 2>&5 | |
14232 ac_status=$? | |
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14234 (exit $ac_status); }; }; then | |
14235 | |
14236 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14237 }'` | |
14238 # Check for a 64-bit object if we didn't find anything. | |
14239 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14240 }'`; fi | |
14241 else | |
14242 echo "$as_me: failed program was:" >&5 | |
14243 sed 's/^/| /' conftest.$ac_ext >&5 | |
14244 | |
14245 fi | |
14246 rm -f conftest.err conftest.$ac_objext \ | |
14247 conftest$ac_exeext conftest.$ac_ext | |
14248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
14249 | |
14250 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14251 # Warning - without using the other run time loading flags, | |
14252 # -berok will link without error, but may produce a broken library. | |
14253 no_undefined_flag_F77=' ${wl}-bernotok' | |
14254 allow_undefined_flag_F77=' ${wl}-berok' | |
14255 # -bexpall does not export symbols beginning with underscore (_) | |
14256 always_export_symbols_F77=yes | |
14257 # Exported symbols can be pulled into shared objects from archives | |
14258 whole_archive_flag_spec_F77=' ' | |
14259 archive_cmds_need_lc_F77=yes | |
14260 # This is similar to how AIX traditionally builds it's shared libraries. | |
14261 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
14262 fi | |
14263 fi | |
14264 ;; | |
14265 | |
14266 amigaos*) | |
14267 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
14268 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14269 hardcode_minus_L_F77=yes | |
14270 # see comment about different semantics on the GNU ld section | |
14271 ld_shlibs_F77=no | |
14272 ;; | |
14273 | |
14274 bsdi[45]*) | |
14275 export_dynamic_flag_spec_F77=-rdynamic | |
14276 ;; | |
14277 | |
14278 cygwin* | mingw* | pw32*) | |
14279 # When not using gcc, we currently assume that we are using | |
14280 # Microsoft Visual C++. | |
14281 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14282 # no search path for DLLs. | |
14283 hardcode_libdir_flag_spec_F77=' ' | |
14284 allow_undefined_flag_F77=unsupported | |
14285 # Tell ltmain to make .lib files, not .a files. | |
14286 libext=lib | |
14287 # Tell ltmain to make .dll files, not .so files. | |
14288 shrext_cmds=".dll" | |
14289 # FIXME: Setting linknames here is a bad hack. | |
14290 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
14291 # The linker will automatically build a .lib file if we build a DLL. | |
14292 old_archive_From_new_cmds_F77='true' | |
14293 # FIXME: Should let the user specify the lib program. | |
14294 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
14295 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | |
14296 enable_shared_with_static_runtimes_F77=yes | |
14297 ;; | |
14298 | |
14299 darwin* | rhapsody*) | |
14300 case "$host_os" in | |
14301 rhapsody* | darwin1.[012]) | |
14302 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | |
14303 ;; | |
14304 *) # Darwin 1.3 on | |
14305 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
14306 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
14307 else | |
14308 case ${MACOSX_DEPLOYMENT_TARGET} in | |
14309 10.[012]) | |
14310 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
14311 ;; | |
14312 10.*) | |
14313 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | |
14314 ;; | |
14315 esac | |
14316 fi | |
14317 ;; | |
14318 esac | |
14319 archive_cmds_need_lc_F77=no | |
14320 hardcode_direct_F77=no | |
14321 hardcode_automatic_F77=yes | |
14322 hardcode_shlibpath_var_F77=unsupported | |
14323 whole_archive_flag_spec_F77='' | |
14324 link_all_deplibs_F77=yes | |
14325 if test "$GCC" = yes ; then | |
14326 output_verbose_link_cmd='echo' | |
14327 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
14328 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
14329 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
14330 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14331 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14332 else | |
14333 case $cc_basename in | |
14334 xlc*) | |
14335 output_verbose_link_cmd='echo' | |
14336 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
14337 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
14338 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
14339 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14340 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14341 ;; | |
14342 *) | |
14343 ld_shlibs_F77=no | |
14344 ;; | |
14345 esac | |
14346 fi | |
14347 ;; | |
14348 | |
14349 dgux*) | |
14350 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14351 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14352 hardcode_shlibpath_var_F77=no | |
14353 ;; | |
14354 | |
14355 freebsd1*) | |
14356 ld_shlibs_F77=no | |
14357 ;; | |
14358 | |
14359 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
14360 # support. Future versions do this automatically, but an explicit c++rt0.o | |
14361 # does not break anything, and helps significantly (at the cost of a little | |
14362 # extra space). | |
14363 freebsd2.2*) | |
14364 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14365 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14366 hardcode_direct_F77=yes | |
14367 hardcode_shlibpath_var_F77=no | |
14368 ;; | |
14369 | |
14370 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
14371 freebsd2*) | |
14372 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14373 hardcode_direct_F77=yes | |
14374 hardcode_minus_L_F77=yes | |
14375 hardcode_shlibpath_var_F77=no | |
14376 ;; | |
14377 | |
14378 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14379 freebsd* | kfreebsd*-gnu | dragonfly*) | |
14380 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14381 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14382 hardcode_direct_F77=yes | |
14383 hardcode_shlibpath_var_F77=no | |
14384 ;; | |
14385 | |
14386 hpux9*) | |
14387 if test "$GCC" = yes; then | |
14388 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
14389 else | |
14390 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
14391 fi | |
14392 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14393 hardcode_libdir_separator_F77=: | |
14394 hardcode_direct_F77=yes | |
14395 | |
14396 # hardcode_minus_L: Not really in the search PATH, | |
14397 # but as the default location of the library. | |
14398 hardcode_minus_L_F77=yes | |
14399 export_dynamic_flag_spec_F77='${wl}-E' | |
14400 ;; | |
14401 | |
14402 hpux10* | hpux11*) | |
14403 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14404 case "$host_cpu" in | |
14405 hppa*64*|ia64*) | |
14406 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14407 ;; | |
14408 *) | |
14409 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14410 ;; | |
14411 esac | |
14412 else | |
14413 case "$host_cpu" in | |
14414 hppa*64*|ia64*) | |
14415 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14416 ;; | |
14417 *) | |
14418 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14419 ;; | |
14420 esac | |
14421 fi | |
14422 if test "$with_gnu_ld" = no; then | |
14423 case "$host_cpu" in | |
14424 hppa*64*) | |
14425 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14426 hardcode_libdir_flag_spec_ld_F77='+b $libdir' | |
14427 hardcode_libdir_separator_F77=: | |
14428 hardcode_direct_F77=no | |
14429 hardcode_shlibpath_var_F77=no | |
14430 ;; | |
14431 ia64*) | |
14432 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14433 hardcode_direct_F77=no | |
14434 hardcode_shlibpath_var_F77=no | |
14435 | |
14436 # hardcode_minus_L: Not really in the search PATH, | |
14437 # but as the default location of the library. | |
14438 hardcode_minus_L_F77=yes | |
14439 ;; | |
14440 *) | |
14441 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14442 hardcode_libdir_separator_F77=: | |
14443 hardcode_direct_F77=yes | |
14444 export_dynamic_flag_spec_F77='${wl}-E' | |
14445 | |
14446 # hardcode_minus_L: Not really in the search PATH, | |
14447 # but as the default location of the library. | |
14448 hardcode_minus_L_F77=yes | |
14449 ;; | |
14450 esac | |
14451 fi | |
14452 ;; | |
14453 | |
14454 irix5* | irix6* | nonstopux*) | |
14455 if test "$GCC" = yes; then | |
14456 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14457 else | |
14458 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14459 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
14460 fi | |
14461 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14462 hardcode_libdir_separator_F77=: | |
14463 link_all_deplibs_F77=yes | |
14464 ;; | |
14465 | |
14466 netbsd*) | |
14467 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14468 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14469 else | |
14470 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14471 fi | |
14472 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14473 hardcode_direct_F77=yes | |
14474 hardcode_shlibpath_var_F77=no | |
14475 ;; | |
14476 | |
14477 newsos6) | |
14478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14479 hardcode_direct_F77=yes | |
14480 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14481 hardcode_libdir_separator_F77=: | |
14482 hardcode_shlibpath_var_F77=no | |
14483 ;; | |
14484 | |
14485 openbsd*) | |
14486 hardcode_direct_F77=yes | |
14487 hardcode_shlibpath_var_F77=no | |
14488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14489 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14490 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
14491 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14492 export_dynamic_flag_spec_F77='${wl}-E' | |
14493 else | |
14494 case $host_os in | |
14495 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14496 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14497 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14498 ;; | |
14499 *) | |
14500 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14501 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14502 ;; | |
14503 esac | |
14504 fi | |
14505 ;; | |
14506 | |
14507 os2*) | |
14508 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14509 hardcode_minus_L_F77=yes | |
14510 allow_undefined_flag_F77=unsupported | |
14511 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
14512 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
14513 ;; | |
14514 | |
14515 osf3*) | |
14516 if test "$GCC" = yes; then | |
14517 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14518 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14519 else | |
14520 allow_undefined_flag_F77=' -expect_unresolved \*' | |
14521 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14522 fi | |
14523 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14524 hardcode_libdir_separator_F77=: | |
14525 ;; | |
14526 | |
14527 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14528 if test "$GCC" = yes; then | |
14529 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14530 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14531 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14532 else | |
14533 allow_undefined_flag_F77=' -expect_unresolved \*' | |
14534 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14535 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
14536 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
14537 | |
14538 # Both c and cxx compiler support -rpath directly | |
14539 hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
14540 fi | |
14541 hardcode_libdir_separator_F77=: | |
14542 ;; | |
14543 | |
14544 sco3.2v5*) | |
14545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14546 hardcode_shlibpath_var_F77=no | |
14547 export_dynamic_flag_spec_F77='${wl}-Bexport' | |
14548 runpath_var=LD_RUN_PATH | |
14549 hardcode_runpath_var=yes | |
14550 ;; | |
14551 | |
14552 solaris*) | |
14553 no_undefined_flag_F77=' -z text' | |
14554 if test "$GCC" = yes; then | |
14555 wlarc='${wl}' | |
14556 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14557 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14558 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
14559 else | |
14560 wlarc='' | |
14561 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14562 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14563 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
14564 fi | |
14565 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14566 hardcode_shlibpath_var_F77=no | |
14567 case $host_os in | |
14568 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14569 *) | |
14570 # The compiler driver will combine linker options so we | |
14571 # cannot just pass the convience library names through | |
14572 # without $wl, iff we do not link with $LD. | |
14573 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
14574 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14575 case $wlarc in | |
14576 '') | |
14577 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | |
14578 *) | |
14579 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
14580 esac ;; | |
14581 esac | |
14582 link_all_deplibs_F77=yes | |
14583 ;; | |
14584 | |
14585 sunos4*) | |
14586 if test "x$host_vendor" = xsequent; then | |
14587 # Use $CC to link under sequent, because it throws in some extra .o | |
14588 # files that make .init and .fini sections work. | |
14589 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14590 else | |
14591 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
14592 fi | |
14593 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14594 hardcode_direct_F77=yes | |
14595 hardcode_minus_L_F77=yes | |
14596 hardcode_shlibpath_var_F77=no | |
14597 ;; | |
14598 | |
14599 sysv4) | |
14600 case $host_vendor in | |
14601 sni) | |
14602 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14603 hardcode_direct_F77=yes # is this really true??? | |
14604 ;; | |
14605 siemens) | |
14606 ## LD is ld it makes a PLAMLIB | |
14607 ## CC just makes a GrossModule. | |
14608 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14609 reload_cmds_F77='$CC -r -o $output$reload_objs' | |
14610 hardcode_direct_F77=no | |
14611 ;; | |
14612 motorola) | |
14613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14614 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
14615 ;; | |
14616 esac | |
14617 runpath_var='LD_RUN_PATH' | |
14618 hardcode_shlibpath_var_F77=no | |
14619 ;; | |
14620 | |
14621 sysv4.3*) | |
14622 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14623 hardcode_shlibpath_var_F77=no | |
14624 export_dynamic_flag_spec_F77='-Bexport' | |
14625 ;; | |
14626 | |
14627 sysv4*MP*) | |
14628 if test -d /usr/nec; then | |
14629 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14630 hardcode_shlibpath_var_F77=no | |
14631 runpath_var=LD_RUN_PATH | |
14632 hardcode_runpath_var=yes | |
14633 ld_shlibs_F77=yes | |
14634 fi | |
14635 ;; | |
14636 | |
14637 sysv4.2uw2*) | |
14638 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14639 hardcode_direct_F77=yes | |
14640 hardcode_minus_L_F77=no | |
14641 hardcode_shlibpath_var_F77=no | |
14642 hardcode_runpath_var=yes | |
14643 runpath_var=LD_RUN_PATH | |
14644 ;; | |
14645 | |
14646 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
14647 no_undefined_flag_F77='${wl}-z ${wl}text' | |
14648 if test "$GCC" = yes; then | |
14649 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14650 else | |
14651 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14652 fi | |
14653 runpath_var='LD_RUN_PATH' | |
14654 hardcode_shlibpath_var_F77=no | |
14655 ;; | |
14656 | |
14657 sysv5*) | |
14658 no_undefined_flag_F77=' -z text' | |
14659 # $CC -shared without GNU ld will not create a library from C++ | |
14660 # object files and a static libstdc++, better avoid it by now | |
14661 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14662 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14663 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
14664 hardcode_libdir_flag_spec_F77= | |
14665 hardcode_shlibpath_var_F77=no | |
14666 runpath_var='LD_RUN_PATH' | |
14667 ;; | |
14668 | |
14669 uts4*) | |
14670 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14671 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14672 hardcode_shlibpath_var_F77=no | |
14673 ;; | |
14674 | |
14675 *) | |
14676 ld_shlibs_F77=no | |
14677 ;; | |
14678 esac | |
14679 fi | |
14680 | |
14681 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |
14682 echo "${ECHO_T}$ld_shlibs_F77" >&6 | |
14683 test "$ld_shlibs_F77" = no && can_build_shared=no | |
14684 | |
14685 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14686 if test "$GCC" = yes; then | |
14687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14688 fi | |
14689 | |
14690 # | |
14691 # Do we need to explicitly link libc? | |
14692 # | |
14693 case "x$archive_cmds_need_lc_F77" in | |
14694 x|xyes) | |
14695 # Assume -lc should be added | |
14696 archive_cmds_need_lc_F77=yes | |
14697 | |
14698 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14699 case $archive_cmds_F77 in | |
14700 *'~'*) | |
14701 # FIXME: we may have to deal with multi-command sequences. | |
14702 ;; | |
14703 '$CC '*) | |
14704 # Test whether the compiler implicitly links with -lc since on some | |
14705 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14706 # to ld, don't add -lc before -lgcc. | |
14707 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
14708 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
14709 $rm conftest* | |
14710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14711 | |
14712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14713 (eval $ac_compile) 2>&5 | |
14714 ac_status=$? | |
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14716 (exit $ac_status); } 2>conftest.err; then | |
14717 soname=conftest | |
14718 lib=conftest | |
14719 libobjs=conftest.$ac_objext | |
14720 deplibs= | |
14721 wl=$lt_prog_compiler_wl_F77 | |
14722 compiler_flags=-v | |
14723 linker_flags=-v | |
14724 verstring= | |
14725 output_objdir=. | |
14726 libname=conftest | |
14727 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
14728 allow_undefined_flag_F77= | |
14729 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
14730 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14731 ac_status=$? | |
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14733 (exit $ac_status); } | |
14734 then | |
14735 archive_cmds_need_lc_F77=no | |
14736 else | |
14737 archive_cmds_need_lc_F77=yes | |
14738 fi | |
14739 allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
14740 else | |
14741 cat conftest.err 1>&5 | |
14742 fi | |
14743 $rm conftest* | |
14744 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | |
14745 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | |
14746 ;; | |
14747 esac | |
14748 fi | |
14749 ;; | |
14750 esac | |
14751 | |
14752 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
14753 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
14754 library_names_spec= | |
14755 libname_spec='lib$name' | |
14756 soname_spec= | |
14757 shrext_cmds=".so" | |
14758 postinstall_cmds= | |
14759 postuninstall_cmds= | |
14760 finish_cmds= | |
14761 finish_eval= | |
14762 shlibpath_var= | |
14763 shlibpath_overrides_runpath=unknown | |
14764 version_type=none | |
14765 dynamic_linker="$host_os ld.so" | |
14766 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14767 if test "$GCC" = yes; then | |
14768 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14769 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
14770 # if the path contains ";" then we assume it to be the separator | |
14771 # otherwise default to the standard path separator (i.e. ":") - it is | |
14772 # assumed that no part of a normal pathname contains ";" but that should | |
14773 # okay in the real world where ";" in dirpaths is itself problematic. | |
14774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14775 else | |
14776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14777 fi | |
14778 else | |
14779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
14780 fi | |
14781 need_lib_prefix=unknown | |
14782 hardcode_into_libs=no | |
14783 | |
14784 # when you set need_version to no, make sure it does not cause -set_version | |
14785 # flags to be left without arguments | |
14786 need_version=unknown | |
14787 | |
14788 case $host_os in | |
14789 aix3*) | |
14790 version_type=linux | |
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14792 shlibpath_var=LIBPATH | |
14793 | |
14794 # AIX 3 has no versioning support, so we append a major version to the name. | |
14795 soname_spec='${libname}${release}${shared_ext}$major' | |
14796 ;; | |
14797 | |
14798 aix4* | aix5*) | |
14799 version_type=linux | |
14800 need_lib_prefix=no | |
14801 need_version=no | |
14802 hardcode_into_libs=yes | |
14803 if test "$host_cpu" = ia64; then | |
14804 # AIX 5 supports IA64 | |
14805 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14806 shlibpath_var=LD_LIBRARY_PATH | |
14807 else | |
14808 # With GCC up to 2.95.x, collect2 would create an import file | |
14809 # for dependence libraries. The import file would start with | |
14810 # the line `#! .'. This would cause the generated library to | |
14811 # depend on `.', always an invalid library. This was fixed in | |
14812 # development snapshots of GCC prior to 3.0. | |
14813 case $host_os in | |
14814 aix4 | aix4.[01] | aix4.[01].*) | |
14815 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14816 echo ' yes ' | |
14817 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
14818 : | |
14819 else | |
14820 can_build_shared=no | |
14821 fi | |
14822 ;; | |
14823 esac | |
14824 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14825 # soname into executable. Probably we can add versioning support to | |
14826 # collect2, so additional links can be useful in future. | |
14827 if test "$aix_use_runtimelinking" = yes; then | |
14828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14829 # instead of lib<name>.a to let people know that these are not | |
14830 # typical AIX shared libraries. | |
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14832 else | |
14833 # We preserve .a as extension for shared libraries through AIX4.2 | |
14834 # and later when we are not doing run time linking. | |
14835 library_names_spec='${libname}${release}.a $libname.a' | |
14836 soname_spec='${libname}${release}${shared_ext}$major' | |
14837 fi | |
14838 shlibpath_var=LIBPATH | |
14839 fi | |
14840 ;; | |
14841 | |
14842 amigaos*) | |
14843 library_names_spec='$libname.ixlibrary $libname.a' | |
14844 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14845 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' | |
14846 ;; | |
14847 | |
14848 beos*) | |
14849 library_names_spec='${libname}${shared_ext}' | |
14850 dynamic_linker="$host_os ld.so" | |
14851 shlibpath_var=LIBRARY_PATH | |
14852 ;; | |
14853 | |
14854 bsdi[45]*) | |
14855 version_type=linux | |
14856 need_version=no | |
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14858 soname_spec='${libname}${release}${shared_ext}$major' | |
14859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14860 shlibpath_var=LD_LIBRARY_PATH | |
14861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14863 # the default ld.so.conf also contains /usr/contrib/lib and | |
14864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14865 # libtool to hard-code these into programs | |
14866 ;; | |
14867 | |
14868 cygwin* | mingw* | pw32*) | |
14869 version_type=windows | |
14870 shrext_cmds=".dll" | |
14871 need_version=no | |
14872 need_lib_prefix=no | |
14873 | |
14874 case $GCC,$host_os in | |
14875 yes,cygwin* | yes,mingw* | yes,pw32*) | |
14876 library_names_spec='$libname.dll.a' | |
14877 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14878 postinstall_cmds='base_file=`basename \${file}`~ | |
14879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
14880 dldir=$destdir/`dirname \$dlpath`~ | |
14881 test -d \$dldir || mkdir -p \$dldir~ | |
14882 $install_prog $dir/$dlname \$dldir/$dlname' | |
14883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14884 dlpath=$dir/\$dldll~ | |
14885 $rm \$dlpath' | |
14886 shlibpath_overrides_runpath=yes | |
14887 | |
14888 case $host_os in | |
14889 cygwin*) | |
14890 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14891 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14892 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14893 ;; | |
14894 mingw*) | |
14895 # MinGW DLLs use traditional 'lib' prefix | |
14896 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14897 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14898 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
14899 # It is most probably a Windows format PATH printed by | |
14900 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14901 # path with ; separators, and with drive letters. We can handle the | |
14902 # drive letters (cygwin fileutils understands them), so leave them, | |
14903 # especially as we might pass files found there to a mingw objdump, | |
14904 # which wouldn't understand a cygwinified path. Ahh. | |
14905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14906 else | |
14907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14908 fi | |
14909 ;; | |
14910 pw32*) | |
14911 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14912 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14913 ;; | |
14914 esac | |
14915 ;; | |
14916 | |
14917 *) | |
14918 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14919 ;; | |
14920 esac | |
14921 dynamic_linker='Win32 ld.exe' | |
14922 # FIXME: first we should search . and the directory the executable is in | |
14923 shlibpath_var=PATH | |
14924 ;; | |
14925 | |
14926 darwin* | rhapsody*) | |
14927 dynamic_linker="$host_os dyld" | |
14928 version_type=darwin | |
14929 need_lib_prefix=no | |
14930 need_version=no | |
14931 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14932 soname_spec='${libname}${release}${major}$shared_ext' | |
14933 shlibpath_overrides_runpath=yes | |
14934 shlibpath_var=DYLD_LIBRARY_PATH | |
14935 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | |
14936 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
14937 if test "$GCC" = yes; then | |
14938 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
14939 else | |
14940 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
14941 fi | |
14942 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14943 ;; | |
14944 | |
14945 dgux*) | |
14946 version_type=linux | |
14947 need_lib_prefix=no | |
14948 need_version=no | |
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14950 soname_spec='${libname}${release}${shared_ext}$major' | |
14951 shlibpath_var=LD_LIBRARY_PATH | |
14952 ;; | |
14953 | |
14954 freebsd1*) | |
14955 dynamic_linker=no | |
14956 ;; | |
14957 | |
14958 kfreebsd*-gnu) | |
14959 version_type=linux | |
14960 need_lib_prefix=no | |
14961 need_version=no | |
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14963 soname_spec='${libname}${release}${shared_ext}$major' | |
14964 shlibpath_var=LD_LIBRARY_PATH | |
14965 shlibpath_overrides_runpath=no | |
14966 hardcode_into_libs=yes | |
14967 dynamic_linker='GNU ld.so' | |
14968 ;; | |
14969 | |
14970 freebsd* | dragonfly*) | |
14971 # DragonFly does not have aout. When/if they implement a new | |
14972 # versioning mechanism, adjust this. | |
14973 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
14974 version_type=freebsd-$objformat | |
14975 case $version_type in | |
14976 freebsd-elf*) | |
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14978 need_version=no | |
14979 need_lib_prefix=no | |
14980 ;; | |
14981 freebsd-*) | |
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14983 need_version=yes | |
14984 ;; | |
14985 esac | |
14986 shlibpath_var=LD_LIBRARY_PATH | |
14987 case $host_os in | |
14988 freebsd2*) | |
14989 shlibpath_overrides_runpath=yes | |
14990 ;; | |
14991 freebsd3.[01]* | freebsdelf3.[01]*) | |
14992 shlibpath_overrides_runpath=yes | |
14993 hardcode_into_libs=yes | |
14994 ;; | |
14995 *) # from 3.2 on | |
14996 shlibpath_overrides_runpath=no | |
14997 hardcode_into_libs=yes | |
14998 ;; | |
14999 esac | |
15000 ;; | |
15001 | |
15002 gnu*) | |
15003 version_type=linux | |
15004 need_lib_prefix=no | |
15005 need_version=no | |
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15007 soname_spec='${libname}${release}${shared_ext}$major' | |
15008 shlibpath_var=LD_LIBRARY_PATH | |
15009 hardcode_into_libs=yes | |
15010 ;; | |
15011 | |
15012 hpux9* | hpux10* | hpux11*) | |
15013 # Give a soname corresponding to the major version so that dld.sl refuses to | |
15014 # link against other versions. | |
15015 version_type=sunos | |
15016 need_lib_prefix=no | |
15017 need_version=no | |
15018 case "$host_cpu" in | |
15019 ia64*) | |
15020 shrext_cmds='.so' | |
15021 hardcode_into_libs=yes | |
15022 dynamic_linker="$host_os dld.so" | |
15023 shlibpath_var=LD_LIBRARY_PATH | |
15024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15026 soname_spec='${libname}${release}${shared_ext}$major' | |
15027 if test "X$HPUX_IA64_MODE" = X32; then | |
15028 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15029 else | |
15030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15031 fi | |
15032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15033 ;; | |
15034 hppa*64*) | |
15035 shrext_cmds='.sl' | |
15036 hardcode_into_libs=yes | |
15037 dynamic_linker="$host_os dld.sl" | |
15038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15041 soname_spec='${libname}${release}${shared_ext}$major' | |
15042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15044 ;; | |
15045 *) | |
15046 shrext_cmds='.sl' | |
15047 dynamic_linker="$host_os dld.sl" | |
15048 shlibpath_var=SHLIB_PATH | |
15049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15051 soname_spec='${libname}${release}${shared_ext}$major' | |
15052 ;; | |
15053 esac | |
15054 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
15055 postinstall_cmds='chmod 555 $lib' | |
15056 ;; | |
15057 | |
15058 irix5* | irix6* | nonstopux*) | |
15059 case $host_os in | |
15060 nonstopux*) version_type=nonstopux ;; | |
15061 *) | |
15062 if test "$lt_cv_prog_gnu_ld" = yes; then | |
15063 version_type=linux | |
15064 else | |
15065 version_type=irix | |
15066 fi ;; | |
15067 esac | |
15068 need_lib_prefix=no | |
15069 need_version=no | |
15070 soname_spec='${libname}${release}${shared_ext}$major' | |
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15072 case $host_os in | |
15073 irix5* | nonstopux*) | |
15074 libsuff= shlibsuff= | |
15075 ;; | |
15076 *) | |
15077 case $LD in # libtool.m4 will add one of these switches to LD | |
15078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15079 libsuff= shlibsuff= libmagic=32-bit;; | |
15080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15081 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15083 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15084 *) libsuff= shlibsuff= libmagic=never-match;; | |
15085 esac | |
15086 ;; | |
15087 esac | |
15088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15089 shlibpath_overrides_runpath=no | |
15090 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15091 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15092 hardcode_into_libs=yes | |
15093 ;; | |
15094 | |
15095 # No shared lib support for Linux oldld, aout, or coff. | |
15096 linux*oldld* | linux*aout* | linux*coff*) | |
15097 dynamic_linker=no | |
15098 ;; | |
15099 | |
15100 # This must be Linux ELF. | |
15101 linux*) | |
15102 version_type=linux | |
15103 need_lib_prefix=no | |
15104 need_version=no | |
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15106 soname_spec='${libname}${release}${shared_ext}$major' | |
15107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15108 shlibpath_var=LD_LIBRARY_PATH | |
15109 shlibpath_overrides_runpath=no | |
15110 # This implies no fast_install, which is unacceptable. | |
15111 # Some rework will be needed to allow for fast_install | |
15112 # before this can be enabled. | |
15113 hardcode_into_libs=yes | |
15114 | |
15115 # find out which ABI we are using | |
15116 libsuff= | |
15117 case "$host_cpu" in | |
15118 x86_64*|s390x*|powerpc64*) | |
15119 echo '#line 15119 "configure"' > conftest.$ac_ext | |
15120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15121 (eval $ac_compile) 2>&5 | |
15122 ac_status=$? | |
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15124 (exit $ac_status); }; then | |
15125 case `/usr/bin/file conftest.$ac_objext` in | |
15126 *64-bit*) | |
15127 libsuff=64 | |
15128 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
15129 ;; | |
15130 esac | |
15131 fi | |
15132 rm -rf conftest* | |
15133 ;; | |
15134 esac | |
15135 | |
15136 # Append ld.so.conf contents to the search path | |
15137 if test -f /etc/ld.so.conf; then | |
15138 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
15139 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | |
15140 fi | |
15141 | |
15142 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15143 # powerpc, because MkLinux only supported shared libraries with the | |
15144 # GNU dynamic linker. Since this was broken with cross compilers, | |
15145 # most powerpc-linux boxes support dynamic linking these days and | |
15146 # people can always --disable-shared, the test was removed, and we | |
15147 # assume the GNU/Linux dynamic linker is in use. | |
15148 dynamic_linker='GNU/Linux ld.so' | |
15149 ;; | |
15150 | |
15151 knetbsd*-gnu) | |
15152 version_type=linux | |
15153 need_lib_prefix=no | |
15154 need_version=no | |
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15156 soname_spec='${libname}${release}${shared_ext}$major' | |
15157 shlibpath_var=LD_LIBRARY_PATH | |
15158 shlibpath_overrides_runpath=no | |
15159 hardcode_into_libs=yes | |
15160 dynamic_linker='GNU ld.so' | |
15161 ;; | |
15162 | |
15163 netbsd*) | |
15164 version_type=sunos | |
15165 need_lib_prefix=no | |
15166 need_version=no | |
15167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15170 dynamic_linker='NetBSD (a.out) ld.so' | |
15171 else | |
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15173 soname_spec='${libname}${release}${shared_ext}$major' | |
15174 dynamic_linker='NetBSD ld.elf_so' | |
15175 fi | |
15176 shlibpath_var=LD_LIBRARY_PATH | |
15177 shlibpath_overrides_runpath=yes | |
15178 hardcode_into_libs=yes | |
15179 ;; | |
15180 | |
15181 newsos6) | |
15182 version_type=linux | |
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15184 shlibpath_var=LD_LIBRARY_PATH | |
15185 shlibpath_overrides_runpath=yes | |
15186 ;; | |
15187 | |
15188 nto-qnx*) | |
15189 version_type=linux | |
15190 need_lib_prefix=no | |
15191 need_version=no | |
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15193 soname_spec='${libname}${release}${shared_ext}$major' | |
15194 shlibpath_var=LD_LIBRARY_PATH | |
15195 shlibpath_overrides_runpath=yes | |
15196 ;; | |
15197 | |
15198 openbsd*) | |
15199 version_type=sunos | |
15200 need_lib_prefix=no | |
15201 need_version=no | |
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15204 shlibpath_var=LD_LIBRARY_PATH | |
15205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15206 case $host_os in | |
15207 openbsd2.[89] | openbsd2.[89].*) | |
15208 shlibpath_overrides_runpath=no | |
15209 ;; | |
15210 *) | |
15211 shlibpath_overrides_runpath=yes | |
15212 ;; | |
15213 esac | |
15214 else | |
15215 shlibpath_overrides_runpath=yes | |
15216 fi | |
15217 ;; | |
15218 | |
15219 os2*) | |
15220 libname_spec='$name' | |
15221 shrext_cmds=".dll" | |
15222 need_lib_prefix=no | |
15223 library_names_spec='$libname${shared_ext} $libname.a' | |
15224 dynamic_linker='OS/2 ld.exe' | |
15225 shlibpath_var=LIBPATH | |
15226 ;; | |
15227 | |
15228 osf3* | osf4* | osf5*) | |
15229 version_type=osf | |
15230 need_lib_prefix=no | |
15231 need_version=no | |
15232 soname_spec='${libname}${release}${shared_ext}$major' | |
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15234 shlibpath_var=LD_LIBRARY_PATH | |
15235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15237 ;; | |
15238 | |
15239 sco3.2v5*) | |
15240 version_type=osf | |
15241 soname_spec='${libname}${release}${shared_ext}$major' | |
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15243 shlibpath_var=LD_LIBRARY_PATH | |
15244 ;; | |
15245 | |
15246 solaris*) | |
15247 version_type=linux | |
15248 need_lib_prefix=no | |
15249 need_version=no | |
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15251 soname_spec='${libname}${release}${shared_ext}$major' | |
15252 shlibpath_var=LD_LIBRARY_PATH | |
15253 shlibpath_overrides_runpath=yes | |
15254 hardcode_into_libs=yes | |
15255 # ldd complains unless libraries are executable | |
15256 postinstall_cmds='chmod +x $lib' | |
15257 ;; | |
15258 | |
15259 sunos4*) | |
15260 version_type=sunos | |
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15262 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15263 shlibpath_var=LD_LIBRARY_PATH | |
15264 shlibpath_overrides_runpath=yes | |
15265 if test "$with_gnu_ld" = yes; then | |
15266 need_lib_prefix=no | |
15267 fi | |
15268 need_version=yes | |
15269 ;; | |
15270 | |
15271 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15272 version_type=linux | |
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15274 soname_spec='${libname}${release}${shared_ext}$major' | |
15275 shlibpath_var=LD_LIBRARY_PATH | |
15276 case $host_vendor in | |
15277 sni) | |
15278 shlibpath_overrides_runpath=no | |
15279 need_lib_prefix=no | |
15280 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
15281 runpath_var=LD_RUN_PATH | |
15282 ;; | |
15283 siemens) | |
15284 need_lib_prefix=no | |
15285 ;; | |
15286 motorola) | |
15287 need_lib_prefix=no | |
15288 need_version=no | |
15289 shlibpath_overrides_runpath=no | |
15290 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15291 ;; | |
15292 esac | |
15293 ;; | |
15294 | |
15295 sysv4*MP*) | |
15296 if test -d /usr/nec ;then | |
15297 version_type=linux | |
15298 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15299 soname_spec='$libname${shared_ext}.$major' | |
15300 shlibpath_var=LD_LIBRARY_PATH | |
15301 fi | |
15302 ;; | |
15303 | |
15304 uts4*) | |
15305 version_type=linux | |
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15307 soname_spec='${libname}${release}${shared_ext}$major' | |
15308 shlibpath_var=LD_LIBRARY_PATH | |
15309 ;; | |
15310 | |
15311 *) | |
15312 dynamic_linker=no | |
15313 ;; | |
15314 esac | |
15315 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
15316 echo "${ECHO_T}$dynamic_linker" >&6 | |
15317 test "$dynamic_linker" = no && can_build_shared=no | |
15318 | |
15319 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
15320 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
15321 hardcode_action_F77= | |
15322 if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
15323 test -n "$runpath_var_F77" || \ | |
15324 test "X$hardcode_automatic_F77" = "Xyes" ; then | |
15325 | |
15326 # We can hardcode non-existant directories. | |
15327 if test "$hardcode_direct_F77" != no && | |
15328 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15329 # have to relink, otherwise we might link with an installed library | |
15330 # when we should be linking with a yet-to-be-installed one | |
15331 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
15332 test "$hardcode_minus_L_F77" != no; then | |
15333 # Linking always hardcodes the temporary library directory. | |
15334 hardcode_action_F77=relink | |
15335 else | |
15336 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15337 hardcode_action_F77=immediate | |
15338 fi | |
15339 else | |
15340 # We cannot hardcode anything, or else we can only hardcode existing | |
15341 # directories. | |
15342 hardcode_action_F77=unsupported | |
15343 fi | |
15344 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | |
15345 echo "${ECHO_T}$hardcode_action_F77" >&6 | |
15346 | |
15347 if test "$hardcode_action_F77" = relink; then | |
15348 # Fast installation is not supported | |
15349 enable_fast_install=no | |
15350 elif test "$shlibpath_overrides_runpath" = yes || | |
15351 test "$enable_shared" = no; then | |
15352 # Fast installation is not necessary | |
15353 enable_fast_install=needless | |
15354 fi | |
15355 | |
15356 striplib= | |
15357 old_striplib= | |
15358 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
15359 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
15360 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
15361 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
15362 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
15363 echo "$as_me:$LINENO: result: yes" >&5 | |
15364 echo "${ECHO_T}yes" >&6 | |
15365 else | |
15366 # FIXME - insert some real tests, host_os isn't really good enough | |
15367 case $host_os in | |
15368 darwin*) | |
15369 if test -n "$STRIP" ; then | |
15370 striplib="$STRIP -x" | |
15371 echo "$as_me:$LINENO: result: yes" >&5 | |
15372 echo "${ECHO_T}yes" >&6 | |
15373 else | |
15374 echo "$as_me:$LINENO: result: no" >&5 | |
15375 echo "${ECHO_T}no" >&6 | |
15376 fi | |
15377 ;; | |
15378 *) | |
15379 echo "$as_me:$LINENO: result: no" >&5 | |
15380 echo "${ECHO_T}no" >&6 | |
15381 ;; | |
15382 esac | |
15383 fi | |
15384 | |
15385 | |
15386 | |
15387 # The else clause should only fire when bootstrapping the | |
15388 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
15389 # with your package, and you will get complaints that there are | |
15390 # no rules to generate ltmain.sh. | |
15391 if test -f "$ltmain"; then | |
15392 # See if we are running on zsh, and set the options which allow our commands through | |
15393 # without removal of \ escapes. | |
15394 if test -n "${ZSH_VERSION+set}" ; then | |
15395 setopt NO_GLOB_SUBST | |
15396 fi | |
15397 # Now quote all the things that may contain metacharacters while being | |
15398 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
15399 # variables and quote the copies for generation of the libtool script. | |
15400 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
15401 SED SHELL STRIP \ | |
15402 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
15403 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
15404 deplibs_check_method reload_flag reload_cmds need_locks \ | |
15405 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
15406 lt_cv_sys_global_symbol_to_c_name_address \ | |
15407 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
15408 old_postinstall_cmds old_postuninstall_cmds \ | |
15409 compiler_F77 \ | |
15410 CC_F77 \ | |
15411 LD_F77 \ | |
15412 lt_prog_compiler_wl_F77 \ | |
15413 lt_prog_compiler_pic_F77 \ | |
15414 lt_prog_compiler_static_F77 \ | |
15415 lt_prog_compiler_no_builtin_flag_F77 \ | |
15416 export_dynamic_flag_spec_F77 \ | |
15417 thread_safe_flag_spec_F77 \ | |
15418 whole_archive_flag_spec_F77 \ | |
15419 enable_shared_with_static_runtimes_F77 \ | |
15420 old_archive_cmds_F77 \ | |
15421 old_archive_from_new_cmds_F77 \ | |
15422 predep_objects_F77 \ | |
15423 postdep_objects_F77 \ | |
15424 predeps_F77 \ | |
15425 postdeps_F77 \ | |
15426 compiler_lib_search_path_F77 \ | |
15427 archive_cmds_F77 \ | |
15428 archive_expsym_cmds_F77 \ | |
15429 postinstall_cmds_F77 \ | |
15430 postuninstall_cmds_F77 \ | |
15431 old_archive_from_expsyms_cmds_F77 \ | |
15432 allow_undefined_flag_F77 \ | |
15433 no_undefined_flag_F77 \ | |
15434 export_symbols_cmds_F77 \ | |
15435 hardcode_libdir_flag_spec_F77 \ | |
15436 hardcode_libdir_flag_spec_ld_F77 \ | |
15437 hardcode_libdir_separator_F77 \ | |
15438 hardcode_automatic_F77 \ | |
15439 module_cmds_F77 \ | |
15440 module_expsym_cmds_F77 \ | |
15441 lt_cv_prog_compiler_c_o_F77 \ | |
15442 exclude_expsyms_F77 \ | |
15443 include_expsyms_F77; do | |
15444 | |
15445 case $var in | |
15446 old_archive_cmds_F77 | \ | |
15447 old_archive_from_new_cmds_F77 | \ | |
15448 archive_cmds_F77 | \ | |
15449 archive_expsym_cmds_F77 | \ | |
15450 module_cmds_F77 | \ | |
15451 module_expsym_cmds_F77 | \ | |
15452 old_archive_from_expsyms_cmds_F77 | \ | |
15453 export_symbols_cmds_F77 | \ | |
15454 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
15455 postinstall_cmds | postuninstall_cmds | \ | |
15456 old_postinstall_cmds | old_postuninstall_cmds | \ | |
15457 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
15458 # Double-quote double-evaled strings. | |
15459 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
15460 ;; | |
15461 *) | |
15462 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
15463 ;; | |
15464 esac | |
15465 done | |
15466 | |
15467 case $lt_echo in | |
15468 *'\$0 --fallback-echo"') | |
15469 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
15470 ;; | |
15471 esac | |
15472 | |
15473 cfgfile="$ofile" | |
15474 | |
15475 cat <<__EOF__ >> "$cfgfile" | |
15476 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
15477 | |
15478 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15479 | |
15480 # Shell to use when invoking shell scripts. | |
15481 SHELL=$lt_SHELL | |
15482 | |
15483 # Whether or not to build shared libraries. | |
15484 build_libtool_libs=$enable_shared | |
15485 | |
15486 # Whether or not to build static libraries. | |
15487 build_old_libs=$enable_static | |
15488 | |
15489 # Whether or not to add -lc for building shared libraries. | |
15490 build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
15491 | |
15492 # Whether or not to disallow shared libs when runtime libs are static | |
15493 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
15494 | |
15495 # Whether or not to optimize for fast installation. | |
15496 fast_install=$enable_fast_install | |
15497 | |
15498 # The host system. | |
15499 host_alias=$host_alias | |
15500 host=$host | |
15501 host_os=$host_os | |
15502 | |
15503 # The build system. | |
15504 build_alias=$build_alias | |
15505 build=$build | |
15506 build_os=$build_os | |
15507 | |
15508 # An echo program that does not interpret backslashes. | |
15509 echo=$lt_echo | |
15510 | |
15511 # The archiver. | |
15512 AR=$lt_AR | |
15513 AR_FLAGS=$lt_AR_FLAGS | |
15514 | |
15515 # A C compiler. | |
15516 LTCC=$lt_LTCC | |
15517 | |
15518 # A language-specific compiler. | |
15519 CC=$lt_compiler_F77 | |
15520 | |
15521 # Is the compiler the GNU C compiler? | |
15522 with_gcc=$GCC_F77 | |
15523 | |
15524 # An ERE matcher. | |
15525 EGREP=$lt_EGREP | |
15526 | |
15527 # The linker used to build libraries. | |
15528 LD=$lt_LD_F77 | |
15529 | |
15530 # Whether we need hard or soft links. | |
15531 LN_S=$lt_LN_S | |
15532 | |
15533 # A BSD-compatible nm program. | |
15534 NM=$lt_NM | |
15535 | |
15536 # A symbol stripping program | |
15537 STRIP=$lt_STRIP | |
15538 | |
15539 # Used to examine libraries when file_magic_cmd begins "file" | |
15540 MAGIC_CMD=$MAGIC_CMD | |
15541 | |
15542 # Used on cygwin: DLL creation program. | |
15543 DLLTOOL="$DLLTOOL" | |
15544 | |
15545 # Used on cygwin: object dumper. | |
15546 OBJDUMP="$OBJDUMP" | |
15547 | |
15548 # Used on cygwin: assembler. | |
15549 AS="$AS" | |
15550 | |
15551 # The name of the directory that contains temporary libtool files. | |
15552 objdir=$objdir | |
15553 | |
15554 # How to create reloadable object files. | |
15555 reload_flag=$lt_reload_flag | |
15556 reload_cmds=$lt_reload_cmds | |
15557 | |
15558 # How to pass a linker flag through the compiler. | |
15559 wl=$lt_lt_prog_compiler_wl_F77 | |
15560 | |
15561 # Object file suffix (normally "o"). | |
15562 objext="$ac_objext" | |
15563 | |
15564 # Old archive suffix (normally "a"). | |
15565 libext="$libext" | |
15566 | |
15567 # Shared library suffix (normally ".so"). | |
15568 shrext_cmds='$shrext_cmds' | |
15569 | |
15570 # Executable file suffix (normally ""). | |
15571 exeext="$exeext" | |
15572 | |
15573 # Additional compiler flags for building library objects. | |
15574 pic_flag=$lt_lt_prog_compiler_pic_F77 | |
15575 pic_mode=$pic_mode | |
15576 | |
15577 # What is the maximum length of a command? | |
15578 max_cmd_len=$lt_cv_sys_max_cmd_len | |
15579 | |
15580 # Does compiler simultaneously support -c and -o options? | |
15581 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
15582 | |
15583 # Must we lock files when doing compilation? | |
15584 need_locks=$lt_need_locks | |
15585 | |
15586 # Do we need the lib prefix for modules? | |
15587 need_lib_prefix=$need_lib_prefix | |
15588 | |
15589 # Do we need a version for libraries? | |
15590 need_version=$need_version | |
15591 | |
15592 # Whether dlopen is supported. | |
15593 dlopen_support=$enable_dlopen | |
15594 | |
15595 # Whether dlopen of programs is supported. | |
15596 dlopen_self=$enable_dlopen_self | |
15597 | |
15598 # Whether dlopen of statically linked programs is supported. | |
15599 dlopen_self_static=$enable_dlopen_self_static | |
15600 | |
15601 # Compiler flag to prevent dynamic linking. | |
15602 link_static_flag=$lt_lt_prog_compiler_static_F77 | |
15603 | |
15604 # Compiler flag to turn off builtin functions. | |
15605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
15606 | |
15607 # Compiler flag to allow reflexive dlopens. | |
15608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
15609 | |
15610 # Compiler flag to generate shared objects directly from archives. | |
15611 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
15612 | |
15613 # Compiler flag to generate thread-safe objects. | |
15614 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
15615 | |
15616 # Library versioning type. | |
15617 version_type=$version_type | |
15618 | |
15619 # Format of library name prefix. | |
15620 libname_spec=$lt_libname_spec | |
15621 | |
15622 # List of archive names. First name is the real one, the rest are links. | |
15623 # The last name is the one that the linker finds with -lNAME. | |
15624 library_names_spec=$lt_library_names_spec | |
15625 | |
15626 # The coded name of the library, if different from the real name. | |
15627 soname_spec=$lt_soname_spec | |
15628 | |
15629 # Commands used to build and install an old-style archive. | |
15630 RANLIB=$lt_RANLIB | |
15631 old_archive_cmds=$lt_old_archive_cmds_F77 | |
15632 old_postinstall_cmds=$lt_old_postinstall_cmds | |
15633 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15634 | |
15635 # Create an old-style archive from a shared archive. | |
15636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
15637 | |
15638 # Create a temporary old-style archive to link instead of a shared archive. | |
15639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
15640 | |
15641 # Commands used to build and install a shared archive. | |
15642 archive_cmds=$lt_archive_cmds_F77 | |
15643 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
15644 postinstall_cmds=$lt_postinstall_cmds | |
15645 postuninstall_cmds=$lt_postuninstall_cmds | |
15646 | |
15647 # Commands used to build a loadable module (assumed same as above if empty) | |
15648 module_cmds=$lt_module_cmds_F77 | |
15649 module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
15650 | |
15651 # Commands to strip libraries. | |
15652 old_striplib=$lt_old_striplib | |
15653 striplib=$lt_striplib | |
15654 | |
15655 # Dependencies to place before the objects being linked to create a | |
15656 # shared library. | |
15657 predep_objects=$lt_predep_objects_F77 | |
15658 | |
15659 # Dependencies to place after the objects being linked to create a | |
15660 # shared library. | |
15661 postdep_objects=$lt_postdep_objects_F77 | |
15662 | |
15663 # Dependencies to place before the objects being linked to create a | |
15664 # shared library. | |
15665 predeps=$lt_predeps_F77 | |
15666 | |
15667 # Dependencies to place after the objects being linked to create a | |
15668 # shared library. | |
15669 postdeps=$lt_postdeps_F77 | |
15670 | |
15671 # The library search path used internally by the compiler when linking | |
15672 # a shared library. | |
15673 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | |
15674 | |
15675 # Method to check whether dependent libraries are shared objects. | |
15676 deplibs_check_method=$lt_deplibs_check_method | |
15677 | |
15678 # Command to use when deplibs_check_method == file_magic. | |
15679 file_magic_cmd=$lt_file_magic_cmd | |
15680 | |
15681 # Flag that allows shared libraries with undefined symbols to be built. | |
15682 allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
15683 | |
15684 # Flag that forces no undefined symbols. | |
15685 no_undefined_flag=$lt_no_undefined_flag_F77 | |
15686 | |
15687 # Commands used to finish a libtool library installation in a directory. | |
15688 finish_cmds=$lt_finish_cmds | |
15689 | |
15690 # Same as above, but a single script fragment to be evaled but not shown. | |
15691 finish_eval=$lt_finish_eval | |
15692 | |
15693 # Take the output of nm and produce a listing of raw symbols and C names. | |
15694 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15695 | |
15696 # Transform the output of nm in a proper C declaration | |
15697 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15698 | |
15699 # Transform the output of nm in a C name address pair | |
15700 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15701 | |
15702 # This is the shared library runtime path variable. | |
15703 runpath_var=$runpath_var | |
15704 | |
15705 # This is the shared library path variable. | |
15706 shlibpath_var=$shlibpath_var | |
15707 | |
15708 # Is shlibpath searched before the hard-coded library search path? | |
15709 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15710 | |
15711 # How to hardcode a shared library path into an executable. | |
15712 hardcode_action=$hardcode_action_F77 | |
15713 | |
15714 # Whether we should hardcode library paths into libraries. | |
15715 hardcode_into_libs=$hardcode_into_libs | |
15716 | |
15717 # Flag to hardcode \$libdir into a binary during linking. | |
15718 # This must work even if \$libdir does not exist. | |
15719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
15720 | |
15721 # If ld is used when linking, flag to hardcode \$libdir into | |
15722 # a binary during linking. This must work even if \$libdir does | |
15723 # not exist. | |
15724 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
15725 | |
15726 # Whether we need a single -rpath flag with a separated argument. | |
15727 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
15728 | |
15729 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
15730 # resulting binary. | |
15731 hardcode_direct=$hardcode_direct_F77 | |
15732 | |
15733 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
15734 # resulting binary. | |
15735 hardcode_minus_L=$hardcode_minus_L_F77 | |
15736 | |
15737 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
15738 # the resulting binary. | |
15739 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
15740 | |
15741 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
15742 # and all subsequent libraries and executables linked against it. | |
15743 hardcode_automatic=$hardcode_automatic_F77 | |
15744 | |
15745 # Variables whose values should be saved in libtool wrapper scripts and | |
15746 # restored at relink time. | |
15747 variables_saved_for_relink="$variables_saved_for_relink" | |
15748 | |
15749 # Whether libtool must link a program against all its dependency libraries. | |
15750 link_all_deplibs=$link_all_deplibs_F77 | |
15751 | |
15752 # Compile-time system search path for libraries | |
15753 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15754 | |
15755 # Run-time system search path for libraries | |
15756 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15757 | |
15758 # Fix the shell variable \$srcfile for the compiler. | |
15759 fix_srcfile_path="$fix_srcfile_path_F77" | |
15760 | |
15761 # Set to yes if exported symbols are required. | |
15762 always_export_symbols=$always_export_symbols_F77 | |
15763 | |
15764 # The commands to list exported symbols. | |
15765 export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
15766 | |
15767 # The commands to extract the exported symbol list from a shared archive. | |
15768 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15769 | |
15770 # Symbols that should not be listed in the preloaded symbols. | |
15771 exclude_expsyms=$lt_exclude_expsyms_F77 | |
15772 | |
15773 # Symbols that must always be exported. | |
15774 include_expsyms=$lt_include_expsyms_F77 | |
15775 | |
15776 # ### END LIBTOOL TAG CONFIG: $tagname | |
15777 | |
15778 __EOF__ | |
15779 | |
15780 | |
15781 else | |
15782 # If there is no Makefile yet, we rely on a make rule to execute | |
15783 # `config.status --recheck' to rerun these tests and create the | |
15784 # libtool script then. | |
15785 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
15786 if test -f "$ltmain_in"; then | |
15787 test -f Makefile && make "$ltmain" | |
15788 fi | |
15789 fi | |
15790 | |
15791 | |
15792 ac_ext=c | |
15793 ac_cpp='$CPP $CPPFLAGS' | |
15794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15796 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15797 | |
15798 CC="$lt_save_CC" | |
15799 | |
15800 else | |
15801 tagname="" | |
15802 fi | |
15803 ;; | |
15804 | |
15805 GCJ) | |
15806 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
15807 | |
15808 | |
15809 | |
15810 # Source file extension for Java test sources. | |
15811 ac_ext=java | |
15812 | |
15813 # Object file extension for compiled Java test sources. | |
15814 objext=o | |
15815 objext_GCJ=$objext | |
15816 | |
15817 # Code to be used in simple compile tests | |
15818 lt_simple_compile_test_code="class foo {}\n" | |
15819 | |
15820 # Code to be used in simple link tests | |
15821 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | |
15822 | |
15823 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
15824 | |
15825 # If no C compiler was specified, use CC. | |
15826 LTCC=${LTCC-"$CC"} | |
15827 | |
15828 # Allow CC to be a program name with arguments. | |
15829 compiler=$CC | |
15830 | |
15831 | |
15832 # save warnings/boilerplate of simple test code | |
15833 ac_outfile=conftest.$ac_objext | |
15834 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
15835 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | |
15836 _lt_compiler_boilerplate=`cat conftest.err` | |
15837 $rm conftest* | |
15838 | |
15839 ac_outfile=conftest.$ac_objext | |
15840 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
15841 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | |
15842 _lt_linker_boilerplate=`cat conftest.err` | |
15843 $rm conftest* | |
15844 | |
15845 | |
15846 # Allow CC to be a program name with arguments. | |
15847 lt_save_CC="$CC" | |
15848 CC=${GCJ-"gcj"} | |
15849 compiler=$CC | |
15850 compiler_GCJ=$CC | |
15851 for cc_temp in $compiler""; do | |
15852 case $cc_temp in | |
15853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15855 \-*) ;; | |
15856 *) break;; | |
15857 esac | |
15858 done | |
15859 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
15860 | |
15861 | |
15862 # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
15863 archive_cmds_need_lc_GCJ=no | |
15864 | |
15865 old_archive_cmds_GCJ=$old_archive_cmds | |
15866 | |
15867 | |
15868 lt_prog_compiler_no_builtin_flag_GCJ= | |
15869 | |
15870 if test "$GCC" = yes; then | |
15871 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
15872 | |
15873 | |
15874 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
15875 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
15876 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
15877 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15878 else | |
15879 lt_cv_prog_compiler_rtti_exceptions=no | |
15880 ac_outfile=conftest.$ac_objext | |
15881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15882 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
15883 # Insert the option either (1) after the last *FLAGS variable, or | |
15884 # (2) before a word containing "conftest.", or (3) at the end. | |
15885 # Note that $ac_compile itself does not contain backslashes and begins | |
15886 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15887 # The option is referenced via a variable to avoid confusing sed. | |
15888 lt_compile=`echo "$ac_compile" | $SED \ | |
15889 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
15890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15891 -e 's:$: $lt_compiler_flag:'` | |
15892 (eval echo "\"\$as_me:15892: $lt_compile\"" >&5) | |
15893 (eval "$lt_compile" 2>conftest.err) | |
15894 ac_status=$? | |
15895 cat conftest.err >&5 | |
15896 echo "$as_me:15896: \$? = $ac_status" >&5 | |
15897 if (exit $ac_status) && test -s "$ac_outfile"; then | |
15898 # The compiler can only warn and ignore the option if not recognized | |
15899 # So say no if there are warnings other than the usual output. | |
15900 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | |
15901 $SED '/^$/d' conftest.err >conftest.er2 | |
15902 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | |
15903 lt_cv_prog_compiler_rtti_exceptions=yes | |
15904 fi | |
15905 fi | |
15906 $rm conftest* | |
15907 | |
15908 fi | |
15909 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
15910 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
15911 | |
15912 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
15913 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
15914 else | |
15915 : | |
15916 fi | |
15917 | |
15918 fi | |
15919 | |
15920 lt_prog_compiler_wl_GCJ= | |
15921 lt_prog_compiler_pic_GCJ= | |
15922 lt_prog_compiler_static_GCJ= | |
15923 | |
15924 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
15925 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
15926 | |
15927 if test "$GCC" = yes; then | |
15928 lt_prog_compiler_wl_GCJ='-Wl,' | |
15929 lt_prog_compiler_static_GCJ='-static' | |
15930 | |
15931 case $host_os in | |
15932 aix*) | |
15933 # All AIX code is PIC. | |
15934 if test "$host_cpu" = ia64; then | |
15935 # AIX 5 now supports IA64 processor | |
15936 lt_prog_compiler_static_GCJ='-Bstatic' | |
15937 fi | |
15938 ;; | |
15939 | |
15940 amigaos*) | |
15941 # FIXME: we need at least 68020 code to build shared libraries, but | |
15942 # adding the `-m68020' flag to GCC prevents building anything better, | |
15943 # like `-m68040'. | |
15944 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
15945 ;; | |
15946 | |
15947 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
15948 # PIC is the default for these OSes. | |
15949 ;; | |
15950 | |
15951 mingw* | pw32* | os2*) | |
15952 # This hack is so that the source file can tell whether it is being | |
15953 # built for inclusion in a dll (and should export symbols for example). | |
15954 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
15955 ;; | |
15956 | |
15957 darwin* | rhapsody*) | |
15958 # PIC is the default on this platform | |
15959 # Common symbols not allowed in MH_DYLIB files | |
15960 lt_prog_compiler_pic_GCJ='-fno-common' | |
15961 ;; | |
15962 | |
15963 msdosdjgpp*) | |
15964 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
15965 # on systems that don't support them. | |
15966 lt_prog_compiler_can_build_shared_GCJ=no | |
15967 enable_shared=no | |
15968 ;; | |
15969 | |
15970 sysv4*MP*) | |
15971 if test -d /usr/nec; then | |
15972 lt_prog_compiler_pic_GCJ=-Kconform_pic | |
15973 fi | |
15974 ;; | |
15975 | |
15976 hpux*) | |
15977 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15978 # not for PA HP-UX. | |
15979 case "$host_cpu" in | |
15980 hppa*64*|ia64*) | |
15981 # +Z the default | |
15982 ;; | |
15983 *) | |
15984 lt_prog_compiler_pic_GCJ='-fPIC' | |
15985 ;; | |
15986 esac | |
15987 ;; | |
15988 | |
15989 *) | |
15990 lt_prog_compiler_pic_GCJ='-fPIC' | |
15991 ;; | |
15992 esac | |
15993 else | |
15994 # PORTME Check for flag to pass linker flags through the system compiler. | |
15995 case $host_os in | |
15996 aix*) | |
15997 lt_prog_compiler_wl_GCJ='-Wl,' | |
15998 if test "$host_cpu" = ia64; then | |
15999 # AIX 5 now supports IA64 processor | |
16000 lt_prog_compiler_static_GCJ='-Bstatic' | |
16001 else | |
16002 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
16003 fi | |
16004 ;; | |
16005 darwin*) | |
16006 # PIC is the default on this platform | |
16007 # Common symbols not allowed in MH_DYLIB files | |
16008 case $cc_basename in | |
16009 xlc*) | |
16010 lt_prog_compiler_pic_GCJ='-qnocommon' | |
16011 lt_prog_compiler_wl_GCJ='-Wl,' | |
16012 ;; | |
16013 esac | |
16014 ;; | |
16015 | |
16016 mingw* | pw32* | os2*) | |
16017 # This hack is so that the source file can tell whether it is being | |
16018 # built for inclusion in a dll (and should export symbols for example). | |
16019 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
16020 ;; | |
16021 | |
16022 hpux9* | hpux10* | hpux11*) | |
16023 lt_prog_compiler_wl_GCJ='-Wl,' | |
16024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
16025 # not for PA HP-UX. | |
16026 case "$host_cpu" in | |
16027 hppa*64*|ia64*) | |
16028 # +Z the default | |
16029 ;; | |
16030 *) | |
16031 lt_prog_compiler_pic_GCJ='+Z' | |
16032 ;; | |
16033 esac | |
16034 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
16035 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
16036 ;; | |
16037 | |
16038 irix5* | irix6* | nonstopux*) | |
16039 lt_prog_compiler_wl_GCJ='-Wl,' | |
16040 # PIC (with -KPIC) is the default. | |
16041 lt_prog_compiler_static_GCJ='-non_shared' | |
16042 ;; | |
16043 | |
16044 newsos6) | |
16045 lt_prog_compiler_pic_GCJ='-KPIC' | |
16046 lt_prog_compiler_static_GCJ='-Bstatic' | |
16047 ;; | |
16048 | |
16049 linux*) | |
16050 case $cc_basename in | |
16051 icc* | ecc*) | |
16052 lt_prog_compiler_wl_GCJ='-Wl,' | |
16053 lt_prog_compiler_pic_GCJ='-KPIC' | |
16054 lt_prog_compiler_static_GCJ='-static' | |
16055 ;; | |
16056 pgcc* | pgf77* | pgf90*) | |
16057 # Portland Group compilers (*not* the Pentium gcc compiler, | |
16058 # which looks to be a dead project) | |
16059 lt_prog_compiler_wl_GCJ='-Wl,' | |
16060 lt_prog_compiler_pic_GCJ='-fpic' | |
16061 lt_prog_compiler_static_GCJ='-static' | |
16062 ;; | |
16063 ccc*) | |
16064 lt_prog_compiler_wl_GCJ='-Wl,' | |
16065 # All Alpha code is PIC. | |
16066 lt_prog_compiler_static_GCJ='-non_shared' | |
16067 ;; | |
16068 esac | |
16069 ;; | |
16070 | |
16071 osf3* | osf4* | osf5*) | |
16072 lt_prog_compiler_wl_GCJ='-Wl,' | |
16073 # All OSF/1 code is PIC. | |
16074 lt_prog_compiler_static_GCJ='-non_shared' | |
16075 ;; | |
16076 | |
16077 sco3.2v5*) | |
16078 lt_prog_compiler_pic_GCJ='-Kpic' | |
16079 lt_prog_compiler_static_GCJ='-dn' | |
16080 ;; | |
16081 | |
16082 solaris*) | |
16083 lt_prog_compiler_pic_GCJ='-KPIC' | |
16084 lt_prog_compiler_static_GCJ='-Bstatic' | |
16085 case $cc_basename in | |
16086 f77* | f90* | f95*) | |
16087 lt_prog_compiler_wl_GCJ='-Qoption ld ';; | |
16088 *) | |
16089 lt_prog_compiler_wl_GCJ='-Wl,';; | |
16090 esac | |
16091 ;; | |
16092 | |
16093 sunos4*) | |
16094 lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
16095 lt_prog_compiler_pic_GCJ='-PIC' | |
16096 lt_prog_compiler_static_GCJ='-Bstatic' | |
16097 ;; | |
16098 | |
16099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
16100 lt_prog_compiler_wl_GCJ='-Wl,' | |
16101 lt_prog_compiler_pic_GCJ='-KPIC' | |
16102 lt_prog_compiler_static_GCJ='-Bstatic' | |
16103 ;; | |
16104 | |
16105 sysv4*MP*) | |
16106 if test -d /usr/nec ;then | |
16107 lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
16108 lt_prog_compiler_static_GCJ='-Bstatic' | |
16109 fi | |
16110 ;; | |
16111 | |
16112 unicos*) | |
16113 lt_prog_compiler_wl_GCJ='-Wl,' | |
16114 lt_prog_compiler_can_build_shared_GCJ=no | |
16115 ;; | |
16116 | |
16117 uts4*) | |
16118 lt_prog_compiler_pic_GCJ='-pic' | |
16119 lt_prog_compiler_static_GCJ='-Bstatic' | |
16120 ;; | |
16121 | |
16122 *) | |
16123 lt_prog_compiler_can_build_shared_GCJ=no | |
16124 ;; | |
16125 esac | |
16126 fi | |
16127 | |
16128 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
16129 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | |
16130 | |
16131 # | |
16132 # Check to make sure the PIC flag actually works. | |
16133 # | |
16134 if test -n "$lt_prog_compiler_pic_GCJ"; then | |
16135 | |
16136 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
16137 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | |
16138 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
16139 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16140 else | |
16141 lt_prog_compiler_pic_works_GCJ=no | |
16142 ac_outfile=conftest.$ac_objext | |
16143 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16144 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
16145 # Insert the option either (1) after the last *FLAGS variable, or | |
16146 # (2) before a word containing "conftest.", or (3) at the end. | |
16147 # Note that $ac_compile itself does not contain backslashes and begins | |
16148 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16149 # The option is referenced via a variable to avoid confusing sed. | |
16150 lt_compile=`echo "$ac_compile" | $SED \ | |
16151 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
16152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16153 -e 's:$: $lt_compiler_flag:'` | |
16154 (eval echo "\"\$as_me:16154: $lt_compile\"" >&5) | |
16155 (eval "$lt_compile" 2>conftest.err) | |
16156 ac_status=$? | |
16157 cat conftest.err >&5 | |
16158 echo "$as_me:16158: \$? = $ac_status" >&5 | |
16159 if (exit $ac_status) && test -s "$ac_outfile"; then | |
16160 # The compiler can only warn and ignore the option if not recognized | |
16161 # So say no if there are warnings other than the usual output. | |
16162 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | |
16163 $SED '/^$/d' conftest.err >conftest.er2 | |
16164 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | |
16165 lt_prog_compiler_pic_works_GCJ=yes | |
16166 fi | |
16167 fi | |
16168 $rm conftest* | |
16169 | |
16170 fi | |
16171 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
16172 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | |
16173 | |
16174 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
16175 case $lt_prog_compiler_pic_GCJ in | |
16176 "" | " "*) ;; | |
16177 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
16178 esac | |
16179 else | |
16180 lt_prog_compiler_pic_GCJ= | |
16181 lt_prog_compiler_can_build_shared_GCJ=no | |
16182 fi | |
16183 | |
16184 fi | |
16185 case "$host_os" in | |
16186 # For platforms which do not support PIC, -DPIC is meaningless: | |
16187 *djgpp*) | |
16188 lt_prog_compiler_pic_GCJ= | |
16189 ;; | |
16190 *) | |
16191 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
16192 ;; | |
16193 esac | |
16194 | |
16195 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
16196 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
16197 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
16198 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16199 else | |
16200 lt_cv_prog_compiler_c_o_GCJ=no | |
16201 $rm -r conftest 2>/dev/null | |
16202 mkdir conftest | |
16203 cd conftest | |
16204 mkdir out | |
16205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16206 | |
16207 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16208 # Insert the option either (1) after the last *FLAGS variable, or | |
16209 # (2) before a word containing "conftest.", or (3) at the end. | |
16210 # Note that $ac_compile itself does not contain backslashes and begins | |
16211 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16212 lt_compile=`echo "$ac_compile" | $SED \ | |
16213 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
16214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16215 -e 's:$: $lt_compiler_flag:'` | |
16216 (eval echo "\"\$as_me:16216: $lt_compile\"" >&5) | |
16217 (eval "$lt_compile" 2>out/conftest.err) | |
16218 ac_status=$? | |
16219 cat out/conftest.err >&5 | |
16220 echo "$as_me:16220: \$? = $ac_status" >&5 | |
16221 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
16222 then | |
16223 # The compiler can only warn and ignore the option if not recognized | |
16224 # So say no if there are warnings | |
16225 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp | |
16226 $SED '/^$/d' out/conftest.err >out/conftest.er2 | |
16227 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
16228 lt_cv_prog_compiler_c_o_GCJ=yes | |
16229 fi | |
16230 fi | |
16231 chmod u+w . | |
16232 $rm conftest* | |
16233 # SGI C++ compiler will create directory out/ii_files/ for | |
16234 # template instantiation | |
16235 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
16236 $rm out/* && rmdir out | |
16237 cd .. | |
16238 rmdir conftest | |
16239 $rm conftest* | |
16240 | |
16241 fi | |
16242 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
16243 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | |
16244 | |
16245 | |
16246 hard_links="nottested" | |
16247 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
16248 # do not overwrite the value of need_locks provided by the user | |
16249 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
16250 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
16251 hard_links=yes | |
16252 $rm conftest* | |
16253 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16254 touch conftest.a | |
16255 ln conftest.a conftest.b 2>&5 || hard_links=no | |
16256 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16257 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
16258 echo "${ECHO_T}$hard_links" >&6 | |
16259 if test "$hard_links" = no; then | |
16260 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
16261 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
16262 need_locks=warn | |
16263 fi | |
16264 else | |
16265 need_locks=no | |
16266 fi | |
16267 | |
16268 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
16269 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
16270 | |
16271 runpath_var= | |
16272 allow_undefined_flag_GCJ= | |
16273 enable_shared_with_static_runtimes_GCJ=no | |
16274 archive_cmds_GCJ= | |
16275 archive_expsym_cmds_GCJ= | |
16276 old_archive_From_new_cmds_GCJ= | |
16277 old_archive_from_expsyms_cmds_GCJ= | |
16278 export_dynamic_flag_spec_GCJ= | |
16279 whole_archive_flag_spec_GCJ= | |
16280 thread_safe_flag_spec_GCJ= | |
16281 hardcode_libdir_flag_spec_GCJ= | |
16282 hardcode_libdir_flag_spec_ld_GCJ= | |
16283 hardcode_libdir_separator_GCJ= | |
16284 hardcode_direct_GCJ=no | |
16285 hardcode_minus_L_GCJ=no | |
16286 hardcode_shlibpath_var_GCJ=unsupported | |
16287 link_all_deplibs_GCJ=unknown | |
16288 hardcode_automatic_GCJ=no | |
16289 module_cmds_GCJ= | |
16290 module_expsym_cmds_GCJ= | |
16291 always_export_symbols_GCJ=no | |
16292 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
16293 # include_expsyms should be a list of space-separated symbols to be *always* | |
16294 # included in the symbol list | |
16295 include_expsyms_GCJ= | |
16296 # exclude_expsyms can be an extended regexp of symbols to exclude | |
16297 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
16298 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
16299 # as well as any symbol that contains `d'. | |
16300 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
16301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
16302 # platforms (ab)use it in PIC code, but their linkers get confused if | |
16303 # the symbol is explicitly referenced. Since portable code cannot | |
16304 # rely on this symbol name, it's probably fine to never include it in | |
16305 # preloaded symbol tables. | |
16306 extract_expsyms_cmds= | |
16307 # Just being paranoid about ensuring that cc_basename is set. | |
16308 for cc_temp in $compiler""; do | |
16309 case $cc_temp in | |
16310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16312 \-*) ;; | |
16313 *) break;; | |
16314 esac | |
16315 done | |
16316 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
16317 | |
16318 case $host_os in | |
16319 cygwin* | mingw* | pw32*) | |
16320 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
16321 # When not using gcc, we currently assume that we are using | |
16322 # Microsoft Visual C++. | |
16323 if test "$GCC" != yes; then | |
16324 with_gnu_ld=no | |
16325 fi | |
16326 ;; | |
16327 openbsd*) | |
16328 with_gnu_ld=no | |
16329 ;; | |
16330 esac | |
16331 | |
16332 ld_shlibs_GCJ=yes | |
16333 if test "$with_gnu_ld" = yes; then | |
16334 # If archive_cmds runs LD, not CC, wlarc should be empty | |
16335 wlarc='${wl}' | |
16336 | |
16337 # Set some defaults for GNU ld with shared library support. These | |
16338 # are reset later if shared libraries are not supported. Putting them | |
16339 # here allows them to be overridden if necessary. | |
16340 runpath_var=LD_RUN_PATH | |
16341 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
16342 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
16343 # ancient GNU ld didn't support --whole-archive et. al. | |
16344 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
16345 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
16346 else | |
16347 whole_archive_flag_spec_GCJ= | |
16348 fi | |
16349 supports_anon_versioning=no | |
16350 case `$LD -v 2>/dev/null` in | |
16351 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
16352 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
16353 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
16354 *\ 2.11.*) ;; # other 2.11 versions | |
16355 *) supports_anon_versioning=yes ;; | |
16356 esac | |
16357 | |
16358 # See if GNU ld supports shared libraries. | |
16359 case $host_os in | |
16360 aix3* | aix4* | aix5*) | |
16361 # On AIX/PPC, the GNU linker is very broken | |
16362 if test "$host_cpu" != ia64; then | |
16363 ld_shlibs_GCJ=no | |
16364 cat <<EOF 1>&2 | |
16365 | |
16366 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
16367 *** to be unable to reliably create shared libraries on AIX. | |
16368 *** Therefore, libtool is disabling shared libraries support. If you | |
16369 *** really care for shared libraries, you may want to modify your PATH | |
16370 *** so that a non-GNU linker is found, and then restart. | |
16371 | |
16372 EOF | |
16373 fi | |
16374 ;; | |
16375 | |
16376 amigaos*) | |
16377 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
16378 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16379 hardcode_minus_L_GCJ=yes | |
16380 | |
16381 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
16382 # that the semantics of dynamic libraries on AmigaOS, at least up | |
16383 # to version 4, is to share data among multiple programs linked | |
16384 # with the same dynamic library. Since this doesn't match the | |
16385 # behavior of shared libraries on other platforms, we can't use | |
16386 # them. | |
16387 ld_shlibs_GCJ=no | |
16388 ;; | |
16389 | |
16390 beos*) | |
16391 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16392 allow_undefined_flag_GCJ=unsupported | |
16393 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
16394 # support --undefined. This deserves some investigation. FIXME | |
16395 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16396 else | |
16397 ld_shlibs_GCJ=no | |
16398 fi | |
16399 ;; | |
16400 | |
16401 cygwin* | mingw* | pw32*) | |
16402 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
16403 # as there is no search path for DLLs. | |
16404 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16405 allow_undefined_flag_GCJ=unsupported | |
16406 always_export_symbols_GCJ=no | |
16407 enable_shared_with_static_runtimes_GCJ=yes | |
16408 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
16409 | |
16410 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
16411 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
16412 # If the export-symbols file already is a .def file (1st line | |
16413 # is EXPORTS), use it as is; otherwise, prepend... | |
16414 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
16415 cp $export_symbols $output_objdir/$soname.def; | |
16416 else | |
16417 echo EXPORTS > $output_objdir/$soname.def; | |
16418 cat $export_symbols >> $output_objdir/$soname.def; | |
16419 fi~ | |
16420 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
16421 else | |
16422 ld_shlibs_GCJ=no | |
16423 fi | |
16424 ;; | |
16425 | |
16426 linux*) | |
16427 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16428 tmp_addflag= | |
16429 case $cc_basename,$host_cpu in | |
16430 pgcc*) # Portland Group C compiler | |
16431 whole_archive_flag_spec_GCJ= | |
16432 ;; | |
16433 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers | |
16434 whole_archive_flag_spec_GCJ= | |
16435 tmp_addflag=' -fpic -Mnomain' ;; | |
16436 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
16437 tmp_addflag=' -i_dynamic' ;; | |
16438 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
16439 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
16440 ifc* | ifort*) # Intel Fortran compiler | |
16441 tmp_addflag=' -nofor_main' ;; | |
16442 esac | |
16443 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16444 | |
16445 if test $supports_anon_versioning = yes; then | |
16446 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | |
16447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
16448 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
16449 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
16450 fi | |
16451 else | |
16452 ld_shlibs_GCJ=no | |
16453 fi | |
16454 ;; | |
16455 | |
16456 netbsd*) | |
16457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16458 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
16459 wlarc= | |
16460 else | |
16461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16462 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16463 fi | |
16464 ;; | |
16465 | |
16466 solaris* | sysv5*) | |
16467 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
16468 ld_shlibs_GCJ=no | |
16469 cat <<EOF 1>&2 | |
16470 | |
16471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
16472 *** create shared libraries on Solaris systems. Therefore, libtool | |
16473 *** is disabling shared libraries support. We urge you to upgrade GNU | |
16474 *** binutils to release 2.9.1 or newer. Another option is to modify | |
16475 *** your PATH or compiler configuration so that the native linker is | |
16476 *** used, and then restart. | |
16477 | |
16478 EOF | |
16479 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16481 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16482 else | |
16483 ld_shlibs_GCJ=no | |
16484 fi | |
16485 ;; | |
16486 | |
16487 sunos4*) | |
16488 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16489 wlarc= | |
16490 hardcode_direct_GCJ=yes | |
16491 hardcode_shlibpath_var_GCJ=no | |
16492 ;; | |
16493 | |
16494 *) | |
16495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16496 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16497 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16498 else | |
16499 ld_shlibs_GCJ=no | |
16500 fi | |
16501 ;; | |
16502 esac | |
16503 | |
16504 if test "$ld_shlibs_GCJ" = no; then | |
16505 runpath_var= | |
16506 hardcode_libdir_flag_spec_GCJ= | |
16507 export_dynamic_flag_spec_GCJ= | |
16508 whole_archive_flag_spec_GCJ= | |
16509 fi | |
16510 else | |
16511 # PORTME fill in a description of your system's linker (not GNU ld) | |
16512 case $host_os in | |
16513 aix3*) | |
16514 allow_undefined_flag_GCJ=unsupported | |
16515 always_export_symbols_GCJ=yes | |
16516 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
16517 # Note: this linker hardcodes the directories in LIBPATH if there | |
16518 # are no directories specified by -L. | |
16519 hardcode_minus_L_GCJ=yes | |
16520 if test "$GCC" = yes && test -z "$link_static_flag"; then | |
16521 # Neither direct hardcoding nor static linking is supported with a | |
16522 # broken collect2. | |
16523 hardcode_direct_GCJ=unsupported | |
16524 fi | |
16525 ;; | |
16526 | |
16527 aix4* | aix5*) | |
16528 if test "$host_cpu" = ia64; then | |
16529 # On IA64, the linker does run time linking by default, so we don't | |
16530 # have to do anything special. | |
16531 aix_use_runtimelinking=no | |
16532 exp_sym_flag='-Bexport' | |
16533 no_entry_flag="" | |
16534 else | |
16535 # If we're using GNU nm, then we don't want the "-C" option. | |
16536 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16537 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
16538 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16539 else | |
16540 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16541 fi | |
16542 aix_use_runtimelinking=no | |
16543 | |
16544 # Test if we are trying to use run time linking or normal | |
16545 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
16546 # need to do runtime linking. | |
16547 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
16548 for ld_flag in $LDFLAGS; do | |
16549 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
16550 aix_use_runtimelinking=yes | |
16551 break | |
16552 fi | |
16553 done | |
16554 esac | |
16555 | |
16556 exp_sym_flag='-bexport' | |
16557 no_entry_flag='-bnoentry' | |
16558 fi | |
16559 | |
16560 # When large executables or shared objects are built, AIX ld can | |
16561 # have problems creating the table of contents. If linking a library | |
16562 # or program results in "error TOC overflow" add -mminimal-toc to | |
16563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
16564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
16565 | |
16566 archive_cmds_GCJ='' | |
16567 hardcode_direct_GCJ=yes | |
16568 hardcode_libdir_separator_GCJ=':' | |
16569 link_all_deplibs_GCJ=yes | |
16570 | |
16571 if test "$GCC" = yes; then | |
16572 case $host_os in aix4.[012]|aix4.[012].*) | |
16573 # We only want to do this on AIX 4.2 and lower, the check | |
16574 # below for broken collect2 doesn't work under 4.3+ | |
16575 collect2name=`${CC} -print-prog-name=collect2` | |
16576 if test -f "$collect2name" && \ | |
16577 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
16578 then | |
16579 # We have reworked collect2 | |
16580 hardcode_direct_GCJ=yes | |
16581 else | |
16582 # We have old collect2 | |
16583 hardcode_direct_GCJ=unsupported | |
16584 # It fails to find uninstalled libraries when the uninstalled | |
16585 # path is not listed in the libpath. Setting hardcode_minus_L | |
16586 # to unsupported forces relinking | |
16587 hardcode_minus_L_GCJ=yes | |
16588 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16589 hardcode_libdir_separator_GCJ= | |
16590 fi | |
16591 esac | |
16592 shared_flag='-shared' | |
16593 if test "$aix_use_runtimelinking" = yes; then | |
16594 shared_flag="$shared_flag "'${wl}-G' | |
16595 fi | |
16596 else | |
16597 # not using gcc | |
16598 if test "$host_cpu" = ia64; then | |
16599 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
16600 # chokes on -Wl,-G. The following line is correct: | |
16601 shared_flag='-G' | |
16602 else | |
16603 if test "$aix_use_runtimelinking" = yes; then | |
16604 shared_flag='${wl}-G' | |
16605 else | |
16606 shared_flag='${wl}-bM:SRE' | |
16607 fi | |
16608 fi | |
16609 fi | |
16610 | |
16611 # It seems that -bexpall does not export symbols beginning with | |
16612 # underscore (_), so it is better to generate a list of symbols to export. | |
16613 always_export_symbols_GCJ=yes | |
16614 if test "$aix_use_runtimelinking" = yes; then | |
16615 # Warning - without using the other runtime loading flags (-brtl), | |
16616 # -berok will link without error, but may produce a broken library. | |
16617 allow_undefined_flag_GCJ='-berok' | |
16618 # Determine the default libpath from the value encoded in an empty executable. | |
16619 cat >conftest.$ac_ext <<_ACEOF | |
16620 /* confdefs.h. */ | |
16621 _ACEOF | |
16622 cat confdefs.h >>conftest.$ac_ext | |
16623 cat >>conftest.$ac_ext <<_ACEOF | |
16624 /* end confdefs.h. */ | |
16625 | |
16626 int | |
16627 main () | |
16628 { | |
16629 | |
16630 ; | |
16631 return 0; | |
16632 } | |
16633 _ACEOF | |
16634 rm -f conftest.$ac_objext conftest$ac_exeext | |
16635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16636 (eval $ac_link) 2>conftest.er1 | |
16637 ac_status=$? | |
16638 grep -v '^ *+' conftest.er1 >conftest.err | |
16639 rm -f conftest.er1 | |
16640 cat conftest.err >&5 | |
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16642 (exit $ac_status); } && | |
16643 { ac_try='test -z "$ac_c_werror_flag" | |
16644 || test ! -s conftest.err' | |
16645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16646 (eval $ac_try) 2>&5 | |
16647 ac_status=$? | |
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16649 (exit $ac_status); }; } && | |
16650 { ac_try='test -s conftest$ac_exeext' | |
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16652 (eval $ac_try) 2>&5 | |
16653 ac_status=$? | |
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16655 (exit $ac_status); }; }; then | |
16656 | |
16657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16658 }'` | |
16659 # Check for a 64-bit object if we didn't find anything. | |
16660 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16661 }'`; fi | |
16662 else | |
16663 echo "$as_me: failed program was:" >&5 | |
16664 sed 's/^/| /' conftest.$ac_ext >&5 | |
16665 | |
16666 fi | |
16667 rm -f conftest.err conftest.$ac_objext \ | |
16668 conftest$ac_exeext conftest.$ac_ext | |
16669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16670 | |
16671 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16672 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
16673 else | |
16674 if test "$host_cpu" = ia64; then | |
16675 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
16676 allow_undefined_flag_GCJ="-z nodefs" | |
16677 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
16678 else | |
16679 # Determine the default libpath from the value encoded in an empty executable. | |
16680 cat >conftest.$ac_ext <<_ACEOF | |
16681 /* confdefs.h. */ | |
16682 _ACEOF | |
16683 cat confdefs.h >>conftest.$ac_ext | |
16684 cat >>conftest.$ac_ext <<_ACEOF | |
16685 /* end confdefs.h. */ | |
16686 | |
16687 int | |
16688 main () | |
16689 { | |
16690 | |
16691 ; | |
16692 return 0; | |
16693 } | |
16694 _ACEOF | |
16695 rm -f conftest.$ac_objext conftest$ac_exeext | |
16696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16697 (eval $ac_link) 2>conftest.er1 | |
16698 ac_status=$? | |
16699 grep -v '^ *+' conftest.er1 >conftest.err | |
16700 rm -f conftest.er1 | |
16701 cat conftest.err >&5 | |
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16703 (exit $ac_status); } && | |
16704 { ac_try='test -z "$ac_c_werror_flag" | |
16705 || test ! -s conftest.err' | |
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16707 (eval $ac_try) 2>&5 | |
16708 ac_status=$? | |
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16710 (exit $ac_status); }; } && | |
16711 { ac_try='test -s conftest$ac_exeext' | |
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16713 (eval $ac_try) 2>&5 | |
16714 ac_status=$? | |
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16716 (exit $ac_status); }; }; then | |
16717 | |
16718 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16719 }'` | |
16720 # Check for a 64-bit object if we didn't find anything. | |
16721 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16722 }'`; fi | |
16723 else | |
16724 echo "$as_me: failed program was:" >&5 | |
16725 sed 's/^/| /' conftest.$ac_ext >&5 | |
16726 | |
16727 fi | |
16728 rm -f conftest.err conftest.$ac_objext \ | |
16729 conftest$ac_exeext conftest.$ac_ext | |
16730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16731 | |
16732 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16733 # Warning - without using the other run time loading flags, | |
16734 # -berok will link without error, but may produce a broken library. | |
16735 no_undefined_flag_GCJ=' ${wl}-bernotok' | |
16736 allow_undefined_flag_GCJ=' ${wl}-berok' | |
16737 # -bexpall does not export symbols beginning with underscore (_) | |
16738 always_export_symbols_GCJ=yes | |
16739 # Exported symbols can be pulled into shared objects from archives | |
16740 whole_archive_flag_spec_GCJ=' ' | |
16741 archive_cmds_need_lc_GCJ=yes | |
16742 # This is similar to how AIX traditionally builds it's shared libraries. | |
16743 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
16744 fi | |
16745 fi | |
16746 ;; | |
16747 | |
16748 amigaos*) | |
16749 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
16750 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16751 hardcode_minus_L_GCJ=yes | |
16752 # see comment about different semantics on the GNU ld section | |
16753 ld_shlibs_GCJ=no | |
16754 ;; | |
16755 | |
16756 bsdi[45]*) | |
16757 export_dynamic_flag_spec_GCJ=-rdynamic | |
16758 ;; | |
16759 | |
16760 cygwin* | mingw* | pw32*) | |
16761 # When not using gcc, we currently assume that we are using | |
16762 # Microsoft Visual C++. | |
16763 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
16764 # no search path for DLLs. | |
16765 hardcode_libdir_flag_spec_GCJ=' ' | |
16766 allow_undefined_flag_GCJ=unsupported | |
16767 # Tell ltmain to make .lib files, not .a files. | |
16768 libext=lib | |
16769 # Tell ltmain to make .dll files, not .so files. | |
16770 shrext_cmds=".dll" | |
16771 # FIXME: Setting linknames here is a bad hack. | |
16772 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
16773 # The linker will automatically build a .lib file if we build a DLL. | |
16774 old_archive_From_new_cmds_GCJ='true' | |
16775 # FIXME: Should let the user specify the lib program. | |
16776 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
16777 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | |
16778 enable_shared_with_static_runtimes_GCJ=yes | |
16779 ;; | |
16780 | |
16781 darwin* | rhapsody*) | |
16782 case "$host_os" in | |
16783 rhapsody* | darwin1.[012]) | |
16784 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | |
16785 ;; | |
16786 *) # Darwin 1.3 on | |
16787 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
16788 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16789 else | |
16790 case ${MACOSX_DEPLOYMENT_TARGET} in | |
16791 10.[012]) | |
16792 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16793 ;; | |
16794 10.*) | |
16795 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | |
16796 ;; | |
16797 esac | |
16798 fi | |
16799 ;; | |
16800 esac | |
16801 archive_cmds_need_lc_GCJ=no | |
16802 hardcode_direct_GCJ=no | |
16803 hardcode_automatic_GCJ=yes | |
16804 hardcode_shlibpath_var_GCJ=unsupported | |
16805 whole_archive_flag_spec_GCJ='' | |
16806 link_all_deplibs_GCJ=yes | |
16807 if test "$GCC" = yes ; then | |
16808 output_verbose_link_cmd='echo' | |
16809 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
16810 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
16811 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
16812 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16813 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16814 else | |
16815 case $cc_basename in | |
16816 xlc*) | |
16817 output_verbose_link_cmd='echo' | |
16818 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
16819 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
16820 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
16821 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16822 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16823 ;; | |
16824 *) | |
16825 ld_shlibs_GCJ=no | |
16826 ;; | |
16827 esac | |
16828 fi | |
16829 ;; | |
16830 | |
16831 dgux*) | |
16832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16833 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16834 hardcode_shlibpath_var_GCJ=no | |
16835 ;; | |
16836 | |
16837 freebsd1*) | |
16838 ld_shlibs_GCJ=no | |
16839 ;; | |
16840 | |
16841 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
16842 # support. Future versions do this automatically, but an explicit c++rt0.o | |
16843 # does not break anything, and helps significantly (at the cost of a little | |
16844 # extra space). | |
16845 freebsd2.2*) | |
16846 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
16847 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16848 hardcode_direct_GCJ=yes | |
16849 hardcode_shlibpath_var_GCJ=no | |
16850 ;; | |
16851 | |
16852 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
16853 freebsd2*) | |
16854 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16855 hardcode_direct_GCJ=yes | |
16856 hardcode_minus_L_GCJ=yes | |
16857 hardcode_shlibpath_var_GCJ=no | |
16858 ;; | |
16859 | |
16860 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
16861 freebsd* | kfreebsd*-gnu | dragonfly*) | |
16862 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
16863 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16864 hardcode_direct_GCJ=yes | |
16865 hardcode_shlibpath_var_GCJ=no | |
16866 ;; | |
16867 | |
16868 hpux9*) | |
16869 if test "$GCC" = yes; then | |
16870 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
16871 else | |
16872 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
16873 fi | |
16874 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16875 hardcode_libdir_separator_GCJ=: | |
16876 hardcode_direct_GCJ=yes | |
16877 | |
16878 # hardcode_minus_L: Not really in the search PATH, | |
16879 # but as the default location of the library. | |
16880 hardcode_minus_L_GCJ=yes | |
16881 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16882 ;; | |
16883 | |
16884 hpux10* | hpux11*) | |
16885 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16886 case "$host_cpu" in | |
16887 hppa*64*|ia64*) | |
16888 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16889 ;; | |
16890 *) | |
16891 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16892 ;; | |
16893 esac | |
16894 else | |
16895 case "$host_cpu" in | |
16896 hppa*64*|ia64*) | |
16897 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16898 ;; | |
16899 *) | |
16900 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
16901 ;; | |
16902 esac | |
16903 fi | |
16904 if test "$with_gnu_ld" = no; then | |
16905 case "$host_cpu" in | |
16906 hppa*64*) | |
16907 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16908 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
16909 hardcode_libdir_separator_GCJ=: | |
16910 hardcode_direct_GCJ=no | |
16911 hardcode_shlibpath_var_GCJ=no | |
16912 ;; | |
16913 ia64*) | |
16914 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16915 hardcode_direct_GCJ=no | |
16916 hardcode_shlibpath_var_GCJ=no | |
16917 | |
16918 # hardcode_minus_L: Not really in the search PATH, | |
16919 # but as the default location of the library. | |
16920 hardcode_minus_L_GCJ=yes | |
16921 ;; | |
16922 *) | |
16923 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16924 hardcode_libdir_separator_GCJ=: | |
16925 hardcode_direct_GCJ=yes | |
16926 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16927 | |
16928 # hardcode_minus_L: Not really in the search PATH, | |
16929 # but as the default location of the library. | |
16930 hardcode_minus_L_GCJ=yes | |
16931 ;; | |
16932 esac | |
16933 fi | |
16934 ;; | |
16935 | |
16936 irix5* | irix6* | nonstopux*) | |
16937 if test "$GCC" = yes; then | |
16938 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
16939 else | |
16940 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
16941 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
16942 fi | |
16943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16944 hardcode_libdir_separator_GCJ=: | |
16945 link_all_deplibs_GCJ=yes | |
16946 ;; | |
16947 | |
16948 netbsd*) | |
16949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16950 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
16951 else | |
16952 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
16953 fi | |
16954 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16955 hardcode_direct_GCJ=yes | |
16956 hardcode_shlibpath_var_GCJ=no | |
16957 ;; | |
16958 | |
16959 newsos6) | |
16960 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16961 hardcode_direct_GCJ=yes | |
16962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16963 hardcode_libdir_separator_GCJ=: | |
16964 hardcode_shlibpath_var_GCJ=no | |
16965 ;; | |
16966 | |
16967 openbsd*) | |
16968 hardcode_direct_GCJ=yes | |
16969 hardcode_shlibpath_var_GCJ=no | |
16970 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
16971 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
16972 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
16973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16974 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16975 else | |
16976 case $host_os in | |
16977 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
16978 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16979 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16980 ;; | |
16981 *) | |
16982 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
16983 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16984 ;; | |
16985 esac | |
16986 fi | |
16987 ;; | |
16988 | |
16989 os2*) | |
16990 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16991 hardcode_minus_L_GCJ=yes | |
16992 allow_undefined_flag_GCJ=unsupported | |
16993 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
16994 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
16995 ;; | |
16996 | |
16997 osf3*) | |
16998 if test "$GCC" = yes; then | |
16999 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17000 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17001 else | |
17002 allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17003 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17004 fi | |
17005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17006 hardcode_libdir_separator_GCJ=: | |
17007 ;; | |
17008 | |
17009 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
17010 if test "$GCC" = yes; then | |
17011 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17012 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17013 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17014 else | |
17015 allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17016 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17017 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
17018 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
17019 | |
17020 # Both c and cxx compiler support -rpath directly | |
17021 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
17022 fi | |
17023 hardcode_libdir_separator_GCJ=: | |
17024 ;; | |
17025 | |
17026 sco3.2v5*) | |
17027 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17028 hardcode_shlibpath_var_GCJ=no | |
17029 export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
17030 runpath_var=LD_RUN_PATH | |
17031 hardcode_runpath_var=yes | |
17032 ;; | |
17033 | |
17034 solaris*) | |
17035 no_undefined_flag_GCJ=' -z text' | |
17036 if test "$GCC" = yes; then | |
17037 wlarc='${wl}' | |
17038 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17039 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17040 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
17041 else | |
17042 wlarc='' | |
17043 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17044 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17045 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
17046 fi | |
17047 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17048 hardcode_shlibpath_var_GCJ=no | |
17049 case $host_os in | |
17050 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
17051 *) | |
17052 # The compiler driver will combine linker options so we | |
17053 # cannot just pass the convience library names through | |
17054 # without $wl, iff we do not link with $LD. | |
17055 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
17056 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
17057 case $wlarc in | |
17058 '') | |
17059 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
17060 *) | |
17061 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
17062 esac ;; | |
17063 esac | |
17064 link_all_deplibs_GCJ=yes | |
17065 ;; | |
17066 | |
17067 sunos4*) | |
17068 if test "x$host_vendor" = xsequent; then | |
17069 # Use $CC to link under sequent, because it throws in some extra .o | |
17070 # files that make .init and .fini sections work. | |
17071 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
17072 else | |
17073 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
17074 fi | |
17075 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17076 hardcode_direct_GCJ=yes | |
17077 hardcode_minus_L_GCJ=yes | |
17078 hardcode_shlibpath_var_GCJ=no | |
17079 ;; | |
17080 | |
17081 sysv4) | |
17082 case $host_vendor in | |
17083 sni) | |
17084 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17085 hardcode_direct_GCJ=yes # is this really true??? | |
17086 ;; | |
17087 siemens) | |
17088 ## LD is ld it makes a PLAMLIB | |
17089 ## CC just makes a GrossModule. | |
17090 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
17091 reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
17092 hardcode_direct_GCJ=no | |
17093 ;; | |
17094 motorola) | |
17095 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17096 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
17097 ;; | |
17098 esac | |
17099 runpath_var='LD_RUN_PATH' | |
17100 hardcode_shlibpath_var_GCJ=no | |
17101 ;; | |
17102 | |
17103 sysv4.3*) | |
17104 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17105 hardcode_shlibpath_var_GCJ=no | |
17106 export_dynamic_flag_spec_GCJ='-Bexport' | |
17107 ;; | |
17108 | |
17109 sysv4*MP*) | |
17110 if test -d /usr/nec; then | |
17111 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17112 hardcode_shlibpath_var_GCJ=no | |
17113 runpath_var=LD_RUN_PATH | |
17114 hardcode_runpath_var=yes | |
17115 ld_shlibs_GCJ=yes | |
17116 fi | |
17117 ;; | |
17118 | |
17119 sysv4.2uw2*) | |
17120 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
17121 hardcode_direct_GCJ=yes | |
17122 hardcode_minus_L_GCJ=no | |
17123 hardcode_shlibpath_var_GCJ=no | |
17124 hardcode_runpath_var=yes | |
17125 runpath_var=LD_RUN_PATH | |
17126 ;; | |
17127 | |
17128 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
17129 no_undefined_flag_GCJ='${wl}-z ${wl}text' | |
17130 if test "$GCC" = yes; then | |
17131 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17132 else | |
17133 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17134 fi | |
17135 runpath_var='LD_RUN_PATH' | |
17136 hardcode_shlibpath_var_GCJ=no | |
17137 ;; | |
17138 | |
17139 sysv5*) | |
17140 no_undefined_flag_GCJ=' -z text' | |
17141 # $CC -shared without GNU ld will not create a library from C++ | |
17142 # object files and a static libstdc++, better avoid it by now | |
17143 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17144 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
17146 hardcode_libdir_flag_spec_GCJ= | |
17147 hardcode_shlibpath_var_GCJ=no | |
17148 runpath_var='LD_RUN_PATH' | |
17149 ;; | |
17150 | |
17151 uts4*) | |
17152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17153 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17154 hardcode_shlibpath_var_GCJ=no | |
17155 ;; | |
17156 | |
17157 *) | |
17158 ld_shlibs_GCJ=no | |
17159 ;; | |
17160 esac | |
17161 fi | |
17162 | |
17163 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
17164 echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | |
17165 test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
17166 | |
17167 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
17168 if test "$GCC" = yes; then | |
17169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
17170 fi | |
17171 | |
17172 # | |
17173 # Do we need to explicitly link libc? | |
17174 # | |
17175 case "x$archive_cmds_need_lc_GCJ" in | |
17176 x|xyes) | |
17177 # Assume -lc should be added | |
17178 archive_cmds_need_lc_GCJ=yes | |
17179 | |
17180 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
17181 case $archive_cmds_GCJ in | |
17182 *'~'*) | |
17183 # FIXME: we may have to deal with multi-command sequences. | |
17184 ;; | |
17185 '$CC '*) | |
17186 # Test whether the compiler implicitly links with -lc since on some | |
17187 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
17188 # to ld, don't add -lc before -lgcc. | |
17189 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
17190 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
17191 $rm conftest* | |
17192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17193 | |
17194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17195 (eval $ac_compile) 2>&5 | |
17196 ac_status=$? | |
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17198 (exit $ac_status); } 2>conftest.err; then | |
17199 soname=conftest | |
17200 lib=conftest | |
17201 libobjs=conftest.$ac_objext | |
17202 deplibs= | |
17203 wl=$lt_prog_compiler_wl_GCJ | |
17204 compiler_flags=-v | |
17205 linker_flags=-v | |
17206 verstring= | |
17207 output_objdir=. | |
17208 libname=conftest | |
17209 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
17210 allow_undefined_flag_GCJ= | |
17211 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
17212 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
17213 ac_status=$? | |
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17215 (exit $ac_status); } | |
17216 then | |
17217 archive_cmds_need_lc_GCJ=no | |
17218 else | |
17219 archive_cmds_need_lc_GCJ=yes | |
17220 fi | |
17221 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
17222 else | |
17223 cat conftest.err 1>&5 | |
17224 fi | |
17225 $rm conftest* | |
17226 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
17227 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | |
17228 ;; | |
17229 esac | |
17230 fi | |
17231 ;; | |
17232 esac | |
17233 | |
17234 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
17235 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
17236 library_names_spec= | |
17237 libname_spec='lib$name' | |
17238 soname_spec= | |
17239 shrext_cmds=".so" | |
17240 postinstall_cmds= | |
17241 postuninstall_cmds= | |
17242 finish_cmds= | |
17243 finish_eval= | |
17244 shlibpath_var= | |
17245 shlibpath_overrides_runpath=unknown | |
17246 version_type=none | |
17247 dynamic_linker="$host_os ld.so" | |
17248 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
17249 if test "$GCC" = yes; then | |
17250 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17251 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
17252 # if the path contains ";" then we assume it to be the separator | |
17253 # otherwise default to the standard path separator (i.e. ":") - it is | |
17254 # assumed that no part of a normal pathname contains ";" but that should | |
17255 # okay in the real world where ";" in dirpaths is itself problematic. | |
17256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17257 else | |
17258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17259 fi | |
17260 else | |
17261 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
17262 fi | |
17263 need_lib_prefix=unknown | |
17264 hardcode_into_libs=no | |
17265 | |
17266 # when you set need_version to no, make sure it does not cause -set_version | |
17267 # flags to be left without arguments | |
17268 need_version=unknown | |
17269 | |
17270 case $host_os in | |
17271 aix3*) | |
17272 version_type=linux | |
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
17274 shlibpath_var=LIBPATH | |
17275 | |
17276 # AIX 3 has no versioning support, so we append a major version to the name. | |
17277 soname_spec='${libname}${release}${shared_ext}$major' | |
17278 ;; | |
17279 | |
17280 aix4* | aix5*) | |
17281 version_type=linux | |
17282 need_lib_prefix=no | |
17283 need_version=no | |
17284 hardcode_into_libs=yes | |
17285 if test "$host_cpu" = ia64; then | |
17286 # AIX 5 supports IA64 | |
17287 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
17288 shlibpath_var=LD_LIBRARY_PATH | |
17289 else | |
17290 # With GCC up to 2.95.x, collect2 would create an import file | |
17291 # for dependence libraries. The import file would start with | |
17292 # the line `#! .'. This would cause the generated library to | |
17293 # depend on `.', always an invalid library. This was fixed in | |
17294 # development snapshots of GCC prior to 3.0. | |
17295 case $host_os in | |
17296 aix4 | aix4.[01] | aix4.[01].*) | |
17297 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17298 echo ' yes ' | |
17299 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
17300 : | |
17301 else | |
17302 can_build_shared=no | |
17303 fi | |
17304 ;; | |
17305 esac | |
17306 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
17307 # soname into executable. Probably we can add versioning support to | |
17308 # collect2, so additional links can be useful in future. | |
17309 if test "$aix_use_runtimelinking" = yes; then | |
17310 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
17311 # instead of lib<name>.a to let people know that these are not | |
17312 # typical AIX shared libraries. | |
17313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17314 else | |
17315 # We preserve .a as extension for shared libraries through AIX4.2 | |
17316 # and later when we are not doing run time linking. | |
17317 library_names_spec='${libname}${release}.a $libname.a' | |
17318 soname_spec='${libname}${release}${shared_ext}$major' | |
17319 fi | |
17320 shlibpath_var=LIBPATH | |
17321 fi | |
17322 ;; | |
17323 | |
17324 amigaos*) | |
17325 library_names_spec='$libname.ixlibrary $libname.a' | |
17326 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
17327 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' | |
17328 ;; | |
17329 | |
17330 beos*) | |
17331 library_names_spec='${libname}${shared_ext}' | |
17332 dynamic_linker="$host_os ld.so" | |
17333 shlibpath_var=LIBRARY_PATH | |
17334 ;; | |
17335 | |
17336 bsdi[45]*) | |
17337 version_type=linux | |
17338 need_version=no | |
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17340 soname_spec='${libname}${release}${shared_ext}$major' | |
17341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
17342 shlibpath_var=LD_LIBRARY_PATH | |
17343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
17344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17345 # the default ld.so.conf also contains /usr/contrib/lib and | |
17346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17347 # libtool to hard-code these into programs | |
17348 ;; | |
17349 | |
17350 cygwin* | mingw* | pw32*) | |
17351 version_type=windows | |
17352 shrext_cmds=".dll" | |
17353 need_version=no | |
17354 need_lib_prefix=no | |
17355 | |
17356 case $GCC,$host_os in | |
17357 yes,cygwin* | yes,mingw* | yes,pw32*) | |
17358 library_names_spec='$libname.dll.a' | |
17359 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
17360 postinstall_cmds='base_file=`basename \${file}`~ | |
17361 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
17362 dldir=$destdir/`dirname \$dlpath`~ | |
17363 test -d \$dldir || mkdir -p \$dldir~ | |
17364 $install_prog $dir/$dlname \$dldir/$dlname' | |
17365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17366 dlpath=$dir/\$dldll~ | |
17367 $rm \$dlpath' | |
17368 shlibpath_overrides_runpath=yes | |
17369 | |
17370 case $host_os in | |
17371 cygwin*) | |
17372 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
17373 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17374 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
17375 ;; | |
17376 mingw*) | |
17377 # MinGW DLLs use traditional 'lib' prefix | |
17378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17380 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
17381 # It is most probably a Windows format PATH printed by | |
17382 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
17383 # path with ; separators, and with drive letters. We can handle the | |
17384 # drive letters (cygwin fileutils understands them), so leave them, | |
17385 # especially as we might pass files found there to a mingw objdump, | |
17386 # which wouldn't understand a cygwinified path. Ahh. | |
17387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17388 else | |
17389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17390 fi | |
17391 ;; | |
17392 pw32*) | |
17393 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
17394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17395 ;; | |
17396 esac | |
17397 ;; | |
17398 | |
17399 *) | |
17400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
17401 ;; | |
17402 esac | |
17403 dynamic_linker='Win32 ld.exe' | |
17404 # FIXME: first we should search . and the directory the executable is in | |
17405 shlibpath_var=PATH | |
17406 ;; | |
17407 | |
17408 darwin* | rhapsody*) | |
17409 dynamic_linker="$host_os dyld" | |
17410 version_type=darwin | |
17411 need_lib_prefix=no | |
17412 need_version=no | |
17413 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
17414 soname_spec='${libname}${release}${major}$shared_ext' | |
17415 shlibpath_overrides_runpath=yes | |
17416 shlibpath_var=DYLD_LIBRARY_PATH | |
17417 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | |
17418 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
17419 if test "$GCC" = yes; then | |
17420 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
17421 else | |
17422 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
17423 fi | |
17424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
17425 ;; | |
17426 | |
17427 dgux*) | |
17428 version_type=linux | |
17429 need_lib_prefix=no | |
17430 need_version=no | |
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
17432 soname_spec='${libname}${release}${shared_ext}$major' | |
17433 shlibpath_var=LD_LIBRARY_PATH | |
17434 ;; | |
17435 | |
17436 freebsd1*) | |
17437 dynamic_linker=no | |
17438 ;; | |
17439 | |
17440 kfreebsd*-gnu) | |
17441 version_type=linux | |
17442 need_lib_prefix=no | |
17443 need_version=no | |
17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17445 soname_spec='${libname}${release}${shared_ext}$major' | |
17446 shlibpath_var=LD_LIBRARY_PATH | |
17447 shlibpath_overrides_runpath=no | |
17448 hardcode_into_libs=yes | |
17449 dynamic_linker='GNU ld.so' | |
17450 ;; | |
17451 | |
17452 freebsd* | dragonfly*) | |
17453 # DragonFly does not have aout. When/if they implement a new | |
17454 # versioning mechanism, adjust this. | |
17455 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
17456 version_type=freebsd-$objformat | |
17457 case $version_type in | |
17458 freebsd-elf*) | |
17459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17460 need_version=no | |
17461 need_lib_prefix=no | |
17462 ;; | |
17463 freebsd-*) | |
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
17465 need_version=yes | |
17466 ;; | |
17467 esac | |
17468 shlibpath_var=LD_LIBRARY_PATH | |
17469 case $host_os in | |
17470 freebsd2*) | |
17471 shlibpath_overrides_runpath=yes | |
17472 ;; | |
17473 freebsd3.[01]* | freebsdelf3.[01]*) | |
17474 shlibpath_overrides_runpath=yes | |
17475 hardcode_into_libs=yes | |
17476 ;; | |
17477 *) # from 3.2 on | |
17478 shlibpath_overrides_runpath=no | |
17479 hardcode_into_libs=yes | |
17480 ;; | |
17481 esac | |
17482 ;; | |
17483 | |
17484 gnu*) | |
17485 version_type=linux | |
17486 need_lib_prefix=no | |
17487 need_version=no | |
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
17489 soname_spec='${libname}${release}${shared_ext}$major' | |
17490 shlibpath_var=LD_LIBRARY_PATH | |
17491 hardcode_into_libs=yes | |
17492 ;; | |
17493 | |
17494 hpux9* | hpux10* | hpux11*) | |
17495 # Give a soname corresponding to the major version so that dld.sl refuses to | |
17496 # link against other versions. | |
17497 version_type=sunos | |
17498 need_lib_prefix=no | |
17499 need_version=no | |
17500 case "$host_cpu" in | |
17501 ia64*) | |
17502 shrext_cmds='.so' | |
17503 hardcode_into_libs=yes | |
17504 dynamic_linker="$host_os dld.so" | |
17505 shlibpath_var=LD_LIBRARY_PATH | |
17506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17508 soname_spec='${libname}${release}${shared_ext}$major' | |
17509 if test "X$HPUX_IA64_MODE" = X32; then | |
17510 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
17511 else | |
17512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
17513 fi | |
17514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17515 ;; | |
17516 hppa*64*) | |
17517 shrext_cmds='.sl' | |
17518 hardcode_into_libs=yes | |
17519 dynamic_linker="$host_os dld.sl" | |
17520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
17521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17523 soname_spec='${libname}${release}${shared_ext}$major' | |
17524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
17525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17526 ;; | |
17527 *) | |
17528 shrext_cmds='.sl' | |
17529 dynamic_linker="$host_os dld.sl" | |
17530 shlibpath_var=SHLIB_PATH | |
17531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
17532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17533 soname_spec='${libname}${release}${shared_ext}$major' | |
17534 ;; | |
17535 esac | |
17536 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
17537 postinstall_cmds='chmod 555 $lib' | |
17538 ;; | |
17539 | |
17540 irix5* | irix6* | nonstopux*) | |
17541 case $host_os in | |
17542 nonstopux*) version_type=nonstopux ;; | |
17543 *) | |
17544 if test "$lt_cv_prog_gnu_ld" = yes; then | |
17545 version_type=linux | |
17546 else | |
17547 version_type=irix | |
17548 fi ;; | |
17549 esac | |
17550 need_lib_prefix=no | |
17551 need_version=no | |
17552 soname_spec='${libname}${release}${shared_ext}$major' | |
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17554 case $host_os in | |
17555 irix5* | nonstopux*) | |
17556 libsuff= shlibsuff= | |
17557 ;; | |
17558 *) | |
17559 case $LD in # libtool.m4 will add one of these switches to LD | |
17560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
17561 libsuff= shlibsuff= libmagic=32-bit;; | |
17562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
17563 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
17565 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17566 *) libsuff= shlibsuff= libmagic=never-match;; | |
17567 esac | |
17568 ;; | |
17569 esac | |
17570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17571 shlibpath_overrides_runpath=no | |
17572 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
17573 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
17574 hardcode_into_libs=yes | |
17575 ;; | |
17576 | |
17577 # No shared lib support for Linux oldld, aout, or coff. | |
17578 linux*oldld* | linux*aout* | linux*coff*) | |
17579 dynamic_linker=no | |
17580 ;; | |
17581 | |
17582 # This must be Linux ELF. | |
17583 linux*) | |
17584 version_type=linux | |
17585 need_lib_prefix=no | |
17586 need_version=no | |
17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17588 soname_spec='${libname}${release}${shared_ext}$major' | |
17589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
17590 shlibpath_var=LD_LIBRARY_PATH | |
17591 shlibpath_overrides_runpath=no | |
17592 # This implies no fast_install, which is unacceptable. | |
17593 # Some rework will be needed to allow for fast_install | |
17594 # before this can be enabled. | |
17595 hardcode_into_libs=yes | |
17596 | |
17597 # find out which ABI we are using | |
17598 libsuff= | |
17599 case "$host_cpu" in | |
17600 x86_64*|s390x*|powerpc64*) | |
17601 echo '#line 17601 "configure"' > conftest.$ac_ext | |
17602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17603 (eval $ac_compile) 2>&5 | |
17604 ac_status=$? | |
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17606 (exit $ac_status); }; then | |
17607 case `/usr/bin/file conftest.$ac_objext` in | |
17608 *64-bit*) | |
17609 libsuff=64 | |
17610 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
17611 ;; | |
17612 esac | |
17613 fi | |
17614 rm -rf conftest* | |
17615 ;; | |
17616 esac | |
17617 | |
17618 # Append ld.so.conf contents to the search path | |
17619 if test -f /etc/ld.so.conf; then | |
17620 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
17621 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | |
17622 fi | |
17623 | |
17624 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
17625 # powerpc, because MkLinux only supported shared libraries with the | |
17626 # GNU dynamic linker. Since this was broken with cross compilers, | |
17627 # most powerpc-linux boxes support dynamic linking these days and | |
17628 # people can always --disable-shared, the test was removed, and we | |
17629 # assume the GNU/Linux dynamic linker is in use. | |
17630 dynamic_linker='GNU/Linux ld.so' | |
17631 ;; | |
17632 | |
17633 knetbsd*-gnu) | |
17634 version_type=linux | |
17635 need_lib_prefix=no | |
17636 need_version=no | |
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17638 soname_spec='${libname}${release}${shared_ext}$major' | |
17639 shlibpath_var=LD_LIBRARY_PATH | |
17640 shlibpath_overrides_runpath=no | |
17641 hardcode_into_libs=yes | |
17642 dynamic_linker='GNU ld.so' | |
17643 ;; | |
17644 | |
17645 netbsd*) | |
17646 version_type=sunos | |
17647 need_lib_prefix=no | |
17648 need_version=no | |
17649 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17652 dynamic_linker='NetBSD (a.out) ld.so' | |
17653 else | |
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17655 soname_spec='${libname}${release}${shared_ext}$major' | |
17656 dynamic_linker='NetBSD ld.elf_so' | |
17657 fi | |
17658 shlibpath_var=LD_LIBRARY_PATH | |
17659 shlibpath_overrides_runpath=yes | |
17660 hardcode_into_libs=yes | |
17661 ;; | |
17662 | |
17663 newsos6) | |
17664 version_type=linux | |
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17666 shlibpath_var=LD_LIBRARY_PATH | |
17667 shlibpath_overrides_runpath=yes | |
17668 ;; | |
17669 | |
17670 nto-qnx*) | |
17671 version_type=linux | |
17672 need_lib_prefix=no | |
17673 need_version=no | |
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17675 soname_spec='${libname}${release}${shared_ext}$major' | |
17676 shlibpath_var=LD_LIBRARY_PATH | |
17677 shlibpath_overrides_runpath=yes | |
17678 ;; | |
17679 | |
17680 openbsd*) | |
17681 version_type=sunos | |
17682 need_lib_prefix=no | |
17683 need_version=no | |
17684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17686 shlibpath_var=LD_LIBRARY_PATH | |
17687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17688 case $host_os in | |
17689 openbsd2.[89] | openbsd2.[89].*) | |
17690 shlibpath_overrides_runpath=no | |
17691 ;; | |
17692 *) | |
17693 shlibpath_overrides_runpath=yes | |
17694 ;; | |
17695 esac | |
17696 else | |
17697 shlibpath_overrides_runpath=yes | |
17698 fi | |
17699 ;; | |
17700 | |
17701 os2*) | |
17702 libname_spec='$name' | |
17703 shrext_cmds=".dll" | |
17704 need_lib_prefix=no | |
17705 library_names_spec='$libname${shared_ext} $libname.a' | |
17706 dynamic_linker='OS/2 ld.exe' | |
17707 shlibpath_var=LIBPATH | |
17708 ;; | |
17709 | |
17710 osf3* | osf4* | osf5*) | |
17711 version_type=osf | |
17712 need_lib_prefix=no | |
17713 need_version=no | |
17714 soname_spec='${libname}${release}${shared_ext}$major' | |
17715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17716 shlibpath_var=LD_LIBRARY_PATH | |
17717 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
17718 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
17719 ;; | |
17720 | |
17721 sco3.2v5*) | |
17722 version_type=osf | |
17723 soname_spec='${libname}${release}${shared_ext}$major' | |
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17725 shlibpath_var=LD_LIBRARY_PATH | |
17726 ;; | |
17727 | |
17728 solaris*) | |
17729 version_type=linux | |
17730 need_lib_prefix=no | |
17731 need_version=no | |
17732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17733 soname_spec='${libname}${release}${shared_ext}$major' | |
17734 shlibpath_var=LD_LIBRARY_PATH | |
17735 shlibpath_overrides_runpath=yes | |
17736 hardcode_into_libs=yes | |
17737 # ldd complains unless libraries are executable | |
17738 postinstall_cmds='chmod +x $lib' | |
17739 ;; | |
17740 | |
17741 sunos4*) | |
17742 version_type=sunos | |
17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17744 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
17745 shlibpath_var=LD_LIBRARY_PATH | |
17746 shlibpath_overrides_runpath=yes | |
17747 if test "$with_gnu_ld" = yes; then | |
17748 need_lib_prefix=no | |
17749 fi | |
17750 need_version=yes | |
17751 ;; | |
17752 | |
17753 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
17754 version_type=linux | |
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17756 soname_spec='${libname}${release}${shared_ext}$major' | |
17757 shlibpath_var=LD_LIBRARY_PATH | |
17758 case $host_vendor in | |
17759 sni) | |
17760 shlibpath_overrides_runpath=no | |
17761 need_lib_prefix=no | |
17762 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
17763 runpath_var=LD_RUN_PATH | |
17764 ;; | |
17765 siemens) | |
17766 need_lib_prefix=no | |
17767 ;; | |
17768 motorola) | |
17769 need_lib_prefix=no | |
17770 need_version=no | |
17771 shlibpath_overrides_runpath=no | |
17772 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17773 ;; | |
17774 esac | |
17775 ;; | |
17776 | |
17777 sysv4*MP*) | |
17778 if test -d /usr/nec ;then | |
17779 version_type=linux | |
17780 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
17781 soname_spec='$libname${shared_ext}.$major' | |
17782 shlibpath_var=LD_LIBRARY_PATH | |
17783 fi | |
17784 ;; | |
17785 | |
17786 uts4*) | |
17787 version_type=linux | |
17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17789 soname_spec='${libname}${release}${shared_ext}$major' | |
17790 shlibpath_var=LD_LIBRARY_PATH | |
17791 ;; | |
17792 | |
17793 *) | |
17794 dynamic_linker=no | |
17795 ;; | |
17796 esac | |
17797 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
17798 echo "${ECHO_T}$dynamic_linker" >&6 | |
17799 test "$dynamic_linker" = no && can_build_shared=no | |
17800 | |
17801 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
17802 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
17803 hardcode_action_GCJ= | |
17804 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
17805 test -n "$runpath_var_GCJ" || \ | |
17806 test "X$hardcode_automatic_GCJ" = "Xyes" ; then | |
17807 | |
17808 # We can hardcode non-existant directories. | |
17809 if test "$hardcode_direct_GCJ" != no && | |
17810 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
17811 # have to relink, otherwise we might link with an installed library | |
17812 # when we should be linking with a yet-to-be-installed one | |
17813 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
17814 test "$hardcode_minus_L_GCJ" != no; then | |
17815 # Linking always hardcodes the temporary library directory. | |
17816 hardcode_action_GCJ=relink | |
17817 else | |
17818 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
17819 hardcode_action_GCJ=immediate | |
17820 fi | |
17821 else | |
17822 # We cannot hardcode anything, or else we can only hardcode existing | |
17823 # directories. | |
17824 hardcode_action_GCJ=unsupported | |
17825 fi | |
17826 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
17827 echo "${ECHO_T}$hardcode_action_GCJ" >&6 | |
17828 | |
17829 if test "$hardcode_action_GCJ" = relink; then | |
17830 # Fast installation is not supported | |
17831 enable_fast_install=no | |
17832 elif test "$shlibpath_overrides_runpath" = yes || | |
17833 test "$enable_shared" = no; then | |
17834 # Fast installation is not necessary | |
17835 enable_fast_install=needless | |
17836 fi | |
17837 | |
17838 striplib= | |
17839 old_striplib= | |
17840 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
17841 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
17842 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
17843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
17844 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
17845 echo "$as_me:$LINENO: result: yes" >&5 | |
17846 echo "${ECHO_T}yes" >&6 | |
17847 else | |
17848 # FIXME - insert some real tests, host_os isn't really good enough | |
17849 case $host_os in | |
17850 darwin*) | |
17851 if test -n "$STRIP" ; then | |
17852 striplib="$STRIP -x" | |
17853 echo "$as_me:$LINENO: result: yes" >&5 | |
17854 echo "${ECHO_T}yes" >&6 | |
17855 else | |
17856 echo "$as_me:$LINENO: result: no" >&5 | |
17857 echo "${ECHO_T}no" >&6 | |
17858 fi | |
17859 ;; | |
17860 *) | |
17861 echo "$as_me:$LINENO: result: no" >&5 | |
17862 echo "${ECHO_T}no" >&6 | |
17863 ;; | |
17864 esac | |
17865 fi | |
17866 | |
17867 if test "x$enable_dlopen" != xyes; then | |
17868 enable_dlopen=unknown | |
17869 enable_dlopen_self=unknown | |
17870 enable_dlopen_self_static=unknown | |
17871 else | |
17872 lt_cv_dlopen=no | |
17873 lt_cv_dlopen_libs= | |
17874 | |
17875 case $host_os in | |
17876 beos*) | |
17877 lt_cv_dlopen="load_add_on" | |
17878 lt_cv_dlopen_libs= | |
17879 lt_cv_dlopen_self=yes | |
17880 ;; | |
17881 | |
17882 mingw* | pw32*) | |
17883 lt_cv_dlopen="LoadLibrary" | |
17884 lt_cv_dlopen_libs= | |
17885 ;; | |
17886 | |
17887 cygwin*) | |
17888 lt_cv_dlopen="dlopen" | |
17889 lt_cv_dlopen_libs= | |
17890 ;; | |
17891 | |
17892 darwin*) | |
17893 # if libdl is installed we need to link against it | |
17894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
17895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
17896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
17897 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17898 else | |
17899 ac_check_lib_save_LIBS=$LIBS | |
17900 LIBS="-ldl $LIBS" | |
17901 cat >conftest.$ac_ext <<_ACEOF | |
17902 /* confdefs.h. */ | |
17903 _ACEOF | |
17904 cat confdefs.h >>conftest.$ac_ext | |
17905 cat >>conftest.$ac_ext <<_ACEOF | |
17906 /* end confdefs.h. */ | |
17907 | |
17908 /* Override any gcc2 internal prototype to avoid an error. */ | |
17909 #ifdef __cplusplus | |
17910 extern "C" | |
17911 #endif | |
17912 /* We use char because int might match the return type of a gcc2 | |
17913 builtin and then its argument prototype would still apply. */ | |
17914 char dlopen (); | |
17915 int | |
17916 main () | |
17917 { | |
17918 dlopen (); | |
17919 ; | |
17920 return 0; | |
17921 } | |
17922 _ACEOF | |
17923 rm -f conftest.$ac_objext conftest$ac_exeext | |
17924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17925 (eval $ac_link) 2>conftest.er1 | |
17926 ac_status=$? | |
17927 grep -v '^ *+' conftest.er1 >conftest.err | |
17928 rm -f conftest.er1 | |
17929 cat conftest.err >&5 | |
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17931 (exit $ac_status); } && | |
17932 { ac_try='test -z "$ac_c_werror_flag" | |
17933 || test ! -s conftest.err' | |
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17935 (eval $ac_try) 2>&5 | |
17936 ac_status=$? | |
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17938 (exit $ac_status); }; } && | |
17939 { ac_try='test -s conftest$ac_exeext' | |
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17941 (eval $ac_try) 2>&5 | |
17942 ac_status=$? | |
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17944 (exit $ac_status); }; }; then | |
17945 ac_cv_lib_dl_dlopen=yes | |
17946 else | |
17947 echo "$as_me: failed program was:" >&5 | |
17948 sed 's/^/| /' conftest.$ac_ext >&5 | |
17949 | |
17950 ac_cv_lib_dl_dlopen=no | |
17951 fi | |
17952 rm -f conftest.err conftest.$ac_objext \ | |
17953 conftest$ac_exeext conftest.$ac_ext | |
17954 LIBS=$ac_check_lib_save_LIBS | |
17955 fi | |
17956 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
17957 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
17958 if test $ac_cv_lib_dl_dlopen = yes; then | |
17959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
17960 else | |
17961 | |
17962 lt_cv_dlopen="dyld" | |
17963 lt_cv_dlopen_libs= | |
17964 lt_cv_dlopen_self=yes | |
17965 | |
17966 fi | |
17967 | |
17968 ;; | |
17969 | |
17970 *) | |
17971 echo "$as_me:$LINENO: checking for shl_load" >&5 | |
17972 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
17973 if test "${ac_cv_func_shl_load+set}" = set; then | |
17974 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17975 else | |
17976 cat >conftest.$ac_ext <<_ACEOF | |
17977 /* confdefs.h. */ | |
17978 _ACEOF | |
17979 cat confdefs.h >>conftest.$ac_ext | |
17980 cat >>conftest.$ac_ext <<_ACEOF | |
17981 /* end confdefs.h. */ | |
17982 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
17983 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17984 #define shl_load innocuous_shl_load | |
17985 | |
17986 /* System header to define __stub macros and hopefully few prototypes, | |
17987 which can conflict with char shl_load (); below. | |
17988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17989 <limits.h> exists even on freestanding compilers. */ | |
17990 | |
17991 #ifdef __STDC__ | |
17992 # include <limits.h> | |
17993 #else | |
17994 # include <assert.h> | |
17995 #endif | |
17996 | |
17997 #undef shl_load | |
17998 | |
17999 /* Override any gcc2 internal prototype to avoid an error. */ | |
18000 #ifdef __cplusplus | |
18001 extern "C" | |
18002 { | |
18003 #endif | |
18004 /* We use char because int might match the return type of a gcc2 | |
18005 builtin and then its argument prototype would still apply. */ | |
18006 char shl_load (); | |
18007 /* The GNU C library defines this for functions which it implements | |
18008 to always fail with ENOSYS. Some functions are actually named | |
18009 something starting with __ and the normal name is an alias. */ | |
18010 #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
18011 choke me | |
18012 #else | |
18013 char (*f) () = shl_load; | |
18014 #endif | |
18015 #ifdef __cplusplus | |
18016 } | |
18017 #endif | |
18018 | |
18019 int | |
18020 main () | |
18021 { | |
18022 return f != shl_load; | |
18023 ; | |
18024 return 0; | |
18025 } | |
18026 _ACEOF | |
18027 rm -f conftest.$ac_objext conftest$ac_exeext | |
18028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18029 (eval $ac_link) 2>conftest.er1 | |
18030 ac_status=$? | |
18031 grep -v '^ *+' conftest.er1 >conftest.err | |
18032 rm -f conftest.er1 | |
18033 cat conftest.err >&5 | |
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18035 (exit $ac_status); } && | |
18036 { ac_try='test -z "$ac_c_werror_flag" | |
18037 || test ! -s conftest.err' | |
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18039 (eval $ac_try) 2>&5 | |
18040 ac_status=$? | |
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18042 (exit $ac_status); }; } && | |
18043 { ac_try='test -s conftest$ac_exeext' | |
18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18045 (eval $ac_try) 2>&5 | |
18046 ac_status=$? | |
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18048 (exit $ac_status); }; }; then | |
18049 ac_cv_func_shl_load=yes | |
18050 else | |
18051 echo "$as_me: failed program was:" >&5 | |
18052 sed 's/^/| /' conftest.$ac_ext >&5 | |
18053 | |
18054 ac_cv_func_shl_load=no | |
18055 fi | |
18056 rm -f conftest.err conftest.$ac_objext \ | |
18057 conftest$ac_exeext conftest.$ac_ext | |
18058 fi | |
18059 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
18060 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
18061 if test $ac_cv_func_shl_load = yes; then | |
18062 lt_cv_dlopen="shl_load" | |
18063 else | |
18064 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
18065 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
18066 if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
18067 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18068 else | |
18069 ac_check_lib_save_LIBS=$LIBS | |
18070 LIBS="-ldld $LIBS" | |
18071 cat >conftest.$ac_ext <<_ACEOF | |
18072 /* confdefs.h. */ | |
18073 _ACEOF | |
18074 cat confdefs.h >>conftest.$ac_ext | |
18075 cat >>conftest.$ac_ext <<_ACEOF | |
18076 /* end confdefs.h. */ | |
18077 | |
18078 /* Override any gcc2 internal prototype to avoid an error. */ | |
18079 #ifdef __cplusplus | |
18080 extern "C" | |
18081 #endif | |
18082 /* We use char because int might match the return type of a gcc2 | |
18083 builtin and then its argument prototype would still apply. */ | |
18084 char shl_load (); | |
18085 int | |
18086 main () | |
18087 { | |
18088 shl_load (); | |
18089 ; | |
18090 return 0; | |
18091 } | |
18092 _ACEOF | |
18093 rm -f conftest.$ac_objext conftest$ac_exeext | |
18094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18095 (eval $ac_link) 2>conftest.er1 | |
18096 ac_status=$? | |
18097 grep -v '^ *+' conftest.er1 >conftest.err | |
18098 rm -f conftest.er1 | |
18099 cat conftest.err >&5 | |
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18101 (exit $ac_status); } && | |
18102 { ac_try='test -z "$ac_c_werror_flag" | |
18103 || test ! -s conftest.err' | |
18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18105 (eval $ac_try) 2>&5 | |
18106 ac_status=$? | |
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18108 (exit $ac_status); }; } && | |
18109 { ac_try='test -s conftest$ac_exeext' | |
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18111 (eval $ac_try) 2>&5 | |
18112 ac_status=$? | |
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18114 (exit $ac_status); }; }; then | |
18115 ac_cv_lib_dld_shl_load=yes | |
18116 else | |
18117 echo "$as_me: failed program was:" >&5 | |
18118 sed 's/^/| /' conftest.$ac_ext >&5 | |
18119 | |
18120 ac_cv_lib_dld_shl_load=no | |
18121 fi | |
18122 rm -f conftest.err conftest.$ac_objext \ | |
18123 conftest$ac_exeext conftest.$ac_ext | |
18124 LIBS=$ac_check_lib_save_LIBS | |
18125 fi | |
18126 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
18127 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
18128 if test $ac_cv_lib_dld_shl_load = yes; then | |
18129 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
18130 else | |
18131 echo "$as_me:$LINENO: checking for dlopen" >&5 | |
18132 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
18133 if test "${ac_cv_func_dlopen+set}" = set; then | |
18134 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18135 else | |
18136 cat >conftest.$ac_ext <<_ACEOF | |
18137 /* confdefs.h. */ | |
18138 _ACEOF | |
18139 cat confdefs.h >>conftest.$ac_ext | |
18140 cat >>conftest.$ac_ext <<_ACEOF | |
18141 /* end confdefs.h. */ | |
18142 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
18143 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18144 #define dlopen innocuous_dlopen | |
18145 | |
18146 /* System header to define __stub macros and hopefully few prototypes, | |
18147 which can conflict with char dlopen (); below. | |
18148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18149 <limits.h> exists even on freestanding compilers. */ | |
18150 | |
18151 #ifdef __STDC__ | |
18152 # include <limits.h> | |
18153 #else | |
18154 # include <assert.h> | |
18155 #endif | |
18156 | |
18157 #undef dlopen | |
18158 | |
18159 /* Override any gcc2 internal prototype to avoid an error. */ | |
18160 #ifdef __cplusplus | |
18161 extern "C" | |
18162 { | |
18163 #endif | |
18164 /* We use char because int might match the return type of a gcc2 | |
18165 builtin and then its argument prototype would still apply. */ | |
18166 char dlopen (); | |
18167 /* The GNU C library defines this for functions which it implements | |
18168 to always fail with ENOSYS. Some functions are actually named | |
18169 something starting with __ and the normal name is an alias. */ | |
18170 #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
18171 choke me | |
18172 #else | |
18173 char (*f) () = dlopen; | |
18174 #endif | |
18175 #ifdef __cplusplus | |
18176 } | |
18177 #endif | |
18178 | |
18179 int | |
18180 main () | |
18181 { | |
18182 return f != dlopen; | |
18183 ; | |
18184 return 0; | |
18185 } | |
18186 _ACEOF | |
18187 rm -f conftest.$ac_objext conftest$ac_exeext | |
18188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18189 (eval $ac_link) 2>conftest.er1 | |
18190 ac_status=$? | |
18191 grep -v '^ *+' conftest.er1 >conftest.err | |
18192 rm -f conftest.er1 | |
18193 cat conftest.err >&5 | |
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18195 (exit $ac_status); } && | |
18196 { ac_try='test -z "$ac_c_werror_flag" | |
18197 || test ! -s conftest.err' | |
18198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18199 (eval $ac_try) 2>&5 | |
18200 ac_status=$? | |
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18202 (exit $ac_status); }; } && | |
18203 { ac_try='test -s conftest$ac_exeext' | |
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18205 (eval $ac_try) 2>&5 | |
18206 ac_status=$? | |
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18208 (exit $ac_status); }; }; then | |
18209 ac_cv_func_dlopen=yes | |
18210 else | |
18211 echo "$as_me: failed program was:" >&5 | |
18212 sed 's/^/| /' conftest.$ac_ext >&5 | |
18213 | |
18214 ac_cv_func_dlopen=no | |
18215 fi | |
18216 rm -f conftest.err conftest.$ac_objext \ | |
18217 conftest$ac_exeext conftest.$ac_ext | |
18218 fi | |
18219 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
18220 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
18221 if test $ac_cv_func_dlopen = yes; then | |
18222 lt_cv_dlopen="dlopen" | |
18223 else | |
18224 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
18225 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
18226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
18227 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18228 else | |
18229 ac_check_lib_save_LIBS=$LIBS | |
18230 LIBS="-ldl $LIBS" | |
18231 cat >conftest.$ac_ext <<_ACEOF | |
18232 /* confdefs.h. */ | |
18233 _ACEOF | |
18234 cat confdefs.h >>conftest.$ac_ext | |
18235 cat >>conftest.$ac_ext <<_ACEOF | |
18236 /* end confdefs.h. */ | |
18237 | |
18238 /* Override any gcc2 internal prototype to avoid an error. */ | |
18239 #ifdef __cplusplus | |
18240 extern "C" | |
18241 #endif | |
18242 /* We use char because int might match the return type of a gcc2 | |
18243 builtin and then its argument prototype would still apply. */ | |
18244 char dlopen (); | |
18245 int | |
18246 main () | |
18247 { | |
18248 dlopen (); | |
18249 ; | |
18250 return 0; | |
18251 } | |
18252 _ACEOF | |
18253 rm -f conftest.$ac_objext conftest$ac_exeext | |
18254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18255 (eval $ac_link) 2>conftest.er1 | |
18256 ac_status=$? | |
18257 grep -v '^ *+' conftest.er1 >conftest.err | |
18258 rm -f conftest.er1 | |
18259 cat conftest.err >&5 | |
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18261 (exit $ac_status); } && | |
18262 { ac_try='test -z "$ac_c_werror_flag" | |
18263 || test ! -s conftest.err' | |
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18265 (eval $ac_try) 2>&5 | |
18266 ac_status=$? | |
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18268 (exit $ac_status); }; } && | |
18269 { ac_try='test -s conftest$ac_exeext' | |
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18271 (eval $ac_try) 2>&5 | |
18272 ac_status=$? | |
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18274 (exit $ac_status); }; }; then | |
18275 ac_cv_lib_dl_dlopen=yes | |
18276 else | |
18277 echo "$as_me: failed program was:" >&5 | |
18278 sed 's/^/| /' conftest.$ac_ext >&5 | |
18279 | |
18280 ac_cv_lib_dl_dlopen=no | |
18281 fi | |
18282 rm -f conftest.err conftest.$ac_objext \ | |
18283 conftest$ac_exeext conftest.$ac_ext | |
18284 LIBS=$ac_check_lib_save_LIBS | |
18285 fi | |
18286 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
18287 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
18288 if test $ac_cv_lib_dl_dlopen = yes; then | |
18289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
18290 else | |
18291 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
18292 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
18293 if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
18294 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18295 else | |
18296 ac_check_lib_save_LIBS=$LIBS | |
18297 LIBS="-lsvld $LIBS" | |
18298 cat >conftest.$ac_ext <<_ACEOF | |
18299 /* confdefs.h. */ | |
18300 _ACEOF | |
18301 cat confdefs.h >>conftest.$ac_ext | |
18302 cat >>conftest.$ac_ext <<_ACEOF | |
18303 /* end confdefs.h. */ | |
18304 | |
18305 /* Override any gcc2 internal prototype to avoid an error. */ | |
18306 #ifdef __cplusplus | |
18307 extern "C" | |
18308 #endif | |
18309 /* We use char because int might match the return type of a gcc2 | |
18310 builtin and then its argument prototype would still apply. */ | |
18311 char dlopen (); | |
18312 int | |
18313 main () | |
18314 { | |
18315 dlopen (); | |
18316 ; | |
18317 return 0; | |
18318 } | |
18319 _ACEOF | |
18320 rm -f conftest.$ac_objext conftest$ac_exeext | |
18321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18322 (eval $ac_link) 2>conftest.er1 | |
18323 ac_status=$? | |
18324 grep -v '^ *+' conftest.er1 >conftest.err | |
18325 rm -f conftest.er1 | |
18326 cat conftest.err >&5 | |
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18328 (exit $ac_status); } && | |
18329 { ac_try='test -z "$ac_c_werror_flag" | |
18330 || test ! -s conftest.err' | |
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18332 (eval $ac_try) 2>&5 | |
18333 ac_status=$? | |
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18335 (exit $ac_status); }; } && | |
18336 { ac_try='test -s conftest$ac_exeext' | |
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18338 (eval $ac_try) 2>&5 | |
18339 ac_status=$? | |
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18341 (exit $ac_status); }; }; then | |
18342 ac_cv_lib_svld_dlopen=yes | |
18343 else | |
18344 echo "$as_me: failed program was:" >&5 | |
18345 sed 's/^/| /' conftest.$ac_ext >&5 | |
18346 | |
18347 ac_cv_lib_svld_dlopen=no | |
18348 fi | |
18349 rm -f conftest.err conftest.$ac_objext \ | |
18350 conftest$ac_exeext conftest.$ac_ext | |
18351 LIBS=$ac_check_lib_save_LIBS | |
18352 fi | |
18353 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
18354 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
18355 if test $ac_cv_lib_svld_dlopen = yes; then | |
18356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
18357 else | |
18358 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
18359 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
18360 if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
18361 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18362 else | |
18363 ac_check_lib_save_LIBS=$LIBS | |
18364 LIBS="-ldld $LIBS" | |
18365 cat >conftest.$ac_ext <<_ACEOF | |
18366 /* confdefs.h. */ | |
18367 _ACEOF | |
18368 cat confdefs.h >>conftest.$ac_ext | |
18369 cat >>conftest.$ac_ext <<_ACEOF | |
18370 /* end confdefs.h. */ | |
18371 | |
18372 /* Override any gcc2 internal prototype to avoid an error. */ | |
18373 #ifdef __cplusplus | |
18374 extern "C" | |
18375 #endif | |
18376 /* We use char because int might match the return type of a gcc2 | |
18377 builtin and then its argument prototype would still apply. */ | |
18378 char dld_link (); | |
18379 int | |
18380 main () | |
18381 { | |
18382 dld_link (); | |
18383 ; | |
18384 return 0; | |
18385 } | |
18386 _ACEOF | |
18387 rm -f conftest.$ac_objext conftest$ac_exeext | |
18388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18389 (eval $ac_link) 2>conftest.er1 | |
18390 ac_status=$? | |
18391 grep -v '^ *+' conftest.er1 >conftest.err | |
18392 rm -f conftest.er1 | |
18393 cat conftest.err >&5 | |
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18395 (exit $ac_status); } && | |
18396 { ac_try='test -z "$ac_c_werror_flag" | |
18397 || test ! -s conftest.err' | |
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18399 (eval $ac_try) 2>&5 | |
18400 ac_status=$? | |
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18402 (exit $ac_status); }; } && | |
18403 { ac_try='test -s conftest$ac_exeext' | |
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18405 (eval $ac_try) 2>&5 | |
18406 ac_status=$? | |
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18408 (exit $ac_status); }; }; then | |
18409 ac_cv_lib_dld_dld_link=yes | |
18410 else | |
18411 echo "$as_me: failed program was:" >&5 | |
18412 sed 's/^/| /' conftest.$ac_ext >&5 | |
18413 | |
18414 ac_cv_lib_dld_dld_link=no | |
18415 fi | |
18416 rm -f conftest.err conftest.$ac_objext \ | |
18417 conftest$ac_exeext conftest.$ac_ext | |
18418 LIBS=$ac_check_lib_save_LIBS | |
18419 fi | |
18420 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
18421 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
18422 if test $ac_cv_lib_dld_dld_link = yes; then | |
18423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
18424 fi | |
18425 | |
18426 | |
18427 fi | |
18428 | |
18429 | |
18430 fi | |
18431 | |
18432 | |
18433 fi | |
18434 | |
18435 | |
18436 fi | |
18437 | |
18438 | |
18439 fi | |
18440 | |
18441 ;; | |
18442 esac | |
18443 | |
18444 if test "x$lt_cv_dlopen" != xno; then | |
18445 enable_dlopen=yes | |
18446 else | |
18447 enable_dlopen=no | |
18448 fi | |
18449 | |
18450 case $lt_cv_dlopen in | |
18451 dlopen) | |
18452 save_CPPFLAGS="$CPPFLAGS" | |
18453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
18454 | |
18455 save_LDFLAGS="$LDFLAGS" | |
18456 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
18457 | |
18458 save_LIBS="$LIBS" | |
18459 LIBS="$lt_cv_dlopen_libs $LIBS" | |
18460 | |
18461 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
18462 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
18463 if test "${lt_cv_dlopen_self+set}" = set; then | |
18464 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18465 else | |
18466 if test "$cross_compiling" = yes; then : | |
18467 lt_cv_dlopen_self=cross | |
18468 else | |
18469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
18470 lt_status=$lt_dlunknown | |
18471 cat > conftest.$ac_ext <<EOF | |
18472 #line 18472 "configure" | |
18473 #include "confdefs.h" | |
18474 | |
18475 #if HAVE_DLFCN_H | |
18476 #include <dlfcn.h> | |
18477 #endif | |
18478 | |
18479 #include <stdio.h> | |
18480 | |
18481 #ifdef RTLD_GLOBAL | |
18482 # define LT_DLGLOBAL RTLD_GLOBAL | |
18483 #else | |
18484 # ifdef DL_GLOBAL | |
18485 # define LT_DLGLOBAL DL_GLOBAL | |
18486 # else | |
18487 # define LT_DLGLOBAL 0 | |
18488 # endif | |
18489 #endif | |
18490 | |
18491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
18492 find out it does not work in some platform. */ | |
18493 #ifndef LT_DLLAZY_OR_NOW | |
18494 # ifdef RTLD_LAZY | |
18495 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
18496 # else | |
18497 # ifdef DL_LAZY | |
18498 # define LT_DLLAZY_OR_NOW DL_LAZY | |
18499 # else | |
18500 # ifdef RTLD_NOW | |
18501 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
18502 # else | |
18503 # ifdef DL_NOW | |
18504 # define LT_DLLAZY_OR_NOW DL_NOW | |
18505 # else | |
18506 # define LT_DLLAZY_OR_NOW 0 | |
18507 # endif | |
18508 # endif | |
18509 # endif | |
18510 # endif | |
18511 #endif | |
18512 | |
18513 #ifdef __cplusplus | |
18514 extern "C" void exit (int); | |
18515 #endif | |
18516 | |
18517 void fnord() { int i=42;} | |
18518 int main () | |
18519 { | |
18520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
18521 int status = $lt_dlunknown; | |
18522 | |
18523 if (self) | |
18524 { | |
18525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
18526 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
18527 /* dlclose (self); */ | |
18528 } | |
18529 | |
18530 exit (status); | |
18531 } | |
18532 EOF | |
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18534 (eval $ac_link) 2>&5 | |
18535 ac_status=$? | |
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
18538 (./conftest; exit; ) 2>/dev/null | |
18539 lt_status=$? | |
18540 case x$lt_status in | |
18541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
18542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
18543 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
18544 esac | |
18545 else : | |
18546 # compilation failed | |
18547 lt_cv_dlopen_self=no | |
18548 fi | |
18549 fi | |
18550 rm -fr conftest* | |
18551 | |
18552 | |
18553 fi | |
18554 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
18555 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
18556 | |
18557 if test "x$lt_cv_dlopen_self" = xyes; then | |
18558 LDFLAGS="$LDFLAGS $link_static_flag" | |
18559 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
18560 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
18561 if test "${lt_cv_dlopen_self_static+set}" = set; then | |
18562 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18563 else | |
18564 if test "$cross_compiling" = yes; then : | |
18565 lt_cv_dlopen_self_static=cross | |
18566 else | |
18567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
18568 lt_status=$lt_dlunknown | |
18569 cat > conftest.$ac_ext <<EOF | |
18570 #line 18570 "configure" | |
18571 #include "confdefs.h" | |
18572 | |
18573 #if HAVE_DLFCN_H | |
18574 #include <dlfcn.h> | |
18575 #endif | |
18576 | |
18577 #include <stdio.h> | |
18578 | |
18579 #ifdef RTLD_GLOBAL | |
18580 # define LT_DLGLOBAL RTLD_GLOBAL | |
18581 #else | |
18582 # ifdef DL_GLOBAL | |
18583 # define LT_DLGLOBAL DL_GLOBAL | |
18584 # else | |
18585 # define LT_DLGLOBAL 0 | |
18586 # endif | |
18587 #endif | |
18588 | |
18589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
18590 find out it does not work in some platform. */ | |
18591 #ifndef LT_DLLAZY_OR_NOW | |
18592 # ifdef RTLD_LAZY | |
18593 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
18594 # else | |
18595 # ifdef DL_LAZY | |
18596 # define LT_DLLAZY_OR_NOW DL_LAZY | |
18597 # else | |
18598 # ifdef RTLD_NOW | |
18599 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
18600 # else | |
18601 # ifdef DL_NOW | |
18602 # define LT_DLLAZY_OR_NOW DL_NOW | |
18603 # else | |
18604 # define LT_DLLAZY_OR_NOW 0 | |
18605 # endif | |
18606 # endif | |
18607 # endif | |
18608 # endif | |
18609 #endif | |
18610 | |
18611 #ifdef __cplusplus | |
18612 extern "C" void exit (int); | |
18613 #endif | |
18614 | |
18615 void fnord() { int i=42;} | |
18616 int main () | |
18617 { | |
18618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
18619 int status = $lt_dlunknown; | |
18620 | |
18621 if (self) | |
18622 { | |
18623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
18624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
18625 /* dlclose (self); */ | |
18626 } | |
18627 | |
18628 exit (status); | |
18629 } | |
18630 EOF | |
18631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18632 (eval $ac_link) 2>&5 | |
18633 ac_status=$? | |
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18635 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
18636 (./conftest; exit; ) 2>/dev/null | |
18637 lt_status=$? | |
18638 case x$lt_status in | |
18639 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
18640 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
18641 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
18642 esac | |
18643 else : | |
18644 # compilation failed | |
18645 lt_cv_dlopen_self_static=no | |
18646 fi | |
18647 fi | |
18648 rm -fr conftest* | |
18649 | |
18650 | |
18651 fi | |
18652 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
18653 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
18654 fi | |
18655 | |
18656 CPPFLAGS="$save_CPPFLAGS" | |
18657 LDFLAGS="$save_LDFLAGS" | |
18658 LIBS="$save_LIBS" | |
18659 ;; | |
18660 esac | |
18661 | |
18662 case $lt_cv_dlopen_self in | |
18663 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
18664 *) enable_dlopen_self=unknown ;; | |
18665 esac | |
18666 | |
18667 case $lt_cv_dlopen_self_static in | |
18668 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
18669 *) enable_dlopen_self_static=unknown ;; | |
18670 esac | |
18671 fi | |
18672 | |
18673 | |
18674 # The else clause should only fire when bootstrapping the | |
18675 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18676 # with your package, and you will get complaints that there are | |
18677 # no rules to generate ltmain.sh. | |
18678 if test -f "$ltmain"; then | |
18679 # See if we are running on zsh, and set the options which allow our commands through | |
18680 # without removal of \ escapes. | |
18681 if test -n "${ZSH_VERSION+set}" ; then | |
18682 setopt NO_GLOB_SUBST | |
18683 fi | |
18684 # Now quote all the things that may contain metacharacters while being | |
18685 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18686 # variables and quote the copies for generation of the libtool script. | |
18687 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
18688 SED SHELL STRIP \ | |
18689 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18690 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18691 deplibs_check_method reload_flag reload_cmds need_locks \ | |
18692 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18693 lt_cv_sys_global_symbol_to_c_name_address \ | |
18694 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18695 old_postinstall_cmds old_postuninstall_cmds \ | |
18696 compiler_GCJ \ | |
18697 CC_GCJ \ | |
18698 LD_GCJ \ | |
18699 lt_prog_compiler_wl_GCJ \ | |
18700 lt_prog_compiler_pic_GCJ \ | |
18701 lt_prog_compiler_static_GCJ \ | |
18702 lt_prog_compiler_no_builtin_flag_GCJ \ | |
18703 export_dynamic_flag_spec_GCJ \ | |
18704 thread_safe_flag_spec_GCJ \ | |
18705 whole_archive_flag_spec_GCJ \ | |
18706 enable_shared_with_static_runtimes_GCJ \ | |
18707 old_archive_cmds_GCJ \ | |
18708 old_archive_from_new_cmds_GCJ \ | |
18709 predep_objects_GCJ \ | |
18710 postdep_objects_GCJ \ | |
18711 predeps_GCJ \ | |
18712 postdeps_GCJ \ | |
18713 compiler_lib_search_path_GCJ \ | |
18714 archive_cmds_GCJ \ | |
18715 archive_expsym_cmds_GCJ \ | |
18716 postinstall_cmds_GCJ \ | |
18717 postuninstall_cmds_GCJ \ | |
18718 old_archive_from_expsyms_cmds_GCJ \ | |
18719 allow_undefined_flag_GCJ \ | |
18720 no_undefined_flag_GCJ \ | |
18721 export_symbols_cmds_GCJ \ | |
18722 hardcode_libdir_flag_spec_GCJ \ | |
18723 hardcode_libdir_flag_spec_ld_GCJ \ | |
18724 hardcode_libdir_separator_GCJ \ | |
18725 hardcode_automatic_GCJ \ | |
18726 module_cmds_GCJ \ | |
18727 module_expsym_cmds_GCJ \ | |
18728 lt_cv_prog_compiler_c_o_GCJ \ | |
18729 exclude_expsyms_GCJ \ | |
18730 include_expsyms_GCJ; do | |
18731 | |
18732 case $var in | |
18733 old_archive_cmds_GCJ | \ | |
18734 old_archive_from_new_cmds_GCJ | \ | |
18735 archive_cmds_GCJ | \ | |
18736 archive_expsym_cmds_GCJ | \ | |
18737 module_cmds_GCJ | \ | |
18738 module_expsym_cmds_GCJ | \ | |
18739 old_archive_from_expsyms_cmds_GCJ | \ | |
18740 export_symbols_cmds_GCJ | \ | |
18741 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18742 postinstall_cmds | postuninstall_cmds | \ | |
18743 old_postinstall_cmds | old_postuninstall_cmds | \ | |
18744 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18745 # Double-quote double-evaled strings. | |
18746 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18747 ;; | |
18748 *) | |
18749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18750 ;; | |
18751 esac | |
18752 done | |
18753 | |
18754 case $lt_echo in | |
18755 *'\$0 --fallback-echo"') | |
18756 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18757 ;; | |
18758 esac | |
18759 | |
18760 cfgfile="$ofile" | |
18761 | |
18762 cat <<__EOF__ >> "$cfgfile" | |
18763 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18764 | |
18765 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18766 | |
18767 # Shell to use when invoking shell scripts. | |
18768 SHELL=$lt_SHELL | |
18769 | |
18770 # Whether or not to build shared libraries. | |
18771 build_libtool_libs=$enable_shared | |
18772 | |
18773 # Whether or not to build static libraries. | |
18774 build_old_libs=$enable_static | |
18775 | |
18776 # Whether or not to add -lc for building shared libraries. | |
18777 build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
18778 | |
18779 # Whether or not to disallow shared libs when runtime libs are static | |
18780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
18781 | |
18782 # Whether or not to optimize for fast installation. | |
18783 fast_install=$enable_fast_install | |
18784 | |
18785 # The host system. | |
18786 host_alias=$host_alias | |
18787 host=$host | |
18788 host_os=$host_os | |
18789 | |
18790 # The build system. | |
18791 build_alias=$build_alias | |
18792 build=$build | |
18793 build_os=$build_os | |
18794 | |
18795 # An echo program that does not interpret backslashes. | |
18796 echo=$lt_echo | |
18797 | |
18798 # The archiver. | |
18799 AR=$lt_AR | |
18800 AR_FLAGS=$lt_AR_FLAGS | |
18801 | |
18802 # A C compiler. | |
18803 LTCC=$lt_LTCC | |
18804 | |
18805 # A language-specific compiler. | |
18806 CC=$lt_compiler_GCJ | |
18807 | |
18808 # Is the compiler the GNU C compiler? | |
18809 with_gcc=$GCC_GCJ | |
18810 | |
18811 # An ERE matcher. | |
18812 EGREP=$lt_EGREP | |
18813 | |
18814 # The linker used to build libraries. | |
18815 LD=$lt_LD_GCJ | |
18816 | |
18817 # Whether we need hard or soft links. | |
18818 LN_S=$lt_LN_S | |
18819 | |
18820 # A BSD-compatible nm program. | |
18821 NM=$lt_NM | |
18822 | |
18823 # A symbol stripping program | |
18824 STRIP=$lt_STRIP | |
18825 | |
18826 # Used to examine libraries when file_magic_cmd begins "file" | |
18827 MAGIC_CMD=$MAGIC_CMD | |
18828 | |
18829 # Used on cygwin: DLL creation program. | |
18830 DLLTOOL="$DLLTOOL" | |
18831 | |
18832 # Used on cygwin: object dumper. | |
18833 OBJDUMP="$OBJDUMP" | |
18834 | |
18835 # Used on cygwin: assembler. | |
18836 AS="$AS" | |
18837 | |
18838 # The name of the directory that contains temporary libtool files. | |
18839 objdir=$objdir | |
18840 | |
18841 # How to create reloadable object files. | |
18842 reload_flag=$lt_reload_flag | |
18843 reload_cmds=$lt_reload_cmds | |
18844 | |
18845 # How to pass a linker flag through the compiler. | |
18846 wl=$lt_lt_prog_compiler_wl_GCJ | |
18847 | |
18848 # Object file suffix (normally "o"). | |
18849 objext="$ac_objext" | |
18850 | |
18851 # Old archive suffix (normally "a"). | |
18852 libext="$libext" | |
18853 | |
18854 # Shared library suffix (normally ".so"). | |
18855 shrext_cmds='$shrext_cmds' | |
18856 | |
18857 # Executable file suffix (normally ""). | |
18858 exeext="$exeext" | |
18859 | |
18860 # Additional compiler flags for building library objects. | |
18861 pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
18862 pic_mode=$pic_mode | |
18863 | |
18864 # What is the maximum length of a command? | |
18865 max_cmd_len=$lt_cv_sys_max_cmd_len | |
18866 | |
18867 # Does compiler simultaneously support -c and -o options? | |
18868 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
18869 | |
18870 # Must we lock files when doing compilation? | |
18871 need_locks=$lt_need_locks | |
18872 | |
18873 # Do we need the lib prefix for modules? | |
18874 need_lib_prefix=$need_lib_prefix | |
18875 | |
18876 # Do we need a version for libraries? | |
18877 need_version=$need_version | |
18878 | |
18879 # Whether dlopen is supported. | |
18880 dlopen_support=$enable_dlopen | |
18881 | |
18882 # Whether dlopen of programs is supported. | |
18883 dlopen_self=$enable_dlopen_self | |
18884 | |
18885 # Whether dlopen of statically linked programs is supported. | |
18886 dlopen_self_static=$enable_dlopen_self_static | |
18887 | |
18888 # Compiler flag to prevent dynamic linking. | |
18889 link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
18890 | |
18891 # Compiler flag to turn off builtin functions. | |
18892 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
18893 | |
18894 # Compiler flag to allow reflexive dlopens. | |
18895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
18896 | |
18897 # Compiler flag to generate shared objects directly from archives. | |
18898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
18899 | |
18900 # Compiler flag to generate thread-safe objects. | |
18901 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
18902 | |
18903 # Library versioning type. | |
18904 version_type=$version_type | |
18905 | |
18906 # Format of library name prefix. | |
18907 libname_spec=$lt_libname_spec | |
18908 | |
18909 # List of archive names. First name is the real one, the rest are links. | |
18910 # The last name is the one that the linker finds with -lNAME. | |
18911 library_names_spec=$lt_library_names_spec | |
18912 | |
18913 # The coded name of the library, if different from the real name. | |
18914 soname_spec=$lt_soname_spec | |
18915 | |
18916 # Commands used to build and install an old-style archive. | |
18917 RANLIB=$lt_RANLIB | |
18918 old_archive_cmds=$lt_old_archive_cmds_GCJ | |
18919 old_postinstall_cmds=$lt_old_postinstall_cmds | |
18920 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18921 | |
18922 # Create an old-style archive from a shared archive. | |
18923 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
18924 | |
18925 # Create a temporary old-style archive to link instead of a shared archive. | |
18926 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
18927 | |
18928 # Commands used to build and install a shared archive. | |
18929 archive_cmds=$lt_archive_cmds_GCJ | |
18930 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
18931 postinstall_cmds=$lt_postinstall_cmds | |
18932 postuninstall_cmds=$lt_postuninstall_cmds | |
18933 | |
18934 # Commands used to build a loadable module (assumed same as above if empty) | |
18935 module_cmds=$lt_module_cmds_GCJ | |
18936 module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
18937 | |
18938 # Commands to strip libraries. | |
18939 old_striplib=$lt_old_striplib | |
18940 striplib=$lt_striplib | |
18941 | |
18942 # Dependencies to place before the objects being linked to create a | |
18943 # shared library. | |
18944 predep_objects=$lt_predep_objects_GCJ | |
18945 | |
18946 # Dependencies to place after the objects being linked to create a | |
18947 # shared library. | |
18948 postdep_objects=$lt_postdep_objects_GCJ | |
18949 | |
18950 # Dependencies to place before the objects being linked to create a | |
18951 # shared library. | |
18952 predeps=$lt_predeps_GCJ | |
18953 | |
18954 # Dependencies to place after the objects being linked to create a | |
18955 # shared library. | |
18956 postdeps=$lt_postdeps_GCJ | |
18957 | |
18958 # The library search path used internally by the compiler when linking | |
18959 # a shared library. | |
18960 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
18961 | |
18962 # Method to check whether dependent libraries are shared objects. | |
18963 deplibs_check_method=$lt_deplibs_check_method | |
18964 | |
18965 # Command to use when deplibs_check_method == file_magic. | |
18966 file_magic_cmd=$lt_file_magic_cmd | |
18967 | |
18968 # Flag that allows shared libraries with undefined symbols to be built. | |
18969 allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
18970 | |
18971 # Flag that forces no undefined symbols. | |
18972 no_undefined_flag=$lt_no_undefined_flag_GCJ | |
18973 | |
18974 # Commands used to finish a libtool library installation in a directory. | |
18975 finish_cmds=$lt_finish_cmds | |
18976 | |
18977 # Same as above, but a single script fragment to be evaled but not shown. | |
18978 finish_eval=$lt_finish_eval | |
18979 | |
18980 # Take the output of nm and produce a listing of raw symbols and C names. | |
18981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18982 | |
18983 # Transform the output of nm in a proper C declaration | |
18984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18985 | |
18986 # Transform the output of nm in a C name address pair | |
18987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18988 | |
18989 # This is the shared library runtime path variable. | |
18990 runpath_var=$runpath_var | |
18991 | |
18992 # This is the shared library path variable. | |
18993 shlibpath_var=$shlibpath_var | |
18994 | |
18995 # Is shlibpath searched before the hard-coded library search path? | |
18996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18997 | |
18998 # How to hardcode a shared library path into an executable. | |
18999 hardcode_action=$hardcode_action_GCJ | |
19000 | |
19001 # Whether we should hardcode library paths into libraries. | |
19002 hardcode_into_libs=$hardcode_into_libs | |
19003 | |
19004 # Flag to hardcode \$libdir into a binary during linking. | |
19005 # This must work even if \$libdir does not exist. | |
19006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
19007 | |
19008 # If ld is used when linking, flag to hardcode \$libdir into | |
19009 # a binary during linking. This must work even if \$libdir does | |
19010 # not exist. | |
19011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
19012 | |
19013 # Whether we need a single -rpath flag with a separated argument. | |
19014 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
19015 | |
19016 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
19017 # resulting binary. | |
19018 hardcode_direct=$hardcode_direct_GCJ | |
19019 | |
19020 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
19021 # resulting binary. | |
19022 hardcode_minus_L=$hardcode_minus_L_GCJ | |
19023 | |
19024 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
19025 # the resulting binary. | |
19026 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
19027 | |
19028 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
19029 # and all subsequent libraries and executables linked against it. | |
19030 hardcode_automatic=$hardcode_automatic_GCJ | |
19031 | |
19032 # Variables whose values should be saved in libtool wrapper scripts and | |
19033 # restored at relink time. | |
19034 variables_saved_for_relink="$variables_saved_for_relink" | |
19035 | |
19036 # Whether libtool must link a program against all its dependency libraries. | |
19037 link_all_deplibs=$link_all_deplibs_GCJ | |
19038 | |
19039 # Compile-time system search path for libraries | |
19040 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19041 | |
19042 # Run-time system search path for libraries | |
19043 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19044 | |
19045 # Fix the shell variable \$srcfile for the compiler. | |
19046 fix_srcfile_path="$fix_srcfile_path_GCJ" | |
19047 | |
19048 # Set to yes if exported symbols are required. | |
19049 always_export_symbols=$always_export_symbols_GCJ | |
19050 | |
19051 # The commands to list exported symbols. | |
19052 export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
19053 | |
19054 # The commands to extract the exported symbol list from a shared archive. | |
19055 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19056 | |
19057 # Symbols that should not be listed in the preloaded symbols. | |
19058 exclude_expsyms=$lt_exclude_expsyms_GCJ | |
19059 | |
19060 # Symbols that must always be exported. | |
19061 include_expsyms=$lt_include_expsyms_GCJ | |
19062 | |
19063 # ### END LIBTOOL TAG CONFIG: $tagname | |
19064 | |
19065 __EOF__ | |
19066 | |
19067 | |
19068 else | |
19069 # If there is no Makefile yet, we rely on a make rule to execute | |
19070 # `config.status --recheck' to rerun these tests and create the | |
19071 # libtool script then. | |
19072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
19073 if test -f "$ltmain_in"; then | |
19074 test -f Makefile && make "$ltmain" | |
19075 fi | |
19076 fi | |
19077 | |
19078 | |
19079 ac_ext=c | |
19080 ac_cpp='$CPP $CPPFLAGS' | |
19081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19083 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19084 | |
19085 CC="$lt_save_CC" | |
19086 | |
19087 else | |
19088 tagname="" | |
19089 fi | |
19090 ;; | |
19091 | |
19092 RC) | |
19093 | |
19094 | |
19095 | |
19096 # Source file extension for RC test sources. | |
19097 ac_ext=rc | |
19098 | |
19099 # Object file extension for compiled RC test sources. | |
19100 objext=o | |
19101 objext_RC=$objext | |
19102 | |
19103 # Code to be used in simple compile tests | |
19104 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
19105 | |
19106 # Code to be used in simple link tests | |
19107 lt_simple_link_test_code="$lt_simple_compile_test_code" | |
19108 | |
19109 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
19110 | |
19111 # If no C compiler was specified, use CC. | |
19112 LTCC=${LTCC-"$CC"} | |
19113 | |
19114 # Allow CC to be a program name with arguments. | |
19115 compiler=$CC | |
19116 | |
19117 | |
19118 # save warnings/boilerplate of simple test code | |
19119 ac_outfile=conftest.$ac_objext | |
19120 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
19121 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | |
19122 _lt_compiler_boilerplate=`cat conftest.err` | |
19123 $rm conftest* | |
19124 | |
19125 ac_outfile=conftest.$ac_objext | |
19126 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
19127 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | |
19128 _lt_linker_boilerplate=`cat conftest.err` | |
19129 $rm conftest* | |
19130 | |
19131 | |
19132 # Allow CC to be a program name with arguments. | |
19133 lt_save_CC="$CC" | |
19134 CC=${RC-"windres"} | |
19135 compiler=$CC | |
19136 compiler_RC=$CC | |
19137 for cc_temp in $compiler""; do | |
19138 case $cc_temp in | |
19139 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
19140 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
19141 \-*) ;; | |
19142 *) break;; | |
19143 esac | |
19144 done | |
19145 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
19146 | |
19147 lt_cv_prog_compiler_c_o_RC=yes | |
19148 | |
19149 # The else clause should only fire when bootstrapping the | |
19150 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
19151 # with your package, and you will get complaints that there are | |
19152 # no rules to generate ltmain.sh. | |
19153 if test -f "$ltmain"; then | |
19154 # See if we are running on zsh, and set the options which allow our commands through | |
19155 # without removal of \ escapes. | |
19156 if test -n "${ZSH_VERSION+set}" ; then | |
19157 setopt NO_GLOB_SUBST | |
19158 fi | |
19159 # Now quote all the things that may contain metacharacters while being | |
19160 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
19161 # variables and quote the copies for generation of the libtool script. | |
19162 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
19163 SED SHELL STRIP \ | |
19164 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
19165 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
19166 deplibs_check_method reload_flag reload_cmds need_locks \ | |
19167 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
19168 lt_cv_sys_global_symbol_to_c_name_address \ | |
19169 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
19170 old_postinstall_cmds old_postuninstall_cmds \ | |
19171 compiler_RC \ | |
19172 CC_RC \ | |
19173 LD_RC \ | |
19174 lt_prog_compiler_wl_RC \ | |
19175 lt_prog_compiler_pic_RC \ | |
19176 lt_prog_compiler_static_RC \ | |
19177 lt_prog_compiler_no_builtin_flag_RC \ | |
19178 export_dynamic_flag_spec_RC \ | |
19179 thread_safe_flag_spec_RC \ | |
19180 whole_archive_flag_spec_RC \ | |
19181 enable_shared_with_static_runtimes_RC \ | |
19182 old_archive_cmds_RC \ | |
19183 old_archive_from_new_cmds_RC \ | |
19184 predep_objects_RC \ | |
19185 postdep_objects_RC \ | |
19186 predeps_RC \ | |
19187 postdeps_RC \ | |
19188 compiler_lib_search_path_RC \ | |
19189 archive_cmds_RC \ | |
19190 archive_expsym_cmds_RC \ | |
19191 postinstall_cmds_RC \ | |
19192 postuninstall_cmds_RC \ | |
19193 old_archive_from_expsyms_cmds_RC \ | |
19194 allow_undefined_flag_RC \ | |
19195 no_undefined_flag_RC \ | |
19196 export_symbols_cmds_RC \ | |
19197 hardcode_libdir_flag_spec_RC \ | |
19198 hardcode_libdir_flag_spec_ld_RC \ | |
19199 hardcode_libdir_separator_RC \ | |
19200 hardcode_automatic_RC \ | |
19201 module_cmds_RC \ | |
19202 module_expsym_cmds_RC \ | |
19203 lt_cv_prog_compiler_c_o_RC \ | |
19204 exclude_expsyms_RC \ | |
19205 include_expsyms_RC; do | |
19206 | |
19207 case $var in | |
19208 old_archive_cmds_RC | \ | |
19209 old_archive_from_new_cmds_RC | \ | |
19210 archive_cmds_RC | \ | |
19211 archive_expsym_cmds_RC | \ | |
19212 module_cmds_RC | \ | |
19213 module_expsym_cmds_RC | \ | |
19214 old_archive_from_expsyms_cmds_RC | \ | |
19215 export_symbols_cmds_RC | \ | |
19216 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
19217 postinstall_cmds | postuninstall_cmds | \ | |
19218 old_postinstall_cmds | old_postuninstall_cmds | \ | |
19219 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
19220 # Double-quote double-evaled strings. | |
19221 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
19222 ;; | |
19223 *) | |
19224 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
19225 ;; | |
19226 esac | |
19227 done | |
19228 | |
19229 case $lt_echo in | |
19230 *'\$0 --fallback-echo"') | |
19231 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
19232 ;; | |
19233 esac | |
19234 | |
19235 cfgfile="$ofile" | |
19236 | |
19237 cat <<__EOF__ >> "$cfgfile" | |
19238 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
19239 | |
19240 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19241 | |
19242 # Shell to use when invoking shell scripts. | |
19243 SHELL=$lt_SHELL | |
19244 | |
19245 # Whether or not to build shared libraries. | |
19246 build_libtool_libs=$enable_shared | |
19247 | |
19248 # Whether or not to build static libraries. | |
19249 build_old_libs=$enable_static | |
19250 | |
19251 # Whether or not to add -lc for building shared libraries. | |
19252 build_libtool_need_lc=$archive_cmds_need_lc_RC | |
19253 | |
19254 # Whether or not to disallow shared libs when runtime libs are static | |
19255 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
19256 | |
19257 # Whether or not to optimize for fast installation. | |
19258 fast_install=$enable_fast_install | |
19259 | |
19260 # The host system. | |
19261 host_alias=$host_alias | |
19262 host=$host | |
19263 host_os=$host_os | |
19264 | |
19265 # The build system. | |
19266 build_alias=$build_alias | |
19267 build=$build | |
19268 build_os=$build_os | |
19269 | |
19270 # An echo program that does not interpret backslashes. | |
19271 echo=$lt_echo | |
19272 | |
19273 # The archiver. | |
19274 AR=$lt_AR | |
19275 AR_FLAGS=$lt_AR_FLAGS | |
19276 | |
19277 # A C compiler. | |
19278 LTCC=$lt_LTCC | |
19279 | |
19280 # A language-specific compiler. | |
19281 CC=$lt_compiler_RC | |
19282 | |
19283 # Is the compiler the GNU C compiler? | |
19284 with_gcc=$GCC_RC | |
19285 | |
19286 # An ERE matcher. | |
19287 EGREP=$lt_EGREP | |
19288 | |
19289 # The linker used to build libraries. | |
19290 LD=$lt_LD_RC | |
19291 | |
19292 # Whether we need hard or soft links. | |
19293 LN_S=$lt_LN_S | |
19294 | |
19295 # A BSD-compatible nm program. | |
19296 NM=$lt_NM | |
19297 | |
19298 # A symbol stripping program | |
19299 STRIP=$lt_STRIP | |
19300 | |
19301 # Used to examine libraries when file_magic_cmd begins "file" | |
19302 MAGIC_CMD=$MAGIC_CMD | |
19303 | |
19304 # Used on cygwin: DLL creation program. | |
19305 DLLTOOL="$DLLTOOL" | |
19306 | |
19307 # Used on cygwin: object dumper. | |
19308 OBJDUMP="$OBJDUMP" | |
19309 | |
19310 # Used on cygwin: assembler. | |
19311 AS="$AS" | |
19312 | |
19313 # The name of the directory that contains temporary libtool files. | |
19314 objdir=$objdir | |
19315 | |
19316 # How to create reloadable object files. | |
19317 reload_flag=$lt_reload_flag | |
19318 reload_cmds=$lt_reload_cmds | |
19319 | |
19320 # How to pass a linker flag through the compiler. | |
19321 wl=$lt_lt_prog_compiler_wl_RC | |
19322 | |
19323 # Object file suffix (normally "o"). | |
19324 objext="$ac_objext" | |
19325 | |
19326 # Old archive suffix (normally "a"). | |
19327 libext="$libext" | |
19328 | |
19329 # Shared library suffix (normally ".so"). | |
19330 shrext_cmds='$shrext_cmds' | |
19331 | |
19332 # Executable file suffix (normally ""). | |
19333 exeext="$exeext" | |
19334 | |
19335 # Additional compiler flags for building library objects. | |
19336 pic_flag=$lt_lt_prog_compiler_pic_RC | |
19337 pic_mode=$pic_mode | |
19338 | |
19339 # What is the maximum length of a command? | |
19340 max_cmd_len=$lt_cv_sys_max_cmd_len | |
19341 | |
19342 # Does compiler simultaneously support -c and -o options? | |
19343 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
19344 | |
19345 # Must we lock files when doing compilation? | |
19346 need_locks=$lt_need_locks | |
19347 | |
19348 # Do we need the lib prefix for modules? | |
19349 need_lib_prefix=$need_lib_prefix | |
19350 | |
19351 # Do we need a version for libraries? | |
19352 need_version=$need_version | |
19353 | |
19354 # Whether dlopen is supported. | |
19355 dlopen_support=$enable_dlopen | |
19356 | |
19357 # Whether dlopen of programs is supported. | |
19358 dlopen_self=$enable_dlopen_self | |
19359 | |
19360 # Whether dlopen of statically linked programs is supported. | |
19361 dlopen_self_static=$enable_dlopen_self_static | |
19362 | |
19363 # Compiler flag to prevent dynamic linking. | |
19364 link_static_flag=$lt_lt_prog_compiler_static_RC | |
19365 | |
19366 # Compiler flag to turn off builtin functions. | |
19367 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
19368 | |
19369 # Compiler flag to allow reflexive dlopens. | |
19370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
19371 | |
19372 # Compiler flag to generate shared objects directly from archives. | |
19373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
19374 | |
19375 # Compiler flag to generate thread-safe objects. | |
19376 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
19377 | |
19378 # Library versioning type. | |
19379 version_type=$version_type | |
19380 | |
19381 # Format of library name prefix. | |
19382 libname_spec=$lt_libname_spec | |
19383 | |
19384 # List of archive names. First name is the real one, the rest are links. | |
19385 # The last name is the one that the linker finds with -lNAME. | |
19386 library_names_spec=$lt_library_names_spec | |
19387 | |
19388 # The coded name of the library, if different from the real name. | |
19389 soname_spec=$lt_soname_spec | |
19390 | |
19391 # Commands used to build and install an old-style archive. | |
19392 RANLIB=$lt_RANLIB | |
19393 old_archive_cmds=$lt_old_archive_cmds_RC | |
19394 old_postinstall_cmds=$lt_old_postinstall_cmds | |
19395 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19396 | |
19397 # Create an old-style archive from a shared archive. | |
19398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
19399 | |
19400 # Create a temporary old-style archive to link instead of a shared archive. | |
19401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
19402 | |
19403 # Commands used to build and install a shared archive. | |
19404 archive_cmds=$lt_archive_cmds_RC | |
19405 archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
19406 postinstall_cmds=$lt_postinstall_cmds | |
19407 postuninstall_cmds=$lt_postuninstall_cmds | |
19408 | |
19409 # Commands used to build a loadable module (assumed same as above if empty) | |
19410 module_cmds=$lt_module_cmds_RC | |
19411 module_expsym_cmds=$lt_module_expsym_cmds_RC | |
19412 | |
19413 # Commands to strip libraries. | |
19414 old_striplib=$lt_old_striplib | |
19415 striplib=$lt_striplib | |
19416 | |
19417 # Dependencies to place before the objects being linked to create a | |
19418 # shared library. | |
19419 predep_objects=$lt_predep_objects_RC | |
19420 | |
19421 # Dependencies to place after the objects being linked to create a | |
19422 # shared library. | |
19423 postdep_objects=$lt_postdep_objects_RC | |
19424 | |
19425 # Dependencies to place before the objects being linked to create a | |
19426 # shared library. | |
19427 predeps=$lt_predeps_RC | |
19428 | |
19429 # Dependencies to place after the objects being linked to create a | |
19430 # shared library. | |
19431 postdeps=$lt_postdeps_RC | |
19432 | |
19433 # The library search path used internally by the compiler when linking | |
19434 # a shared library. | |
19435 compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
19436 | |
19437 # Method to check whether dependent libraries are shared objects. | |
19438 deplibs_check_method=$lt_deplibs_check_method | |
19439 | |
19440 # Command to use when deplibs_check_method == file_magic. | |
19441 file_magic_cmd=$lt_file_magic_cmd | |
19442 | |
19443 # Flag that allows shared libraries with undefined symbols to be built. | |
19444 allow_undefined_flag=$lt_allow_undefined_flag_RC | |
19445 | |
19446 # Flag that forces no undefined symbols. | |
19447 no_undefined_flag=$lt_no_undefined_flag_RC | |
19448 | |
19449 # Commands used to finish a libtool library installation in a directory. | |
19450 finish_cmds=$lt_finish_cmds | |
19451 | |
19452 # Same as above, but a single script fragment to be evaled but not shown. | |
19453 finish_eval=$lt_finish_eval | |
19454 | |
19455 # Take the output of nm and produce a listing of raw symbols and C names. | |
19456 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19457 | |
19458 # Transform the output of nm in a proper C declaration | |
19459 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19460 | |
19461 # Transform the output of nm in a C name address pair | |
19462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19463 | |
19464 # This is the shared library runtime path variable. | |
19465 runpath_var=$runpath_var | |
19466 | |
19467 # This is the shared library path variable. | |
19468 shlibpath_var=$shlibpath_var | |
19469 | |
19470 # Is shlibpath searched before the hard-coded library search path? | |
19471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19472 | |
19473 # How to hardcode a shared library path into an executable. | |
19474 hardcode_action=$hardcode_action_RC | |
19475 | |
19476 # Whether we should hardcode library paths into libraries. | |
19477 hardcode_into_libs=$hardcode_into_libs | |
19478 | |
19479 # Flag to hardcode \$libdir into a binary during linking. | |
19480 # This must work even if \$libdir does not exist. | |
19481 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
19482 | |
19483 # If ld is used when linking, flag to hardcode \$libdir into | |
19484 # a binary during linking. This must work even if \$libdir does | |
19485 # not exist. | |
19486 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
19487 | |
19488 # Whether we need a single -rpath flag with a separated argument. | |
19489 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
19490 | |
19491 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
19492 # resulting binary. | |
19493 hardcode_direct=$hardcode_direct_RC | |
19494 | |
19495 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
19496 # resulting binary. | |
19497 hardcode_minus_L=$hardcode_minus_L_RC | |
19498 | |
19499 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
19500 # the resulting binary. | |
19501 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
19502 | |
19503 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
19504 # and all subsequent libraries and executables linked against it. | |
19505 hardcode_automatic=$hardcode_automatic_RC | |
19506 | |
19507 # Variables whose values should be saved in libtool wrapper scripts and | |
19508 # restored at relink time. | |
19509 variables_saved_for_relink="$variables_saved_for_relink" | |
19510 | |
19511 # Whether libtool must link a program against all its dependency libraries. | |
19512 link_all_deplibs=$link_all_deplibs_RC | |
19513 | |
19514 # Compile-time system search path for libraries | |
19515 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19516 | |
19517 # Run-time system search path for libraries | |
19518 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19519 | |
19520 # Fix the shell variable \$srcfile for the compiler. | |
19521 fix_srcfile_path="$fix_srcfile_path_RC" | |
19522 | |
19523 # Set to yes if exported symbols are required. | |
19524 always_export_symbols=$always_export_symbols_RC | |
19525 | |
19526 # The commands to list exported symbols. | |
19527 export_symbols_cmds=$lt_export_symbols_cmds_RC | |
19528 | |
19529 # The commands to extract the exported symbol list from a shared archive. | |
19530 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19531 | |
19532 # Symbols that should not be listed in the preloaded symbols. | |
19533 exclude_expsyms=$lt_exclude_expsyms_RC | |
19534 | |
19535 # Symbols that must always be exported. | |
19536 include_expsyms=$lt_include_expsyms_RC | |
19537 | |
19538 # ### END LIBTOOL TAG CONFIG: $tagname | |
19539 | |
19540 __EOF__ | |
19541 | |
19542 | |
19543 else | |
19544 # If there is no Makefile yet, we rely on a make rule to execute | |
19545 # `config.status --recheck' to rerun these tests and create the | |
19546 # libtool script then. | |
19547 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
19548 if test -f "$ltmain_in"; then | |
19549 test -f Makefile && make "$ltmain" | |
19550 fi | |
19551 fi | |
19552 | |
19553 | |
19554 ac_ext=c | |
19555 ac_cpp='$CPP $CPPFLAGS' | |
19556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19558 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19559 | |
19560 CC="$lt_save_CC" | |
19561 | |
19562 ;; | |
19563 | |
19564 *) | |
19565 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
19566 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
19567 { (exit 1); exit 1; }; } | |
19568 ;; | |
19569 esac | |
19570 | |
19571 # Append the new tag name to the list of available tags. | |
19572 if test -n "$tagname" ; then | |
19573 available_tags="$available_tags $tagname" | |
19574 fi | |
19575 fi | |
19576 done | |
19577 IFS="$lt_save_ifs" | |
19578 | |
19579 # Now substitute the updated list of available tags. | |
19580 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
19581 mv "${ofile}T" "$ofile" | |
19582 chmod +x "$ofile" | |
19583 else | |
19584 rm -f "${ofile}T" | |
19585 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
19586 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
19587 { (exit 1); exit 1; }; } | |
19588 fi | |
19589 fi | |
19590 | |
19591 | |
19592 | |
19593 # This can be used to rebuild libtool when needed | |
19594 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
19595 | |
19596 # Always use our own libtool. | |
19597 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
19598 | |
19599 # Prevent multiple expansion | |
19600 | |
19601 | |
19602 | |
19603 | |
19604 | |
19605 | |
19606 | |
19607 | |
19608 | |
19609 | |
19610 | |
19611 | |
19612 | |
19613 | |
19614 | |
19615 | |
19616 | |
19617 | |
19618 | |
19619 | |
19620 sed -e 's/^build_old_libs=yes/build_old_libs=no/' libtool > libtool-disable-static | |
19621 chmod +x libtool-disable-static | |
19622 | |
19623 ACLOCAL_AMFLAGS="-I m4" | |
19624 | |
19625 | |
19626 # By default we simply use the C compiler to build assembly code. | |
19627 | |
19628 : ${CCAS='$(CC)'} | |
19629 # Set ASFLAGS if not already set. | |
19630 : ${CCASFLAGS='$(CFLAGS)'} | |
19631 | |
19632 | |
19633 ac_ext=cc | |
19634 ac_cpp='$CXXCPP $CPPFLAGS' | |
19635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19638 if test -n "$ac_tool_prefix"; then | |
19639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
19640 do | |
19641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
19642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
19643 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19645 if test "${ac_cv_prog_CXX+set}" = set; then | |
19646 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19647 else | |
19648 if test -n "$CXX"; then | |
19649 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
19650 else | |
19651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19652 for as_dir in $PATH | |
19653 do | |
19654 IFS=$as_save_IFS | |
19655 test -z "$as_dir" && as_dir=. | |
19656 for ac_exec_ext in '' $ac_executable_extensions; do | |
19657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19658 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
19659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19660 break 2 | |
19661 fi | |
19662 done | |
19663 done | |
19664 | |
19665 fi | |
19666 fi | |
19667 CXX=$ac_cv_prog_CXX | |
19668 if test -n "$CXX"; then | |
19669 echo "$as_me:$LINENO: result: $CXX" >&5 | |
19670 echo "${ECHO_T}$CXX" >&6 | |
19671 else | |
19672 echo "$as_me:$LINENO: result: no" >&5 | |
19673 echo "${ECHO_T}no" >&6 | |
19674 fi | |
19675 | |
19676 test -n "$CXX" && break | |
19677 done | |
19678 fi | |
19679 if test -z "$CXX"; then | |
19680 ac_ct_CXX=$CXX | |
19681 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
19682 do | |
19683 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19684 set dummy $ac_prog; ac_word=$2 | |
19685 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19687 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
19688 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19689 else | |
19690 if test -n "$ac_ct_CXX"; then | |
19691 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
19692 else | |
19693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19694 for as_dir in $PATH | |
19695 do | |
19696 IFS=$as_save_IFS | |
19697 test -z "$as_dir" && as_dir=. | |
19698 for ac_exec_ext in '' $ac_executable_extensions; do | |
19699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19700 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
19701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19702 break 2 | |
19703 fi | |
19704 done | |
19705 done | |
19706 | |
19707 fi | |
19708 fi | |
19709 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
19710 if test -n "$ac_ct_CXX"; then | |
19711 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
19712 echo "${ECHO_T}$ac_ct_CXX" >&6 | |
19713 else | |
19714 echo "$as_me:$LINENO: result: no" >&5 | |
19715 echo "${ECHO_T}no" >&6 | |
19716 fi | |
19717 | |
19718 test -n "$ac_ct_CXX" && break | |
19719 done | |
19720 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
19721 | |
19722 CXX=$ac_ct_CXX | |
19723 fi | |
19724 | |
19725 | |
19726 # Provide some information about the compiler. | |
19727 echo "$as_me:$LINENO:" \ | |
19728 "checking for C++ compiler version" >&5 | |
19729 ac_compiler=`set X $ac_compile; echo $2` | |
19730 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
19731 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
19732 ac_status=$? | |
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19734 (exit $ac_status); } | |
19735 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
19736 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
19737 ac_status=$? | |
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19739 (exit $ac_status); } | |
19740 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
19741 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
19742 ac_status=$? | |
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19744 (exit $ac_status); } | |
19745 | |
19746 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
19747 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
19748 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
19749 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19750 else | |
19751 cat >conftest.$ac_ext <<_ACEOF | |
19752 /* confdefs.h. */ | |
19753 _ACEOF | |
19754 cat confdefs.h >>conftest.$ac_ext | |
19755 cat >>conftest.$ac_ext <<_ACEOF | |
19756 /* end confdefs.h. */ | |
19757 | |
19758 int | |
19759 main () | |
19760 { | |
19761 #ifndef __GNUC__ | |
19762 choke me | |
19763 #endif | |
19764 | |
19765 ; | |
19766 return 0; | |
19767 } | |
19768 _ACEOF | |
19769 rm -f conftest.$ac_objext | |
19770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19771 (eval $ac_compile) 2>conftest.er1 | |
19772 ac_status=$? | |
19773 grep -v '^ *+' conftest.er1 >conftest.err | |
19774 rm -f conftest.er1 | |
19775 cat conftest.err >&5 | |
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19777 (exit $ac_status); } && | |
19778 { ac_try='test -z "$ac_cxx_werror_flag" | |
19779 || test ! -s conftest.err' | |
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19781 (eval $ac_try) 2>&5 | |
19782 ac_status=$? | |
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19784 (exit $ac_status); }; } && | |
19785 { ac_try='test -s conftest.$ac_objext' | |
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19787 (eval $ac_try) 2>&5 | |
19788 ac_status=$? | |
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19790 (exit $ac_status); }; }; then | |
19791 ac_compiler_gnu=yes | |
19792 else | |
19793 echo "$as_me: failed program was:" >&5 | |
19794 sed 's/^/| /' conftest.$ac_ext >&5 | |
19795 | |
19796 ac_compiler_gnu=no | |
19797 fi | |
19798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19799 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
19800 | |
19801 fi | |
19802 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
19803 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
19804 GXX=`test $ac_compiler_gnu = yes && echo yes` | |
19805 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
19806 ac_save_CXXFLAGS=$CXXFLAGS | |
19807 CXXFLAGS="-g" | |
19808 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
19809 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
19810 if test "${ac_cv_prog_cxx_g+set}" = set; then | |
19811 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19812 else | |
19813 cat >conftest.$ac_ext <<_ACEOF | |
19814 /* confdefs.h. */ | |
19815 _ACEOF | |
19816 cat confdefs.h >>conftest.$ac_ext | |
19817 cat >>conftest.$ac_ext <<_ACEOF | |
19818 /* end confdefs.h. */ | |
19819 | |
19820 int | |
19821 main () | |
19822 { | |
19823 | |
19824 ; | |
19825 return 0; | |
19826 } | |
19827 _ACEOF | |
19828 rm -f conftest.$ac_objext | |
19829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19830 (eval $ac_compile) 2>conftest.er1 | |
19831 ac_status=$? | |
19832 grep -v '^ *+' conftest.er1 >conftest.err | |
19833 rm -f conftest.er1 | |
19834 cat conftest.err >&5 | |
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19836 (exit $ac_status); } && | |
19837 { ac_try='test -z "$ac_cxx_werror_flag" | |
19838 || test ! -s conftest.err' | |
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19840 (eval $ac_try) 2>&5 | |
19841 ac_status=$? | |
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19843 (exit $ac_status); }; } && | |
19844 { ac_try='test -s conftest.$ac_objext' | |
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19846 (eval $ac_try) 2>&5 | |
19847 ac_status=$? | |
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19849 (exit $ac_status); }; }; then | |
19850 ac_cv_prog_cxx_g=yes | |
19851 else | |
19852 echo "$as_me: failed program was:" >&5 | |
19853 sed 's/^/| /' conftest.$ac_ext >&5 | |
19854 | |
19855 ac_cv_prog_cxx_g=no | |
19856 fi | |
19857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19858 fi | |
19859 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
19860 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
19861 if test "$ac_test_CXXFLAGS" = set; then | |
19862 CXXFLAGS=$ac_save_CXXFLAGS | |
19863 elif test $ac_cv_prog_cxx_g = yes; then | |
19864 if test "$GXX" = yes; then | |
19865 CXXFLAGS="-g -O2" | |
19866 else | |
19867 CXXFLAGS="-g" | |
19868 fi | |
19869 else | |
19870 if test "$GXX" = yes; then | |
19871 CXXFLAGS="-O2" | |
19872 else | |
19873 CXXFLAGS= | |
19874 fi | |
19875 fi | |
19876 for ac_declaration in \ | |
19877 '' \ | |
19878 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
19879 'extern "C" void std::exit (int); using std::exit;' \ | |
19880 'extern "C" void exit (int) throw ();' \ | |
19881 'extern "C" void exit (int);' \ | |
19882 'void exit (int);' | |
19883 do | |
19884 cat >conftest.$ac_ext <<_ACEOF | |
19885 /* confdefs.h. */ | |
19886 _ACEOF | |
19887 cat confdefs.h >>conftest.$ac_ext | |
19888 cat >>conftest.$ac_ext <<_ACEOF | |
19889 /* end confdefs.h. */ | |
19890 $ac_declaration | |
19891 #include <stdlib.h> | |
19892 int | |
19893 main () | |
19894 { | |
19895 exit (42); | |
19896 ; | |
19897 return 0; | |
19898 } | |
19899 _ACEOF | |
19900 rm -f conftest.$ac_objext | |
19901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19902 (eval $ac_compile) 2>conftest.er1 | |
19903 ac_status=$? | |
19904 grep -v '^ *+' conftest.er1 >conftest.err | |
19905 rm -f conftest.er1 | |
19906 cat conftest.err >&5 | |
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19908 (exit $ac_status); } && | |
19909 { ac_try='test -z "$ac_cxx_werror_flag" | |
19910 || test ! -s conftest.err' | |
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19912 (eval $ac_try) 2>&5 | |
19913 ac_status=$? | |
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19915 (exit $ac_status); }; } && | |
19916 { ac_try='test -s conftest.$ac_objext' | |
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19918 (eval $ac_try) 2>&5 | |
19919 ac_status=$? | |
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19921 (exit $ac_status); }; }; then | |
19922 : | |
19923 else | |
19924 echo "$as_me: failed program was:" >&5 | |
19925 sed 's/^/| /' conftest.$ac_ext >&5 | |
19926 | |
19927 continue | |
19928 fi | |
19929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19930 cat >conftest.$ac_ext <<_ACEOF | |
19931 /* confdefs.h. */ | |
19932 _ACEOF | |
19933 cat confdefs.h >>conftest.$ac_ext | |
19934 cat >>conftest.$ac_ext <<_ACEOF | |
19935 /* end confdefs.h. */ | |
19936 $ac_declaration | |
19937 int | |
19938 main () | |
19939 { | |
19940 exit (42); | |
19941 ; | |
19942 return 0; | |
19943 } | |
19944 _ACEOF | |
19945 rm -f conftest.$ac_objext | |
19946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19947 (eval $ac_compile) 2>conftest.er1 | |
19948 ac_status=$? | |
19949 grep -v '^ *+' conftest.er1 >conftest.err | |
19950 rm -f conftest.er1 | |
19951 cat conftest.err >&5 | |
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19953 (exit $ac_status); } && | |
19954 { ac_try='test -z "$ac_cxx_werror_flag" | |
19955 || test ! -s conftest.err' | |
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19957 (eval $ac_try) 2>&5 | |
19958 ac_status=$? | |
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19960 (exit $ac_status); }; } && | |
19961 { ac_try='test -s conftest.$ac_objext' | |
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19963 (eval $ac_try) 2>&5 | |
19964 ac_status=$? | |
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19966 (exit $ac_status); }; }; then | |
19967 break | |
19968 else | |
19969 echo "$as_me: failed program was:" >&5 | |
19970 sed 's/^/| /' conftest.$ac_ext >&5 | |
19971 | |
19972 fi | |
19973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19974 done | |
19975 rm -f conftest* | |
19976 if test -n "$ac_declaration"; then | |
19977 echo '#ifdef __cplusplus' >>confdefs.h | |
19978 echo $ac_declaration >>confdefs.h | |
19979 echo '#endif' >>confdefs.h | |
19980 fi | |
19981 | |
19982 ac_ext=c | |
19983 ac_cpp='$CPP $CPPFLAGS' | |
19984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19986 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19987 | |
19988 depcc="$CXX" am_compiler_list= | |
19989 | |
19990 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
19991 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
19992 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
19993 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19994 else | |
19995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
19996 # We make a subdir and do the tests there. Otherwise we can end up | |
19997 # making bogus files that we don't know about and never remove. For | |
19998 # instance it was reported that on HP-UX the gcc test will end up | |
19999 # making a dummy file named `D' -- because `-MD' means `put the output | |
20000 # in D'. | |
20001 mkdir conftest.dir | |
20002 # Copy depcomp to subdir because otherwise we won't find it if we're | |
20003 # using a relative directory. | |
20004 cp "$am_depcomp" conftest.dir | |
20005 cd conftest.dir | |
20006 # We will build objects and dependencies in a subdirectory because | |
20007 # it helps to detect inapplicable dependency modes. For instance | |
20008 # both Tru64's cc and ICC support -MD to output dependencies as a | |
20009 # side effect of compilation, but ICC will put the dependencies in | |
20010 # the current directory while Tru64 will put them in the object | |
20011 # directory. | |
20012 mkdir sub | |
20013 | |
20014 am_cv_CXX_dependencies_compiler_type=none | |
20015 if test "$am_compiler_list" = ""; then | |
20016 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
20017 fi | |
20018 for depmode in $am_compiler_list; do | |
20019 # Setup a source with many dependencies, because some compilers | |
20020 # like to wrap large dependency lists on column 80 (with \), and | |
20021 # we should not choose a depcomp mode which is confused by this. | |
20022 # | |
20023 # We need to recreate these files for each test, as the compiler may | |
20024 # overwrite some of them when testing with obscure command lines. | |
20025 # This happens at least with the AIX C compiler. | |
20026 : > sub/conftest.c | |
20027 for i in 1 2 3 4 5 6; do | |
20028 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
20029 : > sub/conftst$i.h | |
20030 done | |
20031 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
20032 | |
20033 case $depmode in | |
20034 nosideeffect) | |
20035 # after this tag, mechanisms are not by side-effect, so they'll | |
20036 # only be used when explicitly requested | |
20037 if test "x$enable_dependency_tracking" = xyes; then | |
20038 continue | |
20039 else | |
20040 break | |
20041 fi | |
20042 ;; | |
20043 none) break ;; | |
20044 esac | |
20045 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
20046 # mode. It turns out that the SunPro C++ compiler does not properly | |
20047 # handle `-M -o', and we need to detect this. | |
20048 if depmode=$depmode \ | |
20049 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
20050 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
20051 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
20052 >/dev/null 2>conftest.err && | |
20053 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
20054 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
20055 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
20056 # icc doesn't choke on unknown options, it will just issue warnings | |
20057 # (even with -Werror). So we grep stderr for any message | |
20058 # that says an option was ignored. | |
20059 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else | |
20060 am_cv_CXX_dependencies_compiler_type=$depmode | |
20061 break | |
20062 fi | |
20063 fi | |
20064 done | |
20065 | |
20066 cd .. | |
20067 rm -rf conftest.dir | |
20068 else | |
20069 am_cv_CXX_dependencies_compiler_type=none | |
20070 fi | |
20071 | |
20072 fi | |
20073 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
20074 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
20075 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
20076 | |
20077 | |
20078 | |
20079 if | |
20080 test "x$enable_dependency_tracking" != xno \ | |
20081 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
20082 am__fastdepCXX_TRUE= | |
20083 am__fastdepCXX_FALSE='#' | |
20084 else | |
20085 am__fastdepCXX_TRUE='#' | |
20086 am__fastdepCXX_FALSE= | |
20087 fi | |
20088 | |
20089 | |
20090 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
20091 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
20092 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
20093 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
20094 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20095 else | |
20096 cat >conftest.make <<\_ACEOF | |
20097 all: | |
20098 @echo 'ac_maketemp="$(MAKE)"' | |
20099 _ACEOF | |
20100 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
20101 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
20102 if test -n "$ac_maketemp"; then | |
20103 eval ac_cv_prog_make_${ac_make}_set=yes | |
20104 else | |
20105 eval ac_cv_prog_make_${ac_make}_set=no | |
20106 fi | |
20107 rm -f conftest.make | |
20108 fi | |
20109 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
20110 echo "$as_me:$LINENO: result: yes" >&5 | |
20111 echo "${ECHO_T}yes" >&6 | |
20112 SET_MAKE= | |
20113 else | |
20114 echo "$as_me:$LINENO: result: no" >&5 | |
20115 echo "${ECHO_T}no" >&6 | |
20116 SET_MAKE="MAKE=${MAKE-make}" | |
20117 fi | |
20118 | |
20119 | |
20120 # Check whether --enable-largefile or --disable-largefile was given. | |
20121 if test "${enable_largefile+set}" = set; then | |
20122 enableval="$enable_largefile" | |
20123 | |
20124 fi; | |
20125 if test "$enable_largefile" != no; then | |
20126 | |
20127 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
20128 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
20129 if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
20130 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20131 else | |
20132 ac_cv_sys_largefile_CC=no | |
20133 if test "$GCC" != yes; then | |
20134 ac_save_CC=$CC | |
20135 while :; do | |
20136 # IRIX 6.2 and later do not support large files by default, | |
20137 # so use the C compiler's -n32 option if that helps. | |
20138 cat >conftest.$ac_ext <<_ACEOF | |
20139 /* confdefs.h. */ | |
20140 _ACEOF | |
20141 cat confdefs.h >>conftest.$ac_ext | |
20142 cat >>conftest.$ac_ext <<_ACEOF | |
20143 /* end confdefs.h. */ | |
20144 #include <sys/types.h> | |
20145 /* Check that off_t can represent 2**63 - 1 correctly. | |
20146 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
20147 since some C++ compilers masquerading as C compilers | |
20148 incorrectly reject 9223372036854775807. */ | |
20149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
20150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
20151 && LARGE_OFF_T % 2147483647 == 1) | |
20152 ? 1 : -1]; | |
20153 int | |
20154 main () | |
20155 { | |
20156 | |
20157 ; | |
20158 return 0; | |
20159 } | |
20160 _ACEOF | |
20161 rm -f conftest.$ac_objext | |
20162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20163 (eval $ac_compile) 2>conftest.er1 | |
20164 ac_status=$? | |
20165 grep -v '^ *+' conftest.er1 >conftest.err | |
20166 rm -f conftest.er1 | |
20167 cat conftest.err >&5 | |
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20169 (exit $ac_status); } && | |
20170 { ac_try='test -z "$ac_c_werror_flag" | |
20171 || test ! -s conftest.err' | |
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20173 (eval $ac_try) 2>&5 | |
20174 ac_status=$? | |
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20176 (exit $ac_status); }; } && | |
20177 { ac_try='test -s conftest.$ac_objext' | |
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20179 (eval $ac_try) 2>&5 | |
20180 ac_status=$? | |
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20182 (exit $ac_status); }; }; then | |
20183 break | |
20184 else | |
20185 echo "$as_me: failed program was:" >&5 | |
20186 sed 's/^/| /' conftest.$ac_ext >&5 | |
20187 | |
20188 fi | |
20189 rm -f conftest.err conftest.$ac_objext | |
20190 CC="$CC -n32" | |
20191 rm -f conftest.$ac_objext | |
20192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20193 (eval $ac_compile) 2>conftest.er1 | |
20194 ac_status=$? | |
20195 grep -v '^ *+' conftest.er1 >conftest.err | |
20196 rm -f conftest.er1 | |
20197 cat conftest.err >&5 | |
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20199 (exit $ac_status); } && | |
20200 { ac_try='test -z "$ac_c_werror_flag" | |
20201 || test ! -s conftest.err' | |
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20203 (eval $ac_try) 2>&5 | |
20204 ac_status=$? | |
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20206 (exit $ac_status); }; } && | |
20207 { ac_try='test -s conftest.$ac_objext' | |
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20209 (eval $ac_try) 2>&5 | |
20210 ac_status=$? | |
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20212 (exit $ac_status); }; }; then | |
20213 ac_cv_sys_largefile_CC=' -n32'; break | |
20214 else | |
20215 echo "$as_me: failed program was:" >&5 | |
20216 sed 's/^/| /' conftest.$ac_ext >&5 | |
20217 | |
20218 fi | |
20219 rm -f conftest.err conftest.$ac_objext | |
20220 break | |
20221 done | |
20222 CC=$ac_save_CC | |
20223 rm -f conftest.$ac_ext | |
20224 fi | |
20225 fi | |
20226 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
20227 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
20228 if test "$ac_cv_sys_largefile_CC" != no; then | |
20229 CC=$CC$ac_cv_sys_largefile_CC | |
20230 fi | |
20231 | |
20232 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
20233 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
20234 if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
20235 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20236 else | |
20237 while :; do | |
20238 ac_cv_sys_file_offset_bits=no | |
20239 cat >conftest.$ac_ext <<_ACEOF | |
20240 /* confdefs.h. */ | |
20241 _ACEOF | |
20242 cat confdefs.h >>conftest.$ac_ext | |
20243 cat >>conftest.$ac_ext <<_ACEOF | |
20244 /* end confdefs.h. */ | |
20245 #include <sys/types.h> | |
20246 /* Check that off_t can represent 2**63 - 1 correctly. | |
20247 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
20248 since some C++ compilers masquerading as C compilers | |
20249 incorrectly reject 9223372036854775807. */ | |
20250 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
20251 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
20252 && LARGE_OFF_T % 2147483647 == 1) | |
20253 ? 1 : -1]; | |
20254 int | |
20255 main () | |
20256 { | |
20257 | |
20258 ; | |
20259 return 0; | |
20260 } | |
20261 _ACEOF | |
20262 rm -f conftest.$ac_objext | |
20263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20264 (eval $ac_compile) 2>conftest.er1 | |
20265 ac_status=$? | |
20266 grep -v '^ *+' conftest.er1 >conftest.err | |
20267 rm -f conftest.er1 | |
20268 cat conftest.err >&5 | |
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20270 (exit $ac_status); } && | |
20271 { ac_try='test -z "$ac_c_werror_flag" | |
20272 || test ! -s conftest.err' | |
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20274 (eval $ac_try) 2>&5 | |
20275 ac_status=$? | |
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20277 (exit $ac_status); }; } && | |
20278 { ac_try='test -s conftest.$ac_objext' | |
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20280 (eval $ac_try) 2>&5 | |
20281 ac_status=$? | |
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20283 (exit $ac_status); }; }; then | |
20284 break | |
20285 else | |
20286 echo "$as_me: failed program was:" >&5 | |
20287 sed 's/^/| /' conftest.$ac_ext >&5 | |
20288 | |
20289 fi | |
20290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20291 cat >conftest.$ac_ext <<_ACEOF | |
20292 /* confdefs.h. */ | |
20293 _ACEOF | |
20294 cat confdefs.h >>conftest.$ac_ext | |
20295 cat >>conftest.$ac_ext <<_ACEOF | |
20296 /* end confdefs.h. */ | |
20297 #define _FILE_OFFSET_BITS 64 | |
20298 #include <sys/types.h> | |
20299 /* Check that off_t can represent 2**63 - 1 correctly. | |
20300 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
20301 since some C++ compilers masquerading as C compilers | |
20302 incorrectly reject 9223372036854775807. */ | |
20303 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
20304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
20305 && LARGE_OFF_T % 2147483647 == 1) | |
20306 ? 1 : -1]; | |
20307 int | |
20308 main () | |
20309 { | |
20310 | |
20311 ; | |
20312 return 0; | |
20313 } | |
20314 _ACEOF | |
20315 rm -f conftest.$ac_objext | |
20316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20317 (eval $ac_compile) 2>conftest.er1 | |
20318 ac_status=$? | |
20319 grep -v '^ *+' conftest.er1 >conftest.err | |
20320 rm -f conftest.er1 | |
20321 cat conftest.err >&5 | |
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20323 (exit $ac_status); } && | |
20324 { ac_try='test -z "$ac_c_werror_flag" | |
20325 || test ! -s conftest.err' | |
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20327 (eval $ac_try) 2>&5 | |
20328 ac_status=$? | |
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20330 (exit $ac_status); }; } && | |
20331 { ac_try='test -s conftest.$ac_objext' | |
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20333 (eval $ac_try) 2>&5 | |
20334 ac_status=$? | |
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20336 (exit $ac_status); }; }; then | |
20337 ac_cv_sys_file_offset_bits=64; break | |
20338 else | |
20339 echo "$as_me: failed program was:" >&5 | |
20340 sed 's/^/| /' conftest.$ac_ext >&5 | |
20341 | |
20342 fi | |
20343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20344 break | |
20345 done | |
20346 fi | |
20347 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
20348 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
20349 if test "$ac_cv_sys_file_offset_bits" != no; then | |
20350 | |
20351 cat >>confdefs.h <<_ACEOF | |
20352 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
20353 _ACEOF | |
20354 | |
20355 fi | |
20356 rm -f conftest* | |
20357 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
20358 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
20359 if test "${ac_cv_sys_large_files+set}" = set; then | |
20360 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20361 else | |
20362 while :; do | |
20363 ac_cv_sys_large_files=no | |
20364 cat >conftest.$ac_ext <<_ACEOF | |
20365 /* confdefs.h. */ | |
20366 _ACEOF | |
20367 cat confdefs.h >>conftest.$ac_ext | |
20368 cat >>conftest.$ac_ext <<_ACEOF | |
20369 /* end confdefs.h. */ | |
20370 #include <sys/types.h> | |
20371 /* Check that off_t can represent 2**63 - 1 correctly. | |
20372 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
20373 since some C++ compilers masquerading as C compilers | |
20374 incorrectly reject 9223372036854775807. */ | |
20375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
20376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
20377 && LARGE_OFF_T % 2147483647 == 1) | |
20378 ? 1 : -1]; | |
20379 int | |
20380 main () | |
20381 { | |
20382 | |
20383 ; | |
20384 return 0; | |
20385 } | |
20386 _ACEOF | |
20387 rm -f conftest.$ac_objext | |
20388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20389 (eval $ac_compile) 2>conftest.er1 | |
20390 ac_status=$? | |
20391 grep -v '^ *+' conftest.er1 >conftest.err | |
20392 rm -f conftest.er1 | |
20393 cat conftest.err >&5 | |
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20395 (exit $ac_status); } && | |
20396 { ac_try='test -z "$ac_c_werror_flag" | |
20397 || test ! -s conftest.err' | |
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20399 (eval $ac_try) 2>&5 | |
20400 ac_status=$? | |
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20402 (exit $ac_status); }; } && | |
20403 { ac_try='test -s conftest.$ac_objext' | |
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20405 (eval $ac_try) 2>&5 | |
20406 ac_status=$? | |
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20408 (exit $ac_status); }; }; then | |
20409 break | |
20410 else | |
20411 echo "$as_me: failed program was:" >&5 | |
20412 sed 's/^/| /' conftest.$ac_ext >&5 | |
20413 | |
20414 fi | |
20415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20416 cat >conftest.$ac_ext <<_ACEOF | |
20417 /* confdefs.h. */ | |
20418 _ACEOF | |
20419 cat confdefs.h >>conftest.$ac_ext | |
20420 cat >>conftest.$ac_ext <<_ACEOF | |
20421 /* end confdefs.h. */ | |
20422 #define _LARGE_FILES 1 | |
20423 #include <sys/types.h> | |
20424 /* Check that off_t can represent 2**63 - 1 correctly. | |
20425 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
20426 since some C++ compilers masquerading as C compilers | |
20427 incorrectly reject 9223372036854775807. */ | |
20428 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
20429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
20430 && LARGE_OFF_T % 2147483647 == 1) | |
20431 ? 1 : -1]; | |
20432 int | |
20433 main () | |
20434 { | |
20435 | |
20436 ; | |
20437 return 0; | |
20438 } | |
20439 _ACEOF | |
20440 rm -f conftest.$ac_objext | |
20441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20442 (eval $ac_compile) 2>conftest.er1 | |
20443 ac_status=$? | |
20444 grep -v '^ *+' conftest.er1 >conftest.err | |
20445 rm -f conftest.er1 | |
20446 cat conftest.err >&5 | |
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20448 (exit $ac_status); } && | |
20449 { ac_try='test -z "$ac_c_werror_flag" | |
20450 || test ! -s conftest.err' | |
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20452 (eval $ac_try) 2>&5 | |
20453 ac_status=$? | |
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20455 (exit $ac_status); }; } && | |
20456 { ac_try='test -s conftest.$ac_objext' | |
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20458 (eval $ac_try) 2>&5 | |
20459 ac_status=$? | |
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20461 (exit $ac_status); }; }; then | |
20462 ac_cv_sys_large_files=1; break | |
20463 else | |
20464 echo "$as_me: failed program was:" >&5 | |
20465 sed 's/^/| /' conftest.$ac_ext >&5 | |
20466 | |
20467 fi | |
20468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20469 break | |
20470 done | |
20471 fi | |
20472 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
20473 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
20474 if test "$ac_cv_sys_large_files" != no; then | |
20475 | |
20476 cat >>confdefs.h <<_ACEOF | |
20477 #define _LARGE_FILES $ac_cv_sys_large_files | |
20478 _ACEOF | |
20479 | |
20480 fi | |
20481 rm -f conftest* | |
20482 fi | |
20483 | |
20484 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
20485 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 | |
20486 if test "${ac_cv_sys_largefile_source+set}" = set; then | |
20487 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20488 else | |
20489 while :; do | |
20490 ac_cv_sys_largefile_source=no | |
20491 cat >conftest.$ac_ext <<_ACEOF | |
20492 /* confdefs.h. */ | |
20493 _ACEOF | |
20494 cat confdefs.h >>conftest.$ac_ext | |
20495 cat >>conftest.$ac_ext <<_ACEOF | |
20496 /* end confdefs.h. */ | |
20497 #include <stdio.h> | |
20498 int | |
20499 main () | |
20500 { | |
20501 return !fseeko; | |
20502 ; | |
20503 return 0; | |
20504 } | |
20505 _ACEOF | |
20506 rm -f conftest.$ac_objext | |
20507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20508 (eval $ac_compile) 2>conftest.er1 | |
20509 ac_status=$? | |
20510 grep -v '^ *+' conftest.er1 >conftest.err | |
20511 rm -f conftest.er1 | |
20512 cat conftest.err >&5 | |
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20514 (exit $ac_status); } && | |
20515 { ac_try='test -z "$ac_c_werror_flag" | |
20516 || test ! -s conftest.err' | |
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20518 (eval $ac_try) 2>&5 | |
20519 ac_status=$? | |
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20521 (exit $ac_status); }; } && | |
20522 { ac_try='test -s conftest.$ac_objext' | |
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20524 (eval $ac_try) 2>&5 | |
20525 ac_status=$? | |
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20527 (exit $ac_status); }; }; then | |
20528 break | |
20529 else | |
20530 echo "$as_me: failed program was:" >&5 | |
20531 sed 's/^/| /' conftest.$ac_ext >&5 | |
20532 | |
20533 fi | |
20534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20535 cat >conftest.$ac_ext <<_ACEOF | |
20536 /* confdefs.h. */ | |
20537 _ACEOF | |
20538 cat confdefs.h >>conftest.$ac_ext | |
20539 cat >>conftest.$ac_ext <<_ACEOF | |
20540 /* end confdefs.h. */ | |
20541 #define _LARGEFILE_SOURCE 1 | |
20542 #include <stdio.h> | |
20543 int | |
20544 main () | |
20545 { | |
20546 return !fseeko; | |
20547 ; | |
20548 return 0; | |
20549 } | |
20550 _ACEOF | |
20551 rm -f conftest.$ac_objext | |
20552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20553 (eval $ac_compile) 2>conftest.er1 | |
20554 ac_status=$? | |
20555 grep -v '^ *+' conftest.er1 >conftest.err | |
20556 rm -f conftest.er1 | |
20557 cat conftest.err >&5 | |
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20559 (exit $ac_status); } && | |
20560 { ac_try='test -z "$ac_c_werror_flag" | |
20561 || test ! -s conftest.err' | |
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20563 (eval $ac_try) 2>&5 | |
20564 ac_status=$? | |
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20566 (exit $ac_status); }; } && | |
20567 { ac_try='test -s conftest.$ac_objext' | |
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20569 (eval $ac_try) 2>&5 | |
20570 ac_status=$? | |
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20572 (exit $ac_status); }; }; then | |
20573 ac_cv_sys_largefile_source=1; break | |
20574 else | |
20575 echo "$as_me: failed program was:" >&5 | |
20576 sed 's/^/| /' conftest.$ac_ext >&5 | |
20577 | |
20578 fi | |
20579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20580 break | |
20581 done | |
20582 fi | |
20583 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
20584 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
20585 if test "$ac_cv_sys_largefile_source" != no; then | |
20586 | |
20587 cat >>confdefs.h <<_ACEOF | |
20588 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
20589 _ACEOF | |
20590 | |
20591 fi | |
20592 rm -f conftest* | |
20593 | |
20594 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
20595 # in glibc 2.1.3, but that breaks too many other things. | |
20596 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
20597 echo "$as_me:$LINENO: checking for fseeko" >&5 | |
20598 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
20599 if test "${ac_cv_func_fseeko+set}" = set; then | |
20600 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20601 else | |
20602 cat >conftest.$ac_ext <<_ACEOF | |
20603 /* confdefs.h. */ | |
20604 _ACEOF | |
20605 cat confdefs.h >>conftest.$ac_ext | |
20606 cat >>conftest.$ac_ext <<_ACEOF | |
20607 /* end confdefs.h. */ | |
20608 #include <stdio.h> | |
20609 int | |
20610 main () | |
20611 { | |
20612 return fseeko && fseeko (stdin, 0, 0); | |
20613 ; | |
20614 return 0; | |
20615 } | |
20616 _ACEOF | |
20617 rm -f conftest.$ac_objext conftest$ac_exeext | |
20618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20619 (eval $ac_link) 2>conftest.er1 | |
20620 ac_status=$? | |
20621 grep -v '^ *+' conftest.er1 >conftest.err | |
20622 rm -f conftest.er1 | |
20623 cat conftest.err >&5 | |
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20625 (exit $ac_status); } && | |
20626 { ac_try='test -z "$ac_c_werror_flag" | |
20627 || test ! -s conftest.err' | |
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20629 (eval $ac_try) 2>&5 | |
20630 ac_status=$? | |
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20632 (exit $ac_status); }; } && | |
20633 { ac_try='test -s conftest$ac_exeext' | |
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20635 (eval $ac_try) 2>&5 | |
20636 ac_status=$? | |
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20638 (exit $ac_status); }; }; then | |
20639 ac_cv_func_fseeko=yes | |
20640 else | |
20641 echo "$as_me: failed program was:" >&5 | |
20642 sed 's/^/| /' conftest.$ac_ext >&5 | |
20643 | |
20644 ac_cv_func_fseeko=no | |
20645 fi | |
20646 rm -f conftest.err conftest.$ac_objext \ | |
20647 conftest$ac_exeext conftest.$ac_ext | |
20648 fi | |
20649 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
20650 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
20651 if test $ac_cv_func_fseeko = yes; then | |
20652 | |
20653 cat >>confdefs.h <<\_ACEOF | |
20654 #define HAVE_FSEEKO 1 | |
20655 _ACEOF | |
20656 | |
20657 fi | |
20658 | |
20659 | |
20660 echo "$as_me:$LINENO: checking for void*" >&5 | |
20661 echo $ECHO_N "checking for void*... $ECHO_C" >&6 | |
20662 if test "${ac_cv_type_voidp+set}" = set; then | |
20663 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20664 else | |
20665 cat >conftest.$ac_ext <<_ACEOF | |
20666 /* confdefs.h. */ | |
20667 _ACEOF | |
20668 cat confdefs.h >>conftest.$ac_ext | |
20669 cat >>conftest.$ac_ext <<_ACEOF | |
20670 /* end confdefs.h. */ | |
20671 $ac_includes_default | |
20672 int | |
20673 main () | |
20674 { | |
20675 if ((void* *) 0) | |
20676 return 0; | |
20677 if (sizeof (void*)) | |
20678 return 0; | |
20679 ; | |
20680 return 0; | |
20681 } | |
20682 _ACEOF | |
20683 rm -f conftest.$ac_objext | |
20684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20685 (eval $ac_compile) 2>conftest.er1 | |
20686 ac_status=$? | |
20687 grep -v '^ *+' conftest.er1 >conftest.err | |
20688 rm -f conftest.er1 | |
20689 cat conftest.err >&5 | |
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20691 (exit $ac_status); } && | |
20692 { ac_try='test -z "$ac_c_werror_flag" | |
20693 || test ! -s conftest.err' | |
20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20695 (eval $ac_try) 2>&5 | |
20696 ac_status=$? | |
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20698 (exit $ac_status); }; } && | |
20699 { ac_try='test -s conftest.$ac_objext' | |
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20701 (eval $ac_try) 2>&5 | |
20702 ac_status=$? | |
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20704 (exit $ac_status); }; }; then | |
20705 ac_cv_type_voidp=yes | |
20706 else | |
20707 echo "$as_me: failed program was:" >&5 | |
20708 sed 's/^/| /' conftest.$ac_ext >&5 | |
20709 | |
20710 ac_cv_type_voidp=no | |
20711 fi | |
20712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20713 fi | |
20714 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5 | |
20715 echo "${ECHO_T}$ac_cv_type_voidp" >&6 | |
20716 | |
20717 echo "$as_me:$LINENO: checking size of void*" >&5 | |
20718 echo $ECHO_N "checking size of void*... $ECHO_C" >&6 | |
20719 if test "${ac_cv_sizeof_voidp+set}" = set; then | |
20720 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20721 else | |
20722 if test "$ac_cv_type_voidp" = yes; then | |
20723 # The cast to unsigned long works around a bug in the HP C Compiler | |
20724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20726 # This bug is HP SR number 8606223364. | |
20727 if test "$cross_compiling" = yes; then | |
20728 # Depending upon the size, compute the lo and hi bounds. | |
20729 cat >conftest.$ac_ext <<_ACEOF | |
20730 /* confdefs.h. */ | |
20731 _ACEOF | |
20732 cat confdefs.h >>conftest.$ac_ext | |
20733 cat >>conftest.$ac_ext <<_ACEOF | |
20734 /* end confdefs.h. */ | |
20735 $ac_includes_default | |
20736 int | |
20737 main () | |
20738 { | |
20739 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)]; | |
20740 test_array [0] = 0 | |
20741 | |
20742 ; | |
20743 return 0; | |
20744 } | |
20745 _ACEOF | |
20746 rm -f conftest.$ac_objext | |
20747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20748 (eval $ac_compile) 2>conftest.er1 | |
20749 ac_status=$? | |
20750 grep -v '^ *+' conftest.er1 >conftest.err | |
20751 rm -f conftest.er1 | |
20752 cat conftest.err >&5 | |
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20754 (exit $ac_status); } && | |
20755 { ac_try='test -z "$ac_c_werror_flag" | |
20756 || test ! -s conftest.err' | |
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20758 (eval $ac_try) 2>&5 | |
20759 ac_status=$? | |
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20761 (exit $ac_status); }; } && | |
20762 { ac_try='test -s conftest.$ac_objext' | |
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20764 (eval $ac_try) 2>&5 | |
20765 ac_status=$? | |
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20767 (exit $ac_status); }; }; then | |
20768 ac_lo=0 ac_mid=0 | |
20769 while :; do | |
20770 cat >conftest.$ac_ext <<_ACEOF | |
20771 /* confdefs.h. */ | |
20772 _ACEOF | |
20773 cat confdefs.h >>conftest.$ac_ext | |
20774 cat >>conftest.$ac_ext <<_ACEOF | |
20775 /* end confdefs.h. */ | |
20776 $ac_includes_default | |
20777 int | |
20778 main () | |
20779 { | |
20780 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)]; | |
20781 test_array [0] = 0 | |
20782 | |
20783 ; | |
20784 return 0; | |
20785 } | |
20786 _ACEOF | |
20787 rm -f conftest.$ac_objext | |
20788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20789 (eval $ac_compile) 2>conftest.er1 | |
20790 ac_status=$? | |
20791 grep -v '^ *+' conftest.er1 >conftest.err | |
20792 rm -f conftest.er1 | |
20793 cat conftest.err >&5 | |
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20795 (exit $ac_status); } && | |
20796 { ac_try='test -z "$ac_c_werror_flag" | |
20797 || test ! -s conftest.err' | |
20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20799 (eval $ac_try) 2>&5 | |
20800 ac_status=$? | |
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20802 (exit $ac_status); }; } && | |
20803 { ac_try='test -s conftest.$ac_objext' | |
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20805 (eval $ac_try) 2>&5 | |
20806 ac_status=$? | |
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20808 (exit $ac_status); }; }; then | |
20809 ac_hi=$ac_mid; break | |
20810 else | |
20811 echo "$as_me: failed program was:" >&5 | |
20812 sed 's/^/| /' conftest.$ac_ext >&5 | |
20813 | |
20814 ac_lo=`expr $ac_mid + 1` | |
20815 if test $ac_lo -le $ac_mid; then | |
20816 ac_lo= ac_hi= | |
20817 break | |
20818 fi | |
20819 ac_mid=`expr 2 '*' $ac_mid + 1` | |
20820 fi | |
20821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20822 done | |
20823 else | |
20824 echo "$as_me: failed program was:" >&5 | |
20825 sed 's/^/| /' conftest.$ac_ext >&5 | |
20826 | |
20827 cat >conftest.$ac_ext <<_ACEOF | |
20828 /* confdefs.h. */ | |
20829 _ACEOF | |
20830 cat confdefs.h >>conftest.$ac_ext | |
20831 cat >>conftest.$ac_ext <<_ACEOF | |
20832 /* end confdefs.h. */ | |
20833 $ac_includes_default | |
20834 int | |
20835 main () | |
20836 { | |
20837 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)]; | |
20838 test_array [0] = 0 | |
20839 | |
20840 ; | |
20841 return 0; | |
20842 } | |
20843 _ACEOF | |
20844 rm -f conftest.$ac_objext | |
20845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20846 (eval $ac_compile) 2>conftest.er1 | |
20847 ac_status=$? | |
20848 grep -v '^ *+' conftest.er1 >conftest.err | |
20849 rm -f conftest.er1 | |
20850 cat conftest.err >&5 | |
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20852 (exit $ac_status); } && | |
20853 { ac_try='test -z "$ac_c_werror_flag" | |
20854 || test ! -s conftest.err' | |
20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20856 (eval $ac_try) 2>&5 | |
20857 ac_status=$? | |
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20859 (exit $ac_status); }; } && | |
20860 { ac_try='test -s conftest.$ac_objext' | |
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20862 (eval $ac_try) 2>&5 | |
20863 ac_status=$? | |
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20865 (exit $ac_status); }; }; then | |
20866 ac_hi=-1 ac_mid=-1 | |
20867 while :; do | |
20868 cat >conftest.$ac_ext <<_ACEOF | |
20869 /* confdefs.h. */ | |
20870 _ACEOF | |
20871 cat confdefs.h >>conftest.$ac_ext | |
20872 cat >>conftest.$ac_ext <<_ACEOF | |
20873 /* end confdefs.h. */ | |
20874 $ac_includes_default | |
20875 int | |
20876 main () | |
20877 { | |
20878 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)]; | |
20879 test_array [0] = 0 | |
20880 | |
20881 ; | |
20882 return 0; | |
20883 } | |
20884 _ACEOF | |
20885 rm -f conftest.$ac_objext | |
20886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20887 (eval $ac_compile) 2>conftest.er1 | |
20888 ac_status=$? | |
20889 grep -v '^ *+' conftest.er1 >conftest.err | |
20890 rm -f conftest.er1 | |
20891 cat conftest.err >&5 | |
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20893 (exit $ac_status); } && | |
20894 { ac_try='test -z "$ac_c_werror_flag" | |
20895 || test ! -s conftest.err' | |
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20897 (eval $ac_try) 2>&5 | |
20898 ac_status=$? | |
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20900 (exit $ac_status); }; } && | |
20901 { ac_try='test -s conftest.$ac_objext' | |
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20903 (eval $ac_try) 2>&5 | |
20904 ac_status=$? | |
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20906 (exit $ac_status); }; }; then | |
20907 ac_lo=$ac_mid; break | |
20908 else | |
20909 echo "$as_me: failed program was:" >&5 | |
20910 sed 's/^/| /' conftest.$ac_ext >&5 | |
20911 | |
20912 ac_hi=`expr '(' $ac_mid ')' - 1` | |
20913 if test $ac_mid -le $ac_hi; then | |
20914 ac_lo= ac_hi= | |
20915 break | |
20916 fi | |
20917 ac_mid=`expr 2 '*' $ac_mid` | |
20918 fi | |
20919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20920 done | |
20921 else | |
20922 echo "$as_me: failed program was:" >&5 | |
20923 sed 's/^/| /' conftest.$ac_ext >&5 | |
20924 | |
20925 ac_lo= ac_hi= | |
20926 fi | |
20927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20928 fi | |
20929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20930 # Binary search between lo and hi bounds. | |
20931 while test "x$ac_lo" != "x$ac_hi"; do | |
20932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20933 cat >conftest.$ac_ext <<_ACEOF | |
20934 /* confdefs.h. */ | |
20935 _ACEOF | |
20936 cat confdefs.h >>conftest.$ac_ext | |
20937 cat >>conftest.$ac_ext <<_ACEOF | |
20938 /* end confdefs.h. */ | |
20939 $ac_includes_default | |
20940 int | |
20941 main () | |
20942 { | |
20943 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)]; | |
20944 test_array [0] = 0 | |
20945 | |
20946 ; | |
20947 return 0; | |
20948 } | |
20949 _ACEOF | |
20950 rm -f conftest.$ac_objext | |
20951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20952 (eval $ac_compile) 2>conftest.er1 | |
20953 ac_status=$? | |
20954 grep -v '^ *+' conftest.er1 >conftest.err | |
20955 rm -f conftest.er1 | |
20956 cat conftest.err >&5 | |
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20958 (exit $ac_status); } && | |
20959 { ac_try='test -z "$ac_c_werror_flag" | |
20960 || test ! -s conftest.err' | |
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20962 (eval $ac_try) 2>&5 | |
20963 ac_status=$? | |
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20965 (exit $ac_status); }; } && | |
20966 { ac_try='test -s conftest.$ac_objext' | |
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20968 (eval $ac_try) 2>&5 | |
20969 ac_status=$? | |
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20971 (exit $ac_status); }; }; then | |
20972 ac_hi=$ac_mid | |
20973 else | |
20974 echo "$as_me: failed program was:" >&5 | |
20975 sed 's/^/| /' conftest.$ac_ext >&5 | |
20976 | |
20977 ac_lo=`expr '(' $ac_mid ')' + 1` | |
20978 fi | |
20979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20980 done | |
20981 case $ac_lo in | |
20982 ?*) ac_cv_sizeof_voidp=$ac_lo;; | |
20983 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77 | |
20984 See \`config.log' for more details." >&5 | |
20985 echo "$as_me: error: cannot compute sizeof (void*), 77 | |
20986 See \`config.log' for more details." >&2;} | |
20987 { (exit 1); exit 1; }; } ;; | |
20988 esac | |
20989 else | |
20990 if test "$cross_compiling" = yes; then | |
20991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
20992 See \`config.log' for more details." >&5 | |
20993 echo "$as_me: error: cannot run test program while cross compiling | |
20994 See \`config.log' for more details." >&2;} | |
20995 { (exit 1); exit 1; }; } | |
20996 else | |
20997 cat >conftest.$ac_ext <<_ACEOF | |
20998 /* confdefs.h. */ | |
20999 _ACEOF | |
21000 cat confdefs.h >>conftest.$ac_ext | |
21001 cat >>conftest.$ac_ext <<_ACEOF | |
21002 /* end confdefs.h. */ | |
21003 $ac_includes_default | |
21004 long longval () { return (long) (sizeof (void*)); } | |
21005 unsigned long ulongval () { return (long) (sizeof (void*)); } | |
21006 #include <stdio.h> | |
21007 #include <stdlib.h> | |
21008 int | |
21009 main () | |
21010 { | |
21011 | |
21012 FILE *f = fopen ("conftest.val", "w"); | |
21013 if (! f) | |
21014 exit (1); | |
21015 if (((long) (sizeof (void*))) < 0) | |
21016 { | |
21017 long i = longval (); | |
21018 if (i != ((long) (sizeof (void*)))) | |
21019 exit (1); | |
21020 fprintf (f, "%ld\n", i); | |
21021 } | |
21022 else | |
21023 { | |
21024 unsigned long i = ulongval (); | |
21025 if (i != ((long) (sizeof (void*)))) | |
21026 exit (1); | |
21027 fprintf (f, "%lu\n", i); | |
21028 } | |
21029 exit (ferror (f) || fclose (f) != 0); | |
21030 | |
21031 ; | |
21032 return 0; | |
21033 } | |
21034 _ACEOF | |
21035 rm -f conftest$ac_exeext | |
21036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21037 (eval $ac_link) 2>&5 | |
21038 ac_status=$? | |
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21042 (eval $ac_try) 2>&5 | |
21043 ac_status=$? | |
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21045 (exit $ac_status); }; }; then | |
21046 ac_cv_sizeof_voidp=`cat conftest.val` | |
21047 else | |
21048 echo "$as_me: program exited with status $ac_status" >&5 | |
21049 echo "$as_me: failed program was:" >&5 | |
21050 sed 's/^/| /' conftest.$ac_ext >&5 | |
21051 | |
21052 ( exit $ac_status ) | |
21053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77 | |
21054 See \`config.log' for more details." >&5 | |
21055 echo "$as_me: error: cannot compute sizeof (void*), 77 | |
21056 See \`config.log' for more details." >&2;} | |
21057 { (exit 1); exit 1; }; } | |
21058 fi | |
21059 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21060 fi | |
21061 fi | |
21062 rm -f conftest.val | |
21063 else | |
21064 ac_cv_sizeof_voidp=0 | |
21065 fi | |
21066 fi | |
21067 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5 | |
21068 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6 | |
21069 cat >>confdefs.h <<_ACEOF | |
21070 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp | |
21071 _ACEOF | |
21072 | |
21073 | |
21074 | |
21075 #@@@ new name is AC_CONFIG_HEADERS | |
21076 ac_config_headers="$ac_config_headers config.h" | |
21077 | |
21078 | |
21079 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
21080 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
21081 if test "${ac_cv_c_bigendian+set}" = set; then | |
21082 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21083 else | |
21084 # See if sys/param.h defines the BYTE_ORDER macro. | |
21085 cat >conftest.$ac_ext <<_ACEOF | |
21086 /* confdefs.h. */ | |
21087 _ACEOF | |
21088 cat confdefs.h >>conftest.$ac_ext | |
21089 cat >>conftest.$ac_ext <<_ACEOF | |
21090 /* end confdefs.h. */ | |
21091 #include <sys/types.h> | |
21092 #include <sys/param.h> | |
21093 | |
21094 int | |
21095 main () | |
21096 { | |
21097 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
21098 bogus endian macros | |
21099 #endif | |
21100 | |
21101 ; | |
21102 return 0; | |
21103 } | |
21104 _ACEOF | |
21105 rm -f conftest.$ac_objext | |
21106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21107 (eval $ac_compile) 2>conftest.er1 | |
21108 ac_status=$? | |
21109 grep -v '^ *+' conftest.er1 >conftest.err | |
21110 rm -f conftest.er1 | |
21111 cat conftest.err >&5 | |
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21113 (exit $ac_status); } && | |
21114 { ac_try='test -z "$ac_c_werror_flag" | |
21115 || test ! -s conftest.err' | |
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21117 (eval $ac_try) 2>&5 | |
21118 ac_status=$? | |
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21120 (exit $ac_status); }; } && | |
21121 { ac_try='test -s conftest.$ac_objext' | |
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21123 (eval $ac_try) 2>&5 | |
21124 ac_status=$? | |
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21126 (exit $ac_status); }; }; then | |
21127 # It does; now see whether it defined to BIG_ENDIAN or not. | |
21128 cat >conftest.$ac_ext <<_ACEOF | |
21129 /* confdefs.h. */ | |
21130 _ACEOF | |
21131 cat confdefs.h >>conftest.$ac_ext | |
21132 cat >>conftest.$ac_ext <<_ACEOF | |
21133 /* end confdefs.h. */ | |
21134 #include <sys/types.h> | |
21135 #include <sys/param.h> | |
21136 | |
21137 int | |
21138 main () | |
21139 { | |
21140 #if BYTE_ORDER != BIG_ENDIAN | |
21141 not big endian | |
21142 #endif | |
21143 | |
21144 ; | |
21145 return 0; | |
21146 } | |
21147 _ACEOF | |
21148 rm -f conftest.$ac_objext | |
21149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21150 (eval $ac_compile) 2>conftest.er1 | |
21151 ac_status=$? | |
21152 grep -v '^ *+' conftest.er1 >conftest.err | |
21153 rm -f conftest.er1 | |
21154 cat conftest.err >&5 | |
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21156 (exit $ac_status); } && | |
21157 { ac_try='test -z "$ac_c_werror_flag" | |
21158 || test ! -s conftest.err' | |
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21160 (eval $ac_try) 2>&5 | |
21161 ac_status=$? | |
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21163 (exit $ac_status); }; } && | |
21164 { ac_try='test -s conftest.$ac_objext' | |
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21166 (eval $ac_try) 2>&5 | |
21167 ac_status=$? | |
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21169 (exit $ac_status); }; }; then | |
21170 ac_cv_c_bigendian=yes | |
21171 else | |
21172 echo "$as_me: failed program was:" >&5 | |
21173 sed 's/^/| /' conftest.$ac_ext >&5 | |
21174 | |
21175 ac_cv_c_bigendian=no | |
21176 fi | |
21177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21178 else | |
21179 echo "$as_me: failed program was:" >&5 | |
21180 sed 's/^/| /' conftest.$ac_ext >&5 | |
21181 | |
21182 # It does not; compile a test program. | |
21183 if test "$cross_compiling" = yes; then | |
21184 # try to guess the endianness by grepping values into an object file | |
21185 ac_cv_c_bigendian=unknown | |
21186 cat >conftest.$ac_ext <<_ACEOF | |
21187 /* confdefs.h. */ | |
21188 _ACEOF | |
21189 cat confdefs.h >>conftest.$ac_ext | |
21190 cat >>conftest.$ac_ext <<_ACEOF | |
21191 /* end confdefs.h. */ | |
21192 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
21193 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
21194 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
21195 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
21196 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
21197 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
21198 int | |
21199 main () | |
21200 { | |
21201 _ascii (); _ebcdic (); | |
21202 ; | |
21203 return 0; | |
21204 } | |
21205 _ACEOF | |
21206 rm -f conftest.$ac_objext | |
21207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21208 (eval $ac_compile) 2>conftest.er1 | |
21209 ac_status=$? | |
21210 grep -v '^ *+' conftest.er1 >conftest.err | |
21211 rm -f conftest.er1 | |
21212 cat conftest.err >&5 | |
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21214 (exit $ac_status); } && | |
21215 { ac_try='test -z "$ac_c_werror_flag" | |
21216 || test ! -s conftest.err' | |
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21218 (eval $ac_try) 2>&5 | |
21219 ac_status=$? | |
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21221 (exit $ac_status); }; } && | |
21222 { ac_try='test -s conftest.$ac_objext' | |
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21224 (eval $ac_try) 2>&5 | |
21225 ac_status=$? | |
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21227 (exit $ac_status); }; }; then | |
21228 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
21229 ac_cv_c_bigendian=yes | |
21230 fi | |
21231 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
21232 if test "$ac_cv_c_bigendian" = unknown; then | |
21233 ac_cv_c_bigendian=no | |
21234 else | |
21235 # finding both strings is unlikely to happen, but who knows? | |
21236 ac_cv_c_bigendian=unknown | |
21237 fi | |
21238 fi | |
21239 else | |
21240 echo "$as_me: failed program was:" >&5 | |
21241 sed 's/^/| /' conftest.$ac_ext >&5 | |
21242 | |
21243 fi | |
21244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21245 else | |
21246 cat >conftest.$ac_ext <<_ACEOF | |
21247 /* confdefs.h. */ | |
21248 _ACEOF | |
21249 cat confdefs.h >>conftest.$ac_ext | |
21250 cat >>conftest.$ac_ext <<_ACEOF | |
21251 /* end confdefs.h. */ | |
21252 int | |
21253 main () | |
21254 { | |
21255 /* Are we little or big endian? From Harbison&Steele. */ | |
21256 union | |
21257 { | |
21258 long l; | |
21259 char c[sizeof (long)]; | |
21260 } u; | |
21261 u.l = 1; | |
21262 exit (u.c[sizeof (long) - 1] == 1); | |
21263 } | |
21264 _ACEOF | |
21265 rm -f conftest$ac_exeext | |
21266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21267 (eval $ac_link) 2>&5 | |
21268 ac_status=$? | |
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21272 (eval $ac_try) 2>&5 | |
21273 ac_status=$? | |
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21275 (exit $ac_status); }; }; then | |
21276 ac_cv_c_bigendian=no | |
21277 else | |
21278 echo "$as_me: program exited with status $ac_status" >&5 | |
21279 echo "$as_me: failed program was:" >&5 | |
21280 sed 's/^/| /' conftest.$ac_ext >&5 | |
21281 | |
21282 ( exit $ac_status ) | |
21283 ac_cv_c_bigendian=yes | |
21284 fi | |
21285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21286 fi | |
21287 fi | |
21288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21289 fi | |
21290 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
21291 echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
21292 case $ac_cv_c_bigendian in | |
21293 yes) | |
21294 | |
21295 cat >>confdefs.h <<\_ACEOF | |
21296 #define WORDS_BIGENDIAN 1 | |
21297 _ACEOF | |
21298 ;; | |
21299 no) | |
21300 ;; | |
21301 *) | |
21302 { { echo "$as_me:$LINENO: error: unknown endianness | |
21303 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
21304 echo "$as_me: error: unknown endianness | |
21305 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
21306 { (exit 1); exit 1; }; } ;; | |
21307 esac | |
21308 | |
21309 | |
21310 echo "$as_me:$LINENO: checking for socklen_t" >&5 | |
21311 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
21312 if test "${ac_cv_type_socklen_t+set}" = set; then | |
21313 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21314 else | |
21315 cat >conftest.$ac_ext <<_ACEOF | |
21316 /* confdefs.h. */ | |
21317 _ACEOF | |
21318 cat confdefs.h >>conftest.$ac_ext | |
21319 cat >>conftest.$ac_ext <<_ACEOF | |
21320 /* end confdefs.h. */ | |
21321 $ac_includes_default | |
21322 int | |
21323 main () | |
21324 { | |
21325 if ((socklen_t *) 0) | |
21326 return 0; | |
21327 if (sizeof (socklen_t)) | |
21328 return 0; | |
21329 ; | |
21330 return 0; | |
21331 } | |
21332 _ACEOF | |
21333 rm -f conftest.$ac_objext | |
21334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21335 (eval $ac_compile) 2>conftest.er1 | |
21336 ac_status=$? | |
21337 grep -v '^ *+' conftest.er1 >conftest.err | |
21338 rm -f conftest.er1 | |
21339 cat conftest.err >&5 | |
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21341 (exit $ac_status); } && | |
21342 { ac_try='test -z "$ac_c_werror_flag" | |
21343 || test ! -s conftest.err' | |
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21345 (eval $ac_try) 2>&5 | |
21346 ac_status=$? | |
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21348 (exit $ac_status); }; } && | |
21349 { ac_try='test -s conftest.$ac_objext' | |
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21351 (eval $ac_try) 2>&5 | |
21352 ac_status=$? | |
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21354 (exit $ac_status); }; }; then | |
21355 ac_cv_type_socklen_t=yes | |
21356 else | |
21357 echo "$as_me: failed program was:" >&5 | |
21358 sed 's/^/| /' conftest.$ac_ext >&5 | |
21359 | |
21360 ac_cv_type_socklen_t=no | |
21361 fi | |
21362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21363 fi | |
21364 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | |
21365 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
21366 if test $ac_cv_type_socklen_t = yes; then | |
21367 | |
21368 cat >>confdefs.h <<_ACEOF | |
21369 #define HAVE_SOCKLEN_T 1 | |
21370 _ACEOF | |
21371 | |
21372 | |
21373 fi | |
21374 | |
21375 | |
21376 | |
21377 for ac_func in getopt_long | |
21378 do | |
21379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
21380 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
21381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21382 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21383 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21384 else | |
21385 cat >conftest.$ac_ext <<_ACEOF | |
21386 /* confdefs.h. */ | |
21387 _ACEOF | |
21388 cat confdefs.h >>conftest.$ac_ext | |
21389 cat >>conftest.$ac_ext <<_ACEOF | |
21390 /* end confdefs.h. */ | |
21391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
21392 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21393 #define $ac_func innocuous_$ac_func | |
21394 | |
21395 /* System header to define __stub macros and hopefully few prototypes, | |
21396 which can conflict with char $ac_func (); below. | |
21397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21398 <limits.h> exists even on freestanding compilers. */ | |
21399 | |
21400 #ifdef __STDC__ | |
21401 # include <limits.h> | |
21402 #else | |
21403 # include <assert.h> | |
21404 #endif | |
21405 | |
21406 #undef $ac_func | |
21407 | |
21408 /* Override any gcc2 internal prototype to avoid an error. */ | |
21409 #ifdef __cplusplus | |
21410 extern "C" | |
21411 { | |
21412 #endif | |
21413 /* We use char because int might match the return type of a gcc2 | |
21414 builtin and then its argument prototype would still apply. */ | |
21415 char $ac_func (); | |
21416 /* The GNU C library defines this for functions which it implements | |
21417 to always fail with ENOSYS. Some functions are actually named | |
21418 something starting with __ and the normal name is an alias. */ | |
21419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21420 choke me | |
21421 #else | |
21422 char (*f) () = $ac_func; | |
21423 #endif | |
21424 #ifdef __cplusplus | |
21425 } | |
21426 #endif | |
21427 | |
21428 int | |
21429 main () | |
21430 { | |
21431 return f != $ac_func; | |
21432 ; | |
21433 return 0; | |
21434 } | |
21435 _ACEOF | |
21436 rm -f conftest.$ac_objext conftest$ac_exeext | |
21437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21438 (eval $ac_link) 2>conftest.er1 | |
21439 ac_status=$? | |
21440 grep -v '^ *+' conftest.er1 >conftest.err | |
21441 rm -f conftest.er1 | |
21442 cat conftest.err >&5 | |
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21444 (exit $ac_status); } && | |
21445 { ac_try='test -z "$ac_c_werror_flag" | |
21446 || test ! -s conftest.err' | |
21447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21448 (eval $ac_try) 2>&5 | |
21449 ac_status=$? | |
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21451 (exit $ac_status); }; } && | |
21452 { ac_try='test -s conftest$ac_exeext' | |
21453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21454 (eval $ac_try) 2>&5 | |
21455 ac_status=$? | |
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21457 (exit $ac_status); }; }; then | |
21458 eval "$as_ac_var=yes" | |
21459 else | |
21460 echo "$as_me: failed program was:" >&5 | |
21461 sed 's/^/| /' conftest.$ac_ext >&5 | |
21462 | |
21463 eval "$as_ac_var=no" | |
21464 fi | |
21465 rm -f conftest.err conftest.$ac_objext \ | |
21466 conftest$ac_exeext conftest.$ac_ext | |
21467 fi | |
21468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21470 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21471 cat >>confdefs.h <<_ACEOF | |
21472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21473 _ACEOF | |
21474 | |
21475 fi | |
21476 done | |
21477 | |
21478 | |
21479 case "$host_cpu" in | |
21480 i*86) | |
21481 cpu_ia32=true | |
21482 cat >>confdefs.h <<\_ACEOF | |
21483 #define FLAC__CPU_IA32 1 | |
21484 _ACEOF | |
21485 | |
21486 | |
21487 | |
21488 ;; | |
21489 powerpc) | |
21490 cpu_ppc=true | |
21491 cat >>confdefs.h <<\_ACEOF | |
21492 #define FLAC__CPU_PPC 1 | |
21493 _ACEOF | |
21494 | |
21495 | |
21496 | |
21497 ;; | |
21498 sparc) | |
21499 cpu_sparc=true | |
21500 cat >>confdefs.h <<\_ACEOF | |
21501 #define FLAC__CPU_SPARC 1 | |
21502 _ACEOF | |
21503 | |
21504 | |
21505 | |
21506 ;; | |
21507 esac | |
21508 | |
21509 | |
21510 if test "x$cpu_ia32" = xtrue; then | |
21511 FLaC__CPU_IA32_TRUE= | |
21512 FLaC__CPU_IA32_FALSE='#' | |
21513 else | |
21514 FLaC__CPU_IA32_TRUE='#' | |
21515 FLaC__CPU_IA32_FALSE= | |
21516 fi | |
21517 | |
21518 | |
21519 | |
21520 if test "x$cpu_ppc" = xtrue; then | |
21521 FLaC__CPU_PPC_TRUE= | |
21522 FLaC__CPU_PPC_FALSE='#' | |
21523 else | |
21524 FLaC__CPU_PPC_TRUE='#' | |
21525 FLaC__CPU_PPC_FALSE= | |
21526 fi | |
21527 | |
21528 | |
21529 | |
21530 if test "x$cpu_sparc" = xtrue; then | |
21531 FLaC__CPU_SPARC_TRUE= | |
21532 FLaC__CPU_SPARC_FALSE='#' | |
21533 else | |
21534 FLaC__CPU_SPARC_TRUE='#' | |
21535 FLaC__CPU_SPARC_FALSE= | |
21536 fi | |
21537 | |
21538 | |
21539 case "$host" in | |
21540 i386-*-openbsd3.[0-3]) OBJ_FORMAT=aoutb ;; | |
21541 *-*-cygwin|*mingw*) OBJ_FORMAT=win32 ;; | |
21542 *-*-darwin*) OBJ_FORMAT=macho ;; | |
21543 *) OBJ_FORMAT=elf ;; | |
21544 esac | |
21545 | |
21546 | |
21547 # only needed because of ntohl() usage, can get rid of after that's gone: | |
21548 case "$host" in | |
21549 *-*-cygwin|*mingw*) MINGW_WINSOCK_LIBS=-lwsock32 ;; | |
21550 *) MINGW_WINSOCK_LIBS= ;; | |
21551 esac | |
21552 | |
21553 | |
21554 case "$host" in | |
21555 *-pc-linux-gnu) | |
21556 sys_linux=true | |
21557 cat >>confdefs.h <<\_ACEOF | |
21558 #define FLAC__SYS_LINUX 1 | |
21559 _ACEOF | |
21560 | |
21561 | |
21562 | |
21563 ;; | |
21564 *-*-darwin*) | |
21565 sys_darwin=true | |
21566 cat >>confdefs.h <<\_ACEOF | |
21567 #define FLAC__SYS_DARWIN 1 | |
21568 _ACEOF | |
21569 | |
21570 | |
21571 | |
21572 ;; | |
21573 esac | |
21574 | |
21575 | |
21576 if test "x$sys_darwin" = xtrue; then | |
21577 FLaC__SYS_DARWIN_TRUE= | |
21578 FLaC__SYS_DARWIN_FALSE='#' | |
21579 else | |
21580 FLaC__SYS_DARWIN_TRUE='#' | |
21581 FLaC__SYS_DARWIN_FALSE= | |
21582 fi | |
21583 | |
21584 | |
21585 | |
21586 if test "x$sys_linux" = xtrue; then | |
21587 FLaC__SYS_LINUX_TRUE= | |
21588 FLaC__SYS_LINUX_FALSE='#' | |
21589 else | |
21590 FLaC__SYS_LINUX_TRUE='#' | |
21591 FLaC__SYS_LINUX_FALSE= | |
21592 fi | |
21593 | |
21594 | |
21595 if test "x$cpu_ia32" = xtrue ; then | |
21596 cat >>confdefs.h <<\_ACEOF | |
21597 #define FLAC__ALIGN_MALLOC_DATA 1 | |
21598 _ACEOF | |
21599 | |
21600 | |
21601 | |
21602 fi | |
21603 | |
21604 # Check whether --enable-asm-optimizations or --disable-asm-optimizations was given. | |
21605 if test "${enable_asm_optimizations+set}" = set; then | |
21606 enableval="$enable_asm_optimizations" | |
21607 asm_opt=no | |
21608 else | |
21609 asm_opt=yes | |
21610 fi; | |
21611 | |
21612 | |
21613 if test "x$asm_opt" = xno; then | |
21614 FLaC__NO_ASM_TRUE= | |
21615 FLaC__NO_ASM_FALSE='#' | |
21616 else | |
21617 FLaC__NO_ASM_TRUE='#' | |
21618 FLaC__NO_ASM_FALSE= | |
21619 fi | |
21620 | |
21621 if test "x$asm_opt" = xno ; then | |
21622 cat >>confdefs.h <<\_ACEOF | |
21623 #define FLAC__NO_ASM 1 | |
21624 _ACEOF | |
21625 | |
21626 | |
21627 | |
21628 fi | |
21629 | |
21630 # Check whether --enable-debug or --disable-debug was given. | |
21631 if test "${enable_debug+set}" = set; then | |
21632 enableval="$enable_debug" | |
21633 case "${enableval}" in | |
21634 yes) debug=true ;; | |
21635 no) debug=false ;; | |
21636 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 | |
21637 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} | |
21638 { (exit 1); exit 1; }; } ;; | |
21639 esac | |
21640 else | |
21641 debug=false | |
21642 fi; | |
21643 | |
21644 | |
21645 if test "x$debug" = xtrue; then | |
21646 DEBUG_TRUE= | |
21647 DEBUG_FALSE='#' | |
21648 else | |
21649 DEBUG_TRUE='#' | |
21650 DEBUG_FALSE= | |
21651 fi | |
21652 | |
21653 | |
21654 # Check whether --enable-sse or --disable-sse was given. | |
21655 if test "${enable_sse+set}" = set; then | |
21656 enableval="$enable_sse" | |
21657 case "${enableval}" in | |
21658 yes) sse_os=true ;; | |
21659 no) sse_os=false ;; | |
21660 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-sse" >&5 | |
21661 echo "$as_me: error: bad value ${enableval} for --enable-sse" >&2;} | |
21662 { (exit 1); exit 1; }; } ;; | |
21663 esac | |
21664 else | |
21665 sse_os=false | |
21666 fi; | |
21667 | |
21668 | |
21669 if test "x$sse_os" = xtrue; then | |
21670 FLaC__SSE_OS_TRUE= | |
21671 FLaC__SSE_OS_FALSE='#' | |
21672 else | |
21673 FLaC__SSE_OS_TRUE='#' | |
21674 FLaC__SSE_OS_FALSE= | |
21675 fi | |
21676 | |
21677 if test "x$sse_os" = xtrue ; then | |
21678 cat >>confdefs.h <<\_ACEOF | |
21679 #define FLAC__SSE_OS 1 | |
21680 _ACEOF | |
21681 | |
21682 | |
21683 | |
21684 fi | |
21685 | |
21686 # Check whether --enable-3dnow or --disable-3dnow was given. | |
21687 if test "${enable_3dnow+set}" = set; then | |
21688 enableval="$enable_3dnow" | |
21689 case "${enableval}" in | |
21690 yes) use_3dnow=true ;; | |
21691 no) use_3dnow=false ;; | |
21692 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-3dnow" >&5 | |
21693 echo "$as_me: error: bad value ${enableval} for --enable-3dnow" >&2;} | |
21694 { (exit 1); exit 1; }; } ;; | |
21695 esac | |
21696 else | |
21697 use_3dnow=true | |
21698 fi; | |
21699 | |
21700 | |
21701 if test "x$use_3dnow" = xtrue; then | |
21702 FLaC__USE_3DNOW_TRUE= | |
21703 FLaC__USE_3DNOW_FALSE='#' | |
21704 else | |
21705 FLaC__USE_3DNOW_TRUE='#' | |
21706 FLaC__USE_3DNOW_FALSE= | |
21707 fi | |
21708 | |
21709 if test "x$use_3dnow" = xtrue ; then | |
21710 cat >>confdefs.h <<\_ACEOF | |
21711 #define FLAC__USE_3DNOW 1 | |
21712 _ACEOF | |
21713 | |
21714 | |
21715 | |
21716 fi | |
21717 | |
21718 # Check whether --enable-altivec or --disable-altivec was given. | |
21719 if test "${enable_altivec+set}" = set; then | |
21720 enableval="$enable_altivec" | |
21721 case "${enableval}" in | |
21722 yes) use_altivec=true ;; | |
21723 no) use_altivec=false ;; | |
21724 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-altivec" >&5 | |
21725 echo "$as_me: error: bad value ${enableval} for --enable-altivec" >&2;} | |
21726 { (exit 1); exit 1; }; } ;; | |
21727 esac | |
21728 else | |
21729 use_altivec=true | |
21730 fi; | |
21731 | |
21732 | |
21733 if test "x$use_altivec" = xtrue; then | |
21734 FLaC__USE_ALTIVEC_TRUE= | |
21735 FLaC__USE_ALTIVEC_FALSE='#' | |
21736 else | |
21737 FLaC__USE_ALTIVEC_TRUE='#' | |
21738 FLaC__USE_ALTIVEC_FALSE= | |
21739 fi | |
21740 | |
21741 if test "x$use_altivec" = xtrue ; then | |
21742 cat >>confdefs.h <<\_ACEOF | |
21743 #define FLAC__USE_ALTIVEC 1 | |
21744 _ACEOF | |
21745 | |
21746 | |
21747 | |
21748 fi | |
21749 | |
21750 # Check whether --enable-thorough-tests or --disable-thorough-tests was given. | |
21751 if test "${enable_thorough_tests+set}" = set; then | |
21752 enableval="$enable_thorough_tests" | |
21753 case "${enableval}" in | |
21754 yes) thorough_tests=true ;; | |
21755 no) thorough_tests=false ;; | |
21756 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-thorough-tests" >&5 | |
21757 echo "$as_me: error: bad value ${enableval} for --enable-thorough-tests" >&2;} | |
21758 { (exit 1); exit 1; }; } ;; | |
21759 esac | |
21760 else | |
21761 thorough_tests=true | |
21762 fi; | |
21763 # Check whether --enable-exhaustive-tests or --disable-exhaustive-tests was given. | |
21764 if test "${enable_exhaustive_tests+set}" = set; then | |
21765 enableval="$enable_exhaustive_tests" | |
21766 case "${enableval}" in | |
21767 yes) exhaustive_tests=true ;; | |
21768 no) exhaustive_tests=false ;; | |
21769 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-exhaustive-tests" >&5 | |
21770 echo "$as_me: error: bad value ${enableval} for --enable-exhaustive-tests" >&2;} | |
21771 { (exit 1); exit 1; }; } ;; | |
21772 esac | |
21773 else | |
21774 exhaustive_tests=false | |
21775 fi; | |
21776 if test "x$thorough_tests" = xfalse ; then | |
21777 FLAC__TEST_LEVEL=0 | |
21778 elif test "x$exhaustive_tests" = xfalse ; then | |
21779 FLAC__TEST_LEVEL=1 | |
21780 else | |
21781 FLAC__TEST_LEVEL=2 | |
21782 fi | |
21783 | |
21784 | |
21785 # Check whether --enable-valgrind-testing or --disable-valgrind-testing was given. | |
21786 if test "${enable_valgrind_testing+set}" = set; then | |
21787 enableval="$enable_valgrind_testing" | |
21788 case "${enableval}" in | |
21789 yes) FLAC__TEST_WITH_VALGRIND=yes ;; | |
21790 no) FLAC__TEST_WITH_VALGRIND=no ;; | |
21791 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-valgrind-testing" >&5 | |
21792 echo "$as_me: error: bad value ${enableval} for --enable-valgrind-testing" >&2;} | |
21793 { (exit 1); exit 1; }; } ;; | |
21794 esac | |
21795 else | |
21796 FLAC__TEST_WITH_VALGRIND=no | |
21797 fi; | |
21798 | |
21799 | |
21800 # Check whether --enable-doxygen-docs or --disable-doxygen-docs was given. | |
21801 if test "${enable_doxygen_docs+set}" = set; then | |
21802 enableval="$enable_doxygen_docs" | |
21803 case "${enableval}" in | |
21804 yes) enable_doxygen_docs=true ;; | |
21805 no) enable_doxygen_docs=false ;; | |
21806 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-doxygen-docs" >&5 | |
21807 echo "$as_me: error: bad value ${enableval} for --enable-doxygen-docs" >&2;} | |
21808 { (exit 1); exit 1; }; } ;; | |
21809 esac | |
21810 else | |
21811 enable_doxygen_docs=true | |
21812 fi; | |
21813 if test "x$enable_doxygen_docs" != xfalse ; then | |
21814 for ac_prog in doxygen | |
21815 do | |
21816 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
21817 set dummy $ac_prog; ac_word=$2 | |
21818 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
21819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21820 if test "${ac_cv_prog_DOXYGEN+set}" = set; then | |
21821 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21822 else | |
21823 if test -n "$DOXYGEN"; then | |
21824 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. | |
21825 else | |
21826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21827 for as_dir in $PATH | |
21828 do | |
21829 IFS=$as_save_IFS | |
21830 test -z "$as_dir" && as_dir=. | |
21831 for ac_exec_ext in '' $ac_executable_extensions; do | |
21832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21833 ac_cv_prog_DOXYGEN="$ac_prog" | |
21834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21835 break 2 | |
21836 fi | |
21837 done | |
21838 done | |
21839 | |
21840 fi | |
21841 fi | |
21842 DOXYGEN=$ac_cv_prog_DOXYGEN | |
21843 if test -n "$DOXYGEN"; then | |
21844 echo "$as_me:$LINENO: result: $DOXYGEN" >&5 | |
21845 echo "${ECHO_T}$DOXYGEN" >&6 | |
21846 else | |
21847 echo "$as_me:$LINENO: result: no" >&5 | |
21848 echo "${ECHO_T}no" >&6 | |
21849 fi | |
21850 | |
21851 test -n "$DOXYGEN" && break | |
21852 done | |
21853 | |
21854 fi | |
21855 | |
21856 | |
21857 if test -n "$DOXYGEN"; then | |
21858 FLaC__HAS_DOXYGEN_TRUE= | |
21859 FLaC__HAS_DOXYGEN_FALSE='#' | |
21860 else | |
21861 FLaC__HAS_DOXYGEN_TRUE='#' | |
21862 FLaC__HAS_DOXYGEN_FALSE= | |
21863 fi | |
21864 | |
21865 | |
21866 # Check whether --enable-local-xmms-plugin or --disable-local-xmms-plugin was given. | |
21867 if test "${enable_local_xmms_plugin+set}" = set; then | |
21868 enableval="$enable_local_xmms_plugin" | |
21869 case "${enableval}" in | |
21870 yes) install_xmms_plugin_locally=true ;; | |
21871 no) install_xmms_plugin_locally=false ;; | |
21872 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-local-xmms-plugin" >&5 | |
21873 echo "$as_me: error: bad value ${enableval} for --enable-local-xmms-plugin" >&2;} | |
21874 { (exit 1); exit 1; }; } ;; | |
21875 esac | |
21876 else | |
21877 install_xmms_plugin_locally=false | |
21878 fi; | |
21879 | |
21880 | |
21881 if test "x$install_xmms_plugin_locally" = xtrue; then | |
21882 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE= | |
21883 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE='#' | |
21884 else | |
21885 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE='#' | |
21886 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE= | |
21887 fi | |
21888 | |
21889 | |
21890 # Check whether --enable-xmms-plugin or --disable-xmms-plugin was given. | |
21891 if test "${enable_xmms_plugin+set}" = set; then | |
21892 enableval="$enable_xmms_plugin" | |
21893 case "${enableval}" in | |
21894 yes) enable_xmms_plugin=true ;; | |
21895 no) enable_xmms_plugin=false ;; | |
21896 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-xmms-plugin" >&5 | |
21897 echo "$as_me: error: bad value ${enableval} for --enable-xmms-plugin" >&2;} | |
21898 { (exit 1); exit 1; }; } ;; | |
21899 esac | |
21900 else | |
21901 enable_xmms_plugin=true | |
21902 fi; | |
21903 if test "x$enable_xmms_plugin" != xfalse ; then | |
21904 | |
21905 | |
21906 # Check whether --with-xmms-prefix or --without-xmms-prefix was given. | |
21907 if test "${with_xmms_prefix+set}" = set; then | |
21908 withval="$with_xmms_prefix" | |
21909 xmms_config_prefix="$withval" | |
21910 else | |
21911 xmms_config_prefix="" | |
21912 fi; | |
21913 | |
21914 # Check whether --with-xmms-exec-prefix or --without-xmms-exec-prefix was given. | |
21915 if test "${with_xmms_exec_prefix+set}" = set; then | |
21916 withval="$with_xmms_exec_prefix" | |
21917 xmms_config_exec_prefix="$withval" | |
21918 else | |
21919 xmms_config_exec_prefix="" | |
21920 fi; | |
21921 | |
21922 if test x$xmms_config_exec_prefix != x; then | |
21923 xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix" | |
21924 if test x${XMMS_CONFIG+set} != xset; then | |
21925 XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config | |
21926 fi | |
21927 fi | |
21928 | |
21929 if test x$xmms_config_prefix != x; then | |
21930 xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix" | |
21931 if test x${XMMS_CONFIG+set} != xset; then | |
21932 XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config | |
21933 fi | |
21934 fi | |
21935 | |
21936 # Extract the first word of "xmms-config", so it can be a program name with args. | |
21937 set dummy xmms-config; ac_word=$2 | |
21938 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
21939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21940 if test "${ac_cv_path_XMMS_CONFIG+set}" = set; then | |
21941 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21942 else | |
21943 case $XMMS_CONFIG in | |
21944 [\\/]* | ?:[\\/]*) | |
21945 ac_cv_path_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test with a path. | |
21946 ;; | |
21947 *) | |
21948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21949 for as_dir in $PATH | |
21950 do | |
21951 IFS=$as_save_IFS | |
21952 test -z "$as_dir" && as_dir=. | |
21953 for ac_exec_ext in '' $ac_executable_extensions; do | |
21954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21955 ac_cv_path_XMMS_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21957 break 2 | |
21958 fi | |
21959 done | |
21960 done | |
21961 | |
21962 test -z "$ac_cv_path_XMMS_CONFIG" && ac_cv_path_XMMS_CONFIG="no" | |
21963 ;; | |
21964 esac | |
21965 fi | |
21966 XMMS_CONFIG=$ac_cv_path_XMMS_CONFIG | |
21967 | |
21968 if test -n "$XMMS_CONFIG"; then | |
21969 echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5 | |
21970 echo "${ECHO_T}$XMMS_CONFIG" >&6 | |
21971 else | |
21972 echo "$as_me:$LINENO: result: no" >&5 | |
21973 echo "${ECHO_T}no" >&6 | |
21974 fi | |
21975 | |
21976 min_xmms_version=0.9.5.1 | |
21977 | |
21978 if test "$XMMS_CONFIG" = "no"; then | |
21979 no_xmms=yes | |
21980 else | |
21981 XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags` | |
21982 XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs` | |
21983 XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version` | |
21984 XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir` | |
21985 XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir` | |
21986 XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \ | |
21987 --visualization-plugin-dir` | |
21988 XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir` | |
21989 XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir` | |
21990 XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir` | |
21991 XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir` | |
21992 | |
21993 | |
21994 | |
21995 # Determine which version number is greater. Prints 2 to stdout if | |
21996 # the second number is greater, 1 if the first number is greater, | |
21997 # 0 if the numbers are equal. | |
21998 | |
21999 # Written 15 December 1999 by Ben Gertzfield <che@debian.org> | |
22000 # Revised 15 December 1999 by Jim Monty <monty@primenet.com> | |
22001 | |
22002 for ac_prog in gawk mawk nawk awk | |
22003 do | |
22004 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
22005 set dummy $ac_prog; ac_word=$2 | |
22006 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22008 if test "${ac_cv_prog_AWK+set}" = set; then | |
22009 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22010 else | |
22011 if test -n "$AWK"; then | |
22012 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
22013 else | |
22014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22015 for as_dir in $PATH | |
22016 do | |
22017 IFS=$as_save_IFS | |
22018 test -z "$as_dir" && as_dir=. | |
22019 for ac_exec_ext in '' $ac_executable_extensions; do | |
22020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22021 ac_cv_prog_AWK="$ac_prog" | |
22022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22023 break 2 | |
22024 fi | |
22025 done | |
22026 done | |
22027 | |
22028 fi | |
22029 fi | |
22030 AWK=$ac_cv_prog_AWK | |
22031 if test -n "$AWK"; then | |
22032 echo "$as_me:$LINENO: result: $AWK" >&5 | |
22033 echo "${ECHO_T}$AWK" >&6 | |
22034 else | |
22035 echo "$as_me:$LINENO: result: no" >&5 | |
22036 echo "${ECHO_T}no" >&6 | |
22037 fi | |
22038 | |
22039 test -n "$AWK" && break | |
22040 done | |
22041 | |
22042 xmms_got_version=` $AWK ' \ | |
22043 BEGIN { \ | |
22044 print vercmp(ARGV[1], ARGV[2]); \ | |
22045 } \ | |
22046 \ | |
22047 function vercmp(ver1, ver2, ver1arr, ver2arr, \ | |
22048 ver1len, ver2len, \ | |
22049 ver1int, ver2int, len, i, p) { \ | |
22050 \ | |
22051 ver1len = split(ver1, ver1arr, /\./); \ | |
22052 ver2len = split(ver2, ver2arr, /\./); \ | |
22053 \ | |
22054 len = ver1len > ver2len ? ver1len : ver2len; \ | |
22055 \ | |
22056 for (i = 1; i <= len; i++) { \ | |
22057 p = 1000 ^ (len - i); \ | |
22058 ver1int += ver1arr[i] * p; \ | |
22059 ver2int += ver2arr[i] * p; \ | |
22060 } \ | |
22061 \ | |
22062 if (ver1int < ver2int) \ | |
22063 return 2; \ | |
22064 else if (ver1int > ver2int) \ | |
22065 return 1; \ | |
22066 else \ | |
22067 return 0; \ | |
22068 }' $XMMS_VERSION $min_xmms_version` | |
22069 | |
22070 if test $xmms_got_version -eq 2; then # failure | |
22071 no_xmms=version | |
22072 else # success! | |
22073 : | |
22074 fi | |
22075 | |
22076 fi | |
22077 | |
22078 echo "$as_me:$LINENO: checking for XMMS - version >= $min_xmms_version" >&5 | |
22079 echo $ECHO_N "checking for XMMS - version >= $min_xmms_version... $ECHO_C" >&6 | |
22080 | |
22081 if test "x$no_xmms" = x; then | |
22082 echo "$as_me:$LINENO: result: yes" >&5 | |
22083 echo "${ECHO_T}yes" >&6 | |
22084 : | |
22085 else | |
22086 echo "$as_me:$LINENO: result: no" >&5 | |
22087 echo "${ECHO_T}no" >&6 | |
22088 | |
22089 if test "$XMMS_CONFIG" = "no" ; then | |
22090 echo "*** The xmms-config script installed by XMMS could not be found." | |
22091 echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in" | |
22092 echo "*** your path, or set the XMMS_CONFIG environment variable to the" | |
22093 echo "*** full path to xmms-config." | |
22094 else | |
22095 if test "$no_xmms" = "version"; then | |
22096 echo "*** An old version of XMMS, $XMMS_VERSION, was found." | |
22097 echo "*** You need a version of XMMS newer than $min_xmms_version." | |
22098 echo "*** The latest version of XMMS is always available from" | |
22099 echo "*** http://www.xmms.org/" | |
22100 echo "***" | |
22101 | |
22102 echo "*** If you have already installed a sufficiently new version, this error" | |
22103 echo "*** probably means that the wrong copy of the xmms-config shell script is" | |
22104 echo "*** being found. The easiest way to fix this is to remove the old version" | |
22105 echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the" | |
22106 echo "*** correct copy of xmms-config. (In this case, you will have to" | |
22107 echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf" | |
22108 echo "*** so that the correct libraries are found at run-time)" | |
22109 fi | |
22110 fi | |
22111 XMMS_CFLAGS="" | |
22112 XMMS_LIBS="" | |
22113 { echo "$as_me:$LINENO: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&5 | |
22114 echo "$as_me: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&2;} | |
22115 fi | |
22116 | |
22117 | |
22118 | |
22119 | |
22120 | |
22121 | |
22122 | |
22123 | |
22124 | |
22125 | |
22126 | |
22127 fi | |
22128 | |
22129 | |
22130 if test -n "$XMMS_INPUT_PLUGIN_DIR"; then | |
22131 FLaC__HAS_XMMS_TRUE= | |
22132 FLaC__HAS_XMMS_FALSE='#' | |
22133 else | |
22134 FLaC__HAS_XMMS_TRUE='#' | |
22135 FLaC__HAS_XMMS_FALSE= | |
22136 fi | |
22137 | |
22138 | |
22139 # Check whether --enable-cpplibs or --disable-cpplibs was given. | |
22140 if test "${enable_cpplibs+set}" = set; then | |
22141 enableval="$enable_cpplibs" | |
22142 case "${enableval}" in | |
22143 yes) disable_cpplibs=false ;; | |
22144 no) disable_cpplibs=true ;; | |
22145 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-cpplibs" >&5 | |
22146 echo "$as_me: error: bad value ${enableval} for --enable-cpplibs" >&2;} | |
22147 { (exit 1); exit 1; }; } ;; | |
22148 esac | |
22149 else | |
22150 disable_cpplibs=false | |
22151 fi; | |
22152 | |
22153 | |
22154 if test "x$disable_cpplibs" != xtrue; then | |
22155 FLaC__WITH_CPPLIBS_TRUE= | |
22156 FLaC__WITH_CPPLIBS_FALSE='#' | |
22157 else | |
22158 FLaC__WITH_CPPLIBS_TRUE='#' | |
22159 FLaC__WITH_CPPLIBS_FALSE= | |
22160 fi | |
22161 | |
22162 | |
22163 # Check whether --enable-ogg or --disable-ogg was given. | |
22164 if test "${enable_ogg+set}" = set; then | |
22165 enableval="$enable_ogg" | |
22166 want_ogg=$enableval | |
22167 else | |
22168 want_ogg=yes | |
22169 fi; | |
22170 | |
22171 if test "x$want_ogg" != "xno"; then | |
22172 | |
22173 # Check whether --with-ogg or --without-ogg was given. | |
22174 if test "${with_ogg+set}" = set; then | |
22175 withval="$with_ogg" | |
22176 ogg_prefix="$withval" | |
22177 else | |
22178 ogg_prefix="" | |
22179 fi; | |
22180 | |
22181 # Check whether --with-ogg-libraries or --without-ogg-libraries was given. | |
22182 if test "${with_ogg_libraries+set}" = set; then | |
22183 withval="$with_ogg_libraries" | |
22184 ogg_libraries="$withval" | |
22185 else | |
22186 ogg_libraries="" | |
22187 fi; | |
22188 | |
22189 # Check whether --with-ogg-includes or --without-ogg-includes was given. | |
22190 if test "${with_ogg_includes+set}" = set; then | |
22191 withval="$with_ogg_includes" | |
22192 ogg_includes="$withval" | |
22193 else | |
22194 ogg_includes="" | |
22195 fi; | |
22196 # Check whether --enable-oggtest or --disable-oggtest was given. | |
22197 if test "${enable_oggtest+set}" = set; then | |
22198 enableval="$enable_oggtest" | |
22199 | |
22200 else | |
22201 enable_oggtest=yes | |
22202 fi; | |
22203 | |
22204 if test "x$ogg_libraries" != "x" ; then | |
22205 OGG_LIBS="-L$ogg_libraries" | |
22206 elif test "x$ogg_prefix" != "x" ; then | |
22207 OGG_LIBS="-L$ogg_prefix/lib" | |
22208 elif test "x$prefix" != "xNONE" ; then | |
22209 OGG_LIBS="-L$prefix/lib" | |
22210 fi | |
22211 | |
22212 OGG_LIBS="$OGG_LIBS -logg" | |
22213 | |
22214 if test "x$ogg_includes" != "x" ; then | |
22215 OGG_CFLAGS="-I$ogg_includes" | |
22216 elif test "x$ogg_prefix" != "x" ; then | |
22217 OGG_CFLAGS="-I$ogg_prefix/include" | |
22218 elif test "x$prefix" != "xNONE"; then | |
22219 OGG_CFLAGS="-I$prefix/include" | |
22220 fi | |
22221 | |
22222 echo "$as_me:$LINENO: checking for Ogg" >&5 | |
22223 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6 | |
22224 no_ogg="" | |
22225 | |
22226 | |
22227 if test "x$enable_oggtest" = "xyes" ; then | |
22228 ac_save_CFLAGS="$CFLAGS" | |
22229 ac_save_LIBS="$LIBS" | |
22230 CFLAGS="$CFLAGS $OGG_CFLAGS" | |
22231 LIBS="$LIBS $OGG_LIBS" | |
22232 rm -f conf.oggtest | |
22233 if test "$cross_compiling" = yes; then | |
22234 echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22235 else | |
22236 cat >conftest.$ac_ext <<_ACEOF | |
22237 /* confdefs.h. */ | |
22238 _ACEOF | |
22239 cat confdefs.h >>conftest.$ac_ext | |
22240 cat >>conftest.$ac_ext <<_ACEOF | |
22241 /* end confdefs.h. */ | |
22242 | |
22243 #include <stdio.h> | |
22244 #include <stdlib.h> | |
22245 #include <string.h> | |
22246 #include <ogg/ogg.h> | |
22247 | |
22248 int main () | |
22249 { | |
22250 system("touch conf.oggtest"); | |
22251 return 0; | |
22252 } | |
22253 | |
22254 | |
22255 _ACEOF | |
22256 rm -f conftest$ac_exeext | |
22257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22258 (eval $ac_link) 2>&5 | |
22259 ac_status=$? | |
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22263 (eval $ac_try) 2>&5 | |
22264 ac_status=$? | |
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22266 (exit $ac_status); }; }; then | |
22267 : | |
22268 else | |
22269 echo "$as_me: program exited with status $ac_status" >&5 | |
22270 echo "$as_me: failed program was:" >&5 | |
22271 sed 's/^/| /' conftest.$ac_ext >&5 | |
22272 | |
22273 ( exit $ac_status ) | |
22274 no_ogg=yes | |
22275 fi | |
22276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22277 fi | |
22278 CFLAGS="$ac_save_CFLAGS" | |
22279 LIBS="$ac_save_LIBS" | |
22280 fi | |
22281 | |
22282 if test "x$no_ogg" = "x" ; then | |
22283 echo "$as_me:$LINENO: result: yes" >&5 | |
22284 echo "${ECHO_T}yes" >&6 | |
22285 have_ogg=yes | |
22286 else | |
22287 echo "$as_me:$LINENO: result: no" >&5 | |
22288 echo "${ECHO_T}no" >&6 | |
22289 if test -f conf.oggtest ; then | |
22290 : | |
22291 else | |
22292 echo "*** Could not run Ogg test program, checking why..." | |
22293 CFLAGS="$CFLAGS $OGG_CFLAGS" | |
22294 LIBS="$LIBS $OGG_LIBS" | |
22295 cat >conftest.$ac_ext <<_ACEOF | |
22296 /* confdefs.h. */ | |
22297 _ACEOF | |
22298 cat confdefs.h >>conftest.$ac_ext | |
22299 cat >>conftest.$ac_ext <<_ACEOF | |
22300 /* end confdefs.h. */ | |
22301 | |
22302 #include <stdio.h> | |
22303 #include <ogg/ogg.h> | |
22304 | |
22305 int | |
22306 main () | |
22307 { | |
22308 return 0; | |
22309 ; | |
22310 return 0; | |
22311 } | |
22312 _ACEOF | |
22313 rm -f conftest.$ac_objext conftest$ac_exeext | |
22314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22315 (eval $ac_link) 2>conftest.er1 | |
22316 ac_status=$? | |
22317 grep -v '^ *+' conftest.er1 >conftest.err | |
22318 rm -f conftest.er1 | |
22319 cat conftest.err >&5 | |
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22321 (exit $ac_status); } && | |
22322 { ac_try='test -z "$ac_c_werror_flag" | |
22323 || test ! -s conftest.err' | |
22324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22325 (eval $ac_try) 2>&5 | |
22326 ac_status=$? | |
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22328 (exit $ac_status); }; } && | |
22329 { ac_try='test -s conftest$ac_exeext' | |
22330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22331 (eval $ac_try) 2>&5 | |
22332 ac_status=$? | |
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22334 (exit $ac_status); }; }; then | |
22335 echo "*** The test program compiled, but did not run. This usually means" | |
22336 echo "*** that the run-time linker is not finding Ogg or finding the wrong" | |
22337 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" | |
22338 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22339 echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22340 echo "*** is required on your system" | |
22341 echo "***" | |
22342 echo "*** If you have an old version installed, it is best to remove it, although" | |
22343 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22344 else | |
22345 echo "$as_me: failed program was:" >&5 | |
22346 sed 's/^/| /' conftest.$ac_ext >&5 | |
22347 | |
22348 echo "*** The test program failed to compile or link. See the file config.log for the" | |
22349 echo "*** exact error that occured. This usually means Ogg was incorrectly installed" | |
22350 echo "*** or that you have moved Ogg since it was installed." | |
22351 fi | |
22352 rm -f conftest.err conftest.$ac_objext \ | |
22353 conftest$ac_exeext conftest.$ac_ext | |
22354 CFLAGS="$ac_save_CFLAGS" | |
22355 LIBS="$ac_save_LIBS" | |
22356 fi | |
22357 OGG_CFLAGS="" | |
22358 OGG_LIBS="" | |
22359 { echo "$as_me:$LINENO: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&5 | |
22360 echo "$as_me: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&2;} | |
22361 fi | |
22362 | |
22363 | |
22364 rm -f conf.oggtest | |
22365 | |
22366 fi | |
22367 | |
22368 | |
22369 | |
22370 if test "x$have_ogg" = xyes; then | |
22371 FLaC__HAS_OGG_TRUE= | |
22372 FLaC__HAS_OGG_FALSE='#' | |
22373 else | |
22374 FLaC__HAS_OGG_TRUE='#' | |
22375 FLaC__HAS_OGG_FALSE= | |
22376 fi | |
22377 | |
22378 if test "x$have_ogg" = xyes ; then | |
22379 cat >>confdefs.h <<\_ACEOF | |
22380 #define FLAC__HAS_OGG 1 | |
22381 _ACEOF | |
22382 | |
22383 | |
22384 | |
22385 fi | |
22386 | |
22387 | |
22388 if test "X$prefix" = "XNONE"; then | |
22389 acl_final_prefix="$ac_default_prefix" | |
22390 else | |
22391 acl_final_prefix="$prefix" | |
22392 fi | |
22393 if test "X$exec_prefix" = "XNONE"; then | |
22394 acl_final_exec_prefix='${prefix}' | |
22395 else | |
22396 acl_final_exec_prefix="$exec_prefix" | |
22397 fi | |
22398 acl_save_prefix="$prefix" | |
22399 prefix="$acl_final_prefix" | |
22400 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
22401 prefix="$acl_save_prefix" | |
22402 | |
22403 | |
22404 # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
22405 if test "${with_gnu_ld+set}" = set; then | |
22406 withval="$with_gnu_ld" | |
22407 test "$withval" = no || with_gnu_ld=yes | |
22408 else | |
22409 with_gnu_ld=no | |
22410 fi; | |
22411 # Prepare PATH_SEPARATOR. | |
22412 # The user is always right. | |
22413 if test "${PATH_SEPARATOR+set}" != set; then | |
22414 echo "#! /bin/sh" >conf$$.sh | |
22415 echo "exit 0" >>conf$$.sh | |
22416 chmod +x conf$$.sh | |
22417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
22418 PATH_SEPARATOR=';' | |
22419 else | |
22420 PATH_SEPARATOR=: | |
22421 fi | |
22422 rm -f conf$$.sh | |
22423 fi | |
22424 ac_prog=ld | |
22425 if test "$GCC" = yes; then | |
22426 # Check if gcc -print-prog-name=ld gives a path. | |
22427 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
22428 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
22429 case $host in | |
22430 *-*-mingw*) | |
22431 # gcc leaves a trailing carriage return which upsets mingw | |
22432 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
22433 *) | |
22434 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
22435 esac | |
22436 case $ac_prog in | |
22437 # Accept absolute paths. | |
22438 [\\/]* | [A-Za-z]:[\\/]*) | |
22439 re_direlt='/[^/][^/]*/\.\./' | |
22440 # Canonicalize the path of ld | |
22441 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
22442 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
22443 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
22444 done | |
22445 test -z "$LD" && LD="$ac_prog" | |
22446 ;; | |
22447 "") | |
22448 # If it fails, then pretend we aren't using GCC. | |
22449 ac_prog=ld | |
22450 ;; | |
22451 *) | |
22452 # If it is relative, then search for the first ld in PATH. | |
22453 with_gnu_ld=unknown | |
22454 ;; | |
22455 esac | |
22456 elif test "$with_gnu_ld" = yes; then | |
22457 echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
22458 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
22459 else | |
22460 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
22461 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
22462 fi | |
22463 if test "${acl_cv_path_LD+set}" = set; then | |
22464 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22465 else | |
22466 if test -z "$LD"; then | |
22467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
22468 for ac_dir in $PATH; do | |
22469 test -z "$ac_dir" && ac_dir=. | |
22470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
22471 acl_cv_path_LD="$ac_dir/$ac_prog" | |
22472 # Check to see if the program is GNU ld. I'd rather use --version, | |
22473 # but apparently some GNU ld's only accept -v. | |
22474 # Break only if it was the GNU/non-GNU ld that we prefer. | |
22475 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
22476 *GNU* | *'with BFD'*) | |
22477 test "$with_gnu_ld" != no && break ;; | |
22478 *) | |
22479 test "$with_gnu_ld" != yes && break ;; | |
22480 esac | |
22481 fi | |
22482 done | |
22483 IFS="$ac_save_ifs" | |
22484 else | |
22485 acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
22486 fi | |
22487 fi | |
22488 | |
22489 LD="$acl_cv_path_LD" | |
22490 if test -n "$LD"; then | |
22491 echo "$as_me:$LINENO: result: $LD" >&5 | |
22492 echo "${ECHO_T}$LD" >&6 | |
22493 else | |
22494 echo "$as_me:$LINENO: result: no" >&5 | |
22495 echo "${ECHO_T}no" >&6 | |
22496 fi | |
22497 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
22498 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
22499 { (exit 1); exit 1; }; } | |
22500 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
22501 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
22502 if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
22503 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22504 else | |
22505 # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
22506 case `$LD -v 2>&1 </dev/null` in | |
22507 *GNU* | *'with BFD'*) | |
22508 acl_cv_prog_gnu_ld=yes ;; | |
22509 *) | |
22510 acl_cv_prog_gnu_ld=no ;; | |
22511 esac | |
22512 fi | |
22513 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
22514 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
22515 with_gnu_ld=$acl_cv_prog_gnu_ld | |
22516 | |
22517 | |
22518 | |
22519 | |
22520 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
22521 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
22522 if test "${acl_cv_rpath+set}" = set; then | |
22523 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22524 else | |
22525 | |
22526 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
22527 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
22528 . ./conftest.sh | |
22529 rm -f ./conftest.sh | |
22530 acl_cv_rpath=done | |
22531 | |
22532 fi | |
22533 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
22534 echo "${ECHO_T}$acl_cv_rpath" >&6 | |
22535 wl="$acl_cv_wl" | |
22536 libext="$acl_cv_libext" | |
22537 shlibext="$acl_cv_shlibext" | |
22538 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
22539 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
22540 hardcode_direct="$acl_cv_hardcode_direct" | |
22541 hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
22542 # Check whether --enable-rpath or --disable-rpath was given. | |
22543 if test "${enable_rpath+set}" = set; then | |
22544 enableval="$enable_rpath" | |
22545 : | |
22546 else | |
22547 enable_rpath=yes | |
22548 fi; | |
22549 | |
22550 | |
22551 | |
22552 | |
22553 | |
22554 | |
22555 | |
22556 use_additional=yes | |
22557 | |
22558 acl_save_prefix="$prefix" | |
22559 prefix="$acl_final_prefix" | |
22560 acl_save_exec_prefix="$exec_prefix" | |
22561 exec_prefix="$acl_final_exec_prefix" | |
22562 | |
22563 eval additional_includedir=\"$includedir\" | |
22564 eval additional_libdir=\"$libdir\" | |
22565 | |
22566 exec_prefix="$acl_save_exec_prefix" | |
22567 prefix="$acl_save_prefix" | |
22568 | |
22569 | |
22570 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
22571 if test "${with_libiconv_prefix+set}" = set; then | |
22572 withval="$with_libiconv_prefix" | |
22573 | |
22574 if test "X$withval" = "Xno"; then | |
22575 use_additional=no | |
22576 else | |
22577 if test "X$withval" = "X"; then | |
22578 | |
22579 acl_save_prefix="$prefix" | |
22580 prefix="$acl_final_prefix" | |
22581 acl_save_exec_prefix="$exec_prefix" | |
22582 exec_prefix="$acl_final_exec_prefix" | |
22583 | |
22584 eval additional_includedir=\"$includedir\" | |
22585 eval additional_libdir=\"$libdir\" | |
22586 | |
22587 exec_prefix="$acl_save_exec_prefix" | |
22588 prefix="$acl_save_prefix" | |
22589 | |
22590 else | |
22591 additional_includedir="$withval/include" | |
22592 additional_libdir="$withval/lib" | |
22593 fi | |
22594 fi | |
22595 | |
22596 fi; | |
22597 LIBICONV= | |
22598 LTLIBICONV= | |
22599 INCICONV= | |
22600 rpathdirs= | |
22601 ltrpathdirs= | |
22602 names_already_handled= | |
22603 names_next_round='iconv ' | |
22604 while test -n "$names_next_round"; do | |
22605 names_this_round="$names_next_round" | |
22606 names_next_round= | |
22607 for name in $names_this_round; do | |
22608 already_handled= | |
22609 for n in $names_already_handled; do | |
22610 if test "$n" = "$name"; then | |
22611 already_handled=yes | |
22612 break | |
22613 fi | |
22614 done | |
22615 if test -z "$already_handled"; then | |
22616 names_already_handled="$names_already_handled $name" | |
22617 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
22618 eval value=\"\$HAVE_LIB$uppername\" | |
22619 if test -n "$value"; then | |
22620 if test "$value" = yes; then | |
22621 eval value=\"\$LIB$uppername\" | |
22622 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
22623 eval value=\"\$LTLIB$uppername\" | |
22624 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
22625 else | |
22626 : | |
22627 fi | |
22628 else | |
22629 found_dir= | |
22630 found_la= | |
22631 found_so= | |
22632 found_a= | |
22633 if test $use_additional = yes; then | |
22634 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
22635 found_dir="$additional_libdir" | |
22636 found_so="$additional_libdir/lib$name.$shlibext" | |
22637 if test -f "$additional_libdir/lib$name.la"; then | |
22638 found_la="$additional_libdir/lib$name.la" | |
22639 fi | |
22640 else | |
22641 if test -f "$additional_libdir/lib$name.$libext"; then | |
22642 found_dir="$additional_libdir" | |
22643 found_a="$additional_libdir/lib$name.$libext" | |
22644 if test -f "$additional_libdir/lib$name.la"; then | |
22645 found_la="$additional_libdir/lib$name.la" | |
22646 fi | |
22647 fi | |
22648 fi | |
22649 fi | |
22650 if test "X$found_dir" = "X"; then | |
22651 for x in $LDFLAGS $LTLIBICONV; do | |
22652 | |
22653 acl_save_prefix="$prefix" | |
22654 prefix="$acl_final_prefix" | |
22655 acl_save_exec_prefix="$exec_prefix" | |
22656 exec_prefix="$acl_final_exec_prefix" | |
22657 eval x=\"$x\" | |
22658 exec_prefix="$acl_save_exec_prefix" | |
22659 prefix="$acl_save_prefix" | |
22660 | |
22661 case "$x" in | |
22662 -L*) | |
22663 dir=`echo "X$x" | sed -e 's/^X-L//'` | |
22664 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
22665 found_dir="$dir" | |
22666 found_so="$dir/lib$name.$shlibext" | |
22667 if test -f "$dir/lib$name.la"; then | |
22668 found_la="$dir/lib$name.la" | |
22669 fi | |
22670 else | |
22671 if test -f "$dir/lib$name.$libext"; then | |
22672 found_dir="$dir" | |
22673 found_a="$dir/lib$name.$libext" | |
22674 if test -f "$dir/lib$name.la"; then | |
22675 found_la="$dir/lib$name.la" | |
22676 fi | |
22677 fi | |
22678 fi | |
22679 ;; | |
22680 esac | |
22681 if test "X$found_dir" != "X"; then | |
22682 break | |
22683 fi | |
22684 done | |
22685 fi | |
22686 if test "X$found_dir" != "X"; then | |
22687 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
22688 if test "X$found_so" != "X"; then | |
22689 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
22690 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
22691 else | |
22692 haveit= | |
22693 for x in $ltrpathdirs; do | |
22694 if test "X$x" = "X$found_dir"; then | |
22695 haveit=yes | |
22696 break | |
22697 fi | |
22698 done | |
22699 if test -z "$haveit"; then | |
22700 ltrpathdirs="$ltrpathdirs $found_dir" | |
22701 fi | |
22702 if test "$hardcode_direct" = yes; then | |
22703 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
22704 else | |
22705 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
22706 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
22707 haveit= | |
22708 for x in $rpathdirs; do | |
22709 if test "X$x" = "X$found_dir"; then | |
22710 haveit=yes | |
22711 break | |
22712 fi | |
22713 done | |
22714 if test -z "$haveit"; then | |
22715 rpathdirs="$rpathdirs $found_dir" | |
22716 fi | |
22717 else | |
22718 haveit= | |
22719 for x in $LDFLAGS $LIBICONV; do | |
22720 | |
22721 acl_save_prefix="$prefix" | |
22722 prefix="$acl_final_prefix" | |
22723 acl_save_exec_prefix="$exec_prefix" | |
22724 exec_prefix="$acl_final_exec_prefix" | |
22725 eval x=\"$x\" | |
22726 exec_prefix="$acl_save_exec_prefix" | |
22727 prefix="$acl_save_prefix" | |
22728 | |
22729 if test "X$x" = "X-L$found_dir"; then | |
22730 haveit=yes | |
22731 break | |
22732 fi | |
22733 done | |
22734 if test -z "$haveit"; then | |
22735 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
22736 fi | |
22737 if test "$hardcode_minus_L" != no; then | |
22738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
22739 else | |
22740 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
22741 fi | |
22742 fi | |
22743 fi | |
22744 fi | |
22745 else | |
22746 if test "X$found_a" != "X"; then | |
22747 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
22748 else | |
22749 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
22750 fi | |
22751 fi | |
22752 additional_includedir= | |
22753 case "$found_dir" in | |
22754 */lib | */lib/) | |
22755 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
22756 additional_includedir="$basedir/include" | |
22757 ;; | |
22758 esac | |
22759 if test "X$additional_includedir" != "X"; then | |
22760 if test "X$additional_includedir" != "X/usr/include"; then | |
22761 haveit= | |
22762 if test "X$additional_includedir" = "X/usr/local/include"; then | |
22763 if test -n "$GCC"; then | |
22764 case $host_os in | |
22765 linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
22766 esac | |
22767 fi | |
22768 fi | |
22769 if test -z "$haveit"; then | |
22770 for x in $CPPFLAGS $INCICONV; do | |
22771 | |
22772 acl_save_prefix="$prefix" | |
22773 prefix="$acl_final_prefix" | |
22774 acl_save_exec_prefix="$exec_prefix" | |
22775 exec_prefix="$acl_final_exec_prefix" | |
22776 eval x=\"$x\" | |
22777 exec_prefix="$acl_save_exec_prefix" | |
22778 prefix="$acl_save_prefix" | |
22779 | |
22780 if test "X$x" = "X-I$additional_includedir"; then | |
22781 haveit=yes | |
22782 break | |
22783 fi | |
22784 done | |
22785 if test -z "$haveit"; then | |
22786 if test -d "$additional_includedir"; then | |
22787 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
22788 fi | |
22789 fi | |
22790 fi | |
22791 fi | |
22792 fi | |
22793 if test -n "$found_la"; then | |
22794 save_libdir="$libdir" | |
22795 case "$found_la" in | |
22796 */* | *\\*) . "$found_la" ;; | |
22797 *) . "./$found_la" ;; | |
22798 esac | |
22799 libdir="$save_libdir" | |
22800 for dep in $dependency_libs; do | |
22801 case "$dep" in | |
22802 -L*) | |
22803 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
22804 if test "X$additional_libdir" != "X/usr/lib"; then | |
22805 haveit= | |
22806 if test "X$additional_libdir" = "X/usr/local/lib"; then | |
22807 if test -n "$GCC"; then | |
22808 case $host_os in | |
22809 linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
22810 esac | |
22811 fi | |
22812 fi | |
22813 if test -z "$haveit"; then | |
22814 haveit= | |
22815 for x in $LDFLAGS $LIBICONV; do | |
22816 | |
22817 acl_save_prefix="$prefix" | |
22818 prefix="$acl_final_prefix" | |
22819 acl_save_exec_prefix="$exec_prefix" | |
22820 exec_prefix="$acl_final_exec_prefix" | |
22821 eval x=\"$x\" | |
22822 exec_prefix="$acl_save_exec_prefix" | |
22823 prefix="$acl_save_prefix" | |
22824 | |
22825 if test "X$x" = "X-L$additional_libdir"; then | |
22826 haveit=yes | |
22827 break | |
22828 fi | |
22829 done | |
22830 if test -z "$haveit"; then | |
22831 if test -d "$additional_libdir"; then | |
22832 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
22833 fi | |
22834 fi | |
22835 haveit= | |
22836 for x in $LDFLAGS $LTLIBICONV; do | |
22837 | |
22838 acl_save_prefix="$prefix" | |
22839 prefix="$acl_final_prefix" | |
22840 acl_save_exec_prefix="$exec_prefix" | |
22841 exec_prefix="$acl_final_exec_prefix" | |
22842 eval x=\"$x\" | |
22843 exec_prefix="$acl_save_exec_prefix" | |
22844 prefix="$acl_save_prefix" | |
22845 | |
22846 if test "X$x" = "X-L$additional_libdir"; then | |
22847 haveit=yes | |
22848 break | |
22849 fi | |
22850 done | |
22851 if test -z "$haveit"; then | |
22852 if test -d "$additional_libdir"; then | |
22853 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
22854 fi | |
22855 fi | |
22856 fi | |
22857 fi | |
22858 ;; | |
22859 -R*) | |
22860 dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
22861 if test "$enable_rpath" != no; then | |
22862 haveit= | |
22863 for x in $rpathdirs; do | |
22864 if test "X$x" = "X$dir"; then | |
22865 haveit=yes | |
22866 break | |
22867 fi | |
22868 done | |
22869 if test -z "$haveit"; then | |
22870 rpathdirs="$rpathdirs $dir" | |
22871 fi | |
22872 haveit= | |
22873 for x in $ltrpathdirs; do | |
22874 if test "X$x" = "X$dir"; then | |
22875 haveit=yes | |
22876 break | |
22877 fi | |
22878 done | |
22879 if test -z "$haveit"; then | |
22880 ltrpathdirs="$ltrpathdirs $dir" | |
22881 fi | |
22882 fi | |
22883 ;; | |
22884 -l*) | |
22885 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
22886 ;; | |
22887 *.la) | |
22888 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
22889 ;; | |
22890 *) | |
22891 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
22892 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
22893 ;; | |
22894 esac | |
22895 done | |
22896 fi | |
22897 else | |
22898 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
22899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
22900 fi | |
22901 fi | |
22902 fi | |
22903 done | |
22904 done | |
22905 if test "X$rpathdirs" != "X"; then | |
22906 if test -n "$hardcode_libdir_separator"; then | |
22907 alldirs= | |
22908 for found_dir in $rpathdirs; do | |
22909 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
22910 done | |
22911 acl_save_libdir="$libdir" | |
22912 libdir="$alldirs" | |
22913 eval flag=\"$hardcode_libdir_flag_spec\" | |
22914 libdir="$acl_save_libdir" | |
22915 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
22916 else | |
22917 for found_dir in $rpathdirs; do | |
22918 acl_save_libdir="$libdir" | |
22919 libdir="$found_dir" | |
22920 eval flag=\"$hardcode_libdir_flag_spec\" | |
22921 libdir="$acl_save_libdir" | |
22922 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
22923 done | |
22924 fi | |
22925 fi | |
22926 if test "X$ltrpathdirs" != "X"; then | |
22927 for found_dir in $ltrpathdirs; do | |
22928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
22929 done | |
22930 fi | |
22931 | |
22932 | |
22933 | |
22934 | |
22935 | |
22936 | |
22937 | |
22938 am_save_CPPFLAGS="$CPPFLAGS" | |
22939 | |
22940 for element in $INCICONV; do | |
22941 haveit= | |
22942 for x in $CPPFLAGS; do | |
22943 | |
22944 acl_save_prefix="$prefix" | |
22945 prefix="$acl_final_prefix" | |
22946 acl_save_exec_prefix="$exec_prefix" | |
22947 exec_prefix="$acl_final_exec_prefix" | |
22948 eval x=\"$x\" | |
22949 exec_prefix="$acl_save_exec_prefix" | |
22950 prefix="$acl_save_prefix" | |
22951 | |
22952 if test "X$x" = "X$element"; then | |
22953 haveit=yes | |
22954 break | |
22955 fi | |
22956 done | |
22957 if test -z "$haveit"; then | |
22958 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
22959 fi | |
22960 done | |
22961 | |
22962 | |
22963 echo "$as_me:$LINENO: checking for iconv" >&5 | |
22964 echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
22965 if test "${am_cv_func_iconv+set}" = set; then | |
22966 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22967 else | |
22968 | |
22969 am_cv_func_iconv="no, consider installing GNU libiconv" | |
22970 am_cv_lib_iconv=no | |
22971 cat >conftest.$ac_ext <<_ACEOF | |
22972 /* confdefs.h. */ | |
22973 _ACEOF | |
22974 cat confdefs.h >>conftest.$ac_ext | |
22975 cat >>conftest.$ac_ext <<_ACEOF | |
22976 /* end confdefs.h. */ | |
22977 #include <stdlib.h> | |
22978 #include <iconv.h> | |
22979 int | |
22980 main () | |
22981 { | |
22982 iconv_t cd = iconv_open("",""); | |
22983 iconv(cd,NULL,NULL,NULL,NULL); | |
22984 iconv_close(cd); | |
22985 ; | |
22986 return 0; | |
22987 } | |
22988 _ACEOF | |
22989 rm -f conftest.$ac_objext conftest$ac_exeext | |
22990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22991 (eval $ac_link) 2>conftest.er1 | |
22992 ac_status=$? | |
22993 grep -v '^ *+' conftest.er1 >conftest.err | |
22994 rm -f conftest.er1 | |
22995 cat conftest.err >&5 | |
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22997 (exit $ac_status); } && | |
22998 { ac_try='test -z "$ac_c_werror_flag" | |
22999 || test ! -s conftest.err' | |
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23001 (eval $ac_try) 2>&5 | |
23002 ac_status=$? | |
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23004 (exit $ac_status); }; } && | |
23005 { ac_try='test -s conftest$ac_exeext' | |
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23007 (eval $ac_try) 2>&5 | |
23008 ac_status=$? | |
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23010 (exit $ac_status); }; }; then | |
23011 am_cv_func_iconv=yes | |
23012 else | |
23013 echo "$as_me: failed program was:" >&5 | |
23014 sed 's/^/| /' conftest.$ac_ext >&5 | |
23015 | |
23016 fi | |
23017 rm -f conftest.err conftest.$ac_objext \ | |
23018 conftest$ac_exeext conftest.$ac_ext | |
23019 if test "$am_cv_func_iconv" != yes; then | |
23020 am_save_LIBS="$LIBS" | |
23021 LIBS="$LIBS $LIBICONV" | |
23022 cat >conftest.$ac_ext <<_ACEOF | |
23023 /* confdefs.h. */ | |
23024 _ACEOF | |
23025 cat confdefs.h >>conftest.$ac_ext | |
23026 cat >>conftest.$ac_ext <<_ACEOF | |
23027 /* end confdefs.h. */ | |
23028 #include <stdlib.h> | |
23029 #include <iconv.h> | |
23030 int | |
23031 main () | |
23032 { | |
23033 iconv_t cd = iconv_open("",""); | |
23034 iconv(cd,NULL,NULL,NULL,NULL); | |
23035 iconv_close(cd); | |
23036 ; | |
23037 return 0; | |
23038 } | |
23039 _ACEOF | |
23040 rm -f conftest.$ac_objext conftest$ac_exeext | |
23041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23042 (eval $ac_link) 2>conftest.er1 | |
23043 ac_status=$? | |
23044 grep -v '^ *+' conftest.er1 >conftest.err | |
23045 rm -f conftest.er1 | |
23046 cat conftest.err >&5 | |
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23048 (exit $ac_status); } && | |
23049 { ac_try='test -z "$ac_c_werror_flag" | |
23050 || test ! -s conftest.err' | |
23051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23052 (eval $ac_try) 2>&5 | |
23053 ac_status=$? | |
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23055 (exit $ac_status); }; } && | |
23056 { ac_try='test -s conftest$ac_exeext' | |
23057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23058 (eval $ac_try) 2>&5 | |
23059 ac_status=$? | |
23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23061 (exit $ac_status); }; }; then | |
23062 am_cv_lib_iconv=yes | |
23063 am_cv_func_iconv=yes | |
23064 else | |
23065 echo "$as_me: failed program was:" >&5 | |
23066 sed 's/^/| /' conftest.$ac_ext >&5 | |
23067 | |
23068 fi | |
23069 rm -f conftest.err conftest.$ac_objext \ | |
23070 conftest$ac_exeext conftest.$ac_ext | |
23071 LIBS="$am_save_LIBS" | |
23072 fi | |
23073 | |
23074 fi | |
23075 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
23076 echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
23077 if test "$am_cv_func_iconv" = yes; then | |
23078 | |
23079 cat >>confdefs.h <<\_ACEOF | |
23080 #define HAVE_ICONV 1 | |
23081 _ACEOF | |
23082 | |
23083 fi | |
23084 if test "$am_cv_lib_iconv" = yes; then | |
23085 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 | |
23086 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 | |
23087 echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
23088 echo "${ECHO_T}$LIBICONV" >&6 | |
23089 else | |
23090 CPPFLAGS="$am_save_CPPFLAGS" | |
23091 LIBICONV= | |
23092 LTLIBICONV= | |
23093 fi | |
23094 | |
23095 | |
23096 | |
23097 if test "$am_cv_func_iconv" = yes; then | |
23098 echo "$as_me:$LINENO: checking for iconv declaration" >&5 | |
23099 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
23100 if test "${am_cv_proto_iconv+set}" = set; then | |
23101 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23102 else | |
23103 | |
23104 cat >conftest.$ac_ext <<_ACEOF | |
23105 /* confdefs.h. */ | |
23106 _ACEOF | |
23107 cat confdefs.h >>conftest.$ac_ext | |
23108 cat >>conftest.$ac_ext <<_ACEOF | |
23109 /* end confdefs.h. */ | |
23110 | |
23111 #include <stdlib.h> | |
23112 #include <iconv.h> | |
23113 extern | |
23114 #ifdef __cplusplus | |
23115 "C" | |
23116 #endif | |
23117 #if defined(__STDC__) || defined(__cplusplus) | |
23118 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
23119 #else | |
23120 size_t iconv(); | |
23121 #endif | |
23122 | |
23123 int | |
23124 main () | |
23125 { | |
23126 | |
23127 ; | |
23128 return 0; | |
23129 } | |
23130 _ACEOF | |
23131 rm -f conftest.$ac_objext | |
23132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23133 (eval $ac_compile) 2>conftest.er1 | |
23134 ac_status=$? | |
23135 grep -v '^ *+' conftest.er1 >conftest.err | |
23136 rm -f conftest.er1 | |
23137 cat conftest.err >&5 | |
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23139 (exit $ac_status); } && | |
23140 { ac_try='test -z "$ac_c_werror_flag" | |
23141 || test ! -s conftest.err' | |
23142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23143 (eval $ac_try) 2>&5 | |
23144 ac_status=$? | |
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23146 (exit $ac_status); }; } && | |
23147 { ac_try='test -s conftest.$ac_objext' | |
23148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23149 (eval $ac_try) 2>&5 | |
23150 ac_status=$? | |
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23152 (exit $ac_status); }; }; then | |
23153 am_cv_proto_iconv_arg1="" | |
23154 else | |
23155 echo "$as_me: failed program was:" >&5 | |
23156 sed 's/^/| /' conftest.$ac_ext >&5 | |
23157 | |
23158 am_cv_proto_iconv_arg1="const" | |
23159 fi | |
23160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23161 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
23162 fi | |
23163 | |
23164 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
23165 echo "$as_me:$LINENO: result: ${ac_t:- | |
23166 }$am_cv_proto_iconv" >&5 | |
23167 echo "${ECHO_T}${ac_t:- | |
23168 }$am_cv_proto_iconv" >&6 | |
23169 | |
23170 cat >>confdefs.h <<_ACEOF | |
23171 #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
23172 _ACEOF | |
23173 | |
23174 fi | |
23175 | |
23176 | |
23177 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 | |
23178 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 | |
23179 if test "${am_cv_langinfo_codeset+set}" = set; then | |
23180 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23181 else | |
23182 cat >conftest.$ac_ext <<_ACEOF | |
23183 /* confdefs.h. */ | |
23184 _ACEOF | |
23185 cat confdefs.h >>conftest.$ac_ext | |
23186 cat >>conftest.$ac_ext <<_ACEOF | |
23187 /* end confdefs.h. */ | |
23188 #include <langinfo.h> | |
23189 int | |
23190 main () | |
23191 { | |
23192 char* cs = nl_langinfo(CODESET); | |
23193 ; | |
23194 return 0; | |
23195 } | |
23196 _ACEOF | |
23197 rm -f conftest.$ac_objext conftest$ac_exeext | |
23198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23199 (eval $ac_link) 2>conftest.er1 | |
23200 ac_status=$? | |
23201 grep -v '^ *+' conftest.er1 >conftest.err | |
23202 rm -f conftest.er1 | |
23203 cat conftest.err >&5 | |
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23205 (exit $ac_status); } && | |
23206 { ac_try='test -z "$ac_c_werror_flag" | |
23207 || test ! -s conftest.err' | |
23208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23209 (eval $ac_try) 2>&5 | |
23210 ac_status=$? | |
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23212 (exit $ac_status); }; } && | |
23213 { ac_try='test -s conftest$ac_exeext' | |
23214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23215 (eval $ac_try) 2>&5 | |
23216 ac_status=$? | |
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23218 (exit $ac_status); }; }; then | |
23219 am_cv_langinfo_codeset=yes | |
23220 else | |
23221 echo "$as_me: failed program was:" >&5 | |
23222 sed 's/^/| /' conftest.$ac_ext >&5 | |
23223 | |
23224 am_cv_langinfo_codeset=no | |
23225 fi | |
23226 rm -f conftest.err conftest.$ac_objext \ | |
23227 conftest$ac_exeext conftest.$ac_ext | |
23228 | |
23229 fi | |
23230 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 | |
23231 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 | |
23232 if test $am_cv_langinfo_codeset = yes; then | |
23233 | |
23234 cat >>confdefs.h <<\_ACEOF | |
23235 #define HAVE_LANGINFO_CODESET 1 | |
23236 _ACEOF | |
23237 | |
23238 fi | |
23239 | |
23240 | |
23241 for ac_prog in docbook-to-man docbook2man | |
23242 do | |
23243 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
23244 set dummy $ac_prog; ac_word=$2 | |
23245 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23247 if test "${ac_cv_prog_DOCBOOK_TO_MAN+set}" = set; then | |
23248 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23249 else | |
23250 if test -n "$DOCBOOK_TO_MAN"; then | |
23251 ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test. | |
23252 else | |
23253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23254 for as_dir in $PATH | |
23255 do | |
23256 IFS=$as_save_IFS | |
23257 test -z "$as_dir" && as_dir=. | |
23258 for ac_exec_ext in '' $ac_executable_extensions; do | |
23259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23260 ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog" | |
23261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23262 break 2 | |
23263 fi | |
23264 done | |
23265 done | |
23266 | |
23267 fi | |
23268 fi | |
23269 DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN | |
23270 if test -n "$DOCBOOK_TO_MAN"; then | |
23271 echo "$as_me:$LINENO: result: $DOCBOOK_TO_MAN" >&5 | |
23272 echo "${ECHO_T}$DOCBOOK_TO_MAN" >&6 | |
23273 else | |
23274 echo "$as_me:$LINENO: result: no" >&5 | |
23275 echo "${ECHO_T}no" >&6 | |
23276 fi | |
23277 | |
23278 test -n "$DOCBOOK_TO_MAN" && break | |
23279 done | |
23280 | |
23281 | |
23282 | |
23283 if test -n "$DOCBOOK_TO_MAN"; then | |
23284 FLaC__HAS_DOCBOOK_TO_MAN_TRUE= | |
23285 FLaC__HAS_DOCBOOK_TO_MAN_FALSE='#' | |
23286 else | |
23287 FLaC__HAS_DOCBOOK_TO_MAN_TRUE='#' | |
23288 FLaC__HAS_DOCBOOK_TO_MAN_FALSE= | |
23289 fi | |
23290 | |
23291 if test -n "$DOCBOOK_TO_MAN" ; then | |
23292 cat >>confdefs.h <<\_ACEOF | |
23293 #define FLAC__HAS_DOCBOOK_TO_MAN 1 | |
23294 _ACEOF | |
23295 | |
23296 | |
23297 | |
23298 fi | |
23299 | |
23300 # only matters for x86 | |
23301 for ac_prog in nasm | |
23302 do | |
23303 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
23304 set dummy $ac_prog; ac_word=$2 | |
23305 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23307 if test "${ac_cv_prog_NASM+set}" = set; then | |
23308 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23309 else | |
23310 if test -n "$NASM"; then | |
23311 ac_cv_prog_NASM="$NASM" # Let the user override the test. | |
23312 else | |
23313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23314 for as_dir in $PATH | |
23315 do | |
23316 IFS=$as_save_IFS | |
23317 test -z "$as_dir" && as_dir=. | |
23318 for ac_exec_ext in '' $ac_executable_extensions; do | |
23319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23320 ac_cv_prog_NASM="$ac_prog" | |
23321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23322 break 2 | |
23323 fi | |
23324 done | |
23325 done | |
23326 | |
23327 fi | |
23328 fi | |
23329 NASM=$ac_cv_prog_NASM | |
23330 if test -n "$NASM"; then | |
23331 echo "$as_me:$LINENO: result: $NASM" >&5 | |
23332 echo "${ECHO_T}$NASM" >&6 | |
23333 else | |
23334 echo "$as_me:$LINENO: result: no" >&5 | |
23335 echo "${ECHO_T}no" >&6 | |
23336 fi | |
23337 | |
23338 test -n "$NASM" && break | |
23339 done | |
23340 | |
23341 | |
23342 | |
23343 if test -n "$NASM"; then | |
23344 FLaC__HAS_NASM_TRUE= | |
23345 FLaC__HAS_NASM_FALSE='#' | |
23346 else | |
23347 FLaC__HAS_NASM_TRUE='#' | |
23348 FLaC__HAS_NASM_FALSE= | |
23349 fi | |
23350 | |
23351 if test -n "$NASM" ; then | |
23352 cat >>confdefs.h <<\_ACEOF | |
23353 #define FLAC__HAS_NASM 1 | |
23354 _ACEOF | |
23355 | |
23356 | |
23357 | |
23358 fi | |
23359 | |
23360 # only matters for PowerPC | |
23361 for ac_prog in as | |
23362 do | |
23363 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
23364 set dummy $ac_prog; ac_word=$2 | |
23365 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23367 if test "${ac_cv_prog_AS+set}" = set; then | |
23368 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23369 else | |
23370 if test -n "$AS"; then | |
23371 ac_cv_prog_AS="$AS" # Let the user override the test. | |
23372 else | |
23373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23374 for as_dir in $PATH | |
23375 do | |
23376 IFS=$as_save_IFS | |
23377 test -z "$as_dir" && as_dir=. | |
23378 for ac_exec_ext in '' $ac_executable_extensions; do | |
23379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23380 ac_cv_prog_AS="$ac_prog" | |
23381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23382 break 2 | |
23383 fi | |
23384 done | |
23385 done | |
23386 | |
23387 fi | |
23388 fi | |
23389 AS=$ac_cv_prog_AS | |
23390 if test -n "$AS"; then | |
23391 echo "$as_me:$LINENO: result: $AS" >&5 | |
23392 echo "${ECHO_T}$AS" >&6 | |
23393 else | |
23394 echo "$as_me:$LINENO: result: no" >&5 | |
23395 echo "${ECHO_T}no" >&6 | |
23396 fi | |
23397 | |
23398 test -n "$AS" && break | |
23399 done | |
23400 test -n "$AS" || AS="as" | |
23401 | |
23402 for ac_prog in gas | |
23403 do | |
23404 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
23405 set dummy $ac_prog; ac_word=$2 | |
23406 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23408 if test "${ac_cv_prog_GAS+set}" = set; then | |
23409 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23410 else | |
23411 if test -n "$GAS"; then | |
23412 ac_cv_prog_GAS="$GAS" # Let the user override the test. | |
23413 else | |
23414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23415 for as_dir in $PATH | |
23416 do | |
23417 IFS=$as_save_IFS | |
23418 test -z "$as_dir" && as_dir=. | |
23419 for ac_exec_ext in '' $ac_executable_extensions; do | |
23420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23421 ac_cv_prog_GAS="$ac_prog" | |
23422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23423 break 2 | |
23424 fi | |
23425 done | |
23426 done | |
23427 | |
23428 fi | |
23429 fi | |
23430 GAS=$ac_cv_prog_GAS | |
23431 if test -n "$GAS"; then | |
23432 echo "$as_me:$LINENO: result: $GAS" >&5 | |
23433 echo "${ECHO_T}$GAS" >&6 | |
23434 else | |
23435 echo "$as_me:$LINENO: result: no" >&5 | |
23436 echo "${ECHO_T}no" >&6 | |
23437 fi | |
23438 | |
23439 test -n "$GAS" && break | |
23440 done | |
23441 test -n "$GAS" || GAS="gas" | |
23442 | |
23443 | |
23444 # try -v (apple as) and --version (gas) at the same time | |
23445 test "$AS" = "as" && as --version -v < /dev/null 2>&1 | grep Apple >/dev/null || AS=gas | |
23446 | |
23447 | |
23448 | |
23449 if test "$AS" = "as"; then | |
23450 FLaC__HAS_AS_TRUE= | |
23451 FLaC__HAS_AS_FALSE='#' | |
23452 else | |
23453 FLaC__HAS_AS_TRUE='#' | |
23454 FLaC__HAS_AS_FALSE= | |
23455 fi | |
23456 | |
23457 | |
23458 | |
23459 if test "$AS" = "gas"; then | |
23460 FLaC__HAS_GAS_TRUE= | |
23461 FLaC__HAS_GAS_FALSE='#' | |
23462 else | |
23463 FLaC__HAS_GAS_TRUE='#' | |
23464 FLaC__HAS_GAS_FALSE= | |
23465 fi | |
23466 | |
23467 if test "$AS" = "as" ; then | |
23468 cat >>confdefs.h <<\_ACEOF | |
23469 #define FLAC__HAS_AS 1 | |
23470 _ACEOF | |
23471 | |
23472 | |
23473 | |
23474 fi | |
23475 if test "$AS" = "gas" ; then | |
23476 # funniest. macro. ever. | |
23477 cat >>confdefs.h <<\_ACEOF | |
23478 #define FLAC__HAS_GAS 1 | |
23479 _ACEOF | |
23480 | |
23481 | |
23482 | |
23483 fi | |
23484 | |
23485 CPPFLAGS='-I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include'" $CPPFLAGS" | |
23486 if test "x$debug" = xtrue; then | |
23487 CPPFLAGS="-DDEBUG $CPPFLAGS" | |
23488 CFLAGS="-g $CFLAGS" | |
23489 else | |
23490 CPPFLAGS="-DNDEBUG $CPPFLAGS" | |
23491 if test "x$GCC" = xyes; then | |
23492 CPPFLAGS="-DFLaC__INLINE=__inline__ $CPPFLAGS" | |
23493 CFLAGS="-O3 -funroll-loops -finline-functions -Wall -W -Winline $CFLAGS" | |
23494 fi | |
23495 fi | |
23496 | |
23497 #@@@ | |
23498 | |
23499 | |
23500 if test "yes" = "no"; then | |
23501 FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE= | |
23502 FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE='#' | |
23503 else | |
23504 FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE='#' | |
23505 FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE= | |
23506 fi | |
23507 | |
23508 | |
23509 | |
23510 if test "yes" = "no"; then | |
23511 FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE= | |
23512 FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE='#' | |
23513 else | |
23514 FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE='#' | |
23515 FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE= | |
23516 fi | |
23517 | |
23518 | |
23519 ac_config_files="$ac_config_files Makefile src/Makefile src/libFLAC/Makefile src/libFLAC/flac.pc src/libFLAC/ia32/Makefile src/libFLAC/ppc/Makefile src/libFLAC/ppc/as/Makefile src/libFLAC/ppc/gas/Makefile src/libFLAC/include/Makefile src/libFLAC/include/private/Makefile src/libFLAC/include/protected/Makefile src/libFLAC++/Makefile src/libFLAC++/flac++.pc src/flac/Makefile src/metaflac/Makefile src/monkeys_audio_utilities/Makefile src/monkeys_audio_utilities/flac_mac/Makefile src/monkeys_audio_utilities/flac_ren/Makefile src/plugin_common/Makefile src/plugin_winamp2/Makefile src/plugin_winamp2/include/Makefile src/plugin_winamp2/include/winamp2/Makefile src/plugin_xmms/Makefile src/share/Makefile src/share/getopt/Makefile src/share/grabbag/Makefile src/share/replaygain_analysis/Makefile src/share/replaygain_synthesis/Makefile src/share/replaygain_synthesis/include/Makefile src/share/replaygain_synthesis/include/private/Makefile src/share/utf8/Makefile src/test_grabbag/Makefile src/test_grabbag/cuesheet/Makefile src/test_grabbag/picture/Makefile src/test_libs_common/Makefile src/test_libFLAC/Makefile src/test_libFLAC++/Makefile src/test_seeking/Makefile src/test_streams/Makefile examples/Makefile examples/c/Makefile examples/c/decode/Makefile examples/c/decode/file/Makefile examples/c/encode/Makefile examples/c/encode/file/Makefile examples/cpp/Makefile examples/cpp/decode/Makefile examples/cpp/decode/file/Makefile examples/cpp/encode/Makefile examples/cpp/encode/file/Makefile include/Makefile include/FLAC/Makefile include/FLAC++/Makefile include/share/Makefile include/share/grabbag/Makefile include/test_libs_common/Makefile doc/Makefile doc/html/Makefile doc/html/images/Makefile doc/html/images/hw/Makefile doc/html/ru/Makefile m4/Makefile man/Makefile test/Makefile test/cuesheets/Makefile test/flac-to-flac-metadata-test-files/Makefile test/metaflac-test-files/Makefile test/pictures/Makefile build/Makefile obj/Makefile obj/debug/Makefile obj/debug/bin/Makefile obj/debug/lib/Makefile obj/release/Makefile obj/release/bin/Makefile obj/release/lib/Makefile" | |
23520 | |
23521 cat >confcache <<\_ACEOF | |
23522 # This file is a shell script that caches the results of configure | |
23523 # tests run on this system so they can be shared between configure | |
23524 # scripts and configure runs, see configure's option --config-cache. | |
23525 # It is not useful on other systems. If it contains results you don't | |
23526 # want to keep, you may remove or edit it. | |
23527 # | |
23528 # config.status only pays attention to the cache file if you give it | |
23529 # the --recheck option to rerun configure. | |
23530 # | |
23531 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23532 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23533 # following values. | |
23534 | |
23535 _ACEOF | |
23536 | |
23537 # The following way of writing the cache mishandles newlines in values, | |
23538 # but we know of no workaround that is simple, portable, and efficient. | |
23539 # So, don't put newlines in cache variables' values. | |
23540 # Ultrix sh set writes to stderr and can't be redirected directly, | |
23541 # and sets the high bit in the cache file unless we assign to the vars. | |
23542 { | |
23543 (set) 2>&1 | | |
23544 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
23545 *ac_space=\ *) | |
23546 # `set' does not quote correctly, so add quotes (double-quote | |
23547 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23548 sed -n \ | |
23549 "s/'/'\\\\''/g; | |
23550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
23551 ;; | |
23552 *) | |
23553 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23554 sed -n \ | |
23555 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
23556 ;; | |
23557 esac; | |
23558 } | | |
23559 sed ' | |
23560 t clear | |
23561 : clear | |
23562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23563 t end | |
23564 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23565 : end' >>confcache | |
23566 if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
23567 if test -w $cache_file; then | |
23568 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
23569 cat confcache >$cache_file | |
23570 else | |
23571 echo "not updating unwritable cache $cache_file" | |
23572 fi | |
23573 fi | |
23574 rm -f confcache | |
23575 | |
23576 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
23577 # Let make expand exec_prefix. | |
23578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23579 | |
23580 # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
23581 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
23582 # trailing colons and then remove the whole line if VPATH becomes empty | |
23583 # (actually we leave an empty line to preserve line numbers). | |
23584 if test "x$srcdir" = x.; then | |
23585 ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
23586 s/:*\$(srcdir):*/:/; | |
23587 s/:*\${srcdir}:*/:/; | |
23588 s/:*@srcdir@:*/:/; | |
23589 s/^\([^=]*=[ ]*\):*/\1/; | |
23590 s/:*$//; | |
23591 s/^[^=]*=[ ]*$//; | |
23592 }' | |
23593 fi | |
23594 | |
23595 DEFS=-DHAVE_CONFIG_H | |
23596 | |
23597 ac_libobjs= | |
23598 ac_ltlibobjs= | |
23599 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
23600 # 1. Remove the extension, and $U if already installed. | |
23601 ac_i=`echo "$ac_i" | | |
23602 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
23603 # 2. Add them. | |
23604 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
23605 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
23606 done | |
23607 LIBOBJS=$ac_libobjs | |
23608 | |
23609 LTLIBOBJS=$ac_ltlibobjs | |
23610 | |
23611 | |
23612 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
23613 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23614 Usually this means the macro was only invoked conditionally." >&5 | |
23615 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23616 Usually this means the macro was only invoked conditionally." >&2;} | |
23617 { (exit 1); exit 1; }; } | |
23618 fi | |
23619 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
23620 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
23621 Usually this means the macro was only invoked conditionally." >&5 | |
23622 echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
23623 Usually this means the macro was only invoked conditionally." >&2;} | |
23624 { (exit 1); exit 1; }; } | |
23625 fi | |
23626 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
23627 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
23628 Usually this means the macro was only invoked conditionally." >&5 | |
23629 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
23630 Usually this means the macro was only invoked conditionally." >&2;} | |
23631 { (exit 1); exit 1; }; } | |
23632 fi | |
23633 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
23634 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
23635 Usually this means the macro was only invoked conditionally." >&5 | |
23636 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
23637 Usually this means the macro was only invoked conditionally." >&2;} | |
23638 { (exit 1); exit 1; }; } | |
23639 fi | |
23640 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
23641 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
23642 Usually this means the macro was only invoked conditionally." >&5 | |
23643 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
23644 Usually this means the macro was only invoked conditionally." >&2;} | |
23645 { (exit 1); exit 1; }; } | |
23646 fi | |
23647 if test -z "${FLaC__CPU_IA32_TRUE}" && test -z "${FLaC__CPU_IA32_FALSE}"; then | |
23648 { { echo "$as_me:$LINENO: error: conditional \"FLaC__CPU_IA32\" was never defined. | |
23649 Usually this means the macro was only invoked conditionally." >&5 | |
23650 echo "$as_me: error: conditional \"FLaC__CPU_IA32\" was never defined. | |
23651 Usually this means the macro was only invoked conditionally." >&2;} | |
23652 { (exit 1); exit 1; }; } | |
23653 fi | |
23654 if test -z "${FLaC__CPU_PPC_TRUE}" && test -z "${FLaC__CPU_PPC_FALSE}"; then | |
23655 { { echo "$as_me:$LINENO: error: conditional \"FLaC__CPU_PPC\" was never defined. | |
23656 Usually this means the macro was only invoked conditionally." >&5 | |
23657 echo "$as_me: error: conditional \"FLaC__CPU_PPC\" was never defined. | |
23658 Usually this means the macro was only invoked conditionally." >&2;} | |
23659 { (exit 1); exit 1; }; } | |
23660 fi | |
23661 if test -z "${FLaC__CPU_SPARC_TRUE}" && test -z "${FLaC__CPU_SPARC_FALSE}"; then | |
23662 { { echo "$as_me:$LINENO: error: conditional \"FLaC__CPU_SPARC\" was never defined. | |
23663 Usually this means the macro was only invoked conditionally." >&5 | |
23664 echo "$as_me: error: conditional \"FLaC__CPU_SPARC\" was never defined. | |
23665 Usually this means the macro was only invoked conditionally." >&2;} | |
23666 { (exit 1); exit 1; }; } | |
23667 fi | |
23668 if test -z "${FLaC__SYS_DARWIN_TRUE}" && test -z "${FLaC__SYS_DARWIN_FALSE}"; then | |
23669 { { echo "$as_me:$LINENO: error: conditional \"FLaC__SYS_DARWIN\" was never defined. | |
23670 Usually this means the macro was only invoked conditionally." >&5 | |
23671 echo "$as_me: error: conditional \"FLaC__SYS_DARWIN\" was never defined. | |
23672 Usually this means the macro was only invoked conditionally." >&2;} | |
23673 { (exit 1); exit 1; }; } | |
23674 fi | |
23675 if test -z "${FLaC__SYS_LINUX_TRUE}" && test -z "${FLaC__SYS_LINUX_FALSE}"; then | |
23676 { { echo "$as_me:$LINENO: error: conditional \"FLaC__SYS_LINUX\" was never defined. | |
23677 Usually this means the macro was only invoked conditionally." >&5 | |
23678 echo "$as_me: error: conditional \"FLaC__SYS_LINUX\" was never defined. | |
23679 Usually this means the macro was only invoked conditionally." >&2;} | |
23680 { (exit 1); exit 1; }; } | |
23681 fi | |
23682 if test -z "${FLaC__NO_ASM_TRUE}" && test -z "${FLaC__NO_ASM_FALSE}"; then | |
23683 { { echo "$as_me:$LINENO: error: conditional \"FLaC__NO_ASM\" was never defined. | |
23684 Usually this means the macro was only invoked conditionally." >&5 | |
23685 echo "$as_me: error: conditional \"FLaC__NO_ASM\" was never defined. | |
23686 Usually this means the macro was only invoked conditionally." >&2;} | |
23687 { (exit 1); exit 1; }; } | |
23688 fi | |
23689 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then | |
23690 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined. | |
23691 Usually this means the macro was only invoked conditionally." >&5 | |
23692 echo "$as_me: error: conditional \"DEBUG\" was never defined. | |
23693 Usually this means the macro was only invoked conditionally." >&2;} | |
23694 { (exit 1); exit 1; }; } | |
23695 fi | |
23696 if test -z "${FLaC__SSE_OS_TRUE}" && test -z "${FLaC__SSE_OS_FALSE}"; then | |
23697 { { echo "$as_me:$LINENO: error: conditional \"FLaC__SSE_OS\" was never defined. | |
23698 Usually this means the macro was only invoked conditionally." >&5 | |
23699 echo "$as_me: error: conditional \"FLaC__SSE_OS\" was never defined. | |
23700 Usually this means the macro was only invoked conditionally." >&2;} | |
23701 { (exit 1); exit 1; }; } | |
23702 fi | |
23703 if test -z "${FLaC__USE_3DNOW_TRUE}" && test -z "${FLaC__USE_3DNOW_FALSE}"; then | |
23704 { { echo "$as_me:$LINENO: error: conditional \"FLaC__USE_3DNOW\" was never defined. | |
23705 Usually this means the macro was only invoked conditionally." >&5 | |
23706 echo "$as_me: error: conditional \"FLaC__USE_3DNOW\" was never defined. | |
23707 Usually this means the macro was only invoked conditionally." >&2;} | |
23708 { (exit 1); exit 1; }; } | |
23709 fi | |
23710 if test -z "${FLaC__USE_ALTIVEC_TRUE}" && test -z "${FLaC__USE_ALTIVEC_FALSE}"; then | |
23711 { { echo "$as_me:$LINENO: error: conditional \"FLaC__USE_ALTIVEC\" was never defined. | |
23712 Usually this means the macro was only invoked conditionally." >&5 | |
23713 echo "$as_me: error: conditional \"FLaC__USE_ALTIVEC\" was never defined. | |
23714 Usually this means the macro was only invoked conditionally." >&2;} | |
23715 { (exit 1); exit 1; }; } | |
23716 fi | |
23717 if test -z "${FLaC__HAS_DOXYGEN_TRUE}" && test -z "${FLaC__HAS_DOXYGEN_FALSE}"; then | |
23718 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_DOXYGEN\" was never defined. | |
23719 Usually this means the macro was only invoked conditionally." >&5 | |
23720 echo "$as_me: error: conditional \"FLaC__HAS_DOXYGEN\" was never defined. | |
23721 Usually this means the macro was only invoked conditionally." >&2;} | |
23722 { (exit 1); exit 1; }; } | |
23723 fi | |
23724 if test -z "${FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE}" && test -z "${FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE}"; then | |
23725 { { echo "$as_me:$LINENO: error: conditional \"FLaC__INSTALL_XMMS_PLUGIN_LOCALLY\" was never defined. | |
23726 Usually this means the macro was only invoked conditionally." >&5 | |
23727 echo "$as_me: error: conditional \"FLaC__INSTALL_XMMS_PLUGIN_LOCALLY\" was never defined. | |
23728 Usually this means the macro was only invoked conditionally." >&2;} | |
23729 { (exit 1); exit 1; }; } | |
23730 fi | |
23731 if test -z "${FLaC__HAS_XMMS_TRUE}" && test -z "${FLaC__HAS_XMMS_FALSE}"; then | |
23732 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_XMMS\" was never defined. | |
23733 Usually this means the macro was only invoked conditionally." >&5 | |
23734 echo "$as_me: error: conditional \"FLaC__HAS_XMMS\" was never defined. | |
23735 Usually this means the macro was only invoked conditionally." >&2;} | |
23736 { (exit 1); exit 1; }; } | |
23737 fi | |
23738 if test -z "${FLaC__WITH_CPPLIBS_TRUE}" && test -z "${FLaC__WITH_CPPLIBS_FALSE}"; then | |
23739 { { echo "$as_me:$LINENO: error: conditional \"FLaC__WITH_CPPLIBS\" was never defined. | |
23740 Usually this means the macro was only invoked conditionally." >&5 | |
23741 echo "$as_me: error: conditional \"FLaC__WITH_CPPLIBS\" was never defined. | |
23742 Usually this means the macro was only invoked conditionally." >&2;} | |
23743 { (exit 1); exit 1; }; } | |
23744 fi | |
23745 if test -z "${FLaC__HAS_OGG_TRUE}" && test -z "${FLaC__HAS_OGG_FALSE}"; then | |
23746 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_OGG\" was never defined. | |
23747 Usually this means the macro was only invoked conditionally." >&5 | |
23748 echo "$as_me: error: conditional \"FLaC__HAS_OGG\" was never defined. | |
23749 Usually this means the macro was only invoked conditionally." >&2;} | |
23750 { (exit 1); exit 1; }; } | |
23751 fi | |
23752 if test -z "${FLaC__HAS_DOCBOOK_TO_MAN_TRUE}" && test -z "${FLaC__HAS_DOCBOOK_TO_MAN_FALSE}"; then | |
23753 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_DOCBOOK_TO_MAN\" was never defined. | |
23754 Usually this means the macro was only invoked conditionally." >&5 | |
23755 echo "$as_me: error: conditional \"FLaC__HAS_DOCBOOK_TO_MAN\" was never defined. | |
23756 Usually this means the macro was only invoked conditionally." >&2;} | |
23757 { (exit 1); exit 1; }; } | |
23758 fi | |
23759 if test -z "${FLaC__HAS_NASM_TRUE}" && test -z "${FLaC__HAS_NASM_FALSE}"; then | |
23760 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_NASM\" was never defined. | |
23761 Usually this means the macro was only invoked conditionally." >&5 | |
23762 echo "$as_me: error: conditional \"FLaC__HAS_NASM\" was never defined. | |
23763 Usually this means the macro was only invoked conditionally." >&2;} | |
23764 { (exit 1); exit 1; }; } | |
23765 fi | |
23766 if test -z "${FLaC__HAS_AS_TRUE}" && test -z "${FLaC__HAS_AS_FALSE}"; then | |
23767 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_AS\" was never defined. | |
23768 Usually this means the macro was only invoked conditionally." >&5 | |
23769 echo "$as_me: error: conditional \"FLaC__HAS_AS\" was never defined. | |
23770 Usually this means the macro was only invoked conditionally." >&2;} | |
23771 { (exit 1); exit 1; }; } | |
23772 fi | |
23773 if test -z "${FLaC__HAS_GAS_TRUE}" && test -z "${FLaC__HAS_GAS_FALSE}"; then | |
23774 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_GAS\" was never defined. | |
23775 Usually this means the macro was only invoked conditionally." >&5 | |
23776 echo "$as_me: error: conditional \"FLaC__HAS_GAS\" was never defined. | |
23777 Usually this means the macro was only invoked conditionally." >&2;} | |
23778 { (exit 1); exit 1; }; } | |
23779 fi | |
23780 if test -z "${FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE}" && test -z "${FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE}"; then | |
23781 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_AS__TEMPORARILY_DISABLED\" was never defined. | |
23782 Usually this means the macro was only invoked conditionally." >&5 | |
23783 echo "$as_me: error: conditional \"FLaC__HAS_AS__TEMPORARILY_DISABLED\" was never defined. | |
23784 Usually this means the macro was only invoked conditionally." >&2;} | |
23785 { (exit 1); exit 1; }; } | |
23786 fi | |
23787 if test -z "${FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE}" && test -z "${FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE}"; then | |
23788 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_GAS__TEMPORARILY_DISABLED\" was never defined. | |
23789 Usually this means the macro was only invoked conditionally." >&5 | |
23790 echo "$as_me: error: conditional \"FLaC__HAS_GAS__TEMPORARILY_DISABLED\" was never defined. | |
23791 Usually this means the macro was only invoked conditionally." >&2;} | |
23792 { (exit 1); exit 1; }; } | |
23793 fi | |
23794 | |
23795 : ${CONFIG_STATUS=./config.status} | |
23796 ac_clean_files_save=$ac_clean_files | |
23797 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
23798 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
23799 echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
23800 cat >$CONFIG_STATUS <<_ACEOF | |
23801 #! $SHELL | |
23802 # Generated by $as_me. | |
23803 # Run this file to recreate the current configuration. | |
23804 # Compiler output produced by configure, useful for debugging | |
23805 # configure, is in config.log if it exists. | |
23806 | |
23807 debug=false | |
23808 ac_cs_recheck=false | |
23809 ac_cs_silent=false | |
23810 SHELL=\${CONFIG_SHELL-$SHELL} | |
23811 _ACEOF | |
23812 | |
23813 cat >>$CONFIG_STATUS <<\_ACEOF | |
23814 ## --------------------- ## | |
23815 ## M4sh Initialization. ## | |
23816 ## --------------------- ## | |
23817 | |
23818 # Be Bourne compatible | |
23819 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23820 emulate sh | |
23821 NULLCMD=: | |
23822 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
23823 # is contrary to our usage. Disable this feature. | |
23824 alias -g '${1+"$@"}'='"$@"' | |
23825 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23826 set -o posix | |
23827 fi | |
23828 DUALCASE=1; export DUALCASE # for MKS sh | |
23829 | |
23830 # Support unset when possible. | |
23831 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
23832 as_unset=unset | |
23833 else | |
23834 as_unset=false | |
23835 fi | |
23836 | |
23837 | |
23838 # Work around bugs in pre-3.0 UWIN ksh. | |
23839 $as_unset ENV MAIL MAILPATH | |
23840 PS1='$ ' | |
23841 PS2='> ' | |
23842 PS4='+ ' | |
23843 | |
23844 # NLS nuisances. | |
23845 for as_var in \ | |
23846 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
23847 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
23848 LC_TELEPHONE LC_TIME | |
23849 do | |
23850 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
23851 eval $as_var=C; export $as_var | |
23852 else | |
23853 $as_unset $as_var | |
23854 fi | |
23855 done | |
23856 | |
23857 # Required to use basename. | |
23858 if expr a : '\(a\)' >/dev/null 2>&1; then | |
23859 as_expr=expr | |
23860 else | |
23861 as_expr=false | |
23862 fi | |
23863 | |
23864 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
23865 as_basename=basename | |
23866 else | |
23867 as_basename=false | |
23868 fi | |
23869 | |
23870 | |
23871 # Name of the executable. | |
23872 as_me=`$as_basename "$0" || | |
23873 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
23874 X"$0" : 'X\(//\)$' \| \ | |
23875 X"$0" : 'X\(/\)$' \| \ | |
23876 . : '\(.\)' 2>/dev/null || | |
23877 echo X/"$0" | | |
23878 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
23879 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
23880 /^X\/\(\/\).*/{ s//\1/; q; } | |
23881 s/.*/./; q'` | |
23882 | |
23883 | |
23884 # PATH needs CR, and LINENO needs CR and PATH. | |
23885 # Avoid depending upon Character Ranges. | |
23886 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
23887 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
23888 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
23889 as_cr_digits='0123456789' | |
23890 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
23891 | |
23892 # The user is always right. | |
23893 if test "${PATH_SEPARATOR+set}" != set; then | |
23894 echo "#! /bin/sh" >conf$$.sh | |
23895 echo "exit 0" >>conf$$.sh | |
23896 chmod +x conf$$.sh | |
23897 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
23898 PATH_SEPARATOR=';' | |
23899 else | |
23900 PATH_SEPARATOR=: | |
23901 fi | |
23902 rm -f conf$$.sh | |
23903 fi | |
23904 | |
23905 | |
23906 as_lineno_1=$LINENO | |
23907 as_lineno_2=$LINENO | |
23908 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
23909 test "x$as_lineno_1" != "x$as_lineno_2" && | |
23910 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
23911 # Find who we are. Look in the path if we contain no path at all | |
23912 # relative or not. | |
23913 case $0 in | |
23914 *[\\/]* ) as_myself=$0 ;; | |
23915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23916 for as_dir in $PATH | |
23917 do | |
23918 IFS=$as_save_IFS | |
23919 test -z "$as_dir" && as_dir=. | |
23920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
23921 done | |
23922 | |
23923 ;; | |
23924 esac | |
23925 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
23926 # in which case we are not to be found in the path. | |
23927 if test "x$as_myself" = x; then | |
23928 as_myself=$0 | |
23929 fi | |
23930 if test ! -f "$as_myself"; then | |
23931 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
23932 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
23933 { (exit 1); exit 1; }; } | |
23934 fi | |
23935 case $CONFIG_SHELL in | |
23936 '') | |
23937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23938 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
23939 do | |
23940 IFS=$as_save_IFS | |
23941 test -z "$as_dir" && as_dir=. | |
23942 for as_base in sh bash ksh sh5; do | |
23943 case $as_dir in | |
23944 /*) | |
23945 if ("$as_dir/$as_base" -c ' | |
23946 as_lineno_1=$LINENO | |
23947 as_lineno_2=$LINENO | |
23948 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
23949 test "x$as_lineno_1" != "x$as_lineno_2" && | |
23950 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
23951 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
23952 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
23953 CONFIG_SHELL=$as_dir/$as_base | |
23954 export CONFIG_SHELL | |
23955 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
23956 fi;; | |
23957 esac | |
23958 done | |
23959 done | |
23960 ;; | |
23961 esac | |
23962 | |
23963 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
23964 # uniformly replaced by the line number. The first 'sed' inserts a | |
23965 # line-number line before each line; the second 'sed' does the real | |
23966 # work. The second script uses 'N' to pair each line-number line | |
23967 # with the numbered line, and appends trailing '-' during | |
23968 # substitution so that $LINENO is not a special case at line end. | |
23969 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
23970 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
23971 sed '=' <$as_myself | | |
23972 sed ' | |
23973 N | |
23974 s,$,-, | |
23975 : loop | |
23976 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
23977 t loop | |
23978 s,-$,, | |
23979 s,^['$as_cr_digits']*\n,, | |
23980 ' >$as_me.lineno && | |
23981 chmod +x $as_me.lineno || | |
23982 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
23983 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
23984 { (exit 1); exit 1; }; } | |
23985 | |
23986 # Don't try to exec as it changes $[0], causing all sort of problems | |
23987 # (the dirname of $[0] is not the place where we might find the | |
23988 # original and so on. Autoconf is especially sensible to this). | |
23989 . ./$as_me.lineno | |
23990 # Exit status is that of the last command. | |
23991 exit | |
23992 } | |
23993 | |
23994 | |
23995 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
23996 *c*,-n*) ECHO_N= ECHO_C=' | |
23997 ' ECHO_T=' ' ;; | |
23998 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
23999 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
24000 esac | |
24001 | |
24002 if expr a : '\(a\)' >/dev/null 2>&1; then | |
24003 as_expr=expr | |
24004 else | |
24005 as_expr=false | |
24006 fi | |
24007 | |
24008 rm -f conf$$ conf$$.exe conf$$.file | |
24009 echo >conf$$.file | |
24010 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
24011 # We could just check for DJGPP; but this test a) works b) is more generic | |
24012 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
24013 if test -f conf$$.exe; then | |
24014 # Don't use ln at all; we don't have any links | |
24015 as_ln_s='cp -p' | |
24016 else | |
24017 as_ln_s='ln -s' | |
24018 fi | |
24019 elif ln conf$$.file conf$$ 2>/dev/null; then | |
24020 as_ln_s=ln | |
24021 else | |
24022 as_ln_s='cp -p' | |
24023 fi | |
24024 rm -f conf$$ conf$$.exe conf$$.file | |
24025 | |
24026 if mkdir -p . 2>/dev/null; then | |
24027 as_mkdir_p=: | |
24028 else | |
24029 test -d ./-p && rmdir ./-p | |
24030 as_mkdir_p=false | |
24031 fi | |
24032 | |
24033 as_executable_p="test -f" | |
24034 | |
24035 # Sed expression to map a string onto a valid CPP name. | |
24036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
24037 | |
24038 # Sed expression to map a string onto a valid variable name. | |
24039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
24040 | |
24041 | |
24042 # IFS | |
24043 # We need space, tab and new line, in precisely that order. | |
24044 as_nl=' | |
24045 ' | |
24046 IFS=" $as_nl" | |
24047 | |
24048 # CDPATH. | |
24049 $as_unset CDPATH | |
24050 | |
24051 exec 6>&1 | |
24052 | |
24053 # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
24054 # report actual input values of CONFIG_FILES etc. instead of their | |
24055 # values after options handling. Logging --version etc. is OK. | |
24056 exec 5>>config.log | |
24057 { | |
24058 echo | |
24059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24060 ## Running $as_me. ## | |
24061 _ASBOX | |
24062 } >&5 | |
24063 cat >&5 <<_CSEOF | |
24064 | |
24065 This file was extended by $as_me, which was | |
24066 generated by GNU Autoconf 2.59. Invocation command line was | |
24067 | |
24068 CONFIG_FILES = $CONFIG_FILES | |
24069 CONFIG_HEADERS = $CONFIG_HEADERS | |
24070 CONFIG_LINKS = $CONFIG_LINKS | |
24071 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24072 $ $0 $@ | |
24073 | |
24074 _CSEOF | |
24075 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
24076 echo >&5 | |
24077 _ACEOF | |
24078 | |
24079 # Files that config.status was made for. | |
24080 if test -n "$ac_config_files"; then | |
24081 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
24082 fi | |
24083 | |
24084 if test -n "$ac_config_headers"; then | |
24085 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
24086 fi | |
24087 | |
24088 if test -n "$ac_config_links"; then | |
24089 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
24090 fi | |
24091 | |
24092 if test -n "$ac_config_commands"; then | |
24093 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
24094 fi | |
24095 | |
24096 cat >>$CONFIG_STATUS <<\_ACEOF | |
24097 | |
24098 ac_cs_usage="\ | |
24099 \`$as_me' instantiates files from templates according to the | |
24100 current configuration. | |
24101 | |
24102 Usage: $0 [OPTIONS] [FILE]... | |
24103 | |
24104 -h, --help print this help, then exit | |
24105 -V, --version print version number, then exit | |
24106 -q, --quiet do not print progress messages | |
24107 -d, --debug don't remove temporary files | |
24108 --recheck update $as_me by reconfiguring in the same conditions | |
24109 --file=FILE[:TEMPLATE] | |
24110 instantiate the configuration file FILE | |
24111 --header=FILE[:TEMPLATE] | |
24112 instantiate the configuration header FILE | |
24113 | |
24114 Configuration files: | |
24115 $config_files | |
24116 | |
24117 Configuration headers: | |
24118 $config_headers | |
24119 | |
24120 Configuration commands: | |
24121 $config_commands | |
24122 | |
24123 Report bugs to <bug-autoconf@gnu.org>." | |
24124 _ACEOF | |
24125 | |
24126 cat >>$CONFIG_STATUS <<_ACEOF | |
24127 ac_cs_version="\\ | |
24128 config.status | |
24129 configured by $0, generated by GNU Autoconf 2.59, | |
24130 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
24131 | |
24132 Copyright (C) 2003 Free Software Foundation, Inc. | |
24133 This config.status script is free software; the Free Software Foundation | |
24134 gives unlimited permission to copy, distribute and modify it." | |
24135 srcdir=$srcdir | |
24136 INSTALL="$INSTALL" | |
24137 _ACEOF | |
24138 | |
24139 cat >>$CONFIG_STATUS <<\_ACEOF | |
24140 # If no file are specified by the user, then we need to provide default | |
24141 # value. By we need to know if files were specified by the user. | |
24142 ac_need_defaults=: | |
24143 while test $# != 0 | |
24144 do | |
24145 case $1 in | |
24146 --*=*) | |
24147 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
24148 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
24149 ac_shift=: | |
24150 ;; | |
24151 -*) | |
24152 ac_option=$1 | |
24153 ac_optarg=$2 | |
24154 ac_shift=shift | |
24155 ;; | |
24156 *) # This is not an option, so the user has probably given explicit | |
24157 # arguments. | |
24158 ac_option=$1 | |
24159 ac_need_defaults=false;; | |
24160 esac | |
24161 | |
24162 case $ac_option in | |
24163 # Handling of the options. | |
24164 _ACEOF | |
24165 cat >>$CONFIG_STATUS <<\_ACEOF | |
24166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
24167 ac_cs_recheck=: ;; | |
24168 --version | --vers* | -V ) | |
24169 echo "$ac_cs_version"; exit 0 ;; | |
24170 --he | --h) | |
24171 # Conflict between --help and --header | |
24172 { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
24173 Try \`$0 --help' for more information." >&5 | |
24174 echo "$as_me: error: ambiguous option: $1 | |
24175 Try \`$0 --help' for more information." >&2;} | |
24176 { (exit 1); exit 1; }; };; | |
24177 --help | --hel | -h ) | |
24178 echo "$ac_cs_usage"; exit 0 ;; | |
24179 --debug | --d* | -d ) | |
24180 debug=: ;; | |
24181 --file | --fil | --fi | --f ) | |
24182 $ac_shift | |
24183 CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
24184 ac_need_defaults=false;; | |
24185 --header | --heade | --head | --hea ) | |
24186 $ac_shift | |
24187 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
24188 ac_need_defaults=false;; | |
24189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
24190 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24191 ac_cs_silent=: ;; | |
24192 | |
24193 # This is an error. | |
24194 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
24195 Try \`$0 --help' for more information." >&5 | |
24196 echo "$as_me: error: unrecognized option: $1 | |
24197 Try \`$0 --help' for more information." >&2;} | |
24198 { (exit 1); exit 1; }; } ;; | |
24199 | |
24200 *) ac_config_targets="$ac_config_targets $1" ;; | |
24201 | |
24202 esac | |
24203 shift | |
24204 done | |
24205 | |
24206 ac_configure_extra_args= | |
24207 | |
24208 if $ac_cs_silent; then | |
24209 exec 6>/dev/null | |
24210 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24211 fi | |
24212 | |
24213 _ACEOF | |
24214 cat >>$CONFIG_STATUS <<_ACEOF | |
24215 if \$ac_cs_recheck; then | |
24216 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
24217 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
24218 fi | |
24219 | |
24220 _ACEOF | |
24221 | |
24222 cat >>$CONFIG_STATUS <<_ACEOF | |
24223 # | |
24224 # INIT-COMMANDS section. | |
24225 # | |
24226 | |
24227 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
24228 | |
24229 _ACEOF | |
24230 | |
24231 | |
24232 | |
24233 cat >>$CONFIG_STATUS <<\_ACEOF | |
24234 for ac_config_target in $ac_config_targets | |
24235 do | |
24236 case "$ac_config_target" in | |
24237 # Handling of arguments. | |
24238 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
24239 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
24240 "src/libFLAC/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/Makefile" ;; | |
24241 "src/libFLAC/flac.pc" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/flac.pc" ;; | |
24242 "src/libFLAC/ia32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ia32/Makefile" ;; | |
24243 "src/libFLAC/ppc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ppc/Makefile" ;; | |
24244 "src/libFLAC/ppc/as/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ppc/as/Makefile" ;; | |
24245 "src/libFLAC/ppc/gas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ppc/gas/Makefile" ;; | |
24246 "src/libFLAC/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/Makefile" ;; | |
24247 "src/libFLAC/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/private/Makefile" ;; | |
24248 "src/libFLAC/include/protected/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/protected/Makefile" ;; | |
24249 "src/libFLAC++/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC++/Makefile" ;; | |
24250 "src/libFLAC++/flac++.pc" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC++/flac++.pc" ;; | |
24251 "src/flac/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/flac/Makefile" ;; | |
24252 "src/metaflac/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/metaflac/Makefile" ;; | |
24253 "src/monkeys_audio_utilities/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/monkeys_audio_utilities/Makefile" ;; | |
24254 "src/monkeys_audio_utilities/flac_mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/monkeys_audio_utilities/flac_mac/Makefile" ;; | |
24255 "src/monkeys_audio_utilities/flac_ren/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/monkeys_audio_utilities/flac_ren/Makefile" ;; | |
24256 "src/plugin_common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_common/Makefile" ;; | |
24257 "src/plugin_winamp2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_winamp2/Makefile" ;; | |
24258 "src/plugin_winamp2/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_winamp2/include/Makefile" ;; | |
24259 "src/plugin_winamp2/include/winamp2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_winamp2/include/winamp2/Makefile" ;; | |
24260 "src/plugin_xmms/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_xmms/Makefile" ;; | |
24261 "src/share/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/Makefile" ;; | |
24262 "src/share/getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/getopt/Makefile" ;; | |
24263 "src/share/grabbag/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/grabbag/Makefile" ;; | |
24264 "src/share/replaygain_analysis/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_analysis/Makefile" ;; | |
24265 "src/share/replaygain_synthesis/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_synthesis/Makefile" ;; | |
24266 "src/share/replaygain_synthesis/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_synthesis/include/Makefile" ;; | |
24267 "src/share/replaygain_synthesis/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_synthesis/include/private/Makefile" ;; | |
24268 "src/share/utf8/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/utf8/Makefile" ;; | |
24269 "src/test_grabbag/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_grabbag/Makefile" ;; | |
24270 "src/test_grabbag/cuesheet/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_grabbag/cuesheet/Makefile" ;; | |
24271 "src/test_grabbag/picture/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_grabbag/picture/Makefile" ;; | |
24272 "src/test_libs_common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_libs_common/Makefile" ;; | |
24273 "src/test_libFLAC/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_libFLAC/Makefile" ;; | |
24274 "src/test_libFLAC++/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_libFLAC++/Makefile" ;; | |
24275 "src/test_seeking/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_seeking/Makefile" ;; | |
24276 "src/test_streams/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_streams/Makefile" ;; | |
24277 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; | |
24278 "examples/c/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/Makefile" ;; | |
24279 "examples/c/decode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/decode/Makefile" ;; | |
24280 "examples/c/decode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/decode/file/Makefile" ;; | |
24281 "examples/c/encode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/encode/Makefile" ;; | |
24282 "examples/c/encode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/encode/file/Makefile" ;; | |
24283 "examples/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/Makefile" ;; | |
24284 "examples/cpp/decode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/Makefile" ;; | |
24285 "examples/cpp/decode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/file/Makefile" ;; | |
24286 "examples/cpp/encode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/Makefile" ;; | |
24287 "examples/cpp/encode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/file/Makefile" ;; | |
24288 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
24289 "include/FLAC/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/FLAC/Makefile" ;; | |
24290 "include/FLAC++/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/FLAC++/Makefile" ;; | |
24291 "include/share/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/share/Makefile" ;; | |
24292 "include/share/grabbag/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/share/grabbag/Makefile" ;; | |
24293 "include/test_libs_common/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/test_libs_common/Makefile" ;; | |
24294 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
24295 "doc/html/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;; | |
24296 "doc/html/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/images/Makefile" ;; | |
24297 "doc/html/images/hw/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/images/hw/Makefile" ;; | |
24298 "doc/html/ru/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/ru/Makefile" ;; | |
24299 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | |
24300 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
24301 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
24302 "test/cuesheets/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/cuesheets/Makefile" ;; | |
24303 "test/flac-to-flac-metadata-test-files/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/flac-to-flac-metadata-test-files/Makefile" ;; | |
24304 "test/metaflac-test-files/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/metaflac-test-files/Makefile" ;; | |
24305 "test/pictures/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/pictures/Makefile" ;; | |
24306 "build/Makefile" ) CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; | |
24307 "obj/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/Makefile" ;; | |
24308 "obj/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/debug/Makefile" ;; | |
24309 "obj/debug/bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/debug/bin/Makefile" ;; | |
24310 "obj/debug/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/debug/lib/Makefile" ;; | |
24311 "obj/release/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/release/Makefile" ;; | |
24312 "obj/release/bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/release/bin/Makefile" ;; | |
24313 "obj/release/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/release/lib/Makefile" ;; | |
24314 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
24315 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
24316 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
24317 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
24318 { (exit 1); exit 1; }; };; | |
24319 esac | |
24320 done | |
24321 | |
24322 # If the user did not use the arguments to specify the items to instantiate, | |
24323 # then the envvar interface is used. Set only those that are not. | |
24324 # We use the long form for the default assignment because of an extremely | |
24325 # bizarre bug on SunOS 4.1.3. | |
24326 if $ac_need_defaults; then | |
24327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
24328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
24329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
24330 fi | |
24331 | |
24332 # Have a temporary directory for convenience. Make it in the build tree | |
24333 # simply because there is no reason to put it here, and in addition, | |
24334 # creating and moving files from /tmp can sometimes cause problems. | |
24335 # Create a temporary directory, and hook for its removal unless debugging. | |
24336 $debug || | |
24337 { | |
24338 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
24339 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
24340 } | |
24341 | |
24342 # Create a (secure) tmp directory for tmp files. | |
24343 | |
24344 { | |
24345 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
24346 test -n "$tmp" && test -d "$tmp" | |
24347 } || | |
24348 { | |
24349 tmp=./confstat$$-$RANDOM | |
24350 (umask 077 && mkdir $tmp) | |
24351 } || | |
24352 { | |
24353 echo "$me: cannot create a temporary directory in ." >&2 | |
24354 { (exit 1); exit 1; } | |
24355 } | |
24356 | |
24357 _ACEOF | |
24358 | |
24359 cat >>$CONFIG_STATUS <<_ACEOF | |
24360 | |
24361 # | |
24362 # CONFIG_FILES section. | |
24363 # | |
24364 | |
24365 # No need to generate the scripts if there are no CONFIG_FILES. | |
24366 # This happens for instance when ./config.status config.h | |
24367 if test -n "\$CONFIG_FILES"; then | |
24368 # Protect against being on the right side of a sed subst in config.status. | |
24369 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
24370 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
24371 s,@SHELL@,$SHELL,;t t | |
24372 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
24373 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
24374 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
24375 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
24376 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
24377 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
24378 s,@exec_prefix@,$exec_prefix,;t t | |
24379 s,@prefix@,$prefix,;t t | |
24380 s,@program_transform_name@,$program_transform_name,;t t | |
24381 s,@bindir@,$bindir,;t t | |
24382 s,@sbindir@,$sbindir,;t t | |
24383 s,@libexecdir@,$libexecdir,;t t | |
24384 s,@datadir@,$datadir,;t t | |
24385 s,@sysconfdir@,$sysconfdir,;t t | |
24386 s,@sharedstatedir@,$sharedstatedir,;t t | |
24387 s,@localstatedir@,$localstatedir,;t t | |
24388 s,@libdir@,$libdir,;t t | |
24389 s,@includedir@,$includedir,;t t | |
24390 s,@oldincludedir@,$oldincludedir,;t t | |
24391 s,@infodir@,$infodir,;t t | |
24392 s,@mandir@,$mandir,;t t | |
24393 s,@build_alias@,$build_alias,;t t | |
24394 s,@host_alias@,$host_alias,;t t | |
24395 s,@target_alias@,$target_alias,;t t | |
24396 s,@DEFS@,$DEFS,;t t | |
24397 s,@ECHO_C@,$ECHO_C,;t t | |
24398 s,@ECHO_N@,$ECHO_N,;t t | |
24399 s,@ECHO_T@,$ECHO_T,;t t | |
24400 s,@LIBS@,$LIBS,;t t | |
24401 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
24402 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
24403 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
24404 s,@CYGPATH_W@,$CYGPATH_W,;t t | |
24405 s,@PACKAGE@,$PACKAGE,;t t | |
24406 s,@VERSION@,$VERSION,;t t | |
24407 s,@ACLOCAL@,$ACLOCAL,;t t | |
24408 s,@AUTOCONF@,$AUTOCONF,;t t | |
24409 s,@AUTOMAKE@,$AUTOMAKE,;t t | |
24410 s,@AUTOHEADER@,$AUTOHEADER,;t t | |
24411 s,@MAKEINFO@,$MAKEINFO,;t t | |
24412 s,@AMTAR@,$AMTAR,;t t | |
24413 s,@install_sh@,$install_sh,;t t | |
24414 s,@STRIP@,$STRIP,;t t | |
24415 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
24416 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
24417 s,@AWK@,$AWK,;t t | |
24418 s,@SET_MAKE@,$SET_MAKE,;t t | |
24419 s,@am__leading_dot@,$am__leading_dot,;t t | |
24420 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
24421 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
24422 s,@MAINT@,$MAINT,;t t | |
24423 s,@build@,$build,;t t | |
24424 s,@build_cpu@,$build_cpu,;t t | |
24425 s,@build_vendor@,$build_vendor,;t t | |
24426 s,@build_os@,$build_os,;t t | |
24427 s,@host@,$host,;t t | |
24428 s,@host_cpu@,$host_cpu,;t t | |
24429 s,@host_vendor@,$host_vendor,;t t | |
24430 s,@host_os@,$host_os,;t t | |
24431 s,@CC@,$CC,;t t | |
24432 s,@CFLAGS@,$CFLAGS,;t t | |
24433 s,@LDFLAGS@,$LDFLAGS,;t t | |
24434 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
24435 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
24436 s,@EXEEXT@,$EXEEXT,;t t | |
24437 s,@OBJEXT@,$OBJEXT,;t t | |
24438 s,@DEPDIR@,$DEPDIR,;t t | |
24439 s,@am__include@,$am__include,;t t | |
24440 s,@am__quote@,$am__quote,;t t | |
24441 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
24442 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
24443 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
24444 s,@CCDEPMODE@,$CCDEPMODE,;t t | |
24445 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
24446 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
24447 s,@EGREP@,$EGREP,;t t | |
24448 s,@LN_S@,$LN_S,;t t | |
24449 s,@ECHO@,$ECHO,;t t | |
24450 s,@AR@,$AR,;t t | |
24451 s,@ac_ct_AR@,$ac_ct_AR,;t t | |
24452 s,@RANLIB@,$RANLIB,;t t | |
24453 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
24454 s,@CPP@,$CPP,;t t | |
24455 s,@CXX@,$CXX,;t t | |
24456 s,@CXXFLAGS@,$CXXFLAGS,;t t | |
24457 s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
24458 s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
24459 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t | |
24460 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t | |
24461 s,@CXXCPP@,$CXXCPP,;t t | |
24462 s,@F77@,$F77,;t t | |
24463 s,@FFLAGS@,$FFLAGS,;t t | |
24464 s,@ac_ct_F77@,$ac_ct_F77,;t t | |
24465 s,@LIBTOOL@,$LIBTOOL,;t t | |
24466 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t | |
24467 s,@CCAS@,$CCAS,;t t | |
24468 s,@CCASFLAGS@,$CCASFLAGS,;t t | |
24469 s,@FLaC__CPU_IA32_TRUE@,$FLaC__CPU_IA32_TRUE,;t t | |
24470 s,@FLaC__CPU_IA32_FALSE@,$FLaC__CPU_IA32_FALSE,;t t | |
24471 s,@FLaC__CPU_PPC_TRUE@,$FLaC__CPU_PPC_TRUE,;t t | |
24472 s,@FLaC__CPU_PPC_FALSE@,$FLaC__CPU_PPC_FALSE,;t t | |
24473 s,@FLaC__CPU_SPARC_TRUE@,$FLaC__CPU_SPARC_TRUE,;t t | |
24474 s,@FLaC__CPU_SPARC_FALSE@,$FLaC__CPU_SPARC_FALSE,;t t | |
24475 s,@OBJ_FORMAT@,$OBJ_FORMAT,;t t | |
24476 s,@MINGW_WINSOCK_LIBS@,$MINGW_WINSOCK_LIBS,;t t | |
24477 s,@FLaC__SYS_DARWIN_TRUE@,$FLaC__SYS_DARWIN_TRUE,;t t | |
24478 s,@FLaC__SYS_DARWIN_FALSE@,$FLaC__SYS_DARWIN_FALSE,;t t | |
24479 s,@FLaC__SYS_LINUX_TRUE@,$FLaC__SYS_LINUX_TRUE,;t t | |
24480 s,@FLaC__SYS_LINUX_FALSE@,$FLaC__SYS_LINUX_FALSE,;t t | |
24481 s,@FLaC__NO_ASM_TRUE@,$FLaC__NO_ASM_TRUE,;t t | |
24482 s,@FLaC__NO_ASM_FALSE@,$FLaC__NO_ASM_FALSE,;t t | |
24483 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t | |
24484 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t | |
24485 s,@FLaC__SSE_OS_TRUE@,$FLaC__SSE_OS_TRUE,;t t | |
24486 s,@FLaC__SSE_OS_FALSE@,$FLaC__SSE_OS_FALSE,;t t | |
24487 s,@FLaC__USE_3DNOW_TRUE@,$FLaC__USE_3DNOW_TRUE,;t t | |
24488 s,@FLaC__USE_3DNOW_FALSE@,$FLaC__USE_3DNOW_FALSE,;t t | |
24489 s,@FLaC__USE_ALTIVEC_TRUE@,$FLaC__USE_ALTIVEC_TRUE,;t t | |
24490 s,@FLaC__USE_ALTIVEC_FALSE@,$FLaC__USE_ALTIVEC_FALSE,;t t | |
24491 s,@FLAC__TEST_LEVEL@,$FLAC__TEST_LEVEL,;t t | |
24492 s,@FLAC__TEST_WITH_VALGRIND@,$FLAC__TEST_WITH_VALGRIND,;t t | |
24493 s,@DOXYGEN@,$DOXYGEN,;t t | |
24494 s,@FLaC__HAS_DOXYGEN_TRUE@,$FLaC__HAS_DOXYGEN_TRUE,;t t | |
24495 s,@FLaC__HAS_DOXYGEN_FALSE@,$FLaC__HAS_DOXYGEN_FALSE,;t t | |
24496 s,@FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE@,$FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE,;t t | |
24497 s,@FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE@,$FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE,;t t | |
24498 s,@XMMS_CONFIG@,$XMMS_CONFIG,;t t | |
24499 s,@XMMS_CFLAGS@,$XMMS_CFLAGS,;t t | |
24500 s,@XMMS_LIBS@,$XMMS_LIBS,;t t | |
24501 s,@XMMS_VERSION@,$XMMS_VERSION,;t t | |
24502 s,@XMMS_DATA_DIR@,$XMMS_DATA_DIR,;t t | |
24503 s,@XMMS_PLUGIN_DIR@,$XMMS_PLUGIN_DIR,;t t | |
24504 s,@XMMS_VISUALIZATION_PLUGIN_DIR@,$XMMS_VISUALIZATION_PLUGIN_DIR,;t t | |
24505 s,@XMMS_INPUT_PLUGIN_DIR@,$XMMS_INPUT_PLUGIN_DIR,;t t | |
24506 s,@XMMS_OUTPUT_PLUGIN_DIR@,$XMMS_OUTPUT_PLUGIN_DIR,;t t | |
24507 s,@XMMS_GENERAL_PLUGIN_DIR@,$XMMS_GENERAL_PLUGIN_DIR,;t t | |
24508 s,@XMMS_EFFECT_PLUGIN_DIR@,$XMMS_EFFECT_PLUGIN_DIR,;t t | |
24509 s,@FLaC__HAS_XMMS_TRUE@,$FLaC__HAS_XMMS_TRUE,;t t | |
24510 s,@FLaC__HAS_XMMS_FALSE@,$FLaC__HAS_XMMS_FALSE,;t t | |
24511 s,@FLaC__WITH_CPPLIBS_TRUE@,$FLaC__WITH_CPPLIBS_TRUE,;t t | |
24512 s,@FLaC__WITH_CPPLIBS_FALSE@,$FLaC__WITH_CPPLIBS_FALSE,;t t | |
24513 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t | |
24514 s,@OGG_LIBS@,$OGG_LIBS,;t t | |
24515 s,@FLaC__HAS_OGG_TRUE@,$FLaC__HAS_OGG_TRUE,;t t | |
24516 s,@FLaC__HAS_OGG_FALSE@,$FLaC__HAS_OGG_FALSE,;t t | |
24517 s,@LIBICONV@,$LIBICONV,;t t | |
24518 s,@LTLIBICONV@,$LTLIBICONV,;t t | |
24519 s,@DOCBOOK_TO_MAN@,$DOCBOOK_TO_MAN,;t t | |
24520 s,@FLaC__HAS_DOCBOOK_TO_MAN_TRUE@,$FLaC__HAS_DOCBOOK_TO_MAN_TRUE,;t t | |
24521 s,@FLaC__HAS_DOCBOOK_TO_MAN_FALSE@,$FLaC__HAS_DOCBOOK_TO_MAN_FALSE,;t t | |
24522 s,@NASM@,$NASM,;t t | |
24523 s,@FLaC__HAS_NASM_TRUE@,$FLaC__HAS_NASM_TRUE,;t t | |
24524 s,@FLaC__HAS_NASM_FALSE@,$FLaC__HAS_NASM_FALSE,;t t | |
24525 s,@AS@,$AS,;t t | |
24526 s,@GAS@,$GAS,;t t | |
24527 s,@FLaC__HAS_AS_TRUE@,$FLaC__HAS_AS_TRUE,;t t | |
24528 s,@FLaC__HAS_AS_FALSE@,$FLaC__HAS_AS_FALSE,;t t | |
24529 s,@FLaC__HAS_GAS_TRUE@,$FLaC__HAS_GAS_TRUE,;t t | |
24530 s,@FLaC__HAS_GAS_FALSE@,$FLaC__HAS_GAS_FALSE,;t t | |
24531 s,@FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE@,$FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE,;t t | |
24532 s,@FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE@,$FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE,;t t | |
24533 s,@FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE@,$FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE,;t t | |
24534 s,@FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE@,$FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE,;t t | |
24535 s,@LIBOBJS@,$LIBOBJS,;t t | |
24536 s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
24537 CEOF | |
24538 | |
24539 _ACEOF | |
24540 | |
24541 cat >>$CONFIG_STATUS <<\_ACEOF | |
24542 # Split the substitutions into bite-sized pieces for seds with | |
24543 # small command number limits, like on Digital OSF/1 and HP-UX. | |
24544 ac_max_sed_lines=48 | |
24545 ac_sed_frag=1 # Number of current file. | |
24546 ac_beg=1 # First line for current file. | |
24547 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
24548 ac_more_lines=: | |
24549 ac_sed_cmds= | |
24550 while $ac_more_lines; do | |
24551 if test $ac_beg -gt 1; then | |
24552 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
24553 else | |
24554 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
24555 fi | |
24556 if test ! -s $tmp/subs.frag; then | |
24557 ac_more_lines=false | |
24558 else | |
24559 # The purpose of the label and of the branching condition is to | |
24560 # speed up the sed processing (if there are no `@' at all, there | |
24561 # is no need to browse any of the substitutions). | |
24562 # These are the two extra sed commands mentioned above. | |
24563 (echo ':t | |
24564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
24565 if test -z "$ac_sed_cmds"; then | |
24566 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
24567 else | |
24568 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
24569 fi | |
24570 ac_sed_frag=`expr $ac_sed_frag + 1` | |
24571 ac_beg=$ac_end | |
24572 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
24573 fi | |
24574 done | |
24575 if test -z "$ac_sed_cmds"; then | |
24576 ac_sed_cmds=cat | |
24577 fi | |
24578 fi # test -n "$CONFIG_FILES" | |
24579 | |
24580 _ACEOF | |
24581 cat >>$CONFIG_STATUS <<\_ACEOF | |
24582 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
24583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
24584 case $ac_file in | |
24585 - | *:- | *:-:* ) # input from stdin | |
24586 cat >$tmp/stdin | |
24587 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24589 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24590 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24591 * ) ac_file_in=$ac_file.in ;; | |
24592 esac | |
24593 | |
24594 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
24595 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
24596 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24597 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
24598 X"$ac_file" : 'X\(//\)$' \| \ | |
24599 X"$ac_file" : 'X\(/\)' \| \ | |
24600 . : '\(.\)' 2>/dev/null || | |
24601 echo X"$ac_file" | | |
24602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24603 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24604 /^X\(\/\/\)$/{ s//\1/; q; } | |
24605 /^X\(\/\).*/{ s//\1/; q; } | |
24606 s/.*/./; q'` | |
24607 { if $as_mkdir_p; then | |
24608 mkdir -p "$ac_dir" | |
24609 else | |
24610 as_dir="$ac_dir" | |
24611 as_dirs= | |
24612 while test ! -d "$as_dir"; do | |
24613 as_dirs="$as_dir $as_dirs" | |
24614 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24616 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24617 X"$as_dir" : 'X\(//\)$' \| \ | |
24618 X"$as_dir" : 'X\(/\)' \| \ | |
24619 . : '\(.\)' 2>/dev/null || | |
24620 echo X"$as_dir" | | |
24621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24622 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24623 /^X\(\/\/\)$/{ s//\1/; q; } | |
24624 /^X\(\/\).*/{ s//\1/; q; } | |
24625 s/.*/./; q'` | |
24626 done | |
24627 test ! -n "$as_dirs" || mkdir $as_dirs | |
24628 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24629 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
24630 { (exit 1); exit 1; }; }; } | |
24631 | |
24632 ac_builddir=. | |
24633 | |
24634 if test "$ac_dir" != .; then | |
24635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
24636 # A "../" for each directory in $ac_dir_suffix. | |
24637 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
24638 else | |
24639 ac_dir_suffix= ac_top_builddir= | |
24640 fi | |
24641 | |
24642 case $srcdir in | |
24643 .) # No --srcdir option. We are building in place. | |
24644 ac_srcdir=. | |
24645 if test -z "$ac_top_builddir"; then | |
24646 ac_top_srcdir=. | |
24647 else | |
24648 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
24649 fi ;; | |
24650 [\\/]* | ?:[\\/]* ) # Absolute path. | |
24651 ac_srcdir=$srcdir$ac_dir_suffix; | |
24652 ac_top_srcdir=$srcdir ;; | |
24653 *) # Relative path. | |
24654 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
24655 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
24656 esac | |
24657 | |
24658 # Do not use `cd foo && pwd` to compute absolute paths, because | |
24659 # the directories may not exist. | |
24660 case `pwd` in | |
24661 .) ac_abs_builddir="$ac_dir";; | |
24662 *) | |
24663 case "$ac_dir" in | |
24664 .) ac_abs_builddir=`pwd`;; | |
24665 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
24666 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
24667 esac;; | |
24668 esac | |
24669 case $ac_abs_builddir in | |
24670 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24671 *) | |
24672 case ${ac_top_builddir}. in | |
24673 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
24674 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24675 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
24676 esac;; | |
24677 esac | |
24678 case $ac_abs_builddir in | |
24679 .) ac_abs_srcdir=$ac_srcdir;; | |
24680 *) | |
24681 case $ac_srcdir in | |
24682 .) ac_abs_srcdir=$ac_abs_builddir;; | |
24683 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
24684 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
24685 esac;; | |
24686 esac | |
24687 case $ac_abs_builddir in | |
24688 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24689 *) | |
24690 case $ac_top_srcdir in | |
24691 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
24692 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24693 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
24694 esac;; | |
24695 esac | |
24696 | |
24697 | |
24698 case $INSTALL in | |
24699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
24700 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
24701 esac | |
24702 | |
24703 if test x"$ac_file" != x-; then | |
24704 { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24705 echo "$as_me: creating $ac_file" >&6;} | |
24706 rm -f "$ac_file" | |
24707 fi | |
24708 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
24709 # use $as_me), people would be surprised to read: | |
24710 # /* config.h. Generated by config.status. */ | |
24711 if test x"$ac_file" = x-; then | |
24712 configure_input= | |
24713 else | |
24714 configure_input="$ac_file. " | |
24715 fi | |
24716 configure_input=$configure_input"Generated from `echo $ac_file_in | | |
24717 sed 's,.*/,,'` by configure." | |
24718 | |
24719 # First look for the input files in the build tree, otherwise in the | |
24720 # src tree. | |
24721 ac_file_inputs=`IFS=: | |
24722 for f in $ac_file_in; do | |
24723 case $f in | |
24724 -) echo $tmp/stdin ;; | |
24725 [\\/$]*) | |
24726 # Absolute (can't be DOS-style, as IFS=:) | |
24727 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24728 echo "$as_me: error: cannot find input file: $f" >&2;} | |
24729 { (exit 1); exit 1; }; } | |
24730 echo "$f";; | |
24731 *) # Relative | |
24732 if test -f "$f"; then | |
24733 # Build tree | |
24734 echo "$f" | |
24735 elif test -f "$srcdir/$f"; then | |
24736 # Source tree | |
24737 echo "$srcdir/$f" | |
24738 else | |
24739 # /dev/null tree | |
24740 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24741 echo "$as_me: error: cannot find input file: $f" >&2;} | |
24742 { (exit 1); exit 1; }; } | |
24743 fi;; | |
24744 esac | |
24745 done` || { (exit 1); exit 1; } | |
24746 _ACEOF | |
24747 cat >>$CONFIG_STATUS <<_ACEOF | |
24748 sed "$ac_vpsub | |
24749 $extrasub | |
24750 _ACEOF | |
24751 cat >>$CONFIG_STATUS <<\_ACEOF | |
24752 :t | |
24753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
24754 s,@configure_input@,$configure_input,;t t | |
24755 s,@srcdir@,$ac_srcdir,;t t | |
24756 s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
24757 s,@top_srcdir@,$ac_top_srcdir,;t t | |
24758 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
24759 s,@builddir@,$ac_builddir,;t t | |
24760 s,@abs_builddir@,$ac_abs_builddir,;t t | |
24761 s,@top_builddir@,$ac_top_builddir,;t t | |
24762 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
24763 s,@INSTALL@,$ac_INSTALL,;t t | |
24764 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
24765 rm -f $tmp/stdin | |
24766 if test x"$ac_file" != x-; then | |
24767 mv $tmp/out $ac_file | |
24768 else | |
24769 cat $tmp/out | |
24770 rm -f $tmp/out | |
24771 fi | |
24772 | |
24773 done | |
24774 _ACEOF | |
24775 cat >>$CONFIG_STATUS <<\_ACEOF | |
24776 | |
24777 # | |
24778 # CONFIG_HEADER section. | |
24779 # | |
24780 | |
24781 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
24782 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
24783 # | |
24784 # ac_d sets the value in "#define NAME VALUE" lines. | |
24785 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
24786 ac_dB='[ ].*$,\1#\2' | |
24787 ac_dC=' ' | |
24788 ac_dD=',;t' | |
24789 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
24790 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
24791 ac_uB='$,\1#\2define\3' | |
24792 ac_uC=' ' | |
24793 ac_uD=',;t' | |
24794 | |
24795 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
24796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
24797 case $ac_file in | |
24798 - | *:- | *:-:* ) # input from stdin | |
24799 cat >$tmp/stdin | |
24800 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24802 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24804 * ) ac_file_in=$ac_file.in ;; | |
24805 esac | |
24806 | |
24807 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24808 echo "$as_me: creating $ac_file" >&6;} | |
24809 | |
24810 # First look for the input files in the build tree, otherwise in the | |
24811 # src tree. | |
24812 ac_file_inputs=`IFS=: | |
24813 for f in $ac_file_in; do | |
24814 case $f in | |
24815 -) echo $tmp/stdin ;; | |
24816 [\\/$]*) | |
24817 # Absolute (can't be DOS-style, as IFS=:) | |
24818 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24819 echo "$as_me: error: cannot find input file: $f" >&2;} | |
24820 { (exit 1); exit 1; }; } | |
24821 # Do quote $f, to prevent DOS paths from being IFS'd. | |
24822 echo "$f";; | |
24823 *) # Relative | |
24824 if test -f "$f"; then | |
24825 # Build tree | |
24826 echo "$f" | |
24827 elif test -f "$srcdir/$f"; then | |
24828 # Source tree | |
24829 echo "$srcdir/$f" | |
24830 else | |
24831 # /dev/null tree | |
24832 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24833 echo "$as_me: error: cannot find input file: $f" >&2;} | |
24834 { (exit 1); exit 1; }; } | |
24835 fi;; | |
24836 esac | |
24837 done` || { (exit 1); exit 1; } | |
24838 # Remove the trailing spaces. | |
24839 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
24840 | |
24841 _ACEOF | |
24842 | |
24843 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
24844 # `conftest.undefs', that substitutes the proper values into | |
24845 # config.h.in to produce config.h. The first handles `#define' | |
24846 # templates, and the second `#undef' templates. | |
24847 # And first: Protect against being on the right side of a sed subst in | |
24848 # config.status. Protect against being in an unquoted here document | |
24849 # in config.status. | |
24850 rm -f conftest.defines conftest.undefs | |
24851 # Using a here document instead of a string reduces the quoting nightmare. | |
24852 # Putting comments in sed scripts is not portable. | |
24853 # | |
24854 # `end' is used to avoid that the second main sed command (meant for | |
24855 # 0-ary CPP macros) applies to n-ary macro definitions. | |
24856 # See the Autoconf documentation for `clear'. | |
24857 cat >confdef2sed.sed <<\_ACEOF | |
24858 s/[\\&,]/\\&/g | |
24859 s,[\\$`],\\&,g | |
24860 t clear | |
24861 : clear | |
24862 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
24863 t end | |
24864 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
24865 : end | |
24866 _ACEOF | |
24867 # If some macros were called several times there might be several times | |
24868 # the same #defines, which is useless. Nevertheless, we may not want to | |
24869 # sort them, since we want the *last* AC-DEFINE to be honored. | |
24870 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
24871 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
24872 rm -f confdef2sed.sed | |
24873 | |
24874 # This sed command replaces #undef with comments. This is necessary, for | |
24875 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
24876 # on some systems where configure will not decide to define it. | |
24877 cat >>conftest.undefs <<\_ACEOF | |
24878 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
24879 _ACEOF | |
24880 | |
24881 # Break up conftest.defines because some shells have a limit on the size | |
24882 # of here documents, and old seds have small limits too (100 cmds). | |
24883 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
24884 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
24885 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
24886 echo ' :' >>$CONFIG_STATUS | |
24887 rm -f conftest.tail | |
24888 while grep . conftest.defines >/dev/null | |
24889 do | |
24890 # Write a limited-size here document to $tmp/defines.sed. | |
24891 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
24892 # Speed up: don't consider the non `#define' lines. | |
24893 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
24894 # Work around the forget-to-reset-the-flag bug. | |
24895 echo 't clr' >>$CONFIG_STATUS | |
24896 echo ': clr' >>$CONFIG_STATUS | |
24897 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
24898 echo 'CEOF | |
24899 sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
24900 rm -f $tmp/in | |
24901 mv $tmp/out $tmp/in | |
24902 ' >>$CONFIG_STATUS | |
24903 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
24904 rm -f conftest.defines | |
24905 mv conftest.tail conftest.defines | |
24906 done | |
24907 rm -f conftest.defines | |
24908 echo ' fi # grep' >>$CONFIG_STATUS | |
24909 echo >>$CONFIG_STATUS | |
24910 | |
24911 # Break up conftest.undefs because some shells have a limit on the size | |
24912 # of here documents, and old seds have small limits too (100 cmds). | |
24913 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
24914 rm -f conftest.tail | |
24915 while grep . conftest.undefs >/dev/null | |
24916 do | |
24917 # Write a limited-size here document to $tmp/undefs.sed. | |
24918 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
24919 # Speed up: don't consider the non `#undef' | |
24920 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
24921 # Work around the forget-to-reset-the-flag bug. | |
24922 echo 't clr' >>$CONFIG_STATUS | |
24923 echo ': clr' >>$CONFIG_STATUS | |
24924 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
24925 echo 'CEOF | |
24926 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
24927 rm -f $tmp/in | |
24928 mv $tmp/out $tmp/in | |
24929 ' >>$CONFIG_STATUS | |
24930 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
24931 rm -f conftest.undefs | |
24932 mv conftest.tail conftest.undefs | |
24933 done | |
24934 rm -f conftest.undefs | |
24935 | |
24936 cat >>$CONFIG_STATUS <<\_ACEOF | |
24937 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
24938 # use $as_me), people would be surprised to read: | |
24939 # /* config.h. Generated by config.status. */ | |
24940 if test x"$ac_file" = x-; then | |
24941 echo "/* Generated by configure. */" >$tmp/config.h | |
24942 else | |
24943 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
24944 fi | |
24945 cat $tmp/in >>$tmp/config.h | |
24946 rm -f $tmp/in | |
24947 if test x"$ac_file" != x-; then | |
24948 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
24949 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
24950 echo "$as_me: $ac_file is unchanged" >&6;} | |
24951 else | |
24952 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
24953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24954 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
24955 X"$ac_file" : 'X\(//\)$' \| \ | |
24956 X"$ac_file" : 'X\(/\)' \| \ | |
24957 . : '\(.\)' 2>/dev/null || | |
24958 echo X"$ac_file" | | |
24959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24960 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24961 /^X\(\/\/\)$/{ s//\1/; q; } | |
24962 /^X\(\/\).*/{ s//\1/; q; } | |
24963 s/.*/./; q'` | |
24964 { if $as_mkdir_p; then | |
24965 mkdir -p "$ac_dir" | |
24966 else | |
24967 as_dir="$ac_dir" | |
24968 as_dirs= | |
24969 while test ! -d "$as_dir"; do | |
24970 as_dirs="$as_dir $as_dirs" | |
24971 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24972 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24973 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24974 X"$as_dir" : 'X\(//\)$' \| \ | |
24975 X"$as_dir" : 'X\(/\)' \| \ | |
24976 . : '\(.\)' 2>/dev/null || | |
24977 echo X"$as_dir" | | |
24978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24979 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24980 /^X\(\/\/\)$/{ s//\1/; q; } | |
24981 /^X\(\/\).*/{ s//\1/; q; } | |
24982 s/.*/./; q'` | |
24983 done | |
24984 test ! -n "$as_dirs" || mkdir $as_dirs | |
24985 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24986 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
24987 { (exit 1); exit 1; }; }; } | |
24988 | |
24989 rm -f $ac_file | |
24990 mv $tmp/config.h $ac_file | |
24991 fi | |
24992 else | |
24993 cat $tmp/config.h | |
24994 rm -f $tmp/config.h | |
24995 fi | |
24996 # Compute $ac_file's index in $config_headers. | |
24997 _am_stamp_count=1 | |
24998 for _am_header in $config_headers :; do | |
24999 case $_am_header in | |
25000 $ac_file | $ac_file:* ) | |
25001 break ;; | |
25002 * ) | |
25003 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
25004 esac | |
25005 done | |
25006 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
25007 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25008 X$ac_file : 'X\(//\)[^/]' \| \ | |
25009 X$ac_file : 'X\(//\)$' \| \ | |
25010 X$ac_file : 'X\(/\)' \| \ | |
25011 . : '\(.\)' 2>/dev/null || | |
25012 echo X$ac_file | | |
25013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25014 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25015 /^X\(\/\/\)$/{ s//\1/; q; } | |
25016 /^X\(\/\).*/{ s//\1/; q; } | |
25017 s/.*/./; q'`/stamp-h$_am_stamp_count | |
25018 done | |
25019 _ACEOF | |
25020 cat >>$CONFIG_STATUS <<\_ACEOF | |
25021 | |
25022 # | |
25023 # CONFIG_COMMANDS section. | |
25024 # | |
25025 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
25026 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
25027 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25028 ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
25029 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25030 X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
25031 X"$ac_dest" : 'X\(//\)$' \| \ | |
25032 X"$ac_dest" : 'X\(/\)' \| \ | |
25033 . : '\(.\)' 2>/dev/null || | |
25034 echo X"$ac_dest" | | |
25035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25036 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25037 /^X\(\/\/\)$/{ s//\1/; q; } | |
25038 /^X\(\/\).*/{ s//\1/; q; } | |
25039 s/.*/./; q'` | |
25040 { if $as_mkdir_p; then | |
25041 mkdir -p "$ac_dir" | |
25042 else | |
25043 as_dir="$ac_dir" | |
25044 as_dirs= | |
25045 while test ! -d "$as_dir"; do | |
25046 as_dirs="$as_dir $as_dirs" | |
25047 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25049 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25050 X"$as_dir" : 'X\(//\)$' \| \ | |
25051 X"$as_dir" : 'X\(/\)' \| \ | |
25052 . : '\(.\)' 2>/dev/null || | |
25053 echo X"$as_dir" | | |
25054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25055 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25056 /^X\(\/\/\)$/{ s//\1/; q; } | |
25057 /^X\(\/\).*/{ s//\1/; q; } | |
25058 s/.*/./; q'` | |
25059 done | |
25060 test ! -n "$as_dirs" || mkdir $as_dirs | |
25061 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25062 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
25063 { (exit 1); exit 1; }; }; } | |
25064 | |
25065 ac_builddir=. | |
25066 | |
25067 if test "$ac_dir" != .; then | |
25068 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
25069 # A "../" for each directory in $ac_dir_suffix. | |
25070 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25071 else | |
25072 ac_dir_suffix= ac_top_builddir= | |
25073 fi | |
25074 | |
25075 case $srcdir in | |
25076 .) # No --srcdir option. We are building in place. | |
25077 ac_srcdir=. | |
25078 if test -z "$ac_top_builddir"; then | |
25079 ac_top_srcdir=. | |
25080 else | |
25081 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25082 fi ;; | |
25083 [\\/]* | ?:[\\/]* ) # Absolute path. | |
25084 ac_srcdir=$srcdir$ac_dir_suffix; | |
25085 ac_top_srcdir=$srcdir ;; | |
25086 *) # Relative path. | |
25087 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25088 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25089 esac | |
25090 | |
25091 # Do not use `cd foo && pwd` to compute absolute paths, because | |
25092 # the directories may not exist. | |
25093 case `pwd` in | |
25094 .) ac_abs_builddir="$ac_dir";; | |
25095 *) | |
25096 case "$ac_dir" in | |
25097 .) ac_abs_builddir=`pwd`;; | |
25098 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25099 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25100 esac;; | |
25101 esac | |
25102 case $ac_abs_builddir in | |
25103 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25104 *) | |
25105 case ${ac_top_builddir}. in | |
25106 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25107 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25108 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25109 esac;; | |
25110 esac | |
25111 case $ac_abs_builddir in | |
25112 .) ac_abs_srcdir=$ac_srcdir;; | |
25113 *) | |
25114 case $ac_srcdir in | |
25115 .) ac_abs_srcdir=$ac_abs_builddir;; | |
25116 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25117 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25118 esac;; | |
25119 esac | |
25120 case $ac_abs_builddir in | |
25121 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25122 *) | |
25123 case $ac_top_srcdir in | |
25124 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25125 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25126 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25127 esac;; | |
25128 esac | |
25129 | |
25130 | |
25131 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
25132 echo "$as_me: executing $ac_dest commands" >&6;} | |
25133 case $ac_dest in | |
25134 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
25135 # Strip MF so we end up with the name of the file. | |
25136 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
25137 # Check whether this is an Automake generated Makefile or not. | |
25138 # We used to match only the files named `Makefile.in', but | |
25139 # some people rename them; so instead we look at the file content. | |
25140 # Grep'ing the first line is not enough: some people post-process | |
25141 # each Makefile.in and add a new line on top of each file to say so. | |
25142 # So let's grep whole file. | |
25143 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
25144 dirpart=`(dirname "$mf") 2>/dev/null || | |
25145 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25146 X"$mf" : 'X\(//\)[^/]' \| \ | |
25147 X"$mf" : 'X\(//\)$' \| \ | |
25148 X"$mf" : 'X\(/\)' \| \ | |
25149 . : '\(.\)' 2>/dev/null || | |
25150 echo X"$mf" | | |
25151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25152 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25153 /^X\(\/\/\)$/{ s//\1/; q; } | |
25154 /^X\(\/\).*/{ s//\1/; q; } | |
25155 s/.*/./; q'` | |
25156 else | |
25157 continue | |
25158 fi | |
25159 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
25160 # Extract the definition of DEP_FILES from the Makefile without | |
25161 # running `make'. | |
25162 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
25163 test -z "$DEPDIR" && continue | |
25164 # When using ansi2knr, U may be empty or an underscore; expand it | |
25165 U=`sed -n -e '/^U = / s///p' < "$mf"` | |
25166 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
25167 # We invoke sed twice because it is the simplest approach to | |
25168 # changing $(DEPDIR) to its actual value in the expansion. | |
25169 for file in `sed -n -e ' | |
25170 /^DEP_FILES = .*\\\\$/ { | |
25171 s/^DEP_FILES = // | |
25172 :loop | |
25173 s/\\\\$// | |
25174 p | |
25175 n | |
25176 /\\\\$/ b loop | |
25177 p | |
25178 } | |
25179 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
25180 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
25181 # Make sure the directory exists. | |
25182 test -f "$dirpart/$file" && continue | |
25183 fdir=`(dirname "$file") 2>/dev/null || | |
25184 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25185 X"$file" : 'X\(//\)[^/]' \| \ | |
25186 X"$file" : 'X\(//\)$' \| \ | |
25187 X"$file" : 'X\(/\)' \| \ | |
25188 . : '\(.\)' 2>/dev/null || | |
25189 echo X"$file" | | |
25190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25191 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25192 /^X\(\/\/\)$/{ s//\1/; q; } | |
25193 /^X\(\/\).*/{ s//\1/; q; } | |
25194 s/.*/./; q'` | |
25195 { if $as_mkdir_p; then | |
25196 mkdir -p $dirpart/$fdir | |
25197 else | |
25198 as_dir=$dirpart/$fdir | |
25199 as_dirs= | |
25200 while test ! -d "$as_dir"; do | |
25201 as_dirs="$as_dir $as_dirs" | |
25202 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25204 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25205 X"$as_dir" : 'X\(//\)$' \| \ | |
25206 X"$as_dir" : 'X\(/\)' \| \ | |
25207 . : '\(.\)' 2>/dev/null || | |
25208 echo X"$as_dir" | | |
25209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25210 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25211 /^X\(\/\/\)$/{ s//\1/; q; } | |
25212 /^X\(\/\).*/{ s//\1/; q; } | |
25213 s/.*/./; q'` | |
25214 done | |
25215 test ! -n "$as_dirs" || mkdir $as_dirs | |
25216 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
25217 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
25218 { (exit 1); exit 1; }; }; } | |
25219 | |
25220 # echo "creating $dirpart/$file" | |
25221 echo '# dummy' > "$dirpart/$file" | |
25222 done | |
25223 done | |
25224 ;; | |
25225 esac | |
25226 done | |
25227 _ACEOF | |
25228 | |
25229 cat >>$CONFIG_STATUS <<\_ACEOF | |
25230 | |
25231 { (exit 0); exit 0; } | |
25232 _ACEOF | |
25233 chmod +x $CONFIG_STATUS | |
25234 ac_clean_files=$ac_clean_files_save | |
25235 | |
25236 | |
25237 # configure is writing to config.log, and then calls config.status. | |
25238 # config.status does its own redirection, appending to config.log. | |
25239 # Unfortunately, on DOS this fails, as config.log is still kept open | |
25240 # by configure, so config.status won't be able to write to it; its | |
25241 # output is simply discarded. So we exec the FD to /dev/null, | |
25242 # effectively closing config.log, so it can be properly (re)opened and | |
25243 # appended to by config.status. When coming back to configure, we | |
25244 # need to make the FD available again. | |
25245 if test "$no_create" != yes; then | |
25246 ac_cs_success=: | |
25247 ac_config_status_args= | |
25248 test "$silent" = yes && | |
25249 ac_config_status_args="$ac_config_status_args --quiet" | |
25250 exec 5>/dev/null | |
25251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
25252 exec 5>>config.log | |
25253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
25254 # would make configure fail if this is the last instruction. | |
25255 $ac_cs_success || { (exit 1); exit 1; } | |
25256 fi | |
25257 |