1 | # generated automatically by aclocal 1.7.9 -*- Autoconf -*- |
---|
2 | |
---|
3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 |
---|
4 | # Free Software Foundation, Inc. |
---|
5 | # This file is free software; the Free Software Foundation |
---|
6 | # gives unlimited permission to copy and/or distribute it, |
---|
7 | # with or without modifications, as long as this notice is preserved. |
---|
8 | |
---|
9 | # This program is distributed in the hope that it will be useful, |
---|
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
---|
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
---|
12 | # PARTICULAR PURPOSE. |
---|
13 | |
---|
14 | # Do all the work for Automake. -*- Autoconf -*- |
---|
15 | |
---|
16 | # This macro actually does too much some checks are only needed if |
---|
17 | # your package does certain things. But this isn't really a big deal. |
---|
18 | |
---|
19 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 |
---|
20 | # Free Software Foundation, Inc. |
---|
21 | |
---|
22 | # This program is free software; you can redistribute it and/or modify |
---|
23 | # it under the terms of the GNU General Public License as published by |
---|
24 | # the Free Software Foundation; either version 2, or (at your option) |
---|
25 | # any later version. |
---|
26 | |
---|
27 | # This program is distributed in the hope that it will be useful, |
---|
28 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
29 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
30 | # GNU General Public License for more details. |
---|
31 | |
---|
32 | # You should have received a copy of the GNU General Public License |
---|
33 | # along with this program; if not, write to the Free Software |
---|
34 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
35 | # 02111-1307, USA. |
---|
36 | |
---|
37 | # serial 10 |
---|
38 | |
---|
39 | AC_PREREQ([2.54]) |
---|
40 | |
---|
41 | # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
---|
42 | # the ones we care about. |
---|
43 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
---|
44 | |
---|
45 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
---|
46 | # AM_INIT_AUTOMAKE([OPTIONS]) |
---|
47 | # ----------------------------------------------- |
---|
48 | # The call with PACKAGE and VERSION arguments is the old style |
---|
49 | # call (pre autoconf-2.50), which is being phased out. PACKAGE |
---|
50 | # and VERSION should now be passed to AC_INIT and removed from |
---|
51 | # the call to AM_INIT_AUTOMAKE. |
---|
52 | # We support both call styles for the transition. After |
---|
53 | # the next Automake release, Autoconf can make the AC_INIT |
---|
54 | # arguments mandatory, and then we can depend on a new Autoconf |
---|
55 | # release and drop the old call support. |
---|
56 | AC_DEFUN([AM_INIT_AUTOMAKE], |
---|
57 | [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
---|
58 | AC_REQUIRE([AC_PROG_INSTALL])dnl |
---|
59 | # test to see if srcdir already configured |
---|
60 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
61 | test -f $srcdir/config.status; then |
---|
62 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
---|
63 | fi |
---|
64 | |
---|
65 | # test whether we have cygpath |
---|
66 | if test -z "$CYGPATH_W"; then |
---|
67 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
68 | CYGPATH_W='cygpath -w' |
---|
69 | else |
---|
70 | CYGPATH_W=echo |
---|
71 | fi |
---|
72 | fi |
---|
73 | AC_SUBST([CYGPATH_W]) |
---|
74 | |
---|
75 | # Define the identity of the package. |
---|
76 | dnl Distinguish between old-style and new-style calls. |
---|
77 | m4_ifval([$2], |
---|
78 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
---|
79 | AC_SUBST([PACKAGE], [$1])dnl |
---|
80 | AC_SUBST([VERSION], [$2])], |
---|
81 | [_AM_SET_OPTIONS([$1])dnl |
---|
82 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
---|
83 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
---|
84 | |
---|
85 | _AM_IF_OPTION([no-define],, |
---|
86 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
---|
87 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
---|
88 | |
---|
89 | # Some tools Automake needs. |
---|
90 | AC_REQUIRE([AM_SANITY_CHECK])dnl |
---|
91 | AC_REQUIRE([AC_ARG_PROGRAM])dnl |
---|
92 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
---|
93 | AM_MISSING_PROG(AUTOCONF, autoconf) |
---|
94 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
---|
95 | AM_MISSING_PROG(AUTOHEADER, autoheader) |
---|
96 | AM_MISSING_PROG(MAKEINFO, makeinfo) |
---|
97 | AM_MISSING_PROG(AMTAR, tar) |
---|
98 | AM_PROG_INSTALL_SH |
---|
99 | AM_PROG_INSTALL_STRIP |
---|
100 | # We need awk for the "check" target. The system "awk" is bad on |
---|
101 | # some platforms. |
---|
102 | AC_REQUIRE([AC_PROG_AWK])dnl |
---|
103 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
---|
104 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
---|
105 | |
---|
106 | _AM_IF_OPTION([no-dependencies],, |
---|
107 | [AC_PROVIDE_IFELSE([AC_PROG_CC], |
---|
108 | [_AM_DEPENDENCIES(CC)], |
---|
109 | [define([AC_PROG_CC], |
---|
110 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
---|
111 | AC_PROVIDE_IFELSE([AC_PROG_CXX], |
---|
112 | [_AM_DEPENDENCIES(CXX)], |
---|
113 | [define([AC_PROG_CXX], |
---|
114 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
---|
115 | ]) |
---|
116 | ]) |
---|
117 | |
---|
118 | |
---|
119 | # When config.status generates a header, we must update the stamp-h file. |
---|
120 | # This file resides in the same directory as the config header |
---|
121 | # that is generated. The stamp files are numbered to have different names. |
---|
122 | |
---|
123 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
---|
124 | # loop where config.status creates the headers, so we can generate |
---|
125 | # our stamp files there. |
---|
126 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
---|
127 | [# Compute $1's index in $config_headers. |
---|
128 | _am_stamp_count=1 |
---|
129 | for _am_header in $config_headers :; do |
---|
130 | case $_am_header in |
---|
131 | $1 | $1:* ) |
---|
132 | break ;; |
---|
133 | * ) |
---|
134 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
135 | esac |
---|
136 | done |
---|
137 | echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) |
---|
138 | |
---|
139 | # Copyright 2002 Free Software Foundation, Inc. |
---|
140 | |
---|
141 | # This program is free software; you can redistribute it and/or modify |
---|
142 | # it under the terms of the GNU General Public License as published by |
---|
143 | # the Free Software Foundation; either version 2, or (at your option) |
---|
144 | # any later version. |
---|
145 | |
---|
146 | # This program is distributed in the hope that it will be useful, |
---|
147 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
148 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
149 | # GNU General Public License for more details. |
---|
150 | |
---|
151 | # You should have received a copy of the GNU General Public License |
---|
152 | # along with this program; if not, write to the Free Software |
---|
153 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
154 | |
---|
155 | # AM_AUTOMAKE_VERSION(VERSION) |
---|
156 | # ---------------------------- |
---|
157 | # Automake X.Y traces this macro to ensure aclocal.m4 has been |
---|
158 | # generated from the m4 files accompanying Automake X.Y. |
---|
159 | AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) |
---|
160 | |
---|
161 | # AM_SET_CURRENT_AUTOMAKE_VERSION |
---|
162 | # ------------------------------- |
---|
163 | # Call AM_AUTOMAKE_VERSION so it can be traced. |
---|
164 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
---|
165 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
---|
166 | [AM_AUTOMAKE_VERSION([1.7.9])]) |
---|
167 | |
---|
168 | # Helper functions for option handling. -*- Autoconf -*- |
---|
169 | |
---|
170 | # Copyright 2001, 2002 Free Software Foundation, Inc. |
---|
171 | |
---|
172 | # This program is free software; you can redistribute it and/or modify |
---|
173 | # it under the terms of the GNU General Public License as published by |
---|
174 | # the Free Software Foundation; either version 2, or (at your option) |
---|
175 | # any later version. |
---|
176 | |
---|
177 | # This program is distributed in the hope that it will be useful, |
---|
178 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
179 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
180 | # GNU General Public License for more details. |
---|
181 | |
---|
182 | # You should have received a copy of the GNU General Public License |
---|
183 | # along with this program; if not, write to the Free Software |
---|
184 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
185 | # 02111-1307, USA. |
---|
186 | |
---|
187 | # serial 2 |
---|
188 | |
---|
189 | # _AM_MANGLE_OPTION(NAME) |
---|
190 | # ----------------------- |
---|
191 | AC_DEFUN([_AM_MANGLE_OPTION], |
---|
192 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
---|
193 | |
---|
194 | # _AM_SET_OPTION(NAME) |
---|
195 | # ------------------------------ |
---|
196 | # Set option NAME. Presently that only means defining a flag for this option. |
---|
197 | AC_DEFUN([_AM_SET_OPTION], |
---|
198 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
---|
199 | |
---|
200 | # _AM_SET_OPTIONS(OPTIONS) |
---|
201 | # ---------------------------------- |
---|
202 | # OPTIONS is a space-separated list of Automake options. |
---|
203 | AC_DEFUN([_AM_SET_OPTIONS], |
---|
204 | [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
---|
205 | |
---|
206 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
---|
207 | # ------------------------------------------- |
---|
208 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
---|
209 | AC_DEFUN([_AM_IF_OPTION], |
---|
210 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
---|
211 | |
---|
212 | # |
---|
213 | # Check to make sure that the build environment is sane. |
---|
214 | # |
---|
215 | |
---|
216 | # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. |
---|
217 | |
---|
218 | # This program is free software; you can redistribute it and/or modify |
---|
219 | # it under the terms of the GNU General Public License as published by |
---|
220 | # the Free Software Foundation; either version 2, or (at your option) |
---|
221 | # any later version. |
---|
222 | |
---|
223 | # This program is distributed in the hope that it will be useful, |
---|
224 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
225 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
226 | # GNU General Public License for more details. |
---|
227 | |
---|
228 | # You should have received a copy of the GNU General Public License |
---|
229 | # along with this program; if not, write to the Free Software |
---|
230 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
231 | # 02111-1307, USA. |
---|
232 | |
---|
233 | # serial 3 |
---|
234 | |
---|
235 | # AM_SANITY_CHECK |
---|
236 | # --------------- |
---|
237 | AC_DEFUN([AM_SANITY_CHECK], |
---|
238 | [AC_MSG_CHECKING([whether build environment is sane]) |
---|
239 | # Just in case |
---|
240 | sleep 1 |
---|
241 | echo timestamp > conftest.file |
---|
242 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
243 | # arguments. Must try -L first in case configure is actually a |
---|
244 | # symlink; some systems play weird games with the mod time of symlinks |
---|
245 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
246 | # directory). |
---|
247 | if ( |
---|
248 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
249 | if test "$[*]" = "X"; then |
---|
250 | # -L didn't work. |
---|
251 | set X `ls -t $srcdir/configure conftest.file` |
---|
252 | fi |
---|
253 | rm -f conftest.file |
---|
254 | if test "$[*]" != "X $srcdir/configure conftest.file" \ |
---|
255 | && test "$[*]" != "X conftest.file $srcdir/configure"; then |
---|
256 | |
---|
257 | # If neither matched, then we have a broken ls. This can happen |
---|
258 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
259 | # broken ls alias from the environment. This has actually |
---|
260 | # happened. Such a system could not be considered "sane". |
---|
261 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
---|
262 | alias in your environment]) |
---|
263 | fi |
---|
264 | |
---|
265 | test "$[2]" = conftest.file |
---|
266 | ) |
---|
267 | then |
---|
268 | # Ok. |
---|
269 | : |
---|
270 | else |
---|
271 | AC_MSG_ERROR([newly created file is older than distributed files! |
---|
272 | Check your system clock]) |
---|
273 | fi |
---|
274 | AC_MSG_RESULT(yes)]) |
---|
275 | |
---|
276 | # -*- Autoconf -*- |
---|
277 | |
---|
278 | |
---|
279 | # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. |
---|
280 | |
---|
281 | # This program is free software; you can redistribute it and/or modify |
---|
282 | # it under the terms of the GNU General Public License as published by |
---|
283 | # the Free Software Foundation; either version 2, or (at your option) |
---|
284 | # any later version. |
---|
285 | |
---|
286 | # This program is distributed in the hope that it will be useful, |
---|
287 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
288 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
289 | # GNU General Public License for more details. |
---|
290 | |
---|
291 | # You should have received a copy of the GNU General Public License |
---|
292 | # along with this program; if not, write to the Free Software |
---|
293 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
294 | # 02111-1307, USA. |
---|
295 | |
---|
296 | # serial 3 |
---|
297 | |
---|
298 | # AM_MISSING_PROG(NAME, PROGRAM) |
---|
299 | # ------------------------------ |
---|
300 | AC_DEFUN([AM_MISSING_PROG], |
---|
301 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) |
---|
302 | $1=${$1-"${am_missing_run}$2"} |
---|
303 | AC_SUBST($1)]) |
---|
304 | |
---|
305 | |
---|
306 | # AM_MISSING_HAS_RUN |
---|
307 | # ------------------ |
---|
308 | # Define MISSING if not defined so far and test if it supports --run. |
---|
309 | # If it does, set am_missing_run to use it, otherwise, to nothing. |
---|
310 | AC_DEFUN([AM_MISSING_HAS_RUN], |
---|
311 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
---|
312 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
313 | # Use eval to expand $SHELL |
---|
314 | if eval "$MISSING --run true"; then |
---|
315 | am_missing_run="$MISSING --run " |
---|
316 | else |
---|
317 | am_missing_run= |
---|
318 | AC_MSG_WARN([`missing' script is too old or missing]) |
---|
319 | fi |
---|
320 | ]) |
---|
321 | |
---|
322 | # AM_AUX_DIR_EXPAND |
---|
323 | |
---|
324 | # Copyright 2001 Free Software Foundation, Inc. |
---|
325 | |
---|
326 | # This program is free software; you can redistribute it and/or modify |
---|
327 | # it under the terms of the GNU General Public License as published by |
---|
328 | # the Free Software Foundation; either version 2, or (at your option) |
---|
329 | # any later version. |
---|
330 | |
---|
331 | # This program is distributed in the hope that it will be useful, |
---|
332 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
333 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
334 | # GNU General Public License for more details. |
---|
335 | |
---|
336 | # You should have received a copy of the GNU General Public License |
---|
337 | # along with this program; if not, write to the Free Software |
---|
338 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
339 | # 02111-1307, USA. |
---|
340 | |
---|
341 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
---|
342 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
---|
343 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
---|
344 | # |
---|
345 | # Of course, Automake must honor this variable whenever it calls a |
---|
346 | # tool from the auxiliary directory. The problem is that $srcdir (and |
---|
347 | # therefore $ac_aux_dir as well) can be either absolute or relative, |
---|
348 | # depending on how configure is run. This is pretty annoying, since |
---|
349 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top |
---|
350 | # source directory, any form will work fine, but in subdirectories a |
---|
351 | # relative path needs to be adjusted first. |
---|
352 | # |
---|
353 | # $ac_aux_dir/missing |
---|
354 | # fails when called from a subdirectory if $ac_aux_dir is relative |
---|
355 | # $top_srcdir/$ac_aux_dir/missing |
---|
356 | # fails if $ac_aux_dir is absolute, |
---|
357 | # fails when called from a subdirectory in a VPATH build with |
---|
358 | # a relative $ac_aux_dir |
---|
359 | # |
---|
360 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
---|
361 | # are both prefixed by $srcdir. In an in-source build this is usually |
---|
362 | # harmless because $srcdir is `.', but things will broke when you |
---|
363 | # start a VPATH build or use an absolute $srcdir. |
---|
364 | # |
---|
365 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
---|
366 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
---|
367 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
---|
368 | # and then we would define $MISSING as |
---|
369 | # MISSING="\${SHELL} $am_aux_dir/missing" |
---|
370 | # This will work as long as MISSING is not called from configure, because |
---|
371 | # unfortunately $(top_srcdir) has no meaning in configure. |
---|
372 | # However there are other variables, like CC, which are often used in |
---|
373 | # configure, and could therefore not use this "fixed" $ac_aux_dir. |
---|
374 | # |
---|
375 | # Another solution, used here, is to always expand $ac_aux_dir to an |
---|
376 | # absolute PATH. The drawback is that using absolute paths prevent a |
---|
377 | # configured tree to be moved without reconfiguration. |
---|
378 | |
---|
379 | # Rely on autoconf to set up CDPATH properly. |
---|
380 | AC_PREREQ([2.50]) |
---|
381 | |
---|
382 | AC_DEFUN([AM_AUX_DIR_EXPAND], [ |
---|
383 | # expand $ac_aux_dir to an absolute path |
---|
384 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
385 | ]) |
---|
386 | |
---|
387 | # AM_PROG_INSTALL_SH |
---|
388 | # ------------------ |
---|
389 | # Define $install_sh. |
---|
390 | |
---|
391 | # Copyright 2001 Free Software Foundation, Inc. |
---|
392 | |
---|
393 | # This program is free software; you can redistribute it and/or modify |
---|
394 | # it under the terms of the GNU General Public License as published by |
---|
395 | # the Free Software Foundation; either version 2, or (at your option) |
---|
396 | # any later version. |
---|
397 | |
---|
398 | # This program is distributed in the hope that it will be useful, |
---|
399 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
400 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
401 | # GNU General Public License for more details. |
---|
402 | |
---|
403 | # You should have received a copy of the GNU General Public License |
---|
404 | # along with this program; if not, write to the Free Software |
---|
405 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
406 | # 02111-1307, USA. |
---|
407 | |
---|
408 | AC_DEFUN([AM_PROG_INSTALL_SH], |
---|
409 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
---|
410 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
411 | AC_SUBST(install_sh)]) |
---|
412 | |
---|
413 | # AM_PROG_INSTALL_STRIP |
---|
414 | |
---|
415 | # Copyright 2001 Free Software Foundation, Inc. |
---|
416 | |
---|
417 | # This program is free software; you can redistribute it and/or modify |
---|
418 | # it under the terms of the GNU General Public License as published by |
---|
419 | # the Free Software Foundation; either version 2, or (at your option) |
---|
420 | # any later version. |
---|
421 | |
---|
422 | # This program is distributed in the hope that it will be useful, |
---|
423 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
424 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
425 | # GNU General Public License for more details. |
---|
426 | |
---|
427 | # You should have received a copy of the GNU General Public License |
---|
428 | # along with this program; if not, write to the Free Software |
---|
429 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
430 | # 02111-1307, USA. |
---|
431 | |
---|
432 | # One issue with vendor `install' (even GNU) is that you can't |
---|
433 | # specify the program used to strip binaries. This is especially |
---|
434 | # annoying in cross-compiling environments, where the build's strip |
---|
435 | # is unlikely to handle the host's binaries. |
---|
436 | # Fortunately install-sh will honor a STRIPPROG variable, so we |
---|
437 | # always use install-sh in `make install-strip', and initialize |
---|
438 | # STRIPPROG with the value of the STRIP variable (set by the user). |
---|
439 | AC_DEFUN([AM_PROG_INSTALL_STRIP], |
---|
440 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
---|
441 | # Installed binaries are usually stripped using `strip' when the user |
---|
442 | # run `make install-strip'. However `strip' might not be the right |
---|
443 | # tool to use in cross-compilation environments, therefore Automake |
---|
444 | # will honor the `STRIP' environment variable to overrule this program. |
---|
445 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
---|
446 | if test "$cross_compiling" != no; then |
---|
447 | AC_CHECK_TOOL([STRIP], [strip], :) |
---|
448 | fi |
---|
449 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
450 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
---|
451 | |
---|
452 | # -*- Autoconf -*- |
---|
453 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
454 | |
---|
455 | # This program is free software; you can redistribute it and/or modify |
---|
456 | # it under the terms of the GNU General Public License as published by |
---|
457 | # the Free Software Foundation; either version 2, or (at your option) |
---|
458 | # any later version. |
---|
459 | |
---|
460 | # This program is distributed in the hope that it will be useful, |
---|
461 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
462 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
463 | # GNU General Public License for more details. |
---|
464 | |
---|
465 | # You should have received a copy of the GNU General Public License |
---|
466 | # along with this program; if not, write to the Free Software |
---|
467 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
468 | # 02111-1307, USA. |
---|
469 | |
---|
470 | # serial 1 |
---|
471 | |
---|
472 | # Check whether the underlying file-system supports filenames |
---|
473 | # with a leading dot. For instance MS-DOS doesn't. |
---|
474 | AC_DEFUN([AM_SET_LEADING_DOT], |
---|
475 | [rm -rf .tst 2>/dev/null |
---|
476 | mkdir .tst 2>/dev/null |
---|
477 | if test -d .tst; then |
---|
478 | am__leading_dot=. |
---|
479 | else |
---|
480 | am__leading_dot=_ |
---|
481 | fi |
---|
482 | rmdir .tst 2>/dev/null |
---|
483 | AC_SUBST([am__leading_dot])]) |
---|
484 | |
---|
485 | # serial 5 -*- Autoconf -*- |
---|
486 | |
---|
487 | # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
---|
488 | |
---|
489 | # This program is free software; you can redistribute it and/or modify |
---|
490 | # it under the terms of the GNU General Public License as published by |
---|
491 | # the Free Software Foundation; either version 2, or (at your option) |
---|
492 | # any later version. |
---|
493 | |
---|
494 | # This program is distributed in the hope that it will be useful, |
---|
495 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
496 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
497 | # GNU General Public License for more details. |
---|
498 | |
---|
499 | # You should have received a copy of the GNU General Public License |
---|
500 | # along with this program; if not, write to the Free Software |
---|
501 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
502 | # 02111-1307, USA. |
---|
503 | |
---|
504 | |
---|
505 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
---|
506 | # written in clear, in which case automake, when reading aclocal.m4, |
---|
507 | # will think it sees a *use*, and therefore will trigger all it's |
---|
508 | # C support machinery. Also note that it means that autoscan, seeing |
---|
509 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
---|
510 | |
---|
511 | |
---|
512 | |
---|
513 | # _AM_DEPENDENCIES(NAME) |
---|
514 | # ---------------------- |
---|
515 | # See how the compiler implements dependency checking. |
---|
516 | # NAME is "CC", "CXX", "GCJ", or "OBJC". |
---|
517 | # We try a few techniques and use that to set a single cache variable. |
---|
518 | # |
---|
519 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
---|
520 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
---|
521 | # dependency, and given that the user is not expected to run this macro, |
---|
522 | # just rely on AC_PROG_CC. |
---|
523 | AC_DEFUN([_AM_DEPENDENCIES], |
---|
524 | [AC_REQUIRE([AM_SET_DEPDIR])dnl |
---|
525 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
---|
526 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
---|
527 | AC_REQUIRE([AM_DEP_TRACK])dnl |
---|
528 | |
---|
529 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
---|
530 | [$1], CXX, [depcc="$CXX" am_compiler_list=], |
---|
531 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
---|
532 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
---|
533 | [depcc="$$1" am_compiler_list=]) |
---|
534 | |
---|
535 | AC_CACHE_CHECK([dependency style of $depcc], |
---|
536 | [am_cv_$1_dependencies_compiler_type], |
---|
537 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
538 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
539 | # making bogus files that we don't know about and never remove. For |
---|
540 | # instance it was reported that on HP-UX the gcc test will end up |
---|
541 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
542 | # in D'. |
---|
543 | mkdir conftest.dir |
---|
544 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
545 | # using a relative directory. |
---|
546 | cp "$am_depcomp" conftest.dir |
---|
547 | cd conftest.dir |
---|
548 | # We will build objects and dependencies in a subdirectory because |
---|
549 | # it helps to detect inapplicable dependency modes. For instance |
---|
550 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
551 | # side effect of compilation, but ICC will put the dependencies in |
---|
552 | # the current directory while Tru64 will put them in the object |
---|
553 | # directory. |
---|
554 | mkdir sub |
---|
555 | |
---|
556 | am_cv_$1_dependencies_compiler_type=none |
---|
557 | if test "$am_compiler_list" = ""; then |
---|
558 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
---|
559 | fi |
---|
560 | for depmode in $am_compiler_list; do |
---|
561 | # Setup a source with many dependencies, because some compilers |
---|
562 | # like to wrap large dependency lists on column 80 (with \), and |
---|
563 | # we should not choose a depcomp mode which is confused by this. |
---|
564 | # |
---|
565 | # We need to recreate these files for each test, as the compiler may |
---|
566 | # overwrite some of them when testing with obscure command lines. |
---|
567 | # This happens at least with the AIX C compiler. |
---|
568 | : > sub/conftest.c |
---|
569 | for i in 1 2 3 4 5 6; do |
---|
570 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
571 | : > sub/conftst$i.h |
---|
572 | done |
---|
573 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
574 | |
---|
575 | case $depmode in |
---|
576 | nosideeffect) |
---|
577 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
578 | # only be used when explicitly requested |
---|
579 | if test "x$enable_dependency_tracking" = xyes; then |
---|
580 | continue |
---|
581 | else |
---|
582 | break |
---|
583 | fi |
---|
584 | ;; |
---|
585 | none) break ;; |
---|
586 | esac |
---|
587 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
588 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
589 | # handle `-M -o', and we need to detect this. |
---|
590 | if depmode=$depmode \ |
---|
591 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
592 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
593 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
594 | >/dev/null 2>conftest.err && |
---|
595 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
596 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
597 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
598 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
599 | # (even with -Werror). So we grep stderr for any message |
---|
600 | # that says an option was ignored. |
---|
601 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
602 | am_cv_$1_dependencies_compiler_type=$depmode |
---|
603 | break |
---|
604 | fi |
---|
605 | fi |
---|
606 | done |
---|
607 | |
---|
608 | cd .. |
---|
609 | rm -rf conftest.dir |
---|
610 | else |
---|
611 | am_cv_$1_dependencies_compiler_type=none |
---|
612 | fi |
---|
613 | ]) |
---|
614 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
---|
615 | AM_CONDITIONAL([am__fastdep$1], [ |
---|
616 | test "x$enable_dependency_tracking" != xno \ |
---|
617 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
---|
618 | ]) |
---|
619 | |
---|
620 | |
---|
621 | # AM_SET_DEPDIR |
---|
622 | # ------------- |
---|
623 | # Choose a directory name for dependency files. |
---|
624 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES |
---|
625 | AC_DEFUN([AM_SET_DEPDIR], |
---|
626 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
---|
627 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
---|
628 | ]) |
---|
629 | |
---|
630 | |
---|
631 | # AM_DEP_TRACK |
---|
632 | # ------------ |
---|
633 | AC_DEFUN([AM_DEP_TRACK], |
---|
634 | [AC_ARG_ENABLE(dependency-tracking, |
---|
635 | [ --disable-dependency-tracking Speeds up one-time builds |
---|
636 | --enable-dependency-tracking Do not reject slow dependency extractors]) |
---|
637 | if test "x$enable_dependency_tracking" != xno; then |
---|
638 | am_depcomp="$ac_aux_dir/depcomp" |
---|
639 | AMDEPBACKSLASH='\' |
---|
640 | fi |
---|
641 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
---|
642 | AC_SUBST([AMDEPBACKSLASH]) |
---|
643 | ]) |
---|
644 | |
---|
645 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
---|
646 | |
---|
647 | # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
---|
648 | |
---|
649 | # This program is free software; you can redistribute it and/or modify |
---|
650 | # it under the terms of the GNU General Public License as published by |
---|
651 | # the Free Software Foundation; either version 2, or (at your option) |
---|
652 | # any later version. |
---|
653 | |
---|
654 | # This program is distributed in the hope that it will be useful, |
---|
655 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
656 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
657 | # GNU General Public License for more details. |
---|
658 | |
---|
659 | # You should have received a copy of the GNU General Public License |
---|
660 | # along with this program; if not, write to the Free Software |
---|
661 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
662 | # 02111-1307, USA. |
---|
663 | |
---|
664 | #serial 2 |
---|
665 | |
---|
666 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
---|
667 | # ------------------------------ |
---|
668 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
---|
669 | [for mf in $CONFIG_FILES; do |
---|
670 | # Strip MF so we end up with the name of the file. |
---|
671 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
672 | # Check whether this is an Automake generated Makefile or not. |
---|
673 | # We used to match only the files named `Makefile.in', but |
---|
674 | # some people rename them; so instead we look at the file content. |
---|
675 | # Grep'ing the first line is not enough: some people post-process |
---|
676 | # each Makefile.in and add a new line on top of each file to say so. |
---|
677 | # So let's grep whole file. |
---|
678 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
679 | dirpart=`AS_DIRNAME("$mf")` |
---|
680 | else |
---|
681 | continue |
---|
682 | fi |
---|
683 | grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue |
---|
684 | # Extract the definition of DEP_FILES from the Makefile without |
---|
685 | # running `make'. |
---|
686 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
687 | test -z "$DEPDIR" && continue |
---|
688 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
689 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
690 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
691 | # We invoke sed twice because it is the simplest approach to |
---|
692 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
693 | for file in `sed -n -e ' |
---|
694 | /^DEP_FILES = .*\\\\$/ { |
---|
695 | s/^DEP_FILES = // |
---|
696 | :loop |
---|
697 | s/\\\\$// |
---|
698 | p |
---|
699 | n |
---|
700 | /\\\\$/ b loop |
---|
701 | p |
---|
702 | } |
---|
703 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
704 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
705 | # Make sure the directory exists. |
---|
706 | test -f "$dirpart/$file" && continue |
---|
707 | fdir=`AS_DIRNAME(["$file"])` |
---|
708 | AS_MKDIR_P([$dirpart/$fdir]) |
---|
709 | # echo "creating $dirpart/$file" |
---|
710 | echo '# dummy' > "$dirpart/$file" |
---|
711 | done |
---|
712 | done |
---|
713 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
---|
714 | |
---|
715 | |
---|
716 | # AM_OUTPUT_DEPENDENCY_COMMANDS |
---|
717 | # ----------------------------- |
---|
718 | # This macro should only be invoked once -- use via AC_REQUIRE. |
---|
719 | # |
---|
720 | # This code is only required when automatic dependency tracking |
---|
721 | # is enabled. FIXME. This creates each `.P' file that we will |
---|
722 | # need in order to bootstrap the dependency handling code. |
---|
723 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
---|
724 | [AC_CONFIG_COMMANDS([depfiles], |
---|
725 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
---|
726 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
---|
727 | ]) |
---|
728 | |
---|
729 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
---|
730 | |
---|
731 | # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. |
---|
732 | |
---|
733 | # This program is free software; you can redistribute it and/or modify |
---|
734 | # it under the terms of the GNU General Public License as published by |
---|
735 | # the Free Software Foundation; either version 2, or (at your option) |
---|
736 | # any later version. |
---|
737 | |
---|
738 | # This program is distributed in the hope that it will be useful, |
---|
739 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
740 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
741 | # GNU General Public License for more details. |
---|
742 | |
---|
743 | # You should have received a copy of the GNU General Public License |
---|
744 | # along with this program; if not, write to the Free Software |
---|
745 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
746 | # 02111-1307, USA. |
---|
747 | |
---|
748 | # serial 2 |
---|
749 | |
---|
750 | # AM_MAKE_INCLUDE() |
---|
751 | # ----------------- |
---|
752 | # Check to see how make treats includes. |
---|
753 | AC_DEFUN([AM_MAKE_INCLUDE], |
---|
754 | [am_make=${MAKE-make} |
---|
755 | cat > confinc << 'END' |
---|
756 | am__doit: |
---|
757 | @echo done |
---|
758 | .PHONY: am__doit |
---|
759 | END |
---|
760 | # If we don't find an include directive, just comment out the code. |
---|
761 | AC_MSG_CHECKING([for style of include used by $am_make]) |
---|
762 | am__include="#" |
---|
763 | am__quote= |
---|
764 | _am_result=none |
---|
765 | # First try GNU make style include. |
---|
766 | echo "include confinc" > confmf |
---|
767 | # We grep out `Entering directory' and `Leaving directory' |
---|
768 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
769 | # In particular we don't look at `^make:' because GNU make might |
---|
770 | # be invoked under some other name (usually "gmake"), in which |
---|
771 | # case it prints its new name instead of `make'. |
---|
772 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
773 | am__include=include |
---|
774 | am__quote= |
---|
775 | _am_result=GNU |
---|
776 | fi |
---|
777 | # Now try BSD make style include. |
---|
778 | if test "$am__include" = "#"; then |
---|
779 | echo '.include "confinc"' > confmf |
---|
780 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
781 | am__include=.include |
---|
782 | am__quote="\"" |
---|
783 | _am_result=BSD |
---|
784 | fi |
---|
785 | fi |
---|
786 | AC_SUBST([am__include]) |
---|
787 | AC_SUBST([am__quote]) |
---|
788 | AC_MSG_RESULT([$_am_result]) |
---|
789 | rm -f confinc confmf |
---|
790 | ]) |
---|
791 | |
---|
792 | # AM_CONDITIONAL -*- Autoconf -*- |
---|
793 | |
---|
794 | # Copyright 1997, 2000, 2001 Free Software Foundation, Inc. |
---|
795 | |
---|
796 | # This program is free software; you can redistribute it and/or modify |
---|
797 | # it under the terms of the GNU General Public License as published by |
---|
798 | # the Free Software Foundation; either version 2, or (at your option) |
---|
799 | # any later version. |
---|
800 | |
---|
801 | # This program is distributed in the hope that it will be useful, |
---|
802 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
803 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
804 | # GNU General Public License for more details. |
---|
805 | |
---|
806 | # You should have received a copy of the GNU General Public License |
---|
807 | # along with this program; if not, write to the Free Software |
---|
808 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
809 | # 02111-1307, USA. |
---|
810 | |
---|
811 | # serial 5 |
---|
812 | |
---|
813 | AC_PREREQ(2.52) |
---|
814 | |
---|
815 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
---|
816 | # ------------------------------------- |
---|
817 | # Define a conditional. |
---|
818 | AC_DEFUN([AM_CONDITIONAL], |
---|
819 | [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
---|
820 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
---|
821 | AC_SUBST([$1_TRUE]) |
---|
822 | AC_SUBST([$1_FALSE]) |
---|
823 | if $2; then |
---|
824 | $1_TRUE= |
---|
825 | $1_FALSE='#' |
---|
826 | else |
---|
827 | $1_TRUE='#' |
---|
828 | $1_FALSE= |
---|
829 | fi |
---|
830 | AC_CONFIG_COMMANDS_PRE( |
---|
831 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
---|
832 | AC_MSG_ERROR([conditional "$1" was never defined. |
---|
833 | Usually this means the macro was only invoked conditionally.]) |
---|
834 | fi])]) |
---|
835 | |
---|
836 | # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- |
---|
837 | |
---|
838 | # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. |
---|
839 | |
---|
840 | # This program is free software; you can redistribute it and/or modify |
---|
841 | # it under the terms of the GNU General Public License as published by |
---|
842 | # the Free Software Foundation; either version 2, or (at your option) |
---|
843 | # any later version. |
---|
844 | |
---|
845 | # This program is distributed in the hope that it will be useful, |
---|
846 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
847 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
848 | # GNU General Public License for more details. |
---|
849 | |
---|
850 | # You should have received a copy of the GNU General Public License |
---|
851 | # along with this program; if not, write to the Free Software |
---|
852 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
853 | # 02111-1307, USA. |
---|
854 | |
---|
855 | AC_PREREQ([2.52]) |
---|
856 | |
---|
857 | # serial 6 |
---|
858 | |
---|
859 | # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
---|
860 | AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
---|
861 | |
---|
862 | # Add --enable-maintainer-mode option to configure. |
---|
863 | # From Jim Meyering |
---|
864 | |
---|
865 | # Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc. |
---|
866 | |
---|
867 | # This program is free software; you can redistribute it and/or modify |
---|
868 | # it under the terms of the GNU General Public License as published by |
---|
869 | # the Free Software Foundation; either version 2, or (at your option) |
---|
870 | # any later version. |
---|
871 | |
---|
872 | # This program is distributed in the hope that it will be useful, |
---|
873 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
874 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
875 | # GNU General Public License for more details. |
---|
876 | |
---|
877 | # You should have received a copy of the GNU General Public License |
---|
878 | # along with this program; if not, write to the Free Software |
---|
879 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
880 | # 02111-1307, USA. |
---|
881 | |
---|
882 | # serial 2 |
---|
883 | |
---|
884 | AC_DEFUN([AM_MAINTAINER_MODE], |
---|
885 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
---|
886 | dnl maintainer-mode is disabled by default |
---|
887 | AC_ARG_ENABLE(maintainer-mode, |
---|
888 | [ --enable-maintainer-mode enable make rules and dependencies not useful |
---|
889 | (and sometimes confusing) to the casual installer], |
---|
890 | USE_MAINTAINER_MODE=$enableval, |
---|
891 | USE_MAINTAINER_MODE=no) |
---|
892 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
---|
893 | AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) |
---|
894 | MAINT=$MAINTAINER_MODE_TRUE |
---|
895 | AC_SUBST(MAINT)dnl |
---|
896 | ] |
---|
897 | ) |
---|
898 | |
---|
899 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
---|
900 | |
---|
901 | # isc-posix.m4 serial 2 (gettext-0.11.2) |
---|
902 | dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. |
---|
903 | dnl This file is free software, distributed under the terms of the GNU |
---|
904 | dnl General Public License. As a special exception to the GNU General |
---|
905 | dnl Public License, this file may be distributed as part of a program |
---|
906 | dnl that contains a configuration script generated by Autoconf, under |
---|
907 | dnl the same distribution terms as the rest of that program. |
---|
908 | |
---|
909 | # This file is not needed with autoconf-2.53 and newer. Remove it in 2005. |
---|
910 | |
---|
911 | # This test replaces the one in autoconf. |
---|
912 | # Currently this macro should have the same name as the autoconf macro |
---|
913 | # because gettext's gettext.m4 (distributed in the automake package) |
---|
914 | # still uses it. Otherwise, the use in gettext.m4 makes autoheader |
---|
915 | # give these diagnostics: |
---|
916 | # configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX |
---|
917 | # configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX |
---|
918 | |
---|
919 | undefine([AC_ISC_POSIX]) |
---|
920 | |
---|
921 | AC_DEFUN([AC_ISC_POSIX], |
---|
922 | [ |
---|
923 | dnl This test replaces the obsolescent AC_ISC_POSIX kludge. |
---|
924 | AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) |
---|
925 | ] |
---|
926 | ) |
---|
927 | |
---|
928 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
---|
929 | |
---|
930 | # serial 47 AC_PROG_LIBTOOL |
---|
931 | |
---|
932 | |
---|
933 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
---|
934 | # ----------------------------------------------------------- |
---|
935 | # If this macro is not defined by Autoconf, define it here. |
---|
936 | m4_ifdef([AC_PROVIDE_IFELSE], |
---|
937 | [], |
---|
938 | [m4_define([AC_PROVIDE_IFELSE], |
---|
939 | [m4_ifdef([AC_PROVIDE_$1], |
---|
940 | [$2], [$3])])]) |
---|
941 | |
---|
942 | |
---|
943 | # AC_PROG_LIBTOOL |
---|
944 | # --------------- |
---|
945 | AC_DEFUN([AC_PROG_LIBTOOL], |
---|
946 | [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl |
---|
947 | dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX |
---|
948 | dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. |
---|
949 | AC_PROVIDE_IFELSE([AC_PROG_CXX], |
---|
950 | [AC_LIBTOOL_CXX], |
---|
951 | [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX |
---|
952 | ])]) |
---|
953 | dnl And a similar setup for Fortran 77 support |
---|
954 | AC_PROVIDE_IFELSE([AC_PROG_F77], |
---|
955 | [AC_LIBTOOL_F77], |
---|
956 | [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 |
---|
957 | ])]) |
---|
958 | |
---|
959 | dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. |
---|
960 | dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run |
---|
961 | dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. |
---|
962 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
---|
963 | [AC_LIBTOOL_GCJ], |
---|
964 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
---|
965 | [AC_LIBTOOL_GCJ], |
---|
966 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], |
---|
967 | [AC_LIBTOOL_GCJ], |
---|
968 | [ifdef([AC_PROG_GCJ], |
---|
969 | [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
---|
970 | ifdef([A][M_PROG_GCJ], |
---|
971 | [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
---|
972 | ifdef([LT_AC_PROG_GCJ], |
---|
973 | [define([LT_AC_PROG_GCJ], |
---|
974 | defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
---|
975 | ])])# AC_PROG_LIBTOOL |
---|
976 | |
---|
977 | |
---|
978 | # _AC_PROG_LIBTOOL |
---|
979 | # ---------------- |
---|
980 | AC_DEFUN([_AC_PROG_LIBTOOL], |
---|
981 | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
---|
982 | AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl |
---|
983 | AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl |
---|
984 | AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl |
---|
985 | |
---|
986 | # This can be used to rebuild libtool when needed |
---|
987 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
---|
988 | |
---|
989 | # Always use our own libtool. |
---|
990 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
991 | AC_SUBST(LIBTOOL)dnl |
---|
992 | |
---|
993 | # Prevent multiple expansion |
---|
994 | define([AC_PROG_LIBTOOL], []) |
---|
995 | ])# _AC_PROG_LIBTOOL |
---|
996 | |
---|
997 | |
---|
998 | # AC_LIBTOOL_SETUP |
---|
999 | # ---------------- |
---|
1000 | AC_DEFUN([AC_LIBTOOL_SETUP], |
---|
1001 | [AC_PREREQ(2.50)dnl |
---|
1002 | AC_REQUIRE([AC_ENABLE_SHARED])dnl |
---|
1003 | AC_REQUIRE([AC_ENABLE_STATIC])dnl |
---|
1004 | AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl |
---|
1005 | AC_REQUIRE([AC_CANONICAL_HOST])dnl |
---|
1006 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
---|
1007 | AC_REQUIRE([AC_PROG_CC])dnl |
---|
1008 | AC_REQUIRE([AC_PROG_LD])dnl |
---|
1009 | AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
---|
1010 | AC_REQUIRE([AC_PROG_NM])dnl |
---|
1011 | |
---|
1012 | AC_REQUIRE([AC_PROG_LN_S])dnl |
---|
1013 | AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
---|
1014 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
---|
1015 | AC_REQUIRE([AC_OBJEXT])dnl |
---|
1016 | AC_REQUIRE([AC_EXEEXT])dnl |
---|
1017 | dnl |
---|
1018 | |
---|
1019 | AC_LIBTOOL_SYS_MAX_CMD_LEN |
---|
1020 | AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
---|
1021 | AC_LIBTOOL_OBJDIR |
---|
1022 | |
---|
1023 | AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
---|
1024 | _LT_AC_PROG_ECHO_BACKSLASH |
---|
1025 | |
---|
1026 | case $host_os in |
---|
1027 | aix3*) |
---|
1028 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
1029 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
1030 | # vanish in a puff of smoke. |
---|
1031 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
1032 | COLLECT_NAMES= |
---|
1033 | export COLLECT_NAMES |
---|
1034 | fi |
---|
1035 | ;; |
---|
1036 | esac |
---|
1037 | |
---|
1038 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
1039 | # metacharacters that are still active within double-quoted strings. |
---|
1040 | Xsed='sed -e s/^X//' |
---|
1041 | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
---|
1042 | |
---|
1043 | # Same as above, but do not quote variable references. |
---|
1044 | [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
---|
1045 | |
---|
1046 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
1047 | # double_quote_subst'ed string. |
---|
1048 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
1049 | |
---|
1050 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
1051 | no_glob_subst='s/\*/\\\*/g' |
---|
1052 | |
---|
1053 | # Constants: |
---|
1054 | rm="rm -f" |
---|
1055 | |
---|
1056 | # Global variables: |
---|
1057 | default_ofile=libtool |
---|
1058 | can_build_shared=yes |
---|
1059 | |
---|
1060 | # All known linkers require a `.a' archive for static linking (except M$VC, |
---|
1061 | # which needs '.lib'). |
---|
1062 | libext=a |
---|
1063 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
1064 | ofile="$default_ofile" |
---|
1065 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
1066 | |
---|
1067 | AC_CHECK_TOOL(AR, ar, false) |
---|
1068 | AC_CHECK_TOOL(RANLIB, ranlib, :) |
---|
1069 | AC_CHECK_TOOL(STRIP, strip, :) |
---|
1070 | |
---|
1071 | old_CC="$CC" |
---|
1072 | old_CFLAGS="$CFLAGS" |
---|
1073 | |
---|
1074 | # Set sane defaults for various variables |
---|
1075 | test -z "$AR" && AR=ar |
---|
1076 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
1077 | test -z "$AS" && AS=as |
---|
1078 | test -z "$CC" && CC=cc |
---|
1079 | test -z "$LTCC" && LTCC=$CC |
---|
1080 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
1081 | test -z "$LD" && LD=ld |
---|
1082 | test -z "$LN_S" && LN_S="ln -s" |
---|
1083 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
1084 | test -z "$NM" && NM=nm |
---|
1085 | test -z "$SED" && SED=sed |
---|
1086 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
1087 | test -z "$RANLIB" && RANLIB=: |
---|
1088 | test -z "$STRIP" && STRIP=: |
---|
1089 | test -z "$ac_objext" && ac_objext=o |
---|
1090 | |
---|
1091 | # Determine commands to create old-style static archives. |
---|
1092 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
1093 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
1094 | old_postuninstall_cmds= |
---|
1095 | |
---|
1096 | if test -n "$RANLIB"; then |
---|
1097 | case $host_os in |
---|
1098 | openbsd*) |
---|
1099 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
---|
1100 | ;; |
---|
1101 | *) |
---|
1102 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
---|
1103 | ;; |
---|
1104 | esac |
---|
1105 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
1106 | fi |
---|
1107 | |
---|
1108 | # Only perform the check for file, if the check method requires it |
---|
1109 | case $deplibs_check_method in |
---|
1110 | file_magic*) |
---|
1111 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
1112 | AC_PATH_MAGIC |
---|
1113 | fi |
---|
1114 | ;; |
---|
1115 | esac |
---|
1116 | |
---|
1117 | AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
---|
1118 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
---|
1119 | enable_win32_dll=yes, enable_win32_dll=no) |
---|
1120 | |
---|
1121 | AC_ARG_ENABLE([libtool-lock], |
---|
1122 | [AC_HELP_STRING([--disable-libtool-lock], |
---|
1123 | [avoid locking (might break parallel builds)])]) |
---|
1124 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
1125 | |
---|
1126 | AC_ARG_WITH([pic], |
---|
1127 | [AC_HELP_STRING([--with-pic], |
---|
1128 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
---|
1129 | [pic_mode="$withval"], |
---|
1130 | [pic_mode=default]) |
---|
1131 | test -z "$pic_mode" && pic_mode=default |
---|
1132 | |
---|
1133 | # Use C for the default configuration in the libtool script |
---|
1134 | tagname= |
---|
1135 | AC_LIBTOOL_LANG_C_CONFIG |
---|
1136 | _LT_AC_TAGCONFIG |
---|
1137 | ])# AC_LIBTOOL_SETUP |
---|
1138 | |
---|
1139 | |
---|
1140 | # _LT_AC_SYS_COMPILER |
---|
1141 | # ------------------- |
---|
1142 | AC_DEFUN([_LT_AC_SYS_COMPILER], |
---|
1143 | [AC_REQUIRE([AC_PROG_CC])dnl |
---|
1144 | |
---|
1145 | # If no C compiler was specified, use CC. |
---|
1146 | LTCC=${LTCC-"$CC"} |
---|
1147 | |
---|
1148 | # Allow CC to be a program name with arguments. |
---|
1149 | compiler=$CC |
---|
1150 | ])# _LT_AC_SYS_COMPILER |
---|
1151 | |
---|
1152 | |
---|
1153 | # _LT_AC_SYS_LIBPATH_AIX |
---|
1154 | # ---------------------- |
---|
1155 | # Links a minimal program and checks the executable |
---|
1156 | # for the system default hardcoded library path. In most cases, |
---|
1157 | # this is /usr/lib:/lib, but when the MPI compilers are used |
---|
1158 | # the location of the communication and MPI libs are included too. |
---|
1159 | # If we don't find anything, use the default library path according |
---|
1160 | # to the aix ld manual. |
---|
1161 | AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], |
---|
1162 | [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
---|
1163 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
1164 | }'` |
---|
1165 | # Check for a 64-bit object if we didn't find anything. |
---|
1166 | 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; } |
---|
1167 | }'`; fi],[]) |
---|
1168 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
1169 | ])# _LT_AC_SYS_LIBPATH_AIX |
---|
1170 | |
---|
1171 | |
---|
1172 | # _LT_AC_SHELL_INIT(ARG) |
---|
1173 | # ---------------------- |
---|
1174 | AC_DEFUN([_LT_AC_SHELL_INIT], |
---|
1175 | [ifdef([AC_DIVERSION_NOTICE], |
---|
1176 | [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
---|
1177 | [AC_DIVERT_PUSH(NOTICE)]) |
---|
1178 | $1 |
---|
1179 | AC_DIVERT_POP |
---|
1180 | ])# _LT_AC_SHELL_INIT |
---|
1181 | |
---|
1182 | |
---|
1183 | # _LT_AC_PROG_ECHO_BACKSLASH |
---|
1184 | # -------------------------- |
---|
1185 | # Add some code to the start of the generated configure script which |
---|
1186 | # will find an echo command which doesn't interpret backslashes. |
---|
1187 | AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
---|
1188 | [_LT_AC_SHELL_INIT([ |
---|
1189 | # Check that we are running under the correct shell. |
---|
1190 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
1191 | |
---|
1192 | case X$ECHO in |
---|
1193 | X*--fallback-echo) |
---|
1194 | # Remove one level of quotation (which was required for Make). |
---|
1195 | ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
---|
1196 | ;; |
---|
1197 | esac |
---|
1198 | |
---|
1199 | echo=${ECHO-echo} |
---|
1200 | if test "X[$]1" = X--no-reexec; then |
---|
1201 | # Discard the --no-reexec flag, and continue. |
---|
1202 | shift |
---|
1203 | elif test "X[$]1" = X--fallback-echo; then |
---|
1204 | # Avoid inline document here, it may be left over |
---|
1205 | : |
---|
1206 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
---|
1207 | # Yippee, $echo works! |
---|
1208 | : |
---|
1209 | else |
---|
1210 | # Restart under the correct shell. |
---|
1211 | exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
---|
1212 | fi |
---|
1213 | |
---|
1214 | if test "X[$]1" = X--fallback-echo; then |
---|
1215 | # used as fallback echo |
---|
1216 | shift |
---|
1217 | cat <<EOF |
---|
1218 | [$]* |
---|
1219 | EOF |
---|
1220 | exit 0 |
---|
1221 | fi |
---|
1222 | |
---|
1223 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
1224 | # if CDPATH is set. |
---|
1225 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
---|
1226 | |
---|
1227 | if test -z "$ECHO"; then |
---|
1228 | if test "X${echo_test_string+set}" != Xset; then |
---|
1229 | # find a string as large as possible, as long as the shell can cope with it |
---|
1230 | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
---|
1231 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
---|
1232 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
---|
1233 | echo_test_string="`eval $cmd`" && |
---|
1234 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
---|
1235 | then |
---|
1236 | break |
---|
1237 | fi |
---|
1238 | done |
---|
1239 | fi |
---|
1240 | |
---|
1241 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
1242 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
1243 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
1244 | : |
---|
1245 | else |
---|
1246 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
---|
1247 | # backslashes. This makes it impossible to quote backslashes using |
---|
1248 | # echo "$something" | sed 's/\\/\\\\/g' |
---|
1249 | # |
---|
1250 | # So, first we look for a working echo in the user's PATH. |
---|
1251 | |
---|
1252 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
1253 | for dir in $PATH /usr/ucb; do |
---|
1254 | IFS="$lt_save_ifs" |
---|
1255 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
---|
1256 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
---|
1257 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
---|
1258 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
1259 | echo="$dir/echo" |
---|
1260 | break |
---|
1261 | fi |
---|
1262 | done |
---|
1263 | IFS="$lt_save_ifs" |
---|
1264 | |
---|
1265 | if test "X$echo" = Xecho; then |
---|
1266 | # We didn't find a better echo, so look for alternatives. |
---|
1267 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
---|
1268 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
---|
1269 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
1270 | # This shell has a builtin print -r that does the trick. |
---|
1271 | echo='print -r' |
---|
1272 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
---|
1273 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
---|
1274 | # If we have ksh, try running configure again with it. |
---|
1275 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
1276 | export ORIGINAL_CONFIG_SHELL |
---|
1277 | CONFIG_SHELL=/bin/ksh |
---|
1278 | export CONFIG_SHELL |
---|
1279 | exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
---|
1280 | else |
---|
1281 | # Try using printf. |
---|
1282 | echo='printf %s\n' |
---|
1283 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
1284 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
1285 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
1286 | # Cool, printf works |
---|
1287 | : |
---|
1288 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
---|
1289 | test "X$echo_testing_string" = 'X\t' && |
---|
1290 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
1291 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
1292 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
---|
1293 | export CONFIG_SHELL |
---|
1294 | SHELL="$CONFIG_SHELL" |
---|
1295 | export SHELL |
---|
1296 | echo="$CONFIG_SHELL [$]0 --fallback-echo" |
---|
1297 | elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
---|
1298 | test "X$echo_testing_string" = 'X\t' && |
---|
1299 | echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
1300 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
1301 | echo="$CONFIG_SHELL [$]0 --fallback-echo" |
---|
1302 | else |
---|
1303 | # maybe with a smaller string... |
---|
1304 | prev=: |
---|
1305 | |
---|
1306 | for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
---|
1307 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
---|
1308 | then |
---|
1309 | break |
---|
1310 | fi |
---|
1311 | prev="$cmd" |
---|
1312 | done |
---|
1313 | |
---|
1314 | if test "$prev" != 'sed 50q "[$]0"'; then |
---|
1315 | echo_test_string=`eval $prev` |
---|
1316 | export echo_test_string |
---|
1317 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
---|
1318 | else |
---|
1319 | # Oops. We lost completely, so just stick with echo. |
---|
1320 | echo=echo |
---|
1321 | fi |
---|
1322 | fi |
---|
1323 | fi |
---|
1324 | fi |
---|
1325 | fi |
---|
1326 | fi |
---|
1327 | |
---|
1328 | # Copy echo and quote the copy suitably for passing to libtool from |
---|
1329 | # the Makefile, instead of quoting the original, which is used later. |
---|
1330 | ECHO=$echo |
---|
1331 | if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
---|
1332 | ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
---|
1333 | fi |
---|
1334 | |
---|
1335 | AC_SUBST(ECHO) |
---|
1336 | ])])# _LT_AC_PROG_ECHO_BACKSLASH |
---|
1337 | |
---|
1338 | |
---|
1339 | # _LT_AC_LOCK |
---|
1340 | # ----------- |
---|
1341 | AC_DEFUN([_LT_AC_LOCK], |
---|
1342 | [AC_ARG_ENABLE([libtool-lock], |
---|
1343 | [AC_HELP_STRING([--disable-libtool-lock], |
---|
1344 | [avoid locking (might break parallel builds)])]) |
---|
1345 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
1346 | |
---|
1347 | # Some flags need to be propagated to the compiler or linker for good |
---|
1348 | # libtool support. |
---|
1349 | case $host in |
---|
1350 | ia64-*-hpux*) |
---|
1351 | # Find out which ABI we are using. |
---|
1352 | echo 'int i;' > conftest.$ac_ext |
---|
1353 | if AC_TRY_EVAL(ac_compile); then |
---|
1354 | case `/usr/bin/file conftest.$ac_objext` in |
---|
1355 | *ELF-32*) |
---|
1356 | HPUX_IA64_MODE="32" |
---|
1357 | ;; |
---|
1358 | *ELF-64*) |
---|
1359 | HPUX_IA64_MODE="64" |
---|
1360 | ;; |
---|
1361 | esac |
---|
1362 | fi |
---|
1363 | rm -rf conftest* |
---|
1364 | ;; |
---|
1365 | *-*-irix6*) |
---|
1366 | # Find out which ABI we are using. |
---|
1367 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
---|
1368 | if AC_TRY_EVAL(ac_compile); then |
---|
1369 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
1370 | case `/usr/bin/file conftest.$ac_objext` in |
---|
1371 | *32-bit*) |
---|
1372 | LD="${LD-ld} -melf32bsmip" |
---|
1373 | ;; |
---|
1374 | *N32*) |
---|
1375 | LD="${LD-ld} -melf32bmipn32" |
---|
1376 | ;; |
---|
1377 | *64-bit*) |
---|
1378 | LD="${LD-ld} -melf64bmip" |
---|
1379 | ;; |
---|
1380 | esac |
---|
1381 | else |
---|
1382 | case `/usr/bin/file conftest.$ac_objext` in |
---|
1383 | *32-bit*) |
---|
1384 | LD="${LD-ld} -32" |
---|
1385 | ;; |
---|
1386 | *N32*) |
---|
1387 | LD="${LD-ld} -n32" |
---|
1388 | ;; |
---|
1389 | *64-bit*) |
---|
1390 | LD="${LD-ld} -64" |
---|
1391 | ;; |
---|
1392 | esac |
---|
1393 | fi |
---|
1394 | fi |
---|
1395 | rm -rf conftest* |
---|
1396 | ;; |
---|
1397 | |
---|
1398 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
1399 | # Find out which ABI we are using. |
---|
1400 | echo 'int i;' > conftest.$ac_ext |
---|
1401 | if AC_TRY_EVAL(ac_compile); then |
---|
1402 | case "`/usr/bin/file conftest.o`" in |
---|
1403 | *32-bit*) |
---|
1404 | case $host in |
---|
1405 | x86_64-*linux*) |
---|
1406 | LD="${LD-ld} -m elf_i386" |
---|
1407 | ;; |
---|
1408 | ppc64-*linux*|powerpc64-*linux*) |
---|
1409 | LD="${LD-ld} -m elf32ppclinux" |
---|
1410 | ;; |
---|
1411 | s390x-*linux*) |
---|
1412 | LD="${LD-ld} -m elf_s390" |
---|
1413 | ;; |
---|
1414 | sparc64-*linux*) |
---|
1415 | LD="${LD-ld} -m elf32_sparc" |
---|
1416 | ;; |
---|
1417 | esac |
---|
1418 | ;; |
---|
1419 | *64-bit*) |
---|
1420 | case $host in |
---|
1421 | x86_64-*linux*) |
---|
1422 | LD="${LD-ld} -m elf_x86_64" |
---|
1423 | ;; |
---|
1424 | ppc*-*linux*|powerpc*-*linux*) |
---|
1425 | LD="${LD-ld} -m elf64ppc" |
---|
1426 | ;; |
---|
1427 | s390*-*linux*) |
---|
1428 | LD="${LD-ld} -m elf64_s390" |
---|
1429 | ;; |
---|
1430 | sparc*-*linux*) |
---|
1431 | LD="${LD-ld} -m elf64_sparc" |
---|
1432 | ;; |
---|
1433 | esac |
---|
1434 | ;; |
---|
1435 | esac |
---|
1436 | fi |
---|
1437 | rm -rf conftest* |
---|
1438 | ;; |
---|
1439 | |
---|
1440 | *-*-sco3.2v5*) |
---|
1441 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
1442 | SAVE_CFLAGS="$CFLAGS" |
---|
1443 | CFLAGS="$CFLAGS -belf" |
---|
1444 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
---|
1445 | [AC_LANG_PUSH(C) |
---|
1446 | AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
---|
1447 | AC_LANG_POP]) |
---|
1448 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
1449 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
1450 | CFLAGS="$SAVE_CFLAGS" |
---|
1451 | fi |
---|
1452 | ;; |
---|
1453 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
---|
1454 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
---|
1455 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
---|
1456 | AC_CHECK_TOOL(AS, as, false) |
---|
1457 | AC_CHECK_TOOL(OBJDUMP, objdump, false) |
---|
1458 | ;; |
---|
1459 | ]) |
---|
1460 | esac |
---|
1461 | |
---|
1462 | need_locks="$enable_libtool_lock" |
---|
1463 | |
---|
1464 | ])# _LT_AC_LOCK |
---|
1465 | |
---|
1466 | |
---|
1467 | # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
---|
1468 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
---|
1469 | # ---------------------------------------------------------------- |
---|
1470 | # Check whether the given compiler option works |
---|
1471 | AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
---|
1472 | [AC_REQUIRE([LT_AC_PROG_SED]) |
---|
1473 | AC_CACHE_CHECK([$1], [$2], |
---|
1474 | [$2=no |
---|
1475 | ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
---|
1476 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
1477 | lt_compiler_flag="$3" |
---|
1478 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
1479 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
1480 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
1481 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
1482 | # The option is referenced via a variable to avoid confusing sed. |
---|
1483 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
1484 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
1485 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
1486 | -e 's:$: $lt_compiler_flag:'` |
---|
1487 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
---|
1488 | (eval "$lt_compile" 2>conftest.err) |
---|
1489 | ac_status=$? |
---|
1490 | cat conftest.err >&AS_MESSAGE_LOG_FD |
---|
1491 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
---|
1492 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
1493 | # The compiler can only warn and ignore the option if not recognized |
---|
1494 | # So say no if there are warnings |
---|
1495 | if test ! -s conftest.err; then |
---|
1496 | $2=yes |
---|
1497 | fi |
---|
1498 | fi |
---|
1499 | $rm conftest* |
---|
1500 | ]) |
---|
1501 | |
---|
1502 | if test x"[$]$2" = xyes; then |
---|
1503 | ifelse([$5], , :, [$5]) |
---|
1504 | else |
---|
1505 | ifelse([$6], , :, [$6]) |
---|
1506 | fi |
---|
1507 | ])# AC_LIBTOOL_COMPILER_OPTION |
---|
1508 | |
---|
1509 | |
---|
1510 | # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
---|
1511 | # [ACTION-SUCCESS], [ACTION-FAILURE]) |
---|
1512 | # ------------------------------------------------------------ |
---|
1513 | # Check whether the given compiler option works |
---|
1514 | AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
---|
1515 | [AC_CACHE_CHECK([$1], [$2], |
---|
1516 | [$2=no |
---|
1517 | save_LDFLAGS="$LDFLAGS" |
---|
1518 | LDFLAGS="$LDFLAGS $3" |
---|
1519 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
1520 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
1521 | # The compiler can only warn and ignore the option if not recognized |
---|
1522 | # So say no if there are warnings |
---|
1523 | if test -s conftest.err; then |
---|
1524 | # Append any errors to the config.log. |
---|
1525 | cat conftest.err 1>&AS_MESSAGE_LOG_FD |
---|
1526 | else |
---|
1527 | $2=yes |
---|
1528 | fi |
---|
1529 | fi |
---|
1530 | $rm conftest* |
---|
1531 | LDFLAGS="$save_LDFLAGS" |
---|
1532 | ]) |
---|
1533 | |
---|
1534 | if test x"[$]$2" = xyes; then |
---|
1535 | ifelse([$4], , :, [$4]) |
---|
1536 | else |
---|
1537 | ifelse([$5], , :, [$5]) |
---|
1538 | fi |
---|
1539 | ])# AC_LIBTOOL_LINKER_OPTION |
---|
1540 | |
---|
1541 | |
---|
1542 | # AC_LIBTOOL_SYS_MAX_CMD_LEN |
---|
1543 | # -------------------------- |
---|
1544 | AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
---|
1545 | [# find the maximum length of command line arguments |
---|
1546 | AC_MSG_CHECKING([the maximum length of command line arguments]) |
---|
1547 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
---|
1548 | i=0 |
---|
1549 | teststring="ABCD" |
---|
1550 | |
---|
1551 | case $build_os in |
---|
1552 | msdosdjgpp*) |
---|
1553 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
1554 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
1555 | # during glob expansion). Even if it were fixed, the result of this |
---|
1556 | # check would be larger than it should be. |
---|
1557 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
1558 | ;; |
---|
1559 | |
---|
1560 | gnu*) |
---|
1561 | # Under GNU Hurd, this test is not required because there is |
---|
1562 | # no limit to the length of command line arguments. |
---|
1563 | # Libtool will interpret -1 as no limit whatsoever |
---|
1564 | lt_cv_sys_max_cmd_len=-1; |
---|
1565 | ;; |
---|
1566 | |
---|
1567 | cygwin* | mingw*) |
---|
1568 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
1569 | # about 5 minutes as the teststring grows exponentially. |
---|
1570 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
1571 | # you end up with a "frozen" computer, even though with patience |
---|
1572 | # the test eventually succeeds (with a max line length of 256k). |
---|
1573 | # Instead, let's just punt: use the minimum linelength reported by |
---|
1574 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
1575 | lt_cv_sys_max_cmd_len=8192; |
---|
1576 | ;; |
---|
1577 | |
---|
1578 | amigaos*) |
---|
1579 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
1580 | # So we just punt and use a minimum line length of 8192. |
---|
1581 | lt_cv_sys_max_cmd_len=8192; |
---|
1582 | ;; |
---|
1583 | |
---|
1584 | *) |
---|
1585 | # If test is not a shell built-in, we'll probably end up computing a |
---|
1586 | # maximum length that is only half of the actual maximum length, but |
---|
1587 | # we can't tell. |
---|
1588 | while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
---|
1589 | = "XX$teststring") >/dev/null 2>&1 && |
---|
1590 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
---|
1591 | lt_cv_sys_max_cmd_len=$new_result && |
---|
1592 | test $i != 17 # 1/2 MB should be enough |
---|
1593 | do |
---|
1594 | i=`expr $i + 1` |
---|
1595 | teststring=$teststring$teststring |
---|
1596 | done |
---|
1597 | teststring= |
---|
1598 | # Add a significant safety factor because C++ compilers can tack on massive |
---|
1599 | # amounts of additional arguments before passing them to the linker. |
---|
1600 | # It appears as though 1/2 is a usable value. |
---|
1601 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
1602 | ;; |
---|
1603 | esac |
---|
1604 | ]) |
---|
1605 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
1606 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
---|
1607 | else |
---|
1608 | AC_MSG_RESULT(none) |
---|
1609 | fi |
---|
1610 | ])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
---|
1611 | |
---|
1612 | |
---|
1613 | # _LT_AC_CHECK_DLFCN |
---|
1614 | # -------------------- |
---|
1615 | AC_DEFUN([_LT_AC_CHECK_DLFCN], |
---|
1616 | [AC_CHECK_HEADERS(dlfcn.h)dnl |
---|
1617 | ])# _LT_AC_CHECK_DLFCN |
---|
1618 | |
---|
1619 | |
---|
1620 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
---|
1621 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
---|
1622 | # ------------------------------------------------------------------ |
---|
1623 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
---|
1624 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
---|
1625 | if test "$cross_compiling" = yes; then : |
---|
1626 | [$4] |
---|
1627 | else |
---|
1628 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
1629 | lt_status=$lt_dlunknown |
---|
1630 | cat > conftest.$ac_ext <<EOF |
---|
1631 | [#line __oline__ "configure" |
---|
1632 | #include "confdefs.h" |
---|
1633 | |
---|
1634 | #if HAVE_DLFCN_H |
---|
1635 | #include <dlfcn.h> |
---|
1636 | #endif |
---|
1637 | |
---|
1638 | #include <stdio.h> |
---|
1639 | |
---|
1640 | #ifdef RTLD_GLOBAL |
---|
1641 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
1642 | #else |
---|
1643 | # ifdef DL_GLOBAL |
---|
1644 | # define LT_DLGLOBAL DL_GLOBAL |
---|
1645 | # else |
---|
1646 | # define LT_DLGLOBAL 0 |
---|
1647 | # endif |
---|
1648 | #endif |
---|
1649 | |
---|
1650 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
1651 | find out it does not work in some platform. */ |
---|
1652 | #ifndef LT_DLLAZY_OR_NOW |
---|
1653 | # ifdef RTLD_LAZY |
---|
1654 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
1655 | # else |
---|
1656 | # ifdef DL_LAZY |
---|
1657 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
1658 | # else |
---|
1659 | # ifdef RTLD_NOW |
---|
1660 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
1661 | # else |
---|
1662 | # ifdef DL_NOW |
---|
1663 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
1664 | # else |
---|
1665 | # define LT_DLLAZY_OR_NOW 0 |
---|
1666 | # endif |
---|
1667 | # endif |
---|
1668 | # endif |
---|
1669 | # endif |
---|
1670 | #endif |
---|
1671 | |
---|
1672 | #ifdef __cplusplus |
---|
1673 | extern "C" void exit (int); |
---|
1674 | #endif |
---|
1675 | |
---|
1676 | void fnord() { int i=42;} |
---|
1677 | int main () |
---|
1678 | { |
---|
1679 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
1680 | int status = $lt_dlunknown; |
---|
1681 | |
---|
1682 | if (self) |
---|
1683 | { |
---|
1684 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
1685 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
1686 | /* dlclose (self); */ |
---|
1687 | } |
---|
1688 | |
---|
1689 | exit (status); |
---|
1690 | }] |
---|
1691 | EOF |
---|
1692 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
1693 | (./conftest; exit; ) 2>/dev/null |
---|
1694 | lt_status=$? |
---|
1695 | case x$lt_status in |
---|
1696 | x$lt_dlno_uscore) $1 ;; |
---|
1697 | x$lt_dlneed_uscore) $2 ;; |
---|
1698 | x$lt_unknown|x*) $3 ;; |
---|
1699 | esac |
---|
1700 | else : |
---|
1701 | # compilation failed |
---|
1702 | $3 |
---|
1703 | fi |
---|
1704 | fi |
---|
1705 | rm -fr conftest* |
---|
1706 | ])# _LT_AC_TRY_DLOPEN_SELF |
---|
1707 | |
---|
1708 | |
---|
1709 | # AC_LIBTOOL_DLOPEN_SELF |
---|
1710 | # ------------------- |
---|
1711 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
---|
1712 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
---|
1713 | if test "x$enable_dlopen" != xyes; then |
---|
1714 | enable_dlopen=unknown |
---|
1715 | enable_dlopen_self=unknown |
---|
1716 | enable_dlopen_self_static=unknown |
---|
1717 | else |
---|
1718 | lt_cv_dlopen=no |
---|
1719 | lt_cv_dlopen_libs= |
---|
1720 | |
---|
1721 | case $host_os in |
---|
1722 | beos*) |
---|
1723 | lt_cv_dlopen="load_add_on" |
---|
1724 | lt_cv_dlopen_libs= |
---|
1725 | lt_cv_dlopen_self=yes |
---|
1726 | ;; |
---|
1727 | |
---|
1728 | mingw* | pw32*) |
---|
1729 | lt_cv_dlopen="LoadLibrary" |
---|
1730 | lt_cv_dlopen_libs= |
---|
1731 | ;; |
---|
1732 | |
---|
1733 | cygwin*) |
---|
1734 | lt_cv_dlopen="dlopen" |
---|
1735 | lt_cv_dlopen_libs= |
---|
1736 | ;; |
---|
1737 | |
---|
1738 | darwin*) |
---|
1739 | # if libdl is installed we need to link against it |
---|
1740 | AC_CHECK_LIB([dl], [dlopen], |
---|
1741 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
---|
1742 | lt_cv_dlopen="dyld" |
---|
1743 | lt_cv_dlopen_libs= |
---|
1744 | lt_cv_dlopen_self=yes |
---|
1745 | ]) |
---|
1746 | ;; |
---|
1747 | |
---|
1748 | *) |
---|
1749 | AC_CHECK_FUNC([shl_load], |
---|
1750 | [lt_cv_dlopen="shl_load"], |
---|
1751 | [AC_CHECK_LIB([dld], [shl_load], |
---|
1752 | [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
---|
1753 | [AC_CHECK_FUNC([dlopen], |
---|
1754 | [lt_cv_dlopen="dlopen"], |
---|
1755 | [AC_CHECK_LIB([dl], [dlopen], |
---|
1756 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
---|
1757 | [AC_CHECK_LIB([svld], [dlopen], |
---|
1758 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
---|
1759 | [AC_CHECK_LIB([dld], [dld_link], |
---|
1760 | [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
---|
1761 | ]) |
---|
1762 | ]) |
---|
1763 | ]) |
---|
1764 | ]) |
---|
1765 | ]) |
---|
1766 | ;; |
---|
1767 | esac |
---|
1768 | |
---|
1769 | if test "x$lt_cv_dlopen" != xno; then |
---|
1770 | enable_dlopen=yes |
---|
1771 | else |
---|
1772 | enable_dlopen=no |
---|
1773 | fi |
---|
1774 | |
---|
1775 | case $lt_cv_dlopen in |
---|
1776 | dlopen) |
---|
1777 | save_CPPFLAGS="$CPPFLAGS" |
---|
1778 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
1779 | |
---|
1780 | save_LDFLAGS="$LDFLAGS" |
---|
1781 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
1782 | |
---|
1783 | save_LIBS="$LIBS" |
---|
1784 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
1785 | |
---|
1786 | AC_CACHE_CHECK([whether a program can dlopen itself], |
---|
1787 | lt_cv_dlopen_self, [dnl |
---|
1788 | _LT_AC_TRY_DLOPEN_SELF( |
---|
1789 | lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
---|
1790 | lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
---|
1791 | ]) |
---|
1792 | |
---|
1793 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
1794 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
1795 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
---|
1796 | lt_cv_dlopen_self_static, [dnl |
---|
1797 | _LT_AC_TRY_DLOPEN_SELF( |
---|
1798 | lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
---|
1799 | lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
---|
1800 | ]) |
---|
1801 | fi |
---|
1802 | |
---|
1803 | CPPFLAGS="$save_CPPFLAGS" |
---|
1804 | LDFLAGS="$save_LDFLAGS" |
---|
1805 | LIBS="$save_LIBS" |
---|
1806 | ;; |
---|
1807 | esac |
---|
1808 | |
---|
1809 | case $lt_cv_dlopen_self in |
---|
1810 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
1811 | *) enable_dlopen_self=unknown ;; |
---|
1812 | esac |
---|
1813 | |
---|
1814 | case $lt_cv_dlopen_self_static in |
---|
1815 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
1816 | *) enable_dlopen_self_static=unknown ;; |
---|
1817 | esac |
---|
1818 | fi |
---|
1819 | ])# AC_LIBTOOL_DLOPEN_SELF |
---|
1820 | |
---|
1821 | |
---|
1822 | # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
---|
1823 | # --------------------------------- |
---|
1824 | # Check to see if options -c and -o are simultaneously supported by compiler |
---|
1825 | AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
---|
1826 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
---|
1827 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
---|
1828 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
---|
1829 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
---|
1830 | $rm -r conftest 2>/dev/null |
---|
1831 | mkdir conftest |
---|
1832 | cd conftest |
---|
1833 | mkdir out |
---|
1834 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
1835 | |
---|
1836 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
1837 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
1838 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
1839 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
1840 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
1841 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
1842 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
1843 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
1844 | -e 's:$: $lt_compiler_flag:'` |
---|
1845 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
---|
1846 | (eval "$lt_compile" 2>out/conftest.err) |
---|
1847 | ac_status=$? |
---|
1848 | cat out/conftest.err >&AS_MESSAGE_LOG_FD |
---|
1849 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
---|
1850 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
1851 | then |
---|
1852 | # The compiler can only warn and ignore the option if not recognized |
---|
1853 | # So say no if there are warnings |
---|
1854 | if test ! -s out/conftest.err; then |
---|
1855 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
---|
1856 | fi |
---|
1857 | fi |
---|
1858 | chmod u+w . |
---|
1859 | $rm conftest* |
---|
1860 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
1861 | # template instantiation |
---|
1862 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
1863 | $rm out/* && rmdir out |
---|
1864 | cd .. |
---|
1865 | rmdir conftest |
---|
1866 | $rm conftest* |
---|
1867 | ]) |
---|
1868 | ])# AC_LIBTOOL_PROG_CC_C_O |
---|
1869 | |
---|
1870 | |
---|
1871 | # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) |
---|
1872 | # ----------------------------------------- |
---|
1873 | # Check to see if we can do hard links to lock some files if needed |
---|
1874 | AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], |
---|
1875 | [AC_REQUIRE([_LT_AC_LOCK])dnl |
---|
1876 | |
---|
1877 | hard_links="nottested" |
---|
1878 | if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
---|
1879 | # do not overwrite the value of need_locks provided by the user |
---|
1880 | AC_MSG_CHECKING([if we can lock with hard links]) |
---|
1881 | hard_links=yes |
---|
1882 | $rm conftest* |
---|
1883 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
1884 | touch conftest.a |
---|
1885 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
1886 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
1887 | AC_MSG_RESULT([$hard_links]) |
---|
1888 | if test "$hard_links" = no; then |
---|
1889 | AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
---|
1890 | need_locks=warn |
---|
1891 | fi |
---|
1892 | else |
---|
1893 | need_locks=no |
---|
1894 | fi |
---|
1895 | ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
---|
1896 | |
---|
1897 | |
---|
1898 | # AC_LIBTOOL_OBJDIR |
---|
1899 | # ----------------- |
---|
1900 | AC_DEFUN([AC_LIBTOOL_OBJDIR], |
---|
1901 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
---|
1902 | [rm -f .libs 2>/dev/null |
---|
1903 | mkdir .libs 2>/dev/null |
---|
1904 | if test -d .libs; then |
---|
1905 | lt_cv_objdir=.libs |
---|
1906 | else |
---|
1907 | # MS-DOS does not allow filenames that begin with a dot. |
---|
1908 | lt_cv_objdir=_libs |
---|
1909 | fi |
---|
1910 | rmdir .libs 2>/dev/null]) |
---|
1911 | objdir=$lt_cv_objdir |
---|
1912 | ])# AC_LIBTOOL_OBJDIR |
---|
1913 | |
---|
1914 | |
---|
1915 | # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
---|
1916 | # ---------------------------------------------- |
---|
1917 | # Check hardcoding attributes. |
---|
1918 | AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
---|
1919 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
---|
1920 | _LT_AC_TAGVAR(hardcode_action, $1)= |
---|
1921 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
---|
1922 | test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ |
---|
1923 | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then |
---|
1924 | |
---|
1925 | # We can hardcode non-existant directories. |
---|
1926 | if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
---|
1927 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
1928 | # have to relink, otherwise we might link with an installed library |
---|
1929 | # when we should be linking with a yet-to-be-installed one |
---|
1930 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
---|
1931 | test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then |
---|
1932 | # Linking always hardcodes the temporary library directory. |
---|
1933 | _LT_AC_TAGVAR(hardcode_action, $1)=relink |
---|
1934 | else |
---|
1935 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
1936 | _LT_AC_TAGVAR(hardcode_action, $1)=immediate |
---|
1937 | fi |
---|
1938 | else |
---|
1939 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
1940 | # directories. |
---|
1941 | _LT_AC_TAGVAR(hardcode_action, $1)=unsupported |
---|
1942 | fi |
---|
1943 | AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) |
---|
1944 | |
---|
1945 | if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then |
---|
1946 | # Fast installation is not supported |
---|
1947 | enable_fast_install=no |
---|
1948 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
1949 | test "$enable_shared" = no; then |
---|
1950 | # Fast installation is not necessary |
---|
1951 | enable_fast_install=needless |
---|
1952 | fi |
---|
1953 | ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
---|
1954 | |
---|
1955 | |
---|
1956 | # AC_LIBTOOL_SYS_LIB_STRIP |
---|
1957 | # ------------------------ |
---|
1958 | AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], |
---|
1959 | [striplib= |
---|
1960 | old_striplib= |
---|
1961 | AC_MSG_CHECKING([whether stripping libraries is possible]) |
---|
1962 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
1963 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
1964 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
1965 | AC_MSG_RESULT([yes]) |
---|
1966 | else |
---|
1967 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
1968 | case $host_os in |
---|
1969 | darwin*) |
---|
1970 | if test -n "$STRIP" ; then |
---|
1971 | striplib="$STRIP -x" |
---|
1972 | AC_MSG_RESULT([yes]) |
---|
1973 | else |
---|
1974 | AC_MSG_RESULT([no]) |
---|
1975 | fi |
---|
1976 | ;; |
---|
1977 | *) |
---|
1978 | AC_MSG_RESULT([no]) |
---|
1979 | ;; |
---|
1980 | esac |
---|
1981 | fi |
---|
1982 | ])# AC_LIBTOOL_SYS_LIB_STRIP |
---|
1983 | |
---|
1984 | |
---|
1985 | # AC_LIBTOOL_SYS_DYNAMIC_LINKER |
---|
1986 | # ----------------------------- |
---|
1987 | # PORTME Fill in your ld.so characteristics |
---|
1988 | AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
---|
1989 | [AC_MSG_CHECKING([dynamic linker characteristics]) |
---|
1990 | library_names_spec= |
---|
1991 | libname_spec='lib$name' |
---|
1992 | soname_spec= |
---|
1993 | shrext_cmds=".so" |
---|
1994 | postinstall_cmds= |
---|
1995 | postuninstall_cmds= |
---|
1996 | finish_cmds= |
---|
1997 | finish_eval= |
---|
1998 | shlibpath_var= |
---|
1999 | shlibpath_overrides_runpath=unknown |
---|
2000 | version_type=none |
---|
2001 | dynamic_linker="$host_os ld.so" |
---|
2002 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
2003 | if test "$GCC" = yes; then |
---|
2004 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
2005 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
2006 | # if the path contains ";" then we assume it to be the separator |
---|
2007 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
2008 | # assumed that no part of a normal pathname contains ";" but that should |
---|
2009 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
2010 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
2011 | else |
---|
2012 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
2013 | fi |
---|
2014 | else |
---|
2015 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
2016 | fi |
---|
2017 | need_lib_prefix=unknown |
---|
2018 | hardcode_into_libs=no |
---|
2019 | |
---|
2020 | # when you set need_version to no, make sure it does not cause -set_version |
---|
2021 | # flags to be left without arguments |
---|
2022 | need_version=unknown |
---|
2023 | |
---|
2024 | case $host_os in |
---|
2025 | aix3*) |
---|
2026 | version_type=linux |
---|
2027 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
2028 | shlibpath_var=LIBPATH |
---|
2029 | |
---|
2030 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
2031 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2032 | ;; |
---|
2033 | |
---|
2034 | aix4* | aix5*) |
---|
2035 | version_type=linux |
---|
2036 | need_lib_prefix=no |
---|
2037 | need_version=no |
---|
2038 | hardcode_into_libs=yes |
---|
2039 | if test "$host_cpu" = ia64; then |
---|
2040 | # AIX 5 supports IA64 |
---|
2041 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
2042 | shlibpath_var=LD_LIBRARY_PATH |
---|
2043 | else |
---|
2044 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
2045 | # for dependence libraries. The import file would start with |
---|
2046 | # the line `#! .'. This would cause the generated library to |
---|
2047 | # depend on `.', always an invalid library. This was fixed in |
---|
2048 | # development snapshots of GCC prior to 3.0. |
---|
2049 | case $host_os in |
---|
2050 | aix4 | aix4.[[01]] | aix4.[[01]].*) |
---|
2051 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
2052 | echo ' yes ' |
---|
2053 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
2054 | : |
---|
2055 | else |
---|
2056 | can_build_shared=no |
---|
2057 | fi |
---|
2058 | ;; |
---|
2059 | esac |
---|
2060 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
2061 | # soname into executable. Probably we can add versioning support to |
---|
2062 | # collect2, so additional links can be useful in future. |
---|
2063 | if test "$aix_use_runtimelinking" = yes; then |
---|
2064 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
2065 | # instead of lib<name>.a to let people know that these are not |
---|
2066 | # typical AIX shared libraries. |
---|
2067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2068 | else |
---|
2069 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
2070 | # and later when we are not doing run time linking. |
---|
2071 | library_names_spec='${libname}${release}.a $libname.a' |
---|
2072 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2073 | fi |
---|
2074 | shlibpath_var=LIBPATH |
---|
2075 | fi |
---|
2076 | ;; |
---|
2077 | |
---|
2078 | amigaos*) |
---|
2079 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
2080 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
2081 | 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' |
---|
2082 | ;; |
---|
2083 | |
---|
2084 | beos*) |
---|
2085 | library_names_spec='${libname}${shared_ext}' |
---|
2086 | dynamic_linker="$host_os ld.so" |
---|
2087 | shlibpath_var=LIBRARY_PATH |
---|
2088 | ;; |
---|
2089 | |
---|
2090 | bsdi4*) |
---|
2091 | version_type=linux |
---|
2092 | need_version=no |
---|
2093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2094 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2095 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
2096 | shlibpath_var=LD_LIBRARY_PATH |
---|
2097 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
2098 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
2099 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
2100 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
2101 | # libtool to hard-code these into programs |
---|
2102 | ;; |
---|
2103 | |
---|
2104 | cygwin* | mingw* | pw32*) |
---|
2105 | version_type=windows |
---|
2106 | shrext_cmds=".dll" |
---|
2107 | need_version=no |
---|
2108 | need_lib_prefix=no |
---|
2109 | |
---|
2110 | case $GCC,$host_os in |
---|
2111 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
2112 | library_names_spec='$libname.dll.a' |
---|
2113 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
2114 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
2115 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
2116 | dldir=$destdir/`dirname \$dlpath`~ |
---|
2117 | test -d \$dldir || mkdir -p \$dldir~ |
---|
2118 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
2119 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
2120 | dlpath=$dir/\$dldll~ |
---|
2121 | $rm \$dlpath' |
---|
2122 | shlibpath_overrides_runpath=yes |
---|
2123 | |
---|
2124 | case $host_os in |
---|
2125 | cygwin*) |
---|
2126 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
2127 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
---|
2128 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
2129 | ;; |
---|
2130 | mingw*) |
---|
2131 | # MinGW DLLs use traditional 'lib' prefix |
---|
2132 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
---|
2133 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
2134 | if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then |
---|
2135 | # It is most probably a Windows format PATH printed by |
---|
2136 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
2137 | # path with ; separators, and with drive letters. We can handle the |
---|
2138 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
2139 | # especially as we might pass files found there to a mingw objdump, |
---|
2140 | # which wouldn't understand a cygwinified path. Ahh. |
---|
2141 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
2142 | else |
---|
2143 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
2144 | fi |
---|
2145 | ;; |
---|
2146 | pw32*) |
---|
2147 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
2148 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
2149 | ;; |
---|
2150 | esac |
---|
2151 | ;; |
---|
2152 | |
---|
2153 | *) |
---|
2154 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
2155 | ;; |
---|
2156 | esac |
---|
2157 | dynamic_linker='Win32 ld.exe' |
---|
2158 | # FIXME: first we should search . and the directory the executable is in |
---|
2159 | shlibpath_var=PATH |
---|
2160 | ;; |
---|
2161 | |
---|
2162 | darwin* | rhapsody*) |
---|
2163 | dynamic_linker="$host_os dyld" |
---|
2164 | version_type=darwin |
---|
2165 | need_lib_prefix=no |
---|
2166 | need_version=no |
---|
2167 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
2168 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
2169 | shlibpath_overrides_runpath=yes |
---|
2170 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
2171 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
2172 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
2173 | if test "$GCC" = yes; then |
---|
2174 | 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"` |
---|
2175 | else |
---|
2176 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
2177 | fi |
---|
2178 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
2179 | ;; |
---|
2180 | |
---|
2181 | dgux*) |
---|
2182 | version_type=linux |
---|
2183 | need_lib_prefix=no |
---|
2184 | need_version=no |
---|
2185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
2186 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2187 | shlibpath_var=LD_LIBRARY_PATH |
---|
2188 | ;; |
---|
2189 | |
---|
2190 | freebsd1*) |
---|
2191 | dynamic_linker=no |
---|
2192 | ;; |
---|
2193 | |
---|
2194 | kfreebsd*-gnu) |
---|
2195 | version_type=linux |
---|
2196 | need_lib_prefix=no |
---|
2197 | need_version=no |
---|
2198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
2199 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2200 | shlibpath_var=LD_LIBRARY_PATH |
---|
2201 | shlibpath_overrides_runpath=no |
---|
2202 | hardcode_into_libs=yes |
---|
2203 | dynamic_linker='GNU ld.so' |
---|
2204 | ;; |
---|
2205 | |
---|
2206 | freebsd*) |
---|
2207 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
2208 | version_type=freebsd-$objformat |
---|
2209 | case $version_type in |
---|
2210 | freebsd-elf*) |
---|
2211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
2212 | need_version=no |
---|
2213 | need_lib_prefix=no |
---|
2214 | ;; |
---|
2215 | freebsd-*) |
---|
2216 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
2217 | need_version=yes |
---|
2218 | ;; |
---|
2219 | esac |
---|
2220 | shlibpath_var=LD_LIBRARY_PATH |
---|
2221 | case $host_os in |
---|
2222 | freebsd2*) |
---|
2223 | shlibpath_overrides_runpath=yes |
---|
2224 | ;; |
---|
2225 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
2226 | shlibpath_overrides_runpath=yes |
---|
2227 | hardcode_into_libs=yes |
---|
2228 | ;; |
---|
2229 | *) # from 3.2 on |
---|
2230 | shlibpath_overrides_runpath=no |
---|
2231 | hardcode_into_libs=yes |
---|
2232 | ;; |
---|
2233 | esac |
---|
2234 | ;; |
---|
2235 | |
---|
2236 | gnu*) |
---|
2237 | version_type=linux |
---|
2238 | need_lib_prefix=no |
---|
2239 | need_version=no |
---|
2240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
2241 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2242 | shlibpath_var=LD_LIBRARY_PATH |
---|
2243 | hardcode_into_libs=yes |
---|
2244 | ;; |
---|
2245 | |
---|
2246 | hpux9* | hpux10* | hpux11*) |
---|
2247 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
2248 | # link against other versions. |
---|
2249 | version_type=sunos |
---|
2250 | need_lib_prefix=no |
---|
2251 | need_version=no |
---|
2252 | case "$host_cpu" in |
---|
2253 | ia64*) |
---|
2254 | shrext_cmds='.so' |
---|
2255 | hardcode_into_libs=yes |
---|
2256 | dynamic_linker="$host_os dld.so" |
---|
2257 | shlibpath_var=LD_LIBRARY_PATH |
---|
2258 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
2259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2260 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2261 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
2262 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
2263 | else |
---|
2264 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
2265 | fi |
---|
2266 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
2267 | ;; |
---|
2268 | hppa*64*) |
---|
2269 | shrext_cmds='.sl' |
---|
2270 | hardcode_into_libs=yes |
---|
2271 | dynamic_linker="$host_os dld.sl" |
---|
2272 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
2273 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
2274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2275 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2276 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
2277 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
2278 | ;; |
---|
2279 | *) |
---|
2280 | shrext_cmds='.sl' |
---|
2281 | dynamic_linker="$host_os dld.sl" |
---|
2282 | shlibpath_var=SHLIB_PATH |
---|
2283 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
2284 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2285 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2286 | ;; |
---|
2287 | esac |
---|
2288 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
2289 | postinstall_cmds='chmod 555 $lib' |
---|
2290 | ;; |
---|
2291 | |
---|
2292 | irix5* | irix6* | nonstopux*) |
---|
2293 | case $host_os in |
---|
2294 | nonstopux*) version_type=nonstopux ;; |
---|
2295 | *) |
---|
2296 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
2297 | version_type=linux |
---|
2298 | else |
---|
2299 | version_type=irix |
---|
2300 | fi ;; |
---|
2301 | esac |
---|
2302 | need_lib_prefix=no |
---|
2303 | need_version=no |
---|
2304 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
2306 | case $host_os in |
---|
2307 | irix5* | nonstopux*) |
---|
2308 | libsuff= shlibsuff= |
---|
2309 | ;; |
---|
2310 | *) |
---|
2311 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
2312 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
2313 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
2314 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
2315 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
2316 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
2317 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
2318 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
2319 | esac |
---|
2320 | ;; |
---|
2321 | esac |
---|
2322 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
2323 | shlibpath_overrides_runpath=no |
---|
2324 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
2325 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
2326 | hardcode_into_libs=yes |
---|
2327 | ;; |
---|
2328 | |
---|
2329 | # No shared lib support for Linux oldld, aout, or coff. |
---|
2330 | linux*oldld* | linux*aout* | linux*coff*) |
---|
2331 | dynamic_linker=no |
---|
2332 | ;; |
---|
2333 | |
---|
2334 | # This must be Linux ELF. |
---|
2335 | linux*) |
---|
2336 | version_type=linux |
---|
2337 | need_lib_prefix=no |
---|
2338 | need_version=no |
---|
2339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2340 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2341 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
2342 | shlibpath_var=LD_LIBRARY_PATH |
---|
2343 | shlibpath_overrides_runpath=no |
---|
2344 | # This implies no fast_install, which is unacceptable. |
---|
2345 | # Some rework will be needed to allow for fast_install |
---|
2346 | # before this can be enabled. |
---|
2347 | hardcode_into_libs=yes |
---|
2348 | |
---|
2349 | # find out which ABI we are using |
---|
2350 | libsuff= |
---|
2351 | case "$host_cpu" in |
---|
2352 | x86_64*|s390x*|powerpc64*) |
---|
2353 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
---|
2354 | if AC_TRY_EVAL(ac_compile); then |
---|
2355 | case `/usr/bin/file conftest.$ac_objext` in |
---|
2356 | *64-bit*) |
---|
2357 | libsuff=64 |
---|
2358 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
---|
2359 | ;; |
---|
2360 | esac |
---|
2361 | fi |
---|
2362 | rm -rf conftest* |
---|
2363 | ;; |
---|
2364 | esac |
---|
2365 | |
---|
2366 | # Append ld.so.conf contents to the search path |
---|
2367 | if test -f /etc/ld.so.conf; then |
---|
2368 | lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` |
---|
2369 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
---|
2370 | fi |
---|
2371 | |
---|
2372 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
2373 | # powerpc, because MkLinux only supported shared libraries with the |
---|
2374 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
2375 | # most powerpc-linux boxes support dynamic linking these days and |
---|
2376 | # people can always --disable-shared, the test was removed, and we |
---|
2377 | # assume the GNU/Linux dynamic linker is in use. |
---|
2378 | dynamic_linker='GNU/Linux ld.so' |
---|
2379 | ;; |
---|
2380 | |
---|
2381 | knetbsd*-gnu) |
---|
2382 | version_type=linux |
---|
2383 | need_lib_prefix=no |
---|
2384 | need_version=no |
---|
2385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
2386 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2387 | shlibpath_var=LD_LIBRARY_PATH |
---|
2388 | shlibpath_overrides_runpath=no |
---|
2389 | hardcode_into_libs=yes |
---|
2390 | dynamic_linker='GNU ld.so' |
---|
2391 | ;; |
---|
2392 | |
---|
2393 | netbsd*) |
---|
2394 | version_type=sunos |
---|
2395 | need_lib_prefix=no |
---|
2396 | need_version=no |
---|
2397 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
2398 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
2399 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
2400 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
2401 | else |
---|
2402 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
2403 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2404 | dynamic_linker='NetBSD ld.elf_so' |
---|
2405 | fi |
---|
2406 | shlibpath_var=LD_LIBRARY_PATH |
---|
2407 | shlibpath_overrides_runpath=yes |
---|
2408 | hardcode_into_libs=yes |
---|
2409 | ;; |
---|
2410 | |
---|
2411 | newsos6) |
---|
2412 | version_type=linux |
---|
2413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2414 | shlibpath_var=LD_LIBRARY_PATH |
---|
2415 | shlibpath_overrides_runpath=yes |
---|
2416 | ;; |
---|
2417 | |
---|
2418 | nto-qnx*) |
---|
2419 | version_type=linux |
---|
2420 | need_lib_prefix=no |
---|
2421 | need_version=no |
---|
2422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2423 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2424 | shlibpath_var=LD_LIBRARY_PATH |
---|
2425 | shlibpath_overrides_runpath=yes |
---|
2426 | ;; |
---|
2427 | |
---|
2428 | openbsd*) |
---|
2429 | version_type=sunos |
---|
2430 | need_lib_prefix=no |
---|
2431 | need_version=yes |
---|
2432 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
2433 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
2434 | shlibpath_var=LD_LIBRARY_PATH |
---|
2435 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
2436 | case $host_os in |
---|
2437 | openbsd2.[[89]] | openbsd2.[[89]].*) |
---|
2438 | shlibpath_overrides_runpath=no |
---|
2439 | ;; |
---|
2440 | *) |
---|
2441 | shlibpath_overrides_runpath=yes |
---|
2442 | ;; |
---|
2443 | esac |
---|
2444 | else |
---|
2445 | shlibpath_overrides_runpath=yes |
---|
2446 | fi |
---|
2447 | ;; |
---|
2448 | |
---|
2449 | os2*) |
---|
2450 | libname_spec='$name' |
---|
2451 | shrext_cmds=".dll" |
---|
2452 | need_lib_prefix=no |
---|
2453 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
2454 | dynamic_linker='OS/2 ld.exe' |
---|
2455 | shlibpath_var=LIBPATH |
---|
2456 | ;; |
---|
2457 | |
---|
2458 | osf3* | osf4* | osf5*) |
---|
2459 | version_type=osf |
---|
2460 | need_lib_prefix=no |
---|
2461 | need_version=no |
---|
2462 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2464 | shlibpath_var=LD_LIBRARY_PATH |
---|
2465 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
2466 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
2467 | ;; |
---|
2468 | |
---|
2469 | sco3.2v5*) |
---|
2470 | version_type=osf |
---|
2471 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2473 | shlibpath_var=LD_LIBRARY_PATH |
---|
2474 | ;; |
---|
2475 | |
---|
2476 | solaris*) |
---|
2477 | version_type=linux |
---|
2478 | need_lib_prefix=no |
---|
2479 | need_version=no |
---|
2480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2481 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2482 | shlibpath_var=LD_LIBRARY_PATH |
---|
2483 | shlibpath_overrides_runpath=yes |
---|
2484 | hardcode_into_libs=yes |
---|
2485 | # ldd complains unless libraries are executable |
---|
2486 | postinstall_cmds='chmod +x $lib' |
---|
2487 | ;; |
---|
2488 | |
---|
2489 | sunos4*) |
---|
2490 | version_type=sunos |
---|
2491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
2492 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
2493 | shlibpath_var=LD_LIBRARY_PATH |
---|
2494 | shlibpath_overrides_runpath=yes |
---|
2495 | if test "$with_gnu_ld" = yes; then |
---|
2496 | need_lib_prefix=no |
---|
2497 | fi |
---|
2498 | need_version=yes |
---|
2499 | ;; |
---|
2500 | |
---|
2501 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
2502 | version_type=linux |
---|
2503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2504 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2505 | shlibpath_var=LD_LIBRARY_PATH |
---|
2506 | case $host_vendor in |
---|
2507 | sni) |
---|
2508 | shlibpath_overrides_runpath=no |
---|
2509 | need_lib_prefix=no |
---|
2510 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
2511 | runpath_var=LD_RUN_PATH |
---|
2512 | ;; |
---|
2513 | siemens) |
---|
2514 | need_lib_prefix=no |
---|
2515 | ;; |
---|
2516 | motorola) |
---|
2517 | need_lib_prefix=no |
---|
2518 | need_version=no |
---|
2519 | shlibpath_overrides_runpath=no |
---|
2520 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
2521 | ;; |
---|
2522 | esac |
---|
2523 | ;; |
---|
2524 | |
---|
2525 | sysv4*MP*) |
---|
2526 | if test -d /usr/nec ;then |
---|
2527 | version_type=linux |
---|
2528 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
2529 | soname_spec='$libname${shared_ext}.$major' |
---|
2530 | shlibpath_var=LD_LIBRARY_PATH |
---|
2531 | fi |
---|
2532 | ;; |
---|
2533 | |
---|
2534 | uts4*) |
---|
2535 | version_type=linux |
---|
2536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
2537 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
2538 | shlibpath_var=LD_LIBRARY_PATH |
---|
2539 | ;; |
---|
2540 | |
---|
2541 | *) |
---|
2542 | dynamic_linker=no |
---|
2543 | ;; |
---|
2544 | esac |
---|
2545 | AC_MSG_RESULT([$dynamic_linker]) |
---|
2546 | test "$dynamic_linker" = no && can_build_shared=no |
---|
2547 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
---|
2548 | |
---|
2549 | |
---|
2550 | # _LT_AC_TAGCONFIG |
---|
2551 | # ---------------- |
---|
2552 | AC_DEFUN([_LT_AC_TAGCONFIG], |
---|
2553 | [AC_ARG_WITH([tags], |
---|
2554 | [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], |
---|
2555 | [include additional configurations @<:@automatic@:>@])], |
---|
2556 | [tagnames="$withval"]) |
---|
2557 | |
---|
2558 | if test -f "$ltmain" && test -n "$tagnames"; then |
---|
2559 | if test ! -f "${ofile}"; then |
---|
2560 | AC_MSG_WARN([output file `$ofile' does not exist]) |
---|
2561 | fi |
---|
2562 | |
---|
2563 | if test -z "$LTCC"; then |
---|
2564 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
---|
2565 | if test -z "$LTCC"; then |
---|
2566 | AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) |
---|
2567 | else |
---|
2568 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
---|
2569 | fi |
---|
2570 | fi |
---|
2571 | |
---|
2572 | # Extract list of available tagged configurations in $ofile. |
---|
2573 | # Note that this assumes the entire list is on one line. |
---|
2574 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
---|
2575 | |
---|
2576 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
2577 | for tagname in $tagnames; do |
---|
2578 | IFS="$lt_save_ifs" |
---|
2579 | # Check whether tagname contains only valid characters |
---|
2580 | case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in |
---|
2581 | "") ;; |
---|
2582 | *) AC_MSG_ERROR([invalid tag name: $tagname]) |
---|
2583 | ;; |
---|
2584 | esac |
---|
2585 | |
---|
2586 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
---|
2587 | then |
---|
2588 | AC_MSG_ERROR([tag name \"$tagname\" already exists]) |
---|
2589 | fi |
---|
2590 | |
---|
2591 | # Update the list of available tags. |
---|
2592 | if test -n "$tagname"; then |
---|
2593 | echo appending configuration tag \"$tagname\" to $ofile |
---|
2594 | |
---|
2595 | case $tagname in |
---|
2596 | CXX) |
---|
2597 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
---|
2598 | AC_LIBTOOL_LANG_CXX_CONFIG |
---|
2599 | else |
---|
2600 | tagname="" |
---|
2601 | fi |
---|
2602 | ;; |
---|
2603 | |
---|
2604 | F77) |
---|
2605 | if test -n "$F77" && test "X$F77" != "Xno"; then |
---|
2606 | AC_LIBTOOL_LANG_F77_CONFIG |
---|
2607 | else |
---|
2608 | tagname="" |
---|
2609 | fi |
---|
2610 | ;; |
---|
2611 | |
---|
2612 | GCJ) |
---|
2613 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
---|
2614 | AC_LIBTOOL_LANG_GCJ_CONFIG |
---|
2615 | else |
---|
2616 | tagname="" |
---|
2617 | fi |
---|
2618 | ;; |
---|
2619 | |
---|
2620 | RC) |
---|
2621 | AC_LIBTOOL_LANG_RC_CONFIG |
---|
2622 | ;; |
---|
2623 | |
---|
2624 | *) |
---|
2625 | AC_MSG_ERROR([Unsupported tag name: $tagname]) |
---|
2626 | ;; |
---|
2627 | esac |
---|
2628 | |
---|
2629 | # Append the new tag name to the list of available tags. |
---|
2630 | if test -n "$tagname" ; then |
---|
2631 | available_tags="$available_tags $tagname" |
---|
2632 | fi |
---|
2633 | fi |
---|
2634 | done |
---|
2635 | IFS="$lt_save_ifs" |
---|
2636 | |
---|
2637 | # Now substitute the updated list of available tags. |
---|
2638 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
---|
2639 | mv "${ofile}T" "$ofile" |
---|
2640 | chmod +x "$ofile" |
---|
2641 | else |
---|
2642 | rm -f "${ofile}T" |
---|
2643 | AC_MSG_ERROR([unable to update list of available tagged configurations.]) |
---|
2644 | fi |
---|
2645 | fi |
---|
2646 | ])# _LT_AC_TAGCONFIG |
---|
2647 | |
---|
2648 | |
---|
2649 | # AC_LIBTOOL_DLOPEN |
---|
2650 | # ----------------- |
---|
2651 | # enable checks for dlopen support |
---|
2652 | AC_DEFUN([AC_LIBTOOL_DLOPEN], |
---|
2653 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) |
---|
2654 | ])# AC_LIBTOOL_DLOPEN |
---|
2655 | |
---|
2656 | |
---|
2657 | # AC_LIBTOOL_WIN32_DLL |
---|
2658 | # -------------------- |
---|
2659 | # declare package support for building win32 dll's |
---|
2660 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
---|
2661 | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
---|
2662 | ])# AC_LIBTOOL_WIN32_DLL |
---|
2663 | |
---|
2664 | |
---|
2665 | # AC_ENABLE_SHARED([DEFAULT]) |
---|
2666 | # --------------------------- |
---|
2667 | # implement the --enable-shared flag |
---|
2668 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
---|
2669 | AC_DEFUN([AC_ENABLE_SHARED], |
---|
2670 | [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
---|
2671 | AC_ARG_ENABLE([shared], |
---|
2672 | [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
---|
2673 | [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], |
---|
2674 | [p=${PACKAGE-default} |
---|
2675 | case $enableval in |
---|
2676 | yes) enable_shared=yes ;; |
---|
2677 | no) enable_shared=no ;; |
---|
2678 | *) |
---|
2679 | enable_shared=no |
---|
2680 | # Look at the argument we got. We use all the common list separators. |
---|
2681 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
2682 | for pkg in $enableval; do |
---|
2683 | IFS="$lt_save_ifs" |
---|
2684 | if test "X$pkg" = "X$p"; then |
---|
2685 | enable_shared=yes |
---|
2686 | fi |
---|
2687 | done |
---|
2688 | IFS="$lt_save_ifs" |
---|
2689 | ;; |
---|
2690 | esac], |
---|
2691 | [enable_shared=]AC_ENABLE_SHARED_DEFAULT) |
---|
2692 | ])# AC_ENABLE_SHARED |
---|
2693 | |
---|
2694 | |
---|
2695 | # AC_DISABLE_SHARED |
---|
2696 | # ----------------- |
---|
2697 | #- set the default shared flag to --disable-shared |
---|
2698 | AC_DEFUN([AC_DISABLE_SHARED], |
---|
2699 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
---|
2700 | AC_ENABLE_SHARED(no) |
---|
2701 | ])# AC_DISABLE_SHARED |
---|
2702 | |
---|
2703 | |
---|
2704 | # AC_ENABLE_STATIC([DEFAULT]) |
---|
2705 | # --------------------------- |
---|
2706 | # implement the --enable-static flag |
---|
2707 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
---|
2708 | AC_DEFUN([AC_ENABLE_STATIC], |
---|
2709 | [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
---|
2710 | AC_ARG_ENABLE([static], |
---|
2711 | [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
---|
2712 | [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], |
---|
2713 | [p=${PACKAGE-default} |
---|
2714 | case $enableval in |
---|
2715 | yes) enable_static=yes ;; |
---|
2716 | no) enable_static=no ;; |
---|
2717 | *) |
---|
2718 | enable_static=no |
---|
2719 | # Look at the argument we got. We use all the common list separators. |
---|
2720 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
2721 | for pkg in $enableval; do |
---|
2722 | IFS="$lt_save_ifs" |
---|
2723 | if test "X$pkg" = "X$p"; then |
---|
2724 | enable_static=yes |
---|
2725 | fi |
---|
2726 | done |
---|
2727 | IFS="$lt_save_ifs" |
---|
2728 | ;; |
---|
2729 | esac], |
---|
2730 | [enable_static=]AC_ENABLE_STATIC_DEFAULT) |
---|
2731 | ])# AC_ENABLE_STATIC |
---|
2732 | |
---|
2733 | |
---|
2734 | # AC_DISABLE_STATIC |
---|
2735 | # ----------------- |
---|
2736 | # set the default static flag to --disable-static |
---|
2737 | AC_DEFUN([AC_DISABLE_STATIC], |
---|
2738 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
---|
2739 | AC_ENABLE_STATIC(no) |
---|
2740 | ])# AC_DISABLE_STATIC |
---|
2741 | |
---|
2742 | |
---|
2743 | # AC_ENABLE_FAST_INSTALL([DEFAULT]) |
---|
2744 | # --------------------------------- |
---|
2745 | # implement the --enable-fast-install flag |
---|
2746 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
---|
2747 | AC_DEFUN([AC_ENABLE_FAST_INSTALL], |
---|
2748 | [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl |
---|
2749 | AC_ARG_ENABLE([fast-install], |
---|
2750 | [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], |
---|
2751 | [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], |
---|
2752 | [p=${PACKAGE-default} |
---|
2753 | case $enableval in |
---|
2754 | yes) enable_fast_install=yes ;; |
---|
2755 | no) enable_fast_install=no ;; |
---|
2756 | *) |
---|
2757 | enable_fast_install=no |
---|
2758 | # Look at the argument we got. We use all the common list separators. |
---|
2759 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
2760 | for pkg in $enableval; do |
---|
2761 | IFS="$lt_save_ifs" |
---|
2762 | if test "X$pkg" = "X$p"; then |
---|
2763 | enable_fast_install=yes |
---|
2764 | fi |
---|
2765 | done |
---|
2766 | IFS="$lt_save_ifs" |
---|
2767 | ;; |
---|
2768 | esac], |
---|
2769 | [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) |
---|
2770 | ])# AC_ENABLE_FAST_INSTALL |
---|
2771 | |
---|
2772 | |
---|
2773 | # AC_DISABLE_FAST_INSTALL |
---|
2774 | # ----------------------- |
---|
2775 | # set the default to --disable-fast-install |
---|
2776 | AC_DEFUN([AC_DISABLE_FAST_INSTALL], |
---|
2777 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
---|
2778 | AC_ENABLE_FAST_INSTALL(no) |
---|
2779 | ])# AC_DISABLE_FAST_INSTALL |
---|
2780 | |
---|
2781 | |
---|
2782 | # AC_LIBTOOL_PICMODE([MODE]) |
---|
2783 | # -------------------------- |
---|
2784 | # implement the --with-pic flag |
---|
2785 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
---|
2786 | AC_DEFUN([AC_LIBTOOL_PICMODE], |
---|
2787 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
---|
2788 | pic_mode=ifelse($#,1,$1,default) |
---|
2789 | ])# AC_LIBTOOL_PICMODE |
---|
2790 | |
---|
2791 | |
---|
2792 | # AC_PROG_EGREP |
---|
2793 | # ------------- |
---|
2794 | # This is predefined starting with Autoconf 2.54, so this conditional |
---|
2795 | # definition can be removed once we require Autoconf 2.54 or later. |
---|
2796 | m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], |
---|
2797 | [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], |
---|
2798 | [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
2799 | then ac_cv_prog_egrep='grep -E' |
---|
2800 | else ac_cv_prog_egrep='egrep' |
---|
2801 | fi]) |
---|
2802 | EGREP=$ac_cv_prog_egrep |
---|
2803 | AC_SUBST([EGREP]) |
---|
2804 | ])]) |
---|
2805 | |
---|
2806 | |
---|
2807 | # AC_PATH_TOOL_PREFIX |
---|
2808 | # ------------------- |
---|
2809 | # find a file program which can recognise shared library |
---|
2810 | AC_DEFUN([AC_PATH_TOOL_PREFIX], |
---|
2811 | [AC_REQUIRE([AC_PROG_EGREP])dnl |
---|
2812 | AC_MSG_CHECKING([for $1]) |
---|
2813 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
---|
2814 | [case $MAGIC_CMD in |
---|
2815 | [[\\/*] | ?:[\\/]*]) |
---|
2816 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
2817 | ;; |
---|
2818 | *) |
---|
2819 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
2820 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
2821 | dnl $ac_dummy forces splitting on constant user-supplied paths. |
---|
2822 | dnl POSIX.2 word splitting is done only on the output of word expansions, |
---|
2823 | dnl not every word. This closes a longstanding sh security hole. |
---|
2824 | ac_dummy="ifelse([$2], , $PATH, [$2])" |
---|
2825 | for ac_dir in $ac_dummy; do |
---|
2826 | IFS="$lt_save_ifs" |
---|
2827 | test -z "$ac_dir" && ac_dir=. |
---|
2828 | if test -f $ac_dir/$1; then |
---|
2829 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
---|
2830 | if test -n "$file_magic_test_file"; then |
---|
2831 | case $deplibs_check_method in |
---|
2832 | "file_magic "*) |
---|
2833 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
---|
2834 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
2835 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
2836 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
2837 | : |
---|
2838 | else |
---|
2839 | cat <<EOF 1>&2 |
---|
2840 | |
---|
2841 | *** Warning: the command libtool uses to detect shared libraries, |
---|
2842 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
2843 | *** The result is that libtool may fail to recognize shared libraries |
---|
2844 | *** as such. This will affect the creation of libtool libraries that |
---|
2845 | *** depend on shared libraries, but programs linked with such libtool |
---|
2846 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
2847 | *** may want to report the problem to your system manager and/or to |
---|
2848 | *** bug-libtool@gnu.org |
---|
2849 | |
---|
2850 | EOF |
---|
2851 | fi ;; |
---|
2852 | esac |
---|
2853 | fi |
---|
2854 | break |
---|
2855 | fi |
---|
2856 | done |
---|
2857 | IFS="$lt_save_ifs" |
---|
2858 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
2859 | ;; |
---|
2860 | esac]) |
---|
2861 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
2862 | if test -n "$MAGIC_CMD"; then |
---|
2863 | AC_MSG_RESULT($MAGIC_CMD) |
---|
2864 | else |
---|
2865 | AC_MSG_RESULT(no) |
---|
2866 | fi |
---|
2867 | ])# AC_PATH_TOOL_PREFIX |
---|
2868 | |
---|
2869 | |
---|
2870 | # AC_PATH_MAGIC |
---|
2871 | # ------------- |
---|
2872 | # find a file program which can recognise a shared library |
---|
2873 | AC_DEFUN([AC_PATH_MAGIC], |
---|
2874 | [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
---|
2875 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
2876 | if test -n "$ac_tool_prefix"; then |
---|
2877 | AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
---|
2878 | else |
---|
2879 | MAGIC_CMD=: |
---|
2880 | fi |
---|
2881 | fi |
---|
2882 | ])# AC_PATH_MAGIC |
---|
2883 | |
---|
2884 | |
---|
2885 | # AC_PROG_LD |
---|
2886 | # ---------- |
---|
2887 | # find the pathname to the GNU or non-GNU linker |
---|
2888 | AC_DEFUN([AC_PROG_LD], |
---|
2889 | [AC_ARG_WITH([gnu-ld], |
---|
2890 | [AC_HELP_STRING([--with-gnu-ld], |
---|
2891 | [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
---|
2892 | [test "$withval" = no || with_gnu_ld=yes], |
---|
2893 | [with_gnu_ld=no]) |
---|
2894 | AC_REQUIRE([LT_AC_PROG_SED])dnl |
---|
2895 | AC_REQUIRE([AC_PROG_CC])dnl |
---|
2896 | AC_REQUIRE([AC_CANONICAL_HOST])dnl |
---|
2897 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
---|
2898 | ac_prog=ld |
---|
2899 | if test "$GCC" = yes; then |
---|
2900 | # Check if gcc -print-prog-name=ld gives a path. |
---|
2901 | AC_MSG_CHECKING([for ld used by $CC]) |
---|
2902 | case $host in |
---|
2903 | *-*-mingw*) |
---|
2904 | # gcc leaves a trailing carriage return which upsets mingw |
---|
2905 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
2906 | *) |
---|
2907 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
2908 | esac |
---|
2909 | case $ac_prog in |
---|
2910 | # Accept absolute paths. |
---|
2911 | [[\\/]]* | ?:[[\\/]]*) |
---|
2912 | re_direlt='/[[^/]][[^/]]*/\.\./' |
---|
2913 | # Canonicalize the pathname of ld |
---|
2914 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
2915 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
2916 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
2917 | done |
---|
2918 | test -z "$LD" && LD="$ac_prog" |
---|
2919 | ;; |
---|
2920 | "") |
---|
2921 | # If it fails, then pretend we aren't using GCC. |
---|
2922 | ac_prog=ld |
---|
2923 | ;; |
---|
2924 | *) |
---|
2925 | # If it is relative, then search for the first ld in PATH. |
---|
2926 | with_gnu_ld=unknown |
---|
2927 | ;; |
---|
2928 | esac |
---|
2929 | elif test "$with_gnu_ld" = yes; then |
---|
2930 | AC_MSG_CHECKING([for GNU ld]) |
---|
2931 | else |
---|
2932 | AC_MSG_CHECKING([for non-GNU ld]) |
---|
2933 | fi |
---|
2934 | AC_CACHE_VAL(lt_cv_path_LD, |
---|
2935 | [if test -z "$LD"; then |
---|
2936 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
2937 | for ac_dir in $PATH; do |
---|
2938 | IFS="$lt_save_ifs" |
---|
2939 | test -z "$ac_dir" && ac_dir=. |
---|
2940 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
2941 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
2942 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
2943 | # but apparently some GNU ld's only accept -v. |
---|
2944 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
2945 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
2946 | *GNU* | *'with BFD'*) |
---|
2947 | test "$with_gnu_ld" != no && break |
---|
2948 | ;; |
---|
2949 | *) |
---|
2950 | test "$with_gnu_ld" != yes && break |
---|
2951 | ;; |
---|
2952 | esac |
---|
2953 | fi |
---|
2954 | done |
---|
2955 | IFS="$lt_save_ifs" |
---|
2956 | else |
---|
2957 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
2958 | fi]) |
---|
2959 | LD="$lt_cv_path_LD" |
---|
2960 | if test -n "$LD"; then |
---|
2961 | AC_MSG_RESULT($LD) |
---|
2962 | else |
---|
2963 | AC_MSG_RESULT(no) |
---|
2964 | fi |
---|
2965 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
---|
2966 | AC_PROG_LD_GNU |
---|
2967 | ])# AC_PROG_LD |
---|
2968 | |
---|
2969 | |
---|
2970 | # AC_PROG_LD_GNU |
---|
2971 | # -------------- |
---|
2972 | AC_DEFUN([AC_PROG_LD_GNU], |
---|
2973 | [AC_REQUIRE([AC_PROG_EGREP])dnl |
---|
2974 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
---|
2975 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
2976 | case `$LD -v 2>&1 </dev/null` in |
---|
2977 | *GNU* | *'with BFD'*) |
---|
2978 | lt_cv_prog_gnu_ld=yes |
---|
2979 | ;; |
---|
2980 | *) |
---|
2981 | lt_cv_prog_gnu_ld=no |
---|
2982 | ;; |
---|
2983 | esac]) |
---|
2984 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
2985 | ])# AC_PROG_LD_GNU |
---|
2986 | |
---|
2987 | |
---|
2988 | # AC_PROG_LD_RELOAD_FLAG |
---|
2989 | # ---------------------- |
---|
2990 | # find reload flag for linker |
---|
2991 | # -- PORTME Some linkers may need a different reload flag. |
---|
2992 | AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], |
---|
2993 | [AC_CACHE_CHECK([for $LD option to reload object files], |
---|
2994 | lt_cv_ld_reload_flag, |
---|
2995 | [lt_cv_ld_reload_flag='-r']) |
---|
2996 | reload_flag=$lt_cv_ld_reload_flag |
---|
2997 | case $reload_flag in |
---|
2998 | "" | " "*) ;; |
---|
2999 | *) reload_flag=" $reload_flag" ;; |
---|
3000 | esac |
---|
3001 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
3002 | ])# AC_PROG_LD_RELOAD_FLAG |
---|
3003 | |
---|
3004 | |
---|
3005 | # AC_DEPLIBS_CHECK_METHOD |
---|
3006 | # ----------------------- |
---|
3007 | # how to check for library dependencies |
---|
3008 | # -- PORTME fill in with the dynamic library characteristics |
---|
3009 | AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
---|
3010 | [AC_CACHE_CHECK([how to recognise dependent libraries], |
---|
3011 | lt_cv_deplibs_check_method, |
---|
3012 | [lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
3013 | lt_cv_file_magic_test_file= |
---|
3014 | lt_cv_deplibs_check_method='unknown' |
---|
3015 | # Need to set the preceding variable on all platforms that support |
---|
3016 | # interlibrary dependencies. |
---|
3017 | # 'none' -- dependencies not supported. |
---|
3018 | # `unknown' -- same as none, but documents that we really don't know. |
---|
3019 | # 'pass_all' -- all dependencies passed with no checks. |
---|
3020 | # 'test_compile' -- check by making test program. |
---|
3021 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
3022 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
3023 | # If you have `file' or equivalent on your system and you're not sure |
---|
3024 | # whether `pass_all' will *always* work, you probably want this one. |
---|
3025 | |
---|
3026 | case $host_os in |
---|
3027 | aix4* | aix5*) |
---|
3028 | lt_cv_deplibs_check_method=pass_all |
---|
3029 | ;; |
---|
3030 | |
---|
3031 | beos*) |
---|
3032 | lt_cv_deplibs_check_method=pass_all |
---|
3033 | ;; |
---|
3034 | |
---|
3035 | bsdi4*) |
---|
3036 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
---|
3037 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
3038 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
3039 | ;; |
---|
3040 | |
---|
3041 | cygwin*) |
---|
3042 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
3043 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
3044 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
3045 | ;; |
---|
3046 | |
---|
3047 | mingw* | pw32*) |
---|
3048 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
3049 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
3050 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
3051 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
3052 | ;; |
---|
3053 | |
---|
3054 | darwin* | rhapsody*) |
---|
3055 | lt_cv_deplibs_check_method=pass_all |
---|
3056 | ;; |
---|
3057 | |
---|
3058 | freebsd* | kfreebsd*-gnu) |
---|
3059 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
3060 | case $host_cpu in |
---|
3061 | i*86 ) |
---|
3062 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
3063 | # Let's accept both of them until this is cleared up. |
---|
3064 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' |
---|
3065 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
3066 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
3067 | ;; |
---|
3068 | esac |
---|
3069 | else |
---|
3070 | lt_cv_deplibs_check_method=pass_all |
---|
3071 | fi |
---|
3072 | ;; |
---|
3073 | |
---|
3074 | gnu*) |
---|
3075 | lt_cv_deplibs_check_method=pass_all |
---|
3076 | ;; |
---|
3077 | |
---|
3078 | hpux10.20* | hpux11*) |
---|
3079 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
3080 | case "$host_cpu" in |
---|
3081 | ia64*) |
---|
3082 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
---|
3083 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
3084 | ;; |
---|
3085 | hppa*64*) |
---|
3086 | [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] |
---|
3087 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
3088 | ;; |
---|
3089 | *) |
---|
3090 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
---|
3091 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
3092 | ;; |
---|
3093 | esac |
---|
3094 | ;; |
---|
3095 | |
---|
3096 | irix5* | irix6* | nonstopux*) |
---|
3097 | case $LD in |
---|
3098 | *-32|*"-32 ") libmagic=32-bit;; |
---|
3099 | *-n32|*"-n32 ") libmagic=N32;; |
---|
3100 | *-64|*"-64 ") libmagic=64-bit;; |
---|
3101 | *) libmagic=never-match;; |
---|
3102 | esac |
---|
3103 | lt_cv_deplibs_check_method=pass_all |
---|
3104 | ;; |
---|
3105 | |
---|
3106 | # This must be Linux ELF. |
---|
3107 | linux*) |
---|
3108 | case $host_cpu in |
---|
3109 | alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*) |
---|
3110 | lt_cv_deplibs_check_method=pass_all ;; |
---|
3111 | *) |
---|
3112 | # glibc up to 2.1.1 does not perform some relocations on ARM |
---|
3113 | # this will be overridden with pass_all, but let us keep it just in case |
---|
3114 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; |
---|
3115 | esac |
---|
3116 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
---|
3117 | lt_cv_deplibs_check_method=pass_all |
---|
3118 | ;; |
---|
3119 | |
---|
3120 | netbsd*) |
---|
3121 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
3122 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
---|
3123 | else |
---|
3124 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
---|
3125 | fi |
---|
3126 | ;; |
---|
3127 | |
---|
3128 | newos6*) |
---|
3129 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
---|
3130 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
3131 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
3132 | ;; |
---|
3133 | |
---|
3134 | nto-qnx*) |
---|
3135 | lt_cv_deplibs_check_method=unknown |
---|
3136 | ;; |
---|
3137 | |
---|
3138 | openbsd*) |
---|
3139 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
3140 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
3141 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
3142 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
---|
3143 | else |
---|
3144 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
---|
3145 | fi |
---|
3146 | ;; |
---|
3147 | |
---|
3148 | osf3* | osf4* | osf5*) |
---|
3149 | lt_cv_deplibs_check_method=pass_all |
---|
3150 | ;; |
---|
3151 | |
---|
3152 | sco3.2v5*) |
---|
3153 | lt_cv_deplibs_check_method=pass_all |
---|
3154 | ;; |
---|
3155 | |
---|
3156 | solaris*) |
---|
3157 | lt_cv_deplibs_check_method=pass_all |
---|
3158 | ;; |
---|
3159 | |
---|
3160 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
3161 | case $host_vendor in |
---|
3162 | motorola) |
---|
3163 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
---|
3164 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
3165 | ;; |
---|
3166 | ncr) |
---|
3167 | lt_cv_deplibs_check_method=pass_all |
---|
3168 | ;; |
---|
3169 | sequent) |
---|
3170 | lt_cv_file_magic_cmd='/bin/file' |
---|
3171 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
---|
3172 | ;; |
---|
3173 | sni) |
---|
3174 | lt_cv_file_magic_cmd='/bin/file' |
---|
3175 | lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
---|
3176 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
3177 | ;; |
---|
3178 | siemens) |
---|
3179 | lt_cv_deplibs_check_method=pass_all |
---|
3180 | ;; |
---|
3181 | esac |
---|
3182 | ;; |
---|
3183 | |
---|
3184 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) |
---|
3185 | lt_cv_deplibs_check_method=pass_all |
---|
3186 | ;; |
---|
3187 | esac |
---|
3188 | ]) |
---|
3189 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
3190 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
3191 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
3192 | ])# AC_DEPLIBS_CHECK_METHOD |
---|
3193 | |
---|
3194 | |
---|
3195 | # AC_PROG_NM |
---|
3196 | # ---------- |
---|
3197 | # find the pathname to a BSD-compatible name lister |
---|
3198 | AC_DEFUN([AC_PROG_NM], |
---|
3199 | [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, |
---|
3200 | [if test -n "$NM"; then |
---|
3201 | # Let the user override the test. |
---|
3202 | lt_cv_path_NM="$NM" |
---|
3203 | else |
---|
3204 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
3205 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
---|
3206 | IFS="$lt_save_ifs" |
---|
3207 | test -z "$ac_dir" && ac_dir=. |
---|
3208 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
---|
3209 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
3210 | # Check to see if the nm accepts a BSD-compat flag. |
---|
3211 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
3212 | # nm: unknown option "B" ignored |
---|
3213 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
3214 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
3215 | */dev/null* | *'Invalid file or object type'*) |
---|
3216 | lt_cv_path_NM="$tmp_nm -B" |
---|
3217 | break |
---|
3218 | ;; |
---|
3219 | *) |
---|
3220 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
3221 | */dev/null*) |
---|
3222 | lt_cv_path_NM="$tmp_nm -p" |
---|
3223 | break |
---|
3224 | ;; |
---|
3225 | *) |
---|
3226 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
3227 | continue # so that we can try to find one that supports BSD flags |
---|
3228 | ;; |
---|
3229 | esac |
---|
3230 | esac |
---|
3231 | fi |
---|
3232 | done |
---|
3233 | IFS="$lt_save_ifs" |
---|
3234 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
3235 | fi]) |
---|
3236 | NM="$lt_cv_path_NM" |
---|
3237 | ])# AC_PROG_NM |
---|
3238 | |
---|
3239 | |
---|
3240 | # AC_CHECK_LIBM |
---|
3241 | # ------------- |
---|
3242 | # check for math library |
---|
3243 | AC_DEFUN([AC_CHECK_LIBM], |
---|
3244 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
---|
3245 | LIBM= |
---|
3246 | case $host in |
---|
3247 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
---|
3248 | # These system don't have libm, or don't need it |
---|
3249 | ;; |
---|
3250 | *-ncr-sysv4.3*) |
---|
3251 | AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
---|
3252 | AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
---|
3253 | ;; |
---|
3254 | *) |
---|
3255 | AC_CHECK_LIB(m, cos, LIBM="-lm") |
---|
3256 | ;; |
---|
3257 | esac |
---|
3258 | ])# AC_CHECK_LIBM |
---|
3259 | |
---|
3260 | |
---|
3261 | # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
---|
3262 | # ----------------------------------- |
---|
3263 | # sets LIBLTDL to the link flags for the libltdl convenience library and |
---|
3264 | # LTDLINCL to the include flags for the libltdl header and adds |
---|
3265 | # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL |
---|
3266 | # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
---|
3267 | # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will |
---|
3268 | # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with |
---|
3269 | # '${top_srcdir}/' (note the single quotes!). If your package is not |
---|
3270 | # flat and you're not using automake, define top_builddir and |
---|
3271 | # top_srcdir appropriately in the Makefiles. |
---|
3272 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
---|
3273 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
---|
3274 | case $enable_ltdl_convenience in |
---|
3275 | no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
---|
3276 | "") enable_ltdl_convenience=yes |
---|
3277 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
---|
3278 | esac |
---|
3279 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
---|
3280 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
---|
3281 | # For backwards non-gettext consistent compatibility... |
---|
3282 | INCLTDL="$LTDLINCL" |
---|
3283 | ])# AC_LIBLTDL_CONVENIENCE |
---|
3284 | |
---|
3285 | |
---|
3286 | # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
---|
3287 | # ----------------------------------- |
---|
3288 | # sets LIBLTDL to the link flags for the libltdl installable library and |
---|
3289 | # LTDLINCL to the include flags for the libltdl header and adds |
---|
3290 | # --enable-ltdl-install to the configure arguments. Note that LIBLTDL |
---|
3291 | # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
---|
3292 | # DIRECTORY is not provided and an installed libltdl is not found, it is |
---|
3293 | # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' |
---|
3294 | # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single |
---|
3295 | # quotes!). If your package is not flat and you're not using automake, |
---|
3296 | # define top_builddir and top_srcdir appropriately in the Makefiles. |
---|
3297 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
---|
3298 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
---|
3299 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
---|
3300 | AC_CHECK_LIB(ltdl, lt_dlinit, |
---|
3301 | [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
---|
3302 | [if test x"$enable_ltdl_install" = xno; then |
---|
3303 | AC_MSG_WARN([libltdl not installed, but installation disabled]) |
---|
3304 | else |
---|
3305 | enable_ltdl_install=yes |
---|
3306 | fi |
---|
3307 | ]) |
---|
3308 | if test x"$enable_ltdl_install" = x"yes"; then |
---|
3309 | ac_configure_args="$ac_configure_args --enable-ltdl-install" |
---|
3310 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
---|
3311 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
---|
3312 | else |
---|
3313 | ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
---|
3314 | LIBLTDL="-lltdl" |
---|
3315 | LTDLINCL= |
---|
3316 | fi |
---|
3317 | # For backwards non-gettext consistent compatibility... |
---|
3318 | INCLTDL="$LTDLINCL" |
---|
3319 | ])# AC_LIBLTDL_INSTALLABLE |
---|
3320 | |
---|
3321 | |
---|
3322 | # AC_LIBTOOL_CXX |
---|
3323 | # -------------- |
---|
3324 | # enable support for C++ libraries |
---|
3325 | AC_DEFUN([AC_LIBTOOL_CXX], |
---|
3326 | [AC_REQUIRE([_LT_AC_LANG_CXX]) |
---|
3327 | ])# AC_LIBTOOL_CXX |
---|
3328 | |
---|
3329 | |
---|
3330 | # _LT_AC_LANG_CXX |
---|
3331 | # --------------- |
---|
3332 | AC_DEFUN([_LT_AC_LANG_CXX], |
---|
3333 | [AC_REQUIRE([AC_PROG_CXX]) |
---|
3334 | AC_REQUIRE([AC_PROG_CXXCPP]) |
---|
3335 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
---|
3336 | ])# _LT_AC_LANG_CXX |
---|
3337 | |
---|
3338 | |
---|
3339 | # AC_LIBTOOL_F77 |
---|
3340 | # -------------- |
---|
3341 | # enable support for Fortran 77 libraries |
---|
3342 | AC_DEFUN([AC_LIBTOOL_F77], |
---|
3343 | [AC_REQUIRE([_LT_AC_LANG_F77]) |
---|
3344 | ])# AC_LIBTOOL_F77 |
---|
3345 | |
---|
3346 | |
---|
3347 | # _LT_AC_LANG_F77 |
---|
3348 | # --------------- |
---|
3349 | AC_DEFUN([_LT_AC_LANG_F77], |
---|
3350 | [AC_REQUIRE([AC_PROG_F77]) |
---|
3351 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) |
---|
3352 | ])# _LT_AC_LANG_F77 |
---|
3353 | |
---|
3354 | |
---|
3355 | # AC_LIBTOOL_GCJ |
---|
3356 | # -------------- |
---|
3357 | # enable support for GCJ libraries |
---|
3358 | AC_DEFUN([AC_LIBTOOL_GCJ], |
---|
3359 | [AC_REQUIRE([_LT_AC_LANG_GCJ]) |
---|
3360 | ])# AC_LIBTOOL_GCJ |
---|
3361 | |
---|
3362 | |
---|
3363 | # _LT_AC_LANG_GCJ |
---|
3364 | # --------------- |
---|
3365 | AC_DEFUN([_LT_AC_LANG_GCJ], |
---|
3366 | [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], |
---|
3367 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
---|
3368 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
---|
3369 | [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
---|
3370 | [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
---|
3371 | [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
---|
3372 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) |
---|
3373 | ])# _LT_AC_LANG_GCJ |
---|
3374 | |
---|
3375 | |
---|
3376 | # AC_LIBTOOL_RC |
---|
3377 | # -------------- |
---|
3378 | # enable support for Windows resource files |
---|
3379 | AC_DEFUN([AC_LIBTOOL_RC], |
---|
3380 | [AC_REQUIRE([LT_AC_PROG_RC]) |
---|
3381 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) |
---|
3382 | ])# AC_LIBTOOL_RC |
---|
3383 | |
---|
3384 | |
---|
3385 | # AC_LIBTOOL_LANG_C_CONFIG |
---|
3386 | # ------------------------ |
---|
3387 | # Ensure that the configuration vars for the C compiler are |
---|
3388 | # suitably defined. Those variables are subsequently used by |
---|
3389 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
---|
3390 | AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) |
---|
3391 | AC_DEFUN([_LT_AC_LANG_C_CONFIG], |
---|
3392 | [lt_save_CC="$CC" |
---|
3393 | AC_LANG_PUSH(C) |
---|
3394 | |
---|
3395 | # Source file extension for C test sources. |
---|
3396 | ac_ext=c |
---|
3397 | |
---|
3398 | # Object file extension for compiled C test sources. |
---|
3399 | objext=o |
---|
3400 | _LT_AC_TAGVAR(objext, $1)=$objext |
---|
3401 | |
---|
3402 | # Code to be used in simple compile tests |
---|
3403 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
3404 | |
---|
3405 | # Code to be used in simple link tests |
---|
3406 | lt_simple_link_test_code='int main(){return(0);}\n' |
---|
3407 | |
---|
3408 | _LT_AC_SYS_COMPILER |
---|
3409 | |
---|
3410 | # |
---|
3411 | # Check for any special shared library compilation flags. |
---|
3412 | # |
---|
3413 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= |
---|
3414 | if test "$GCC" = no; then |
---|
3415 | case $host_os in |
---|
3416 | sco3.2v5*) |
---|
3417 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' |
---|
3418 | ;; |
---|
3419 | esac |
---|
3420 | fi |
---|
3421 | if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
---|
3422 | AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
---|
3423 | if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : |
---|
3424 | else |
---|
3425 | AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
---|
3426 | _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
---|
3427 | fi |
---|
3428 | fi |
---|
3429 | |
---|
3430 | |
---|
3431 | # |
---|
3432 | # Check to make sure the static flag actually works. |
---|
3433 | # |
---|
3434 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], |
---|
3435 | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
---|
3436 | $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), |
---|
3437 | [], |
---|
3438 | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
---|
3439 | |
---|
3440 | |
---|
3441 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
---|
3442 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
---|
3443 | AC_LIBTOOL_PROG_CC_C_O($1) |
---|
3444 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
---|
3445 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
---|
3446 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
---|
3447 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
---|
3448 | AC_LIBTOOL_SYS_LIB_STRIP |
---|
3449 | AC_LIBTOOL_DLOPEN_SELF($1) |
---|
3450 | |
---|
3451 | # Report which librarie types wil actually be built |
---|
3452 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
---|
3453 | AC_MSG_RESULT([$can_build_shared]) |
---|
3454 | |
---|
3455 | AC_MSG_CHECKING([whether to build shared libraries]) |
---|
3456 | test "$can_build_shared" = "no" && enable_shared=no |
---|
3457 | |
---|
3458 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
3459 | # are all built from PIC. |
---|
3460 | case "$host_os" in |
---|
3461 | aix3*) |
---|
3462 | test "$enable_shared" = yes && enable_static=no |
---|
3463 | if test -n "$RANLIB"; then |
---|
3464 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
3465 | postinstall_cmds='$RANLIB $lib' |
---|
3466 | fi |
---|
3467 | ;; |
---|
3468 | |
---|
3469 | aix4* | aix5*) |
---|
3470 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
3471 | test "$enable_shared" = yes && enable_static=no |
---|
3472 | fi |
---|
3473 | ;; |
---|
3474 | darwin* | rhapsody*) |
---|
3475 | if test "$GCC" = yes; then |
---|
3476 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
---|
3477 | case "$host_os" in |
---|
3478 | rhapsody* | darwin1.[[012]]) |
---|
3479 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
---|
3480 | ;; |
---|
3481 | *) # Darwin 1.3 on |
---|
3482 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
3483 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
---|
3484 | else |
---|
3485 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
3486 | 10.[[012]]) |
---|
3487 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
---|
3488 | ;; |
---|
3489 | 10.*) |
---|
3490 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
---|
3491 | ;; |
---|
3492 | esac |
---|
3493 | fi |
---|
3494 | ;; |
---|
3495 | esac |
---|
3496 | output_verbose_link_cmd='echo' |
---|
3497 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
---|
3498 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
3499 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
3500 | _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}' |
---|
3501 | _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}' |
---|
3502 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
---|
3503 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
---|
3504 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
---|
3505 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
---|
3506 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
---|
3507 | else |
---|
3508 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
3509 | fi |
---|
3510 | ;; |
---|
3511 | esac |
---|
3512 | AC_MSG_RESULT([$enable_shared]) |
---|
3513 | |
---|
3514 | AC_MSG_CHECKING([whether to build static libraries]) |
---|
3515 | # Make sure either enable_shared or enable_static is yes. |
---|
3516 | test "$enable_shared" = yes || enable_static=yes |
---|
3517 | AC_MSG_RESULT([$enable_static]) |
---|
3518 | |
---|
3519 | AC_LIBTOOL_CONFIG($1) |
---|
3520 | |
---|
3521 | AC_LANG_POP |
---|
3522 | CC="$lt_save_CC" |
---|
3523 | ])# AC_LIBTOOL_LANG_C_CONFIG |
---|
3524 | |
---|
3525 | |
---|
3526 | # AC_LIBTOOL_LANG_CXX_CONFIG |
---|
3527 | # -------------------------- |
---|
3528 | # Ensure that the configuration vars for the C compiler are |
---|
3529 | # suitably defined. Those variables are subsequently used by |
---|
3530 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
---|
3531 | AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) |
---|
3532 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
---|
3533 | [AC_LANG_PUSH(C++) |
---|
3534 | AC_REQUIRE([AC_PROG_CXX]) |
---|
3535 | AC_REQUIRE([AC_PROG_CXXCPP]) |
---|
3536 | |
---|
3537 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
---|
3538 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
---|
3539 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
---|
3540 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
---|
3541 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
---|
3542 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
---|
3543 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
---|
3544 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
---|
3545 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
---|
3546 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
---|
3547 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
---|
3548 | _LT_AC_TAGVAR(module_cmds, $1)= |
---|
3549 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
---|
3550 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
---|
3551 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
---|
3552 | _LT_AC_TAGVAR(no_undefined_flag, $1)= |
---|
3553 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
---|
3554 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
---|
3555 | |
---|
3556 | # Dependencies to place before and after the object being linked: |
---|
3557 | _LT_AC_TAGVAR(predep_objects, $1)= |
---|
3558 | _LT_AC_TAGVAR(postdep_objects, $1)= |
---|
3559 | _LT_AC_TAGVAR(predeps, $1)= |
---|
3560 | _LT_AC_TAGVAR(postdeps, $1)= |
---|
3561 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
---|
3562 | |
---|
3563 | # Source file extension for C++ test sources. |
---|
3564 | ac_ext=cc |
---|
3565 | |
---|
3566 | # Object file extension for compiled C++ test sources. |
---|
3567 | objext=o |
---|
3568 | _LT_AC_TAGVAR(objext, $1)=$objext |
---|
3569 | |
---|
3570 | # Code to be used in simple compile tests |
---|
3571 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
3572 | |
---|
3573 | # Code to be used in simple link tests |
---|
3574 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
---|
3575 | |
---|
3576 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
3577 | _LT_AC_SYS_COMPILER |
---|
3578 | |
---|
3579 | # Allow CC to be a program name with arguments. |
---|
3580 | lt_save_CC=$CC |
---|
3581 | lt_save_LD=$LD |
---|
3582 | lt_save_GCC=$GCC |
---|
3583 | GCC=$GXX |
---|
3584 | lt_save_with_gnu_ld=$with_gnu_ld |
---|
3585 | lt_save_path_LD=$lt_cv_path_LD |
---|
3586 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
---|
3587 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
---|
3588 | else |
---|
3589 | unset lt_cv_prog_gnu_ld |
---|
3590 | fi |
---|
3591 | if test -n "${lt_cv_path_LDCXX+set}"; then |
---|
3592 | lt_cv_path_LD=$lt_cv_path_LDCXX |
---|
3593 | else |
---|
3594 | unset lt_cv_path_LD |
---|
3595 | fi |
---|
3596 | test -z "${LDCXX+set}" || LD=$LDCXX |
---|
3597 | CC=${CXX-"c++"} |
---|
3598 | compiler=$CC |
---|
3599 | _LT_AC_TAGVAR(compiler, $1)=$CC |
---|
3600 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
---|
3601 | |
---|
3602 | # We don't want -fno-exception wen compiling C++ code, so set the |
---|
3603 | # no_builtin_flag separately |
---|
3604 | if test "$GXX" = yes; then |
---|
3605 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
---|
3606 | else |
---|
3607 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
---|
3608 | fi |
---|
3609 | |
---|
3610 | if test "$GXX" = yes; then |
---|
3611 | # Set up default GNU C++ configuration |
---|
3612 | |
---|
3613 | AC_PROG_LD |
---|
3614 | |
---|
3615 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
---|
3616 | # archiving commands below assume that GNU ld is being used. |
---|
3617 | if test "$with_gnu_ld" = yes; then |
---|
3618 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
3619 | _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' |
---|
3620 | |
---|
3621 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
---|
3622 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
---|
3623 | |
---|
3624 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
3625 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
---|
3626 | # investigate it a little bit more. (MM) |
---|
3627 | wlarc='${wl}' |
---|
3628 | |
---|
3629 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
3630 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
---|
3631 | grep 'no-whole-archive' > /dev/null; then |
---|
3632 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
3633 | else |
---|
3634 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
---|
3635 | fi |
---|
3636 | else |
---|
3637 | with_gnu_ld=no |
---|
3638 | wlarc= |
---|
3639 | |
---|
3640 | # A generic and very simple default shared library creation |
---|
3641 | # command for GNU C++ for the case where it uses the native |
---|
3642 | # linker, instead of GNU ld. If possible, this setting should |
---|
3643 | # overridden to take advantage of the native linker features on |
---|
3644 | # the platform it is being used on. |
---|
3645 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
3646 | fi |
---|
3647 | |
---|
3648 | # Commands to make compiler produce verbose output that lists |
---|
3649 | # what "hidden" libraries, object files and flags are used when |
---|
3650 | # linking a shared library. |
---|
3651 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
3652 | |
---|
3653 | else |
---|
3654 | GXX=no |
---|
3655 | with_gnu_ld=no |
---|
3656 | wlarc= |
---|
3657 | fi |
---|
3658 | |
---|
3659 | # PORTME: fill in a description of your system's C++ link characteristics |
---|
3660 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
---|
3661 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
---|
3662 | case $host_os in |
---|
3663 | aix3*) |
---|
3664 | # FIXME: insert proper C++ library support |
---|
3665 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
3666 | ;; |
---|
3667 | aix4* | aix5*) |
---|
3668 | if test "$host_cpu" = ia64; then |
---|
3669 | # On IA64, the linker does run time linking by default, so we don't |
---|
3670 | # have to do anything special. |
---|
3671 | aix_use_runtimelinking=no |
---|
3672 | exp_sym_flag='-Bexport' |
---|
3673 | no_entry_flag="" |
---|
3674 | else |
---|
3675 | aix_use_runtimelinking=no |
---|
3676 | |
---|
3677 | # Test if we are trying to use run time linking or normal |
---|
3678 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
3679 | # need to do runtime linking. |
---|
3680 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
---|
3681 | for ld_flag in $LDFLAGS; do |
---|
3682 | case $ld_flag in |
---|
3683 | *-brtl*) |
---|
3684 | aix_use_runtimelinking=yes |
---|
3685 | break |
---|
3686 | ;; |
---|
3687 | esac |
---|
3688 | done |
---|
3689 | esac |
---|
3690 | |
---|
3691 | exp_sym_flag='-bexport' |
---|
3692 | no_entry_flag='-bnoentry' |
---|
3693 | fi |
---|
3694 | |
---|
3695 | # When large executables or shared objects are built, AIX ld can |
---|
3696 | # have problems creating the table of contents. If linking a library |
---|
3697 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
3698 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
3699 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
3700 | |
---|
3701 | _LT_AC_TAGVAR(archive_cmds, $1)='' |
---|
3702 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
3703 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
---|
3704 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
---|
3705 | |
---|
3706 | if test "$GXX" = yes; then |
---|
3707 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
3708 | # We only want to do this on AIX 4.2 and lower, the check |
---|
3709 | # below for broken collect2 doesn't work under 4.3+ |
---|
3710 | collect2name=`${CC} -print-prog-name=collect2` |
---|
3711 | if test -f "$collect2name" && \ |
---|
3712 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
3713 | then |
---|
3714 | # We have reworked collect2 |
---|
3715 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
3716 | else |
---|
3717 | # We have old collect2 |
---|
3718 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
---|
3719 | # It fails to find uninstalled libraries when the uninstalled |
---|
3720 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
3721 | # to unsupported forces relinking |
---|
3722 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
---|
3723 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
---|
3724 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
---|
3725 | fi |
---|
3726 | esac |
---|
3727 | shared_flag='-shared' |
---|
3728 | else |
---|
3729 | # not using gcc |
---|
3730 | if test "$host_cpu" = ia64; then |
---|
3731 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
3732 | # chokes on -Wl,-G. The following line is correct: |
---|
3733 | shared_flag='-G' |
---|
3734 | else |
---|
3735 | if test "$aix_use_runtimelinking" = yes; then |
---|
3736 | shared_flag='${wl}-G' |
---|
3737 | else |
---|
3738 | shared_flag='${wl}-bM:SRE' |
---|
3739 | fi |
---|
3740 | fi |
---|
3741 | fi |
---|
3742 | |
---|
3743 | # It seems that -bexpall does not export symbols beginning with |
---|
3744 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
3745 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
---|
3746 | if test "$aix_use_runtimelinking" = yes; then |
---|
3747 | # Warning - without using the other runtime loading flags (-brtl), |
---|
3748 | # -berok will link without error, but may produce a broken library. |
---|
3749 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
---|
3750 | # Determine the default libpath from the value encoded in an empty executable. |
---|
3751 | _LT_AC_SYS_LIBPATH_AIX |
---|
3752 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
3753 | |
---|
3754 | _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" |
---|
3755 | else |
---|
3756 | if test "$host_cpu" = ia64; then |
---|
3757 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
---|
3758 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
---|
3759 | _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" |
---|
3760 | else |
---|
3761 | # Determine the default libpath from the value encoded in an empty executable. |
---|
3762 | _LT_AC_SYS_LIBPATH_AIX |
---|
3763 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
3764 | # Warning - without using the other run time loading flags, |
---|
3765 | # -berok will link without error, but may produce a broken library. |
---|
3766 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
---|
3767 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
---|
3768 | # -bexpall does not export symbols beginning with underscore (_) |
---|
3769 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
---|
3770 | # Exported symbols can be pulled into shared objects from archives |
---|
3771 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
---|
3772 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
---|
3773 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
3774 | _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' |
---|
3775 | fi |
---|
3776 | fi |
---|
3777 | ;; |
---|
3778 | chorus*) |
---|
3779 | case $cc_basename in |
---|
3780 | *) |
---|
3781 | # FIXME: insert proper C++ library support |
---|
3782 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
3783 | ;; |
---|
3784 | esac |
---|
3785 | ;; |
---|
3786 | |
---|
3787 | cygwin* | mingw* | pw32*) |
---|
3788 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
---|
3789 | # as there is no search path for DLLs. |
---|
3790 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
---|
3791 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
---|
3792 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
---|
3793 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
---|
3794 | |
---|
3795 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
3796 | _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' |
---|
3797 | # If the export-symbols file already is a .def file (1st line |
---|
3798 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
3799 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
3800 | cp $export_symbols $output_objdir/$soname.def; |
---|
3801 | else |
---|
3802 | echo EXPORTS > $output_objdir/$soname.def; |
---|
3803 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
3804 | fi~ |
---|
3805 | $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' |
---|
3806 | else |
---|
3807 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
3808 | fi |
---|
3809 | ;; |
---|
3810 | |
---|
3811 | darwin* | rhapsody*) |
---|
3812 | if test "$GXX" = yes; then |
---|
3813 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
---|
3814 | case "$host_os" in |
---|
3815 | rhapsody* | darwin1.[[012]]) |
---|
3816 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
---|
3817 | ;; |
---|
3818 | *) # Darwin 1.3 on |
---|
3819 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
3820 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
---|
3821 | else |
---|
3822 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
3823 | 10.[[012]]) |
---|
3824 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
---|
3825 | ;; |
---|
3826 | 10.*) |
---|
3827 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
---|
3828 | ;; |
---|
3829 | esac |
---|
3830 | fi |
---|
3831 | ;; |
---|
3832 | esac |
---|
3833 | lt_int_apple_cc_single_mod=no |
---|
3834 | output_verbose_link_cmd='echo' |
---|
3835 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
---|
3836 | lt_int_apple_cc_single_mod=yes |
---|
3837 | fi |
---|
3838 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
3839 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
3840 | else |
---|
3841 | _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' |
---|
3842 | fi |
---|
3843 | _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
3844 | |
---|
3845 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
3846 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
3847 | _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}' |
---|
3848 | else |
---|
3849 | _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}' |
---|
3850 | fi |
---|
3851 | _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}' |
---|
3852 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
---|
3853 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
---|
3854 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
---|
3855 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
---|
3856 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
---|
3857 | else |
---|
3858 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
3859 | fi |
---|
3860 | ;; |
---|
3861 | |
---|
3862 | dgux*) |
---|
3863 | case $cc_basename in |
---|
3864 | ec++) |
---|
3865 | # FIXME: insert proper C++ library support |
---|
3866 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
3867 | ;; |
---|
3868 | ghcx) |
---|
3869 | # Green Hills C++ Compiler |
---|
3870 | # FIXME: insert proper C++ library support |
---|
3871 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
3872 | ;; |
---|
3873 | *) |
---|
3874 | # FIXME: insert proper C++ library support |
---|
3875 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
3876 | ;; |
---|
3877 | esac |
---|
3878 | ;; |
---|
3879 | freebsd[12]*) |
---|
3880 | # C++ shared libraries reported to be fairly broken before switch to ELF |
---|
3881 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
3882 | ;; |
---|
3883 | freebsd-elf*) |
---|
3884 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
---|
3885 | ;; |
---|
3886 | freebsd* | kfreebsd*-gnu) |
---|
3887 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
---|
3888 | # conventions |
---|
3889 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
---|
3890 | ;; |
---|
3891 | gnu*) |
---|
3892 | ;; |
---|
3893 | hpux9*) |
---|
3894 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
---|
3895 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
3896 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
---|
3897 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
3898 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
---|
3899 | # but as the default |
---|
3900 | # location of the library. |
---|
3901 | |
---|
3902 | case $cc_basename in |
---|
3903 | CC) |
---|
3904 | # FIXME: insert proper C++ library support |
---|
3905 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
3906 | ;; |
---|
3907 | aCC) |
---|
3908 | _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' |
---|
3909 | # Commands to make compiler produce verbose output that lists |
---|
3910 | # what "hidden" libraries, object files and flags are used when |
---|
3911 | # linking a shared library. |
---|
3912 | # |
---|
3913 | # There doesn't appear to be a way to prevent this compiler from |
---|
3914 | # explicitly linking system object files so we need to strip them |
---|
3915 | # from the output so that they don't get included in the library |
---|
3916 | # dependencies. |
---|
3917 | 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' |
---|
3918 | ;; |
---|
3919 | *) |
---|
3920 | if test "$GXX" = yes; then |
---|
3921 | _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' |
---|
3922 | else |
---|
3923 | # FIXME: insert proper C++ library support |
---|
3924 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
3925 | fi |
---|
3926 | ;; |
---|
3927 | esac |
---|
3928 | ;; |
---|
3929 | hpux10*|hpux11*) |
---|
3930 | if test $with_gnu_ld = no; then |
---|
3931 | case "$host_cpu" in |
---|
3932 | hppa*64*) |
---|
3933 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
---|
3934 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
---|
3935 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
3936 | ;; |
---|
3937 | ia64*) |
---|
3938 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
---|
3939 | ;; |
---|
3940 | *) |
---|
3941 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
---|
3942 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
3943 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
---|
3944 | ;; |
---|
3945 | esac |
---|
3946 | fi |
---|
3947 | case "$host_cpu" in |
---|
3948 | hppa*64*) |
---|
3949 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
---|
3950 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
3951 | ;; |
---|
3952 | ia64*) |
---|
3953 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
---|
3954 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
3955 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
---|
3956 | # but as the default |
---|
3957 | # location of the library. |
---|
3958 | ;; |
---|
3959 | *) |
---|
3960 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
3961 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
---|
3962 | # but as the default |
---|
3963 | # location of the library. |
---|
3964 | ;; |
---|
3965 | esac |
---|
3966 | |
---|
3967 | case $cc_basename in |
---|
3968 | CC) |
---|
3969 | # FIXME: insert proper C++ library support |
---|
3970 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
3971 | ;; |
---|
3972 | aCC) |
---|
3973 | case "$host_cpu" in |
---|
3974 | hppa*64*|ia64*) |
---|
3975 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
---|
3976 | ;; |
---|
3977 | *) |
---|
3978 | _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' |
---|
3979 | ;; |
---|
3980 | esac |
---|
3981 | # Commands to make compiler produce verbose output that lists |
---|
3982 | # what "hidden" libraries, object files and flags are used when |
---|
3983 | # linking a shared library. |
---|
3984 | # |
---|
3985 | # There doesn't appear to be a way to prevent this compiler from |
---|
3986 | # explicitly linking system object files so we need to strip them |
---|
3987 | # from the output so that they don't get included in the library |
---|
3988 | # dependencies. |
---|
3989 | 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' |
---|
3990 | ;; |
---|
3991 | *) |
---|
3992 | if test "$GXX" = yes; then |
---|
3993 | if test $with_gnu_ld = no; then |
---|
3994 | case "$host_cpu" in |
---|
3995 | ia64*|hppa*64*) |
---|
3996 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
---|
3997 | ;; |
---|
3998 | *) |
---|
3999 | _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' |
---|
4000 | ;; |
---|
4001 | esac |
---|
4002 | fi |
---|
4003 | else |
---|
4004 | # FIXME: insert proper C++ library support |
---|
4005 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4006 | fi |
---|
4007 | ;; |
---|
4008 | esac |
---|
4009 | ;; |
---|
4010 | irix5* | irix6*) |
---|
4011 | case $cc_basename in |
---|
4012 | CC) |
---|
4013 | # SGI C++ |
---|
4014 | _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' |
---|
4015 | |
---|
4016 | # Archives containing C++ object files must be created using |
---|
4017 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
---|
4018 | # necessary to make sure instantiated templates are included |
---|
4019 | # in the archive. |
---|
4020 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
---|
4021 | ;; |
---|
4022 | *) |
---|
4023 | if test "$GXX" = yes; then |
---|
4024 | if test "$with_gnu_ld" = no; then |
---|
4025 | _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' |
---|
4026 | else |
---|
4027 | _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' |
---|
4028 | fi |
---|
4029 | fi |
---|
4030 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
---|
4031 | ;; |
---|
4032 | esac |
---|
4033 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
---|
4034 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
4035 | ;; |
---|
4036 | linux*) |
---|
4037 | case $cc_basename in |
---|
4038 | KCC) |
---|
4039 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
4040 | |
---|
4041 | # KCC will only create a shared library if the output file |
---|
4042 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
4043 | # to its proper name (with version) after linking. |
---|
4044 | _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' |
---|
4045 | _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' |
---|
4046 | # Commands to make compiler produce verbose output that lists |
---|
4047 | # what "hidden" libraries, object files and flags are used when |
---|
4048 | # linking a shared library. |
---|
4049 | # |
---|
4050 | # There doesn't appear to be a way to prevent this compiler from |
---|
4051 | # explicitly linking system object files so we need to strip them |
---|
4052 | # from the output so that they don't get included in the library |
---|
4053 | # dependencies. |
---|
4054 | 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' |
---|
4055 | |
---|
4056 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' |
---|
4057 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
---|
4058 | |
---|
4059 | # Archives containing C++ object files must be created using |
---|
4060 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
4061 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
---|
4062 | ;; |
---|
4063 | icpc) |
---|
4064 | # Intel C++ |
---|
4065 | with_gnu_ld=yes |
---|
4066 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
---|
4067 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
4068 | _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' |
---|
4069 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
---|
4070 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
---|
4071 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
---|
4072 | ;; |
---|
4073 | cxx) |
---|
4074 | # Compaq C++ |
---|
4075 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
4076 | _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' |
---|
4077 | |
---|
4078 | runpath_var=LD_RUN_PATH |
---|
4079 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
---|
4080 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
4081 | |
---|
4082 | # Commands to make compiler produce verbose output that lists |
---|
4083 | # what "hidden" libraries, object files and flags are used when |
---|
4084 | # linking a shared library. |
---|
4085 | # |
---|
4086 | # There doesn't appear to be a way to prevent this compiler from |
---|
4087 | # explicitly linking system object files so we need to strip them |
---|
4088 | # from the output so that they don't get included in the library |
---|
4089 | # dependencies. |
---|
4090 | 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' |
---|
4091 | ;; |
---|
4092 | esac |
---|
4093 | ;; |
---|
4094 | lynxos*) |
---|
4095 | # FIXME: insert proper C++ library support |
---|
4096 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4097 | ;; |
---|
4098 | m88k*) |
---|
4099 | # FIXME: insert proper C++ library support |
---|
4100 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4101 | ;; |
---|
4102 | mvs*) |
---|
4103 | case $cc_basename in |
---|
4104 | cxx) |
---|
4105 | # FIXME: insert proper C++ library support |
---|
4106 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4107 | ;; |
---|
4108 | *) |
---|
4109 | # FIXME: insert proper C++ library support |
---|
4110 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4111 | ;; |
---|
4112 | esac |
---|
4113 | ;; |
---|
4114 | netbsd*) |
---|
4115 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
4116 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
---|
4117 | wlarc= |
---|
4118 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
---|
4119 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
4120 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
4121 | fi |
---|
4122 | # Workaround some broken pre-1.5 toolchains |
---|
4123 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
---|
4124 | ;; |
---|
4125 | osf3*) |
---|
4126 | case $cc_basename in |
---|
4127 | KCC) |
---|
4128 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
4129 | |
---|
4130 | # KCC will only create a shared library if the output file |
---|
4131 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
4132 | # to its proper name (with version) after linking. |
---|
4133 | _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' |
---|
4134 | |
---|
4135 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
---|
4136 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
4137 | |
---|
4138 | # Archives containing C++ object files must be created using |
---|
4139 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
4140 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
---|
4141 | |
---|
4142 | ;; |
---|
4143 | RCC) |
---|
4144 | # Rational C++ 2.4.1 |
---|
4145 | # FIXME: insert proper C++ library support |
---|
4146 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4147 | ;; |
---|
4148 | cxx) |
---|
4149 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
---|
4150 | _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' |
---|
4151 | |
---|
4152 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
---|
4153 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
4154 | |
---|
4155 | # Commands to make compiler produce verbose output that lists |
---|
4156 | # what "hidden" libraries, object files and flags are used when |
---|
4157 | # linking a shared library. |
---|
4158 | # |
---|
4159 | # There doesn't appear to be a way to prevent this compiler from |
---|
4160 | # explicitly linking system object files so we need to strip them |
---|
4161 | # from the output so that they don't get included in the library |
---|
4162 | # dependencies. |
---|
4163 | 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' |
---|
4164 | ;; |
---|
4165 | *) |
---|
4166 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
4167 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
---|
4168 | _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' |
---|
4169 | |
---|
4170 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
---|
4171 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
4172 | |
---|
4173 | # Commands to make compiler produce verbose output that lists |
---|
4174 | # what "hidden" libraries, object files and flags are used when |
---|
4175 | # linking a shared library. |
---|
4176 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
4177 | |
---|
4178 | else |
---|
4179 | # FIXME: insert proper C++ library support |
---|
4180 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4181 | fi |
---|
4182 | ;; |
---|
4183 | esac |
---|
4184 | ;; |
---|
4185 | osf4* | osf5*) |
---|
4186 | case $cc_basename in |
---|
4187 | KCC) |
---|
4188 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
4189 | |
---|
4190 | # KCC will only create a shared library if the output file |
---|
4191 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
4192 | # to its proper name (with version) after linking. |
---|
4193 | _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' |
---|
4194 | |
---|
4195 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
---|
4196 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
4197 | |
---|
4198 | # Archives containing C++ object files must be created using |
---|
4199 | # the KAI C++ compiler. |
---|
4200 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
---|
4201 | ;; |
---|
4202 | RCC) |
---|
4203 | # Rational C++ 2.4.1 |
---|
4204 | # FIXME: insert proper C++ library support |
---|
4205 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4206 | ;; |
---|
4207 | cxx) |
---|
4208 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
---|
4209 | _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' |
---|
4210 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
---|
4211 | echo "-hidden">> $lib.exp~ |
---|
4212 | $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~ |
---|
4213 | $rm $lib.exp' |
---|
4214 | |
---|
4215 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
---|
4216 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
4217 | |
---|
4218 | # Commands to make compiler produce verbose output that lists |
---|
4219 | # what "hidden" libraries, object files and flags are used when |
---|
4220 | # linking a shared library. |
---|
4221 | # |
---|
4222 | # There doesn't appear to be a way to prevent this compiler from |
---|
4223 | # explicitly linking system object files so we need to strip them |
---|
4224 | # from the output so that they don't get included in the library |
---|
4225 | # dependencies. |
---|
4226 | 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' |
---|
4227 | ;; |
---|
4228 | *) |
---|
4229 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
4230 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
---|
4231 | _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' |
---|
4232 | |
---|
4233 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
---|
4234 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
4235 | |
---|
4236 | # Commands to make compiler produce verbose output that lists |
---|
4237 | # what "hidden" libraries, object files and flags are used when |
---|
4238 | # linking a shared library. |
---|
4239 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
4240 | |
---|
4241 | else |
---|
4242 | # FIXME: insert proper C++ library support |
---|
4243 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4244 | fi |
---|
4245 | ;; |
---|
4246 | esac |
---|
4247 | ;; |
---|
4248 | psos*) |
---|
4249 | # FIXME: insert proper C++ library support |
---|
4250 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4251 | ;; |
---|
4252 | sco*) |
---|
4253 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
---|
4254 | case $cc_basename in |
---|
4255 | CC) |
---|
4256 | # FIXME: insert proper C++ library support |
---|
4257 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4258 | ;; |
---|
4259 | *) |
---|
4260 | # FIXME: insert proper C++ library support |
---|
4261 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4262 | ;; |
---|
4263 | esac |
---|
4264 | ;; |
---|
4265 | sunos4*) |
---|
4266 | case $cc_basename in |
---|
4267 | CC) |
---|
4268 | # Sun C++ 4.x |
---|
4269 | # FIXME: insert proper C++ library support |
---|
4270 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4271 | ;; |
---|
4272 | lcc) |
---|
4273 | # Lucid |
---|
4274 | # FIXME: insert proper C++ library support |
---|
4275 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4276 | ;; |
---|
4277 | *) |
---|
4278 | # FIXME: insert proper C++ library support |
---|
4279 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4280 | ;; |
---|
4281 | esac |
---|
4282 | ;; |
---|
4283 | solaris*) |
---|
4284 | case $cc_basename in |
---|
4285 | CC) |
---|
4286 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
4287 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
---|
4288 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
4289 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
4290 | $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' |
---|
4291 | |
---|
4292 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
---|
4293 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
4294 | case $host_os in |
---|
4295 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
4296 | *) |
---|
4297 | # The C++ compiler is used as linker so we must use $wl |
---|
4298 | # flag to pass the commands to the underlying system |
---|
4299 | # linker. |
---|
4300 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
4301 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
---|
4302 | ;; |
---|
4303 | esac |
---|
4304 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
---|
4305 | |
---|
4306 | # Commands to make compiler produce verbose output that lists |
---|
4307 | # what "hidden" libraries, object files and flags are used when |
---|
4308 | # linking a shared library. |
---|
4309 | # |
---|
4310 | # There doesn't appear to be a way to prevent this compiler from |
---|
4311 | # explicitly linking system object files so we need to strip them |
---|
4312 | # from the output so that they don't get included in the library |
---|
4313 | # dependencies. |
---|
4314 | 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' |
---|
4315 | |
---|
4316 | # Archives containing C++ object files must be created using |
---|
4317 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
---|
4318 | # necessary to make sure instantiated templates are included |
---|
4319 | # in the archive. |
---|
4320 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
---|
4321 | ;; |
---|
4322 | gcx) |
---|
4323 | # Green Hills C++ Compiler |
---|
4324 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
4325 | |
---|
4326 | # The C++ compiler must be used to create the archive. |
---|
4327 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
---|
4328 | ;; |
---|
4329 | *) |
---|
4330 | # GNU C++ compiler with Solaris linker |
---|
4331 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
4332 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
---|
4333 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
---|
4334 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
4335 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
4336 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
4337 | |
---|
4338 | # Commands to make compiler produce verbose output that lists |
---|
4339 | # what "hidden" libraries, object files and flags are used when |
---|
4340 | # linking a shared library. |
---|
4341 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
4342 | else |
---|
4343 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
---|
4344 | # platform. |
---|
4345 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
4346 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
4347 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
4348 | |
---|
4349 | # Commands to make compiler produce verbose output that lists |
---|
4350 | # what "hidden" libraries, object files and flags are used when |
---|
4351 | # linking a shared library. |
---|
4352 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
4353 | fi |
---|
4354 | |
---|
4355 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
---|
4356 | fi |
---|
4357 | ;; |
---|
4358 | esac |
---|
4359 | ;; |
---|
4360 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
---|
4361 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
---|
4362 | ;; |
---|
4363 | tandem*) |
---|
4364 | case $cc_basename in |
---|
4365 | NCC) |
---|
4366 | # NonStop-UX NCC 3.20 |
---|
4367 | # FIXME: insert proper C++ library support |
---|
4368 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4369 | ;; |
---|
4370 | *) |
---|
4371 | # FIXME: insert proper C++ library support |
---|
4372 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4373 | ;; |
---|
4374 | esac |
---|
4375 | ;; |
---|
4376 | vxworks*) |
---|
4377 | # FIXME: insert proper C++ library support |
---|
4378 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4379 | ;; |
---|
4380 | *) |
---|
4381 | # FIXME: insert proper C++ library support |
---|
4382 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
4383 | ;; |
---|
4384 | esac |
---|
4385 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
---|
4386 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
---|
4387 | |
---|
4388 | _LT_AC_TAGVAR(GCC, $1)="$GXX" |
---|
4389 | _LT_AC_TAGVAR(LD, $1)="$LD" |
---|
4390 | |
---|
4391 | AC_LIBTOOL_POSTDEP_PREDEP($1) |
---|
4392 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
---|
4393 | AC_LIBTOOL_PROG_CC_C_O($1) |
---|
4394 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
---|
4395 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
---|
4396 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
---|
4397 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
---|
4398 | AC_LIBTOOL_SYS_LIB_STRIP |
---|
4399 | AC_LIBTOOL_DLOPEN_SELF($1) |
---|
4400 | |
---|
4401 | AC_LIBTOOL_CONFIG($1) |
---|
4402 | |
---|
4403 | AC_LANG_POP |
---|
4404 | CC=$lt_save_CC |
---|
4405 | LDCXX=$LD |
---|
4406 | LD=$lt_save_LD |
---|
4407 | GCC=$lt_save_GCC |
---|
4408 | with_gnu_ldcxx=$with_gnu_ld |
---|
4409 | with_gnu_ld=$lt_save_with_gnu_ld |
---|
4410 | lt_cv_path_LDCXX=$lt_cv_path_LD |
---|
4411 | lt_cv_path_LD=$lt_save_path_LD |
---|
4412 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
---|
4413 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
---|
4414 | ])# AC_LIBTOOL_LANG_CXX_CONFIG |
---|
4415 | |
---|
4416 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
---|
4417 | # ------------------------ |
---|
4418 | # Figure out "hidden" library dependencies from verbose |
---|
4419 | # compiler output when linking a shared library. |
---|
4420 | # Parse the compiler output and extract the necessary |
---|
4421 | # objects, libraries and library flags. |
---|
4422 | AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ |
---|
4423 | dnl we can't use the lt_simple_compile_test_code here, |
---|
4424 | dnl because it contains code intended for an executable, |
---|
4425 | dnl not a library. It's possible we should let each |
---|
4426 | dnl tag define a new lt_????_link_test_code variable, |
---|
4427 | dnl but it's only used here... |
---|
4428 | ifelse([$1],[],[cat > conftest.$ac_ext <<EOF |
---|
4429 | int a; |
---|
4430 | void foo (void) { a = 0; } |
---|
4431 | EOF |
---|
4432 | ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF |
---|
4433 | class Foo |
---|
4434 | { |
---|
4435 | public: |
---|
4436 | Foo (void) { a = 0; } |
---|
4437 | private: |
---|
4438 | int a; |
---|
4439 | }; |
---|
4440 | EOF |
---|
4441 | ],[$1],[F77],[cat > conftest.$ac_ext <<EOF |
---|
4442 | subroutine foo |
---|
4443 | implicit none |
---|
4444 | integer*4 a |
---|
4445 | a=0 |
---|
4446 | return |
---|
4447 | end |
---|
4448 | EOF |
---|
4449 | ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF |
---|
4450 | public class foo { |
---|
4451 | private int a; |
---|
4452 | public void bar (void) { |
---|
4453 | a = 0; |
---|
4454 | } |
---|
4455 | }; |
---|
4456 | EOF |
---|
4457 | ]) |
---|
4458 | dnl Parse the compiler output and extract the necessary |
---|
4459 | dnl objects, libraries and library flags. |
---|
4460 | if AC_TRY_EVAL(ac_compile); then |
---|
4461 | # Parse the compiler output and extract the necessary |
---|
4462 | # objects, libraries and library flags. |
---|
4463 | |
---|
4464 | # Sentinel used to keep track of whether or not we are before |
---|
4465 | # the conftest object file. |
---|
4466 | pre_test_object_deps_done=no |
---|
4467 | |
---|
4468 | # The `*' in the case matches for architectures that use `case' in |
---|
4469 | # $output_verbose_cmd can trigger glob expansion during the loop |
---|
4470 | # eval without this substitution. |
---|
4471 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
---|
4472 | |
---|
4473 | for p in `eval $output_verbose_link_cmd`; do |
---|
4474 | case $p in |
---|
4475 | |
---|
4476 | -L* | -R* | -l*) |
---|
4477 | # Some compilers place space between "-{L,R}" and the path. |
---|
4478 | # Remove the space. |
---|
4479 | if test $p = "-L" \ |
---|
4480 | || test $p = "-R"; then |
---|
4481 | prev=$p |
---|
4482 | continue |
---|
4483 | else |
---|
4484 | prev= |
---|
4485 | fi |
---|
4486 | |
---|
4487 | if test "$pre_test_object_deps_done" = no; then |
---|
4488 | case $p in |
---|
4489 | -L* | -R*) |
---|
4490 | # Internal compiler library paths should come after those |
---|
4491 | # provided the user. The postdeps already come after the |
---|
4492 | # user supplied libs so there is no need to process them. |
---|
4493 | if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then |
---|
4494 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
---|
4495 | else |
---|
4496 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" |
---|
4497 | fi |
---|
4498 | ;; |
---|
4499 | # The "-l" case would never come before the object being |
---|
4500 | # linked, so don't bother handling this case. |
---|
4501 | esac |
---|
4502 | else |
---|
4503 | if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then |
---|
4504 | _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" |
---|
4505 | else |
---|
4506 | _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" |
---|
4507 | fi |
---|
4508 | fi |
---|
4509 | ;; |
---|
4510 | |
---|
4511 | *.$objext) |
---|
4512 | # This assumes that the test object file only shows up |
---|
4513 | # once in the compiler output. |
---|
4514 | if test "$p" = "conftest.$objext"; then |
---|
4515 | pre_test_object_deps_done=yes |
---|
4516 | continue |
---|
4517 | fi |
---|
4518 | |
---|
4519 | if test "$pre_test_object_deps_done" = no; then |
---|
4520 | if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then |
---|
4521 | _LT_AC_TAGVAR(predep_objects, $1)="$p" |
---|
4522 | else |
---|
4523 | _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" |
---|
4524 | fi |
---|
4525 | else |
---|
4526 | if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then |
---|
4527 | _LT_AC_TAGVAR(postdep_objects, $1)="$p" |
---|
4528 | else |
---|
4529 | _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" |
---|
4530 | fi |
---|
4531 | fi |
---|
4532 | ;; |
---|
4533 | |
---|
4534 | *) ;; # Ignore the rest. |
---|
4535 | |
---|
4536 | esac |
---|
4537 | done |
---|
4538 | |
---|
4539 | # Clean up. |
---|
4540 | rm -f a.out a.exe |
---|
4541 | else |
---|
4542 | echo "libtool.m4: error: problem compiling $1 test program" |
---|
4543 | fi |
---|
4544 | |
---|
4545 | $rm -f confest.$objext |
---|
4546 | |
---|
4547 | case " $_LT_AC_TAGVAR(postdeps, $1) " in |
---|
4548 | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
---|
4549 | esac |
---|
4550 | ])# AC_LIBTOOL_POSTDEP_PREDEP |
---|
4551 | |
---|
4552 | # AC_LIBTOOL_LANG_F77_CONFIG |
---|
4553 | # ------------------------ |
---|
4554 | # Ensure that the configuration vars for the C compiler are |
---|
4555 | # suitably defined. Those variables are subsequently used by |
---|
4556 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
---|
4557 | AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) |
---|
4558 | AC_DEFUN([_LT_AC_LANG_F77_CONFIG], |
---|
4559 | [AC_REQUIRE([AC_PROG_F77]) |
---|
4560 | AC_LANG_PUSH(Fortran 77) |
---|
4561 | |
---|
4562 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
---|
4563 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
---|
4564 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
---|
4565 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
---|
4566 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
---|
4567 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
---|
4568 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
---|
4569 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
---|
4570 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
---|
4571 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
---|
4572 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
---|
4573 | _LT_AC_TAGVAR(module_cmds, $1)= |
---|
4574 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
---|
4575 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
---|
4576 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
---|
4577 | _LT_AC_TAGVAR(no_undefined_flag, $1)= |
---|
4578 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
---|
4579 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
---|
4580 | |
---|
4581 | # Source file extension for f77 test sources. |
---|
4582 | ac_ext=f |
---|
4583 | |
---|
4584 | # Object file extension for compiled f77 test sources. |
---|
4585 | objext=o |
---|
4586 | _LT_AC_TAGVAR(objext, $1)=$objext |
---|
4587 | |
---|
4588 | # Code to be used in simple compile tests |
---|
4589 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
---|
4590 | |
---|
4591 | # Code to be used in simple link tests |
---|
4592 | lt_simple_link_test_code=" program t\n end\n" |
---|
4593 | |
---|
4594 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
4595 | _LT_AC_SYS_COMPILER |
---|
4596 | |
---|
4597 | # Allow CC to be a program name with arguments. |
---|
4598 | lt_save_CC="$CC" |
---|
4599 | CC=${F77-"f77"} |
---|
4600 | compiler=$CC |
---|
4601 | _LT_AC_TAGVAR(compiler, $1)=$CC |
---|
4602 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
---|
4603 | |
---|
4604 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
---|
4605 | AC_MSG_RESULT([$can_build_shared]) |
---|
4606 | |
---|
4607 | AC_MSG_CHECKING([whether to build shared libraries]) |
---|
4608 | test "$can_build_shared" = "no" && enable_shared=no |
---|
4609 | |
---|
4610 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
4611 | # are all built from PIC. |
---|
4612 | case "$host_os" in |
---|
4613 | aix3*) |
---|
4614 | test "$enable_shared" = yes && enable_static=no |
---|
4615 | if test -n "$RANLIB"; then |
---|
4616 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
4617 | postinstall_cmds='$RANLIB $lib' |
---|
4618 | fi |
---|
4619 | ;; |
---|
4620 | aix4* | aix5*) |
---|
4621 | test "$enable_shared" = yes && enable_static=no |
---|
4622 | ;; |
---|
4623 | esac |
---|
4624 | AC_MSG_RESULT([$enable_shared]) |
---|
4625 | |
---|
4626 | AC_MSG_CHECKING([whether to build static libraries]) |
---|
4627 | # Make sure either enable_shared or enable_static is yes. |
---|
4628 | test "$enable_shared" = yes || enable_static=yes |
---|
4629 | AC_MSG_RESULT([$enable_static]) |
---|
4630 | |
---|
4631 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
---|
4632 | |
---|
4633 | _LT_AC_TAGVAR(GCC, $1)="$G77" |
---|
4634 | _LT_AC_TAGVAR(LD, $1)="$LD" |
---|
4635 | |
---|
4636 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
---|
4637 | AC_LIBTOOL_PROG_CC_C_O($1) |
---|
4638 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
---|
4639 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
---|
4640 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
---|
4641 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
---|
4642 | AC_LIBTOOL_SYS_LIB_STRIP |
---|
4643 | |
---|
4644 | |
---|
4645 | AC_LIBTOOL_CONFIG($1) |
---|
4646 | |
---|
4647 | AC_LANG_POP |
---|
4648 | CC="$lt_save_CC" |
---|
4649 | ])# AC_LIBTOOL_LANG_F77_CONFIG |
---|
4650 | |
---|
4651 | |
---|
4652 | # AC_LIBTOOL_LANG_GCJ_CONFIG |
---|
4653 | # -------------------------- |
---|
4654 | # Ensure that the configuration vars for the C compiler are |
---|
4655 | # suitably defined. Those variables are subsequently used by |
---|
4656 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
---|
4657 | AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) |
---|
4658 | AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], |
---|
4659 | [AC_LANG_SAVE |
---|
4660 | |
---|
4661 | # Source file extension for Java test sources. |
---|
4662 | ac_ext=java |
---|
4663 | |
---|
4664 | # Object file extension for compiled Java test sources. |
---|
4665 | objext=o |
---|
4666 | _LT_AC_TAGVAR(objext, $1)=$objext |
---|
4667 | |
---|
4668 | # Code to be used in simple compile tests |
---|
4669 | lt_simple_compile_test_code="class foo {}\n" |
---|
4670 | |
---|
4671 | # Code to be used in simple link tests |
---|
4672 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
---|
4673 | |
---|
4674 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
4675 | _LT_AC_SYS_COMPILER |
---|
4676 | |
---|
4677 | # Allow CC to be a program name with arguments. |
---|
4678 | lt_save_CC="$CC" |
---|
4679 | CC=${GCJ-"gcj"} |
---|
4680 | compiler=$CC |
---|
4681 | _LT_AC_TAGVAR(compiler, $1)=$CC |
---|
4682 | |
---|
4683 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
---|
4684 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
---|
4685 | |
---|
4686 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
---|
4687 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
---|
4688 | AC_LIBTOOL_PROG_CC_C_O($1) |
---|
4689 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
---|
4690 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
---|
4691 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
---|
4692 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
---|
4693 | AC_LIBTOOL_SYS_LIB_STRIP |
---|
4694 | AC_LIBTOOL_DLOPEN_SELF($1) |
---|
4695 | |
---|
4696 | AC_LIBTOOL_CONFIG($1) |
---|
4697 | |
---|
4698 | AC_LANG_RESTORE |
---|
4699 | CC="$lt_save_CC" |
---|
4700 | ])# AC_LIBTOOL_LANG_GCJ_CONFIG |
---|
4701 | |
---|
4702 | |
---|
4703 | # AC_LIBTOOL_LANG_RC_CONFIG |
---|
4704 | # -------------------------- |
---|
4705 | # Ensure that the configuration vars for the Windows resource compiler are |
---|
4706 | # suitably defined. Those variables are subsequently used by |
---|
4707 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
---|
4708 | AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) |
---|
4709 | AC_DEFUN([_LT_AC_LANG_RC_CONFIG], |
---|
4710 | [AC_LANG_SAVE |
---|
4711 | |
---|
4712 | # Source file extension for RC test sources. |
---|
4713 | ac_ext=rc |
---|
4714 | |
---|
4715 | # Object file extension for compiled RC test sources. |
---|
4716 | objext=o |
---|
4717 | _LT_AC_TAGVAR(objext, $1)=$objext |
---|
4718 | |
---|
4719 | # Code to be used in simple compile tests |
---|
4720 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
---|
4721 | |
---|
4722 | # Code to be used in simple link tests |
---|
4723 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
---|
4724 | |
---|
4725 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
4726 | _LT_AC_SYS_COMPILER |
---|
4727 | |
---|
4728 | # Allow CC to be a program name with arguments. |
---|
4729 | lt_save_CC="$CC" |
---|
4730 | CC=${RC-"windres"} |
---|
4731 | compiler=$CC |
---|
4732 | _LT_AC_TAGVAR(compiler, $1)=$CC |
---|
4733 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
---|
4734 | |
---|
4735 | AC_LIBTOOL_CONFIG($1) |
---|
4736 | |
---|
4737 | AC_LANG_RESTORE |
---|
4738 | CC="$lt_save_CC" |
---|
4739 | ])# AC_LIBTOOL_LANG_RC_CONFIG |
---|
4740 | |
---|
4741 | |
---|
4742 | # AC_LIBTOOL_CONFIG([TAGNAME]) |
---|
4743 | # ---------------------------- |
---|
4744 | # If TAGNAME is not passed, then create an initial libtool script |
---|
4745 | # with a default configuration from the untagged config vars. Otherwise |
---|
4746 | # add code to config.status for appending the configuration named by |
---|
4747 | # TAGNAME from the matching tagged config vars. |
---|
4748 | AC_DEFUN([AC_LIBTOOL_CONFIG], |
---|
4749 | [# The else clause should only fire when bootstrapping the |
---|
4750 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
4751 | # with your package, and you will get complaints that there are |
---|
4752 | # no rules to generate ltmain.sh. |
---|
4753 | if test -f "$ltmain"; then |
---|
4754 | # See if we are running on zsh, and set the options which allow our commands through |
---|
4755 | # without removal of \ escapes. |
---|
4756 | if test -n "${ZSH_VERSION+set}" ; then |
---|
4757 | setopt NO_GLOB_SUBST |
---|
4758 | fi |
---|
4759 | # Now quote all the things that may contain metacharacters while being |
---|
4760 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
4761 | # variables and quote the copies for generation of the libtool script. |
---|
4762 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
4763 | SED SHELL STRIP \ |
---|
4764 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
4765 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
4766 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
4767 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
4768 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
4769 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
4770 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
4771 | _LT_AC_TAGVAR(compiler, $1) \ |
---|
4772 | _LT_AC_TAGVAR(CC, $1) \ |
---|
4773 | _LT_AC_TAGVAR(LD, $1) \ |
---|
4774 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ |
---|
4775 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ |
---|
4776 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ |
---|
4777 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ |
---|
4778 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ |
---|
4779 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ |
---|
4780 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ |
---|
4781 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ |
---|
4782 | _LT_AC_TAGVAR(old_archive_cmds, $1) \ |
---|
4783 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ |
---|
4784 | _LT_AC_TAGVAR(predep_objects, $1) \ |
---|
4785 | _LT_AC_TAGVAR(postdep_objects, $1) \ |
---|
4786 | _LT_AC_TAGVAR(predeps, $1) \ |
---|
4787 | _LT_AC_TAGVAR(postdeps, $1) \ |
---|
4788 | _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ |
---|
4789 | _LT_AC_TAGVAR(archive_cmds, $1) \ |
---|
4790 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ |
---|
4791 | _LT_AC_TAGVAR(postinstall_cmds, $1) \ |
---|
4792 | _LT_AC_TAGVAR(postuninstall_cmds, $1) \ |
---|
4793 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ |
---|
4794 | _LT_AC_TAGVAR(allow_undefined_flag, $1) \ |
---|
4795 | _LT_AC_TAGVAR(no_undefined_flag, $1) \ |
---|
4796 | _LT_AC_TAGVAR(export_symbols_cmds, $1) \ |
---|
4797 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ |
---|
4798 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ |
---|
4799 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ |
---|
4800 | _LT_AC_TAGVAR(hardcode_automatic, $1) \ |
---|
4801 | _LT_AC_TAGVAR(module_cmds, $1) \ |
---|
4802 | _LT_AC_TAGVAR(module_expsym_cmds, $1) \ |
---|
4803 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ |
---|
4804 | _LT_AC_TAGVAR(exclude_expsyms, $1) \ |
---|
4805 | _LT_AC_TAGVAR(include_expsyms, $1); do |
---|
4806 | |
---|
4807 | case $var in |
---|
4808 | _LT_AC_TAGVAR(old_archive_cmds, $1) | \ |
---|
4809 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ |
---|
4810 | _LT_AC_TAGVAR(archive_cmds, $1) | \ |
---|
4811 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
---|
4812 | _LT_AC_TAGVAR(module_cmds, $1) | \ |
---|
4813 | _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
---|
4814 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ |
---|
4815 | _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ |
---|
4816 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
4817 | postinstall_cmds | postuninstall_cmds | \ |
---|
4818 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
4819 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
4820 | # Double-quote double-evaled strings. |
---|
4821 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
4822 | ;; |
---|
4823 | *) |
---|
4824 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
4825 | ;; |
---|
4826 | esac |
---|
4827 | done |
---|
4828 | |
---|
4829 | case $lt_echo in |
---|
4830 | *'\[$]0 --fallback-echo"') |
---|
4831 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` |
---|
4832 | ;; |
---|
4833 | esac |
---|
4834 | |
---|
4835 | ifelse([$1], [], |
---|
4836 | [cfgfile="${ofile}T" |
---|
4837 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
---|
4838 | $rm -f "$cfgfile" |
---|
4839 | AC_MSG_NOTICE([creating $ofile])], |
---|
4840 | [cfgfile="$ofile"]) |
---|
4841 | |
---|
4842 | cat <<__EOF__ >> "$cfgfile" |
---|
4843 | ifelse([$1], [], |
---|
4844 | [#! $SHELL |
---|
4845 | |
---|
4846 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
---|
4847 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
---|
4848 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
---|
4849 | # |
---|
4850 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
---|
4851 | # Free Software Foundation, Inc. |
---|
4852 | # |
---|
4853 | # This file is part of GNU Libtool: |
---|
4854 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
---|
4855 | # |
---|
4856 | # This program is free software; you can redistribute it and/or modify |
---|
4857 | # it under the terms of the GNU General Public License as published by |
---|
4858 | # the Free Software Foundation; either version 2 of the License, or |
---|
4859 | # (at your option) any later version. |
---|
4860 | # |
---|
4861 | # This program is distributed in the hope that it will be useful, but |
---|
4862 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
4863 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
4864 | # General Public License for more details. |
---|
4865 | # |
---|
4866 | # You should have received a copy of the GNU General Public License |
---|
4867 | # along with this program; if not, write to the Free Software |
---|
4868 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
4869 | # |
---|
4870 | # As a special exception to the GNU General Public License, if you |
---|
4871 | # distribute this file as part of a program that contains a |
---|
4872 | # configuration script generated by Autoconf, you may include it under |
---|
4873 | # the same distribution terms that you use for the rest of that program. |
---|
4874 | |
---|
4875 | # A sed program that does not truncate output. |
---|
4876 | SED=$lt_SED |
---|
4877 | |
---|
4878 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
---|
4879 | Xsed="$SED -e s/^X//" |
---|
4880 | |
---|
4881 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
4882 | # if CDPATH is set. |
---|
4883 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
---|
4884 | |
---|
4885 | # The names of the tagged configurations supported by this script. |
---|
4886 | available_tags= |
---|
4887 | |
---|
4888 | # ### BEGIN LIBTOOL CONFIG], |
---|
4889 | [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) |
---|
4890 | |
---|
4891 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
4892 | |
---|
4893 | # Shell to use when invoking shell scripts. |
---|
4894 | SHELL=$lt_SHELL |
---|
4895 | |
---|
4896 | # Whether or not to build shared libraries. |
---|
4897 | build_libtool_libs=$enable_shared |
---|
4898 | |
---|
4899 | # Whether or not to build static libraries. |
---|
4900 | build_old_libs=$enable_static |
---|
4901 | |
---|
4902 | # Whether or not to add -lc for building shared libraries. |
---|
4903 | build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) |
---|
4904 | |
---|
4905 | # Whether or not to disallow shared libs when runtime libs are static |
---|
4906 | allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) |
---|
4907 | |
---|
4908 | # Whether or not to optimize for fast installation. |
---|
4909 | fast_install=$enable_fast_install |
---|
4910 | |
---|
4911 | # The host system. |
---|
4912 | host_alias=$host_alias |
---|
4913 | host=$host |
---|
4914 | |
---|
4915 | # An echo program that does not interpret backslashes. |
---|
4916 | echo=$lt_echo |
---|
4917 | |
---|
4918 | # The archiver. |
---|
4919 | AR=$lt_AR |
---|
4920 | AR_FLAGS=$lt_AR_FLAGS |
---|
4921 | |
---|
4922 | # A C compiler. |
---|
4923 | LTCC=$lt_LTCC |
---|
4924 | |
---|
4925 | # A language-specific compiler. |
---|
4926 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) |
---|
4927 | |
---|
4928 | # Is the compiler the GNU C compiler? |
---|
4929 | with_gcc=$_LT_AC_TAGVAR(GCC, $1) |
---|
4930 | |
---|
4931 | # An ERE matcher. |
---|
4932 | EGREP=$lt_EGREP |
---|
4933 | |
---|
4934 | # The linker used to build libraries. |
---|
4935 | LD=$lt_[]_LT_AC_TAGVAR(LD, $1) |
---|
4936 | |
---|
4937 | # Whether we need hard or soft links. |
---|
4938 | LN_S=$lt_LN_S |
---|
4939 | |
---|
4940 | # A BSD-compatible nm program. |
---|
4941 | NM=$lt_NM |
---|
4942 | |
---|
4943 | # A symbol stripping program |
---|
4944 | STRIP=$lt_STRIP |
---|
4945 | |
---|
4946 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
4947 | MAGIC_CMD=$MAGIC_CMD |
---|
4948 | |
---|
4949 | # Used on cygwin: DLL creation program. |
---|
4950 | DLLTOOL="$DLLTOOL" |
---|
4951 | |
---|
4952 | # Used on cygwin: object dumper. |
---|
4953 | OBJDUMP="$OBJDUMP" |
---|
4954 | |
---|
4955 | # Used on cygwin: assembler. |
---|
4956 | AS="$AS" |
---|
4957 | |
---|
4958 | # The name of the directory that contains temporary libtool files. |
---|
4959 | objdir=$objdir |
---|
4960 | |
---|
4961 | # How to create reloadable object files. |
---|
4962 | reload_flag=$lt_reload_flag |
---|
4963 | reload_cmds=$lt_reload_cmds |
---|
4964 | |
---|
4965 | # How to pass a linker flag through the compiler. |
---|
4966 | wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
---|
4967 | |
---|
4968 | # Object file suffix (normally "o"). |
---|
4969 | objext="$ac_objext" |
---|
4970 | |
---|
4971 | # Old archive suffix (normally "a"). |
---|
4972 | libext="$libext" |
---|
4973 | |
---|
4974 | # Shared library suffix (normally ".so"). |
---|
4975 | shrext_cmds='$shrext_cmds' |
---|
4976 | |
---|
4977 | # Executable file suffix (normally ""). |
---|
4978 | exeext="$exeext" |
---|
4979 | |
---|
4980 | # Additional compiler flags for building library objects. |
---|
4981 | pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) |
---|
4982 | pic_mode=$pic_mode |
---|
4983 | |
---|
4984 | # What is the maximum length of a command? |
---|
4985 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
4986 | |
---|
4987 | # Does compiler simultaneously support -c and -o options? |
---|
4988 | compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) |
---|
4989 | |
---|
4990 | # Must we lock files when doing compilation ? |
---|
4991 | need_locks=$lt_need_locks |
---|
4992 | |
---|
4993 | # Do we need the lib prefix for modules? |
---|
4994 | need_lib_prefix=$need_lib_prefix |
---|
4995 | |
---|
4996 | # Do we need a version for libraries? |
---|
4997 | need_version=$need_version |
---|
4998 | |
---|
4999 | # Whether dlopen is supported. |
---|
5000 | dlopen_support=$enable_dlopen |
---|
5001 | |
---|
5002 | # Whether dlopen of programs is supported. |
---|
5003 | dlopen_self=$enable_dlopen_self |
---|
5004 | |
---|
5005 | # Whether dlopen of statically linked programs is supported. |
---|
5006 | dlopen_self_static=$enable_dlopen_self_static |
---|
5007 | |
---|
5008 | # Compiler flag to prevent dynamic linking. |
---|
5009 | link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) |
---|
5010 | |
---|
5011 | # Compiler flag to turn off builtin functions. |
---|
5012 | no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) |
---|
5013 | |
---|
5014 | # Compiler flag to allow reflexive dlopens. |
---|
5015 | export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) |
---|
5016 | |
---|
5017 | # Compiler flag to generate shared objects directly from archives. |
---|
5018 | whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) |
---|
5019 | |
---|
5020 | # Compiler flag to generate thread-safe objects. |
---|
5021 | thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) |
---|
5022 | |
---|
5023 | # Library versioning type. |
---|
5024 | version_type=$version_type |
---|
5025 | |
---|
5026 | # Format of library name prefix. |
---|
5027 | libname_spec=$lt_libname_spec |
---|
5028 | |
---|
5029 | # List of archive names. First name is the real one, the rest are links. |
---|
5030 | # The last name is the one that the linker finds with -lNAME. |
---|
5031 | library_names_spec=$lt_library_names_spec |
---|
5032 | |
---|
5033 | # The coded name of the library, if different from the real name. |
---|
5034 | soname_spec=$lt_soname_spec |
---|
5035 | |
---|
5036 | # Commands used to build and install an old-style archive. |
---|
5037 | RANLIB=$lt_RANLIB |
---|
5038 | old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) |
---|
5039 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
5040 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
5041 | |
---|
5042 | # Create an old-style archive from a shared archive. |
---|
5043 | old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) |
---|
5044 | |
---|
5045 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
5046 | old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) |
---|
5047 | |
---|
5048 | # Commands used to build and install a shared archive. |
---|
5049 | archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) |
---|
5050 | archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) |
---|
5051 | postinstall_cmds=$lt_postinstall_cmds |
---|
5052 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
5053 | |
---|
5054 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
5055 | module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) |
---|
5056 | module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) |
---|
5057 | |
---|
5058 | # Commands to strip libraries. |
---|
5059 | old_striplib=$lt_old_striplib |
---|
5060 | striplib=$lt_striplib |
---|
5061 | |
---|
5062 | # Dependencies to place before the objects being linked to create a |
---|
5063 | # shared library. |
---|
5064 | predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) |
---|
5065 | |
---|
5066 | # Dependencies to place after the objects being linked to create a |
---|
5067 | # shared library. |
---|
5068 | postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) |
---|
5069 | |
---|
5070 | # Dependencies to place before the objects being linked to create a |
---|
5071 | # shared library. |
---|
5072 | predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) |
---|
5073 | |
---|
5074 | # Dependencies to place after the objects being linked to create a |
---|
5075 | # shared library. |
---|
5076 | postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) |
---|
5077 | |
---|
5078 | # The library search path used internally by the compiler when linking |
---|
5079 | # a shared library. |
---|
5080 | compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) |
---|
5081 | |
---|
5082 | # Method to check whether dependent libraries are shared objects. |
---|
5083 | deplibs_check_method=$lt_deplibs_check_method |
---|
5084 | |
---|
5085 | # Command to use when deplibs_check_method == file_magic. |
---|
5086 | file_magic_cmd=$lt_file_magic_cmd |
---|
5087 | |
---|
5088 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
5089 | allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) |
---|
5090 | |
---|
5091 | # Flag that forces no undefined symbols. |
---|
5092 | no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) |
---|
5093 | |
---|
5094 | # Commands used to finish a libtool library installation in a directory. |
---|
5095 | finish_cmds=$lt_finish_cmds |
---|
5096 | |
---|
5097 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
5098 | finish_eval=$lt_finish_eval |
---|
5099 | |
---|
5100 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
5101 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
5102 | |
---|
5103 | # Transform the output of nm in a proper C declaration |
---|
5104 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
5105 | |
---|
5106 | # Transform the output of nm in a C name address pair |
---|
5107 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
5108 | |
---|
5109 | # This is the shared library runtime path variable. |
---|
5110 | runpath_var=$runpath_var |
---|
5111 | |
---|
5112 | # This is the shared library path variable. |
---|
5113 | shlibpath_var=$shlibpath_var |
---|
5114 | |
---|
5115 | # Is shlibpath searched before the hard-coded library search path? |
---|
5116 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
5117 | |
---|
5118 | # How to hardcode a shared library path into an executable. |
---|
5119 | hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) |
---|
5120 | |
---|
5121 | # Whether we should hardcode library paths into libraries. |
---|
5122 | hardcode_into_libs=$hardcode_into_libs |
---|
5123 | |
---|
5124 | # Flag to hardcode \$libdir into a binary during linking. |
---|
5125 | # This must work even if \$libdir does not exist. |
---|
5126 | hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) |
---|
5127 | |
---|
5128 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
5129 | # a binary during linking. This must work even if \$libdir does |
---|
5130 | # not exist. |
---|
5131 | hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) |
---|
5132 | |
---|
5133 | # Whether we need a single -rpath flag with a separated argument. |
---|
5134 | hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) |
---|
5135 | |
---|
5136 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
5137 | # resulting binary. |
---|
5138 | hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) |
---|
5139 | |
---|
5140 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
5141 | # resulting binary. |
---|
5142 | hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) |
---|
5143 | |
---|
5144 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
5145 | # the resulting binary. |
---|
5146 | hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) |
---|
5147 | |
---|
5148 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
5149 | # and all subsequent libraries and executables linked against it. |
---|
5150 | hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) |
---|
5151 | |
---|
5152 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
5153 | # restored at relink time. |
---|
5154 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
5155 | |
---|
5156 | # Whether libtool must link a program against all its dependency libraries. |
---|
5157 | link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) |
---|
5158 | |
---|
5159 | # Compile-time system search path for libraries |
---|
5160 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
5161 | |
---|
5162 | # Run-time system search path for libraries |
---|
5163 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
5164 | |
---|
5165 | # Fix the shell variable \$srcfile for the compiler. |
---|
5166 | fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" |
---|
5167 | |
---|
5168 | # Set to yes if exported symbols are required. |
---|
5169 | always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) |
---|
5170 | |
---|
5171 | # The commands to list exported symbols. |
---|
5172 | export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) |
---|
5173 | |
---|
5174 | # The commands to extract the exported symbol list from a shared archive. |
---|
5175 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
5176 | |
---|
5177 | # Symbols that should not be listed in the preloaded symbols. |
---|
5178 | exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) |
---|
5179 | |
---|
5180 | # Symbols that must always be exported. |
---|
5181 | include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) |
---|
5182 | |
---|
5183 | ifelse([$1],[], |
---|
5184 | [# ### END LIBTOOL CONFIG], |
---|
5185 | [# ### END LIBTOOL TAG CONFIG: $tagname]) |
---|
5186 | |
---|
5187 | __EOF__ |
---|
5188 | |
---|
5189 | ifelse([$1],[], [ |
---|
5190 | case $host_os in |
---|
5191 | aix3*) |
---|
5192 | cat <<\EOF >> "$cfgfile" |
---|
5193 | |
---|
5194 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
5195 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
5196 | # vanish in a puff of smoke. |
---|
5197 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
5198 | COLLECT_NAMES= |
---|
5199 | export COLLECT_NAMES |
---|
5200 | fi |
---|
5201 | EOF |
---|
5202 | ;; |
---|
5203 | esac |
---|
5204 | |
---|
5205 | # We use sed instead of cat because bash on DJGPP gets confused if |
---|
5206 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
---|
5207 | # text mode, it properly converts lines to CR/LF. This bash problem |
---|
5208 | # is reportedly fixed, but why not run on old versions too? |
---|
5209 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
---|
5210 | |
---|
5211 | mv -f "$cfgfile" "$ofile" || \ |
---|
5212 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
---|
5213 | chmod +x "$ofile" |
---|
5214 | ]) |
---|
5215 | else |
---|
5216 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
5217 | # `config.status --recheck' to rerun these tests and create the |
---|
5218 | # libtool script then. |
---|
5219 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
5220 | if test -f "$ltmain_in"; then |
---|
5221 | test -f Makefile && make "$ltmain" |
---|
5222 | fi |
---|
5223 | fi |
---|
5224 | ])# AC_LIBTOOL_CONFIG |
---|
5225 | |
---|
5226 | |
---|
5227 | # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) |
---|
5228 | # ------------------------------------------- |
---|
5229 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], |
---|
5230 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
---|
5231 | |
---|
5232 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
---|
5233 | |
---|
5234 | if test "$GCC" = yes; then |
---|
5235 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
---|
5236 | |
---|
5237 | AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
---|
5238 | lt_cv_prog_compiler_rtti_exceptions, |
---|
5239 | [-fno-rtti -fno-exceptions], [], |
---|
5240 | [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
---|
5241 | fi |
---|
5242 | ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI |
---|
5243 | |
---|
5244 | |
---|
5245 | # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
---|
5246 | # --------------------------------- |
---|
5247 | AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], |
---|
5248 | [AC_REQUIRE([AC_CANONICAL_HOST]) |
---|
5249 | AC_REQUIRE([AC_PROG_NM]) |
---|
5250 | AC_REQUIRE([AC_OBJEXT]) |
---|
5251 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
5252 | AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
---|
5253 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
---|
5254 | [ |
---|
5255 | # These are sane defaults that work on at least a few old systems. |
---|
5256 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
5257 | |
---|
5258 | # Character class describing NM global symbol codes. |
---|
5259 | symcode='[[BCDEGRST]]' |
---|
5260 | |
---|
5261 | # Regexp to match symbols that can be accessed directly from C. |
---|
5262 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
---|
5263 | |
---|
5264 | # Transform the above into a raw symbol and a C symbol. |
---|
5265 | symxfrm='\1 \2\3 \3' |
---|
5266 | |
---|
5267 | # Transform an extracted symbol line into a proper C declaration |
---|
5268 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
---|
5269 | |
---|
5270 | # Transform an extracted symbol line into symbol name and symbol address |
---|
5271 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
---|
5272 | |
---|
5273 | # Define system-specific variables. |
---|
5274 | case $host_os in |
---|
5275 | aix*) |
---|
5276 | symcode='[[BCDT]]' |
---|
5277 | ;; |
---|
5278 | cygwin* | mingw* | pw32*) |
---|
5279 | symcode='[[ABCDGISTW]]' |
---|
5280 | ;; |
---|
5281 | hpux*) # Its linker distinguishes data from code symbols |
---|
5282 | if test "$host_cpu" = ia64; then |
---|
5283 | symcode='[[ABCDEGRST]]' |
---|
5284 | fi |
---|
5285 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
5286 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
---|
5287 | ;; |
---|
5288 | irix* | nonstopux*) |
---|
5289 | symcode='[[BCDEGRST]]' |
---|
5290 | ;; |
---|
5291 | osf*) |
---|
5292 | symcode='[[BCDEGQRST]]' |
---|
5293 | ;; |
---|
5294 | solaris* | sysv5*) |
---|
5295 | symcode='[[BDRT]]' |
---|
5296 | ;; |
---|
5297 | sysv4) |
---|
5298 | symcode='[[DFNSTU]]' |
---|
5299 | ;; |
---|
5300 | esac |
---|
5301 | |
---|
5302 | # Handle CRLF in mingw tool chain |
---|
5303 | opt_cr= |
---|
5304 | case $build_os in |
---|
5305 | mingw*) |
---|
5306 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
5307 | ;; |
---|
5308 | esac |
---|
5309 | |
---|
5310 | # If we're using GNU nm, then use its standard symbol codes. |
---|
5311 | case `$NM -V 2>&1` in |
---|
5312 | *GNU* | *'with BFD'*) |
---|
5313 | symcode='[[ABCDGIRSTW]]' ;; |
---|
5314 | esac |
---|
5315 | |
---|
5316 | # Try without a prefix undercore, then with it. |
---|
5317 | for ac_symprfx in "" "_"; do |
---|
5318 | |
---|
5319 | # Write the raw and C identifiers. |
---|
5320 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
---|
5321 | |
---|
5322 | # Check to see that the pipe works correctly. |
---|
5323 | pipe_works=no |
---|
5324 | |
---|
5325 | rm -f conftest* |
---|
5326 | cat > conftest.$ac_ext <<EOF |
---|
5327 | #ifdef __cplusplus |
---|
5328 | extern "C" { |
---|
5329 | #endif |
---|
5330 | char nm_test_var; |
---|
5331 | void nm_test_func(){} |
---|
5332 | #ifdef __cplusplus |
---|
5333 | } |
---|
5334 | #endif |
---|
5335 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
5336 | EOF |
---|
5337 | |
---|
5338 | if AC_TRY_EVAL(ac_compile); then |
---|
5339 | # Now try to grab the symbols. |
---|
5340 | nlist=conftest.nm |
---|
5341 | if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then |
---|
5342 | # Try sorting and uniquifying the output. |
---|
5343 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
5344 | mv -f "$nlist"T "$nlist" |
---|
5345 | else |
---|
5346 | rm -f "$nlist"T |
---|
5347 | fi |
---|
5348 | |
---|
5349 | # Make sure that we snagged all the symbols we need. |
---|
5350 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
5351 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
5352 | cat <<EOF > conftest.$ac_ext |
---|
5353 | #ifdef __cplusplus |
---|
5354 | extern "C" { |
---|
5355 | #endif |
---|
5356 | |
---|
5357 | EOF |
---|
5358 | # Now generate the symbol file. |
---|
5359 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
---|
5360 | |
---|
5361 | cat <<EOF >> conftest.$ac_ext |
---|
5362 | #if defined (__STDC__) && __STDC__ |
---|
5363 | # define lt_ptr_t void * |
---|
5364 | #else |
---|
5365 | # define lt_ptr_t char * |
---|
5366 | # define const |
---|
5367 | #endif |
---|
5368 | |
---|
5369 | /* The mapping between symbol names and symbols. */ |
---|
5370 | const struct { |
---|
5371 | const char *name; |
---|
5372 | lt_ptr_t address; |
---|
5373 | } |
---|
5374 | lt_preloaded_symbols[[]] = |
---|
5375 | { |
---|
5376 | EOF |
---|
5377 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
---|
5378 | cat <<\EOF >> conftest.$ac_ext |
---|
5379 | {0, (lt_ptr_t) 0} |
---|
5380 | }; |
---|
5381 | |
---|
5382 | #ifdef __cplusplus |
---|
5383 | } |
---|
5384 | #endif |
---|
5385 | EOF |
---|
5386 | # Now try linking the two files. |
---|
5387 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
5388 | lt_save_LIBS="$LIBS" |
---|
5389 | lt_save_CFLAGS="$CFLAGS" |
---|
5390 | LIBS="conftstm.$ac_objext" |
---|
5391 | CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
---|
5392 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
---|
5393 | pipe_works=yes |
---|
5394 | fi |
---|
5395 | LIBS="$lt_save_LIBS" |
---|
5396 | CFLAGS="$lt_save_CFLAGS" |
---|
5397 | else |
---|
5398 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
---|
5399 | fi |
---|
5400 | else |
---|
5401 | echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
---|
5402 | fi |
---|
5403 | else |
---|
5404 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD |
---|
5405 | fi |
---|
5406 | else |
---|
5407 | echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD |
---|
5408 | cat conftest.$ac_ext >&5 |
---|
5409 | fi |
---|
5410 | rm -f conftest* conftst* |
---|
5411 | |
---|
5412 | # Do not use the global_symbol_pipe unless it works. |
---|
5413 | if test "$pipe_works" = yes; then |
---|
5414 | break |
---|
5415 | else |
---|
5416 | lt_cv_sys_global_symbol_pipe= |
---|
5417 | fi |
---|
5418 | done |
---|
5419 | ]) |
---|
5420 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
5421 | lt_cv_sys_global_symbol_to_cdecl= |
---|
5422 | fi |
---|
5423 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
5424 | AC_MSG_RESULT(failed) |
---|
5425 | else |
---|
5426 | AC_MSG_RESULT(ok) |
---|
5427 | fi |
---|
5428 | ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
---|
5429 | |
---|
5430 | |
---|
5431 | # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) |
---|
5432 | # --------------------------------------- |
---|
5433 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], |
---|
5434 | [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= |
---|
5435 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
---|
5436 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= |
---|
5437 | |
---|
5438 | AC_MSG_CHECKING([for $compiler option to produce PIC]) |
---|
5439 | ifelse([$1],[CXX],[ |
---|
5440 | # C++ specific cases for pic, static, wl, etc. |
---|
5441 | if test "$GXX" = yes; then |
---|
5442 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5443 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
---|
5444 | |
---|
5445 | case $host_os in |
---|
5446 | aix*) |
---|
5447 | # All AIX code is PIC. |
---|
5448 | if test "$host_cpu" = ia64; then |
---|
5449 | # AIX 5 now supports IA64 processor |
---|
5450 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
---|
5451 | fi |
---|
5452 | ;; |
---|
5453 | amigaos*) |
---|
5454 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
5455 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
5456 | # like `-m68040'. |
---|
5457 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
---|
5458 | ;; |
---|
5459 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
5460 | # PIC is the default for these OSes. |
---|
5461 | ;; |
---|
5462 | mingw* | os2* | pw32*) |
---|
5463 | # This hack is so that the source file can tell whether it is being |
---|
5464 | # built for inclusion in a dll (and should export symbols for example). |
---|
5465 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
---|
5466 | ;; |
---|
5467 | darwin* | rhapsody*) |
---|
5468 | # PIC is the default on this platform |
---|
5469 | # Common symbols not allowed in MH_DYLIB files |
---|
5470 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
---|
5471 | ;; |
---|
5472 | *djgpp*) |
---|
5473 | # DJGPP does not support shared libraries at all |
---|
5474 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
---|
5475 | ;; |
---|
5476 | sysv4*MP*) |
---|
5477 | if test -d /usr/nec; then |
---|
5478 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
---|
5479 | fi |
---|
5480 | ;; |
---|
5481 | hpux*) |
---|
5482 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
5483 | # not for PA HP-UX. |
---|
5484 | case "$host_cpu" in |
---|
5485 | hppa*64*|ia64*) |
---|
5486 | ;; |
---|
5487 | *) |
---|
5488 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
---|
5489 | ;; |
---|
5490 | esac |
---|
5491 | ;; |
---|
5492 | *) |
---|
5493 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
---|
5494 | ;; |
---|
5495 | esac |
---|
5496 | else |
---|
5497 | case $host_os in |
---|
5498 | aix4* | aix5*) |
---|
5499 | # All AIX code is PIC. |
---|
5500 | if test "$host_cpu" = ia64; then |
---|
5501 | # AIX 5 now supports IA64 processor |
---|
5502 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
---|
5503 | else |
---|
5504 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
---|
5505 | fi |
---|
5506 | ;; |
---|
5507 | chorus*) |
---|
5508 | case $cc_basename in |
---|
5509 | cxch68) |
---|
5510 | # Green Hills C++ Compiler |
---|
5511 | # _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" |
---|
5512 | ;; |
---|
5513 | esac |
---|
5514 | ;; |
---|
5515 | dgux*) |
---|
5516 | case $cc_basename in |
---|
5517 | ec++) |
---|
5518 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
---|
5519 | ;; |
---|
5520 | ghcx) |
---|
5521 | # Green Hills C++ Compiler |
---|
5522 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
---|
5523 | ;; |
---|
5524 | *) |
---|
5525 | ;; |
---|
5526 | esac |
---|
5527 | ;; |
---|
5528 | freebsd* | kfreebsd*-gnu) |
---|
5529 | # FreeBSD uses GNU C++ |
---|
5530 | ;; |
---|
5531 | hpux9* | hpux10* | hpux11*) |
---|
5532 | case $cc_basename in |
---|
5533 | CC) |
---|
5534 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5535 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
---|
5536 | if test "$host_cpu" != ia64; then |
---|
5537 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
---|
5538 | fi |
---|
5539 | ;; |
---|
5540 | aCC) |
---|
5541 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5542 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
---|
5543 | case "$host_cpu" in |
---|
5544 | hppa*64*|ia64*) |
---|
5545 | # +Z the default |
---|
5546 | ;; |
---|
5547 | *) |
---|
5548 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
---|
5549 | ;; |
---|
5550 | esac |
---|
5551 | ;; |
---|
5552 | *) |
---|
5553 | ;; |
---|
5554 | esac |
---|
5555 | ;; |
---|
5556 | irix5* | irix6* | nonstopux*) |
---|
5557 | case $cc_basename in |
---|
5558 | CC) |
---|
5559 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5560 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
---|
5561 | # CC pic flag -KPIC is the default. |
---|
5562 | ;; |
---|
5563 | *) |
---|
5564 | ;; |
---|
5565 | esac |
---|
5566 | ;; |
---|
5567 | linux*) |
---|
5568 | case $cc_basename in |
---|
5569 | KCC) |
---|
5570 | # KAI C++ Compiler |
---|
5571 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
---|
5572 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
---|
5573 | ;; |
---|
5574 | icpc) |
---|
5575 | # Intel C++ |
---|
5576 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5577 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
---|
5578 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
---|
5579 | ;; |
---|
5580 | cxx) |
---|
5581 | # Compaq C++ |
---|
5582 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
5583 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
5584 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
---|
5585 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
---|
5586 | ;; |
---|
5587 | *) |
---|
5588 | ;; |
---|
5589 | esac |
---|
5590 | ;; |
---|
5591 | lynxos*) |
---|
5592 | ;; |
---|
5593 | m88k*) |
---|
5594 | ;; |
---|
5595 | mvs*) |
---|
5596 | case $cc_basename in |
---|
5597 | cxx) |
---|
5598 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
---|
5599 | ;; |
---|
5600 | *) |
---|
5601 | ;; |
---|
5602 | esac |
---|
5603 | ;; |
---|
5604 | netbsd*) |
---|
5605 | ;; |
---|
5606 | osf3* | osf4* | osf5*) |
---|
5607 | case $cc_basename in |
---|
5608 | KCC) |
---|
5609 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
---|
5610 | ;; |
---|
5611 | RCC) |
---|
5612 | # Rational C++ 2.4.1 |
---|
5613 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
---|
5614 | ;; |
---|
5615 | cxx) |
---|
5616 | # Digital/Compaq C++ |
---|
5617 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5618 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
5619 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
5620 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
---|
5621 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
---|
5622 | ;; |
---|
5623 | *) |
---|
5624 | ;; |
---|
5625 | esac |
---|
5626 | ;; |
---|
5627 | psos*) |
---|
5628 | ;; |
---|
5629 | sco*) |
---|
5630 | case $cc_basename in |
---|
5631 | CC) |
---|
5632 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
---|
5633 | ;; |
---|
5634 | *) |
---|
5635 | ;; |
---|
5636 | esac |
---|
5637 | ;; |
---|
5638 | solaris*) |
---|
5639 | case $cc_basename in |
---|
5640 | CC) |
---|
5641 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
5642 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
---|
5643 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
---|
5644 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
---|
5645 | ;; |
---|
5646 | gcx) |
---|
5647 | # Green Hills C++ Compiler |
---|
5648 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
---|
5649 | ;; |
---|
5650 | *) |
---|
5651 | ;; |
---|
5652 | esac |
---|
5653 | ;; |
---|
5654 | sunos4*) |
---|
5655 | case $cc_basename in |
---|
5656 | CC) |
---|
5657 | # Sun C++ 4.x |
---|
5658 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
---|
5659 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
---|
5660 | ;; |
---|
5661 | lcc) |
---|
5662 | # Lucid |
---|
5663 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
---|
5664 | ;; |
---|
5665 | *) |
---|
5666 | ;; |
---|
5667 | esac |
---|
5668 | ;; |
---|
5669 | tandem*) |
---|
5670 | case $cc_basename in |
---|
5671 | NCC) |
---|
5672 | # NonStop-UX NCC 3.20 |
---|
5673 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
---|
5674 | ;; |
---|
5675 | *) |
---|
5676 | ;; |
---|
5677 | esac |
---|
5678 | ;; |
---|
5679 | unixware*) |
---|
5680 | ;; |
---|
5681 | vxworks*) |
---|
5682 | ;; |
---|
5683 | *) |
---|
5684 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
---|
5685 | ;; |
---|
5686 | esac |
---|
5687 | fi |
---|
5688 | ], |
---|
5689 | [ |
---|
5690 | if test "$GCC" = yes; then |
---|
5691 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5692 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
---|
5693 | |
---|
5694 | case $host_os in |
---|
5695 | aix*) |
---|
5696 | # All AIX code is PIC. |
---|
5697 | if test "$host_cpu" = ia64; then |
---|
5698 | # AIX 5 now supports IA64 processor |
---|
5699 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
---|
5700 | fi |
---|
5701 | ;; |
---|
5702 | |
---|
5703 | amigaos*) |
---|
5704 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
5705 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
5706 | # like `-m68040'. |
---|
5707 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
---|
5708 | ;; |
---|
5709 | |
---|
5710 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
5711 | # PIC is the default for these OSes. |
---|
5712 | ;; |
---|
5713 | |
---|
5714 | mingw* | pw32* | os2*) |
---|
5715 | # This hack is so that the source file can tell whether it is being |
---|
5716 | # built for inclusion in a dll (and should export symbols for example). |
---|
5717 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
---|
5718 | ;; |
---|
5719 | |
---|
5720 | darwin* | rhapsody*) |
---|
5721 | # PIC is the default on this platform |
---|
5722 | # Common symbols not allowed in MH_DYLIB files |
---|
5723 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
---|
5724 | ;; |
---|
5725 | |
---|
5726 | msdosdjgpp*) |
---|
5727 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
5728 | # on systems that don't support them. |
---|
5729 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
---|
5730 | enable_shared=no |
---|
5731 | ;; |
---|
5732 | |
---|
5733 | sysv4*MP*) |
---|
5734 | if test -d /usr/nec; then |
---|
5735 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
---|
5736 | fi |
---|
5737 | ;; |
---|
5738 | |
---|
5739 | hpux*) |
---|
5740 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
5741 | # not for PA HP-UX. |
---|
5742 | case "$host_cpu" in |
---|
5743 | hppa*64*|ia64*) |
---|
5744 | # +Z the default |
---|
5745 | ;; |
---|
5746 | *) |
---|
5747 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
---|
5748 | ;; |
---|
5749 | esac |
---|
5750 | ;; |
---|
5751 | |
---|
5752 | *) |
---|
5753 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
---|
5754 | ;; |
---|
5755 | esac |
---|
5756 | else |
---|
5757 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
5758 | case $host_os in |
---|
5759 | aix*) |
---|
5760 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5761 | if test "$host_cpu" = ia64; then |
---|
5762 | # AIX 5 now supports IA64 processor |
---|
5763 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
---|
5764 | else |
---|
5765 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
---|
5766 | fi |
---|
5767 | ;; |
---|
5768 | |
---|
5769 | mingw* | pw32* | os2*) |
---|
5770 | # This hack is so that the source file can tell whether it is being |
---|
5771 | # built for inclusion in a dll (and should export symbols for example). |
---|
5772 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
---|
5773 | ;; |
---|
5774 | |
---|
5775 | hpux9* | hpux10* | hpux11*) |
---|
5776 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5777 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
5778 | # not for PA HP-UX. |
---|
5779 | case "$host_cpu" in |
---|
5780 | hppa*64*|ia64*) |
---|
5781 | # +Z the default |
---|
5782 | ;; |
---|
5783 | *) |
---|
5784 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
---|
5785 | ;; |
---|
5786 | esac |
---|
5787 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
5788 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
---|
5789 | ;; |
---|
5790 | |
---|
5791 | irix5* | irix6* | nonstopux*) |
---|
5792 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5793 | # PIC (with -KPIC) is the default. |
---|
5794 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
---|
5795 | ;; |
---|
5796 | |
---|
5797 | newsos6) |
---|
5798 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
---|
5799 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
---|
5800 | ;; |
---|
5801 | |
---|
5802 | linux*) |
---|
5803 | case $CC in |
---|
5804 | icc* | ecc*) |
---|
5805 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5806 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
---|
5807 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
---|
5808 | ;; |
---|
5809 | ccc*) |
---|
5810 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5811 | # All Alpha code is PIC. |
---|
5812 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
---|
5813 | ;; |
---|
5814 | esac |
---|
5815 | ;; |
---|
5816 | |
---|
5817 | osf3* | osf4* | osf5*) |
---|
5818 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5819 | # All OSF/1 code is PIC. |
---|
5820 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
---|
5821 | ;; |
---|
5822 | |
---|
5823 | sco3.2v5*) |
---|
5824 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' |
---|
5825 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' |
---|
5826 | ;; |
---|
5827 | |
---|
5828 | solaris*) |
---|
5829 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5830 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
---|
5831 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
---|
5832 | ;; |
---|
5833 | |
---|
5834 | sunos4*) |
---|
5835 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
---|
5836 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
---|
5837 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
---|
5838 | ;; |
---|
5839 | |
---|
5840 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
5841 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
---|
5842 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
---|
5843 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
---|
5844 | ;; |
---|
5845 | |
---|
5846 | sysv4*MP*) |
---|
5847 | if test -d /usr/nec ;then |
---|
5848 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
---|
5849 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
---|
5850 | fi |
---|
5851 | ;; |
---|
5852 | |
---|
5853 | uts4*) |
---|
5854 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
---|
5855 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
---|
5856 | ;; |
---|
5857 | |
---|
5858 | *) |
---|
5859 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
---|
5860 | ;; |
---|
5861 | esac |
---|
5862 | fi |
---|
5863 | ]) |
---|
5864 | AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) |
---|
5865 | |
---|
5866 | # |
---|
5867 | # Check to make sure the PIC flag actually works. |
---|
5868 | # |
---|
5869 | if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then |
---|
5870 | AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], |
---|
5871 | _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), |
---|
5872 | [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], |
---|
5873 | [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in |
---|
5874 | "" | " "*) ;; |
---|
5875 | *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; |
---|
5876 | esac], |
---|
5877 | [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
---|
5878 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
---|
5879 | fi |
---|
5880 | case "$host_os" in |
---|
5881 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
5882 | *djgpp*) |
---|
5883 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
---|
5884 | ;; |
---|
5885 | *) |
---|
5886 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" |
---|
5887 | ;; |
---|
5888 | esac |
---|
5889 | ]) |
---|
5890 | |
---|
5891 | |
---|
5892 | # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) |
---|
5893 | # ------------------------------------ |
---|
5894 | # See if the linker supports building shared libraries. |
---|
5895 | AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], |
---|
5896 | [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
---|
5897 | ifelse([$1],[CXX],[ |
---|
5898 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
5899 | case $host_os in |
---|
5900 | aix4* | aix5*) |
---|
5901 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
5902 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
5903 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
5904 | _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' |
---|
5905 | else |
---|
5906 | _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' |
---|
5907 | fi |
---|
5908 | ;; |
---|
5909 | pw32*) |
---|
5910 | _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
---|
5911 | ;; |
---|
5912 | cygwin* | mingw*) |
---|
5913 | _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' |
---|
5914 | ;; |
---|
5915 | *) |
---|
5916 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
5917 | ;; |
---|
5918 | esac |
---|
5919 | ],[ |
---|
5920 | runpath_var= |
---|
5921 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
---|
5922 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
---|
5923 | _LT_AC_TAGVAR(archive_cmds, $1)= |
---|
5924 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
---|
5925 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= |
---|
5926 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
---|
5927 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
---|
5928 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
---|
5929 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= |
---|
5930 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
---|
5931 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
---|
5932 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
---|
5933 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
---|
5934 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
---|
5935 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
---|
5936 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
---|
5937 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
---|
5938 | _LT_AC_TAGVAR(module_cmds, $1)= |
---|
5939 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
---|
5940 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
---|
5941 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
5942 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
5943 | # included in the symbol list |
---|
5944 | _LT_AC_TAGVAR(include_expsyms, $1)= |
---|
5945 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
5946 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
5947 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
5948 | # as well as any symbol that contains `d'. |
---|
5949 | _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" |
---|
5950 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
5951 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
5952 | # the symbol is explicitly referenced. Since portable code cannot |
---|
5953 | # rely on this symbol name, it's probably fine to never include it in |
---|
5954 | # preloaded symbol tables. |
---|
5955 | extract_expsyms_cmds= |
---|
5956 | |
---|
5957 | case $host_os in |
---|
5958 | cygwin* | mingw* | pw32*) |
---|
5959 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
5960 | # When not using gcc, we currently assume that we are using |
---|
5961 | # Microsoft Visual C++. |
---|
5962 | if test "$GCC" != yes; then |
---|
5963 | with_gnu_ld=no |
---|
5964 | fi |
---|
5965 | ;; |
---|
5966 | openbsd*) |
---|
5967 | with_gnu_ld=no |
---|
5968 | ;; |
---|
5969 | esac |
---|
5970 | |
---|
5971 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
---|
5972 | if test "$with_gnu_ld" = yes; then |
---|
5973 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
5974 | wlarc='${wl}' |
---|
5975 | |
---|
5976 | # See if GNU ld supports shared libraries. |
---|
5977 | case $host_os in |
---|
5978 | aix3* | aix4* | aix5*) |
---|
5979 | # On AIX/PPC, the GNU linker is very broken |
---|
5980 | if test "$host_cpu" != ia64; then |
---|
5981 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
5982 | cat <<EOF 1>&2 |
---|
5983 | |
---|
5984 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
5985 | *** to be unable to reliably create shared libraries on AIX. |
---|
5986 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
5987 | *** really care for shared libraries, you may want to modify your PATH |
---|
5988 | *** so that a non-GNU linker is found, and then restart. |
---|
5989 | |
---|
5990 | EOF |
---|
5991 | fi |
---|
5992 | ;; |
---|
5993 | |
---|
5994 | amigaos*) |
---|
5995 | _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)' |
---|
5996 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
---|
5997 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
---|
5998 | |
---|
5999 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
6000 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
6001 | # to version 4, is to share data among multiple programs linked |
---|
6002 | # with the same dynamic library. Since this doesn't match the |
---|
6003 | # behavior of shared libraries on other platforms, we can't use |
---|
6004 | # them. |
---|
6005 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
6006 | ;; |
---|
6007 | |
---|
6008 | beos*) |
---|
6009 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
6010 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
---|
6011 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
6012 | # support --undefined. This deserves some investigation. FIXME |
---|
6013 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6014 | else |
---|
6015 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
6016 | fi |
---|
6017 | ;; |
---|
6018 | |
---|
6019 | cygwin* | mingw* | pw32*) |
---|
6020 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
---|
6021 | # as there is no search path for DLLs. |
---|
6022 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
---|
6023 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
---|
6024 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
---|
6025 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
---|
6026 | _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' |
---|
6027 | |
---|
6028 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
6029 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
6030 | # If the export-symbols file already is a .def file (1st line |
---|
6031 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
6032 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
6033 | cp $export_symbols $output_objdir/$soname.def; |
---|
6034 | else |
---|
6035 | echo EXPORTS > $output_objdir/$soname.def; |
---|
6036 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
6037 | fi~ |
---|
6038 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
6039 | else |
---|
6040 | ld_shlibs=no |
---|
6041 | fi |
---|
6042 | ;; |
---|
6043 | |
---|
6044 | netbsd*) |
---|
6045 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
6046 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
6047 | wlarc= |
---|
6048 | else |
---|
6049 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6050 | _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' |
---|
6051 | fi |
---|
6052 | ;; |
---|
6053 | |
---|
6054 | solaris* | sysv5*) |
---|
6055 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
6056 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
6057 | cat <<EOF 1>&2 |
---|
6058 | |
---|
6059 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
6060 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
6061 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
6062 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
6063 | *** your PATH or compiler configuration so that the native linker is |
---|
6064 | *** used, and then restart. |
---|
6065 | |
---|
6066 | EOF |
---|
6067 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
6068 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6069 | _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' |
---|
6070 | else |
---|
6071 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
6072 | fi |
---|
6073 | ;; |
---|
6074 | |
---|
6075 | sunos4*) |
---|
6076 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
6077 | wlarc= |
---|
6078 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6079 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6080 | ;; |
---|
6081 | |
---|
6082 | linux*) |
---|
6083 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
6084 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6085 | _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds" |
---|
6086 | supports_anon_versioning=no |
---|
6087 | case `$LD -v 2>/dev/null` in |
---|
6088 | *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
6089 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
6090 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
6091 | *\ 2.11.*) ;; # other 2.11 versions |
---|
6092 | *) supports_anon_versioning=yes ;; |
---|
6093 | esac |
---|
6094 | if test $supports_anon_versioning = yes; then |
---|
6095 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
6096 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
6097 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
6098 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
6099 | else |
---|
6100 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" |
---|
6101 | fi |
---|
6102 | else |
---|
6103 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
6104 | fi |
---|
6105 | ;; |
---|
6106 | |
---|
6107 | *) |
---|
6108 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
6109 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6110 | _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' |
---|
6111 | else |
---|
6112 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
6113 | fi |
---|
6114 | ;; |
---|
6115 | esac |
---|
6116 | |
---|
6117 | if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then |
---|
6118 | runpath_var=LD_RUN_PATH |
---|
6119 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
---|
6120 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
---|
6121 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
6122 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
6123 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
6124 | else |
---|
6125 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
---|
6126 | fi |
---|
6127 | fi |
---|
6128 | else |
---|
6129 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
6130 | case $host_os in |
---|
6131 | aix3*) |
---|
6132 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
---|
6133 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
---|
6134 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
---|
6135 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
6136 | # are no directories specified by -L. |
---|
6137 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
---|
6138 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
6139 | # Neither direct hardcoding nor static linking is supported with a |
---|
6140 | # broken collect2. |
---|
6141 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
---|
6142 | fi |
---|
6143 | ;; |
---|
6144 | |
---|
6145 | aix4* | aix5*) |
---|
6146 | if test "$host_cpu" = ia64; then |
---|
6147 | # On IA64, the linker does run time linking by default, so we don't |
---|
6148 | # have to do anything special. |
---|
6149 | aix_use_runtimelinking=no |
---|
6150 | exp_sym_flag='-Bexport' |
---|
6151 | no_entry_flag="" |
---|
6152 | else |
---|
6153 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
6154 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
6155 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
6156 | _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' |
---|
6157 | else |
---|
6158 | _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' |
---|
6159 | fi |
---|
6160 | aix_use_runtimelinking=no |
---|
6161 | |
---|
6162 | # Test if we are trying to use run time linking or normal |
---|
6163 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
6164 | # need to do runtime linking. |
---|
6165 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
---|
6166 | for ld_flag in $LDFLAGS; do |
---|
6167 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
6168 | aix_use_runtimelinking=yes |
---|
6169 | break |
---|
6170 | fi |
---|
6171 | done |
---|
6172 | esac |
---|
6173 | |
---|
6174 | exp_sym_flag='-bexport' |
---|
6175 | no_entry_flag='-bnoentry' |
---|
6176 | fi |
---|
6177 | |
---|
6178 | # When large executables or shared objects are built, AIX ld can |
---|
6179 | # have problems creating the table of contents. If linking a library |
---|
6180 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
6181 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
6182 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
6183 | |
---|
6184 | _LT_AC_TAGVAR(archive_cmds, $1)='' |
---|
6185 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6186 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
---|
6187 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
---|
6188 | |
---|
6189 | if test "$GCC" = yes; then |
---|
6190 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
6191 | # We only want to do this on AIX 4.2 and lower, the check |
---|
6192 | # below for broken collect2 doesn't work under 4.3+ |
---|
6193 | collect2name=`${CC} -print-prog-name=collect2` |
---|
6194 | if test -f "$collect2name" && \ |
---|
6195 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
6196 | then |
---|
6197 | # We have reworked collect2 |
---|
6198 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6199 | else |
---|
6200 | # We have old collect2 |
---|
6201 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
---|
6202 | # It fails to find uninstalled libraries when the uninstalled |
---|
6203 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
6204 | # to unsupported forces relinking |
---|
6205 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
---|
6206 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
---|
6207 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
---|
6208 | fi |
---|
6209 | esac |
---|
6210 | shared_flag='-shared' |
---|
6211 | else |
---|
6212 | # not using gcc |
---|
6213 | if test "$host_cpu" = ia64; then |
---|
6214 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
6215 | # chokes on -Wl,-G. The following line is correct: |
---|
6216 | shared_flag='-G' |
---|
6217 | else |
---|
6218 | if test "$aix_use_runtimelinking" = yes; then |
---|
6219 | shared_flag='${wl}-G' |
---|
6220 | else |
---|
6221 | shared_flag='${wl}-bM:SRE' |
---|
6222 | fi |
---|
6223 | fi |
---|
6224 | fi |
---|
6225 | |
---|
6226 | # It seems that -bexpall does not export symbols beginning with |
---|
6227 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
6228 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
---|
6229 | if test "$aix_use_runtimelinking" = yes; then |
---|
6230 | # Warning - without using the other runtime loading flags (-brtl), |
---|
6231 | # -berok will link without error, but may produce a broken library. |
---|
6232 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
---|
6233 | # Determine the default libpath from the value encoded in an empty executable. |
---|
6234 | _LT_AC_SYS_LIBPATH_AIX |
---|
6235 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
6236 | _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" |
---|
6237 | else |
---|
6238 | if test "$host_cpu" = ia64; then |
---|
6239 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
---|
6240 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
---|
6241 | _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" |
---|
6242 | else |
---|
6243 | # Determine the default libpath from the value encoded in an empty executable. |
---|
6244 | _LT_AC_SYS_LIBPATH_AIX |
---|
6245 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
6246 | # Warning - without using the other run time loading flags, |
---|
6247 | # -berok will link without error, but may produce a broken library. |
---|
6248 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
---|
6249 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
---|
6250 | # -bexpall does not export symbols beginning with underscore (_) |
---|
6251 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
---|
6252 | # Exported symbols can be pulled into shared objects from archives |
---|
6253 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
---|
6254 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
---|
6255 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
6256 | _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' |
---|
6257 | fi |
---|
6258 | fi |
---|
6259 | ;; |
---|
6260 | |
---|
6261 | amigaos*) |
---|
6262 | _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)' |
---|
6263 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
---|
6264 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
---|
6265 | # see comment about different semantics on the GNU ld section |
---|
6266 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
6267 | ;; |
---|
6268 | |
---|
6269 | bsdi4*) |
---|
6270 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
---|
6271 | ;; |
---|
6272 | |
---|
6273 | cygwin* | mingw* | pw32*) |
---|
6274 | # When not using gcc, we currently assume that we are using |
---|
6275 | # Microsoft Visual C++. |
---|
6276 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
6277 | # no search path for DLLs. |
---|
6278 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
---|
6279 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
---|
6280 | # Tell ltmain to make .lib files, not .a files. |
---|
6281 | libext=lib |
---|
6282 | # Tell ltmain to make .dll files, not .so files. |
---|
6283 | shrext_cmds=".dll" |
---|
6284 | # FIXME: Setting linknames here is a bad hack. |
---|
6285 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
6286 | # The linker will automatically build a .lib file if we build a DLL. |
---|
6287 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
---|
6288 | # FIXME: Should let the user specify the lib program. |
---|
6289 | _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
6290 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
6291 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
---|
6292 | ;; |
---|
6293 | |
---|
6294 | darwin* | rhapsody*) |
---|
6295 | if test "$GXX" = yes ; then |
---|
6296 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
---|
6297 | case "$host_os" in |
---|
6298 | rhapsody* | darwin1.[[012]]) |
---|
6299 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
---|
6300 | ;; |
---|
6301 | *) # Darwin 1.3 on |
---|
6302 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
6303 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
---|
6304 | else |
---|
6305 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
6306 | 10.[[012]]) |
---|
6307 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
---|
6308 | ;; |
---|
6309 | 10.*) |
---|
6310 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
---|
6311 | ;; |
---|
6312 | esac |
---|
6313 | fi |
---|
6314 | ;; |
---|
6315 | esac |
---|
6316 | lt_int_apple_cc_single_mod=no |
---|
6317 | output_verbose_link_cmd='echo' |
---|
6318 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
---|
6319 | lt_int_apple_cc_single_mod=yes |
---|
6320 | fi |
---|
6321 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
6322 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
6323 | else |
---|
6324 | _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' |
---|
6325 | fi |
---|
6326 | _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
6327 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
6328 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
6329 | _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}' |
---|
6330 | else |
---|
6331 | _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}' |
---|
6332 | fi |
---|
6333 | _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}' |
---|
6334 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
---|
6335 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
---|
6336 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
---|
6337 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
---|
6338 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
---|
6339 | else |
---|
6340 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
6341 | fi |
---|
6342 | ;; |
---|
6343 | |
---|
6344 | dgux*) |
---|
6345 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
6346 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
---|
6347 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6348 | ;; |
---|
6349 | |
---|
6350 | freebsd1*) |
---|
6351 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
6352 | ;; |
---|
6353 | |
---|
6354 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
6355 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
6356 | # does not break anything, and helps significantly (at the cost of a little |
---|
6357 | # extra space). |
---|
6358 | freebsd2.2*) |
---|
6359 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
6360 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
---|
6361 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6362 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6363 | ;; |
---|
6364 | |
---|
6365 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
6366 | freebsd2*) |
---|
6367 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
6368 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6369 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
---|
6370 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6371 | ;; |
---|
6372 | |
---|
6373 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
6374 | freebsd* | kfreebsd*-gnu) |
---|
6375 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
6376 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
---|
6377 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6378 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6379 | ;; |
---|
6380 | |
---|
6381 | hpux9*) |
---|
6382 | if test "$GCC" = yes; then |
---|
6383 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
---|
6384 | else |
---|
6385 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
---|
6386 | fi |
---|
6387 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
---|
6388 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
6389 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6390 | |
---|
6391 | # hardcode_minus_L: Not really in the search PATH, |
---|
6392 | # but as the default location of the library. |
---|
6393 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
---|
6394 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
---|
6395 | ;; |
---|
6396 | |
---|
6397 | hpux10* | hpux11*) |
---|
6398 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
6399 | case "$host_cpu" in |
---|
6400 | hppa*64*|ia64*) |
---|
6401 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
6402 | ;; |
---|
6403 | *) |
---|
6404 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
6405 | ;; |
---|
6406 | esac |
---|
6407 | else |
---|
6408 | case "$host_cpu" in |
---|
6409 | hppa*64*|ia64*) |
---|
6410 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
6411 | ;; |
---|
6412 | *) |
---|
6413 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
6414 | ;; |
---|
6415 | esac |
---|
6416 | fi |
---|
6417 | if test "$with_gnu_ld" = no; then |
---|
6418 | case "$host_cpu" in |
---|
6419 | hppa*64*) |
---|
6420 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
---|
6421 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
---|
6422 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
6423 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
---|
6424 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6425 | ;; |
---|
6426 | ia64*) |
---|
6427 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
---|
6428 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
---|
6429 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6430 | |
---|
6431 | # hardcode_minus_L: Not really in the search PATH, |
---|
6432 | # but as the default location of the library. |
---|
6433 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
---|
6434 | ;; |
---|
6435 | *) |
---|
6436 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
---|
6437 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
6438 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6439 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
---|
6440 | |
---|
6441 | # hardcode_minus_L: Not really in the search PATH, |
---|
6442 | # but as the default location of the library. |
---|
6443 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
---|
6444 | ;; |
---|
6445 | esac |
---|
6446 | fi |
---|
6447 | ;; |
---|
6448 | |
---|
6449 | irix5* | irix6* | nonstopux*) |
---|
6450 | if test "$GCC" = yes; then |
---|
6451 | _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' |
---|
6452 | else |
---|
6453 | _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' |
---|
6454 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
---|
6455 | fi |
---|
6456 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
---|
6457 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
6458 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
---|
6459 | ;; |
---|
6460 | |
---|
6461 | netbsd*) |
---|
6462 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
6463 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
6464 | else |
---|
6465 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
6466 | fi |
---|
6467 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
---|
6468 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6469 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6470 | ;; |
---|
6471 | |
---|
6472 | newsos6) |
---|
6473 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
6474 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6475 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
---|
6476 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
6477 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6478 | ;; |
---|
6479 | |
---|
6480 | openbsd*) |
---|
6481 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6482 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6483 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
6484 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
6485 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
---|
6486 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
---|
6487 | else |
---|
6488 | case $host_os in |
---|
6489 | openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
---|
6490 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
6491 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
---|
6492 | ;; |
---|
6493 | *) |
---|
6494 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
6495 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
---|
6496 | ;; |
---|
6497 | esac |
---|
6498 | fi |
---|
6499 | ;; |
---|
6500 | |
---|
6501 | os2*) |
---|
6502 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
---|
6503 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
---|
6504 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
---|
6505 | _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' |
---|
6506 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
6507 | ;; |
---|
6508 | |
---|
6509 | osf3*) |
---|
6510 | if test "$GCC" = yes; then |
---|
6511 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
---|
6512 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
6513 | else |
---|
6514 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
---|
6515 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
6516 | fi |
---|
6517 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
---|
6518 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
6519 | ;; |
---|
6520 | |
---|
6521 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
6522 | if test "$GCC" = yes; then |
---|
6523 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
---|
6524 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
6525 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
---|
6526 | else |
---|
6527 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
---|
6528 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
6529 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
6530 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
---|
6531 | |
---|
6532 | # Both c and cxx compiler support -rpath directly |
---|
6533 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
---|
6534 | fi |
---|
6535 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
---|
6536 | ;; |
---|
6537 | |
---|
6538 | sco3.2v5*) |
---|
6539 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
6540 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6541 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
---|
6542 | runpath_var=LD_RUN_PATH |
---|
6543 | hardcode_runpath_var=yes |
---|
6544 | ;; |
---|
6545 | |
---|
6546 | solaris*) |
---|
6547 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
---|
6548 | if test "$GCC" = yes; then |
---|
6549 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
6550 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
6551 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
6552 | else |
---|
6553 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
6554 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
6555 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
6556 | fi |
---|
6557 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
---|
6558 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6559 | case $host_os in |
---|
6560 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
---|
6561 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
6562 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
---|
6563 | esac |
---|
6564 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
---|
6565 | ;; |
---|
6566 | |
---|
6567 | sunos4*) |
---|
6568 | if test "x$host_vendor" = xsequent; then |
---|
6569 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
6570 | # files that make .init and .fini sections work. |
---|
6571 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
6572 | else |
---|
6573 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
6574 | fi |
---|
6575 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
---|
6576 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6577 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
---|
6578 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6579 | ;; |
---|
6580 | |
---|
6581 | sysv4) |
---|
6582 | case $host_vendor in |
---|
6583 | sni) |
---|
6584 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
6585 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? |
---|
6586 | ;; |
---|
6587 | siemens) |
---|
6588 | ## LD is ld it makes a PLAMLIB |
---|
6589 | ## CC just makes a GrossModule. |
---|
6590 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
6591 | _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' |
---|
6592 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
---|
6593 | ;; |
---|
6594 | motorola) |
---|
6595 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
6596 | _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie |
---|
6597 | ;; |
---|
6598 | esac |
---|
6599 | runpath_var='LD_RUN_PATH' |
---|
6600 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6601 | ;; |
---|
6602 | |
---|
6603 | sysv4.3*) |
---|
6604 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
6605 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6606 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' |
---|
6607 | ;; |
---|
6608 | |
---|
6609 | sysv4*MP*) |
---|
6610 | if test -d /usr/nec; then |
---|
6611 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
6612 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6613 | runpath_var=LD_RUN_PATH |
---|
6614 | hardcode_runpath_var=yes |
---|
6615 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
---|
6616 | fi |
---|
6617 | ;; |
---|
6618 | |
---|
6619 | sysv4.2uw2*) |
---|
6620 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
6621 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
---|
6622 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
---|
6623 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6624 | hardcode_runpath_var=yes |
---|
6625 | runpath_var=LD_RUN_PATH |
---|
6626 | ;; |
---|
6627 | |
---|
6628 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
---|
6629 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' |
---|
6630 | if test "$GCC" = yes; then |
---|
6631 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
6632 | else |
---|
6633 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
6634 | fi |
---|
6635 | runpath_var='LD_RUN_PATH' |
---|
6636 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6637 | ;; |
---|
6638 | |
---|
6639 | sysv5*) |
---|
6640 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
---|
6641 | # $CC -shared without GNU ld will not create a library from C++ |
---|
6642 | # object files and a static libstdc++, better avoid it by now |
---|
6643 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
6644 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
6645 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
6646 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
---|
6647 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6648 | runpath_var='LD_RUN_PATH' |
---|
6649 | ;; |
---|
6650 | |
---|
6651 | uts4*) |
---|
6652 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
6653 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
---|
6654 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
---|
6655 | ;; |
---|
6656 | |
---|
6657 | *) |
---|
6658 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
---|
6659 | ;; |
---|
6660 | esac |
---|
6661 | fi |
---|
6662 | ]) |
---|
6663 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
---|
6664 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
---|
6665 | |
---|
6666 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
6667 | if test "$GCC" = yes; then |
---|
6668 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
6669 | fi |
---|
6670 | |
---|
6671 | # |
---|
6672 | # Do we need to explicitly link libc? |
---|
6673 | # |
---|
6674 | case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in |
---|
6675 | x|xyes) |
---|
6676 | # Assume -lc should be added |
---|
6677 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
---|
6678 | |
---|
6679 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
6680 | case $_LT_AC_TAGVAR(archive_cmds, $1) in |
---|
6681 | *'~'*) |
---|
6682 | # FIXME: we may have to deal with multi-command sequences. |
---|
6683 | ;; |
---|
6684 | '$CC '*) |
---|
6685 | # Test whether the compiler implicitly links with -lc since on some |
---|
6686 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
6687 | # to ld, don't add -lc before -lgcc. |
---|
6688 | AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
---|
6689 | $rm conftest* |
---|
6690 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
6691 | |
---|
6692 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
---|
6693 | soname=conftest |
---|
6694 | lib=conftest |
---|
6695 | libobjs=conftest.$ac_objext |
---|
6696 | deplibs= |
---|
6697 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
---|
6698 | compiler_flags=-v |
---|
6699 | linker_flags=-v |
---|
6700 | verstring= |
---|
6701 | output_objdir=. |
---|
6702 | libname=conftest |
---|
6703 | lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) |
---|
6704 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
---|
6705 | if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) |
---|
6706 | then |
---|
6707 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
---|
6708 | else |
---|
6709 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
---|
6710 | fi |
---|
6711 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag |
---|
6712 | else |
---|
6713 | cat conftest.err 1>&5 |
---|
6714 | fi |
---|
6715 | $rm conftest* |
---|
6716 | AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) |
---|
6717 | ;; |
---|
6718 | esac |
---|
6719 | fi |
---|
6720 | ;; |
---|
6721 | esac |
---|
6722 | ])# AC_LIBTOOL_PROG_LD_SHLIBS |
---|
6723 | |
---|
6724 | |
---|
6725 | # _LT_AC_FILE_LTDLL_C |
---|
6726 | # ------------------- |
---|
6727 | # Be careful that the start marker always follows a newline. |
---|
6728 | AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ |
---|
6729 | # /* ltdll.c starts here */ |
---|
6730 | # #define WIN32_LEAN_AND_MEAN |
---|
6731 | # #include <windows.h> |
---|
6732 | # #undef WIN32_LEAN_AND_MEAN |
---|
6733 | # #include <stdio.h> |
---|
6734 | # |
---|
6735 | # #ifndef __CYGWIN__ |
---|
6736 | # # ifdef __CYGWIN32__ |
---|
6737 | # # define __CYGWIN__ __CYGWIN32__ |
---|
6738 | # # endif |
---|
6739 | # #endif |
---|
6740 | # |
---|
6741 | # #ifdef __cplusplus |
---|
6742 | # extern "C" { |
---|
6743 | # #endif |
---|
6744 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
---|
6745 | # #ifdef __cplusplus |
---|
6746 | # } |
---|
6747 | # #endif |
---|
6748 | # |
---|
6749 | # #ifdef __CYGWIN__ |
---|
6750 | # #include <cygwin/cygwin_dll.h> |
---|
6751 | # DECLARE_CYGWIN_DLL( DllMain ); |
---|
6752 | # #endif |
---|
6753 | # HINSTANCE __hDllInstance_base; |
---|
6754 | # |
---|
6755 | # BOOL APIENTRY |
---|
6756 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
---|
6757 | # { |
---|
6758 | # __hDllInstance_base = hInst; |
---|
6759 | # return TRUE; |
---|
6760 | # } |
---|
6761 | # /* ltdll.c ends here */ |
---|
6762 | ])# _LT_AC_FILE_LTDLL_C |
---|
6763 | |
---|
6764 | |
---|
6765 | # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) |
---|
6766 | # --------------------------------- |
---|
6767 | AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) |
---|
6768 | |
---|
6769 | |
---|
6770 | # old names |
---|
6771 | AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) |
---|
6772 | AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) |
---|
6773 | AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) |
---|
6774 | AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) |
---|
6775 | AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) |
---|
6776 | AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) |
---|
6777 | AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) |
---|
6778 | |
---|
6779 | # This is just to silence aclocal about the macro not being used |
---|
6780 | ifelse([AC_DISABLE_FAST_INSTALL]) |
---|
6781 | |
---|
6782 | AC_DEFUN([LT_AC_PROG_GCJ], |
---|
6783 | [AC_CHECK_TOOL(GCJ, gcj, no) |
---|
6784 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" |
---|
6785 | AC_SUBST(GCJFLAGS) |
---|
6786 | ]) |
---|
6787 | |
---|
6788 | AC_DEFUN([LT_AC_PROG_RC], |
---|
6789 | [AC_CHECK_TOOL(RC, windres, no) |
---|
6790 | ]) |
---|
6791 | |
---|
6792 | # NOTE: This macro has been submitted for inclusion into # |
---|
6793 | # GNU Autoconf as AC_PROG_SED. When it is available in # |
---|
6794 | # a released version of Autoconf we should remove this # |
---|
6795 | # macro and use it instead. # |
---|
6796 | # LT_AC_PROG_SED |
---|
6797 | # -------------- |
---|
6798 | # Check for a fully-functional sed program, that truncates |
---|
6799 | # as few characters as possible. Prefer GNU sed if found. |
---|
6800 | AC_DEFUN([LT_AC_PROG_SED], |
---|
6801 | [AC_MSG_CHECKING([for a sed that does not truncate output]) |
---|
6802 | AC_CACHE_VAL(lt_cv_path_SED, |
---|
6803 | [# Loop through the user's path and test for sed and gsed. |
---|
6804 | # Then use that list of sed's as ones to test for truncation. |
---|
6805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6806 | for as_dir in $PATH |
---|
6807 | do |
---|
6808 | IFS=$as_save_IFS |
---|
6809 | test -z "$as_dir" && as_dir=. |
---|
6810 | for lt_ac_prog in sed gsed; do |
---|
6811 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6812 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
6813 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
6814 | fi |
---|
6815 | done |
---|
6816 | done |
---|
6817 | done |
---|
6818 | lt_ac_max=0 |
---|
6819 | lt_ac_count=0 |
---|
6820 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
6821 | # along with /bin/sed that truncates output. |
---|
6822 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
6823 | test ! -f $lt_ac_sed && break |
---|
6824 | cat /dev/null > conftest.in |
---|
6825 | lt_ac_count=0 |
---|
6826 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
6827 | # Check for GNU sed and select it if it is found. |
---|
6828 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
6829 | lt_cv_path_SED=$lt_ac_sed |
---|
6830 | break |
---|
6831 | fi |
---|
6832 | while true; do |
---|
6833 | cat conftest.in conftest.in >conftest.tmp |
---|
6834 | mv conftest.tmp conftest.in |
---|
6835 | cp conftest.in conftest.nl |
---|
6836 | echo >>conftest.nl |
---|
6837 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
6838 | cmp -s conftest.out conftest.nl || break |
---|
6839 | # 10000 chars as input seems more than enough |
---|
6840 | test $lt_ac_count -gt 10 && break |
---|
6841 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
6842 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
6843 | lt_ac_max=$lt_ac_count |
---|
6844 | lt_cv_path_SED=$lt_ac_sed |
---|
6845 | fi |
---|
6846 | done |
---|
6847 | done |
---|
6848 | SED=$lt_cv_path_SED |
---|
6849 | ]) |
---|
6850 | AC_MSG_RESULT([$SED]) |
---|
6851 | ]) |
---|
6852 | |
---|
6853 | # Copyright (C) 1995-2002 Free Software Foundation, Inc. |
---|
6854 | # Copyright (C) 2001-2003 Red Hat, Inc. |
---|
6855 | # |
---|
6856 | # This file is free software, distributed under the terms of the GNU |
---|
6857 | # General Public License. As a special exception to the GNU General |
---|
6858 | # Public License, this file may be distributed as part of a program |
---|
6859 | # that contains a configuration script generated by Autoconf, under |
---|
6860 | # the same distribution terms as the rest of that program. |
---|
6861 | # |
---|
6862 | # This file can be copied and used freely without restrictions. It can |
---|
6863 | # be used in projects which are not available under the GNU Public License |
---|
6864 | # but which still want to provide support for the GNU gettext functionality. |
---|
6865 | # |
---|
6866 | # Macro to add for using GNU gettext. |
---|
6867 | # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 |
---|
6868 | # |
---|
6869 | # Modified to never use included libintl. |
---|
6870 | # Owen Taylor <otaylor@redhat.com>, 12/15/1998 |
---|
6871 | # |
---|
6872 | # Major rework to remove unused code |
---|
6873 | # Owen Taylor <otaylor@redhat.com>, 12/11/2002 |
---|
6874 | # |
---|
6875 | # Added better handling of ALL_LINGUAS from GNU gettext version |
---|
6876 | # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 |
---|
6877 | |
---|
6878 | # |
---|
6879 | # We need this here as well, since someone might use autoconf-2.5x |
---|
6880 | # to configure GLib then an older version to configure a package |
---|
6881 | # using AM_GLIB_GNU_GETTEXT |
---|
6882 | AC_PREREQ(2.53) |
---|
6883 | |
---|
6884 | dnl |
---|
6885 | dnl We go to great lengths to make sure that aclocal won't |
---|
6886 | dnl try to pull in the installed version of these macros |
---|
6887 | dnl when running aclocal in the glib directory. |
---|
6888 | dnl |
---|
6889 | m4_copy([AC_DEFUN],[glib_DEFUN]) |
---|
6890 | m4_copy([AC_REQUIRE],[glib_REQUIRE]) |
---|
6891 | dnl |
---|
6892 | dnl At the end, if we're not within glib, we'll define the public |
---|
6893 | dnl definitions in terms of our private definitions. |
---|
6894 | dnl |
---|
6895 | |
---|
6896 | # GLIB_LC_MESSAGES |
---|
6897 | #-------------------- |
---|
6898 | glib_DEFUN([GLIB_LC_MESSAGES], |
---|
6899 | [AC_CHECK_HEADERS([locale.h]) |
---|
6900 | if test $ac_cv_header_locale_h = yes; then |
---|
6901 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, |
---|
6902 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], |
---|
6903 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) |
---|
6904 | if test $am_cv_val_LC_MESSAGES = yes; then |
---|
6905 | AC_DEFINE(HAVE_LC_MESSAGES, 1, |
---|
6906 | [Define if your <locale.h> file defines LC_MESSAGES.]) |
---|
6907 | fi |
---|
6908 | fi]) |
---|
6909 | |
---|
6910 | # GLIB_PATH_PROG_WITH_TEST |
---|
6911 | #---------------------------- |
---|
6912 | dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, |
---|
6913 | dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) |
---|
6914 | glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], |
---|
6915 | [# Extract the first word of "$2", so it can be a program name with args. |
---|
6916 | set dummy $2; ac_word=[$]2 |
---|
6917 | AC_MSG_CHECKING([for $ac_word]) |
---|
6918 | AC_CACHE_VAL(ac_cv_path_$1, |
---|
6919 | [case "[$]$1" in |
---|
6920 | /*) |
---|
6921 | ac_cv_path_$1="[$]$1" # Let the user override the test with a path. |
---|
6922 | ;; |
---|
6923 | *) |
---|
6924 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
6925 | for ac_dir in ifelse([$5], , $PATH, [$5]); do |
---|
6926 | test -z "$ac_dir" && ac_dir=. |
---|
6927 | if test -f $ac_dir/$ac_word; then |
---|
6928 | if [$3]; then |
---|
6929 | ac_cv_path_$1="$ac_dir/$ac_word" |
---|
6930 | break |
---|
6931 | fi |
---|
6932 | fi |
---|
6933 | done |
---|
6934 | IFS="$ac_save_ifs" |
---|
6935 | dnl If no 4th arg is given, leave the cache variable unset, |
---|
6936 | dnl so AC_PATH_PROGS will keep looking. |
---|
6937 | ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" |
---|
6938 | ])dnl |
---|
6939 | ;; |
---|
6940 | esac])dnl |
---|
6941 | $1="$ac_cv_path_$1" |
---|
6942 | if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then |
---|
6943 | AC_MSG_RESULT([$]$1) |
---|
6944 | else |
---|
6945 | AC_MSG_RESULT(no) |
---|
6946 | fi |
---|
6947 | AC_SUBST($1)dnl |
---|
6948 | ]) |
---|
6949 | |
---|
6950 | # GLIB_WITH_NLS |
---|
6951 | #----------------- |
---|
6952 | glib_DEFUN([GLIB_WITH_NLS], |
---|
6953 | dnl NLS is obligatory |
---|
6954 | [USE_NLS=yes |
---|
6955 | AC_SUBST(USE_NLS) |
---|
6956 | |
---|
6957 | gt_cv_have_gettext=no |
---|
6958 | |
---|
6959 | CATOBJEXT=NONE |
---|
6960 | XGETTEXT=: |
---|
6961 | INTLLIBS= |
---|
6962 | |
---|
6963 | AC_CHECK_HEADER(libintl.h, |
---|
6964 | [gt_cv_func_dgettext_libintl="no" |
---|
6965 | libintl_extra_libs="" |
---|
6966 | |
---|
6967 | # |
---|
6968 | # First check in libc |
---|
6969 | # |
---|
6970 | AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, |
---|
6971 | [AC_TRY_LINK([ |
---|
6972 | #include <libintl.h> |
---|
6973 | ], |
---|
6974 | [return (int) dgettext ("","")], |
---|
6975 | gt_cv_func_dgettext_libc=yes, |
---|
6976 | gt_cv_func_dgettext_libc=no) |
---|
6977 | ]) |
---|
6978 | |
---|
6979 | if test "$gt_cv_func_dgettext_libc" = "yes" ; then |
---|
6980 | AC_CHECK_FUNCS(bind_textdomain_codeset) |
---|
6981 | fi |
---|
6982 | |
---|
6983 | # |
---|
6984 | # If we don't have everything we want, check in libintl |
---|
6985 | # |
---|
6986 | if test "$gt_cv_func_dgettext_libc" != "yes" \ |
---|
6987 | || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then |
---|
6988 | |
---|
6989 | AC_CHECK_LIB(intl, bindtextdomain, |
---|
6990 | [AC_CHECK_LIB(intl, dgettext, |
---|
6991 | gt_cv_func_dgettext_libintl=yes)]) |
---|
6992 | |
---|
6993 | if test "$gt_cv_func_dgettext_libintl" != "yes" ; then |
---|
6994 | AC_MSG_CHECKING([if -liconv is needed to use gettext]) |
---|
6995 | AC_MSG_RESULT([]) |
---|
6996 | AC_CHECK_LIB(intl, dcgettext, |
---|
6997 | [gt_cv_func_dgettext_libintl=yes |
---|
6998 | libintl_extra_libs=-liconv], |
---|
6999 | :,-liconv) |
---|
7000 | fi |
---|
7001 | |
---|
7002 | # |
---|
7003 | # If we found libintl, then check in it for bind_textdomain_codeset(); |
---|
7004 | # we'll prefer libc if neither have bind_textdomain_codeset(), |
---|
7005 | # and both have dgettext |
---|
7006 | # |
---|
7007 | if test "$gt_cv_func_dgettext_libintl" = "yes" ; then |
---|
7008 | glib_save_LIBS="$LIBS" |
---|
7009 | LIBS="$LIBS -lintl $libintl_extra_libs" |
---|
7010 | unset ac_cv_func_bind_textdomain_codeset |
---|
7011 | AC_CHECK_FUNCS(bind_textdomain_codeset) |
---|
7012 | LIBS="$glib_save_LIBS" |
---|
7013 | |
---|
7014 | if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then |
---|
7015 | gt_cv_func_dgettext_libc=no |
---|
7016 | else |
---|
7017 | if test "$gt_cv_func_dgettext_libc" = "yes"; then |
---|
7018 | gt_cv_func_dgettext_libintl=no |
---|
7019 | fi |
---|
7020 | fi |
---|
7021 | fi |
---|
7022 | fi |
---|
7023 | |
---|
7024 | if test "$gt_cv_func_dgettext_libc" = "yes" \ |
---|
7025 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then |
---|
7026 | gt_cv_have_gettext=yes |
---|
7027 | fi |
---|
7028 | |
---|
7029 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then |
---|
7030 | INTLLIBS="-lintl $libintl_extra_libs" |
---|
7031 | fi |
---|
7032 | |
---|
7033 | if test "$gt_cv_have_gettext" = "yes"; then |
---|
7034 | AC_DEFINE(HAVE_GETTEXT,1, |
---|
7035 | [Define if the GNU gettext() function is already present or preinstalled.]) |
---|
7036 | GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
---|
7037 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl |
---|
7038 | if test "$MSGFMT" != "no"; then |
---|
7039 | glib_save_LIBS="$LIBS" |
---|
7040 | LIBS="$LIBS $INTLLIBS" |
---|
7041 | AC_CHECK_FUNCS(dcgettext) |
---|
7042 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
---|
7043 | GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
---|
7044 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
---|
7045 | AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; |
---|
7046 | return _nl_msg_cat_cntr], |
---|
7047 | [CATOBJEXT=.gmo |
---|
7048 | DATADIRNAME=share], |
---|
7049 | [case $host in |
---|
7050 | *-*-solaris*) |
---|
7051 | dnl On Solaris, if bind_textdomain_codeset is in libc, |
---|
7052 | dnl GNU format message catalog is always supported, |
---|
7053 | dnl since both are added to the libc all together. |
---|
7054 | dnl Hence, we'd like to go with DATADIRNAME=share and |
---|
7055 | dnl and CATOBJEXT=.gmo in this case. |
---|
7056 | AC_CHECK_FUNC(bind_textdomain_codeset, |
---|
7057 | [CATOBJEXT=.gmo |
---|
7058 | DATADIRNAME=share], |
---|
7059 | [CATOBJEXT=.mo |
---|
7060 | DATADIRNAME=lib]) |
---|
7061 | ;; |
---|
7062 | *) |
---|
7063 | CATOBJEXT=.mo |
---|
7064 | DATADIRNAME=lib |
---|
7065 | ;; |
---|
7066 | esac]) |
---|
7067 | LIBS="$glib_save_LIBS" |
---|
7068 | INSTOBJEXT=.mo |
---|
7069 | else |
---|
7070 | gt_cv_have_gettext=no |
---|
7071 | fi |
---|
7072 | fi |
---|
7073 | ]) |
---|
7074 | |
---|
7075 | if test "$gt_cv_have_gettext" = "yes" ; then |
---|
7076 | AC_DEFINE(ENABLE_NLS, 1, |
---|
7077 | [always defined to indicate that i18n is enabled]) |
---|
7078 | fi |
---|
7079 | |
---|
7080 | dnl Test whether we really found GNU xgettext. |
---|
7081 | if test "$XGETTEXT" != ":"; then |
---|
7082 | dnl If it is not GNU xgettext we define it as : so that the |
---|
7083 | dnl Makefiles still can work. |
---|
7084 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
---|
7085 | : ; |
---|
7086 | else |
---|
7087 | AC_MSG_RESULT( |
---|
7088 | [found xgettext program is not GNU xgettext; ignore it]) |
---|
7089 | XGETTEXT=":" |
---|
7090 | fi |
---|
7091 | fi |
---|
7092 | |
---|
7093 | # We need to process the po/ directory. |
---|
7094 | POSUB=po |
---|
7095 | |
---|
7096 | AC_OUTPUT_COMMANDS( |
---|
7097 | [case "$CONFIG_FILES" in *po/Makefile.in*) |
---|
7098 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
---|
7099 | esac]) |
---|
7100 | |
---|
7101 | dnl These rules are solely for the distribution goal. While doing this |
---|
7102 | dnl we only have to keep exactly one list of the available catalogs |
---|
7103 | dnl in configure.in. |
---|
7104 | for lang in $ALL_LINGUAS; do |
---|
7105 | GMOFILES="$GMOFILES $lang.gmo" |
---|
7106 | POFILES="$POFILES $lang.po" |
---|
7107 | done |
---|
7108 | |
---|
7109 | dnl Make all variables we use known to autoconf. |
---|
7110 | AC_SUBST(CATALOGS) |
---|
7111 | AC_SUBST(CATOBJEXT) |
---|
7112 | AC_SUBST(DATADIRNAME) |
---|
7113 | AC_SUBST(GMOFILES) |
---|
7114 | AC_SUBST(INSTOBJEXT) |
---|
7115 | AC_SUBST(INTLLIBS) |
---|
7116 | AC_SUBST(PO_IN_DATADIR_TRUE) |
---|
7117 | AC_SUBST(PO_IN_DATADIR_FALSE) |
---|
7118 | AC_SUBST(POFILES) |
---|
7119 | AC_SUBST(POSUB) |
---|
7120 | ]) |
---|
7121 | |
---|
7122 | # AM_GLIB_GNU_GETTEXT |
---|
7123 | # ------------------- |
---|
7124 | # Do checks necessary for use of gettext. If a suitable implementation |
---|
7125 | # of gettext is found in either in libintl or in the C library, |
---|
7126 | # it will set INTLLIBS to the libraries needed for use of gettext |
---|
7127 | # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable |
---|
7128 | # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() |
---|
7129 | # on various variables needed by the Makefile.in.in installed by |
---|
7130 | # glib-gettextize. |
---|
7131 | dnl |
---|
7132 | glib_DEFUN([GLIB_GNU_GETTEXT], |
---|
7133 | [AC_REQUIRE([AC_PROG_CC])dnl |
---|
7134 | AC_REQUIRE([AC_HEADER_STDC])dnl |
---|
7135 | |
---|
7136 | GLIB_LC_MESSAGES |
---|
7137 | GLIB_WITH_NLS |
---|
7138 | |
---|
7139 | if test "$gt_cv_have_gettext" = "yes"; then |
---|
7140 | if test "x$ALL_LINGUAS" = "x"; then |
---|
7141 | LINGUAS= |
---|
7142 | else |
---|
7143 | AC_MSG_CHECKING(for catalogs to be installed) |
---|
7144 | NEW_LINGUAS= |
---|
7145 | for presentlang in $ALL_LINGUAS; do |
---|
7146 | useit=no |
---|
7147 | if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then |
---|
7148 | desiredlanguages="$LINGUAS" |
---|
7149 | else |
---|
7150 | desiredlanguages="$ALL_LINGUAS" |
---|
7151 | fi |
---|
7152 | for desiredlang in $desiredlanguages; do |
---|
7153 | # Use the presentlang catalog if desiredlang is |
---|
7154 | # a. equal to presentlang, or |
---|
7155 | # b. a variant of presentlang (because in this case, |
---|
7156 | # presentlang can be used as a fallback for messages |
---|
7157 | # which are not translated in the desiredlang catalog). |
---|
7158 | case "$desiredlang" in |
---|
7159 | "$presentlang"*) useit=yes;; |
---|
7160 | esac |
---|
7161 | done |
---|
7162 | if test $useit = yes; then |
---|
7163 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" |
---|
7164 | fi |
---|
7165 | done |
---|
7166 | LINGUAS=$NEW_LINGUAS |
---|
7167 | AC_MSG_RESULT($LINGUAS) |
---|
7168 | fi |
---|
7169 | |
---|
7170 | dnl Construct list of names of catalog files to be constructed. |
---|
7171 | if test -n "$LINGUAS"; then |
---|
7172 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
---|
7173 | fi |
---|
7174 | fi |
---|
7175 | |
---|
7176 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly |
---|
7177 | dnl find the mkinstalldirs script in another subdir but ($top_srcdir). |
---|
7178 | dnl Try to locate is. |
---|
7179 | MKINSTALLDIRS= |
---|
7180 | if test -n "$ac_aux_dir"; then |
---|
7181 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
---|
7182 | fi |
---|
7183 | if test -z "$MKINSTALLDIRS"; then |
---|
7184 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
---|
7185 | fi |
---|
7186 | AC_SUBST(MKINSTALLDIRS) |
---|
7187 | |
---|
7188 | dnl Generate list of files to be processed by xgettext which will |
---|
7189 | dnl be included in po/Makefile. |
---|
7190 | test -d po || mkdir po |
---|
7191 | if test "x$srcdir" != "x."; then |
---|
7192 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
---|
7193 | posrcprefix="$srcdir/" |
---|
7194 | else |
---|
7195 | posrcprefix="../$srcdir/" |
---|
7196 | fi |
---|
7197 | else |
---|
7198 | posrcprefix="../" |
---|
7199 | fi |
---|
7200 | rm -f po/POTFILES |
---|
7201 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
---|
7202 | < $srcdir/po/POTFILES.in > po/POTFILES |
---|
7203 | ]) |
---|
7204 | |
---|
7205 | # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) |
---|
7206 | # ------------------------------- |
---|
7207 | # Define VARIABLE to the location where catalog files will |
---|
7208 | # be installed by po/Makefile. |
---|
7209 | glib_DEFUN([GLIB_DEFINE_LOCALEDIR], |
---|
7210 | [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl |
---|
7211 | glib_save_prefix="$prefix" |
---|
7212 | glib_save_exec_prefix="$exec_prefix" |
---|
7213 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7214 | test "x$exec_prefix" = xNONE && exec_prefix=$prefix |
---|
7215 | if test "x$CATOBJEXT" = "x.mo" ; then |
---|
7216 | localedir=`eval echo "${libdir}/locale"` |
---|
7217 | else |
---|
7218 | localedir=`eval echo "${datadir}/locale"` |
---|
7219 | fi |
---|
7220 | prefix="$glib_save_prefix" |
---|
7221 | exec_prefix="$glib_save_exec_prefix" |
---|
7222 | AC_DEFINE_UNQUOTED($1, "$localedir", |
---|
7223 | [Define the location where the catalogs will be installed]) |
---|
7224 | ]) |
---|
7225 | |
---|
7226 | dnl |
---|
7227 | dnl Now the definitions that aclocal will find |
---|
7228 | dnl |
---|
7229 | ifdef(glib_configure_in,[],[ |
---|
7230 | AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) |
---|
7231 | AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) |
---|
7232 | ])dnl |
---|
7233 | |
---|
7234 | |
---|
7235 | dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) |
---|
7236 | dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page |
---|
7237 | dnl also defines GSTUFF_PKG_ERRORS on error |
---|
7238 | AC_DEFUN([PKG_CHECK_MODULES], [ |
---|
7239 | succeeded=no |
---|
7240 | |
---|
7241 | if test -z "$PKG_CONFIG"; then |
---|
7242 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
---|
7243 | fi |
---|
7244 | |
---|
7245 | if test "$PKG_CONFIG" = "no" ; then |
---|
7246 | echo "*** The pkg-config script could not be found. Make sure it is" |
---|
7247 | echo "*** in your path, or set the PKG_CONFIG environment variable" |
---|
7248 | echo "*** to the full path to pkg-config." |
---|
7249 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." |
---|
7250 | else |
---|
7251 | PKG_CONFIG_MIN_VERSION=0.9.0 |
---|
7252 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
---|
7253 | AC_MSG_CHECKING(for $2) |
---|
7254 | |
---|
7255 | if $PKG_CONFIG --exists "$2" ; then |
---|
7256 | AC_MSG_RESULT(yes) |
---|
7257 | succeeded=yes |
---|
7258 | |
---|
7259 | AC_MSG_CHECKING($1_CFLAGS) |
---|
7260 | $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` |
---|
7261 | AC_MSG_RESULT($$1_CFLAGS) |
---|
7262 | |
---|
7263 | AC_MSG_CHECKING($1_LIBS) |
---|
7264 | $1_LIBS=`$PKG_CONFIG --libs "$2"` |
---|
7265 | AC_MSG_RESULT($$1_LIBS) |
---|
7266 | else |
---|
7267 | $1_CFLAGS="" |
---|
7268 | $1_LIBS="" |
---|
7269 | ## If we have a custom action on failure, don't print errors, but |
---|
7270 | ## do set a variable so people can do so. |
---|
7271 | $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` |
---|
7272 | ifelse([$4], ,echo $$1_PKG_ERRORS,) |
---|
7273 | fi |
---|
7274 | |
---|
7275 | AC_SUBST($1_CFLAGS) |
---|
7276 | AC_SUBST($1_LIBS) |
---|
7277 | else |
---|
7278 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
---|
7279 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
---|
7280 | fi |
---|
7281 | fi |
---|
7282 | |
---|
7283 | if test $succeeded = yes; then |
---|
7284 | ifelse([$3], , :, [$3]) |
---|
7285 | else |
---|
7286 | ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4]) |
---|
7287 | fi |
---|
7288 | ]) |
---|
7289 | |
---|
7290 | |
---|
7291 | |
---|
7292 | dnl -*- mode: autoconf -*- |
---|
7293 | |
---|
7294 | # serial 1 |
---|
7295 | |
---|
7296 | dnl Usage: |
---|
7297 | dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) |
---|
7298 | AC_DEFUN([GTK_DOC_CHECK], |
---|
7299 | [ |
---|
7300 | AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first |
---|
7301 | AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first |
---|
7302 | dnl for overriding the documentation installation directory |
---|
7303 | AC_ARG_WITH(html-dir, |
---|
7304 | AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, |
---|
7305 | [with_html_dir='${datadir}/gtk-doc/html']) |
---|
7306 | HTML_DIR="$with_html_dir" |
---|
7307 | AC_SUBST(HTML_DIR) |
---|
7308 | |
---|
7309 | dnl enable/disable documentation building |
---|
7310 | AC_ARG_ENABLE(gtk-doc, |
---|
7311 | AC_HELP_STRING([--enable-gtk-doc], |
---|
7312 | [use gtk-doc to build documentation [default=no]]),, |
---|
7313 | enable_gtk_doc=no) |
---|
7314 | |
---|
7315 | have_gtk_doc=no |
---|
7316 | if test x$enable_gtk_doc = xyes; then |
---|
7317 | if test -z "$PKG_CONFIG"; then |
---|
7318 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
---|
7319 | fi |
---|
7320 | if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then |
---|
7321 | have_gtk_doc=yes |
---|
7322 | fi |
---|
7323 | |
---|
7324 | dnl do we want to do a version check? |
---|
7325 | ifelse([$1],[],, |
---|
7326 | [gtk_doc_min_version=$1 |
---|
7327 | if test "$have_gtk_doc" = yes; then |
---|
7328 | AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version]) |
---|
7329 | if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then |
---|
7330 | AC_MSG_RESULT(yes) |
---|
7331 | else |
---|
7332 | AC_MSG_RESULT(no) |
---|
7333 | have_gtk_doc=no |
---|
7334 | fi |
---|
7335 | fi |
---|
7336 | ]) |
---|
7337 | if test "$have_gtk_doc" != yes; then |
---|
7338 | enable_gtk_doc=no |
---|
7339 | fi |
---|
7340 | fi |
---|
7341 | |
---|
7342 | AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes) |
---|
7343 | AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL") |
---|
7344 | ]) |
---|
7345 | |
---|