1 | # generated automatically by aclocal 1.9.6 -*- Autoconf -*- |
1 | # generated automatically by aclocal 1.7.9 -*- Autoconf -*- |
2 | |
2 | |
3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 |
4 | # 2005 Free Software Foundation, Inc. |
4 | # Free Software Foundation, Inc. |
5 | # This file is free software; the Free Software Foundation |
5 | # This file is free software; the Free Software Foundation |
6 | # gives unlimited permission to copy and/or distribute it, |
6 | # gives unlimited permission to copy and/or distribute it, |
7 | # with or without modifications, as long as this notice is preserved. |
7 | # with or without modifications, as long as this notice is preserved. |
8 | |
8 | |
9 | # This program is distributed in the hope that it will be useful, |
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 |
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
12 | # PARTICULAR PURPOSE. |
12 | # PARTICULAR PURPOSE. |
13 | |
13 | |
|
|
14 | |
|
|
15 | AC_DEFUN([CF_CHECK_PYTHON], |
|
|
16 | [ |
|
|
17 | PYTHON_LIB="" |
|
|
18 | PY_LIBS="" |
|
|
19 | PY_INCLUDES="" |
|
|
20 | dir="" |
|
|
21 | if test "x$PYTHON_HOME" != "x"; then |
|
|
22 | for dir in $PYTHON_HOME/include/python{,2.5,2.4,2.3,2.2,2.1,2.0} ; do |
|
|
23 | AC_CHECK_HEADERS(["$dir/Python.h"],[cf_have_python_h=yes]) |
|
|
24 | if test "x$cf_have_python_h" != "x" ; then |
|
|
25 | PY_INCLUDES="-I$dir" |
|
|
26 | break |
|
|
27 | fi |
|
|
28 | done |
|
|
29 | PYTHON_SEARCH=$PYTHON |
|
|
30 | else |
|
|
31 | AC_CHECK_HEADERS([Python.h],[cf_have_python_h=yes]) |
|
|
32 | if test "x$cf_have_python_h" = "x" ; then |
|
|
33 | for dir in /usr{,/local}/include/python{,2.5,2.4,2.3,2.2,2.1,2.0} ; do |
|
|
34 | AC_CHECK_HEADERS(["$dir/Python.h"],[cf_have_python_h=yes]) |
|
|
35 | if test "x$cf_have_python_h" != "x" ; then |
|
|
36 | PY_INCLUDES="-I$dir" |
|
|
37 | break |
|
|
38 | fi |
|
|
39 | done |
|
|
40 | else |
|
|
41 | PY_INCLUDES="" |
|
|
42 | fi |
|
|
43 | fi |
|
|
44 | |
|
|
45 | if test "x$cf_have_python_h" = "xyes" ; then |
|
|
46 | PYTHON_LIB="" |
|
|
47 | if test "x$PYTHON_HOME" != "x"; then |
|
|
48 | # I am going of how manually compiled python installed on |
|
|
49 | # my system. We can't use AC_CHECK_LIB, because that will |
|
|
50 | # find the one in the stanard location, which is what we |
|
|
51 | # want to avoid. |
|
|
52 | python=`echo $dir | awk -F/ '{print $NF}'`; |
|
|
53 | AC_MSG_CHECKING([For python lib in various places]) |
|
|
54 | if test -f $PYTHON_HOME/lib/lib$python.so ; then |
|
|
55 | # Hopefully -R is a universal option |
|
|
56 | AC_MSG_RESULT([found in $PYTHON_HOME/lib/]) |
|
|
57 | if test -n "$hardcode_libdir_flag_spec" ; then |
|
|
58 | oldlibdir=$libdir |
|
|
59 | libdir="$PYTHON_HOME/lib/" |
|
|
60 | rpath=`eval echo $hardcode_libdir_flag_spec` |
|
|
61 | PYTHON_LIB="$rpath -L$PYTHON_HOME/lib/ -l$python" |
|
|
62 | echo "rpath=$rpath" |
|
|
63 | libdir=$oldlibdir |
|
|
64 | else |
|
|
65 | PYTHON_LIB="-L$PYTHON_HOME/lib/ -l$python" |
|
|
66 | fi |
|
|
67 | |
|
|
68 | elif test -f $PYTHON_HOME/lib/$python/lib$python.a ; then |
|
|
69 | PYTHON_LIB="$PYTHON_HOME/lib/$python/lib$python.a" |
|
|
70 | AC_MSG_RESULT([found in $PYTHON_HOME/lib/$python]) |
|
|
71 | elif test -f $PYTHON_HOME/lib/$python/config/lib$python.a ; then |
|
|
72 | PYTHON_LIB="$PYTHON_HOME/lib/$python/config/lib$python.a" |
|
|
73 | AC_MSG_RESULT([found in $PYTHON_HOME/lib/$python/config]) |
|
|
74 | fi |
|
|
75 | |
|
|
76 | else |
|
|
77 | for lib in python{,2.5,2.4,2.3,2.2,2.1,2.0} ; do |
|
|
78 | AC_CHECK_LIB($lib, PyArg_ParseTuple,[PYTHON_LIB="-l$lib"]) |
|
|
79 | if test "x$PYTHON_LIB" != "x" ; then |
|
|
80 | break |
|
|
81 | fi |
|
|
82 | done |
|
|
83 | |
|
|
84 | # These checks are a bit bogus - would be better to use AC_CHECK_LIB, |
|
|
85 | # but it caches the result of the first check, even if we run AC_CHECK_LIB |
|
|
86 | # with other options. |
|
|
87 | python=`echo $dir | awk -F/ '{print $NF}'`; |
|
|
88 | if test "x$PYTHON_LIB" = "x" ; then |
|
|
89 | AC_MSG_CHECKING([For python lib in various places]) |
|
|
90 | if test -f /usr/lib/$python/lib$python.a ; then |
|
|
91 | PYTHON_LIB="/usr/lib/$python/lib$python.a" |
|
|
92 | AC_MSG_RESULT([found in /usr/lib/$python]) |
|
|
93 | elif test -f /usr/lib/$python/config/lib$python.a ; then |
|
|
94 | PYTHON_LIB="/usr/lib/$python/config/lib$python.a" |
|
|
95 | AC_MSG_RESULT([found in /usr/lib/$python/config]) |
|
|
96 | fi |
|
|
97 | fi |
|
|
98 | fi |
|
|
99 | if test "x$PYTHON_LIB" != "x" ; then |
|
|
100 | AC_CHECK_LIB(pthread, main, PY_LIBS="$PY_LIBS -lpthread", , $PY_LIBS ) |
|
|
101 | AC_CHECK_LIB(util, main, PY_LIBS="$PY_LIBS -lutil", , $PY_LIBS ) |
|
|
102 | AC_CHECK_LIB(dl, main, PY_LIBS="$PY_LIBS -ldl", , $PY_LIBS ) |
|
|
103 | |
|
|
104 | AC_MSG_CHECKING([whether python supports the "L" format specifier]) |
|
|
105 | saved_LIBS="$LIBS" |
|
|
106 | LIBS="$LIBS $PYTHON_LIB $PY_LIBS" |
|
|
107 | saved_CFLAGS="$CFLAGS" |
|
|
108 | CFLAGS="$CFLAGS $PY_INCLUDES" |
|
|
109 | AC_TRY_RUN([ |
|
|
110 | #include <Python.h> |
|
|
111 | #include <stdlib.h> |
|
|
112 | |
|
|
113 | static PyObject *callback(PyObject *self, PyObject *args) |
|
|
114 | { |
|
|
115 | long long val; |
|
|
116 | |
|
|
117 | if (!PyArg_ParseTuple(args, "L", &val)) |
|
|
118 | return NULL; |
|
|
119 | if (val != 1) |
|
|
120 | exit(1); |
|
|
121 | Py_INCREF(Py_None); |
|
|
122 | return Py_None; |
|
|
123 | } |
|
|
124 | |
|
|
125 | static PyMethodDef methods[] = { |
|
|
126 | {"callback", callback, METH_VARARGS}, |
|
|
127 | {NULL, NULL, 0, NULL}, |
|
|
128 | }; |
|
|
129 | |
|
|
130 | int main() |
|
|
131 | { |
|
|
132 | Py_Initialize(); |
|
|
133 | Py_InitModule("test", methods); |
|
|
134 | return(PyRun_SimpleString("import test\ntest.callback(1)\n") != 0); |
|
|
135 | } |
|
|
136 | ], [ |
|
|
137 | AC_MSG_RESULT([yes]) |
|
|
138 | ], [ |
|
|
139 | AC_MSG_RESULT([no]) |
|
|
140 | PYTHON_LIB="" |
|
|
141 | PYLIBS="" |
|
|
142 | PY_INCLUDE="" |
|
|
143 | ], |
|
|
144 | [ |
|
|
145 | AC_MSG_RESULT([skipped because cross compiling]) |
|
|
146 | ]) |
|
|
147 | LIBS="$saved_LIBS" |
|
|
148 | CFLAGS="$saved_CFLAGS" |
|
|
149 | fi |
|
|
150 | fi |
|
|
151 | |
|
|
152 | if test "x$PYTHON_LIB" = "x" ; then |
|
|
153 | $2 |
|
|
154 | else |
|
|
155 | $1 |
|
|
156 | fi |
|
|
157 | |
|
|
158 | AC_SUBST(PYTHON_LIB) |
|
|
159 | AC_SUBST(PY_LIBS) |
|
|
160 | AC_SUBST(PY_INCLUDES) |
|
|
161 | ]) |
|
|
162 | |
|
|
163 | dnl CF_CHECK_CROSSEDIT(X11LIBS, ACTION-IF-FOUND , ACTION-IF-NOT-FOUND) |
|
|
164 | dnl check if a sample X test code can compile |
|
|
165 | dnl |
|
|
166 | |
|
|
167 | AC_DEFUN([CF_CHECK_CROSSEDIT],[ |
|
|
168 | |
|
|
169 | ac_save_LIBS="$LIBS" |
|
|
170 | |
|
|
171 | LIBS="$1 $LIBS" |
|
|
172 | AC_MSG_CHECKING(for crossedit required headers) |
|
|
173 | AC_TRY_LINK([ |
|
|
174 | #include <X11/Xaw/AllWidgets.h> |
|
|
175 | ], , |
|
|
176 | AC_MSG_RESULT(yes) |
|
|
177 | [$2], |
|
|
178 | AC_MSG_RESULT(no) |
|
|
179 | [$3]) |
|
|
180 | LIBS="$ac_save_LIBS" |
|
|
181 | ]) |
|
|
182 | |
|
|
183 | # Do all the work for Automake. -*- Autoconf -*- |
|
|
184 | |
|
|
185 | # This macro actually does too much some checks are only needed if |
|
|
186 | # your package does certain things. But this isn't really a big deal. |
|
|
187 | |
|
|
188 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 |
|
|
189 | # Free Software Foundation, Inc. |
|
|
190 | |
|
|
191 | # This program is free software; you can redistribute it and/or modify |
|
|
192 | # it under the terms of the GNU General Public License as published by |
|
|
193 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
194 | # any later version. |
|
|
195 | |
|
|
196 | # This program is distributed in the hope that it will be useful, |
|
|
197 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
198 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
199 | # GNU General Public License for more details. |
|
|
200 | |
|
|
201 | # You should have received a copy of the GNU General Public License |
|
|
202 | # along with this program; if not, write to the Free Software |
|
|
203 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
204 | # 02111-1307, USA. |
|
|
205 | |
|
|
206 | # serial 10 |
|
|
207 | |
|
|
208 | AC_PREREQ([2.54]) |
|
|
209 | |
|
|
210 | # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
|
|
211 | # the ones we care about. |
|
|
212 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
|
|
213 | |
|
|
214 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
|
|
215 | # AM_INIT_AUTOMAKE([OPTIONS]) |
|
|
216 | # ----------------------------------------------- |
|
|
217 | # The call with PACKAGE and VERSION arguments is the old style |
|
|
218 | # call (pre autoconf-2.50), which is being phased out. PACKAGE |
|
|
219 | # and VERSION should now be passed to AC_INIT and removed from |
|
|
220 | # the call to AM_INIT_AUTOMAKE. |
|
|
221 | # We support both call styles for the transition. After |
|
|
222 | # the next Automake release, Autoconf can make the AC_INIT |
|
|
223 | # arguments mandatory, and then we can depend on a new Autoconf |
|
|
224 | # release and drop the old call support. |
|
|
225 | AC_DEFUN([AM_INIT_AUTOMAKE], |
|
|
226 | [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
|
|
227 | AC_REQUIRE([AC_PROG_INSTALL])dnl |
|
|
228 | # test to see if srcdir already configured |
|
|
229 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
|
|
230 | test -f $srcdir/config.status; then |
|
|
231 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
|
|
232 | fi |
|
|
233 | |
|
|
234 | # test whether we have cygpath |
|
|
235 | if test -z "$CYGPATH_W"; then |
|
|
236 | if (cygpath --version) >/dev/null 2>/dev/null; then |
|
|
237 | CYGPATH_W='cygpath -w' |
|
|
238 | else |
|
|
239 | CYGPATH_W=echo |
|
|
240 | fi |
|
|
241 | fi |
|
|
242 | AC_SUBST([CYGPATH_W]) |
|
|
243 | |
|
|
244 | # Define the identity of the package. |
|
|
245 | dnl Distinguish between old-style and new-style calls. |
|
|
246 | m4_ifval([$2], |
|
|
247 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
|
|
248 | AC_SUBST([PACKAGE], [$1])dnl |
|
|
249 | AC_SUBST([VERSION], [$2])], |
|
|
250 | [_AM_SET_OPTIONS([$1])dnl |
|
|
251 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
|
|
252 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
|
|
253 | |
|
|
254 | _AM_IF_OPTION([no-define],, |
|
|
255 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
|
|
256 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
|
|
257 | |
|
|
258 | # Some tools Automake needs. |
|
|
259 | AC_REQUIRE([AM_SANITY_CHECK])dnl |
|
|
260 | AC_REQUIRE([AC_ARG_PROGRAM])dnl |
|
|
261 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
|
|
262 | AM_MISSING_PROG(AUTOCONF, autoconf) |
|
|
263 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
|
|
264 | AM_MISSING_PROG(AUTOHEADER, autoheader) |
|
|
265 | AM_MISSING_PROG(MAKEINFO, makeinfo) |
|
|
266 | AM_MISSING_PROG(AMTAR, tar) |
|
|
267 | AM_PROG_INSTALL_SH |
|
|
268 | AM_PROG_INSTALL_STRIP |
|
|
269 | # We need awk for the "check" target. The system "awk" is bad on |
|
|
270 | # some platforms. |
|
|
271 | AC_REQUIRE([AC_PROG_AWK])dnl |
|
|
272 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
|
|
273 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
|
|
274 | |
|
|
275 | _AM_IF_OPTION([no-dependencies],, |
|
|
276 | [AC_PROVIDE_IFELSE([AC_PROG_CC], |
|
|
277 | [_AM_DEPENDENCIES(CC)], |
|
|
278 | [define([AC_PROG_CC], |
|
|
279 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
|
|
280 | AC_PROVIDE_IFELSE([AC_PROG_CXX], |
|
|
281 | [_AM_DEPENDENCIES(CXX)], |
|
|
282 | [define([AC_PROG_CXX], |
|
|
283 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
|
|
284 | ]) |
|
|
285 | ]) |
|
|
286 | |
|
|
287 | |
|
|
288 | # When config.status generates a header, we must update the stamp-h file. |
|
|
289 | # This file resides in the same directory as the config header |
|
|
290 | # that is generated. The stamp files are numbered to have different names. |
|
|
291 | |
|
|
292 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
|
|
293 | # loop where config.status creates the headers, so we can generate |
|
|
294 | # our stamp files there. |
|
|
295 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
|
|
296 | [# Compute $1's index in $config_headers. |
|
|
297 | _am_stamp_count=1 |
|
|
298 | for _am_header in $config_headers :; do |
|
|
299 | case $_am_header in |
|
|
300 | $1 | $1:* ) |
|
|
301 | break ;; |
|
|
302 | * ) |
|
|
303 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
|
|
304 | esac |
|
|
305 | done |
|
|
306 | echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) |
|
|
307 | |
|
|
308 | # Copyright 2002 Free Software Foundation, Inc. |
|
|
309 | |
|
|
310 | # This program is free software; you can redistribute it and/or modify |
|
|
311 | # it under the terms of the GNU General Public License as published by |
|
|
312 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
313 | # any later version. |
|
|
314 | |
|
|
315 | # This program is distributed in the hope that it will be useful, |
|
|
316 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
317 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
318 | # GNU General Public License for more details. |
|
|
319 | |
|
|
320 | # You should have received a copy of the GNU General Public License |
|
|
321 | # along with this program; if not, write to the Free Software |
|
|
322 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
323 | |
|
|
324 | # AM_AUTOMAKE_VERSION(VERSION) |
|
|
325 | # ---------------------------- |
|
|
326 | # Automake X.Y traces this macro to ensure aclocal.m4 has been |
|
|
327 | # generated from the m4 files accompanying Automake X.Y. |
|
|
328 | AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) |
|
|
329 | |
|
|
330 | # AM_SET_CURRENT_AUTOMAKE_VERSION |
|
|
331 | # ------------------------------- |
|
|
332 | # Call AM_AUTOMAKE_VERSION so it can be traced. |
|
|
333 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
|
|
334 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
|
|
335 | [AM_AUTOMAKE_VERSION([1.7.9])]) |
|
|
336 | |
|
|
337 | # Helper functions for option handling. -*- Autoconf -*- |
|
|
338 | |
|
|
339 | # Copyright 2001, 2002 Free Software Foundation, Inc. |
|
|
340 | |
|
|
341 | # This program is free software; you can redistribute it and/or modify |
|
|
342 | # it under the terms of the GNU General Public License as published by |
|
|
343 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
344 | # any later version. |
|
|
345 | |
|
|
346 | # This program is distributed in the hope that it will be useful, |
|
|
347 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
348 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
349 | # GNU General Public License for more details. |
|
|
350 | |
|
|
351 | # You should have received a copy of the GNU General Public License |
|
|
352 | # along with this program; if not, write to the Free Software |
|
|
353 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
354 | # 02111-1307, USA. |
|
|
355 | |
|
|
356 | # serial 2 |
|
|
357 | |
|
|
358 | # _AM_MANGLE_OPTION(NAME) |
|
|
359 | # ----------------------- |
|
|
360 | AC_DEFUN([_AM_MANGLE_OPTION], |
|
|
361 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
|
|
362 | |
|
|
363 | # _AM_SET_OPTION(NAME) |
|
|
364 | # ------------------------------ |
|
|
365 | # Set option NAME. Presently that only means defining a flag for this option. |
|
|
366 | AC_DEFUN([_AM_SET_OPTION], |
|
|
367 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
|
|
368 | |
|
|
369 | # _AM_SET_OPTIONS(OPTIONS) |
|
|
370 | # ---------------------------------- |
|
|
371 | # OPTIONS is a space-separated list of Automake options. |
|
|
372 | AC_DEFUN([_AM_SET_OPTIONS], |
|
|
373 | [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
|
|
374 | |
|
|
375 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
|
|
376 | # ------------------------------------------- |
|
|
377 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
|
|
378 | AC_DEFUN([_AM_IF_OPTION], |
|
|
379 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
|
|
380 | |
|
|
381 | # |
|
|
382 | # Check to make sure that the build environment is sane. |
|
|
383 | # |
|
|
384 | |
|
|
385 | # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. |
|
|
386 | |
|
|
387 | # This program is free software; you can redistribute it and/or modify |
|
|
388 | # it under the terms of the GNU General Public License as published by |
|
|
389 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
390 | # any later version. |
|
|
391 | |
|
|
392 | # This program is distributed in the hope that it will be useful, |
|
|
393 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
394 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
395 | # GNU General Public License for more details. |
|
|
396 | |
|
|
397 | # You should have received a copy of the GNU General Public License |
|
|
398 | # along with this program; if not, write to the Free Software |
|
|
399 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
400 | # 02111-1307, USA. |
|
|
401 | |
|
|
402 | # serial 3 |
|
|
403 | |
|
|
404 | # AM_SANITY_CHECK |
|
|
405 | # --------------- |
|
|
406 | AC_DEFUN([AM_SANITY_CHECK], |
|
|
407 | [AC_MSG_CHECKING([whether build environment is sane]) |
|
|
408 | # Just in case |
|
|
409 | sleep 1 |
|
|
410 | echo timestamp > conftest.file |
|
|
411 | # Do `set' in a subshell so we don't clobber the current shell's |
|
|
412 | # arguments. Must try -L first in case configure is actually a |
|
|
413 | # symlink; some systems play weird games with the mod time of symlinks |
|
|
414 | # (eg FreeBSD returns the mod time of the symlink's containing |
|
|
415 | # directory). |
|
|
416 | if ( |
|
|
417 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
|
|
418 | if test "$[*]" = "X"; then |
|
|
419 | # -L didn't work. |
|
|
420 | set X `ls -t $srcdir/configure conftest.file` |
|
|
421 | fi |
|
|
422 | rm -f conftest.file |
|
|
423 | if test "$[*]" != "X $srcdir/configure conftest.file" \ |
|
|
424 | && test "$[*]" != "X conftest.file $srcdir/configure"; then |
|
|
425 | |
|
|
426 | # If neither matched, then we have a broken ls. This can happen |
|
|
427 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
|
|
428 | # broken ls alias from the environment. This has actually |
|
|
429 | # happened. Such a system could not be considered "sane". |
|
|
430 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
|
|
431 | alias in your environment]) |
|
|
432 | fi |
|
|
433 | |
|
|
434 | test "$[2]" = conftest.file |
|
|
435 | ) |
|
|
436 | then |
|
|
437 | # Ok. |
|
|
438 | : |
|
|
439 | else |
|
|
440 | AC_MSG_ERROR([newly created file is older than distributed files! |
|
|
441 | Check your system clock]) |
|
|
442 | fi |
|
|
443 | AC_MSG_RESULT(yes)]) |
|
|
444 | |
|
|
445 | # -*- Autoconf -*- |
|
|
446 | |
|
|
447 | |
|
|
448 | # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. |
|
|
449 | |
|
|
450 | # This program is free software; you can redistribute it and/or modify |
|
|
451 | # it under the terms of the GNU General Public License as published by |
|
|
452 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
453 | # any later version. |
|
|
454 | |
|
|
455 | # This program is distributed in the hope that it will be useful, |
|
|
456 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
457 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
458 | # GNU General Public License for more details. |
|
|
459 | |
|
|
460 | # You should have received a copy of the GNU General Public License |
|
|
461 | # along with this program; if not, write to the Free Software |
|
|
462 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
463 | # 02111-1307, USA. |
|
|
464 | |
|
|
465 | # serial 3 |
|
|
466 | |
|
|
467 | # AM_MISSING_PROG(NAME, PROGRAM) |
|
|
468 | # ------------------------------ |
|
|
469 | AC_DEFUN([AM_MISSING_PROG], |
|
|
470 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) |
|
|
471 | $1=${$1-"${am_missing_run}$2"} |
|
|
472 | AC_SUBST($1)]) |
|
|
473 | |
|
|
474 | |
|
|
475 | # AM_MISSING_HAS_RUN |
|
|
476 | # ------------------ |
|
|
477 | # Define MISSING if not defined so far and test if it supports --run. |
|
|
478 | # If it does, set am_missing_run to use it, otherwise, to nothing. |
|
|
479 | AC_DEFUN([AM_MISSING_HAS_RUN], |
|
|
480 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|
|
481 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
|
|
482 | # Use eval to expand $SHELL |
|
|
483 | if eval "$MISSING --run true"; then |
|
|
484 | am_missing_run="$MISSING --run " |
|
|
485 | else |
|
|
486 | am_missing_run= |
|
|
487 | AC_MSG_WARN([`missing' script is too old or missing]) |
|
|
488 | fi |
|
|
489 | ]) |
|
|
490 | |
|
|
491 | # AM_AUX_DIR_EXPAND |
|
|
492 | |
|
|
493 | # Copyright 2001 Free Software Foundation, Inc. |
|
|
494 | |
|
|
495 | # This program is free software; you can redistribute it and/or modify |
|
|
496 | # it under the terms of the GNU General Public License as published by |
|
|
497 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
498 | # any later version. |
|
|
499 | |
|
|
500 | # This program is distributed in the hope that it will be useful, |
|
|
501 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
502 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
503 | # GNU General Public License for more details. |
|
|
504 | |
|
|
505 | # You should have received a copy of the GNU General Public License |
|
|
506 | # along with this program; if not, write to the Free Software |
|
|
507 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
508 | # 02111-1307, USA. |
|
|
509 | |
|
|
510 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
|
|
511 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
|
|
512 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
|
|
513 | # |
|
|
514 | # Of course, Automake must honor this variable whenever it calls a |
|
|
515 | # tool from the auxiliary directory. The problem is that $srcdir (and |
|
|
516 | # therefore $ac_aux_dir as well) can be either absolute or relative, |
|
|
517 | # depending on how configure is run. This is pretty annoying, since |
|
|
518 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top |
|
|
519 | # source directory, any form will work fine, but in subdirectories a |
|
|
520 | # relative path needs to be adjusted first. |
|
|
521 | # |
|
|
522 | # $ac_aux_dir/missing |
|
|
523 | # fails when called from a subdirectory if $ac_aux_dir is relative |
|
|
524 | # $top_srcdir/$ac_aux_dir/missing |
|
|
525 | # fails if $ac_aux_dir is absolute, |
|
|
526 | # fails when called from a subdirectory in a VPATH build with |
|
|
527 | # a relative $ac_aux_dir |
|
|
528 | # |
|
|
529 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
|
|
530 | # are both prefixed by $srcdir. In an in-source build this is usually |
|
|
531 | # harmless because $srcdir is `.', but things will broke when you |
|
|
532 | # start a VPATH build or use an absolute $srcdir. |
|
|
533 | # |
|
|
534 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
|
|
535 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
|
|
536 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
|
|
537 | # and then we would define $MISSING as |
|
|
538 | # MISSING="\${SHELL} $am_aux_dir/missing" |
|
|
539 | # This will work as long as MISSING is not called from configure, because |
|
|
540 | # unfortunately $(top_srcdir) has no meaning in configure. |
|
|
541 | # However there are other variables, like CC, which are often used in |
|
|
542 | # configure, and could therefore not use this "fixed" $ac_aux_dir. |
|
|
543 | # |
|
|
544 | # Another solution, used here, is to always expand $ac_aux_dir to an |
|
|
545 | # absolute PATH. The drawback is that using absolute paths prevent a |
|
|
546 | # configured tree to be moved without reconfiguration. |
|
|
547 | |
|
|
548 | # Rely on autoconf to set up CDPATH properly. |
|
|
549 | AC_PREREQ([2.50]) |
|
|
550 | |
|
|
551 | AC_DEFUN([AM_AUX_DIR_EXPAND], [ |
|
|
552 | # expand $ac_aux_dir to an absolute path |
|
|
553 | am_aux_dir=`cd $ac_aux_dir && pwd` |
|
|
554 | ]) |
|
|
555 | |
|
|
556 | # AM_PROG_INSTALL_SH |
|
|
557 | # ------------------ |
|
|
558 | # Define $install_sh. |
|
|
559 | |
|
|
560 | # Copyright 2001 Free Software Foundation, Inc. |
|
|
561 | |
|
|
562 | # This program is free software; you can redistribute it and/or modify |
|
|
563 | # it under the terms of the GNU General Public License as published by |
|
|
564 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
565 | # any later version. |
|
|
566 | |
|
|
567 | # This program is distributed in the hope that it will be useful, |
|
|
568 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
569 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
570 | # GNU General Public License for more details. |
|
|
571 | |
|
|
572 | # You should have received a copy of the GNU General Public License |
|
|
573 | # along with this program; if not, write to the Free Software |
|
|
574 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
575 | # 02111-1307, USA. |
|
|
576 | |
|
|
577 | AC_DEFUN([AM_PROG_INSTALL_SH], |
|
|
578 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|
|
579 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
|
|
580 | AC_SUBST(install_sh)]) |
|
|
581 | |
|
|
582 | # AM_PROG_INSTALL_STRIP |
|
|
583 | |
|
|
584 | # Copyright 2001 Free Software Foundation, Inc. |
|
|
585 | |
|
|
586 | # This program is free software; you can redistribute it and/or modify |
|
|
587 | # it under the terms of the GNU General Public License as published by |
|
|
588 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
589 | # any later version. |
|
|
590 | |
|
|
591 | # This program is distributed in the hope that it will be useful, |
|
|
592 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
593 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
594 | # GNU General Public License for more details. |
|
|
595 | |
|
|
596 | # You should have received a copy of the GNU General Public License |
|
|
597 | # along with this program; if not, write to the Free Software |
|
|
598 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
599 | # 02111-1307, USA. |
|
|
600 | |
|
|
601 | # One issue with vendor `install' (even GNU) is that you can't |
|
|
602 | # specify the program used to strip binaries. This is especially |
|
|
603 | # annoying in cross-compiling environments, where the build's strip |
|
|
604 | # is unlikely to handle the host's binaries. |
|
|
605 | # Fortunately install-sh will honor a STRIPPROG variable, so we |
|
|
606 | # always use install-sh in `make install-strip', and initialize |
|
|
607 | # STRIPPROG with the value of the STRIP variable (set by the user). |
|
|
608 | AC_DEFUN([AM_PROG_INSTALL_STRIP], |
|
|
609 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
|
|
610 | # Installed binaries are usually stripped using `strip' when the user |
|
|
611 | # run `make install-strip'. However `strip' might not be the right |
|
|
612 | # tool to use in cross-compilation environments, therefore Automake |
|
|
613 | # will honor the `STRIP' environment variable to overrule this program. |
|
|
614 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
|
|
615 | if test "$cross_compiling" != no; then |
|
|
616 | AC_CHECK_TOOL([STRIP], [strip], :) |
|
|
617 | fi |
|
|
618 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
|
|
619 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
|
|
620 | |
|
|
621 | # -*- Autoconf -*- |
|
|
622 | # Copyright (C) 2003 Free Software Foundation, Inc. |
|
|
623 | |
|
|
624 | # This program is free software; you can redistribute it and/or modify |
|
|
625 | # it under the terms of the GNU General Public License as published by |
|
|
626 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
627 | # any later version. |
|
|
628 | |
|
|
629 | # This program is distributed in the hope that it will be useful, |
|
|
630 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
631 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
632 | # GNU General Public License for more details. |
|
|
633 | |
|
|
634 | # You should have received a copy of the GNU General Public License |
|
|
635 | # along with this program; if not, write to the Free Software |
|
|
636 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
637 | # 02111-1307, USA. |
|
|
638 | |
|
|
639 | # serial 1 |
|
|
640 | |
|
|
641 | # Check whether the underlying file-system supports filenames |
|
|
642 | # with a leading dot. For instance MS-DOS doesn't. |
|
|
643 | AC_DEFUN([AM_SET_LEADING_DOT], |
|
|
644 | [rm -rf .tst 2>/dev/null |
|
|
645 | mkdir .tst 2>/dev/null |
|
|
646 | if test -d .tst; then |
|
|
647 | am__leading_dot=. |
|
|
648 | else |
|
|
649 | am__leading_dot=_ |
|
|
650 | fi |
|
|
651 | rmdir .tst 2>/dev/null |
|
|
652 | AC_SUBST([am__leading_dot])]) |
|
|
653 | |
|
|
654 | # serial 5 -*- Autoconf -*- |
|
|
655 | |
|
|
656 | # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
|
|
657 | |
|
|
658 | # This program is free software; you can redistribute it and/or modify |
|
|
659 | # it under the terms of the GNU General Public License as published by |
|
|
660 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
661 | # any later version. |
|
|
662 | |
|
|
663 | # This program is distributed in the hope that it will be useful, |
|
|
664 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
665 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
666 | # GNU General Public License for more details. |
|
|
667 | |
|
|
668 | # You should have received a copy of the GNU General Public License |
|
|
669 | # along with this program; if not, write to the Free Software |
|
|
670 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
671 | # 02111-1307, USA. |
|
|
672 | |
|
|
673 | |
|
|
674 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
|
|
675 | # written in clear, in which case automake, when reading aclocal.m4, |
|
|
676 | # will think it sees a *use*, and therefore will trigger all it's |
|
|
677 | # C support machinery. Also note that it means that autoscan, seeing |
|
|
678 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
|
|
679 | |
|
|
680 | |
|
|
681 | |
|
|
682 | # _AM_DEPENDENCIES(NAME) |
|
|
683 | # ---------------------- |
|
|
684 | # See how the compiler implements dependency checking. |
|
|
685 | # NAME is "CC", "CXX", "GCJ", or "OBJC". |
|
|
686 | # We try a few techniques and use that to set a single cache variable. |
|
|
687 | # |
|
|
688 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
|
|
689 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
|
|
690 | # dependency, and given that the user is not expected to run this macro, |
|
|
691 | # just rely on AC_PROG_CC. |
|
|
692 | AC_DEFUN([_AM_DEPENDENCIES], |
|
|
693 | [AC_REQUIRE([AM_SET_DEPDIR])dnl |
|
|
694 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
|
|
695 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
|
|
696 | AC_REQUIRE([AM_DEP_TRACK])dnl |
|
|
697 | |
|
|
698 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
|
|
699 | [$1], CXX, [depcc="$CXX" am_compiler_list=], |
|
|
700 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
|
|
701 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
|
|
702 | [depcc="$$1" am_compiler_list=]) |
|
|
703 | |
|
|
704 | AC_CACHE_CHECK([dependency style of $depcc], |
|
|
705 | [am_cv_$1_dependencies_compiler_type], |
|
|
706 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
|
707 | # We make a subdir and do the tests there. Otherwise we can end up |
|
|
708 | # making bogus files that we don't know about and never remove. For |
|
|
709 | # instance it was reported that on HP-UX the gcc test will end up |
|
|
710 | # making a dummy file named `D' -- because `-MD' means `put the output |
|
|
711 | # in D'. |
|
|
712 | mkdir conftest.dir |
|
|
713 | # Copy depcomp to subdir because otherwise we won't find it if we're |
|
|
714 | # using a relative directory. |
|
|
715 | cp "$am_depcomp" conftest.dir |
|
|
716 | cd conftest.dir |
|
|
717 | # We will build objects and dependencies in a subdirectory because |
|
|
718 | # it helps to detect inapplicable dependency modes. For instance |
|
|
719 | # both Tru64's cc and ICC support -MD to output dependencies as a |
|
|
720 | # side effect of compilation, but ICC will put the dependencies in |
|
|
721 | # the current directory while Tru64 will put them in the object |
|
|
722 | # directory. |
|
|
723 | mkdir sub |
|
|
724 | |
|
|
725 | am_cv_$1_dependencies_compiler_type=none |
|
|
726 | if test "$am_compiler_list" = ""; then |
|
|
727 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
|
|
728 | fi |
|
|
729 | for depmode in $am_compiler_list; do |
|
|
730 | # Setup a source with many dependencies, because some compilers |
|
|
731 | # like to wrap large dependency lists on column 80 (with \), and |
|
|
732 | # we should not choose a depcomp mode which is confused by this. |
|
|
733 | # |
|
|
734 | # We need to recreate these files for each test, as the compiler may |
|
|
735 | # overwrite some of them when testing with obscure command lines. |
|
|
736 | # This happens at least with the AIX C compiler. |
|
|
737 | : > sub/conftest.c |
|
|
738 | for i in 1 2 3 4 5 6; do |
|
|
739 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
|
740 | : > sub/conftst$i.h |
|
|
741 | done |
|
|
742 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
|
743 | |
|
|
744 | case $depmode in |
|
|
745 | nosideeffect) |
|
|
746 | # after this tag, mechanisms are not by side-effect, so they'll |
|
|
747 | # only be used when explicitly requested |
|
|
748 | if test "x$enable_dependency_tracking" = xyes; then |
|
|
749 | continue |
|
|
750 | else |
|
|
751 | break |
|
|
752 | fi |
|
|
753 | ;; |
|
|
754 | none) break ;; |
|
|
755 | esac |
|
|
756 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
|
757 | # mode. It turns out that the SunPro C++ compiler does not properly |
|
|
758 | # handle `-M -o', and we need to detect this. |
|
|
759 | if depmode=$depmode \ |
|
|
760 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
|
761 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
|
762 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
|
763 | >/dev/null 2>conftest.err && |
|
|
764 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
|
765 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
|
766 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
|
767 | # icc doesn't choke on unknown options, it will just issue warnings |
|
|
768 | # (even with -Werror). So we grep stderr for any message |
|
|
769 | # that says an option was ignored. |
|
|
770 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
|
|
771 | am_cv_$1_dependencies_compiler_type=$depmode |
|
|
772 | break |
|
|
773 | fi |
|
|
774 | fi |
|
|
775 | done |
|
|
776 | |
|
|
777 | cd .. |
|
|
778 | rm -rf conftest.dir |
|
|
779 | else |
|
|
780 | am_cv_$1_dependencies_compiler_type=none |
|
|
781 | fi |
|
|
782 | ]) |
|
|
783 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
|
|
784 | AM_CONDITIONAL([am__fastdep$1], [ |
|
|
785 | test "x$enable_dependency_tracking" != xno \ |
|
|
786 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
|
|
787 | ]) |
|
|
788 | |
|
|
789 | |
|
|
790 | # AM_SET_DEPDIR |
|
|
791 | # ------------- |
|
|
792 | # Choose a directory name for dependency files. |
|
|
793 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES |
|
|
794 | AC_DEFUN([AM_SET_DEPDIR], |
|
|
795 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
|
|
796 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
|
|
797 | ]) |
|
|
798 | |
|
|
799 | |
|
|
800 | # AM_DEP_TRACK |
|
|
801 | # ------------ |
|
|
802 | AC_DEFUN([AM_DEP_TRACK], |
|
|
803 | [AC_ARG_ENABLE(dependency-tracking, |
|
|
804 | [ --disable-dependency-tracking Speeds up one-time builds |
|
|
805 | --enable-dependency-tracking Do not reject slow dependency extractors]) |
|
|
806 | if test "x$enable_dependency_tracking" != xno; then |
|
|
807 | am_depcomp="$ac_aux_dir/depcomp" |
|
|
808 | AMDEPBACKSLASH='\' |
|
|
809 | fi |
|
|
810 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
|
|
811 | AC_SUBST([AMDEPBACKSLASH]) |
|
|
812 | ]) |
|
|
813 | |
|
|
814 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
|
|
815 | |
|
|
816 | # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
|
|
817 | |
|
|
818 | # This program is free software; you can redistribute it and/or modify |
|
|
819 | # it under the terms of the GNU General Public License as published by |
|
|
820 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
821 | # any later version. |
|
|
822 | |
|
|
823 | # This program is distributed in the hope that it will be useful, |
|
|
824 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
825 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
826 | # GNU General Public License for more details. |
|
|
827 | |
|
|
828 | # You should have received a copy of the GNU General Public License |
|
|
829 | # along with this program; if not, write to the Free Software |
|
|
830 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
831 | # 02111-1307, USA. |
|
|
832 | |
|
|
833 | #serial 2 |
|
|
834 | |
|
|
835 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
|
|
836 | # ------------------------------ |
|
|
837 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
|
838 | [for mf in $CONFIG_FILES; do |
|
|
839 | # Strip MF so we end up with the name of the file. |
|
|
840 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
|
841 | # Check whether this is an Automake generated Makefile or not. |
|
|
842 | # We used to match only the files named `Makefile.in', but |
|
|
843 | # some people rename them; so instead we look at the file content. |
|
|
844 | # Grep'ing the first line is not enough: some people post-process |
|
|
845 | # each Makefile.in and add a new line on top of each file to say so. |
|
|
846 | # So let's grep whole file. |
|
|
847 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
|
|
848 | dirpart=`AS_DIRNAME("$mf")` |
|
|
849 | else |
|
|
850 | continue |
|
|
851 | fi |
|
|
852 | grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue |
|
|
853 | # Extract the definition of DEP_FILES from the Makefile without |
|
|
854 | # running `make'. |
|
|
855 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
|
|
856 | test -z "$DEPDIR" && continue |
|
|
857 | # When using ansi2knr, U may be empty or an underscore; expand it |
|
|
858 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
|
|
859 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
|
|
860 | # We invoke sed twice because it is the simplest approach to |
|
|
861 | # changing $(DEPDIR) to its actual value in the expansion. |
|
|
862 | for file in `sed -n -e ' |
|
|
863 | /^DEP_FILES = .*\\\\$/ { |
|
|
864 | s/^DEP_FILES = // |
|
|
865 | :loop |
|
|
866 | s/\\\\$// |
|
|
867 | p |
|
|
868 | n |
|
|
869 | /\\\\$/ b loop |
|
|
870 | p |
|
|
871 | } |
|
|
872 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
|
|
873 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
|
|
874 | # Make sure the directory exists. |
|
|
875 | test -f "$dirpart/$file" && continue |
|
|
876 | fdir=`AS_DIRNAME(["$file"])` |
|
|
877 | AS_MKDIR_P([$dirpart/$fdir]) |
|
|
878 | # echo "creating $dirpart/$file" |
|
|
879 | echo '# dummy' > "$dirpart/$file" |
|
|
880 | done |
|
|
881 | done |
|
|
882 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
|
|
883 | |
|
|
884 | |
|
|
885 | # AM_OUTPUT_DEPENDENCY_COMMANDS |
|
|
886 | # ----------------------------- |
|
|
887 | # This macro should only be invoked once -- use via AC_REQUIRE. |
|
|
888 | # |
|
|
889 | # This code is only required when automatic dependency tracking |
|
|
890 | # is enabled. FIXME. This creates each `.P' file that we will |
|
|
891 | # need in order to bootstrap the dependency handling code. |
|
|
892 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
|
893 | [AC_CONFIG_COMMANDS([depfiles], |
|
|
894 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
|
895 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
|
|
896 | ]) |
|
|
897 | |
|
|
898 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
|
|
899 | |
|
|
900 | # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. |
|
|
901 | |
|
|
902 | # This program is free software; you can redistribute it and/or modify |
|
|
903 | # it under the terms of the GNU General Public License as published by |
|
|
904 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
905 | # any later version. |
|
|
906 | |
|
|
907 | # This program is distributed in the hope that it will be useful, |
|
|
908 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
909 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
910 | # GNU General Public License for more details. |
|
|
911 | |
|
|
912 | # You should have received a copy of the GNU General Public License |
|
|
913 | # along with this program; if not, write to the Free Software |
|
|
914 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
915 | # 02111-1307, USA. |
|
|
916 | |
|
|
917 | # serial 2 |
|
|
918 | |
|
|
919 | # AM_MAKE_INCLUDE() |
|
|
920 | # ----------------- |
|
|
921 | # Check to see how make treats includes. |
|
|
922 | AC_DEFUN([AM_MAKE_INCLUDE], |
|
|
923 | [am_make=${MAKE-make} |
|
|
924 | cat > confinc << 'END' |
|
|
925 | am__doit: |
|
|
926 | @echo done |
|
|
927 | .PHONY: am__doit |
|
|
928 | END |
|
|
929 | # If we don't find an include directive, just comment out the code. |
|
|
930 | AC_MSG_CHECKING([for style of include used by $am_make]) |
|
|
931 | am__include="#" |
|
|
932 | am__quote= |
|
|
933 | _am_result=none |
|
|
934 | # First try GNU make style include. |
|
|
935 | echo "include confinc" > confmf |
|
|
936 | # We grep out `Entering directory' and `Leaving directory' |
|
|
937 | # messages which can occur if `w' ends up in MAKEFLAGS. |
|
|
938 | # In particular we don't look at `^make:' because GNU make might |
|
|
939 | # be invoked under some other name (usually "gmake"), in which |
|
|
940 | # case it prints its new name instead of `make'. |
|
|
941 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
|
|
942 | am__include=include |
|
|
943 | am__quote= |
|
|
944 | _am_result=GNU |
|
|
945 | fi |
|
|
946 | # Now try BSD make style include. |
|
|
947 | if test "$am__include" = "#"; then |
|
|
948 | echo '.include "confinc"' > confmf |
|
|
949 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
|
|
950 | am__include=.include |
|
|
951 | am__quote="\"" |
|
|
952 | _am_result=BSD |
|
|
953 | fi |
|
|
954 | fi |
|
|
955 | AC_SUBST([am__include]) |
|
|
956 | AC_SUBST([am__quote]) |
|
|
957 | AC_MSG_RESULT([$_am_result]) |
|
|
958 | rm -f confinc confmf |
|
|
959 | ]) |
|
|
960 | |
|
|
961 | # AM_CONDITIONAL -*- Autoconf -*- |
|
|
962 | |
|
|
963 | # Copyright 1997, 2000, 2001 Free Software Foundation, Inc. |
|
|
964 | |
|
|
965 | # This program is free software; you can redistribute it and/or modify |
|
|
966 | # it under the terms of the GNU General Public License as published by |
|
|
967 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
968 | # any later version. |
|
|
969 | |
|
|
970 | # This program is distributed in the hope that it will be useful, |
|
|
971 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
972 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
973 | # GNU General Public License for more details. |
|
|
974 | |
|
|
975 | # You should have received a copy of the GNU General Public License |
|
|
976 | # along with this program; if not, write to the Free Software |
|
|
977 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
978 | # 02111-1307, USA. |
|
|
979 | |
|
|
980 | # serial 5 |
|
|
981 | |
|
|
982 | AC_PREREQ(2.52) |
|
|
983 | |
|
|
984 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
|
|
985 | # ------------------------------------- |
|
|
986 | # Define a conditional. |
|
|
987 | AC_DEFUN([AM_CONDITIONAL], |
|
|
988 | [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
|
|
989 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
|
|
990 | AC_SUBST([$1_TRUE]) |
|
|
991 | AC_SUBST([$1_FALSE]) |
|
|
992 | if $2; then |
|
|
993 | $1_TRUE= |
|
|
994 | $1_FALSE='#' |
|
|
995 | else |
|
|
996 | $1_TRUE='#' |
|
|
997 | $1_FALSE= |
|
|
998 | fi |
|
|
999 | AC_CONFIG_COMMANDS_PRE( |
|
|
1000 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
|
|
1001 | AC_MSG_ERROR([conditional "$1" was never defined. |
|
|
1002 | Usually this means the macro was only invoked conditionally.]) |
|
|
1003 | fi])]) |
|
|
1004 | |
|
|
1005 | # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- |
|
|
1006 | |
|
|
1007 | # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. |
|
|
1008 | |
|
|
1009 | # This program is free software; you can redistribute it and/or modify |
|
|
1010 | # it under the terms of the GNU General Public License as published by |
|
|
1011 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
1012 | # any later version. |
|
|
1013 | |
|
|
1014 | # This program is distributed in the hope that it will be useful, |
|
|
1015 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
1016 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
1017 | # GNU General Public License for more details. |
|
|
1018 | |
|
|
1019 | # You should have received a copy of the GNU General Public License |
|
|
1020 | # along with this program; if not, write to the Free Software |
|
|
1021 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
1022 | # 02111-1307, USA. |
|
|
1023 | |
|
|
1024 | AC_PREREQ([2.52]) |
|
|
1025 | |
|
|
1026 | # serial 6 |
|
|
1027 | |
|
|
1028 | # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
|
|
1029 | AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
|
|
1030 | |
|
|
1031 | # Add --enable-maintainer-mode option to configure. |
|
|
1032 | # From Jim Meyering |
|
|
1033 | |
|
|
1034 | # Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc. |
|
|
1035 | |
|
|
1036 | # This program is free software; you can redistribute it and/or modify |
|
|
1037 | # it under the terms of the GNU General Public License as published by |
|
|
1038 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
1039 | # any later version. |
|
|
1040 | |
|
|
1041 | # This program is distributed in the hope that it will be useful, |
|
|
1042 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
1043 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
1044 | # GNU General Public License for more details. |
|
|
1045 | |
|
|
1046 | # You should have received a copy of the GNU General Public License |
|
|
1047 | # along with this program; if not, write to the Free Software |
|
|
1048 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
1049 | # 02111-1307, USA. |
|
|
1050 | |
|
|
1051 | # serial 2 |
|
|
1052 | |
|
|
1053 | AC_DEFUN([AM_MAINTAINER_MODE], |
|
|
1054 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
|
|
1055 | dnl maintainer-mode is disabled by default |
|
|
1056 | AC_ARG_ENABLE(maintainer-mode, |
|
|
1057 | [ --enable-maintainer-mode enable make rules and dependencies not useful |
|
|
1058 | (and sometimes confusing) to the casual installer], |
|
|
1059 | USE_MAINTAINER_MODE=$enableval, |
|
|
1060 | USE_MAINTAINER_MODE=no) |
|
|
1061 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
|
|
1062 | AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) |
|
|
1063 | MAINT=$MAINTAINER_MODE_TRUE |
|
|
1064 | AC_SUBST(MAINT)dnl |
|
|
1065 | ] |
|
|
1066 | ) |
|
|
1067 | |
|
|
1068 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
|
|
1069 | |
14 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
1070 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
15 | |
1071 | |
16 | # serial 47 AC_PROG_LIBTOOL |
1072 | m4_define([_LT_COPYING], [dnl |
17 | # Debian $Rev: 214 $ |
1073 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 |
|
|
1074 | # Free Software Foundation, Inc. |
|
|
1075 | # |
|
|
1076 | # This file is part of GNU Libtool: |
|
|
1077 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
1078 | # |
|
|
1079 | # This program is free software; you can redistribute it and/or modify |
|
|
1080 | # it under the terms of the GNU General Public License as published by |
|
|
1081 | # the Free Software Foundation; either version 2 of the License, or |
|
|
1082 | # (at your option) any later version. |
|
|
1083 | # |
|
|
1084 | # This program is distributed in the hope that it will be useful, but |
|
|
1085 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
1086 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
1087 | # General Public License for more details. |
|
|
1088 | # |
|
|
1089 | # You should have received a copy of the GNU General Public License |
|
|
1090 | # along with this program; if not, write to the Free Software |
|
|
1091 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
1092 | # |
|
|
1093 | # As a special exception to the GNU General Public License, if you |
|
|
1094 | # distribute this file as part of a program that contains a |
|
|
1095 | # configuration script generated by Autoconf, you may include it under |
|
|
1096 | # the same distribution terms that you use for the rest of that program. |
|
|
1097 | ]) |
18 | |
1098 | |
|
|
1099 | # serial 49 LT_INIT |
19 | |
1100 | |
20 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
|
|
21 | # ----------------------------------------------------------- |
|
|
22 | # If this macro is not defined by Autoconf, define it here. |
|
|
23 | m4_ifdef([AC_PROVIDE_IFELSE], |
|
|
24 | [], |
|
|
25 | [m4_define([AC_PROVIDE_IFELSE], |
|
|
26 | [m4_ifdef([AC_PROVIDE_$1], |
|
|
27 | [$2], [$3])])]) |
|
|
28 | |
1101 | |
29 | |
1102 | # LT_PREREQ(VERSION) |
30 | # AC_PROG_LIBTOOL |
|
|
31 | # --------------- |
|
|
32 | AC_DEFUN([AC_PROG_LIBTOOL], |
|
|
33 | [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl |
|
|
34 | dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX |
|
|
35 | dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. |
|
|
36 | AC_PROVIDE_IFELSE([AC_PROG_CXX], |
|
|
37 | [AC_LIBTOOL_CXX], |
|
|
38 | [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX |
|
|
39 | ])]) |
|
|
40 | dnl And a similar setup for Fortran 77 support |
|
|
41 | AC_PROVIDE_IFELSE([AC_PROG_F77], |
|
|
42 | [AC_LIBTOOL_F77], |
|
|
43 | [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 |
|
|
44 | ])]) |
|
|
45 | |
|
|
46 | dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. |
|
|
47 | dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run |
|
|
48 | dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. |
|
|
49 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
|
|
50 | [AC_LIBTOOL_GCJ], |
|
|
51 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
|
|
52 | [AC_LIBTOOL_GCJ], |
|
|
53 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], |
|
|
54 | [AC_LIBTOOL_GCJ], |
|
|
55 | [ifdef([AC_PROG_GCJ], |
|
|
56 | [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
|
|
57 | ifdef([A][M_PROG_GCJ], |
|
|
58 | [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
|
|
59 | ifdef([LT_AC_PROG_GCJ], |
|
|
60 | [define([LT_AC_PROG_GCJ], |
|
|
61 | defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
|
|
62 | ])])# AC_PROG_LIBTOOL |
|
|
63 | |
|
|
64 | |
|
|
65 | # _AC_PROG_LIBTOOL |
|
|
66 | # ---------------- |
1103 | # ------------------ |
67 | AC_DEFUN([_AC_PROG_LIBTOOL], |
1104 | # Complain and exit if this libtool version is less that VERSION. |
68 | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
1105 | m4_define([LT_PREREQ], |
69 | AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl |
1106 | [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
70 | AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl |
1107 | [m4_default([$3], |
|
|
1108 | [m4_fatal([Libtool version $1 or higher is required], |
|
|
1109 | 63)])], |
|
|
1110 | [$2])]) |
|
|
1111 | |
|
|
1112 | |
|
|
1113 | # LT_INIT([OPTIONS]) |
|
|
1114 | # -------------------------- |
|
|
1115 | AC_DEFUN([LT_INIT], |
|
|
1116 | [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
|
|
1117 | dnl Autoconf doesn't catch unexpanded LT_ macros by default: |
|
|
1118 | m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
|
|
1119 | m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW)$])dnl |
|
|
1120 | dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 |
|
|
1121 | dnl unless we require an AC_DEFUNed macro: |
|
|
1122 | AC_REQUIRE([LTOPTIONS_VERSION])dnl |
|
|
1123 | AC_REQUIRE([LTSUGAR_VERSION])dnl |
|
|
1124 | AC_REQUIRE([LTVERSION_VERSION])dnl |
|
|
1125 | AC_REQUIRE([_LT_PROG_LTMAIN])dnl |
71 | AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl |
1126 | AC_BEFORE([$0], [LT_LANG])dnl |
72 | |
1127 | |
73 | # This can be used to rebuild libtool when needed |
1128 | # This can be used to rebuild libtool when needed |
74 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
1129 | LIBTOOL_DEPS="$ltmain" |
75 | |
1130 | |
76 | # Always use our own libtool. |
1131 | # Always use our own libtool. |
77 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
1132 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
78 | AC_SUBST(LIBTOOL)dnl |
1133 | AC_SUBST(LIBTOOL)dnl |
79 | |
1134 | |
80 | # Prevent multiple expansion |
1135 | # Set options |
81 | define([AC_PROG_LIBTOOL], []) |
1136 | _LT_SET_OPTIONS([$1])dnl |
82 | ])# _AC_PROG_LIBTOOL |
|
|
83 | |
1137 | |
|
|
1138 | _LT_SETUP |
84 | |
1139 | |
|
|
1140 | # Only expand once: |
|
|
1141 | m4_define([LT_INIT]) |
|
|
1142 | ])# _LT_INIT |
|
|
1143 | |
|
|
1144 | # Old names: |
|
|
1145 | AU_DEFUN([AC_PROG_LIBTOOL], [LT_INIT]) |
|
|
1146 | AU_DEFUN([AM_PROG_LIBTOOL], [LT_INIT]) |
|
|
1147 | |
|
|
1148 | |
85 | # AC_LIBTOOL_SETUP |
1149 | # _LT_SETUP |
86 | # ---------------- |
1150 | # --------- |
87 | AC_DEFUN([AC_LIBTOOL_SETUP], |
1151 | m4_define([_LT_SETUP], |
88 | [AC_PREREQ(2.50)dnl |
|
|
89 | AC_REQUIRE([AC_ENABLE_SHARED])dnl |
|
|
90 | AC_REQUIRE([AC_ENABLE_STATIC])dnl |
|
|
91 | AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl |
|
|
92 | AC_REQUIRE([AC_CANONICAL_HOST])dnl |
1152 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
93 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
1153 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
|
|
1154 | _LT_DECL([], [host_alias], [0], [The host system])dnl |
|
|
1155 | _LT_DECL([], [host], [0])dnl |
|
|
1156 | dnl |
94 | AC_REQUIRE([AC_PROG_CC])dnl |
1157 | AC_REQUIRE([AC_PROG_CC])dnl |
95 | AC_REQUIRE([AC_PROG_LD])dnl |
1158 | AC_REQUIRE([AC_PROG_LD])dnl |
96 | AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
1159 | AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
97 | AC_REQUIRE([AC_PROG_NM])dnl |
1160 | AC_REQUIRE([AC_PROG_NM])dnl |
98 | |
1161 | dnl |
99 | AC_REQUIRE([AC_PROG_LN_S])dnl |
1162 | AC_REQUIRE([AC_PROG_LN_S])dnl |
|
|
1163 | test -z "$LN_S" && LN_S="ln -s" |
|
|
1164 | _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
|
|
1165 | dnl |
100 | AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
1166 | AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
101 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
1167 | AC_REQUIRE([AC_LIBTOOL_SYS_OLD_ARCHIVE])dnl |
|
|
1168 | AC_REQUIRE([AC_LIBTOOL_SYS_MAX_CMD_LEN])dnl |
|
|
1169 | AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl |
102 | AC_REQUIRE([AC_OBJEXT])dnl |
1170 | AC_REQUIRE([AC_OBJEXT])dnl |
|
|
1171 | _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
103 | AC_REQUIRE([AC_EXEEXT])dnl |
1172 | AC_REQUIRE([AC_EXEEXT])dnl |
|
|
1173 | _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
104 | dnl |
1174 | dnl |
105 | |
1175 | |
106 | AC_LIBTOOL_SYS_MAX_CMD_LEN |
1176 | _LT_CONFIG_LIBTOOL_INIT([ |
107 | AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
1177 | # See if we are running on zsh, and set the options which allow our |
|
|
1178 | # commands through without removal of \ escapes INIT. |
|
|
1179 | if test -n "\${ZSH_VERSION+set}" ; then |
|
|
1180 | setopt NO_GLOB_SUBST |
|
|
1181 | fi |
|
|
1182 | ]) |
|
|
1183 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
1184 | setopt NO_GLOB_SUBST |
|
|
1185 | fi |
|
|
1186 | |
108 | AC_LIBTOOL_OBJDIR |
1187 | AC_LIBTOOL_OBJDIR |
109 | |
1188 | |
110 | AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
1189 | AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
111 | _LT_AC_PROG_ECHO_BACKSLASH |
1190 | _LT_AC_PROG_ECHO_BACKSLASH |
112 | |
1191 | |
… | |
… | |
132 | |
1211 | |
133 | # Sed substitution to delay expansion of an escaped shell variable in a |
1212 | # Sed substitution to delay expansion of an escaped shell variable in a |
134 | # double_quote_subst'ed string. |
1213 | # double_quote_subst'ed string. |
135 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
1214 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
136 | |
1215 | |
|
|
1216 | # Sed substitution to delay expansion of an escaped single quote. |
|
|
1217 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
|
|
1218 | |
137 | # Sed substitution to avoid accidental globbing in evaled expressions |
1219 | # Sed substitution to avoid accidental globbing in evaled expressions |
138 | no_glob_subst='s/\*/\\\*/g' |
1220 | no_glob_subst='s/\*/\\\*/g' |
139 | |
1221 | |
140 | # Constants: |
1222 | # Constants: |
141 | rm="rm -f" |
1223 | rm="rm -f" |
142 | |
1224 | |
143 | # Global variables: |
1225 | # Global variables: |
144 | default_ofile=libtool |
1226 | default_ofile=libtool |
|
|
1227 | ofile="$default_ofile" |
145 | can_build_shared=yes |
1228 | can_build_shared=yes |
146 | |
1229 | |
147 | # All known linkers require a `.a' archive for static linking (except M$VC, |
1230 | # All known linkers require a `.a' archive for static linking (except M$VC, |
148 | # which needs '.lib'). |
1231 | # which needs '.lib'). |
149 | libext=a |
1232 | libext=a |
150 | ltmain="$ac_aux_dir/ltmain.sh" |
1233 | |
151 | ofile="$default_ofile" |
|
|
152 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
1234 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
153 | |
|
|
154 | AC_CHECK_TOOL(AR, ar, false) |
|
|
155 | AC_CHECK_TOOL(RANLIB, ranlib, :) |
|
|
156 | AC_CHECK_TOOL(STRIP, strip, :) |
|
|
157 | |
1235 | |
158 | old_CC="$CC" |
1236 | old_CC="$CC" |
159 | old_CFLAGS="$CFLAGS" |
1237 | old_CFLAGS="$CFLAGS" |
160 | |
1238 | |
161 | # Set sane defaults for various variables |
1239 | # Set sane defaults for various variables |
162 | test -z "$AR" && AR=ar |
|
|
163 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
164 | test -z "$AS" && AS=as |
|
|
165 | test -z "$CC" && CC=cc |
1240 | test -z "$CC" && CC=cc |
166 | test -z "$LTCC" && LTCC=$CC |
1241 | test -z "$LTCC" && LTCC=$CC |
167 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
|
168 | test -z "$LD" && LD=ld |
1242 | test -z "$LD" && LD=ld |
169 | test -z "$LN_S" && LN_S="ln -s" |
1243 | test -z "$ac_objext" && ac_objext=o |
|
|
1244 | |
|
|
1245 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
|
|
1246 | |
|
|
1247 | # Only perform the check for file, if the check method requires it |
170 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
1248 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
171 | test -z "$NM" && NM=nm |
|
|
172 | test -z "$SED" && SED=sed |
|
|
173 | test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
174 | test -z "$RANLIB" && RANLIB=: |
|
|
175 | test -z "$STRIP" && STRIP=: |
|
|
176 | test -z "$ac_objext" && ac_objext=o |
|
|
177 | |
|
|
178 | # Determine commands to create old-style static archives. |
|
|
179 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
180 | old_postinstall_cmds='chmod 644 $oldlib' |
|
|
181 | old_postuninstall_cmds= |
|
|
182 | |
|
|
183 | if test -n "$RANLIB"; then |
|
|
184 | case $host_os in |
|
|
185 | openbsd*) |
|
|
186 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
|
|
187 | ;; |
|
|
188 | *) |
|
|
189 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
190 | ;; |
|
|
191 | esac |
|
|
192 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
193 | fi |
|
|
194 | |
|
|
195 | # Only perform the check for file, if the check method requires it |
|
|
196 | case $deplibs_check_method in |
1249 | case $deplibs_check_method in |
197 | file_magic*) |
1250 | file_magic*) |
198 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
1251 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
199 | AC_PATH_MAGIC |
1252 | AC_PATH_MAGIC |
200 | fi |
1253 | fi |
201 | ;; |
1254 | ;; |
202 | esac |
1255 | esac |
203 | |
1256 | |
204 | AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
|
|
205 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
|
|
206 | enable_win32_dll=yes, enable_win32_dll=no) |
|
|
207 | |
|
|
208 | AC_ARG_ENABLE([libtool-lock], |
1257 | AC_ARG_ENABLE([libtool-lock], |
209 | [AC_HELP_STRING([--disable-libtool-lock], |
1258 | [AC_HELP_STRING([--disable-libtool-lock], |
210 | [avoid locking (might break parallel builds)])]) |
1259 | [avoid locking (might break parallel builds)])]) |
211 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
1260 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
212 | |
1261 | |
213 | AC_ARG_WITH([pic], |
|
|
214 | [AC_HELP_STRING([--with-pic], |
|
|
215 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
|
|
216 | [pic_mode="$withval"], |
|
|
217 | [pic_mode=default]) |
|
|
218 | test -z "$pic_mode" && pic_mode=default |
|
|
219 | |
|
|
220 | # Use C for the default configuration in the libtool script |
1262 | # Use C for the default configuration in the libtool script |
221 | tagname= |
|
|
222 | AC_LIBTOOL_LANG_C_CONFIG |
1263 | _LT_LANG_C_CONFIG |
223 | _LT_AC_TAGCONFIG |
1264 | _LT_LANG_DEFAULT_CONFIG |
|
|
1265 | _LT_CONFIG_COMMANDS |
224 | ])# AC_LIBTOOL_SETUP |
1266 | ])# _LT_SETUP |
|
|
1267 | |
|
|
1268 | |
|
|
1269 | # _LT_PROG_LTMAIN |
|
|
1270 | # --------------- |
|
|
1271 | # In libtool itself `ltmain.sh' is in the build tree, but everything else |
|
|
1272 | # ships it in the source tree, for completeness, if we find a copy in the |
|
|
1273 | # build tree use that before falling back to auxdir. |
|
|
1274 | # |
|
|
1275 | # Note that this code is called both from `configure', and `config.status' |
|
|
1276 | # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
|
|
1277 | # `config.status' has no value for ac_aux_dir unless we are using Automake, |
|
|
1278 | # so we pass a copy along to make sure it has a sensible value anyway. |
|
|
1279 | AC_DEFUN([_LT_PROG_LTMAIN], |
|
|
1280 | [_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
|
|
1281 | case $ac_aux_dir in |
|
|
1282 | $srcdir) ltmain=./ltmain.sh ;; |
|
|
1283 | $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;; |
|
|
1284 | esac |
|
|
1285 | test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh" |
|
|
1286 | ])# _LT_PROG_LTMAIN |
|
|
1287 | |
|
|
1288 | |
|
|
1289 | |
|
|
1290 | |
|
|
1291 | # So that we can recreate a full libtool script including additional |
|
|
1292 | # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS |
|
|
1293 | # in macros and then make a single call at the end using the `libtool' |
|
|
1294 | # label. |
|
|
1295 | |
|
|
1296 | # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
|
|
1297 | # ---------------------------------------- |
|
|
1298 | # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
|
|
1299 | m4_define([_LT_CONFIG_LIBTOOL_INIT], |
|
|
1300 | [m4_ifval([$1], |
|
|
1301 | [m4_append([_LT_OUTPUT_LIBTOOL_INIT], |
|
|
1302 | [$1 |
|
|
1303 | ])])]) |
|
|
1304 | |
|
|
1305 | # Initialize. |
|
|
1306 | m4_define([_LT_OUTPUT_LIBTOOL_INIT]) |
|
|
1307 | |
|
|
1308 | # _LT_CONFIG_LIBTOOL([COMMANDS]) |
|
|
1309 | # ------------------------------ |
|
|
1310 | # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
|
|
1311 | m4_define([_LT_CONFIG_LIBTOOL], |
|
|
1312 | [m4_ifval([$1], |
|
|
1313 | [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], |
|
|
1314 | [$1 |
|
|
1315 | ])])]) |
|
|
1316 | |
|
|
1317 | # Initialize. |
|
|
1318 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) |
|
|
1319 | |
|
|
1320 | |
|
|
1321 | # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) |
|
|
1322 | # --------------------------------------------------- |
|
|
1323 | m4_define([_LT_CONFIG_SAVE_COMMANDS], |
|
|
1324 | [_LT_CONFIG_LIBTOOL([$1]) |
|
|
1325 | _LT_CONFIG_LIBTOOL_INIT([$2]) |
|
|
1326 | ]) |
|
|
1327 | |
|
|
1328 | |
|
|
1329 | # _LT_FORMAT_COMMENT([COMMENT]) |
|
|
1330 | # ----------------------------- |
|
|
1331 | # Add leading comment marks to the start of each line, and a trailing |
|
|
1332 | # full-stop to the whole comment if one is not present already. |
|
|
1333 | m4_define([_LT_FORMAT_COMMENT], |
|
|
1334 | [m4_ifval([$1], [ |
|
|
1335 | m4_bpatsubst([$1], [^ *], [# ])]m4_bmatch([$1], [[!?.]$], [], [.]) |
|
|
1336 | )]) |
|
|
1337 | |
|
|
1338 | |
|
|
1339 | |
|
|
1340 | |
|
|
1341 | # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) |
|
|
1342 | # ------------------------------------------------------------------- |
|
|
1343 | # CONFIGNAME is the name given to the value in the libtool script. |
|
|
1344 | # VARNAME is the (base) name used in the configure script. |
|
|
1345 | # VALUE may be 0, 1 or 2 for a computed quote escaped value based on |
|
|
1346 | # VARNAME. Any other value will be used directly. |
|
|
1347 | m4_define([_LT_DECL], |
|
|
1348 | [lt_if_append_uniq([lt_decl_varnames], [$2], [[, ]], |
|
|
1349 | [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], |
|
|
1350 | [m4_ifval([$1], [$1], [$2])]) |
|
|
1351 | lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) |
|
|
1352 | m4_ifval([$4], |
|
|
1353 | [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) |
|
|
1354 | lt_dict_add_subkey([lt_decl_dict], [$2], |
|
|
1355 | [tagged?], [m4_ifval([$5], [yes], [no])])]) |
|
|
1356 | ]) |
|
|
1357 | |
|
|
1358 | |
|
|
1359 | # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) |
|
|
1360 | # -------------------------------------------------------- |
|
|
1361 | m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) |
|
|
1362 | |
|
|
1363 | |
|
|
1364 | # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) |
|
|
1365 | # ------------------------------------------------- |
|
|
1366 | m4_define([lt_decl_tag_varnames], |
|
|
1367 | [_lt_decl_filter([tagged?], [yes], $@)]) |
|
|
1368 | m4_define([_lt_decl_filter], |
|
|
1369 | [m4_case([$#], |
|
|
1370 | [0], [m4_fatal([$0: too few arguments: $#])], |
|
|
1371 | [1], [m4_fatal([$0: too few arguments: $#: $1])], |
|
|
1372 | [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], |
|
|
1373 | [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], |
|
|
1374 | [lt_dict_filter([lt_decl_dict], $@)])[]dnl |
|
|
1375 | ]) |
|
|
1376 | |
|
|
1377 | |
|
|
1378 | # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) |
|
|
1379 | # --------------------------------------------------- |
|
|
1380 | m4_define([lt_decl_quote_varnames], |
|
|
1381 | [_lt_decl_filter([value], [1], $@)]) |
|
|
1382 | |
|
|
1383 | # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) |
|
|
1384 | # ---------------------------------------------------- |
|
|
1385 | m4_define([lt_decl_dquote_varnames], |
|
|
1386 | [_lt_decl_filter([value], [2], $@)]) |
|
|
1387 | |
|
|
1388 | |
|
|
1389 | # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) |
|
|
1390 | # ---------------------------------------------------- |
|
|
1391 | m4_define([lt_decl_varnames_tagged], |
|
|
1392 | [_$0(m4_quote(m4_default([$1], [[, ]])), |
|
|
1393 | m4_quote(m4_if([$2], [], |
|
|
1394 | m4_quote(lt_decl_tag_varnames), |
|
|
1395 | m4_quote(m4_shift($@)))), |
|
|
1396 | m4_split(m4_normalize(m4_quote(_LT_TAGS))))]) |
|
|
1397 | m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)]) |
|
|
1398 | |
|
|
1399 | |
|
|
1400 | # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) |
|
|
1401 | # ------------------------------------------------ |
|
|
1402 | m4_define([lt_decl_all_varnames], |
|
|
1403 | [_$0(m4_quote(m4_default([$1], [[, ]])), |
|
|
1404 | m4_if([$2], [], |
|
|
1405 | m4_quote(lt_decl_varnames), |
|
|
1406 | m4_quote(m4_shift($@))))[]dnl |
|
|
1407 | ]) |
|
|
1408 | m4_define([_lt_decl_all_varnames], |
|
|
1409 | [lt_join($@, lt_decl_varnames_tagged([$1], |
|
|
1410 | lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
|
|
1411 | ]) |
|
|
1412 | |
|
|
1413 | |
|
|
1414 | # _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
|
|
1415 | # ------------------------------------ |
|
|
1416 | # Quote a variable value, and forward it to `config.status' so that its |
|
|
1417 | # declaration there will have the same value as in `configure'. VARNAME |
|
|
1418 | # must have a single quote delimited value for this to work. |
|
|
1419 | m4_define([_LT_CONFIG_STATUS_DECLARE], |
|
|
1420 | [$1='`$echo "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) |
|
|
1421 | |
|
|
1422 | |
|
|
1423 | # _LT_CONFIG_STATUS_DECLARATIONS |
|
|
1424 | # ------------------------------ |
|
|
1425 | # We delimit libtool config variables with single quotes, so when |
|
|
1426 | # we write them to config.status, we have to be sure to quote all |
|
|
1427 | # embedded single quotes properly. In configure, this macro expands |
|
|
1428 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
|
|
1429 | # |
|
|
1430 | # <var>='`$echo "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
1431 | m4_define([_LT_CONFIG_STATUS_DECLARATIONS], |
|
|
1432 | [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
|
|
1433 | [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
|
|
1434 | |
|
|
1435 | |
|
|
1436 | # _LT_LIBTOOL_TAGS |
|
|
1437 | # ---------------- |
|
|
1438 | # Output comment and list of tags supported by the script |
|
|
1439 | m4_define([_LT_LIBTOOL_TAGS], |
|
|
1440 | [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl |
|
|
1441 | available_tags="[]_LT_TAGS[]"dnl |
|
|
1442 | ]) |
|
|
1443 | |
|
|
1444 | # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
|
|
1445 | # ----------------------------------- |
|
|
1446 | # Extract the dictionary values for VARNAME (optionally with TAG) and |
|
|
1447 | # expand to a commented shell variable setting: |
|
|
1448 | # |
|
|
1449 | # # Some comment about what VAR is for. |
|
|
1450 | # visible_name=$lt_internal_name |
|
|
1451 | m4_define([_LT_LIBTOOL_DECLARE], |
|
|
1452 | [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], |
|
|
1453 | [description])))[]dnl |
|
|
1454 | m4_pushdef([_libtool_name], |
|
|
1455 | m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl |
|
|
1456 | m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), |
|
|
1457 | [0], [_libtool_name=[$]$1], |
|
|
1458 | [1], [_libtool_name=$lt_[]$1], |
|
|
1459 | [2], [_libtool_name=$lt_[]$1], |
|
|
1460 | [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl |
|
|
1461 | m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl |
|
|
1462 | ]) |
|
|
1463 | |
|
|
1464 | # _LT_LIBTOOL_CONFIG_VARS |
|
|
1465 | # ----------------------- |
|
|
1466 | # Produce commented declarations of non-tagged libtool config variables |
|
|
1467 | # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' |
|
|
1468 | # script. Tagged libtool config variables (even for the LIBTOOL CONFIG |
|
|
1469 | # section) are produced by _LT_LIBTOOL_TAG_VARS. |
|
|
1470 | m4_define([_LT_LIBTOOL_CONFIG_VARS], |
|
|
1471 | [m4_foreach([_lt_var], |
|
|
1472 | m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), |
|
|
1473 | [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) |
|
|
1474 | |
|
|
1475 | # _LT_LIBTOOL_TAG_VARS(TAG) |
|
|
1476 | # ------------------------- |
|
|
1477 | m4_define([_LT_LIBTOOL_TAG_VARS], |
|
|
1478 | [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), |
|
|
1479 | [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) |
|
|
1480 | |
|
|
1481 | |
|
|
1482 | # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) |
|
|
1483 | # --------------------------------- |
|
|
1484 | m4_define([_LT_AC_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) |
|
|
1485 | |
|
|
1486 | |
|
|
1487 | # _LT_CONFIG_COMMANDS |
|
|
1488 | # ------------------- |
|
|
1489 | # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of |
|
|
1490 | # variables for single and double quote escaping we saved from calls |
|
|
1491 | # to _LT_DECL, we can put quote escaped variables declarations |
|
|
1492 | # into `config.status', and then the shell code to quote escape them in |
|
|
1493 | # for loops in `config.status'. Finally, any additional code accumulated |
|
|
1494 | # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. |
|
|
1495 | m4_define([_LT_CONFIG_COMMANDS], |
|
|
1496 | [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [ |
|
|
1497 | |
|
|
1498 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
1499 | # if CDPATH is set. |
|
|
1500 | if test "X${CDPATH+set}" = Xset; then CDPATH=${ZSH_VERSION+.}:; export CDPATH; fi |
|
|
1501 | |
|
|
1502 | sed_quote_subst='$sed_quote_subst' |
|
|
1503 | double_quote_subst='$double_quote_subst' |
|
|
1504 | delay_variable_subst='$delay_variable_subst' |
|
|
1505 | _LT_CONFIG_STATUS_DECLARATIONS |
|
|
1506 | LTCC='$LTCC' |
|
|
1507 | compiler='$compiler_DEFAULT' |
|
|
1508 | |
|
|
1509 | # Quote evaled strings. |
|
|
1510 | for var in lt_decl_all_varnames([[ ]], lt_decl_quote_varnames); do |
|
|
1511 | eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
|
|
1512 | done |
|
|
1513 | |
|
|
1514 | # Double-quote double-evaled strings. |
|
|
1515 | for var in lt_decl_all_varnames([[ ]], lt_decl_dquote_varnames); do |
|
|
1516 | eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
|
|
1517 | done |
|
|
1518 | |
|
|
1519 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
|
|
1520 | case \$lt_echo in |
|
|
1521 | *'\\\[$]0 --fallback-echo"')dnl " |
|
|
1522 | lt_echo=\`\$echo "X\$lt_echo" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` |
|
|
1523 | ;; |
|
|
1524 | esac |
|
|
1525 | |
|
|
1526 | _LT_OUTPUT_LIBTOOL_INIT |
|
|
1527 | ]) |
|
|
1528 | ])#_LT_CONFIG_COMMANDS |
|
|
1529 | |
|
|
1530 | |
|
|
1531 | # _LT_CONFIG(TAG) |
|
|
1532 | # ---------------------------- |
|
|
1533 | # If TAG is the built-in tag, create an initial libtool script with a |
|
|
1534 | # default configuration from the untagged config vars. Otherwise add code |
|
|
1535 | # to config.status for appending the configuration named by TAG from the |
|
|
1536 | # matching tagged config vars. |
|
|
1537 | m4_define([_LT_CONFIG], |
|
|
1538 | [_LT_CONFIG_SAVE_COMMANDS([ |
|
|
1539 | m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl |
|
|
1540 | m4_if(_LT_TAG, [C], [ |
|
|
1541 | # See if we are running on zsh, and set the options which allow our |
|
|
1542 | # commands through without removal of \ escapes. |
|
|
1543 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
1544 | setopt NO_GLOB_SUBST |
|
|
1545 | fi |
|
|
1546 | |
|
|
1547 | cfgfile="${ofile}T" |
|
|
1548 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
|
|
1549 | $rm -f "$cfgfile" |
|
|
1550 | |
|
|
1551 | cat <<_LT_EOF >> "$cfgfile" |
|
|
1552 | #! $SHELL |
|
|
1553 | |
|
|
1554 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
|
1555 | # Generated automatically by config.status (GNU $PACKAGE$TIMESTAMP) $VERSION |
|
|
1556 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
1557 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
1558 | # |
|
|
1559 | _LT_COPYING |
|
|
1560 | |
|
|
1561 | _LT_LIBTOOL_TAGS |
|
|
1562 | |
|
|
1563 | # ### BEGIN LIBTOOL CONFIG |
|
|
1564 | _LT_LIBTOOL_CONFIG_VARS |
|
|
1565 | _LT_LIBTOOL_TAG_VARS |
|
|
1566 | # ### END LIBTOOL CONFIG |
|
|
1567 | |
|
|
1568 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
1569 | # if CDPATH is set. |
|
|
1570 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
1571 | |
|
|
1572 | _LT_EOF |
|
|
1573 | |
|
|
1574 | case $host_os in |
|
|
1575 | aix3*) |
|
|
1576 | cat <<\_LT_EOF >> "$cfgfile" |
|
|
1577 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
1578 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
1579 | # vanish in a puff of smoke. |
|
|
1580 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
1581 | COLLECT_NAMES= |
|
|
1582 | export COLLECT_NAMES |
|
|
1583 | fi |
|
|
1584 | _LT_EOF |
|
|
1585 | ;; |
|
|
1586 | esac |
|
|
1587 | |
|
|
1588 | _LT_PROG_LTMAIN |
|
|
1589 | |
|
|
1590 | # We use sed instead of cat because bash on DJGPP gets confused if |
|
|
1591 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
1592 | # text mode, it properly converts lines to CR/LF. This bash problem |
|
|
1593 | # is reportedly fixed, but why not run on old versions too? |
|
|
1594 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
|
|
1595 | |
|
|
1596 | mv -f "$cfgfile" "$ofile" || |
|
|
1597 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
|
1598 | chmod +x "$ofile" |
|
|
1599 | ], |
|
|
1600 | [cat <<_LT_EOF >> "$ofile" |
|
|
1601 | |
|
|
1602 | dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
|
|
1603 | dnl in a comment (ie after a #). |
|
|
1604 | # ### BEGIN LIBTOOL TAG CONFIG: $1 |
|
|
1605 | _LT_LIBTOOL_TAG_VARS(_LT_TAG) |
|
|
1606 | # ### END LIBTOOL TAG CONFIG: $1 |
|
|
1607 | _LT_EOF |
|
|
1608 | ])dnl /m4_if |
|
|
1609 | ], |
|
|
1610 | [m4_if([$1], [], [ |
|
|
1611 | PACKAGE='$PACKAGE' |
|
|
1612 | VERSION='$VERSION' |
|
|
1613 | TIMESTAMP='$TIMESTAMP' |
|
|
1614 | rm='$rm' |
|
|
1615 | ofile='$ofile'], []) |
|
|
1616 | ])dnl /_LT_CONFIG_SAVE_COMMANDS |
|
|
1617 | ])# _LT_CONFIG |
|
|
1618 | |
|
|
1619 | |
|
|
1620 | # C support is built-in for now |
|
|
1621 | m4_define([_LT_LANG_C_enabled], []) |
|
|
1622 | m4_define([_LT_TAGS], []) |
|
|
1623 | |
|
|
1624 | # LT_LANG(LANG) |
|
|
1625 | # ------------- |
|
|
1626 | # Enable libtool support for the given language if not already enabled. |
|
|
1627 | AC_DEFUN([LT_LANG], |
|
|
1628 | [m4_case([$1], |
|
|
1629 | [C], [_LT_LANG(C)], |
|
|
1630 | [C++], [_LT_LANG(CXX)], |
|
|
1631 | [Java], [_LT_LANG(GCJ)], |
|
|
1632 | [Fortran 77], [_LT_LANG(F77)], |
|
|
1633 | [Windows Resource], [_LT_LANG(RC)], |
|
|
1634 | [m4_ifdef([_LT_LANG_]$1[_CONFIG], |
|
|
1635 | [_LT_LANG($1)], |
|
|
1636 | [m4_fatal([$0: unsupported language: "$1"])])])dnl |
|
|
1637 | ])# LT_LANG |
|
|
1638 | |
|
|
1639 | # _LT_LANG(LANGNAME) |
|
|
1640 | # ------------------ |
|
|
1641 | m4_define([_LT_LANG], |
|
|
1642 | [m4_ifdef([_LT_LANG_]$1[_enabled], [], |
|
|
1643 | [m4_append([_LT_TAGS], [$1 ])dnl |
|
|
1644 | m4_define([_LT_LANG_]$1[_enabled], [])dnl |
|
|
1645 | _LT_LANG_$1_CONFIG($1)])dnl |
|
|
1646 | ])# _LT_LANG |
|
|
1647 | |
|
|
1648 | # _LT_LANG_DEFAULT_CONFIG |
|
|
1649 | # ----------------------- |
|
|
1650 | m4_define([_LT_LANG_DEFAULT_CONFIG], |
|
|
1651 | [AC_PROVIDE_IFELSE([AC_PROG_CXX], |
|
|
1652 | [LT_LANG(CXX)], |
|
|
1653 | [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
|
|
1654 | |
|
|
1655 | AC_PROVIDE_IFELSE([AC_PROG_F77], |
|
|
1656 | [LT_LANG(F77)], |
|
|
1657 | [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) |
|
|
1658 | |
|
|
1659 | dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal |
|
|
1660 | dnl pulling things in needlessly. |
|
|
1661 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
|
|
1662 | [LT_LANG(GCJ)], |
|
|
1663 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
|
|
1664 | [LT_LANG(GCJ)], |
|
|
1665 | [AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
|
|
1666 | [LT_LANG(GCJ)], |
|
|
1667 | [m4_ifdef([AC_PROG_GCJ], |
|
|
1668 | [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
|
|
1669 | m4_ifdef([A][M_PROG_GCJ], |
|
|
1670 | [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
|
|
1671 | m4_ifdef([LT_PROG_GCJ], |
|
|
1672 | [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
|
|
1673 | |
|
|
1674 | AC_PROVIDE_IFELSE([LT_PROG_RC], |
|
|
1675 | [LT_LANG(RC)], |
|
|
1676 | [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
|
|
1677 | ])# _LT_LANG_DEFAULT_CONFIG |
|
|
1678 | |
|
|
1679 | # Obsolete macros |
|
|
1680 | AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
|
|
1681 | AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
|
|
1682 | AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java])]) |
225 | |
1683 | |
226 | |
1684 | |
227 | # _LT_AC_SYS_COMPILER |
1685 | # _LT_AC_SYS_COMPILER |
228 | # ------------------- |
1686 | # ------------------- |
229 | AC_DEFUN([_LT_AC_SYS_COMPILER], |
1687 | AC_DEFUN([_LT_AC_SYS_COMPILER], |
230 | [AC_REQUIRE([AC_PROG_CC])dnl |
1688 | [AC_REQUIRE([AC_PROG_CC])dnl |
|
|
1689 | |
|
|
1690 | _LT_DECL([LTCC], [CC], [1], [A C compiler]) |
|
|
1691 | _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
|
|
1692 | _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU C compiler?]) |
231 | |
1693 | |
232 | # If no C compiler was specified, use CC. |
1694 | # If no C compiler was specified, use CC. |
233 | LTCC=${LTCC-"$CC"} |
1695 | LTCC=${LTCC-"$CC"} |
234 | |
1696 | |
235 | # Allow CC to be a program name with arguments. |
1697 | # Allow CC to be a program name with arguments. |
… | |
… | |
243 | # for the system default hardcoded library path. In most cases, |
1705 | # for the system default hardcoded library path. In most cases, |
244 | # this is /usr/lib:/lib, but when the MPI compilers are used |
1706 | # this is /usr/lib:/lib, but when the MPI compilers are used |
245 | # the location of the communication and MPI libs are included too. |
1707 | # the location of the communication and MPI libs are included too. |
246 | # If we don't find anything, use the default library path according |
1708 | # If we don't find anything, use the default library path according |
247 | # to the aix ld manual. |
1709 | # to the aix ld manual. |
248 | AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], |
1710 | m4_define([_LT_AC_SYS_LIBPATH_AIX], |
249 | [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
1711 | [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
250 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
1712 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
251 | }'` |
1713 | }'` |
252 | # Check for a 64-bit object if we didn't find anything. |
1714 | # Check for a 64-bit object if we didn't find anything. |
253 | 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; } |
1715 | 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; } |
… | |
… | |
256 | ])# _LT_AC_SYS_LIBPATH_AIX |
1718 | ])# _LT_AC_SYS_LIBPATH_AIX |
257 | |
1719 | |
258 | |
1720 | |
259 | # _LT_AC_SHELL_INIT(ARG) |
1721 | # _LT_AC_SHELL_INIT(ARG) |
260 | # ---------------------- |
1722 | # ---------------------- |
261 | AC_DEFUN([_LT_AC_SHELL_INIT], |
1723 | m4_define([_LT_AC_SHELL_INIT], |
262 | [ifdef([AC_DIVERSION_NOTICE], |
1724 | [ifdef([AC_DIVERSION_NOTICE], |
263 | [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
1725 | [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
264 | [AC_DIVERT_PUSH(NOTICE)]) |
1726 | [AC_DIVERT_PUSH(NOTICE)]) |
265 | $1 |
1727 | $1 |
266 | AC_DIVERT_POP |
1728 | AC_DIVERT_POP |
… | |
… | |
269 | |
1731 | |
270 | # _LT_AC_PROG_ECHO_BACKSLASH |
1732 | # _LT_AC_PROG_ECHO_BACKSLASH |
271 | # -------------------------- |
1733 | # -------------------------- |
272 | # Add some code to the start of the generated configure script which |
1734 | # Add some code to the start of the generated configure script which |
273 | # will find an echo command which doesn't interpret backslashes. |
1735 | # will find an echo command which doesn't interpret backslashes. |
274 | AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
1736 | m4_define([_LT_AC_PROG_ECHO_BACKSLASH], |
275 | [_LT_AC_SHELL_INIT([ |
1737 | [_LT_AC_SHELL_INIT([ |
276 | # Check that we are running under the correct shell. |
1738 | # Check that we are running under the correct shell. |
277 | SHELL=${CONFIG_SHELL-/bin/sh} |
1739 | SHELL=${CONFIG_SHELL-/bin/sh} |
278 | |
1740 | |
279 | case X$ECHO in |
1741 | case X$ECHO in |
… | |
… | |
299 | fi |
1761 | fi |
300 | |
1762 | |
301 | if test "X[$]1" = X--fallback-echo; then |
1763 | if test "X[$]1" = X--fallback-echo; then |
302 | # used as fallback echo |
1764 | # used as fallback echo |
303 | shift |
1765 | shift |
304 | cat <<EOF |
1766 | cat <<_LT_EOF |
305 | [$]* |
1767 | [$]* |
306 | EOF |
1768 | _LT_EOF |
307 | exit 0 |
1769 | exit 0 |
308 | fi |
1770 | fi |
309 | |
1771 | |
310 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
1772 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
311 | # if CDPATH is set. |
1773 | # if CDPATH is set. |
… | |
… | |
418 | if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
1880 | if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
419 | ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
1881 | ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
420 | fi |
1882 | fi |
421 | |
1883 | |
422 | AC_SUBST(ECHO) |
1884 | AC_SUBST(ECHO) |
|
|
1885 | ]) |
|
|
1886 | _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
|
|
1887 | _LT_DECL([], [echo], [1], |
|
|
1888 | [An echo program that does not interpret backslashes]) |
423 | ])])# _LT_AC_PROG_ECHO_BACKSLASH |
1889 | ])# _LT_AC_PROG_ECHO_BACKSLASH |
424 | |
1890 | |
425 | |
1891 | |
426 | # _LT_AC_LOCK |
1892 | # _LT_AC_LOCK |
427 | # ----------- |
1893 | # ----------- |
428 | AC_DEFUN([_LT_AC_LOCK], |
1894 | AC_DEFUN([_LT_AC_LOCK], |
|
|
1895 | [AC_REQUIRE([AC_OBJEXT])dnl |
429 | [AC_ARG_ENABLE([libtool-lock], |
1896 | AC_ARG_ENABLE([libtool-lock], |
430 | [AC_HELP_STRING([--disable-libtool-lock], |
1897 | [AC_HELP_STRING([--disable-libtool-lock], |
431 | [avoid locking (might break parallel builds)])]) |
1898 | [avoid locking (might break parallel builds)])]) |
432 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
1899 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
433 | |
1900 | |
434 | # Some flags need to be propagated to the compiler or linker for good |
1901 | # Some flags need to be propagated to the compiler or linker for good |
… | |
… | |
535 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
2002 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
536 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
2003 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
537 | CFLAGS="$SAVE_CFLAGS" |
2004 | CFLAGS="$SAVE_CFLAGS" |
538 | fi |
2005 | fi |
539 | ;; |
2006 | ;; |
540 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
|
|
541 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
|
|
542 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
|
|
543 | AC_CHECK_TOOL(AS, as, false) |
|
|
544 | AC_CHECK_TOOL(OBJDUMP, objdump, false) |
|
|
545 | ;; |
|
|
546 | ]) |
|
|
547 | esac |
2007 | esac |
548 | |
2008 | |
549 | need_locks="$enable_libtool_lock" |
2009 | need_locks="$enable_libtool_lock" |
550 | |
|
|
551 | ])# _LT_AC_LOCK |
2010 | ])# _LT_AC_LOCK |
|
|
2011 | |
|
|
2012 | |
|
|
2013 | # AC_LIBTOOL_SYS_OLD_ARCHIVE |
|
|
2014 | # -------------------------- |
|
|
2015 | AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE], |
|
|
2016 | [AC_CHECK_TOOL(AR, ar, false) |
|
|
2017 | test -z "$AR" && AR=ar |
|
|
2018 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
2019 | _LT_DECL([], [AR], [1], [The archiver]) |
|
|
2020 | _LT_DECL([], [AR_FLAGS], [1]) |
|
|
2021 | |
|
|
2022 | AC_CHECK_TOOL(STRIP, strip, :) |
|
|
2023 | test -z "$STRIP" && STRIP=: |
|
|
2024 | _LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
|
|
2025 | |
|
|
2026 | AC_CHECK_TOOL(RANLIB, ranlib, :) |
|
|
2027 | test -z "$RANLIB" && RANLIB=: |
|
|
2028 | _LT_DECL([], [RANLIB], [1], |
|
|
2029 | [Commands used to install an old-style archive]) |
|
|
2030 | |
|
|
2031 | # Determine commands to create old-style static archives. |
|
|
2032 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
2033 | old_postinstall_cmds='chmod 644 $oldlib' |
|
|
2034 | old_postuninstall_cmds= |
|
|
2035 | |
|
|
2036 | if test -n "$RANLIB"; then |
|
|
2037 | case $host_os in |
|
|
2038 | openbsd*) |
|
|
2039 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
|
|
2040 | ;; |
|
|
2041 | *) |
|
|
2042 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
2043 | ;; |
|
|
2044 | esac |
|
|
2045 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
2046 | fi |
|
|
2047 | _LT_DECL([], [old_postinstall_cmds], [2]) |
|
|
2048 | _LT_DECL([], [old_postuninstall_cmds], [2]) |
|
|
2049 | _LT_TAGDECL([], [old_archive_cmds], [2], |
|
|
2050 | [Commands used to build an old-style archive]) |
|
|
2051 | ])# AC_LIBTOOL_SYS_OLD_ARCHIVE |
552 | |
2052 | |
553 | |
2053 | |
554 | # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
2054 | # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
555 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
2055 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
556 | # ---------------------------------------------------------------- |
2056 | # ---------------------------------------------------------------- |
557 | # Check whether the given compiler option works |
2057 | # Check whether the given compiler option works |
558 | AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
2058 | AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
|
|
2059 | [AC_REQUIRE([AC_OBJEXT])dnl |
559 | [AC_REQUIRE([LT_AC_PROG_SED]) |
2060 | AC_REQUIRE([LT_AC_PROG_SED])dnl |
560 | AC_CACHE_CHECK([$1], [$2], |
2061 | AC_CACHE_CHECK([$1], [$2], |
561 | [$2=no |
2062 | [$2=no |
562 | ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
2063 | m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
563 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
2064 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
564 | lt_compiler_flag="$3" |
2065 | lt_compiler_flag="$3" |
565 | # Insert the option either (1) after the last *FLAGS variable, or |
2066 | # Insert the option either (1) after the last *FLAGS variable, or |
566 | # (2) before a word containing "conftest.", or (3) at the end. |
2067 | # (2) before a word containing "conftest.", or (3) at the end. |
567 | # Note that $ac_compile itself does not contain backslashes and begins |
2068 | # Note that $ac_compile itself does not contain backslashes and begins |
… | |
… | |
585 | fi |
2086 | fi |
586 | $rm conftest* |
2087 | $rm conftest* |
587 | ]) |
2088 | ]) |
588 | |
2089 | |
589 | if test x"[$]$2" = xyes; then |
2090 | if test x"[$]$2" = xyes; then |
590 | ifelse([$5], , :, [$5]) |
2091 | m4_if([$5], , :, [$5]) |
591 | else |
2092 | else |
592 | ifelse([$6], , :, [$6]) |
2093 | m4_if([$6], , :, [$6]) |
593 | fi |
2094 | fi |
594 | ])# AC_LIBTOOL_COMPILER_OPTION |
2095 | ])# AC_LIBTOOL_COMPILER_OPTION |
595 | |
2096 | |
596 | |
2097 | |
597 | # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
2098 | # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
598 | # [ACTION-SUCCESS], [ACTION-FAILURE]) |
2099 | # [ACTION-SUCCESS], [ACTION-FAILURE]) |
599 | # ------------------------------------------------------------ |
2100 | # ------------------------------------------------------------ |
600 | # Check whether the given compiler option works |
2101 | # Check whether the given compiler option works |
601 | AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
2102 | m4_define([AC_LIBTOOL_LINKER_OPTION], |
602 | [AC_CACHE_CHECK([$1], [$2], |
2103 | [AC_CACHE_CHECK([$1], [$2], |
603 | [$2=no |
2104 | [$2=no |
604 | save_LDFLAGS="$LDFLAGS" |
2105 | save_LDFLAGS="$LDFLAGS" |
605 | LDFLAGS="$LDFLAGS $3" |
2106 | LDFLAGS="$LDFLAGS $3" |
606 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
2107 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
… | |
… | |
617 | $rm conftest* |
2118 | $rm conftest* |
618 | LDFLAGS="$save_LDFLAGS" |
2119 | LDFLAGS="$save_LDFLAGS" |
619 | ]) |
2120 | ]) |
620 | |
2121 | |
621 | if test x"[$]$2" = xyes; then |
2122 | if test x"[$]$2" = xyes; then |
622 | ifelse([$4], , :, [$4]) |
2123 | m4_if([$4], , :, [$4]) |
623 | else |
2124 | else |
624 | ifelse([$5], , :, [$5]) |
2125 | m4_if([$5], , :, [$5]) |
625 | fi |
2126 | fi |
626 | ])# AC_LIBTOOL_LINKER_OPTION |
2127 | ])# AC_LIBTOOL_LINKER_OPTION |
627 | |
2128 | |
628 | |
2129 | |
629 | # AC_LIBTOOL_SYS_MAX_CMD_LEN |
2130 | # AC_LIBTOOL_SYS_MAX_CMD_LEN |
630 | # -------------------------- |
2131 | # -------------------------- |
631 | AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
2132 | AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
|
|
2133 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
632 | [# find the maximum length of command line arguments |
2134 | # find the maximum length of command line arguments |
633 | AC_MSG_CHECKING([the maximum length of command line arguments]) |
2135 | AC_MSG_CHECKING([the maximum length of command line arguments]) |
634 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
2136 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
635 | i=0 |
2137 | i=0 |
636 | teststring="ABCD" |
2138 | teststring="ABCD" |
637 | |
2139 | |
… | |
… | |
667 | # So we just punt and use a minimum line length of 8192. |
2169 | # So we just punt and use a minimum line length of 8192. |
668 | lt_cv_sys_max_cmd_len=8192; |
2170 | lt_cv_sys_max_cmd_len=8192; |
669 | ;; |
2171 | ;; |
670 | |
2172 | |
671 | *) |
2173 | *) |
|
|
2174 | # Make teststring a little bigger before we do anything with it. |
|
|
2175 | # a 1K string should be a reasonable start. |
|
|
2176 | for i in 1 2 3 4 5 6 7 8 ; do |
|
|
2177 | teststring=$teststring$teststring |
|
|
2178 | done |
672 | # If test is not a shell built-in, we'll probably end up computing a |
2179 | # If test is not a shell built-in, we'll probably end up computing a |
673 | # maximum length that is only half of the actual maximum length, but |
2180 | # maximum length that is only half of the actual maximum length, but |
674 | # we can't tell. |
2181 | # we can't tell. |
675 | while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
2182 | while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
676 | = "XX$teststring") >/dev/null 2>&1 && |
2183 | = "XX$teststring$teststring") >/dev/null 2>&1 && |
677 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
|
|
678 | lt_cv_sys_max_cmd_len=$new_result && |
|
|
679 | test $i != 17 # 1/2 MB should be enough |
2184 | test $i != 17 # 1/2 MB should be enough |
680 | do |
2185 | do |
681 | i=`expr $i + 1` |
2186 | i=`expr $i + 1` |
682 | teststring=$teststring$teststring |
2187 | teststring=$teststring$teststring |
683 | done |
2188 | done |
|
|
2189 | # Only check the string length outside the loop. |
|
|
2190 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
684 | teststring= |
2191 | teststring= |
685 | # Add a significant safety factor because C++ compilers can tack on massive |
2192 | # Add a significant safety factor because C++ compilers can tack on massive |
686 | # amounts of additional arguments before passing them to the linker. |
2193 | # amounts of additional arguments before passing them to the linker. |
687 | # It appears as though 1/2 is a usable value. |
2194 | # It appears as though 1/2 is a usable value. |
688 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
2195 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
… | |
… | |
692 | if test -n $lt_cv_sys_max_cmd_len ; then |
2199 | if test -n $lt_cv_sys_max_cmd_len ; then |
693 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
2200 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
694 | else |
2201 | else |
695 | AC_MSG_RESULT(none) |
2202 | AC_MSG_RESULT(none) |
696 | fi |
2203 | fi |
|
|
2204 | _LT_DECL([max_cmd_len], [lt_cv_sys_max_cmd_len], [0], |
|
|
2205 | [What is the maximum length of a command?]) |
697 | ])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
2206 | ])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
698 | |
2207 | |
699 | |
2208 | |
700 | # _LT_AC_CHECK_DLFCN |
2209 | # _LT_AC_CHECK_DLFCN |
701 | # -------------------- |
2210 | # -------------------- |
702 | AC_DEFUN([_LT_AC_CHECK_DLFCN], |
2211 | AC_DEFUN([_LT_AC_CHECK_DLFCN], |
703 | [AC_CHECK_HEADERS(dlfcn.h)dnl |
2212 | [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl |
704 | ])# _LT_AC_CHECK_DLFCN |
2213 | ])# _LT_AC_CHECK_DLFCN |
705 | |
2214 | |
706 | |
2215 | |
707 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
2216 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
708 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
2217 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
… | |
… | |
712 | if test "$cross_compiling" = yes; then : |
2221 | if test "$cross_compiling" = yes; then : |
713 | [$4] |
2222 | [$4] |
714 | else |
2223 | else |
715 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
2224 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
716 | lt_status=$lt_dlunknown |
2225 | lt_status=$lt_dlunknown |
717 | cat > conftest.$ac_ext <<EOF |
2226 | cat > conftest.$ac_ext <<_LT_EOF |
718 | [#line __oline__ "configure" |
2227 | [#line __oline__ "configure" |
719 | #include "confdefs.h" |
2228 | #include "confdefs.h" |
720 | |
2229 | |
721 | #if HAVE_DLFCN_H |
2230 | #if HAVE_DLFCN_H |
722 | #include <dlfcn.h> |
2231 | #include <dlfcn.h> |
… | |
… | |
773 | /* dlclose (self); */ |
2282 | /* dlclose (self); */ |
774 | } |
2283 | } |
775 | |
2284 | |
776 | exit (status); |
2285 | exit (status); |
777 | }] |
2286 | }] |
778 | EOF |
2287 | _LT_EOF |
779 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
2288 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
780 | (./conftest; exit; ) 2>/dev/null |
2289 | (./conftest; exit; ) 2>/dev/null |
781 | lt_status=$? |
2290 | lt_status=$? |
782 | case x$lt_status in |
2291 | case x$lt_status in |
783 | x$lt_dlno_uscore) $1 ;; |
2292 | x$lt_dlno_uscore) $1 ;; |
… | |
… | |
901 | case $lt_cv_dlopen_self_static in |
2410 | case $lt_cv_dlopen_self_static in |
902 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
2411 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
903 | *) enable_dlopen_self_static=unknown ;; |
2412 | *) enable_dlopen_self_static=unknown ;; |
904 | esac |
2413 | esac |
905 | fi |
2414 | fi |
|
|
2415 | _LT_DECL([dlopen_support], [enable_dlopen], [0], |
|
|
2416 | [Whether dlopen is supported]) |
|
|
2417 | _LT_DECL([dlopen_self], [enable_dlopen_self], [0], |
|
|
2418 | [Whether dlopen of programs is supported]) |
|
|
2419 | _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], |
|
|
2420 | [Whether dlopen of statically linked programs is supported]) |
906 | ])# AC_LIBTOOL_DLOPEN_SELF |
2421 | ])# AC_LIBTOOL_DLOPEN_SELF |
907 | |
2422 | |
908 | |
2423 | |
909 | # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
2424 | # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
910 | # --------------------------------- |
2425 | # --------------------------------- |
911 | # Check to see if options -c and -o are simultaneously supported by compiler |
2426 | # Check to see if options -c and -o are simultaneously supported by compiler |
912 | AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
2427 | AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
913 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
2428 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
|
|
2429 | AC_REQUIRE([AC_OBJEXT])dnl |
914 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
2430 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
915 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
2431 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
916 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
2432 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
917 | $rm -r conftest 2>/dev/null |
2433 | $rm -r conftest 2>/dev/null |
918 | mkdir conftest |
2434 | mkdir conftest |
… | |
… | |
950 | $rm out/* && rmdir out |
2466 | $rm out/* && rmdir out |
951 | cd .. |
2467 | cd .. |
952 | rmdir conftest |
2468 | rmdir conftest |
953 | $rm conftest* |
2469 | $rm conftest* |
954 | ]) |
2470 | ]) |
|
|
2471 | _LT_DECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], |
|
|
2472 | [Does compiler simultaneously support -c and -o options?]) |
955 | ])# AC_LIBTOOL_PROG_CC_C_O |
2473 | ])# AC_LIBTOOL_PROG_CC_C_O |
956 | |
2474 | |
957 | |
2475 | |
958 | # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) |
2476 | # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) |
959 | # ----------------------------------------- |
2477 | # ----------------------------------------- |
960 | # Check to see if we can do hard links to lock some files if needed |
2478 | # Check to see if we can do hard links to lock some files if needed |
961 | AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], |
2479 | AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], |
|
|
2480 | [AC_REQUIRE([AC_LIBTOOL_PROG_CC_C_O])dnl |
962 | [AC_REQUIRE([_LT_AC_LOCK])dnl |
2481 | AC_REQUIRE([_LT_AC_LOCK])dnl |
963 | |
2482 | |
964 | hard_links="nottested" |
2483 | hard_links="nottested" |
965 | if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
2484 | if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
966 | # do not overwrite the value of need_locks provided by the user |
2485 | # do not overwrite the value of need_locks provided by the user |
967 | AC_MSG_CHECKING([if we can lock with hard links]) |
2486 | AC_MSG_CHECKING([if we can lock with hard links]) |
… | |
… | |
977 | need_locks=warn |
2496 | need_locks=warn |
978 | fi |
2497 | fi |
979 | else |
2498 | else |
980 | need_locks=no |
2499 | need_locks=no |
981 | fi |
2500 | fi |
|
|
2501 | _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) |
982 | ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
2502 | ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
983 | |
2503 | |
984 | |
2504 | |
985 | # AC_LIBTOOL_OBJDIR |
2505 | # AC_LIBTOOL_OBJDIR |
986 | # ----------------- |
2506 | # ----------------- |
… | |
… | |
994 | # MS-DOS does not allow filenames that begin with a dot. |
2514 | # MS-DOS does not allow filenames that begin with a dot. |
995 | lt_cv_objdir=_libs |
2515 | lt_cv_objdir=_libs |
996 | fi |
2516 | fi |
997 | rmdir .libs 2>/dev/null]) |
2517 | rmdir .libs 2>/dev/null]) |
998 | objdir=$lt_cv_objdir |
2518 | objdir=$lt_cv_objdir |
|
|
2519 | _LT_DECL([], [objdir], [0], |
|
|
2520 | [The name of the directory that contains temporary libtool files])dnl |
999 | ])# AC_LIBTOOL_OBJDIR |
2521 | ])# AC_LIBTOOL_OBJDIR |
1000 | |
2522 | |
1001 | |
2523 | |
1002 | # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
2524 | # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
1003 | # ---------------------------------------------- |
2525 | # ---------------------------------------------- |
1004 | # Check hardcoding attributes. |
2526 | # Check hardcoding attributes. |
1005 | AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
2527 | AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
1006 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
2528 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
1007 | _LT_AC_TAGVAR(hardcode_action, $1)= |
2529 | _LT_AC_TAGVAR(hardcode_action, $1)= |
1008 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
2530 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || |
1009 | test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ |
2531 | test -n "$_LT_AC_TAGVAR(runpath_var $1)" || |
1010 | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then |
2532 | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then |
1011 | |
2533 | |
1012 | # We can hardcode non-existant directories. |
2534 | # We can hardcode non-existant directories. |
1013 | if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
2535 | if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
1014 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
2536 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
… | |
… | |
1027 | # directories. |
2549 | # directories. |
1028 | _LT_AC_TAGVAR(hardcode_action, $1)=unsupported |
2550 | _LT_AC_TAGVAR(hardcode_action, $1)=unsupported |
1029 | fi |
2551 | fi |
1030 | AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) |
2552 | AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) |
1031 | |
2553 | |
1032 | if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then |
2554 | if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink || |
|
|
2555 | test "$_LT_AC_TAGVAR(inherit_rpath, $1)" = yes; then |
1033 | # Fast installation is not supported |
2556 | # Fast installation is not supported |
1034 | enable_fast_install=no |
2557 | enable_fast_install=no |
1035 | elif test "$shlibpath_overrides_runpath" = yes || |
2558 | elif test "$shlibpath_overrides_runpath" = yes || |
1036 | test "$enable_shared" = no; then |
2559 | test "$enable_shared" = no; then |
1037 | # Fast installation is not necessary |
2560 | # Fast installation is not necessary |
1038 | enable_fast_install=needless |
2561 | enable_fast_install=needless |
1039 | fi |
2562 | fi |
|
|
2563 | _LT_TAGDECL([], [hardcode_action], [0], |
|
|
2564 | [How to hardcode a shared library path into an executable]) |
1040 | ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
2565 | ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
1041 | |
2566 | |
1042 | |
2567 | |
1043 | # AC_LIBTOOL_SYS_LIB_STRIP |
2568 | # AC_LIBTOOL_SYS_LIB_STRIP |
1044 | # ------------------------ |
2569 | # ------------------------ |
1045 | AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], |
2570 | AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], |
|
|
2571 | [AC_REQUIRE([LT_AC_PROG_EGREP]) |
1046 | [striplib= |
2572 | striplib= |
1047 | old_striplib= |
2573 | old_striplib= |
1048 | AC_MSG_CHECKING([whether stripping libraries is possible]) |
2574 | AC_MSG_CHECKING([whether stripping libraries is possible]) |
1049 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
2575 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
1050 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
2576 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
1051 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
2577 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
1052 | AC_MSG_RESULT([yes]) |
2578 | AC_MSG_RESULT([yes]) |
1053 | else |
2579 | else |
1054 | # FIXME - insert some real tests, host_os isn't really good enough |
2580 | # FIXME - insert some real tests, host_os isn't really good enough |
… | |
… | |
1064 | *) |
2590 | *) |
1065 | AC_MSG_RESULT([no]) |
2591 | AC_MSG_RESULT([no]) |
1066 | ;; |
2592 | ;; |
1067 | esac |
2593 | esac |
1068 | fi |
2594 | fi |
|
|
2595 | _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) |
|
|
2596 | _LT_DECL([], [striplib], [1]) |
1069 | ])# AC_LIBTOOL_SYS_LIB_STRIP |
2597 | ])# AC_LIBTOOL_SYS_LIB_STRIP |
1070 | |
2598 | |
1071 | |
2599 | |
1072 | # AC_LIBTOOL_SYS_DYNAMIC_LINKER |
2600 | # AC_LIBTOOL_SYS_DYNAMIC_LINKER |
1073 | # ----------------------------- |
2601 | # ----------------------------- |
1074 | # PORTME Fill in your ld.so characteristics |
2602 | # PORTME Fill in your ld.so characteristics |
1075 | AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
2603 | AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
|
|
2604 | [AC_REQUIRE([LT_AC_PROG_EGREP]) |
1076 | [AC_MSG_CHECKING([dynamic linker characteristics]) |
2605 | AC_MSG_CHECKING([dynamic linker characteristics]) |
1077 | library_names_spec= |
2606 | library_names_spec= |
1078 | libname_spec='lib$name' |
2607 | libname_spec='lib$name' |
1079 | soname_spec= |
2608 | soname_spec= |
1080 | shrext_cmds=".so" |
2609 | shrext_cmds=".so" |
1081 | postinstall_cmds= |
2610 | postinstall_cmds= |
… | |
… | |
1086 | shlibpath_overrides_runpath=unknown |
2615 | shlibpath_overrides_runpath=unknown |
1087 | version_type=none |
2616 | version_type=none |
1088 | dynamic_linker="$host_os ld.so" |
2617 | dynamic_linker="$host_os ld.so" |
1089 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
2618 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
1090 | if test "$GCC" = yes; then |
2619 | if test "$GCC" = yes; then |
1091 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
2620 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
1092 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
2621 | if echo "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then |
1093 | # if the path contains ";" then we assume it to be the separator |
2622 | # if the path contains ";" then we assume it to be the separator |
1094 | # otherwise default to the standard path separator (i.e. ":") - it is |
2623 | # otherwise default to the standard path separator (i.e. ":") - it is |
1095 | # assumed that no part of a normal pathname contains ";" but that should |
2624 | # assumed that no part of a normal pathname contains ";" but that should |
1096 | # okay in the real world where ";" in dirpaths is itself problematic. |
2625 | # okay in the real world where ";" in dirpaths is itself problematic. |
1097 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
2626 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
… | |
… | |
1135 | # development snapshots of GCC prior to 3.0. |
2664 | # development snapshots of GCC prior to 3.0. |
1136 | case $host_os in |
2665 | case $host_os in |
1137 | aix4 | aix4.[[01]] | aix4.[[01]].*) |
2666 | aix4 | aix4.[[01]] | aix4.[[01]].*) |
1138 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
2667 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
1139 | echo ' yes ' |
2668 | echo ' yes ' |
1140 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
2669 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
1141 | : |
2670 | : |
1142 | else |
2671 | else |
1143 | can_build_shared=no |
2672 | can_build_shared=no |
1144 | fi |
2673 | fi |
1145 | ;; |
2674 | ;; |
… | |
… | |
1161 | shlibpath_var=LIBPATH |
2690 | shlibpath_var=LIBPATH |
1162 | fi |
2691 | fi |
1163 | ;; |
2692 | ;; |
1164 | |
2693 | |
1165 | amigaos*) |
2694 | amigaos*) |
|
|
2695 | if test "$host_cpu" = m68k; then |
1166 | library_names_spec='$libname.ixlibrary $libname.a' |
2696 | library_names_spec='$libname.ixlibrary $libname.a' |
1167 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
2697 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
1168 | 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' |
2698 | 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' |
|
|
2699 | else |
|
|
2700 | dynamic_linker=no |
|
|
2701 | fi |
1169 | ;; |
2702 | ;; |
1170 | |
2703 | |
1171 | beos*) |
2704 | beos*) |
1172 | library_names_spec='${libname}${shared_ext}' |
2705 | library_names_spec='${libname}${shared_ext}' |
1173 | dynamic_linker="$host_os ld.so" |
2706 | dynamic_linker="$host_os ld.so" |
… | |
… | |
1215 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
2748 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
1216 | ;; |
2749 | ;; |
1217 | mingw*) |
2750 | mingw*) |
1218 | # MinGW DLLs use traditional 'lib' prefix |
2751 | # MinGW DLLs use traditional 'lib' prefix |
1219 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2752 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
1220 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
2753 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
1221 | if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then |
2754 | if echo "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
1222 | # It is most probably a Windows format PATH printed by |
2755 | # It is most probably a Windows format PATH printed by |
1223 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
2756 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
1224 | # path with ; separators, and with drive letters. We can handle the |
2757 | # path with ; separators, and with drive letters. We can handle the |
1225 | # drive letters (cygwin fileutils understands them), so leave them, |
2758 | # drive letters (cygwin fileutils understands them), so leave them, |
1226 | # especially as we might pass files found there to a mingw objdump, |
2759 | # especially as we might pass files found there to a mingw objdump, |
… | |
… | |
1256 | shlibpath_overrides_runpath=yes |
2789 | shlibpath_overrides_runpath=yes |
1257 | shlibpath_var=DYLD_LIBRARY_PATH |
2790 | shlibpath_var=DYLD_LIBRARY_PATH |
1258 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
2791 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
1259 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
2792 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
1260 | if test "$GCC" = yes; then |
2793 | if test "$GCC" = yes; then |
1261 | 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"` |
2794 | 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"` |
1262 | else |
2795 | else |
1263 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
2796 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
1264 | fi |
2797 | fi |
1265 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
2798 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
1266 | ;; |
2799 | ;; |
… | |
… | |
1446 | # people can always --disable-shared, the test was removed, and we |
2979 | # people can always --disable-shared, the test was removed, and we |
1447 | # assume the GNU/Linux dynamic linker is in use. |
2980 | # assume the GNU/Linux dynamic linker is in use. |
1448 | dynamic_linker='GNU/Linux ld.so' |
2981 | dynamic_linker='GNU/Linux ld.so' |
1449 | ;; |
2982 | ;; |
1450 | |
2983 | |
1451 | netbsdelf*-gnu) |
|
|
1452 | version_type=linux |
|
|
1453 | need_lib_prefix=no |
|
|
1454 | need_version=no |
|
|
1455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
1456 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
1457 | shlibpath_var=LD_LIBRARY_PATH |
|
|
1458 | shlibpath_overrides_runpath=no |
|
|
1459 | hardcode_into_libs=yes |
|
|
1460 | dynamic_linker='NetBSD ld.elf_so' |
|
|
1461 | ;; |
|
|
1462 | |
|
|
1463 | knetbsd*-gnu) |
2984 | knetbsd*-gnu) |
1464 | version_type=linux |
2985 | version_type=linux |
1465 | need_lib_prefix=no |
2986 | need_lib_prefix=no |
1466 | need_version=no |
2987 | need_version=no |
1467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
… | |
… | |
1474 | |
2995 | |
1475 | netbsd*) |
2996 | netbsd*) |
1476 | version_type=sunos |
2997 | version_type=sunos |
1477 | need_lib_prefix=no |
2998 | need_lib_prefix=no |
1478 | need_version=no |
2999 | need_version=no |
1479 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
3000 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
1480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
3001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
1481 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
3002 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
1482 | dynamic_linker='NetBSD (a.out) ld.so' |
3003 | dynamic_linker='NetBSD (a.out) ld.so' |
1483 | else |
3004 | else |
1484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
3005 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
… | |
… | |
1512 | need_lib_prefix=no |
3033 | need_lib_prefix=no |
1513 | need_version=yes |
3034 | need_version=yes |
1514 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
3035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
1515 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
3036 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
1516 | shlibpath_var=LD_LIBRARY_PATH |
3037 | shlibpath_var=LD_LIBRARY_PATH |
1517 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3038 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
1518 | case $host_os in |
3039 | case $host_os in |
1519 | openbsd2.[[89]] | openbsd2.[[89]].*) |
3040 | openbsd2.[[89]] | openbsd2.[[89]].*) |
1520 | shlibpath_overrides_runpath=no |
3041 | shlibpath_overrides_runpath=no |
1521 | ;; |
3042 | ;; |
1522 | *) |
3043 | *) |
… | |
… | |
1587 | shlibpath_var=LD_LIBRARY_PATH |
3108 | shlibpath_var=LD_LIBRARY_PATH |
1588 | case $host_vendor in |
3109 | case $host_vendor in |
1589 | sni) |
3110 | sni) |
1590 | shlibpath_overrides_runpath=no |
3111 | shlibpath_overrides_runpath=no |
1591 | need_lib_prefix=no |
3112 | need_lib_prefix=no |
1592 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
1593 | runpath_var=LD_RUN_PATH |
3113 | runpath_var=LD_RUN_PATH |
1594 | ;; |
3114 | ;; |
1595 | siemens) |
3115 | siemens) |
1596 | need_lib_prefix=no |
3116 | need_lib_prefix=no |
1597 | ;; |
3117 | ;; |
… | |
… | |
1624 | dynamic_linker=no |
3144 | dynamic_linker=no |
1625 | ;; |
3145 | ;; |
1626 | esac |
3146 | esac |
1627 | AC_MSG_RESULT([$dynamic_linker]) |
3147 | AC_MSG_RESULT([$dynamic_linker]) |
1628 | test "$dynamic_linker" = no && can_build_shared=no |
3148 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
3149 | _LT_DECL([], [need_lib_prefix], [0], |
|
|
3150 | [Do we need the "lib" prefix for modules?]) |
|
|
3151 | _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) |
|
|
3152 | _LT_DECL([], [version_type], [0], [Library versioning type]) |
|
|
3153 | _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) |
|
|
3154 | _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) |
|
|
3155 | _LT_DECL([], [shlibpath_overrides_runpath], [0], |
|
|
3156 | [Is shibpath searched before the hard-coded library search path?]) |
|
|
3157 | _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) |
|
|
3158 | _LT_DECL([], [library_names_spec], [1], |
|
|
3159 | [List of archive names. First name is the real one, the rest are links. |
|
|
3160 | The last name is the one that the linker finds with -lNAME]) |
|
|
3161 | _LT_DECL([], [soname_spec], [1], |
|
|
3162 | [The coded name of the library, if different from the real name]) |
|
|
3163 | _LT_DECL([], [postinstall_cmds], [2], |
|
|
3164 | [Command to use after installation of a shared archive]) |
|
|
3165 | _LT_DECL([], [postuninstall_cmds], [2], |
|
|
3166 | [Command to use after uninstallation of a shared archive]) |
|
|
3167 | _LT_DECL([], [finish_cmds], [2], |
|
|
3168 | [Commands used to finish a libtool library installation in a directory]) |
|
|
3169 | _LT_DECL([], [finish_eval], [1], |
|
|
3170 | [As "finish_cmds", except a single script fragment to be evaled but |
|
|
3171 | not shown]) |
|
|
3172 | _LT_DECL([], [hardcode_into_libs], [0], |
|
|
3173 | [Whether we should hardcode library paths into libraries]) |
|
|
3174 | _LT_DECL([], [sys_lib_search_path_spec], [2], |
|
|
3175 | [Compile-time system search path for libraries]) |
|
|
3176 | _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], |
|
|
3177 | [Run-time system search path for libraries]) |
1629 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
3178 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
1630 | |
|
|
1631 | |
|
|
1632 | # _LT_AC_TAGCONFIG |
|
|
1633 | # ---------------- |
|
|
1634 | AC_DEFUN([_LT_AC_TAGCONFIG], |
|
|
1635 | [AC_ARG_WITH([tags], |
|
|
1636 | [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], |
|
|
1637 | [include additional configurations @<:@automatic@:>@])], |
|
|
1638 | [tagnames="$withval"]) |
|
|
1639 | |
|
|
1640 | if test -f "$ltmain" && test -n "$tagnames"; then |
|
|
1641 | if test ! -f "${ofile}"; then |
|
|
1642 | AC_MSG_WARN([output file `$ofile' does not exist]) |
|
|
1643 | fi |
|
|
1644 | |
|
|
1645 | if test -z "$LTCC"; then |
|
|
1646 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
|
|
1647 | if test -z "$LTCC"; then |
|
|
1648 | AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) |
|
|
1649 | else |
|
|
1650 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
|
|
1651 | fi |
|
|
1652 | fi |
|
|
1653 | |
|
|
1654 | # Extract list of available tagged configurations in $ofile. |
|
|
1655 | # Note that this assumes the entire list is on one line. |
|
|
1656 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
|
|
1657 | |
|
|
1658 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
1659 | for tagname in $tagnames; do |
|
|
1660 | IFS="$lt_save_ifs" |
|
|
1661 | # Check whether tagname contains only valid characters |
|
|
1662 | case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in |
|
|
1663 | "") ;; |
|
|
1664 | *) AC_MSG_ERROR([invalid tag name: $tagname]) |
|
|
1665 | ;; |
|
|
1666 | esac |
|
|
1667 | |
|
|
1668 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
|
|
1669 | then |
|
|
1670 | AC_MSG_ERROR([tag name \"$tagname\" already exists]) |
|
|
1671 | fi |
|
|
1672 | |
|
|
1673 | # Update the list of available tags. |
|
|
1674 | if test -n "$tagname"; then |
|
|
1675 | echo appending configuration tag \"$tagname\" to $ofile |
|
|
1676 | |
|
|
1677 | case $tagname in |
|
|
1678 | CXX) |
|
|
1679 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
|
|
1680 | AC_LIBTOOL_LANG_CXX_CONFIG |
|
|
1681 | else |
|
|
1682 | tagname="" |
|
|
1683 | fi |
|
|
1684 | ;; |
|
|
1685 | |
|
|
1686 | F77) |
|
|
1687 | if test -n "$F77" && test "X$F77" != "Xno"; then |
|
|
1688 | AC_LIBTOOL_LANG_F77_CONFIG |
|
|
1689 | else |
|
|
1690 | tagname="" |
|
|
1691 | fi |
|
|
1692 | ;; |
|
|
1693 | |
|
|
1694 | GCJ) |
|
|
1695 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
|
|
1696 | AC_LIBTOOL_LANG_GCJ_CONFIG |
|
|
1697 | else |
|
|
1698 | tagname="" |
|
|
1699 | fi |
|
|
1700 | ;; |
|
|
1701 | |
|
|
1702 | RC) |
|
|
1703 | AC_LIBTOOL_LANG_RC_CONFIG |
|
|
1704 | ;; |
|
|
1705 | |
|
|
1706 | *) |
|
|
1707 | AC_MSG_ERROR([Unsupported tag name: $tagname]) |
|
|
1708 | ;; |
|
|
1709 | esac |
|
|
1710 | |
|
|
1711 | # Append the new tag name to the list of available tags. |
|
|
1712 | if test -n "$tagname" ; then |
|
|
1713 | available_tags="$available_tags $tagname" |
|
|
1714 | fi |
|
|
1715 | fi |
|
|
1716 | done |
|
|
1717 | IFS="$lt_save_ifs" |
|
|
1718 | |
|
|
1719 | # Now substitute the updated list of available tags. |
|
|
1720 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
|
|
1721 | mv "${ofile}T" "$ofile" |
|
|
1722 | chmod +x "$ofile" |
|
|
1723 | else |
|
|
1724 | rm -f "${ofile}T" |
|
|
1725 | AC_MSG_ERROR([unable to update list of available tagged configurations.]) |
|
|
1726 | fi |
|
|
1727 | fi |
|
|
1728 | ])# _LT_AC_TAGCONFIG |
|
|
1729 | |
|
|
1730 | |
|
|
1731 | # AC_LIBTOOL_DLOPEN |
|
|
1732 | # ----------------- |
|
|
1733 | # enable checks for dlopen support |
|
|
1734 | AC_DEFUN([AC_LIBTOOL_DLOPEN], |
|
|
1735 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) |
|
|
1736 | ])# AC_LIBTOOL_DLOPEN |
|
|
1737 | |
|
|
1738 | |
|
|
1739 | # AC_LIBTOOL_WIN32_DLL |
|
|
1740 | # -------------------- |
|
|
1741 | # declare package support for building win32 dll's |
|
|
1742 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
|
|
1743 | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
|
|
1744 | ])# AC_LIBTOOL_WIN32_DLL |
|
|
1745 | |
|
|
1746 | |
|
|
1747 | # AC_ENABLE_SHARED([DEFAULT]) |
|
|
1748 | # --------------------------- |
|
|
1749 | # implement the --enable-shared flag |
|
|
1750 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
|
|
1751 | AC_DEFUN([AC_ENABLE_SHARED], |
|
|
1752 | [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
|
|
1753 | AC_ARG_ENABLE([shared], |
|
|
1754 | [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
|
|
1755 | [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], |
|
|
1756 | [p=${PACKAGE-default} |
|
|
1757 | case $enableval in |
|
|
1758 | yes) enable_shared=yes ;; |
|
|
1759 | no) enable_shared=no ;; |
|
|
1760 | *) |
|
|
1761 | enable_shared=no |
|
|
1762 | # Look at the argument we got. We use all the common list separators. |
|
|
1763 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
1764 | for pkg in $enableval; do |
|
|
1765 | IFS="$lt_save_ifs" |
|
|
1766 | if test "X$pkg" = "X$p"; then |
|
|
1767 | enable_shared=yes |
|
|
1768 | fi |
|
|
1769 | done |
|
|
1770 | IFS="$lt_save_ifs" |
|
|
1771 | ;; |
|
|
1772 | esac], |
|
|
1773 | [enable_shared=]AC_ENABLE_SHARED_DEFAULT) |
|
|
1774 | ])# AC_ENABLE_SHARED |
|
|
1775 | |
|
|
1776 | |
|
|
1777 | # AC_DISABLE_SHARED |
|
|
1778 | # ----------------- |
|
|
1779 | #- set the default shared flag to --disable-shared |
|
|
1780 | AC_DEFUN([AC_DISABLE_SHARED], |
|
|
1781 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
|
|
1782 | AC_ENABLE_SHARED(no) |
|
|
1783 | ])# AC_DISABLE_SHARED |
|
|
1784 | |
|
|
1785 | |
|
|
1786 | # AC_ENABLE_STATIC([DEFAULT]) |
|
|
1787 | # --------------------------- |
|
|
1788 | # implement the --enable-static flag |
|
|
1789 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
|
|
1790 | AC_DEFUN([AC_ENABLE_STATIC], |
|
|
1791 | [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
|
|
1792 | AC_ARG_ENABLE([static], |
|
|
1793 | [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
|
|
1794 | [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], |
|
|
1795 | [p=${PACKAGE-default} |
|
|
1796 | case $enableval in |
|
|
1797 | yes) enable_static=yes ;; |
|
|
1798 | no) enable_static=no ;; |
|
|
1799 | *) |
|
|
1800 | enable_static=no |
|
|
1801 | # Look at the argument we got. We use all the common list separators. |
|
|
1802 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
1803 | for pkg in $enableval; do |
|
|
1804 | IFS="$lt_save_ifs" |
|
|
1805 | if test "X$pkg" = "X$p"; then |
|
|
1806 | enable_static=yes |
|
|
1807 | fi |
|
|
1808 | done |
|
|
1809 | IFS="$lt_save_ifs" |
|
|
1810 | ;; |
|
|
1811 | esac], |
|
|
1812 | [enable_static=]AC_ENABLE_STATIC_DEFAULT) |
|
|
1813 | ])# AC_ENABLE_STATIC |
|
|
1814 | |
|
|
1815 | |
|
|
1816 | # AC_DISABLE_STATIC |
|
|
1817 | # ----------------- |
|
|
1818 | # set the default static flag to --disable-static |
|
|
1819 | AC_DEFUN([AC_DISABLE_STATIC], |
|
|
1820 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
|
|
1821 | AC_ENABLE_STATIC(no) |
|
|
1822 | ])# AC_DISABLE_STATIC |
|
|
1823 | |
|
|
1824 | |
|
|
1825 | # AC_ENABLE_FAST_INSTALL([DEFAULT]) |
|
|
1826 | # --------------------------------- |
|
|
1827 | # implement the --enable-fast-install flag |
|
|
1828 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
|
|
1829 | AC_DEFUN([AC_ENABLE_FAST_INSTALL], |
|
|
1830 | [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl |
|
|
1831 | AC_ARG_ENABLE([fast-install], |
|
|
1832 | [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], |
|
|
1833 | [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], |
|
|
1834 | [p=${PACKAGE-default} |
|
|
1835 | case $enableval in |
|
|
1836 | yes) enable_fast_install=yes ;; |
|
|
1837 | no) enable_fast_install=no ;; |
|
|
1838 | *) |
|
|
1839 | enable_fast_install=no |
|
|
1840 | # Look at the argument we got. We use all the common list separators. |
|
|
1841 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
1842 | for pkg in $enableval; do |
|
|
1843 | IFS="$lt_save_ifs" |
|
|
1844 | if test "X$pkg" = "X$p"; then |
|
|
1845 | enable_fast_install=yes |
|
|
1846 | fi |
|
|
1847 | done |
|
|
1848 | IFS="$lt_save_ifs" |
|
|
1849 | ;; |
|
|
1850 | esac], |
|
|
1851 | [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) |
|
|
1852 | ])# AC_ENABLE_FAST_INSTALL |
|
|
1853 | |
|
|
1854 | |
|
|
1855 | # AC_DISABLE_FAST_INSTALL |
|
|
1856 | # ----------------------- |
|
|
1857 | # set the default to --disable-fast-install |
|
|
1858 | AC_DEFUN([AC_DISABLE_FAST_INSTALL], |
|
|
1859 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
|
|
1860 | AC_ENABLE_FAST_INSTALL(no) |
|
|
1861 | ])# AC_DISABLE_FAST_INSTALL |
|
|
1862 | |
|
|
1863 | |
|
|
1864 | # AC_LIBTOOL_PICMODE([MODE]) |
|
|
1865 | # -------------------------- |
|
|
1866 | # implement the --with-pic flag |
|
|
1867 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
|
|
1868 | AC_DEFUN([AC_LIBTOOL_PICMODE], |
|
|
1869 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
|
|
1870 | pic_mode=ifelse($#,1,$1,default) |
|
|
1871 | ])# AC_LIBTOOL_PICMODE |
|
|
1872 | |
|
|
1873 | |
|
|
1874 | # AC_PROG_EGREP |
|
|
1875 | # ------------- |
|
|
1876 | # This is predefined starting with Autoconf 2.54, so this conditional |
|
|
1877 | # definition can be removed once we require Autoconf 2.54 or later. |
|
|
1878 | m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], |
|
|
1879 | [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], |
|
|
1880 | [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
|
1881 | then ac_cv_prog_egrep='grep -E' |
|
|
1882 | else ac_cv_prog_egrep='egrep' |
|
|
1883 | fi]) |
|
|
1884 | EGREP=$ac_cv_prog_egrep |
|
|
1885 | AC_SUBST([EGREP]) |
|
|
1886 | ])]) |
|
|
1887 | |
3179 | |
1888 | |
3180 | |
1889 | # AC_PATH_TOOL_PREFIX |
3181 | # AC_PATH_TOOL_PREFIX |
1890 | # ------------------- |
3182 | # ------------------- |
1891 | # find a file program which can recognise shared library |
3183 | # find a file program which can recognise shared library |
1892 | AC_DEFUN([AC_PATH_TOOL_PREFIX], |
3184 | AC_DEFUN([AC_PATH_TOOL_PREFIX], |
1893 | [AC_REQUIRE([AC_PROG_EGREP])dnl |
3185 | [AC_REQUIRE([LT_AC_PROG_EGREP])dnl |
1894 | AC_MSG_CHECKING([for $1]) |
3186 | AC_MSG_CHECKING([for $1]) |
1895 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
3187 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
1896 | [case $MAGIC_CMD in |
3188 | [case $MAGIC_CMD in |
1897 | [[\\/*] | ?:[\\/]*]) |
3189 | [[\\/*] | ?:[\\/]*]) |
1898 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3190 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
… | |
… | |
1901 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
3193 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
1902 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3194 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
1903 | dnl $ac_dummy forces splitting on constant user-supplied paths. |
3195 | dnl $ac_dummy forces splitting on constant user-supplied paths. |
1904 | dnl POSIX.2 word splitting is done only on the output of word expansions, |
3196 | dnl POSIX.2 word splitting is done only on the output of word expansions, |
1905 | dnl not every word. This closes a longstanding sh security hole. |
3197 | dnl not every word. This closes a longstanding sh security hole. |
1906 | ac_dummy="ifelse([$2], , $PATH, [$2])" |
3198 | ac_dummy="m4_if([$2], , $PATH, [$2])" |
1907 | for ac_dir in $ac_dummy; do |
3199 | for ac_dir in $ac_dummy; do |
1908 | IFS="$lt_save_ifs" |
3200 | IFS="$lt_save_ifs" |
1909 | test -z "$ac_dir" && ac_dir=. |
3201 | test -z "$ac_dir" && ac_dir=. |
1910 | if test -f $ac_dir/$1; then |
3202 | if test -f $ac_dir/$1; then |
1911 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
3203 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
… | |
… | |
1916 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3208 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
1917 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3209 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
1918 | $EGREP "$file_magic_regex" > /dev/null; then |
3210 | $EGREP "$file_magic_regex" > /dev/null; then |
1919 | : |
3211 | : |
1920 | else |
3212 | else |
1921 | cat <<EOF 1>&2 |
3213 | cat <<_LT_EOF 1>&2 |
1922 | |
3214 | |
1923 | *** Warning: the command libtool uses to detect shared libraries, |
3215 | *** Warning: the command libtool uses to detect shared libraries, |
1924 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
3216 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
1925 | *** The result is that libtool may fail to recognize shared libraries |
3217 | *** The result is that libtool may fail to recognize shared libraries |
1926 | *** as such. This will affect the creation of libtool libraries that |
3218 | *** as such. This will affect the creation of libtool libraries that |
1927 | *** depend on shared libraries, but programs linked with such libtool |
3219 | *** depend on shared libraries, but programs linked with such libtool |
1928 | *** libraries will work regardless of this problem. Nevertheless, you |
3220 | *** libraries will work regardless of this problem. Nevertheless, you |
1929 | *** may want to report the problem to your system manager and/or to |
3221 | *** may want to report the problem to your system manager and/or to |
1930 | *** bug-libtool@gnu.org |
3222 | *** bug-libtool@gnu.org |
1931 | |
3223 | |
1932 | EOF |
3224 | _LT_EOF |
1933 | fi ;; |
3225 | fi ;; |
1934 | esac |
3226 | esac |
1935 | fi |
3227 | fi |
1936 | break |
3228 | break |
1937 | fi |
3229 | fi |
… | |
… | |
1944 | if test -n "$MAGIC_CMD"; then |
3236 | if test -n "$MAGIC_CMD"; then |
1945 | AC_MSG_RESULT($MAGIC_CMD) |
3237 | AC_MSG_RESULT($MAGIC_CMD) |
1946 | else |
3238 | else |
1947 | AC_MSG_RESULT(no) |
3239 | AC_MSG_RESULT(no) |
1948 | fi |
3240 | fi |
|
|
3241 | _LT_DECL([], [MAGIC_CMD], [0], |
|
|
3242 | [Used to examine libraries when file_magic_cmd begins "file"])dnl |
1949 | ])# AC_PATH_TOOL_PREFIX |
3243 | ])# AC_PATH_TOOL_PREFIX |
1950 | |
3244 | |
1951 | |
3245 | |
1952 | # AC_PATH_MAGIC |
3246 | # AC_PATH_MAGIC |
1953 | # ------------- |
3247 | # ------------- |
… | |
… | |
1972 | [AC_HELP_STRING([--with-gnu-ld], |
3266 | [AC_HELP_STRING([--with-gnu-ld], |
1973 | [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
3267 | [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
1974 | [test "$withval" = no || with_gnu_ld=yes], |
3268 | [test "$withval" = no || with_gnu_ld=yes], |
1975 | [with_gnu_ld=no]) |
3269 | [with_gnu_ld=no]) |
1976 | AC_REQUIRE([LT_AC_PROG_SED])dnl |
3270 | AC_REQUIRE([LT_AC_PROG_SED])dnl |
|
|
3271 | AC_REQUIRE([LT_AC_PROG_EGREP])dnl |
1977 | AC_REQUIRE([AC_PROG_CC])dnl |
3272 | AC_REQUIRE([AC_PROG_CC])dnl |
1978 | AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3273 | AC_REQUIRE([AC_CANONICAL_HOST])dnl |
1979 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
3274 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
|
|
3275 | |
1980 | ac_prog=ld |
3276 | ac_prog=ld |
1981 | if test "$GCC" = yes; then |
3277 | if test "$GCC" = yes; then |
1982 | # Check if gcc -print-prog-name=ld gives a path. |
3278 | # Check if gcc -print-prog-name=ld gives a path. |
1983 | AC_MSG_CHECKING([for ld used by $CC]) |
3279 | AC_MSG_CHECKING([for ld used by $CC]) |
1984 | case $host in |
3280 | case $host in |
… | |
… | |
1992 | # Accept absolute paths. |
3288 | # Accept absolute paths. |
1993 | [[\\/]]* | ?:[[\\/]]*) |
3289 | [[\\/]]* | ?:[[\\/]]*) |
1994 | re_direlt='/[[^/]][[^/]]*/\.\./' |
3290 | re_direlt='/[[^/]][[^/]]*/\.\./' |
1995 | # Canonicalize the pathname of ld |
3291 | # Canonicalize the pathname of ld |
1996 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3292 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
1997 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3293 | while echo $ac_prog | $GREP "$re_direlt" > /dev/null 2>&1; do |
1998 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3294 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
1999 | done |
3295 | done |
2000 | test -z "$LD" && LD="$ac_prog" |
3296 | test -z "$LD" && LD="$ac_prog" |
2001 | ;; |
3297 | ;; |
2002 | "") |
3298 | "") |
… | |
… | |
2044 | else |
3340 | else |
2045 | AC_MSG_RESULT(no) |
3341 | AC_MSG_RESULT(no) |
2046 | fi |
3342 | fi |
2047 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
3343 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
2048 | AC_PROG_LD_GNU |
3344 | AC_PROG_LD_GNU |
|
|
3345 | AC_SUBST([LD]) |
|
|
3346 | |
|
|
3347 | _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) |
2049 | ])# AC_PROG_LD |
3348 | ])# AC_PROG_LD |
|
|
3349 | |
|
|
3350 | # Old name: |
|
|
3351 | AU_DEFUN([AM_PROG_LD], [AC_PROG_LD]) |
2050 | |
3352 | |
2051 | |
3353 | |
2052 | # AC_PROG_LD_GNU |
3354 | # AC_PROG_LD_GNU |
2053 | # -------------- |
3355 | # -------------- |
2054 | AC_DEFUN([AC_PROG_LD_GNU], |
3356 | AC_DEFUN([AC_PROG_LD_GNU], |
2055 | [AC_REQUIRE([AC_PROG_EGREP])dnl |
|
|
2056 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
3357 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
2057 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
3358 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
2058 | case `$LD -v 2>&1 </dev/null` in |
3359 | case `$LD -v 2>&1 </dev/null` in |
2059 | *GNU* | *'with BFD'*) |
3360 | *GNU* | *'with BFD'*) |
2060 | lt_cv_prog_gnu_ld=yes |
3361 | lt_cv_prog_gnu_ld=yes |
2061 | ;; |
3362 | ;; |
… | |
… | |
2079 | case $reload_flag in |
3380 | case $reload_flag in |
2080 | "" | " "*) ;; |
3381 | "" | " "*) ;; |
2081 | *) reload_flag=" $reload_flag" ;; |
3382 | *) reload_flag=" $reload_flag" ;; |
2082 | esac |
3383 | esac |
2083 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3384 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
3385 | case $host_os in |
|
|
3386 | darwin*) |
|
|
3387 | if test "$GCC" = yes; then |
|
|
3388 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
|
|
3389 | else |
|
|
3390 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
3391 | fi |
|
|
3392 | ;; |
|
|
3393 | esac |
|
|
3394 | _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
|
|
3395 | _LT_DECL([], [reload_cmds], [2])dnl |
2084 | ])# AC_PROG_LD_RELOAD_FLAG |
3396 | ])# AC_PROG_LD_RELOAD_FLAG |
2085 | |
3397 | |
2086 | |
3398 | |
2087 | # AC_DEPLIBS_CHECK_METHOD |
3399 | # AC_DEPLIBS_CHECK_METHOD |
2088 | # ----------------------- |
3400 | # ----------------------- |
2089 | # how to check for library dependencies |
3401 | # how to check for library dependencies |
2090 | # -- PORTME fill in with the dynamic library characteristics |
3402 | # -- PORTME fill in with the dynamic library characteristics |
2091 | AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
3403 | AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
|
|
3404 | [AC_REQUIRE([LT_AC_PROG_EGREP]) |
2092 | [AC_CACHE_CHECK([how to recognise dependent libraries], |
3405 | AC_CACHE_CHECK([how to recognise dependent libraries], |
2093 | lt_cv_deplibs_check_method, |
3406 | lt_cv_deplibs_check_method, |
2094 | [lt_cv_file_magic_cmd='$MAGIC_CMD' |
3407 | [lt_cv_file_magic_cmd='$MAGIC_CMD' |
2095 | lt_cv_file_magic_test_file= |
3408 | lt_cv_file_magic_test_file= |
2096 | lt_cv_deplibs_check_method='unknown' |
3409 | lt_cv_deplibs_check_method='unknown' |
2097 | # Need to set the preceding variable on all platforms that support |
3410 | # Need to set the preceding variable on all platforms that support |
… | |
… | |
2124 | # func_win32_libid is a shell function defined in ltmain.sh |
3437 | # func_win32_libid is a shell function defined in ltmain.sh |
2125 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3438 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
2126 | lt_cv_file_magic_cmd='func_win32_libid' |
3439 | lt_cv_file_magic_cmd='func_win32_libid' |
2127 | ;; |
3440 | ;; |
2128 | |
3441 | |
2129 | mingw* | pw32*) |
|
|
2130 | # Base MSYS/MinGW do not provide the 'file' command needed by |
3442 | # Base MSYS/MinGW do not provide the 'file' command needed by |
2131 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
3443 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
|
|
3444 | mingw* | pw32*) |
2132 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3445 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
2133 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3446 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
2134 | ;; |
3447 | ;; |
2135 | |
3448 | |
2136 | darwin* | rhapsody*) |
3449 | darwin* | rhapsody*) |
2137 | lt_cv_deplibs_check_method=pass_all |
3450 | lt_cv_deplibs_check_method=pass_all |
2138 | ;; |
3451 | ;; |
2139 | |
3452 | |
2140 | freebsd* | kfreebsd*-gnu) |
3453 | freebsd* | kfreebsd*-gnu) |
2141 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3454 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
2142 | case $host_cpu in |
3455 | case $host_cpu in |
2143 | i*86 ) |
3456 | i*86 ) |
2144 | # Not sure whether the presence of OpenBSD here was a mistake. |
3457 | # Not sure whether the presence of OpenBSD here was a mistake. |
2145 | # Let's accept both of them until this is cleared up. |
3458 | # Let's accept both of them until this is cleared up. |
2146 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' |
3459 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' |
… | |
… | |
2185 | lt_cv_deplibs_check_method=pass_all |
3498 | lt_cv_deplibs_check_method=pass_all |
2186 | ;; |
3499 | ;; |
2187 | |
3500 | |
2188 | # This must be Linux ELF. |
3501 | # This must be Linux ELF. |
2189 | linux*) |
3502 | linux*) |
|
|
3503 | case $host_cpu in |
|
|
3504 | alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*) |
|
|
3505 | lt_cv_deplibs_check_method=pass_all ;; |
|
|
3506 | *) |
|
|
3507 | # glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
3508 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
3509 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; |
|
|
3510 | esac |
|
|
3511 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
2190 | lt_cv_deplibs_check_method=pass_all |
3512 | lt_cv_deplibs_check_method=pass_all |
2191 | ;; |
3513 | ;; |
2192 | |
3514 | |
2193 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
3515 | netbsd* | knetbsd*-gnu) |
2194 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3516 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
2195 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3517 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
2196 | else |
3518 | else |
2197 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
3519 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
2198 | fi |
3520 | fi |
2199 | ;; |
3521 | ;; |
… | |
… | |
2209 | ;; |
3531 | ;; |
2210 | |
3532 | |
2211 | openbsd*) |
3533 | openbsd*) |
2212 | lt_cv_file_magic_cmd=/usr/bin/file |
3534 | lt_cv_file_magic_cmd=/usr/bin/file |
2213 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3535 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
2214 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3536 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
2215 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
3537 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
2216 | else |
3538 | else |
2217 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
3539 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
2218 | fi |
3540 | fi |
2219 | ;; |
3541 | ;; |
… | |
… | |
2260 | esac |
3582 | esac |
2261 | ]) |
3583 | ]) |
2262 | file_magic_cmd=$lt_cv_file_magic_cmd |
3584 | file_magic_cmd=$lt_cv_file_magic_cmd |
2263 | deplibs_check_method=$lt_cv_deplibs_check_method |
3585 | deplibs_check_method=$lt_cv_deplibs_check_method |
2264 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3586 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
|
3587 | |
|
|
3588 | _LT_DECL([], [deplibs_check_method], [1], |
|
|
3589 | [Method to check whether dependent libraries are shared objects]) |
|
|
3590 | _LT_DECL([], [file_magic_cmd], [1], |
|
|
3591 | [Command to use when deplibs_check_method == "file_magic"]) |
2265 | ])# AC_DEPLIBS_CHECK_METHOD |
3592 | ])# AC_DEPLIBS_CHECK_METHOD |
2266 | |
3593 | |
2267 | |
3594 | |
2268 | # AC_PROG_NM |
3595 | # AC_PROG_NM |
2269 | # ---------- |
3596 | # ---------- |
… | |
… | |
2305 | done |
3632 | done |
2306 | IFS="$lt_save_ifs" |
3633 | IFS="$lt_save_ifs" |
2307 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
3634 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
2308 | fi]) |
3635 | fi]) |
2309 | NM="$lt_cv_path_NM" |
3636 | NM="$lt_cv_path_NM" |
|
|
3637 | test -z "$NM" && NM=nm |
|
|
3638 | AC_SUBST([NM]) |
|
|
3639 | _LT_DECL([], [NM], [1], [A BSD-compatible nm program])dnl |
2310 | ])# AC_PROG_NM |
3640 | ])# AC_PROG_NM |
|
|
3641 | |
|
|
3642 | # Old name: |
|
|
3643 | AU_DEFUN([AM_PROG_NM], [AC_PROG_NM]) |
2311 | |
3644 | |
2312 | |
3645 | |
2313 | # AC_CHECK_LIBM |
3646 | # AC_CHECK_LIBM |
2314 | # ------------- |
3647 | # ------------- |
2315 | # check for math library |
3648 | # check for math library |
… | |
… | |
2341 | # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with |
3674 | # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with |
2342 | # '${top_srcdir}/' (note the single quotes!). If your package is not |
3675 | # '${top_srcdir}/' (note the single quotes!). If your package is not |
2343 | # flat and you're not using automake, define top_builddir and |
3676 | # flat and you're not using automake, define top_builddir and |
2344 | # top_srcdir appropriately in the Makefiles. |
3677 | # top_srcdir appropriately in the Makefiles. |
2345 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
3678 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
2346 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
|
|
2347 | case $enable_ltdl_convenience in |
3679 | [case $enable_ltdl_convenience in |
2348 | no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
3680 | no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
2349 | "") enable_ltdl_convenience=yes |
3681 | "") enable_ltdl_convenience=yes |
2350 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
3682 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
2351 | esac |
3683 | esac |
2352 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
3684 | LIBLTDL='${top_builddir}/'m4_if($#, 1,[$1], ['libltdl'])/libltdlc.la |
2353 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
3685 | LTDLINCL='-I${top_srcdir}/'m4_if($#, 1, [$1], ['libltdl']) |
2354 | # For backwards non-gettext consistent compatibility... |
3686 | # For backwards non-gettext consistent compatibility... |
2355 | INCLTDL="$LTDLINCL" |
3687 | INCLTDL="$LTDLINCL" |
2356 | ])# AC_LIBLTDL_CONVENIENCE |
3688 | ])# AC_LIBLTDL_CONVENIENCE |
2357 | |
3689 | |
2358 | |
3690 | |
… | |
… | |
2367 | # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single |
3699 | # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single |
2368 | # quotes!). If your package is not flat and you're not using automake, |
3700 | # quotes!). If your package is not flat and you're not using automake, |
2369 | # define top_builddir and top_srcdir appropriately in the Makefiles. |
3701 | # define top_builddir and top_srcdir appropriately in the Makefiles. |
2370 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
3702 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
2371 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
3703 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
2372 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
|
|
2373 | AC_CHECK_LIB(ltdl, lt_dlinit, |
3704 | [AC_CHECK_LIB(ltdl, lt_dlinit, |
2374 | [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
3705 | [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
2375 | [if test x"$enable_ltdl_install" = xno; then |
3706 | [if test x"$enable_ltdl_install" = xno; then |
2376 | AC_MSG_WARN([libltdl not installed, but installation disabled]) |
3707 | AC_MSG_WARN([libltdl not installed, but installation disabled]) |
2377 | else |
3708 | else |
2378 | enable_ltdl_install=yes |
3709 | enable_ltdl_install=yes |
2379 | fi |
3710 | fi |
2380 | ]) |
3711 | ]) |
2381 | if test x"$enable_ltdl_install" = x"yes"; then |
3712 | if test x"$enable_ltdl_install" = x"yes"; then |
2382 | ac_configure_args="$ac_configure_args --enable-ltdl-install" |
3713 | ac_configure_args="$ac_configure_args --enable-ltdl-install" |
2383 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
3714 | LIBLTDL='${top_builddir}/'m4_if($#, 1, [$1], ['libltdl'])/libltdl.la |
2384 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
3715 | LTDLINCL='-I${top_srcdir}/'m4_if($#, 1, [$1], ['libltdl']) |
2385 | else |
3716 | else |
2386 | ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
3717 | ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
2387 | LIBLTDL="-lltdl" |
3718 | LIBLTDL="-lltdl" |
2388 | LTDLINCL= |
3719 | LTDLINCL= |
2389 | fi |
3720 | fi |
2390 | # For backwards non-gettext consistent compatibility... |
3721 | # For backwards non-gettext consistent compatibility... |
2391 | INCLTDL="$LTDLINCL" |
3722 | INCLTDL="$LTDLINCL" |
2392 | ])# AC_LIBLTDL_INSTALLABLE |
3723 | ])# AC_LIBLTDL_INSTALLABLE |
2393 | |
3724 | |
2394 | |
3725 | |
2395 | # AC_LIBTOOL_CXX |
|
|
2396 | # -------------- |
|
|
2397 | # enable support for C++ libraries |
|
|
2398 | AC_DEFUN([AC_LIBTOOL_CXX], |
|
|
2399 | [AC_REQUIRE([_LT_AC_LANG_CXX]) |
|
|
2400 | ])# AC_LIBTOOL_CXX |
|
|
2401 | |
|
|
2402 | |
|
|
2403 | # _LT_AC_LANG_CXX |
|
|
2404 | # --------------- |
|
|
2405 | AC_DEFUN([_LT_AC_LANG_CXX], |
|
|
2406 | [AC_REQUIRE([AC_PROG_CXX]) |
|
|
2407 | AC_REQUIRE([AC_PROG_CXXCPP]) |
|
|
2408 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
|
|
2409 | ])# _LT_AC_LANG_CXX |
|
|
2410 | |
|
|
2411 | |
|
|
2412 | # AC_LIBTOOL_F77 |
|
|
2413 | # -------------- |
|
|
2414 | # enable support for Fortran 77 libraries |
|
|
2415 | AC_DEFUN([AC_LIBTOOL_F77], |
|
|
2416 | [AC_REQUIRE([_LT_AC_LANG_F77]) |
|
|
2417 | ])# AC_LIBTOOL_F77 |
|
|
2418 | |
|
|
2419 | |
|
|
2420 | # _LT_AC_LANG_F77 |
|
|
2421 | # --------------- |
|
|
2422 | AC_DEFUN([_LT_AC_LANG_F77], |
|
|
2423 | [AC_REQUIRE([AC_PROG_F77]) |
|
|
2424 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) |
|
|
2425 | ])# _LT_AC_LANG_F77 |
|
|
2426 | |
|
|
2427 | |
|
|
2428 | # AC_LIBTOOL_GCJ |
|
|
2429 | # -------------- |
|
|
2430 | # enable support for GCJ libraries |
|
|
2431 | AC_DEFUN([AC_LIBTOOL_GCJ], |
|
|
2432 | [AC_REQUIRE([_LT_AC_LANG_GCJ]) |
|
|
2433 | ])# AC_LIBTOOL_GCJ |
|
|
2434 | |
|
|
2435 | |
|
|
2436 | # _LT_AC_LANG_GCJ |
|
|
2437 | # --------------- |
|
|
2438 | AC_DEFUN([_LT_AC_LANG_GCJ], |
|
|
2439 | [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], |
|
|
2440 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
|
|
2441 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
|
|
2442 | [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
|
|
2443 | [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
|
|
2444 | [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
|
|
2445 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) |
|
|
2446 | ])# _LT_AC_LANG_GCJ |
|
|
2447 | |
|
|
2448 | |
|
|
2449 | # AC_LIBTOOL_RC |
|
|
2450 | # -------------- |
|
|
2451 | # enable support for Windows resource files |
|
|
2452 | AC_DEFUN([AC_LIBTOOL_RC], |
|
|
2453 | [AC_REQUIRE([LT_AC_PROG_RC]) |
|
|
2454 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) |
|
|
2455 | ])# AC_LIBTOOL_RC |
|
|
2456 | |
|
|
2457 | |
|
|
2458 | # AC_LIBTOOL_LANG_C_CONFIG |
|
|
2459 | # ------------------------ |
|
|
2460 | # Ensure that the configuration vars for the C compiler are |
|
|
2461 | # suitably defined. Those variables are subsequently used by |
|
|
2462 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
|
|
2463 | AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) |
|
|
2464 | AC_DEFUN([_LT_AC_LANG_C_CONFIG], |
|
|
2465 | [lt_save_CC="$CC" |
|
|
2466 | AC_LANG_PUSH(C) |
|
|
2467 | |
|
|
2468 | # Source file extension for C test sources. |
|
|
2469 | ac_ext=c |
|
|
2470 | |
|
|
2471 | # Object file extension for compiled C test sources. |
|
|
2472 | objext=o |
|
|
2473 | _LT_AC_TAGVAR(objext, $1)=$objext |
|
|
2474 | |
|
|
2475 | # Code to be used in simple compile tests |
|
|
2476 | lt_simple_compile_test_code="int some_variable = 0;\n" |
|
|
2477 | |
|
|
2478 | # Code to be used in simple link tests |
|
|
2479 | lt_simple_link_test_code='int main(){return(0);}\n' |
|
|
2480 | |
|
|
2481 | _LT_AC_SYS_COMPILER |
|
|
2482 | |
|
|
2483 | # |
|
|
2484 | # Check for any special shared library compilation flags. |
|
|
2485 | # |
|
|
2486 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= |
|
|
2487 | if test "$GCC" = no; then |
|
|
2488 | case $host_os in |
|
|
2489 | sco3.2v5*) |
|
|
2490 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' |
|
|
2491 | ;; |
|
|
2492 | esac |
|
|
2493 | fi |
|
|
2494 | if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
|
|
2495 | AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
|
|
2496 | if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : |
|
|
2497 | else |
|
|
2498 | AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
|
|
2499 | _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
|
|
2500 | fi |
|
|
2501 | fi |
|
|
2502 | |
|
|
2503 | |
|
|
2504 | # |
|
|
2505 | # Check to make sure the static flag actually works. |
|
|
2506 | # |
|
|
2507 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], |
|
|
2508 | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
|
|
2509 | $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), |
|
|
2510 | [], |
|
|
2511 | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
|
|
2512 | |
|
|
2513 | |
|
|
2514 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
|
|
2515 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
|
|
2516 | AC_LIBTOOL_PROG_CC_C_O($1) |
|
|
2517 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
|
2518 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
|
|
2519 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
2520 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
|
|
2521 | AC_LIBTOOL_SYS_LIB_STRIP |
|
|
2522 | AC_LIBTOOL_DLOPEN_SELF($1) |
|
|
2523 | |
|
|
2524 | # Report which librarie types wil actually be built |
|
|
2525 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
|
|
2526 | AC_MSG_RESULT([$can_build_shared]) |
|
|
2527 | |
|
|
2528 | AC_MSG_CHECKING([whether to build shared libraries]) |
|
|
2529 | test "$can_build_shared" = "no" && enable_shared=no |
|
|
2530 | |
|
|
2531 | # On AIX, shared libraries and static libraries use the same namespace, and |
|
|
2532 | # are all built from PIC. |
|
|
2533 | case "$host_os" in |
|
|
2534 | aix3*) |
|
|
2535 | test "$enable_shared" = yes && enable_static=no |
|
|
2536 | if test -n "$RANLIB"; then |
|
|
2537 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
|
2538 | postinstall_cmds='$RANLIB $lib' |
|
|
2539 | fi |
|
|
2540 | ;; |
|
|
2541 | |
|
|
2542 | aix4* | aix5*) |
|
|
2543 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
|
2544 | test "$enable_shared" = yes && enable_static=no |
|
|
2545 | fi |
|
|
2546 | ;; |
|
|
2547 | darwin* | rhapsody*) |
|
|
2548 | if test "$GCC" = yes; then |
|
|
2549 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
2550 | case "$host_os" in |
|
|
2551 | rhapsody* | darwin1.[[012]]) |
|
|
2552 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
|
|
2553 | ;; |
|
|
2554 | *) # Darwin 1.3 on |
|
|
2555 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
2556 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
|
|
2557 | else |
|
|
2558 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
2559 | 10.[[012]]) |
|
|
2560 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
|
|
2561 | ;; |
|
|
2562 | 10.*) |
|
|
2563 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
|
|
2564 | ;; |
|
|
2565 | esac |
|
|
2566 | fi |
|
|
2567 | ;; |
|
|
2568 | esac |
|
|
2569 | output_verbose_link_cmd='echo' |
|
|
2570 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
|
|
2571 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
2572 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
2573 | _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}' |
|
|
2574 | _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}' |
|
|
2575 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
2576 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
|
|
2577 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
|
|
2578 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
|
|
2579 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
2580 | else |
|
|
2581 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
2582 | fi |
|
|
2583 | ;; |
|
|
2584 | esac |
|
|
2585 | AC_MSG_RESULT([$enable_shared]) |
|
|
2586 | |
|
|
2587 | AC_MSG_CHECKING([whether to build static libraries]) |
|
|
2588 | # Make sure either enable_shared or enable_static is yes. |
|
|
2589 | test "$enable_shared" = yes || enable_static=yes |
|
|
2590 | AC_MSG_RESULT([$enable_static]) |
|
|
2591 | |
|
|
2592 | AC_LIBTOOL_CONFIG($1) |
|
|
2593 | |
|
|
2594 | AC_LANG_POP |
|
|
2595 | CC="$lt_save_CC" |
|
|
2596 | ])# AC_LIBTOOL_LANG_C_CONFIG |
|
|
2597 | |
|
|
2598 | |
|
|
2599 | # AC_LIBTOOL_LANG_CXX_CONFIG |
|
|
2600 | # -------------------------- |
|
|
2601 | # Ensure that the configuration vars for the C compiler are |
|
|
2602 | # suitably defined. Those variables are subsequently used by |
|
|
2603 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
|
|
2604 | AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) |
|
|
2605 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
|
|
2606 | [AC_LANG_PUSH(C++) |
|
|
2607 | AC_REQUIRE([AC_PROG_CXX]) |
|
|
2608 | AC_REQUIRE([AC_PROG_CXXCPP]) |
|
|
2609 | |
|
|
2610 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
2611 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
|
|
2612 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
|
|
2613 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
|
|
2614 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
|
|
2615 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
2616 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
|
|
2617 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
|
|
2618 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
|
|
2619 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
|
|
2620 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
|
|
2621 | _LT_AC_TAGVAR(module_cmds, $1)= |
|
|
2622 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
|
|
2623 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
|
|
2624 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
|
|
2625 | _LT_AC_TAGVAR(no_undefined_flag, $1)= |
|
|
2626 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
|
|
2627 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
|
|
2628 | |
|
|
2629 | # Dependencies to place before and after the object being linked: |
|
|
2630 | _LT_AC_TAGVAR(predep_objects, $1)= |
|
|
2631 | _LT_AC_TAGVAR(postdep_objects, $1)= |
|
|
2632 | _LT_AC_TAGVAR(predeps, $1)= |
|
|
2633 | _LT_AC_TAGVAR(postdeps, $1)= |
|
|
2634 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
|
|
2635 | |
|
|
2636 | # Source file extension for C++ test sources. |
|
|
2637 | ac_ext=cc |
|
|
2638 | |
|
|
2639 | # Object file extension for compiled C++ test sources. |
|
|
2640 | objext=o |
|
|
2641 | _LT_AC_TAGVAR(objext, $1)=$objext |
|
|
2642 | |
|
|
2643 | # Code to be used in simple compile tests |
|
|
2644 | lt_simple_compile_test_code="int some_variable = 0;\n" |
|
|
2645 | |
|
|
2646 | # Code to be used in simple link tests |
|
|
2647 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
|
|
2648 | |
|
|
2649 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
2650 | _LT_AC_SYS_COMPILER |
|
|
2651 | |
|
|
2652 | # Allow CC to be a program name with arguments. |
|
|
2653 | lt_save_CC=$CC |
|
|
2654 | lt_save_LD=$LD |
|
|
2655 | lt_save_GCC=$GCC |
|
|
2656 | GCC=$GXX |
|
|
2657 | lt_save_with_gnu_ld=$with_gnu_ld |
|
|
2658 | lt_save_path_LD=$lt_cv_path_LD |
|
|
2659 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
|
|
2660 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
|
|
2661 | else |
|
|
2662 | unset lt_cv_prog_gnu_ld |
|
|
2663 | fi |
|
|
2664 | if test -n "${lt_cv_path_LDCXX+set}"; then |
|
|
2665 | lt_cv_path_LD=$lt_cv_path_LDCXX |
|
|
2666 | else |
|
|
2667 | unset lt_cv_path_LD |
|
|
2668 | fi |
|
|
2669 | test -z "${LDCXX+set}" || LD=$LDCXX |
|
|
2670 | CC=${CXX-"c++"} |
|
|
2671 | compiler=$CC |
|
|
2672 | _LT_AC_TAGVAR(compiler, $1)=$CC |
|
|
2673 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
|
|
2674 | |
|
|
2675 | # We don't want -fno-exception wen compiling C++ code, so set the |
|
|
2676 | # no_builtin_flag separately |
|
|
2677 | if test "$GXX" = yes; then |
|
|
2678 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
|
|
2679 | else |
|
|
2680 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
|
|
2681 | fi |
|
|
2682 | |
|
|
2683 | if test "$GXX" = yes; then |
|
|
2684 | # Set up default GNU C++ configuration |
|
|
2685 | |
|
|
2686 | AC_PROG_LD |
|
|
2687 | |
|
|
2688 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
|
|
2689 | # archiving commands below assume that GNU ld is being used. |
|
|
2690 | if test "$with_gnu_ld" = yes; then |
|
|
2691 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
2692 | _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' |
|
|
2693 | |
|
|
2694 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
|
|
2695 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
|
|
2696 | |
|
|
2697 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
2698 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
|
|
2699 | # investigate it a little bit more. (MM) |
|
|
2700 | wlarc='${wl}' |
|
|
2701 | |
|
|
2702 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
2703 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
|
|
2704 | grep 'no-whole-archive' > /dev/null; then |
|
|
2705 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
2706 | else |
|
|
2707 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
|
|
2708 | fi |
|
|
2709 | else |
|
|
2710 | with_gnu_ld=no |
|
|
2711 | wlarc= |
|
|
2712 | |
|
|
2713 | # A generic and very simple default shared library creation |
|
|
2714 | # command for GNU C++ for the case where it uses the native |
|
|
2715 | # linker, instead of GNU ld. If possible, this setting should |
|
|
2716 | # overridden to take advantage of the native linker features on |
|
|
2717 | # the platform it is being used on. |
|
|
2718 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
|
2719 | fi |
|
|
2720 | |
|
|
2721 | # Commands to make compiler produce verbose output that lists |
|
|
2722 | # what "hidden" libraries, object files and flags are used when |
|
|
2723 | # linking a shared library. |
|
|
2724 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
|
2725 | |
|
|
2726 | else |
|
|
2727 | GXX=no |
|
|
2728 | with_gnu_ld=no |
|
|
2729 | wlarc= |
|
|
2730 | fi |
|
|
2731 | |
|
|
2732 | # PORTME: fill in a description of your system's C++ link characteristics |
|
|
2733 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
|
|
2734 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
|
|
2735 | case $host_os in |
|
|
2736 | aix3*) |
|
|
2737 | # FIXME: insert proper C++ library support |
|
|
2738 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
2739 | ;; |
|
|
2740 | aix4* | aix5*) |
|
|
2741 | if test "$host_cpu" = ia64; then |
|
|
2742 | # On IA64, the linker does run time linking by default, so we don't |
|
|
2743 | # have to do anything special. |
|
|
2744 | aix_use_runtimelinking=no |
|
|
2745 | exp_sym_flag='-Bexport' |
|
|
2746 | no_entry_flag="" |
|
|
2747 | else |
|
|
2748 | aix_use_runtimelinking=no |
|
|
2749 | |
|
|
2750 | # Test if we are trying to use run time linking or normal |
|
|
2751 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
2752 | # need to do runtime linking. |
|
|
2753 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
|
|
2754 | for ld_flag in $LDFLAGS; do |
|
|
2755 | case $ld_flag in |
|
|
2756 | *-brtl*) |
|
|
2757 | aix_use_runtimelinking=yes |
|
|
2758 | break |
|
|
2759 | ;; |
|
|
2760 | esac |
|
|
2761 | done |
|
|
2762 | esac |
|
|
2763 | |
|
|
2764 | exp_sym_flag='-bexport' |
|
|
2765 | no_entry_flag='-bnoentry' |
|
|
2766 | fi |
|
|
2767 | |
|
|
2768 | # When large executables or shared objects are built, AIX ld can |
|
|
2769 | # have problems creating the table of contents. If linking a library |
|
|
2770 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
2771 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
2772 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
2773 | |
|
|
2774 | _LT_AC_TAGVAR(archive_cmds, $1)='' |
|
|
2775 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
2776 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
|
|
2777 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
2778 | |
|
|
2779 | if test "$GXX" = yes; then |
|
|
2780 | case $host_os in aix4.[012]|aix4.[012].*) |
|
|
2781 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
2782 | # below for broken collect2 doesn't work under 4.3+ |
|
|
2783 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
2784 | if test -f "$collect2name" && \ |
|
|
2785 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
2786 | then |
|
|
2787 | # We have reworked collect2 |
|
|
2788 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
2789 | else |
|
|
2790 | # We have old collect2 |
|
|
2791 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
|
|
2792 | # It fails to find uninstalled libraries when the uninstalled |
|
|
2793 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
2794 | # to unsupported forces relinking |
|
|
2795 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
|
|
2796 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
|
|
2797 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
|
|
2798 | fi |
|
|
2799 | esac |
|
|
2800 | shared_flag='-shared' |
|
|
2801 | else |
|
|
2802 | # not using gcc |
|
|
2803 | if test "$host_cpu" = ia64; then |
|
|
2804 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
2805 | # chokes on -Wl,-G. The following line is correct: |
|
|
2806 | shared_flag='-G' |
|
|
2807 | else |
|
|
2808 | if test "$aix_use_runtimelinking" = yes; then |
|
|
2809 | shared_flag='${wl}-G' |
|
|
2810 | else |
|
|
2811 | shared_flag='${wl}-bM:SRE' |
|
|
2812 | fi |
|
|
2813 | fi |
|
|
2814 | fi |
|
|
2815 | |
|
|
2816 | # It seems that -bexpall does not export symbols beginning with |
|
|
2817 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
2818 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
|
|
2819 | if test "$aix_use_runtimelinking" = yes; then |
|
|
2820 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
2821 | # -berok will link without error, but may produce a broken library. |
|
|
2822 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
|
|
2823 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
2824 | _LT_AC_SYS_LIBPATH_AIX |
|
|
2825 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
2826 | |
|
|
2827 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
|
2828 | else |
|
|
2829 | if test "$host_cpu" = ia64; then |
|
|
2830 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
|
|
2831 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
|
|
2832 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
|
2833 | else |
|
|
2834 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
2835 | _LT_AC_SYS_LIBPATH_AIX |
|
|
2836 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
2837 | # Warning - without using the other run time loading flags, |
|
|
2838 | # -berok will link without error, but may produce a broken library. |
|
|
2839 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
|
|
2840 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
|
|
2841 | # -bexpall does not export symbols beginning with underscore (_) |
|
|
2842 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
|
|
2843 | # Exported symbols can be pulled into shared objects from archives |
|
|
2844 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
|
|
2845 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
|
|
2846 | # This is similar to how AIX traditionally builds it's shared libraries. |
|
|
2847 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
|
2848 | fi |
|
|
2849 | fi |
|
|
2850 | ;; |
|
|
2851 | chorus*) |
|
|
2852 | case $cc_basename in |
|
|
2853 | *) |
|
|
2854 | # FIXME: insert proper C++ library support |
|
|
2855 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
2856 | ;; |
|
|
2857 | esac |
|
|
2858 | ;; |
|
|
2859 | |
|
|
2860 | cygwin* | mingw* | pw32*) |
|
|
2861 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
|
|
2862 | # as there is no search path for DLLs. |
|
|
2863 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
|
|
2864 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
|
|
2865 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
|
|
2866 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
|
|
2867 | |
|
|
2868 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
|
2869 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
|
2870 | # If the export-symbols file already is a .def file (1st line |
|
|
2871 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
2872 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
2873 | cp $export_symbols $output_objdir/$soname.def; |
|
|
2874 | else |
|
|
2875 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
2876 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
2877 | fi~ |
|
|
2878 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
|
2879 | else |
|
|
2880 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
2881 | fi |
|
|
2882 | ;; |
|
|
2883 | |
|
|
2884 | darwin* | rhapsody*) |
|
|
2885 | if test "$GXX" = yes; then |
|
|
2886 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
2887 | case "$host_os" in |
|
|
2888 | rhapsody* | darwin1.[[012]]) |
|
|
2889 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
|
|
2890 | ;; |
|
|
2891 | *) # Darwin 1.3 on |
|
|
2892 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
2893 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
|
|
2894 | else |
|
|
2895 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
2896 | 10.[[012]]) |
|
|
2897 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
|
|
2898 | ;; |
|
|
2899 | 10.*) |
|
|
2900 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
|
|
2901 | ;; |
|
|
2902 | esac |
|
|
2903 | fi |
|
|
2904 | ;; |
|
|
2905 | esac |
|
|
2906 | lt_int_apple_cc_single_mod=no |
|
|
2907 | output_verbose_link_cmd='echo' |
|
|
2908 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
|
2909 | lt_int_apple_cc_single_mod=yes |
|
|
2910 | fi |
|
|
2911 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
2912 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
2913 | else |
|
|
2914 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
2915 | fi |
|
|
2916 | _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
2917 | |
|
|
2918 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
2919 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
2920 | _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}' |
|
|
2921 | else |
|
|
2922 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
2923 | fi |
|
|
2924 | _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}' |
|
|
2925 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
2926 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
|
|
2927 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
|
|
2928 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
|
|
2929 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
2930 | else |
|
|
2931 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
2932 | fi |
|
|
2933 | ;; |
|
|
2934 | |
|
|
2935 | dgux*) |
|
|
2936 | case $cc_basename in |
|
|
2937 | ec++) |
|
|
2938 | # FIXME: insert proper C++ library support |
|
|
2939 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
2940 | ;; |
|
|
2941 | ghcx) |
|
|
2942 | # Green Hills C++ Compiler |
|
|
2943 | # FIXME: insert proper C++ library support |
|
|
2944 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
2945 | ;; |
|
|
2946 | *) |
|
|
2947 | # FIXME: insert proper C++ library support |
|
|
2948 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
2949 | ;; |
|
|
2950 | esac |
|
|
2951 | ;; |
|
|
2952 | freebsd[12]*) |
|
|
2953 | # C++ shared libraries reported to be fairly broken before switch to ELF |
|
|
2954 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
2955 | ;; |
|
|
2956 | freebsd-elf*) |
|
|
2957 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
2958 | ;; |
|
|
2959 | freebsd* | kfreebsd*-gnu) |
|
|
2960 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
|
|
2961 | # conventions |
|
|
2962 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
|
|
2963 | ;; |
|
|
2964 | gnu*) |
|
|
2965 | ;; |
|
|
2966 | hpux9*) |
|
|
2967 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
|
|
2968 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
2969 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
|
|
2970 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
2971 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
|
|
2972 | # but as the default |
|
|
2973 | # location of the library. |
|
|
2974 | |
|
|
2975 | case $cc_basename in |
|
|
2976 | CC) |
|
|
2977 | # FIXME: insert proper C++ library support |
|
|
2978 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
2979 | ;; |
|
|
2980 | aCC) |
|
|
2981 | _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' |
|
|
2982 | # Commands to make compiler produce verbose output that lists |
|
|
2983 | # what "hidden" libraries, object files and flags are used when |
|
|
2984 | # linking a shared library. |
|
|
2985 | # |
|
|
2986 | # There doesn't appear to be a way to prevent this compiler from |
|
|
2987 | # explicitly linking system object files so we need to strip them |
|
|
2988 | # from the output so that they don't get included in the library |
|
|
2989 | # dependencies. |
|
|
2990 | 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' |
|
|
2991 | ;; |
|
|
2992 | *) |
|
|
2993 | if test "$GXX" = yes; then |
|
|
2994 | _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' |
|
|
2995 | else |
|
|
2996 | # FIXME: insert proper C++ library support |
|
|
2997 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
2998 | fi |
|
|
2999 | ;; |
|
|
3000 | esac |
|
|
3001 | ;; |
|
|
3002 | hpux10*|hpux11*) |
|
|
3003 | if test $with_gnu_ld = no; then |
|
|
3004 | case "$host_cpu" in |
|
|
3005 | hppa*64*) |
|
|
3006 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
|
|
3007 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
|
|
3008 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
3009 | ;; |
|
|
3010 | ia64*) |
|
|
3011 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
|
|
3012 | ;; |
|
|
3013 | *) |
|
|
3014 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
|
|
3015 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
3016 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
|
|
3017 | ;; |
|
|
3018 | esac |
|
|
3019 | fi |
|
|
3020 | case "$host_cpu" in |
|
|
3021 | hppa*64*) |
|
|
3022 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
3023 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
3024 | ;; |
|
|
3025 | ia64*) |
|
|
3026 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
3027 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
3028 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
|
|
3029 | # but as the default |
|
|
3030 | # location of the library. |
|
|
3031 | ;; |
|
|
3032 | *) |
|
|
3033 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
3034 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
|
|
3035 | # but as the default |
|
|
3036 | # location of the library. |
|
|
3037 | ;; |
|
|
3038 | esac |
|
|
3039 | |
|
|
3040 | case $cc_basename in |
|
|
3041 | CC) |
|
|
3042 | # FIXME: insert proper C++ library support |
|
|
3043 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3044 | ;; |
|
|
3045 | aCC) |
|
|
3046 | case "$host_cpu" in |
|
|
3047 | hppa*64*|ia64*) |
|
|
3048 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
|
|
3049 | ;; |
|
|
3050 | *) |
|
|
3051 | _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' |
|
|
3052 | ;; |
|
|
3053 | esac |
|
|
3054 | # Commands to make compiler produce verbose output that lists |
|
|
3055 | # what "hidden" libraries, object files and flags are used when |
|
|
3056 | # linking a shared library. |
|
|
3057 | # |
|
|
3058 | # There doesn't appear to be a way to prevent this compiler from |
|
|
3059 | # explicitly linking system object files so we need to strip them |
|
|
3060 | # from the output so that they don't get included in the library |
|
|
3061 | # dependencies. |
|
|
3062 | 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' |
|
|
3063 | ;; |
|
|
3064 | *) |
|
|
3065 | if test "$GXX" = yes; then |
|
|
3066 | if test $with_gnu_ld = no; then |
|
|
3067 | case "$host_cpu" in |
|
|
3068 | ia64*|hppa*64*) |
|
|
3069 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
|
|
3070 | ;; |
|
|
3071 | *) |
|
|
3072 | _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' |
|
|
3073 | ;; |
|
|
3074 | esac |
|
|
3075 | fi |
|
|
3076 | else |
|
|
3077 | # FIXME: insert proper C++ library support |
|
|
3078 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3079 | fi |
|
|
3080 | ;; |
|
|
3081 | esac |
|
|
3082 | ;; |
|
|
3083 | irix5* | irix6*) |
|
|
3084 | case $cc_basename in |
|
|
3085 | CC) |
|
|
3086 | # SGI C++ |
|
|
3087 | _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 ${objdir}/so_locations -o $lib' |
|
|
3088 | |
|
|
3089 | # Archives containing C++ object files must be created using |
|
|
3090 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
|
|
3091 | # necessary to make sure instantiated templates are included |
|
|
3092 | # in the archive. |
|
|
3093 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
|
|
3094 | ;; |
|
|
3095 | *) |
|
|
3096 | if test "$GXX" = yes; then |
|
|
3097 | if test "$with_gnu_ld" = no; then |
|
|
3098 | _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}${objdir}/so_locations -o $lib' |
|
|
3099 | else |
|
|
3100 | _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' |
|
|
3101 | fi |
|
|
3102 | fi |
|
|
3103 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
3104 | ;; |
|
|
3105 | esac |
|
|
3106 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
3107 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
3108 | ;; |
|
|
3109 | linux*) |
|
|
3110 | case $cc_basename in |
|
|
3111 | KCC) |
|
|
3112 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
3113 | |
|
|
3114 | # KCC will only create a shared library if the output file |
|
|
3115 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
3116 | # to its proper name (with version) after linking. |
|
|
3117 | _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' |
|
|
3118 | _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' |
|
|
3119 | # Commands to make compiler produce verbose output that lists |
|
|
3120 | # what "hidden" libraries, object files and flags are used when |
|
|
3121 | # linking a shared library. |
|
|
3122 | # |
|
|
3123 | # There doesn't appear to be a way to prevent this compiler from |
|
|
3124 | # explicitly linking system object files so we need to strip them |
|
|
3125 | # from the output so that they don't get included in the library |
|
|
3126 | # dependencies. |
|
|
3127 | 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' |
|
|
3128 | |
|
|
3129 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' |
|
|
3130 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
|
|
3131 | |
|
|
3132 | # Archives containing C++ object files must be created using |
|
|
3133 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
|
3134 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
|
|
3135 | ;; |
|
|
3136 | icpc) |
|
|
3137 | # Intel C++ |
|
|
3138 | with_gnu_ld=yes |
|
|
3139 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
3140 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
3141 | _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' |
|
|
3142 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
|
|
3143 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
|
|
3144 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
|
3145 | ;; |
|
|
3146 | cxx) |
|
|
3147 | # Compaq C++ |
|
|
3148 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
3149 | _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' |
|
|
3150 | |
|
|
3151 | runpath_var=LD_RUN_PATH |
|
|
3152 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
|
|
3153 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
3154 | |
|
|
3155 | # Commands to make compiler produce verbose output that lists |
|
|
3156 | # what "hidden" libraries, object files and flags are used when |
|
|
3157 | # linking a shared library. |
|
|
3158 | # |
|
|
3159 | # There doesn't appear to be a way to prevent this compiler from |
|
|
3160 | # explicitly linking system object files so we need to strip them |
|
|
3161 | # from the output so that they don't get included in the library |
|
|
3162 | # dependencies. |
|
|
3163 | 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' |
|
|
3164 | ;; |
|
|
3165 | esac |
|
|
3166 | ;; |
|
|
3167 | lynxos*) |
|
|
3168 | # FIXME: insert proper C++ library support |
|
|
3169 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3170 | ;; |
|
|
3171 | m88k*) |
|
|
3172 | # FIXME: insert proper C++ library support |
|
|
3173 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3174 | ;; |
|
|
3175 | mvs*) |
|
|
3176 | case $cc_basename in |
|
|
3177 | cxx) |
|
|
3178 | # FIXME: insert proper C++ library support |
|
|
3179 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3180 | ;; |
|
|
3181 | *) |
|
|
3182 | # FIXME: insert proper C++ library support |
|
|
3183 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3184 | ;; |
|
|
3185 | esac |
|
|
3186 | ;; |
|
|
3187 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
3188 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
3189 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
|
|
3190 | wlarc= |
|
|
3191 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
|
|
3192 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
3193 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
3194 | fi |
|
|
3195 | # Workaround some broken pre-1.5 toolchains |
|
|
3196 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
|
|
3197 | ;; |
|
|
3198 | osf3*) |
|
|
3199 | case $cc_basename in |
|
|
3200 | KCC) |
|
|
3201 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
3202 | |
|
|
3203 | # KCC will only create a shared library if the output file |
|
|
3204 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
3205 | # to its proper name (with version) after linking. |
|
|
3206 | _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' |
|
|
3207 | |
|
|
3208 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
|
|
3209 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
3210 | |
|
|
3211 | # Archives containing C++ object files must be created using |
|
|
3212 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
|
3213 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
|
|
3214 | |
|
|
3215 | ;; |
|
|
3216 | RCC) |
|
|
3217 | # Rational C++ 2.4.1 |
|
|
3218 | # FIXME: insert proper C++ library support |
|
|
3219 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3220 | ;; |
|
|
3221 | cxx) |
|
|
3222 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
|
|
3223 | _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 ${objdir}/so_locations -o $lib' |
|
|
3224 | |
|
|
3225 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
3226 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
3227 | |
|
|
3228 | # Commands to make compiler produce verbose output that lists |
|
|
3229 | # what "hidden" libraries, object files and flags are used when |
|
|
3230 | # linking a shared library. |
|
|
3231 | # |
|
|
3232 | # There doesn't appear to be a way to prevent this compiler from |
|
|
3233 | # explicitly linking system object files so we need to strip them |
|
|
3234 | # from the output so that they don't get included in the library |
|
|
3235 | # dependencies. |
|
|
3236 | 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' |
|
|
3237 | ;; |
|
|
3238 | *) |
|
|
3239 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
3240 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
|
|
3241 | _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}${objdir}/so_locations -o $lib' |
|
|
3242 | |
|
|
3243 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
3244 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
3245 | |
|
|
3246 | # Commands to make compiler produce verbose output that lists |
|
|
3247 | # what "hidden" libraries, object files and flags are used when |
|
|
3248 | # linking a shared library. |
|
|
3249 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
|
3250 | |
|
|
3251 | else |
|
|
3252 | # FIXME: insert proper C++ library support |
|
|
3253 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3254 | fi |
|
|
3255 | ;; |
|
|
3256 | esac |
|
|
3257 | ;; |
|
|
3258 | osf4* | osf5*) |
|
|
3259 | case $cc_basename in |
|
|
3260 | KCC) |
|
|
3261 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
3262 | |
|
|
3263 | # KCC will only create a shared library if the output file |
|
|
3264 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
3265 | # to its proper name (with version) after linking. |
|
|
3266 | _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' |
|
|
3267 | |
|
|
3268 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
|
|
3269 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
3270 | |
|
|
3271 | # Archives containing C++ object files must be created using |
|
|
3272 | # the KAI C++ compiler. |
|
|
3273 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
|
|
3274 | ;; |
|
|
3275 | RCC) |
|
|
3276 | # Rational C++ 2.4.1 |
|
|
3277 | # FIXME: insert proper C++ library support |
|
|
3278 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3279 | ;; |
|
|
3280 | cxx) |
|
|
3281 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
|
|
3282 | _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 ${objdir}/so_locations -o $lib' |
|
|
3283 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
|
|
3284 | echo "-hidden">> $lib.exp~ |
|
|
3285 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
|
|
3286 | $rm $lib.exp' |
|
|
3287 | |
|
|
3288 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
|
|
3289 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
3290 | |
|
|
3291 | # Commands to make compiler produce verbose output that lists |
|
|
3292 | # what "hidden" libraries, object files and flags are used when |
|
|
3293 | # linking a shared library. |
|
|
3294 | # |
|
|
3295 | # There doesn't appear to be a way to prevent this compiler from |
|
|
3296 | # explicitly linking system object files so we need to strip them |
|
|
3297 | # from the output so that they don't get included in the library |
|
|
3298 | # dependencies. |
|
|
3299 | 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' |
|
|
3300 | ;; |
|
|
3301 | *) |
|
|
3302 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
3303 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
|
|
3304 | _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}${objdir}/so_locations -o $lib' |
|
|
3305 | |
|
|
3306 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
3307 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
3308 | |
|
|
3309 | # Commands to make compiler produce verbose output that lists |
|
|
3310 | # what "hidden" libraries, object files and flags are used when |
|
|
3311 | # linking a shared library. |
|
|
3312 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
|
3313 | |
|
|
3314 | else |
|
|
3315 | # FIXME: insert proper C++ library support |
|
|
3316 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3317 | fi |
|
|
3318 | ;; |
|
|
3319 | esac |
|
|
3320 | ;; |
|
|
3321 | psos*) |
|
|
3322 | # FIXME: insert proper C++ library support |
|
|
3323 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3324 | ;; |
|
|
3325 | sco*) |
|
|
3326 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
3327 | case $cc_basename in |
|
|
3328 | CC) |
|
|
3329 | # FIXME: insert proper C++ library support |
|
|
3330 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3331 | ;; |
|
|
3332 | *) |
|
|
3333 | # FIXME: insert proper C++ library support |
|
|
3334 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3335 | ;; |
|
|
3336 | esac |
|
|
3337 | ;; |
|
|
3338 | sunos4*) |
|
|
3339 | case $cc_basename in |
|
|
3340 | CC) |
|
|
3341 | # Sun C++ 4.x |
|
|
3342 | # FIXME: insert proper C++ library support |
|
|
3343 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3344 | ;; |
|
|
3345 | lcc) |
|
|
3346 | # Lucid |
|
|
3347 | # FIXME: insert proper C++ library support |
|
|
3348 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3349 | ;; |
|
|
3350 | *) |
|
|
3351 | # FIXME: insert proper C++ library support |
|
|
3352 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3353 | ;; |
|
|
3354 | esac |
|
|
3355 | ;; |
|
|
3356 | solaris*) |
|
|
3357 | case $cc_basename in |
|
|
3358 | CC) |
|
|
3359 | # Sun C++ 4.2, 5.x and Centerline C++ |
|
|
3360 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
|
|
3361 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
3362 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
3363 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
3364 | |
|
|
3365 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
|
|
3366 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
3367 | case $host_os in |
|
|
3368 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
3369 | *) |
|
|
3370 | # The C++ compiler is used as linker so we must use $wl |
|
|
3371 | # flag to pass the commands to the underlying system |
|
|
3372 | # linker. |
|
|
3373 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
3374 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
|
|
3375 | ;; |
|
|
3376 | esac |
|
|
3377 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
3378 | |
|
|
3379 | # Commands to make compiler produce verbose output that lists |
|
|
3380 | # what "hidden" libraries, object files and flags are used when |
|
|
3381 | # linking a shared library. |
|
|
3382 | # |
|
|
3383 | # There doesn't appear to be a way to prevent this compiler from |
|
|
3384 | # explicitly linking system object files so we need to strip them |
|
|
3385 | # from the output so that they don't get included in the library |
|
|
3386 | # dependencies. |
|
|
3387 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
3388 | |
|
|
3389 | # Archives containing C++ object files must be created using |
|
|
3390 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
|
3391 | # necessary to make sure instantiated templates are included |
|
|
3392 | # in the archive. |
|
|
3393 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
|
|
3394 | ;; |
|
|
3395 | gcx) |
|
|
3396 | # Green Hills C++ Compiler |
|
|
3397 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
3398 | |
|
|
3399 | # The C++ compiler must be used to create the archive. |
|
|
3400 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
|
|
3401 | ;; |
|
|
3402 | *) |
|
|
3403 | # GNU C++ compiler with Solaris linker |
|
|
3404 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
3405 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
|
|
3406 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
|
|
3407 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
3408 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
3409 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
3410 | |
|
|
3411 | # Commands to make compiler produce verbose output that lists |
|
|
3412 | # what "hidden" libraries, object files and flags are used when |
|
|
3413 | # linking a shared library. |
|
|
3414 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
|
3415 | else |
|
|
3416 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
|
|
3417 | # platform. |
|
|
3418 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
3419 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
3420 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
3421 | |
|
|
3422 | # Commands to make compiler produce verbose output that lists |
|
|
3423 | # what "hidden" libraries, object files and flags are used when |
|
|
3424 | # linking a shared library. |
|
|
3425 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
|
3426 | fi |
|
|
3427 | |
|
|
3428 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
|
|
3429 | fi |
|
|
3430 | ;; |
|
|
3431 | esac |
|
|
3432 | ;; |
|
|
3433 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
|
|
3434 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
3435 | ;; |
|
|
3436 | tandem*) |
|
|
3437 | case $cc_basename in |
|
|
3438 | NCC) |
|
|
3439 | # NonStop-UX NCC 3.20 |
|
|
3440 | # FIXME: insert proper C++ library support |
|
|
3441 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3442 | ;; |
|
|
3443 | *) |
|
|
3444 | # FIXME: insert proper C++ library support |
|
|
3445 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3446 | ;; |
|
|
3447 | esac |
|
|
3448 | ;; |
|
|
3449 | vxworks*) |
|
|
3450 | # FIXME: insert proper C++ library support |
|
|
3451 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3452 | ;; |
|
|
3453 | *) |
|
|
3454 | # FIXME: insert proper C++ library support |
|
|
3455 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
3456 | ;; |
|
|
3457 | esac |
|
|
3458 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
|
|
3459 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
|
|
3460 | |
|
|
3461 | _LT_AC_TAGVAR(GCC, $1)="$GXX" |
|
|
3462 | _LT_AC_TAGVAR(LD, $1)="$LD" |
|
|
3463 | |
|
|
3464 | AC_LIBTOOL_POSTDEP_PREDEP($1) |
|
|
3465 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
|
|
3466 | AC_LIBTOOL_PROG_CC_C_O($1) |
|
|
3467 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
|
3468 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
|
|
3469 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
3470 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
|
|
3471 | AC_LIBTOOL_SYS_LIB_STRIP |
|
|
3472 | AC_LIBTOOL_DLOPEN_SELF($1) |
|
|
3473 | |
|
|
3474 | AC_LIBTOOL_CONFIG($1) |
|
|
3475 | |
|
|
3476 | AC_LANG_POP |
|
|
3477 | CC=$lt_save_CC |
|
|
3478 | LDCXX=$LD |
|
|
3479 | LD=$lt_save_LD |
|
|
3480 | GCC=$lt_save_GCC |
|
|
3481 | with_gnu_ldcxx=$with_gnu_ld |
|
|
3482 | with_gnu_ld=$lt_save_with_gnu_ld |
|
|
3483 | lt_cv_path_LDCXX=$lt_cv_path_LD |
|
|
3484 | lt_cv_path_LD=$lt_save_path_LD |
|
|
3485 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
|
|
3486 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
|
|
3487 | ])# AC_LIBTOOL_LANG_CXX_CONFIG |
|
|
3488 | |
|
|
3489 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
|
|
3490 | # ------------------------ |
|
|
3491 | # Figure out "hidden" library dependencies from verbose |
|
|
3492 | # compiler output when linking a shared library. |
|
|
3493 | # Parse the compiler output and extract the necessary |
|
|
3494 | # objects, libraries and library flags. |
|
|
3495 | AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ |
|
|
3496 | dnl we can't use the lt_simple_compile_test_code here, |
|
|
3497 | dnl because it contains code intended for an executable, |
|
|
3498 | dnl not a library. It's possible we should let each |
|
|
3499 | dnl tag define a new lt_????_link_test_code variable, |
|
|
3500 | dnl but it's only used here... |
|
|
3501 | ifelse([$1],[],[cat > conftest.$ac_ext <<EOF |
|
|
3502 | int a; |
|
|
3503 | void foo (void) { a = 0; } |
|
|
3504 | EOF |
|
|
3505 | ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF |
|
|
3506 | class Foo |
|
|
3507 | { |
|
|
3508 | public: |
|
|
3509 | Foo (void) { a = 0; } |
|
|
3510 | private: |
|
|
3511 | int a; |
|
|
3512 | }; |
|
|
3513 | EOF |
|
|
3514 | ],[$1],[F77],[cat > conftest.$ac_ext <<EOF |
|
|
3515 | subroutine foo |
|
|
3516 | implicit none |
|
|
3517 | integer*4 a |
|
|
3518 | a=0 |
|
|
3519 | return |
|
|
3520 | end |
|
|
3521 | EOF |
|
|
3522 | ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF |
|
|
3523 | public class foo { |
|
|
3524 | private int a; |
|
|
3525 | public void bar (void) { |
|
|
3526 | a = 0; |
|
|
3527 | } |
|
|
3528 | }; |
|
|
3529 | EOF |
|
|
3530 | ]) |
|
|
3531 | dnl Parse the compiler output and extract the necessary |
|
|
3532 | dnl objects, libraries and library flags. |
|
|
3533 | if AC_TRY_EVAL(ac_compile); then |
|
|
3534 | # Parse the compiler output and extract the necessary |
|
|
3535 | # objects, libraries and library flags. |
|
|
3536 | |
|
|
3537 | # Sentinel used to keep track of whether or not we are before |
|
|
3538 | # the conftest object file. |
|
|
3539 | pre_test_object_deps_done=no |
|
|
3540 | |
|
|
3541 | # The `*' in the case matches for architectures that use `case' in |
|
|
3542 | # $output_verbose_cmd can trigger glob expansion during the loop |
|
|
3543 | # eval without this substitution. |
|
|
3544 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
|
|
3545 | |
|
|
3546 | for p in `eval $output_verbose_link_cmd`; do |
|
|
3547 | case $p in |
|
|
3548 | |
|
|
3549 | -L* | -R* | -l*) |
|
|
3550 | # Some compilers place space between "-{L,R}" and the path. |
|
|
3551 | # Remove the space. |
|
|
3552 | if test $p = "-L" \ |
|
|
3553 | || test $p = "-R"; then |
|
|
3554 | prev=$p |
|
|
3555 | continue |
|
|
3556 | else |
|
|
3557 | prev= |
|
|
3558 | fi |
|
|
3559 | |
|
|
3560 | if test "$pre_test_object_deps_done" = no; then |
|
|
3561 | case $p in |
|
|
3562 | -L* | -R*) |
|
|
3563 | # Internal compiler library paths should come after those |
|
|
3564 | # provided the user. The postdeps already come after the |
|
|
3565 | # user supplied libs so there is no need to process them. |
|
|
3566 | if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then |
|
|
3567 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
|
|
3568 | else |
|
|
3569 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" |
|
|
3570 | fi |
|
|
3571 | ;; |
|
|
3572 | # The "-l" case would never come before the object being |
|
|
3573 | # linked, so don't bother handling this case. |
|
|
3574 | esac |
|
|
3575 | else |
|
|
3576 | if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then |
|
|
3577 | _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" |
|
|
3578 | else |
|
|
3579 | _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" |
|
|
3580 | fi |
|
|
3581 | fi |
|
|
3582 | ;; |
|
|
3583 | |
|
|
3584 | *.$objext) |
|
|
3585 | # This assumes that the test object file only shows up |
|
|
3586 | # once in the compiler output. |
|
|
3587 | if test "$p" = "conftest.$objext"; then |
|
|
3588 | pre_test_object_deps_done=yes |
|
|
3589 | continue |
|
|
3590 | fi |
|
|
3591 | |
|
|
3592 | if test "$pre_test_object_deps_done" = no; then |
|
|
3593 | if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then |
|
|
3594 | _LT_AC_TAGVAR(predep_objects, $1)="$p" |
|
|
3595 | else |
|
|
3596 | _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" |
|
|
3597 | fi |
|
|
3598 | else |
|
|
3599 | if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then |
|
|
3600 | _LT_AC_TAGVAR(postdep_objects, $1)="$p" |
|
|
3601 | else |
|
|
3602 | _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" |
|
|
3603 | fi |
|
|
3604 | fi |
|
|
3605 | ;; |
|
|
3606 | |
|
|
3607 | *) ;; # Ignore the rest. |
|
|
3608 | |
|
|
3609 | esac |
|
|
3610 | done |
|
|
3611 | |
|
|
3612 | # Clean up. |
|
|
3613 | rm -f a.out a.exe |
|
|
3614 | else |
|
|
3615 | echo "libtool.m4: error: problem compiling $1 test program" |
|
|
3616 | fi |
|
|
3617 | |
|
|
3618 | $rm -f confest.$objext |
|
|
3619 | |
|
|
3620 | case " $_LT_AC_TAGVAR(postdeps, $1) " in |
|
|
3621 | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
|
|
3622 | esac |
|
|
3623 | ])# AC_LIBTOOL_POSTDEP_PREDEP |
|
|
3624 | |
|
|
3625 | # AC_LIBTOOL_LANG_F77_CONFIG |
|
|
3626 | # ------------------------ |
|
|
3627 | # Ensure that the configuration vars for the C compiler are |
|
|
3628 | # suitably defined. Those variables are subsequently used by |
|
|
3629 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
|
|
3630 | AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) |
|
|
3631 | AC_DEFUN([_LT_AC_LANG_F77_CONFIG], |
|
|
3632 | [AC_REQUIRE([AC_PROG_F77]) |
|
|
3633 | AC_LANG_PUSH(Fortran 77) |
|
|
3634 | |
|
|
3635 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
3636 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
|
|
3637 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
|
|
3638 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
|
|
3639 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
|
|
3640 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
3641 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
|
|
3642 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
|
|
3643 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
|
|
3644 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
|
|
3645 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
|
|
3646 | _LT_AC_TAGVAR(module_cmds, $1)= |
|
|
3647 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
|
|
3648 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
|
|
3649 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
|
|
3650 | _LT_AC_TAGVAR(no_undefined_flag, $1)= |
|
|
3651 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
|
|
3652 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
|
|
3653 | |
|
|
3654 | # Source file extension for f77 test sources. |
|
|
3655 | ac_ext=f |
|
|
3656 | |
|
|
3657 | # Object file extension for compiled f77 test sources. |
|
|
3658 | objext=o |
|
|
3659 | _LT_AC_TAGVAR(objext, $1)=$objext |
|
|
3660 | |
|
|
3661 | # Code to be used in simple compile tests |
|
|
3662 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
|
|
3663 | |
|
|
3664 | # Code to be used in simple link tests |
|
|
3665 | lt_simple_link_test_code=" program t\n end\n" |
|
|
3666 | |
|
|
3667 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
3668 | _LT_AC_SYS_COMPILER |
|
|
3669 | |
|
|
3670 | # Allow CC to be a program name with arguments. |
|
|
3671 | lt_save_CC="$CC" |
|
|
3672 | CC=${F77-"f77"} |
|
|
3673 | compiler=$CC |
|
|
3674 | _LT_AC_TAGVAR(compiler, $1)=$CC |
|
|
3675 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
|
|
3676 | |
|
|
3677 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
|
|
3678 | AC_MSG_RESULT([$can_build_shared]) |
|
|
3679 | |
|
|
3680 | AC_MSG_CHECKING([whether to build shared libraries]) |
|
|
3681 | test "$can_build_shared" = "no" && enable_shared=no |
|
|
3682 | |
|
|
3683 | # On AIX, shared libraries and static libraries use the same namespace, and |
|
|
3684 | # are all built from PIC. |
|
|
3685 | case "$host_os" in |
|
|
3686 | aix3*) |
|
|
3687 | test "$enable_shared" = yes && enable_static=no |
|
|
3688 | if test -n "$RANLIB"; then |
|
|
3689 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
|
3690 | postinstall_cmds='$RANLIB $lib' |
|
|
3691 | fi |
|
|
3692 | ;; |
|
|
3693 | aix4* | aix5*) |
|
|
3694 | test "$enable_shared" = yes && enable_static=no |
|
|
3695 | ;; |
|
|
3696 | esac |
|
|
3697 | AC_MSG_RESULT([$enable_shared]) |
|
|
3698 | |
|
|
3699 | AC_MSG_CHECKING([whether to build static libraries]) |
|
|
3700 | # Make sure either enable_shared or enable_static is yes. |
|
|
3701 | test "$enable_shared" = yes || enable_static=yes |
|
|
3702 | AC_MSG_RESULT([$enable_static]) |
|
|
3703 | |
|
|
3704 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
|
|
3705 | |
|
|
3706 | _LT_AC_TAGVAR(GCC, $1)="$G77" |
|
|
3707 | _LT_AC_TAGVAR(LD, $1)="$LD" |
|
|
3708 | |
|
|
3709 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
|
|
3710 | AC_LIBTOOL_PROG_CC_C_O($1) |
|
|
3711 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
|
3712 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
|
|
3713 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
3714 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
|
|
3715 | AC_LIBTOOL_SYS_LIB_STRIP |
|
|
3716 | |
|
|
3717 | |
|
|
3718 | AC_LIBTOOL_CONFIG($1) |
|
|
3719 | |
|
|
3720 | AC_LANG_POP |
|
|
3721 | CC="$lt_save_CC" |
|
|
3722 | ])# AC_LIBTOOL_LANG_F77_CONFIG |
|
|
3723 | |
|
|
3724 | |
|
|
3725 | # AC_LIBTOOL_LANG_GCJ_CONFIG |
|
|
3726 | # -------------------------- |
|
|
3727 | # Ensure that the configuration vars for the C compiler are |
|
|
3728 | # suitably defined. Those variables are subsequently used by |
|
|
3729 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
|
|
3730 | AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) |
|
|
3731 | AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], |
|
|
3732 | [AC_LANG_SAVE |
|
|
3733 | |
|
|
3734 | # Source file extension for Java test sources. |
|
|
3735 | ac_ext=java |
|
|
3736 | |
|
|
3737 | # Object file extension for compiled Java test sources. |
|
|
3738 | objext=o |
|
|
3739 | _LT_AC_TAGVAR(objext, $1)=$objext |
|
|
3740 | |
|
|
3741 | # Code to be used in simple compile tests |
|
|
3742 | lt_simple_compile_test_code="class foo {}\n" |
|
|
3743 | |
|
|
3744 | # Code to be used in simple link tests |
|
|
3745 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
|
|
3746 | |
|
|
3747 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
3748 | _LT_AC_SYS_COMPILER |
|
|
3749 | |
|
|
3750 | # Allow CC to be a program name with arguments. |
|
|
3751 | lt_save_CC="$CC" |
|
|
3752 | CC=${GCJ-"gcj"} |
|
|
3753 | compiler=$CC |
|
|
3754 | _LT_AC_TAGVAR(compiler, $1)=$CC |
|
|
3755 | |
|
|
3756 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
|
|
3757 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
3758 | |
|
|
3759 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
|
|
3760 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
|
|
3761 | AC_LIBTOOL_PROG_CC_C_O($1) |
|
|
3762 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
|
3763 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
|
|
3764 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
3765 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
|
|
3766 | AC_LIBTOOL_SYS_LIB_STRIP |
|
|
3767 | AC_LIBTOOL_DLOPEN_SELF($1) |
|
|
3768 | |
|
|
3769 | AC_LIBTOOL_CONFIG($1) |
|
|
3770 | |
|
|
3771 | AC_LANG_RESTORE |
|
|
3772 | CC="$lt_save_CC" |
|
|
3773 | ])# AC_LIBTOOL_LANG_GCJ_CONFIG |
|
|
3774 | |
|
|
3775 | |
|
|
3776 | # AC_LIBTOOL_LANG_RC_CONFIG |
|
|
3777 | # -------------------------- |
|
|
3778 | # Ensure that the configuration vars for the Windows resource compiler are |
|
|
3779 | # suitably defined. Those variables are subsequently used by |
|
|
3780 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
|
|
3781 | AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) |
|
|
3782 | AC_DEFUN([_LT_AC_LANG_RC_CONFIG], |
|
|
3783 | [AC_LANG_SAVE |
|
|
3784 | |
|
|
3785 | # Source file extension for RC test sources. |
|
|
3786 | ac_ext=rc |
|
|
3787 | |
|
|
3788 | # Object file extension for compiled RC test sources. |
|
|
3789 | objext=o |
|
|
3790 | _LT_AC_TAGVAR(objext, $1)=$objext |
|
|
3791 | |
|
|
3792 | # Code to be used in simple compile tests |
|
|
3793 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
|
|
3794 | |
|
|
3795 | # Code to be used in simple link tests |
|
|
3796 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
|
|
3797 | |
|
|
3798 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
3799 | _LT_AC_SYS_COMPILER |
|
|
3800 | |
|
|
3801 | # Allow CC to be a program name with arguments. |
|
|
3802 | lt_save_CC="$CC" |
|
|
3803 | CC=${RC-"windres"} |
|
|
3804 | compiler=$CC |
|
|
3805 | _LT_AC_TAGVAR(compiler, $1)=$CC |
|
|
3806 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
|
|
3807 | |
|
|
3808 | AC_LIBTOOL_CONFIG($1) |
|
|
3809 | |
|
|
3810 | AC_LANG_RESTORE |
|
|
3811 | CC="$lt_save_CC" |
|
|
3812 | ])# AC_LIBTOOL_LANG_RC_CONFIG |
|
|
3813 | |
|
|
3814 | |
|
|
3815 | # AC_LIBTOOL_CONFIG([TAGNAME]) |
|
|
3816 | # ---------------------------- |
|
|
3817 | # If TAGNAME is not passed, then create an initial libtool script |
|
|
3818 | # with a default configuration from the untagged config vars. Otherwise |
|
|
3819 | # add code to config.status for appending the configuration named by |
|
|
3820 | # TAGNAME from the matching tagged config vars. |
|
|
3821 | AC_DEFUN([AC_LIBTOOL_CONFIG], |
|
|
3822 | [# The else clause should only fire when bootstrapping the |
|
|
3823 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
3824 | # with your package, and you will get complaints that there are |
|
|
3825 | # no rules to generate ltmain.sh. |
|
|
3826 | if test -f "$ltmain"; then |
|
|
3827 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
3828 | # without removal of \ escapes. |
|
|
3829 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
3830 | setopt NO_GLOB_SUBST |
|
|
3831 | fi |
|
|
3832 | # Now quote all the things that may contain metacharacters while being |
|
|
3833 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
3834 | # variables and quote the copies for generation of the libtool script. |
|
|
3835 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
|
3836 | SED SHELL STRIP \ |
|
|
3837 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
3838 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
3839 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
3840 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
3841 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
3842 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
3843 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
3844 | _LT_AC_TAGVAR(compiler, $1) \ |
|
|
3845 | _LT_AC_TAGVAR(CC, $1) \ |
|
|
3846 | _LT_AC_TAGVAR(LD, $1) \ |
|
|
3847 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ |
|
|
3848 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ |
|
|
3849 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ |
|
|
3850 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ |
|
|
3851 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ |
|
|
3852 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ |
|
|
3853 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ |
|
|
3854 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ |
|
|
3855 | _LT_AC_TAGVAR(old_archive_cmds, $1) \ |
|
|
3856 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ |
|
|
3857 | _LT_AC_TAGVAR(predep_objects, $1) \ |
|
|
3858 | _LT_AC_TAGVAR(postdep_objects, $1) \ |
|
|
3859 | _LT_AC_TAGVAR(predeps, $1) \ |
|
|
3860 | _LT_AC_TAGVAR(postdeps, $1) \ |
|
|
3861 | _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ |
|
|
3862 | _LT_AC_TAGVAR(archive_cmds, $1) \ |
|
|
3863 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ |
|
|
3864 | _LT_AC_TAGVAR(postinstall_cmds, $1) \ |
|
|
3865 | _LT_AC_TAGVAR(postuninstall_cmds, $1) \ |
|
|
3866 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ |
|
|
3867 | _LT_AC_TAGVAR(allow_undefined_flag, $1) \ |
|
|
3868 | _LT_AC_TAGVAR(no_undefined_flag, $1) \ |
|
|
3869 | _LT_AC_TAGVAR(export_symbols_cmds, $1) \ |
|
|
3870 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ |
|
|
3871 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ |
|
|
3872 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ |
|
|
3873 | _LT_AC_TAGVAR(hardcode_automatic, $1) \ |
|
|
3874 | _LT_AC_TAGVAR(module_cmds, $1) \ |
|
|
3875 | _LT_AC_TAGVAR(module_expsym_cmds, $1) \ |
|
|
3876 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ |
|
|
3877 | _LT_AC_TAGVAR(exclude_expsyms, $1) \ |
|
|
3878 | _LT_AC_TAGVAR(include_expsyms, $1); do |
|
|
3879 | |
|
|
3880 | case $var in |
|
|
3881 | _LT_AC_TAGVAR(old_archive_cmds, $1) | \ |
|
|
3882 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ |
|
|
3883 | _LT_AC_TAGVAR(archive_cmds, $1) | \ |
|
|
3884 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
|
|
3885 | _LT_AC_TAGVAR(module_cmds, $1) | \ |
|
|
3886 | _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
|
|
3887 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ |
|
|
3888 | _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ |
|
|
3889 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
3890 | postinstall_cmds | postuninstall_cmds | \ |
|
|
3891 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
3892 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
3893 | # Double-quote double-evaled strings. |
|
|
3894 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
3895 | ;; |
|
|
3896 | *) |
|
|
3897 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
3898 | ;; |
|
|
3899 | esac |
|
|
3900 | done |
|
|
3901 | |
|
|
3902 | case $lt_echo in |
|
|
3903 | *'\[$]0 --fallback-echo"') |
|
|
3904 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` |
|
|
3905 | ;; |
|
|
3906 | esac |
|
|
3907 | |
|
|
3908 | ifelse([$1], [], |
|
|
3909 | [cfgfile="${ofile}T" |
|
|
3910 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
|
|
3911 | $rm -f "$cfgfile" |
|
|
3912 | AC_MSG_NOTICE([creating $ofile])], |
|
|
3913 | [cfgfile="$ofile"]) |
|
|
3914 | |
|
|
3915 | cat <<__EOF__ >> "$cfgfile" |
|
|
3916 | ifelse([$1], [], |
|
|
3917 | [#! $SHELL |
|
|
3918 | |
|
|
3919 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
|
3920 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
|
3921 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
3922 | # |
|
|
3923 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
|
|
3924 | # Free Software Foundation, Inc. |
|
|
3925 | # |
|
|
3926 | # This file is part of GNU Libtool: |
|
|
3927 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
3928 | # |
|
|
3929 | # This program is free software; you can redistribute it and/or modify |
|
|
3930 | # it under the terms of the GNU General Public License as published by |
|
|
3931 | # the Free Software Foundation; either version 2 of the License, or |
|
|
3932 | # (at your option) any later version. |
|
|
3933 | # |
|
|
3934 | # This program is distributed in the hope that it will be useful, but |
|
|
3935 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
3936 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
3937 | # General Public License for more details. |
|
|
3938 | # |
|
|
3939 | # You should have received a copy of the GNU General Public License |
|
|
3940 | # along with this program; if not, write to the Free Software |
|
|
3941 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
3942 | # |
|
|
3943 | # As a special exception to the GNU General Public License, if you |
|
|
3944 | # distribute this file as part of a program that contains a |
|
|
3945 | # configuration script generated by Autoconf, you may include it under |
|
|
3946 | # the same distribution terms that you use for the rest of that program. |
|
|
3947 | |
|
|
3948 | # A sed program that does not truncate output. |
|
|
3949 | SED=$lt_SED |
|
|
3950 | |
|
|
3951 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
3952 | Xsed="$SED -e s/^X//" |
|
|
3953 | |
|
|
3954 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
3955 | # if CDPATH is set. |
|
|
3956 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
3957 | |
|
|
3958 | # The names of the tagged configurations supported by this script. |
|
|
3959 | available_tags= |
|
|
3960 | |
|
|
3961 | # ### BEGIN LIBTOOL CONFIG], |
|
|
3962 | [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) |
|
|
3963 | |
|
|
3964 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
3965 | |
|
|
3966 | # Shell to use when invoking shell scripts. |
|
|
3967 | SHELL=$lt_SHELL |
|
|
3968 | |
|
|
3969 | # Whether or not to build shared libraries. |
|
|
3970 | build_libtool_libs=$enable_shared |
|
|
3971 | |
|
|
3972 | # Whether or not to build static libraries. |
|
|
3973 | build_old_libs=$enable_static |
|
|
3974 | |
|
|
3975 | # Whether or not to add -lc for building shared libraries. |
|
|
3976 | build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) |
|
|
3977 | |
|
|
3978 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
3979 | allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) |
|
|
3980 | |
|
|
3981 | # Whether or not to optimize for fast installation. |
|
|
3982 | fast_install=$enable_fast_install |
|
|
3983 | |
|
|
3984 | # The host system. |
|
|
3985 | host_alias=$host_alias |
|
|
3986 | host=$host |
|
|
3987 | |
|
|
3988 | # An echo program that does not interpret backslashes. |
|
|
3989 | echo=$lt_echo |
|
|
3990 | |
|
|
3991 | # The archiver. |
|
|
3992 | AR=$lt_AR |
|
|
3993 | AR_FLAGS=$lt_AR_FLAGS |
|
|
3994 | |
|
|
3995 | # A C compiler. |
|
|
3996 | LTCC=$lt_LTCC |
|
|
3997 | |
|
|
3998 | # A language-specific compiler. |
|
|
3999 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) |
|
|
4000 | |
|
|
4001 | # Is the compiler the GNU C compiler? |
|
|
4002 | with_gcc=$_LT_AC_TAGVAR(GCC, $1) |
|
|
4003 | |
|
|
4004 | # An ERE matcher. |
|
|
4005 | EGREP=$lt_EGREP |
|
|
4006 | |
|
|
4007 | # The linker used to build libraries. |
|
|
4008 | LD=$lt_[]_LT_AC_TAGVAR(LD, $1) |
|
|
4009 | |
|
|
4010 | # Whether we need hard or soft links. |
|
|
4011 | LN_S=$lt_LN_S |
|
|
4012 | |
|
|
4013 | # A BSD-compatible nm program. |
|
|
4014 | NM=$lt_NM |
|
|
4015 | |
|
|
4016 | # A symbol stripping program |
|
|
4017 | STRIP=$lt_STRIP |
|
|
4018 | |
|
|
4019 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
4020 | MAGIC_CMD=$MAGIC_CMD |
|
|
4021 | |
|
|
4022 | # Used on cygwin: DLL creation program. |
|
|
4023 | DLLTOOL="$DLLTOOL" |
|
|
4024 | |
|
|
4025 | # Used on cygwin: object dumper. |
|
|
4026 | OBJDUMP="$OBJDUMP" |
|
|
4027 | |
|
|
4028 | # Used on cygwin: assembler. |
|
|
4029 | AS="$AS" |
|
|
4030 | |
|
|
4031 | # The name of the directory that contains temporary libtool files. |
|
|
4032 | objdir=$objdir |
|
|
4033 | |
|
|
4034 | # How to create reloadable object files. |
|
|
4035 | reload_flag=$lt_reload_flag |
|
|
4036 | reload_cmds=$lt_reload_cmds |
|
|
4037 | |
|
|
4038 | # How to pass a linker flag through the compiler. |
|
|
4039 | wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
|
|
4040 | |
|
|
4041 | # Object file suffix (normally "o"). |
|
|
4042 | objext="$ac_objext" |
|
|
4043 | |
|
|
4044 | # Old archive suffix (normally "a"). |
|
|
4045 | libext="$libext" |
|
|
4046 | |
|
|
4047 | # Shared library suffix (normally ".so"). |
|
|
4048 | shrext_cmds='$shrext_cmds' |
|
|
4049 | |
|
|
4050 | # Executable file suffix (normally ""). |
|
|
4051 | exeext="$exeext" |
|
|
4052 | |
|
|
4053 | # Additional compiler flags for building library objects. |
|
|
4054 | pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) |
|
|
4055 | pic_mode=$pic_mode |
|
|
4056 | |
|
|
4057 | # What is the maximum length of a command? |
|
|
4058 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
4059 | |
|
|
4060 | # Does compiler simultaneously support -c and -o options? |
|
|
4061 | compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) |
|
|
4062 | |
|
|
4063 | # Must we lock files when doing compilation ? |
|
|
4064 | need_locks=$lt_need_locks |
|
|
4065 | |
|
|
4066 | # Do we need the lib prefix for modules? |
|
|
4067 | need_lib_prefix=$need_lib_prefix |
|
|
4068 | |
|
|
4069 | # Do we need a version for libraries? |
|
|
4070 | need_version=$need_version |
|
|
4071 | |
|
|
4072 | # Whether dlopen is supported. |
|
|
4073 | dlopen_support=$enable_dlopen |
|
|
4074 | |
|
|
4075 | # Whether dlopen of programs is supported. |
|
|
4076 | dlopen_self=$enable_dlopen_self |
|
|
4077 | |
|
|
4078 | # Whether dlopen of statically linked programs is supported. |
|
|
4079 | dlopen_self_static=$enable_dlopen_self_static |
|
|
4080 | |
|
|
4081 | # Compiler flag to prevent dynamic linking. |
|
|
4082 | link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) |
|
|
4083 | |
|
|
4084 | # Compiler flag to turn off builtin functions. |
|
|
4085 | no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) |
|
|
4086 | |
|
|
4087 | # Compiler flag to allow reflexive dlopens. |
|
|
4088 | export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) |
|
|
4089 | |
|
|
4090 | # Compiler flag to generate shared objects directly from archives. |
|
|
4091 | whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) |
|
|
4092 | |
|
|
4093 | # Compiler flag to generate thread-safe objects. |
|
|
4094 | thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) |
|
|
4095 | |
|
|
4096 | # Library versioning type. |
|
|
4097 | version_type=$version_type |
|
|
4098 | |
|
|
4099 | # Format of library name prefix. |
|
|
4100 | libname_spec=$lt_libname_spec |
|
|
4101 | |
|
|
4102 | # List of archive names. First name is the real one, the rest are links. |
|
|
4103 | # The last name is the one that the linker finds with -lNAME. |
|
|
4104 | library_names_spec=$lt_library_names_spec |
|
|
4105 | |
|
|
4106 | # The coded name of the library, if different from the real name. |
|
|
4107 | soname_spec=$lt_soname_spec |
|
|
4108 | |
|
|
4109 | # Commands used to build and install an old-style archive. |
|
|
4110 | RANLIB=$lt_RANLIB |
|
|
4111 | old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) |
|
|
4112 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
4113 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
4114 | |
|
|
4115 | # Create an old-style archive from a shared archive. |
|
|
4116 | old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) |
|
|
4117 | |
|
|
4118 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
4119 | old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) |
|
|
4120 | |
|
|
4121 | # Commands used to build and install a shared archive. |
|
|
4122 | archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) |
|
|
4123 | archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) |
|
|
4124 | postinstall_cmds=$lt_postinstall_cmds |
|
|
4125 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
4126 | |
|
|
4127 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
4128 | module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) |
|
|
4129 | module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) |
|
|
4130 | |
|
|
4131 | # Commands to strip libraries. |
|
|
4132 | old_striplib=$lt_old_striplib |
|
|
4133 | striplib=$lt_striplib |
|
|
4134 | |
|
|
4135 | # Dependencies to place before the objects being linked to create a |
|
|
4136 | # shared library. |
|
|
4137 | predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) |
|
|
4138 | |
|
|
4139 | # Dependencies to place after the objects being linked to create a |
|
|
4140 | # shared library. |
|
|
4141 | postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) |
|
|
4142 | |
|
|
4143 | # Dependencies to place before the objects being linked to create a |
|
|
4144 | # shared library. |
|
|
4145 | predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) |
|
|
4146 | |
|
|
4147 | # Dependencies to place after the objects being linked to create a |
|
|
4148 | # shared library. |
|
|
4149 | postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) |
|
|
4150 | |
|
|
4151 | # The library search path used internally by the compiler when linking |
|
|
4152 | # a shared library. |
|
|
4153 | compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) |
|
|
4154 | |
|
|
4155 | # Method to check whether dependent libraries are shared objects. |
|
|
4156 | deplibs_check_method=$lt_deplibs_check_method |
|
|
4157 | |
|
|
4158 | # Command to use when deplibs_check_method == file_magic. |
|
|
4159 | file_magic_cmd=$lt_file_magic_cmd |
|
|
4160 | |
|
|
4161 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
4162 | allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) |
|
|
4163 | |
|
|
4164 | # Flag that forces no undefined symbols. |
|
|
4165 | no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) |
|
|
4166 | |
|
|
4167 | # Commands used to finish a libtool library installation in a directory. |
|
|
4168 | finish_cmds=$lt_finish_cmds |
|
|
4169 | |
|
|
4170 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
4171 | finish_eval=$lt_finish_eval |
|
|
4172 | |
|
|
4173 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
4174 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
4175 | |
|
|
4176 | # Transform the output of nm in a proper C declaration |
|
|
4177 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
4178 | |
|
|
4179 | # Transform the output of nm in a C name address pair |
|
|
4180 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
4181 | |
|
|
4182 | # This is the shared library runtime path variable. |
|
|
4183 | runpath_var=$runpath_var |
|
|
4184 | |
|
|
4185 | # This is the shared library path variable. |
|
|
4186 | shlibpath_var=$shlibpath_var |
|
|
4187 | |
|
|
4188 | # Is shlibpath searched before the hard-coded library search path? |
|
|
4189 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
4190 | |
|
|
4191 | # How to hardcode a shared library path into an executable. |
|
|
4192 | hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) |
|
|
4193 | |
|
|
4194 | # Whether we should hardcode library paths into libraries. |
|
|
4195 | hardcode_into_libs=$hardcode_into_libs |
|
|
4196 | |
|
|
4197 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
4198 | # This must work even if \$libdir does not exist. |
|
|
4199 | hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) |
|
|
4200 | |
|
|
4201 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
4202 | # a binary during linking. This must work even if \$libdir does |
|
|
4203 | # not exist. |
|
|
4204 | hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) |
|
|
4205 | |
|
|
4206 | # Whether we need a single -rpath flag with a separated argument. |
|
|
4207 | hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) |
|
|
4208 | |
|
|
4209 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
4210 | # resulting binary. |
|
|
4211 | hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) |
|
|
4212 | |
|
|
4213 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
4214 | # resulting binary. |
|
|
4215 | hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) |
|
|
4216 | |
|
|
4217 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
4218 | # the resulting binary. |
|
|
4219 | hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) |
|
|
4220 | |
|
|
4221 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
4222 | # and all subsequent libraries and executables linked against it. |
|
|
4223 | hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) |
|
|
4224 | |
|
|
4225 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
4226 | # restored at relink time. |
|
|
4227 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
4228 | |
|
|
4229 | # Whether libtool must link a program against all its dependency libraries. |
|
|
4230 | link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) |
|
|
4231 | |
|
|
4232 | # Compile-time system search path for libraries |
|
|
4233 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
4234 | |
|
|
4235 | # Run-time system search path for libraries |
|
|
4236 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
4237 | |
|
|
4238 | # Fix the shell variable \$srcfile for the compiler. |
|
|
4239 | fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" |
|
|
4240 | |
|
|
4241 | # Set to yes if exported symbols are required. |
|
|
4242 | always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) |
|
|
4243 | |
|
|
4244 | # The commands to list exported symbols. |
|
|
4245 | export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) |
|
|
4246 | |
|
|
4247 | # The commands to extract the exported symbol list from a shared archive. |
|
|
4248 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
4249 | |
|
|
4250 | # Symbols that should not be listed in the preloaded symbols. |
|
|
4251 | exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) |
|
|
4252 | |
|
|
4253 | # Symbols that must always be exported. |
|
|
4254 | include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) |
|
|
4255 | |
|
|
4256 | ifelse([$1],[], |
|
|
4257 | [# ### END LIBTOOL CONFIG], |
|
|
4258 | [# ### END LIBTOOL TAG CONFIG: $tagname]) |
|
|
4259 | |
|
|
4260 | __EOF__ |
|
|
4261 | |
|
|
4262 | ifelse([$1],[], [ |
|
|
4263 | case $host_os in |
|
|
4264 | aix3*) |
|
|
4265 | cat <<\EOF >> "$cfgfile" |
|
|
4266 | |
|
|
4267 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
4268 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
4269 | # vanish in a puff of smoke. |
|
|
4270 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
4271 | COLLECT_NAMES= |
|
|
4272 | export COLLECT_NAMES |
|
|
4273 | fi |
|
|
4274 | EOF |
|
|
4275 | ;; |
|
|
4276 | esac |
|
|
4277 | |
|
|
4278 | # We use sed instead of cat because bash on DJGPP gets confused if |
|
|
4279 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
4280 | # text mode, it properly converts lines to CR/LF. This bash problem |
|
|
4281 | # is reportedly fixed, but why not run on old versions too? |
|
|
4282 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
|
|
4283 | |
|
|
4284 | mv -f "$cfgfile" "$ofile" || \ |
|
|
4285 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
|
4286 | chmod +x "$ofile" |
|
|
4287 | ]) |
|
|
4288 | else |
|
|
4289 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
4290 | # `config.status --recheck' to rerun these tests and create the |
|
|
4291 | # libtool script then. |
|
|
4292 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
4293 | if test -f "$ltmain_in"; then |
|
|
4294 | test -f Makefile && make "$ltmain" |
|
|
4295 | fi |
|
|
4296 | fi |
|
|
4297 | ])# AC_LIBTOOL_CONFIG |
|
|
4298 | |
|
|
4299 | |
|
|
4300 | # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) |
3726 | # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) |
4301 | # ------------------------------------------- |
3727 | # ------------------------------------------- |
4302 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], |
3728 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], |
4303 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
3729 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
4304 | |
3730 | |
… | |
… | |
4310 | AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
3736 | AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
4311 | lt_cv_prog_compiler_rtti_exceptions, |
3737 | lt_cv_prog_compiler_rtti_exceptions, |
4312 | [-fno-rtti -fno-exceptions], [], |
3738 | [-fno-rtti -fno-exceptions], [], |
4313 | [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
3739 | [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
4314 | fi |
3740 | fi |
|
|
3741 | _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], |
|
|
3742 | [Compiler flag to turn off builtin functions]) |
4315 | ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI |
3743 | ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI |
4316 | |
3744 | |
4317 | |
3745 | |
4318 | # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
3746 | # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
4319 | # --------------------------------- |
3747 | # --------------------------------- |
4320 | AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], |
3748 | AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], |
4321 | [AC_REQUIRE([AC_CANONICAL_HOST]) |
3749 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
|
|
3750 | AC_REQUIRE([LT_AC_PROG_EGREP])dnl |
|
|
3751 | AC_REQUIRE([AC_PROG_CC])dnl |
|
|
3752 | AC_REQUIRE([AC_PROG_LD])dnl |
4322 | AC_REQUIRE([AC_PROG_NM]) |
3753 | AC_REQUIRE([AC_PROG_NM])dnl |
4323 | AC_REQUIRE([AC_OBJEXT]) |
3754 | AC_REQUIRE([AC_OBJEXT])dnl |
4324 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
3755 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
4325 | AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
3756 | AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
4326 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
3757 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
4327 | [ |
3758 | [ |
4328 | # These are sane defaults that work on at least a few old systems. |
3759 | # These are sane defaults that work on at least a few old systems. |
… | |
… | |
4394 | |
3825 | |
4395 | # Check to see that the pipe works correctly. |
3826 | # Check to see that the pipe works correctly. |
4396 | pipe_works=no |
3827 | pipe_works=no |
4397 | |
3828 | |
4398 | rm -f conftest* |
3829 | rm -f conftest* |
4399 | cat > conftest.$ac_ext <<EOF |
3830 | cat > conftest.$ac_ext <<_LT_EOF |
4400 | #ifdef __cplusplus |
3831 | #ifdef __cplusplus |
4401 | extern "C" { |
3832 | extern "C" { |
4402 | #endif |
3833 | #endif |
4403 | char nm_test_var; |
3834 | char nm_test_var; |
4404 | void nm_test_func(){} |
3835 | void nm_test_func(){} |
4405 | #ifdef __cplusplus |
3836 | #ifdef __cplusplus |
4406 | } |
3837 | } |
4407 | #endif |
3838 | #endif |
4408 | int main(){nm_test_var='a';nm_test_func();return(0);} |
3839 | int main(){nm_test_var='a';nm_test_func();return(0);} |
4409 | EOF |
3840 | _LT_EOF |
4410 | |
3841 | |
4411 | if AC_TRY_EVAL(ac_compile); then |
3842 | if AC_TRY_EVAL(ac_compile); then |
4412 | # Now try to grab the symbols. |
3843 | # Now try to grab the symbols. |
4413 | nlist=conftest.nm |
3844 | nlist=conftest.nm |
4414 | if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then |
3845 | if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then |
… | |
… | |
4418 | else |
3849 | else |
4419 | rm -f "$nlist"T |
3850 | rm -f "$nlist"T |
4420 | fi |
3851 | fi |
4421 | |
3852 | |
4422 | # Make sure that we snagged all the symbols we need. |
3853 | # Make sure that we snagged all the symbols we need. |
4423 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
3854 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
4424 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
3855 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
4425 | cat <<EOF > conftest.$ac_ext |
3856 | cat <<_LT_EOF > conftest.$ac_ext |
4426 | #ifdef __cplusplus |
3857 | #ifdef __cplusplus |
4427 | extern "C" { |
3858 | extern "C" { |
4428 | #endif |
3859 | #endif |
4429 | |
3860 | |
4430 | EOF |
3861 | _LT_EOF |
4431 | # Now generate the symbol file. |
3862 | # Now generate the symbol file. |
4432 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
3863 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
4433 | |
3864 | |
4434 | cat <<EOF >> conftest.$ac_ext |
3865 | cat <<_LT_EOF >> conftest.$ac_ext |
4435 | #if defined (__STDC__) && __STDC__ |
3866 | #if defined (__STDC__) && __STDC__ |
4436 | # define lt_ptr_t void * |
3867 | # define lt_ptr_t void * |
4437 | #else |
3868 | #else |
4438 | # define lt_ptr_t char * |
3869 | # define lt_ptr_t char * |
4439 | # define const |
3870 | # define const |
… | |
… | |
4444 | const char *name; |
3875 | const char *name; |
4445 | lt_ptr_t address; |
3876 | lt_ptr_t address; |
4446 | } |
3877 | } |
4447 | lt_preloaded_symbols[[]] = |
3878 | lt_preloaded_symbols[[]] = |
4448 | { |
3879 | { |
4449 | EOF |
3880 | _LT_EOF |
4450 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
3881 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
4451 | cat <<\EOF >> conftest.$ac_ext |
3882 | cat <<\_LT_EOF >> conftest.$ac_ext |
4452 | {0, (lt_ptr_t) 0} |
3883 | {0, (lt_ptr_t) 0} |
4453 | }; |
3884 | }; |
4454 | |
3885 | |
4455 | #ifdef __cplusplus |
3886 | #ifdef __cplusplus |
4456 | } |
3887 | } |
4457 | #endif |
3888 | #endif |
4458 | EOF |
3889 | _LT_EOF |
4459 | # Now try linking the two files. |
3890 | # Now try linking the two files. |
4460 | mv conftest.$ac_objext conftstm.$ac_objext |
3891 | mv conftest.$ac_objext conftstm.$ac_objext |
4461 | lt_save_LIBS="$LIBS" |
3892 | lt_save_LIBS="$LIBS" |
4462 | lt_save_CFLAGS="$CFLAGS" |
3893 | lt_save_CFLAGS="$CFLAGS" |
4463 | LIBS="conftstm.$ac_objext" |
3894 | LIBS="conftstm.$ac_objext" |
… | |
… | |
4496 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
3927 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
4497 | AC_MSG_RESULT(failed) |
3928 | AC_MSG_RESULT(failed) |
4498 | else |
3929 | else |
4499 | AC_MSG_RESULT(ok) |
3930 | AC_MSG_RESULT(ok) |
4500 | fi |
3931 | fi |
|
|
3932 | |
|
|
3933 | _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
|
|
3934 | [Take the output of nm and produce a listing of raw symbols and C names]) |
|
|
3935 | _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
|
|
3936 | [Transform the output of nm in a proper C declaration]) |
|
|
3937 | _LT_DECL([global_symbol_to_c_name_address], |
|
|
3938 | [lt_cv_sys_global_symbol_to_c_name_address], [1], |
|
|
3939 | [Transform the output of nm in a C name address pair]) |
4501 | ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
3940 | ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
4502 | |
3941 | |
4503 | |
3942 | |
4504 | # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) |
3943 | # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) |
4505 | # --------------------------------------- |
3944 | # --------------------------------------- |
… | |
… | |
4507 | [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= |
3946 | [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= |
4508 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
3947 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4509 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= |
3948 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= |
4510 | |
3949 | |
4511 | AC_MSG_CHECKING([for $compiler option to produce PIC]) |
3950 | AC_MSG_CHECKING([for $compiler option to produce PIC]) |
4512 | ifelse([$1],[CXX],[ |
3951 | m4_if([$1], [CXX], [ |
4513 | # C++ specific cases for pic, static, wl, etc. |
3952 | # C++ specific cases for pic, static, wl, etc. |
4514 | if test "$GXX" = yes; then |
3953 | if test "$GXX" = yes; then |
4515 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3954 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4516 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
3955 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4517 | |
3956 | |
… | |
… | |
4522 | # AIX 5 now supports IA64 processor |
3961 | # AIX 5 now supports IA64 processor |
4523 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3962 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4524 | fi |
3963 | fi |
4525 | ;; |
3964 | ;; |
4526 | amigaos*) |
3965 | amigaos*) |
|
|
3966 | if test "$host_cpu" = m68k; then |
4527 | # FIXME: we need at least 68020 code to build shared libraries, but |
3967 | # FIXME: we need at least 68020 code to build shared libraries, but |
4528 | # adding the `-m68020' flag to GCC prevents building anything better, |
3968 | # adding the `-m68020' flag to GCC prevents building anything better, |
4529 | # like `-m68040'. |
3969 | # like `-m68040'. |
4530 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
3970 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
|
|
3971 | fi |
4531 | ;; |
3972 | ;; |
4532 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
3973 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
4533 | # PIC is the default for these OSes. |
3974 | # PIC is the default for these OSes. |
4534 | ;; |
3975 | ;; |
4535 | mingw* | os2* | pw32*) |
3976 | mingw* | os2* | pw32*) |
… | |
… | |
4583 | # Green Hills C++ Compiler |
4024 | # Green Hills C++ Compiler |
4584 | # _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" |
4025 | # _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" |
4585 | ;; |
4026 | ;; |
4586 | esac |
4027 | esac |
4587 | ;; |
4028 | ;; |
|
|
4029 | darwin*) |
|
|
4030 | # PIC is the default on this platform |
|
|
4031 | # Common symbols not allowed in MH_DYLIB files |
|
|
4032 | case "$cc_basename" in |
|
|
4033 | xlc*) |
|
|
4034 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
|
|
4035 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
|
4036 | ;; |
|
|
4037 | esac |
|
|
4038 | ;; |
4588 | dgux*) |
4039 | dgux*) |
4589 | case $cc_basename in |
4040 | case $cc_basename in |
4590 | ec++) |
4041 | ec++) |
4591 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4042 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4592 | ;; |
4043 | ;; |
… | |
… | |
4672 | ;; |
4123 | ;; |
4673 | *) |
4124 | *) |
4674 | ;; |
4125 | ;; |
4675 | esac |
4126 | esac |
4676 | ;; |
4127 | ;; |
4677 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
4128 | netbsd*) |
4678 | ;; |
4129 | ;; |
4679 | osf3* | osf4* | osf5*) |
4130 | osf3* | osf4* | osf5*) |
4680 | case $cc_basename in |
4131 | case $cc_basename in |
4681 | KCC) |
4132 | KCC) |
4682 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
4133 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
… | |
… | |
4772 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4223 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4773 | fi |
4224 | fi |
4774 | ;; |
4225 | ;; |
4775 | |
4226 | |
4776 | amigaos*) |
4227 | amigaos*) |
|
|
4228 | if test "$host_cpu" = m68k; then |
4777 | # FIXME: we need at least 68020 code to build shared libraries, but |
4229 | # FIXME: we need at least 68020 code to build shared libraries, but |
4778 | # adding the `-m68020' flag to GCC prevents building anything better, |
4230 | # adding the `-m68020' flag to GCC prevents building anything better, |
4779 | # like `-m68040'. |
4231 | # like `-m68040'. |
4780 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
4232 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
|
|
4233 | fi |
4781 | ;; |
4234 | ;; |
4782 | |
4235 | |
4783 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
4236 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
4784 | # PIC is the default for these OSes. |
4237 | # PIC is the default for these OSes. |
4785 | ;; |
4238 | ;; |
… | |
… | |
4836 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4289 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4837 | else |
4290 | else |
4838 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
4291 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
4839 | fi |
4292 | fi |
4840 | ;; |
4293 | ;; |
|
|
4294 | darwin*) |
|
|
4295 | # PIC is the default on this platform |
|
|
4296 | # Common symbols not allowed in MH_DYLIB files |
|
|
4297 | case "$cc_basename" in |
|
|
4298 | xlc*) |
|
|
4299 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
|
|
4300 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
|
4301 | ;; |
|
|
4302 | esac |
|
|
4303 | ;; |
4841 | |
4304 | |
4842 | mingw* | pw32* | os2*) |
4305 | mingw* | pw32* | os2*) |
4843 | # This hack is so that the source file can tell whether it is being |
4306 | # This hack is so that the source file can tell whether it is being |
4844 | # built for inclusion in a dll (and should export symbols for example). |
4307 | # built for inclusion in a dll (and should export symbols for example). |
4845 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
4308 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
… | |
… | |
4932 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4395 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4933 | ;; |
4396 | ;; |
4934 | esac |
4397 | esac |
4935 | fi |
4398 | fi |
4936 | ]) |
4399 | ]) |
|
|
4400 | case "$host_os" in |
|
|
4401 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
4402 | *djgpp*) |
|
|
4403 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
|
|
4404 | ;; |
|
|
4405 | *) |
|
|
4406 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
|
|
4407 | ;; |
|
|
4408 | esac |
4937 | AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) |
4409 | AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) |
|
|
4410 | _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
|
|
4411 | [How to pass a linker flag through the compiler]) |
4938 | |
4412 | |
4939 | # |
4413 | # |
4940 | # Check to make sure the PIC flag actually works. |
4414 | # Check to make sure the PIC flag actually works. |
4941 | # |
4415 | # |
4942 | if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then |
4416 | if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then |
4943 | AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], |
4417 | AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], |
4944 | _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), |
4418 | [_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1)], |
4945 | [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], |
4419 | [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], |
4946 | [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in |
4420 | [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in |
4947 | "" | " "*) ;; |
4421 | "" | " "*) ;; |
4948 | *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; |
4422 | *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; |
4949 | esac], |
4423 | esac], |
4950 | [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4424 | [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4951 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
4425 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
4952 | fi |
4426 | fi |
4953 | case "$host_os" in |
4427 | _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
4954 | # For platforms which do not support PIC, -DPIC is meaningless: |
4428 | [Additional compiler flags for building library objects]) |
4955 | *djgpp*) |
4429 | |
|
|
4430 | # |
|
|
4431 | # Check to make sure the static flag actually works. |
|
|
4432 | # |
|
|
4433 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], |
|
|
4434 | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
|
|
4435 | $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), |
|
|
4436 | [], |
4956 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4437 | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
4957 | ;; |
4438 | _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], |
4958 | *) |
4439 | [Compiler flag to prevent dynamic linking]) |
4959 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" |
4440 | ])# AC_LIBTOOL_PROG_COMPILER_PIC |
4960 | ;; |
|
|
4961 | esac |
|
|
4962 | ]) |
|
|
4963 | |
4441 | |
4964 | |
4442 | |
4965 | # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) |
4443 | # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) |
4966 | # ------------------------------------ |
4444 | # ------------------------------------ |
4967 | # See if the linker supports building shared libraries. |
4445 | # See if the linker supports building shared libraries. |
4968 | AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], |
4446 | AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], |
|
|
4447 | [AC_REQUIRE([LT_AC_PROG_EGREP])dnl |
|
|
4448 | AC_REQUIRE([AC_PROG_LD])dnl |
|
|
4449 | AC_REQUIRE([AC_PROG_NM])dnl |
|
|
4450 | AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl |
4969 | [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
4451 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
4970 | ifelse([$1],[CXX],[ |
4452 | m4_if([$1], [CXX], [ |
4971 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4453 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4972 | case $host_os in |
4454 | case $host_os in |
4973 | aix4* | aix5*) |
4455 | aix4* | aix5*) |
4974 | # If we're using GNU nm, then we don't want the "-C" option. |
4456 | # If we're using GNU nm, then we don't want the "-C" option. |
4975 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
4457 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
4976 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
4458 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
4977 | _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' |
4459 | _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' |
4978 | else |
4460 | else |
4979 | _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' |
4461 | _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' |
4980 | fi |
4462 | fi |
4981 | ;; |
4463 | ;; |
4982 | pw32*) |
4464 | pw32*) |
4983 | _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
4465 | _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
4984 | ;; |
4466 | ;; |
4985 | cygwin* | mingw*) |
4467 | cygwin* | mingw*) |
4986 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
4468 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
4987 | ;; |
|
|
4988 | linux*) |
|
|
4989 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
|
|
4990 | ;; |
4469 | ;; |
4991 | *) |
4470 | *) |
4992 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4471 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4993 | ;; |
4472 | ;; |
4994 | esac |
4473 | esac |
4995 | ],[ |
4474 | ], [ |
4996 | runpath_var= |
4475 | runpath_var= |
4997 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
4476 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
4998 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
4477 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
4999 | _LT_AC_TAGVAR(archive_cmds, $1)= |
4478 | _LT_AC_TAGVAR(archive_cmds, $1)= |
5000 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
4479 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
5001 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= |
4480 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
5002 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
|
|
5003 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
4481 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
5004 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
4482 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5005 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= |
4483 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
|
|
4484 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
5006 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4485 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5007 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
4486 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
5008 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
4487 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
5009 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
5010 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
4488 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
5011 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4489 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
|
|
4490 | _LT_AC_TAGVAR(inherit_rpath, $1)=no |
5012 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
4491 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
5013 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
|
|
5014 | _LT_AC_TAGVAR(module_cmds, $1)= |
4492 | _LT_AC_TAGVAR(module_cmds, $1)= |
5015 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
4493 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
5016 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
4494 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1)= |
5017 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4495 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
|
|
4496 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= |
|
|
4497 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
5018 | # include_expsyms should be a list of space-separated symbols to be *always* |
4498 | # include_expsyms should be a list of space-separated symbols to be *always* |
5019 | # included in the symbol list |
4499 | # included in the symbol list |
5020 | _LT_AC_TAGVAR(include_expsyms, $1)= |
4500 | _LT_AC_TAGVAR(include_expsyms, $1)= |
5021 | # exclude_expsyms can be an extended regexp of symbols to exclude |
4501 | # exclude_expsyms can be an extended regexp of symbols to exclude |
5022 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
4502 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
… | |
… | |
5053 | case $host_os in |
4533 | case $host_os in |
5054 | aix3* | aix4* | aix5*) |
4534 | aix3* | aix4* | aix5*) |
5055 | # On AIX/PPC, the GNU linker is very broken |
4535 | # On AIX/PPC, the GNU linker is very broken |
5056 | if test "$host_cpu" != ia64; then |
4536 | if test "$host_cpu" != ia64; then |
5057 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4537 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5058 | cat <<EOF 1>&2 |
4538 | cat <<_LT_EOF 1>&2 |
5059 | |
4539 | |
5060 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
4540 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
5061 | *** to be unable to reliably create shared libraries on AIX. |
4541 | *** to be unable to reliably create shared libraries on AIX. |
5062 | *** Therefore, libtool is disabling shared libraries support. If you |
4542 | *** Therefore, libtool is disabling shared libraries support. If you |
5063 | *** really care for shared libraries, you may want to modify your PATH |
4543 | *** really care for shared libraries, you may want to modify your PATH |
5064 | *** so that a non-GNU linker is found, and then restart. |
4544 | *** so that a non-GNU linker is found, and then restart. |
5065 | |
4545 | |
5066 | EOF |
4546 | _LT_EOF |
5067 | fi |
4547 | fi |
5068 | ;; |
4548 | ;; |
5069 | |
4549 | |
5070 | amigaos*) |
4550 | amigaos*) |
|
|
4551 | if test "$host_cpu" = m68k; then |
5071 | _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)' |
4552 | _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)' |
5072 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4553 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5073 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4554 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
|
|
4555 | fi |
5074 | |
4556 | |
5075 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
4557 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
5076 | # that the semantics of dynamic libraries on AmigaOS, at least up |
4558 | # that the semantics of dynamic libraries on AmigaOS, at least up |
5077 | # to version 4, is to share data among multiple programs linked |
4559 | # to version 4, is to share data among multiple programs linked |
5078 | # with the same dynamic library. Since this doesn't match the |
4560 | # with the same dynamic library. Since this doesn't match the |
… | |
… | |
5080 | # them. |
4562 | # them. |
5081 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4563 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5082 | ;; |
4564 | ;; |
5083 | |
4565 | |
5084 | beos*) |
4566 | beos*) |
5085 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
4567 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
5086 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
4568 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
5087 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
4569 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
5088 | # support --undefined. This deserves some investigation. FIXME |
4570 | # support --undefined. This deserves some investigation. FIXME |
5089 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4571 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5090 | else |
4572 | else |
… | |
… | |
5099 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
4581 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
5100 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
4582 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
5101 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
4583 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5102 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
4584 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
5103 | |
4585 | |
5104 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
4586 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
5105 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
4587 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
5106 | # If the export-symbols file already is a .def file (1st line |
4588 | # If the export-symbols file already is a .def file (1st line |
5107 | # is EXPORTS), use it as is; otherwise, prepend... |
4589 | # is EXPORTS), use it as is; otherwise, prepend... |
5108 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
4590 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
5109 | cp $export_symbols $output_objdir/$soname.def; |
4591 | cp $export_symbols $output_objdir/$soname.def; |
… | |
… | |
5115 | else |
4597 | else |
5116 | ld_shlibs=no |
4598 | ld_shlibs=no |
5117 | fi |
4599 | fi |
5118 | ;; |
4600 | ;; |
5119 | |
4601 | |
5120 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
4602 | netbsd*) |
5121 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
4603 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
5122 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
4604 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
5123 | wlarc= |
4605 | wlarc= |
5124 | else |
4606 | else |
5125 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4607 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5126 | _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' |
4608 | _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' |
5127 | fi |
4609 | fi |
5128 | ;; |
4610 | ;; |
5129 | |
4611 | |
5130 | solaris* | sysv5*) |
4612 | solaris* | sysv5*) |
5131 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
4613 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
5132 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4614 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5133 | cat <<EOF 1>&2 |
4615 | cat <<_LT_EOF 1>&2 |
5134 | |
4616 | |
5135 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
4617 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
5136 | *** create shared libraries on Solaris systems. Therefore, libtool |
4618 | *** create shared libraries on Solaris systems. Therefore, libtool |
5137 | *** is disabling shared libraries support. We urge you to upgrade GNU |
4619 | *** is disabling shared libraries support. We urge you to upgrade GNU |
5138 | *** binutils to release 2.9.1 or newer. Another option is to modify |
4620 | *** binutils to release 2.9.1 or newer. Another option is to modify |
5139 | *** your PATH or compiler configuration so that the native linker is |
4621 | *** your PATH or compiler configuration so that the native linker is |
5140 | *** used, and then restart. |
4622 | *** used, and then restart. |
5141 | |
4623 | |
5142 | EOF |
4624 | _LT_EOF |
5143 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
4625 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
5144 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4626 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5145 | _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' |
4627 | _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' |
5146 | else |
4628 | else |
5147 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4629 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5148 | fi |
4630 | fi |
… | |
… | |
5154 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4636 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5155 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4637 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5156 | ;; |
4638 | ;; |
5157 | |
4639 | |
5158 | linux*) |
4640 | linux*) |
5159 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
4641 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then |
5160 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4642 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5161 | _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds" |
|
|
5162 | supports_anon_versioning=no |
|
|
5163 | case `$LD -v 2>/dev/null` in |
4643 | case `$LD -v 2>&1` in |
5164 | *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
4644 | *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
5165 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
4645 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
5166 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
4646 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
5167 | *\ 2.11.*) ;; # other 2.11 versions |
4647 | *\ 2.11.*) ;; # other 2.11 versions |
5168 | *) supports_anon_versioning=yes ;; |
4648 | *) supports_anon_versioning=yes ;; |
5169 | esac |
4649 | esac |
5170 | if test $supports_anon_versioning = yes; then |
4650 | if test "x$supports_anon_versioning" = xyes; then |
5171 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
4651 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~$echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
5172 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
5173 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
5174 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
5175 | else |
4652 | else |
5176 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" |
4653 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)=$_LT_AC_TAGVAR(archive_cmds, $1) |
5177 | fi |
4654 | fi |
5178 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
|
|
5179 | else |
4655 | else |
5180 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4656 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5181 | fi |
4657 | fi |
5182 | ;; |
4658 | ;; |
5183 | |
4659 | |
5184 | *) |
4660 | *) |
5185 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
4661 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
5186 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4662 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5187 | _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' |
4663 | _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' |
5188 | else |
4664 | else |
5189 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4665 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5190 | fi |
4666 | fi |
… | |
… | |
5194 | if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then |
4670 | if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then |
5195 | runpath_var=LD_RUN_PATH |
4671 | runpath_var=LD_RUN_PATH |
5196 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
4672 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
5197 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4673 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5198 | # ancient GNU ld didn't support --whole-archive et. al. |
4674 | # ancient GNU ld didn't support --whole-archive et. al. |
5199 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
4675 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
5200 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
4676 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
5201 | else |
4677 | else |
5202 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
4678 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
5203 | fi |
4679 | fi |
5204 | fi |
4680 | fi |
… | |
… | |
5227 | exp_sym_flag='-Bexport' |
4703 | exp_sym_flag='-Bexport' |
5228 | no_entry_flag="" |
4704 | no_entry_flag="" |
5229 | else |
4705 | else |
5230 | # If we're using GNU nm, then we don't want the "-C" option. |
4706 | # If we're using GNU nm, then we don't want the "-C" option. |
5231 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
4707 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
5232 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
4708 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
5233 | _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' |
4709 | _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' |
5234 | else |
4710 | else |
5235 | _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' |
4711 | _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' |
5236 | fi |
4712 | fi |
5237 | aix_use_runtimelinking=no |
4713 | aix_use_runtimelinking=no |
… | |
… | |
5266 | if test "$GCC" = yes; then |
4742 | if test "$GCC" = yes; then |
5267 | case $host_os in aix4.[012]|aix4.[012].*) |
4743 | case $host_os in aix4.[012]|aix4.[012].*) |
5268 | # We only want to do this on AIX 4.2 and lower, the check |
4744 | # We only want to do this on AIX 4.2 and lower, the check |
5269 | # below for broken collect2 doesn't work under 4.3+ |
4745 | # below for broken collect2 doesn't work under 4.3+ |
5270 | collect2name=`${CC} -print-prog-name=collect2` |
4746 | collect2name=`${CC} -print-prog-name=collect2` |
5271 | if test -f "$collect2name" && \ |
4747 | if test -f "$collect2name" && |
5272 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
4748 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
5273 | then |
4749 | then |
5274 | # We have reworked collect2 |
4750 | # We have reworked collect2 |
5275 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4751 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5276 | else |
4752 | else |
5277 | # We have old collect2 |
4753 | # We have old collect2 |
… | |
… | |
5305 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
4781 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
5306 | if test "$aix_use_runtimelinking" = yes; then |
4782 | if test "$aix_use_runtimelinking" = yes; then |
5307 | # Warning - without using the other runtime loading flags (-brtl), |
4783 | # Warning - without using the other runtime loading flags (-brtl), |
5308 | # -berok will link without error, but may produce a broken library. |
4784 | # -berok will link without error, but may produce a broken library. |
5309 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
4785 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
5310 | # Determine the default libpath from the value encoded in an empty executable. |
4786 | # Determine the default libpath from the value encoded in an |
|
|
4787 | # empty executable. |
5311 | _LT_AC_SYS_LIBPATH_AIX |
4788 | _LT_AC_SYS_LIBPATH_AIX |
5312 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4789 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5313 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
4790 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
5314 | else |
4791 | else |
5315 | if test "$host_cpu" = ia64; then |
4792 | if test "$host_cpu" = ia64; then |
5316 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
4793 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
5317 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
4794 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
5318 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
4795 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
5319 | else |
4796 | else |
5320 | # Determine the default libpath from the value encoded in an empty executable. |
4797 | # Determine the default libpath from the value encoded in an |
|
|
4798 | # empty executable. |
5321 | _LT_AC_SYS_LIBPATH_AIX |
4799 | _LT_AC_SYS_LIBPATH_AIX |
5322 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4800 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5323 | # Warning - without using the other run time loading flags, |
4801 | # Warning - without using the other run time loading flags, |
5324 | # -berok will link without error, but may produce a broken library. |
4802 | # -berok will link without error, but may produce a broken library. |
5325 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
4803 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
… | |
… | |
5334 | fi |
4812 | fi |
5335 | fi |
4813 | fi |
5336 | ;; |
4814 | ;; |
5337 | |
4815 | |
5338 | amigaos*) |
4816 | amigaos*) |
|
|
4817 | if test "$host_cpu" = m68k; then |
5339 | _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)' |
4818 | _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)' |
5340 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4819 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5341 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4820 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
|
|
4821 | fi |
5342 | # see comment about different semantics on the GNU ld section |
4822 | # see comment about different semantics on the GNU ld section |
5343 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4823 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5344 | ;; |
4824 | ;; |
5345 | |
4825 | |
5346 | bsdi4*) |
4826 | bsdi4*) |
… | |
… | |
5359 | # Tell ltmain to make .dll files, not .so files. |
4839 | # Tell ltmain to make .dll files, not .so files. |
5360 | shrext_cmds=".dll" |
4840 | shrext_cmds=".dll" |
5361 | # FIXME: Setting linknames here is a bad hack. |
4841 | # FIXME: Setting linknames here is a bad hack. |
5362 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
4842 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
5363 | # The linker will automatically build a .lib file if we build a DLL. |
4843 | # The linker will automatically build a .lib file if we build a DLL. |
5364 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
4844 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1)='true' |
5365 | # FIXME: Should let the user specify the lib program. |
4845 | # FIXME: Should let the user specify the lib program. |
5366 | _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
4846 | _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
5367 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
4847 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
5368 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
4848 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5369 | ;; |
4849 | ;; |
5370 | |
4850 | |
5371 | darwin* | rhapsody*) |
4851 | darwin* | rhapsody*) |
5372 | if test "$GXX" = yes ; then |
4852 | case "$host_os" in |
|
|
4853 | rhapsody* | darwin1.[[012]]) |
|
|
4854 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
|
|
4855 | ;; |
|
|
4856 | *) # Darwin 1.3 on |
|
|
4857 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
4858 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${Wl}suppress' |
|
|
4859 | else |
|
|
4860 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
4861 | 10.[[012]]) |
|
|
4862 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
4863 | ;; |
|
|
4864 | 10.*) |
|
|
4865 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
|
|
4866 | ;; |
|
|
4867 | esac |
|
|
4868 | fi |
|
|
4869 | ;; |
|
|
4870 | esac |
5373 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4871 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
5374 | case "$host_os" in |
|
|
5375 | rhapsody* | darwin1.[[012]]) |
|
|
5376 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
|
|
5377 | ;; |
|
|
5378 | *) # Darwin 1.3 on |
|
|
5379 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
5380 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
|
|
5381 | else |
|
|
5382 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
5383 | 10.[[012]]) |
|
|
5384 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
|
|
5385 | ;; |
|
|
5386 | 10.*) |
|
|
5387 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
|
|
5388 | ;; |
|
|
5389 | esac |
|
|
5390 | fi |
|
|
5391 | ;; |
|
|
5392 | esac |
|
|
5393 | lt_int_apple_cc_single_mod=no |
|
|
5394 | output_verbose_link_cmd='echo' |
|
|
5395 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
|
5396 | lt_int_apple_cc_single_mod=yes |
|
|
5397 | fi |
|
|
5398 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
5399 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
5400 | else |
|
|
5401 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
5402 | fi |
|
|
5403 | _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
5404 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
5405 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
5406 | _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}' |
|
|
5407 | else |
|
|
5408 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
5409 | fi |
|
|
5410 | _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}' |
|
|
5411 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
4872 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
5412 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
4873 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
5413 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4874 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5414 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
4875 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
5415 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4876 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
4877 | if test "$GCC" = yes ; then |
|
|
4878 | output_verbose_link_cmd='echo' |
|
|
4879 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
4880 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
4881 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
4882 | _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}' |
|
|
4883 | _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}' |
5416 | else |
4884 | else |
|
|
4885 | case "$cc_basename" in |
|
|
4886 | xlc*) |
|
|
4887 | output_verbose_link_cmd='echo' |
|
|
4888 | _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' |
|
|
4889 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
4890 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
4891 | _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}' |
|
|
4892 | _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}' |
|
|
4893 | ;; |
|
|
4894 | *) |
5417 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4895 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
4896 | ;; |
|
|
4897 | esac |
5418 | fi |
4898 | fi |
5419 | ;; |
4899 | ;; |
5420 | |
|
|
5421 | dgux*) |
4900 | dgux*) |
5422 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4901 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
5423 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4902 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5424 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4903 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5425 | ;; |
4904 | ;; |
… | |
… | |
5524 | ;; |
5003 | ;; |
5525 | |
5004 | |
5526 | irix5* | irix6* | nonstopux*) |
5005 | irix5* | irix6* | nonstopux*) |
5527 | if test "$GCC" = yes; then |
5006 | if test "$GCC" = yes; then |
5528 | _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' |
5007 | _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' |
|
|
5008 | _LT_AC_TAGVAR(archive_expsym_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 ${wl}-exports_file ${wl}$export_symbols -o $lib' |
5529 | else |
5009 | else |
5530 | _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' |
5010 | _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' |
|
|
5011 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
5531 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
5012 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
5532 | fi |
5013 | fi |
5533 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5014 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5534 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
5015 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
5016 | _LT_AC_TAGVAR(inherit_rpath, $1)=yes |
5535 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5017 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5536 | ;; |
5018 | ;; |
5537 | |
5019 | |
5538 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
5020 | netbsd*) |
5539 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
5021 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
5540 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
5022 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
5541 | else |
5023 | else |
5542 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
5024 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
5543 | fi |
5025 | fi |
5544 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5026 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
… | |
… | |
5555 | ;; |
5037 | ;; |
5556 | |
5038 | |
5557 | openbsd*) |
5039 | openbsd*) |
5558 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5040 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5559 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5041 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5560 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
5042 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
5561 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
5043 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
5562 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
5044 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
5563 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5045 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5564 | else |
5046 | else |
5565 | case $host_os in |
5047 | case $host_os in |
… | |
… | |
5578 | os2*) |
5060 | os2*) |
5579 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5061 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5580 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5062 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5581 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
5063 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
5582 | _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' |
5064 | _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' |
5583 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
5065 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
5584 | ;; |
5066 | ;; |
5585 | |
5067 | |
5586 | osf3*) |
5068 | osf3*) |
5587 | if test "$GCC" = yes; then |
5069 | if test "$GCC" = yes; then |
5588 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
5070 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
… | |
… | |
5733 | |
5215 | |
5734 | *) |
5216 | *) |
5735 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5217 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5736 | ;; |
5218 | ;; |
5737 | esac |
5219 | esac |
|
|
5220 | |
|
|
5221 | if test x$host_vendor = xsni; then |
|
|
5222 | case $host in |
|
|
5223 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
5224 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
5225 | ;; |
|
|
5226 | esac |
|
|
5227 | fi |
5738 | fi |
5228 | fi |
5739 | ]) |
5229 | ]) |
5740 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
5230 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
5741 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
5231 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
5742 | |
5232 | |
|
|
5233 | _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl |
|
|
5234 | _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl |
|
|
5235 | _LT_DECL([], [extract_expsyms_cmds], [2], |
|
|
5236 | [The commands to extract the exported symbol list from a shared archive]) |
|
|
5237 | |
5743 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
5238 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
5744 | if test "$GCC" = yes; then |
5239 | if test "$GCC" = yes; then |
5745 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
5240 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
5746 | fi |
5241 | fi |
|
|
5242 | _LT_DECL([], [variables_saved_for_relink], [1], |
|
|
5243 | [Variables whose values should be saved in libtool wrapper scripts and |
|
|
5244 | restored at link time]) |
5747 | |
5245 | |
5748 | # |
5246 | # |
5749 | # Do we need to explicitly link libc? |
5247 | # Do we need to explicitly link libc? |
5750 | # |
5248 | # |
5751 | case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in |
5249 | case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in |
… | |
… | |
5777 | verstring= |
5275 | verstring= |
5778 | output_objdir=. |
5276 | output_objdir=. |
5779 | libname=conftest |
5277 | libname=conftest |
5780 | lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) |
5278 | lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) |
5781 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
5279 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
5782 | if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) |
5280 | if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) |
5783 | then |
5281 | then |
5784 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
5282 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
5785 | else |
5283 | else |
5786 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
5284 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
5787 | fi |
5285 | fi |
… | |
… | |
5794 | ;; |
5292 | ;; |
5795 | esac |
5293 | esac |
5796 | fi |
5294 | fi |
5797 | ;; |
5295 | ;; |
5798 | esac |
5296 | esac |
|
|
5297 | |
|
|
5298 | _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], |
|
|
5299 | [Whether or not to add -lc for building shared libraries]) |
|
|
5300 | _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], |
|
|
5301 | [enable_shared_with_static_runtimes], [0], |
|
|
5302 | [Whether or not to disallow shared libs when runtime libs are static]) |
|
|
5303 | _LT_TAGDECL([], [export_dynamic_flag_spec], [1], |
|
|
5304 | [Compiler flag to allow reflexive dlopens]) |
|
|
5305 | _LT_TAGDECL([], [whole_archive_flag_spec], [1], |
|
|
5306 | [Compiler flag to generate shared objects directly from archives]) |
|
|
5307 | _LT_TAGDECL([], [old_archive_from_new_cmds], [2], |
|
|
5308 | [Create an old-style archive from a shared archive]) |
|
|
5309 | _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], |
|
|
5310 | [Create a temporary old-style archive to link instead of a shared archive]) |
|
|
5311 | _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) |
|
|
5312 | _LT_TAGDECL([], [archive_expsym_cmds], [2]) |
|
|
5313 | _LT_TAGDECL([], [module_cmds], [2], |
|
|
5314 | [Commands used to build a loadable module if different from building |
|
|
5315 | a shared archive.]) |
|
|
5316 | _LT_TAGDECL([], [module_expsym_cmds], [2]) |
|
|
5317 | _LT_TAGDECL([], [allow_undefined_flag], [1], |
|
|
5318 | [Flag that allows shared libraries with undefined symbols to be built]) |
|
|
5319 | _LT_TAGDECL([], [no_undefined_flag], [1], |
|
|
5320 | [Flag that enforces no undefined symbols]) |
|
|
5321 | _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
|
|
5322 | [Flag to hardcode $libdir into a binary during linking. |
|
|
5323 | This must work even if $libdir does not exist]) |
|
|
5324 | _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], |
|
|
5325 | [If ld is used when linking, flag to hardcode $libdir into a binary |
|
|
5326 | during linking. This must work even if $libdir does not exist]) |
|
|
5327 | _LT_TAGDECL([], [hardcode_libdir_separator], [1], |
|
|
5328 | [Whether we need a single "-rpath" flag with a separated argument]) |
|
|
5329 | _LT_TAGDECL([], [hardcode_direct], [0], |
|
|
5330 | [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
|
|
5331 | DIR into the resulting binary]) |
|
|
5332 | _LT_TAGDECL([], [hardcode_minus_L], [0], |
|
|
5333 | [Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
|
|
5334 | into the resulting binary]) |
|
|
5335 | _LT_TAGDECL([], [hardcode_shlibpath_var], [0], |
|
|
5336 | [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
|
|
5337 | into the resulting binary]) |
|
|
5338 | _LT_TAGDECL([], [hardcode_automatic], [0], |
|
|
5339 | [Set to "yes" if building a shared library automatically hardcodes DIR |
|
|
5340 | into the library and all subsequent libraries and executables linked |
|
|
5341 | against it]) |
|
|
5342 | _LT_TAGDECL([], [inherit_rpath], [0], |
|
|
5343 | [Set to yes if linker adds runtime paths of dependent libraries |
|
|
5344 | to runtime path list]) |
|
|
5345 | _LT_TAGDECL([], [link_all_deplibs], [0], |
|
|
5346 | [Whether libtool must link a program against all its dependency libraries]) |
|
|
5347 | _LT_TAGDECL([], [fix_srcfile_path], [1], |
|
|
5348 | [Fix the shell variable $srcfile for the compiler]) |
|
|
5349 | _LT_TAGDECL([], [always_export_symbols], [0], |
|
|
5350 | [Set to "yes" if exported symbols are required]) |
|
|
5351 | _LT_TAGDECL([], [export_symbols_cmds], [2], |
|
|
5352 | [The commands to list exported symbols]) |
|
|
5353 | _LT_TAGDECL([], [exclude_expsyms], [1], |
|
|
5354 | [Symbols that should not be listed in the preloaded symbols]) |
|
|
5355 | _LT_TAGDECL([], [include_expsyms], [1], |
|
|
5356 | [Symbols that must always be exported]) |
|
|
5357 | dnl FIXME: Not yet implemented |
|
|
5358 | dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], |
|
|
5359 | dnl [Compiler flag to generate thread safe objects]) |
5799 | ])# AC_LIBTOOL_PROG_LD_SHLIBS |
5360 | ])# AC_LIBTOOL_PROG_LD_SHLIBS |
5800 | |
5361 | |
5801 | |
5362 | |
5802 | # _LT_AC_FILE_LTDLL_C |
5363 | # _LT_LANG_C_CONFIG([TAG]) |
5803 | # ------------------- |
5364 | # ------------------------ |
5804 | # Be careful that the start marker always follows a newline. |
5365 | # Ensure that the configuration variables for a C compiler are suitably |
5805 | AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ |
5366 | # defined. These variables are subsequently used by _LT_CONFIG to write |
5806 | # /* ltdll.c starts here */ |
5367 | # the compiler configuration to `libtool'. |
5807 | # #define WIN32_LEAN_AND_MEAN |
5368 | m4_define([_LT_LANG_C_CONFIG], |
5808 | # #include <windows.h> |
5369 | [AC_REQUIRE([LT_AC_PROG_EGREP]) |
5809 | # #undef WIN32_LEAN_AND_MEAN |
5370 | lt_save_CC="$CC" |
5810 | # #include <stdio.h> |
5371 | AC_LANG_PUSH(C) |
|
|
5372 | |
|
|
5373 | # Source file extension for C test sources. |
|
|
5374 | ac_ext=c |
|
|
5375 | |
|
|
5376 | # Object file extension for compiled C test sources. |
|
|
5377 | objext=o |
|
|
5378 | _LT_AC_TAGVAR(objext, $1)=$objext |
|
|
5379 | |
|
|
5380 | # Code to be used in simple compile tests |
|
|
5381 | lt_simple_compile_test_code="int some_variable = 0;\n" |
|
|
5382 | |
|
|
5383 | # Code to be used in simple link tests |
|
|
5384 | lt_simple_link_test_code='int main(){return(0);}\n' |
|
|
5385 | |
|
|
5386 | _LT_AC_SYS_COMPILER |
|
|
5387 | # Save the default compiler, since it gets overwritten when the other |
|
|
5388 | # tags are being tested, and _LT_AC_TAGVAR(compiler, []) is a NOP. |
|
|
5389 | compiler_DEFAULT=$CC |
|
|
5390 | |
5811 | # |
5391 | # |
5812 | # #ifndef __CYGWIN__ |
5392 | # Check for any special shared library compilation flags. |
5813 | # # ifdef __CYGWIN32__ |
|
|
5814 | # # define __CYGWIN__ __CYGWIN32__ |
|
|
5815 | # # endif |
|
|
5816 | # #endif |
|
|
5817 | # |
5393 | # |
5818 | # #ifdef __cplusplus |
5394 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= |
5819 | # extern "C" { |
5395 | if test "$GCC" = no; then |
5820 | # #endif |
5396 | case $host_os in |
5821 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
5397 | sco3.2v5*) |
5822 | # #ifdef __cplusplus |
5398 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' |
5823 | # } |
5399 | ;; |
5824 | # #endif |
5400 | esac |
5825 | # |
5401 | fi |
5826 | # #ifdef __CYGWIN__ |
5402 | if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
5827 | # #include <cygwin/cygwin_dll.h> |
5403 | AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
5828 | # DECLARE_CYGWIN_DLL( DllMain ); |
5404 | if echo "$old_CC $old_CFLAGS " | $GREP "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : |
5829 | # #endif |
5405 | else |
5830 | # HINSTANCE __hDllInstance_base; |
5406 | AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
5831 | # |
5407 | _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
5832 | # BOOL APIENTRY |
5408 | fi |
5833 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
5409 | fi |
5834 | # { |
|
|
5835 | # __hDllInstance_base = hInst; |
|
|
5836 | # return TRUE; |
|
|
5837 | # } |
|
|
5838 | # /* ltdll.c ends here */ |
|
|
5839 | ])# _LT_AC_FILE_LTDLL_C |
|
|
5840 | |
5410 | |
5841 | |
5411 | |
5842 | # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) |
5412 | if test -n "$compiler"; then |
|
|
5413 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
|
|
5414 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
|
|
5415 | AC_LIBTOOL_PROG_CC_C_O($1) |
|
|
5416 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
|
5417 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
|
|
5418 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
5419 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
|
|
5420 | AC_LIBTOOL_SYS_LIB_STRIP |
|
|
5421 | AC_LIBTOOL_DLOPEN_SELF($1) |
|
|
5422 | |
|
|
5423 | # Report which library types will actually be built |
|
|
5424 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
|
|
5425 | AC_MSG_RESULT([$can_build_shared]) |
|
|
5426 | |
|
|
5427 | AC_MSG_CHECKING([whether to build shared libraries]) |
|
|
5428 | test "$can_build_shared" = "no" && enable_shared=no |
|
|
5429 | |
|
|
5430 | # On AIX, shared libraries and static libraries use the same namespace, and |
|
|
5431 | # are all built from PIC. |
|
|
5432 | case "$host_os" in |
|
|
5433 | aix3*) |
|
|
5434 | test "$enable_shared" = yes && enable_static=no |
|
|
5435 | if test -n "$RANLIB"; then |
|
|
5436 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
|
5437 | postinstall_cmds='$RANLIB $lib' |
|
|
5438 | fi |
|
|
5439 | ;; |
|
|
5440 | |
|
|
5441 | aix4* | aix5*) |
|
|
5442 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
|
5443 | test "$enable_shared" = yes && enable_static=no |
|
|
5444 | fi |
|
|
5445 | ;; |
|
|
5446 | esac |
|
|
5447 | AC_MSG_RESULT([$enable_shared]) |
|
|
5448 | |
|
|
5449 | AC_MSG_CHECKING([whether to build static libraries]) |
|
|
5450 | # Make sure either enable_shared or enable_static is yes. |
|
|
5451 | test "$enable_shared" = yes || enable_static=yes |
|
|
5452 | AC_MSG_RESULT([$enable_static]) |
|
|
5453 | |
|
|
5454 | _LT_CONFIG($1) |
|
|
5455 | fi |
|
|
5456 | AC_LANG_POP |
|
|
5457 | CC="$lt_save_CC" |
|
|
5458 | ])# _LT_LANG_C_CONFIG |
|
|
5459 | |
|
|
5460 | |
|
|
5461 | # _LT_LANG_CXX_CONFIG([TAG]) |
|
|
5462 | # -------------------------- |
|
|
5463 | # Ensure that the configuration variables for a C++ compiler are suitably |
|
|
5464 | # defined. These variables are subsequently used by _LT_CONFIG to write |
|
|
5465 | # the compiler configuration to `libtool'. |
|
|
5466 | m4_define([_LT_LANG_CXX_CONFIG], |
|
|
5467 | [AC_LANG_PUSH(C++) |
|
|
5468 | AC_REQUIRE([LT_AC_PROG_EGREP]) |
|
|
5469 | AC_REQUIRE([AC_PROG_CXX]) |
|
|
5470 | AC_REQUIRE([AC_PROG_CXXCPP]) |
|
|
5471 | |
|
|
5472 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
5473 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
|
|
5474 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
|
|
5475 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
|
|
5476 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
|
|
5477 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
5478 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
|
|
5479 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
|
|
5480 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
|
|
5481 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
|
|
5482 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
|
|
5483 | _LT_AC_TAGVAR(inherit_rpath, $1)=no |
|
|
5484 | _LT_AC_TAGVAR(module_cmds, $1)= |
|
|
5485 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
|
|
5486 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
|
|
5487 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
|
|
5488 | _LT_AC_TAGVAR(no_undefined_flag, $1)= |
|
|
5489 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
|
|
5490 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
|
|
5491 | |
|
|
5492 | # Source file extension for C++ test sources. |
|
|
5493 | ac_ext=cc |
|
|
5494 | |
|
|
5495 | # Object file extension for compiled C++ test sources. |
|
|
5496 | objext=o |
|
|
5497 | _LT_AC_TAGVAR(objext, $1)=$objext |
|
|
5498 | |
|
|
5499 | # Code to be used in simple compile tests |
|
|
5500 | lt_simple_compile_test_code="int some_variable = 0;\n" |
|
|
5501 | |
|
|
5502 | # Code to be used in simple link tests |
|
|
5503 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
|
|
5504 | |
|
|
5505 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
5506 | _LT_AC_SYS_COMPILER |
|
|
5507 | |
|
|
5508 | # Allow CC to be a program name with arguments. |
|
|
5509 | lt_save_CC=$CC |
|
|
5510 | lt_save_LD=$LD |
|
|
5511 | lt_save_GCC=$GCC |
|
|
5512 | GCC=$GXX |
|
|
5513 | lt_save_with_gnu_ld=$with_gnu_ld |
|
|
5514 | lt_save_path_LD=$lt_cv_path_LD |
|
|
5515 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
|
|
5516 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
|
|
5517 | else |
|
|
5518 | unset lt_cv_prog_gnu_ld |
|
|
5519 | fi |
|
|
5520 | if test -n "${lt_cv_path_LDCXX+set}"; then |
|
|
5521 | lt_cv_path_LD=$lt_cv_path_LDCXX |
|
|
5522 | else |
|
|
5523 | unset lt_cv_path_LD |
|
|
5524 | fi |
|
|
5525 | test -z "${LDCXX+set}" || LD=$LDCXX |
|
|
5526 | CC=${CXX-"c++"} |
|
|
5527 | compiler=$CC |
|
|
5528 | _LT_AC_TAGVAR(compiler, $1)=$CC |
|
|
5529 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
|
|
5530 | |
|
|
5531 | if test -n "$compiler"; then |
|
|
5532 | # We don't want -fno-exception when compiling C++ code, so set the |
|
|
5533 | # no_builtin_flag separately |
|
|
5534 | if test "$GXX" = yes; then |
|
|
5535 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
|
|
5536 | else |
|
|
5537 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
|
|
5538 | fi |
|
|
5539 | |
|
|
5540 | if test "$GXX" = yes; then |
|
|
5541 | # Set up default GNU C++ configuration |
|
|
5542 | |
|
|
5543 | AC_PROG_LD |
|
|
5544 | |
|
|
5545 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
|
|
5546 | # archiving commands below assume that GNU ld is being used. |
|
|
5547 | if test "$with_gnu_ld" = yes; then |
|
|
5548 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
5549 | _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' |
|
|
5550 | |
|
|
5551 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
|
|
5552 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
|
|
5553 | |
|
|
5554 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
5555 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
|
|
5556 | # investigate it a little bit more. (MM) |
|
|
5557 | wlarc='${wl}' |
|
|
5558 | |
|
|
5559 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
5560 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
|
|
5561 | $GREP 'no-whole-archive' > /dev/null; then |
|
|
5562 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
5563 | else |
|
|
5564 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
|
|
5565 | fi |
|
|
5566 | else |
|
|
5567 | with_gnu_ld=no |
|
|
5568 | wlarc= |
|
|
5569 | |
|
|
5570 | # A generic and very simple default shared library creation |
|
|
5571 | # command for GNU C++ for the case where it uses the native |
|
|
5572 | # linker, instead of GNU ld. If possible, this setting should |
|
|
5573 | # overridden to take advantage of the native linker features on |
|
|
5574 | # the platform it is being used on. |
|
|
5575 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
|
5576 | fi |
|
|
5577 | |
|
|
5578 | # Commands to make compiler produce verbose output that lists |
|
|
5579 | # what "hidden" libraries, object files and flags are used when |
|
|
5580 | # linking a shared library. |
|
|
5581 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
|
|
5582 | |
|
|
5583 | else |
|
|
5584 | GXX=no |
|
|
5585 | with_gnu_ld=no |
|
|
5586 | wlarc= |
|
|
5587 | fi |
|
|
5588 | |
|
|
5589 | # PORTME: fill in a description of your system's C++ link characteristics |
|
|
5590 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
|
|
5591 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
|
|
5592 | case $host_os in |
|
|
5593 | aix3*) |
|
|
5594 | # FIXME: insert proper C++ library support |
|
|
5595 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
5596 | ;; |
|
|
5597 | aix4* | aix5*) |
|
|
5598 | if test "$host_cpu" = ia64; then |
|
|
5599 | # On IA64, the linker does run time linking by default, so we don't |
|
|
5600 | # have to do anything special. |
|
|
5601 | aix_use_runtimelinking=no |
|
|
5602 | exp_sym_flag='-Bexport' |
|
|
5603 | no_entry_flag="" |
|
|
5604 | else |
|
|
5605 | aix_use_runtimelinking=no |
|
|
5606 | |
|
|
5607 | # Test if we are trying to use run time linking or normal |
|
|
5608 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
5609 | # need to do runtime linking. |
|
|
5610 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
|
|
5611 | for ld_flag in $LDFLAGS; do |
|
|
5612 | case $ld_flag in |
|
|
5613 | *-brtl*) |
|
|
5614 | aix_use_runtimelinking=yes |
|
|
5615 | break |
|
|
5616 | ;; |
|
|
5617 | esac |
|
|
5618 | done |
|
|
5619 | esac |
|
|
5620 | |
|
|
5621 | exp_sym_flag='-bexport' |
|
|
5622 | no_entry_flag='-bnoentry' |
|
|
5623 | fi |
|
|
5624 | |
|
|
5625 | # When large executables or shared objects are built, AIX ld can |
|
|
5626 | # have problems creating the table of contents. If linking a library |
|
|
5627 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
5628 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
5629 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
5630 | |
|
|
5631 | _LT_AC_TAGVAR(archive_cmds, $1)='' |
|
|
5632 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
5633 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
|
|
5634 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
5635 | |
|
|
5636 | if test "$GXX" = yes; then |
|
|
5637 | case $host_os in aix4.[012]|aix4.[012].*) |
|
|
5638 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
5639 | # below for broken collect2 doesn't work under 4.3+ |
|
|
5640 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
5641 | if test -f "$collect2name" && |
|
|
5642 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
|
|
5643 | then |
|
|
5644 | # We have reworked collect2 |
|
|
5645 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
5646 | else |
|
|
5647 | # We have old collect2 |
|
|
5648 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
|
|
5649 | # It fails to find uninstalled libraries when the uninstalled |
|
|
5650 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
5651 | # to unsupported forces relinking |
|
|
5652 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
|
|
5653 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
|
|
5654 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
|
|
5655 | fi |
|
|
5656 | esac |
|
|
5657 | shared_flag='-shared' |
|
|
5658 | else |
|
|
5659 | # not using gcc |
|
|
5660 | if test "$host_cpu" = ia64; then |
|
|
5661 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
5662 | # chokes on -Wl,-G. The following line is correct: |
|
|
5663 | shared_flag='-G' |
|
|
5664 | else |
|
|
5665 | if test "$aix_use_runtimelinking" = yes; then |
|
|
5666 | shared_flag='${wl}-G' |
|
|
5667 | else |
|
|
5668 | shared_flag='${wl}-bM:SRE' |
|
|
5669 | fi |
|
|
5670 | fi |
|
|
5671 | fi |
|
|
5672 | |
|
|
5673 | # It seems that -bexpall does not export symbols beginning with |
|
|
5674 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
5675 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
|
|
5676 | if test "$aix_use_runtimelinking" = yes; then |
|
|
5677 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
5678 | # -berok will link without error, but may produce a broken library. |
|
|
5679 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
|
|
5680 | # Determine the default libpath from the value encoded in an empty |
|
|
5681 | # executable. |
|
|
5682 | _LT_AC_SYS_LIBPATH_AIX |
|
|
5683 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
5684 | |
|
|
5685 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
|
5686 | else |
|
|
5687 | if test "$host_cpu" = ia64; then |
|
|
5688 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
|
|
5689 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
|
|
5690 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
|
5691 | else |
|
|
5692 | # Determine the default libpath from the value encoded in an |
|
|
5693 | # empty executable. |
|
|
5694 | _LT_AC_SYS_LIBPATH_AIX |
|
|
5695 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
5696 | # Warning - without using the other run time loading flags, |
|
|
5697 | # -berok will link without error, but may produce a broken library. |
|
|
5698 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
|
|
5699 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
|
|
5700 | # -bexpall does not export symbols beginning with underscore (_) |
|
|
5701 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
|
|
5702 | # Exported symbols can be pulled into shared objects from archives |
|
|
5703 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
|
|
5704 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
|
|
5705 | # This is similar to how AIX traditionally builds it's shared libraries. |
|
|
5706 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
|
5707 | fi |
|
|
5708 | fi |
|
|
5709 | ;; |
|
|
5710 | chorus*) |
|
|
5711 | case $cc_basename in |
|
|
5712 | *) |
|
|
5713 | # FIXME: insert proper C++ library support |
|
|
5714 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
5715 | ;; |
|
|
5716 | esac |
|
|
5717 | ;; |
|
|
5718 | |
|
|
5719 | cygwin* | mingw* | pw32*) |
|
|
5720 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
|
|
5721 | # as there is no search path for DLLs. |
|
|
5722 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
|
|
5723 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
|
|
5724 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
|
|
5725 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
|
|
5726 | |
|
|
5727 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
|
|
5728 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
|
5729 | # If the export-symbols file already is a .def file (1st line |
|
|
5730 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
5731 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
5732 | cp $export_symbols $output_objdir/$soname.def; |
|
|
5733 | else |
|
|
5734 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
5735 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
5736 | fi~ |
|
|
5737 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
|
5738 | else |
|
|
5739 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
5740 | fi |
|
|
5741 | ;; |
|
|
5742 | darwin* | rhapsody*) |
|
|
5743 | case "$host_os" in |
|
|
5744 | rhapsody* | darwin1.[[012]]) |
|
|
5745 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
|
|
5746 | ;; |
|
|
5747 | *) # Darwin 1.3 on |
|
|
5748 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
5749 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${Wl}suppress' |
|
|
5750 | else |
|
|
5751 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
5752 | 10.[[012]]) |
|
|
5753 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
5754 | ;; |
|
|
5755 | 10.*) |
|
|
5756 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
|
|
5757 | ;; |
|
|
5758 | esac |
|
|
5759 | fi |
|
|
5760 | ;; |
|
|
5761 | esac |
|
|
5762 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
5763 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
5764 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
|
|
5765 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
|
|
5766 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
|
|
5767 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
5768 | |
|
|
5769 | if test "$GXX" = yes ; then |
|
|
5770 | lt_int_apple_cc_single_mod=no |
|
|
5771 | output_verbose_link_cmd='echo' |
|
|
5772 | if $CC -dumpspecs 2>&1 | $GREP 'single_module' >/dev/null ; then |
|
|
5773 | lt_int_apple_cc_single_mod=yes |
|
|
5774 | fi |
|
|
5775 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
5776 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
5777 | else |
|
|
5778 | _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' |
|
|
5779 | fi |
|
|
5780 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
5781 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
5782 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
5783 | _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}' |
|
|
5784 | else |
|
|
5785 | _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}' |
|
|
5786 | fi |
|
|
5787 | _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}' |
|
|
5788 | else |
|
|
5789 | case "$cc_basename" in |
|
|
5790 | xlc*) |
|
|
5791 | output_verbose_link_cmd='echo' |
|
|
5792 | _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' |
|
|
5793 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
5794 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
5795 | _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}' |
|
|
5796 | _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}' |
|
|
5797 | ;; |
|
|
5798 | *) |
|
|
5799 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
5800 | ;; |
|
|
5801 | esac |
|
|
5802 | fi |
|
|
5803 | ;; |
|
|
5804 | |
|
|
5805 | dgux*) |
|
|
5806 | case $cc_basename in |
|
|
5807 | ec++) |
|
|
5808 | # FIXME: insert proper C++ library support |
|
|
5809 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
5810 | ;; |
|
|
5811 | ghcx) |
|
|
5812 | # Green Hills C++ Compiler |
|
|
5813 | # FIXME: insert proper C++ library support |
|
|
5814 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
5815 | ;; |
|
|
5816 | *) |
|
|
5817 | # FIXME: insert proper C++ library support |
|
|
5818 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
5819 | ;; |
|
|
5820 | esac |
|
|
5821 | ;; |
|
|
5822 | freebsd[12]*) |
|
|
5823 | # C++ shared libraries reported to be fairly broken before switch to ELF |
|
|
5824 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
5825 | ;; |
|
|
5826 | freebsd-elf*) |
|
|
5827 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
5828 | ;; |
|
|
5829 | freebsd* | kfreebsd*-gnu) |
|
|
5830 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
|
|
5831 | # conventions |
|
|
5832 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
|
|
5833 | ;; |
|
|
5834 | gnu*) |
|
|
5835 | ;; |
|
|
5836 | hpux9*) |
|
|
5837 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
|
|
5838 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
5839 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
|
|
5840 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
5841 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
|
|
5842 | # but as the default |
|
|
5843 | # location of the library. |
|
|
5844 | |
|
|
5845 | case $cc_basename in |
|
|
5846 | CC) |
|
|
5847 | # FIXME: insert proper C++ library support |
|
|
5848 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
5849 | ;; |
|
|
5850 | aCC) |
|
|
5851 | _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' |
|
|
5852 | # Commands to make compiler produce verbose output that lists |
|
|
5853 | # what "hidden" libraries, object files and flags are used when |
|
|
5854 | # linking a shared library. |
|
|
5855 | # |
|
|
5856 | # There doesn't appear to be a way to prevent this compiler from |
|
|
5857 | # explicitly linking system object files so we need to strip them |
|
|
5858 | # from the output so that they don't get included in the library |
|
|
5859 | # dependencies. |
|
|
5860 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
5861 | ;; |
|
|
5862 | *) |
|
|
5863 | if test "$GXX" = yes; then |
|
|
5864 | _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' |
|
|
5865 | else |
|
|
5866 | # FIXME: insert proper C++ library support |
|
|
5867 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
5868 | fi |
|
|
5869 | ;; |
|
|
5870 | esac |
|
|
5871 | ;; |
|
|
5872 | hpux10*|hpux11*) |
|
|
5873 | if test $with_gnu_ld = no; then |
|
|
5874 | case "$host_cpu" in |
|
|
5875 | hppa*64*) |
|
|
5876 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
|
|
5877 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
|
|
5878 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
5879 | ;; |
|
|
5880 | ia64*) |
|
|
5881 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
|
|
5882 | ;; |
|
|
5883 | *) |
|
|
5884 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
|
|
5885 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
5886 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
|
|
5887 | ;; |
|
|
5888 | esac |
|
|
5889 | fi |
|
|
5890 | case "$host_cpu" in |
|
|
5891 | hppa*64*) |
|
|
5892 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
5893 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
5894 | ;; |
|
|
5895 | ia64*) |
|
|
5896 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
5897 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
5898 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
|
|
5899 | # but as the default |
|
|
5900 | # location of the library. |
|
|
5901 | ;; |
|
|
5902 | *) |
|
|
5903 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
5904 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
|
|
5905 | # but as the default |
|
|
5906 | # location of the library. |
|
|
5907 | ;; |
|
|
5908 | esac |
|
|
5909 | |
|
|
5910 | case $cc_basename in |
|
|
5911 | CC) |
|
|
5912 | # FIXME: insert proper C++ library support |
|
|
5913 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
5914 | ;; |
|
|
5915 | aCC) |
|
|
5916 | case "$host_cpu" in |
|
|
5917 | hppa*64*|ia64*) |
|
|
5918 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
|
|
5919 | ;; |
|
|
5920 | *) |
|
|
5921 | _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' |
|
|
5922 | ;; |
|
|
5923 | esac |
|
|
5924 | # Commands to make compiler produce verbose output that lists |
|
|
5925 | # what "hidden" libraries, object files and flags are used when |
|
|
5926 | # linking a shared library. |
|
|
5927 | # |
|
|
5928 | # There doesn't appear to be a way to prevent this compiler from |
|
|
5929 | # explicitly linking system object files so we need to strip them |
|
|
5930 | # from the output so that they don't get included in the library |
|
|
5931 | # dependencies. |
|
|
5932 | 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' |
|
|
5933 | ;; |
|
|
5934 | *) |
|
|
5935 | if test "$GXX" = yes; then |
|
|
5936 | if test $with_gnu_ld = no; then |
|
|
5937 | case "$host_cpu" in |
|
|
5938 | ia64*|hppa*64*) |
|
|
5939 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
|
|
5940 | ;; |
|
|
5941 | *) |
|
|
5942 | _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' |
|
|
5943 | ;; |
|
|
5944 | esac |
|
|
5945 | fi |
|
|
5946 | else |
|
|
5947 | # FIXME: insert proper C++ library support |
|
|
5948 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
5949 | fi |
|
|
5950 | ;; |
|
|
5951 | esac |
|
|
5952 | ;; |
|
|
5953 | irix5* | irix6*) |
|
|
5954 | case $cc_basename in |
|
|
5955 | CC) |
|
|
5956 | # SGI C++ |
|
|
5957 | _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 ${objdir}/so_locations -o $lib' |
|
|
5958 | |
|
|
5959 | # Archives containing C++ object files must be created using |
|
|
5960 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
|
|
5961 | # necessary to make sure instantiated templates are included |
|
|
5962 | # in the archive. |
|
|
5963 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
|
|
5964 | ;; |
|
|
5965 | *) |
|
|
5966 | if test "$GXX" = yes; then |
|
|
5967 | if test "$with_gnu_ld" = no; then |
|
|
5968 | _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}${objdir}/so_locations -o $lib' |
|
|
5969 | else |
|
|
5970 | _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' |
|
|
5971 | fi |
|
|
5972 | fi |
|
|
5973 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
5974 | ;; |
|
|
5975 | esac |
|
|
5976 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
5977 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
5978 | _LT_AC_TAGVAR(inherit_rpath, $1)=yes |
|
|
5979 | ;; |
|
|
5980 | linux*) |
|
|
5981 | case $cc_basename in |
|
|
5982 | KCC) |
|
|
5983 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
5984 | |
|
|
5985 | # KCC will only create a shared library if the output file |
|
|
5986 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
5987 | # to its proper name (with version) after linking. |
|
|
5988 | _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' |
|
|
5989 | _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' |
|
|
5990 | # Commands to make compiler produce verbose output that lists |
|
|
5991 | # what "hidden" libraries, object files and flags are used when |
|
|
5992 | # linking a shared library. |
|
|
5993 | # |
|
|
5994 | # There doesn't appear to be a way to prevent this compiler from |
|
|
5995 | # explicitly linking system object files so we need to strip them |
|
|
5996 | # from the output so that they don't get included in the library |
|
|
5997 | # dependencies. |
|
|
5998 | 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' |
|
|
5999 | |
|
|
6000 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' |
|
|
6001 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
|
|
6002 | |
|
|
6003 | # Archives containing C++ object files must be created using |
|
|
6004 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
|
6005 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
|
|
6006 | ;; |
|
|
6007 | icpc) |
|
|
6008 | # Intel C++ |
|
|
6009 | with_gnu_ld=yes |
|
|
6010 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
6011 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6012 | _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' |
|
|
6013 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
|
|
6014 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
|
|
6015 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
|
6016 | ;; |
|
|
6017 | cxx) |
|
|
6018 | # Compaq C++ |
|
|
6019 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6020 | _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' |
|
|
6021 | |
|
|
6022 | runpath_var=LD_RUN_PATH |
|
|
6023 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
|
|
6024 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
6025 | |
|
|
6026 | # Commands to make compiler produce verbose output that lists |
|
|
6027 | # what "hidden" libraries, object files and flags are used when |
|
|
6028 | # linking a shared library. |
|
|
6029 | # |
|
|
6030 | # There doesn't appear to be a way to prevent this compiler from |
|
|
6031 | # explicitly linking system object files so we need to strip them |
|
|
6032 | # from the output so that they don't get included in the library |
|
|
6033 | # dependencies. |
|
|
6034 | 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' |
|
|
6035 | ;; |
|
|
6036 | esac |
|
|
6037 | ;; |
|
|
6038 | lynxos*) |
|
|
6039 | # FIXME: insert proper C++ library support |
|
|
6040 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6041 | ;; |
|
|
6042 | m88k*) |
|
|
6043 | # FIXME: insert proper C++ library support |
|
|
6044 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6045 | ;; |
|
|
6046 | mvs*) |
|
|
6047 | case $cc_basename in |
|
|
6048 | cxx) |
|
|
6049 | # FIXME: insert proper C++ library support |
|
|
6050 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6051 | ;; |
|
|
6052 | *) |
|
|
6053 | # FIXME: insert proper C++ library support |
|
|
6054 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6055 | ;; |
|
|
6056 | esac |
|
|
6057 | ;; |
|
|
6058 | netbsd*) |
|
|
6059 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
|
|
6060 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
|
|
6061 | wlarc= |
|
|
6062 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
|
|
6063 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
6064 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
6065 | fi |
|
|
6066 | # Workaround some broken pre-1.5 toolchains |
|
|
6067 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
|
|
6068 | ;; |
|
|
6069 | osf3*) |
|
|
6070 | case $cc_basename in |
|
|
6071 | KCC) |
|
|
6072 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
6073 | |
|
|
6074 | # KCC will only create a shared library if the output file |
|
|
6075 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
6076 | # to its proper name (with version) after linking. |
|
|
6077 | _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' |
|
|
6078 | |
|
|
6079 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
|
|
6080 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
6081 | |
|
|
6082 | # Archives containing C++ object files must be created using |
|
|
6083 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
|
6084 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
|
|
6085 | |
|
|
6086 | ;; |
|
|
6087 | RCC) |
|
|
6088 | # Rational C++ 2.4.1 |
|
|
6089 | # FIXME: insert proper C++ library support |
|
|
6090 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6091 | ;; |
|
|
6092 | cxx) |
|
|
6093 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6094 | _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 ${objdir}/so_locations -o $lib' |
|
|
6095 | |
|
|
6096 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
6097 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
6098 | |
|
|
6099 | # Commands to make compiler produce verbose output that lists |
|
|
6100 | # what "hidden" libraries, object files and flags are used when |
|
|
6101 | # linking a shared library. |
|
|
6102 | # |
|
|
6103 | # There doesn't appear to be a way to prevent this compiler from |
|
|
6104 | # explicitly linking system object files so we need to strip them |
|
|
6105 | # from the output so that they don't get included in the library |
|
|
6106 | # dependencies. |
|
|
6107 | 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' |
|
|
6108 | ;; |
|
|
6109 | *) |
|
|
6110 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
6111 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6112 | _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}${objdir}/so_locations -o $lib' |
|
|
6113 | |
|
|
6114 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
6115 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
6116 | |
|
|
6117 | # Commands to make compiler produce verbose output that lists |
|
|
6118 | # what "hidden" libraries, object files and flags are used when |
|
|
6119 | # linking a shared library. |
|
|
6120 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
|
|
6121 | |
|
|
6122 | else |
|
|
6123 | # FIXME: insert proper C++ library support |
|
|
6124 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6125 | fi |
|
|
6126 | ;; |
|
|
6127 | esac |
|
|
6128 | ;; |
|
|
6129 | osf4* | osf5*) |
|
|
6130 | case $cc_basename in |
|
|
6131 | KCC) |
|
|
6132 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
6133 | |
|
|
6134 | # KCC will only create a shared library if the output file |
|
|
6135 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
6136 | # to its proper name (with version) after linking. |
|
|
6137 | _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' |
|
|
6138 | |
|
|
6139 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
|
|
6140 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
6141 | |
|
|
6142 | # Archives containing C++ object files must be created using |
|
|
6143 | # the KAI C++ compiler. |
|
|
6144 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
|
|
6145 | ;; |
|
|
6146 | RCC) |
|
|
6147 | # Rational C++ 2.4.1 |
|
|
6148 | # FIXME: insert proper C++ library support |
|
|
6149 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6150 | ;; |
|
|
6151 | cxx) |
|
|
6152 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
|
|
6153 | _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 ${objdir}/so_locations -o $lib' |
|
|
6154 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
|
|
6155 | echo "-hidden">> $lib.exp~ |
|
|
6156 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
|
|
6157 | $rm $lib.exp' |
|
|
6158 | |
|
|
6159 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
|
|
6160 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
6161 | |
|
|
6162 | # Commands to make compiler produce verbose output that lists |
|
|
6163 | # what "hidden" libraries, object files and flags are used when |
|
|
6164 | # linking a shared library. |
|
|
6165 | # |
|
|
6166 | # There doesn't appear to be a way to prevent this compiler from |
|
|
6167 | # explicitly linking system object files so we need to strip them |
|
|
6168 | # from the output so that they don't get included in the library |
|
|
6169 | # dependencies. |
|
|
6170 | 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' |
|
|
6171 | ;; |
|
|
6172 | *) |
|
|
6173 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
6174 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6175 | _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}${objdir}/so_locations -o $lib' |
|
|
6176 | |
|
|
6177 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
6178 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
6179 | |
|
|
6180 | # Commands to make compiler produce verbose output that lists |
|
|
6181 | # what "hidden" libraries, object files and flags are used when |
|
|
6182 | # linking a shared library. |
|
|
6183 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
|
|
6184 | |
|
|
6185 | else |
|
|
6186 | # FIXME: insert proper C++ library support |
|
|
6187 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6188 | fi |
|
|
6189 | ;; |
|
|
6190 | esac |
|
|
6191 | ;; |
|
|
6192 | psos*) |
|
|
6193 | # FIXME: insert proper C++ library support |
|
|
6194 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6195 | ;; |
|
|
6196 | sco*) |
|
|
6197 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
6198 | case $cc_basename in |
|
|
6199 | CC) |
|
|
6200 | # FIXME: insert proper C++ library support |
|
|
6201 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6202 | ;; |
|
|
6203 | *) |
|
|
6204 | # FIXME: insert proper C++ library support |
|
|
6205 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6206 | ;; |
|
|
6207 | esac |
|
|
6208 | ;; |
|
|
6209 | sunos4*) |
|
|
6210 | case $cc_basename in |
|
|
6211 | CC) |
|
|
6212 | # Sun C++ 4.x |
|
|
6213 | # FIXME: insert proper C++ library support |
|
|
6214 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6215 | ;; |
|
|
6216 | lcc) |
|
|
6217 | # Lucid |
|
|
6218 | # FIXME: insert proper C++ library support |
|
|
6219 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6220 | ;; |
|
|
6221 | *) |
|
|
6222 | # FIXME: insert proper C++ library support |
|
|
6223 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6224 | ;; |
|
|
6225 | esac |
|
|
6226 | ;; |
|
|
6227 | solaris*) |
|
|
6228 | case $cc_basename in |
|
|
6229 | CC) |
|
|
6230 | # Sun C++ 4.2, 5.x and Centerline C++ |
|
|
6231 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
|
|
6232 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
6233 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6234 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
6235 | |
|
|
6236 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
|
|
6237 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
6238 | case $host_os in |
|
|
6239 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
6240 | *) |
|
|
6241 | # The C++ compiler is used as linker so we must use $wl |
|
|
6242 | # flag to pass the commands to the underlying system |
|
|
6243 | # linker. We must also pass each convience library through |
|
|
6244 | # to the system linker between allextract/defaultextract. |
|
|
6245 | # The C++ compiler will combine linker options so we |
|
|
6246 | # cannot just pass the convience library names through |
|
|
6247 | # without $wl. |
|
|
6248 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
6249 | _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' |
|
|
6250 | ;; |
|
|
6251 | esac |
|
|
6252 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
6253 | |
|
|
6254 | # Commands to make compiler produce verbose output that lists |
|
|
6255 | # what "hidden" libraries, object files and flags are used when |
|
|
6256 | # linking a shared library. |
|
|
6257 | # |
|
|
6258 | # There doesn't appear to be a way to prevent this compiler from |
|
|
6259 | # explicitly linking system object files so we need to strip them |
|
|
6260 | # from the output so that they don't get included in the library |
|
|
6261 | # dependencies. |
|
|
6262 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
6263 | |
|
|
6264 | # Archives containing C++ object files must be created using |
|
|
6265 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
|
6266 | # necessary to make sure instantiated templates are included |
|
|
6267 | # in the archive. |
|
|
6268 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
|
|
6269 | ;; |
|
|
6270 | gcx) |
|
|
6271 | # Green Hills C++ Compiler |
|
|
6272 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
6273 | |
|
|
6274 | # The C++ compiler must be used to create the archive. |
|
|
6275 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
|
|
6276 | ;; |
|
|
6277 | *) |
|
|
6278 | # GNU C++ compiler with Solaris linker |
|
|
6279 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
6280 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
|
|
6281 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
|
|
6282 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
6283 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6284 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
6285 | |
|
|
6286 | # Commands to make compiler produce verbose output that lists |
|
|
6287 | # what "hidden" libraries, object files and flags are used when |
|
|
6288 | # linking a shared library. |
|
|
6289 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP \"\-L\"" |
|
|
6290 | else |
|
|
6291 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
|
|
6292 | # platform. |
|
|
6293 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
6294 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6295 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
6296 | |
|
|
6297 | # Commands to make compiler produce verbose output that lists |
|
|
6298 | # what "hidden" libraries, object files and flags are used when |
|
|
6299 | # linking a shared library. |
|
|
6300 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP \"\-L\"" |
|
|
6301 | fi |
|
|
6302 | |
|
|
6303 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
|
|
6304 | fi |
|
|
6305 | ;; |
|
|
6306 | esac |
|
|
6307 | ;; |
|
|
6308 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
|
|
6309 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
6310 | ;; |
|
|
6311 | tandem*) |
|
|
6312 | case $cc_basename in |
|
|
6313 | NCC) |
|
|
6314 | # NonStop-UX NCC 3.20 |
|
|
6315 | # FIXME: insert proper C++ library support |
|
|
6316 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6317 | ;; |
|
|
6318 | *) |
|
|
6319 | # FIXME: insert proper C++ library support |
|
|
6320 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6321 | ;; |
|
|
6322 | esac |
|
|
6323 | ;; |
|
|
6324 | vxworks*) |
|
|
6325 | # FIXME: insert proper C++ library support |
|
|
6326 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6327 | ;; |
|
|
6328 | *) |
|
|
6329 | # FIXME: insert proper C++ library support |
|
|
6330 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
6331 | ;; |
|
|
6332 | esac |
|
|
6333 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
|
|
6334 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
|
|
6335 | |
|
|
6336 | _LT_AC_TAGVAR(GCC, $1)="$GXX" |
|
|
6337 | _LT_AC_TAGVAR(LD, $1)="$LD" |
|
|
6338 | |
|
|
6339 | ## CAVEAT EMPTOR: |
|
|
6340 | ## There is no encapsulation within the following macros, do not change |
|
|
6341 | ## the running order or otherwise move them around unless you know exactly |
|
|
6342 | ## what you are doing... |
|
|
6343 | AC_LIBTOOL_POSTDEP_PREDEP($1) |
|
|
6344 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
|
|
6345 | AC_LIBTOOL_PROG_CC_C_O($1) |
|
|
6346 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
|
6347 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
|
|
6348 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
6349 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
|
|
6350 | AC_LIBTOOL_SYS_LIB_STRIP |
|
|
6351 | AC_LIBTOOL_DLOPEN_SELF($1) |
|
|
6352 | |
|
|
6353 | _LT_CONFIG($1) |
|
|
6354 | fi |
|
|
6355 | |
|
|
6356 | AC_LANG_POP |
|
|
6357 | CC=$lt_save_CC |
|
|
6358 | LDCXX=$LD |
|
|
6359 | LD=$lt_save_LD |
|
|
6360 | GCC=$lt_save_GCC |
|
|
6361 | with_gnu_ldcxx=$with_gnu_ld |
|
|
6362 | with_gnu_ld=$lt_save_with_gnu_ld |
|
|
6363 | lt_cv_path_LDCXX=$lt_cv_path_LD |
|
|
6364 | lt_cv_path_LD=$lt_save_path_LD |
|
|
6365 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
|
|
6366 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
|
|
6367 | ])# _LT_LANG_CXX_CONFIG |
|
|
6368 | |
|
|
6369 | |
|
|
6370 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
5843 | # --------------------------------- |
6371 | # ------------------------------------ |
5844 | AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) |
6372 | # Figure out "hidden" library dependencies from verbose |
|
|
6373 | # compiler output when linking a shared library. |
|
|
6374 | # Parse the compiler output and extract the necessary |
|
|
6375 | # objects, libraries and library flags. |
|
|
6376 | AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ |
|
|
6377 | # Dependencies to place before and after the object being linked: |
|
|
6378 | _LT_AC_TAGVAR(predep_objects, $1)= |
|
|
6379 | _LT_AC_TAGVAR(postdep_objects, $1)= |
|
|
6380 | _LT_AC_TAGVAR(predeps, $1)= |
|
|
6381 | _LT_AC_TAGVAR(postdeps, $1)= |
|
|
6382 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
5845 | |
6383 | |
5846 | |
6384 | dnl we can't use the lt_simple_compile_test_code here, |
5847 | # old names |
6385 | dnl because it contains code intended for an executable, |
5848 | AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) |
6386 | dnl not a library. It's possible we should let each |
5849 | AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) |
6387 | dnl tag define a new lt_????_link_test_code variable, |
5850 | AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) |
6388 | dnl but it's only used here... |
5851 | AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) |
6389 | m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF |
5852 | AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) |
6390 | int a; |
5853 | AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) |
6391 | void foo (void) { a = 0; } |
5854 | AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) |
6392 | _LT_EOF |
5855 | |
6393 | ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF |
5856 | # This is just to silence aclocal about the macro not being used |
6394 | class Foo |
5857 | ifelse([AC_DISABLE_FAST_INSTALL]) |
6395 | { |
5858 | |
6396 | public: |
5859 | AC_DEFUN([LT_AC_PROG_GCJ], |
6397 | Foo (void) { a = 0; } |
5860 | [AC_CHECK_TOOL(GCJ, gcj, no) |
6398 | private: |
5861 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" |
6399 | int a; |
5862 | AC_SUBST(GCJFLAGS) |
6400 | }; |
|
|
6401 | _LT_EOF |
|
|
6402 | ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF |
|
|
6403 | subroutine foo |
|
|
6404 | implicit none |
|
|
6405 | integer*4 a |
|
|
6406 | a=0 |
|
|
6407 | return |
|
|
6408 | end |
|
|
6409 | _LT_EOF |
|
|
6410 | ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF |
|
|
6411 | public class foo { |
|
|
6412 | private int a; |
|
|
6413 | public void bar (void) { |
|
|
6414 | a = 0; |
|
|
6415 | } |
|
|
6416 | }; |
|
|
6417 | _LT_EOF |
5863 | ]) |
6418 | ]) |
|
|
6419 | dnl Parse the compiler output and extract the necessary |
|
|
6420 | dnl objects, libraries and library flags. |
|
|
6421 | if AC_TRY_EVAL(ac_compile); then |
|
|
6422 | # Parse the compiler output and extract the necessary |
|
|
6423 | # objects, libraries and library flags. |
5864 | |
6424 | |
|
|
6425 | # Sentinel used to keep track of whether or not we are before |
|
|
6426 | # the conftest object file. |
|
|
6427 | pre_test_object_deps_done=no |
|
|
6428 | |
|
|
6429 | # The `*' in the case matches for architectures that use `case' in |
|
|
6430 | # $output_verbose_cmd can trigger glob expansion during the loop |
|
|
6431 | # eval without this substitution. |
|
|
6432 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
|
|
6433 | |
|
|
6434 | for p in `eval $output_verbose_link_cmd`; do |
|
|
6435 | case $p in |
|
|
6436 | |
|
|
6437 | -L* | -R* | -l*) |
|
|
6438 | # Some compilers place space between "-{L,R}" and the path. |
|
|
6439 | # Remove the space. |
|
|
6440 | if test $p = "-L" || |
|
|
6441 | test $p = "-R"; then |
|
|
6442 | prev=$p |
|
|
6443 | continue |
|
|
6444 | else |
|
|
6445 | prev= |
|
|
6446 | fi |
|
|
6447 | |
|
|
6448 | if test "$pre_test_object_deps_done" = no; then |
|
|
6449 | case $p in |
|
|
6450 | -L* | -R*) |
|
|
6451 | # Internal compiler library paths should come after those |
|
|
6452 | # provided the user. The postdeps already come after the |
|
|
6453 | # user supplied libs so there is no need to process them. |
|
|
6454 | if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then |
|
|
6455 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
|
|
6456 | else |
|
|
6457 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" |
|
|
6458 | fi |
|
|
6459 | ;; |
|
|
6460 | # The "-l" case would never come before the object being |
|
|
6461 | # linked, so don't bother handling this case. |
|
|
6462 | esac |
|
|
6463 | else |
|
|
6464 | if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then |
|
|
6465 | _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" |
|
|
6466 | else |
|
|
6467 | _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" |
|
|
6468 | fi |
|
|
6469 | fi |
|
|
6470 | ;; |
|
|
6471 | |
|
|
6472 | *.$objext) |
|
|
6473 | # This assumes that the test object file only shows up |
|
|
6474 | # once in the compiler output. |
|
|
6475 | if test "$p" = "conftest.$objext"; then |
|
|
6476 | pre_test_object_deps_done=yes |
|
|
6477 | continue |
|
|
6478 | fi |
|
|
6479 | |
|
|
6480 | if test "$pre_test_object_deps_done" = no; then |
|
|
6481 | if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then |
|
|
6482 | _LT_AC_TAGVAR(predep_objects, $1)="$p" |
|
|
6483 | else |
|
|
6484 | _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" |
|
|
6485 | fi |
|
|
6486 | else |
|
|
6487 | if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then |
|
|
6488 | _LT_AC_TAGVAR(postdep_objects, $1)="$p" |
|
|
6489 | else |
|
|
6490 | _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" |
|
|
6491 | fi |
|
|
6492 | fi |
|
|
6493 | ;; |
|
|
6494 | |
|
|
6495 | *) ;; # Ignore the rest. |
|
|
6496 | |
|
|
6497 | esac |
|
|
6498 | done |
|
|
6499 | |
|
|
6500 | # Clean up. |
|
|
6501 | rm -f a.out a.exe |
|
|
6502 | else |
|
|
6503 | echo "libtool.m4: error: problem compiling $1 test program" |
|
|
6504 | fi |
|
|
6505 | |
|
|
6506 | $rm -f confest.$objext |
|
|
6507 | |
|
|
6508 | case " $_LT_AC_TAGVAR(postdeps, $1) " in |
|
|
6509 | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
|
|
6510 | esac |
|
|
6511 | _LT_TAGDECL([], [predep_objects], [1], |
|
|
6512 | [Dependencies to place before and after the objects being linked to |
|
|
6513 | create a shared library]) |
|
|
6514 | _LT_TAGDECL([], [postdep_objects], [1]) |
|
|
6515 | _LT_TAGDECL([], [predeps], [1]) |
|
|
6516 | _LT_TAGDECL([], [postdeps], [1]) |
|
|
6517 | _LT_TAGDECL([], [compiler_lib_search_path], [1], |
|
|
6518 | [The library search path used internally by the compiler when linking |
|
|
6519 | a shared library]) |
|
|
6520 | ])# AC_LIBTOOL_POSTDEP_PREDEP |
|
|
6521 | |
|
|
6522 | # _LT_LANG_F77_CONFIG([TAG]) |
|
|
6523 | # -------------------------- |
|
|
6524 | # Ensure that the configuration variables for a Fortran 77 compiler are |
|
|
6525 | # suitably defined. These variables are subsequently used by _LT_CONFIG |
|
|
6526 | # to write the compiler configuration to `libtool'. |
|
|
6527 | m4_define([_LT_LANG_F77_CONFIG], |
|
|
6528 | [AC_REQUIRE([AC_PROG_F77]) |
|
|
6529 | AC_LANG_PUSH(Fortran 77) |
|
|
6530 | |
|
|
6531 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
6532 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
|
|
6533 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
|
|
6534 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
|
|
6535 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
|
|
6536 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
6537 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
|
|
6538 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
|
|
6539 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
|
|
6540 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
|
|
6541 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
|
|
6542 | _LT_AC_TAGVAR(inherit_rpath, $1)=no |
|
|
6543 | _LT_AC_TAGVAR(module_cmds, $1)= |
|
|
6544 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
|
|
6545 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
|
|
6546 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
|
|
6547 | _LT_AC_TAGVAR(no_undefined_flag, $1)= |
|
|
6548 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
|
|
6549 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
|
|
6550 | |
|
|
6551 | # Source file extension for f77 test sources. |
|
|
6552 | ac_ext=f |
|
|
6553 | |
|
|
6554 | # Object file extension for compiled f77 test sources. |
|
|
6555 | objext=o |
|
|
6556 | _LT_AC_TAGVAR(objext, $1)=$objext |
|
|
6557 | |
|
|
6558 | # Code to be used in simple compile tests |
|
|
6559 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
|
|
6560 | |
|
|
6561 | # Code to be used in simple link tests |
|
|
6562 | lt_simple_link_test_code=" program t\n end\n" |
|
|
6563 | |
|
|
6564 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
6565 | _LT_AC_SYS_COMPILER |
|
|
6566 | |
|
|
6567 | # Allow CC to be a program name with arguments. |
|
|
6568 | lt_save_CC="$CC" |
|
|
6569 | CC=${F77-"f77"} |
|
|
6570 | compiler=$CC |
|
|
6571 | _LT_AC_TAGVAR(compiler, $1)=$CC |
|
|
6572 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
|
|
6573 | |
|
|
6574 | if test -n "$compiler"; then |
|
|
6575 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
|
|
6576 | AC_MSG_RESULT([$can_build_shared]) |
|
|
6577 | |
|
|
6578 | AC_MSG_CHECKING([whether to build shared libraries]) |
|
|
6579 | test "$can_build_shared" = "no" && enable_shared=no |
|
|
6580 | |
|
|
6581 | # On AIX, shared libraries and static libraries use the same namespace, and |
|
|
6582 | # are all built from PIC. |
|
|
6583 | case "$host_os" in |
|
|
6584 | aix3*) |
|
|
6585 | test "$enable_shared" = yes && enable_static=no |
|
|
6586 | if test -n "$RANLIB"; then |
|
|
6587 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
|
6588 | postinstall_cmds='$RANLIB $lib' |
|
|
6589 | fi |
|
|
6590 | ;; |
|
|
6591 | aix4* | aix5*) |
|
|
6592 | test "$enable_shared" = yes && enable_static=no |
|
|
6593 | ;; |
|
|
6594 | esac |
|
|
6595 | AC_MSG_RESULT([$enable_shared]) |
|
|
6596 | |
|
|
6597 | AC_MSG_CHECKING([whether to build static libraries]) |
|
|
6598 | # Make sure either enable_shared or enable_static is yes. |
|
|
6599 | test "$enable_shared" = yes || enable_static=yes |
|
|
6600 | AC_MSG_RESULT([$enable_static]) |
|
|
6601 | |
|
|
6602 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
|
|
6603 | |
|
|
6604 | _LT_AC_TAGVAR(GCC, $1)="$G77" |
|
|
6605 | _LT_AC_TAGVAR(LD, $1)="$LD" |
|
|
6606 | |
|
|
6607 | ## CAVEAT EMPTOR: |
|
|
6608 | ## There is no encapsulation within the following macros, do not change |
|
|
6609 | ## the running order or otherwise move them around unless you know exactly |
|
|
6610 | ## what you are doing... |
|
|
6611 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
|
|
6612 | AC_LIBTOOL_PROG_CC_C_O($1) |
|
|
6613 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
|
6614 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
|
|
6615 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
6616 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
|
|
6617 | AC_LIBTOOL_SYS_LIB_STRIP |
|
|
6618 | |
|
|
6619 | _LT_CONFIG($1) |
|
|
6620 | fi |
|
|
6621 | |
|
|
6622 | AC_LANG_POP |
|
|
6623 | CC="$lt_save_CC" |
|
|
6624 | ])# _LT_LANG_F77_CONFIG |
|
|
6625 | |
|
|
6626 | |
|
|
6627 | # _LT_LANG_GCJ_CONFIG([TAG]) |
|
|
6628 | # -------------------------- |
|
|
6629 | # Ensure that the configuration variables for the GNU Java Compiler compiler |
|
|
6630 | # are suitably defined. These variables are subsequently used by _LT_CONFIG |
|
|
6631 | # to write the compiler configuration to `libtool'. |
|
|
6632 | m4_define([_LT_LANG_GCJ_CONFIG], |
|
|
6633 | [AC_REQUIRE([LT_PROG_GCJ]) |
|
|
6634 | AC_LANG_SAVE |
|
|
6635 | |
|
|
6636 | # Source file extension for Java test sources. |
|
|
6637 | ac_ext=java |
|
|
6638 | |
|
|
6639 | # Object file extension for compiled Java test sources. |
|
|
6640 | objext=o |
|
|
6641 | _LT_AC_TAGVAR(objext, $1)=$objext |
|
|
6642 | |
|
|
6643 | # Code to be used in simple compile tests |
|
|
6644 | lt_simple_compile_test_code="class foo {}\n" |
|
|
6645 | |
|
|
6646 | # Code to be used in simple link tests |
|
|
6647 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
|
|
6648 | |
|
|
6649 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
6650 | _LT_AC_SYS_COMPILER |
|
|
6651 | |
|
|
6652 | # Allow CC to be a program name with arguments. |
|
|
6653 | lt_save_CC="$CC" |
|
|
6654 | CC=${GCJ-"gcj"} |
|
|
6655 | compiler=$CC |
|
|
6656 | _LT_AC_TAGVAR(compiler, $1)=$CC |
|
|
6657 | |
|
|
6658 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
|
|
6659 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
6660 | |
|
|
6661 | if test -n "$compiler"; then |
|
|
6662 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
|
|
6663 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
|
|
6664 | AC_LIBTOOL_PROG_CC_C_O($1) |
|
|
6665 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
|
6666 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
|
|
6667 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
6668 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
|
|
6669 | AC_LIBTOOL_SYS_LIB_STRIP |
|
|
6670 | AC_LIBTOOL_DLOPEN_SELF($1) |
|
|
6671 | |
|
|
6672 | _LT_CONFIG($1) |
|
|
6673 | fi |
|
|
6674 | |
|
|
6675 | AC_LANG_RESTORE |
|
|
6676 | CC="$lt_save_CC" |
|
|
6677 | ])# _LT_LANG_GCJ_CONFIG |
|
|
6678 | |
|
|
6679 | |
|
|
6680 | # _LT_LANG_RC_CONFIG([TAG]) |
|
|
6681 | # -------------------------- |
|
|
6682 | # Ensure that the configuration variables for the Windows resource compiler |
|
|
6683 | # are suitably defined. These variables are subsequently used by _LT_CONFIG |
|
|
6684 | # to write the compiler configuration to `libtool'. |
|
|
6685 | m4_define([_LT_LANG_RC_CONFIG], |
|
|
6686 | [AC_REQUIRE([LT_PROG_RC]) |
|
|
6687 | AC_LANG_SAVE |
|
|
6688 | |
|
|
6689 | # Source file extension for RC test sources. |
|
|
6690 | ac_ext=rc |
|
|
6691 | |
|
|
6692 | # Object file extension for compiled RC test sources. |
|
|
6693 | objext=o |
|
|
6694 | _LT_AC_TAGVAR(objext, $1)=$objext |
|
|
6695 | |
|
|
6696 | # Code to be used in simple compile tests |
|
|
6697 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
|
|
6698 | |
|
|
6699 | # Code to be used in simple link tests |
|
|
6700 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
|
|
6701 | |
|
|
6702 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
6703 | _LT_AC_SYS_COMPILER |
|
|
6704 | |
|
|
6705 | # Allow CC to be a program name with arguments. |
|
|
6706 | lt_save_CC="$CC" |
|
|
6707 | CC=${RC-"windres"} |
|
|
6708 | compiler=$CC |
|
|
6709 | _LT_AC_TAGVAR(compiler, $1)=$CC |
|
|
6710 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
|
|
6711 | |
|
|
6712 | if test -n "$compiler"; then |
|
|
6713 | : |
|
|
6714 | _LT_CONFIG($1) |
|
|
6715 | fi |
|
|
6716 | |
|
|
6717 | AC_LANG_RESTORE |
|
|
6718 | CC="$lt_save_CC" |
|
|
6719 | ])# _LT_LANG_RC_CONFIG |
|
|
6720 | |
|
|
6721 | |
5865 | AC_DEFUN([LT_AC_PROG_RC], |
6722 | AC_DEFUN([LT_PROG_GCJ], |
5866 | [AC_CHECK_TOOL(RC, windres, no) |
6723 | [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], |
|
|
6724 | [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], |
|
|
6725 | [AC_CHECK_TOOL(GCJ, gcj,) |
|
|
6726 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" |
|
|
6727 | AC_SUBST(GCJFLAGS)])])dnl |
5867 | ]) |
6728 | ]) |
|
|
6729 | AU_DEFUN([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) |
5868 | |
6730 | |
5869 | # NOTE: This macro has been submitted for inclusion into # |
6731 | AC_DEFUN([LT_PROG_RC], |
5870 | # GNU Autoconf as AC_PROG_SED. When it is available in # |
6732 | [AC_CHECK_TOOL(RC, windres,) |
5871 | # a released version of Autoconf we should remove this # |
6733 | ]) |
5872 | # macro and use it instead. # |
6734 | AU_DEFUN([LT_AC_PROG_RC], [LT_PROG_RC]) |
|
|
6735 | |
|
|
6736 | |
|
|
6737 | # LT_AC_PROG_EGREP |
|
|
6738 | # ---------------- |
|
|
6739 | # If we don't have a new enough Autoconf to choose the best grep |
|
|
6740 | # available, choose the one first in the user's PATH. |
|
|
6741 | AC_DEFUN([LT_AC_PROG_EGREP], |
|
|
6742 | [AC_REQUIRE([AC_PROG_EGREP]) |
|
|
6743 | test -z "$GREP" && GREP=grep |
|
|
6744 | _LT_DECL([], [GREP], [1], [A grep program that handles long line]) |
|
|
6745 | _LT_DECL([], [EGREP], [1], [An ERE matcher]) |
|
|
6746 | ]) |
|
|
6747 | |
|
|
6748 | |
5873 | # LT_AC_PROG_SED |
6749 | # LT_AC_PROG_SED |
5874 | # -------------- |
6750 | # -------------- |
5875 | # Check for a fully-functional sed program, that truncates |
6751 | # Check for a fully-functional sed program, that truncates |
5876 | # as few characters as possible. Prefer GNU sed if found. |
6752 | # as few characters as possible. Prefer GNU sed if found. |
5877 | AC_DEFUN([LT_AC_PROG_SED], |
6753 | AC_DEFUN([LT_AC_PROG_SED], |
|
|
6754 | [AC_PROG_SED |
|
|
6755 | test -z "$SED" && SED=sed |
|
|
6756 | _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) |
|
|
6757 | _LT_DECL([], [Xsed], ["\$SED -e s/^X//"], |
|
|
6758 | [Sed that helps us avoid accidentally triggering echo(1) options like -n]) |
|
|
6759 | ])# LT_AC_PROG_SED |
|
|
6760 | |
|
|
6761 | m4_ifndef([AC_PROG_SED], [ |
|
|
6762 | # NOTE: This macro has been submitted for inclusion into # |
|
|
6763 | # GNU Autoconf as AC_PROG_SED. When it is available in # |
|
|
6764 | # a released version of Autoconf we should remove this # |
|
|
6765 | # macro and use it instead. # |
|
|
6766 | |
|
|
6767 | m4_define([AC_PROG_SED], |
5878 | [AC_MSG_CHECKING([for a sed that does not truncate output]) |
6768 | [AC_MSG_CHECKING([for a sed that does not truncate output]) |
5879 | AC_CACHE_VAL(lt_cv_path_SED, |
6769 | AC_CACHE_VAL(lt_cv_path_SED, |
5880 | [# Loop through the user's path and test for sed and gsed. |
6770 | [# Loop through the user's path and test for sed and gsed. |
5881 | # Then use that list of sed's as ones to test for truncation. |
6771 | # Then use that list of sed's as ones to test for truncation. |
5882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
… | |
… | |
5921 | lt_cv_path_SED=$lt_ac_sed |
6811 | lt_cv_path_SED=$lt_ac_sed |
5922 | fi |
6812 | fi |
5923 | done |
6813 | done |
5924 | done |
6814 | done |
5925 | SED=$lt_cv_path_SED |
6815 | SED=$lt_cv_path_SED |
|
|
6816 | AC_SUBST([SED]) |
5926 | ]) |
6817 | ]) |
5927 | AC_MSG_RESULT([$SED]) |
6818 | AC_MSG_RESULT([$SED]) |
|
|
6819 | ])#AC_PROG_SED |
|
|
6820 | ])#m4_ifndef |
|
|
6821 | |
|
|
6822 | # Helper functions for option handling. -*- Autoconf -*- |
|
|
6823 | # Written by Gary V. Vaughan <gary@gnu.org> |
|
|
6824 | |
|
|
6825 | # Copyright (C) 2004 Free Software Foundation, Inc. |
|
|
6826 | |
|
|
6827 | # This program is free software; you can redistribute it and/or modify |
|
|
6828 | # it under the terms of the GNU General Public License as published by |
|
|
6829 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
6830 | # any later version. |
|
|
6831 | # |
|
|
6832 | # This program is distributed in the hope that it will be useful, |
|
|
6833 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
6834 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
6835 | # GNU General Public License for more details. |
|
|
6836 | # |
|
|
6837 | # You should have received a copy of the GNU General Public License |
|
|
6838 | # along with this program; if not, write to the Free Software |
|
|
6839 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
6840 | # 02111-1307, USA. |
|
|
6841 | |
|
|
6842 | # serial 1 |
|
|
6843 | |
|
|
6844 | # This is to help aclocal find these macros, as it can't see m4_define. |
|
|
6845 | AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) |
|
|
6846 | |
|
|
6847 | |
|
|
6848 | # _LT_MANGLE_OPTION(NAME) |
|
|
6849 | # ----------------------- |
|
|
6850 | m4_define([_LT_MANGLE_OPTION], |
|
|
6851 | [[_LT_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
|
|
6852 | |
|
|
6853 | |
|
|
6854 | # _LT_SET_OPTION(NAME) |
|
|
6855 | # ------------------------------ |
|
|
6856 | # Set option NAME. Other NAMEs are saved as a flag. |
|
|
6857 | m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1]))]) |
|
|
6858 | |
|
|
6859 | |
|
|
6860 | # _LT_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
|
|
6861 | # ------------------------------------------- |
|
|
6862 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
|
|
6863 | m4_define([_LT_IF_OPTION], |
|
|
6864 | [m4_ifdef(_LT_MANGLE_OPTION([$1]), [$2], [$3])]) |
|
|
6865 | |
|
|
6866 | |
|
|
6867 | # _LT_UNLESS_OPTIONS(OPTIONS, IF-NOT-SET) |
|
|
6868 | # --------------------------------------- |
|
|
6869 | # Execute IF-NOT-SET if all OPTIONS are not set. |
|
|
6870 | m4_define([_LT_UNLESS_OPTIONS], |
|
|
6871 | [AC_FOREACH([_LT_Option], [$1], |
|
|
6872 | [m4_ifdef(_LT_MANGLE_OPTION(_LT_Option), |
|
|
6873 | [m4_define([$0_found])])])[]dnl |
|
|
6874 | m4_ifdef([$0_found], [m4_undefine([$0_found])], [$2 |
|
|
6875 | ])[]dnl |
5928 | ]) |
6876 | ]) |
5929 | |
6877 | |
5930 | # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. |
6878 | |
|
|
6879 | # _LT_SET_OPTIONS(OPTIONS) |
|
|
6880 | # ------------------------ |
|
|
6881 | # OPTIONS is a space-separated list of Automake options. |
|
|
6882 | # If any OPTION has a handler macro declared with LT_OPTION_DEFINE, |
|
|
6883 | # despatch to that macro; otherwise complain about the unknown option |
|
|
6884 | # and exit. |
|
|
6885 | m4_define([_LT_SET_OPTIONS], |
|
|
6886 | [AC_FOREACH([_LT_Option], [$1], |
|
|
6887 | [_LT_SET_OPTION(_LT_Option) |
|
|
6888 | m4_ifdef(_LT_MANGLE_DEFUN(_LT_Option), |
|
|
6889 | _LT_MANGLE_DEFUN(_LT_Option), |
|
|
6890 | [m4_fatal([Unknown option `]_LT_Option[' to LT][_INIT_LIBTOOL])]) |
|
|
6891 | ])dnl |
|
|
6892 | dnl |
|
|
6893 | dnl Simply set some default values (i.e off) if boolean options were not |
|
|
6894 | dnl specified: |
|
|
6895 | _LT_UNLESS_OPTIONS([dlopen], enable_dlopen=no) |
|
|
6896 | _LT_UNLESS_OPTIONS([win32-dll], enable_win32_dll=no) |
|
|
6897 | dnl |
|
|
6898 | dnl If no reference was made to various pairs of opposing options, then |
|
|
6899 | dnl we run the default mode handler for the pair. For example, if neither |
|
|
6900 | dnl `shared' nor `disable-shared' was passed, we enable building of shared |
|
|
6901 | dnl archives by default: |
|
|
6902 | _LT_UNLESS_OPTIONS([shared disable-shared], [_LT_ENABLE_SHARED]) |
|
|
6903 | _LT_UNLESS_OPTIONS([static disable-static], [_LT_ENABLE_STATIC]) |
|
|
6904 | _LT_UNLESS_OPTIONS([pic-only no-pic], [_LT_WITH_PIC]) |
|
|
6905 | _LT_UNLESS_OPTIONS([fast-install disable-fast-install], |
|
|
6906 | [_LT_ENABLE_FAST_INSTALL]) |
|
|
6907 | ])# _LT_SET_OPTIONS |
|
|
6908 | |
|
|
6909 | |
|
|
6910 | |
|
|
6911 | m4_define([_LT_MANGLE_DEFUN], |
|
|
6912 | [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1]), [[^A-Z0-9_]], [_])]) |
|
|
6913 | |
|
|
6914 | |
|
|
6915 | # LT_OPTION_DEFINE(NAME, CODE) |
|
|
6916 | # ---------------------------- |
|
|
6917 | m4_define([LT_OPTION_DEFINE], |
|
|
6918 | [m4_define(_LT_MANGLE_DEFUN([$1]), [$2])[]dnl |
|
|
6919 | ])# LT_OPTION_DEFINE |
|
|
6920 | |
|
|
6921 | |
|
|
6922 | # dlopen |
|
|
6923 | # ------ |
|
|
6924 | LT_OPTION_DEFINE([dlopen], [enable_dlopen=yes]) |
|
|
6925 | |
|
|
6926 | AU_DEFUN([AC_LIBTOOL_DLOPEN], |
|
|
6927 | [_LT_SET_OPTION([dlopen]) |
|
|
6928 | AC_DIAGNOSE([obsolete], |
|
|
6929 | [$0: Remove this warning and the call to _LT_SET_OPTION when you |
|
|
6930 | put the `dlopen' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
6931 | ]) |
|
|
6932 | |
|
|
6933 | |
|
|
6934 | # win32-dll |
|
|
6935 | # --------- |
|
|
6936 | # Declare package support for building win32 dll's. |
|
|
6937 | LT_OPTION_DEFINE([win32-dll], |
|
|
6938 | [enable_win32_dll=yes |
|
|
6939 | |
|
|
6940 | case $host in |
|
|
6941 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) |
|
|
6942 | AC_CHECK_TOOL(AS, as, false) |
|
|
6943 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
|
|
6944 | AC_CHECK_TOOL(OBJDUMP, objdump, false) |
|
|
6945 | ;; |
|
|
6946 | esac |
|
|
6947 | |
|
|
6948 | test -z "$AS" && AS=as |
|
|
6949 | _LT_DECL([], [AS], [0], [Assembler program])dnl |
|
|
6950 | |
|
|
6951 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
|
6952 | _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl |
|
|
6953 | |
|
|
6954 | test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
6955 | _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl |
|
|
6956 | ])# win32-dll |
|
|
6957 | |
|
|
6958 | AU_DEFUN([AC_LIBTOOL_WIN32_DLL], |
|
|
6959 | [_LT_SET_OPTION([win32-dll]) |
|
|
6960 | AC_DIAGNOSE([obsolete], |
|
|
6961 | [$0: Remove this warning and the call to _LT_SET_OPTION when you |
|
|
6962 | put the `win32-dll' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
6963 | ]) |
|
|
6964 | |
|
|
6965 | |
|
|
6966 | # _LT_ENABLE_SHARED([DEFAULT]) |
|
|
6967 | # ---------------------------- |
|
|
6968 | # implement the --enable-shared flag, and supports the `shared' and |
|
|
6969 | # `disable-shared' LT_INIT_LIBTOOL options. |
|
|
6970 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
|
|
6971 | m4_define([_LT_ENABLE_SHARED], |
|
|
6972 | [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl |
|
|
6973 | AC_ARG_ENABLE([shared], |
|
|
6974 | [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
|
|
6975 | [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], |
|
|
6976 | [p=${PACKAGE-default} |
|
|
6977 | case $enableval in |
|
|
6978 | yes) enable_shared=yes ;; |
|
|
6979 | no) enable_shared=no ;; |
|
|
6980 | *) |
|
|
6981 | enable_shared=no |
|
|
6982 | # Look at the argument we got. We use all the common list separators. |
|
|
6983 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
6984 | for pkg in $enableval; do |
|
|
6985 | IFS="$lt_save_ifs" |
|
|
6986 | if test "X$pkg" = "X$p"; then |
|
|
6987 | enable_shared=yes |
|
|
6988 | fi |
|
|
6989 | done |
|
|
6990 | IFS="$lt_save_ifs" |
|
|
6991 | ;; |
|
|
6992 | esac], |
|
|
6993 | [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) |
|
|
6994 | |
|
|
6995 | _LT_DECL([build_libtool_libs], [enable_shared], [0], |
|
|
6996 | [Whether or not to build shared libraries]) |
|
|
6997 | ])# _LT_ENABLE_SHARED |
|
|
6998 | |
|
|
6999 | LT_OPTION_DEFINE([shared], [_LT_ENABLE_SHARED([yes])]) |
|
|
7000 | LT_OPTION_DEFINE([disable-shared], [_LT_ENABLE_SHARED([no])]) |
|
|
7001 | |
|
|
7002 | # Old names: |
|
|
7003 | AU_DEFUN([AC_ENABLE_SHARED], |
|
|
7004 | [_LT_SET_OPTION([shared]) |
|
|
7005 | AC_DIAGNOSE([obsolete], |
|
|
7006 | [$0: Remove this warning and the call to _LT_SET_OPTION when you |
|
|
7007 | put the `shared' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
7008 | ]) |
|
|
7009 | |
|
|
7010 | AU_DEFUN([AM_ENABLE_SHARED], |
|
|
7011 | [_LT_SET_OPTION([shared]) |
|
|
7012 | AC_DIAGNOSE([obsolete], |
|
|
7013 | [$0: Remove this warning and the call to _LT_SET_OPTION when you |
|
|
7014 | put the `shared' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
7015 | ]) |
|
|
7016 | |
|
|
7017 | AU_DEFUN([AC_DISABLE_SHARED], |
|
|
7018 | [_LT_SET_OPTION([disable-shared]) |
|
|
7019 | AC_DIAGNOSE([obsolete], |
|
|
7020 | [$0: Remove this warning and the call to _LT_SET_OPTION when you put |
|
|
7021 | the `disable-shared' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
7022 | ]) |
|
|
7023 | |
|
|
7024 | AU_DEFUN([AM_DISABLE_SHARED], |
|
|
7025 | [_LT_SET_OPTION([disable-shared]) |
|
|
7026 | AC_DIAGNOSE([obsolete], |
|
|
7027 | [$0: Remove this warning and the call to _LT_SET_OPTION when you put |
|
|
7028 | the `disable-shared' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
7029 | ]) |
|
|
7030 | |
|
|
7031 | |
|
|
7032 | # _LT_ENABLE_STATIC([DEFAULT]) |
|
|
7033 | # ---------------------------- |
|
|
7034 | # implement the --enable-static flag, and support the `static' and |
|
|
7035 | # `disable-static' LT_INIT_LIBTOOL options. |
|
|
7036 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
|
|
7037 | m4_define([_LT_ENABLE_STATIC], |
|
|
7038 | [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl |
|
|
7039 | AC_ARG_ENABLE([static], |
|
|
7040 | [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
|
|
7041 | [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], |
|
|
7042 | [p=${PACKAGE-default} |
|
|
7043 | case $enableval in |
|
|
7044 | yes) enable_static=yes ;; |
|
|
7045 | no) enable_static=no ;; |
|
|
7046 | *) |
|
|
7047 | enable_static=no |
|
|
7048 | # Look at the argument we got. We use all the common list separators. |
|
|
7049 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
7050 | for pkg in $enableval; do |
|
|
7051 | IFS="$lt_save_ifs" |
|
|
7052 | if test "X$pkg" = "X$p"; then |
|
|
7053 | enable_static=yes |
|
|
7054 | fi |
|
|
7055 | done |
|
|
7056 | IFS="$lt_save_ifs" |
|
|
7057 | ;; |
|
|
7058 | esac], |
|
|
7059 | [enable_static=]_LT_ENABLE_STATIC_DEFAULT) |
|
|
7060 | |
|
|
7061 | _LT_DECL([build_old_libs], [enable_static], [0], |
|
|
7062 | [Whether or not to build static libraries]) |
|
|
7063 | ])# _LT_ENABLE_STATIC |
|
|
7064 | |
|
|
7065 | LT_OPTION_DEFINE([static], [_LT_ENABLE_STATIC([yes])]) |
|
|
7066 | LT_OPTION_DEFINE([disable-static], [_LT_ENABLE_STATIC([no])]) |
|
|
7067 | |
|
|
7068 | # Old names: |
|
|
7069 | AU_DEFUN([AC_ENABLE_STATIC], |
|
|
7070 | [_LT_SET_OPTION([static]) |
|
|
7071 | AC_DIAGNOSE([obsolete], |
|
|
7072 | [$0: Remove this warning and the call to _LT_SET_OPTION when you |
|
|
7073 | put the `static' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
7074 | ]) |
|
|
7075 | |
|
|
7076 | AU_DEFUN([AM_ENABLE_STATIC], |
|
|
7077 | [_LT_SET_OPTION([static]) |
|
|
7078 | AC_DIAGNOSE([obsolete], |
|
|
7079 | [$0: Remove this warning and the call to _LT_SET_OPTION when you |
|
|
7080 | put the `static' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
7081 | ]) |
|
|
7082 | |
|
|
7083 | AU_DEFUN([AC_DISABLE_STATIC], |
|
|
7084 | [_LT_SET_OPTION([disable-static]) |
|
|
7085 | AC_DIAGNOSE([obsolete], |
|
|
7086 | [$0: Remove this warning and the call to _LT_SET_OPTION when you put |
|
|
7087 | the `disable-static' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
7088 | ]) |
|
|
7089 | |
|
|
7090 | AU_DEFUN([AM_DISABLE_STATIC], |
|
|
7091 | [_LT_SET_OPTION([disable-static]) |
|
|
7092 | AC_DIAGNOSE([obsolete], |
|
|
7093 | [$0: Remove this warning and the call to _LT_SET_OPTION when you put |
|
|
7094 | the `disable-static' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
7095 | ]) |
|
|
7096 | |
|
|
7097 | |
|
|
7098 | # _LT_ENABLE_FAST_INSTALL([DEFAULT]) |
|
|
7099 | # ---------------------------------- |
|
|
7100 | # implement the --enable-fast-install flag, and support the `fast-install' |
|
|
7101 | # and `disable-fast-install' LT_INIT_LIBTOOL options. |
|
|
7102 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
|
|
7103 | m4_define([_LT_ENABLE_FAST_INSTALL], |
|
|
7104 | [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl |
|
|
7105 | AC_ARG_ENABLE([fast-install], |
|
|
7106 | [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], |
|
|
7107 | [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], |
|
|
7108 | [p=${PACKAGE-default} |
|
|
7109 | case $enableval in |
|
|
7110 | yes) enable_fast_install=yes ;; |
|
|
7111 | no) enable_fast_install=no ;; |
|
|
7112 | *) |
|
|
7113 | enable_fast_install=no |
|
|
7114 | # Look at the argument we got. We use all the common list separators. |
|
|
7115 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
7116 | for pkg in $enableval; do |
|
|
7117 | IFS="$lt_save_ifs" |
|
|
7118 | if test "X$pkg" = "X$p"; then |
|
|
7119 | enable_fast_install=yes |
|
|
7120 | fi |
|
|
7121 | done |
|
|
7122 | IFS="$lt_save_ifs" |
|
|
7123 | ;; |
|
|
7124 | esac], |
|
|
7125 | [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) |
|
|
7126 | |
|
|
7127 | _LT_DECL([fast_install], [enable_fast_install], [0], |
|
|
7128 | [Whether or not to optimize for fast installation])dnl |
|
|
7129 | ])# _LT_ENABLE_FAST_INSTALL |
|
|
7130 | |
|
|
7131 | LT_OPTION_DEFINE([fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) |
|
|
7132 | LT_OPTION_DEFINE([disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) |
|
|
7133 | |
|
|
7134 | # Old names: |
|
|
7135 | AU_DEFUN([AC_ENABLE_FAST_INSTALL], |
|
|
7136 | [_LT_SET_OPTION([fast-install]) |
|
|
7137 | AC_DIAGNOSE([obsolete], |
|
|
7138 | [$0: Remove this warning and the call to _LT_SET_OPTION when you put |
|
|
7139 | the `fast-install' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
7140 | ]) |
|
|
7141 | |
|
|
7142 | AU_DEFUN([AC_DISABLE_FAST_INSTALL], |
|
|
7143 | [_LT_SET_OPTION([disable-fast-install]) |
|
|
7144 | AC_DIAGNOSE([obsolete], |
|
|
7145 | [$0: Remove this warning and the call to _LT_SET_OPTION when you put |
|
|
7146 | the `disable-fast-install' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
7147 | ]) |
|
|
7148 | |
|
|
7149 | |
|
|
7150 | # _LT_WITH_PIC([MODE]) |
|
|
7151 | # -------------------- |
|
|
7152 | # implement the --with-pic flag, and support the `pic-only' and `no-pic' |
|
|
7153 | # LT_INIT_LIBTOOL options. |
|
|
7154 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
|
|
7155 | m4_define([_LT_WITH_PIC], |
|
|
7156 | [AC_ARG_WITH([pic], |
|
|
7157 | [AC_HELP_STRING([--with-pic], |
|
|
7158 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
|
|
7159 | [pic_mode="$withval"], |
|
|
7160 | [pic_mode=default]) |
|
|
7161 | |
|
|
7162 | test -z "$pic_mode" && pic_mode=m4_if($#, 1, $1, default) |
|
|
7163 | |
|
|
7164 | _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl |
|
|
7165 | ])# _LT_WITH_PIC |
|
|
7166 | |
|
|
7167 | LT_OPTION_DEFINE([pic-only], [_LT_WITH_PIC([yes])]) |
|
|
7168 | LT_OPTION_DEFINE([no-pic], [_LT_WITH_PIC([no])]) |
|
|
7169 | |
|
|
7170 | # Old name: |
|
|
7171 | AU_DEFUN([AC_LIBTOOL_PIC_MODE], |
|
|
7172 | [_LT_SET_OPTION([pic-only]) |
|
|
7173 | AC_DIAGNOSE([obsolete], |
|
|
7174 | [$0: Remove this warning and the call to _LT_SET_OPTION when you |
|
|
7175 | put the `pic-only' option into LT_LIBTOOL_INIT's first parameter.]) |
|
|
7176 | ]) |
|
|
7177 | |
|
|
7178 | # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- |
5931 | # |
7179 | # |
5932 | # This file is free software; the Free Software Foundation |
|
|
5933 | # gives unlimited permission to copy and/or distribute it, |
|
|
5934 | # with or without modifications, as long as this notice is preserved. |
|
|
5935 | |
|
|
5936 | # AM_AUTOMAKE_VERSION(VERSION) |
|
|
5937 | # ---------------------------- |
|
|
5938 | # Automake X.Y traces this macro to ensure aclocal.m4 has been |
|
|
5939 | # generated from the m4 files accompanying Automake X.Y. |
|
|
5940 | AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) |
|
|
5941 | |
|
|
5942 | # AM_SET_CURRENT_AUTOMAKE_VERSION |
|
|
5943 | # ------------------------------- |
|
|
5944 | # Call AM_AUTOMAKE_VERSION so it can be traced. |
|
|
5945 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
|
|
5946 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
|
|
5947 | [AM_AUTOMAKE_VERSION([1.9.6])]) |
|
|
5948 | |
|
|
5949 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
|
|
5950 | |
|
|
5951 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
7180 | # Copyright (C) 2004 Free Software Foundation, Inc. |
|
|
7181 | # Written by Gary V. Vaughan. |
5952 | # |
7182 | # |
5953 | # This file is free software; the Free Software Foundation |
7183 | # This program is free software; you can redistribute it and/or modify |
5954 | # gives unlimited permission to copy and/or distribute it, |
7184 | # it under the terms of the GNU General Public License as published by |
5955 | # with or without modifications, as long as this notice is preserved. |
7185 | # the Free Software Foundation; either version 2 of the License, or |
5956 | |
7186 | # (at your option) any later version. |
5957 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
|
|
5958 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
|
|
5959 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
|
|
5960 | # |
7187 | # |
5961 | # Of course, Automake must honor this variable whenever it calls a |
7188 | # This program is distributed in the hope that it will be useful, but |
5962 | # tool from the auxiliary directory. The problem is that $srcdir (and |
7189 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
5963 | # therefore $ac_aux_dir as well) can be either absolute or relative, |
7190 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
5964 | # depending on how configure is run. This is pretty annoying, since |
7191 | # General Public License for more details. |
5965 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top |
|
|
5966 | # source directory, any form will work fine, but in subdirectories a |
|
|
5967 | # relative path needs to be adjusted first. |
|
|
5968 | # |
7192 | # |
5969 | # $ac_aux_dir/missing |
7193 | # You should have received a copy of the GNU General Public License |
5970 | # fails when called from a subdirectory if $ac_aux_dir is relative |
7194 | # along with this program; if not, write to the Free Software |
5971 | # $top_srcdir/$ac_aux_dir/missing |
7195 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
5972 | # fails if $ac_aux_dir is absolute, |
|
|
5973 | # fails when called from a subdirectory in a VPATH build with |
|
|
5974 | # a relative $ac_aux_dir |
|
|
5975 | # |
7196 | # |
5976 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
7197 | # As a special exception to the GNU General Public License, if you |
5977 | # are both prefixed by $srcdir. In an in-source build this is usually |
7198 | # distribute this file as part of a program that contains a |
5978 | # harmless because $srcdir is `.', but things will broke when you |
7199 | # configuration script generated by Autoconf, you may include it under |
5979 | # start a VPATH build or use an absolute $srcdir. |
7200 | # the same distribution terms that you use for the rest of that program. |
5980 | # |
|
|
5981 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
|
|
5982 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
|
|
5983 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
|
|
5984 | # and then we would define $MISSING as |
|
|
5985 | # MISSING="\${SHELL} $am_aux_dir/missing" |
|
|
5986 | # This will work as long as MISSING is not called from configure, because |
|
|
5987 | # unfortunately $(top_srcdir) has no meaning in configure. |
|
|
5988 | # However there are other variables, like CC, which are often used in |
|
|
5989 | # configure, and could therefore not use this "fixed" $ac_aux_dir. |
|
|
5990 | # |
|
|
5991 | # Another solution, used here, is to always expand $ac_aux_dir to an |
|
|
5992 | # absolute PATH. The drawback is that using absolute paths prevent a |
|
|
5993 | # configured tree to be moved without reconfiguration. |
|
|
5994 | |
7201 | |
5995 | AC_DEFUN([AM_AUX_DIR_EXPAND], |
7202 | # serial 1 |
5996 | [dnl Rely on autoconf to set up CDPATH properly. |
7203 | |
5997 | AC_PREREQ([2.50])dnl |
7204 | # This is to help aclocal find these macros, as it can't see m4_define. |
5998 | # expand $ac_aux_dir to an absolute path |
7205 | AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) |
5999 | am_aux_dir=`cd $ac_aux_dir && pwd` |
7206 | |
|
|
7207 | |
|
|
7208 | # lt_join(SEP, ARG1, [ARG2...]) |
|
|
7209 | # ----------------------------- |
|
|
7210 | # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their |
|
|
7211 | # associated separator. |
|
|
7212 | m4_define([lt_join], |
|
|
7213 | [m4_case([$#], |
|
|
7214 | [0], [m4_fatal([$0: too few arguments: $#])], |
|
|
7215 | [1], [], |
|
|
7216 | [2], [[$2]], |
|
|
7217 | [m4_ifval([$2], |
|
|
7218 | [m4_ifval([$3], |
|
|
7219 | [[$2][$1][]$0([$1], m4_shiftn(2, $@))], |
|
|
7220 | [m4_if([$#], [3], |
|
|
7221 | [$2], |
|
|
7222 | [$0([$1], [$2], m4_shiftn(3, $@))])])], |
|
|
7223 | [$0([$1], m4_shiftn(2, $@))])])[]dnl |
6000 | ]) |
7224 | ]) |
6001 | |
7225 | |
6002 | # AM_CONDITIONAL -*- Autoconf -*- |
|
|
6003 | |
7226 | |
6004 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 |
7227 | # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) |
6005 | # Free Software Foundation, Inc. |
|
|
6006 | # |
|
|
6007 | # This file is free software; the Free Software Foundation |
|
|
6008 | # gives unlimited permission to copy and/or distribute it, |
|
|
6009 | # with or without modifications, as long as this notice is preserved. |
|
|
6010 | |
|
|
6011 | # serial 7 |
|
|
6012 | |
|
|
6013 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
|
|
6014 | # ------------------------------------- |
7228 | # ---------------------------------------------------------- |
6015 | # Define a conditional. |
7229 | # Produce a SEP delimited list of all paired combinations of elements of |
6016 | AC_DEFUN([AM_CONDITIONAL], |
7230 | # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list |
6017 | [AC_PREREQ(2.52)dnl |
7231 | # has the form PREFIXmINFIXSUFFIXn. |
6018 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
7232 | m4_define([lt_combine], |
6019 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
7233 | [m4_if([$2], [[]], [], |
6020 | AC_SUBST([$1_TRUE]) |
7234 | [lt_join(m4_quote(m4_default([$1], [, ])), |
6021 | AC_SUBST([$1_FALSE]) |
7235 | _$0([$1], m4_car($2)[$3], m4_shiftn(3, $@)), |
6022 | if $2; then |
7236 | $0([$1], m4_cdr($2), m4_shiftn(2, $@)))])]) |
6023 | $1_TRUE= |
7237 | m4_define([_lt_combine], |
6024 | $1_FALSE='#' |
7238 | [m4_if([$3], [], [], |
6025 | else |
7239 | [lt_join(m4_quote(m4_default([$1], [, ])), |
6026 | $1_TRUE='#' |
7240 | [$2$3], |
6027 | $1_FALSE= |
7241 | $0([$1], [$2], m4_shiftn(3, $@)))])[]dnl |
6028 | fi |
|
|
6029 | AC_CONFIG_COMMANDS_PRE( |
|
|
6030 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
|
|
6031 | AC_MSG_ERROR([[conditional "$1" was never defined. |
|
|
6032 | Usually this means the macro was only invoked conditionally.]]) |
|
|
6033 | fi])]) |
|
|
6034 | |
|
|
6035 | |
|
|
6036 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
|
|
6037 | # Free Software Foundation, Inc. |
|
|
6038 | # |
|
|
6039 | # This file is free software; the Free Software Foundation |
|
|
6040 | # gives unlimited permission to copy and/or distribute it, |
|
|
6041 | # with or without modifications, as long as this notice is preserved. |
|
|
6042 | |
|
|
6043 | # serial 8 |
|
|
6044 | |
|
|
6045 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
|
|
6046 | # written in clear, in which case automake, when reading aclocal.m4, |
|
|
6047 | # will think it sees a *use*, and therefore will trigger all it's |
|
|
6048 | # C support machinery. Also note that it means that autoscan, seeing |
|
|
6049 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
|
|
6050 | |
|
|
6051 | |
|
|
6052 | # _AM_DEPENDENCIES(NAME) |
|
|
6053 | # ---------------------- |
|
|
6054 | # See how the compiler implements dependency checking. |
|
|
6055 | # NAME is "CC", "CXX", "GCJ", or "OBJC". |
|
|
6056 | # We try a few techniques and use that to set a single cache variable. |
|
|
6057 | # |
|
|
6058 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
|
|
6059 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
|
|
6060 | # dependency, and given that the user is not expected to run this macro, |
|
|
6061 | # just rely on AC_PROG_CC. |
|
|
6062 | AC_DEFUN([_AM_DEPENDENCIES], |
|
|
6063 | [AC_REQUIRE([AM_SET_DEPDIR])dnl |
|
|
6064 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
|
|
6065 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
|
|
6066 | AC_REQUIRE([AM_DEP_TRACK])dnl |
|
|
6067 | |
|
|
6068 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
|
|
6069 | [$1], CXX, [depcc="$CXX" am_compiler_list=], |
|
|
6070 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
|
|
6071 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
|
|
6072 | [depcc="$$1" am_compiler_list=]) |
|
|
6073 | |
|
|
6074 | AC_CACHE_CHECK([dependency style of $depcc], |
|
|
6075 | [am_cv_$1_dependencies_compiler_type], |
|
|
6076 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
|
6077 | # We make a subdir and do the tests there. Otherwise we can end up |
|
|
6078 | # making bogus files that we don't know about and never remove. For |
|
|
6079 | # instance it was reported that on HP-UX the gcc test will end up |
|
|
6080 | # making a dummy file named `D' -- because `-MD' means `put the output |
|
|
6081 | # in D'. |
|
|
6082 | mkdir conftest.dir |
|
|
6083 | # Copy depcomp to subdir because otherwise we won't find it if we're |
|
|
6084 | # using a relative directory. |
|
|
6085 | cp "$am_depcomp" conftest.dir |
|
|
6086 | cd conftest.dir |
|
|
6087 | # We will build objects and dependencies in a subdirectory because |
|
|
6088 | # it helps to detect inapplicable dependency modes. For instance |
|
|
6089 | # both Tru64's cc and ICC support -MD to output dependencies as a |
|
|
6090 | # side effect of compilation, but ICC will put the dependencies in |
|
|
6091 | # the current directory while Tru64 will put them in the object |
|
|
6092 | # directory. |
|
|
6093 | mkdir sub |
|
|
6094 | |
|
|
6095 | am_cv_$1_dependencies_compiler_type=none |
|
|
6096 | if test "$am_compiler_list" = ""; then |
|
|
6097 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
|
|
6098 | fi |
|
|
6099 | for depmode in $am_compiler_list; do |
|
|
6100 | # Setup a source with many dependencies, because some compilers |
|
|
6101 | # like to wrap large dependency lists on column 80 (with \), and |
|
|
6102 | # we should not choose a depcomp mode which is confused by this. |
|
|
6103 | # |
|
|
6104 | # We need to recreate these files for each test, as the compiler may |
|
|
6105 | # overwrite some of them when testing with obscure command lines. |
|
|
6106 | # This happens at least with the AIX C compiler. |
|
|
6107 | : > sub/conftest.c |
|
|
6108 | for i in 1 2 3 4 5 6; do |
|
|
6109 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
|
6110 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
|
6111 | # Solaris 8's {/usr,}/bin/sh. |
|
|
6112 | touch sub/conftst$i.h |
|
|
6113 | done |
|
|
6114 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
|
6115 | |
|
|
6116 | case $depmode in |
|
|
6117 | nosideeffect) |
|
|
6118 | # after this tag, mechanisms are not by side-effect, so they'll |
|
|
6119 | # only be used when explicitly requested |
|
|
6120 | if test "x$enable_dependency_tracking" = xyes; then |
|
|
6121 | continue |
|
|
6122 | else |
|
|
6123 | break |
|
|
6124 | fi |
|
|
6125 | ;; |
|
|
6126 | none) break ;; |
|
|
6127 | esac |
|
|
6128 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
|
6129 | # mode. It turns out that the SunPro C++ compiler does not properly |
|
|
6130 | # handle `-M -o', and we need to detect this. |
|
|
6131 | if depmode=$depmode \ |
|
|
6132 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
|
6133 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
|
6134 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
|
6135 | >/dev/null 2>conftest.err && |
|
|
6136 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
|
6137 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
|
6138 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
|
6139 | # icc doesn't choke on unknown options, it will just issue warnings |
|
|
6140 | # or remarks (even with -Werror). So we grep stderr for any message |
|
|
6141 | # that says an option was ignored or not supported. |
|
|
6142 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
|
|
6143 | # icc: Command line warning: ignoring option '-M'; no argument required |
|
|
6144 | # The diagnosis changed in icc 8.0: |
|
|
6145 | # icc: Command line remark: option '-MP' not supported |
|
|
6146 | if (grep 'ignoring option' conftest.err || |
|
|
6147 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
|
6148 | am_cv_$1_dependencies_compiler_type=$depmode |
|
|
6149 | break |
|
|
6150 | fi |
|
|
6151 | fi |
|
|
6152 | done |
|
|
6153 | |
|
|
6154 | cd .. |
|
|
6155 | rm -rf conftest.dir |
|
|
6156 | else |
|
|
6157 | am_cv_$1_dependencies_compiler_type=none |
|
|
6158 | fi |
|
|
6159 | ]) |
7242 | ]) |
6160 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
7243 | |
6161 | AM_CONDITIONAL([am__fastdep$1], [ |
7244 | |
6162 | test "x$enable_dependency_tracking" != xno \ |
7245 | # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) |
6163 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
7246 | # ----------------------------------------------------------------------- |
|
|
7247 | # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited |
|
|
7248 | # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. |
|
|
7249 | m4_define([lt_if_append_uniq], |
|
|
7250 | [m4_ifdef([$1], |
|
|
7251 | [m4_bmatch($3[]m4_defn([$1])$3, $3[]m4_re_escape([$2])$3, |
|
|
7252 | [$5], |
|
|
7253 | [m4_append([$1], [$2], [$3])$4])], |
|
|
7254 | [m4_append([$1], [$2], [$3])$4])]) |
|
|
7255 | |
|
|
7256 | |
|
|
7257 | # lt_dict_add(DICT, KEY, VALUE) |
|
|
7258 | # ----------------------------- |
|
|
7259 | m4_define([lt_dict_add], |
|
|
7260 | [m4_define([$1($2)], [$4])]) |
|
|
7261 | |
|
|
7262 | |
|
|
7263 | # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) |
|
|
7264 | # -------------------------------------------- |
|
|
7265 | m4_define([lt_dict_add_subkey], |
|
|
7266 | [m4_define([$1($2:$3)], [$4])]) |
|
|
7267 | |
|
|
7268 | |
|
|
7269 | # lt_dict_fetch(DICT, KEY, [SUBKEY]) |
|
|
7270 | # ---------------------------------- |
|
|
7271 | m4_define([lt_dict_fetch], |
|
|
7272 | [m4_ifval([$3], |
|
|
7273 | m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), |
|
|
7274 | m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) |
|
|
7275 | |
|
|
7276 | |
|
|
7277 | # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) |
|
|
7278 | # ----------------------------------------------------------------- |
|
|
7279 | m4_define([lt_if_dict_fetch], |
|
|
7280 | [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], |
|
|
7281 | [$5], |
|
|
7282 | [$6])]) |
|
|
7283 | |
|
|
7284 | |
|
|
7285 | # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) |
|
|
7286 | # ------------------------------------------------------------ |
|
|
7287 | m4_define([lt_dict_filter], |
|
|
7288 | [m4_if([$5], [], [], |
|
|
7289 | [lt_join(m4_quote(m4_default([$4], [[, ]])), |
|
|
7290 | m4_quote(lt_if_dict_fetch([$1], [$5], [$2], [$3], [$5])), |
|
|
7291 | m4_quote($0([$1], [$2], [$3], [$4], m4_shiftn(5, $@))))])dnl |
6164 | ]) |
7292 | ]) |
6165 | |
7293 | |
|
|
7294 | # ltversion.m4 -- version numbers -*- Autoconf -*- |
|
|
7295 | # Generated from ltversion.in; do not edit by hand. |
6166 | |
7296 | |
6167 | # AM_SET_DEPDIR |
7297 | # serial 1467 |
6168 | # ------------- |
7298 | # This file is part of GNU Libtool |
6169 | # Choose a directory name for dependency files. |
7299 | |
6170 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES |
7300 | m4_define([LT_PACKAGE_VERSION], []) |
6171 | AC_DEFUN([AM_SET_DEPDIR], |
7301 | m4_define([LT_PACKAGE_REVISION], [1.1467]) |
6172 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
7302 | |
6173 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
7303 | AC_DEFUN([LTVERSION_VERSION], |
|
|
7304 | [macro_version='' |
|
|
7305 | macro_revision='1.1467' |
|
|
7306 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
|
|
7307 | _LT_DECL(, macro_revision, 0) |
6174 | ]) |
7308 | ]) |
6175 | |
7309 | |
6176 | |
7310 | |
6177 | # AM_DEP_TRACK |
7311 | # Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
6178 | # ------------ |
|
|
6179 | AC_DEFUN([AM_DEP_TRACK], |
|
|
6180 | [AC_ARG_ENABLE(dependency-tracking, |
|
|
6181 | [ --disable-dependency-tracking speeds up one-time build |
|
|
6182 | --enable-dependency-tracking do not reject slow dependency extractors]) |
|
|
6183 | if test "x$enable_dependency_tracking" != xno; then |
|
|
6184 | am_depcomp="$ac_aux_dir/depcomp" |
|
|
6185 | AMDEPBACKSLASH='\' |
|
|
6186 | fi |
|
|
6187 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
|
|
6188 | AC_SUBST([AMDEPBACKSLASH]) |
|
|
6189 | ]) |
|
|
6190 | |
7312 | |
6191 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
7313 | # This program is free software; you can redistribute it and/or modify |
|
|
7314 | # it under the terms of the GNU General Public License as published by |
|
|
7315 | # the Free Software Foundation; either version 2, or (at your option) |
|
|
7316 | # any later version. |
6192 | |
7317 | |
6193 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
7318 | # This program is distributed in the hope that it will be useful, |
6194 | # Free Software Foundation, Inc. |
7319 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
6195 | # |
7320 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
6196 | # This file is free software; the Free Software Foundation |
7321 | # GNU General Public License for more details. |
6197 | # gives unlimited permission to copy and/or distribute it, |
|
|
6198 | # with or without modifications, as long as this notice is preserved. |
|
|
6199 | |
7322 | |
|
|
7323 | # You should have received a copy of the GNU General Public License |
|
|
7324 | # along with this program; if not, write to the Free Software |
|
|
7325 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
7326 | # 02111-1307, USA. |
|
|
7327 | |
6200 | #serial 3 |
7328 | # serial 3 |
6201 | |
7329 | |
6202 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
|
|
6203 | # ------------------------------ |
|
|
6204 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
|
6205 | [for mf in $CONFIG_FILES; do |
|
|
6206 | # Strip MF so we end up with the name of the file. |
|
|
6207 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
|
6208 | # Check whether this is an Automake generated Makefile or not. |
|
|
6209 | # We used to match only the files named `Makefile.in', but |
|
|
6210 | # some people rename them; so instead we look at the file content. |
|
|
6211 | # Grep'ing the first line is not enough: some people post-process |
|
|
6212 | # each Makefile.in and add a new line on top of each file to say so. |
|
|
6213 | # So let's grep whole file. |
|
|
6214 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
|
|
6215 | dirpart=`AS_DIRNAME("$mf")` |
|
|
6216 | else |
|
|
6217 | continue |
|
|
6218 | fi |
|
|
6219 | # Extract the definition of DEPDIR, am__include, and am__quote |
|
|
6220 | # from the Makefile without running `make'. |
|
|
6221 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
|
|
6222 | test -z "$DEPDIR" && continue |
|
|
6223 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
|
|
6224 | test -z "am__include" && continue |
|
|
6225 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
|
|
6226 | # When using ansi2knr, U may be empty or an underscore; expand it |
|
|
6227 | U=`sed -n 's/^U = //p' < "$mf"` |
|
|
6228 | # Find all dependency output files, they are included files with |
|
|
6229 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
|
|
6230 | # simplest approach to changing $(DEPDIR) to its actual value in the |
|
|
6231 | # expansion. |
|
|
6232 | for file in `sed -n " |
|
|
6233 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
|
|
6234 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
|
|
6235 | # Make sure the directory exists. |
|
|
6236 | test -f "$dirpart/$file" && continue |
|
|
6237 | fdir=`AS_DIRNAME(["$file"])` |
|
|
6238 | AS_MKDIR_P([$dirpart/$fdir]) |
|
|
6239 | # echo "creating $dirpart/$file" |
|
|
6240 | echo '# dummy' > "$dirpart/$file" |
|
|
6241 | done |
|
|
6242 | done |
|
|
6243 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
|
|
6244 | |
|
|
6245 | |
|
|
6246 | # AM_OUTPUT_DEPENDENCY_COMMANDS |
|
|
6247 | # ----------------------------- |
|
|
6248 | # This macro should only be invoked once -- use via AC_REQUIRE. |
|
|
6249 | # |
|
|
6250 | # This code is only required when automatic dependency tracking |
|
|
6251 | # is enabled. FIXME. This creates each `.P' file that we will |
|
|
6252 | # need in order to bootstrap the dependency handling code. |
|
|
6253 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
|
6254 | [AC_CONFIG_COMMANDS([depfiles], |
|
|
6255 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
|
6256 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
|
|
6257 | ]) |
|
|
6258 | |
|
|
6259 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
|
|
6260 | # Free Software Foundation, Inc. |
|
|
6261 | # |
|
|
6262 | # This file is free software; the Free Software Foundation |
|
|
6263 | # gives unlimited permission to copy and/or distribute it, |
|
|
6264 | # with or without modifications, as long as this notice is preserved. |
|
|
6265 | |
|
|
6266 | # serial 8 |
|
|
6267 | |
|
|
6268 | # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
|
|
6269 | AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
|
|
6270 | |
|
|
6271 | # Do all the work for Automake. -*- Autoconf -*- |
|
|
6272 | |
|
|
6273 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
|
|
6274 | # Free Software Foundation, Inc. |
|
|
6275 | # |
|
|
6276 | # This file is free software; the Free Software Foundation |
|
|
6277 | # gives unlimited permission to copy and/or distribute it, |
|
|
6278 | # with or without modifications, as long as this notice is preserved. |
|
|
6279 | |
|
|
6280 | # serial 12 |
|
|
6281 | |
|
|
6282 | # This macro actually does too much. Some checks are only needed if |
|
|
6283 | # your package does certain things. But this isn't really a big deal. |
|
|
6284 | |
|
|
6285 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
|
|
6286 | # AM_INIT_AUTOMAKE([OPTIONS]) |
|
|
6287 | # ----------------------------------------------- |
|
|
6288 | # The call with PACKAGE and VERSION arguments is the old style |
|
|
6289 | # call (pre autoconf-2.50), which is being phased out. PACKAGE |
|
|
6290 | # and VERSION should now be passed to AC_INIT and removed from |
|
|
6291 | # the call to AM_INIT_AUTOMAKE. |
|
|
6292 | # We support both call styles for the transition. After |
|
|
6293 | # the next Automake release, Autoconf can make the AC_INIT |
|
|
6294 | # arguments mandatory, and then we can depend on a new Autoconf |
|
|
6295 | # release and drop the old call support. |
|
|
6296 | AC_DEFUN([AM_INIT_AUTOMAKE], |
|
|
6297 | [AC_PREREQ([2.58])dnl |
7330 | AC_PREREQ(2.50) |
6298 | dnl Autoconf wants to disallow AM_ names. We explicitly allow |
|
|
6299 | dnl the ones we care about. |
|
|
6300 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
|
|
6301 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
|
|
6302 | AC_REQUIRE([AC_PROG_INSTALL])dnl |
|
|
6303 | # test to see if srcdir already configured |
|
|
6304 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
|
|
6305 | test -f $srcdir/config.status; then |
|
|
6306 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
|
|
6307 | fi |
|
|
6308 | |
|
|
6309 | # test whether we have cygpath |
|
|
6310 | if test -z "$CYGPATH_W"; then |
|
|
6311 | if (cygpath --version) >/dev/null 2>/dev/null; then |
|
|
6312 | CYGPATH_W='cygpath -w' |
|
|
6313 | else |
|
|
6314 | CYGPATH_W=echo |
|
|
6315 | fi |
|
|
6316 | fi |
|
|
6317 | AC_SUBST([CYGPATH_W]) |
|
|
6318 | |
|
|
6319 | # Define the identity of the package. |
|
|
6320 | dnl Distinguish between old-style and new-style calls. |
|
|
6321 | m4_ifval([$2], |
|
|
6322 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
|
|
6323 | AC_SUBST([PACKAGE], [$1])dnl |
|
|
6324 | AC_SUBST([VERSION], [$2])], |
|
|
6325 | [_AM_SET_OPTIONS([$1])dnl |
|
|
6326 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
|
|
6327 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
|
|
6328 | |
|
|
6329 | _AM_IF_OPTION([no-define],, |
|
|
6330 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
|
|
6331 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
|
|
6332 | |
|
|
6333 | # Some tools Automake needs. |
|
|
6334 | AC_REQUIRE([AM_SANITY_CHECK])dnl |
|
|
6335 | AC_REQUIRE([AC_ARG_PROGRAM])dnl |
|
|
6336 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
|
|
6337 | AM_MISSING_PROG(AUTOCONF, autoconf) |
|
|
6338 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
|
|
6339 | AM_MISSING_PROG(AUTOHEADER, autoheader) |
|
|
6340 | AM_MISSING_PROG(MAKEINFO, makeinfo) |
|
|
6341 | AM_PROG_INSTALL_SH |
|
|
6342 | AM_PROG_INSTALL_STRIP |
|
|
6343 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl |
|
|
6344 | # We need awk for the "check" target. The system "awk" is bad on |
|
|
6345 | # some platforms. |
|
|
6346 | AC_REQUIRE([AC_PROG_AWK])dnl |
|
|
6347 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
|
|
6348 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
|
|
6349 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], |
|
|
6350 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], |
|
|
6351 | [_AM_PROG_TAR([v7])])]) |
|
|
6352 | _AM_IF_OPTION([no-dependencies],, |
|
|
6353 | [AC_PROVIDE_IFELSE([AC_PROG_CC], |
|
|
6354 | [_AM_DEPENDENCIES(CC)], |
|
|
6355 | [define([AC_PROG_CC], |
|
|
6356 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
|
|
6357 | AC_PROVIDE_IFELSE([AC_PROG_CXX], |
|
|
6358 | [_AM_DEPENDENCIES(CXX)], |
|
|
6359 | [define([AC_PROG_CXX], |
|
|
6360 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
|
|
6361 | ]) |
|
|
6362 | ]) |
|
|
6363 | |
|
|
6364 | |
|
|
6365 | # When config.status generates a header, we must update the stamp-h file. |
|
|
6366 | # This file resides in the same directory as the config header |
|
|
6367 | # that is generated. The stamp files are numbered to have different names. |
|
|
6368 | |
|
|
6369 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
|
|
6370 | # loop where config.status creates the headers, so we can generate |
|
|
6371 | # our stamp files there. |
|
|
6372 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
|
|
6373 | [# Compute $1's index in $config_headers. |
|
|
6374 | _am_stamp_count=1 |
|
|
6375 | for _am_header in $config_headers :; do |
|
|
6376 | case $_am_header in |
|
|
6377 | $1 | $1:* ) |
|
|
6378 | break ;; |
|
|
6379 | * ) |
|
|
6380 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
|
|
6381 | esac |
|
|
6382 | done |
|
|
6383 | echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) |
|
|
6384 | |
|
|
6385 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
|
|
6386 | # |
|
|
6387 | # This file is free software; the Free Software Foundation |
|
|
6388 | # gives unlimited permission to copy and/or distribute it, |
|
|
6389 | # with or without modifications, as long as this notice is preserved. |
|
|
6390 | |
|
|
6391 | # AM_PROG_INSTALL_SH |
|
|
6392 | # ------------------ |
|
|
6393 | # Define $install_sh. |
|
|
6394 | AC_DEFUN([AM_PROG_INSTALL_SH], |
|
|
6395 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|
|
6396 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
|
|
6397 | AC_SUBST(install_sh)]) |
|
|
6398 | |
|
|
6399 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
|
|
6400 | # |
|
|
6401 | # This file is free software; the Free Software Foundation |
|
|
6402 | # gives unlimited permission to copy and/or distribute it, |
|
|
6403 | # with or without modifications, as long as this notice is preserved. |
|
|
6404 | |
|
|
6405 | # serial 2 |
|
|
6406 | |
|
|
6407 | # Check whether the underlying file-system supports filenames |
|
|
6408 | # with a leading dot. For instance MS-DOS doesn't. |
|
|
6409 | AC_DEFUN([AM_SET_LEADING_DOT], |
|
|
6410 | [rm -rf .tst 2>/dev/null |
|
|
6411 | mkdir .tst 2>/dev/null |
|
|
6412 | if test -d .tst; then |
|
|
6413 | am__leading_dot=. |
|
|
6414 | else |
|
|
6415 | am__leading_dot=_ |
|
|
6416 | fi |
|
|
6417 | rmdir .tst 2>/dev/null |
|
|
6418 | AC_SUBST([am__leading_dot])]) |
|
|
6419 | |
|
|
6420 | # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 |
|
|
6421 | # Free Software Foundation, Inc. |
|
|
6422 | # |
|
|
6423 | # This file is free software; the Free Software Foundation |
|
|
6424 | # gives unlimited permission to copy and/or distribute it, |
|
|
6425 | # with or without modifications, as long as this notice is preserved. |
|
|
6426 | |
|
|
6427 | # serial 5 |
|
|
6428 | |
7331 | |
6429 | # AM_PROG_LEX |
7332 | # AM_PROG_LEX |
6430 | # ----------- |
7333 | # ----------- |
6431 | # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a |
7334 | # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a |
6432 | # "missing" invocation, for better error output. |
7335 | # "missing" invocation, for better error output. |
6433 | AC_DEFUN([AM_PROG_LEX], |
7336 | AC_DEFUN([AM_PROG_LEX], |
6434 | [AC_PREREQ(2.50)dnl |
|
|
6435 | AC_REQUIRE([AM_MISSING_HAS_RUN])dnl |
7337 | [AC_REQUIRE([AM_MISSING_HAS_RUN])dnl |
6436 | AC_REQUIRE([AC_PROG_LEX])dnl |
7338 | AC_REQUIRE([AC_PROG_LEX])dnl |
6437 | if test "$LEX" = :; then |
7339 | if test "$LEX" = :; then |
6438 | LEX=${am_missing_run}flex |
7340 | LEX=${am_missing_run}flex |
6439 | fi]) |
7341 | fi]) |
6440 | |
7342 | |
6441 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
|
|
6442 | # From Jim Meyering |
|
|
6443 | |
|
|
6444 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 |
|
|
6445 | # Free Software Foundation, Inc. |
|
|
6446 | # |
|
|
6447 | # This file is free software; the Free Software Foundation |
|
|
6448 | # gives unlimited permission to copy and/or distribute it, |
|
|
6449 | # with or without modifications, as long as this notice is preserved. |
|
|
6450 | |
|
|
6451 | # serial 4 |
|
|
6452 | |
|
|
6453 | AC_DEFUN([AM_MAINTAINER_MODE], |
|
|
6454 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
|
|
6455 | dnl maintainer-mode is disabled by default |
|
|
6456 | AC_ARG_ENABLE(maintainer-mode, |
|
|
6457 | [ --enable-maintainer-mode enable make rules and dependencies not useful |
|
|
6458 | (and sometimes confusing) to the casual installer], |
|
|
6459 | USE_MAINTAINER_MODE=$enableval, |
|
|
6460 | USE_MAINTAINER_MODE=no) |
|
|
6461 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
|
|
6462 | AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) |
|
|
6463 | MAINT=$MAINTAINER_MODE_TRUE |
|
|
6464 | AC_SUBST(MAINT)dnl |
|
|
6465 | ] |
|
|
6466 | ) |
|
|
6467 | |
|
|
6468 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
|
|
6469 | |
|
|
6470 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
|
|
6471 | |
|
|
6472 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
|
|
6473 | # |
|
|
6474 | # This file is free software; the Free Software Foundation |
|
|
6475 | # gives unlimited permission to copy and/or distribute it, |
|
|
6476 | # with or without modifications, as long as this notice is preserved. |
|
|
6477 | |
|
|
6478 | # serial 3 |
|
|
6479 | |
|
|
6480 | # AM_MAKE_INCLUDE() |
|
|
6481 | # ----------------- |
|
|
6482 | # Check to see how make treats includes. |
|
|
6483 | AC_DEFUN([AM_MAKE_INCLUDE], |
|
|
6484 | [am_make=${MAKE-make} |
|
|
6485 | cat > confinc << 'END' |
|
|
6486 | am__doit: |
|
|
6487 | @echo done |
|
|
6488 | .PHONY: am__doit |
|
|
6489 | END |
|
|
6490 | # If we don't find an include directive, just comment out the code. |
|
|
6491 | AC_MSG_CHECKING([for style of include used by $am_make]) |
|
|
6492 | am__include="#" |
|
|
6493 | am__quote= |
|
|
6494 | _am_result=none |
|
|
6495 | # First try GNU make style include. |
|
|
6496 | echo "include confinc" > confmf |
|
|
6497 | # We grep out `Entering directory' and `Leaving directory' |
|
|
6498 | # messages which can occur if `w' ends up in MAKEFLAGS. |
|
|
6499 | # In particular we don't look at `^make:' because GNU make might |
|
|
6500 | # be invoked under some other name (usually "gmake"), in which |
|
|
6501 | # case it prints its new name instead of `make'. |
|
|
6502 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
|
|
6503 | am__include=include |
|
|
6504 | am__quote= |
|
|
6505 | _am_result=GNU |
|
|
6506 | fi |
|
|
6507 | # Now try BSD make style include. |
|
|
6508 | if test "$am__include" = "#"; then |
|
|
6509 | echo '.include "confinc"' > confmf |
|
|
6510 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
|
|
6511 | am__include=.include |
|
|
6512 | am__quote="\"" |
|
|
6513 | _am_result=BSD |
|
|
6514 | fi |
|
|
6515 | fi |
|
|
6516 | AC_SUBST([am__include]) |
|
|
6517 | AC_SUBST([am__quote]) |
|
|
6518 | AC_MSG_RESULT([$_am_result]) |
|
|
6519 | rm -f confinc confmf |
|
|
6520 | ]) |
|
|
6521 | |
|
|
6522 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
|
|
6523 | |
|
|
6524 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 |
|
|
6525 | # Free Software Foundation, Inc. |
|
|
6526 | # |
|
|
6527 | # This file is free software; the Free Software Foundation |
|
|
6528 | # gives unlimited permission to copy and/or distribute it, |
|
|
6529 | # with or without modifications, as long as this notice is preserved. |
|
|
6530 | |
|
|
6531 | # serial 4 |
|
|
6532 | |
|
|
6533 | # AM_MISSING_PROG(NAME, PROGRAM) |
|
|
6534 | # ------------------------------ |
|
|
6535 | AC_DEFUN([AM_MISSING_PROG], |
|
|
6536 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) |
|
|
6537 | $1=${$1-"${am_missing_run}$2"} |
|
|
6538 | AC_SUBST($1)]) |
|
|
6539 | |
|
|
6540 | |
|
|
6541 | # AM_MISSING_HAS_RUN |
|
|
6542 | # ------------------ |
|
|
6543 | # Define MISSING if not defined so far and test if it supports --run. |
|
|
6544 | # If it does, set am_missing_run to use it, otherwise, to nothing. |
|
|
6545 | AC_DEFUN([AM_MISSING_HAS_RUN], |
|
|
6546 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|
|
6547 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
|
|
6548 | # Use eval to expand $SHELL |
|
|
6549 | if eval "$MISSING --run true"; then |
|
|
6550 | am_missing_run="$MISSING --run " |
|
|
6551 | else |
|
|
6552 | am_missing_run= |
|
|
6553 | AC_MSG_WARN([`missing' script is too old or missing]) |
|
|
6554 | fi |
|
|
6555 | ]) |
|
|
6556 | |
|
|
6557 | # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. |
|
|
6558 | # |
|
|
6559 | # This file is free software; the Free Software Foundation |
|
|
6560 | # gives unlimited permission to copy and/or distribute it, |
|
|
6561 | # with or without modifications, as long as this notice is preserved. |
|
|
6562 | |
|
|
6563 | # AM_PROG_MKDIR_P |
|
|
6564 | # --------------- |
|
|
6565 | # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. |
|
|
6566 | # |
|
|
6567 | # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories |
|
|
6568 | # created by `make install' are always world readable, even if the |
|
|
6569 | # installer happens to have an overly restrictive umask (e.g. 077). |
|
|
6570 | # This was a mistake. There are at least two reasons why we must not |
|
|
6571 | # use `-m 0755': |
|
|
6572 | # - it causes special bits like SGID to be ignored, |
|
|
6573 | # - it may be too restrictive (some setups expect 775 directories). |
|
|
6574 | # |
|
|
6575 | # Do not use -m 0755 and let people choose whatever they expect by |
|
|
6576 | # setting umask. |
|
|
6577 | # |
|
|
6578 | # We cannot accept any implementation of `mkdir' that recognizes `-p'. |
|
|
6579 | # Some implementations (such as Solaris 8's) are not thread-safe: if a |
|
|
6580 | # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' |
|
|
6581 | # concurrently, both version can detect that a/ is missing, but only |
|
|
6582 | # one can create it and the other will error out. Consequently we |
|
|
6583 | # restrict ourselves to GNU make (using the --version option ensures |
|
|
6584 | # this.) |
|
|
6585 | AC_DEFUN([AM_PROG_MKDIR_P], |
|
|
6586 | [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
|
|
6587 | # We used to keeping the `.' as first argument, in order to |
|
|
6588 | # allow $(mkdir_p) to be used without argument. As in |
|
|
6589 | # $(mkdir_p) $(somedir) |
|
|
6590 | # where $(somedir) is conditionally defined. However this is wrong |
|
|
6591 | # for two reasons: |
|
|
6592 | # 1. if the package is installed by a user who cannot write `.' |
|
|
6593 | # make install will fail, |
|
|
6594 | # 2. the above comment should most certainly read |
|
|
6595 | # $(mkdir_p) $(DESTDIR)$(somedir) |
|
|
6596 | # so it does not work when $(somedir) is undefined and |
|
|
6597 | # $(DESTDIR) is not. |
|
|
6598 | # To support the latter case, we have to write |
|
|
6599 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
|
|
6600 | # so the `.' trick is pointless. |
|
|
6601 | mkdir_p='mkdir -p --' |
|
|
6602 | else |
|
|
6603 | # On NextStep and OpenStep, the `mkdir' command does not |
|
|
6604 | # recognize any option. It will interpret all options as |
|
|
6605 | # directories to create, and then abort because `.' already |
|
|
6606 | # exists. |
|
|
6607 | for d in ./-p ./--version; |
|
|
6608 | do |
|
|
6609 | test -d $d && rmdir $d |
|
|
6610 | done |
|
|
6611 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
|
|
6612 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
|
|
6613 | mkdir_p='$(mkinstalldirs)' |
|
|
6614 | else |
|
|
6615 | mkdir_p='$(install_sh) -d' |
|
|
6616 | fi |
|
|
6617 | fi |
|
|
6618 | AC_SUBST([mkdir_p])]) |
|
|
6619 | |
|
|
6620 | # Helper functions for option handling. -*- Autoconf -*- |
|
|
6621 | |
|
|
6622 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
|
|
6623 | # |
|
|
6624 | # This file is free software; the Free Software Foundation |
|
|
6625 | # gives unlimited permission to copy and/or distribute it, |
|
|
6626 | # with or without modifications, as long as this notice is preserved. |
|
|
6627 | |
|
|
6628 | # serial 3 |
|
|
6629 | |
|
|
6630 | # _AM_MANGLE_OPTION(NAME) |
|
|
6631 | # ----------------------- |
|
|
6632 | AC_DEFUN([_AM_MANGLE_OPTION], |
|
|
6633 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
|
|
6634 | |
|
|
6635 | # _AM_SET_OPTION(NAME) |
|
|
6636 | # ------------------------------ |
|
|
6637 | # Set option NAME. Presently that only means defining a flag for this option. |
|
|
6638 | AC_DEFUN([_AM_SET_OPTION], |
|
|
6639 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
|
|
6640 | |
|
|
6641 | # _AM_SET_OPTIONS(OPTIONS) |
|
|
6642 | # ---------------------------------- |
|
|
6643 | # OPTIONS is a space-separated list of Automake options. |
|
|
6644 | AC_DEFUN([_AM_SET_OPTIONS], |
|
|
6645 | [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
|
|
6646 | |
|
|
6647 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
|
|
6648 | # ------------------------------------------- |
|
|
6649 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
|
|
6650 | AC_DEFUN([_AM_IF_OPTION], |
|
|
6651 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
|
|
6652 | |
|
|
6653 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
|
|
6654 | |
|
|
6655 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
|
|
6656 | # Free Software Foundation, Inc. |
|
|
6657 | # |
|
|
6658 | # This file is free software; the Free Software Foundation |
|
|
6659 | # gives unlimited permission to copy and/or distribute it, |
|
|
6660 | # with or without modifications, as long as this notice is preserved. |
|
|
6661 | |
|
|
6662 | # serial 4 |
|
|
6663 | |
|
|
6664 | # AM_SANITY_CHECK |
|
|
6665 | # --------------- |
|
|
6666 | AC_DEFUN([AM_SANITY_CHECK], |
|
|
6667 | [AC_MSG_CHECKING([whether build environment is sane]) |
|
|
6668 | # Just in case |
|
|
6669 | sleep 1 |
|
|
6670 | echo timestamp > conftest.file |
|
|
6671 | # Do `set' in a subshell so we don't clobber the current shell's |
|
|
6672 | # arguments. Must try -L first in case configure is actually a |
|
|
6673 | # symlink; some systems play weird games with the mod time of symlinks |
|
|
6674 | # (eg FreeBSD returns the mod time of the symlink's containing |
|
|
6675 | # directory). |
|
|
6676 | if ( |
|
|
6677 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
|
|
6678 | if test "$[*]" = "X"; then |
|
|
6679 | # -L didn't work. |
|
|
6680 | set X `ls -t $srcdir/configure conftest.file` |
|
|
6681 | fi |
|
|
6682 | rm -f conftest.file |
|
|
6683 | if test "$[*]" != "X $srcdir/configure conftest.file" \ |
|
|
6684 | && test "$[*]" != "X conftest.file $srcdir/configure"; then |
|
|
6685 | |
|
|
6686 | # If neither matched, then we have a broken ls. This can happen |
|
|
6687 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
|
|
6688 | # broken ls alias from the environment. This has actually |
|
|
6689 | # happened. Such a system could not be considered "sane". |
|
|
6690 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
|
|
6691 | alias in your environment]) |
|
|
6692 | fi |
|
|
6693 | |
|
|
6694 | test "$[2]" = conftest.file |
|
|
6695 | ) |
|
|
6696 | then |
|
|
6697 | # Ok. |
|
|
6698 | : |
|
|
6699 | else |
|
|
6700 | AC_MSG_ERROR([newly created file is older than distributed files! |
|
|
6701 | Check your system clock]) |
|
|
6702 | fi |
|
|
6703 | AC_MSG_RESULT(yes)]) |
|
|
6704 | |
|
|
6705 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
|
|
6706 | # |
|
|
6707 | # This file is free software; the Free Software Foundation |
|
|
6708 | # gives unlimited permission to copy and/or distribute it, |
|
|
6709 | # with or without modifications, as long as this notice is preserved. |
|
|
6710 | |
|
|
6711 | # AM_PROG_INSTALL_STRIP |
|
|
6712 | # --------------------- |
|
|
6713 | # One issue with vendor `install' (even GNU) is that you can't |
|
|
6714 | # specify the program used to strip binaries. This is especially |
|
|
6715 | # annoying in cross-compiling environments, where the build's strip |
|
|
6716 | # is unlikely to handle the host's binaries. |
|
|
6717 | # Fortunately install-sh will honor a STRIPPROG variable, so we |
|
|
6718 | # always use install-sh in `make install-strip', and initialize |
|
|
6719 | # STRIPPROG with the value of the STRIP variable (set by the user). |
|
|
6720 | AC_DEFUN([AM_PROG_INSTALL_STRIP], |
|
|
6721 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
|
|
6722 | # Installed binaries are usually stripped using `strip' when the user |
|
|
6723 | # run `make install-strip'. However `strip' might not be the right |
|
|
6724 | # tool to use in cross-compilation environments, therefore Automake |
|
|
6725 | # will honor the `STRIP' environment variable to overrule this program. |
|
|
6726 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
|
|
6727 | if test "$cross_compiling" != no; then |
|
|
6728 | AC_CHECK_TOOL([STRIP], [strip], :) |
|
|
6729 | fi |
|
|
6730 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
|
|
6731 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
|
|
6732 | |
|
|
6733 | # Check how to create a tarball. -*- Autoconf -*- |
|
|
6734 | |
|
|
6735 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
|
|
6736 | # |
|
|
6737 | # This file is free software; the Free Software Foundation |
|
|
6738 | # gives unlimited permission to copy and/or distribute it, |
|
|
6739 | # with or without modifications, as long as this notice is preserved. |
|
|
6740 | |
|
|
6741 | # serial 2 |
|
|
6742 | |
|
|
6743 | # _AM_PROG_TAR(FORMAT) |
|
|
6744 | # -------------------- |
|
|
6745 | # Check how to create a tarball in format FORMAT. |
|
|
6746 | # FORMAT should be one of `v7', `ustar', or `pax'. |
|
|
6747 | # |
|
|
6748 | # Substitute a variable $(am__tar) that is a command |
|
|
6749 | # writing to stdout a FORMAT-tarball containing the directory |
|
|
6750 | # $tardir. |
|
|
6751 | # tardir=directory && $(am__tar) > result.tar |
|
|
6752 | # |
|
|
6753 | # Substitute a variable $(am__untar) that extract such |
|
|
6754 | # a tarball read from stdin. |
|
|
6755 | # $(am__untar) < result.tar |
|
|
6756 | AC_DEFUN([_AM_PROG_TAR], |
|
|
6757 | [# Always define AMTAR for backward compatibility. |
|
|
6758 | AM_MISSING_PROG([AMTAR], [tar]) |
|
|
6759 | m4_if([$1], [v7], |
|
|
6760 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], |
|
|
6761 | [m4_case([$1], [ustar],, [pax],, |
|
|
6762 | [m4_fatal([Unknown tar format])]) |
|
|
6763 | AC_MSG_CHECKING([how to create a $1 tar archive]) |
|
|
6764 | # Loop over all known methods to create a tar archive until one works. |
|
|
6765 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
|
|
6766 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} |
|
|
6767 | # Do not fold the above two line into one, because Tru64 sh and |
|
|
6768 | # Solaris sh will not grok spaces in the rhs of `-'. |
|
|
6769 | for _am_tool in $_am_tools |
|
|
6770 | do |
|
|
6771 | case $_am_tool in |
|
|
6772 | gnutar) |
|
|
6773 | for _am_tar in tar gnutar gtar; |
|
|
6774 | do |
|
|
6775 | AM_RUN_LOG([$_am_tar --version]) && break |
|
|
6776 | done |
|
|
6777 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
|
|
6778 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
|
|
6779 | am__untar="$_am_tar -xf -" |
|
|
6780 | ;; |
|
|
6781 | plaintar) |
|
|
6782 | # Must skip GNU tar: if it does not support --format= it doesn't create |
|
|
6783 | # ustar tarball either. |
|
|
6784 | (tar --version) >/dev/null 2>&1 && continue |
|
|
6785 | am__tar='tar chf - "$$tardir"' |
|
|
6786 | am__tar_='tar chf - "$tardir"' |
|
|
6787 | am__untar='tar xf -' |
|
|
6788 | ;; |
|
|
6789 | pax) |
|
|
6790 | am__tar='pax -L -x $1 -w "$$tardir"' |
|
|
6791 | am__tar_='pax -L -x $1 -w "$tardir"' |
|
|
6792 | am__untar='pax -r' |
|
|
6793 | ;; |
|
|
6794 | cpio) |
|
|
6795 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
|
|
6796 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
|
|
6797 | am__untar='cpio -i -H $1 -d' |
|
|
6798 | ;; |
|
|
6799 | none) |
|
|
6800 | am__tar=false |
|
|
6801 | am__tar_=false |
|
|
6802 | am__untar=false |
|
|
6803 | ;; |
|
|
6804 | esac |
|
|
6805 | |
|
|
6806 | # If the value was cached, stop now. We just wanted to have am__tar |
|
|
6807 | # and am__untar set. |
|
|
6808 | test -n "${am_cv_prog_tar_$1}" && break |
|
|
6809 | |
|
|
6810 | # tar/untar a dummy directory, and stop if the command works |
|
|
6811 | rm -rf conftest.dir |
|
|
6812 | mkdir conftest.dir |
|
|
6813 | echo GrepMe > conftest.dir/file |
|
|
6814 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
|
|
6815 | rm -rf conftest.dir |
|
|
6816 | if test -s conftest.tar; then |
|
|
6817 | AM_RUN_LOG([$am__untar <conftest.tar]) |
|
|
6818 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
|
|
6819 | fi |
|
|
6820 | done |
|
|
6821 | rm -rf conftest.dir |
|
|
6822 | |
|
|
6823 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
|
|
6824 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
|
|
6825 | AC_SUBST([am__tar]) |
|
|
6826 | AC_SUBST([am__untar]) |
|
|
6827 | ]) # _AM_PROG_TAR |
|
|
6828 | |
|
|
6829 | m4_include([acinclude.m4]) |
|
|