Mercurial > hg > index.fcgi > gift-gnutella > gift-gnutella-0.0.11-1pba
comparison aclocal.m4 @ 0:d39e1d0d75b6
initial add
author | paulo@hit-nxdomain.opendns.com |
---|---|
date | Sat, 20 Feb 2010 21:18:28 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6fe16941a533 |
---|---|
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 | |
902 # Copyright 1996, 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. | |
903 | |
904 # This program is free software; you can redistribute it and/or modify | |
905 # it under the terms of the GNU General Public License as published by | |
906 # the Free Software Foundation; either version 2, or (at your option) | |
907 # any later version. | |
908 | |
909 # This program is distributed in the hope that it will be useful, | |
910 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
911 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
912 # GNU General Public License for more details. | |
913 | |
914 # You should have received a copy of the GNU General Public License | |
915 # along with this program; if not, write to the Free Software | |
916 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
917 # 02111-1307, USA. | |
918 | |
919 # serial 2 | |
920 | |
921 # @defmac AC_PROG_CC_STDC | |
922 # @maindex PROG_CC_STDC | |
923 # @ovindex CC | |
924 # If the C compiler in not in ANSI C mode by default, try to add an option | |
925 # to output variable @code{CC} to make it so. This macro tries various | |
926 # options that select ANSI C on some system or another. It considers the | |
927 # compiler to be in ANSI C mode if it handles function prototypes correctly. | |
928 # | |
929 # If you use this macro, you should check after calling it whether the C | |
930 # compiler has been set to accept ANSI C; if not, the shell variable | |
931 # @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source | |
932 # code in ANSI C, you can make an un-ANSIfied copy of it by using the | |
933 # program @code{ansi2knr}, which comes with Ghostscript. | |
934 # @end defmac | |
935 | |
936 AC_DEFUN([AM_PROG_CC_STDC], | |
937 [AC_REQUIRE([AC_PROG_CC]) | |
938 AC_BEFORE([$0], [AC_C_INLINE]) | |
939 AC_BEFORE([$0], [AC_C_CONST]) | |
940 dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require | |
941 dnl a magic option to avoid problems with ANSI preprocessor commands | |
942 dnl like #elif. | |
943 dnl FIXME: can't do this because then AC_AIX won't work due to a | |
944 dnl circular dependency. | |
945 dnl AC_BEFORE([$0], [AC_PROG_CPP]) | |
946 AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C]) | |
947 AC_CACHE_VAL(am_cv_prog_cc_stdc, | |
948 [am_cv_prog_cc_stdc=no | |
949 ac_save_CC="$CC" | |
950 # Don't try gcc -ansi; that turns off useful extensions and | |
951 # breaks some systems' header files. | |
952 # AIX -qlanglvl=ansi | |
953 # Ultrix and OSF/1 -std1 | |
954 # HP-UX 10.20 and later -Ae | |
955 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
956 # SVR4 -Xc -D__EXTENSIONS__ | |
957 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
958 do | |
959 CC="$ac_save_CC $ac_arg" | |
960 AC_TRY_COMPILE( | |
961 [#include <stdarg.h> | |
962 #include <stdio.h> | |
963 #include <sys/types.h> | |
964 #include <sys/stat.h> | |
965 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
966 struct buf { int x; }; | |
967 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
968 static char *e (p, i) | |
969 char **p; | |
970 int i; | |
971 { | |
972 return p[i]; | |
973 } | |
974 static char *f (char * (*g) (char **, int), char **p, ...) | |
975 { | |
976 char *s; | |
977 va_list v; | |
978 va_start (v,p); | |
979 s = g (p, va_arg (v,int)); | |
980 va_end (v); | |
981 return s; | |
982 } | |
983 int test (int i, double x); | |
984 struct s1 {int (*f) (int a);}; | |
985 struct s2 {int (*f) (double a);}; | |
986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
987 int argc; | |
988 char **argv; | |
989 ], [ | |
990 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
991 ], | |
992 [am_cv_prog_cc_stdc="$ac_arg"; break]) | |
993 done | |
994 CC="$ac_save_CC" | |
995 ]) | |
996 if test -z "$am_cv_prog_cc_stdc"; then | |
997 AC_MSG_RESULT([none needed]) | |
998 else | |
999 AC_MSG_RESULT([$am_cv_prog_cc_stdc]) | |
1000 fi | |
1001 case "x$am_cv_prog_cc_stdc" in | |
1002 x|xno) ;; | |
1003 *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
1004 esac | |
1005 ]) | |
1006 | |
1007 AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC]) | |
1008 | |
1009 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | |
1010 | |
1011 # serial 48 Debian 1.5.22-2 AC_PROG_LIBTOOL | |
1012 | |
1013 | |
1014 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | |
1015 # ----------------------------------------------------------- | |
1016 # If this macro is not defined by Autoconf, define it here. | |
1017 m4_ifdef([AC_PROVIDE_IFELSE], | |
1018 [], | |
1019 [m4_define([AC_PROVIDE_IFELSE], | |
1020 [m4_ifdef([AC_PROVIDE_$1], | |
1021 [$2], [$3])])]) | |
1022 | |
1023 | |
1024 # AC_PROG_LIBTOOL | |
1025 # --------------- | |
1026 AC_DEFUN([AC_PROG_LIBTOOL], | |
1027 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl | |
1028 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX | |
1029 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. | |
1030 AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
1031 [AC_LIBTOOL_CXX], | |
1032 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX | |
1033 ])]) | |
1034 dnl And a similar setup for Fortran 77 support | |
1035 AC_PROVIDE_IFELSE([AC_PROG_F77], | |
1036 [AC_LIBTOOL_F77], | |
1037 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 | |
1038 ])]) | |
1039 | |
1040 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. | |
1041 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run | |
1042 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. | |
1043 AC_PROVIDE_IFELSE([AC_PROG_GCJ], | |
1044 [AC_LIBTOOL_GCJ], | |
1045 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | |
1046 [AC_LIBTOOL_GCJ], | |
1047 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], | |
1048 [AC_LIBTOOL_GCJ], | |
1049 [ifdef([AC_PROG_GCJ], | |
1050 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | |
1051 ifdef([A][M_PROG_GCJ], | |
1052 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | |
1053 ifdef([LT_AC_PROG_GCJ], | |
1054 [define([LT_AC_PROG_GCJ], | |
1055 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) | |
1056 ])])# AC_PROG_LIBTOOL | |
1057 | |
1058 | |
1059 # _AC_PROG_LIBTOOL | |
1060 # ---------------- | |
1061 AC_DEFUN([_AC_PROG_LIBTOOL], | |
1062 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl | |
1063 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl | |
1064 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl | |
1065 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl | |
1066 | |
1067 # This can be used to rebuild libtool when needed | |
1068 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
1069 | |
1070 # Always use our own libtool. | |
1071 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
1072 AC_SUBST(LIBTOOL)dnl | |
1073 | |
1074 # Prevent multiple expansion | |
1075 define([AC_PROG_LIBTOOL], []) | |
1076 ])# _AC_PROG_LIBTOOL | |
1077 | |
1078 | |
1079 # AC_LIBTOOL_SETUP | |
1080 # ---------------- | |
1081 AC_DEFUN([AC_LIBTOOL_SETUP], | |
1082 [AC_PREREQ(2.50)dnl | |
1083 AC_REQUIRE([AC_ENABLE_SHARED])dnl | |
1084 AC_REQUIRE([AC_ENABLE_STATIC])dnl | |
1085 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl | |
1086 AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
1087 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
1088 AC_REQUIRE([AC_PROG_CC])dnl | |
1089 AC_REQUIRE([AC_PROG_LD])dnl | |
1090 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl | |
1091 AC_REQUIRE([AC_PROG_NM])dnl | |
1092 | |
1093 AC_REQUIRE([AC_PROG_LN_S])dnl | |
1094 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl | |
1095 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
1096 AC_REQUIRE([AC_OBJEXT])dnl | |
1097 AC_REQUIRE([AC_EXEEXT])dnl | |
1098 dnl | |
1099 | |
1100 AC_LIBTOOL_SYS_MAX_CMD_LEN | |
1101 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | |
1102 AC_LIBTOOL_OBJDIR | |
1103 | |
1104 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | |
1105 _LT_AC_PROG_ECHO_BACKSLASH | |
1106 | |
1107 case $host_os in | |
1108 aix3*) | |
1109 # AIX sometimes has problems with the GCC collect2 program. For some | |
1110 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
1111 # vanish in a puff of smoke. | |
1112 if test "X${COLLECT_NAMES+set}" != Xset; then | |
1113 COLLECT_NAMES= | |
1114 export COLLECT_NAMES | |
1115 fi | |
1116 ;; | |
1117 esac | |
1118 | |
1119 # Sed substitution that helps us do robust quoting. It backslashifies | |
1120 # metacharacters that are still active within double-quoted strings. | |
1121 Xsed='sed -e 1s/^X//' | |
1122 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] | |
1123 | |
1124 # Same as above, but do not quote variable references. | |
1125 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] | |
1126 | |
1127 # Sed substitution to delay expansion of an escaped shell variable in a | |
1128 # double_quote_subst'ed string. | |
1129 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
1130 | |
1131 # Sed substitution to avoid accidental globbing in evaled expressions | |
1132 no_glob_subst='s/\*/\\\*/g' | |
1133 | |
1134 # Constants: | |
1135 rm="rm -f" | |
1136 | |
1137 # Global variables: | |
1138 default_ofile=libtool | |
1139 can_build_shared=yes | |
1140 | |
1141 # All known linkers require a `.a' archive for static linking (except MSVC, | |
1142 # which needs '.lib'). | |
1143 libext=a | |
1144 ltmain="$ac_aux_dir/ltmain.sh" | |
1145 ofile="$default_ofile" | |
1146 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
1147 | |
1148 AC_CHECK_TOOL(AR, ar, false) | |
1149 AC_CHECK_TOOL(RANLIB, ranlib, :) | |
1150 AC_CHECK_TOOL(STRIP, strip, :) | |
1151 | |
1152 old_CC="$CC" | |
1153 old_CFLAGS="$CFLAGS" | |
1154 | |
1155 # Set sane defaults for various variables | |
1156 test -z "$AR" && AR=ar | |
1157 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
1158 test -z "$AS" && AS=as | |
1159 test -z "$CC" && CC=cc | |
1160 test -z "$LTCC" && LTCC=$CC | |
1161 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
1162 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
1163 test -z "$LD" && LD=ld | |
1164 test -z "$LN_S" && LN_S="ln -s" | |
1165 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
1166 test -z "$NM" && NM=nm | |
1167 test -z "$SED" && SED=sed | |
1168 test -z "$OBJDUMP" && OBJDUMP=objdump | |
1169 test -z "$RANLIB" && RANLIB=: | |
1170 test -z "$STRIP" && STRIP=: | |
1171 test -z "$ac_objext" && ac_objext=o | |
1172 | |
1173 # Determine commands to create old-style static archives. | |
1174 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
1175 old_postinstall_cmds='chmod 644 $oldlib' | |
1176 old_postuninstall_cmds= | |
1177 | |
1178 if test -n "$RANLIB"; then | |
1179 case $host_os in | |
1180 openbsd*) | |
1181 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
1182 ;; | |
1183 *) | |
1184 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
1185 ;; | |
1186 esac | |
1187 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
1188 fi | |
1189 | |
1190 _LT_CC_BASENAME([$compiler]) | |
1191 | |
1192 # Only perform the check for file, if the check method requires it | |
1193 case $deplibs_check_method in | |
1194 file_magic*) | |
1195 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
1196 AC_PATH_MAGIC | |
1197 fi | |
1198 ;; | |
1199 esac | |
1200 | |
1201 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) | |
1202 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | |
1203 enable_win32_dll=yes, enable_win32_dll=no) | |
1204 | |
1205 AC_ARG_ENABLE([libtool-lock], | |
1206 [AC_HELP_STRING([--disable-libtool-lock], | |
1207 [avoid locking (might break parallel builds)])]) | |
1208 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
1209 | |
1210 AC_ARG_WITH([pic], | |
1211 [AC_HELP_STRING([--with-pic], | |
1212 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | |
1213 [pic_mode="$withval"], | |
1214 [pic_mode=default]) | |
1215 test -z "$pic_mode" && pic_mode=default | |
1216 | |
1217 # Use C for the default configuration in the libtool script | |
1218 tagname= | |
1219 AC_LIBTOOL_LANG_C_CONFIG | |
1220 _LT_AC_TAGCONFIG | |
1221 ])# AC_LIBTOOL_SETUP | |
1222 | |
1223 | |
1224 # _LT_AC_SYS_COMPILER | |
1225 # ------------------- | |
1226 AC_DEFUN([_LT_AC_SYS_COMPILER], | |
1227 [AC_REQUIRE([AC_PROG_CC])dnl | |
1228 | |
1229 # If no C compiler was specified, use CC. | |
1230 LTCC=${LTCC-"$CC"} | |
1231 | |
1232 # If no C compiler flags were specified, use CFLAGS. | |
1233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
1234 | |
1235 # Allow CC to be a program name with arguments. | |
1236 compiler=$CC | |
1237 ])# _LT_AC_SYS_COMPILER | |
1238 | |
1239 | |
1240 # _LT_CC_BASENAME(CC) | |
1241 # ------------------- | |
1242 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
1243 AC_DEFUN([_LT_CC_BASENAME], | |
1244 [for cc_temp in $1""; do | |
1245 case $cc_temp in | |
1246 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | |
1247 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | |
1248 \-*) ;; | |
1249 *) break;; | |
1250 esac | |
1251 done | |
1252 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
1253 ]) | |
1254 | |
1255 | |
1256 # _LT_COMPILER_BOILERPLATE | |
1257 # ------------------------ | |
1258 # Check for compiler boilerplate output or warnings with | |
1259 # the simple compiler test code. | |
1260 AC_DEFUN([_LT_COMPILER_BOILERPLATE], | |
1261 [ac_outfile=conftest.$ac_objext | |
1262 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
1263 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
1264 _lt_compiler_boilerplate=`cat conftest.err` | |
1265 $rm conftest* | |
1266 ])# _LT_COMPILER_BOILERPLATE | |
1267 | |
1268 | |
1269 # _LT_LINKER_BOILERPLATE | |
1270 # ---------------------- | |
1271 # Check for linker boilerplate output or warnings with | |
1272 # the simple link test code. | |
1273 AC_DEFUN([_LT_LINKER_BOILERPLATE], | |
1274 [ac_outfile=conftest.$ac_objext | |
1275 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
1276 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
1277 _lt_linker_boilerplate=`cat conftest.err` | |
1278 $rm conftest* | |
1279 ])# _LT_LINKER_BOILERPLATE | |
1280 | |
1281 | |
1282 # _LT_AC_SYS_LIBPATH_AIX | |
1283 # ---------------------- | |
1284 # Links a minimal program and checks the executable | |
1285 # for the system default hardcoded library path. In most cases, | |
1286 # this is /usr/lib:/lib, but when the MPI compilers are used | |
1287 # the location of the communication and MPI libs are included too. | |
1288 # If we don't find anything, use the default library path according | |
1289 # to the aix ld manual. | |
1290 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], | |
1291 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | |
1292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
1293 }'` | |
1294 # Check for a 64-bit object if we didn't find anything. | |
1295 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; } | |
1296 }'`; fi],[]) | |
1297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
1298 ])# _LT_AC_SYS_LIBPATH_AIX | |
1299 | |
1300 | |
1301 # _LT_AC_SHELL_INIT(ARG) | |
1302 # ---------------------- | |
1303 AC_DEFUN([_LT_AC_SHELL_INIT], | |
1304 [ifdef([AC_DIVERSION_NOTICE], | |
1305 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | |
1306 [AC_DIVERT_PUSH(NOTICE)]) | |
1307 $1 | |
1308 AC_DIVERT_POP | |
1309 ])# _LT_AC_SHELL_INIT | |
1310 | |
1311 | |
1312 # _LT_AC_PROG_ECHO_BACKSLASH | |
1313 # -------------------------- | |
1314 # Add some code to the start of the generated configure script which | |
1315 # will find an echo command which doesn't interpret backslashes. | |
1316 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], | |
1317 [_LT_AC_SHELL_INIT([ | |
1318 # Check that we are running under the correct shell. | |
1319 SHELL=${CONFIG_SHELL-/bin/sh} | |
1320 | |
1321 case X$ECHO in | |
1322 X*--fallback-echo) | |
1323 # Remove one level of quotation (which was required for Make). | |
1324 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | |
1325 ;; | |
1326 esac | |
1327 | |
1328 echo=${ECHO-echo} | |
1329 if test "X[$]1" = X--no-reexec; then | |
1330 # Discard the --no-reexec flag, and continue. | |
1331 shift | |
1332 elif test "X[$]1" = X--fallback-echo; then | |
1333 # Avoid inline document here, it may be left over | |
1334 : | |
1335 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | |
1336 # Yippee, $echo works! | |
1337 : | |
1338 else | |
1339 # Restart under the correct shell. | |
1340 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
1341 fi | |
1342 | |
1343 if test "X[$]1" = X--fallback-echo; then | |
1344 # used as fallback echo | |
1345 shift | |
1346 cat <<EOF | |
1347 [$]* | |
1348 EOF | |
1349 exit 0 | |
1350 fi | |
1351 | |
1352 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
1353 # if CDPATH is set. | |
1354 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
1355 | |
1356 if test -z "$ECHO"; then | |
1357 if test "X${echo_test_string+set}" != Xset; then | |
1358 # find a string as large as possible, as long as the shell can cope with it | |
1359 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | |
1360 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
1361 if (echo_test_string=`eval $cmd`) 2>/dev/null && | |
1362 echo_test_string=`eval $cmd` && | |
1363 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
1364 then | |
1365 break | |
1366 fi | |
1367 done | |
1368 fi | |
1369 | |
1370 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
1371 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
1372 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1373 : | |
1374 else | |
1375 # The Solaris, AIX, and Digital Unix default echo programs unquote | |
1376 # backslashes. This makes it impossible to quote backslashes using | |
1377 # echo "$something" | sed 's/\\/\\\\/g' | |
1378 # | |
1379 # So, first we look for a working echo in the user's PATH. | |
1380 | |
1381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
1382 for dir in $PATH /usr/ucb; do | |
1383 IFS="$lt_save_ifs" | |
1384 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
1385 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
1386 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
1387 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1388 echo="$dir/echo" | |
1389 break | |
1390 fi | |
1391 done | |
1392 IFS="$lt_save_ifs" | |
1393 | |
1394 if test "X$echo" = Xecho; then | |
1395 # We didn't find a better echo, so look for alternatives. | |
1396 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
1397 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
1398 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1399 # This shell has a builtin print -r that does the trick. | |
1400 echo='print -r' | |
1401 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
1402 test "X$CONFIG_SHELL" != X/bin/ksh; then | |
1403 # If we have ksh, try running configure again with it. | |
1404 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
1405 export ORIGINAL_CONFIG_SHELL | |
1406 CONFIG_SHELL=/bin/ksh | |
1407 export CONFIG_SHELL | |
1408 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
1409 else | |
1410 # Try using printf. | |
1411 echo='printf %s\n' | |
1412 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
1413 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
1414 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1415 # Cool, printf works | |
1416 : | |
1417 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | |
1418 test "X$echo_testing_string" = 'X\t' && | |
1419 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
1420 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1421 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
1422 export CONFIG_SHELL | |
1423 SHELL="$CONFIG_SHELL" | |
1424 export SHELL | |
1425 echo="$CONFIG_SHELL [$]0 --fallback-echo" | |
1426 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | |
1427 test "X$echo_testing_string" = 'X\t' && | |
1428 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
1429 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1430 echo="$CONFIG_SHELL [$]0 --fallback-echo" | |
1431 else | |
1432 # maybe with a smaller string... | |
1433 prev=: | |
1434 | |
1435 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | |
1436 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
1437 then | |
1438 break | |
1439 fi | |
1440 prev="$cmd" | |
1441 done | |
1442 | |
1443 if test "$prev" != 'sed 50q "[$]0"'; then | |
1444 echo_test_string=`eval $prev` | |
1445 export echo_test_string | |
1446 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | |
1447 else | |
1448 # Oops. We lost completely, so just stick with echo. | |
1449 echo=echo | |
1450 fi | |
1451 fi | |
1452 fi | |
1453 fi | |
1454 fi | |
1455 fi | |
1456 | |
1457 # Copy echo and quote the copy suitably for passing to libtool from | |
1458 # the Makefile, instead of quoting the original, which is used later. | |
1459 ECHO=$echo | |
1460 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | |
1461 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | |
1462 fi | |
1463 | |
1464 AC_SUBST(ECHO) | |
1465 ])])# _LT_AC_PROG_ECHO_BACKSLASH | |
1466 | |
1467 | |
1468 # _LT_AC_LOCK | |
1469 # ----------- | |
1470 AC_DEFUN([_LT_AC_LOCK], | |
1471 [AC_ARG_ENABLE([libtool-lock], | |
1472 [AC_HELP_STRING([--disable-libtool-lock], | |
1473 [avoid locking (might break parallel builds)])]) | |
1474 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
1475 | |
1476 # Some flags need to be propagated to the compiler or linker for good | |
1477 # libtool support. | |
1478 case $host in | |
1479 ia64-*-hpux*) | |
1480 # Find out which ABI we are using. | |
1481 echo 'int i;' > conftest.$ac_ext | |
1482 if AC_TRY_EVAL(ac_compile); then | |
1483 case `/usr/bin/file conftest.$ac_objext` in | |
1484 *ELF-32*) | |
1485 HPUX_IA64_MODE="32" | |
1486 ;; | |
1487 *ELF-64*) | |
1488 HPUX_IA64_MODE="64" | |
1489 ;; | |
1490 esac | |
1491 fi | |
1492 rm -rf conftest* | |
1493 ;; | |
1494 *-*-irix6*) | |
1495 # Find out which ABI we are using. | |
1496 echo '[#]line __oline__ "configure"' > conftest.$ac_ext | |
1497 if AC_TRY_EVAL(ac_compile); then | |
1498 if test "$lt_cv_prog_gnu_ld" = yes; then | |
1499 case `/usr/bin/file conftest.$ac_objext` in | |
1500 *32-bit*) | |
1501 LD="${LD-ld} -melf32bsmip" | |
1502 ;; | |
1503 *N32*) | |
1504 LD="${LD-ld} -melf32bmipn32" | |
1505 ;; | |
1506 *64-bit*) | |
1507 LD="${LD-ld} -melf64bmip" | |
1508 ;; | |
1509 esac | |
1510 else | |
1511 case `/usr/bin/file conftest.$ac_objext` in | |
1512 *32-bit*) | |
1513 LD="${LD-ld} -32" | |
1514 ;; | |
1515 *N32*) | |
1516 LD="${LD-ld} -n32" | |
1517 ;; | |
1518 *64-bit*) | |
1519 LD="${LD-ld} -64" | |
1520 ;; | |
1521 esac | |
1522 fi | |
1523 fi | |
1524 rm -rf conftest* | |
1525 ;; | |
1526 | |
1527 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
1528 # Find out which ABI we are using. | |
1529 echo 'int i;' > conftest.$ac_ext | |
1530 if AC_TRY_EVAL(ac_compile); then | |
1531 case `/usr/bin/file conftest.o` in | |
1532 *32-bit*) | |
1533 case $host in | |
1534 x86_64-*linux*) | |
1535 LD="${LD-ld} -m elf_i386" | |
1536 ;; | |
1537 ppc64-*linux*|powerpc64-*linux*) | |
1538 LD="${LD-ld} -m elf32ppclinux" | |
1539 ;; | |
1540 s390x-*linux*) | |
1541 LD="${LD-ld} -m elf_s390" | |
1542 ;; | |
1543 sparc64-*linux*) | |
1544 LD="${LD-ld} -m elf32_sparc" | |
1545 ;; | |
1546 esac | |
1547 ;; | |
1548 *64-bit*) | |
1549 case $host in | |
1550 x86_64-*linux*) | |
1551 LD="${LD-ld} -m elf_x86_64" | |
1552 ;; | |
1553 ppc*-*linux*|powerpc*-*linux*) | |
1554 LD="${LD-ld} -m elf64ppc" | |
1555 ;; | |
1556 s390*-*linux*) | |
1557 LD="${LD-ld} -m elf64_s390" | |
1558 ;; | |
1559 sparc*-*linux*) | |
1560 LD="${LD-ld} -m elf64_sparc" | |
1561 ;; | |
1562 esac | |
1563 ;; | |
1564 esac | |
1565 fi | |
1566 rm -rf conftest* | |
1567 ;; | |
1568 | |
1569 *-*-sco3.2v5*) | |
1570 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
1571 SAVE_CFLAGS="$CFLAGS" | |
1572 CFLAGS="$CFLAGS -belf" | |
1573 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | |
1574 [AC_LANG_PUSH(C) | |
1575 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | |
1576 AC_LANG_POP]) | |
1577 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
1578 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
1579 CFLAGS="$SAVE_CFLAGS" | |
1580 fi | |
1581 ;; | |
1582 sparc*-*solaris*) | |
1583 # Find out which ABI we are using. | |
1584 echo 'int i;' > conftest.$ac_ext | |
1585 if AC_TRY_EVAL(ac_compile); then | |
1586 case `/usr/bin/file conftest.o` in | |
1587 *64-bit*) | |
1588 case $lt_cv_prog_gnu_ld in | |
1589 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
1590 *) LD="${LD-ld} -64" ;; | |
1591 esac | |
1592 ;; | |
1593 esac | |
1594 fi | |
1595 rm -rf conftest* | |
1596 ;; | |
1597 | |
1598 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | |
1599 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) | |
1600 AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
1601 AC_CHECK_TOOL(AS, as, false) | |
1602 AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
1603 ;; | |
1604 ]) | |
1605 esac | |
1606 | |
1607 need_locks="$enable_libtool_lock" | |
1608 | |
1609 ])# _LT_AC_LOCK | |
1610 | |
1611 | |
1612 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | |
1613 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | |
1614 # ---------------------------------------------------------------- | |
1615 # Check whether the given compiler option works | |
1616 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], | |
1617 [AC_REQUIRE([LT_AC_PROG_SED]) | |
1618 AC_CACHE_CHECK([$1], [$2], | |
1619 [$2=no | |
1620 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | |
1621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1622 lt_compiler_flag="$3" | |
1623 # Insert the option either (1) after the last *FLAGS variable, or | |
1624 # (2) before a word containing "conftest.", or (3) at the end. | |
1625 # Note that $ac_compile itself does not contain backslashes and begins | |
1626 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
1627 # The option is referenced via a variable to avoid confusing sed. | |
1628 lt_compile=`echo "$ac_compile" | $SED \ | |
1629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
1630 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | |
1631 -e 's:$: $lt_compiler_flag:'` | |
1632 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | |
1633 (eval "$lt_compile" 2>conftest.err) | |
1634 ac_status=$? | |
1635 cat conftest.err >&AS_MESSAGE_LOG_FD | |
1636 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
1637 if (exit $ac_status) && test -s "$ac_outfile"; then | |
1638 # The compiler can only warn and ignore the option if not recognized | |
1639 # So say no if there are warnings other than the usual output. | |
1640 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
1641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
1642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
1643 $2=yes | |
1644 fi | |
1645 fi | |
1646 $rm conftest* | |
1647 ]) | |
1648 | |
1649 if test x"[$]$2" = xyes; then | |
1650 ifelse([$5], , :, [$5]) | |
1651 else | |
1652 ifelse([$6], , :, [$6]) | |
1653 fi | |
1654 ])# AC_LIBTOOL_COMPILER_OPTION | |
1655 | |
1656 | |
1657 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | |
1658 # [ACTION-SUCCESS], [ACTION-FAILURE]) | |
1659 # ------------------------------------------------------------ | |
1660 # Check whether the given compiler option works | |
1661 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], | |
1662 [AC_CACHE_CHECK([$1], [$2], | |
1663 [$2=no | |
1664 save_LDFLAGS="$LDFLAGS" | |
1665 LDFLAGS="$LDFLAGS $3" | |
1666 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
1667 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
1668 # The linker can only warn and ignore the option if not recognized | |
1669 # So say no if there are warnings | |
1670 if test -s conftest.err; then | |
1671 # Append any errors to the config.log. | |
1672 cat conftest.err 1>&AS_MESSAGE_LOG_FD | |
1673 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
1674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
1675 if diff conftest.exp conftest.er2 >/dev/null; then | |
1676 $2=yes | |
1677 fi | |
1678 else | |
1679 $2=yes | |
1680 fi | |
1681 fi | |
1682 $rm conftest* | |
1683 LDFLAGS="$save_LDFLAGS" | |
1684 ]) | |
1685 | |
1686 if test x"[$]$2" = xyes; then | |
1687 ifelse([$4], , :, [$4]) | |
1688 else | |
1689 ifelse([$5], , :, [$5]) | |
1690 fi | |
1691 ])# AC_LIBTOOL_LINKER_OPTION | |
1692 | |
1693 | |
1694 # AC_LIBTOOL_SYS_MAX_CMD_LEN | |
1695 # -------------------------- | |
1696 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], | |
1697 [# find the maximum length of command line arguments | |
1698 AC_MSG_CHECKING([the maximum length of command line arguments]) | |
1699 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | |
1700 i=0 | |
1701 teststring="ABCD" | |
1702 | |
1703 case $build_os in | |
1704 msdosdjgpp*) | |
1705 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
1706 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
1707 # during glob expansion). Even if it were fixed, the result of this | |
1708 # check would be larger than it should be. | |
1709 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
1710 ;; | |
1711 | |
1712 gnu*) | |
1713 # Under GNU Hurd, this test is not required because there is | |
1714 # no limit to the length of command line arguments. | |
1715 # Libtool will interpret -1 as no limit whatsoever | |
1716 lt_cv_sys_max_cmd_len=-1; | |
1717 ;; | |
1718 | |
1719 cygwin* | mingw*) | |
1720 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
1721 # about 5 minutes as the teststring grows exponentially. | |
1722 # Worse, since 9x/ME are not pre-emptively multitasking, | |
1723 # you end up with a "frozen" computer, even though with patience | |
1724 # the test eventually succeeds (with a max line length of 256k). | |
1725 # Instead, let's just punt: use the minimum linelength reported by | |
1726 # all of the supported platforms: 8192 (on NT/2K/XP). | |
1727 lt_cv_sys_max_cmd_len=8192; | |
1728 ;; | |
1729 | |
1730 amigaos*) | |
1731 # On AmigaOS with pdksh, this test takes hours, literally. | |
1732 # So we just punt and use a minimum line length of 8192. | |
1733 lt_cv_sys_max_cmd_len=8192; | |
1734 ;; | |
1735 | |
1736 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
1737 # This has been around since 386BSD, at least. Likely further. | |
1738 if test -x /sbin/sysctl; then | |
1739 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
1740 elif test -x /usr/sbin/sysctl; then | |
1741 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
1742 else | |
1743 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
1744 fi | |
1745 # And add a safety zone | |
1746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
1747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
1748 ;; | |
1749 | |
1750 interix*) | |
1751 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
1752 lt_cv_sys_max_cmd_len=196608 | |
1753 ;; | |
1754 | |
1755 osf*) | |
1756 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
1757 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
1758 # nice to cause kernel panics so lets avoid the loop below. | |
1759 # First set a reasonable default. | |
1760 lt_cv_sys_max_cmd_len=16384 | |
1761 # | |
1762 if test -x /sbin/sysconfig; then | |
1763 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
1764 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
1765 esac | |
1766 fi | |
1767 ;; | |
1768 sco3.2v5*) | |
1769 lt_cv_sys_max_cmd_len=102400 | |
1770 ;; | |
1771 sysv5* | sco5v6* | sysv4.2uw2*) | |
1772 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
1773 if test -n "$kargmax"; then | |
1774 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | |
1775 else | |
1776 lt_cv_sys_max_cmd_len=32768 | |
1777 fi | |
1778 ;; | |
1779 *) | |
1780 # If test is not a shell built-in, we'll probably end up computing a | |
1781 # maximum length that is only half of the actual maximum length, but | |
1782 # we can't tell. | |
1783 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
1784 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ | |
1785 = "XX$teststring") >/dev/null 2>&1 && | |
1786 new_result=`expr "X$teststring" : ".*" 2>&1` && | |
1787 lt_cv_sys_max_cmd_len=$new_result && | |
1788 test $i != 17 # 1/2 MB should be enough | |
1789 do | |
1790 i=`expr $i + 1` | |
1791 teststring=$teststring$teststring | |
1792 done | |
1793 teststring= | |
1794 # Add a significant safety factor because C++ compilers can tack on massive | |
1795 # amounts of additional arguments before passing them to the linker. | |
1796 # It appears as though 1/2 is a usable value. | |
1797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
1798 ;; | |
1799 esac | |
1800 ]) | |
1801 if test -n $lt_cv_sys_max_cmd_len ; then | |
1802 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | |
1803 else | |
1804 AC_MSG_RESULT(none) | |
1805 fi | |
1806 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN | |
1807 | |
1808 | |
1809 # _LT_AC_CHECK_DLFCN | |
1810 # ------------------ | |
1811 AC_DEFUN([_LT_AC_CHECK_DLFCN], | |
1812 [AC_CHECK_HEADERS(dlfcn.h)dnl | |
1813 ])# _LT_AC_CHECK_DLFCN | |
1814 | |
1815 | |
1816 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | |
1817 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | |
1818 # --------------------------------------------------------------------- | |
1819 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | |
1820 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | |
1821 if test "$cross_compiling" = yes; then : | |
1822 [$4] | |
1823 else | |
1824 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
1825 lt_status=$lt_dlunknown | |
1826 cat > conftest.$ac_ext <<EOF | |
1827 [#line __oline__ "configure" | |
1828 #include "confdefs.h" | |
1829 | |
1830 #if HAVE_DLFCN_H | |
1831 #include <dlfcn.h> | |
1832 #endif | |
1833 | |
1834 #include <stdio.h> | |
1835 | |
1836 #ifdef RTLD_GLOBAL | |
1837 # define LT_DLGLOBAL RTLD_GLOBAL | |
1838 #else | |
1839 # ifdef DL_GLOBAL | |
1840 # define LT_DLGLOBAL DL_GLOBAL | |
1841 # else | |
1842 # define LT_DLGLOBAL 0 | |
1843 # endif | |
1844 #endif | |
1845 | |
1846 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
1847 find out it does not work in some platform. */ | |
1848 #ifndef LT_DLLAZY_OR_NOW | |
1849 # ifdef RTLD_LAZY | |
1850 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
1851 # else | |
1852 # ifdef DL_LAZY | |
1853 # define LT_DLLAZY_OR_NOW DL_LAZY | |
1854 # else | |
1855 # ifdef RTLD_NOW | |
1856 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
1857 # else | |
1858 # ifdef DL_NOW | |
1859 # define LT_DLLAZY_OR_NOW DL_NOW | |
1860 # else | |
1861 # define LT_DLLAZY_OR_NOW 0 | |
1862 # endif | |
1863 # endif | |
1864 # endif | |
1865 # endif | |
1866 #endif | |
1867 | |
1868 #ifdef __cplusplus | |
1869 extern "C" void exit (int); | |
1870 #endif | |
1871 | |
1872 void fnord() { int i=42;} | |
1873 int main () | |
1874 { | |
1875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
1876 int status = $lt_dlunknown; | |
1877 | |
1878 if (self) | |
1879 { | |
1880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
1881 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
1882 /* dlclose (self); */ | |
1883 } | |
1884 else | |
1885 puts (dlerror ()); | |
1886 | |
1887 exit (status); | |
1888 }] | |
1889 EOF | |
1890 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | |
1891 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | |
1892 lt_status=$? | |
1893 case x$lt_status in | |
1894 x$lt_dlno_uscore) $1 ;; | |
1895 x$lt_dlneed_uscore) $2 ;; | |
1896 x$lt_dlunknown|x*) $3 ;; | |
1897 esac | |
1898 else : | |
1899 # compilation failed | |
1900 $3 | |
1901 fi | |
1902 fi | |
1903 rm -fr conftest* | |
1904 ])# _LT_AC_TRY_DLOPEN_SELF | |
1905 | |
1906 | |
1907 # AC_LIBTOOL_DLOPEN_SELF | |
1908 # ---------------------- | |
1909 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | |
1910 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | |
1911 if test "x$enable_dlopen" != xyes; then | |
1912 enable_dlopen=unknown | |
1913 enable_dlopen_self=unknown | |
1914 enable_dlopen_self_static=unknown | |
1915 else | |
1916 lt_cv_dlopen=no | |
1917 lt_cv_dlopen_libs= | |
1918 | |
1919 case $host_os in | |
1920 beos*) | |
1921 lt_cv_dlopen="load_add_on" | |
1922 lt_cv_dlopen_libs= | |
1923 lt_cv_dlopen_self=yes | |
1924 ;; | |
1925 | |
1926 mingw* | pw32*) | |
1927 lt_cv_dlopen="LoadLibrary" | |
1928 lt_cv_dlopen_libs= | |
1929 ;; | |
1930 | |
1931 cygwin*) | |
1932 lt_cv_dlopen="dlopen" | |
1933 lt_cv_dlopen_libs= | |
1934 ;; | |
1935 | |
1936 darwin*) | |
1937 # if libdl is installed we need to link against it | |
1938 AC_CHECK_LIB([dl], [dlopen], | |
1939 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | |
1940 lt_cv_dlopen="dyld" | |
1941 lt_cv_dlopen_libs= | |
1942 lt_cv_dlopen_self=yes | |
1943 ]) | |
1944 ;; | |
1945 | |
1946 *) | |
1947 AC_CHECK_FUNC([shl_load], | |
1948 [lt_cv_dlopen="shl_load"], | |
1949 [AC_CHECK_LIB([dld], [shl_load], | |
1950 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], | |
1951 [AC_CHECK_FUNC([dlopen], | |
1952 [lt_cv_dlopen="dlopen"], | |
1953 [AC_CHECK_LIB([dl], [dlopen], | |
1954 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | |
1955 [AC_CHECK_LIB([svld], [dlopen], | |
1956 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | |
1957 [AC_CHECK_LIB([dld], [dld_link], | |
1958 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) | |
1959 ]) | |
1960 ]) | |
1961 ]) | |
1962 ]) | |
1963 ]) | |
1964 ;; | |
1965 esac | |
1966 | |
1967 if test "x$lt_cv_dlopen" != xno; then | |
1968 enable_dlopen=yes | |
1969 else | |
1970 enable_dlopen=no | |
1971 fi | |
1972 | |
1973 case $lt_cv_dlopen in | |
1974 dlopen) | |
1975 save_CPPFLAGS="$CPPFLAGS" | |
1976 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
1977 | |
1978 save_LDFLAGS="$LDFLAGS" | |
1979 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
1980 | |
1981 save_LIBS="$LIBS" | |
1982 LIBS="$lt_cv_dlopen_libs $LIBS" | |
1983 | |
1984 AC_CACHE_CHECK([whether a program can dlopen itself], | |
1985 lt_cv_dlopen_self, [dnl | |
1986 _LT_AC_TRY_DLOPEN_SELF( | |
1987 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | |
1988 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | |
1989 ]) | |
1990 | |
1991 if test "x$lt_cv_dlopen_self" = xyes; then | |
1992 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
1993 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | |
1994 lt_cv_dlopen_self_static, [dnl | |
1995 _LT_AC_TRY_DLOPEN_SELF( | |
1996 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | |
1997 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | |
1998 ]) | |
1999 fi | |
2000 | |
2001 CPPFLAGS="$save_CPPFLAGS" | |
2002 LDFLAGS="$save_LDFLAGS" | |
2003 LIBS="$save_LIBS" | |
2004 ;; | |
2005 esac | |
2006 | |
2007 case $lt_cv_dlopen_self in | |
2008 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
2009 *) enable_dlopen_self=unknown ;; | |
2010 esac | |
2011 | |
2012 case $lt_cv_dlopen_self_static in | |
2013 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
2014 *) enable_dlopen_self_static=unknown ;; | |
2015 esac | |
2016 fi | |
2017 ])# AC_LIBTOOL_DLOPEN_SELF | |
2018 | |
2019 | |
2020 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) | |
2021 # --------------------------------- | |
2022 # Check to see if options -c and -o are simultaneously supported by compiler | |
2023 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], | |
2024 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | |
2025 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | |
2026 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | |
2027 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | |
2028 $rm -r conftest 2>/dev/null | |
2029 mkdir conftest | |
2030 cd conftest | |
2031 mkdir out | |
2032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
2033 | |
2034 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
2035 # Insert the option either (1) after the last *FLAGS variable, or | |
2036 # (2) before a word containing "conftest.", or (3) at the end. | |
2037 # Note that $ac_compile itself does not contain backslashes and begins | |
2038 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
2039 lt_compile=`echo "$ac_compile" | $SED \ | |
2040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
2041 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | |
2042 -e 's:$: $lt_compiler_flag:'` | |
2043 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | |
2044 (eval "$lt_compile" 2>out/conftest.err) | |
2045 ac_status=$? | |
2046 cat out/conftest.err >&AS_MESSAGE_LOG_FD | |
2047 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
2048 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
2049 then | |
2050 # The compiler can only warn and ignore the option if not recognized | |
2051 # So say no if there are warnings | |
2052 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
2053 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
2054 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
2055 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | |
2056 fi | |
2057 fi | |
2058 chmod u+w . 2>&AS_MESSAGE_LOG_FD | |
2059 $rm conftest* | |
2060 # SGI C++ compiler will create directory out/ii_files/ for | |
2061 # template instantiation | |
2062 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
2063 $rm out/* && rmdir out | |
2064 cd .. | |
2065 rmdir conftest | |
2066 $rm conftest* | |
2067 ]) | |
2068 ])# AC_LIBTOOL_PROG_CC_C_O | |
2069 | |
2070 | |
2071 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) | |
2072 # ----------------------------------------- | |
2073 # Check to see if we can do hard links to lock some files if needed | |
2074 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], | |
2075 [AC_REQUIRE([_LT_AC_LOCK])dnl | |
2076 | |
2077 hard_links="nottested" | |
2078 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | |
2079 # do not overwrite the value of need_locks provided by the user | |
2080 AC_MSG_CHECKING([if we can lock with hard links]) | |
2081 hard_links=yes | |
2082 $rm conftest* | |
2083 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
2084 touch conftest.a | |
2085 ln conftest.a conftest.b 2>&5 || hard_links=no | |
2086 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
2087 AC_MSG_RESULT([$hard_links]) | |
2088 if test "$hard_links" = no; then | |
2089 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | |
2090 need_locks=warn | |
2091 fi | |
2092 else | |
2093 need_locks=no | |
2094 fi | |
2095 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS | |
2096 | |
2097 | |
2098 # AC_LIBTOOL_OBJDIR | |
2099 # ----------------- | |
2100 AC_DEFUN([AC_LIBTOOL_OBJDIR], | |
2101 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | |
2102 [rm -f .libs 2>/dev/null | |
2103 mkdir .libs 2>/dev/null | |
2104 if test -d .libs; then | |
2105 lt_cv_objdir=.libs | |
2106 else | |
2107 # MS-DOS does not allow filenames that begin with a dot. | |
2108 lt_cv_objdir=_libs | |
2109 fi | |
2110 rmdir .libs 2>/dev/null]) | |
2111 objdir=$lt_cv_objdir | |
2112 ])# AC_LIBTOOL_OBJDIR | |
2113 | |
2114 | |
2115 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) | |
2116 # ---------------------------------------------- | |
2117 # Check hardcoding attributes. | |
2118 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], | |
2119 [AC_MSG_CHECKING([how to hardcode library paths into programs]) | |
2120 _LT_AC_TAGVAR(hardcode_action, $1)= | |
2121 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | |
2122 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ | |
2123 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | |
2124 | |
2125 # We can hardcode non-existant directories. | |
2126 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && | |
2127 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
2128 # have to relink, otherwise we might link with an installed library | |
2129 # when we should be linking with a yet-to-be-installed one | |
2130 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && | |
2131 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then | |
2132 # Linking always hardcodes the temporary library directory. | |
2133 _LT_AC_TAGVAR(hardcode_action, $1)=relink | |
2134 else | |
2135 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
2136 _LT_AC_TAGVAR(hardcode_action, $1)=immediate | |
2137 fi | |
2138 else | |
2139 # We cannot hardcode anything, or else we can only hardcode existing | |
2140 # directories. | |
2141 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported | |
2142 fi | |
2143 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) | |
2144 | |
2145 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then | |
2146 # Fast installation is not supported | |
2147 enable_fast_install=no | |
2148 elif test "$shlibpath_overrides_runpath" = yes || | |
2149 test "$enable_shared" = no; then | |
2150 # Fast installation is not necessary | |
2151 enable_fast_install=needless | |
2152 fi | |
2153 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH | |
2154 | |
2155 | |
2156 # AC_LIBTOOL_SYS_LIB_STRIP | |
2157 # ------------------------ | |
2158 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], | |
2159 [striplib= | |
2160 old_striplib= | |
2161 AC_MSG_CHECKING([whether stripping libraries is possible]) | |
2162 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
2163 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
2164 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
2165 AC_MSG_RESULT([yes]) | |
2166 else | |
2167 # FIXME - insert some real tests, host_os isn't really good enough | |
2168 case $host_os in | |
2169 darwin*) | |
2170 if test -n "$STRIP" ; then | |
2171 striplib="$STRIP -x" | |
2172 AC_MSG_RESULT([yes]) | |
2173 else | |
2174 AC_MSG_RESULT([no]) | |
2175 fi | |
2176 ;; | |
2177 *) | |
2178 AC_MSG_RESULT([no]) | |
2179 ;; | |
2180 esac | |
2181 fi | |
2182 ])# AC_LIBTOOL_SYS_LIB_STRIP | |
2183 | |
2184 | |
2185 # AC_LIBTOOL_SYS_DYNAMIC_LINKER | |
2186 # ----------------------------- | |
2187 # PORTME Fill in your ld.so characteristics | |
2188 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], | |
2189 [AC_MSG_CHECKING([dynamic linker characteristics]) | |
2190 library_names_spec= | |
2191 libname_spec='lib$name' | |
2192 soname_spec= | |
2193 shrext_cmds=".so" | |
2194 postinstall_cmds= | |
2195 postuninstall_cmds= | |
2196 finish_cmds= | |
2197 finish_eval= | |
2198 shlibpath_var= | |
2199 shlibpath_overrides_runpath=unknown | |
2200 version_type=none | |
2201 dynamic_linker="$host_os ld.so" | |
2202 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
2203 if test "$GCC" = yes; then | |
2204 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
2205 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
2206 # if the path contains ";" then we assume it to be the separator | |
2207 # otherwise default to the standard path separator (i.e. ":") - it is | |
2208 # assumed that no part of a normal pathname contains ";" but that should | |
2209 # okay in the real world where ";" in dirpaths is itself problematic. | |
2210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
2211 else | |
2212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
2213 fi | |
2214 else | |
2215 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
2216 fi | |
2217 need_lib_prefix=unknown | |
2218 hardcode_into_libs=no | |
2219 | |
2220 # when you set need_version to no, make sure it does not cause -set_version | |
2221 # flags to be left without arguments | |
2222 need_version=unknown | |
2223 | |
2224 case $host_os in | |
2225 aix3*) | |
2226 version_type=linux | |
2227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
2228 shlibpath_var=LIBPATH | |
2229 | |
2230 # AIX 3 has no versioning support, so we append a major version to the name. | |
2231 soname_spec='${libname}${release}${shared_ext}$major' | |
2232 ;; | |
2233 | |
2234 aix4* | aix5*) | |
2235 version_type=linux | |
2236 need_lib_prefix=no | |
2237 need_version=no | |
2238 hardcode_into_libs=yes | |
2239 if test "$host_cpu" = ia64; then | |
2240 # AIX 5 supports IA64 | |
2241 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
2242 shlibpath_var=LD_LIBRARY_PATH | |
2243 else | |
2244 # With GCC up to 2.95.x, collect2 would create an import file | |
2245 # for dependence libraries. The import file would start with | |
2246 # the line `#! .'. This would cause the generated library to | |
2247 # depend on `.', always an invalid library. This was fixed in | |
2248 # development snapshots of GCC prior to 3.0. | |
2249 case $host_os in | |
2250 aix4 | aix4.[[01]] | aix4.[[01]].*) | |
2251 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
2252 echo ' yes ' | |
2253 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
2254 : | |
2255 else | |
2256 can_build_shared=no | |
2257 fi | |
2258 ;; | |
2259 esac | |
2260 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
2261 # soname into executable. Probably we can add versioning support to | |
2262 # collect2, so additional links can be useful in future. | |
2263 if test "$aix_use_runtimelinking" = yes; then | |
2264 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
2265 # instead of lib<name>.a to let people know that these are not | |
2266 # typical AIX shared libraries. | |
2267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2268 else | |
2269 # We preserve .a as extension for shared libraries through AIX4.2 | |
2270 # and later when we are not doing run time linking. | |
2271 library_names_spec='${libname}${release}.a $libname.a' | |
2272 soname_spec='${libname}${release}${shared_ext}$major' | |
2273 fi | |
2274 shlibpath_var=LIBPATH | |
2275 fi | |
2276 ;; | |
2277 | |
2278 amigaos*) | |
2279 library_names_spec='$libname.ixlibrary $libname.a' | |
2280 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
2281 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' | |
2282 ;; | |
2283 | |
2284 beos*) | |
2285 library_names_spec='${libname}${shared_ext}' | |
2286 dynamic_linker="$host_os ld.so" | |
2287 shlibpath_var=LIBRARY_PATH | |
2288 ;; | |
2289 | |
2290 bsdi[[45]]*) | |
2291 version_type=linux | |
2292 need_version=no | |
2293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2294 soname_spec='${libname}${release}${shared_ext}$major' | |
2295 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
2296 shlibpath_var=LD_LIBRARY_PATH | |
2297 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
2298 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
2299 # the default ld.so.conf also contains /usr/contrib/lib and | |
2300 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
2301 # libtool to hard-code these into programs | |
2302 ;; | |
2303 | |
2304 cygwin* | mingw* | pw32*) | |
2305 version_type=windows | |
2306 shrext_cmds=".dll" | |
2307 need_version=no | |
2308 need_lib_prefix=no | |
2309 | |
2310 case $GCC,$host_os in | |
2311 yes,cygwin* | yes,mingw* | yes,pw32*) | |
2312 library_names_spec='$libname.dll.a' | |
2313 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
2314 postinstall_cmds='base_file=`basename \${file}`~ | |
2315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
2316 dldir=$destdir/`dirname \$dlpath`~ | |
2317 test -d \$dldir || mkdir -p \$dldir~ | |
2318 $install_prog $dir/$dlname \$dldir/$dlname~ | |
2319 chmod a+x \$dldir/$dlname' | |
2320 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
2321 dlpath=$dir/\$dldll~ | |
2322 $rm \$dlpath' | |
2323 shlibpath_overrides_runpath=yes | |
2324 | |
2325 case $host_os in | |
2326 cygwin*) | |
2327 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
2328 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | |
2329 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
2330 ;; | |
2331 mingw*) | |
2332 # MinGW DLLs use traditional 'lib' prefix | |
2333 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | |
2334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
2335 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then | |
2336 # It is most probably a Windows format PATH printed by | |
2337 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
2338 # path with ; separators, and with drive letters. We can handle the | |
2339 # drive letters (cygwin fileutils understands them), so leave them, | |
2340 # especially as we might pass files found there to a mingw objdump, | |
2341 # which wouldn't understand a cygwinified path. Ahh. | |
2342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
2343 else | |
2344 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
2345 fi | |
2346 ;; | |
2347 pw32*) | |
2348 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
2349 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | |
2350 ;; | |
2351 esac | |
2352 ;; | |
2353 | |
2354 *) | |
2355 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
2356 ;; | |
2357 esac | |
2358 dynamic_linker='Win32 ld.exe' | |
2359 # FIXME: first we should search . and the directory the executable is in | |
2360 shlibpath_var=PATH | |
2361 ;; | |
2362 | |
2363 darwin* | rhapsody*) | |
2364 dynamic_linker="$host_os dyld" | |
2365 version_type=darwin | |
2366 need_lib_prefix=no | |
2367 need_version=no | |
2368 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
2369 soname_spec='${libname}${release}${major}$shared_ext' | |
2370 shlibpath_overrides_runpath=yes | |
2371 shlibpath_var=DYLD_LIBRARY_PATH | |
2372 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
2373 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
2374 if test "$GCC" = yes; then | |
2375 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"` | |
2376 else | |
2377 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
2378 fi | |
2379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
2380 ;; | |
2381 | |
2382 dgux*) | |
2383 version_type=linux | |
2384 need_lib_prefix=no | |
2385 need_version=no | |
2386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
2387 soname_spec='${libname}${release}${shared_ext}$major' | |
2388 shlibpath_var=LD_LIBRARY_PATH | |
2389 ;; | |
2390 | |
2391 freebsd1*) | |
2392 dynamic_linker=no | |
2393 ;; | |
2394 | |
2395 kfreebsd*-gnu) | |
2396 version_type=linux | |
2397 need_lib_prefix=no | |
2398 need_version=no | |
2399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
2400 soname_spec='${libname}${release}${shared_ext}$major' | |
2401 shlibpath_var=LD_LIBRARY_PATH | |
2402 shlibpath_overrides_runpath=no | |
2403 hardcode_into_libs=yes | |
2404 dynamic_linker='GNU ld.so' | |
2405 ;; | |
2406 | |
2407 freebsd* | dragonfly*) | |
2408 # DragonFly does not have aout. When/if they implement a new | |
2409 # versioning mechanism, adjust this. | |
2410 if test -x /usr/bin/objformat; then | |
2411 objformat=`/usr/bin/objformat` | |
2412 else | |
2413 case $host_os in | |
2414 freebsd[[123]]*) objformat=aout ;; | |
2415 *) objformat=elf ;; | |
2416 esac | |
2417 fi | |
2418 version_type=freebsd-$objformat | |
2419 case $version_type in | |
2420 freebsd-elf*) | |
2421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
2422 need_version=no | |
2423 need_lib_prefix=no | |
2424 ;; | |
2425 freebsd-*) | |
2426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
2427 need_version=yes | |
2428 ;; | |
2429 esac | |
2430 shlibpath_var=LD_LIBRARY_PATH | |
2431 case $host_os in | |
2432 freebsd2*) | |
2433 shlibpath_overrides_runpath=yes | |
2434 ;; | |
2435 freebsd3.[[01]]* | freebsdelf3.[[01]]*) | |
2436 shlibpath_overrides_runpath=yes | |
2437 hardcode_into_libs=yes | |
2438 ;; | |
2439 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | |
2440 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | |
2441 shlibpath_overrides_runpath=no | |
2442 hardcode_into_libs=yes | |
2443 ;; | |
2444 freebsd*) # from 4.6 on | |
2445 shlibpath_overrides_runpath=yes | |
2446 hardcode_into_libs=yes | |
2447 ;; | |
2448 esac | |
2449 ;; | |
2450 | |
2451 gnu*) | |
2452 version_type=linux | |
2453 need_lib_prefix=no | |
2454 need_version=no | |
2455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
2456 soname_spec='${libname}${release}${shared_ext}$major' | |
2457 shlibpath_var=LD_LIBRARY_PATH | |
2458 hardcode_into_libs=yes | |
2459 ;; | |
2460 | |
2461 hpux9* | hpux10* | hpux11*) | |
2462 # Give a soname corresponding to the major version so that dld.sl refuses to | |
2463 # link against other versions. | |
2464 version_type=sunos | |
2465 need_lib_prefix=no | |
2466 need_version=no | |
2467 case $host_cpu in | |
2468 ia64*) | |
2469 shrext_cmds='.so' | |
2470 hardcode_into_libs=yes | |
2471 dynamic_linker="$host_os dld.so" | |
2472 shlibpath_var=LD_LIBRARY_PATH | |
2473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
2474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2475 soname_spec='${libname}${release}${shared_ext}$major' | |
2476 if test "X$HPUX_IA64_MODE" = X32; then | |
2477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
2478 else | |
2479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
2480 fi | |
2481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
2482 ;; | |
2483 hppa*64*) | |
2484 shrext_cmds='.sl' | |
2485 hardcode_into_libs=yes | |
2486 dynamic_linker="$host_os dld.sl" | |
2487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
2488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
2489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2490 soname_spec='${libname}${release}${shared_ext}$major' | |
2491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
2492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
2493 ;; | |
2494 *) | |
2495 shrext_cmds='.sl' | |
2496 dynamic_linker="$host_os dld.sl" | |
2497 shlibpath_var=SHLIB_PATH | |
2498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
2499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2500 soname_spec='${libname}${release}${shared_ext}$major' | |
2501 ;; | |
2502 esac | |
2503 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
2504 postinstall_cmds='chmod 555 $lib' | |
2505 ;; | |
2506 | |
2507 interix3*) | |
2508 version_type=linux | |
2509 need_lib_prefix=no | |
2510 need_version=no | |
2511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
2512 soname_spec='${libname}${release}${shared_ext}$major' | |
2513 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
2514 shlibpath_var=LD_LIBRARY_PATH | |
2515 shlibpath_overrides_runpath=no | |
2516 hardcode_into_libs=yes | |
2517 ;; | |
2518 | |
2519 irix5* | irix6* | nonstopux*) | |
2520 case $host_os in | |
2521 nonstopux*) version_type=nonstopux ;; | |
2522 *) | |
2523 if test "$lt_cv_prog_gnu_ld" = yes; then | |
2524 version_type=linux | |
2525 else | |
2526 version_type=irix | |
2527 fi ;; | |
2528 esac | |
2529 need_lib_prefix=no | |
2530 need_version=no | |
2531 soname_spec='${libname}${release}${shared_ext}$major' | |
2532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
2533 case $host_os in | |
2534 irix5* | nonstopux*) | |
2535 libsuff= shlibsuff= | |
2536 ;; | |
2537 *) | |
2538 case $LD in # libtool.m4 will add one of these switches to LD | |
2539 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
2540 libsuff= shlibsuff= libmagic=32-bit;; | |
2541 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
2542 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
2543 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
2544 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
2545 *) libsuff= shlibsuff= libmagic=never-match;; | |
2546 esac | |
2547 ;; | |
2548 esac | |
2549 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
2550 shlibpath_overrides_runpath=no | |
2551 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
2552 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
2553 hardcode_into_libs=yes | |
2554 ;; | |
2555 | |
2556 # No shared lib support for Linux oldld, aout, or coff. | |
2557 linux*oldld* | linux*aout* | linux*coff*) | |
2558 dynamic_linker=no | |
2559 ;; | |
2560 | |
2561 # This must be Linux ELF. | |
2562 linux*) | |
2563 version_type=linux | |
2564 need_lib_prefix=no | |
2565 need_version=no | |
2566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2567 soname_spec='${libname}${release}${shared_ext}$major' | |
2568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
2569 shlibpath_var=LD_LIBRARY_PATH | |
2570 shlibpath_overrides_runpath=no | |
2571 # This implies no fast_install, which is unacceptable. | |
2572 # Some rework will be needed to allow for fast_install | |
2573 # before this can be enabled. | |
2574 hardcode_into_libs=yes | |
2575 | |
2576 # Append ld.so.conf contents to the search path | |
2577 if test -f /etc/ld.so.conf; then | |
2578 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
2579 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
2580 fi | |
2581 | |
2582 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
2583 # powerpc, because MkLinux only supported shared libraries with the | |
2584 # GNU dynamic linker. Since this was broken with cross compilers, | |
2585 # most powerpc-linux boxes support dynamic linking these days and | |
2586 # people can always --disable-shared, the test was removed, and we | |
2587 # assume the GNU/Linux dynamic linker is in use. | |
2588 dynamic_linker='GNU/Linux ld.so' | |
2589 ;; | |
2590 | |
2591 netbsdelf*-gnu) | |
2592 version_type=linux | |
2593 need_lib_prefix=no | |
2594 need_version=no | |
2595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
2596 soname_spec='${libname}${release}${shared_ext}$major' | |
2597 shlibpath_var=LD_LIBRARY_PATH | |
2598 shlibpath_overrides_runpath=no | |
2599 hardcode_into_libs=yes | |
2600 dynamic_linker='NetBSD ld.elf_so' | |
2601 ;; | |
2602 | |
2603 knetbsd*-gnu) | |
2604 version_type=linux | |
2605 need_lib_prefix=no | |
2606 need_version=no | |
2607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
2608 soname_spec='${libname}${release}${shared_ext}$major' | |
2609 shlibpath_var=LD_LIBRARY_PATH | |
2610 shlibpath_overrides_runpath=no | |
2611 hardcode_into_libs=yes | |
2612 dynamic_linker='GNU ld.so' | |
2613 ;; | |
2614 | |
2615 netbsd*) | |
2616 version_type=sunos | |
2617 need_lib_prefix=no | |
2618 need_version=no | |
2619 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
2620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
2621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
2622 dynamic_linker='NetBSD (a.out) ld.so' | |
2623 else | |
2624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
2625 soname_spec='${libname}${release}${shared_ext}$major' | |
2626 dynamic_linker='NetBSD ld.elf_so' | |
2627 fi | |
2628 shlibpath_var=LD_LIBRARY_PATH | |
2629 shlibpath_overrides_runpath=yes | |
2630 hardcode_into_libs=yes | |
2631 ;; | |
2632 | |
2633 newsos6) | |
2634 version_type=linux | |
2635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2636 shlibpath_var=LD_LIBRARY_PATH | |
2637 shlibpath_overrides_runpath=yes | |
2638 ;; | |
2639 | |
2640 nto-qnx*) | |
2641 version_type=linux | |
2642 need_lib_prefix=no | |
2643 need_version=no | |
2644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2645 soname_spec='${libname}${release}${shared_ext}$major' | |
2646 shlibpath_var=LD_LIBRARY_PATH | |
2647 shlibpath_overrides_runpath=yes | |
2648 ;; | |
2649 | |
2650 openbsd*) | |
2651 version_type=sunos | |
2652 sys_lib_dlsearch_path_spec="/usr/lib" | |
2653 need_lib_prefix=no | |
2654 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
2655 case $host_os in | |
2656 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
2657 *) need_version=no ;; | |
2658 esac | |
2659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
2660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
2661 shlibpath_var=LD_LIBRARY_PATH | |
2662 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
2663 case $host_os in | |
2664 openbsd2.[[89]] | openbsd2.[[89]].*) | |
2665 shlibpath_overrides_runpath=no | |
2666 ;; | |
2667 *) | |
2668 shlibpath_overrides_runpath=yes | |
2669 ;; | |
2670 esac | |
2671 else | |
2672 shlibpath_overrides_runpath=yes | |
2673 fi | |
2674 ;; | |
2675 | |
2676 os2*) | |
2677 libname_spec='$name' | |
2678 shrext_cmds=".dll" | |
2679 need_lib_prefix=no | |
2680 library_names_spec='$libname${shared_ext} $libname.a' | |
2681 dynamic_linker='OS/2 ld.exe' | |
2682 shlibpath_var=LIBPATH | |
2683 ;; | |
2684 | |
2685 osf3* | osf4* | osf5*) | |
2686 version_type=osf | |
2687 need_lib_prefix=no | |
2688 need_version=no | |
2689 soname_spec='${libname}${release}${shared_ext}$major' | |
2690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2691 shlibpath_var=LD_LIBRARY_PATH | |
2692 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
2693 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
2694 ;; | |
2695 | |
2696 solaris*) | |
2697 version_type=linux | |
2698 need_lib_prefix=no | |
2699 need_version=no | |
2700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2701 soname_spec='${libname}${release}${shared_ext}$major' | |
2702 shlibpath_var=LD_LIBRARY_PATH | |
2703 shlibpath_overrides_runpath=yes | |
2704 hardcode_into_libs=yes | |
2705 # ldd complains unless libraries are executable | |
2706 postinstall_cmds='chmod +x $lib' | |
2707 ;; | |
2708 | |
2709 sunos4*) | |
2710 version_type=sunos | |
2711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
2712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
2713 shlibpath_var=LD_LIBRARY_PATH | |
2714 shlibpath_overrides_runpath=yes | |
2715 if test "$with_gnu_ld" = yes; then | |
2716 need_lib_prefix=no | |
2717 fi | |
2718 need_version=yes | |
2719 ;; | |
2720 | |
2721 sysv4 | sysv4.3*) | |
2722 version_type=linux | |
2723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2724 soname_spec='${libname}${release}${shared_ext}$major' | |
2725 shlibpath_var=LD_LIBRARY_PATH | |
2726 case $host_vendor in | |
2727 sni) | |
2728 shlibpath_overrides_runpath=no | |
2729 need_lib_prefix=no | |
2730 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
2731 runpath_var=LD_RUN_PATH | |
2732 ;; | |
2733 siemens) | |
2734 need_lib_prefix=no | |
2735 ;; | |
2736 motorola) | |
2737 need_lib_prefix=no | |
2738 need_version=no | |
2739 shlibpath_overrides_runpath=no | |
2740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
2741 ;; | |
2742 esac | |
2743 ;; | |
2744 | |
2745 sysv4*MP*) | |
2746 if test -d /usr/nec ;then | |
2747 version_type=linux | |
2748 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
2749 soname_spec='$libname${shared_ext}.$major' | |
2750 shlibpath_var=LD_LIBRARY_PATH | |
2751 fi | |
2752 ;; | |
2753 | |
2754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
2755 version_type=freebsd-elf | |
2756 need_lib_prefix=no | |
2757 need_version=no | |
2758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
2759 soname_spec='${libname}${release}${shared_ext}$major' | |
2760 shlibpath_var=LD_LIBRARY_PATH | |
2761 hardcode_into_libs=yes | |
2762 if test "$with_gnu_ld" = yes; then | |
2763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
2764 shlibpath_overrides_runpath=no | |
2765 else | |
2766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
2767 shlibpath_overrides_runpath=yes | |
2768 case $host_os in | |
2769 sco3.2v5*) | |
2770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
2771 ;; | |
2772 esac | |
2773 fi | |
2774 sys_lib_dlsearch_path_spec='/usr/lib' | |
2775 ;; | |
2776 | |
2777 uts4*) | |
2778 version_type=linux | |
2779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2780 soname_spec='${libname}${release}${shared_ext}$major' | |
2781 shlibpath_var=LD_LIBRARY_PATH | |
2782 ;; | |
2783 | |
2784 *) | |
2785 dynamic_linker=no | |
2786 ;; | |
2787 esac | |
2788 AC_MSG_RESULT([$dynamic_linker]) | |
2789 test "$dynamic_linker" = no && can_build_shared=no | |
2790 | |
2791 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
2792 if test "$GCC" = yes; then | |
2793 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
2794 fi | |
2795 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER | |
2796 | |
2797 | |
2798 # _LT_AC_TAGCONFIG | |
2799 # ---------------- | |
2800 AC_DEFUN([_LT_AC_TAGCONFIG], | |
2801 [AC_ARG_WITH([tags], | |
2802 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], | |
2803 [include additional configurations @<:@automatic@:>@])], | |
2804 [tagnames="$withval"]) | |
2805 | |
2806 if test -f "$ltmain" && test -n "$tagnames"; then | |
2807 if test ! -f "${ofile}"; then | |
2808 AC_MSG_WARN([output file `$ofile' does not exist]) | |
2809 fi | |
2810 | |
2811 if test -z "$LTCC"; then | |
2812 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
2813 if test -z "$LTCC"; then | |
2814 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) | |
2815 else | |
2816 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) | |
2817 fi | |
2818 fi | |
2819 if test -z "$LTCFLAGS"; then | |
2820 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
2821 fi | |
2822 | |
2823 # Extract list of available tagged configurations in $ofile. | |
2824 # Note that this assumes the entire list is on one line. | |
2825 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
2826 | |
2827 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
2828 for tagname in $tagnames; do | |
2829 IFS="$lt_save_ifs" | |
2830 # Check whether tagname contains only valid characters | |
2831 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in | |
2832 "") ;; | |
2833 *) AC_MSG_ERROR([invalid tag name: $tagname]) | |
2834 ;; | |
2835 esac | |
2836 | |
2837 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
2838 then | |
2839 AC_MSG_ERROR([tag name \"$tagname\" already exists]) | |
2840 fi | |
2841 | |
2842 # Update the list of available tags. | |
2843 if test -n "$tagname"; then | |
2844 echo appending configuration tag \"$tagname\" to $ofile | |
2845 | |
2846 case $tagname in | |
2847 CXX) | |
2848 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
2849 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
2850 (test "X$CXX" != "Xg++"))) ; then | |
2851 AC_LIBTOOL_LANG_CXX_CONFIG | |
2852 else | |
2853 tagname="" | |
2854 fi | |
2855 ;; | |
2856 | |
2857 F77) | |
2858 if test -n "$F77" && test "X$F77" != "Xno"; then | |
2859 AC_LIBTOOL_LANG_F77_CONFIG | |
2860 else | |
2861 tagname="" | |
2862 fi | |
2863 ;; | |
2864 | |
2865 GCJ) | |
2866 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
2867 AC_LIBTOOL_LANG_GCJ_CONFIG | |
2868 else | |
2869 tagname="" | |
2870 fi | |
2871 ;; | |
2872 | |
2873 RC) | |
2874 AC_LIBTOOL_LANG_RC_CONFIG | |
2875 ;; | |
2876 | |
2877 *) | |
2878 AC_MSG_ERROR([Unsupported tag name: $tagname]) | |
2879 ;; | |
2880 esac | |
2881 | |
2882 # Append the new tag name to the list of available tags. | |
2883 if test -n "$tagname" ; then | |
2884 available_tags="$available_tags $tagname" | |
2885 fi | |
2886 fi | |
2887 done | |
2888 IFS="$lt_save_ifs" | |
2889 | |
2890 # Now substitute the updated list of available tags. | |
2891 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
2892 mv "${ofile}T" "$ofile" | |
2893 chmod +x "$ofile" | |
2894 else | |
2895 rm -f "${ofile}T" | |
2896 AC_MSG_ERROR([unable to update list of available tagged configurations.]) | |
2897 fi | |
2898 fi | |
2899 ])# _LT_AC_TAGCONFIG | |
2900 | |
2901 | |
2902 # AC_LIBTOOL_DLOPEN | |
2903 # ----------------- | |
2904 # enable checks for dlopen support | |
2905 AC_DEFUN([AC_LIBTOOL_DLOPEN], | |
2906 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) | |
2907 ])# AC_LIBTOOL_DLOPEN | |
2908 | |
2909 | |
2910 # AC_LIBTOOL_WIN32_DLL | |
2911 # -------------------- | |
2912 # declare package support for building win32 DLLs | |
2913 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | |
2914 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | |
2915 ])# AC_LIBTOOL_WIN32_DLL | |
2916 | |
2917 | |
2918 # AC_ENABLE_SHARED([DEFAULT]) | |
2919 # --------------------------- | |
2920 # implement the --enable-shared flag | |
2921 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
2922 AC_DEFUN([AC_ENABLE_SHARED], | |
2923 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | |
2924 AC_ARG_ENABLE([shared], | |
2925 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | |
2926 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], | |
2927 [p=${PACKAGE-default} | |
2928 case $enableval in | |
2929 yes) enable_shared=yes ;; | |
2930 no) enable_shared=no ;; | |
2931 *) | |
2932 enable_shared=no | |
2933 # Look at the argument we got. We use all the common list separators. | |
2934 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
2935 for pkg in $enableval; do | |
2936 IFS="$lt_save_ifs" | |
2937 if test "X$pkg" = "X$p"; then | |
2938 enable_shared=yes | |
2939 fi | |
2940 done | |
2941 IFS="$lt_save_ifs" | |
2942 ;; | |
2943 esac], | |
2944 [enable_shared=]AC_ENABLE_SHARED_DEFAULT) | |
2945 ])# AC_ENABLE_SHARED | |
2946 | |
2947 | |
2948 # AC_DISABLE_SHARED | |
2949 # ----------------- | |
2950 # set the default shared flag to --disable-shared | |
2951 AC_DEFUN([AC_DISABLE_SHARED], | |
2952 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
2953 AC_ENABLE_SHARED(no) | |
2954 ])# AC_DISABLE_SHARED | |
2955 | |
2956 | |
2957 # AC_ENABLE_STATIC([DEFAULT]) | |
2958 # --------------------------- | |
2959 # implement the --enable-static flag | |
2960 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
2961 AC_DEFUN([AC_ENABLE_STATIC], | |
2962 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | |
2963 AC_ARG_ENABLE([static], | |
2964 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], | |
2965 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], | |
2966 [p=${PACKAGE-default} | |
2967 case $enableval in | |
2968 yes) enable_static=yes ;; | |
2969 no) enable_static=no ;; | |
2970 *) | |
2971 enable_static=no | |
2972 # Look at the argument we got. We use all the common list separators. | |
2973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
2974 for pkg in $enableval; do | |
2975 IFS="$lt_save_ifs" | |
2976 if test "X$pkg" = "X$p"; then | |
2977 enable_static=yes | |
2978 fi | |
2979 done | |
2980 IFS="$lt_save_ifs" | |
2981 ;; | |
2982 esac], | |
2983 [enable_static=]AC_ENABLE_STATIC_DEFAULT) | |
2984 ])# AC_ENABLE_STATIC | |
2985 | |
2986 | |
2987 # AC_DISABLE_STATIC | |
2988 # ----------------- | |
2989 # set the default static flag to --disable-static | |
2990 AC_DEFUN([AC_DISABLE_STATIC], | |
2991 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
2992 AC_ENABLE_STATIC(no) | |
2993 ])# AC_DISABLE_STATIC | |
2994 | |
2995 | |
2996 # AC_ENABLE_FAST_INSTALL([DEFAULT]) | |
2997 # --------------------------------- | |
2998 # implement the --enable-fast-install flag | |
2999 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
3000 AC_DEFUN([AC_ENABLE_FAST_INSTALL], | |
3001 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | |
3002 AC_ARG_ENABLE([fast-install], | |
3003 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], | |
3004 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], | |
3005 [p=${PACKAGE-default} | |
3006 case $enableval in | |
3007 yes) enable_fast_install=yes ;; | |
3008 no) enable_fast_install=no ;; | |
3009 *) | |
3010 enable_fast_install=no | |
3011 # Look at the argument we got. We use all the common list separators. | |
3012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3013 for pkg in $enableval; do | |
3014 IFS="$lt_save_ifs" | |
3015 if test "X$pkg" = "X$p"; then | |
3016 enable_fast_install=yes | |
3017 fi | |
3018 done | |
3019 IFS="$lt_save_ifs" | |
3020 ;; | |
3021 esac], | |
3022 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) | |
3023 ])# AC_ENABLE_FAST_INSTALL | |
3024 | |
3025 | |
3026 # AC_DISABLE_FAST_INSTALL | |
3027 # ----------------------- | |
3028 # set the default to --disable-fast-install | |
3029 AC_DEFUN([AC_DISABLE_FAST_INSTALL], | |
3030 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
3031 AC_ENABLE_FAST_INSTALL(no) | |
3032 ])# AC_DISABLE_FAST_INSTALL | |
3033 | |
3034 | |
3035 # AC_LIBTOOL_PICMODE([MODE]) | |
3036 # -------------------------- | |
3037 # implement the --with-pic flag | |
3038 # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | |
3039 AC_DEFUN([AC_LIBTOOL_PICMODE], | |
3040 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
3041 pic_mode=ifelse($#,1,$1,default) | |
3042 ])# AC_LIBTOOL_PICMODE | |
3043 | |
3044 | |
3045 # AC_PROG_EGREP | |
3046 # ------------- | |
3047 # This is predefined starting with Autoconf 2.54, so this conditional | |
3048 # definition can be removed once we require Autoconf 2.54 or later. | |
3049 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], | |
3050 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], | |
3051 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3052 then ac_cv_prog_egrep='grep -E' | |
3053 else ac_cv_prog_egrep='egrep' | |
3054 fi]) | |
3055 EGREP=$ac_cv_prog_egrep | |
3056 AC_SUBST([EGREP]) | |
3057 ])]) | |
3058 | |
3059 | |
3060 # AC_PATH_TOOL_PREFIX | |
3061 # ------------------- | |
3062 # find a file program which can recognise shared library | |
3063 AC_DEFUN([AC_PATH_TOOL_PREFIX], | |
3064 [AC_REQUIRE([AC_PROG_EGREP])dnl | |
3065 AC_MSG_CHECKING([for $1]) | |
3066 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | |
3067 [case $MAGIC_CMD in | |
3068 [[\\/*] | ?:[\\/]*]) | |
3069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3070 ;; | |
3071 *) | |
3072 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
3073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3074 dnl $ac_dummy forces splitting on constant user-supplied paths. | |
3075 dnl POSIX.2 word splitting is done only on the output of word expansions, | |
3076 dnl not every word. This closes a longstanding sh security hole. | |
3077 ac_dummy="ifelse([$2], , $PATH, [$2])" | |
3078 for ac_dir in $ac_dummy; do | |
3079 IFS="$lt_save_ifs" | |
3080 test -z "$ac_dir" && ac_dir=. | |
3081 if test -f $ac_dir/$1; then | |
3082 lt_cv_path_MAGIC_CMD="$ac_dir/$1" | |
3083 if test -n "$file_magic_test_file"; then | |
3084 case $deplibs_check_method in | |
3085 "file_magic "*) | |
3086 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
3087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3088 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3089 $EGREP "$file_magic_regex" > /dev/null; then | |
3090 : | |
3091 else | |
3092 cat <<EOF 1>&2 | |
3093 | |
3094 *** Warning: the command libtool uses to detect shared libraries, | |
3095 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3096 *** The result is that libtool may fail to recognize shared libraries | |
3097 *** as such. This will affect the creation of libtool libraries that | |
3098 *** depend on shared libraries, but programs linked with such libtool | |
3099 *** libraries will work regardless of this problem. Nevertheless, you | |
3100 *** may want to report the problem to your system manager and/or to | |
3101 *** bug-libtool@gnu.org | |
3102 | |
3103 EOF | |
3104 fi ;; | |
3105 esac | |
3106 fi | |
3107 break | |
3108 fi | |
3109 done | |
3110 IFS="$lt_save_ifs" | |
3111 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
3112 ;; | |
3113 esac]) | |
3114 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3115 if test -n "$MAGIC_CMD"; then | |
3116 AC_MSG_RESULT($MAGIC_CMD) | |
3117 else | |
3118 AC_MSG_RESULT(no) | |
3119 fi | |
3120 ])# AC_PATH_TOOL_PREFIX | |
3121 | |
3122 | |
3123 # AC_PATH_MAGIC | |
3124 # ------------- | |
3125 # find a file program which can recognise a shared library | |
3126 AC_DEFUN([AC_PATH_MAGIC], | |
3127 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | |
3128 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
3129 if test -n "$ac_tool_prefix"; then | |
3130 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | |
3131 else | |
3132 MAGIC_CMD=: | |
3133 fi | |
3134 fi | |
3135 ])# AC_PATH_MAGIC | |
3136 | |
3137 | |
3138 # AC_PROG_LD | |
3139 # ---------- | |
3140 # find the pathname to the GNU or non-GNU linker | |
3141 AC_DEFUN([AC_PROG_LD], | |
3142 [AC_ARG_WITH([gnu-ld], | |
3143 [AC_HELP_STRING([--with-gnu-ld], | |
3144 [assume the C compiler uses GNU ld @<:@default=no@:>@])], | |
3145 [test "$withval" = no || with_gnu_ld=yes], | |
3146 [with_gnu_ld=no]) | |
3147 AC_REQUIRE([LT_AC_PROG_SED])dnl | |
3148 AC_REQUIRE([AC_PROG_CC])dnl | |
3149 AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
3150 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
3151 ac_prog=ld | |
3152 if test "$GCC" = yes; then | |
3153 # Check if gcc -print-prog-name=ld gives a path. | |
3154 AC_MSG_CHECKING([for ld used by $CC]) | |
3155 case $host in | |
3156 *-*-mingw*) | |
3157 # gcc leaves a trailing carriage return which upsets mingw | |
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3159 *) | |
3160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3161 esac | |
3162 case $ac_prog in | |
3163 # Accept absolute paths. | |
3164 [[\\/]]* | ?:[[\\/]]*) | |
3165 re_direlt='/[[^/]][[^/]]*/\.\./' | |
3166 # Canonicalize the pathname of ld | |
3167 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
3168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3169 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
3170 done | |
3171 test -z "$LD" && LD="$ac_prog" | |
3172 ;; | |
3173 "") | |
3174 # If it fails, then pretend we aren't using GCC. | |
3175 ac_prog=ld | |
3176 ;; | |
3177 *) | |
3178 # If it is relative, then search for the first ld in PATH. | |
3179 with_gnu_ld=unknown | |
3180 ;; | |
3181 esac | |
3182 elif test "$with_gnu_ld" = yes; then | |
3183 AC_MSG_CHECKING([for GNU ld]) | |
3184 else | |
3185 AC_MSG_CHECKING([for non-GNU ld]) | |
3186 fi | |
3187 AC_CACHE_VAL(lt_cv_path_LD, | |
3188 [if test -z "$LD"; then | |
3189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3190 for ac_dir in $PATH; do | |
3191 IFS="$lt_save_ifs" | |
3192 test -z "$ac_dir" && ac_dir=. | |
3193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3194 lt_cv_path_LD="$ac_dir/$ac_prog" | |
3195 # Check to see if the program is GNU ld. I'd rather use --version, | |
3196 # but apparently some variants of GNU ld only accept -v. | |
3197 # Break only if it was the GNU/non-GNU ld that we prefer. | |
3198 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3199 *GNU* | *'with BFD'*) | |
3200 test "$with_gnu_ld" != no && break | |
3201 ;; | |
3202 *) | |
3203 test "$with_gnu_ld" != yes && break | |
3204 ;; | |
3205 esac | |
3206 fi | |
3207 done | |
3208 IFS="$lt_save_ifs" | |
3209 else | |
3210 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3211 fi]) | |
3212 LD="$lt_cv_path_LD" | |
3213 if test -n "$LD"; then | |
3214 AC_MSG_RESULT($LD) | |
3215 else | |
3216 AC_MSG_RESULT(no) | |
3217 fi | |
3218 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | |
3219 AC_PROG_LD_GNU | |
3220 ])# AC_PROG_LD | |
3221 | |
3222 | |
3223 # AC_PROG_LD_GNU | |
3224 # -------------- | |
3225 AC_DEFUN([AC_PROG_LD_GNU], | |
3226 [AC_REQUIRE([AC_PROG_EGREP])dnl | |
3227 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | |
3228 [# I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3229 case `$LD -v 2>&1 </dev/null` in | |
3230 *GNU* | *'with BFD'*) | |
3231 lt_cv_prog_gnu_ld=yes | |
3232 ;; | |
3233 *) | |
3234 lt_cv_prog_gnu_ld=no | |
3235 ;; | |
3236 esac]) | |
3237 with_gnu_ld=$lt_cv_prog_gnu_ld | |
3238 ])# AC_PROG_LD_GNU | |
3239 | |
3240 | |
3241 # AC_PROG_LD_RELOAD_FLAG | |
3242 # ---------------------- | |
3243 # find reload flag for linker | |
3244 # -- PORTME Some linkers may need a different reload flag. | |
3245 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], | |
3246 [AC_CACHE_CHECK([for $LD option to reload object files], | |
3247 lt_cv_ld_reload_flag, | |
3248 [lt_cv_ld_reload_flag='-r']) | |
3249 reload_flag=$lt_cv_ld_reload_flag | |
3250 case $reload_flag in | |
3251 "" | " "*) ;; | |
3252 *) reload_flag=" $reload_flag" ;; | |
3253 esac | |
3254 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3255 case $host_os in | |
3256 darwin*) | |
3257 if test "$GCC" = yes; then | |
3258 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
3259 else | |
3260 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3261 fi | |
3262 ;; | |
3263 esac | |
3264 ])# AC_PROG_LD_RELOAD_FLAG | |
3265 | |
3266 | |
3267 # AC_DEPLIBS_CHECK_METHOD | |
3268 # ----------------------- | |
3269 # how to check for library dependencies | |
3270 # -- PORTME fill in with the dynamic library characteristics | |
3271 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], | |
3272 [AC_CACHE_CHECK([how to recognise dependent libraries], | |
3273 lt_cv_deplibs_check_method, | |
3274 [lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3275 lt_cv_file_magic_test_file= | |
3276 lt_cv_deplibs_check_method='unknown' | |
3277 # Need to set the preceding variable on all platforms that support | |
3278 # interlibrary dependencies. | |
3279 # 'none' -- dependencies not supported. | |
3280 # `unknown' -- same as none, but documents that we really don't know. | |
3281 # 'pass_all' -- all dependencies passed with no checks. | |
3282 # 'test_compile' -- check by making test program. | |
3283 # 'file_magic [[regex]]' -- check by looking for files in library path | |
3284 # which responds to the $file_magic_cmd with a given extended regex. | |
3285 # If you have `file' or equivalent on your system and you're not sure | |
3286 # whether `pass_all' will *always* work, you probably want this one. | |
3287 | |
3288 case $host_os in | |
3289 aix4* | aix5*) | |
3290 lt_cv_deplibs_check_method=pass_all | |
3291 ;; | |
3292 | |
3293 beos*) | |
3294 lt_cv_deplibs_check_method=pass_all | |
3295 ;; | |
3296 | |
3297 bsdi[[45]]*) | |
3298 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | |
3299 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3300 lt_cv_file_magic_test_file=/shlib/libc.so | |
3301 ;; | |
3302 | |
3303 cygwin*) | |
3304 # func_win32_libid is a shell function defined in ltmain.sh | |
3305 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
3306 lt_cv_file_magic_cmd='func_win32_libid' | |
3307 ;; | |
3308 | |
3309 mingw* | pw32*) | |
3310 # Base MSYS/MinGW do not provide the 'file' command needed by | |
3311 # func_win32_libid shell function, so use a weaker test based on 'objdump'. | |
3312 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3313 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3314 ;; | |
3315 | |
3316 darwin* | rhapsody*) | |
3317 lt_cv_deplibs_check_method=pass_all | |
3318 ;; | |
3319 | |
3320 freebsd* | kfreebsd*-gnu | dragonfly*) | |
3321 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3322 case $host_cpu in | |
3323 i*86 ) | |
3324 # Not sure whether the presence of OpenBSD here was a mistake. | |
3325 # Let's accept both of them until this is cleared up. | |
3326 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | |
3327 lt_cv_file_magic_cmd=/usr/bin/file | |
3328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3329 ;; | |
3330 esac | |
3331 else | |
3332 lt_cv_deplibs_check_method=pass_all | |
3333 fi | |
3334 ;; | |
3335 | |
3336 gnu*) | |
3337 lt_cv_deplibs_check_method=pass_all | |
3338 ;; | |
3339 | |
3340 hpux10.20* | hpux11*) | |
3341 lt_cv_file_magic_cmd=/usr/bin/file | |
3342 case $host_cpu in | |
3343 ia64*) | |
3344 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | |
3345 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3346 ;; | |
3347 hppa*64*) | |
3348 [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]'] | |
3349 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
3350 ;; | |
3351 *) | |
3352 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' | |
3353 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3354 ;; | |
3355 esac | |
3356 ;; | |
3357 | |
3358 interix3*) | |
3359 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
3360 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | |
3361 ;; | |
3362 | |
3363 irix5* | irix6* | nonstopux*) | |
3364 case $LD in | |
3365 *-32|*"-32 ") libmagic=32-bit;; | |
3366 *-n32|*"-n32 ") libmagic=N32;; | |
3367 *-64|*"-64 ") libmagic=64-bit;; | |
3368 *) libmagic=never-match;; | |
3369 esac | |
3370 lt_cv_deplibs_check_method=pass_all | |
3371 ;; | |
3372 | |
3373 # This must be Linux ELF. | |
3374 linux*) | |
3375 lt_cv_deplibs_check_method=pass_all | |
3376 ;; | |
3377 | |
3378 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
3379 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3380 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | |
3381 else | |
3382 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | |
3383 fi | |
3384 ;; | |
3385 | |
3386 newos6*) | |
3387 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | |
3388 lt_cv_file_magic_cmd=/usr/bin/file | |
3389 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3390 ;; | |
3391 | |
3392 nto-qnx*) | |
3393 lt_cv_deplibs_check_method=unknown | |
3394 ;; | |
3395 | |
3396 openbsd*) | |
3397 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3398 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | |
3399 else | |
3400 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | |
3401 fi | |
3402 ;; | |
3403 | |
3404 osf3* | osf4* | osf5*) | |
3405 lt_cv_deplibs_check_method=pass_all | |
3406 ;; | |
3407 | |
3408 solaris*) | |
3409 lt_cv_deplibs_check_method=pass_all | |
3410 ;; | |
3411 | |
3412 sysv4 | sysv4.3*) | |
3413 case $host_vendor in | |
3414 motorola) | |
3415 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]]' | |
3416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3417 ;; | |
3418 ncr) | |
3419 lt_cv_deplibs_check_method=pass_all | |
3420 ;; | |
3421 sequent) | |
3422 lt_cv_file_magic_cmd='/bin/file' | |
3423 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' | |
3424 ;; | |
3425 sni) | |
3426 lt_cv_file_magic_cmd='/bin/file' | |
3427 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" | |
3428 lt_cv_file_magic_test_file=/lib/libc.so | |
3429 ;; | |
3430 siemens) | |
3431 lt_cv_deplibs_check_method=pass_all | |
3432 ;; | |
3433 pc) | |
3434 lt_cv_deplibs_check_method=pass_all | |
3435 ;; | |
3436 esac | |
3437 ;; | |
3438 | |
3439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
3440 lt_cv_deplibs_check_method=pass_all | |
3441 ;; | |
3442 esac | |
3443 ]) | |
3444 file_magic_cmd=$lt_cv_file_magic_cmd | |
3445 deplibs_check_method=$lt_cv_deplibs_check_method | |
3446 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
3447 ])# AC_DEPLIBS_CHECK_METHOD | |
3448 | |
3449 | |
3450 # AC_PROG_NM | |
3451 # ---------- | |
3452 # find the pathname to a BSD-compatible name lister | |
3453 AC_DEFUN([AC_PROG_NM], | |
3454 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, | |
3455 [if test -n "$NM"; then | |
3456 # Let the user override the test. | |
3457 lt_cv_path_NM="$NM" | |
3458 else | |
3459 lt_nm_to_check="${ac_tool_prefix}nm" | |
3460 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3461 lt_nm_to_check="$lt_nm_to_check nm" | |
3462 fi | |
3463 for lt_tmp_nm in $lt_nm_to_check; do | |
3464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3465 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3466 IFS="$lt_save_ifs" | |
3467 test -z "$ac_dir" && ac_dir=. | |
3468 tmp_nm="$ac_dir/$lt_tmp_nm" | |
3469 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3470 # Check to see if the nm accepts a BSD-compat flag. | |
3471 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3472 # nm: unknown option "B" ignored | |
3473 # Tru64's nm complains that /dev/null is an invalid object file | |
3474 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3475 */dev/null* | *'Invalid file or object type'*) | |
3476 lt_cv_path_NM="$tmp_nm -B" | |
3477 break | |
3478 ;; | |
3479 *) | |
3480 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3481 */dev/null*) | |
3482 lt_cv_path_NM="$tmp_nm -p" | |
3483 break | |
3484 ;; | |
3485 *) | |
3486 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3487 continue # so that we can try to find one that supports BSD flags | |
3488 ;; | |
3489 esac | |
3490 ;; | |
3491 esac | |
3492 fi | |
3493 done | |
3494 IFS="$lt_save_ifs" | |
3495 done | |
3496 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3497 fi]) | |
3498 NM="$lt_cv_path_NM" | |
3499 ])# AC_PROG_NM | |
3500 | |
3501 | |
3502 # AC_CHECK_LIBM | |
3503 # ------------- | |
3504 # check for math library | |
3505 AC_DEFUN([AC_CHECK_LIBM], | |
3506 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
3507 LIBM= | |
3508 case $host in | |
3509 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | |
3510 # These system don't have libm, or don't need it | |
3511 ;; | |
3512 *-ncr-sysv4.3*) | |
3513 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | |
3514 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | |
3515 ;; | |
3516 *) | |
3517 AC_CHECK_LIB(m, cos, LIBM="-lm") | |
3518 ;; | |
3519 esac | |
3520 ])# AC_CHECK_LIBM | |
3521 | |
3522 | |
3523 # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) | |
3524 # ----------------------------------- | |
3525 # sets LIBLTDL to the link flags for the libltdl convenience library and | |
3526 # LTDLINCL to the include flags for the libltdl header and adds | |
3527 # --enable-ltdl-convenience to the configure arguments. Note that | |
3528 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | |
3529 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with | |
3530 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' | |
3531 # (note the single quotes!). If your package is not flat and you're not | |
3532 # using automake, define top_builddir and top_srcdir appropriately in | |
3533 # the Makefiles. | |
3534 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | |
3535 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
3536 case $enable_ltdl_convenience in | |
3537 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; | |
3538 "") enable_ltdl_convenience=yes | |
3539 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
3540 esac | |
3541 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la | |
3542 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | |
3543 # For backwards non-gettext consistent compatibility... | |
3544 INCLTDL="$LTDLINCL" | |
3545 ])# AC_LIBLTDL_CONVENIENCE | |
3546 | |
3547 | |
3548 # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) | |
3549 # ----------------------------------- | |
3550 # sets LIBLTDL to the link flags for the libltdl installable library and | |
3551 # LTDLINCL to the include flags for the libltdl header and adds | |
3552 # --enable-ltdl-install to the configure arguments. Note that | |
3553 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | |
3554 # and an installed libltdl is not found, it is assumed to be `libltdl'. | |
3555 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with | |
3556 # '${top_srcdir}/' (note the single quotes!). If your package is not | |
3557 # flat and you're not using automake, define top_builddir and top_srcdir | |
3558 # appropriately in the Makefiles. | |
3559 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | |
3560 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], | |
3561 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
3562 AC_CHECK_LIB(ltdl, lt_dlinit, | |
3563 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | |
3564 [if test x"$enable_ltdl_install" = xno; then | |
3565 AC_MSG_WARN([libltdl not installed, but installation disabled]) | |
3566 else | |
3567 enable_ltdl_install=yes | |
3568 fi | |
3569 ]) | |
3570 if test x"$enable_ltdl_install" = x"yes"; then | |
3571 ac_configure_args="$ac_configure_args --enable-ltdl-install" | |
3572 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la | |
3573 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | |
3574 else | |
3575 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" | |
3576 LIBLTDL="-lltdl" | |
3577 LTDLINCL= | |
3578 fi | |
3579 # For backwards non-gettext consistent compatibility... | |
3580 INCLTDL="$LTDLINCL" | |
3581 ])# AC_LIBLTDL_INSTALLABLE | |
3582 | |
3583 | |
3584 # AC_LIBTOOL_CXX | |
3585 # -------------- | |
3586 # enable support for C++ libraries | |
3587 AC_DEFUN([AC_LIBTOOL_CXX], | |
3588 [AC_REQUIRE([_LT_AC_LANG_CXX]) | |
3589 ])# AC_LIBTOOL_CXX | |
3590 | |
3591 | |
3592 # _LT_AC_LANG_CXX | |
3593 # --------------- | |
3594 AC_DEFUN([_LT_AC_LANG_CXX], | |
3595 [AC_REQUIRE([AC_PROG_CXX]) | |
3596 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | |
3597 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) | |
3598 ])# _LT_AC_LANG_CXX | |
3599 | |
3600 # _LT_AC_PROG_CXXCPP | |
3601 # ------------------ | |
3602 AC_DEFUN([_LT_AC_PROG_CXXCPP], | |
3603 [ | |
3604 AC_REQUIRE([AC_PROG_CXX]) | |
3605 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
3606 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
3607 (test "X$CXX" != "Xg++"))) ; then | |
3608 AC_PROG_CXXCPP | |
3609 fi | |
3610 ])# _LT_AC_PROG_CXXCPP | |
3611 | |
3612 # AC_LIBTOOL_F77 | |
3613 # -------------- | |
3614 # enable support for Fortran 77 libraries | |
3615 AC_DEFUN([AC_LIBTOOL_F77], | |
3616 [AC_REQUIRE([_LT_AC_LANG_F77]) | |
3617 ])# AC_LIBTOOL_F77 | |
3618 | |
3619 | |
3620 # _LT_AC_LANG_F77 | |
3621 # --------------- | |
3622 AC_DEFUN([_LT_AC_LANG_F77], | |
3623 [AC_REQUIRE([AC_PROG_F77]) | |
3624 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) | |
3625 ])# _LT_AC_LANG_F77 | |
3626 | |
3627 | |
3628 # AC_LIBTOOL_GCJ | |
3629 # -------------- | |
3630 # enable support for GCJ libraries | |
3631 AC_DEFUN([AC_LIBTOOL_GCJ], | |
3632 [AC_REQUIRE([_LT_AC_LANG_GCJ]) | |
3633 ])# AC_LIBTOOL_GCJ | |
3634 | |
3635 | |
3636 # _LT_AC_LANG_GCJ | |
3637 # --------------- | |
3638 AC_DEFUN([_LT_AC_LANG_GCJ], | |
3639 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], | |
3640 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], | |
3641 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], | |
3642 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], | |
3643 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], | |
3644 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) | |
3645 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) | |
3646 ])# _LT_AC_LANG_GCJ | |
3647 | |
3648 | |
3649 # AC_LIBTOOL_RC | |
3650 # ------------- | |
3651 # enable support for Windows resource files | |
3652 AC_DEFUN([AC_LIBTOOL_RC], | |
3653 [AC_REQUIRE([LT_AC_PROG_RC]) | |
3654 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) | |
3655 ])# AC_LIBTOOL_RC | |
3656 | |
3657 | |
3658 # AC_LIBTOOL_LANG_C_CONFIG | |
3659 # ------------------------ | |
3660 # Ensure that the configuration vars for the C compiler are | |
3661 # suitably defined. Those variables are subsequently used by | |
3662 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | |
3663 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) | |
3664 AC_DEFUN([_LT_AC_LANG_C_CONFIG], | |
3665 [lt_save_CC="$CC" | |
3666 AC_LANG_PUSH(C) | |
3667 | |
3668 # Source file extension for C test sources. | |
3669 ac_ext=c | |
3670 | |
3671 # Object file extension for compiled C test sources. | |
3672 objext=o | |
3673 _LT_AC_TAGVAR(objext, $1)=$objext | |
3674 | |
3675 # Code to be used in simple compile tests | |
3676 lt_simple_compile_test_code="int some_variable = 0;\n" | |
3677 | |
3678 # Code to be used in simple link tests | |
3679 lt_simple_link_test_code='int main(){return(0);}\n' | |
3680 | |
3681 _LT_AC_SYS_COMPILER | |
3682 | |
3683 # save warnings/boilerplate of simple test code | |
3684 _LT_COMPILER_BOILERPLATE | |
3685 _LT_LINKER_BOILERPLATE | |
3686 | |
3687 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | |
3688 AC_LIBTOOL_PROG_COMPILER_PIC($1) | |
3689 AC_LIBTOOL_PROG_CC_C_O($1) | |
3690 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |
3691 AC_LIBTOOL_PROG_LD_SHLIBS($1) | |
3692 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
3693 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | |
3694 AC_LIBTOOL_SYS_LIB_STRIP | |
3695 AC_LIBTOOL_DLOPEN_SELF | |
3696 | |
3697 # Report which library types will actually be built | |
3698 AC_MSG_CHECKING([if libtool supports shared libraries]) | |
3699 AC_MSG_RESULT([$can_build_shared]) | |
3700 | |
3701 AC_MSG_CHECKING([whether to build shared libraries]) | |
3702 test "$can_build_shared" = "no" && enable_shared=no | |
3703 | |
3704 # On AIX, shared libraries and static libraries use the same namespace, and | |
3705 # are all built from PIC. | |
3706 case $host_os in | |
3707 aix3*) | |
3708 test "$enable_shared" = yes && enable_static=no | |
3709 if test -n "$RANLIB"; then | |
3710 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
3711 postinstall_cmds='$RANLIB $lib' | |
3712 fi | |
3713 ;; | |
3714 | |
3715 aix4* | aix5*) | |
3716 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
3717 test "$enable_shared" = yes && enable_static=no | |
3718 fi | |
3719 ;; | |
3720 esac | |
3721 AC_MSG_RESULT([$enable_shared]) | |
3722 | |
3723 AC_MSG_CHECKING([whether to build static libraries]) | |
3724 # Make sure either enable_shared or enable_static is yes. | |
3725 test "$enable_shared" = yes || enable_static=yes | |
3726 AC_MSG_RESULT([$enable_static]) | |
3727 | |
3728 AC_LIBTOOL_CONFIG($1) | |
3729 | |
3730 AC_LANG_POP | |
3731 CC="$lt_save_CC" | |
3732 ])# AC_LIBTOOL_LANG_C_CONFIG | |
3733 | |
3734 | |
3735 # AC_LIBTOOL_LANG_CXX_CONFIG | |
3736 # -------------------------- | |
3737 # Ensure that the configuration vars for the C compiler are | |
3738 # suitably defined. Those variables are subsequently used by | |
3739 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | |
3740 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) | |
3741 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | |
3742 [AC_LANG_PUSH(C++) | |
3743 AC_REQUIRE([AC_PROG_CXX]) | |
3744 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | |
3745 | |
3746 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
3747 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | |
3748 _LT_AC_TAGVAR(always_export_symbols, $1)=no | |
3749 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | |
3750 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | |
3751 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
3752 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
3753 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
3754 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | |
3755 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | |
3756 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
3757 _LT_AC_TAGVAR(hardcode_automatic, $1)=no | |
3758 _LT_AC_TAGVAR(module_cmds, $1)= | |
3759 _LT_AC_TAGVAR(module_expsym_cmds, $1)= | |
3760 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | |
3761 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
3762 _LT_AC_TAGVAR(no_undefined_flag, $1)= | |
3763 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | |
3764 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
3765 | |
3766 # Dependencies to place before and after the object being linked: | |
3767 _LT_AC_TAGVAR(predep_objects, $1)= | |
3768 _LT_AC_TAGVAR(postdep_objects, $1)= | |
3769 _LT_AC_TAGVAR(predeps, $1)= | |
3770 _LT_AC_TAGVAR(postdeps, $1)= | |
3771 _LT_AC_TAGVAR(compiler_lib_search_path, $1)= | |
3772 | |
3773 # Source file extension for C++ test sources. | |
3774 ac_ext=cpp | |
3775 | |
3776 # Object file extension for compiled C++ test sources. | |
3777 objext=o | |
3778 _LT_AC_TAGVAR(objext, $1)=$objext | |
3779 | |
3780 # Code to be used in simple compile tests | |
3781 lt_simple_compile_test_code="int some_variable = 0;\n" | |
3782 | |
3783 # Code to be used in simple link tests | |
3784 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' | |
3785 | |
3786 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
3787 _LT_AC_SYS_COMPILER | |
3788 | |
3789 # save warnings/boilerplate of simple test code | |
3790 _LT_COMPILER_BOILERPLATE | |
3791 _LT_LINKER_BOILERPLATE | |
3792 | |
3793 # Allow CC to be a program name with arguments. | |
3794 lt_save_CC=$CC | |
3795 lt_save_LD=$LD | |
3796 lt_save_GCC=$GCC | |
3797 GCC=$GXX | |
3798 lt_save_with_gnu_ld=$with_gnu_ld | |
3799 lt_save_path_LD=$lt_cv_path_LD | |
3800 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
3801 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
3802 else | |
3803 $as_unset lt_cv_prog_gnu_ld | |
3804 fi | |
3805 if test -n "${lt_cv_path_LDCXX+set}"; then | |
3806 lt_cv_path_LD=$lt_cv_path_LDCXX | |
3807 else | |
3808 $as_unset lt_cv_path_LD | |
3809 fi | |
3810 test -z "${LDCXX+set}" || LD=$LDCXX | |
3811 CC=${CXX-"c++"} | |
3812 compiler=$CC | |
3813 _LT_AC_TAGVAR(compiler, $1)=$CC | |
3814 _LT_CC_BASENAME([$compiler]) | |
3815 | |
3816 # We don't want -fno-exception wen compiling C++ code, so set the | |
3817 # no_builtin_flag separately | |
3818 if test "$GXX" = yes; then | |
3819 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | |
3820 else | |
3821 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | |
3822 fi | |
3823 | |
3824 if test "$GXX" = yes; then | |
3825 # Set up default GNU C++ configuration | |
3826 | |
3827 AC_PROG_LD | |
3828 | |
3829 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
3830 # archiving commands below assume that GNU ld is being used. | |
3831 if test "$with_gnu_ld" = yes; then | |
3832 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
3833 _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' | |
3834 | |
3835 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | |
3836 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
3837 | |
3838 # If archive_cmds runs LD, not CC, wlarc should be empty | |
3839 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
3840 # investigate it a little bit more. (MM) | |
3841 wlarc='${wl}' | |
3842 | |
3843 # ancient GNU ld didn't support --whole-archive et. al. | |
3844 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
3845 grep 'no-whole-archive' > /dev/null; then | |
3846 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
3847 else | |
3848 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | |
3849 fi | |
3850 else | |
3851 with_gnu_ld=no | |
3852 wlarc= | |
3853 | |
3854 # A generic and very simple default shared library creation | |
3855 # command for GNU C++ for the case where it uses the native | |
3856 # linker, instead of GNU ld. If possible, this setting should | |
3857 # overridden to take advantage of the native linker features on | |
3858 # the platform it is being used on. | |
3859 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
3860 fi | |
3861 | |
3862 # Commands to make compiler produce verbose output that lists | |
3863 # what "hidden" libraries, object files and flags are used when | |
3864 # linking a shared library. | |
3865 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
3866 | |
3867 else | |
3868 GXX=no | |
3869 with_gnu_ld=no | |
3870 wlarc= | |
3871 fi | |
3872 | |
3873 # PORTME: fill in a description of your system's C++ link characteristics | |
3874 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | |
3875 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | |
3876 case $host_os in | |
3877 aix3*) | |
3878 # FIXME: insert proper C++ library support | |
3879 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3880 ;; | |
3881 aix4* | aix5*) | |
3882 if test "$host_cpu" = ia64; then | |
3883 # On IA64, the linker does run time linking by default, so we don't | |
3884 # have to do anything special. | |
3885 aix_use_runtimelinking=no | |
3886 exp_sym_flag='-Bexport' | |
3887 no_entry_flag="" | |
3888 else | |
3889 aix_use_runtimelinking=no | |
3890 | |
3891 # Test if we are trying to use run time linking or normal | |
3892 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
3893 # need to do runtime linking. | |
3894 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | |
3895 for ld_flag in $LDFLAGS; do | |
3896 case $ld_flag in | |
3897 *-brtl*) | |
3898 aix_use_runtimelinking=yes | |
3899 break | |
3900 ;; | |
3901 esac | |
3902 done | |
3903 ;; | |
3904 esac | |
3905 | |
3906 exp_sym_flag='-bexport' | |
3907 no_entry_flag='-bnoentry' | |
3908 fi | |
3909 | |
3910 # When large executables or shared objects are built, AIX ld can | |
3911 # have problems creating the table of contents. If linking a library | |
3912 # or program results in "error TOC overflow" add -mminimal-toc to | |
3913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
3914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
3915 | |
3916 _LT_AC_TAGVAR(archive_cmds, $1)='' | |
3917 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
3918 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | |
3919 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
3920 | |
3921 if test "$GXX" = yes; then | |
3922 case $host_os in aix4.[[012]]|aix4.[[012]].*) | |
3923 # We only want to do this on AIX 4.2 and lower, the check | |
3924 # below for broken collect2 doesn't work under 4.3+ | |
3925 collect2name=`${CC} -print-prog-name=collect2` | |
3926 if test -f "$collect2name" && \ | |
3927 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
3928 then | |
3929 # We have reworked collect2 | |
3930 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
3931 else | |
3932 # We have old collect2 | |
3933 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | |
3934 # It fails to find uninstalled libraries when the uninstalled | |
3935 # path is not listed in the libpath. Setting hardcode_minus_L | |
3936 # to unsupported forces relinking | |
3937 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
3938 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
3939 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | |
3940 fi | |
3941 ;; | |
3942 esac | |
3943 shared_flag='-shared' | |
3944 if test "$aix_use_runtimelinking" = yes; then | |
3945 shared_flag="$shared_flag "'${wl}-G' | |
3946 fi | |
3947 else | |
3948 # not using gcc | |
3949 if test "$host_cpu" = ia64; then | |
3950 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
3951 # chokes on -Wl,-G. The following line is correct: | |
3952 shared_flag='-G' | |
3953 else | |
3954 if test "$aix_use_runtimelinking" = yes; then | |
3955 shared_flag='${wl}-G' | |
3956 else | |
3957 shared_flag='${wl}-bM:SRE' | |
3958 fi | |
3959 fi | |
3960 fi | |
3961 | |
3962 # It seems that -bexpall does not export symbols beginning with | |
3963 # underscore (_), so it is better to generate a list of symbols to export. | |
3964 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | |
3965 if test "$aix_use_runtimelinking" = yes; then | |
3966 # Warning - without using the other runtime loading flags (-brtl), | |
3967 # -berok will link without error, but may produce a broken library. | |
3968 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | |
3969 # Determine the default libpath from the value encoded in an empty executable. | |
3970 _LT_AC_SYS_LIBPATH_AIX | |
3971 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
3972 | |
3973 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
3974 else | |
3975 if test "$host_cpu" = ia64; then | |
3976 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | |
3977 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | |
3978 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
3979 else | |
3980 # Determine the default libpath from the value encoded in an empty executable. | |
3981 _LT_AC_SYS_LIBPATH_AIX | |
3982 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
3983 # Warning - without using the other run time loading flags, | |
3984 # -berok will link without error, but may produce a broken library. | |
3985 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | |
3986 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | |
3987 # Exported symbols can be pulled into shared objects from archives | |
3988 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
3989 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | |
3990 # This is similar to how AIX traditionally builds its shared libraries. | |
3991 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
3992 fi | |
3993 fi | |
3994 ;; | |
3995 | |
3996 beos*) | |
3997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
3998 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | |
3999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
4000 # support --undefined. This deserves some investigation. FIXME | |
4001 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4002 else | |
4003 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4004 fi | |
4005 ;; | |
4006 | |
4007 chorus*) | |
4008 case $cc_basename in | |
4009 *) | |
4010 # FIXME: insert proper C++ library support | |
4011 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4012 ;; | |
4013 esac | |
4014 ;; | |
4015 | |
4016 cygwin* | mingw* | pw32*) | |
4017 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | |
4018 # as there is no search path for DLLs. | |
4019 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
4020 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | |
4021 _LT_AC_TAGVAR(always_export_symbols, $1)=no | |
4022 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
4023 | |
4024 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
4025 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
4026 # If the export-symbols file already is a .def file (1st line | |
4027 # is EXPORTS), use it as is; otherwise, prepend... | |
4028 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
4029 cp $export_symbols $output_objdir/$soname.def; | |
4030 else | |
4031 echo EXPORTS > $output_objdir/$soname.def; | |
4032 cat $export_symbols >> $output_objdir/$soname.def; | |
4033 fi~ | |
4034 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
4035 else | |
4036 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4037 fi | |
4038 ;; | |
4039 darwin* | rhapsody*) | |
4040 case $host_os in | |
4041 rhapsody* | darwin1.[[012]]) | |
4042 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | |
4043 ;; | |
4044 *) # Darwin 1.3 on | |
4045 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
4046 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
4047 else | |
4048 case ${MACOSX_DEPLOYMENT_TARGET} in | |
4049 10.[[012]]) | |
4050 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
4051 ;; | |
4052 10.*) | |
4053 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | |
4054 ;; | |
4055 esac | |
4056 fi | |
4057 ;; | |
4058 esac | |
4059 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
4060 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
4061 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | |
4062 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
4063 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | |
4064 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
4065 | |
4066 if test "$GXX" = yes ; then | |
4067 lt_int_apple_cc_single_mod=no | |
4068 output_verbose_link_cmd='echo' | |
4069 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | |
4070 lt_int_apple_cc_single_mod=yes | |
4071 fi | |
4072 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
4073 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
4074 else | |
4075 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
4076 fi | |
4077 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
4078 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
4079 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
4080 _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}' | |
4081 else | |
4082 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
4083 fi | |
4084 _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}' | |
4085 else | |
4086 case $cc_basename in | |
4087 xlc*) | |
4088 output_verbose_link_cmd='echo' | |
4089 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
4090 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
4091 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
4092 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
4093 _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}' | |
4094 ;; | |
4095 *) | |
4096 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4097 ;; | |
4098 esac | |
4099 fi | |
4100 ;; | |
4101 | |
4102 dgux*) | |
4103 case $cc_basename in | |
4104 ec++*) | |
4105 # FIXME: insert proper C++ library support | |
4106 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4107 ;; | |
4108 ghcx*) | |
4109 # Green Hills C++ Compiler | |
4110 # FIXME: insert proper C++ library support | |
4111 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4112 ;; | |
4113 *) | |
4114 # FIXME: insert proper C++ library support | |
4115 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4116 ;; | |
4117 esac | |
4118 ;; | |
4119 freebsd[[12]]*) | |
4120 # C++ shared libraries reported to be fairly broken before switch to ELF | |
4121 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4122 ;; | |
4123 freebsd-elf*) | |
4124 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
4125 ;; | |
4126 freebsd* | kfreebsd*-gnu | dragonfly*) | |
4127 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
4128 # conventions | |
4129 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | |
4130 ;; | |
4131 gnu*) | |
4132 ;; | |
4133 hpux9*) | |
4134 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
4135 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
4136 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
4137 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
4138 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
4139 # but as the default | |
4140 # location of the library. | |
4141 | |
4142 case $cc_basename in | |
4143 CC*) | |
4144 # FIXME: insert proper C++ library support | |
4145 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4146 ;; | |
4147 aCC*) | |
4148 _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' | |
4149 # Commands to make compiler produce verbose output that lists | |
4150 # what "hidden" libraries, object files and flags are used when | |
4151 # linking a shared library. | |
4152 # | |
4153 # There doesn't appear to be a way to prevent this compiler from | |
4154 # explicitly linking system object files so we need to strip them | |
4155 # from the output so that they don't get included in the library | |
4156 # dependencies. | |
4157 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' | |
4158 ;; | |
4159 *) | |
4160 if test "$GXX" = yes; then | |
4161 _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' | |
4162 else | |
4163 # FIXME: insert proper C++ library support | |
4164 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4165 fi | |
4166 ;; | |
4167 esac | |
4168 ;; | |
4169 hpux10*|hpux11*) | |
4170 if test $with_gnu_ld = no; then | |
4171 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
4172 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
4173 | |
4174 case $host_cpu in | |
4175 hppa*64*|ia64*) | |
4176 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | |
4177 ;; | |
4178 *) | |
4179 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
4180 ;; | |
4181 esac | |
4182 fi | |
4183 case $host_cpu in | |
4184 hppa*64*|ia64*) | |
4185 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
4186 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
4187 ;; | |
4188 *) | |
4189 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
4190 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
4191 # but as the default | |
4192 # location of the library. | |
4193 ;; | |
4194 esac | |
4195 | |
4196 case $cc_basename in | |
4197 CC*) | |
4198 # FIXME: insert proper C++ library support | |
4199 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4200 ;; | |
4201 aCC*) | |
4202 case $host_cpu in | |
4203 hppa*64*) | |
4204 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
4205 ;; | |
4206 ia64*) | |
4207 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
4208 ;; | |
4209 *) | |
4210 _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' | |
4211 ;; | |
4212 esac | |
4213 # Commands to make compiler produce verbose output that lists | |
4214 # what "hidden" libraries, object files and flags are used when | |
4215 # linking a shared library. | |
4216 # | |
4217 # There doesn't appear to be a way to prevent this compiler from | |
4218 # explicitly linking system object files so we need to strip them | |
4219 # from the output so that they don't get included in the library | |
4220 # dependencies. | |
4221 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' | |
4222 ;; | |
4223 *) | |
4224 if test "$GXX" = yes; then | |
4225 if test $with_gnu_ld = no; then | |
4226 case $host_cpu in | |
4227 hppa*64*) | |
4228 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
4229 ;; | |
4230 ia64*) | |
4231 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
4232 ;; | |
4233 *) | |
4234 _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' | |
4235 ;; | |
4236 esac | |
4237 fi | |
4238 else | |
4239 # FIXME: insert proper C++ library support | |
4240 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4241 fi | |
4242 ;; | |
4243 esac | |
4244 ;; | |
4245 interix3*) | |
4246 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
4247 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
4248 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
4249 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
4250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
4251 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
4252 # default) and relocated if they conflict, which is a slow very memory | |
4253 # consuming and fragmenting process. To avoid this, we pick a random, | |
4254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
4255 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
4256 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
4257 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
4258 ;; | |
4259 irix5* | irix6*) | |
4260 case $cc_basename in | |
4261 CC*) | |
4262 # SGI C++ | |
4263 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
4264 | |
4265 # Archives containing C++ object files must be created using | |
4266 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
4267 # necessary to make sure instantiated templates are included | |
4268 # in the archive. | |
4269 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
4270 ;; | |
4271 *) | |
4272 if test "$GXX" = yes; then | |
4273 if test "$with_gnu_ld" = no; then | |
4274 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
4275 else | |
4276 _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' | |
4277 fi | |
4278 fi | |
4279 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
4280 ;; | |
4281 esac | |
4282 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
4283 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
4284 ;; | |
4285 linux*) | |
4286 case $cc_basename in | |
4287 KCC*) | |
4288 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
4289 | |
4290 # KCC will only create a shared library if the output file | |
4291 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
4292 # to its proper name (with version) after linking. | |
4293 _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' | |
4294 _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' | |
4295 # Commands to make compiler produce verbose output that lists | |
4296 # what "hidden" libraries, object files and flags are used when | |
4297 # linking a shared library. | |
4298 # | |
4299 # There doesn't appear to be a way to prevent this compiler from | |
4300 # explicitly linking system object files so we need to strip them | |
4301 # from the output so that they don't get included in the library | |
4302 # dependencies. | |
4303 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' | |
4304 | |
4305 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' | |
4306 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
4307 | |
4308 # Archives containing C++ object files must be created using | |
4309 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
4310 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | |
4311 ;; | |
4312 icpc*) | |
4313 # Intel C++ | |
4314 with_gnu_ld=yes | |
4315 # version 8.0 and above of icpc choke on multiply defined symbols | |
4316 # if we add $predep_objects and $postdep_objects, however 7.1 and | |
4317 # earlier do not add the objects themselves. | |
4318 case `$CC -V 2>&1` in | |
4319 *"Version 7."*) | |
4320 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4321 _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' | |
4322 ;; | |
4323 *) # Version 8.0 or newer | |
4324 tmp_idyn= | |
4325 case $host_cpu in | |
4326 ia64*) tmp_idyn=' -i_dynamic';; | |
4327 esac | |
4328 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4329 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
4330 ;; | |
4331 esac | |
4332 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
4333 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
4334 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
4335 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
4336 ;; | |
4337 pgCC*) | |
4338 # Portland Group C++ compiler | |
4339 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
4340 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
4341 | |
4342 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | |
4343 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
4344 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
4345 ;; | |
4346 cxx*) | |
4347 # Compaq C++ | |
4348 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4349 _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' | |
4350 | |
4351 runpath_var=LD_RUN_PATH | |
4352 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
4353 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
4354 | |
4355 # Commands to make compiler produce verbose output that lists | |
4356 # what "hidden" libraries, object files and flags are used when | |
4357 # linking a shared library. | |
4358 # | |
4359 # There doesn't appear to be a way to prevent this compiler from | |
4360 # explicitly linking system object files so we need to strip them | |
4361 # from the output so that they don't get included in the library | |
4362 # dependencies. | |
4363 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' | |
4364 ;; | |
4365 esac | |
4366 ;; | |
4367 lynxos*) | |
4368 # FIXME: insert proper C++ library support | |
4369 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4370 ;; | |
4371 m88k*) | |
4372 # FIXME: insert proper C++ library support | |
4373 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4374 ;; | |
4375 mvs*) | |
4376 case $cc_basename in | |
4377 cxx*) | |
4378 # FIXME: insert proper C++ library support | |
4379 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4380 ;; | |
4381 *) | |
4382 # FIXME: insert proper C++ library support | |
4383 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4384 ;; | |
4385 esac | |
4386 ;; | |
4387 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
4388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
4389 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
4390 wlarc= | |
4391 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
4392 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
4393 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
4394 fi | |
4395 # Workaround some broken pre-1.5 toolchains | |
4396 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
4397 ;; | |
4398 openbsd2*) | |
4399 # C++ shared libraries are fairly broken | |
4400 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4401 ;; | |
4402 openbsd*) | |
4403 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
4404 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
4405 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
4406 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
4407 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4408 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
4409 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
4410 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
4411 fi | |
4412 output_verbose_link_cmd='echo' | |
4413 ;; | |
4414 osf3*) | |
4415 case $cc_basename in | |
4416 KCC*) | |
4417 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
4418 | |
4419 # KCC will only create a shared library if the output file | |
4420 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
4421 # to its proper name (with version) after linking. | |
4422 _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' | |
4423 | |
4424 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
4425 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
4426 | |
4427 # Archives containing C++ object files must be created using | |
4428 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
4429 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | |
4430 | |
4431 ;; | |
4432 RCC*) | |
4433 # Rational C++ 2.4.1 | |
4434 # FIXME: insert proper C++ library support | |
4435 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4436 ;; | |
4437 cxx*) | |
4438 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
4439 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
4440 | |
4441 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
4442 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
4443 | |
4444 # Commands to make compiler produce verbose output that lists | |
4445 # what "hidden" libraries, object files and flags are used when | |
4446 # linking a shared library. | |
4447 # | |
4448 # There doesn't appear to be a way to prevent this compiler from | |
4449 # explicitly linking system object files so we need to strip them | |
4450 # from the output so that they don't get included in the library | |
4451 # dependencies. | |
4452 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' | |
4453 ;; | |
4454 *) | |
4455 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
4456 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
4457 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
4458 | |
4459 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
4460 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
4461 | |
4462 # Commands to make compiler produce verbose output that lists | |
4463 # what "hidden" libraries, object files and flags are used when | |
4464 # linking a shared library. | |
4465 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
4466 | |
4467 else | |
4468 # FIXME: insert proper C++ library support | |
4469 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4470 fi | |
4471 ;; | |
4472 esac | |
4473 ;; | |
4474 osf4* | osf5*) | |
4475 case $cc_basename in | |
4476 KCC*) | |
4477 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
4478 | |
4479 # KCC will only create a shared library if the output file | |
4480 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
4481 # to its proper name (with version) after linking. | |
4482 _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' | |
4483 | |
4484 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
4485 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
4486 | |
4487 # Archives containing C++ object files must be created using | |
4488 # the KAI C++ compiler. | |
4489 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' | |
4490 ;; | |
4491 RCC*) | |
4492 # Rational C++ 2.4.1 | |
4493 # FIXME: insert proper C++ library support | |
4494 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4495 ;; | |
4496 cxx*) | |
4497 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
4498 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
4499 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
4500 echo "-hidden">> $lib.exp~ | |
4501 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ | |
4502 $rm $lib.exp' | |
4503 | |
4504 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
4505 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
4506 | |
4507 # Commands to make compiler produce verbose output that lists | |
4508 # what "hidden" libraries, object files and flags are used when | |
4509 # linking a shared library. | |
4510 # | |
4511 # There doesn't appear to be a way to prevent this compiler from | |
4512 # explicitly linking system object files so we need to strip them | |
4513 # from the output so that they don't get included in the library | |
4514 # dependencies. | |
4515 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' | |
4516 ;; | |
4517 *) | |
4518 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
4519 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
4520 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
4521 | |
4522 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
4523 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
4524 | |
4525 # Commands to make compiler produce verbose output that lists | |
4526 # what "hidden" libraries, object files and flags are used when | |
4527 # linking a shared library. | |
4528 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
4529 | |
4530 else | |
4531 # FIXME: insert proper C++ library support | |
4532 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4533 fi | |
4534 ;; | |
4535 esac | |
4536 ;; | |
4537 psos*) | |
4538 # FIXME: insert proper C++ library support | |
4539 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4540 ;; | |
4541 sunos4*) | |
4542 case $cc_basename in | |
4543 CC*) | |
4544 # Sun C++ 4.x | |
4545 # FIXME: insert proper C++ library support | |
4546 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4547 ;; | |
4548 lcc*) | |
4549 # Lucid | |
4550 # FIXME: insert proper C++ library support | |
4551 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4552 ;; | |
4553 *) | |
4554 # FIXME: insert proper C++ library support | |
4555 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4556 ;; | |
4557 esac | |
4558 ;; | |
4559 solaris*) | |
4560 case $cc_basename in | |
4561 CC*) | |
4562 # Sun C++ 4.2, 5.x and Centerline C++ | |
4563 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes | |
4564 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' | |
4565 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
4566 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
4567 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
4568 | |
4569 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
4570 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
4571 case $host_os in | |
4572 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
4573 *) | |
4574 # The C++ compiler is used as linker so we must use $wl | |
4575 # flag to pass the commands to the underlying system | |
4576 # linker. We must also pass each convience library through | |
4577 # to the system linker between allextract/defaultextract. | |
4578 # The C++ compiler will combine linker options so we | |
4579 # cannot just pass the convience library names through | |
4580 # without $wl. | |
4581 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
4582 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | |
4583 ;; | |
4584 esac | |
4585 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
4586 | |
4587 output_verbose_link_cmd='echo' | |
4588 | |
4589 # Archives containing C++ object files must be created using | |
4590 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
4591 # necessary to make sure instantiated templates are included | |
4592 # in the archive. | |
4593 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | |
4594 ;; | |
4595 gcx*) | |
4596 # Green Hills C++ Compiler | |
4597 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
4598 | |
4599 # The C++ compiler must be used to create the archive. | |
4600 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
4601 ;; | |
4602 *) | |
4603 # GNU C++ compiler with Solaris linker | |
4604 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
4605 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | |
4606 if $CC --version | grep -v '^2\.7' > /dev/null; then | |
4607 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
4608 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
4609 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
4610 | |
4611 # Commands to make compiler produce verbose output that lists | |
4612 # what "hidden" libraries, object files and flags are used when | |
4613 # linking a shared library. | |
4614 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
4615 else | |
4616 # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
4617 # platform. | |
4618 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
4619 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
4620 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
4621 | |
4622 # Commands to make compiler produce verbose output that lists | |
4623 # what "hidden" libraries, object files and flags are used when | |
4624 # linking a shared library. | |
4625 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
4626 fi | |
4627 | |
4628 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | |
4629 fi | |
4630 ;; | |
4631 esac | |
4632 ;; | |
4633 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | |
4634 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
4635 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
4636 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
4637 runpath_var='LD_RUN_PATH' | |
4638 | |
4639 case $cc_basename in | |
4640 CC*) | |
4641 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
4642 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
4643 ;; | |
4644 *) | |
4645 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
4646 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
4647 ;; | |
4648 esac | |
4649 ;; | |
4650 sysv5* | sco3.2v5* | sco5v6*) | |
4651 # Note: We can NOT use -z defs as we might desire, because we do not | |
4652 # link with -lc, and that would cause any symbols used from libc to | |
4653 # always be unresolved, which means just about no library would | |
4654 # ever link correctly. If we're not using GNU ld we use -z text | |
4655 # though, which does catch some bad symbols but isn't as heavy-handed | |
4656 # as -z defs. | |
4657 # For security reasons, it is highly recommended that you always | |
4658 # use absolute paths for naming shared libraries, and exclude the | |
4659 # DT_RUNPATH tag from executables and libraries. But doing so | |
4660 # requires that you compile everything twice, which is a pain. | |
4661 # So that behaviour is only enabled if SCOABSPATH is set to a | |
4662 # non-empty value in the environment. Most likely only useful for | |
4663 # creating official distributions of packages. | |
4664 # This is a hack until libtool officially supports absolute path | |
4665 # names for shared libraries. | |
4666 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
4667 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | |
4668 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
4669 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
4670 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
4671 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | |
4672 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
4673 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | |
4674 runpath_var='LD_RUN_PATH' | |
4675 | |
4676 case $cc_basename in | |
4677 CC*) | |
4678 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
4679 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
4680 ;; | |
4681 *) | |
4682 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
4683 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
4684 ;; | |
4685 esac | |
4686 ;; | |
4687 tandem*) | |
4688 case $cc_basename in | |
4689 NCC*) | |
4690 # NonStop-UX NCC 3.20 | |
4691 # FIXME: insert proper C++ library support | |
4692 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4693 ;; | |
4694 *) | |
4695 # FIXME: insert proper C++ library support | |
4696 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4697 ;; | |
4698 esac | |
4699 ;; | |
4700 vxworks*) | |
4701 # FIXME: insert proper C++ library support | |
4702 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4703 ;; | |
4704 *) | |
4705 # FIXME: insert proper C++ library support | |
4706 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4707 ;; | |
4708 esac | |
4709 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | |
4710 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | |
4711 | |
4712 _LT_AC_TAGVAR(GCC, $1)="$GXX" | |
4713 _LT_AC_TAGVAR(LD, $1)="$LD" | |
4714 | |
4715 AC_LIBTOOL_POSTDEP_PREDEP($1) | |
4716 AC_LIBTOOL_PROG_COMPILER_PIC($1) | |
4717 AC_LIBTOOL_PROG_CC_C_O($1) | |
4718 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |
4719 AC_LIBTOOL_PROG_LD_SHLIBS($1) | |
4720 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
4721 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | |
4722 | |
4723 AC_LIBTOOL_CONFIG($1) | |
4724 | |
4725 AC_LANG_POP | |
4726 CC=$lt_save_CC | |
4727 LDCXX=$LD | |
4728 LD=$lt_save_LD | |
4729 GCC=$lt_save_GCC | |
4730 with_gnu_ldcxx=$with_gnu_ld | |
4731 with_gnu_ld=$lt_save_with_gnu_ld | |
4732 lt_cv_path_LDCXX=$lt_cv_path_LD | |
4733 lt_cv_path_LD=$lt_save_path_LD | |
4734 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
4735 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
4736 ])# AC_LIBTOOL_LANG_CXX_CONFIG | |
4737 | |
4738 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) | |
4739 # ------------------------------------ | |
4740 # Figure out "hidden" library dependencies from verbose | |
4741 # compiler output when linking a shared library. | |
4742 # Parse the compiler output and extract the necessary | |
4743 # objects, libraries and library flags. | |
4744 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ | |
4745 dnl we can't use the lt_simple_compile_test_code here, | |
4746 dnl because it contains code intended for an executable, | |
4747 dnl not a library. It's possible we should let each | |
4748 dnl tag define a new lt_????_link_test_code variable, | |
4749 dnl but it's only used here... | |
4750 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF | |
4751 int a; | |
4752 void foo (void) { a = 0; } | |
4753 EOF | |
4754 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF | |
4755 class Foo | |
4756 { | |
4757 public: | |
4758 Foo (void) { a = 0; } | |
4759 private: | |
4760 int a; | |
4761 }; | |
4762 EOF | |
4763 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF | |
4764 subroutine foo | |
4765 implicit none | |
4766 integer*4 a | |
4767 a=0 | |
4768 return | |
4769 end | |
4770 EOF | |
4771 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF | |
4772 public class foo { | |
4773 private int a; | |
4774 public void bar (void) { | |
4775 a = 0; | |
4776 } | |
4777 }; | |
4778 EOF | |
4779 ]) | |
4780 dnl Parse the compiler output and extract the necessary | |
4781 dnl objects, libraries and library flags. | |
4782 if AC_TRY_EVAL(ac_compile); then | |
4783 # Parse the compiler output and extract the necessary | |
4784 # objects, libraries and library flags. | |
4785 | |
4786 # Sentinel used to keep track of whether or not we are before | |
4787 # the conftest object file. | |
4788 pre_test_object_deps_done=no | |
4789 | |
4790 # The `*' in the case matches for architectures that use `case' in | |
4791 # $output_verbose_cmd can trigger glob expansion during the loop | |
4792 # eval without this substitution. | |
4793 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
4794 | |
4795 for p in `eval $output_verbose_link_cmd`; do | |
4796 case $p in | |
4797 | |
4798 -L* | -R* | -l*) | |
4799 # Some compilers place space between "-{L,R}" and the path. | |
4800 # Remove the space. | |
4801 if test $p = "-L" \ | |
4802 || test $p = "-R"; then | |
4803 prev=$p | |
4804 continue | |
4805 else | |
4806 prev= | |
4807 fi | |
4808 | |
4809 if test "$pre_test_object_deps_done" = no; then | |
4810 case $p in | |
4811 -L* | -R*) | |
4812 # Internal compiler library paths should come after those | |
4813 # provided the user. The postdeps already come after the | |
4814 # user supplied libs so there is no need to process them. | |
4815 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then | |
4816 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" | |
4817 else | |
4818 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" | |
4819 fi | |
4820 ;; | |
4821 # The "-l" case would never come before the object being | |
4822 # linked, so don't bother handling this case. | |
4823 esac | |
4824 else | |
4825 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then | |
4826 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" | |
4827 else | |
4828 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" | |
4829 fi | |
4830 fi | |
4831 ;; | |
4832 | |
4833 *.$objext) | |
4834 # This assumes that the test object file only shows up | |
4835 # once in the compiler output. | |
4836 if test "$p" = "conftest.$objext"; then | |
4837 pre_test_object_deps_done=yes | |
4838 continue | |
4839 fi | |
4840 | |
4841 if test "$pre_test_object_deps_done" = no; then | |
4842 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then | |
4843 _LT_AC_TAGVAR(predep_objects, $1)="$p" | |
4844 else | |
4845 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" | |
4846 fi | |
4847 else | |
4848 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then | |
4849 _LT_AC_TAGVAR(postdep_objects, $1)="$p" | |
4850 else | |
4851 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" | |
4852 fi | |
4853 fi | |
4854 ;; | |
4855 | |
4856 *) ;; # Ignore the rest. | |
4857 | |
4858 esac | |
4859 done | |
4860 | |
4861 # Clean up. | |
4862 rm -f a.out a.exe | |
4863 else | |
4864 echo "libtool.m4: error: problem compiling $1 test program" | |
4865 fi | |
4866 | |
4867 $rm -f confest.$objext | |
4868 | |
4869 # PORTME: override above test on systems where it is broken | |
4870 ifelse([$1],[CXX], | |
4871 [case $host_os in | |
4872 interix3*) | |
4873 # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
4874 # hack all around it, let's just trust "g++" to DTRT. | |
4875 _LT_AC_TAGVAR(predep_objects,$1)= | |
4876 _LT_AC_TAGVAR(postdep_objects,$1)= | |
4877 _LT_AC_TAGVAR(postdeps,$1)= | |
4878 ;; | |
4879 | |
4880 solaris*) | |
4881 case $cc_basename in | |
4882 CC*) | |
4883 # Adding this requires a known-good setup of shared libraries for | |
4884 # Sun compiler versions before 5.6, else PIC objects from an old | |
4885 # archive will be linked into the output, leading to subtle bugs. | |
4886 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' | |
4887 ;; | |
4888 esac | |
4889 ;; | |
4890 esac | |
4891 ]) | |
4892 | |
4893 case " $_LT_AC_TAGVAR(postdeps, $1) " in | |
4894 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; | |
4895 esac | |
4896 ])# AC_LIBTOOL_POSTDEP_PREDEP | |
4897 | |
4898 # AC_LIBTOOL_LANG_F77_CONFIG | |
4899 # -------------------------- | |
4900 # Ensure that the configuration vars for the C compiler are | |
4901 # suitably defined. Those variables are subsequently used by | |
4902 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | |
4903 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) | |
4904 AC_DEFUN([_LT_AC_LANG_F77_CONFIG], | |
4905 [AC_REQUIRE([AC_PROG_F77]) | |
4906 AC_LANG_PUSH(Fortran 77) | |
4907 | |
4908 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
4909 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | |
4910 _LT_AC_TAGVAR(always_export_symbols, $1)=no | |
4911 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | |
4912 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | |
4913 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
4914 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
4915 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
4916 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | |
4917 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | |
4918 _LT_AC_TAGVAR(hardcode_automatic, $1)=no | |
4919 _LT_AC_TAGVAR(module_cmds, $1)= | |
4920 _LT_AC_TAGVAR(module_expsym_cmds, $1)= | |
4921 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | |
4922 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
4923 _LT_AC_TAGVAR(no_undefined_flag, $1)= | |
4924 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | |
4925 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
4926 | |
4927 # Source file extension for f77 test sources. | |
4928 ac_ext=f | |
4929 | |
4930 # Object file extension for compiled f77 test sources. | |
4931 objext=o | |
4932 _LT_AC_TAGVAR(objext, $1)=$objext | |
4933 | |
4934 # Code to be used in simple compile tests | |
4935 lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
4936 | |
4937 # Code to be used in simple link tests | |
4938 lt_simple_link_test_code=" program t\n end\n" | |
4939 | |
4940 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
4941 _LT_AC_SYS_COMPILER | |
4942 | |
4943 # save warnings/boilerplate of simple test code | |
4944 _LT_COMPILER_BOILERPLATE | |
4945 _LT_LINKER_BOILERPLATE | |
4946 | |
4947 # Allow CC to be a program name with arguments. | |
4948 lt_save_CC="$CC" | |
4949 CC=${F77-"f77"} | |
4950 compiler=$CC | |
4951 _LT_AC_TAGVAR(compiler, $1)=$CC | |
4952 _LT_CC_BASENAME([$compiler]) | |
4953 | |
4954 AC_MSG_CHECKING([if libtool supports shared libraries]) | |
4955 AC_MSG_RESULT([$can_build_shared]) | |
4956 | |
4957 AC_MSG_CHECKING([whether to build shared libraries]) | |
4958 test "$can_build_shared" = "no" && enable_shared=no | |
4959 | |
4960 # On AIX, shared libraries and static libraries use the same namespace, and | |
4961 # are all built from PIC. | |
4962 case $host_os in | |
4963 aix3*) | |
4964 test "$enable_shared" = yes && enable_static=no | |
4965 if test -n "$RANLIB"; then | |
4966 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
4967 postinstall_cmds='$RANLIB $lib' | |
4968 fi | |
4969 ;; | |
4970 aix4* | aix5*) | |
4971 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
4972 test "$enable_shared" = yes && enable_static=no | |
4973 fi | |
4974 ;; | |
4975 esac | |
4976 AC_MSG_RESULT([$enable_shared]) | |
4977 | |
4978 AC_MSG_CHECKING([whether to build static libraries]) | |
4979 # Make sure either enable_shared or enable_static is yes. | |
4980 test "$enable_shared" = yes || enable_static=yes | |
4981 AC_MSG_RESULT([$enable_static]) | |
4982 | |
4983 _LT_AC_TAGVAR(GCC, $1)="$G77" | |
4984 _LT_AC_TAGVAR(LD, $1)="$LD" | |
4985 | |
4986 AC_LIBTOOL_PROG_COMPILER_PIC($1) | |
4987 AC_LIBTOOL_PROG_CC_C_O($1) | |
4988 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |
4989 AC_LIBTOOL_PROG_LD_SHLIBS($1) | |
4990 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
4991 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | |
4992 | |
4993 AC_LIBTOOL_CONFIG($1) | |
4994 | |
4995 AC_LANG_POP | |
4996 CC="$lt_save_CC" | |
4997 ])# AC_LIBTOOL_LANG_F77_CONFIG | |
4998 | |
4999 | |
5000 # AC_LIBTOOL_LANG_GCJ_CONFIG | |
5001 # -------------------------- | |
5002 # Ensure that the configuration vars for the C compiler are | |
5003 # suitably defined. Those variables are subsequently used by | |
5004 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | |
5005 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) | |
5006 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], | |
5007 [AC_LANG_SAVE | |
5008 | |
5009 # Source file extension for Java test sources. | |
5010 ac_ext=java | |
5011 | |
5012 # Object file extension for compiled Java test sources. | |
5013 objext=o | |
5014 _LT_AC_TAGVAR(objext, $1)=$objext | |
5015 | |
5016 # Code to be used in simple compile tests | |
5017 lt_simple_compile_test_code="class foo {}\n" | |
5018 | |
5019 # Code to be used in simple link tests | |
5020 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' | |
5021 | |
5022 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
5023 _LT_AC_SYS_COMPILER | |
5024 | |
5025 # save warnings/boilerplate of simple test code | |
5026 _LT_COMPILER_BOILERPLATE | |
5027 _LT_LINKER_BOILERPLATE | |
5028 | |
5029 # Allow CC to be a program name with arguments. | |
5030 lt_save_CC="$CC" | |
5031 CC=${GCJ-"gcj"} | |
5032 compiler=$CC | |
5033 _LT_AC_TAGVAR(compiler, $1)=$CC | |
5034 _LT_CC_BASENAME([$compiler]) | |
5035 | |
5036 # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
5037 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
5038 | |
5039 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
5040 | |
5041 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | |
5042 AC_LIBTOOL_PROG_COMPILER_PIC($1) | |
5043 AC_LIBTOOL_PROG_CC_C_O($1) | |
5044 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |
5045 AC_LIBTOOL_PROG_LD_SHLIBS($1) | |
5046 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
5047 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | |
5048 | |
5049 AC_LIBTOOL_CONFIG($1) | |
5050 | |
5051 AC_LANG_RESTORE | |
5052 CC="$lt_save_CC" | |
5053 ])# AC_LIBTOOL_LANG_GCJ_CONFIG | |
5054 | |
5055 | |
5056 # AC_LIBTOOL_LANG_RC_CONFIG | |
5057 # ------------------------- | |
5058 # Ensure that the configuration vars for the Windows resource compiler are | |
5059 # suitably defined. Those variables are subsequently used by | |
5060 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | |
5061 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) | |
5062 AC_DEFUN([_LT_AC_LANG_RC_CONFIG], | |
5063 [AC_LANG_SAVE | |
5064 | |
5065 # Source file extension for RC test sources. | |
5066 ac_ext=rc | |
5067 | |
5068 # Object file extension for compiled RC test sources. | |
5069 objext=o | |
5070 _LT_AC_TAGVAR(objext, $1)=$objext | |
5071 | |
5072 # Code to be used in simple compile tests | |
5073 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
5074 | |
5075 # Code to be used in simple link tests | |
5076 lt_simple_link_test_code="$lt_simple_compile_test_code" | |
5077 | |
5078 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
5079 _LT_AC_SYS_COMPILER | |
5080 | |
5081 # save warnings/boilerplate of simple test code | |
5082 _LT_COMPILER_BOILERPLATE | |
5083 _LT_LINKER_BOILERPLATE | |
5084 | |
5085 # Allow CC to be a program name with arguments. | |
5086 lt_save_CC="$CC" | |
5087 CC=${RC-"windres"} | |
5088 compiler=$CC | |
5089 _LT_AC_TAGVAR(compiler, $1)=$CC | |
5090 _LT_CC_BASENAME([$compiler]) | |
5091 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | |
5092 | |
5093 AC_LIBTOOL_CONFIG($1) | |
5094 | |
5095 AC_LANG_RESTORE | |
5096 CC="$lt_save_CC" | |
5097 ])# AC_LIBTOOL_LANG_RC_CONFIG | |
5098 | |
5099 | |
5100 # AC_LIBTOOL_CONFIG([TAGNAME]) | |
5101 # ---------------------------- | |
5102 # If TAGNAME is not passed, then create an initial libtool script | |
5103 # with a default configuration from the untagged config vars. Otherwise | |
5104 # add code to config.status for appending the configuration named by | |
5105 # TAGNAME from the matching tagged config vars. | |
5106 AC_DEFUN([AC_LIBTOOL_CONFIG], | |
5107 [# The else clause should only fire when bootstrapping the | |
5108 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
5109 # with your package, and you will get complaints that there are | |
5110 # no rules to generate ltmain.sh. | |
5111 if test -f "$ltmain"; then | |
5112 # See if we are running on zsh, and set the options which allow our commands through | |
5113 # without removal of \ escapes. | |
5114 if test -n "${ZSH_VERSION+set}" ; then | |
5115 setopt NO_GLOB_SUBST | |
5116 fi | |
5117 # Now quote all the things that may contain metacharacters while being | |
5118 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
5119 # variables and quote the copies for generation of the libtool script. | |
5120 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
5121 SED SHELL STRIP \ | |
5122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
5123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
5124 deplibs_check_method reload_flag reload_cmds need_locks \ | |
5125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
5126 lt_cv_sys_global_symbol_to_c_name_address \ | |
5127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
5128 old_postinstall_cmds old_postuninstall_cmds \ | |
5129 _LT_AC_TAGVAR(compiler, $1) \ | |
5130 _LT_AC_TAGVAR(CC, $1) \ | |
5131 _LT_AC_TAGVAR(LD, $1) \ | |
5132 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ | |
5133 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ | |
5134 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ | |
5135 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ | |
5136 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ | |
5137 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ | |
5138 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ | |
5139 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ | |
5140 _LT_AC_TAGVAR(old_archive_cmds, $1) \ | |
5141 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ | |
5142 _LT_AC_TAGVAR(predep_objects, $1) \ | |
5143 _LT_AC_TAGVAR(postdep_objects, $1) \ | |
5144 _LT_AC_TAGVAR(predeps, $1) \ | |
5145 _LT_AC_TAGVAR(postdeps, $1) \ | |
5146 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ | |
5147 _LT_AC_TAGVAR(archive_cmds, $1) \ | |
5148 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ | |
5149 _LT_AC_TAGVAR(postinstall_cmds, $1) \ | |
5150 _LT_AC_TAGVAR(postuninstall_cmds, $1) \ | |
5151 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ | |
5152 _LT_AC_TAGVAR(allow_undefined_flag, $1) \ | |
5153 _LT_AC_TAGVAR(no_undefined_flag, $1) \ | |
5154 _LT_AC_TAGVAR(export_symbols_cmds, $1) \ | |
5155 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ | |
5156 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ | |
5157 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ | |
5158 _LT_AC_TAGVAR(hardcode_automatic, $1) \ | |
5159 _LT_AC_TAGVAR(module_cmds, $1) \ | |
5160 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ | |
5161 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ | |
5162 _LT_AC_TAGVAR(exclude_expsyms, $1) \ | |
5163 _LT_AC_TAGVAR(include_expsyms, $1); do | |
5164 | |
5165 case $var in | |
5166 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ | |
5167 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ | |
5168 _LT_AC_TAGVAR(archive_cmds, $1) | \ | |
5169 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ | |
5170 _LT_AC_TAGVAR(module_cmds, $1) | \ | |
5171 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ | |
5172 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ | |
5173 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ | |
5174 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
5175 postinstall_cmds | postuninstall_cmds | \ | |
5176 old_postinstall_cmds | old_postuninstall_cmds | \ | |
5177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
5178 # Double-quote double-evaled strings. | |
5179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
5180 ;; | |
5181 *) | |
5182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
5183 ;; | |
5184 esac | |
5185 done | |
5186 | |
5187 case $lt_echo in | |
5188 *'\[$]0 --fallback-echo"') | |
5189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` | |
5190 ;; | |
5191 esac | |
5192 | |
5193 ifelse([$1], [], | |
5194 [cfgfile="${ofile}T" | |
5195 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
5196 $rm -f "$cfgfile" | |
5197 AC_MSG_NOTICE([creating $ofile])], | |
5198 [cfgfile="$ofile"]) | |
5199 | |
5200 cat <<__EOF__ >> "$cfgfile" | |
5201 ifelse([$1], [], | |
5202 [#! $SHELL | |
5203 | |
5204 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
5205 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
5206 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
5207 # | |
5208 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
5209 # Free Software Foundation, Inc. | |
5210 # | |
5211 # This file is part of GNU Libtool: | |
5212 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
5213 # | |
5214 # This program is free software; you can redistribute it and/or modify | |
5215 # it under the terms of the GNU General Public License as published by | |
5216 # the Free Software Foundation; either version 2 of the License, or | |
5217 # (at your option) any later version. | |
5218 # | |
5219 # This program is distributed in the hope that it will be useful, but | |
5220 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
5221 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
5222 # General Public License for more details. | |
5223 # | |
5224 # You should have received a copy of the GNU General Public License | |
5225 # along with this program; if not, write to the Free Software | |
5226 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
5227 # | |
5228 # As a special exception to the GNU General Public License, if you | |
5229 # distribute this file as part of a program that contains a | |
5230 # configuration script generated by Autoconf, you may include it under | |
5231 # the same distribution terms that you use for the rest of that program. | |
5232 | |
5233 # A sed program that does not truncate output. | |
5234 SED=$lt_SED | |
5235 | |
5236 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
5237 Xsed="$SED -e 1s/^X//" | |
5238 | |
5239 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
5240 # if CDPATH is set. | |
5241 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
5242 | |
5243 # The names of the tagged configurations supported by this script. | |
5244 available_tags= | |
5245 | |
5246 # ### BEGIN LIBTOOL CONFIG], | |
5247 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) | |
5248 | |
5249 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
5250 | |
5251 # Shell to use when invoking shell scripts. | |
5252 SHELL=$lt_SHELL | |
5253 | |
5254 # Whether or not to build shared libraries. | |
5255 build_libtool_libs=$enable_shared | |
5256 | |
5257 # Whether or not to build static libraries. | |
5258 build_old_libs=$enable_static | |
5259 | |
5260 # Whether or not to add -lc for building shared libraries. | |
5261 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) | |
5262 | |
5263 # Whether or not to disallow shared libs when runtime libs are static | |
5264 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) | |
5265 | |
5266 # Whether or not to optimize for fast installation. | |
5267 fast_install=$enable_fast_install | |
5268 | |
5269 # The host system. | |
5270 host_alias=$host_alias | |
5271 host=$host | |
5272 host_os=$host_os | |
5273 | |
5274 # The build system. | |
5275 build_alias=$build_alias | |
5276 build=$build | |
5277 build_os=$build_os | |
5278 | |
5279 # An echo program that does not interpret backslashes. | |
5280 echo=$lt_echo | |
5281 | |
5282 # The archiver. | |
5283 AR=$lt_AR | |
5284 AR_FLAGS=$lt_AR_FLAGS | |
5285 | |
5286 # A C compiler. | |
5287 LTCC=$lt_LTCC | |
5288 | |
5289 # LTCC compiler flags. | |
5290 LTCFLAGS=$lt_LTCFLAGS | |
5291 | |
5292 # A language-specific compiler. | |
5293 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) | |
5294 | |
5295 # Is the compiler the GNU C compiler? | |
5296 with_gcc=$_LT_AC_TAGVAR(GCC, $1) | |
5297 | |
5298 # An ERE matcher. | |
5299 EGREP=$lt_EGREP | |
5300 | |
5301 # The linker used to build libraries. | |
5302 LD=$lt_[]_LT_AC_TAGVAR(LD, $1) | |
5303 | |
5304 # Whether we need hard or soft links. | |
5305 LN_S=$lt_LN_S | |
5306 | |
5307 # A BSD-compatible nm program. | |
5308 NM=$lt_NM | |
5309 | |
5310 # A symbol stripping program | |
5311 STRIP=$lt_STRIP | |
5312 | |
5313 # Used to examine libraries when file_magic_cmd begins "file" | |
5314 MAGIC_CMD=$MAGIC_CMD | |
5315 | |
5316 # Used on cygwin: DLL creation program. | |
5317 DLLTOOL="$DLLTOOL" | |
5318 | |
5319 # Used on cygwin: object dumper. | |
5320 OBJDUMP="$OBJDUMP" | |
5321 | |
5322 # Used on cygwin: assembler. | |
5323 AS="$AS" | |
5324 | |
5325 # The name of the directory that contains temporary libtool files. | |
5326 objdir=$objdir | |
5327 | |
5328 # How to create reloadable object files. | |
5329 reload_flag=$lt_reload_flag | |
5330 reload_cmds=$lt_reload_cmds | |
5331 | |
5332 # How to pass a linker flag through the compiler. | |
5333 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | |
5334 | |
5335 # Object file suffix (normally "o"). | |
5336 objext="$ac_objext" | |
5337 | |
5338 # Old archive suffix (normally "a"). | |
5339 libext="$libext" | |
5340 | |
5341 # Shared library suffix (normally ".so"). | |
5342 shrext_cmds='$shrext_cmds' | |
5343 | |
5344 # Executable file suffix (normally ""). | |
5345 exeext="$exeext" | |
5346 | |
5347 # Additional compiler flags for building library objects. | |
5348 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | |
5349 pic_mode=$pic_mode | |
5350 | |
5351 # What is the maximum length of a command? | |
5352 max_cmd_len=$lt_cv_sys_max_cmd_len | |
5353 | |
5354 # Does compiler simultaneously support -c and -o options? | |
5355 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) | |
5356 | |
5357 # Must we lock files when doing compilation? | |
5358 need_locks=$lt_need_locks | |
5359 | |
5360 # Do we need the lib prefix for modules? | |
5361 need_lib_prefix=$need_lib_prefix | |
5362 | |
5363 # Do we need a version for libraries? | |
5364 need_version=$need_version | |
5365 | |
5366 # Whether dlopen is supported. | |
5367 dlopen_support=$enable_dlopen | |
5368 | |
5369 # Whether dlopen of programs is supported. | |
5370 dlopen_self=$enable_dlopen_self | |
5371 | |
5372 # Whether dlopen of statically linked programs is supported. | |
5373 dlopen_self_static=$enable_dlopen_self_static | |
5374 | |
5375 # Compiler flag to prevent dynamic linking. | |
5376 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) | |
5377 | |
5378 # Compiler flag to turn off builtin functions. | |
5379 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) | |
5380 | |
5381 # Compiler flag to allow reflexive dlopens. | |
5382 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) | |
5383 | |
5384 # Compiler flag to generate shared objects directly from archives. | |
5385 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) | |
5386 | |
5387 # Compiler flag to generate thread-safe objects. | |
5388 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) | |
5389 | |
5390 # Library versioning type. | |
5391 version_type=$version_type | |
5392 | |
5393 # Format of library name prefix. | |
5394 libname_spec=$lt_libname_spec | |
5395 | |
5396 # List of archive names. First name is the real one, the rest are links. | |
5397 # The last name is the one that the linker finds with -lNAME. | |
5398 library_names_spec=$lt_library_names_spec | |
5399 | |
5400 # The coded name of the library, if different from the real name. | |
5401 soname_spec=$lt_soname_spec | |
5402 | |
5403 # Commands used to build and install an old-style archive. | |
5404 RANLIB=$lt_RANLIB | |
5405 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) | |
5406 old_postinstall_cmds=$lt_old_postinstall_cmds | |
5407 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
5408 | |
5409 # Create an old-style archive from a shared archive. | |
5410 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | |
5411 | |
5412 # Create a temporary old-style archive to link instead of a shared archive. | |
5413 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | |
5414 | |
5415 # Commands used to build and install a shared archive. | |
5416 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) | |
5417 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) | |
5418 postinstall_cmds=$lt_postinstall_cmds | |
5419 postuninstall_cmds=$lt_postuninstall_cmds | |
5420 | |
5421 # Commands used to build a loadable module (assumed same as above if empty) | |
5422 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) | |
5423 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) | |
5424 | |
5425 # Commands to strip libraries. | |
5426 old_striplib=$lt_old_striplib | |
5427 striplib=$lt_striplib | |
5428 | |
5429 # Dependencies to place before the objects being linked to create a | |
5430 # shared library. | |
5431 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) | |
5432 | |
5433 # Dependencies to place after the objects being linked to create a | |
5434 # shared library. | |
5435 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | |
5436 | |
5437 # Dependencies to place before the objects being linked to create a | |
5438 # shared library. | |
5439 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) | |
5440 | |
5441 # Dependencies to place after the objects being linked to create a | |
5442 # shared library. | |
5443 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) | |
5444 | |
5445 # The library search path used internally by the compiler when linking | |
5446 # a shared library. | |
5447 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | |
5448 | |
5449 # Method to check whether dependent libraries are shared objects. | |
5450 deplibs_check_method=$lt_deplibs_check_method | |
5451 | |
5452 # Command to use when deplibs_check_method == file_magic. | |
5453 file_magic_cmd=$lt_file_magic_cmd | |
5454 | |
5455 # Flag that allows shared libraries with undefined symbols to be built. | |
5456 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) | |
5457 | |
5458 # Flag that forces no undefined symbols. | |
5459 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) | |
5460 | |
5461 # Commands used to finish a libtool library installation in a directory. | |
5462 finish_cmds=$lt_finish_cmds | |
5463 | |
5464 # Same as above, but a single script fragment to be evaled but not shown. | |
5465 finish_eval=$lt_finish_eval | |
5466 | |
5467 # Take the output of nm and produce a listing of raw symbols and C names. | |
5468 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
5469 | |
5470 # Transform the output of nm in a proper C declaration | |
5471 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
5472 | |
5473 # Transform the output of nm in a C name address pair | |
5474 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
5475 | |
5476 # This is the shared library runtime path variable. | |
5477 runpath_var=$runpath_var | |
5478 | |
5479 # This is the shared library path variable. | |
5480 shlibpath_var=$shlibpath_var | |
5481 | |
5482 # Is shlibpath searched before the hard-coded library search path? | |
5483 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
5484 | |
5485 # How to hardcode a shared library path into an executable. | |
5486 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) | |
5487 | |
5488 # Whether we should hardcode library paths into libraries. | |
5489 hardcode_into_libs=$hardcode_into_libs | |
5490 | |
5491 # Flag to hardcode \$libdir into a binary during linking. | |
5492 # This must work even if \$libdir does not exist. | |
5493 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) | |
5494 | |
5495 # If ld is used when linking, flag to hardcode \$libdir into | |
5496 # a binary during linking. This must work even if \$libdir does | |
5497 # not exist. | |
5498 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) | |
5499 | |
5500 # Whether we need a single -rpath flag with a separated argument. | |
5501 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) | |
5502 | |
5503 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
5504 # resulting binary. | |
5505 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) | |
5506 | |
5507 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
5508 # resulting binary. | |
5509 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) | |
5510 | |
5511 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
5512 # the resulting binary. | |
5513 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) | |
5514 | |
5515 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
5516 # and all subsequent libraries and executables linked against it. | |
5517 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) | |
5518 | |
5519 # Variables whose values should be saved in libtool wrapper scripts and | |
5520 # restored at relink time. | |
5521 variables_saved_for_relink="$variables_saved_for_relink" | |
5522 | |
5523 # Whether libtool must link a program against all its dependency libraries. | |
5524 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) | |
5525 | |
5526 # Compile-time system search path for libraries | |
5527 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
5528 | |
5529 # Run-time system search path for libraries | |
5530 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
5531 | |
5532 # Fix the shell variable \$srcfile for the compiler. | |
5533 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" | |
5534 | |
5535 # Set to yes if exported symbols are required. | |
5536 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) | |
5537 | |
5538 # The commands to list exported symbols. | |
5539 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) | |
5540 | |
5541 # The commands to extract the exported symbol list from a shared archive. | |
5542 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
5543 | |
5544 # Symbols that should not be listed in the preloaded symbols. | |
5545 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) | |
5546 | |
5547 # Symbols that must always be exported. | |
5548 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) | |
5549 | |
5550 ifelse([$1],[], | |
5551 [# ### END LIBTOOL CONFIG], | |
5552 [# ### END LIBTOOL TAG CONFIG: $tagname]) | |
5553 | |
5554 __EOF__ | |
5555 | |
5556 ifelse([$1],[], [ | |
5557 case $host_os in | |
5558 aix3*) | |
5559 cat <<\EOF >> "$cfgfile" | |
5560 | |
5561 # AIX sometimes has problems with the GCC collect2 program. For some | |
5562 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
5563 # vanish in a puff of smoke. | |
5564 if test "X${COLLECT_NAMES+set}" != Xset; then | |
5565 COLLECT_NAMES= | |
5566 export COLLECT_NAMES | |
5567 fi | |
5568 EOF | |
5569 ;; | |
5570 esac | |
5571 | |
5572 # We use sed instead of cat because bash on DJGPP gets confused if | |
5573 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
5574 # text mode, it properly converts lines to CR/LF. This bash problem | |
5575 # is reportedly fixed, but why not run on old versions too? | |
5576 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
5577 | |
5578 mv -f "$cfgfile" "$ofile" || \ | |
5579 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
5580 chmod +x "$ofile" | |
5581 ]) | |
5582 else | |
5583 # If there is no Makefile yet, we rely on a make rule to execute | |
5584 # `config.status --recheck' to rerun these tests and create the | |
5585 # libtool script then. | |
5586 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
5587 if test -f "$ltmain_in"; then | |
5588 test -f Makefile && make "$ltmain" | |
5589 fi | |
5590 fi | |
5591 ])# AC_LIBTOOL_CONFIG | |
5592 | |
5593 | |
5594 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) | |
5595 # ------------------------------------------- | |
5596 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], | |
5597 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | |
5598 | |
5599 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | |
5600 | |
5601 if test "$GCC" = yes; then | |
5602 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | |
5603 | |
5604 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | |
5605 lt_cv_prog_compiler_rtti_exceptions, | |
5606 [-fno-rtti -fno-exceptions], [], | |
5607 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | |
5608 fi | |
5609 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI | |
5610 | |
5611 | |
5612 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | |
5613 # --------------------------------- | |
5614 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], | |
5615 [AC_REQUIRE([AC_CANONICAL_HOST]) | |
5616 AC_REQUIRE([AC_PROG_NM]) | |
5617 AC_REQUIRE([AC_OBJEXT]) | |
5618 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5619 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | |
5620 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | |
5621 [ | |
5622 # These are sane defaults that work on at least a few old systems. | |
5623 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5624 | |
5625 # Character class describing NM global symbol codes. | |
5626 symcode='[[BCDEGRST]]' | |
5627 | |
5628 # Regexp to match symbols that can be accessed directly from C. | |
5629 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | |
5630 | |
5631 # Transform an extracted symbol line into a proper C declaration | |
5632 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
5633 | |
5634 # Transform an extracted symbol line into symbol name and symbol address | |
5635 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'" | |
5636 | |
5637 # Define system-specific variables. | |
5638 case $host_os in | |
5639 aix*) | |
5640 symcode='[[BCDT]]' | |
5641 ;; | |
5642 cygwin* | mingw* | pw32*) | |
5643 symcode='[[ABCDGISTW]]' | |
5644 ;; | |
5645 hpux*) # Its linker distinguishes data from code symbols | |
5646 if test "$host_cpu" = ia64; then | |
5647 symcode='[[ABCDEGRST]]' | |
5648 fi | |
5649 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5650 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'" | |
5651 ;; | |
5652 linux*) | |
5653 if test "$host_cpu" = ia64; then | |
5654 symcode='[[ABCDGIRSTW]]' | |
5655 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5656 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'" | |
5657 fi | |
5658 ;; | |
5659 irix* | nonstopux*) | |
5660 symcode='[[BCDEGRST]]' | |
5661 ;; | |
5662 osf*) | |
5663 symcode='[[BCDEGQRST]]' | |
5664 ;; | |
5665 solaris*) | |
5666 symcode='[[BDRT]]' | |
5667 ;; | |
5668 sco3.2v5*) | |
5669 symcode='[[DT]]' | |
5670 ;; | |
5671 sysv4.2uw2*) | |
5672 symcode='[[DT]]' | |
5673 ;; | |
5674 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5675 symcode='[[ABDT]]' | |
5676 ;; | |
5677 sysv4) | |
5678 symcode='[[DFNSTU]]' | |
5679 ;; | |
5680 esac | |
5681 | |
5682 # Handle CRLF in mingw tool chain | |
5683 opt_cr= | |
5684 case $build_os in | |
5685 mingw*) | |
5686 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5687 ;; | |
5688 esac | |
5689 | |
5690 # If we're using GNU nm, then use its standard symbol codes. | |
5691 case `$NM -V 2>&1` in | |
5692 *GNU* | *'with BFD'*) | |
5693 symcode='[[ABCDGIRSTW]]' ;; | |
5694 esac | |
5695 | |
5696 # Try without a prefix undercore, then with it. | |
5697 for ac_symprfx in "" "_"; do | |
5698 | |
5699 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5700 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5701 | |
5702 # Write the raw and C identifiers. | |
5703 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5704 | |
5705 # Check to see that the pipe works correctly. | |
5706 pipe_works=no | |
5707 | |
5708 rm -f conftest* | |
5709 cat > conftest.$ac_ext <<EOF | |
5710 #ifdef __cplusplus | |
5711 extern "C" { | |
5712 #endif | |
5713 char nm_test_var; | |
5714 void nm_test_func(){} | |
5715 #ifdef __cplusplus | |
5716 } | |
5717 #endif | |
5718 int main(){nm_test_var='a';nm_test_func();return(0);} | |
5719 EOF | |
5720 | |
5721 if AC_TRY_EVAL(ac_compile); then | |
5722 # Now try to grab the symbols. | |
5723 nlist=conftest.nm | |
5724 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then | |
5725 # Try sorting and uniquifying the output. | |
5726 if sort "$nlist" | uniq > "$nlist"T; then | |
5727 mv -f "$nlist"T "$nlist" | |
5728 else | |
5729 rm -f "$nlist"T | |
5730 fi | |
5731 | |
5732 # Make sure that we snagged all the symbols we need. | |
5733 if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
5734 if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
5735 cat <<EOF > conftest.$ac_ext | |
5736 #ifdef __cplusplus | |
5737 extern "C" { | |
5738 #endif | |
5739 | |
5740 EOF | |
5741 # Now generate the symbol file. | |
5742 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
5743 | |
5744 cat <<EOF >> conftest.$ac_ext | |
5745 #if defined (__STDC__) && __STDC__ | |
5746 # define lt_ptr_t void * | |
5747 #else | |
5748 # define lt_ptr_t char * | |
5749 # define const | |
5750 #endif | |
5751 | |
5752 /* The mapping between symbol names and symbols. */ | |
5753 const struct { | |
5754 const char *name; | |
5755 lt_ptr_t address; | |
5756 } | |
5757 lt_preloaded_symbols[[]] = | |
5758 { | |
5759 EOF | |
5760 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
5761 cat <<\EOF >> conftest.$ac_ext | |
5762 {0, (lt_ptr_t) 0} | |
5763 }; | |
5764 | |
5765 #ifdef __cplusplus | |
5766 } | |
5767 #endif | |
5768 EOF | |
5769 # Now try linking the two files. | |
5770 mv conftest.$ac_objext conftstm.$ac_objext | |
5771 lt_save_LIBS="$LIBS" | |
5772 lt_save_CFLAGS="$CFLAGS" | |
5773 LIBS="conftstm.$ac_objext" | |
5774 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | |
5775 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | |
5776 pipe_works=yes | |
5777 fi | |
5778 LIBS="$lt_save_LIBS" | |
5779 CFLAGS="$lt_save_CFLAGS" | |
5780 else | |
5781 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | |
5782 fi | |
5783 else | |
5784 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | |
5785 fi | |
5786 else | |
5787 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | |
5788 fi | |
5789 else | |
5790 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | |
5791 cat conftest.$ac_ext >&5 | |
5792 fi | |
5793 rm -f conftest* conftst* | |
5794 | |
5795 # Do not use the global_symbol_pipe unless it works. | |
5796 if test "$pipe_works" = yes; then | |
5797 break | |
5798 else | |
5799 lt_cv_sys_global_symbol_pipe= | |
5800 fi | |
5801 done | |
5802 ]) | |
5803 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5804 lt_cv_sys_global_symbol_to_cdecl= | |
5805 fi | |
5806 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5807 AC_MSG_RESULT(failed) | |
5808 else | |
5809 AC_MSG_RESULT(ok) | |
5810 fi | |
5811 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | |
5812 | |
5813 | |
5814 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) | |
5815 # --------------------------------------- | |
5816 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], | |
5817 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= | |
5818 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | |
5819 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= | |
5820 | |
5821 AC_MSG_CHECKING([for $compiler option to produce PIC]) | |
5822 ifelse([$1],[CXX],[ | |
5823 # C++ specific cases for pic, static, wl, etc. | |
5824 if test "$GXX" = yes; then | |
5825 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5826 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
5827 | |
5828 case $host_os in | |
5829 aix*) | |
5830 # All AIX code is PIC. | |
5831 if test "$host_cpu" = ia64; then | |
5832 # AIX 5 now supports IA64 processor | |
5833 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5834 fi | |
5835 ;; | |
5836 amigaos*) | |
5837 # FIXME: we need at least 68020 code to build shared libraries, but | |
5838 # adding the `-m68020' flag to GCC prevents building anything better, | |
5839 # like `-m68040'. | |
5840 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | |
5841 ;; | |
5842 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
5843 # PIC is the default for these OSes. | |
5844 ;; | |
5845 mingw* | os2* | pw32*) | |
5846 # This hack is so that the source file can tell whether it is being | |
5847 # built for inclusion in a dll (and should export symbols for example). | |
5848 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | |
5849 ;; | |
5850 darwin* | rhapsody*) | |
5851 # PIC is the default on this platform | |
5852 # Common symbols not allowed in MH_DYLIB files | |
5853 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | |
5854 ;; | |
5855 *djgpp*) | |
5856 # DJGPP does not support shared libraries at all | |
5857 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | |
5858 ;; | |
5859 interix3*) | |
5860 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
5861 # Instead, we relocate shared libraries at runtime. | |
5862 ;; | |
5863 sysv4*MP*) | |
5864 if test -d /usr/nec; then | |
5865 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | |
5866 fi | |
5867 ;; | |
5868 hpux*) | |
5869 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
5870 # not for PA HP-UX. | |
5871 case $host_cpu in | |
5872 hppa*64*|ia64*) | |
5873 ;; | |
5874 *) | |
5875 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
5876 ;; | |
5877 esac | |
5878 ;; | |
5879 *) | |
5880 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
5881 ;; | |
5882 esac | |
5883 else | |
5884 case $host_os in | |
5885 aix4* | aix5*) | |
5886 # All AIX code is PIC. | |
5887 if test "$host_cpu" = ia64; then | |
5888 # AIX 5 now supports IA64 processor | |
5889 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5890 else | |
5891 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | |
5892 fi | |
5893 ;; | |
5894 chorus*) | |
5895 case $cc_basename in | |
5896 cxch68*) | |
5897 # Green Hills C++ Compiler | |
5898 # _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" | |
5899 ;; | |
5900 esac | |
5901 ;; | |
5902 darwin*) | |
5903 # PIC is the default on this platform | |
5904 # Common symbols not allowed in MH_DYLIB files | |
5905 case $cc_basename in | |
5906 xlc*) | |
5907 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | |
5908 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5909 ;; | |
5910 esac | |
5911 ;; | |
5912 dgux*) | |
5913 case $cc_basename in | |
5914 ec++*) | |
5915 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5916 ;; | |
5917 ghcx*) | |
5918 # Green Hills C++ Compiler | |
5919 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
5920 ;; | |
5921 *) | |
5922 ;; | |
5923 esac | |
5924 ;; | |
5925 freebsd* | kfreebsd*-gnu | dragonfly*) | |
5926 # FreeBSD uses GNU C++ | |
5927 ;; | |
5928 hpux9* | hpux10* | hpux11*) | |
5929 case $cc_basename in | |
5930 CC*) | |
5931 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5932 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | |
5933 if test "$host_cpu" != ia64; then | |
5934 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
5935 fi | |
5936 ;; | |
5937 aCC*) | |
5938 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5939 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | |
5940 case $host_cpu in | |
5941 hppa*64*|ia64*) | |
5942 # +Z the default | |
5943 ;; | |
5944 *) | |
5945 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
5946 ;; | |
5947 esac | |
5948 ;; | |
5949 *) | |
5950 ;; | |
5951 esac | |
5952 ;; | |
5953 interix*) | |
5954 # This is c89, which is MS Visual C++ (no shared libs) | |
5955 # Anyone wants to do a port? | |
5956 ;; | |
5957 irix5* | irix6* | nonstopux*) | |
5958 case $cc_basename in | |
5959 CC*) | |
5960 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5961 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
5962 # CC pic flag -KPIC is the default. | |
5963 ;; | |
5964 *) | |
5965 ;; | |
5966 esac | |
5967 ;; | |
5968 linux*) | |
5969 case $cc_basename in | |
5970 KCC*) | |
5971 # KAI C++ Compiler | |
5972 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | |
5973 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
5974 ;; | |
5975 icpc* | ecpc*) | |
5976 # Intel C++ | |
5977 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5978 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5979 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
5980 ;; | |
5981 pgCC*) | |
5982 # Portland Group C++ compiler. | |
5983 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5984 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | |
5985 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5986 ;; | |
5987 cxx*) | |
5988 # Compaq C++ | |
5989 # Make sure the PIC flag is empty. It appears that all Alpha | |
5990 # Linux and Compaq Tru64 Unix objects are PIC. | |
5991 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | |
5992 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
5993 ;; | |
5994 *) | |
5995 ;; | |
5996 esac | |
5997 ;; | |
5998 lynxos*) | |
5999 ;; | |
6000 m88k*) | |
6001 ;; | |
6002 mvs*) | |
6003 case $cc_basename in | |
6004 cxx*) | |
6005 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | |
6006 ;; | |
6007 *) | |
6008 ;; | |
6009 esac | |
6010 ;; | |
6011 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
6012 ;; | |
6013 osf3* | osf4* | osf5*) | |
6014 case $cc_basename in | |
6015 KCC*) | |
6016 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | |
6017 ;; | |
6018 RCC*) | |
6019 # Rational C++ 2.4.1 | |
6020 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
6021 ;; | |
6022 cxx*) | |
6023 # Digital/Compaq C++ | |
6024 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6025 # Make sure the PIC flag is empty. It appears that all Alpha | |
6026 # Linux and Compaq Tru64 Unix objects are PIC. | |
6027 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | |
6028 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
6029 ;; | |
6030 *) | |
6031 ;; | |
6032 esac | |
6033 ;; | |
6034 psos*) | |
6035 ;; | |
6036 solaris*) | |
6037 case $cc_basename in | |
6038 CC*) | |
6039 # Sun C++ 4.2, 5.x and Centerline C++ | |
6040 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
6041 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6042 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
6043 ;; | |
6044 gcx*) | |
6045 # Green Hills C++ Compiler | |
6046 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
6047 ;; | |
6048 *) | |
6049 ;; | |
6050 esac | |
6051 ;; | |
6052 sunos4*) | |
6053 case $cc_basename in | |
6054 CC*) | |
6055 # Sun C++ 4.x | |
6056 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
6057 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6058 ;; | |
6059 lcc*) | |
6060 # Lucid | |
6061 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
6062 ;; | |
6063 *) | |
6064 ;; | |
6065 esac | |
6066 ;; | |
6067 tandem*) | |
6068 case $cc_basename in | |
6069 NCC*) | |
6070 # NonStop-UX NCC 3.20 | |
6071 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
6072 ;; | |
6073 *) | |
6074 ;; | |
6075 esac | |
6076 ;; | |
6077 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
6078 case $cc_basename in | |
6079 CC*) | |
6080 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6081 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
6082 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6083 ;; | |
6084 esac | |
6085 ;; | |
6086 vxworks*) | |
6087 ;; | |
6088 *) | |
6089 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
6090 ;; | |
6091 esac | |
6092 fi | |
6093 ], | |
6094 [ | |
6095 if test "$GCC" = yes; then | |
6096 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6097 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
6098 | |
6099 case $host_os in | |
6100 aix*) | |
6101 # All AIX code is PIC. | |
6102 if test "$host_cpu" = ia64; then | |
6103 # AIX 5 now supports IA64 processor | |
6104 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6105 fi | |
6106 ;; | |
6107 | |
6108 amigaos*) | |
6109 # FIXME: we need at least 68020 code to build shared libraries, but | |
6110 # adding the `-m68020' flag to GCC prevents building anything better, | |
6111 # like `-m68040'. | |
6112 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | |
6113 ;; | |
6114 | |
6115 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6116 # PIC is the default for these OSes. | |
6117 ;; | |
6118 | |
6119 mingw* | pw32* | os2*) | |
6120 # This hack is so that the source file can tell whether it is being | |
6121 # built for inclusion in a dll (and should export symbols for example). | |
6122 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | |
6123 ;; | |
6124 | |
6125 darwin* | rhapsody*) | |
6126 # PIC is the default on this platform | |
6127 # Common symbols not allowed in MH_DYLIB files | |
6128 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | |
6129 ;; | |
6130 | |
6131 interix3*) | |
6132 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6133 # Instead, we relocate shared libraries at runtime. | |
6134 ;; | |
6135 | |
6136 msdosdjgpp*) | |
6137 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6138 # on systems that don't support them. | |
6139 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
6140 enable_shared=no | |
6141 ;; | |
6142 | |
6143 sysv4*MP*) | |
6144 if test -d /usr/nec; then | |
6145 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | |
6146 fi | |
6147 ;; | |
6148 | |
6149 hpux*) | |
6150 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6151 # not for PA HP-UX. | |
6152 case $host_cpu in | |
6153 hppa*64*|ia64*) | |
6154 # +Z the default | |
6155 ;; | |
6156 *) | |
6157 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
6158 ;; | |
6159 esac | |
6160 ;; | |
6161 | |
6162 *) | |
6163 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
6164 ;; | |
6165 esac | |
6166 else | |
6167 # PORTME Check for flag to pass linker flags through the system compiler. | |
6168 case $host_os in | |
6169 aix*) | |
6170 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6171 if test "$host_cpu" = ia64; then | |
6172 # AIX 5 now supports IA64 processor | |
6173 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6174 else | |
6175 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | |
6176 fi | |
6177 ;; | |
6178 darwin*) | |
6179 # PIC is the default on this platform | |
6180 # Common symbols not allowed in MH_DYLIB files | |
6181 case $cc_basename in | |
6182 xlc*) | |
6183 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | |
6184 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6185 ;; | |
6186 esac | |
6187 ;; | |
6188 | |
6189 mingw* | pw32* | os2*) | |
6190 # This hack is so that the source file can tell whether it is being | |
6191 # built for inclusion in a dll (and should export symbols for example). | |
6192 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | |
6193 ;; | |
6194 | |
6195 hpux9* | hpux10* | hpux11*) | |
6196 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6198 # not for PA HP-UX. | |
6199 case $host_cpu in | |
6200 hppa*64*|ia64*) | |
6201 # +Z the default | |
6202 ;; | |
6203 *) | |
6204 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
6205 ;; | |
6206 esac | |
6207 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6208 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | |
6209 ;; | |
6210 | |
6211 irix5* | irix6* | nonstopux*) | |
6212 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6213 # PIC (with -KPIC) is the default. | |
6214 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
6215 ;; | |
6216 | |
6217 newsos6) | |
6218 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
6219 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6220 ;; | |
6221 | |
6222 linux*) | |
6223 case $cc_basename in | |
6224 icc* | ecc*) | |
6225 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6226 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
6227 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
6228 ;; | |
6229 pgcc* | pgf77* | pgf90* | pgf95*) | |
6230 # Portland Group compilers (*not* the Pentium gcc compiler, | |
6231 # which looks to be a dead project) | |
6232 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6233 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | |
6234 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6235 ;; | |
6236 ccc*) | |
6237 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6238 # All Alpha code is PIC. | |
6239 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
6240 ;; | |
6241 esac | |
6242 ;; | |
6243 | |
6244 osf3* | osf4* | osf5*) | |
6245 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6246 # All OSF/1 code is PIC. | |
6247 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
6248 ;; | |
6249 | |
6250 solaris*) | |
6251 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
6252 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6253 case $cc_basename in | |
6254 f77* | f90* | f95*) | |
6255 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | |
6256 *) | |
6257 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | |
6258 esac | |
6259 ;; | |
6260 | |
6261 sunos4*) | |
6262 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
6263 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
6264 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6265 ;; | |
6266 | |
6267 sysv4 | sysv4.2uw2* | sysv4.3*) | |
6268 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6269 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
6270 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6271 ;; | |
6272 | |
6273 sysv4*MP*) | |
6274 if test -d /usr/nec ;then | |
6275 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | |
6276 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6277 fi | |
6278 ;; | |
6279 | |
6280 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
6281 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6282 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
6283 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6284 ;; | |
6285 | |
6286 unicos*) | |
6287 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
6288 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
6289 ;; | |
6290 | |
6291 uts4*) | |
6292 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
6293 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
6294 ;; | |
6295 | |
6296 *) | |
6297 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
6298 ;; | |
6299 esac | |
6300 fi | |
6301 ]) | |
6302 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) | |
6303 | |
6304 # | |
6305 # Check to make sure the PIC flag actually works. | |
6306 # | |
6307 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then | |
6308 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], | |
6309 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), | |
6310 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], | |
6311 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in | |
6312 "" | " "*) ;; | |
6313 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; | |
6314 esac], | |
6315 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | |
6316 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | |
6317 fi | |
6318 case $host_os in | |
6319 # For platforms which do not support PIC, -DPIC is meaningless: | |
6320 *djgpp*) | |
6321 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | |
6322 ;; | |
6323 *) | |
6324 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" | |
6325 ;; | |
6326 esac | |
6327 | |
6328 # | |
6329 # Check to make sure the static flag actually works. | |
6330 # | |
6331 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" | |
6332 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | |
6333 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | |
6334 $lt_tmp_static_flag, | |
6335 [], | |
6336 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | |
6337 ]) | |
6338 | |
6339 | |
6340 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) | |
6341 # ------------------------------------ | |
6342 # See if the linker supports building shared libraries. | |
6343 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], | |
6344 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | |
6345 ifelse([$1],[CXX],[ | |
6346 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
6347 case $host_os in | |
6348 aix4* | aix5*) | |
6349 # If we're using GNU nm, then we don't want the "-C" option. | |
6350 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
6351 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
6352 _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' | |
6353 else | |
6354 _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' | |
6355 fi | |
6356 ;; | |
6357 pw32*) | |
6358 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | |
6359 ;; | |
6360 cygwin* | mingw*) | |
6361 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | |
6362 ;; | |
6363 kfreebsd*-gnu) | |
6364 _LT_AC_TAGVAR(link_all_deplibs, $1)=no | |
6365 ;; | |
6366 linux*) | |
6367 _LT_AC_TAGVAR(link_all_deplibs, $1)=no | |
6368 ;; | |
6369 *) | |
6370 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
6371 ;; | |
6372 esac | |
6373 ],[ | |
6374 runpath_var= | |
6375 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | |
6376 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
6377 _LT_AC_TAGVAR(archive_cmds, $1)= | |
6378 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | |
6379 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= | |
6380 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= | |
6381 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | |
6382 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | |
6383 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= | |
6384 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
6385 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
6386 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | |
6387 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
6388 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | |
6389 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
6390 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | |
6391 _LT_AC_TAGVAR(hardcode_automatic, $1)=no | |
6392 _LT_AC_TAGVAR(module_cmds, $1)= | |
6393 _LT_AC_TAGVAR(module_expsym_cmds, $1)= | |
6394 _LT_AC_TAGVAR(always_export_symbols, $1)=no | |
6395 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
6396 # include_expsyms should be a list of space-separated symbols to be *always* | |
6397 # included in the symbol list | |
6398 _LT_AC_TAGVAR(include_expsyms, $1)= | |
6399 # exclude_expsyms can be an extended regexp of symbols to exclude | |
6400 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
6401 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
6402 # as well as any symbol that contains `d'. | |
6403 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" | |
6404 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
6405 # platforms (ab)use it in PIC code, but their linkers get confused if | |
6406 # the symbol is explicitly referenced. Since portable code cannot | |
6407 # rely on this symbol name, it's probably fine to never include it in | |
6408 # preloaded symbol tables. | |
6409 extract_expsyms_cmds= | |
6410 # Just being paranoid about ensuring that cc_basename is set. | |
6411 _LT_CC_BASENAME([$compiler]) | |
6412 case $host_os in | |
6413 cygwin* | mingw* | pw32*) | |
6414 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
6415 # When not using gcc, we currently assume that we are using | |
6416 # Microsoft Visual C++. | |
6417 if test "$GCC" != yes; then | |
6418 with_gnu_ld=no | |
6419 fi | |
6420 ;; | |
6421 interix*) | |
6422 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
6423 with_gnu_ld=yes | |
6424 ;; | |
6425 openbsd*) | |
6426 with_gnu_ld=no | |
6427 ;; | |
6428 esac | |
6429 | |
6430 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | |
6431 if test "$with_gnu_ld" = yes; then | |
6432 # If archive_cmds runs LD, not CC, wlarc should be empty | |
6433 wlarc='${wl}' | |
6434 | |
6435 # Set some defaults for GNU ld with shared library support. These | |
6436 # are reset later if shared libraries are not supported. Putting them | |
6437 # here allows them to be overridden if necessary. | |
6438 runpath_var=LD_RUN_PATH | |
6439 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | |
6440 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
6441 # ancient GNU ld didn't support --whole-archive et. al. | |
6442 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
6443 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
6444 else | |
6445 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | |
6446 fi | |
6447 supports_anon_versioning=no | |
6448 case `$LD -v 2>/dev/null` in | |
6449 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
6450 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
6451 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
6452 *\ 2.11.*) ;; # other 2.11 versions | |
6453 *) supports_anon_versioning=yes ;; | |
6454 esac | |
6455 | |
6456 # See if GNU ld supports shared libraries. | |
6457 case $host_os in | |
6458 aix3* | aix4* | aix5*) | |
6459 # On AIX/PPC, the GNU linker is very broken | |
6460 if test "$host_cpu" != ia64; then | |
6461 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6462 cat <<EOF 1>&2 | |
6463 | |
6464 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
6465 *** to be unable to reliably create shared libraries on AIX. | |
6466 *** Therefore, libtool is disabling shared libraries support. If you | |
6467 *** really care for shared libraries, you may want to modify your PATH | |
6468 *** so that a non-GNU linker is found, and then restart. | |
6469 | |
6470 EOF | |
6471 fi | |
6472 ;; | |
6473 | |
6474 amigaos*) | |
6475 _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)' | |
6476 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6477 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
6478 | |
6479 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
6480 # that the semantics of dynamic libraries on AmigaOS, at least up | |
6481 # to version 4, is to share data among multiple programs linked | |
6482 # with the same dynamic library. Since this doesn't match the | |
6483 # behavior of shared libraries on other platforms, we can't use | |
6484 # them. | |
6485 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6486 ;; | |
6487 | |
6488 beos*) | |
6489 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6490 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6491 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
6492 # support --undefined. This deserves some investigation. FIXME | |
6493 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6494 else | |
6495 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6496 fi | |
6497 ;; | |
6498 | |
6499 cygwin* | mingw* | pw32*) | |
6500 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | |
6501 # as there is no search path for DLLs. | |
6502 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6503 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6504 _LT_AC_TAGVAR(always_export_symbols, $1)=no | |
6505 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
6506 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | |
6507 | |
6508 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
6509 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
6510 # If the export-symbols file already is a .def file (1st line | |
6511 # is EXPORTS), use it as is; otherwise, prepend... | |
6512 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
6513 cp $export_symbols $output_objdir/$soname.def; | |
6514 else | |
6515 echo EXPORTS > $output_objdir/$soname.def; | |
6516 cat $export_symbols >> $output_objdir/$soname.def; | |
6517 fi~ | |
6518 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
6519 else | |
6520 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6521 fi | |
6522 ;; | |
6523 | |
6524 interix3*) | |
6525 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
6526 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6527 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6528 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6529 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
6530 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
6531 # default) and relocated if they conflict, which is a slow very memory | |
6532 # consuming and fragmenting process. To avoid this, we pick a random, | |
6533 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
6534 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
6535 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
6536 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
6537 ;; | |
6538 | |
6539 linux*) | |
6540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6541 tmp_addflag= | |
6542 case $cc_basename,$host_cpu in | |
6543 pgcc*) # Portland Group C compiler | |
6544 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
6545 tmp_addflag=' $pic_flag' | |
6546 ;; | |
6547 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
6548 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
6549 tmp_addflag=' $pic_flag -Mnomain' ;; | |
6550 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
6551 tmp_addflag=' -i_dynamic' ;; | |
6552 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
6553 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
6554 ifc* | ifort*) # Intel Fortran compiler | |
6555 tmp_addflag=' -nofor_main' ;; | |
6556 esac | |
6557 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6558 | |
6559 if test $supports_anon_versioning = yes; then | |
6560 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ | |
6561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
6562 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
6563 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
6564 fi | |
6565 _LT_AC_TAGVAR(link_all_deplibs, $1)=no | |
6566 else | |
6567 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6568 fi | |
6569 ;; | |
6570 | |
6571 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
6572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6573 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
6574 wlarc= | |
6575 else | |
6576 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6577 _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' | |
6578 fi | |
6579 ;; | |
6580 | |
6581 solaris*) | |
6582 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
6583 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6584 cat <<EOF 1>&2 | |
6585 | |
6586 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
6587 *** create shared libraries on Solaris systems. Therefore, libtool | |
6588 *** is disabling shared libraries support. We urge you to upgrade GNU | |
6589 *** binutils to release 2.9.1 or newer. Another option is to modify | |
6590 *** your PATH or compiler configuration so that the native linker is | |
6591 *** used, and then restart. | |
6592 | |
6593 EOF | |
6594 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6595 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6596 _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' | |
6597 else | |
6598 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6599 fi | |
6600 ;; | |
6601 | |
6602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
6603 case `$LD -v 2>&1` in | |
6604 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | |
6605 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6606 cat <<_LT_EOF 1>&2 | |
6607 | |
6608 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
6609 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
6610 *** is disabling shared libraries support. We urge you to upgrade GNU | |
6611 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
6612 *** your PATH or compiler configuration so that the native linker is | |
6613 *** used, and then restart. | |
6614 | |
6615 _LT_EOF | |
6616 ;; | |
6617 *) | |
6618 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6619 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
6620 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
6621 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
6622 else | |
6623 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6624 fi | |
6625 ;; | |
6626 esac | |
6627 ;; | |
6628 | |
6629 sunos4*) | |
6630 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6631 wlarc= | |
6632 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
6633 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6634 ;; | |
6635 | |
6636 *) | |
6637 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6638 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6639 _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' | |
6640 else | |
6641 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6642 fi | |
6643 ;; | |
6644 esac | |
6645 | |
6646 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then | |
6647 runpath_var= | |
6648 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
6649 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | |
6650 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | |
6651 fi | |
6652 else | |
6653 # PORTME fill in a description of your system's linker (not GNU ld) | |
6654 case $host_os in | |
6655 aix3*) | |
6656 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6657 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | |
6658 _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' | |
6659 # Note: this linker hardcodes the directories in LIBPATH if there | |
6660 # are no directories specified by -L. | |
6661 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
6662 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
6663 # Neither direct hardcoding nor static linking is supported with a | |
6664 # broken collect2. | |
6665 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | |
6666 fi | |
6667 ;; | |
6668 | |
6669 aix4* | aix5*) | |
6670 if test "$host_cpu" = ia64; then | |
6671 # On IA64, the linker does run time linking by default, so we don't | |
6672 # have to do anything special. | |
6673 aix_use_runtimelinking=no | |
6674 exp_sym_flag='-Bexport' | |
6675 no_entry_flag="" | |
6676 else | |
6677 # If we're using GNU nm, then we don't want the "-C" option. | |
6678 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
6679 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
6680 _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' | |
6681 else | |
6682 _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' | |
6683 fi | |
6684 aix_use_runtimelinking=no | |
6685 | |
6686 # Test if we are trying to use run time linking or normal | |
6687 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
6688 # need to do runtime linking. | |
6689 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | |
6690 for ld_flag in $LDFLAGS; do | |
6691 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
6692 aix_use_runtimelinking=yes | |
6693 break | |
6694 fi | |
6695 done | |
6696 ;; | |
6697 esac | |
6698 | |
6699 exp_sym_flag='-bexport' | |
6700 no_entry_flag='-bnoentry' | |
6701 fi | |
6702 | |
6703 # When large executables or shared objects are built, AIX ld can | |
6704 # have problems creating the table of contents. If linking a library | |
6705 # or program results in "error TOC overflow" add -mminimal-toc to | |
6706 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
6707 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
6708 | |
6709 _LT_AC_TAGVAR(archive_cmds, $1)='' | |
6710 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
6711 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | |
6712 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
6713 | |
6714 if test "$GCC" = yes; then | |
6715 case $host_os in aix4.[[012]]|aix4.[[012]].*) | |
6716 # We only want to do this on AIX 4.2 and lower, the check | |
6717 # below for broken collect2 doesn't work under 4.3+ | |
6718 collect2name=`${CC} -print-prog-name=collect2` | |
6719 if test -f "$collect2name" && \ | |
6720 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
6721 then | |
6722 # We have reworked collect2 | |
6723 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
6724 else | |
6725 # We have old collect2 | |
6726 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | |
6727 # It fails to find uninstalled libraries when the uninstalled | |
6728 # path is not listed in the libpath. Setting hardcode_minus_L | |
6729 # to unsupported forces relinking | |
6730 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
6731 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6732 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | |
6733 fi | |
6734 ;; | |
6735 esac | |
6736 shared_flag='-shared' | |
6737 if test "$aix_use_runtimelinking" = yes; then | |
6738 shared_flag="$shared_flag "'${wl}-G' | |
6739 fi | |
6740 else | |
6741 # not using gcc | |
6742 if test "$host_cpu" = ia64; then | |
6743 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
6744 # chokes on -Wl,-G. The following line is correct: | |
6745 shared_flag='-G' | |
6746 else | |
6747 if test "$aix_use_runtimelinking" = yes; then | |
6748 shared_flag='${wl}-G' | |
6749 else | |
6750 shared_flag='${wl}-bM:SRE' | |
6751 fi | |
6752 fi | |
6753 fi | |
6754 | |
6755 # It seems that -bexpall does not export symbols beginning with | |
6756 # underscore (_), so it is better to generate a list of symbols to export. | |
6757 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | |
6758 if test "$aix_use_runtimelinking" = yes; then | |
6759 # Warning - without using the other runtime loading flags (-brtl), | |
6760 # -berok will link without error, but may produce a broken library. | |
6761 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | |
6762 # Determine the default libpath from the value encoded in an empty executable. | |
6763 _LT_AC_SYS_LIBPATH_AIX | |
6764 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6765 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
6766 else | |
6767 if test "$host_cpu" = ia64; then | |
6768 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | |
6769 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | |
6770 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
6771 else | |
6772 # Determine the default libpath from the value encoded in an empty executable. | |
6773 _LT_AC_SYS_LIBPATH_AIX | |
6774 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6775 # Warning - without using the other run time loading flags, | |
6776 # -berok will link without error, but may produce a broken library. | |
6777 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | |
6778 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | |
6779 # Exported symbols can be pulled into shared objects from archives | |
6780 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
6781 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | |
6782 # This is similar to how AIX traditionally builds its shared libraries. | |
6783 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
6784 fi | |
6785 fi | |
6786 ;; | |
6787 | |
6788 amigaos*) | |
6789 _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)' | |
6790 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6791 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
6792 # see comment about different semantics on the GNU ld section | |
6793 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6794 ;; | |
6795 | |
6796 bsdi[[45]]*) | |
6797 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | |
6798 ;; | |
6799 | |
6800 cygwin* | mingw* | pw32*) | |
6801 # When not using gcc, we currently assume that we are using | |
6802 # Microsoft Visual C++. | |
6803 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
6804 # no search path for DLLs. | |
6805 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
6806 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6807 # Tell ltmain to make .lib files, not .a files. | |
6808 libext=lib | |
6809 # Tell ltmain to make .dll files, not .so files. | |
6810 shrext_cmds=".dll" | |
6811 # FIXME: Setting linknames here is a bad hack. | |
6812 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
6813 # The linker will automatically build a .lib file if we build a DLL. | |
6814 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' | |
6815 # FIXME: Should let the user specify the lib program. | |
6816 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
6817 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | |
6818 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
6819 ;; | |
6820 | |
6821 darwin* | rhapsody*) | |
6822 case $host_os in | |
6823 rhapsody* | darwin1.[[012]]) | |
6824 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | |
6825 ;; | |
6826 *) # Darwin 1.3 on | |
6827 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
6828 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
6829 else | |
6830 case ${MACOSX_DEPLOYMENT_TARGET} in | |
6831 10.[[012]]) | |
6832 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
6833 ;; | |
6834 10.*) | |
6835 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | |
6836 ;; | |
6837 esac | |
6838 fi | |
6839 ;; | |
6840 esac | |
6841 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
6842 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
6843 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | |
6844 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
6845 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | |
6846 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
6847 if test "$GCC" = yes ; then | |
6848 output_verbose_link_cmd='echo' | |
6849 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
6850 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
6851 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
6852 _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}' | |
6853 _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}' | |
6854 else | |
6855 case $cc_basename in | |
6856 xlc*) | |
6857 output_verbose_link_cmd='echo' | |
6858 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
6859 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
6860 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
6861 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6862 _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}' | |
6863 ;; | |
6864 *) | |
6865 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6866 ;; | |
6867 esac | |
6868 fi | |
6869 ;; | |
6870 | |
6871 dgux*) | |
6872 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6873 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6874 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6875 ;; | |
6876 | |
6877 freebsd1*) | |
6878 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6879 ;; | |
6880 | |
6881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
6882 # support. Future versions do this automatically, but an explicit c++rt0.o | |
6883 # does not break anything, and helps significantly (at the cost of a little | |
6884 # extra space). | |
6885 freebsd2.2*) | |
6886 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
6887 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6888 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
6889 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6890 ;; | |
6891 | |
6892 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
6893 freebsd2*) | |
6894 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6895 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
6896 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
6897 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6898 ;; | |
6899 | |
6900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
6901 freebsd* | dragonfly*) | |
6902 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
6903 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6904 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
6905 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6906 ;; | |
6907 | |
6908 # GNU/kFreeBSD uses gcc -shared to do shared libraries. | |
6909 kfreebsd*-gnu) | |
6910 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
6911 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6912 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
6913 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6914 _LT_AC_TAGVAR(link_all_deplibs, $1)=no | |
6915 ;; | |
6916 | |
6917 hpux9*) | |
6918 if test "$GCC" = yes; then | |
6919 _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' | |
6920 else | |
6921 _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' | |
6922 fi | |
6923 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
6924 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
6925 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
6926 | |
6927 # hardcode_minus_L: Not really in the search PATH, | |
6928 # but as the default location of the library. | |
6929 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
6930 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6931 ;; | |
6932 | |
6933 hpux10*) | |
6934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
6935 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6936 else | |
6937 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
6938 fi | |
6939 if test "$with_gnu_ld" = no; then | |
6940 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
6941 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
6942 | |
6943 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
6944 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6945 | |
6946 # hardcode_minus_L: Not really in the search PATH, | |
6947 # but as the default location of the library. | |
6948 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
6949 fi | |
6950 ;; | |
6951 | |
6952 hpux11*) | |
6953 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
6954 case $host_cpu in | |
6955 hppa*64*) | |
6956 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6957 ;; | |
6958 ia64*) | |
6959 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
6960 ;; | |
6961 *) | |
6962 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6963 ;; | |
6964 esac | |
6965 else | |
6966 case $host_cpu in | |
6967 hppa*64*) | |
6968 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6969 ;; | |
6970 ia64*) | |
6971 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
6972 ;; | |
6973 *) | |
6974 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6975 ;; | |
6976 esac | |
6977 fi | |
6978 if test "$with_gnu_ld" = no; then | |
6979 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
6980 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
6981 | |
6982 case $host_cpu in | |
6983 hppa*64*|ia64*) | |
6984 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | |
6985 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
6986 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6987 ;; | |
6988 *) | |
6989 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
6990 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6991 | |
6992 # hardcode_minus_L: Not really in the search PATH, | |
6993 # but as the default location of the library. | |
6994 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
6995 ;; | |
6996 esac | |
6997 fi | |
6998 ;; | |
6999 | |
7000 irix5* | irix6* | nonstopux*) | |
7001 if test "$GCC" = yes; then | |
7002 _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' | |
7003 else | |
7004 _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' | |
7005 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | |
7006 fi | |
7007 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
7008 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
7009 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
7010 ;; | |
7011 | |
7012 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
7013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7014 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
7015 else | |
7016 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
7017 fi | |
7018 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
7019 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
7020 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7021 ;; | |
7022 | |
7023 newsos6) | |
7024 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7025 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
7026 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
7027 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
7028 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7029 ;; | |
7030 | |
7031 openbsd*) | |
7032 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
7033 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7034 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7035 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7036 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
7037 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
7038 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
7039 else | |
7040 case $host_os in | |
7041 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) | |
7042 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7043 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
7044 ;; | |
7045 *) | |
7046 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7047 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
7048 ;; | |
7049 esac | |
7050 fi | |
7051 ;; | |
7052 | |
7053 os2*) | |
7054 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
7055 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
7056 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | |
7057 _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' | |
7058 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
7059 ;; | |
7060 | |
7061 osf3*) | |
7062 if test "$GCC" = yes; then | |
7063 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
7064 _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' | |
7065 else | |
7066 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
7067 _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' | |
7068 fi | |
7069 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
7070 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
7071 ;; | |
7072 | |
7073 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
7074 if test "$GCC" = yes; then | |
7075 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
7076 _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' | |
7077 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
7078 else | |
7079 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
7080 _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' | |
7081 _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~ | |
7082 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
7083 | |
7084 # Both c and cxx compiler support -rpath directly | |
7085 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
7086 fi | |
7087 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
7088 ;; | |
7089 | |
7090 solaris*) | |
7091 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | |
7092 if test "$GCC" = yes; then | |
7093 wlarc='${wl}' | |
7094 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7095 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7096 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
7097 else | |
7098 wlarc='' | |
7099 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7100 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7101 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
7102 fi | |
7103 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
7104 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7105 case $host_os in | |
7106 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
7107 *) | |
7108 # The compiler driver will combine linker options so we | |
7109 # cannot just pass the convience library names through | |
7110 # without $wl, iff we do not link with $LD. | |
7111 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
7112 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
7113 case $wlarc in | |
7114 '') | |
7115 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; | |
7116 *) | |
7117 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
7118 esac ;; | |
7119 esac | |
7120 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
7121 ;; | |
7122 | |
7123 sunos4*) | |
7124 if test "x$host_vendor" = xsequent; then | |
7125 # Use $CC to link under sequent, because it throws in some extra .o | |
7126 # files that make .init and .fini sections work. | |
7127 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
7128 else | |
7129 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
7130 fi | |
7131 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
7132 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
7133 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
7134 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7135 ;; | |
7136 | |
7137 sysv4) | |
7138 case $host_vendor in | |
7139 sni) | |
7140 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7141 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? | |
7142 ;; | |
7143 siemens) | |
7144 ## LD is ld it makes a PLAMLIB | |
7145 ## CC just makes a GrossModule. | |
7146 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
7147 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' | |
7148 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
7149 ;; | |
7150 motorola) | |
7151 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7152 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie | |
7153 ;; | |
7154 esac | |
7155 runpath_var='LD_RUN_PATH' | |
7156 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7157 ;; | |
7158 | |
7159 sysv4.3*) | |
7160 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7161 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7162 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' | |
7163 ;; | |
7164 | |
7165 sysv4*MP*) | |
7166 if test -d /usr/nec; then | |
7167 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7168 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7169 runpath_var=LD_RUN_PATH | |
7170 hardcode_runpath_var=yes | |
7171 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | |
7172 fi | |
7173 ;; | |
7174 | |
7175 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) | |
7176 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
7177 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
7178 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7179 runpath_var='LD_RUN_PATH' | |
7180 | |
7181 if test "$GCC" = yes; then | |
7182 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7183 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7184 else | |
7185 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7186 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7187 fi | |
7188 ;; | |
7189 | |
7190 sysv5* | sco3.2v5* | sco5v6*) | |
7191 # Note: We can NOT use -z defs as we might desire, because we do not | |
7192 # link with -lc, and that would cause any symbols used from libc to | |
7193 # always be unresolved, which means just about no library would | |
7194 # ever link correctly. If we're not using GNU ld we use -z text | |
7195 # though, which does catch some bad symbols but isn't as heavy-handed | |
7196 # as -z defs. | |
7197 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
7198 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | |
7199 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
7200 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7201 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
7202 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | |
7203 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
7204 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | |
7205 runpath_var='LD_RUN_PATH' | |
7206 | |
7207 if test "$GCC" = yes; then | |
7208 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7209 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7210 else | |
7211 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7212 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7213 fi | |
7214 ;; | |
7215 | |
7216 uts4*) | |
7217 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7218 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
7219 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7220 ;; | |
7221 | |
7222 *) | |
7223 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
7224 ;; | |
7225 esac | |
7226 fi | |
7227 ]) | |
7228 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | |
7229 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | |
7230 | |
7231 # | |
7232 # Do we need to explicitly link libc? | |
7233 # | |
7234 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in | |
7235 x|xyes) | |
7236 # Assume -lc should be added | |
7237 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | |
7238 | |
7239 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
7240 case $_LT_AC_TAGVAR(archive_cmds, $1) in | |
7241 *'~'*) | |
7242 # FIXME: we may have to deal with multi-command sequences. | |
7243 ;; | |
7244 '$CC '*) | |
7245 # Test whether the compiler implicitly links with -lc since on some | |
7246 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
7247 # to ld, don't add -lc before -lgcc. | |
7248 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) | |
7249 $rm conftest* | |
7250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7251 | |
7252 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | |
7253 soname=conftest | |
7254 lib=conftest | |
7255 libobjs=conftest.$ac_objext | |
7256 deplibs= | |
7257 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | |
7258 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | |
7259 compiler_flags=-v | |
7260 linker_flags=-v | |
7261 verstring= | |
7262 output_objdir=. | |
7263 libname=conftest | |
7264 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) | |
7265 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | |
7266 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) | |
7267 then | |
7268 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
7269 else | |
7270 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | |
7271 fi | |
7272 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | |
7273 else | |
7274 cat conftest.err 1>&5 | |
7275 fi | |
7276 $rm conftest* | |
7277 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) | |
7278 ;; | |
7279 esac | |
7280 fi | |
7281 ;; | |
7282 esac | |
7283 ])# AC_LIBTOOL_PROG_LD_SHLIBS | |
7284 | |
7285 | |
7286 # _LT_AC_FILE_LTDLL_C | |
7287 # ------------------- | |
7288 # Be careful that the start marker always follows a newline. | |
7289 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ | |
7290 # /* ltdll.c starts here */ | |
7291 # #define WIN32_LEAN_AND_MEAN | |
7292 # #include <windows.h> | |
7293 # #undef WIN32_LEAN_AND_MEAN | |
7294 # #include <stdio.h> | |
7295 # | |
7296 # #ifndef __CYGWIN__ | |
7297 # # ifdef __CYGWIN32__ | |
7298 # # define __CYGWIN__ __CYGWIN32__ | |
7299 # # endif | |
7300 # #endif | |
7301 # | |
7302 # #ifdef __cplusplus | |
7303 # extern "C" { | |
7304 # #endif | |
7305 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | |
7306 # #ifdef __cplusplus | |
7307 # } | |
7308 # #endif | |
7309 # | |
7310 # #ifdef __CYGWIN__ | |
7311 # #include <cygwin/cygwin_dll.h> | |
7312 # DECLARE_CYGWIN_DLL( DllMain ); | |
7313 # #endif | |
7314 # HINSTANCE __hDllInstance_base; | |
7315 # | |
7316 # BOOL APIENTRY | |
7317 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | |
7318 # { | |
7319 # __hDllInstance_base = hInst; | |
7320 # return TRUE; | |
7321 # } | |
7322 # /* ltdll.c ends here */ | |
7323 ])# _LT_AC_FILE_LTDLL_C | |
7324 | |
7325 | |
7326 # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) | |
7327 # --------------------------------- | |
7328 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) | |
7329 | |
7330 | |
7331 # old names | |
7332 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) | |
7333 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) | |
7334 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) | |
7335 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) | |
7336 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) | |
7337 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) | |
7338 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) | |
7339 | |
7340 # This is just to silence aclocal about the macro not being used | |
7341 ifelse([AC_DISABLE_FAST_INSTALL]) | |
7342 | |
7343 AC_DEFUN([LT_AC_PROG_GCJ], | |
7344 [AC_CHECK_TOOL(GCJ, gcj, no) | |
7345 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | |
7346 AC_SUBST(GCJFLAGS) | |
7347 ]) | |
7348 | |
7349 AC_DEFUN([LT_AC_PROG_RC], | |
7350 [AC_CHECK_TOOL(RC, windres, no) | |
7351 ]) | |
7352 | |
7353 # NOTE: This macro has been submitted for inclusion into # | |
7354 # GNU Autoconf as AC_PROG_SED. When it is available in # | |
7355 # a released version of Autoconf we should remove this # | |
7356 # macro and use it instead. # | |
7357 # LT_AC_PROG_SED | |
7358 # -------------- | |
7359 # Check for a fully-functional sed program, that truncates | |
7360 # as few characters as possible. Prefer GNU sed if found. | |
7361 AC_DEFUN([LT_AC_PROG_SED], | |
7362 [AC_MSG_CHECKING([for a sed that does not truncate output]) | |
7363 AC_CACHE_VAL(lt_cv_path_SED, | |
7364 [# Loop through the user's path and test for sed and gsed. | |
7365 # Then use that list of sed's as ones to test for truncation. | |
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7367 for as_dir in $PATH | |
7368 do | |
7369 IFS=$as_save_IFS | |
7370 test -z "$as_dir" && as_dir=. | |
7371 for lt_ac_prog in sed gsed; do | |
7372 for ac_exec_ext in '' $ac_executable_extensions; do | |
7373 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
7374 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
7375 fi | |
7376 done | |
7377 done | |
7378 done | |
7379 lt_ac_max=0 | |
7380 lt_ac_count=0 | |
7381 # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
7382 # along with /bin/sed that truncates output. | |
7383 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
7384 test ! -f $lt_ac_sed && continue | |
7385 cat /dev/null > conftest.in | |
7386 lt_ac_count=0 | |
7387 echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
7388 # Check for GNU sed and select it if it is found. | |
7389 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
7390 lt_cv_path_SED=$lt_ac_sed | |
7391 break | |
7392 fi | |
7393 while true; do | |
7394 cat conftest.in conftest.in >conftest.tmp | |
7395 mv conftest.tmp conftest.in | |
7396 cp conftest.in conftest.nl | |
7397 echo >>conftest.nl | |
7398 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
7399 cmp -s conftest.out conftest.nl || break | |
7400 # 10000 chars as input seems more than enough | |
7401 test $lt_ac_count -gt 10 && break | |
7402 lt_ac_count=`expr $lt_ac_count + 1` | |
7403 if test $lt_ac_count -gt $lt_ac_max; then | |
7404 lt_ac_max=$lt_ac_count | |
7405 lt_cv_path_SED=$lt_ac_sed | |
7406 fi | |
7407 done | |
7408 done | |
7409 ]) | |
7410 SED=$lt_cv_path_SED | |
7411 AC_MSG_RESULT([$SED]) | |
7412 ]) | |
7413 | |
7414 | |
7415 dnl | |
7416 dnl OPENBSD_LIBTOOL_WORKAROUND | |
7417 dnl | |
7418 dnl Work-around a problem caused by the -avoid-version libtool option. Can | |
7419 dnl anyone come up with a better way? | |
7420 dnl | |
7421 | |
7422 AC_DEFUN([OPENBSD_LIBTOOL_WORKAROUND], | |
7423 [case "${host_os}" in | |
7424 openbsd*) | |
7425 sed 's/^need_version=no$/need_version=yes/' < libtool > libtool.tmp && mv -f libtool.tmp libtool | |
7426 ;; | |
7427 esac | |
7428 ]) | |
7429 | |
7430 | |
7431 AC_DEFUN([GIFT_PLUGIN_PKGCONFIG], | |
7432 [AC_PATH_PROG(PKG_CONFIG, pkg-config) | |
7433 | |
7434 if test x$prefix != xNONE; then | |
7435 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$prefix/lib/pkgconfig" | |
7436 fi | |
7437 | |
7438 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" | |
7439 export PKG_CONFIG_PATH | |
7440 | |
7441 PKG_CHECK_MODULES([$1], libgift >= $2 libgift < $3) | |
7442 | |
7443 # fudge libgiftproto in there which doesnt have any pkg-config entry | |
7444 AS_VAR_SET($1_LIBS, "AS_VAR_GET($1_LIBS) -lgiftproto") | |
7445 | |
7446 # hack to set libgift_version | |
7447 libgift_version=`pkg-config libgift --modversion` | |
7448 | |
7449 AC_SUBST($1_CFLAGS) | |
7450 AC_SUBST($1_LIBS) | |
7451 ]) | |
7452 | |
7453 | |
7454 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) | |
7455 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page | |
7456 dnl also defines GSTUFF_PKG_ERRORS on error | |
7457 AC_DEFUN(PKG_CHECK_MODULES, [ | |
7458 succeeded=no | |
7459 | |
7460 if test -z "$PKG_CONFIG"; then | |
7461 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | |
7462 fi | |
7463 | |
7464 if test "$PKG_CONFIG" = "no" ; then | |
7465 echo "*** The pkg-config script could not be found. Make sure it is" | |
7466 echo "*** in your path, or set the PKG_CONFIG environment variable" | |
7467 echo "*** to the full path to pkg-config." | |
7468 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
7469 else | |
7470 PKG_CONFIG_MIN_VERSION=0.9.0 | |
7471 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
7472 AC_MSG_CHECKING(for $2) | |
7473 | |
7474 if $PKG_CONFIG --exists "$2" ; then | |
7475 AC_MSG_RESULT(yes) | |
7476 succeeded=yes | |
7477 | |
7478 AC_MSG_CHECKING($1_CFLAGS) | |
7479 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` | |
7480 AC_MSG_RESULT($$1_CFLAGS) | |
7481 | |
7482 AC_MSG_CHECKING($1_LIBS) | |
7483 $1_LIBS=`$PKG_CONFIG --libs "$2"` | |
7484 AC_MSG_RESULT($$1_LIBS) | |
7485 else | |
7486 $1_CFLAGS="" | |
7487 $1_LIBS="" | |
7488 ## If we have a custom action on failure, don't print errors, but | |
7489 ## do set a variable so people can do so. | |
7490 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` | |
7491 ifelse([$4], ,echo $$1_PKG_ERRORS,) | |
7492 fi | |
7493 | |
7494 AC_SUBST($1_CFLAGS) | |
7495 AC_SUBST($1_LIBS) | |
7496 else | |
7497 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
7498 echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
7499 fi | |
7500 fi | |
7501 | |
7502 if test $succeeded = yes; then | |
7503 ifelse([$3], , :, [$3]) | |
7504 else | |
7505 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]) | |
7506 fi | |
7507 ]) | |
7508 | |
7509 | |
7510 | |
7511 | |
7512 dnl | |
7513 dnl Check for zlib in some bizarre locations... | |
7514 dnl | |
7515 AC_DEFUN([GIFT_PLUGIN_CHECK_ZLIB], | |
7516 [ | |
7517 # set the minimum ZLIB_VER we're willing to link against... | |
7518 ZLIB_VER=1.1.4 | |
7519 | |
7520 # for some reason Darwin has a 1.1.3 version with the 1.1.4 security fix | |
7521 # applied backwards... | |
7522 case "${host}" in | |
7523 *-*-darwin* ) | |
7524 ZLIB_VER=1.1.3 | |
7525 ;; | |
7526 esac | |
7527 | |
7528 if test x"$OPT_ZLIB" = xno; then | |
7529 zlib_ok=no | |
7530 else | |
7531 ZLIB_DIRS="$OPT_ZLIB /usr /usr/local /sw" | |
7532 for ZLIB_DIR in $ZLIB_DIRS; | |
7533 do | |
7534 LIBS_SAVE="$LIBS" | |
7535 CPPFLAGS_SAVE="$CPPFLAGS" | |
7536 LIBS="$LIBS -L${ZLIB_DIR}/lib" | |
7537 CPPFLAGS="$CPPFLAGS -I${ZLIB_DIR}/include" | |
7538 AC_CACHE_CHECK( | |
7539 [for zlib version ${ZLIB_VER}+ in ${ZLIB_DIR}], | |
7540 zlib_ok, | |
7541 AC_TRY_RUN( | |
7542 [#include <zlib.h> | |
7543 #include <string.h> | |
7544 void main() { | |
7545 exit(strcmp(ZLIB_VERSION, "${ZLIB_VER}") < 0); | |
7546 } | |
7547 ], | |
7548 [zlib_ok=yes], | |
7549 [zlib_ok=no], | |
7550 [zlib_ok=yes])) | |
7551 | |
7552 if test "$zlib_ok" != "no"; then | |
7553 AC_CHECK_FUNC(gzread, , AC_CHECK_LIB(z, gzread)) | |
7554 AC_DEFINE(USE_ZLIB) | |
7555 AC_SUBST(USE_ZLIB) | |
7556 break | |
7557 fi | |
7558 LIBS="$LIBS_SAVE" | |
7559 CPPFLAGS="$CPPFLAGS_SAVE" | |
7560 done | |
7561 | |
7562 if test "$zlib_ok" = "no"; then | |
7563 AC_MSG_ERROR([ | |
7564 NOTE: The zlib compression library version ${ZLIB_VER} or greater was not found | |
7565 on your system. | |
7566 | |
7567 If zlib ${ZLIB_VER}+ is not installed, install it. | |
7568 ]) | |
7569 fi | |
7570 fi | |
7571 ]) | |
7572 | |
7573 | |
7574 AC_DEFUN([GIFT_GNUTELLA_CHECK_LIBXML],[ | |
7575 # | |
7576 # Check on the user's PATH if no path was specified in OPT_LIBXML, | |
7577 # when the user has passed --with-libxml without a directory, | |
7578 # or check the directory if one was supplied. | |
7579 # | |
7580 if test x"$OPT_LIBXML" = xyes; then | |
7581 AC_PATH_PROG(XML2_CONFIG, xml2-config, [no]) | |
7582 else | |
7583 XMLPATH="$OPT_LIBXML/bin" | |
7584 AC_PATH_PROG(XML2_CONFIG, xml2-config, [no], [$XMLPATH]) | |
7585 fi | |
7586 | |
7587 if test x"$XML2_CONFIG" != xno; then | |
7588 LIBXML2_CFLAGS=`$XML2_CONFIG --cflags` | |
7589 LIBXML2_LIBS=`$XML2_CONFIG --libs` | |
7590 | |
7591 AC_SUBST(LIBXML2_CFLAGS) | |
7592 AC_SUBST(LIBXML2_LIBS) | |
7593 AC_DEFINE(USE_LIBXML2) | |
7594 else | |
7595 AC_MSG_ERROR([ | |
7596 Couldn't run ${OPT_LIBXML}/bin/xml2-config | |
7597 | |
7598 ]) | |
7599 fi | |
7600 ]) | |
7601 | |
7602 | |
7603 AC_DEFUN([GIFT_PLUGIN_CHECK_PREFIX],[ | |
7604 libgift_prefix=`pkg-config --variable=prefix libgift` | |
7605 | |
7606 gift_plugin_prefix=$prefix | |
7607 if test x"$prefix" = xNONE; then | |
7608 gift_plugin_prefix=/usr/local | |
7609 fi | |
7610 | |
7611 if test x"$libgift_prefix" != x"$gift_plugin_prefix"; then | |
7612 AC_MSG_WARN([ | |
7613 You are trying to install in $gift_plugin_prefix, but I only | |
7614 detected a giFT installation in $libgift_prefix. | |
7615 You may be installing in the wrong place. | |
7616 | |
7617 You should probably supply --prefix=$libgift_prefix | |
7618 to configure. Or, if you have a giFT installation in | |
7619 $gift_plugin_prefix, you could add ${gift_plugin_prefix}/lib/pkgconfig | |
7620 to the PKG_CONFIG_PATH environment variable, so I can detect it. | |
7621 ]) | |
7622 fi | |
7623 ]) | |
7624 |