diff options
author | Jay Threeth | 2011-04-04 11:48:26 -0700 |
---|---|---|
committer | Jay Threeth | 2011-04-04 11:48:26 -0700 |
commit | 3c9cc506f741b980565ff5b3b001cd8b6ee36b12 (patch) | |
tree | cb862c57b3d5f74177cde3bd962a53fc377166f6 /linden/indra/libotr/libotr-3.2.0/aclocal.m4 | |
parent | build fixes, might build on linux now (diff) | |
download | meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.zip meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.tar.gz meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.tar.bz2 meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.tar.xz |
add source to libraries, and cruft for building under windows
Diffstat (limited to 'linden/indra/libotr/libotr-3.2.0/aclocal.m4')
-rwxr-xr-x | linden/indra/libotr/libotr-3.2.0/aclocal.m4 | 7376 |
1 files changed, 7376 insertions, 0 deletions
diff --git a/linden/indra/libotr/libotr-3.2.0/aclocal.m4 b/linden/indra/libotr/libotr-3.2.0/aclocal.m4 new file mode 100755 index 0000000..c7599c0 --- /dev/null +++ b/linden/indra/libotr/libotr-3.2.0/aclocal.m4 | |||
@@ -0,0 +1,7376 @@ | |||
1 | # generated automatically by aclocal 1.9.6 -*- Autoconf -*- | ||
2 | |||
3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | ||
4 | # 2005 Free Software Foundation, Inc. | ||
5 | # This file is free software; the Free Software Foundation | ||
6 | # gives unlimited permission to copy and/or distribute it, | ||
7 | # with or without modifications, as long as this notice is preserved. | ||
8 | |||
9 | # This program is distributed in the hope that it will be useful, | ||
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
12 | # PARTICULAR PURPOSE. | ||
13 | |||
14 | dnl Autoconf macros for libgcrypt | ||
15 | dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc. | ||
16 | dnl | ||
17 | dnl This file is free software; as a special exception the author gives | ||
18 | dnl unlimited permission to copy and/or distribute it, with or without | ||
19 | dnl modifications, as long as this notice is preserved. | ||
20 | dnl | ||
21 | dnl This file is distributed in the hope that it will be useful, but | ||
22 | dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the | ||
23 | dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
24 | |||
25 | |||
26 | dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION, | ||
27 | dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) | ||
28 | dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS. | ||
29 | dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed | ||
30 | dnl with the API version to also check the API compatibility. Example: | ||
31 | dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed | ||
32 | dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1. Using | ||
33 | dnl this features allows to prevent build against newer versions of libgcrypt | ||
34 | dnl with a changed API. | ||
35 | dnl | ||
36 | AC_DEFUN([AM_PATH_LIBGCRYPT], | ||
37 | [ AC_ARG_WITH(libgcrypt-prefix, | ||
38 | AC_HELP_STRING([--with-libgcrypt-prefix=PFX], | ||
39 | [prefix where LIBGCRYPT is installed (optional)]), | ||
40 | libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="") | ||
41 | if test x$libgcrypt_config_prefix != x ; then | ||
42 | if test x${LIBGCRYPT_CONFIG+set} != xset ; then | ||
43 | LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config | ||
44 | fi | ||
45 | fi | ||
46 | |||
47 | AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no) | ||
48 | tmp=ifelse([$1], ,1:1.2.0,$1) | ||
49 | if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then | ||
50 | req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` | ||
51 | min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` | ||
52 | else | ||
53 | req_libgcrypt_api=0 | ||
54 | min_libgcrypt_version="$tmp" | ||
55 | fi | ||
56 | |||
57 | AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version) | ||
58 | ok=no | ||
59 | if test "$LIBGCRYPT_CONFIG" != "no" ; then | ||
60 | req_major=`echo $min_libgcrypt_version | \ | ||
61 | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` | ||
62 | req_minor=`echo $min_libgcrypt_version | \ | ||
63 | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'` | ||
64 | req_micro=`echo $min_libgcrypt_version | \ | ||
65 | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'` | ||
66 | libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` | ||
67 | major=`echo $libgcrypt_config_version | \ | ||
68 | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` | ||
69 | minor=`echo $libgcrypt_config_version | \ | ||
70 | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'` | ||
71 | micro=`echo $libgcrypt_config_version | \ | ||
72 | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'` | ||
73 | if test "$major" -gt "$req_major"; then | ||
74 | ok=yes | ||
75 | else | ||
76 | if test "$major" -eq "$req_major"; then | ||
77 | if test "$minor" -gt "$req_minor"; then | ||
78 | ok=yes | ||
79 | else | ||
80 | if test "$minor" -eq "$req_minor"; then | ||
81 | if test "$micro" -ge "$req_micro"; then | ||
82 | ok=yes | ||
83 | fi | ||
84 | fi | ||
85 | fi | ||
86 | fi | ||
87 | fi | ||
88 | fi | ||
89 | if test $ok = yes; then | ||
90 | AC_MSG_RESULT(yes) | ||
91 | else | ||
92 | AC_MSG_RESULT(no) | ||
93 | fi | ||
94 | if test $ok = yes; then | ||
95 | # If we have a recent libgcrypt, we should also check that the | ||
96 | # API is compatible | ||
97 | if test "$req_libgcrypt_api" -gt 0 ; then | ||
98 | tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` | ||
99 | if test "$tmp" -gt 0 ; then | ||
100 | AC_MSG_CHECKING([LIBGCRYPT API version]) | ||
101 | if test "$req_libgcrypt_api" -eq "$tmp" ; then | ||
102 | AC_MSG_RESULT(okay) | ||
103 | else | ||
104 | ok=no | ||
105 | AC_MSG_RESULT([does not match (want=$req_libgcrypt_api got=$tmp)]) | ||
106 | fi | ||
107 | fi | ||
108 | fi | ||
109 | fi | ||
110 | if test $ok = yes; then | ||
111 | LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` | ||
112 | LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` | ||
113 | ifelse([$2], , :, [$2]) | ||
114 | else | ||
115 | LIBGCRYPT_CFLAGS="" | ||
116 | LIBGCRYPT_LIBS="" | ||
117 | ifelse([$3], , :, [$3]) | ||
118 | fi | ||
119 | AC_SUBST(LIBGCRYPT_CFLAGS) | ||
120 | AC_SUBST(LIBGCRYPT_LIBS) | ||
121 | ]) | ||
122 | |||
123 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | ||
124 | |||
125 | # serial 48 Debian 1.5.22-2 AC_PROG_LIBTOOL | ||
126 | |||
127 | |||
128 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | ||
129 | # ----------------------------------------------------------- | ||
130 | # If this macro is not defined by Autoconf, define it here. | ||
131 | m4_ifdef([AC_PROVIDE_IFELSE], | ||
132 | [], | ||
133 | [m4_define([AC_PROVIDE_IFELSE], | ||
134 | [m4_ifdef([AC_PROVIDE_$1], | ||
135 | [$2], [$3])])]) | ||
136 | |||
137 | |||
138 | # AC_PROG_LIBTOOL | ||
139 | # --------------- | ||
140 | AC_DEFUN([AC_PROG_LIBTOOL], | ||
141 | [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl | ||
142 | dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX | ||
143 | dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. | ||
144 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | ||
145 | [AC_LIBTOOL_CXX], | ||
146 | [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX | ||
147 | ])]) | ||
148 | dnl And a similar setup for Fortran 77 support | ||
149 | AC_PROVIDE_IFELSE([AC_PROG_F77], | ||
150 | [AC_LIBTOOL_F77], | ||
151 | [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 | ||
152 | ])]) | ||
153 | |||
154 | dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. | ||
155 | dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run | ||
156 | dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. | ||
157 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], | ||
158 | [AC_LIBTOOL_GCJ], | ||
159 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | ||
160 | [AC_LIBTOOL_GCJ], | ||
161 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], | ||
162 | [AC_LIBTOOL_GCJ], | ||
163 | [ifdef([AC_PROG_GCJ], | ||
164 | [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | ||
165 | ifdef([A][M_PROG_GCJ], | ||
166 | [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | ||
167 | ifdef([LT_AC_PROG_GCJ], | ||
168 | [define([LT_AC_PROG_GCJ], | ||
169 | defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) | ||
170 | ])])# AC_PROG_LIBTOOL | ||
171 | |||
172 | |||
173 | # _AC_PROG_LIBTOOL | ||
174 | # ---------------- | ||
175 | AC_DEFUN([_AC_PROG_LIBTOOL], | ||
176 | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl | ||
177 | AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl | ||
178 | AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl | ||
179 | AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl | ||
180 | |||
181 | # This can be used to rebuild libtool when needed | ||
182 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | ||
183 | |||
184 | # Always use our own libtool. | ||
185 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
186 | AC_SUBST(LIBTOOL)dnl | ||
187 | |||
188 | # Prevent multiple expansion | ||
189 | define([AC_PROG_LIBTOOL], []) | ||
190 | ])# _AC_PROG_LIBTOOL | ||
191 | |||
192 | |||
193 | # AC_LIBTOOL_SETUP | ||
194 | # ---------------- | ||
195 | AC_DEFUN([AC_LIBTOOL_SETUP], | ||
196 | [AC_PREREQ(2.50)dnl | ||
197 | AC_REQUIRE([AC_ENABLE_SHARED])dnl | ||
198 | AC_REQUIRE([AC_ENABLE_STATIC])dnl | ||
199 | AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl | ||
200 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
201 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
202 | AC_REQUIRE([AC_PROG_CC])dnl | ||
203 | AC_REQUIRE([AC_PROG_LD])dnl | ||
204 | AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl | ||
205 | AC_REQUIRE([AC_PROG_NM])dnl | ||
206 | |||
207 | AC_REQUIRE([AC_PROG_LN_S])dnl | ||
208 | AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl | ||
209 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | ||
210 | AC_REQUIRE([AC_OBJEXT])dnl | ||
211 | AC_REQUIRE([AC_EXEEXT])dnl | ||
212 | dnl | ||
213 | |||
214 | AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
215 | AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | ||
216 | AC_LIBTOOL_OBJDIR | ||
217 | |||
218 | AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
219 | _LT_AC_PROG_ECHO_BACKSLASH | ||
220 | |||
221 | case $host_os in | ||
222 | aix3*) | ||
223 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
224 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
225 | # vanish in a puff of smoke. | ||
226 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
227 | COLLECT_NAMES= | ||
228 | export COLLECT_NAMES | ||
229 | fi | ||
230 | ;; | ||
231 | esac | ||
232 | |||
233 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
234 | # metacharacters that are still active within double-quoted strings. | ||
235 | Xsed='sed -e 1s/^X//' | ||
236 | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] | ||
237 | |||
238 | # Same as above, but do not quote variable references. | ||
239 | [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] | ||
240 | |||
241 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
242 | # double_quote_subst'ed string. | ||
243 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
244 | |||
245 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
246 | no_glob_subst='s/\*/\\\*/g' | ||
247 | |||
248 | # Constants: | ||
249 | rm="rm -f" | ||
250 | |||
251 | # Global variables: | ||
252 | default_ofile=libtool | ||
253 | can_build_shared=yes | ||
254 | |||
255 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
256 | # which needs '.lib'). | ||
257 | libext=a | ||
258 | ltmain="$ac_aux_dir/ltmain.sh" | ||
259 | ofile="$default_ofile" | ||
260 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
261 | |||
262 | AC_CHECK_TOOL(AR, ar, false) | ||
263 | AC_CHECK_TOOL(RANLIB, ranlib, :) | ||
264 | AC_CHECK_TOOL(STRIP, strip, :) | ||
265 | |||
266 | old_CC="$CC" | ||
267 | old_CFLAGS="$CFLAGS" | ||
268 | |||
269 | # Set sane defaults for various variables | ||
270 | test -z "$AR" && AR=ar | ||
271 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
272 | test -z "$AS" && AS=as | ||
273 | test -z "$CC" && CC=cc | ||
274 | test -z "$LTCC" && LTCC=$CC | ||
275 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
276 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
277 | test -z "$LD" && LD=ld | ||
278 | test -z "$LN_S" && LN_S="ln -s" | ||
279 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
280 | test -z "$NM" && NM=nm | ||
281 | test -z "$SED" && SED=sed | ||
282 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
283 | test -z "$RANLIB" && RANLIB=: | ||
284 | test -z "$STRIP" && STRIP=: | ||
285 | test -z "$ac_objext" && ac_objext=o | ||
286 | |||
287 | # Determine commands to create old-style static archives. | ||
288 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | ||
289 | old_postinstall_cmds='chmod 644 $oldlib' | ||
290 | old_postuninstall_cmds= | ||
291 | |||
292 | if test -n "$RANLIB"; then | ||
293 | case $host_os in | ||
294 | openbsd*) | ||
295 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
296 | ;; | ||
297 | *) | ||
298 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
299 | ;; | ||
300 | esac | ||
301 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
302 | fi | ||
303 | |||
304 | _LT_CC_BASENAME([$compiler]) | ||
305 | |||
306 | # Only perform the check for file, if the check method requires it | ||
307 | case $deplibs_check_method in | ||
308 | file_magic*) | ||
309 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
310 | AC_PATH_MAGIC | ||
311 | fi | ||
312 | ;; | ||
313 | esac | ||
314 | |||
315 | AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) | ||
316 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | ||
317 | enable_win32_dll=yes, enable_win32_dll=no) | ||
318 | |||
319 | AC_ARG_ENABLE([libtool-lock], | ||
320 | [AC_HELP_STRING([--disable-libtool-lock], | ||
321 | [avoid locking (might break parallel builds)])]) | ||
322 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
323 | |||
324 | AC_ARG_WITH([pic], | ||
325 | [AC_HELP_STRING([--with-pic], | ||
326 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | ||
327 | [pic_mode="$withval"], | ||
328 | [pic_mode=default]) | ||
329 | test -z "$pic_mode" && pic_mode=default | ||
330 | |||
331 | # Use C for the default configuration in the libtool script | ||
332 | tagname= | ||
333 | AC_LIBTOOL_LANG_C_CONFIG | ||
334 | _LT_AC_TAGCONFIG | ||
335 | ])# AC_LIBTOOL_SETUP | ||
336 | |||
337 | |||
338 | # _LT_AC_SYS_COMPILER | ||
339 | # ------------------- | ||
340 | AC_DEFUN([_LT_AC_SYS_COMPILER], | ||
341 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
342 | |||
343 | # If no C compiler was specified, use CC. | ||
344 | LTCC=${LTCC-"$CC"} | ||
345 | |||
346 | # If no C compiler flags were specified, use CFLAGS. | ||
347 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
348 | |||
349 | # Allow CC to be a program name with arguments. | ||
350 | compiler=$CC | ||
351 | ])# _LT_AC_SYS_COMPILER | ||
352 | |||
353 | |||
354 | # _LT_CC_BASENAME(CC) | ||
355 | # ------------------- | ||
356 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | ||
357 | AC_DEFUN([_LT_CC_BASENAME], | ||
358 | [for cc_temp in $1""; do | ||
359 | case $cc_temp in | ||
360 | compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | ||
361 | distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | ||
362 | \-*) ;; | ||
363 | *) break;; | ||
364 | esac | ||
365 | done | ||
366 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
367 | ]) | ||
368 | |||
369 | |||
370 | # _LT_COMPILER_BOILERPLATE | ||
371 | # ------------------------ | ||
372 | # Check for compiler boilerplate output or warnings with | ||
373 | # the simple compiler test code. | ||
374 | AC_DEFUN([_LT_COMPILER_BOILERPLATE], | ||
375 | [ac_outfile=conftest.$ac_objext | ||
376 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
377 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
378 | _lt_compiler_boilerplate=`cat conftest.err` | ||
379 | $rm conftest* | ||
380 | ])# _LT_COMPILER_BOILERPLATE | ||
381 | |||
382 | |||
383 | # _LT_LINKER_BOILERPLATE | ||
384 | # ---------------------- | ||
385 | # Check for linker boilerplate output or warnings with | ||
386 | # the simple link test code. | ||
387 | AC_DEFUN([_LT_LINKER_BOILERPLATE], | ||
388 | [ac_outfile=conftest.$ac_objext | ||
389 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
390 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
391 | _lt_linker_boilerplate=`cat conftest.err` | ||
392 | $rm conftest* | ||
393 | ])# _LT_LINKER_BOILERPLATE | ||
394 | |||
395 | |||
396 | # _LT_AC_SYS_LIBPATH_AIX | ||
397 | # ---------------------- | ||
398 | # Links a minimal program and checks the executable | ||
399 | # for the system default hardcoded library path. In most cases, | ||
400 | # this is /usr/lib:/lib, but when the MPI compilers are used | ||
401 | # the location of the communication and MPI libs are included too. | ||
402 | # If we don't find anything, use the default library path according | ||
403 | # to the aix ld manual. | ||
404 | AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], | ||
405 | [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | ||
406 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
407 | }'` | ||
408 | # Check for a 64-bit object if we didn't find anything. | ||
409 | 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; } | ||
410 | }'`; fi],[]) | ||
411 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
412 | ])# _LT_AC_SYS_LIBPATH_AIX | ||
413 | |||
414 | |||
415 | # _LT_AC_SHELL_INIT(ARG) | ||
416 | # ---------------------- | ||
417 | AC_DEFUN([_LT_AC_SHELL_INIT], | ||
418 | [ifdef([AC_DIVERSION_NOTICE], | ||
419 | [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | ||
420 | [AC_DIVERT_PUSH(NOTICE)]) | ||
421 | $1 | ||
422 | AC_DIVERT_POP | ||
423 | ])# _LT_AC_SHELL_INIT | ||
424 | |||
425 | |||
426 | # _LT_AC_PROG_ECHO_BACKSLASH | ||
427 | # -------------------------- | ||
428 | # Add some code to the start of the generated configure script which | ||
429 | # will find an echo command which doesn't interpret backslashes. | ||
430 | AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], | ||
431 | [_LT_AC_SHELL_INIT([ | ||
432 | # Check that we are running under the correct shell. | ||
433 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
434 | |||
435 | case X$ECHO in | ||
436 | X*--fallback-echo) | ||
437 | # Remove one level of quotation (which was required for Make). | ||
438 | ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | ||
439 | ;; | ||
440 | esac | ||
441 | |||
442 | echo=${ECHO-echo} | ||
443 | if test "X[$]1" = X--no-reexec; then | ||
444 | # Discard the --no-reexec flag, and continue. | ||
445 | shift | ||
446 | elif test "X[$]1" = X--fallback-echo; then | ||
447 | # Avoid inline document here, it may be left over | ||
448 | : | ||
449 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | ||
450 | # Yippee, $echo works! | ||
451 | : | ||
452 | else | ||
453 | # Restart under the correct shell. | ||
454 | exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
455 | fi | ||
456 | |||
457 | if test "X[$]1" = X--fallback-echo; then | ||
458 | # used as fallback echo | ||
459 | shift | ||
460 | cat <<EOF | ||
461 | [$]* | ||
462 | EOF | ||
463 | exit 0 | ||
464 | fi | ||
465 | |||
466 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
467 | # if CDPATH is set. | ||
468 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
469 | |||
470 | if test -z "$ECHO"; then | ||
471 | if test "X${echo_test_string+set}" != Xset; then | ||
472 | # find a string as large as possible, as long as the shell can cope with it | ||
473 | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | ||
474 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
475 | if (echo_test_string=`eval $cmd`) 2>/dev/null && | ||
476 | echo_test_string=`eval $cmd` && | ||
477 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | ||
478 | then | ||
479 | break | ||
480 | fi | ||
481 | done | ||
482 | fi | ||
483 | |||
484 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
485 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
486 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
487 | : | ||
488 | else | ||
489 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
490 | # backslashes. This makes it impossible to quote backslashes using | ||
491 | # echo "$something" | sed 's/\\/\\\\/g' | ||
492 | # | ||
493 | # So, first we look for a working echo in the user's PATH. | ||
494 | |||
495 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
496 | for dir in $PATH /usr/ucb; do | ||
497 | IFS="$lt_save_ifs" | ||
498 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
499 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
500 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
501 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
502 | echo="$dir/echo" | ||
503 | break | ||
504 | fi | ||
505 | done | ||
506 | IFS="$lt_save_ifs" | ||
507 | |||
508 | if test "X$echo" = Xecho; then | ||
509 | # We didn't find a better echo, so look for alternatives. | ||
510 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
511 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
512 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
513 | # This shell has a builtin print -r that does the trick. | ||
514 | echo='print -r' | ||
515 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
516 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
517 | # If we have ksh, try running configure again with it. | ||
518 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
519 | export ORIGINAL_CONFIG_SHELL | ||
520 | CONFIG_SHELL=/bin/ksh | ||
521 | export CONFIG_SHELL | ||
522 | exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
523 | else | ||
524 | # Try using printf. | ||
525 | echo='printf %s\n' | ||
526 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
527 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
528 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
529 | # Cool, printf works | ||
530 | : | ||
531 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
532 | test "X$echo_testing_string" = 'X\t' && | ||
533 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
534 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
535 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
536 | export CONFIG_SHELL | ||
537 | SHELL="$CONFIG_SHELL" | ||
538 | export SHELL | ||
539 | echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
540 | elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
541 | test "X$echo_testing_string" = 'X\t' && | ||
542 | echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
543 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
544 | echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
545 | else | ||
546 | # maybe with a smaller string... | ||
547 | prev=: | ||
548 | |||
549 | for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | ||
550 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | ||
551 | then | ||
552 | break | ||
553 | fi | ||
554 | prev="$cmd" | ||
555 | done | ||
556 | |||
557 | if test "$prev" != 'sed 50q "[$]0"'; then | ||
558 | echo_test_string=`eval $prev` | ||
559 | export echo_test_string | ||
560 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | ||
561 | else | ||
562 | # Oops. We lost completely, so just stick with echo. | ||
563 | echo=echo | ||
564 | fi | ||
565 | fi | ||
566 | fi | ||
567 | fi | ||
568 | fi | ||
569 | fi | ||
570 | |||
571 | # Copy echo and quote the copy suitably for passing to libtool from | ||
572 | # the Makefile, instead of quoting the original, which is used later. | ||
573 | ECHO=$echo | ||
574 | if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | ||
575 | ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | ||
576 | fi | ||
577 | |||
578 | AC_SUBST(ECHO) | ||
579 | ])])# _LT_AC_PROG_ECHO_BACKSLASH | ||
580 | |||
581 | |||
582 | # _LT_AC_LOCK | ||
583 | # ----------- | ||
584 | AC_DEFUN([_LT_AC_LOCK], | ||
585 | [AC_ARG_ENABLE([libtool-lock], | ||
586 | [AC_HELP_STRING([--disable-libtool-lock], | ||
587 | [avoid locking (might break parallel builds)])]) | ||
588 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
589 | |||
590 | # Some flags need to be propagated to the compiler or linker for good | ||
591 | # libtool support. | ||
592 | case $host in | ||
593 | ia64-*-hpux*) | ||
594 | # Find out which ABI we are using. | ||
595 | echo 'int i;' > conftest.$ac_ext | ||
596 | if AC_TRY_EVAL(ac_compile); then | ||
597 | case `/usr/bin/file conftest.$ac_objext` in | ||
598 | *ELF-32*) | ||
599 | HPUX_IA64_MODE="32" | ||
600 | ;; | ||
601 | *ELF-64*) | ||
602 | HPUX_IA64_MODE="64" | ||
603 | ;; | ||
604 | esac | ||
605 | fi | ||
606 | rm -rf conftest* | ||
607 | ;; | ||
608 | *-*-irix6*) | ||
609 | # Find out which ABI we are using. | ||
610 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext | ||
611 | if AC_TRY_EVAL(ac_compile); then | ||
612 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
613 | case `/usr/bin/file conftest.$ac_objext` in | ||
614 | *32-bit*) | ||
615 | LD="${LD-ld} -melf32bsmip" | ||
616 | ;; | ||
617 | *N32*) | ||
618 | LD="${LD-ld} -melf32bmipn32" | ||
619 | ;; | ||
620 | *64-bit*) | ||
621 | LD="${LD-ld} -melf64bmip" | ||
622 | ;; | ||
623 | esac | ||
624 | else | ||
625 | case `/usr/bin/file conftest.$ac_objext` in | ||
626 | *32-bit*) | ||
627 | LD="${LD-ld} -32" | ||
628 | ;; | ||
629 | *N32*) | ||
630 | LD="${LD-ld} -n32" | ||
631 | ;; | ||
632 | *64-bit*) | ||
633 | LD="${LD-ld} -64" | ||
634 | ;; | ||
635 | esac | ||
636 | fi | ||
637 | fi | ||
638 | rm -rf conftest* | ||
639 | ;; | ||
640 | |||
641 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | ||
642 | # Find out which ABI we are using. | ||
643 | echo 'int i;' > conftest.$ac_ext | ||
644 | if AC_TRY_EVAL(ac_compile); then | ||
645 | case `/usr/bin/file conftest.o` in | ||
646 | *32-bit*) | ||
647 | case $host in | ||
648 | x86_64-*linux*) | ||
649 | LD="${LD-ld} -m elf_i386" | ||
650 | ;; | ||
651 | ppc64-*linux*|powerpc64-*linux*) | ||
652 | LD="${LD-ld} -m elf32ppclinux" | ||
653 | ;; | ||
654 | s390x-*linux*) | ||
655 | LD="${LD-ld} -m elf_s390" | ||
656 | ;; | ||
657 | sparc64-*linux*) | ||
658 | LD="${LD-ld} -m elf32_sparc" | ||
659 | ;; | ||
660 | esac | ||
661 | ;; | ||
662 | *64-bit*) | ||
663 | case $host in | ||
664 | x86_64-*linux*) | ||
665 | LD="${LD-ld} -m elf_x86_64" | ||
666 | ;; | ||
667 | ppc*-*linux*|powerpc*-*linux*) | ||
668 | LD="${LD-ld} -m elf64ppc" | ||
669 | ;; | ||
670 | s390*-*linux*) | ||
671 | LD="${LD-ld} -m elf64_s390" | ||
672 | ;; | ||
673 | sparc*-*linux*) | ||
674 | LD="${LD-ld} -m elf64_sparc" | ||
675 | ;; | ||
676 | esac | ||
677 | ;; | ||
678 | esac | ||
679 | fi | ||
680 | rm -rf conftest* | ||
681 | ;; | ||
682 | |||
683 | *-*-sco3.2v5*) | ||
684 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
685 | SAVE_CFLAGS="$CFLAGS" | ||
686 | CFLAGS="$CFLAGS -belf" | ||
687 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | ||
688 | [AC_LANG_PUSH(C) | ||
689 | AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | ||
690 | AC_LANG_POP]) | ||
691 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
692 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
693 | CFLAGS="$SAVE_CFLAGS" | ||
694 | fi | ||
695 | ;; | ||
696 | sparc*-*solaris*) | ||
697 | # Find out which ABI we are using. | ||
698 | echo 'int i;' > conftest.$ac_ext | ||
699 | if AC_TRY_EVAL(ac_compile); then | ||
700 | case `/usr/bin/file conftest.o` in | ||
701 | *64-bit*) | ||
702 | case $lt_cv_prog_gnu_ld in | ||
703 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
704 | *) LD="${LD-ld} -64" ;; | ||
705 | esac | ||
706 | ;; | ||
707 | esac | ||
708 | fi | ||
709 | rm -rf conftest* | ||
710 | ;; | ||
711 | |||
712 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | ||
713 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) | ||
714 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) | ||
715 | AC_CHECK_TOOL(AS, as, false) | ||
716 | AC_CHECK_TOOL(OBJDUMP, objdump, false) | ||
717 | ;; | ||
718 | ]) | ||
719 | esac | ||
720 | |||
721 | need_locks="$enable_libtool_lock" | ||
722 | |||
723 | ])# _LT_AC_LOCK | ||
724 | |||
725 | |||
726 | # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
727 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
728 | # ---------------------------------------------------------------- | ||
729 | # Check whether the given compiler option works | ||
730 | AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], | ||
731 | [AC_REQUIRE([LT_AC_PROG_SED]) | ||
732 | AC_CACHE_CHECK([$1], [$2], | ||
733 | [$2=no | ||
734 | ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | ||
735 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
736 | lt_compiler_flag="$3" | ||
737 | # Insert the option either (1) after the last *FLAGS variable, or | ||
738 | # (2) before a word containing "conftest.", or (3) at the end. | ||
739 | # Note that $ac_compile itself does not contain backslashes and begins | ||
740 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
741 | # The option is referenced via a variable to avoid confusing sed. | ||
742 | lt_compile=`echo "$ac_compile" | $SED \ | ||
743 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
744 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
745 | -e 's:$: $lt_compiler_flag:'` | ||
746 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
747 | (eval "$lt_compile" 2>conftest.err) | ||
748 | ac_status=$? | ||
749 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
750 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
751 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
752 | # The compiler can only warn and ignore the option if not recognized | ||
753 | # So say no if there are warnings other than the usual output. | ||
754 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
755 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
756 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
757 | $2=yes | ||
758 | fi | ||
759 | fi | ||
760 | $rm conftest* | ||
761 | ]) | ||
762 | |||
763 | if test x"[$]$2" = xyes; then | ||
764 | ifelse([$5], , :, [$5]) | ||
765 | else | ||
766 | ifelse([$6], , :, [$6]) | ||
767 | fi | ||
768 | ])# AC_LIBTOOL_COMPILER_OPTION | ||
769 | |||
770 | |||
771 | # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
772 | # [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
773 | # ------------------------------------------------------------ | ||
774 | # Check whether the given compiler option works | ||
775 | AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], | ||
776 | [AC_CACHE_CHECK([$1], [$2], | ||
777 | [$2=no | ||
778 | save_LDFLAGS="$LDFLAGS" | ||
779 | LDFLAGS="$LDFLAGS $3" | ||
780 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
781 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
782 | # The linker can only warn and ignore the option if not recognized | ||
783 | # So say no if there are warnings | ||
784 | if test -s conftest.err; then | ||
785 | # Append any errors to the config.log. | ||
786 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | ||
787 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
788 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
789 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
790 | $2=yes | ||
791 | fi | ||
792 | else | ||
793 | $2=yes | ||
794 | fi | ||
795 | fi | ||
796 | $rm conftest* | ||
797 | LDFLAGS="$save_LDFLAGS" | ||
798 | ]) | ||
799 | |||
800 | if test x"[$]$2" = xyes; then | ||
801 | ifelse([$4], , :, [$4]) | ||
802 | else | ||
803 | ifelse([$5], , :, [$5]) | ||
804 | fi | ||
805 | ])# AC_LIBTOOL_LINKER_OPTION | ||
806 | |||
807 | |||
808 | # AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
809 | # -------------------------- | ||
810 | AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], | ||
811 | [# find the maximum length of command line arguments | ||
812 | AC_MSG_CHECKING([the maximum length of command line arguments]) | ||
813 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | ||
814 | i=0 | ||
815 | teststring="ABCD" | ||
816 | |||
817 | case $build_os in | ||
818 | msdosdjgpp*) | ||
819 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
820 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
821 | # during glob expansion). Even if it were fixed, the result of this | ||
822 | # check would be larger than it should be. | ||
823 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
824 | ;; | ||
825 | |||
826 | gnu*) | ||
827 | # Under GNU Hurd, this test is not required because there is | ||
828 | # no limit to the length of command line arguments. | ||
829 | # Libtool will interpret -1 as no limit whatsoever | ||
830 | lt_cv_sys_max_cmd_len=-1; | ||
831 | ;; | ||
832 | |||
833 | cygwin* | mingw*) | ||
834 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
835 | # about 5 minutes as the teststring grows exponentially. | ||
836 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
837 | # you end up with a "frozen" computer, even though with patience | ||
838 | # the test eventually succeeds (with a max line length of 256k). | ||
839 | # Instead, let's just punt: use the minimum linelength reported by | ||
840 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
841 | lt_cv_sys_max_cmd_len=8192; | ||
842 | ;; | ||
843 | |||
844 | amigaos*) | ||
845 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
846 | # So we just punt and use a minimum line length of 8192. | ||
847 | lt_cv_sys_max_cmd_len=8192; | ||
848 | ;; | ||
849 | |||
850 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
851 | # This has been around since 386BSD, at least. Likely further. | ||
852 | if test -x /sbin/sysctl; then | ||
853 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
854 | elif test -x /usr/sbin/sysctl; then | ||
855 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
856 | else | ||
857 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
858 | fi | ||
859 | # And add a safety zone | ||
860 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
861 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
862 | ;; | ||
863 | |||
864 | interix*) | ||
865 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
866 | lt_cv_sys_max_cmd_len=196608 | ||
867 | ;; | ||
868 | |||
869 | osf*) | ||
870 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
871 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
872 | # nice to cause kernel panics so lets avoid the loop below. | ||
873 | # First set a reasonable default. | ||
874 | lt_cv_sys_max_cmd_len=16384 | ||
875 | # | ||
876 | if test -x /sbin/sysconfig; then | ||
877 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
878 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
879 | esac | ||
880 | fi | ||
881 | ;; | ||
882 | sco3.2v5*) | ||
883 | lt_cv_sys_max_cmd_len=102400 | ||
884 | ;; | ||
885 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
886 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
887 | if test -n "$kargmax"; then | ||
888 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | ||
889 | else | ||
890 | lt_cv_sys_max_cmd_len=32768 | ||
891 | fi | ||
892 | ;; | ||
893 | *) | ||
894 | # If test is not a shell built-in, we'll probably end up computing a | ||
895 | # maximum length that is only half of the actual maximum length, but | ||
896 | # we can't tell. | ||
897 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
898 | while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ | ||
899 | = "XX$teststring") >/dev/null 2>&1 && | ||
900 | new_result=`expr "X$teststring" : ".*" 2>&1` && | ||
901 | lt_cv_sys_max_cmd_len=$new_result && | ||
902 | test $i != 17 # 1/2 MB should be enough | ||
903 | do | ||
904 | i=`expr $i + 1` | ||
905 | teststring=$teststring$teststring | ||
906 | done | ||
907 | teststring= | ||
908 | # Add a significant safety factor because C++ compilers can tack on massive | ||
909 | # amounts of additional arguments before passing them to the linker. | ||
910 | # It appears as though 1/2 is a usable value. | ||
911 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
912 | ;; | ||
913 | esac | ||
914 | ]) | ||
915 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
916 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | ||
917 | else | ||
918 | AC_MSG_RESULT(none) | ||
919 | fi | ||
920 | ])# AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
921 | |||
922 | |||
923 | # _LT_AC_CHECK_DLFCN | ||
924 | # ------------------ | ||
925 | AC_DEFUN([_LT_AC_CHECK_DLFCN], | ||
926 | [AC_CHECK_HEADERS(dlfcn.h)dnl | ||
927 | ])# _LT_AC_CHECK_DLFCN | ||
928 | |||
929 | |||
930 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | ||
931 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | ||
932 | # --------------------------------------------------------------------- | ||
933 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | ||
934 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | ||
935 | if test "$cross_compiling" = yes; then : | ||
936 | [$4] | ||
937 | else | ||
938 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
939 | lt_status=$lt_dlunknown | ||
940 | cat > conftest.$ac_ext <<EOF | ||
941 | [#line __oline__ "configure" | ||
942 | #include "confdefs.h" | ||
943 | |||
944 | #if HAVE_DLFCN_H | ||
945 | #include <dlfcn.h> | ||
946 | #endif | ||
947 | |||
948 | #include <stdio.h> | ||
949 | |||
950 | #ifdef RTLD_GLOBAL | ||
951 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
952 | #else | ||
953 | # ifdef DL_GLOBAL | ||
954 | # define LT_DLGLOBAL DL_GLOBAL | ||
955 | # else | ||
956 | # define LT_DLGLOBAL 0 | ||
957 | # endif | ||
958 | #endif | ||
959 | |||
960 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
961 | find out it does not work in some platform. */ | ||
962 | #ifndef LT_DLLAZY_OR_NOW | ||
963 | # ifdef RTLD_LAZY | ||
964 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
965 | # else | ||
966 | # ifdef DL_LAZY | ||
967 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
968 | # else | ||
969 | # ifdef RTLD_NOW | ||
970 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
971 | # else | ||
972 | # ifdef DL_NOW | ||
973 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
974 | # else | ||
975 | # define LT_DLLAZY_OR_NOW 0 | ||
976 | # endif | ||
977 | # endif | ||
978 | # endif | ||
979 | # endif | ||
980 | #endif | ||
981 | |||
982 | #ifdef __cplusplus | ||
983 | extern "C" void exit (int); | ||
984 | #endif | ||
985 | |||
986 | void fnord() { int i=42;} | ||
987 | int main () | ||
988 | { | ||
989 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
990 | int status = $lt_dlunknown; | ||
991 | |||
992 | if (self) | ||
993 | { | ||
994 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
995 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
996 | /* dlclose (self); */ | ||
997 | } | ||
998 | else | ||
999 | puts (dlerror ()); | ||
1000 | |||
1001 | exit (status); | ||
1002 | }] | ||
1003 | EOF | ||
1004 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | ||
1005 | (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | ||
1006 | lt_status=$? | ||
1007 | case x$lt_status in | ||
1008 | x$lt_dlno_uscore) $1 ;; | ||
1009 | x$lt_dlneed_uscore) $2 ;; | ||
1010 | x$lt_dlunknown|x*) $3 ;; | ||
1011 | esac | ||
1012 | else : | ||
1013 | # compilation failed | ||
1014 | $3 | ||
1015 | fi | ||
1016 | fi | ||
1017 | rm -fr conftest* | ||
1018 | ])# _LT_AC_TRY_DLOPEN_SELF | ||
1019 | |||
1020 | |||
1021 | # AC_LIBTOOL_DLOPEN_SELF | ||
1022 | # ---------------------- | ||
1023 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | ||
1024 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | ||
1025 | if test "x$enable_dlopen" != xyes; then | ||
1026 | enable_dlopen=unknown | ||
1027 | enable_dlopen_self=unknown | ||
1028 | enable_dlopen_self_static=unknown | ||
1029 | else | ||
1030 | lt_cv_dlopen=no | ||
1031 | lt_cv_dlopen_libs= | ||
1032 | |||
1033 | case $host_os in | ||
1034 | beos*) | ||
1035 | lt_cv_dlopen="load_add_on" | ||
1036 | lt_cv_dlopen_libs= | ||
1037 | lt_cv_dlopen_self=yes | ||
1038 | ;; | ||
1039 | |||
1040 | mingw* | pw32*) | ||
1041 | lt_cv_dlopen="LoadLibrary" | ||
1042 | lt_cv_dlopen_libs= | ||
1043 | ;; | ||
1044 | |||
1045 | cygwin*) | ||
1046 | lt_cv_dlopen="dlopen" | ||
1047 | lt_cv_dlopen_libs= | ||
1048 | ;; | ||
1049 | |||
1050 | darwin*) | ||
1051 | # if libdl is installed we need to link against it | ||
1052 | AC_CHECK_LIB([dl], [dlopen], | ||
1053 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | ||
1054 | lt_cv_dlopen="dyld" | ||
1055 | lt_cv_dlopen_libs= | ||
1056 | lt_cv_dlopen_self=yes | ||
1057 | ]) | ||
1058 | ;; | ||
1059 | |||
1060 | *) | ||
1061 | AC_CHECK_FUNC([shl_load], | ||
1062 | [lt_cv_dlopen="shl_load"], | ||
1063 | [AC_CHECK_LIB([dld], [shl_load], | ||
1064 | [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], | ||
1065 | [AC_CHECK_FUNC([dlopen], | ||
1066 | [lt_cv_dlopen="dlopen"], | ||
1067 | [AC_CHECK_LIB([dl], [dlopen], | ||
1068 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | ||
1069 | [AC_CHECK_LIB([svld], [dlopen], | ||
1070 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | ||
1071 | [AC_CHECK_LIB([dld], [dld_link], | ||
1072 | [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) | ||
1073 | ]) | ||
1074 | ]) | ||
1075 | ]) | ||
1076 | ]) | ||
1077 | ]) | ||
1078 | ;; | ||
1079 | esac | ||
1080 | |||
1081 | if test "x$lt_cv_dlopen" != xno; then | ||
1082 | enable_dlopen=yes | ||
1083 | else | ||
1084 | enable_dlopen=no | ||
1085 | fi | ||
1086 | |||
1087 | case $lt_cv_dlopen in | ||
1088 | dlopen) | ||
1089 | save_CPPFLAGS="$CPPFLAGS" | ||
1090 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
1091 | |||
1092 | save_LDFLAGS="$LDFLAGS" | ||
1093 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
1094 | |||
1095 | save_LIBS="$LIBS" | ||
1096 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
1097 | |||
1098 | AC_CACHE_CHECK([whether a program can dlopen itself], | ||
1099 | lt_cv_dlopen_self, [dnl | ||
1100 | _LT_AC_TRY_DLOPEN_SELF( | ||
1101 | lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | ||
1102 | lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | ||
1103 | ]) | ||
1104 | |||
1105 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
1106 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
1107 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | ||
1108 | lt_cv_dlopen_self_static, [dnl | ||
1109 | _LT_AC_TRY_DLOPEN_SELF( | ||
1110 | lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | ||
1111 | lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | ||
1112 | ]) | ||
1113 | fi | ||
1114 | |||
1115 | CPPFLAGS="$save_CPPFLAGS" | ||
1116 | LDFLAGS="$save_LDFLAGS" | ||
1117 | LIBS="$save_LIBS" | ||
1118 | ;; | ||
1119 | esac | ||
1120 | |||
1121 | case $lt_cv_dlopen_self in | ||
1122 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
1123 | *) enable_dlopen_self=unknown ;; | ||
1124 | esac | ||
1125 | |||
1126 | case $lt_cv_dlopen_self_static in | ||
1127 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
1128 | *) enable_dlopen_self_static=unknown ;; | ||
1129 | esac | ||
1130 | fi | ||
1131 | ])# AC_LIBTOOL_DLOPEN_SELF | ||
1132 | |||
1133 | |||
1134 | # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) | ||
1135 | # --------------------------------- | ||
1136 | # Check to see if options -c and -o are simultaneously supported by compiler | ||
1137 | AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], | ||
1138 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
1139 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | ||
1140 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | ||
1141 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | ||
1142 | $rm -r conftest 2>/dev/null | ||
1143 | mkdir conftest | ||
1144 | cd conftest | ||
1145 | mkdir out | ||
1146 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
1147 | |||
1148 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
1149 | # Insert the option either (1) after the last *FLAGS variable, or | ||
1150 | # (2) before a word containing "conftest.", or (3) at the end. | ||
1151 | # Note that $ac_compile itself does not contain backslashes and begins | ||
1152 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
1153 | lt_compile=`echo "$ac_compile" | $SED \ | ||
1154 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
1155 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
1156 | -e 's:$: $lt_compiler_flag:'` | ||
1157 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
1158 | (eval "$lt_compile" 2>out/conftest.err) | ||
1159 | ac_status=$? | ||
1160 | cat out/conftest.err >&AS_MESSAGE_LOG_FD | ||
1161 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
1162 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
1163 | then | ||
1164 | # The compiler can only warn and ignore the option if not recognized | ||
1165 | # So say no if there are warnings | ||
1166 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
1167 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
1168 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
1169 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
1170 | fi | ||
1171 | fi | ||
1172 | chmod u+w . 2>&AS_MESSAGE_LOG_FD | ||
1173 | $rm conftest* | ||
1174 | # SGI C++ compiler will create directory out/ii_files/ for | ||
1175 | # template instantiation | ||
1176 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
1177 | $rm out/* && rmdir out | ||
1178 | cd .. | ||
1179 | rmdir conftest | ||
1180 | $rm conftest* | ||
1181 | ]) | ||
1182 | ])# AC_LIBTOOL_PROG_CC_C_O | ||
1183 | |||
1184 | |||
1185 | # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) | ||
1186 | # ----------------------------------------- | ||
1187 | # Check to see if we can do hard links to lock some files if needed | ||
1188 | AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], | ||
1189 | [AC_REQUIRE([_LT_AC_LOCK])dnl | ||
1190 | |||
1191 | hard_links="nottested" | ||
1192 | if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | ||
1193 | # do not overwrite the value of need_locks provided by the user | ||
1194 | AC_MSG_CHECKING([if we can lock with hard links]) | ||
1195 | hard_links=yes | ||
1196 | $rm conftest* | ||
1197 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
1198 | touch conftest.a | ||
1199 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
1200 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
1201 | AC_MSG_RESULT([$hard_links]) | ||
1202 | if test "$hard_links" = no; then | ||
1203 | AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | ||
1204 | need_locks=warn | ||
1205 | fi | ||
1206 | else | ||
1207 | need_locks=no | ||
1208 | fi | ||
1209 | ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS | ||
1210 | |||
1211 | |||
1212 | # AC_LIBTOOL_OBJDIR | ||
1213 | # ----------------- | ||
1214 | AC_DEFUN([AC_LIBTOOL_OBJDIR], | ||
1215 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | ||
1216 | [rm -f .libs 2>/dev/null | ||
1217 | mkdir .libs 2>/dev/null | ||
1218 | if test -d .libs; then | ||
1219 | lt_cv_objdir=.libs | ||
1220 | else | ||
1221 | # MS-DOS does not allow filenames that begin with a dot. | ||
1222 | lt_cv_objdir=_libs | ||
1223 | fi | ||
1224 | rmdir .libs 2>/dev/null]) | ||
1225 | objdir=$lt_cv_objdir | ||
1226 | ])# AC_LIBTOOL_OBJDIR | ||
1227 | |||
1228 | |||
1229 | # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) | ||
1230 | # ---------------------------------------------- | ||
1231 | # Check hardcoding attributes. | ||
1232 | AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], | ||
1233 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) | ||
1234 | _LT_AC_TAGVAR(hardcode_action, $1)= | ||
1235 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | ||
1236 | test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ | ||
1237 | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | ||
1238 | |||
1239 | # We can hardcode non-existant directories. | ||
1240 | if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && | ||
1241 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
1242 | # have to relink, otherwise we might link with an installed library | ||
1243 | # when we should be linking with a yet-to-be-installed one | ||
1244 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && | ||
1245 | test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then | ||
1246 | # Linking always hardcodes the temporary library directory. | ||
1247 | _LT_AC_TAGVAR(hardcode_action, $1)=relink | ||
1248 | else | ||
1249 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
1250 | _LT_AC_TAGVAR(hardcode_action, $1)=immediate | ||
1251 | fi | ||
1252 | else | ||
1253 | # We cannot hardcode anything, or else we can only hardcode existing | ||
1254 | # directories. | ||
1255 | _LT_AC_TAGVAR(hardcode_action, $1)=unsupported | ||
1256 | fi | ||
1257 | AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) | ||
1258 | |||
1259 | if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then | ||
1260 | # Fast installation is not supported | ||
1261 | enable_fast_install=no | ||
1262 | elif test "$shlibpath_overrides_runpath" = yes || | ||
1263 | test "$enable_shared" = no; then | ||
1264 | # Fast installation is not necessary | ||
1265 | enable_fast_install=needless | ||
1266 | fi | ||
1267 | ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH | ||
1268 | |||
1269 | |||
1270 | # AC_LIBTOOL_SYS_LIB_STRIP | ||
1271 | # ------------------------ | ||
1272 | AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], | ||
1273 | [striplib= | ||
1274 | old_striplib= | ||
1275 | AC_MSG_CHECKING([whether stripping libraries is possible]) | ||
1276 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
1277 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
1278 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
1279 | AC_MSG_RESULT([yes]) | ||
1280 | else | ||
1281 | # FIXME - insert some real tests, host_os isn't really good enough | ||
1282 | case $host_os in | ||
1283 | darwin*) | ||
1284 | if test -n "$STRIP" ; then | ||
1285 | striplib="$STRIP -x" | ||
1286 | AC_MSG_RESULT([yes]) | ||
1287 | else | ||
1288 | AC_MSG_RESULT([no]) | ||
1289 | fi | ||
1290 | ;; | ||
1291 | *) | ||
1292 | AC_MSG_RESULT([no]) | ||
1293 | ;; | ||
1294 | esac | ||
1295 | fi | ||
1296 | ])# AC_LIBTOOL_SYS_LIB_STRIP | ||
1297 | |||
1298 | |||
1299 | # AC_LIBTOOL_SYS_DYNAMIC_LINKER | ||
1300 | # ----------------------------- | ||
1301 | # PORTME Fill in your ld.so characteristics | ||
1302 | AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], | ||
1303 | [AC_MSG_CHECKING([dynamic linker characteristics]) | ||
1304 | library_names_spec= | ||
1305 | libname_spec='lib$name' | ||
1306 | soname_spec= | ||
1307 | shrext_cmds=".so" | ||
1308 | postinstall_cmds= | ||
1309 | postuninstall_cmds= | ||
1310 | finish_cmds= | ||
1311 | finish_eval= | ||
1312 | shlibpath_var= | ||
1313 | shlibpath_overrides_runpath=unknown | ||
1314 | version_type=none | ||
1315 | dynamic_linker="$host_os ld.so" | ||
1316 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
1317 | if test "$GCC" = yes; then | ||
1318 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
1319 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
1320 | # if the path contains ";" then we assume it to be the separator | ||
1321 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
1322 | # assumed that no part of a normal pathname contains ";" but that should | ||
1323 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
1324 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
1325 | else | ||
1326 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
1327 | fi | ||
1328 | else | ||
1329 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
1330 | fi | ||
1331 | need_lib_prefix=unknown | ||
1332 | hardcode_into_libs=no | ||
1333 | |||
1334 | # when you set need_version to no, make sure it does not cause -set_version | ||
1335 | # flags to be left without arguments | ||
1336 | need_version=unknown | ||
1337 | |||
1338 | case $host_os in | ||
1339 | aix3*) | ||
1340 | version_type=linux | ||
1341 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
1342 | shlibpath_var=LIBPATH | ||
1343 | |||
1344 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
1345 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1346 | ;; | ||
1347 | |||
1348 | aix4* | aix5*) | ||
1349 | version_type=linux | ||
1350 | need_lib_prefix=no | ||
1351 | need_version=no | ||
1352 | hardcode_into_libs=yes | ||
1353 | if test "$host_cpu" = ia64; then | ||
1354 | # AIX 5 supports IA64 | ||
1355 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
1356 | shlibpath_var=LD_LIBRARY_PATH | ||
1357 | else | ||
1358 | # With GCC up to 2.95.x, collect2 would create an import file | ||
1359 | # for dependence libraries. The import file would start with | ||
1360 | # the line `#! .'. This would cause the generated library to | ||
1361 | # depend on `.', always an invalid library. This was fixed in | ||
1362 | # development snapshots of GCC prior to 3.0. | ||
1363 | case $host_os in | ||
1364 | aix4 | aix4.[[01]] | aix4.[[01]].*) | ||
1365 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
1366 | echo ' yes ' | ||
1367 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
1368 | : | ||
1369 | else | ||
1370 | can_build_shared=no | ||
1371 | fi | ||
1372 | ;; | ||
1373 | esac | ||
1374 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
1375 | # soname into executable. Probably we can add versioning support to | ||
1376 | # collect2, so additional links can be useful in future. | ||
1377 | if test "$aix_use_runtimelinking" = yes; then | ||
1378 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
1379 | # instead of lib<name>.a to let people know that these are not | ||
1380 | # typical AIX shared libraries. | ||
1381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1382 | else | ||
1383 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
1384 | # and later when we are not doing run time linking. | ||
1385 | library_names_spec='${libname}${release}.a $libname.a' | ||
1386 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1387 | fi | ||
1388 | shlibpath_var=LIBPATH | ||
1389 | fi | ||
1390 | ;; | ||
1391 | |||
1392 | amigaos*) | ||
1393 | library_names_spec='$libname.ixlibrary $libname.a' | ||
1394 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
1395 | 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' | ||
1396 | ;; | ||
1397 | |||
1398 | beos*) | ||
1399 | library_names_spec='${libname}${shared_ext}' | ||
1400 | dynamic_linker="$host_os ld.so" | ||
1401 | shlibpath_var=LIBRARY_PATH | ||
1402 | ;; | ||
1403 | |||
1404 | bsdi[[45]]*) | ||
1405 | version_type=linux | ||
1406 | need_version=no | ||
1407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1408 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1409 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
1410 | shlibpath_var=LD_LIBRARY_PATH | ||
1411 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
1412 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
1413 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
1414 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
1415 | # libtool to hard-code these into programs | ||
1416 | ;; | ||
1417 | |||
1418 | cygwin* | mingw* | pw32*) | ||
1419 | version_type=windows | ||
1420 | shrext_cmds=".dll" | ||
1421 | need_version=no | ||
1422 | need_lib_prefix=no | ||
1423 | |||
1424 | case $GCC,$host_os in | ||
1425 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
1426 | library_names_spec='$libname.dll.a' | ||
1427 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
1428 | postinstall_cmds='base_file=`basename \${file}`~ | ||
1429 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
1430 | dldir=$destdir/`dirname \$dlpath`~ | ||
1431 | test -d \$dldir || mkdir -p \$dldir~ | ||
1432 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
1433 | chmod a+x \$dldir/$dlname' | ||
1434 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
1435 | dlpath=$dir/\$dldll~ | ||
1436 | $rm \$dlpath' | ||
1437 | shlibpath_overrides_runpath=yes | ||
1438 | |||
1439 | case $host_os in | ||
1440 | cygwin*) | ||
1441 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
1442 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
1443 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
1444 | ;; | ||
1445 | mingw*) | ||
1446 | # MinGW DLLs use traditional 'lib' prefix | ||
1447 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
1448 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
1449 | if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then | ||
1450 | # It is most probably a Windows format PATH printed by | ||
1451 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
1452 | # path with ; separators, and with drive letters. We can handle the | ||
1453 | # drive letters (cygwin fileutils understands them), so leave them, | ||
1454 | # especially as we might pass files found there to a mingw objdump, | ||
1455 | # which wouldn't understand a cygwinified path. Ahh. | ||
1456 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
1457 | else | ||
1458 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
1459 | fi | ||
1460 | ;; | ||
1461 | pw32*) | ||
1462 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
1463 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
1464 | ;; | ||
1465 | esac | ||
1466 | ;; | ||
1467 | |||
1468 | *) | ||
1469 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
1470 | ;; | ||
1471 | esac | ||
1472 | dynamic_linker='Win32 ld.exe' | ||
1473 | # FIXME: first we should search . and the directory the executable is in | ||
1474 | shlibpath_var=PATH | ||
1475 | ;; | ||
1476 | |||
1477 | darwin* | rhapsody*) | ||
1478 | dynamic_linker="$host_os dyld" | ||
1479 | version_type=darwin | ||
1480 | need_lib_prefix=no | ||
1481 | need_version=no | ||
1482 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
1483 | soname_spec='${libname}${release}${major}$shared_ext' | ||
1484 | shlibpath_overrides_runpath=yes | ||
1485 | shlibpath_var=DYLD_LIBRARY_PATH | ||
1486 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
1487 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
1488 | if test "$GCC" = yes; then | ||
1489 | 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"` | ||
1490 | else | ||
1491 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
1492 | fi | ||
1493 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
1494 | ;; | ||
1495 | |||
1496 | dgux*) | ||
1497 | version_type=linux | ||
1498 | need_lib_prefix=no | ||
1499 | need_version=no | ||
1500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
1501 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1502 | shlibpath_var=LD_LIBRARY_PATH | ||
1503 | ;; | ||
1504 | |||
1505 | freebsd1*) | ||
1506 | dynamic_linker=no | ||
1507 | ;; | ||
1508 | |||
1509 | kfreebsd*-gnu) | ||
1510 | version_type=linux | ||
1511 | need_lib_prefix=no | ||
1512 | need_version=no | ||
1513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
1514 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1515 | shlibpath_var=LD_LIBRARY_PATH | ||
1516 | shlibpath_overrides_runpath=no | ||
1517 | hardcode_into_libs=yes | ||
1518 | dynamic_linker='GNU ld.so' | ||
1519 | ;; | ||
1520 | |||
1521 | freebsd* | dragonfly*) | ||
1522 | # DragonFly does not have aout. When/if they implement a new | ||
1523 | # versioning mechanism, adjust this. | ||
1524 | if test -x /usr/bin/objformat; then | ||
1525 | objformat=`/usr/bin/objformat` | ||
1526 | else | ||
1527 | case $host_os in | ||
1528 | freebsd[[123]]*) objformat=aout ;; | ||
1529 | *) objformat=elf ;; | ||
1530 | esac | ||
1531 | fi | ||
1532 | version_type=freebsd-$objformat | ||
1533 | case $version_type in | ||
1534 | freebsd-elf*) | ||
1535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
1536 | need_version=no | ||
1537 | need_lib_prefix=no | ||
1538 | ;; | ||
1539 | freebsd-*) | ||
1540 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
1541 | need_version=yes | ||
1542 | ;; | ||
1543 | esac | ||
1544 | shlibpath_var=LD_LIBRARY_PATH | ||
1545 | case $host_os in | ||
1546 | freebsd2*) | ||
1547 | shlibpath_overrides_runpath=yes | ||
1548 | ;; | ||
1549 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) | ||
1550 | shlibpath_overrides_runpath=yes | ||
1551 | hardcode_into_libs=yes | ||
1552 | ;; | ||
1553 | freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | ||
1554 | freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | ||
1555 | shlibpath_overrides_runpath=no | ||
1556 | hardcode_into_libs=yes | ||
1557 | ;; | ||
1558 | freebsd*) # from 4.6 on | ||
1559 | shlibpath_overrides_runpath=yes | ||
1560 | hardcode_into_libs=yes | ||
1561 | ;; | ||
1562 | esac | ||
1563 | ;; | ||
1564 | |||
1565 | gnu*) | ||
1566 | version_type=linux | ||
1567 | need_lib_prefix=no | ||
1568 | need_version=no | ||
1569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
1570 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1571 | shlibpath_var=LD_LIBRARY_PATH | ||
1572 | hardcode_into_libs=yes | ||
1573 | ;; | ||
1574 | |||
1575 | hpux9* | hpux10* | hpux11*) | ||
1576 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
1577 | # link against other versions. | ||
1578 | version_type=sunos | ||
1579 | need_lib_prefix=no | ||
1580 | need_version=no | ||
1581 | case $host_cpu in | ||
1582 | ia64*) | ||
1583 | shrext_cmds='.so' | ||
1584 | hardcode_into_libs=yes | ||
1585 | dynamic_linker="$host_os dld.so" | ||
1586 | shlibpath_var=LD_LIBRARY_PATH | ||
1587 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
1588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1589 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1590 | if test "X$HPUX_IA64_MODE" = X32; then | ||
1591 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
1592 | else | ||
1593 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
1594 | fi | ||
1595 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
1596 | ;; | ||
1597 | hppa*64*) | ||
1598 | shrext_cmds='.sl' | ||
1599 | hardcode_into_libs=yes | ||
1600 | dynamic_linker="$host_os dld.sl" | ||
1601 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
1602 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
1603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1604 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1605 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
1606 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
1607 | ;; | ||
1608 | *) | ||
1609 | shrext_cmds='.sl' | ||
1610 | dynamic_linker="$host_os dld.sl" | ||
1611 | shlibpath_var=SHLIB_PATH | ||
1612 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
1613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1614 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1615 | ;; | ||
1616 | esac | ||
1617 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
1618 | postinstall_cmds='chmod 555 $lib' | ||
1619 | ;; | ||
1620 | |||
1621 | interix3*) | ||
1622 | version_type=linux | ||
1623 | need_lib_prefix=no | ||
1624 | need_version=no | ||
1625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
1626 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1627 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
1628 | shlibpath_var=LD_LIBRARY_PATH | ||
1629 | shlibpath_overrides_runpath=no | ||
1630 | hardcode_into_libs=yes | ||
1631 | ;; | ||
1632 | |||
1633 | irix5* | irix6* | nonstopux*) | ||
1634 | case $host_os in | ||
1635 | nonstopux*) version_type=nonstopux ;; | ||
1636 | *) | ||
1637 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
1638 | version_type=linux | ||
1639 | else | ||
1640 | version_type=irix | ||
1641 | fi ;; | ||
1642 | esac | ||
1643 | need_lib_prefix=no | ||
1644 | need_version=no | ||
1645 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
1647 | case $host_os in | ||
1648 | irix5* | nonstopux*) | ||
1649 | libsuff= shlibsuff= | ||
1650 | ;; | ||
1651 | *) | ||
1652 | case $LD in # libtool.m4 will add one of these switches to LD | ||
1653 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
1654 | libsuff= shlibsuff= libmagic=32-bit;; | ||
1655 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
1656 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
1657 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
1658 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
1659 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
1660 | esac | ||
1661 | ;; | ||
1662 | esac | ||
1663 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
1664 | shlibpath_overrides_runpath=no | ||
1665 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
1666 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
1667 | hardcode_into_libs=yes | ||
1668 | ;; | ||
1669 | |||
1670 | # No shared lib support for Linux oldld, aout, or coff. | ||
1671 | linux*oldld* | linux*aout* | linux*coff*) | ||
1672 | dynamic_linker=no | ||
1673 | ;; | ||
1674 | |||
1675 | # This must be Linux ELF. | ||
1676 | linux*) | ||
1677 | version_type=linux | ||
1678 | need_lib_prefix=no | ||
1679 | need_version=no | ||
1680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1681 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1682 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
1683 | shlibpath_var=LD_LIBRARY_PATH | ||
1684 | shlibpath_overrides_runpath=no | ||
1685 | # This implies no fast_install, which is unacceptable. | ||
1686 | # Some rework will be needed to allow for fast_install | ||
1687 | # before this can be enabled. | ||
1688 | hardcode_into_libs=yes | ||
1689 | |||
1690 | # Append ld.so.conf contents to the search path | ||
1691 | if test -f /etc/ld.so.conf; then | ||
1692 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | ||
1693 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
1694 | fi | ||
1695 | |||
1696 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
1697 | # powerpc, because MkLinux only supported shared libraries with the | ||
1698 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
1699 | # most powerpc-linux boxes support dynamic linking these days and | ||
1700 | # people can always --disable-shared, the test was removed, and we | ||
1701 | # assume the GNU/Linux dynamic linker is in use. | ||
1702 | dynamic_linker='GNU/Linux ld.so' | ||
1703 | ;; | ||
1704 | |||
1705 | netbsdelf*-gnu) | ||
1706 | version_type=linux | ||
1707 | need_lib_prefix=no | ||
1708 | need_version=no | ||
1709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
1710 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1711 | shlibpath_var=LD_LIBRARY_PATH | ||
1712 | shlibpath_overrides_runpath=no | ||
1713 | hardcode_into_libs=yes | ||
1714 | dynamic_linker='NetBSD ld.elf_so' | ||
1715 | ;; | ||
1716 | |||
1717 | knetbsd*-gnu) | ||
1718 | version_type=linux | ||
1719 | need_lib_prefix=no | ||
1720 | need_version=no | ||
1721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
1722 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1723 | shlibpath_var=LD_LIBRARY_PATH | ||
1724 | shlibpath_overrides_runpath=no | ||
1725 | hardcode_into_libs=yes | ||
1726 | dynamic_linker='GNU ld.so' | ||
1727 | ;; | ||
1728 | |||
1729 | netbsd*) | ||
1730 | version_type=sunos | ||
1731 | need_lib_prefix=no | ||
1732 | need_version=no | ||
1733 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
1734 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
1735 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
1736 | dynamic_linker='NetBSD (a.out) ld.so' | ||
1737 | else | ||
1738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
1739 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1740 | dynamic_linker='NetBSD ld.elf_so' | ||
1741 | fi | ||
1742 | shlibpath_var=LD_LIBRARY_PATH | ||
1743 | shlibpath_overrides_runpath=yes | ||
1744 | hardcode_into_libs=yes | ||
1745 | ;; | ||
1746 | |||
1747 | newsos6) | ||
1748 | version_type=linux | ||
1749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1750 | shlibpath_var=LD_LIBRARY_PATH | ||
1751 | shlibpath_overrides_runpath=yes | ||
1752 | ;; | ||
1753 | |||
1754 | nto-qnx*) | ||
1755 | version_type=linux | ||
1756 | need_lib_prefix=no | ||
1757 | need_version=no | ||
1758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1759 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1760 | shlibpath_var=LD_LIBRARY_PATH | ||
1761 | shlibpath_overrides_runpath=yes | ||
1762 | ;; | ||
1763 | |||
1764 | openbsd*) | ||
1765 | version_type=sunos | ||
1766 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
1767 | need_lib_prefix=no | ||
1768 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
1769 | case $host_os in | ||
1770 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
1771 | *) need_version=no ;; | ||
1772 | esac | ||
1773 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
1774 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
1775 | shlibpath_var=LD_LIBRARY_PATH | ||
1776 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
1777 | case $host_os in | ||
1778 | openbsd2.[[89]] | openbsd2.[[89]].*) | ||
1779 | shlibpath_overrides_runpath=no | ||
1780 | ;; | ||
1781 | *) | ||
1782 | shlibpath_overrides_runpath=yes | ||
1783 | ;; | ||
1784 | esac | ||
1785 | else | ||
1786 | shlibpath_overrides_runpath=yes | ||
1787 | fi | ||
1788 | ;; | ||
1789 | |||
1790 | os2*) | ||
1791 | libname_spec='$name' | ||
1792 | shrext_cmds=".dll" | ||
1793 | need_lib_prefix=no | ||
1794 | library_names_spec='$libname${shared_ext} $libname.a' | ||
1795 | dynamic_linker='OS/2 ld.exe' | ||
1796 | shlibpath_var=LIBPATH | ||
1797 | ;; | ||
1798 | |||
1799 | osf3* | osf4* | osf5*) | ||
1800 | version_type=osf | ||
1801 | need_lib_prefix=no | ||
1802 | need_version=no | ||
1803 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1805 | shlibpath_var=LD_LIBRARY_PATH | ||
1806 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
1807 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
1808 | ;; | ||
1809 | |||
1810 | solaris*) | ||
1811 | version_type=linux | ||
1812 | need_lib_prefix=no | ||
1813 | need_version=no | ||
1814 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1815 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1816 | shlibpath_var=LD_LIBRARY_PATH | ||
1817 | shlibpath_overrides_runpath=yes | ||
1818 | hardcode_into_libs=yes | ||
1819 | # ldd complains unless libraries are executable | ||
1820 | postinstall_cmds='chmod +x $lib' | ||
1821 | ;; | ||
1822 | |||
1823 | sunos4*) | ||
1824 | version_type=sunos | ||
1825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
1826 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
1827 | shlibpath_var=LD_LIBRARY_PATH | ||
1828 | shlibpath_overrides_runpath=yes | ||
1829 | if test "$with_gnu_ld" = yes; then | ||
1830 | need_lib_prefix=no | ||
1831 | fi | ||
1832 | need_version=yes | ||
1833 | ;; | ||
1834 | |||
1835 | sysv4 | sysv4.3*) | ||
1836 | version_type=linux | ||
1837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1838 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1839 | shlibpath_var=LD_LIBRARY_PATH | ||
1840 | case $host_vendor in | ||
1841 | sni) | ||
1842 | shlibpath_overrides_runpath=no | ||
1843 | need_lib_prefix=no | ||
1844 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
1845 | runpath_var=LD_RUN_PATH | ||
1846 | ;; | ||
1847 | siemens) | ||
1848 | need_lib_prefix=no | ||
1849 | ;; | ||
1850 | motorola) | ||
1851 | need_lib_prefix=no | ||
1852 | need_version=no | ||
1853 | shlibpath_overrides_runpath=no | ||
1854 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
1855 | ;; | ||
1856 | esac | ||
1857 | ;; | ||
1858 | |||
1859 | sysv4*MP*) | ||
1860 | if test -d /usr/nec ;then | ||
1861 | version_type=linux | ||
1862 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
1863 | soname_spec='$libname${shared_ext}.$major' | ||
1864 | shlibpath_var=LD_LIBRARY_PATH | ||
1865 | fi | ||
1866 | ;; | ||
1867 | |||
1868 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
1869 | version_type=freebsd-elf | ||
1870 | need_lib_prefix=no | ||
1871 | need_version=no | ||
1872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
1873 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1874 | shlibpath_var=LD_LIBRARY_PATH | ||
1875 | hardcode_into_libs=yes | ||
1876 | if test "$with_gnu_ld" = yes; then | ||
1877 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
1878 | shlibpath_overrides_runpath=no | ||
1879 | else | ||
1880 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
1881 | shlibpath_overrides_runpath=yes | ||
1882 | case $host_os in | ||
1883 | sco3.2v5*) | ||
1884 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
1885 | ;; | ||
1886 | esac | ||
1887 | fi | ||
1888 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
1889 | ;; | ||
1890 | |||
1891 | uts4*) | ||
1892 | version_type=linux | ||
1893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1894 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1895 | shlibpath_var=LD_LIBRARY_PATH | ||
1896 | ;; | ||
1897 | |||
1898 | *) | ||
1899 | dynamic_linker=no | ||
1900 | ;; | ||
1901 | esac | ||
1902 | AC_MSG_RESULT([$dynamic_linker]) | ||
1903 | test "$dynamic_linker" = no && can_build_shared=no | ||
1904 | |||
1905 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
1906 | if test "$GCC" = yes; then | ||
1907 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
1908 | fi | ||
1909 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER | ||
1910 | |||
1911 | |||
1912 | # _LT_AC_TAGCONFIG | ||
1913 | # ---------------- | ||
1914 | AC_DEFUN([_LT_AC_TAGCONFIG], | ||
1915 | [AC_ARG_WITH([tags], | ||
1916 | [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], | ||
1917 | [include additional configurations @<:@automatic@:>@])], | ||
1918 | [tagnames="$withval"]) | ||
1919 | |||
1920 | if test -f "$ltmain" && test -n "$tagnames"; then | ||
1921 | if test ! -f "${ofile}"; then | ||
1922 | AC_MSG_WARN([output file `$ofile' does not exist]) | ||
1923 | fi | ||
1924 | |||
1925 | if test -z "$LTCC"; then | ||
1926 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | ||
1927 | if test -z "$LTCC"; then | ||
1928 | AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) | ||
1929 | else | ||
1930 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) | ||
1931 | fi | ||
1932 | fi | ||
1933 | if test -z "$LTCFLAGS"; then | ||
1934 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | ||
1935 | fi | ||
1936 | |||
1937 | # Extract list of available tagged configurations in $ofile. | ||
1938 | # Note that this assumes the entire list is on one line. | ||
1939 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | ||
1940 | |||
1941 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
1942 | for tagname in $tagnames; do | ||
1943 | IFS="$lt_save_ifs" | ||
1944 | # Check whether tagname contains only valid characters | ||
1945 | case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in | ||
1946 | "") ;; | ||
1947 | *) AC_MSG_ERROR([invalid tag name: $tagname]) | ||
1948 | ;; | ||
1949 | esac | ||
1950 | |||
1951 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | ||
1952 | then | ||
1953 | AC_MSG_ERROR([tag name \"$tagname\" already exists]) | ||
1954 | fi | ||
1955 | |||
1956 | # Update the list of available tags. | ||
1957 | if test -n "$tagname"; then | ||
1958 | echo appending configuration tag \"$tagname\" to $ofile | ||
1959 | |||
1960 | case $tagname in | ||
1961 | CXX) | ||
1962 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
1963 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
1964 | (test "X$CXX" != "Xg++"))) ; then | ||
1965 | AC_LIBTOOL_LANG_CXX_CONFIG | ||
1966 | else | ||
1967 | tagname="" | ||
1968 | fi | ||
1969 | ;; | ||
1970 | |||
1971 | F77) | ||
1972 | if test -n "$F77" && test "X$F77" != "Xno"; then | ||
1973 | AC_LIBTOOL_LANG_F77_CONFIG | ||
1974 | else | ||
1975 | tagname="" | ||
1976 | fi | ||
1977 | ;; | ||
1978 | |||
1979 | GCJ) | ||
1980 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | ||
1981 | AC_LIBTOOL_LANG_GCJ_CONFIG | ||
1982 | else | ||
1983 | tagname="" | ||
1984 | fi | ||
1985 | ;; | ||
1986 | |||
1987 | RC) | ||
1988 | AC_LIBTOOL_LANG_RC_CONFIG | ||
1989 | ;; | ||
1990 | |||
1991 | *) | ||
1992 | AC_MSG_ERROR([Unsupported tag name: $tagname]) | ||
1993 | ;; | ||
1994 | esac | ||
1995 | |||
1996 | # Append the new tag name to the list of available tags. | ||
1997 | if test -n "$tagname" ; then | ||
1998 | available_tags="$available_tags $tagname" | ||
1999 | fi | ||
2000 | fi | ||
2001 | done | ||
2002 | IFS="$lt_save_ifs" | ||
2003 | |||
2004 | # Now substitute the updated list of available tags. | ||
2005 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | ||
2006 | mv "${ofile}T" "$ofile" | ||
2007 | chmod +x "$ofile" | ||
2008 | else | ||
2009 | rm -f "${ofile}T" | ||
2010 | AC_MSG_ERROR([unable to update list of available tagged configurations.]) | ||
2011 | fi | ||
2012 | fi | ||
2013 | ])# _LT_AC_TAGCONFIG | ||
2014 | |||
2015 | |||
2016 | # AC_LIBTOOL_DLOPEN | ||
2017 | # ----------------- | ||
2018 | # enable checks for dlopen support | ||
2019 | AC_DEFUN([AC_LIBTOOL_DLOPEN], | ||
2020 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) | ||
2021 | ])# AC_LIBTOOL_DLOPEN | ||
2022 | |||
2023 | |||
2024 | # AC_LIBTOOL_WIN32_DLL | ||
2025 | # -------------------- | ||
2026 | # declare package support for building win32 DLLs | ||
2027 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | ||
2028 | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | ||
2029 | ])# AC_LIBTOOL_WIN32_DLL | ||
2030 | |||
2031 | |||
2032 | # AC_ENABLE_SHARED([DEFAULT]) | ||
2033 | # --------------------------- | ||
2034 | # implement the --enable-shared flag | ||
2035 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
2036 | AC_DEFUN([AC_ENABLE_SHARED], | ||
2037 | [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | ||
2038 | AC_ARG_ENABLE([shared], | ||
2039 | [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | ||
2040 | [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], | ||
2041 | [p=${PACKAGE-default} | ||
2042 | case $enableval in | ||
2043 | yes) enable_shared=yes ;; | ||
2044 | no) enable_shared=no ;; | ||
2045 | *) | ||
2046 | enable_shared=no | ||
2047 | # Look at the argument we got. We use all the common list separators. | ||
2048 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
2049 | for pkg in $enableval; do | ||
2050 | IFS="$lt_save_ifs" | ||
2051 | if test "X$pkg" = "X$p"; then | ||
2052 | enable_shared=yes | ||
2053 | fi | ||
2054 | done | ||
2055 | IFS="$lt_save_ifs" | ||
2056 | ;; | ||
2057 | esac], | ||
2058 | [enable_shared=]AC_ENABLE_SHARED_DEFAULT) | ||
2059 | ])# AC_ENABLE_SHARED | ||
2060 | |||
2061 | |||
2062 | # AC_DISABLE_SHARED | ||
2063 | # ----------------- | ||
2064 | # set the default shared flag to --disable-shared | ||
2065 | AC_DEFUN([AC_DISABLE_SHARED], | ||
2066 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
2067 | AC_ENABLE_SHARED(no) | ||
2068 | ])# AC_DISABLE_SHARED | ||
2069 | |||
2070 | |||
2071 | # AC_ENABLE_STATIC([DEFAULT]) | ||
2072 | # --------------------------- | ||
2073 | # implement the --enable-static flag | ||
2074 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
2075 | AC_DEFUN([AC_ENABLE_STATIC], | ||
2076 | [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | ||
2077 | AC_ARG_ENABLE([static], | ||
2078 | [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], | ||
2079 | [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], | ||
2080 | [p=${PACKAGE-default} | ||
2081 | case $enableval in | ||
2082 | yes) enable_static=yes ;; | ||
2083 | no) enable_static=no ;; | ||
2084 | *) | ||
2085 | enable_static=no | ||
2086 | # Look at the argument we got. We use all the common list separators. | ||
2087 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
2088 | for pkg in $enableval; do | ||
2089 | IFS="$lt_save_ifs" | ||
2090 | if test "X$pkg" = "X$p"; then | ||
2091 | enable_static=yes | ||
2092 | fi | ||
2093 | done | ||
2094 | IFS="$lt_save_ifs" | ||
2095 | ;; | ||
2096 | esac], | ||
2097 | [enable_static=]AC_ENABLE_STATIC_DEFAULT) | ||
2098 | ])# AC_ENABLE_STATIC | ||
2099 | |||
2100 | |||
2101 | # AC_DISABLE_STATIC | ||
2102 | # ----------------- | ||
2103 | # set the default static flag to --disable-static | ||
2104 | AC_DEFUN([AC_DISABLE_STATIC], | ||
2105 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
2106 | AC_ENABLE_STATIC(no) | ||
2107 | ])# AC_DISABLE_STATIC | ||
2108 | |||
2109 | |||
2110 | # AC_ENABLE_FAST_INSTALL([DEFAULT]) | ||
2111 | # --------------------------------- | ||
2112 | # implement the --enable-fast-install flag | ||
2113 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
2114 | AC_DEFUN([AC_ENABLE_FAST_INSTALL], | ||
2115 | [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | ||
2116 | AC_ARG_ENABLE([fast-install], | ||
2117 | [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], | ||
2118 | [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], | ||
2119 | [p=${PACKAGE-default} | ||
2120 | case $enableval in | ||
2121 | yes) enable_fast_install=yes ;; | ||
2122 | no) enable_fast_install=no ;; | ||
2123 | *) | ||
2124 | enable_fast_install=no | ||
2125 | # Look at the argument we got. We use all the common list separators. | ||
2126 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
2127 | for pkg in $enableval; do | ||
2128 | IFS="$lt_save_ifs" | ||
2129 | if test "X$pkg" = "X$p"; then | ||
2130 | enable_fast_install=yes | ||
2131 | fi | ||
2132 | done | ||
2133 | IFS="$lt_save_ifs" | ||
2134 | ;; | ||
2135 | esac], | ||
2136 | [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) | ||
2137 | ])# AC_ENABLE_FAST_INSTALL | ||
2138 | |||
2139 | |||
2140 | # AC_DISABLE_FAST_INSTALL | ||
2141 | # ----------------------- | ||
2142 | # set the default to --disable-fast-install | ||
2143 | AC_DEFUN([AC_DISABLE_FAST_INSTALL], | ||
2144 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
2145 | AC_ENABLE_FAST_INSTALL(no) | ||
2146 | ])# AC_DISABLE_FAST_INSTALL | ||
2147 | |||
2148 | |||
2149 | # AC_LIBTOOL_PICMODE([MODE]) | ||
2150 | # -------------------------- | ||
2151 | # implement the --with-pic flag | ||
2152 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | ||
2153 | AC_DEFUN([AC_LIBTOOL_PICMODE], | ||
2154 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
2155 | pic_mode=ifelse($#,1,$1,default) | ||
2156 | ])# AC_LIBTOOL_PICMODE | ||
2157 | |||
2158 | |||
2159 | # AC_PROG_EGREP | ||
2160 | # ------------- | ||
2161 | # This is predefined starting with Autoconf 2.54, so this conditional | ||
2162 | # definition can be removed once we require Autoconf 2.54 or later. | ||
2163 | m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], | ||
2164 | [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], | ||
2165 | [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
2166 | then ac_cv_prog_egrep='grep -E' | ||
2167 | else ac_cv_prog_egrep='egrep' | ||
2168 | fi]) | ||
2169 | EGREP=$ac_cv_prog_egrep | ||
2170 | AC_SUBST([EGREP]) | ||
2171 | ])]) | ||
2172 | |||
2173 | |||
2174 | # AC_PATH_TOOL_PREFIX | ||
2175 | # ------------------- | ||
2176 | # find a file program which can recognise shared library | ||
2177 | AC_DEFUN([AC_PATH_TOOL_PREFIX], | ||
2178 | [AC_REQUIRE([AC_PROG_EGREP])dnl | ||
2179 | AC_MSG_CHECKING([for $1]) | ||
2180 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | ||
2181 | [case $MAGIC_CMD in | ||
2182 | [[\\/*] | ?:[\\/]*]) | ||
2183 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
2184 | ;; | ||
2185 | *) | ||
2186 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
2187 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
2188 | dnl $ac_dummy forces splitting on constant user-supplied paths. | ||
2189 | dnl POSIX.2 word splitting is done only on the output of word expansions, | ||
2190 | dnl not every word. This closes a longstanding sh security hole. | ||
2191 | ac_dummy="ifelse([$2], , $PATH, [$2])" | ||
2192 | for ac_dir in $ac_dummy; do | ||
2193 | IFS="$lt_save_ifs" | ||
2194 | test -z "$ac_dir" && ac_dir=. | ||
2195 | if test -f $ac_dir/$1; then | ||
2196 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" | ||
2197 | if test -n "$file_magic_test_file"; then | ||
2198 | case $deplibs_check_method in | ||
2199 | "file_magic "*) | ||
2200 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
2201 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
2202 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
2203 | $EGREP "$file_magic_regex" > /dev/null; then | ||
2204 | : | ||
2205 | else | ||
2206 | cat <<EOF 1>&2 | ||
2207 | |||
2208 | *** Warning: the command libtool uses to detect shared libraries, | ||
2209 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
2210 | *** The result is that libtool may fail to recognize shared libraries | ||
2211 | *** as such. This will affect the creation of libtool libraries that | ||
2212 | *** depend on shared libraries, but programs linked with such libtool | ||
2213 | *** libraries will work regardless of this problem. Nevertheless, you | ||
2214 | *** may want to report the problem to your system manager and/or to | ||
2215 | *** bug-libtool@gnu.org | ||
2216 | |||
2217 | EOF | ||
2218 | fi ;; | ||
2219 | esac | ||
2220 | fi | ||
2221 | break | ||
2222 | fi | ||
2223 | done | ||
2224 | IFS="$lt_save_ifs" | ||
2225 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
2226 | ;; | ||
2227 | esac]) | ||
2228 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
2229 | if test -n "$MAGIC_CMD"; then | ||
2230 | AC_MSG_RESULT($MAGIC_CMD) | ||
2231 | else | ||
2232 | AC_MSG_RESULT(no) | ||
2233 | fi | ||
2234 | ])# AC_PATH_TOOL_PREFIX | ||
2235 | |||
2236 | |||
2237 | # AC_PATH_MAGIC | ||
2238 | # ------------- | ||
2239 | # find a file program which can recognise a shared library | ||
2240 | AC_DEFUN([AC_PATH_MAGIC], | ||
2241 | [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | ||
2242 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
2243 | if test -n "$ac_tool_prefix"; then | ||
2244 | AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | ||
2245 | else | ||
2246 | MAGIC_CMD=: | ||
2247 | fi | ||
2248 | fi | ||
2249 | ])# AC_PATH_MAGIC | ||
2250 | |||
2251 | |||
2252 | # AC_PROG_LD | ||
2253 | # ---------- | ||
2254 | # find the pathname to the GNU or non-GNU linker | ||
2255 | AC_DEFUN([AC_PROG_LD], | ||
2256 | [AC_ARG_WITH([gnu-ld], | ||
2257 | [AC_HELP_STRING([--with-gnu-ld], | ||
2258 | [assume the C compiler uses GNU ld @<:@default=no@:>@])], | ||
2259 | [test "$withval" = no || with_gnu_ld=yes], | ||
2260 | [with_gnu_ld=no]) | ||
2261 | AC_REQUIRE([LT_AC_PROG_SED])dnl | ||
2262 | AC_REQUIRE([AC_PROG_CC])dnl | ||
2263 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
2264 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
2265 | ac_prog=ld | ||
2266 | if test "$GCC" = yes; then | ||
2267 | # Check if gcc -print-prog-name=ld gives a path. | ||
2268 | AC_MSG_CHECKING([for ld used by $CC]) | ||
2269 | case $host in | ||
2270 | *-*-mingw*) | ||
2271 | # gcc leaves a trailing carriage return which upsets mingw | ||
2272 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
2273 | *) | ||
2274 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
2275 | esac | ||
2276 | case $ac_prog in | ||
2277 | # Accept absolute paths. | ||
2278 | [[\\/]]* | ?:[[\\/]]*) | ||
2279 | re_direlt='/[[^/]][[^/]]*/\.\./' | ||
2280 | # Canonicalize the pathname of ld | ||
2281 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
2282 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
2283 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||
2284 | done | ||
2285 | test -z "$LD" && LD="$ac_prog" | ||
2286 | ;; | ||
2287 | "") | ||
2288 | # If it fails, then pretend we aren't using GCC. | ||
2289 | ac_prog=ld | ||
2290 | ;; | ||
2291 | *) | ||
2292 | # If it is relative, then search for the first ld in PATH. | ||
2293 | with_gnu_ld=unknown | ||
2294 | ;; | ||
2295 | esac | ||
2296 | elif test "$with_gnu_ld" = yes; then | ||
2297 | AC_MSG_CHECKING([for GNU ld]) | ||
2298 | else | ||
2299 | AC_MSG_CHECKING([for non-GNU ld]) | ||
2300 | fi | ||
2301 | AC_CACHE_VAL(lt_cv_path_LD, | ||
2302 | [if test -z "$LD"; then | ||
2303 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
2304 | for ac_dir in $PATH; do | ||
2305 | IFS="$lt_save_ifs" | ||
2306 | test -z "$ac_dir" && ac_dir=. | ||
2307 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
2308 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
2309 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
2310 | # but apparently some variants of GNU ld only accept -v. | ||
2311 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
2312 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
2313 | *GNU* | *'with BFD'*) | ||
2314 | test "$with_gnu_ld" != no && break | ||
2315 | ;; | ||
2316 | *) | ||
2317 | test "$with_gnu_ld" != yes && break | ||
2318 | ;; | ||
2319 | esac | ||
2320 | fi | ||
2321 | done | ||
2322 | IFS="$lt_save_ifs" | ||
2323 | else | ||
2324 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
2325 | fi]) | ||
2326 | LD="$lt_cv_path_LD" | ||
2327 | if test -n "$LD"; then | ||
2328 | AC_MSG_RESULT($LD) | ||
2329 | else | ||
2330 | AC_MSG_RESULT(no) | ||
2331 | fi | ||
2332 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | ||
2333 | AC_PROG_LD_GNU | ||
2334 | ])# AC_PROG_LD | ||
2335 | |||
2336 | |||
2337 | # AC_PROG_LD_GNU | ||
2338 | # -------------- | ||
2339 | AC_DEFUN([AC_PROG_LD_GNU], | ||
2340 | [AC_REQUIRE([AC_PROG_EGREP])dnl | ||
2341 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | ||
2342 | [# I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
2343 | case `$LD -v 2>&1 </dev/null` in | ||
2344 | *GNU* | *'with BFD'*) | ||
2345 | lt_cv_prog_gnu_ld=yes | ||
2346 | ;; | ||
2347 | *) | ||
2348 | lt_cv_prog_gnu_ld=no | ||
2349 | ;; | ||
2350 | esac]) | ||
2351 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
2352 | ])# AC_PROG_LD_GNU | ||
2353 | |||
2354 | |||
2355 | # AC_PROG_LD_RELOAD_FLAG | ||
2356 | # ---------------------- | ||
2357 | # find reload flag for linker | ||
2358 | # -- PORTME Some linkers may need a different reload flag. | ||
2359 | AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], | ||
2360 | [AC_CACHE_CHECK([for $LD option to reload object files], | ||
2361 | lt_cv_ld_reload_flag, | ||
2362 | [lt_cv_ld_reload_flag='-r']) | ||
2363 | reload_flag=$lt_cv_ld_reload_flag | ||
2364 | case $reload_flag in | ||
2365 | "" | " "*) ;; | ||
2366 | *) reload_flag=" $reload_flag" ;; | ||
2367 | esac | ||
2368 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
2369 | case $host_os in | ||
2370 | darwin*) | ||
2371 | if test "$GCC" = yes; then | ||
2372 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
2373 | else | ||
2374 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
2375 | fi | ||
2376 | ;; | ||
2377 | esac | ||
2378 | ])# AC_PROG_LD_RELOAD_FLAG | ||
2379 | |||
2380 | |||
2381 | # AC_DEPLIBS_CHECK_METHOD | ||
2382 | # ----------------------- | ||
2383 | # how to check for library dependencies | ||
2384 | # -- PORTME fill in with the dynamic library characteristics | ||
2385 | AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], | ||
2386 | [AC_CACHE_CHECK([how to recognise dependent libraries], | ||
2387 | lt_cv_deplibs_check_method, | ||
2388 | [lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
2389 | lt_cv_file_magic_test_file= | ||
2390 | lt_cv_deplibs_check_method='unknown' | ||
2391 | # Need to set the preceding variable on all platforms that support | ||
2392 | # interlibrary dependencies. | ||
2393 | # 'none' -- dependencies not supported. | ||
2394 | # `unknown' -- same as none, but documents that we really don't know. | ||
2395 | # 'pass_all' -- all dependencies passed with no checks. | ||
2396 | # 'test_compile' -- check by making test program. | ||
2397 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
2398 | # which responds to the $file_magic_cmd with a given extended regex. | ||
2399 | # If you have `file' or equivalent on your system and you're not sure | ||
2400 | # whether `pass_all' will *always* work, you probably want this one. | ||
2401 | |||
2402 | case $host_os in | ||
2403 | aix4* | aix5*) | ||
2404 | lt_cv_deplibs_check_method=pass_all | ||
2405 | ;; | ||
2406 | |||
2407 | beos*) | ||
2408 | lt_cv_deplibs_check_method=pass_all | ||
2409 | ;; | ||
2410 | |||
2411 | bsdi[[45]]*) | ||
2412 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | ||
2413 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
2414 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
2415 | ;; | ||
2416 | |||
2417 | cygwin*) | ||
2418 | # func_win32_libid is a shell function defined in ltmain.sh | ||
2419 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
2420 | lt_cv_file_magic_cmd='func_win32_libid' | ||
2421 | ;; | ||
2422 | |||
2423 | mingw* | pw32*) | ||
2424 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
2425 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | ||
2426 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
2427 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
2428 | ;; | ||
2429 | |||
2430 | darwin* | rhapsody*) | ||
2431 | lt_cv_deplibs_check_method=pass_all | ||
2432 | ;; | ||
2433 | |||
2434 | freebsd* | kfreebsd*-gnu | dragonfly*) | ||
2435 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
2436 | case $host_cpu in | ||
2437 | i*86 ) | ||
2438 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
2439 | # Let's accept both of them until this is cleared up. | ||
2440 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | ||
2441 | lt_cv_file_magic_cmd=/usr/bin/file | ||
2442 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
2443 | ;; | ||
2444 | esac | ||
2445 | else | ||
2446 | lt_cv_deplibs_check_method=pass_all | ||
2447 | fi | ||
2448 | ;; | ||
2449 | |||
2450 | gnu*) | ||
2451 | lt_cv_deplibs_check_method=pass_all | ||
2452 | ;; | ||
2453 | |||
2454 | hpux10.20* | hpux11*) | ||
2455 | lt_cv_file_magic_cmd=/usr/bin/file | ||
2456 | case $host_cpu in | ||
2457 | ia64*) | ||
2458 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | ||
2459 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
2460 | ;; | ||
2461 | hppa*64*) | ||
2462 | [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]'] | ||
2463 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
2464 | ;; | ||
2465 | *) | ||
2466 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' | ||
2467 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
2468 | ;; | ||
2469 | esac | ||
2470 | ;; | ||
2471 | |||
2472 | interix3*) | ||
2473 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
2474 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | ||
2475 | ;; | ||
2476 | |||
2477 | irix5* | irix6* | nonstopux*) | ||
2478 | case $LD in | ||
2479 | *-32|*"-32 ") libmagic=32-bit;; | ||
2480 | *-n32|*"-n32 ") libmagic=N32;; | ||
2481 | *-64|*"-64 ") libmagic=64-bit;; | ||
2482 | *) libmagic=never-match;; | ||
2483 | esac | ||
2484 | lt_cv_deplibs_check_method=pass_all | ||
2485 | ;; | ||
2486 | |||
2487 | # This must be Linux ELF. | ||
2488 | linux*) | ||
2489 | lt_cv_deplibs_check_method=pass_all | ||
2490 | ;; | ||
2491 | |||
2492 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
2493 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
2494 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
2495 | else | ||
2496 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | ||
2497 | fi | ||
2498 | ;; | ||
2499 | |||
2500 | newos6*) | ||
2501 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | ||
2502 | lt_cv_file_magic_cmd=/usr/bin/file | ||
2503 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
2504 | ;; | ||
2505 | |||
2506 | nto-qnx*) | ||
2507 | lt_cv_deplibs_check_method=unknown | ||
2508 | ;; | ||
2509 | |||
2510 | openbsd*) | ||
2511 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
2512 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | ||
2513 | else | ||
2514 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
2515 | fi | ||
2516 | ;; | ||
2517 | |||
2518 | osf3* | osf4* | osf5*) | ||
2519 | lt_cv_deplibs_check_method=pass_all | ||
2520 | ;; | ||
2521 | |||
2522 | solaris*) | ||
2523 | lt_cv_deplibs_check_method=pass_all | ||
2524 | ;; | ||
2525 | |||
2526 | sysv4 | sysv4.3*) | ||
2527 | case $host_vendor in | ||
2528 | motorola) | ||
2529 | 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]]' | ||
2530 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
2531 | ;; | ||
2532 | ncr) | ||
2533 | lt_cv_deplibs_check_method=pass_all | ||
2534 | ;; | ||
2535 | sequent) | ||
2536 | lt_cv_file_magic_cmd='/bin/file' | ||
2537 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' | ||
2538 | ;; | ||
2539 | sni) | ||
2540 | lt_cv_file_magic_cmd='/bin/file' | ||
2541 | lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" | ||
2542 | lt_cv_file_magic_test_file=/lib/libc.so | ||
2543 | ;; | ||
2544 | siemens) | ||
2545 | lt_cv_deplibs_check_method=pass_all | ||
2546 | ;; | ||
2547 | pc) | ||
2548 | lt_cv_deplibs_check_method=pass_all | ||
2549 | ;; | ||
2550 | esac | ||
2551 | ;; | ||
2552 | |||
2553 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
2554 | lt_cv_deplibs_check_method=pass_all | ||
2555 | ;; | ||
2556 | esac | ||
2557 | ]) | ||
2558 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
2559 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
2560 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
2561 | ])# AC_DEPLIBS_CHECK_METHOD | ||
2562 | |||
2563 | |||
2564 | # AC_PROG_NM | ||
2565 | # ---------- | ||
2566 | # find the pathname to a BSD-compatible name lister | ||
2567 | AC_DEFUN([AC_PROG_NM], | ||
2568 | [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, | ||
2569 | [if test -n "$NM"; then | ||
2570 | # Let the user override the test. | ||
2571 | lt_cv_path_NM="$NM" | ||
2572 | else | ||
2573 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
2574 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
2575 | lt_nm_to_check="$lt_nm_to_check nm" | ||
2576 | fi | ||
2577 | for lt_tmp_nm in $lt_nm_to_check; do | ||
2578 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
2579 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
2580 | IFS="$lt_save_ifs" | ||
2581 | test -z "$ac_dir" && ac_dir=. | ||
2582 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
2583 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
2584 | # Check to see if the nm accepts a BSD-compat flag. | ||
2585 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
2586 | # nm: unknown option "B" ignored | ||
2587 | # Tru64's nm complains that /dev/null is an invalid object file | ||
2588 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
2589 | */dev/null* | *'Invalid file or object type'*) | ||
2590 | lt_cv_path_NM="$tmp_nm -B" | ||
2591 | break | ||
2592 | ;; | ||
2593 | *) | ||
2594 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
2595 | */dev/null*) | ||
2596 | lt_cv_path_NM="$tmp_nm -p" | ||
2597 | break | ||
2598 | ;; | ||
2599 | *) | ||
2600 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
2601 | continue # so that we can try to find one that supports BSD flags | ||
2602 | ;; | ||
2603 | esac | ||
2604 | ;; | ||
2605 | esac | ||
2606 | fi | ||
2607 | done | ||
2608 | IFS="$lt_save_ifs" | ||
2609 | done | ||
2610 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | ||
2611 | fi]) | ||
2612 | NM="$lt_cv_path_NM" | ||
2613 | ])# AC_PROG_NM | ||
2614 | |||
2615 | |||
2616 | # AC_CHECK_LIBM | ||
2617 | # ------------- | ||
2618 | # check for math library | ||
2619 | AC_DEFUN([AC_CHECK_LIBM], | ||
2620 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
2621 | LIBM= | ||
2622 | case $host in | ||
2623 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | ||
2624 | # These system don't have libm, or don't need it | ||
2625 | ;; | ||
2626 | *-ncr-sysv4.3*) | ||
2627 | AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | ||
2628 | AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | ||
2629 | ;; | ||
2630 | *) | ||
2631 | AC_CHECK_LIB(m, cos, LIBM="-lm") | ||
2632 | ;; | ||
2633 | esac | ||
2634 | ])# AC_CHECK_LIBM | ||
2635 | |||
2636 | |||
2637 | # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) | ||
2638 | # ----------------------------------- | ||
2639 | # sets LIBLTDL to the link flags for the libltdl convenience library and | ||
2640 | # LTDLINCL to the include flags for the libltdl header and adds | ||
2641 | # --enable-ltdl-convenience to the configure arguments. Note that | ||
2642 | # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | ||
2643 | # it is assumed to be `libltdl'. LIBLTDL will be prefixed with | ||
2644 | # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' | ||
2645 | # (note the single quotes!). If your package is not flat and you're not | ||
2646 | # using automake, define top_builddir and top_srcdir appropriately in | ||
2647 | # the Makefiles. | ||
2648 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | ||
2649 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
2650 | case $enable_ltdl_convenience in | ||
2651 | no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; | ||
2652 | "") enable_ltdl_convenience=yes | ||
2653 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | ||
2654 | esac | ||
2655 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la | ||
2656 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | ||
2657 | # For backwards non-gettext consistent compatibility... | ||
2658 | INCLTDL="$LTDLINCL" | ||
2659 | ])# AC_LIBLTDL_CONVENIENCE | ||
2660 | |||
2661 | |||
2662 | # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) | ||
2663 | # ----------------------------------- | ||
2664 | # sets LIBLTDL to the link flags for the libltdl installable library and | ||
2665 | # LTDLINCL to the include flags for the libltdl header and adds | ||
2666 | # --enable-ltdl-install to the configure arguments. Note that | ||
2667 | # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | ||
2668 | # and an installed libltdl is not found, it is assumed to be `libltdl'. | ||
2669 | # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with | ||
2670 | # '${top_srcdir}/' (note the single quotes!). If your package is not | ||
2671 | # flat and you're not using automake, define top_builddir and top_srcdir | ||
2672 | # appropriately in the Makefiles. | ||
2673 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | ||
2674 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], | ||
2675 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
2676 | AC_CHECK_LIB(ltdl, lt_dlinit, | ||
2677 | [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | ||
2678 | [if test x"$enable_ltdl_install" = xno; then | ||
2679 | AC_MSG_WARN([libltdl not installed, but installation disabled]) | ||
2680 | else | ||
2681 | enable_ltdl_install=yes | ||
2682 | fi | ||
2683 | ]) | ||
2684 | if test x"$enable_ltdl_install" = x"yes"; then | ||
2685 | ac_configure_args="$ac_configure_args --enable-ltdl-install" | ||
2686 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la | ||
2687 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | ||
2688 | else | ||
2689 | ac_configure_args="$ac_configure_args --enable-ltdl-install=no" | ||
2690 | LIBLTDL="-lltdl" | ||
2691 | LTDLINCL= | ||
2692 | fi | ||
2693 | # For backwards non-gettext consistent compatibility... | ||
2694 | INCLTDL="$LTDLINCL" | ||
2695 | ])# AC_LIBLTDL_INSTALLABLE | ||
2696 | |||
2697 | |||
2698 | # AC_LIBTOOL_CXX | ||
2699 | # -------------- | ||
2700 | # enable support for C++ libraries | ||
2701 | AC_DEFUN([AC_LIBTOOL_CXX], | ||
2702 | [AC_REQUIRE([_LT_AC_LANG_CXX]) | ||
2703 | ])# AC_LIBTOOL_CXX | ||
2704 | |||
2705 | |||
2706 | # _LT_AC_LANG_CXX | ||
2707 | # --------------- | ||
2708 | AC_DEFUN([_LT_AC_LANG_CXX], | ||
2709 | [AC_REQUIRE([AC_PROG_CXX]) | ||
2710 | AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | ||
2711 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) | ||
2712 | ])# _LT_AC_LANG_CXX | ||
2713 | |||
2714 | # _LT_AC_PROG_CXXCPP | ||
2715 | # ------------------ | ||
2716 | AC_DEFUN([_LT_AC_PROG_CXXCPP], | ||
2717 | [ | ||
2718 | AC_REQUIRE([AC_PROG_CXX]) | ||
2719 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
2720 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
2721 | (test "X$CXX" != "Xg++"))) ; then | ||
2722 | AC_PROG_CXXCPP | ||
2723 | fi | ||
2724 | ])# _LT_AC_PROG_CXXCPP | ||
2725 | |||
2726 | # AC_LIBTOOL_F77 | ||
2727 | # -------------- | ||
2728 | # enable support for Fortran 77 libraries | ||
2729 | AC_DEFUN([AC_LIBTOOL_F77], | ||
2730 | [AC_REQUIRE([_LT_AC_LANG_F77]) | ||
2731 | ])# AC_LIBTOOL_F77 | ||
2732 | |||
2733 | |||
2734 | # _LT_AC_LANG_F77 | ||
2735 | # --------------- | ||
2736 | AC_DEFUN([_LT_AC_LANG_F77], | ||
2737 | [AC_REQUIRE([AC_PROG_F77]) | ||
2738 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) | ||
2739 | ])# _LT_AC_LANG_F77 | ||
2740 | |||
2741 | |||
2742 | # AC_LIBTOOL_GCJ | ||
2743 | # -------------- | ||
2744 | # enable support for GCJ libraries | ||
2745 | AC_DEFUN([AC_LIBTOOL_GCJ], | ||
2746 | [AC_REQUIRE([_LT_AC_LANG_GCJ]) | ||
2747 | ])# AC_LIBTOOL_GCJ | ||
2748 | |||
2749 | |||
2750 | # _LT_AC_LANG_GCJ | ||
2751 | # --------------- | ||
2752 | AC_DEFUN([_LT_AC_LANG_GCJ], | ||
2753 | [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], | ||
2754 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], | ||
2755 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], | ||
2756 | [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], | ||
2757 | [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], | ||
2758 | [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) | ||
2759 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) | ||
2760 | ])# _LT_AC_LANG_GCJ | ||
2761 | |||
2762 | |||
2763 | # AC_LIBTOOL_RC | ||
2764 | # ------------- | ||
2765 | # enable support for Windows resource files | ||
2766 | AC_DEFUN([AC_LIBTOOL_RC], | ||
2767 | [AC_REQUIRE([LT_AC_PROG_RC]) | ||
2768 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) | ||
2769 | ])# AC_LIBTOOL_RC | ||
2770 | |||
2771 | |||
2772 | # AC_LIBTOOL_LANG_C_CONFIG | ||
2773 | # ------------------------ | ||
2774 | # Ensure that the configuration vars for the C compiler are | ||
2775 | # suitably defined. Those variables are subsequently used by | ||
2776 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
2777 | AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) | ||
2778 | AC_DEFUN([_LT_AC_LANG_C_CONFIG], | ||
2779 | [lt_save_CC="$CC" | ||
2780 | AC_LANG_PUSH(C) | ||
2781 | |||
2782 | # Source file extension for C test sources. | ||
2783 | ac_ext=c | ||
2784 | |||
2785 | # Object file extension for compiled C test sources. | ||
2786 | objext=o | ||
2787 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
2788 | |||
2789 | # Code to be used in simple compile tests | ||
2790 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
2791 | |||
2792 | # Code to be used in simple link tests | ||
2793 | lt_simple_link_test_code='int main(){return(0);}\n' | ||
2794 | |||
2795 | _LT_AC_SYS_COMPILER | ||
2796 | |||
2797 | # save warnings/boilerplate of simple test code | ||
2798 | _LT_COMPILER_BOILERPLATE | ||
2799 | _LT_LINKER_BOILERPLATE | ||
2800 | |||
2801 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | ||
2802 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
2803 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
2804 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
2805 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
2806 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
2807 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
2808 | AC_LIBTOOL_SYS_LIB_STRIP | ||
2809 | AC_LIBTOOL_DLOPEN_SELF | ||
2810 | |||
2811 | # Report which library types will actually be built | ||
2812 | AC_MSG_CHECKING([if libtool supports shared libraries]) | ||
2813 | AC_MSG_RESULT([$can_build_shared]) | ||
2814 | |||
2815 | AC_MSG_CHECKING([whether to build shared libraries]) | ||
2816 | test "$can_build_shared" = "no" && enable_shared=no | ||
2817 | |||
2818 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
2819 | # are all built from PIC. | ||
2820 | case $host_os in | ||
2821 | aix3*) | ||
2822 | test "$enable_shared" = yes && enable_static=no | ||
2823 | if test -n "$RANLIB"; then | ||
2824 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
2825 | postinstall_cmds='$RANLIB $lib' | ||
2826 | fi | ||
2827 | ;; | ||
2828 | |||
2829 | aix4* | aix5*) | ||
2830 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
2831 | test "$enable_shared" = yes && enable_static=no | ||
2832 | fi | ||
2833 | ;; | ||
2834 | esac | ||
2835 | AC_MSG_RESULT([$enable_shared]) | ||
2836 | |||
2837 | AC_MSG_CHECKING([whether to build static libraries]) | ||
2838 | # Make sure either enable_shared or enable_static is yes. | ||
2839 | test "$enable_shared" = yes || enable_static=yes | ||
2840 | AC_MSG_RESULT([$enable_static]) | ||
2841 | |||
2842 | AC_LIBTOOL_CONFIG($1) | ||
2843 | |||
2844 | AC_LANG_POP | ||
2845 | CC="$lt_save_CC" | ||
2846 | ])# AC_LIBTOOL_LANG_C_CONFIG | ||
2847 | |||
2848 | |||
2849 | # AC_LIBTOOL_LANG_CXX_CONFIG | ||
2850 | # -------------------------- | ||
2851 | # Ensure that the configuration vars for the C compiler are | ||
2852 | # suitably defined. Those variables are subsequently used by | ||
2853 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
2854 | AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) | ||
2855 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | ||
2856 | [AC_LANG_PUSH(C++) | ||
2857 | AC_REQUIRE([AC_PROG_CXX]) | ||
2858 | AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | ||
2859 | |||
2860 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
2861 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
2862 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
2863 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
2864 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
2865 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
2866 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
2867 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
2868 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
2869 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
2870 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
2871 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
2872 | _LT_AC_TAGVAR(module_cmds, $1)= | ||
2873 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
2874 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
2875 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
2876 | _LT_AC_TAGVAR(no_undefined_flag, $1)= | ||
2877 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
2878 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
2879 | |||
2880 | # Dependencies to place before and after the object being linked: | ||
2881 | _LT_AC_TAGVAR(predep_objects, $1)= | ||
2882 | _LT_AC_TAGVAR(postdep_objects, $1)= | ||
2883 | _LT_AC_TAGVAR(predeps, $1)= | ||
2884 | _LT_AC_TAGVAR(postdeps, $1)= | ||
2885 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)= | ||
2886 | |||
2887 | # Source file extension for C++ test sources. | ||
2888 | ac_ext=cpp | ||
2889 | |||
2890 | # Object file extension for compiled C++ test sources. | ||
2891 | objext=o | ||
2892 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
2893 | |||
2894 | # Code to be used in simple compile tests | ||
2895 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
2896 | |||
2897 | # Code to be used in simple link tests | ||
2898 | lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' | ||
2899 | |||
2900 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
2901 | _LT_AC_SYS_COMPILER | ||
2902 | |||
2903 | # save warnings/boilerplate of simple test code | ||
2904 | _LT_COMPILER_BOILERPLATE | ||
2905 | _LT_LINKER_BOILERPLATE | ||
2906 | |||
2907 | # Allow CC to be a program name with arguments. | ||
2908 | lt_save_CC=$CC | ||
2909 | lt_save_LD=$LD | ||
2910 | lt_save_GCC=$GCC | ||
2911 | GCC=$GXX | ||
2912 | lt_save_with_gnu_ld=$with_gnu_ld | ||
2913 | lt_save_path_LD=$lt_cv_path_LD | ||
2914 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
2915 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
2916 | else | ||
2917 | $as_unset lt_cv_prog_gnu_ld | ||
2918 | fi | ||
2919 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
2920 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
2921 | else | ||
2922 | $as_unset lt_cv_path_LD | ||
2923 | fi | ||
2924 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
2925 | CC=${CXX-"c++"} | ||
2926 | compiler=$CC | ||
2927 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
2928 | _LT_CC_BASENAME([$compiler]) | ||
2929 | |||
2930 | # We don't want -fno-exception wen compiling C++ code, so set the | ||
2931 | # no_builtin_flag separately | ||
2932 | if test "$GXX" = yes; then | ||
2933 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
2934 | else | ||
2935 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
2936 | fi | ||
2937 | |||
2938 | if test "$GXX" = yes; then | ||
2939 | # Set up default GNU C++ configuration | ||
2940 | |||
2941 | AC_PROG_LD | ||
2942 | |||
2943 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
2944 | # archiving commands below assume that GNU ld is being used. | ||
2945 | if test "$with_gnu_ld" = yes; then | ||
2946 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
2947 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
2948 | |||
2949 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
2950 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
2951 | |||
2952 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
2953 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
2954 | # investigate it a little bit more. (MM) | ||
2955 | wlarc='${wl}' | ||
2956 | |||
2957 | # ancient GNU ld didn't support --whole-archive et. al. | ||
2958 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | ||
2959 | grep 'no-whole-archive' > /dev/null; then | ||
2960 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
2961 | else | ||
2962 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
2963 | fi | ||
2964 | else | ||
2965 | with_gnu_ld=no | ||
2966 | wlarc= | ||
2967 | |||
2968 | # A generic and very simple default shared library creation | ||
2969 | # command for GNU C++ for the case where it uses the native | ||
2970 | # linker, instead of GNU ld. If possible, this setting should | ||
2971 | # overridden to take advantage of the native linker features on | ||
2972 | # the platform it is being used on. | ||
2973 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
2974 | fi | ||
2975 | |||
2976 | # Commands to make compiler produce verbose output that lists | ||
2977 | # what "hidden" libraries, object files and flags are used when | ||
2978 | # linking a shared library. | ||
2979 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
2980 | |||
2981 | else | ||
2982 | GXX=no | ||
2983 | with_gnu_ld=no | ||
2984 | wlarc= | ||
2985 | fi | ||
2986 | |||
2987 | # PORTME: fill in a description of your system's C++ link characteristics | ||
2988 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
2989 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
2990 | case $host_os in | ||
2991 | aix3*) | ||
2992 | # FIXME: insert proper C++ library support | ||
2993 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
2994 | ;; | ||
2995 | aix4* | aix5*) | ||
2996 | if test "$host_cpu" = ia64; then | ||
2997 | # On IA64, the linker does run time linking by default, so we don't | ||
2998 | # have to do anything special. | ||
2999 | aix_use_runtimelinking=no | ||
3000 | exp_sym_flag='-Bexport' | ||
3001 | no_entry_flag="" | ||
3002 | else | ||
3003 | aix_use_runtimelinking=no | ||
3004 | |||
3005 | # Test if we are trying to use run time linking or normal | ||
3006 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
3007 | # need to do runtime linking. | ||
3008 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | ||
3009 | for ld_flag in $LDFLAGS; do | ||
3010 | case $ld_flag in | ||
3011 | *-brtl*) | ||
3012 | aix_use_runtimelinking=yes | ||
3013 | break | ||
3014 | ;; | ||
3015 | esac | ||
3016 | done | ||
3017 | ;; | ||
3018 | esac | ||
3019 | |||
3020 | exp_sym_flag='-bexport' | ||
3021 | no_entry_flag='-bnoentry' | ||
3022 | fi | ||
3023 | |||
3024 | # When large executables or shared objects are built, AIX ld can | ||
3025 | # have problems creating the table of contents. If linking a library | ||
3026 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
3027 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
3028 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
3029 | |||
3030 | _LT_AC_TAGVAR(archive_cmds, $1)='' | ||
3031 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3032 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
3033 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3034 | |||
3035 | if test "$GXX" = yes; then | ||
3036 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | ||
3037 | # We only want to do this on AIX 4.2 and lower, the check | ||
3038 | # below for broken collect2 doesn't work under 4.3+ | ||
3039 | collect2name=`${CC} -print-prog-name=collect2` | ||
3040 | if test -f "$collect2name" && \ | ||
3041 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
3042 | then | ||
3043 | # We have reworked collect2 | ||
3044 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3045 | else | ||
3046 | # We have old collect2 | ||
3047 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
3048 | # It fails to find uninstalled libraries when the uninstalled | ||
3049 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
3050 | # to unsupported forces relinking | ||
3051 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
3052 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
3053 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
3054 | fi | ||
3055 | ;; | ||
3056 | esac | ||
3057 | shared_flag='-shared' | ||
3058 | if test "$aix_use_runtimelinking" = yes; then | ||
3059 | shared_flag="$shared_flag "'${wl}-G' | ||
3060 | fi | ||
3061 | else | ||
3062 | # not using gcc | ||
3063 | if test "$host_cpu" = ia64; then | ||
3064 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
3065 | # chokes on -Wl,-G. The following line is correct: | ||
3066 | shared_flag='-G' | ||
3067 | else | ||
3068 | if test "$aix_use_runtimelinking" = yes; then | ||
3069 | shared_flag='${wl}-G' | ||
3070 | else | ||
3071 | shared_flag='${wl}-bM:SRE' | ||
3072 | fi | ||
3073 | fi | ||
3074 | fi | ||
3075 | |||
3076 | # It seems that -bexpall does not export symbols beginning with | ||
3077 | # underscore (_), so it is better to generate a list of symbols to export. | ||
3078 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
3079 | if test "$aix_use_runtimelinking" = yes; then | ||
3080 | # Warning - without using the other runtime loading flags (-brtl), | ||
3081 | # -berok will link without error, but may produce a broken library. | ||
3082 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | ||
3083 | # Determine the default libpath from the value encoded in an empty executable. | ||
3084 | _LT_AC_SYS_LIBPATH_AIX | ||
3085 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
3086 | |||
3087 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
3088 | else | ||
3089 | if test "$host_cpu" = ia64; then | ||
3090 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | ||
3091 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | ||
3092 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | ||
3093 | else | ||
3094 | # Determine the default libpath from the value encoded in an empty executable. | ||
3095 | _LT_AC_SYS_LIBPATH_AIX | ||
3096 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
3097 | # Warning - without using the other run time loading flags, | ||
3098 | # -berok will link without error, but may produce a broken library. | ||
3099 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | ||
3100 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | ||
3101 | # Exported symbols can be pulled into shared objects from archives | ||
3102 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
3103 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
3104 | # This is similar to how AIX traditionally builds its shared libraries. | ||
3105 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
3106 | fi | ||
3107 | fi | ||
3108 | ;; | ||
3109 | |||
3110 | beos*) | ||
3111 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
3112 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
3113 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
3114 | # support --undefined. This deserves some investigation. FIXME | ||
3115 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3116 | else | ||
3117 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3118 | fi | ||
3119 | ;; | ||
3120 | |||
3121 | chorus*) | ||
3122 | case $cc_basename in | ||
3123 | *) | ||
3124 | # FIXME: insert proper C++ library support | ||
3125 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3126 | ;; | ||
3127 | esac | ||
3128 | ;; | ||
3129 | |||
3130 | cygwin* | mingw* | pw32*) | ||
3131 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
3132 | # as there is no search path for DLLs. | ||
3133 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
3134 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
3135 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
3136 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
3137 | |||
3138 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
3139 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
3140 | # If the export-symbols file already is a .def file (1st line | ||
3141 | # is EXPORTS), use it as is; otherwise, prepend... | ||
3142 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
3143 | cp $export_symbols $output_objdir/$soname.def; | ||
3144 | else | ||
3145 | echo EXPORTS > $output_objdir/$soname.def; | ||
3146 | cat $export_symbols >> $output_objdir/$soname.def; | ||
3147 | fi~ | ||
3148 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
3149 | else | ||
3150 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3151 | fi | ||
3152 | ;; | ||
3153 | darwin* | rhapsody*) | ||
3154 | case $host_os in | ||
3155 | rhapsody* | darwin1.[[012]]) | ||
3156 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | ||
3157 | ;; | ||
3158 | *) # Darwin 1.3 on | ||
3159 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
3160 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
3161 | else | ||
3162 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
3163 | 10.[[012]]) | ||
3164 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
3165 | ;; | ||
3166 | 10.*) | ||
3167 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | ||
3168 | ;; | ||
3169 | esac | ||
3170 | fi | ||
3171 | ;; | ||
3172 | esac | ||
3173 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3174 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3175 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | ||
3176 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
3177 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | ||
3178 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3179 | |||
3180 | if test "$GXX" = yes ; then | ||
3181 | lt_int_apple_cc_single_mod=no | ||
3182 | output_verbose_link_cmd='echo' | ||
3183 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | ||
3184 | lt_int_apple_cc_single_mod=yes | ||
3185 | fi | ||
3186 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
3187 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
3188 | else | ||
3189 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
3190 | fi | ||
3191 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
3192 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
3193 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
3194 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}' | ||
3195 | else | ||
3196 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}' | ||
3197 | fi | ||
3198 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' | ||
3199 | else | ||
3200 | case $cc_basename in | ||
3201 | xlc*) | ||
3202 | output_verbose_link_cmd='echo' | ||
3203 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | ||
3204 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
3205 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
3206 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}' | ||
3207 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' | ||
3208 | ;; | ||
3209 | *) | ||
3210 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3211 | ;; | ||
3212 | esac | ||
3213 | fi | ||
3214 | ;; | ||
3215 | |||
3216 | dgux*) | ||
3217 | case $cc_basename in | ||
3218 | ec++*) | ||
3219 | # FIXME: insert proper C++ library support | ||
3220 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3221 | ;; | ||
3222 | ghcx*) | ||
3223 | # Green Hills C++ Compiler | ||
3224 | # FIXME: insert proper C++ library support | ||
3225 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3226 | ;; | ||
3227 | *) | ||
3228 | # FIXME: insert proper C++ library support | ||
3229 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3230 | ;; | ||
3231 | esac | ||
3232 | ;; | ||
3233 | freebsd[[12]]*) | ||
3234 | # C++ shared libraries reported to be fairly broken before switch to ELF | ||
3235 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3236 | ;; | ||
3237 | freebsd-elf*) | ||
3238 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3239 | ;; | ||
3240 | freebsd* | kfreebsd*-gnu | dragonfly*) | ||
3241 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
3242 | # conventions | ||
3243 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
3244 | ;; | ||
3245 | gnu*) | ||
3246 | ;; | ||
3247 | hpux9*) | ||
3248 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
3249 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3250 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
3251 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3252 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | ||
3253 | # but as the default | ||
3254 | # location of the library. | ||
3255 | |||
3256 | case $cc_basename in | ||
3257 | CC*) | ||
3258 | # FIXME: insert proper C++ library support | ||
3259 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3260 | ;; | ||
3261 | aCC*) | ||
3262 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
3263 | # Commands to make compiler produce verbose output that lists | ||
3264 | # what "hidden" libraries, object files and flags are used when | ||
3265 | # linking a shared library. | ||
3266 | # | ||
3267 | # There doesn't appear to be a way to prevent this compiler from | ||
3268 | # explicitly linking system object files so we need to strip them | ||
3269 | # from the output so that they don't get included in the library | ||
3270 | # dependencies. | ||
3271 | 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' | ||
3272 | ;; | ||
3273 | *) | ||
3274 | if test "$GXX" = yes; then | ||
3275 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
3276 | else | ||
3277 | # FIXME: insert proper C++ library support | ||
3278 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3279 | fi | ||
3280 | ;; | ||
3281 | esac | ||
3282 | ;; | ||
3283 | hpux10*|hpux11*) | ||
3284 | if test $with_gnu_ld = no; then | ||
3285 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
3286 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3287 | |||
3288 | case $host_cpu in | ||
3289 | hppa*64*|ia64*) | ||
3290 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | ||
3291 | ;; | ||
3292 | *) | ||
3293 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
3294 | ;; | ||
3295 | esac | ||
3296 | fi | ||
3297 | case $host_cpu in | ||
3298 | hppa*64*|ia64*) | ||
3299 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3300 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3301 | ;; | ||
3302 | *) | ||
3303 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3304 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | ||
3305 | # but as the default | ||
3306 | # location of the library. | ||
3307 | ;; | ||
3308 | esac | ||
3309 | |||
3310 | case $cc_basename in | ||
3311 | CC*) | ||
3312 | # FIXME: insert proper C++ library support | ||
3313 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3314 | ;; | ||
3315 | aCC*) | ||
3316 | case $host_cpu in | ||
3317 | hppa*64*) | ||
3318 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
3319 | ;; | ||
3320 | ia64*) | ||
3321 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
3322 | ;; | ||
3323 | *) | ||
3324 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
3325 | ;; | ||
3326 | esac | ||
3327 | # Commands to make compiler produce verbose output that lists | ||
3328 | # what "hidden" libraries, object files and flags are used when | ||
3329 | # linking a shared library. | ||
3330 | # | ||
3331 | # There doesn't appear to be a way to prevent this compiler from | ||
3332 | # explicitly linking system object files so we need to strip them | ||
3333 | # from the output so that they don't get included in the library | ||
3334 | # dependencies. | ||
3335 | 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' | ||
3336 | ;; | ||
3337 | *) | ||
3338 | if test "$GXX" = yes; then | ||
3339 | if test $with_gnu_ld = no; then | ||
3340 | case $host_cpu in | ||
3341 | hppa*64*) | ||
3342 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
3343 | ;; | ||
3344 | ia64*) | ||
3345 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
3346 | ;; | ||
3347 | *) | ||
3348 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
3349 | ;; | ||
3350 | esac | ||
3351 | fi | ||
3352 | else | ||
3353 | # FIXME: insert proper C++ library support | ||
3354 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3355 | fi | ||
3356 | ;; | ||
3357 | esac | ||
3358 | ;; | ||
3359 | interix3*) | ||
3360 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3361 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3362 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
3363 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
3364 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
3365 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
3366 | # default) and relocated if they conflict, which is a slow very memory | ||
3367 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
3368 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
3369 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
3370 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
3371 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
3372 | ;; | ||
3373 | irix5* | irix6*) | ||
3374 | case $cc_basename in | ||
3375 | CC*) | ||
3376 | # SGI C++ | ||
3377 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
3378 | |||
3379 | # Archives containing C++ object files must be created using | ||
3380 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
3381 | # necessary to make sure instantiated templates are included | ||
3382 | # in the archive. | ||
3383 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
3384 | ;; | ||
3385 | *) | ||
3386 | if test "$GXX" = yes; then | ||
3387 | if test "$with_gnu_ld" = no; then | ||
3388 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
3389 | else | ||
3390 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
3391 | fi | ||
3392 | fi | ||
3393 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3394 | ;; | ||
3395 | esac | ||
3396 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
3397 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3398 | ;; | ||
3399 | linux*) | ||
3400 | case $cc_basename in | ||
3401 | KCC*) | ||
3402 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
3403 | |||
3404 | # KCC will only create a shared library if the output file | ||
3405 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
3406 | # to its proper name (with version) after linking. | ||
3407 | _LT_AC_TAGVAR(archive_cmds, $1)='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' | ||
3408 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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' | ||
3409 | # Commands to make compiler produce verbose output that lists | ||
3410 | # what "hidden" libraries, object files and flags are used when | ||
3411 | # linking a shared library. | ||
3412 | # | ||
3413 | # There doesn't appear to be a way to prevent this compiler from | ||
3414 | # explicitly linking system object files so we need to strip them | ||
3415 | # from the output so that they don't get included in the library | ||
3416 | # dependencies. | ||
3417 | 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' | ||
3418 | |||
3419 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' | ||
3420 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
3421 | |||
3422 | # Archives containing C++ object files must be created using | ||
3423 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
3424 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | ||
3425 | ;; | ||
3426 | icpc*) | ||
3427 | # Intel C++ | ||
3428 | with_gnu_ld=yes | ||
3429 | # version 8.0 and above of icpc choke on multiply defined symbols | ||
3430 | # if we add $predep_objects and $postdep_objects, however 7.1 and | ||
3431 | # earlier do not add the objects themselves. | ||
3432 | case `$CC -V 2>&1` in | ||
3433 | *"Version 7."*) | ||
3434 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3435 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
3436 | ;; | ||
3437 | *) # Version 8.0 or newer | ||
3438 | tmp_idyn= | ||
3439 | case $host_cpu in | ||
3440 | ia64*) tmp_idyn=' -i_dynamic';; | ||
3441 | esac | ||
3442 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3443 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
3444 | ;; | ||
3445 | esac | ||
3446 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3447 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
3448 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
3449 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
3450 | ;; | ||
3451 | pgCC*) | ||
3452 | # Portland Group C++ compiler | ||
3453 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
3454 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | ||
3455 | |||
3456 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
3457 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
3458 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
3459 | ;; | ||
3460 | cxx*) | ||
3461 | # Compaq C++ | ||
3462 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3463 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | ||
3464 | |||
3465 | runpath_var=LD_RUN_PATH | ||
3466 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
3467 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3468 | |||
3469 | # Commands to make compiler produce verbose output that lists | ||
3470 | # what "hidden" libraries, object files and flags are used when | ||
3471 | # linking a shared library. | ||
3472 | # | ||
3473 | # There doesn't appear to be a way to prevent this compiler from | ||
3474 | # explicitly linking system object files so we need to strip them | ||
3475 | # from the output so that they don't get included in the library | ||
3476 | # dependencies. | ||
3477 | 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' | ||
3478 | ;; | ||
3479 | esac | ||
3480 | ;; | ||
3481 | lynxos*) | ||
3482 | # FIXME: insert proper C++ library support | ||
3483 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3484 | ;; | ||
3485 | m88k*) | ||
3486 | # FIXME: insert proper C++ library support | ||
3487 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3488 | ;; | ||
3489 | mvs*) | ||
3490 | case $cc_basename in | ||
3491 | cxx*) | ||
3492 | # FIXME: insert proper C++ library support | ||
3493 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3494 | ;; | ||
3495 | *) | ||
3496 | # FIXME: insert proper C++ library support | ||
3497 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3498 | ;; | ||
3499 | esac | ||
3500 | ;; | ||
3501 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
3502 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
3503 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
3504 | wlarc= | ||
3505 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
3506 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3507 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3508 | fi | ||
3509 | # Workaround some broken pre-1.5 toolchains | ||
3510 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
3511 | ;; | ||
3512 | openbsd2*) | ||
3513 | # C++ shared libraries are fairly broken | ||
3514 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3515 | ;; | ||
3516 | openbsd*) | ||
3517 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3518 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3519 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
3520 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
3521 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3522 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | ||
3523 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
3524 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
3525 | fi | ||
3526 | output_verbose_link_cmd='echo' | ||
3527 | ;; | ||
3528 | osf3*) | ||
3529 | case $cc_basename in | ||
3530 | KCC*) | ||
3531 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
3532 | |||
3533 | # KCC will only create a shared library if the output file | ||
3534 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
3535 | # to its proper name (with version) after linking. | ||
3536 | _LT_AC_TAGVAR(archive_cmds, $1)='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' | ||
3537 | |||
3538 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
3539 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3540 | |||
3541 | # Archives containing C++ object files must be created using | ||
3542 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
3543 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | ||
3544 | |||
3545 | ;; | ||
3546 | RCC*) | ||
3547 | # Rational C++ 2.4.1 | ||
3548 | # FIXME: insert proper C++ library support | ||
3549 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3550 | ;; | ||
3551 | cxx*) | ||
3552 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
3553 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
3554 | |||
3555 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
3556 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3557 | |||
3558 | # Commands to make compiler produce verbose output that lists | ||
3559 | # what "hidden" libraries, object files and flags are used when | ||
3560 | # linking a shared library. | ||
3561 | # | ||
3562 | # There doesn't appear to be a way to prevent this compiler from | ||
3563 | # explicitly linking system object files so we need to strip them | ||
3564 | # from the output so that they don't get included in the library | ||
3565 | # dependencies. | ||
3566 | 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' | ||
3567 | ;; | ||
3568 | *) | ||
3569 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
3570 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
3571 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
3572 | |||
3573 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
3574 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3575 | |||
3576 | # Commands to make compiler produce verbose output that lists | ||
3577 | # what "hidden" libraries, object files and flags are used when | ||
3578 | # linking a shared library. | ||
3579 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
3580 | |||
3581 | else | ||
3582 | # FIXME: insert proper C++ library support | ||
3583 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3584 | fi | ||
3585 | ;; | ||
3586 | esac | ||
3587 | ;; | ||
3588 | osf4* | osf5*) | ||
3589 | case $cc_basename in | ||
3590 | KCC*) | ||
3591 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
3592 | |||
3593 | # KCC will only create a shared library if the output file | ||
3594 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
3595 | # to its proper name (with version) after linking. | ||
3596 | _LT_AC_TAGVAR(archive_cmds, $1)='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' | ||
3597 | |||
3598 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
3599 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3600 | |||
3601 | # Archives containing C++ object files must be created using | ||
3602 | # the KAI C++ compiler. | ||
3603 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' | ||
3604 | ;; | ||
3605 | RCC*) | ||
3606 | # Rational C++ 2.4.1 | ||
3607 | # FIXME: insert proper C++ library support | ||
3608 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3609 | ;; | ||
3610 | cxx*) | ||
3611 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
3612 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
3613 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
3614 | echo "-hidden">> $lib.exp~ | ||
3615 | $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~ | ||
3616 | $rm $lib.exp' | ||
3617 | |||
3618 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
3619 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3620 | |||
3621 | # Commands to make compiler produce verbose output that lists | ||
3622 | # what "hidden" libraries, object files and flags are used when | ||
3623 | # linking a shared library. | ||
3624 | # | ||
3625 | # There doesn't appear to be a way to prevent this compiler from | ||
3626 | # explicitly linking system object files so we need to strip them | ||
3627 | # from the output so that they don't get included in the library | ||
3628 | # dependencies. | ||
3629 | 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' | ||
3630 | ;; | ||
3631 | *) | ||
3632 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
3633 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
3634 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
3635 | |||
3636 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
3637 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3638 | |||
3639 | # Commands to make compiler produce verbose output that lists | ||
3640 | # what "hidden" libraries, object files and flags are used when | ||
3641 | # linking a shared library. | ||
3642 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
3643 | |||
3644 | else | ||
3645 | # FIXME: insert proper C++ library support | ||
3646 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3647 | fi | ||
3648 | ;; | ||
3649 | esac | ||
3650 | ;; | ||
3651 | psos*) | ||
3652 | # FIXME: insert proper C++ library support | ||
3653 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3654 | ;; | ||
3655 | sunos4*) | ||
3656 | case $cc_basename in | ||
3657 | CC*) | ||
3658 | # Sun C++ 4.x | ||
3659 | # FIXME: insert proper C++ library support | ||
3660 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3661 | ;; | ||
3662 | lcc*) | ||
3663 | # Lucid | ||
3664 | # FIXME: insert proper C++ library support | ||
3665 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3666 | ;; | ||
3667 | *) | ||
3668 | # FIXME: insert proper C++ library support | ||
3669 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3670 | ;; | ||
3671 | esac | ||
3672 | ;; | ||
3673 | solaris*) | ||
3674 | case $cc_basename in | ||
3675 | CC*) | ||
3676 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
3677 | _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes | ||
3678 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' | ||
3679 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
3680 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
3681 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
3682 | |||
3683 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
3684 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3685 | case $host_os in | ||
3686 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | ||
3687 | *) | ||
3688 | # The C++ compiler is used as linker so we must use $wl | ||
3689 | # flag to pass the commands to the underlying system | ||
3690 | # linker. We must also pass each convience library through | ||
3691 | # to the system linker between allextract/defaultextract. | ||
3692 | # The C++ compiler will combine linker options so we | ||
3693 | # cannot just pass the convience library names through | ||
3694 | # without $wl. | ||
3695 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
3696 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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' | ||
3697 | ;; | ||
3698 | esac | ||
3699 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3700 | |||
3701 | output_verbose_link_cmd='echo' | ||
3702 | |||
3703 | # Archives containing C++ object files must be created using | ||
3704 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
3705 | # necessary to make sure instantiated templates are included | ||
3706 | # in the archive. | ||
3707 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | ||
3708 | ;; | ||
3709 | gcx*) | ||
3710 | # Green Hills C++ Compiler | ||
3711 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
3712 | |||
3713 | # The C++ compiler must be used to create the archive. | ||
3714 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
3715 | ;; | ||
3716 | *) | ||
3717 | # GNU C++ compiler with Solaris linker | ||
3718 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
3719 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | ||
3720 | if $CC --version | grep -v '^2\.7' > /dev/null; then | ||
3721 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
3722 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
3723 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
3724 | |||
3725 | # Commands to make compiler produce verbose output that lists | ||
3726 | # what "hidden" libraries, object files and flags are used when | ||
3727 | # linking a shared library. | ||
3728 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
3729 | else | ||
3730 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
3731 | # platform. | ||
3732 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
3733 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
3734 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
3735 | |||
3736 | # Commands to make compiler produce verbose output that lists | ||
3737 | # what "hidden" libraries, object files and flags are used when | ||
3738 | # linking a shared library. | ||
3739 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
3740 | fi | ||
3741 | |||
3742 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | ||
3743 | fi | ||
3744 | ;; | ||
3745 | esac | ||
3746 | ;; | ||
3747 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | ||
3748 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
3749 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3750 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3751 | runpath_var='LD_RUN_PATH' | ||
3752 | |||
3753 | case $cc_basename in | ||
3754 | CC*) | ||
3755 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3756 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3757 | ;; | ||
3758 | *) | ||
3759 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3760 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3761 | ;; | ||
3762 | esac | ||
3763 | ;; | ||
3764 | sysv5* | sco3.2v5* | sco5v6*) | ||
3765 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
3766 | # link with -lc, and that would cause any symbols used from libc to | ||
3767 | # always be unresolved, which means just about no library would | ||
3768 | # ever link correctly. If we're not using GNU ld we use -z text | ||
3769 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
3770 | # as -z defs. | ||
3771 | # For security reasons, it is highly recommended that you always | ||
3772 | # use absolute paths for naming shared libraries, and exclude the | ||
3773 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
3774 | # requires that you compile everything twice, which is a pain. | ||
3775 | # So that behaviour is only enabled if SCOABSPATH is set to a | ||
3776 | # non-empty value in the environment. Most likely only useful for | ||
3777 | # creating official distributions of packages. | ||
3778 | # This is a hack until libtool officially supports absolute path | ||
3779 | # names for shared libraries. | ||
3780 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
3781 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | ||
3782 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3783 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3784 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
3785 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
3786 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3787 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | ||
3788 | runpath_var='LD_RUN_PATH' | ||
3789 | |||
3790 | case $cc_basename in | ||
3791 | CC*) | ||
3792 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3793 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3794 | ;; | ||
3795 | *) | ||
3796 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3797 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3798 | ;; | ||
3799 | esac | ||
3800 | ;; | ||
3801 | tandem*) | ||
3802 | case $cc_basename in | ||
3803 | NCC*) | ||
3804 | # NonStop-UX NCC 3.20 | ||
3805 | # FIXME: insert proper C++ library support | ||
3806 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3807 | ;; | ||
3808 | *) | ||
3809 | # FIXME: insert proper C++ library support | ||
3810 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3811 | ;; | ||
3812 | esac | ||
3813 | ;; | ||
3814 | vxworks*) | ||
3815 | # FIXME: insert proper C++ library support | ||
3816 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3817 | ;; | ||
3818 | *) | ||
3819 | # FIXME: insert proper C++ library support | ||
3820 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3821 | ;; | ||
3822 | esac | ||
3823 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | ||
3824 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | ||
3825 | |||
3826 | _LT_AC_TAGVAR(GCC, $1)="$GXX" | ||
3827 | _LT_AC_TAGVAR(LD, $1)="$LD" | ||
3828 | |||
3829 | AC_LIBTOOL_POSTDEP_PREDEP($1) | ||
3830 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
3831 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
3832 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
3833 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
3834 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
3835 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
3836 | |||
3837 | AC_LIBTOOL_CONFIG($1) | ||
3838 | |||
3839 | AC_LANG_POP | ||
3840 | CC=$lt_save_CC | ||
3841 | LDCXX=$LD | ||
3842 | LD=$lt_save_LD | ||
3843 | GCC=$lt_save_GCC | ||
3844 | with_gnu_ldcxx=$with_gnu_ld | ||
3845 | with_gnu_ld=$lt_save_with_gnu_ld | ||
3846 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
3847 | lt_cv_path_LD=$lt_save_path_LD | ||
3848 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
3849 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
3850 | ])# AC_LIBTOOL_LANG_CXX_CONFIG | ||
3851 | |||
3852 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) | ||
3853 | # ------------------------------------ | ||
3854 | # Figure out "hidden" library dependencies from verbose | ||
3855 | # compiler output when linking a shared library. | ||
3856 | # Parse the compiler output and extract the necessary | ||
3857 | # objects, libraries and library flags. | ||
3858 | AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ | ||
3859 | dnl we can't use the lt_simple_compile_test_code here, | ||
3860 | dnl because it contains code intended for an executable, | ||
3861 | dnl not a library. It's possible we should let each | ||
3862 | dnl tag define a new lt_????_link_test_code variable, | ||
3863 | dnl but it's only used here... | ||
3864 | ifelse([$1],[],[cat > conftest.$ac_ext <<EOF | ||
3865 | int a; | ||
3866 | void foo (void) { a = 0; } | ||
3867 | EOF | ||
3868 | ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF | ||
3869 | class Foo | ||
3870 | { | ||
3871 | public: | ||
3872 | Foo (void) { a = 0; } | ||
3873 | private: | ||
3874 | int a; | ||
3875 | }; | ||
3876 | EOF | ||
3877 | ],[$1],[F77],[cat > conftest.$ac_ext <<EOF | ||
3878 | subroutine foo | ||
3879 | implicit none | ||
3880 | integer*4 a | ||
3881 | a=0 | ||
3882 | return | ||
3883 | end | ||
3884 | EOF | ||
3885 | ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF | ||
3886 | public class foo { | ||
3887 | private int a; | ||
3888 | public void bar (void) { | ||
3889 | a = 0; | ||
3890 | } | ||
3891 | }; | ||
3892 | EOF | ||
3893 | ]) | ||
3894 | dnl Parse the compiler output and extract the necessary | ||
3895 | dnl objects, libraries and library flags. | ||
3896 | if AC_TRY_EVAL(ac_compile); then | ||
3897 | # Parse the compiler output and extract the necessary | ||
3898 | # objects, libraries and library flags. | ||
3899 | |||
3900 | # Sentinel used to keep track of whether or not we are before | ||
3901 | # the conftest object file. | ||
3902 | pre_test_object_deps_done=no | ||
3903 | |||
3904 | # The `*' in the case matches for architectures that use `case' in | ||
3905 | # $output_verbose_cmd can trigger glob expansion during the loop | ||
3906 | # eval without this substitution. | ||
3907 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | ||
3908 | |||
3909 | for p in `eval $output_verbose_link_cmd`; do | ||
3910 | case $p in | ||
3911 | |||
3912 | -L* | -R* | -l*) | ||
3913 | # Some compilers place space between "-{L,R}" and the path. | ||
3914 | # Remove the space. | ||
3915 | if test $p = "-L" \ | ||
3916 | || test $p = "-R"; then | ||
3917 | prev=$p | ||
3918 | continue | ||
3919 | else | ||
3920 | prev= | ||
3921 | fi | ||
3922 | |||
3923 | if test "$pre_test_object_deps_done" = no; then | ||
3924 | case $p in | ||
3925 | -L* | -R*) | ||
3926 | # Internal compiler library paths should come after those | ||
3927 | # provided the user. The postdeps already come after the | ||
3928 | # user supplied libs so there is no need to process them. | ||
3929 | if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then | ||
3930 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" | ||
3931 | else | ||
3932 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" | ||
3933 | fi | ||
3934 | ;; | ||
3935 | # The "-l" case would never come before the object being | ||
3936 | # linked, so don't bother handling this case. | ||
3937 | esac | ||
3938 | else | ||
3939 | if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then | ||
3940 | _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" | ||
3941 | else | ||
3942 | _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" | ||
3943 | fi | ||
3944 | fi | ||
3945 | ;; | ||
3946 | |||
3947 | *.$objext) | ||
3948 | # This assumes that the test object file only shows up | ||
3949 | # once in the compiler output. | ||
3950 | if test "$p" = "conftest.$objext"; then | ||
3951 | pre_test_object_deps_done=yes | ||
3952 | continue | ||
3953 | fi | ||
3954 | |||
3955 | if test "$pre_test_object_deps_done" = no; then | ||
3956 | if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then | ||
3957 | _LT_AC_TAGVAR(predep_objects, $1)="$p" | ||
3958 | else | ||
3959 | _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" | ||
3960 | fi | ||
3961 | else | ||
3962 | if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then | ||
3963 | _LT_AC_TAGVAR(postdep_objects, $1)="$p" | ||
3964 | else | ||
3965 | _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" | ||
3966 | fi | ||
3967 | fi | ||
3968 | ;; | ||
3969 | |||
3970 | *) ;; # Ignore the rest. | ||
3971 | |||
3972 | esac | ||
3973 | done | ||
3974 | |||
3975 | # Clean up. | ||
3976 | rm -f a.out a.exe | ||
3977 | else | ||
3978 | echo "libtool.m4: error: problem compiling $1 test program" | ||
3979 | fi | ||
3980 | |||
3981 | $rm -f confest.$objext | ||
3982 | |||
3983 | # PORTME: override above test on systems where it is broken | ||
3984 | ifelse([$1],[CXX], | ||
3985 | [case $host_os in | ||
3986 | interix3*) | ||
3987 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
3988 | # hack all around it, let's just trust "g++" to DTRT. | ||
3989 | _LT_AC_TAGVAR(predep_objects,$1)= | ||
3990 | _LT_AC_TAGVAR(postdep_objects,$1)= | ||
3991 | _LT_AC_TAGVAR(postdeps,$1)= | ||
3992 | ;; | ||
3993 | |||
3994 | solaris*) | ||
3995 | case $cc_basename in | ||
3996 | CC*) | ||
3997 | # Adding this requires a known-good setup of shared libraries for | ||
3998 | # Sun compiler versions before 5.6, else PIC objects from an old | ||
3999 | # archive will be linked into the output, leading to subtle bugs. | ||
4000 | _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' | ||
4001 | ;; | ||
4002 | esac | ||
4003 | ;; | ||
4004 | esac | ||
4005 | ]) | ||
4006 | |||
4007 | case " $_LT_AC_TAGVAR(postdeps, $1) " in | ||
4008 | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; | ||
4009 | esac | ||
4010 | ])# AC_LIBTOOL_POSTDEP_PREDEP | ||
4011 | |||
4012 | # AC_LIBTOOL_LANG_F77_CONFIG | ||
4013 | # -------------------------- | ||
4014 | # Ensure that the configuration vars for the C compiler are | ||
4015 | # suitably defined. Those variables are subsequently used by | ||
4016 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4017 | AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) | ||
4018 | AC_DEFUN([_LT_AC_LANG_F77_CONFIG], | ||
4019 | [AC_REQUIRE([AC_PROG_F77]) | ||
4020 | AC_LANG_PUSH(Fortran 77) | ||
4021 | |||
4022 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4023 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
4024 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
4025 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
4026 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
4027 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4028 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
4029 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
4030 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
4031 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
4032 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
4033 | _LT_AC_TAGVAR(module_cmds, $1)= | ||
4034 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
4035 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
4036 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
4037 | _LT_AC_TAGVAR(no_undefined_flag, $1)= | ||
4038 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
4039 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
4040 | |||
4041 | # Source file extension for f77 test sources. | ||
4042 | ac_ext=f | ||
4043 | |||
4044 | # Object file extension for compiled f77 test sources. | ||
4045 | objext=o | ||
4046 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
4047 | |||
4048 | # Code to be used in simple compile tests | ||
4049 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" | ||
4050 | |||
4051 | # Code to be used in simple link tests | ||
4052 | lt_simple_link_test_code=" program t\n end\n" | ||
4053 | |||
4054 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
4055 | _LT_AC_SYS_COMPILER | ||
4056 | |||
4057 | # save warnings/boilerplate of simple test code | ||
4058 | _LT_COMPILER_BOILERPLATE | ||
4059 | _LT_LINKER_BOILERPLATE | ||
4060 | |||
4061 | # Allow CC to be a program name with arguments. | ||
4062 | lt_save_CC="$CC" | ||
4063 | CC=${F77-"f77"} | ||
4064 | compiler=$CC | ||
4065 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
4066 | _LT_CC_BASENAME([$compiler]) | ||
4067 | |||
4068 | AC_MSG_CHECKING([if libtool supports shared libraries]) | ||
4069 | AC_MSG_RESULT([$can_build_shared]) | ||
4070 | |||
4071 | AC_MSG_CHECKING([whether to build shared libraries]) | ||
4072 | test "$can_build_shared" = "no" && enable_shared=no | ||
4073 | |||
4074 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
4075 | # are all built from PIC. | ||
4076 | case $host_os in | ||
4077 | aix3*) | ||
4078 | test "$enable_shared" = yes && enable_static=no | ||
4079 | if test -n "$RANLIB"; then | ||
4080 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
4081 | postinstall_cmds='$RANLIB $lib' | ||
4082 | fi | ||
4083 | ;; | ||
4084 | aix4* | aix5*) | ||
4085 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
4086 | test "$enable_shared" = yes && enable_static=no | ||
4087 | fi | ||
4088 | ;; | ||
4089 | esac | ||
4090 | AC_MSG_RESULT([$enable_shared]) | ||
4091 | |||
4092 | AC_MSG_CHECKING([whether to build static libraries]) | ||
4093 | # Make sure either enable_shared or enable_static is yes. | ||
4094 | test "$enable_shared" = yes || enable_static=yes | ||
4095 | AC_MSG_RESULT([$enable_static]) | ||
4096 | |||
4097 | _LT_AC_TAGVAR(GCC, $1)="$G77" | ||
4098 | _LT_AC_TAGVAR(LD, $1)="$LD" | ||
4099 | |||
4100 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
4101 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
4102 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
4103 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
4104 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
4105 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
4106 | |||
4107 | AC_LIBTOOL_CONFIG($1) | ||
4108 | |||
4109 | AC_LANG_POP | ||
4110 | CC="$lt_save_CC" | ||
4111 | ])# AC_LIBTOOL_LANG_F77_CONFIG | ||
4112 | |||
4113 | |||
4114 | # AC_LIBTOOL_LANG_GCJ_CONFIG | ||
4115 | # -------------------------- | ||
4116 | # Ensure that the configuration vars for the C compiler are | ||
4117 | # suitably defined. Those variables are subsequently used by | ||
4118 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4119 | AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) | ||
4120 | AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], | ||
4121 | [AC_LANG_SAVE | ||
4122 | |||
4123 | # Source file extension for Java test sources. | ||
4124 | ac_ext=java | ||
4125 | |||
4126 | # Object file extension for compiled Java test sources. | ||
4127 | objext=o | ||
4128 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
4129 | |||
4130 | # Code to be used in simple compile tests | ||
4131 | lt_simple_compile_test_code="class foo {}\n" | ||
4132 | |||
4133 | # Code to be used in simple link tests | ||
4134 | lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' | ||
4135 | |||
4136 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
4137 | _LT_AC_SYS_COMPILER | ||
4138 | |||
4139 | # save warnings/boilerplate of simple test code | ||
4140 | _LT_COMPILER_BOILERPLATE | ||
4141 | _LT_LINKER_BOILERPLATE | ||
4142 | |||
4143 | # Allow CC to be a program name with arguments. | ||
4144 | lt_save_CC="$CC" | ||
4145 | CC=${GCJ-"gcj"} | ||
4146 | compiler=$CC | ||
4147 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
4148 | _LT_CC_BASENAME([$compiler]) | ||
4149 | |||
4150 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | ||
4151 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4152 | |||
4153 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
4154 | |||
4155 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | ||
4156 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
4157 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
4158 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
4159 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
4160 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
4161 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
4162 | |||
4163 | AC_LIBTOOL_CONFIG($1) | ||
4164 | |||
4165 | AC_LANG_RESTORE | ||
4166 | CC="$lt_save_CC" | ||
4167 | ])# AC_LIBTOOL_LANG_GCJ_CONFIG | ||
4168 | |||
4169 | |||
4170 | # AC_LIBTOOL_LANG_RC_CONFIG | ||
4171 | # ------------------------- | ||
4172 | # Ensure that the configuration vars for the Windows resource compiler are | ||
4173 | # suitably defined. Those variables are subsequently used by | ||
4174 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4175 | AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) | ||
4176 | AC_DEFUN([_LT_AC_LANG_RC_CONFIG], | ||
4177 | [AC_LANG_SAVE | ||
4178 | |||
4179 | # Source file extension for RC test sources. | ||
4180 | ac_ext=rc | ||
4181 | |||
4182 | # Object file extension for compiled RC test sources. | ||
4183 | objext=o | ||
4184 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
4185 | |||
4186 | # Code to be used in simple compile tests | ||
4187 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | ||
4188 | |||
4189 | # Code to be used in simple link tests | ||
4190 | lt_simple_link_test_code="$lt_simple_compile_test_code" | ||
4191 | |||
4192 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
4193 | _LT_AC_SYS_COMPILER | ||
4194 | |||
4195 | # save warnings/boilerplate of simple test code | ||
4196 | _LT_COMPILER_BOILERPLATE | ||
4197 | _LT_LINKER_BOILERPLATE | ||
4198 | |||
4199 | # Allow CC to be a program name with arguments. | ||
4200 | lt_save_CC="$CC" | ||
4201 | CC=${RC-"windres"} | ||
4202 | compiler=$CC | ||
4203 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
4204 | _LT_CC_BASENAME([$compiler]) | ||
4205 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
4206 | |||
4207 | AC_LIBTOOL_CONFIG($1) | ||
4208 | |||
4209 | AC_LANG_RESTORE | ||
4210 | CC="$lt_save_CC" | ||
4211 | ])# AC_LIBTOOL_LANG_RC_CONFIG | ||
4212 | |||
4213 | |||
4214 | # AC_LIBTOOL_CONFIG([TAGNAME]) | ||
4215 | # ---------------------------- | ||
4216 | # If TAGNAME is not passed, then create an initial libtool script | ||
4217 | # with a default configuration from the untagged config vars. Otherwise | ||
4218 | # add code to config.status for appending the configuration named by | ||
4219 | # TAGNAME from the matching tagged config vars. | ||
4220 | AC_DEFUN([AC_LIBTOOL_CONFIG], | ||
4221 | [# The else clause should only fire when bootstrapping the | ||
4222 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
4223 | # with your package, and you will get complaints that there are | ||
4224 | # no rules to generate ltmain.sh. | ||
4225 | if test -f "$ltmain"; then | ||
4226 | # See if we are running on zsh, and set the options which allow our commands through | ||
4227 | # without removal of \ escapes. | ||
4228 | if test -n "${ZSH_VERSION+set}" ; then | ||
4229 | setopt NO_GLOB_SUBST | ||
4230 | fi | ||
4231 | # Now quote all the things that may contain metacharacters while being | ||
4232 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
4233 | # variables and quote the copies for generation of the libtool script. | ||
4234 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | ||
4235 | SED SHELL STRIP \ | ||
4236 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
4237 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
4238 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
4239 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
4240 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
4241 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
4242 | old_postinstall_cmds old_postuninstall_cmds \ | ||
4243 | _LT_AC_TAGVAR(compiler, $1) \ | ||
4244 | _LT_AC_TAGVAR(CC, $1) \ | ||
4245 | _LT_AC_TAGVAR(LD, $1) \ | ||
4246 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ | ||
4247 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ | ||
4248 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ | ||
4249 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ | ||
4250 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ | ||
4251 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ | ||
4252 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ | ||
4253 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ | ||
4254 | _LT_AC_TAGVAR(old_archive_cmds, $1) \ | ||
4255 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ | ||
4256 | _LT_AC_TAGVAR(predep_objects, $1) \ | ||
4257 | _LT_AC_TAGVAR(postdep_objects, $1) \ | ||
4258 | _LT_AC_TAGVAR(predeps, $1) \ | ||
4259 | _LT_AC_TAGVAR(postdeps, $1) \ | ||
4260 | _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ | ||
4261 | _LT_AC_TAGVAR(archive_cmds, $1) \ | ||
4262 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ | ||
4263 | _LT_AC_TAGVAR(postinstall_cmds, $1) \ | ||
4264 | _LT_AC_TAGVAR(postuninstall_cmds, $1) \ | ||
4265 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ | ||
4266 | _LT_AC_TAGVAR(allow_undefined_flag, $1) \ | ||
4267 | _LT_AC_TAGVAR(no_undefined_flag, $1) \ | ||
4268 | _LT_AC_TAGVAR(export_symbols_cmds, $1) \ | ||
4269 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ | ||
4270 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ | ||
4271 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ | ||
4272 | _LT_AC_TAGVAR(hardcode_automatic, $1) \ | ||
4273 | _LT_AC_TAGVAR(module_cmds, $1) \ | ||
4274 | _LT_AC_TAGVAR(module_expsym_cmds, $1) \ | ||
4275 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ | ||
4276 | _LT_AC_TAGVAR(exclude_expsyms, $1) \ | ||
4277 | _LT_AC_TAGVAR(include_expsyms, $1); do | ||
4278 | |||
4279 | case $var in | ||
4280 | _LT_AC_TAGVAR(old_archive_cmds, $1) | \ | ||
4281 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ | ||
4282 | _LT_AC_TAGVAR(archive_cmds, $1) | \ | ||
4283 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ | ||
4284 | _LT_AC_TAGVAR(module_cmds, $1) | \ | ||
4285 | _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ | ||
4286 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ | ||
4287 | _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ | ||
4288 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
4289 | postinstall_cmds | postuninstall_cmds | \ | ||
4290 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
4291 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
4292 | # Double-quote double-evaled strings. | ||
4293 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
4294 | ;; | ||
4295 | *) | ||
4296 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
4297 | ;; | ||
4298 | esac | ||
4299 | done | ||
4300 | |||
4301 | case $lt_echo in | ||
4302 | *'\[$]0 --fallback-echo"') | ||
4303 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` | ||
4304 | ;; | ||
4305 | esac | ||
4306 | |||
4307 | ifelse([$1], [], | ||
4308 | [cfgfile="${ofile}T" | ||
4309 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | ||
4310 | $rm -f "$cfgfile" | ||
4311 | AC_MSG_NOTICE([creating $ofile])], | ||
4312 | [cfgfile="$ofile"]) | ||
4313 | |||
4314 | cat <<__EOF__ >> "$cfgfile" | ||
4315 | ifelse([$1], [], | ||
4316 | [#! $SHELL | ||
4317 | |||
4318 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
4319 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | ||
4320 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
4321 | # | ||
4322 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | ||
4323 | # Free Software Foundation, Inc. | ||
4324 | # | ||
4325 | # This file is part of GNU Libtool: | ||
4326 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
4327 | # | ||
4328 | # This program is free software; you can redistribute it and/or modify | ||
4329 | # it under the terms of the GNU General Public License as published by | ||
4330 | # the Free Software Foundation; either version 2 of the License, or | ||
4331 | # (at your option) any later version. | ||
4332 | # | ||
4333 | # This program is distributed in the hope that it will be useful, but | ||
4334 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
4335 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
4336 | # General Public License for more details. | ||
4337 | # | ||
4338 | # You should have received a copy of the GNU General Public License | ||
4339 | # along with this program; if not, write to the Free Software | ||
4340 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
4341 | # | ||
4342 | # As a special exception to the GNU General Public License, if you | ||
4343 | # distribute this file as part of a program that contains a | ||
4344 | # configuration script generated by Autoconf, you may include it under | ||
4345 | # the same distribution terms that you use for the rest of that program. | ||
4346 | |||
4347 | # A sed program that does not truncate output. | ||
4348 | SED=$lt_SED | ||
4349 | |||
4350 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
4351 | Xsed="$SED -e 1s/^X//" | ||
4352 | |||
4353 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
4354 | # if CDPATH is set. | ||
4355 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
4356 | |||
4357 | # The names of the tagged configurations supported by this script. | ||
4358 | available_tags= | ||
4359 | |||
4360 | # ### BEGIN LIBTOOL CONFIG], | ||
4361 | [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) | ||
4362 | |||
4363 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
4364 | |||
4365 | # Shell to use when invoking shell scripts. | ||
4366 | SHELL=$lt_SHELL | ||
4367 | |||
4368 | # Whether or not to build shared libraries. | ||
4369 | build_libtool_libs=$enable_shared | ||
4370 | |||
4371 | # Whether or not to build static libraries. | ||
4372 | build_old_libs=$enable_static | ||
4373 | |||
4374 | # Whether or not to add -lc for building shared libraries. | ||
4375 | build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) | ||
4376 | |||
4377 | # Whether or not to disallow shared libs when runtime libs are static | ||
4378 | allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) | ||
4379 | |||
4380 | # Whether or not to optimize for fast installation. | ||
4381 | fast_install=$enable_fast_install | ||
4382 | |||
4383 | # The host system. | ||
4384 | host_alias=$host_alias | ||
4385 | host=$host | ||
4386 | host_os=$host_os | ||
4387 | |||
4388 | # The build system. | ||
4389 | build_alias=$build_alias | ||
4390 | build=$build | ||
4391 | build_os=$build_os | ||
4392 | |||
4393 | # An echo program that does not interpret backslashes. | ||
4394 | echo=$lt_echo | ||
4395 | |||
4396 | # The archiver. | ||
4397 | AR=$lt_AR | ||
4398 | AR_FLAGS=$lt_AR_FLAGS | ||
4399 | |||
4400 | # A C compiler. | ||
4401 | LTCC=$lt_LTCC | ||
4402 | |||
4403 | # LTCC compiler flags. | ||
4404 | LTCFLAGS=$lt_LTCFLAGS | ||
4405 | |||
4406 | # A language-specific compiler. | ||
4407 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) | ||
4408 | |||
4409 | # Is the compiler the GNU C compiler? | ||
4410 | with_gcc=$_LT_AC_TAGVAR(GCC, $1) | ||
4411 | |||
4412 | # An ERE matcher. | ||
4413 | EGREP=$lt_EGREP | ||
4414 | |||
4415 | # The linker used to build libraries. | ||
4416 | LD=$lt_[]_LT_AC_TAGVAR(LD, $1) | ||
4417 | |||
4418 | # Whether we need hard or soft links. | ||
4419 | LN_S=$lt_LN_S | ||
4420 | |||
4421 | # A BSD-compatible nm program. | ||
4422 | NM=$lt_NM | ||
4423 | |||
4424 | # A symbol stripping program | ||
4425 | STRIP=$lt_STRIP | ||
4426 | |||
4427 | # Used to examine libraries when file_magic_cmd begins "file" | ||
4428 | MAGIC_CMD=$MAGIC_CMD | ||
4429 | |||
4430 | # Used on cygwin: DLL creation program. | ||
4431 | DLLTOOL="$DLLTOOL" | ||
4432 | |||
4433 | # Used on cygwin: object dumper. | ||
4434 | OBJDUMP="$OBJDUMP" | ||
4435 | |||
4436 | # Used on cygwin: assembler. | ||
4437 | AS="$AS" | ||
4438 | |||
4439 | # The name of the directory that contains temporary libtool files. | ||
4440 | objdir=$objdir | ||
4441 | |||
4442 | # How to create reloadable object files. | ||
4443 | reload_flag=$lt_reload_flag | ||
4444 | reload_cmds=$lt_reload_cmds | ||
4445 | |||
4446 | # How to pass a linker flag through the compiler. | ||
4447 | wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | ||
4448 | |||
4449 | # Object file suffix (normally "o"). | ||
4450 | objext="$ac_objext" | ||
4451 | |||
4452 | # Old archive suffix (normally "a"). | ||
4453 | libext="$libext" | ||
4454 | |||
4455 | # Shared library suffix (normally ".so"). | ||
4456 | shrext_cmds='$shrext_cmds' | ||
4457 | |||
4458 | # Executable file suffix (normally ""). | ||
4459 | exeext="$exeext" | ||
4460 | |||
4461 | # Additional compiler flags for building library objects. | ||
4462 | pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | ||
4463 | pic_mode=$pic_mode | ||
4464 | |||
4465 | # What is the maximum length of a command? | ||
4466 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
4467 | |||
4468 | # Does compiler simultaneously support -c and -o options? | ||
4469 | compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) | ||
4470 | |||
4471 | # Must we lock files when doing compilation? | ||
4472 | need_locks=$lt_need_locks | ||
4473 | |||
4474 | # Do we need the lib prefix for modules? | ||
4475 | need_lib_prefix=$need_lib_prefix | ||
4476 | |||
4477 | # Do we need a version for libraries? | ||
4478 | need_version=$need_version | ||
4479 | |||
4480 | # Whether dlopen is supported. | ||
4481 | dlopen_support=$enable_dlopen | ||
4482 | |||
4483 | # Whether dlopen of programs is supported. | ||
4484 | dlopen_self=$enable_dlopen_self | ||
4485 | |||
4486 | # Whether dlopen of statically linked programs is supported. | ||
4487 | dlopen_self_static=$enable_dlopen_self_static | ||
4488 | |||
4489 | # Compiler flag to prevent dynamic linking. | ||
4490 | link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) | ||
4491 | |||
4492 | # Compiler flag to turn off builtin functions. | ||
4493 | no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) | ||
4494 | |||
4495 | # Compiler flag to allow reflexive dlopens. | ||
4496 | export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) | ||
4497 | |||
4498 | # Compiler flag to generate shared objects directly from archives. | ||
4499 | whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) | ||
4500 | |||
4501 | # Compiler flag to generate thread-safe objects. | ||
4502 | thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) | ||
4503 | |||
4504 | # Library versioning type. | ||
4505 | version_type=$version_type | ||
4506 | |||
4507 | # Format of library name prefix. | ||
4508 | libname_spec=$lt_libname_spec | ||
4509 | |||
4510 | # List of archive names. First name is the real one, the rest are links. | ||
4511 | # The last name is the one that the linker finds with -lNAME. | ||
4512 | library_names_spec=$lt_library_names_spec | ||
4513 | |||
4514 | # The coded name of the library, if different from the real name. | ||
4515 | soname_spec=$lt_soname_spec | ||
4516 | |||
4517 | # Commands used to build and install an old-style archive. | ||
4518 | RANLIB=$lt_RANLIB | ||
4519 | old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) | ||
4520 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
4521 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
4522 | |||
4523 | # Create an old-style archive from a shared archive. | ||
4524 | old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | ||
4525 | |||
4526 | # Create a temporary old-style archive to link instead of a shared archive. | ||
4527 | old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | ||
4528 | |||
4529 | # Commands used to build and install a shared archive. | ||
4530 | archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) | ||
4531 | archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) | ||
4532 | postinstall_cmds=$lt_postinstall_cmds | ||
4533 | postuninstall_cmds=$lt_postuninstall_cmds | ||
4534 | |||
4535 | # Commands used to build a loadable module (assumed same as above if empty) | ||
4536 | module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) | ||
4537 | module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) | ||
4538 | |||
4539 | # Commands to strip libraries. | ||
4540 | old_striplib=$lt_old_striplib | ||
4541 | striplib=$lt_striplib | ||
4542 | |||
4543 | # Dependencies to place before the objects being linked to create a | ||
4544 | # shared library. | ||
4545 | predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) | ||
4546 | |||
4547 | # Dependencies to place after the objects being linked to create a | ||
4548 | # shared library. | ||
4549 | postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | ||
4550 | |||
4551 | # Dependencies to place before the objects being linked to create a | ||
4552 | # shared library. | ||
4553 | predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) | ||
4554 | |||
4555 | # Dependencies to place after the objects being linked to create a | ||
4556 | # shared library. | ||
4557 | postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) | ||
4558 | |||
4559 | # The library search path used internally by the compiler when linking | ||
4560 | # a shared library. | ||
4561 | compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | ||
4562 | |||
4563 | # Method to check whether dependent libraries are shared objects. | ||
4564 | deplibs_check_method=$lt_deplibs_check_method | ||
4565 | |||
4566 | # Command to use when deplibs_check_method == file_magic. | ||
4567 | file_magic_cmd=$lt_file_magic_cmd | ||
4568 | |||
4569 | # Flag that allows shared libraries with undefined symbols to be built. | ||
4570 | allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) | ||
4571 | |||
4572 | # Flag that forces no undefined symbols. | ||
4573 | no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) | ||
4574 | |||
4575 | # Commands used to finish a libtool library installation in a directory. | ||
4576 | finish_cmds=$lt_finish_cmds | ||
4577 | |||
4578 | # Same as above, but a single script fragment to be evaled but not shown. | ||
4579 | finish_eval=$lt_finish_eval | ||
4580 | |||
4581 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
4582 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
4583 | |||
4584 | # Transform the output of nm in a proper C declaration | ||
4585 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
4586 | |||
4587 | # Transform the output of nm in a C name address pair | ||
4588 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
4589 | |||
4590 | # This is the shared library runtime path variable. | ||
4591 | runpath_var=$runpath_var | ||
4592 | |||
4593 | # This is the shared library path variable. | ||
4594 | shlibpath_var=$shlibpath_var | ||
4595 | |||
4596 | # Is shlibpath searched before the hard-coded library search path? | ||
4597 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
4598 | |||
4599 | # How to hardcode a shared library path into an executable. | ||
4600 | hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) | ||
4601 | |||
4602 | # Whether we should hardcode library paths into libraries. | ||
4603 | hardcode_into_libs=$hardcode_into_libs | ||
4604 | |||
4605 | # Flag to hardcode \$libdir into a binary during linking. | ||
4606 | # This must work even if \$libdir does not exist. | ||
4607 | hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) | ||
4608 | |||
4609 | # If ld is used when linking, flag to hardcode \$libdir into | ||
4610 | # a binary during linking. This must work even if \$libdir does | ||
4611 | # not exist. | ||
4612 | hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) | ||
4613 | |||
4614 | # Whether we need a single -rpath flag with a separated argument. | ||
4615 | hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) | ||
4616 | |||
4617 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
4618 | # resulting binary. | ||
4619 | hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) | ||
4620 | |||
4621 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
4622 | # resulting binary. | ||
4623 | hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) | ||
4624 | |||
4625 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
4626 | # the resulting binary. | ||
4627 | hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) | ||
4628 | |||
4629 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
4630 | # and all subsequent libraries and executables linked against it. | ||
4631 | hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) | ||
4632 | |||
4633 | # Variables whose values should be saved in libtool wrapper scripts and | ||
4634 | # restored at relink time. | ||
4635 | variables_saved_for_relink="$variables_saved_for_relink" | ||
4636 | |||
4637 | # Whether libtool must link a program against all its dependency libraries. | ||
4638 | link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) | ||
4639 | |||
4640 | # Compile-time system search path for libraries | ||
4641 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
4642 | |||
4643 | # Run-time system search path for libraries | ||
4644 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
4645 | |||
4646 | # Fix the shell variable \$srcfile for the compiler. | ||
4647 | fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" | ||
4648 | |||
4649 | # Set to yes if exported symbols are required. | ||
4650 | always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) | ||
4651 | |||
4652 | # The commands to list exported symbols. | ||
4653 | export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) | ||
4654 | |||
4655 | # The commands to extract the exported symbol list from a shared archive. | ||
4656 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
4657 | |||
4658 | # Symbols that should not be listed in the preloaded symbols. | ||
4659 | exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) | ||
4660 | |||
4661 | # Symbols that must always be exported. | ||
4662 | include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) | ||
4663 | |||
4664 | ifelse([$1],[], | ||
4665 | [# ### END LIBTOOL CONFIG], | ||
4666 | [# ### END LIBTOOL TAG CONFIG: $tagname]) | ||
4667 | |||
4668 | __EOF__ | ||
4669 | |||
4670 | ifelse([$1],[], [ | ||
4671 | case $host_os in | ||
4672 | aix3*) | ||
4673 | cat <<\EOF >> "$cfgfile" | ||
4674 | |||
4675 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
4676 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
4677 | # vanish in a puff of smoke. | ||
4678 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
4679 | COLLECT_NAMES= | ||
4680 | export COLLECT_NAMES | ||
4681 | fi | ||
4682 | EOF | ||
4683 | ;; | ||
4684 | esac | ||
4685 | |||
4686 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
4687 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
4688 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
4689 | # is reportedly fixed, but why not run on old versions too? | ||
4690 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | ||
4691 | |||
4692 | mv -f "$cfgfile" "$ofile" || \ | ||
4693 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
4694 | chmod +x "$ofile" | ||
4695 | ]) | ||
4696 | else | ||
4697 | # If there is no Makefile yet, we rely on a make rule to execute | ||
4698 | # `config.status --recheck' to rerun these tests and create the | ||
4699 | # libtool script then. | ||
4700 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
4701 | if test -f "$ltmain_in"; then | ||
4702 | test -f Makefile && make "$ltmain" | ||
4703 | fi | ||
4704 | fi | ||
4705 | ])# AC_LIBTOOL_CONFIG | ||
4706 | |||
4707 | |||
4708 | # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) | ||
4709 | # ------------------------------------------- | ||
4710 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], | ||
4711 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
4712 | |||
4713 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
4714 | |||
4715 | if test "$GCC" = yes; then | ||
4716 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
4717 | |||
4718 | AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | ||
4719 | lt_cv_prog_compiler_rtti_exceptions, | ||
4720 | [-fno-rtti -fno-exceptions], [], | ||
4721 | [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | ||
4722 | fi | ||
4723 | ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI | ||
4724 | |||
4725 | |||
4726 | # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | ||
4727 | # --------------------------------- | ||
4728 | AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], | ||
4729 | [AC_REQUIRE([AC_CANONICAL_HOST]) | ||
4730 | AC_REQUIRE([AC_PROG_NM]) | ||
4731 | AC_REQUIRE([AC_OBJEXT]) | ||
4732 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
4733 | AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | ||
4734 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | ||
4735 | [ | ||
4736 | # These are sane defaults that work on at least a few old systems. | ||
4737 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
4738 | |||
4739 | # Character class describing NM global symbol codes. | ||
4740 | symcode='[[BCDEGRST]]' | ||
4741 | |||
4742 | # Regexp to match symbols that can be accessed directly from C. | ||
4743 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | ||
4744 | |||
4745 | # Transform an extracted symbol line into a proper C declaration | ||
4746 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | ||
4747 | |||
4748 | # Transform an extracted symbol line into symbol name and symbol address | ||
4749 | 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'" | ||
4750 | |||
4751 | # Define system-specific variables. | ||
4752 | case $host_os in | ||
4753 | aix*) | ||
4754 | symcode='[[BCDT]]' | ||
4755 | ;; | ||
4756 | cygwin* | mingw* | pw32*) | ||
4757 | symcode='[[ABCDGISTW]]' | ||
4758 | ;; | ||
4759 | hpux*) # Its linker distinguishes data from code symbols | ||
4760 | if test "$host_cpu" = ia64; then | ||
4761 | symcode='[[ABCDEGRST]]' | ||
4762 | fi | ||
4763 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
4764 | 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'" | ||
4765 | ;; | ||
4766 | linux*) | ||
4767 | if test "$host_cpu" = ia64; then | ||
4768 | symcode='[[ABCDGIRSTW]]' | ||
4769 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
4770 | 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'" | ||
4771 | fi | ||
4772 | ;; | ||
4773 | irix* | nonstopux*) | ||
4774 | symcode='[[BCDEGRST]]' | ||
4775 | ;; | ||
4776 | osf*) | ||
4777 | symcode='[[BCDEGQRST]]' | ||
4778 | ;; | ||
4779 | solaris*) | ||
4780 | symcode='[[BDRT]]' | ||
4781 | ;; | ||
4782 | sco3.2v5*) | ||
4783 | symcode='[[DT]]' | ||
4784 | ;; | ||
4785 | sysv4.2uw2*) | ||
4786 | symcode='[[DT]]' | ||
4787 | ;; | ||
4788 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
4789 | symcode='[[ABDT]]' | ||
4790 | ;; | ||
4791 | sysv4) | ||
4792 | symcode='[[DFNSTU]]' | ||
4793 | ;; | ||
4794 | esac | ||
4795 | |||
4796 | # Handle CRLF in mingw tool chain | ||
4797 | opt_cr= | ||
4798 | case $build_os in | ||
4799 | mingw*) | ||
4800 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
4801 | ;; | ||
4802 | esac | ||
4803 | |||
4804 | # If we're using GNU nm, then use its standard symbol codes. | ||
4805 | case `$NM -V 2>&1` in | ||
4806 | *GNU* | *'with BFD'*) | ||
4807 | symcode='[[ABCDGIRSTW]]' ;; | ||
4808 | esac | ||
4809 | |||
4810 | # Try without a prefix undercore, then with it. | ||
4811 | for ac_symprfx in "" "_"; do | ||
4812 | |||
4813 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
4814 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
4815 | |||
4816 | # Write the raw and C identifiers. | ||
4817 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
4818 | |||
4819 | # Check to see that the pipe works correctly. | ||
4820 | pipe_works=no | ||
4821 | |||
4822 | rm -f conftest* | ||
4823 | cat > conftest.$ac_ext <<EOF | ||
4824 | #ifdef __cplusplus | ||
4825 | extern "C" { | ||
4826 | #endif | ||
4827 | char nm_test_var; | ||
4828 | void nm_test_func(){} | ||
4829 | #ifdef __cplusplus | ||
4830 | } | ||
4831 | #endif | ||
4832 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
4833 | EOF | ||
4834 | |||
4835 | if AC_TRY_EVAL(ac_compile); then | ||
4836 | # Now try to grab the symbols. | ||
4837 | nlist=conftest.nm | ||
4838 | if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then | ||
4839 | # Try sorting and uniquifying the output. | ||
4840 | if sort "$nlist" | uniq > "$nlist"T; then | ||
4841 | mv -f "$nlist"T "$nlist" | ||
4842 | else | ||
4843 | rm -f "$nlist"T | ||
4844 | fi | ||
4845 | |||
4846 | # Make sure that we snagged all the symbols we need. | ||
4847 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | ||
4848 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | ||
4849 | cat <<EOF > conftest.$ac_ext | ||
4850 | #ifdef __cplusplus | ||
4851 | extern "C" { | ||
4852 | #endif | ||
4853 | |||
4854 | EOF | ||
4855 | # Now generate the symbol file. | ||
4856 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | ||
4857 | |||
4858 | cat <<EOF >> conftest.$ac_ext | ||
4859 | #if defined (__STDC__) && __STDC__ | ||
4860 | # define lt_ptr_t void * | ||
4861 | #else | ||
4862 | # define lt_ptr_t char * | ||
4863 | # define const | ||
4864 | #endif | ||
4865 | |||
4866 | /* The mapping between symbol names and symbols. */ | ||
4867 | const struct { | ||
4868 | const char *name; | ||
4869 | lt_ptr_t address; | ||
4870 | } | ||
4871 | lt_preloaded_symbols[[]] = | ||
4872 | { | ||
4873 | EOF | ||
4874 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | ||
4875 | cat <<\EOF >> conftest.$ac_ext | ||
4876 | {0, (lt_ptr_t) 0} | ||
4877 | }; | ||
4878 | |||
4879 | #ifdef __cplusplus | ||
4880 | } | ||
4881 | #endif | ||
4882 | EOF | ||
4883 | # Now try linking the two files. | ||
4884 | mv conftest.$ac_objext conftstm.$ac_objext | ||
4885 | lt_save_LIBS="$LIBS" | ||
4886 | lt_save_CFLAGS="$CFLAGS" | ||
4887 | LIBS="conftstm.$ac_objext" | ||
4888 | CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | ||
4889 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | ||
4890 | pipe_works=yes | ||
4891 | fi | ||
4892 | LIBS="$lt_save_LIBS" | ||
4893 | CFLAGS="$lt_save_CFLAGS" | ||
4894 | else | ||
4895 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | ||
4896 | fi | ||
4897 | else | ||
4898 | echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | ||
4899 | fi | ||
4900 | else | ||
4901 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | ||
4902 | fi | ||
4903 | else | ||
4904 | echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | ||
4905 | cat conftest.$ac_ext >&5 | ||
4906 | fi | ||
4907 | rm -f conftest* conftst* | ||
4908 | |||
4909 | # Do not use the global_symbol_pipe unless it works. | ||
4910 | if test "$pipe_works" = yes; then | ||
4911 | break | ||
4912 | else | ||
4913 | lt_cv_sys_global_symbol_pipe= | ||
4914 | fi | ||
4915 | done | ||
4916 | ]) | ||
4917 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
4918 | lt_cv_sys_global_symbol_to_cdecl= | ||
4919 | fi | ||
4920 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
4921 | AC_MSG_RESULT(failed) | ||
4922 | else | ||
4923 | AC_MSG_RESULT(ok) | ||
4924 | fi | ||
4925 | ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | ||
4926 | |||
4927 | |||
4928 | # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) | ||
4929 | # --------------------------------------- | ||
4930 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], | ||
4931 | [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= | ||
4932 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4933 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= | ||
4934 | |||
4935 | AC_MSG_CHECKING([for $compiler option to produce PIC]) | ||
4936 | ifelse([$1],[CXX],[ | ||
4937 | # C++ specific cases for pic, static, wl, etc. | ||
4938 | if test "$GXX" = yes; then | ||
4939 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4940 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4941 | |||
4942 | case $host_os in | ||
4943 | aix*) | ||
4944 | # All AIX code is PIC. | ||
4945 | if test "$host_cpu" = ia64; then | ||
4946 | # AIX 5 now supports IA64 processor | ||
4947 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4948 | fi | ||
4949 | ;; | ||
4950 | amigaos*) | ||
4951 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
4952 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
4953 | # like `-m68040'. | ||
4954 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | ||
4955 | ;; | ||
4956 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
4957 | # PIC is the default for these OSes. | ||
4958 | ;; | ||
4959 | mingw* | os2* | pw32*) | ||
4960 | # This hack is so that the source file can tell whether it is being | ||
4961 | # built for inclusion in a dll (and should export symbols for example). | ||
4962 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | ||
4963 | ;; | ||
4964 | darwin* | rhapsody*) | ||
4965 | # PIC is the default on this platform | ||
4966 | # Common symbols not allowed in MH_DYLIB files | ||
4967 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
4968 | ;; | ||
4969 | *djgpp*) | ||
4970 | # DJGPP does not support shared libraries at all | ||
4971 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4972 | ;; | ||
4973 | interix3*) | ||
4974 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
4975 | # Instead, we relocate shared libraries at runtime. | ||
4976 | ;; | ||
4977 | sysv4*MP*) | ||
4978 | if test -d /usr/nec; then | ||
4979 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | ||
4980 | fi | ||
4981 | ;; | ||
4982 | hpux*) | ||
4983 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
4984 | # not for PA HP-UX. | ||
4985 | case $host_cpu in | ||
4986 | hppa*64*|ia64*) | ||
4987 | ;; | ||
4988 | *) | ||
4989 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4990 | ;; | ||
4991 | esac | ||
4992 | ;; | ||
4993 | *) | ||
4994 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4995 | ;; | ||
4996 | esac | ||
4997 | else | ||
4998 | case $host_os in | ||
4999 | aix4* | aix5*) | ||
5000 | # All AIX code is PIC. | ||
5001 | if test "$host_cpu" = ia64; then | ||
5002 | # AIX 5 now supports IA64 processor | ||
5003 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5004 | else | ||
5005 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | ||
5006 | fi | ||
5007 | ;; | ||
5008 | chorus*) | ||
5009 | case $cc_basename in | ||
5010 | cxch68*) | ||
5011 | # Green Hills C++ Compiler | ||
5012 | # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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" | ||
5013 | ;; | ||
5014 | esac | ||
5015 | ;; | ||
5016 | darwin*) | ||
5017 | # PIC is the default on this platform | ||
5018 | # Common symbols not allowed in MH_DYLIB files | ||
5019 | case $cc_basename in | ||
5020 | xlc*) | ||
5021 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | ||
5022 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5023 | ;; | ||
5024 | esac | ||
5025 | ;; | ||
5026 | dgux*) | ||
5027 | case $cc_basename in | ||
5028 | ec++*) | ||
5029 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5030 | ;; | ||
5031 | ghcx*) | ||
5032 | # Green Hills C++ Compiler | ||
5033 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
5034 | ;; | ||
5035 | *) | ||
5036 | ;; | ||
5037 | esac | ||
5038 | ;; | ||
5039 | freebsd* | kfreebsd*-gnu | dragonfly*) | ||
5040 | # FreeBSD uses GNU C++ | ||
5041 | ;; | ||
5042 | hpux9* | hpux10* | hpux11*) | ||
5043 | case $cc_basename in | ||
5044 | CC*) | ||
5045 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5046 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
5047 | if test "$host_cpu" != ia64; then | ||
5048 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
5049 | fi | ||
5050 | ;; | ||
5051 | aCC*) | ||
5052 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5053 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
5054 | case $host_cpu in | ||
5055 | hppa*64*|ia64*) | ||
5056 | # +Z the default | ||
5057 | ;; | ||
5058 | *) | ||
5059 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
5060 | ;; | ||
5061 | esac | ||
5062 | ;; | ||
5063 | *) | ||
5064 | ;; | ||
5065 | esac | ||
5066 | ;; | ||
5067 | interix*) | ||
5068 | # This is c89, which is MS Visual C++ (no shared libs) | ||
5069 | # Anyone wants to do a port? | ||
5070 | ;; | ||
5071 | irix5* | irix6* | nonstopux*) | ||
5072 | case $cc_basename in | ||
5073 | CC*) | ||
5074 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5075 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
5076 | # CC pic flag -KPIC is the default. | ||
5077 | ;; | ||
5078 | *) | ||
5079 | ;; | ||
5080 | esac | ||
5081 | ;; | ||
5082 | linux*) | ||
5083 | case $cc_basename in | ||
5084 | KCC*) | ||
5085 | # KAI C++ Compiler | ||
5086 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | ||
5087 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
5088 | ;; | ||
5089 | icpc* | ecpc*) | ||
5090 | # Intel C++ | ||
5091 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5092 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5093 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
5094 | ;; | ||
5095 | pgCC*) | ||
5096 | # Portland Group C++ compiler. | ||
5097 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5098 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
5099 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5100 | ;; | ||
5101 | cxx*) | ||
5102 | # Compaq C++ | ||
5103 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
5104 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
5105 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
5106 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
5107 | ;; | ||
5108 | *) | ||
5109 | ;; | ||
5110 | esac | ||
5111 | ;; | ||
5112 | lynxos*) | ||
5113 | ;; | ||
5114 | m88k*) | ||
5115 | ;; | ||
5116 | mvs*) | ||
5117 | case $cc_basename in | ||
5118 | cxx*) | ||
5119 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | ||
5120 | ;; | ||
5121 | *) | ||
5122 | ;; | ||
5123 | esac | ||
5124 | ;; | ||
5125 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
5126 | ;; | ||
5127 | osf3* | osf4* | osf5*) | ||
5128 | case $cc_basename in | ||
5129 | KCC*) | ||
5130 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | ||
5131 | ;; | ||
5132 | RCC*) | ||
5133 | # Rational C++ 2.4.1 | ||
5134 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
5135 | ;; | ||
5136 | cxx*) | ||
5137 | # Digital/Compaq C++ | ||
5138 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5139 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
5140 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
5141 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
5142 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
5143 | ;; | ||
5144 | *) | ||
5145 | ;; | ||
5146 | esac | ||
5147 | ;; | ||
5148 | psos*) | ||
5149 | ;; | ||
5150 | solaris*) | ||
5151 | case $cc_basename in | ||
5152 | CC*) | ||
5153 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
5154 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5155 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5156 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
5157 | ;; | ||
5158 | gcx*) | ||
5159 | # Green Hills C++ Compiler | ||
5160 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
5161 | ;; | ||
5162 | *) | ||
5163 | ;; | ||
5164 | esac | ||
5165 | ;; | ||
5166 | sunos4*) | ||
5167 | case $cc_basename in | ||
5168 | CC*) | ||
5169 | # Sun C++ 4.x | ||
5170 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
5171 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5172 | ;; | ||
5173 | lcc*) | ||
5174 | # Lucid | ||
5175 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
5176 | ;; | ||
5177 | *) | ||
5178 | ;; | ||
5179 | esac | ||
5180 | ;; | ||
5181 | tandem*) | ||
5182 | case $cc_basename in | ||
5183 | NCC*) | ||
5184 | # NonStop-UX NCC 3.20 | ||
5185 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5186 | ;; | ||
5187 | *) | ||
5188 | ;; | ||
5189 | esac | ||
5190 | ;; | ||
5191 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
5192 | case $cc_basename in | ||
5193 | CC*) | ||
5194 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5195 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5196 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5197 | ;; | ||
5198 | esac | ||
5199 | ;; | ||
5200 | vxworks*) | ||
5201 | ;; | ||
5202 | *) | ||
5203 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
5204 | ;; | ||
5205 | esac | ||
5206 | fi | ||
5207 | ], | ||
5208 | [ | ||
5209 | if test "$GCC" = yes; then | ||
5210 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5211 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
5212 | |||
5213 | case $host_os in | ||
5214 | aix*) | ||
5215 | # All AIX code is PIC. | ||
5216 | if test "$host_cpu" = ia64; then | ||
5217 | # AIX 5 now supports IA64 processor | ||
5218 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5219 | fi | ||
5220 | ;; | ||
5221 | |||
5222 | amigaos*) | ||
5223 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
5224 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
5225 | # like `-m68040'. | ||
5226 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | ||
5227 | ;; | ||
5228 | |||
5229 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
5230 | # PIC is the default for these OSes. | ||
5231 | ;; | ||
5232 | |||
5233 | mingw* | pw32* | os2*) | ||
5234 | # This hack is so that the source file can tell whether it is being | ||
5235 | # built for inclusion in a dll (and should export symbols for example). | ||
5236 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | ||
5237 | ;; | ||
5238 | |||
5239 | darwin* | rhapsody*) | ||
5240 | # PIC is the default on this platform | ||
5241 | # Common symbols not allowed in MH_DYLIB files | ||
5242 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
5243 | ;; | ||
5244 | |||
5245 | interix3*) | ||
5246 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
5247 | # Instead, we relocate shared libraries at runtime. | ||
5248 | ;; | ||
5249 | |||
5250 | msdosdjgpp*) | ||
5251 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
5252 | # on systems that don't support them. | ||
5253 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
5254 | enable_shared=no | ||
5255 | ;; | ||
5256 | |||
5257 | sysv4*MP*) | ||
5258 | if test -d /usr/nec; then | ||
5259 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | ||
5260 | fi | ||
5261 | ;; | ||
5262 | |||
5263 | hpux*) | ||
5264 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
5265 | # not for PA HP-UX. | ||
5266 | case $host_cpu in | ||
5267 | hppa*64*|ia64*) | ||
5268 | # +Z the default | ||
5269 | ;; | ||
5270 | *) | ||
5271 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
5272 | ;; | ||
5273 | esac | ||
5274 | ;; | ||
5275 | |||
5276 | *) | ||
5277 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
5278 | ;; | ||
5279 | esac | ||
5280 | else | ||
5281 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
5282 | case $host_os in | ||
5283 | aix*) | ||
5284 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5285 | if test "$host_cpu" = ia64; then | ||
5286 | # AIX 5 now supports IA64 processor | ||
5287 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5288 | else | ||
5289 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | ||
5290 | fi | ||
5291 | ;; | ||
5292 | darwin*) | ||
5293 | # PIC is the default on this platform | ||
5294 | # Common symbols not allowed in MH_DYLIB files | ||
5295 | case $cc_basename in | ||
5296 | xlc*) | ||
5297 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | ||
5298 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5299 | ;; | ||
5300 | esac | ||
5301 | ;; | ||
5302 | |||
5303 | mingw* | pw32* | os2*) | ||
5304 | # This hack is so that the source file can tell whether it is being | ||
5305 | # built for inclusion in a dll (and should export symbols for example). | ||
5306 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | ||
5307 | ;; | ||
5308 | |||
5309 | hpux9* | hpux10* | hpux11*) | ||
5310 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5311 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
5312 | # not for PA HP-UX. | ||
5313 | case $host_cpu in | ||
5314 | hppa*64*|ia64*) | ||
5315 | # +Z the default | ||
5316 | ;; | ||
5317 | *) | ||
5318 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
5319 | ;; | ||
5320 | esac | ||
5321 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
5322 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
5323 | ;; | ||
5324 | |||
5325 | irix5* | irix6* | nonstopux*) | ||
5326 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5327 | # PIC (with -KPIC) is the default. | ||
5328 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
5329 | ;; | ||
5330 | |||
5331 | newsos6) | ||
5332 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5333 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5334 | ;; | ||
5335 | |||
5336 | linux*) | ||
5337 | case $cc_basename in | ||
5338 | icc* | ecc*) | ||
5339 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5340 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5341 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
5342 | ;; | ||
5343 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
5344 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
5345 | # which looks to be a dead project) | ||
5346 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5347 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
5348 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5349 | ;; | ||
5350 | ccc*) | ||
5351 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5352 | # All Alpha code is PIC. | ||
5353 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
5354 | ;; | ||
5355 | esac | ||
5356 | ;; | ||
5357 | |||
5358 | osf3* | osf4* | osf5*) | ||
5359 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5360 | # All OSF/1 code is PIC. | ||
5361 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
5362 | ;; | ||
5363 | |||
5364 | solaris*) | ||
5365 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5366 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5367 | case $cc_basename in | ||
5368 | f77* | f90* | f95*) | ||
5369 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | ||
5370 | *) | ||
5371 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | ||
5372 | esac | ||
5373 | ;; | ||
5374 | |||
5375 | sunos4*) | ||
5376 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
5377 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
5378 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5379 | ;; | ||
5380 | |||
5381 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
5382 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5383 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5384 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5385 | ;; | ||
5386 | |||
5387 | sysv4*MP*) | ||
5388 | if test -d /usr/nec ;then | ||
5389 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | ||
5390 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5391 | fi | ||
5392 | ;; | ||
5393 | |||
5394 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
5395 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5396 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5397 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5398 | ;; | ||
5399 | |||
5400 | unicos*) | ||
5401 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5402 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
5403 | ;; | ||
5404 | |||
5405 | uts4*) | ||
5406 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
5407 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5408 | ;; | ||
5409 | |||
5410 | *) | ||
5411 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
5412 | ;; | ||
5413 | esac | ||
5414 | fi | ||
5415 | ]) | ||
5416 | AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) | ||
5417 | |||
5418 | # | ||
5419 | # Check to make sure the PIC flag actually works. | ||
5420 | # | ||
5421 | if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then | ||
5422 | AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], | ||
5423 | _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), | ||
5424 | [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], | ||
5425 | [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in | ||
5426 | "" | " "*) ;; | ||
5427 | *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; | ||
5428 | esac], | ||
5429 | [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
5430 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | ||
5431 | fi | ||
5432 | case $host_os in | ||
5433 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
5434 | *djgpp*) | ||
5435 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
5436 | ;; | ||
5437 | *) | ||
5438 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" | ||
5439 | ;; | ||
5440 | esac | ||
5441 | |||
5442 | # | ||
5443 | # Check to make sure the static flag actually works. | ||
5444 | # | ||
5445 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" | ||
5446 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | ||
5447 | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | ||
5448 | $lt_tmp_static_flag, | ||
5449 | [], | ||
5450 | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | ||
5451 | ]) | ||
5452 | |||
5453 | |||
5454 | # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) | ||
5455 | # ------------------------------------ | ||
5456 | # See if the linker supports building shared libraries. | ||
5457 | AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], | ||
5458 | [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
5459 | ifelse([$1],[CXX],[ | ||
5460 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
5461 | case $host_os in | ||
5462 | aix4* | aix5*) | ||
5463 | # If we're using GNU nm, then we don't want the "-C" option. | ||
5464 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
5465 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
5466 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | ||
5467 | else | ||
5468 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | ||
5469 | fi | ||
5470 | ;; | ||
5471 | pw32*) | ||
5472 | _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | ||
5473 | ;; | ||
5474 | cygwin* | mingw*) | ||
5475 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$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' | ||
5476 | ;; | ||
5477 | kfreebsd*-gnu) | ||
5478 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no | ||
5479 | ;; | ||
5480 | linux*) | ||
5481 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no | ||
5482 | ;; | ||
5483 | *) | ||
5484 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
5485 | ;; | ||
5486 | esac | ||
5487 | ],[ | ||
5488 | runpath_var= | ||
5489 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
5490 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
5491 | _LT_AC_TAGVAR(archive_cmds, $1)= | ||
5492 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
5493 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= | ||
5494 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= | ||
5495 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
5496 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
5497 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= | ||
5498 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
5499 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
5500 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
5501 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
5502 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
5503 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
5504 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
5505 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
5506 | _LT_AC_TAGVAR(module_cmds, $1)= | ||
5507 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
5508 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
5509 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
5510 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
5511 | # included in the symbol list | ||
5512 | _LT_AC_TAGVAR(include_expsyms, $1)= | ||
5513 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
5514 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
5515 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
5516 | # as well as any symbol that contains `d'. | ||
5517 | _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" | ||
5518 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
5519 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
5520 | # the symbol is explicitly referenced. Since portable code cannot | ||
5521 | # rely on this symbol name, it's probably fine to never include it in | ||
5522 | # preloaded symbol tables. | ||
5523 | extract_expsyms_cmds= | ||
5524 | # Just being paranoid about ensuring that cc_basename is set. | ||
5525 | _LT_CC_BASENAME([$compiler]) | ||
5526 | case $host_os in | ||
5527 | cygwin* | mingw* | pw32*) | ||
5528 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
5529 | # When not using gcc, we currently assume that we are using | ||
5530 | # Microsoft Visual C++. | ||
5531 | if test "$GCC" != yes; then | ||
5532 | with_gnu_ld=no | ||
5533 | fi | ||
5534 | ;; | ||
5535 | interix*) | ||
5536 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
5537 | with_gnu_ld=yes | ||
5538 | ;; | ||
5539 | openbsd*) | ||
5540 | with_gnu_ld=no | ||
5541 | ;; | ||
5542 | esac | ||
5543 | |||
5544 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
5545 | if test "$with_gnu_ld" = yes; then | ||
5546 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
5547 | wlarc='${wl}' | ||
5548 | |||
5549 | # Set some defaults for GNU ld with shared library support. These | ||
5550 | # are reset later if shared libraries are not supported. Putting them | ||
5551 | # here allows them to be overridden if necessary. | ||
5552 | runpath_var=LD_RUN_PATH | ||
5553 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
5554 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
5555 | # ancient GNU ld didn't support --whole-archive et. al. | ||
5556 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
5557 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
5558 | else | ||
5559 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
5560 | fi | ||
5561 | supports_anon_versioning=no | ||
5562 | case `$LD -v 2>/dev/null` in | ||
5563 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
5564 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
5565 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
5566 | *\ 2.11.*) ;; # other 2.11 versions | ||
5567 | *) supports_anon_versioning=yes ;; | ||
5568 | esac | ||
5569 | |||
5570 | # See if GNU ld supports shared libraries. | ||
5571 | case $host_os in | ||
5572 | aix3* | aix4* | aix5*) | ||
5573 | # On AIX/PPC, the GNU linker is very broken | ||
5574 | if test "$host_cpu" != ia64; then | ||
5575 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5576 | cat <<EOF 1>&2 | ||
5577 | |||
5578 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
5579 | *** to be unable to reliably create shared libraries on AIX. | ||
5580 | *** Therefore, libtool is disabling shared libraries support. If you | ||
5581 | *** really care for shared libraries, you may want to modify your PATH | ||
5582 | *** so that a non-GNU linker is found, and then restart. | ||
5583 | |||
5584 | EOF | ||
5585 | fi | ||
5586 | ;; | ||
5587 | |||
5588 | amigaos*) | ||
5589 | _LT_AC_TAGVAR(archive_cmds, $1)='$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)' | ||
5590 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
5591 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
5592 | |||
5593 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
5594 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
5595 | # to version 4, is to share data among multiple programs linked | ||
5596 | # with the same dynamic library. Since this doesn't match the | ||
5597 | # behavior of shared libraries on other platforms, we can't use | ||
5598 | # them. | ||
5599 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5600 | ;; | ||
5601 | |||
5602 | beos*) | ||
5603 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
5604 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
5605 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
5606 | # support --undefined. This deserves some investigation. FIXME | ||
5607 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
5608 | else | ||
5609 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5610 | fi | ||
5611 | ;; | ||
5612 | |||
5613 | cygwin* | mingw* | pw32*) | ||
5614 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
5615 | # as there is no search path for DLLs. | ||
5616 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
5617 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
5618 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
5619 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
5620 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
5621 | |||
5622 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
5623 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
5624 | # If the export-symbols file already is a .def file (1st line | ||
5625 | # is EXPORTS), use it as is; otherwise, prepend... | ||
5626 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
5627 | cp $export_symbols $output_objdir/$soname.def; | ||
5628 | else | ||
5629 | echo EXPORTS > $output_objdir/$soname.def; | ||
5630 | cat $export_symbols >> $output_objdir/$soname.def; | ||
5631 | fi~ | ||
5632 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
5633 | else | ||
5634 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5635 | fi | ||
5636 | ;; | ||
5637 | |||
5638 | interix3*) | ||
5639 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
5640 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
5641 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
5642 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
5643 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
5644 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
5645 | # default) and relocated if they conflict, which is a slow very memory | ||
5646 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
5647 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
5648 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
5649 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
5650 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
5651 | ;; | ||
5652 | |||
5653 | linux*) | ||
5654 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
5655 | tmp_addflag= | ||
5656 | case $cc_basename,$host_cpu in | ||
5657 | pgcc*) # Portland Group C compiler | ||
5658 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
5659 | tmp_addflag=' $pic_flag' | ||
5660 | ;; | ||
5661 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
5662 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
5663 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
5664 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
5665 | tmp_addflag=' -i_dynamic' ;; | ||
5666 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
5667 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
5668 | ifc* | ifort*) # Intel Fortran compiler | ||
5669 | tmp_addflag=' -nofor_main' ;; | ||
5670 | esac | ||
5671 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
5672 | |||
5673 | if test $supports_anon_versioning = yes; then | ||
5674 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
5675 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
5676 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
5677 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
5678 | fi | ||
5679 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no | ||
5680 | else | ||
5681 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5682 | fi | ||
5683 | ;; | ||
5684 | |||
5685 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
5686 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
5687 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
5688 | wlarc= | ||
5689 | else | ||
5690 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
5691 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
5692 | fi | ||
5693 | ;; | ||
5694 | |||
5695 | solaris*) | ||
5696 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
5697 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5698 | cat <<EOF 1>&2 | ||
5699 | |||
5700 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
5701 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
5702 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
5703 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
5704 | *** your PATH or compiler configuration so that the native linker is | ||
5705 | *** used, and then restart. | ||
5706 | |||
5707 | EOF | ||
5708 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
5709 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
5710 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
5711 | else | ||
5712 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5713 | fi | ||
5714 | ;; | ||
5715 | |||
5716 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
5717 | case `$LD -v 2>&1` in | ||
5718 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | ||
5719 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5720 | cat <<_LT_EOF 1>&2 | ||
5721 | |||
5722 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
5723 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
5724 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
5725 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
5726 | *** your PATH or compiler configuration so that the native linker is | ||
5727 | *** used, and then restart. | ||
5728 | |||
5729 | _LT_EOF | ||
5730 | ;; | ||
5731 | *) | ||
5732 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
5733 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | ||
5734 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | ||
5735 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | ||
5736 | else | ||
5737 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5738 | fi | ||
5739 | ;; | ||
5740 | esac | ||
5741 | ;; | ||
5742 | |||
5743 | sunos4*) | ||
5744 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
5745 | wlarc= | ||
5746 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
5747 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
5748 | ;; | ||
5749 | |||
5750 | *) | ||
5751 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
5752 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
5753 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
5754 | else | ||
5755 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5756 | fi | ||
5757 | ;; | ||
5758 | esac | ||
5759 | |||
5760 | if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then | ||
5761 | runpath_var= | ||
5762 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
5763 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
5764 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
5765 | fi | ||
5766 | else | ||
5767 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
5768 | case $host_os in | ||
5769 | aix3*) | ||
5770 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
5771 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
5772 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | ||
5773 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
5774 | # are no directories specified by -L. | ||
5775 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
5776 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
5777 | # Neither direct hardcoding nor static linking is supported with a | ||
5778 | # broken collect2. | ||
5779 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
5780 | fi | ||
5781 | ;; | ||
5782 | |||
5783 | aix4* | aix5*) | ||
5784 | if test "$host_cpu" = ia64; then | ||
5785 | # On IA64, the linker does run time linking by default, so we don't | ||
5786 | # have to do anything special. | ||
5787 | aix_use_runtimelinking=no | ||
5788 | exp_sym_flag='-Bexport' | ||
5789 | no_entry_flag="" | ||
5790 | else | ||
5791 | # If we're using GNU nm, then we don't want the "-C" option. | ||
5792 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
5793 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
5794 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | ||
5795 | else | ||
5796 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | ||
5797 | fi | ||
5798 | aix_use_runtimelinking=no | ||
5799 | |||
5800 | # Test if we are trying to use run time linking or normal | ||
5801 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
5802 | # need to do runtime linking. | ||
5803 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | ||
5804 | for ld_flag in $LDFLAGS; do | ||
5805 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
5806 | aix_use_runtimelinking=yes | ||
5807 | break | ||
5808 | fi | ||
5809 | done | ||
5810 | ;; | ||
5811 | esac | ||
5812 | |||
5813 | exp_sym_flag='-bexport' | ||
5814 | no_entry_flag='-bnoentry' | ||
5815 | fi | ||
5816 | |||
5817 | # When large executables or shared objects are built, AIX ld can | ||
5818 | # have problems creating the table of contents. If linking a library | ||
5819 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
5820 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
5821 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
5822 | |||
5823 | _LT_AC_TAGVAR(archive_cmds, $1)='' | ||
5824 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
5825 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
5826 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
5827 | |||
5828 | if test "$GCC" = yes; then | ||
5829 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | ||
5830 | # We only want to do this on AIX 4.2 and lower, the check | ||
5831 | # below for broken collect2 doesn't work under 4.3+ | ||
5832 | collect2name=`${CC} -print-prog-name=collect2` | ||
5833 | if test -f "$collect2name" && \ | ||
5834 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
5835 | then | ||
5836 | # We have reworked collect2 | ||
5837 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
5838 | else | ||
5839 | # We have old collect2 | ||
5840 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
5841 | # It fails to find uninstalled libraries when the uninstalled | ||
5842 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
5843 | # to unsupported forces relinking | ||
5844 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
5845 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
5846 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
5847 | fi | ||
5848 | ;; | ||
5849 | esac | ||
5850 | shared_flag='-shared' | ||
5851 | if test "$aix_use_runtimelinking" = yes; then | ||
5852 | shared_flag="$shared_flag "'${wl}-G' | ||
5853 | fi | ||
5854 | else | ||
5855 | # not using gcc | ||
5856 | if test "$host_cpu" = ia64; then | ||
5857 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
5858 | # chokes on -Wl,-G. The following line is correct: | ||
5859 | shared_flag='-G' | ||
5860 | else | ||
5861 | if test "$aix_use_runtimelinking" = yes; then | ||
5862 | shared_flag='${wl}-G' | ||
5863 | else | ||
5864 | shared_flag='${wl}-bM:SRE' | ||
5865 | fi | ||
5866 | fi | ||
5867 | fi | ||
5868 | |||
5869 | # It seems that -bexpall does not export symbols beginning with | ||
5870 | # underscore (_), so it is better to generate a list of symbols to export. | ||
5871 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
5872 | if test "$aix_use_runtimelinking" = yes; then | ||
5873 | # Warning - without using the other runtime loading flags (-brtl), | ||
5874 | # -berok will link without error, but may produce a broken library. | ||
5875 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | ||
5876 | # Determine the default libpath from the value encoded in an empty executable. | ||
5877 | _LT_AC_SYS_LIBPATH_AIX | ||
5878 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
5879 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
5880 | else | ||
5881 | if test "$host_cpu" = ia64; then | ||
5882 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | ||
5883 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | ||
5884 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | ||
5885 | else | ||
5886 | # Determine the default libpath from the value encoded in an empty executable. | ||
5887 | _LT_AC_SYS_LIBPATH_AIX | ||
5888 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
5889 | # Warning - without using the other run time loading flags, | ||
5890 | # -berok will link without error, but may produce a broken library. | ||
5891 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | ||
5892 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | ||
5893 | # Exported symbols can be pulled into shared objects from archives | ||
5894 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
5895 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
5896 | # This is similar to how AIX traditionally builds its shared libraries. | ||
5897 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
5898 | fi | ||
5899 | fi | ||
5900 | ;; | ||
5901 | |||
5902 | amigaos*) | ||
5903 | _LT_AC_TAGVAR(archive_cmds, $1)='$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)' | ||
5904 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
5905 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
5906 | # see comment about different semantics on the GNU ld section | ||
5907 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5908 | ;; | ||
5909 | |||
5910 | bsdi[[45]]*) | ||
5911 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | ||
5912 | ;; | ||
5913 | |||
5914 | cygwin* | mingw* | pw32*) | ||
5915 | # When not using gcc, we currently assume that we are using | ||
5916 | # Microsoft Visual C++. | ||
5917 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
5918 | # no search path for DLLs. | ||
5919 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | ||
5920 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
5921 | # Tell ltmain to make .lib files, not .a files. | ||
5922 | libext=lib | ||
5923 | # Tell ltmain to make .dll files, not .so files. | ||
5924 | shrext_cmds=".dll" | ||
5925 | # FIXME: Setting linknames here is a bad hack. | ||
5926 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
5927 | # The linker will automatically build a .lib file if we build a DLL. | ||
5928 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' | ||
5929 | # FIXME: Should let the user specify the lib program. | ||
5930 | _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
5931 | _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | ||
5932 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
5933 | ;; | ||
5934 | |||
5935 | darwin* | rhapsody*) | ||
5936 | case $host_os in | ||
5937 | rhapsody* | darwin1.[[012]]) | ||
5938 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | ||
5939 | ;; | ||
5940 | *) # Darwin 1.3 on | ||
5941 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
5942 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
5943 | else | ||
5944 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
5945 | 10.[[012]]) | ||
5946 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
5947 | ;; | ||
5948 | 10.*) | ||
5949 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | ||
5950 | ;; | ||
5951 | esac | ||
5952 | fi | ||
5953 | ;; | ||
5954 | esac | ||
5955 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
5956 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
5957 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | ||
5958 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
5959 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | ||
5960 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
5961 | if test "$GCC" = yes ; then | ||
5962 | output_verbose_link_cmd='echo' | ||
5963 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
5964 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
5965 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
5966 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}' | ||
5967 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' | ||
5968 | else | ||
5969 | case $cc_basename in | ||
5970 | xlc*) | ||
5971 | output_verbose_link_cmd='echo' | ||
5972 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | ||
5973 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
5974 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
5975 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}' | ||
5976 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' | ||
5977 | ;; | ||
5978 | *) | ||
5979 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5980 | ;; | ||
5981 | esac | ||
5982 | fi | ||
5983 | ;; | ||
5984 | |||
5985 | dgux*) | ||
5986 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
5987 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
5988 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
5989 | ;; | ||
5990 | |||
5991 | freebsd1*) | ||
5992 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5993 | ;; | ||
5994 | |||
5995 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
5996 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
5997 | # does not break anything, and helps significantly (at the cost of a little | ||
5998 | # extra space). | ||
5999 | freebsd2.2*) | ||
6000 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
6001 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
6002 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6003 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6004 | ;; | ||
6005 | |||
6006 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
6007 | freebsd2*) | ||
6008 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
6009 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6010 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6011 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6012 | ;; | ||
6013 | |||
6014 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
6015 | freebsd* | dragonfly*) | ||
6016 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
6017 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
6018 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6019 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6020 | ;; | ||
6021 | |||
6022 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. | ||
6023 | kfreebsd*-gnu) | ||
6024 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
6025 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
6026 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6027 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6028 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no | ||
6029 | ;; | ||
6030 | |||
6031 | hpux9*) | ||
6032 | if test "$GCC" = yes; then | ||
6033 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
6034 | else | ||
6035 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
6036 | fi | ||
6037 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
6038 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
6039 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6040 | |||
6041 | # hardcode_minus_L: Not really in the search PATH, | ||
6042 | # but as the default location of the library. | ||
6043 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6044 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
6045 | ;; | ||
6046 | |||
6047 | hpux10*) | ||
6048 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
6049 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
6050 | else | ||
6051 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
6052 | fi | ||
6053 | if test "$with_gnu_ld" = no; then | ||
6054 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
6055 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
6056 | |||
6057 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6058 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
6059 | |||
6060 | # hardcode_minus_L: Not really in the search PATH, | ||
6061 | # but as the default location of the library. | ||
6062 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6063 | fi | ||
6064 | ;; | ||
6065 | |||
6066 | hpux11*) | ||
6067 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
6068 | case $host_cpu in | ||
6069 | hppa*64*) | ||
6070 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6071 | ;; | ||
6072 | ia64*) | ||
6073 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
6074 | ;; | ||
6075 | *) | ||
6076 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
6077 | ;; | ||
6078 | esac | ||
6079 | else | ||
6080 | case $host_cpu in | ||
6081 | hppa*64*) | ||
6082 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6083 | ;; | ||
6084 | ia64*) | ||
6085 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
6086 | ;; | ||
6087 | *) | ||
6088 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
6089 | ;; | ||
6090 | esac | ||
6091 | fi | ||
6092 | if test "$with_gnu_ld" = no; then | ||
6093 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
6094 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
6095 | |||
6096 | case $host_cpu in | ||
6097 | hppa*64*|ia64*) | ||
6098 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | ||
6099 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
6100 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6101 | ;; | ||
6102 | *) | ||
6103 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6104 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
6105 | |||
6106 | # hardcode_minus_L: Not really in the search PATH, | ||
6107 | # but as the default location of the library. | ||
6108 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6109 | ;; | ||
6110 | esac | ||
6111 | fi | ||
6112 | ;; | ||
6113 | |||
6114 | irix5* | irix6* | nonstopux*) | ||
6115 | if test "$GCC" = yes; then | ||
6116 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
6117 | else | ||
6118 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
6119 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | ||
6120 | fi | ||
6121 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
6122 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
6123 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
6124 | ;; | ||
6125 | |||
6126 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
6127 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
6128 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
6129 | else | ||
6130 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
6131 | fi | ||
6132 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
6133 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6134 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6135 | ;; | ||
6136 | |||
6137 | newsos6) | ||
6138 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6139 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6140 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
6141 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
6142 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6143 | ;; | ||
6144 | |||
6145 | openbsd*) | ||
6146 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6147 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6148 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
6149 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
6150 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
6151 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
6152 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
6153 | else | ||
6154 | case $host_os in | ||
6155 | openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) | ||
6156 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
6157 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
6158 | ;; | ||
6159 | *) | ||
6160 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
6161 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
6162 | ;; | ||
6163 | esac | ||
6164 | fi | ||
6165 | ;; | ||
6166 | |||
6167 | os2*) | ||
6168 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6169 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6170 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
6171 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
6172 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
6173 | ;; | ||
6174 | |||
6175 | osf3*) | ||
6176 | if test "$GCC" = yes; then | ||
6177 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
6178 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
6179 | else | ||
6180 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
6181 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
6182 | fi | ||
6183 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
6184 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
6185 | ;; | ||
6186 | |||
6187 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
6188 | if test "$GCC" = yes; then | ||
6189 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
6190 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
6191 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
6192 | else | ||
6193 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
6194 | _LT_AC_TAGVAR(archive_cmds, $1)='$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' | ||
6195 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | ||
6196 | $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' | ||
6197 | |||
6198 | # Both c and cxx compiler support -rpath directly | ||
6199 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
6200 | fi | ||
6201 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
6202 | ;; | ||
6203 | |||
6204 | solaris*) | ||
6205 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | ||
6206 | if test "$GCC" = yes; then | ||
6207 | wlarc='${wl}' | ||
6208 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6209 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
6210 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | ||
6211 | else | ||
6212 | wlarc='' | ||
6213 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6214 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
6215 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
6216 | fi | ||
6217 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
6218 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6219 | case $host_os in | ||
6220 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | ||
6221 | *) | ||
6222 | # The compiler driver will combine linker options so we | ||
6223 | # cannot just pass the convience library names through | ||
6224 | # without $wl, iff we do not link with $LD. | ||
6225 | # Luckily, gcc supports the same syntax we need for Sun Studio. | ||
6226 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
6227 | case $wlarc in | ||
6228 | '') | ||
6229 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; | ||
6230 | *) | ||
6231 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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' ;; | ||
6232 | esac ;; | ||
6233 | esac | ||
6234 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
6235 | ;; | ||
6236 | |||
6237 | sunos4*) | ||
6238 | if test "x$host_vendor" = xsequent; then | ||
6239 | # Use $CC to link under sequent, because it throws in some extra .o | ||
6240 | # files that make .init and .fini sections work. | ||
6241 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6242 | else | ||
6243 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
6244 | fi | ||
6245 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6246 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6247 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6248 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6249 | ;; | ||
6250 | |||
6251 | sysv4) | ||
6252 | case $host_vendor in | ||
6253 | sni) | ||
6254 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6255 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? | ||
6256 | ;; | ||
6257 | siemens) | ||
6258 | ## LD is ld it makes a PLAMLIB | ||
6259 | ## CC just makes a GrossModule. | ||
6260 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
6261 | _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' | ||
6262 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
6263 | ;; | ||
6264 | motorola) | ||
6265 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6266 | _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie | ||
6267 | ;; | ||
6268 | esac | ||
6269 | runpath_var='LD_RUN_PATH' | ||
6270 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6271 | ;; | ||
6272 | |||
6273 | sysv4.3*) | ||
6274 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6275 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6276 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' | ||
6277 | ;; | ||
6278 | |||
6279 | sysv4*MP*) | ||
6280 | if test -d /usr/nec; then | ||
6281 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6282 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6283 | runpath_var=LD_RUN_PATH | ||
6284 | hardcode_runpath_var=yes | ||
6285 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
6286 | fi | ||
6287 | ;; | ||
6288 | |||
6289 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) | ||
6290 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
6291 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
6292 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6293 | runpath_var='LD_RUN_PATH' | ||
6294 | |||
6295 | if test "$GCC" = yes; then | ||
6296 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6297 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6298 | else | ||
6299 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6300 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6301 | fi | ||
6302 | ;; | ||
6303 | |||
6304 | sysv5* | sco3.2v5* | sco5v6*) | ||
6305 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
6306 | # link with -lc, and that would cause any symbols used from libc to | ||
6307 | # always be unresolved, which means just about no library would | ||
6308 | # ever link correctly. If we're not using GNU ld we use -z text | ||
6309 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
6310 | # as -z defs. | ||
6311 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
6312 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | ||
6313 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
6314 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6315 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
6316 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
6317 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
6318 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | ||
6319 | runpath_var='LD_RUN_PATH' | ||
6320 | |||
6321 | if test "$GCC" = yes; then | ||
6322 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6323 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6324 | else | ||
6325 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6326 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6327 | fi | ||
6328 | ;; | ||
6329 | |||
6330 | uts4*) | ||
6331 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6332 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6333 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6334 | ;; | ||
6335 | |||
6336 | *) | ||
6337 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6338 | ;; | ||
6339 | esac | ||
6340 | fi | ||
6341 | ]) | ||
6342 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | ||
6343 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | ||
6344 | |||
6345 | # | ||
6346 | # Do we need to explicitly link libc? | ||
6347 | # | ||
6348 | case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in | ||
6349 | x|xyes) | ||
6350 | # Assume -lc should be added | ||
6351 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
6352 | |||
6353 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
6354 | case $_LT_AC_TAGVAR(archive_cmds, $1) in | ||
6355 | *'~'*) | ||
6356 | # FIXME: we may have to deal with multi-command sequences. | ||
6357 | ;; | ||
6358 | '$CC '*) | ||
6359 | # Test whether the compiler implicitly links with -lc since on some | ||
6360 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
6361 | # to ld, don't add -lc before -lgcc. | ||
6362 | AC_MSG_CHECKING([whether -lc should be explicitly linked in]) | ||
6363 | $rm conftest* | ||
6364 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
6365 | |||
6366 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | ||
6367 | soname=conftest | ||
6368 | lib=conftest | ||
6369 | libobjs=conftest.$ac_objext | ||
6370 | deplibs= | ||
6371 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | ||
6372 | pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | ||
6373 | compiler_flags=-v | ||
6374 | linker_flags=-v | ||
6375 | verstring= | ||
6376 | output_objdir=. | ||
6377 | libname=conftest | ||
6378 | lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) | ||
6379 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
6380 | if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) | ||
6381 | then | ||
6382 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
6383 | else | ||
6384 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
6385 | fi | ||
6386 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | ||
6387 | else | ||
6388 | cat conftest.err 1>&5 | ||
6389 | fi | ||
6390 | $rm conftest* | ||
6391 | AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) | ||
6392 | ;; | ||
6393 | esac | ||
6394 | fi | ||
6395 | ;; | ||
6396 | esac | ||
6397 | ])# AC_LIBTOOL_PROG_LD_SHLIBS | ||
6398 | |||
6399 | |||
6400 | # _LT_AC_FILE_LTDLL_C | ||
6401 | # ------------------- | ||
6402 | # Be careful that the start marker always follows a newline. | ||
6403 | AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ | ||
6404 | # /* ltdll.c starts here */ | ||
6405 | # #define WIN32_LEAN_AND_MEAN | ||
6406 | # #include <windows.h> | ||
6407 | # #undef WIN32_LEAN_AND_MEAN | ||
6408 | # #include <stdio.h> | ||
6409 | # | ||
6410 | # #ifndef __CYGWIN__ | ||
6411 | # # ifdef __CYGWIN32__ | ||
6412 | # # define __CYGWIN__ __CYGWIN32__ | ||
6413 | # # endif | ||
6414 | # #endif | ||
6415 | # | ||
6416 | # #ifdef __cplusplus | ||
6417 | # extern "C" { | ||
6418 | # #endif | ||
6419 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | ||
6420 | # #ifdef __cplusplus | ||
6421 | # } | ||
6422 | # #endif | ||
6423 | # | ||
6424 | # #ifdef __CYGWIN__ | ||
6425 | # #include <cygwin/cygwin_dll.h> | ||
6426 | # DECLARE_CYGWIN_DLL( DllMain ); | ||
6427 | # #endif | ||
6428 | # HINSTANCE __hDllInstance_base; | ||
6429 | # | ||
6430 | # BOOL APIENTRY | ||
6431 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | ||
6432 | # { | ||
6433 | # __hDllInstance_base = hInst; | ||
6434 | # return TRUE; | ||
6435 | # } | ||
6436 | # /* ltdll.c ends here */ | ||
6437 | ])# _LT_AC_FILE_LTDLL_C | ||
6438 | |||
6439 | |||
6440 | # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) | ||
6441 | # --------------------------------- | ||
6442 | AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) | ||
6443 | |||
6444 | |||
6445 | # old names | ||
6446 | AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) | ||
6447 | AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) | ||
6448 | AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) | ||
6449 | AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) | ||
6450 | AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) | ||
6451 | AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) | ||
6452 | AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) | ||
6453 | |||
6454 | # This is just to silence aclocal about the macro not being used | ||
6455 | ifelse([AC_DISABLE_FAST_INSTALL]) | ||
6456 | |||
6457 | AC_DEFUN([LT_AC_PROG_GCJ], | ||
6458 | [AC_CHECK_TOOL(GCJ, gcj, no) | ||
6459 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | ||
6460 | AC_SUBST(GCJFLAGS) | ||
6461 | ]) | ||
6462 | |||
6463 | AC_DEFUN([LT_AC_PROG_RC], | ||
6464 | [AC_CHECK_TOOL(RC, windres, no) | ||
6465 | ]) | ||
6466 | |||
6467 | # NOTE: This macro has been submitted for inclusion into # | ||
6468 | # GNU Autoconf as AC_PROG_SED. When it is available in # | ||
6469 | # a released version of Autoconf we should remove this # | ||
6470 | # macro and use it instead. # | ||
6471 | # LT_AC_PROG_SED | ||
6472 | # -------------- | ||
6473 | # Check for a fully-functional sed program, that truncates | ||
6474 | # as few characters as possible. Prefer GNU sed if found. | ||
6475 | AC_DEFUN([LT_AC_PROG_SED], | ||
6476 | [AC_MSG_CHECKING([for a sed that does not truncate output]) | ||
6477 | AC_CACHE_VAL(lt_cv_path_SED, | ||
6478 | [# Loop through the user's path and test for sed and gsed. | ||
6479 | # Then use that list of sed's as ones to test for truncation. | ||
6480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6481 | for as_dir in $PATH | ||
6482 | do | ||
6483 | IFS=$as_save_IFS | ||
6484 | test -z "$as_dir" && as_dir=. | ||
6485 | for lt_ac_prog in sed gsed; do | ||
6486 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6487 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | ||
6488 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | ||
6489 | fi | ||
6490 | done | ||
6491 | done | ||
6492 | done | ||
6493 | lt_ac_max=0 | ||
6494 | lt_ac_count=0 | ||
6495 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | ||
6496 | # along with /bin/sed that truncates output. | ||
6497 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | ||
6498 | test ! -f $lt_ac_sed && continue | ||
6499 | cat /dev/null > conftest.in | ||
6500 | lt_ac_count=0 | ||
6501 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | ||
6502 | # Check for GNU sed and select it if it is found. | ||
6503 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | ||
6504 | lt_cv_path_SED=$lt_ac_sed | ||
6505 | break | ||
6506 | fi | ||
6507 | while true; do | ||
6508 | cat conftest.in conftest.in >conftest.tmp | ||
6509 | mv conftest.tmp conftest.in | ||
6510 | cp conftest.in conftest.nl | ||
6511 | echo >>conftest.nl | ||
6512 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | ||
6513 | cmp -s conftest.out conftest.nl || break | ||
6514 | # 10000 chars as input seems more than enough | ||
6515 | test $lt_ac_count -gt 10 && break | ||
6516 | lt_ac_count=`expr $lt_ac_count + 1` | ||
6517 | if test $lt_ac_count -gt $lt_ac_max; then | ||
6518 | lt_ac_max=$lt_ac_count | ||
6519 | lt_cv_path_SED=$lt_ac_sed | ||
6520 | fi | ||
6521 | done | ||
6522 | done | ||
6523 | ]) | ||
6524 | SED=$lt_cv_path_SED | ||
6525 | AC_MSG_RESULT([$SED]) | ||
6526 | ]) | ||
6527 | |||
6528 | # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. | ||
6529 | # | ||
6530 | # This file is free software; the Free Software Foundation | ||
6531 | # gives unlimited permission to copy and/or distribute it, | ||
6532 | # with or without modifications, as long as this notice is preserved. | ||
6533 | |||
6534 | # AM_AUTOMAKE_VERSION(VERSION) | ||
6535 | # ---------------------------- | ||
6536 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | ||
6537 | # generated from the m4 files accompanying Automake X.Y. | ||
6538 | AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) | ||
6539 | |||
6540 | # AM_SET_CURRENT_AUTOMAKE_VERSION | ||
6541 | # ------------------------------- | ||
6542 | # Call AM_AUTOMAKE_VERSION so it can be traced. | ||
6543 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | ||
6544 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | ||
6545 | [AM_AUTOMAKE_VERSION([1.9.6])]) | ||
6546 | |||
6547 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | ||
6548 | |||
6549 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | ||
6550 | # | ||
6551 | # This file is free software; the Free Software Foundation | ||
6552 | # gives unlimited permission to copy and/or distribute it, | ||
6553 | # with or without modifications, as long as this notice is preserved. | ||
6554 | |||
6555 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | ||
6556 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | ||
6557 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | ||
6558 | # | ||
6559 | # Of course, Automake must honor this variable whenever it calls a | ||
6560 | # tool from the auxiliary directory. The problem is that $srcdir (and | ||
6561 | # therefore $ac_aux_dir as well) can be either absolute or relative, | ||
6562 | # depending on how configure is run. This is pretty annoying, since | ||
6563 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | ||
6564 | # source directory, any form will work fine, but in subdirectories a | ||
6565 | # relative path needs to be adjusted first. | ||
6566 | # | ||
6567 | # $ac_aux_dir/missing | ||
6568 | # fails when called from a subdirectory if $ac_aux_dir is relative | ||
6569 | # $top_srcdir/$ac_aux_dir/missing | ||
6570 | # fails if $ac_aux_dir is absolute, | ||
6571 | # fails when called from a subdirectory in a VPATH build with | ||
6572 | # a relative $ac_aux_dir | ||
6573 | # | ||
6574 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | ||
6575 | # are both prefixed by $srcdir. In an in-source build this is usually | ||
6576 | # harmless because $srcdir is `.', but things will broke when you | ||
6577 | # start a VPATH build or use an absolute $srcdir. | ||
6578 | # | ||
6579 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | ||
6580 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | ||
6581 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | ||
6582 | # and then we would define $MISSING as | ||
6583 | # MISSING="\${SHELL} $am_aux_dir/missing" | ||
6584 | # This will work as long as MISSING is not called from configure, because | ||
6585 | # unfortunately $(top_srcdir) has no meaning in configure. | ||
6586 | # However there are other variables, like CC, which are often used in | ||
6587 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | ||
6588 | # | ||
6589 | # Another solution, used here, is to always expand $ac_aux_dir to an | ||
6590 | # absolute PATH. The drawback is that using absolute paths prevent a | ||
6591 | # configured tree to be moved without reconfiguration. | ||
6592 | |||
6593 | AC_DEFUN([AM_AUX_DIR_EXPAND], | ||
6594 | [dnl Rely on autoconf to set up CDPATH properly. | ||
6595 | AC_PREREQ([2.50])dnl | ||
6596 | # expand $ac_aux_dir to an absolute path | ||
6597 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
6598 | ]) | ||
6599 | |||
6600 | # AM_CONDITIONAL -*- Autoconf -*- | ||
6601 | |||
6602 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 | ||
6603 | # Free Software Foundation, Inc. | ||
6604 | # | ||
6605 | # This file is free software; the Free Software Foundation | ||
6606 | # gives unlimited permission to copy and/or distribute it, | ||
6607 | # with or without modifications, as long as this notice is preserved. | ||
6608 | |||
6609 | # serial 7 | ||
6610 | |||
6611 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | ||
6612 | # ------------------------------------- | ||
6613 | # Define a conditional. | ||
6614 | AC_DEFUN([AM_CONDITIONAL], | ||
6615 | [AC_PREREQ(2.52)dnl | ||
6616 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | ||
6617 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | ||
6618 | AC_SUBST([$1_TRUE]) | ||
6619 | AC_SUBST([$1_FALSE]) | ||
6620 | if $2; then | ||
6621 | $1_TRUE= | ||
6622 | $1_FALSE='#' | ||
6623 | else | ||
6624 | $1_TRUE='#' | ||
6625 | $1_FALSE= | ||
6626 | fi | ||
6627 | AC_CONFIG_COMMANDS_PRE( | ||
6628 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | ||
6629 | AC_MSG_ERROR([[conditional "$1" was never defined. | ||
6630 | Usually this means the macro was only invoked conditionally.]]) | ||
6631 | fi])]) | ||
6632 | |||
6633 | |||
6634 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 | ||
6635 | # Free Software Foundation, Inc. | ||
6636 | # | ||
6637 | # This file is free software; the Free Software Foundation | ||
6638 | # gives unlimited permission to copy and/or distribute it, | ||
6639 | # with or without modifications, as long as this notice is preserved. | ||
6640 | |||
6641 | # serial 8 | ||
6642 | |||
6643 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | ||
6644 | # written in clear, in which case automake, when reading aclocal.m4, | ||
6645 | # will think it sees a *use*, and therefore will trigger all it's | ||
6646 | # C support machinery. Also note that it means that autoscan, seeing | ||
6647 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | ||
6648 | |||
6649 | |||
6650 | # _AM_DEPENDENCIES(NAME) | ||
6651 | # ---------------------- | ||
6652 | # See how the compiler implements dependency checking. | ||
6653 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | ||
6654 | # We try a few techniques and use that to set a single cache variable. | ||
6655 | # | ||
6656 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | ||
6657 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | ||
6658 | # dependency, and given that the user is not expected to run this macro, | ||
6659 | # just rely on AC_PROG_CC. | ||
6660 | AC_DEFUN([_AM_DEPENDENCIES], | ||
6661 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | ||
6662 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | ||
6663 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | ||
6664 | AC_REQUIRE([AM_DEP_TRACK])dnl | ||
6665 | |||
6666 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | ||
6667 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | ||
6668 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | ||
6669 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | ||
6670 | [depcc="$$1" am_compiler_list=]) | ||
6671 | |||
6672 | AC_CACHE_CHECK([dependency style of $depcc], | ||
6673 | [am_cv_$1_dependencies_compiler_type], | ||
6674 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
6675 | # We make a subdir and do the tests there. Otherwise we can end up | ||
6676 | # making bogus files that we don't know about and never remove. For | ||
6677 | # instance it was reported that on HP-UX the gcc test will end up | ||
6678 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
6679 | # in D'. | ||
6680 | mkdir conftest.dir | ||
6681 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
6682 | # using a relative directory. | ||
6683 | cp "$am_depcomp" conftest.dir | ||
6684 | cd conftest.dir | ||
6685 | # We will build objects and dependencies in a subdirectory because | ||
6686 | # it helps to detect inapplicable dependency modes. For instance | ||
6687 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
6688 | # side effect of compilation, but ICC will put the dependencies in | ||
6689 | # the current directory while Tru64 will put them in the object | ||
6690 | # directory. | ||
6691 | mkdir sub | ||
6692 | |||
6693 | am_cv_$1_dependencies_compiler_type=none | ||
6694 | if test "$am_compiler_list" = ""; then | ||
6695 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | ||
6696 | fi | ||
6697 | for depmode in $am_compiler_list; do | ||
6698 | # Setup a source with many dependencies, because some compilers | ||
6699 | # like to wrap large dependency lists on column 80 (with \), and | ||
6700 | # we should not choose a depcomp mode which is confused by this. | ||
6701 | # | ||
6702 | # We need to recreate these files for each test, as the compiler may | ||
6703 | # overwrite some of them when testing with obscure command lines. | ||
6704 | # This happens at least with the AIX C compiler. | ||
6705 | : > sub/conftest.c | ||
6706 | for i in 1 2 3 4 5 6; do | ||
6707 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
6708 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
6709 | # Solaris 8's {/usr,}/bin/sh. | ||
6710 | touch sub/conftst$i.h | ||
6711 | done | ||
6712 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
6713 | |||
6714 | case $depmode in | ||
6715 | nosideeffect) | ||
6716 | # after this tag, mechanisms are not by side-effect, so they'll | ||
6717 | # only be used when explicitly requested | ||
6718 | if test "x$enable_dependency_tracking" = xyes; then | ||
6719 | continue | ||
6720 | else | ||
6721 | break | ||
6722 | fi | ||
6723 | ;; | ||
6724 | none) break ;; | ||
6725 | esac | ||
6726 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
6727 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
6728 | # handle `-M -o', and we need to detect this. | ||
6729 | if depmode=$depmode \ | ||
6730 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
6731 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
6732 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
6733 | >/dev/null 2>conftest.err && | ||
6734 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
6735 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
6736 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
6737 | # icc doesn't choke on unknown options, it will just issue warnings | ||
6738 | # or remarks (even with -Werror). So we grep stderr for any message | ||
6739 | # that says an option was ignored or not supported. | ||
6740 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
6741 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
6742 | # The diagnosis changed in icc 8.0: | ||
6743 | # icc: Command line remark: option '-MP' not supported | ||
6744 | if (grep 'ignoring option' conftest.err || | ||
6745 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
6746 | am_cv_$1_dependencies_compiler_type=$depmode | ||
6747 | break | ||
6748 | fi | ||
6749 | fi | ||
6750 | done | ||
6751 | |||
6752 | cd .. | ||
6753 | rm -rf conftest.dir | ||
6754 | else | ||
6755 | am_cv_$1_dependencies_compiler_type=none | ||
6756 | fi | ||
6757 | ]) | ||
6758 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | ||
6759 | AM_CONDITIONAL([am__fastdep$1], [ | ||
6760 | test "x$enable_dependency_tracking" != xno \ | ||
6761 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | ||
6762 | ]) | ||
6763 | |||
6764 | |||
6765 | # AM_SET_DEPDIR | ||
6766 | # ------------- | ||
6767 | # Choose a directory name for dependency files. | ||
6768 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | ||
6769 | AC_DEFUN([AM_SET_DEPDIR], | ||
6770 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | ||
6771 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | ||
6772 | ]) | ||
6773 | |||
6774 | |||
6775 | # AM_DEP_TRACK | ||
6776 | # ------------ | ||
6777 | AC_DEFUN([AM_DEP_TRACK], | ||
6778 | [AC_ARG_ENABLE(dependency-tracking, | ||
6779 | [ --disable-dependency-tracking speeds up one-time build | ||
6780 | --enable-dependency-tracking do not reject slow dependency extractors]) | ||
6781 | if test "x$enable_dependency_tracking" != xno; then | ||
6782 | am_depcomp="$ac_aux_dir/depcomp" | ||
6783 | AMDEPBACKSLASH='\' | ||
6784 | fi | ||
6785 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | ||
6786 | AC_SUBST([AMDEPBACKSLASH]) | ||
6787 | ]) | ||
6788 | |||
6789 | # Generate code to set up dependency tracking. -*- Autoconf -*- | ||
6790 | |||
6791 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 | ||
6792 | # Free Software Foundation, Inc. | ||
6793 | # | ||
6794 | # This file is free software; the Free Software Foundation | ||
6795 | # gives unlimited permission to copy and/or distribute it, | ||
6796 | # with or without modifications, as long as this notice is preserved. | ||
6797 | |||
6798 | #serial 3 | ||
6799 | |||
6800 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | ||
6801 | # ------------------------------ | ||
6802 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | ||
6803 | [for mf in $CONFIG_FILES; do | ||
6804 | # Strip MF so we end up with the name of the file. | ||
6805 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
6806 | # Check whether this is an Automake generated Makefile or not. | ||
6807 | # We used to match only the files named `Makefile.in', but | ||
6808 | # some people rename them; so instead we look at the file content. | ||
6809 | # Grep'ing the first line is not enough: some people post-process | ||
6810 | # each Makefile.in and add a new line on top of each file to say so. | ||
6811 | # So let's grep whole file. | ||
6812 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | ||
6813 | dirpart=`AS_DIRNAME("$mf")` | ||
6814 | else | ||
6815 | continue | ||
6816 | fi | ||
6817 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
6818 | # from the Makefile without running `make'. | ||
6819 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
6820 | test -z "$DEPDIR" && continue | ||
6821 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
6822 | test -z "am__include" && continue | ||
6823 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
6824 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
6825 | U=`sed -n 's/^U = //p' < "$mf"` | ||
6826 | # Find all dependency output files, they are included files with | ||
6827 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
6828 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
6829 | # expansion. | ||
6830 | for file in `sed -n " | ||
6831 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
6832 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
6833 | # Make sure the directory exists. | ||
6834 | test -f "$dirpart/$file" && continue | ||
6835 | fdir=`AS_DIRNAME(["$file"])` | ||
6836 | AS_MKDIR_P([$dirpart/$fdir]) | ||
6837 | # echo "creating $dirpart/$file" | ||
6838 | echo '# dummy' > "$dirpart/$file" | ||
6839 | done | ||
6840 | done | ||
6841 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | ||
6842 | |||
6843 | |||
6844 | # AM_OUTPUT_DEPENDENCY_COMMANDS | ||
6845 | # ----------------------------- | ||
6846 | # This macro should only be invoked once -- use via AC_REQUIRE. | ||
6847 | # | ||
6848 | # This code is only required when automatic dependency tracking | ||
6849 | # is enabled. FIXME. This creates each `.P' file that we will | ||
6850 | # need in order to bootstrap the dependency handling code. | ||
6851 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | ||
6852 | [AC_CONFIG_COMMANDS([depfiles], | ||
6853 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | ||
6854 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | ||
6855 | ]) | ||
6856 | |||
6857 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 | ||
6858 | # Free Software Foundation, Inc. | ||
6859 | # | ||
6860 | # This file is free software; the Free Software Foundation | ||
6861 | # gives unlimited permission to copy and/or distribute it, | ||
6862 | # with or without modifications, as long as this notice is preserved. | ||
6863 | |||
6864 | # serial 8 | ||
6865 | |||
6866 | # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. | ||
6867 | AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) | ||
6868 | |||
6869 | # Do all the work for Automake. -*- Autoconf -*- | ||
6870 | |||
6871 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | ||
6872 | # Free Software Foundation, Inc. | ||
6873 | # | ||
6874 | # This file is free software; the Free Software Foundation | ||
6875 | # gives unlimited permission to copy and/or distribute it, | ||
6876 | # with or without modifications, as long as this notice is preserved. | ||
6877 | |||
6878 | # serial 12 | ||
6879 | |||
6880 | # This macro actually does too much. Some checks are only needed if | ||
6881 | # your package does certain things. But this isn't really a big deal. | ||
6882 | |||
6883 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | ||
6884 | # AM_INIT_AUTOMAKE([OPTIONS]) | ||
6885 | # ----------------------------------------------- | ||
6886 | # The call with PACKAGE and VERSION arguments is the old style | ||
6887 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | ||
6888 | # and VERSION should now be passed to AC_INIT and removed from | ||
6889 | # the call to AM_INIT_AUTOMAKE. | ||
6890 | # We support both call styles for the transition. After | ||
6891 | # the next Automake release, Autoconf can make the AC_INIT | ||
6892 | # arguments mandatory, and then we can depend on a new Autoconf | ||
6893 | # release and drop the old call support. | ||
6894 | AC_DEFUN([AM_INIT_AUTOMAKE], | ||
6895 | [AC_PREREQ([2.58])dnl | ||
6896 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | ||
6897 | dnl the ones we care about. | ||
6898 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | ||
6899 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | ||
6900 | AC_REQUIRE([AC_PROG_INSTALL])dnl | ||
6901 | # test to see if srcdir already configured | ||
6902 | if test "`cd $srcdir && pwd`" != "`pwd`" && | ||
6903 | test -f $srcdir/config.status; then | ||
6904 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | ||
6905 | fi | ||
6906 | |||
6907 | # test whether we have cygpath | ||
6908 | if test -z "$CYGPATH_W"; then | ||
6909 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
6910 | CYGPATH_W='cygpath -w' | ||
6911 | else | ||
6912 | CYGPATH_W=echo | ||
6913 | fi | ||
6914 | fi | ||
6915 | AC_SUBST([CYGPATH_W]) | ||
6916 | |||
6917 | # Define the identity of the package. | ||
6918 | dnl Distinguish between old-style and new-style calls. | ||
6919 | m4_ifval([$2], | ||
6920 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | ||
6921 | AC_SUBST([PACKAGE], [$1])dnl | ||
6922 | AC_SUBST([VERSION], [$2])], | ||
6923 | [_AM_SET_OPTIONS([$1])dnl | ||
6924 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | ||
6925 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | ||
6926 | |||
6927 | _AM_IF_OPTION([no-define],, | ||
6928 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | ||
6929 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | ||
6930 | |||
6931 | # Some tools Automake needs. | ||
6932 | AC_REQUIRE([AM_SANITY_CHECK])dnl | ||
6933 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | ||
6934 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | ||
6935 | AM_MISSING_PROG(AUTOCONF, autoconf) | ||
6936 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | ||
6937 | AM_MISSING_PROG(AUTOHEADER, autoheader) | ||
6938 | AM_MISSING_PROG(MAKEINFO, makeinfo) | ||
6939 | AM_PROG_INSTALL_SH | ||
6940 | AM_PROG_INSTALL_STRIP | ||
6941 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | ||
6942 | # We need awk for the "check" target. The system "awk" is bad on | ||
6943 | # some platforms. | ||
6944 | AC_REQUIRE([AC_PROG_AWK])dnl | ||
6945 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | ||
6946 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | ||
6947 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | ||
6948 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | ||
6949 | [_AM_PROG_TAR([v7])])]) | ||
6950 | _AM_IF_OPTION([no-dependencies],, | ||
6951 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | ||
6952 | [_AM_DEPENDENCIES(CC)], | ||
6953 | [define([AC_PROG_CC], | ||
6954 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | ||
6955 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | ||
6956 | [_AM_DEPENDENCIES(CXX)], | ||
6957 | [define([AC_PROG_CXX], | ||
6958 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | ||
6959 | ]) | ||
6960 | ]) | ||
6961 | |||
6962 | |||
6963 | # When config.status generates a header, we must update the stamp-h file. | ||
6964 | # This file resides in the same directory as the config header | ||
6965 | # that is generated. The stamp files are numbered to have different names. | ||
6966 | |||
6967 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | ||
6968 | # loop where config.status creates the headers, so we can generate | ||
6969 | # our stamp files there. | ||
6970 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | ||
6971 | [# Compute $1's index in $config_headers. | ||
6972 | _am_stamp_count=1 | ||
6973 | for _am_header in $config_headers :; do | ||
6974 | case $_am_header in | ||
6975 | $1 | $1:* ) | ||
6976 | break ;; | ||
6977 | * ) | ||
6978 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
6979 | esac | ||
6980 | done | ||
6981 | echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) | ||
6982 | |||
6983 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | ||
6984 | # | ||
6985 | # This file is free software; the Free Software Foundation | ||
6986 | # gives unlimited permission to copy and/or distribute it, | ||
6987 | # with or without modifications, as long as this notice is preserved. | ||
6988 | |||
6989 | # AM_PROG_INSTALL_SH | ||
6990 | # ------------------ | ||
6991 | # Define $install_sh. | ||
6992 | AC_DEFUN([AM_PROG_INSTALL_SH], | ||
6993 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | ||
6994 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | ||
6995 | AC_SUBST(install_sh)]) | ||
6996 | |||
6997 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | ||
6998 | # | ||
6999 | # This file is free software; the Free Software Foundation | ||
7000 | # gives unlimited permission to copy and/or distribute it, | ||
7001 | # with or without modifications, as long as this notice is preserved. | ||
7002 | |||
7003 | # serial 2 | ||
7004 | |||
7005 | # Check whether the underlying file-system supports filenames | ||
7006 | # with a leading dot. For instance MS-DOS doesn't. | ||
7007 | AC_DEFUN([AM_SET_LEADING_DOT], | ||
7008 | [rm -rf .tst 2>/dev/null | ||
7009 | mkdir .tst 2>/dev/null | ||
7010 | if test -d .tst; then | ||
7011 | am__leading_dot=. | ||
7012 | else | ||
7013 | am__leading_dot=_ | ||
7014 | fi | ||
7015 | rmdir .tst 2>/dev/null | ||
7016 | AC_SUBST([am__leading_dot])]) | ||
7017 | |||
7018 | # Check to see how 'make' treats includes. -*- Autoconf -*- | ||
7019 | |||
7020 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. | ||
7021 | # | ||
7022 | # This file is free software; the Free Software Foundation | ||
7023 | # gives unlimited permission to copy and/or distribute it, | ||
7024 | # with or without modifications, as long as this notice is preserved. | ||
7025 | |||
7026 | # serial 3 | ||
7027 | |||
7028 | # AM_MAKE_INCLUDE() | ||
7029 | # ----------------- | ||
7030 | # Check to see how make treats includes. | ||
7031 | AC_DEFUN([AM_MAKE_INCLUDE], | ||
7032 | [am_make=${MAKE-make} | ||
7033 | cat > confinc << 'END' | ||
7034 | am__doit: | ||
7035 | @echo done | ||
7036 | .PHONY: am__doit | ||
7037 | END | ||
7038 | # If we don't find an include directive, just comment out the code. | ||
7039 | AC_MSG_CHECKING([for style of include used by $am_make]) | ||
7040 | am__include="#" | ||
7041 | am__quote= | ||
7042 | _am_result=none | ||
7043 | # First try GNU make style include. | ||
7044 | echo "include confinc" > confmf | ||
7045 | # We grep out `Entering directory' and `Leaving directory' | ||
7046 | # messages which can occur if `w' ends up in MAKEFLAGS. | ||
7047 | # In particular we don't look at `^make:' because GNU make might | ||
7048 | # be invoked under some other name (usually "gmake"), in which | ||
7049 | # case it prints its new name instead of `make'. | ||
7050 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | ||
7051 | am__include=include | ||
7052 | am__quote= | ||
7053 | _am_result=GNU | ||
7054 | fi | ||
7055 | # Now try BSD make style include. | ||
7056 | if test "$am__include" = "#"; then | ||
7057 | echo '.include "confinc"' > confmf | ||
7058 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | ||
7059 | am__include=.include | ||
7060 | am__quote="\"" | ||
7061 | _am_result=BSD | ||
7062 | fi | ||
7063 | fi | ||
7064 | AC_SUBST([am__include]) | ||
7065 | AC_SUBST([am__quote]) | ||
7066 | AC_MSG_RESULT([$_am_result]) | ||
7067 | rm -f confinc confmf | ||
7068 | ]) | ||
7069 | |||
7070 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | ||
7071 | |||
7072 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 | ||
7073 | # Free Software Foundation, Inc. | ||
7074 | # | ||
7075 | # This file is free software; the Free Software Foundation | ||
7076 | # gives unlimited permission to copy and/or distribute it, | ||
7077 | # with or without modifications, as long as this notice is preserved. | ||
7078 | |||
7079 | # serial 4 | ||
7080 | |||
7081 | # AM_MISSING_PROG(NAME, PROGRAM) | ||
7082 | # ------------------------------ | ||
7083 | AC_DEFUN([AM_MISSING_PROG], | ||
7084 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | ||
7085 | $1=${$1-"${am_missing_run}$2"} | ||
7086 | AC_SUBST($1)]) | ||
7087 | |||
7088 | |||
7089 | # AM_MISSING_HAS_RUN | ||
7090 | # ------------------ | ||
7091 | # Define MISSING if not defined so far and test if it supports --run. | ||
7092 | # If it does, set am_missing_run to use it, otherwise, to nothing. | ||
7093 | AC_DEFUN([AM_MISSING_HAS_RUN], | ||
7094 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | ||
7095 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | ||
7096 | # Use eval to expand $SHELL | ||
7097 | if eval "$MISSING --run true"; then | ||
7098 | am_missing_run="$MISSING --run " | ||
7099 | else | ||
7100 | am_missing_run= | ||
7101 | AC_MSG_WARN([`missing' script is too old or missing]) | ||
7102 | fi | ||
7103 | ]) | ||
7104 | |||
7105 | # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. | ||
7106 | # | ||
7107 | # This file is free software; the Free Software Foundation | ||
7108 | # gives unlimited permission to copy and/or distribute it, | ||
7109 | # with or without modifications, as long as this notice is preserved. | ||
7110 | |||
7111 | # AM_PROG_MKDIR_P | ||
7112 | # --------------- | ||
7113 | # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. | ||
7114 | # | ||
7115 | # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories | ||
7116 | # created by `make install' are always world readable, even if the | ||
7117 | # installer happens to have an overly restrictive umask (e.g. 077). | ||
7118 | # This was a mistake. There are at least two reasons why we must not | ||
7119 | # use `-m 0755': | ||
7120 | # - it causes special bits like SGID to be ignored, | ||
7121 | # - it may be too restrictive (some setups expect 775 directories). | ||
7122 | # | ||
7123 | # Do not use -m 0755 and let people choose whatever they expect by | ||
7124 | # setting umask. | ||
7125 | # | ||
7126 | # We cannot accept any implementation of `mkdir' that recognizes `-p'. | ||
7127 | # Some implementations (such as Solaris 8's) are not thread-safe: if a | ||
7128 | # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' | ||
7129 | # concurrently, both version can detect that a/ is missing, but only | ||
7130 | # one can create it and the other will error out. Consequently we | ||
7131 | # restrict ourselves to GNU make (using the --version option ensures | ||
7132 | # this.) | ||
7133 | AC_DEFUN([AM_PROG_MKDIR_P], | ||
7134 | [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | ||
7135 | # We used to keeping the `.' as first argument, in order to | ||
7136 | # allow $(mkdir_p) to be used without argument. As in | ||
7137 | # $(mkdir_p) $(somedir) | ||
7138 | # where $(somedir) is conditionally defined. However this is wrong | ||
7139 | # for two reasons: | ||
7140 | # 1. if the package is installed by a user who cannot write `.' | ||
7141 | # make install will fail, | ||
7142 | # 2. the above comment should most certainly read | ||
7143 | # $(mkdir_p) $(DESTDIR)$(somedir) | ||
7144 | # so it does not work when $(somedir) is undefined and | ||
7145 | # $(DESTDIR) is not. | ||
7146 | # To support the latter case, we have to write | ||
7147 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | ||
7148 | # so the `.' trick is pointless. | ||
7149 | mkdir_p='mkdir -p --' | ||
7150 | else | ||
7151 | # On NextStep and OpenStep, the `mkdir' command does not | ||
7152 | # recognize any option. It will interpret all options as | ||
7153 | # directories to create, and then abort because `.' already | ||
7154 | # exists. | ||
7155 | for d in ./-p ./--version; | ||
7156 | do | ||
7157 | test -d $d && rmdir $d | ||
7158 | done | ||
7159 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | ||
7160 | if test -f "$ac_aux_dir/mkinstalldirs"; then | ||
7161 | mkdir_p='$(mkinstalldirs)' | ||
7162 | else | ||
7163 | mkdir_p='$(install_sh) -d' | ||
7164 | fi | ||
7165 | fi | ||
7166 | AC_SUBST([mkdir_p])]) | ||
7167 | |||
7168 | # Helper functions for option handling. -*- Autoconf -*- | ||
7169 | |||
7170 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. | ||
7171 | # | ||
7172 | # This file is free software; the Free Software Foundation | ||
7173 | # gives unlimited permission to copy and/or distribute it, | ||
7174 | # with or without modifications, as long as this notice is preserved. | ||
7175 | |||
7176 | # serial 3 | ||
7177 | |||
7178 | # _AM_MANGLE_OPTION(NAME) | ||
7179 | # ----------------------- | ||
7180 | AC_DEFUN([_AM_MANGLE_OPTION], | ||
7181 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | ||
7182 | |||
7183 | # _AM_SET_OPTION(NAME) | ||
7184 | # ------------------------------ | ||
7185 | # Set option NAME. Presently that only means defining a flag for this option. | ||
7186 | AC_DEFUN([_AM_SET_OPTION], | ||
7187 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | ||
7188 | |||
7189 | # _AM_SET_OPTIONS(OPTIONS) | ||
7190 | # ---------------------------------- | ||
7191 | # OPTIONS is a space-separated list of Automake options. | ||
7192 | AC_DEFUN([_AM_SET_OPTIONS], | ||
7193 | [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | ||
7194 | |||
7195 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | ||
7196 | # ------------------------------------------- | ||
7197 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | ||
7198 | AC_DEFUN([_AM_IF_OPTION], | ||
7199 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | ||
7200 | |||
7201 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | ||
7202 | |||
7203 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 | ||
7204 | # Free Software Foundation, Inc. | ||
7205 | # | ||
7206 | # This file is free software; the Free Software Foundation | ||
7207 | # gives unlimited permission to copy and/or distribute it, | ||
7208 | # with or without modifications, as long as this notice is preserved. | ||
7209 | |||
7210 | # serial 4 | ||
7211 | |||
7212 | # AM_SANITY_CHECK | ||
7213 | # --------------- | ||
7214 | AC_DEFUN([AM_SANITY_CHECK], | ||
7215 | [AC_MSG_CHECKING([whether build environment is sane]) | ||
7216 | # Just in case | ||
7217 | sleep 1 | ||
7218 | echo timestamp > conftest.file | ||
7219 | # Do `set' in a subshell so we don't clobber the current shell's | ||
7220 | # arguments. Must try -L first in case configure is actually a | ||
7221 | # symlink; some systems play weird games with the mod time of symlinks | ||
7222 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
7223 | # directory). | ||
7224 | if ( | ||
7225 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | ||
7226 | if test "$[*]" = "X"; then | ||
7227 | # -L didn't work. | ||
7228 | set X `ls -t $srcdir/configure conftest.file` | ||
7229 | fi | ||
7230 | rm -f conftest.file | ||
7231 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | ||
7232 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | ||
7233 | |||
7234 | # If neither matched, then we have a broken ls. This can happen | ||
7235 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
7236 | # broken ls alias from the environment. This has actually | ||
7237 | # happened. Such a system could not be considered "sane". | ||
7238 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | ||
7239 | alias in your environment]) | ||
7240 | fi | ||
7241 | |||
7242 | test "$[2]" = conftest.file | ||
7243 | ) | ||
7244 | then | ||
7245 | # Ok. | ||
7246 | : | ||
7247 | else | ||
7248 | AC_MSG_ERROR([newly created file is older than distributed files! | ||
7249 | Check your system clock]) | ||
7250 | fi | ||
7251 | AC_MSG_RESULT(yes)]) | ||
7252 | |||
7253 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | ||
7254 | # | ||
7255 | # This file is free software; the Free Software Foundation | ||
7256 | # gives unlimited permission to copy and/or distribute it, | ||
7257 | # with or without modifications, as long as this notice is preserved. | ||
7258 | |||
7259 | # AM_PROG_INSTALL_STRIP | ||
7260 | # --------------------- | ||
7261 | # One issue with vendor `install' (even GNU) is that you can't | ||
7262 | # specify the program used to strip binaries. This is especially | ||
7263 | # annoying in cross-compiling environments, where the build's strip | ||
7264 | # is unlikely to handle the host's binaries. | ||
7265 | # Fortunately install-sh will honor a STRIPPROG variable, so we | ||
7266 | # always use install-sh in `make install-strip', and initialize | ||
7267 | # STRIPPROG with the value of the STRIP variable (set by the user). | ||
7268 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | ||
7269 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | ||
7270 | # Installed binaries are usually stripped using `strip' when the user | ||
7271 | # run `make install-strip'. However `strip' might not be the right | ||
7272 | # tool to use in cross-compilation environments, therefore Automake | ||
7273 | # will honor the `STRIP' environment variable to overrule this program. | ||
7274 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | ||
7275 | if test "$cross_compiling" != no; then | ||
7276 | AC_CHECK_TOOL([STRIP], [strip], :) | ||
7277 | fi | ||
7278 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | ||
7279 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | ||
7280 | |||
7281 | # Check how to create a tarball. -*- Autoconf -*- | ||
7282 | |||
7283 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | ||
7284 | # | ||
7285 | # This file is free software; the Free Software Foundation | ||
7286 | # gives unlimited permission to copy and/or distribute it, | ||
7287 | # with or without modifications, as long as this notice is preserved. | ||
7288 | |||
7289 | # serial 2 | ||
7290 | |||
7291 | # _AM_PROG_TAR(FORMAT) | ||
7292 | # -------------------- | ||
7293 | # Check how to create a tarball in format FORMAT. | ||
7294 | # FORMAT should be one of `v7', `ustar', or `pax'. | ||
7295 | # | ||
7296 | # Substitute a variable $(am__tar) that is a command | ||
7297 | # writing to stdout a FORMAT-tarball containing the directory | ||
7298 | # $tardir. | ||
7299 | # tardir=directory && $(am__tar) > result.tar | ||
7300 | # | ||
7301 | # Substitute a variable $(am__untar) that extract such | ||
7302 | # a tarball read from stdin. | ||
7303 | # $(am__untar) < result.tar | ||
7304 | AC_DEFUN([_AM_PROG_TAR], | ||
7305 | [# Always define AMTAR for backward compatibility. | ||
7306 | AM_MISSING_PROG([AMTAR], [tar]) | ||
7307 | m4_if([$1], [v7], | ||
7308 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | ||
7309 | [m4_case([$1], [ustar],, [pax],, | ||
7310 | [m4_fatal([Unknown tar format])]) | ||
7311 | AC_MSG_CHECKING([how to create a $1 tar archive]) | ||
7312 | # Loop over all known methods to create a tar archive until one works. | ||
7313 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | ||
7314 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | ||
7315 | # Do not fold the above two line into one, because Tru64 sh and | ||
7316 | # Solaris sh will not grok spaces in the rhs of `-'. | ||
7317 | for _am_tool in $_am_tools | ||
7318 | do | ||
7319 | case $_am_tool in | ||
7320 | gnutar) | ||
7321 | for _am_tar in tar gnutar gtar; | ||
7322 | do | ||
7323 | AM_RUN_LOG([$_am_tar --version]) && break | ||
7324 | done | ||
7325 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | ||
7326 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | ||
7327 | am__untar="$_am_tar -xf -" | ||
7328 | ;; | ||
7329 | plaintar) | ||
7330 | # Must skip GNU tar: if it does not support --format= it doesn't create | ||
7331 | # ustar tarball either. | ||
7332 | (tar --version) >/dev/null 2>&1 && continue | ||
7333 | am__tar='tar chf - "$$tardir"' | ||
7334 | am__tar_='tar chf - "$tardir"' | ||
7335 | am__untar='tar xf -' | ||
7336 | ;; | ||
7337 | pax) | ||
7338 | am__tar='pax -L -x $1 -w "$$tardir"' | ||
7339 | am__tar_='pax -L -x $1 -w "$tardir"' | ||
7340 | am__untar='pax -r' | ||
7341 | ;; | ||
7342 | cpio) | ||
7343 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | ||
7344 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | ||
7345 | am__untar='cpio -i -H $1 -d' | ||
7346 | ;; | ||
7347 | none) | ||
7348 | am__tar=false | ||
7349 | am__tar_=false | ||
7350 | am__untar=false | ||
7351 | ;; | ||
7352 | esac | ||
7353 | |||
7354 | # If the value was cached, stop now. We just wanted to have am__tar | ||
7355 | # and am__untar set. | ||
7356 | test -n "${am_cv_prog_tar_$1}" && break | ||
7357 | |||
7358 | # tar/untar a dummy directory, and stop if the command works | ||
7359 | rm -rf conftest.dir | ||
7360 | mkdir conftest.dir | ||
7361 | echo GrepMe > conftest.dir/file | ||
7362 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | ||
7363 | rm -rf conftest.dir | ||
7364 | if test -s conftest.tar; then | ||
7365 | AM_RUN_LOG([$am__untar <conftest.tar]) | ||
7366 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | ||
7367 | fi | ||
7368 | done | ||
7369 | rm -rf conftest.dir | ||
7370 | |||
7371 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | ||
7372 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | ||
7373 | AC_SUBST([am__tar]) | ||
7374 | AC_SUBST([am__untar]) | ||
7375 | ]) # _AM_PROG_TAR | ||
7376 | |||