0 | |
diff -Naur epiphany-browser-2.20.1.old/aclocal.m4 epiphany-browser-2.20.1/aclocal.m4
|
1 | |
--- epiphany-browser-2.20.1.old/aclocal.m4 2007-09-28 22:33:49.000000000 +0200
|
2 | |
+++ epiphany-browser-2.20.1/aclocal.m4 2007-11-01 07:06:42.000000000 +0100
|
3 | |
@@ -56,4012 +56,3415 @@
|
4 | |
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
|
5 | |
])
|
6 | |
|
7 | |
-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
8 | |
-
|
9 | |
-# serial 51 Debian 1.5.24-1 AC_PROG_LIBTOOL
|
10 | |
-
|
11 | |
+# Copyright (C) 1995-2002 Free Software Foundation, Inc.
|
12 | |
+# Copyright (C) 2001-2003,2004 Red Hat, Inc.
|
13 | |
+#
|
14 | |
+# This file is free software, distributed under the terms of the GNU
|
15 | |
+# General Public License. As a special exception to the GNU General
|
16 | |
+# Public License, this file may be distributed as part of a program
|
17 | |
+# that contains a configuration script generated by Autoconf, under
|
18 | |
+# the same distribution terms as the rest of that program.
|
19 | |
+#
|
20 | |
+# This file can be copied and used freely without restrictions. It can
|
21 | |
+# be used in projects which are not available under the GNU Public License
|
22 | |
+# but which still want to provide support for the GNU gettext functionality.
|
23 | |
+#
|
24 | |
+# Macro to add for using GNU gettext.
|
25 | |
+# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
|
26 | |
+#
|
27 | |
+# Modified to never use included libintl.
|
28 | |
+# Owen Taylor <otaylor@redhat.com>, 12/15/1998
|
29 | |
+#
|
30 | |
+# Major rework to remove unused code
|
31 | |
+# Owen Taylor <otaylor@redhat.com>, 12/11/2002
|
32 | |
+#
|
33 | |
+# Added better handling of ALL_LINGUAS from GNU gettext version
|
34 | |
+# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
|
35 | |
+#
|
36 | |
+# Modified to require ngettext
|
37 | |
+# Matthias Clasen <mclasen@redhat.com> 08/06/2004
|
38 | |
+#
|
39 | |
+# We need this here as well, since someone might use autoconf-2.5x
|
40 | |
+# to configure GLib then an older version to configure a package
|
41 | |
+# using AM_GLIB_GNU_GETTEXT
|
42 | |
+AC_PREREQ(2.53)
|
43 | |
|
44 | |
-# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
|
45 | |
-# -----------------------------------------------------------
|
46 | |
-# If this macro is not defined by Autoconf, define it here.
|
47 | |
-m4_ifdef([AC_PROVIDE_IFELSE],
|
48 | |
- [],
|
49 | |
- [m4_define([AC_PROVIDE_IFELSE],
|
50 | |
- [m4_ifdef([AC_PROVIDE_$1],
|
51 | |
- [$2], [$3])])])
|
52 | |
+dnl
|
53 | |
+dnl We go to great lengths to make sure that aclocal won't
|
54 | |
+dnl try to pull in the installed version of these macros
|
55 | |
+dnl when running aclocal in the glib directory.
|
56 | |
+dnl
|
57 | |
+m4_copy([AC_DEFUN],[glib_DEFUN])
|
58 | |
+m4_copy([AC_REQUIRE],[glib_REQUIRE])
|
59 | |
+dnl
|
60 | |
+dnl At the end, if we're not within glib, we'll define the public
|
61 | |
+dnl definitions in terms of our private definitions.
|
62 | |
+dnl
|
63 | |
|
64 | |
+# GLIB_LC_MESSAGES
|
65 | |
+#--------------------
|
66 | |
+glib_DEFUN([GLIB_LC_MESSAGES],
|
67 | |
+ [AC_CHECK_HEADERS([locale.h])
|
68 | |
+ if test $ac_cv_header_locale_h = yes; then
|
69 | |
+ AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
|
70 | |
+ [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
|
71 | |
+ am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
|
72 | |
+ if test $am_cv_val_LC_MESSAGES = yes; then
|
73 | |
+ AC_DEFINE(HAVE_LC_MESSAGES, 1,
|
74 | |
+ [Define if your <locale.h> file defines LC_MESSAGES.])
|
75 | |
+ fi
|
76 | |
+ fi])
|
77 | |
|
78 | |
-# AC_PROG_LIBTOOL
|
79 | |
-# ---------------
|
80 | |
-AC_DEFUN([AC_PROG_LIBTOOL],
|
81 | |
-[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
|
82 | |
-dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
|
83 | |
-dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
|
84 | |
- AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
85 | |
- [AC_LIBTOOL_CXX],
|
86 | |
- [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
|
87 | |
- ])])
|
88 | |
-dnl And a similar setup for Fortran 77 support
|
89 | |
- AC_PROVIDE_IFELSE([AC_PROG_F77],
|
90 | |
- [AC_LIBTOOL_F77],
|
91 | |
- [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
|
92 | |
-])])
|
93 | |
+# GLIB_PATH_PROG_WITH_TEST
|
94 | |
+#----------------------------
|
95 | |
+dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
|
96 | |
+dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
|
97 | |
+glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
|
98 | |
+[# Extract the first word of "$2", so it can be a program name with args.
|
99 | |
+set dummy $2; ac_word=[$]2
|
100 | |
+AC_MSG_CHECKING([for $ac_word])
|
101 | |
+AC_CACHE_VAL(ac_cv_path_$1,
|
102 | |
+[case "[$]$1" in
|
103 | |
+ /*)
|
104 | |
+ ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
|
105 | |
+ ;;
|
106 | |
+ *)
|
107 | |
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
108 | |
+ for ac_dir in ifelse([$5], , $PATH, [$5]); do
|
109 | |
+ test -z "$ac_dir" && ac_dir=.
|
110 | |
+ if test -f $ac_dir/$ac_word; then
|
111 | |
+ if [$3]; then
|
112 | |
+ ac_cv_path_$1="$ac_dir/$ac_word"
|
113 | |
+ break
|
114 | |
+ fi
|
115 | |
+ fi
|
116 | |
+ done
|
117 | |
+ IFS="$ac_save_ifs"
|
118 | |
+dnl If no 4th arg is given, leave the cache variable unset,
|
119 | |
+dnl so AC_PATH_PROGS will keep looking.
|
120 | |
+ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
|
121 | |
+])dnl
|
122 | |
+ ;;
|
123 | |
+esac])dnl
|
124 | |
+$1="$ac_cv_path_$1"
|
125 | |
+if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
|
126 | |
+ AC_MSG_RESULT([$]$1)
|
127 | |
+else
|
128 | |
+ AC_MSG_RESULT(no)
|
129 | |
+fi
|
130 | |
+AC_SUBST($1)dnl
|
131 | |
+])
|
132 | |
|
133 | |
-dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
|
134 | |
-dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
|
135 | |
-dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
|
136 | |
- AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
137 | |
- [AC_LIBTOOL_GCJ],
|
138 | |
- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
|
139 | |
- [AC_LIBTOOL_GCJ],
|
140 | |
- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
|
141 | |
- [AC_LIBTOOL_GCJ],
|
142 | |
- [ifdef([AC_PROG_GCJ],
|
143 | |
- [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
|
144 | |
- ifdef([A][M_PROG_GCJ],
|
145 | |
- [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
|
146 | |
- ifdef([LT_AC_PROG_GCJ],
|
147 | |
- [define([LT_AC_PROG_GCJ],
|
148 | |
- defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
|
149 | |
-])])# AC_PROG_LIBTOOL
|
150 | |
+# GLIB_WITH_NLS
|
151 | |
+#-----------------
|
152 | |
+glib_DEFUN([GLIB_WITH_NLS],
|
153 | |
+ dnl NLS is obligatory
|
154 | |
+ [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
155 | |
+ USE_NLS=yes
|
156 | |
+ AC_SUBST(USE_NLS)
|
157 | |
|
158 | |
+ gt_cv_have_gettext=no
|
159 | |
|
160 | |
-# _AC_PROG_LIBTOOL
|
161 | |
-# ----------------
|
162 | |
-AC_DEFUN([_AC_PROG_LIBTOOL],
|
163 | |
-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
|
164 | |
-AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
|
165 | |
-AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
|
166 | |
-AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
|
167 | |
+ CATOBJEXT=NONE
|
168 | |
+ XGETTEXT=:
|
169 | |
+ INTLLIBS=
|
170 | |
|
171 | |
-# This can be used to rebuild libtool when needed
|
172 | |
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
173 | |
+ AC_CHECK_HEADER(libintl.h,
|
174 | |
+ [gt_cv_func_dgettext_libintl="no"
|
175 | |
+ libintl_extra_libs=""
|
176 | |
|
177 | |
-# Always use our own libtool.
|
178 | |
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
179 | |
-AC_SUBST(LIBTOOL)dnl
|
180 | |
+ #
|
181 | |
+ # First check in libc
|
182 | |
+ #
|
183 | |
+ AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
|
184 | |
+ [AC_TRY_LINK([
|
185 | |
+#include <libintl.h>
|
186 | |
+],
|
187 | |
+ [return !ngettext ("","", 1)],
|
188 | |
+ gt_cv_func_ngettext_libc=yes,
|
189 | |
+ gt_cv_func_ngettext_libc=no)
|
190 | |
+ ])
|
191 | |
+
|
192 | |
+ if test "$gt_cv_func_ngettext_libc" = "yes" ; then
|
193 | |
+ AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
|
194 | |
+ [AC_TRY_LINK([
|
195 | |
+#include <libintl.h>
|
196 | |
+],
|
197 | |
+ [return !dgettext ("","")],
|
198 | |
+ gt_cv_func_dgettext_libc=yes,
|
199 | |
+ gt_cv_func_dgettext_libc=no)
|
200 | |
+ ])
|
201 | |
+ fi
|
202 | |
+
|
203 | |
+ if test "$gt_cv_func_ngettext_libc" = "yes" ; then
|
204 | |
+ AC_CHECK_FUNCS(bind_textdomain_codeset)
|
205 | |
+ fi
|
206 | |
|
207 | |
-# Prevent multiple expansion
|
208 | |
-define([AC_PROG_LIBTOOL], [])
|
209 | |
-])# _AC_PROG_LIBTOOL
|
210 | |
+ #
|
211 | |
+ # If we don't have everything we want, check in libintl
|
212 | |
+ #
|
213 | |
+ if test "$gt_cv_func_dgettext_libc" != "yes" \
|
214 | |
+ || test "$gt_cv_func_ngettext_libc" != "yes" \
|
215 | |
+ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
|
216 | |
+
|
217 | |
+ AC_CHECK_LIB(intl, bindtextdomain,
|
218 | |
+ [AC_CHECK_LIB(intl, ngettext,
|
219 | |
+ [AC_CHECK_LIB(intl, dgettext,
|
220 | |
+ gt_cv_func_dgettext_libintl=yes)])])
|
221 | |
|
222 | |
+ if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
|
223 | |
+ AC_MSG_CHECKING([if -liconv is needed to use gettext])
|
224 | |
+ AC_MSG_RESULT([])
|
225 | |
+ AC_CHECK_LIB(intl, ngettext,
|
226 | |
+ [AC_CHECK_LIB(intl, dcgettext,
|
227 | |
+ [gt_cv_func_dgettext_libintl=yes
|
228 | |
+ libintl_extra_libs=-liconv],
|
229 | |
+ :,-liconv)],
|
230 | |
+ :,-liconv)
|
231 | |
+ fi
|
232 | |
|
233 | |
-# AC_LIBTOOL_SETUP
|
234 | |
-# ----------------
|
235 | |
-AC_DEFUN([AC_LIBTOOL_SETUP],
|
236 | |
-[AC_PREREQ(2.50)dnl
|
237 | |
-AC_REQUIRE([AC_ENABLE_SHARED])dnl
|
238 | |
-AC_REQUIRE([AC_ENABLE_STATIC])dnl
|
239 | |
-AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
|
240 | |
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
241 | |
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
242 | |
-AC_REQUIRE([AC_PROG_CC])dnl
|
243 | |
-AC_REQUIRE([AC_PROG_LD])dnl
|
244 | |
-AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
|
245 | |
-AC_REQUIRE([AC_PROG_NM])dnl
|
246 | |
+ #
|
247 | |
+ # If we found libintl, then check in it for bind_textdomain_codeset();
|
248 | |
+ # we'll prefer libc if neither have bind_textdomain_codeset(),
|
249 | |
+ # and both have dgettext and ngettext
|
250 | |
+ #
|
251 | |
+ if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
|
252 | |
+ glib_save_LIBS="$LIBS"
|
253 | |
+ LIBS="$LIBS -lintl $libintl_extra_libs"
|
254 | |
+ unset ac_cv_func_bind_textdomain_codeset
|
255 | |
+ AC_CHECK_FUNCS(bind_textdomain_codeset)
|
256 | |
+ LIBS="$glib_save_LIBS"
|
257 | |
|
258 | |
-AC_REQUIRE([AC_PROG_LN_S])dnl
|
259 | |
-AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
|
260 | |
-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
261 | |
-AC_REQUIRE([AC_OBJEXT])dnl
|
262 | |
-AC_REQUIRE([AC_EXEEXT])dnl
|
263 | |
-dnl
|
264 | |
+ if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
|
265 | |
+ gt_cv_func_dgettext_libc=no
|
266 | |
+ else
|
267 | |
+ if test "$gt_cv_func_dgettext_libc" = "yes" \
|
268 | |
+ && test "$gt_cv_func_ngettext_libc" = "yes"; then
|
269 | |
+ gt_cv_func_dgettext_libintl=no
|
270 | |
+ fi
|
271 | |
+ fi
|
272 | |
+ fi
|
273 | |
+ fi
|
274 | |
|
275 | |
-AC_LIBTOOL_SYS_MAX_CMD_LEN
|
276 | |
-AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
277 | |
-AC_LIBTOOL_OBJDIR
|
278 | |
-
|
279 | |
-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
280 | |
-_LT_AC_PROG_ECHO_BACKSLASH
|
281 | |
-
|
282 | |
-case $host_os in
|
283 | |
-aix3*)
|
284 | |
- # AIX sometimes has problems with the GCC collect2 program. For some
|
285 | |
- # reason, if we set the COLLECT_NAMES environment variable, the problems
|
286 | |
- # vanish in a puff of smoke.
|
287 | |
- if test "X${COLLECT_NAMES+set}" != Xset; then
|
288 | |
- COLLECT_NAMES=
|
289 | |
- export COLLECT_NAMES
|
290 | |
- fi
|
291 | |
- ;;
|
292 | |
-esac
|
293 | |
+ if test "$gt_cv_func_dgettext_libc" = "yes" \
|
294 | |
+ || test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
295 | |
+ gt_cv_have_gettext=yes
|
296 | |
+ fi
|
297 | |
+
|
298 | |
+ if test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
299 | |
+ INTLLIBS="-lintl $libintl_extra_libs"
|
300 | |
+ fi
|
301 | |
+
|
302 | |
+ if test "$gt_cv_have_gettext" = "yes"; then
|
303 | |
+ AC_DEFINE(HAVE_GETTEXT,1,
|
304 | |
+ [Define if the GNU gettext() function is already present or preinstalled.])
|
305 | |
+ GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
306 | |
+ [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
|
307 | |
+ if test "$MSGFMT" != "no"; then
|
308 | |
+ glib_save_LIBS="$LIBS"
|
309 | |
+ LIBS="$LIBS $INTLLIBS"
|
310 | |
+ AC_CHECK_FUNCS(dcgettext)
|
311 | |
+ MSGFMT_OPTS=
|
312 | |
+ AC_MSG_CHECKING([if msgfmt accepts -c])
|
313 | |
+ GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
|
314 | |
+msgid ""
|
315 | |
+msgstr ""
|
316 | |
+"Content-Type: text/plain; charset=UTF-8\n"
|
317 | |
+"Project-Id-Version: test 1.0\n"
|
318 | |
+"PO-Revision-Date: 2007-02-15 12:01+0100\n"
|
319 | |
+"Last-Translator: test <foo@bar.xx>\n"
|
320 | |
+"Language-Team: C <LL@li.org>\n"
|
321 | |
+"MIME-Version: 1.0\n"
|
322 | |
+"Content-Transfer-Encoding: 8bit\n"
|
323 | |
+], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
|
324 | |
+ AC_SUBST(MSGFMT_OPTS)
|
325 | |
+ AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
|
326 | |
+ GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
327 | |
+ [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
|
328 | |
+ AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
|
329 | |
+ return _nl_msg_cat_cntr],
|
330 | |
+ [CATOBJEXT=.gmo
|
331 | |
+ DATADIRNAME=share],
|
332 | |
+ [case $host in
|
333 | |
+ *-*-solaris*)
|
334 | |
+ dnl On Solaris, if bind_textdomain_codeset is in libc,
|
335 | |
+ dnl GNU format message catalog is always supported,
|
336 | |
+ dnl since both are added to the libc all together.
|
337 | |
+ dnl Hence, we'd like to go with DATADIRNAME=share and
|
338 | |
+ dnl and CATOBJEXT=.gmo in this case.
|
339 | |
+ AC_CHECK_FUNC(bind_textdomain_codeset,
|
340 | |
+ [CATOBJEXT=.gmo
|
341 | |
+ DATADIRNAME=share],
|
342 | |
+ [CATOBJEXT=.mo
|
343 | |
+ DATADIRNAME=lib])
|
344 | |
+ ;;
|
345 | |
+ *)
|
346 | |
+ CATOBJEXT=.mo
|
347 | |
+ DATADIRNAME=lib
|
348 | |
+ ;;
|
349 | |
+ esac])
|
350 | |
+ LIBS="$glib_save_LIBS"
|
351 | |
+ INSTOBJEXT=.mo
|
352 | |
+ else
|
353 | |
+ gt_cv_have_gettext=no
|
354 | |
+ fi
|
355 | |
+ fi
|
356 | |
+ ])
|
357 | |
|
358 | |
-# Sed substitution that helps us do robust quoting. It backslashifies
|
359 | |
-# metacharacters that are still active within double-quoted strings.
|
360 | |
-Xsed='sed -e 1s/^X//'
|
361 | |
-[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
|
362 | |
+ if test "$gt_cv_have_gettext" = "yes" ; then
|
363 | |
+ AC_DEFINE(ENABLE_NLS, 1,
|
364 | |
+ [always defined to indicate that i18n is enabled])
|
365 | |
+ fi
|
366 | |
|
367 | |
-# Same as above, but do not quote variable references.
|
368 | |
-[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
|
369 | |
+ dnl Test whether we really found GNU xgettext.
|
370 | |
+ if test "$XGETTEXT" != ":"; then
|
371 | |
+ dnl If it is not GNU xgettext we define it as : so that the
|
372 | |
+ dnl Makefiles still can work.
|
373 | |
+ if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
374 | |
+ : ;
|
375 | |
+ else
|
376 | |
+ AC_MSG_RESULT(
|
377 | |
+ [found xgettext program is not GNU xgettext; ignore it])
|
378 | |
+ XGETTEXT=":"
|
379 | |
+ fi
|
380 | |
+ fi
|
381 | |
|
382 | |
-# Sed substitution to delay expansion of an escaped shell variable in a
|
383 | |
-# double_quote_subst'ed string.
|
384 | |
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
385 | |
+ # We need to process the po/ directory.
|
386 | |
+ POSUB=po
|
387 | |
|
388 | |
-# Sed substitution to avoid accidental globbing in evaled expressions
|
389 | |
-no_glob_subst='s/\*/\\\*/g'
|
390 | |
+ AC_OUTPUT_COMMANDS(
|
391 | |
+ [case "$CONFIG_FILES" in *po/Makefile.in*)
|
392 | |
+ sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
|
393 | |
+ esac])
|
394 | |
|
395 | |
-# Constants:
|
396 | |
-rm="rm -f"
|
397 | |
+ dnl These rules are solely for the distribution goal. While doing this
|
398 | |
+ dnl we only have to keep exactly one list of the available catalogs
|
399 | |
+ dnl in configure.in.
|
400 | |
+ for lang in $ALL_LINGUAS; do
|
401 | |
+ GMOFILES="$GMOFILES $lang.gmo"
|
402 | |
+ POFILES="$POFILES $lang.po"
|
403 | |
+ done
|
404 | |
|
405 | |
-# Global variables:
|
406 | |
-default_ofile=libtool
|
407 | |
-can_build_shared=yes
|
408 | |
+ dnl Make all variables we use known to autoconf.
|
409 | |
+ AC_SUBST(CATALOGS)
|
410 | |
+ AC_SUBST(CATOBJEXT)
|
411 | |
+ AC_SUBST(DATADIRNAME)
|
412 | |
+ AC_SUBST(GMOFILES)
|
413 | |
+ AC_SUBST(INSTOBJEXT)
|
414 | |
+ AC_SUBST(INTLLIBS)
|
415 | |
+ AC_SUBST(PO_IN_DATADIR_TRUE)
|
416 | |
+ AC_SUBST(PO_IN_DATADIR_FALSE)
|
417 | |
+ AC_SUBST(POFILES)
|
418 | |
+ AC_SUBST(POSUB)
|
419 | |
+ ])
|
420 | |
|
421 | |
-# All known linkers require a `.a' archive for static linking (except MSVC,
|
422 | |
-# which needs '.lib').
|
423 | |
-libext=a
|
424 | |
-ltmain="$ac_aux_dir/ltmain.sh"
|
425 | |
-ofile="$default_ofile"
|
426 | |
-with_gnu_ld="$lt_cv_prog_gnu_ld"
|
427 | |
+# AM_GLIB_GNU_GETTEXT
|
428 | |
+# -------------------
|
429 | |
+# Do checks necessary for use of gettext. If a suitable implementation
|
430 | |
+# of gettext is found in either in libintl or in the C library,
|
431 | |
+# it will set INTLLIBS to the libraries needed for use of gettext
|
432 | |
+# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
|
433 | |
+# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
|
434 | |
+# on various variables needed by the Makefile.in.in installed by
|
435 | |
+# glib-gettextize.
|
436 | |
+dnl
|
437 | |
+glib_DEFUN([GLIB_GNU_GETTEXT],
|
438 | |
+ [AC_REQUIRE([AC_PROG_CC])dnl
|
439 | |
+ AC_REQUIRE([AC_HEADER_STDC])dnl
|
440 | |
+
|
441 | |
+ GLIB_LC_MESSAGES
|
442 | |
+ GLIB_WITH_NLS
|
443 | |
|
444 | |
-AC_CHECK_TOOL(AR, ar, false)
|
445 | |
-AC_CHECK_TOOL(RANLIB, ranlib, :)
|
446 | |
-AC_CHECK_TOOL(STRIP, strip, :)
|
447 | |
+ if test "$gt_cv_have_gettext" = "yes"; then
|
448 | |
+ if test "x$ALL_LINGUAS" = "x"; then
|
449 | |
+ LINGUAS=
|
450 | |
+ else
|
451 | |
+ AC_MSG_CHECKING(for catalogs to be installed)
|
452 | |
+ NEW_LINGUAS=
|
453 | |
+ for presentlang in $ALL_LINGUAS; do
|
454 | |
+ useit=no
|
455 | |
+ if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
|
456 | |
+ desiredlanguages="$LINGUAS"
|
457 | |
+ else
|
458 | |
+ desiredlanguages="$ALL_LINGUAS"
|
459 | |
+ fi
|
460 | |
+ for desiredlang in $desiredlanguages; do
|
461 | |
+ # Use the presentlang catalog if desiredlang is
|
462 | |
+ # a. equal to presentlang, or
|
463 | |
+ # b. a variant of presentlang (because in this case,
|
464 | |
+ # presentlang can be used as a fallback for messages
|
465 | |
+ # which are not translated in the desiredlang catalog).
|
466 | |
+ case "$desiredlang" in
|
467 | |
+ "$presentlang"*) useit=yes;;
|
468 | |
+ esac
|
469 | |
+ done
|
470 | |
+ if test $useit = yes; then
|
471 | |
+ NEW_LINGUAS="$NEW_LINGUAS $presentlang"
|
472 | |
+ fi
|
473 | |
+ done
|
474 | |
+ LINGUAS=$NEW_LINGUAS
|
475 | |
+ AC_MSG_RESULT($LINGUAS)
|
476 | |
+ fi
|
477 | |
|
478 | |
-old_CC="$CC"
|
479 | |
-old_CFLAGS="$CFLAGS"
|
480 | |
+ dnl Construct list of names of catalog files to be constructed.
|
481 | |
+ if test -n "$LINGUAS"; then
|
482 | |
+ for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
483 | |
+ fi
|
484 | |
+ fi
|
485 | |
|
486 | |
-# Set sane defaults for various variables
|
487 | |
-test -z "$AR" && AR=ar
|
488 | |
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
489 | |
-test -z "$AS" && AS=as
|
490 | |
-test -z "$CC" && CC=cc
|
491 | |
-test -z "$LTCC" && LTCC=$CC
|
492 | |
-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
493 | |
-test -z "$DLLTOOL" && DLLTOOL=dlltool
|
494 | |
-test -z "$LD" && LD=ld
|
495 | |
-test -z "$LN_S" && LN_S="ln -s"
|
496 | |
-test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
497 | |
-test -z "$NM" && NM=nm
|
498 | |
-test -z "$SED" && SED=sed
|
499 | |
-test -z "$OBJDUMP" && OBJDUMP=objdump
|
500 | |
-test -z "$RANLIB" && RANLIB=:
|
501 | |
-test -z "$STRIP" && STRIP=:
|
502 | |
-test -z "$ac_objext" && ac_objext=o
|
503 | |
+ dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
|
504 | |
+ dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
|
505 | |
+ dnl Try to locate is.
|
506 | |
+ MKINSTALLDIRS=
|
507 | |
+ if test -n "$ac_aux_dir"; then
|
508 | |
+ MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
|
509 | |
+ fi
|
510 | |
+ if test -z "$MKINSTALLDIRS"; then
|
511 | |
+ MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
|
512 | |
+ fi
|
513 | |
+ AC_SUBST(MKINSTALLDIRS)
|
514 | |
|
515 | |
-# Determine commands to create old-style static archives.
|
516 | |
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
517 | |
-old_postinstall_cmds='chmod 644 $oldlib'
|
518 | |
-old_postuninstall_cmds=
|
519 | |
+ dnl Generate list of files to be processed by xgettext which will
|
520 | |
+ dnl be included in po/Makefile.
|
521 | |
+ test -d po || mkdir po
|
522 | |
+ if test "x$srcdir" != "x."; then
|
523 | |
+ if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
|
524 | |
+ posrcprefix="$srcdir/"
|
525 | |
+ else
|
526 | |
+ posrcprefix="../$srcdir/"
|
527 | |
+ fi
|
528 | |
+ else
|
529 | |
+ posrcprefix="../"
|
530 | |
+ fi
|
531 | |
+ rm -f po/POTFILES
|
532 | |
+ sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
533 | |
+ < $srcdir/po/POTFILES.in > po/POTFILES
|
534 | |
+ ])
|
535 | |
|
536 | |
-if test -n "$RANLIB"; then
|
537 | |
- case $host_os in
|
538 | |
- openbsd*)
|
539 | |
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
540 | |
- ;;
|
541 | |
- *)
|
542 | |
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
543 | |
- ;;
|
544 | |
- esac
|
545 | |
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
546 | |
+# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
|
547 | |
+# -------------------------------
|
548 | |
+# Define VARIABLE to the location where catalog files will
|
549 | |
+# be installed by po/Makefile.
|
550 | |
+glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
|
551 | |
+[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
|
552 | |
+glib_save_prefix="$prefix"
|
553 | |
+glib_save_exec_prefix="$exec_prefix"
|
554 | |
+glib_save_datarootdir="$datarootdir"
|
555 | |
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
556 | |
+test "x$exec_prefix" = xNONE && exec_prefix=$prefix
|
557 | |
+datarootdir=`eval echo "${datarootdir}"`
|
558 | |
+if test "x$CATOBJEXT" = "x.mo" ; then
|
559 | |
+ localedir=`eval echo "${libdir}/locale"`
|
560 | |
+else
|
561 | |
+ localedir=`eval echo "${datadir}/locale"`
|
562 | |
fi
|
563 | |
+prefix="$glib_save_prefix"
|
564 | |
+exec_prefix="$glib_save_exec_prefix"
|
565 | |
+datarootdir="$glib_save_datarootdir"
|
566 | |
+AC_DEFINE_UNQUOTED($1, "$localedir",
|
567 | |
+ [Define the location where the catalogs will be installed])
|
568 | |
+])
|
569 | |
|
570 | |
-_LT_CC_BASENAME([$compiler])
|
571 | |
-
|
572 | |
-# Only perform the check for file, if the check method requires it
|
573 | |
-case $deplibs_check_method in
|
574 | |
-file_magic*)
|
575 | |
- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
576 | |
- AC_PATH_MAGIC
|
577 | |
- fi
|
578 | |
- ;;
|
579 | |
-esac
|
580 | |
-
|
581 | |
-AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
|
582 | |
-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
583 | |
-enable_win32_dll=yes, enable_win32_dll=no)
|
584 | |
-
|
585 | |
-AC_ARG_ENABLE([libtool-lock],
|
586 | |
- [AC_HELP_STRING([--disable-libtool-lock],
|
587 | |
- [avoid locking (might break parallel builds)])])
|
588 | |
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
589 | |
+dnl
|
590 | |
+dnl Now the definitions that aclocal will find
|
591 | |
+dnl
|
592 | |
+ifdef(glib_configure_in,[],[
|
593 | |
+AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
|
594 | |
+AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
|
595 | |
+])dnl
|
596 | |
|
597 | |
-AC_ARG_WITH([pic],
|
598 | |
- [AC_HELP_STRING([--with-pic],
|
599 | |
- [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
600 | |
- [pic_mode="$withval"],
|
601 | |
- [pic_mode=default])
|
602 | |
-test -z "$pic_mode" && pic_mode=default
|
603 | |
+# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
|
604 | |
+#
|
605 | |
+# Create a temporary file with TEST-FILE as its contents and pass the
|
606 | |
+# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
|
607 | |
+# 0 and perform ACTION-IF-FAIL for any other exit status.
|
608 | |
+AC_DEFUN([GLIB_RUN_PROG],
|
609 | |
+[cat >conftest.foo <<_ACEOF
|
610 | |
+$2
|
611 | |
+_ACEOF
|
612 | |
+if AC_RUN_LOG([$1 conftest.foo]); then
|
613 | |
+ m4_ifval([$3], [$3], [:])
|
614 | |
+m4_ifvaln([$4], [else $4])dnl
|
615 | |
+echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
|
616 | |
+sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
|
617 | |
+fi])
|
618 | |
|
619 | |
-# Use C for the default configuration in the libtool script
|
620 | |
-tagname=
|
621 | |
-AC_LIBTOOL_LANG_C_CONFIG
|
622 | |
-_LT_AC_TAGCONFIG
|
623 | |
-])# AC_LIBTOOL_SETUP
|
624 | |
|
625 | |
+# gnome-common.m4
|
626 | |
+#
|
627 | |
|
628 | |
-# _LT_AC_SYS_COMPILER
|
629 | |
-# -------------------
|
630 | |
-AC_DEFUN([_LT_AC_SYS_COMPILER],
|
631 | |
-[AC_REQUIRE([AC_PROG_CC])dnl
|
632 | |
+dnl GNOME_COMMON_INIT
|
633 | |
|
634 | |
-# If no C compiler was specified, use CC.
|
635 | |
-LTCC=${LTCC-"$CC"}
|
636 | |
+AC_DEFUN([GNOME_COMMON_INIT],
|
637 | |
+[
|
638 | |
+ dnl this macro should come after AC_CONFIG_MACRO_DIR
|
639 | |
+ AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
|
640 | |
|
641 | |
-# If no C compiler flags were specified, use CFLAGS.
|
642 | |
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
643 | |
+ dnl ensure that when the Automake generated makefile calls aclocal,
|
644 | |
+ dnl it honours the $ACLOCAL_FLAGS environment variable
|
645 | |
+ ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
|
646 | |
+ if test -n "$ac_macro_dir"; then
|
647 | |
+ ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
|
648 | |
+ fi
|
649 | |
|
650 | |
-# Allow CC to be a program name with arguments.
|
651 | |
-compiler=$CC
|
652 | |
-])# _LT_AC_SYS_COMPILER
|
653 | |
+ AC_SUBST([ACLOCAL_AMFLAGS])
|
654 | |
+])
|
655 | |
|
656 | |
+AC_DEFUN([GNOME_DEBUG_CHECK],
|
657 | |
+[
|
658 | |
+ AC_ARG_ENABLE([debug],
|
659 | |
+ AC_HELP_STRING([--enable-debug],
|
660 | |
+ [turn on debugging]),,
|
661 | |
+ [enable_debug=no])
|
662 | |
|
663 | |
-# _LT_CC_BASENAME(CC)
|
664 | |
-# -------------------
|
665 | |
-# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
666 | |
-AC_DEFUN([_LT_CC_BASENAME],
|
667 | |
-[for cc_temp in $1""; do
|
668 | |
- case $cc_temp in
|
669 | |
- compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
|
670 | |
- distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
|
671 | |
- \-*) ;;
|
672 | |
- *) break;;
|
673 | |
- esac
|
674 | |
-done
|
675 | |
-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
676 | |
+ if test x$enable_debug = xyes ; then
|
677 | |
+ AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
|
678 | |
+ [Enable additional debugging at the expense of performance and size])
|
679 | |
+ fi
|
680 | |
])
|
681 | |
|
682 | |
+dnl GNOME_MAINTAINER_MODE_DEFINES ()
|
683 | |
+dnl define DISABLE_DEPRECATED
|
684 | |
+dnl
|
685 | |
+AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
|
686 | |
+[
|
687 | |
+ AC_REQUIRE([AM_MAINTAINER_MODE])
|
688 | |
|
689 | |
-# _LT_COMPILER_BOILERPLATE
|
690 | |
-# ------------------------
|
691 | |
-# Check for compiler boilerplate output or warnings with
|
692 | |
-# the simple compiler test code.
|
693 | |
-AC_DEFUN([_LT_COMPILER_BOILERPLATE],
|
694 | |
-[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
695 | |
-ac_outfile=conftest.$ac_objext
|
696 | |
-echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
697 | |
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
698 | |
-_lt_compiler_boilerplate=`cat conftest.err`
|
699 | |
-$rm conftest*
|
700 | |
-])# _LT_COMPILER_BOILERPLATE
|
701 | |
+ if test $USE_MAINTAINER_MODE = yes; then
|
702 | |
+ DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED"
|
703 | |
+ else
|
704 | |
+ DISABLE_DEPRECATED=""
|
705 | |
+ fi
|
706 | |
+ AC_SUBST(DISABLE_DEPRECATED)
|
707 | |
+])
|
708 | |
|
709 | |
+dnl GNOME_COMPILE_WARNINGS
|
710 | |
+dnl Turn on many useful compiler warnings
|
711 | |
+dnl For now, only works on GCC
|
712 | |
+AC_DEFUN([GNOME_COMPILE_WARNINGS],[
|
713 | |
+ dnl ******************************
|
714 | |
+ dnl More compiler warnings
|
715 | |
+ dnl ******************************
|
716 | |
|
717 | |
-# _LT_LINKER_BOILERPLATE
|
718 | |
-# ----------------------
|
719 | |
-# Check for linker boilerplate output or warnings with
|
720 | |
-# the simple link test code.
|
721 | |
-AC_DEFUN([_LT_LINKER_BOILERPLATE],
|
722 | |
-[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
723 | |
-ac_outfile=conftest.$ac_objext
|
724 | |
-echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
725 | |
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
726 | |
-_lt_linker_boilerplate=`cat conftest.err`
|
727 | |
-$rm conftest*
|
728 | |
-])# _LT_LINKER_BOILERPLATE
|
729 | |
+ AC_ARG_ENABLE(compile-warnings,
|
730 | |
+ AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
|
731 | |
+ [Turn on compiler warnings]),,
|
732 | |
+ [enable_compile_warnings="m4_default([$1],[yes])"])
|
733 | |
|
734 | |
+ warnCFLAGS=
|
735 | |
+ if test "x$GCC" != xyes; then
|
736 | |
+ enable_compile_warnings=no
|
737 | |
+ fi
|
738 | |
|
739 | |
-# _LT_AC_SYS_LIBPATH_AIX
|
740 | |
-# ----------------------
|
741 | |
-# Links a minimal program and checks the executable
|
742 | |
-# for the system default hardcoded library path. In most cases,
|
743 | |
-# this is /usr/lib:/lib, but when the MPI compilers are used
|
744 | |
-# the location of the communication and MPI libs are included too.
|
745 | |
-# If we don't find anything, use the default library path according
|
746 | |
-# to the aix ld manual.
|
747 | |
-AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
|
748 | |
-[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
749 | |
-AC_LINK_IFELSE(AC_LANG_PROGRAM,[
|
750 | |
-lt_aix_libpath_sed='
|
751 | |
- /Import File Strings/,/^$/ {
|
752 | |
- /^0/ {
|
753 | |
- s/^0 *\(.*\)$/\1/
|
754 | |
- p
|
755 | |
- }
|
756 | |
- }'
|
757 | |
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
758 | |
-# Check for a 64-bit object if we didn't find anything.
|
759 | |
-if test -z "$aix_libpath"; then
|
760 | |
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
761 | |
-fi],[])
|
762 | |
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
763 | |
-])# _LT_AC_SYS_LIBPATH_AIX
|
764 | |
+ warning_flags=
|
765 | |
+ realsave_CFLAGS="$CFLAGS"
|
766 | |
|
767 | |
+ case "$enable_compile_warnings" in
|
768 | |
+ no)
|
769 | |
+ warning_flags=
|
770 | |
+ ;;
|
771 | |
+ minimum)
|
772 | |
+ warning_flags="-Wall"
|
773 | |
+ ;;
|
774 | |
+ yes)
|
775 | |
+ warning_flags="-Wall -Wmissing-prototypes"
|
776 | |
+ ;;
|
777 | |
+ maximum|error)
|
778 | |
+ warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
|
779 | |
+ CFLAGS="$warning_flags $CFLAGS"
|
780 | |
+ for option in -Wno-sign-compare; do
|
781 | |
+ SAVE_CFLAGS="$CFLAGS"
|
782 | |
+ CFLAGS="$CFLAGS $option"
|
783 | |
+ AC_MSG_CHECKING([whether gcc understands $option])
|
784 | |
+ AC_TRY_COMPILE([], [],
|
785 | |
+ has_option=yes,
|
786 | |
+ has_option=no,)
|
787 | |
+ CFLAGS="$SAVE_CFLAGS"
|
788 | |
+ AC_MSG_RESULT($has_option)
|
789 | |
+ if test $has_option = yes; then
|
790 | |
+ warning_flags="$warning_flags $option"
|
791 | |
+ fi
|
792 | |
+ unset has_option
|
793 | |
+ unset SAVE_CFLAGS
|
794 | |
+ done
|
795 | |
+ unset option
|
796 | |
+ if test "$enable_compile_warnings" = "error" ; then
|
797 | |
+ warning_flags="$warning_flags -Werror"
|
798 | |
+ fi
|
799 | |
+ ;;
|
800 | |
+ *)
|
801 | |
+ AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
|
802 | |
+ ;;
|
803 | |
+ esac
|
804 | |
+ CFLAGS="$realsave_CFLAGS"
|
805 | |
+ AC_MSG_CHECKING(what warning flags to pass to the C compiler)
|
806 | |
+ AC_MSG_RESULT($warning_flags)
|
807 | |
|
808 | |
-# _LT_AC_SHELL_INIT(ARG)
|
809 | |
-# ----------------------
|
810 | |
-AC_DEFUN([_LT_AC_SHELL_INIT],
|
811 | |
-[ifdef([AC_DIVERSION_NOTICE],
|
812 | |
- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
|
813 | |
- [AC_DIVERT_PUSH(NOTICE)])
|
814 | |
-$1
|
815 | |
-AC_DIVERT_POP
|
816 | |
-])# _LT_AC_SHELL_INIT
|
817 | |
+ AC_ARG_ENABLE(iso-c,
|
818 | |
+ AC_HELP_STRING([--enable-iso-c],
|
819 | |
+ [Try to warn if code is not ISO C ]),,
|
820 | |
+ [enable_iso_c=no])
|
821 | |
|
822 | |
+ AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
|
823 | |
+ complCFLAGS=
|
824 | |
+ if test "x$enable_iso_c" != "xno"; then
|
825 | |
+ if test "x$GCC" = "xyes"; then
|
826 | |
+ case " $CFLAGS " in
|
827 | |
+ *[\ \ ]-ansi[\ \ ]*) ;;
|
828 | |
+ *) complCFLAGS="$complCFLAGS -ansi" ;;
|
829 | |
+ esac
|
830 | |
+ case " $CFLAGS " in
|
831 | |
+ *[\ \ ]-pedantic[\ \ ]*) ;;
|
832 | |
+ *) complCFLAGS="$complCFLAGS -pedantic" ;;
|
833 | |
+ esac
|
834 | |
+ fi
|
835 | |
+ fi
|
836 | |
+ AC_MSG_RESULT($complCFLAGS)
|
837 | |
|
838 | |
-# _LT_AC_PROG_ECHO_BACKSLASH
|
839 | |
-# --------------------------
|
840 | |
-# Add some code to the start of the generated configure script which
|
841 | |
-# will find an echo command which doesn't interpret backslashes.
|
842 | |
-AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
|
843 | |
-[_LT_AC_SHELL_INIT([
|
844 | |
-# Check that we are running under the correct shell.
|
845 | |
-SHELL=${CONFIG_SHELL-/bin/sh}
|
846 | |
-
|
847 | |
-case X$ECHO in
|
848 | |
-X*--fallback-echo)
|
849 | |
- # Remove one level of quotation (which was required for Make).
|
850 | |
- ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
|
851 | |
- ;;
|
852 | |
-esac
|
853 | |
+ WARN_CFLAGS="$warning_flags $complCFLAGS"
|
854 | |
+ AC_SUBST(WARN_CFLAGS)
|
855 | |
+])
|
856 | |
|
857 | |
-echo=${ECHO-echo}
|
858 | |
-if test "X[$]1" = X--no-reexec; then
|
859 | |
- # Discard the --no-reexec flag, and continue.
|
860 | |
- shift
|
861 | |
-elif test "X[$]1" = X--fallback-echo; then
|
862 | |
- # Avoid inline document here, it may be left over
|
863 | |
- :
|
864 | |
-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
|
865 | |
- # Yippee, $echo works!
|
866 | |
- :
|
867 | |
-else
|
868 | |
- # Restart under the correct shell.
|
869 | |
- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
870 | |
-fi
|
871 | |
+dnl For C++, do basically the same thing.
|
872 | |
|
873 | |
-if test "X[$]1" = X--fallback-echo; then
|
874 | |
- # used as fallback echo
|
875 | |
- shift
|
876 | |
- cat <<EOF
|
877 | |
-[$]*
|
878 | |
-EOF
|
879 | |
- exit 0
|
880 | |
-fi
|
881 | |
+AC_DEFUN([GNOME_CXX_WARNINGS],[
|
882 | |
+ AC_ARG_ENABLE(cxx-warnings,
|
883 | |
+ AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
|
884 | |
+ [Turn on compiler warnings.]),,
|
885 | |
+ [enable_cxx_warnings="m4_default([$1],[minimum])"])
|
886 | |
|
887 | |
-# The HP-UX ksh and POSIX shell print the target directory to stdout
|
888 | |
-# if CDPATH is set.
|
889 | |
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
890 | |
+ AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
|
891 | |
+ warnCXXFLAGS=
|
892 | |
+ if test "x$GXX" != xyes; then
|
893 | |
+ enable_cxx_warnings=no
|
894 | |
+ fi
|
895 | |
+ if test "x$enable_cxx_warnings" != "xno"; then
|
896 | |
+ if test "x$GXX" = "xyes"; then
|
897 | |
+ case " $CXXFLAGS " in
|
898 | |
+ *[\ \ ]-Wall[\ \ ]*) ;;
|
899 | |
+ *) warnCXXFLAGS="-Wall -Wno-unused" ;;
|
900 | |
+ esac
|
901 | |
|
902 | |
-if test -z "$ECHO"; then
|
903 | |
-if test "X${echo_test_string+set}" != Xset; then
|
904 | |
-# find a string as large as possible, as long as the shell can cope with it
|
905 | |
- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
|
906 | |
- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
907 | |
- if (echo_test_string=`eval $cmd`) 2>/dev/null &&
|
908 | |
- echo_test_string=`eval $cmd` &&
|
909 | |
- (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
|
910 | |
- then
|
911 | |
- break
|
912 | |
+ ## -W is not all that useful. And it cannot be controlled
|
913 | |
+ ## with individual -Wno-xxx flags, unlike -Wall
|
914 | |
+ if test "x$enable_cxx_warnings" = "xyes"; then
|
915 | |
+ warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
|
916 | |
+ fi
|
917 | |
fi
|
918 | |
- done
|
919 | |
-fi
|
920 | |
+ fi
|
921 | |
+ AC_MSG_RESULT($warnCXXFLAGS)
|
922 | |
|
923 | |
-if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
924 | |
- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
925 | |
- test "X$echo_testing_string" = "X$echo_test_string"; then
|
926 | |
- :
|
927 | |
-else
|
928 | |
- # The Solaris, AIX, and Digital Unix default echo programs unquote
|
929 | |
- # backslashes. This makes it impossible to quote backslashes using
|
930 | |
- # echo "$something" | sed 's/\\/\\\\/g'
|
931 | |
- #
|
932 | |
- # So, first we look for a working echo in the user's PATH.
|
933 | |
+ AC_ARG_ENABLE(iso-cxx,
|
934 | |
+ AC_HELP_STRING([--enable-iso-cxx],
|
935 | |
+ [Try to warn if code is not ISO C++ ]),,
|
936 | |
+ [enable_iso_cxx=no])
|
937 | |
|
938 | |
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
939 | |
- for dir in $PATH /usr/ucb; do
|
940 | |
- IFS="$lt_save_ifs"
|
941 | |
- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
942 | |
- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
943 | |
- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
944 | |
- test "X$echo_testing_string" = "X$echo_test_string"; then
|
945 | |
- echo="$dir/echo"
|
946 | |
- break
|
947 | |
- fi
|
948 | |
- done
|
949 | |
- IFS="$lt_save_ifs"
|
950 | |
+ AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
|
951 | |
+ complCXXFLAGS=
|
952 | |
+ if test "x$enable_iso_cxx" != "xno"; then
|
953 | |
+ if test "x$GXX" = "xyes"; then
|
954 | |
+ case " $CXXFLAGS " in
|
955 | |
+ *[\ \ ]-ansi[\ \ ]*) ;;
|
956 | |
+ *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
|
957 | |
+ esac
|
958 | |
|
959 | |
- if test "X$echo" = Xecho; then
|
960 | |
- # We didn't find a better echo, so look for alternatives.
|
961 | |
- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
|
962 | |
- echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
|
963 | |
- test "X$echo_testing_string" = "X$echo_test_string"; then
|
964 | |
- # This shell has a builtin print -r that does the trick.
|
965 | |
- echo='print -r'
|
966 | |
- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
|
967 | |
- test "X$CONFIG_SHELL" != X/bin/ksh; then
|
968 | |
- # If we have ksh, try running configure again with it.
|
969 | |
- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
970 | |
- export ORIGINAL_CONFIG_SHELL
|
971 | |
- CONFIG_SHELL=/bin/ksh
|
972 | |
- export CONFIG_SHELL
|
973 | |
- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
974 | |
- else
|
975 | |
- # Try using printf.
|
976 | |
- echo='printf %s\n'
|
977 | |
- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
978 | |
- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
979 | |
- test "X$echo_testing_string" = "X$echo_test_string"; then
|
980 | |
- # Cool, printf works
|
981 | |
- :
|
982 | |
- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
983 | |
- test "X$echo_testing_string" = 'X\t' &&
|
984 | |
- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
985 | |
- test "X$echo_testing_string" = "X$echo_test_string"; then
|
986 | |
- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
987 | |
- export CONFIG_SHELL
|
988 | |
- SHELL="$CONFIG_SHELL"
|
989 | |
- export SHELL
|
990 | |
- echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
991 | |
- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
992 | |
- test "X$echo_testing_string" = 'X\t' &&
|
993 | |
- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
994 | |
- test "X$echo_testing_string" = "X$echo_test_string"; then
|
995 | |
- echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
996 | |
- else
|
997 | |
- # maybe with a smaller string...
|
998 | |
- prev=:
|
999 | |
+ case " $CXXFLAGS " in
|
1000 | |
+ *[\ \ ]-pedantic[\ \ ]*) ;;
|
1001 | |
+ *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
|
1002 | |
+ esac
|
1003 | |
+ fi
|
1004 | |
+ fi
|
1005 | |
+ AC_MSG_RESULT($complCXXFLAGS)
|
1006 | |
|
1007 | |
- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
|
1008 | |
- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
|
1009 | |
- then
|
1010 | |
- break
|
1011 | |
- fi
|
1012 | |
- prev="$cmd"
|
1013 | |
- done
|
1014 | |
+ WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
|
1015 | |
+ AC_SUBST(WARN_CXXFLAGS)
|
1016 | |
+])
|
1017 | |
|
1018 | |
- if test "$prev" != 'sed 50q "[$]0"'; then
|
1019 | |
- echo_test_string=`eval $prev`
|
1020 | |
- export echo_test_string
|
1021 | |
- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
|
1022 | |
- else
|
1023 | |
- # Oops. We lost completely, so just stick with echo.
|
1024 | |
- echo=echo
|
1025 | |
- fi
|
1026 | |
- fi
|
1027 | |
- fi
|
1028 | |
- fi
|
1029 | |
-fi
|
1030 | |
-fi
|
1031 | |
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
1032 | |
|
1033 | |
-# Copy echo and quote the copy suitably for passing to libtool from
|
1034 | |
-# the Makefile, instead of quoting the original, which is used later.
|
1035 | |
-ECHO=$echo
|
1036 | |
-if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
|
1037 | |
- ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
|
1038 | |
-fi
|
|
0 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/aclocal.m4 epiphany-browser-2.20.2/aclocal.m4
|
|
1 |
--- epiphany-browser-2.20.2.old/aclocal.m4 2007-11-27 00:37:29.000000000 +0100
|
|
2 |
+++ epiphany-browser-2.20.2/aclocal.m4 2007-12-01 17:48:56.000000000 +0100
|
|
3 |
@@ -682,7 +682,7 @@
|
|
4 |
|
|
5 |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
|
6 |
|
|
7 |
-# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
|
1039 | 8 |
+# serial 51 Debian 1.5.24-1ubuntu1 AC_PROG_LIBTOOL
|
1040 | 9 |
|
1041 | |
-AC_SUBST(ECHO)
|
1042 | |
-])])# _LT_AC_PROG_ECHO_BACKSLASH
|
1043 | |
|
1044 | |
+# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
|
1045 | |
+# -----------------------------------------------------------
|
1046 | |
+# If this macro is not defined by Autoconf, define it here.
|
1047 | |
+m4_ifdef([AC_PROVIDE_IFELSE],
|
1048 | |
+ [],
|
1049 | |
+ [m4_define([AC_PROVIDE_IFELSE],
|
1050 | |
+ [m4_ifdef([AC_PROVIDE_$1],
|
1051 | |
+ [$2], [$3])])])
|
1052 | |
|
1053 | |
-# _LT_AC_LOCK
|
1054 | |
-# -----------
|
1055 | |
-AC_DEFUN([_LT_AC_LOCK],
|
1056 | |
-[AC_ARG_ENABLE([libtool-lock],
|
1057 | |
- [AC_HELP_STRING([--disable-libtool-lock],
|
1058 | |
- [avoid locking (might break parallel builds)])])
|
1059 | |
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
1060 | |
|
1061 | |
-# Some flags need to be propagated to the compiler or linker for good
|
1062 | |
-# libtool support.
|
1063 | |
-case $host in
|
1064 | |
-ia64-*-hpux*)
|
1065 | |
- # Find out which ABI we are using.
|
1066 | |
- echo 'int i;' > conftest.$ac_ext
|
1067 | |
- if AC_TRY_EVAL(ac_compile); then
|
1068 | |
- case `/usr/bin/file conftest.$ac_objext` in
|
1069 | |
- *ELF-32*)
|
1070 | |
- HPUX_IA64_MODE="32"
|
1071 | |
- ;;
|
1072 | |
- *ELF-64*)
|
1073 | |
- HPUX_IA64_MODE="64"
|
1074 | |
- ;;
|
1075 | |
- esac
|
1076 | |
- fi
|
1077 | |
- rm -rf conftest*
|
1078 | |
- ;;
|
1079 | |
-*-*-irix6*)
|
1080 | |
- # Find out which ABI we are using.
|
1081 | |
- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
|
1082 | |
- if AC_TRY_EVAL(ac_compile); then
|
1083 | |
- if test "$lt_cv_prog_gnu_ld" = yes; then
|
1084 | |
- case `/usr/bin/file conftest.$ac_objext` in
|
1085 | |
- *32-bit*)
|
1086 | |
- LD="${LD-ld} -melf32bsmip"
|
1087 | |
- ;;
|
1088 | |
- *N32*)
|
1089 | |
- LD="${LD-ld} -melf32bmipn32"
|
1090 | |
- ;;
|
1091 | |
- *64-bit*)
|
1092 | |
- LD="${LD-ld} -melf64bmip"
|
1093 | |
- ;;
|
1094 | |
- esac
|
1095 | |
- else
|
1096 | |
- case `/usr/bin/file conftest.$ac_objext` in
|
1097 | |
- *32-bit*)
|
1098 | |
- LD="${LD-ld} -32"
|
1099 | |
- ;;
|
1100 | |
- *N32*)
|
1101 | |
- LD="${LD-ld} -n32"
|
1102 | |
- ;;
|
1103 | |
- *64-bit*)
|
1104 | |
- LD="${LD-ld} -64"
|
1105 | |
- ;;
|
1106 | |
- esac
|
1107 | |
- fi
|
1108 | |
- fi
|
1109 | |
- rm -rf conftest*
|
1110 | |
- ;;
|
1111 | |
-
|
1112 | |
-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
1113 | |
-s390*-*linux*|sparc*-*linux*)
|
1114 | |
- # Find out which ABI we are using.
|
1115 | |
- echo 'int i;' > conftest.$ac_ext
|
1116 | |
- if AC_TRY_EVAL(ac_compile); then
|
1117 | |
- case `/usr/bin/file conftest.o` in
|
1118 | |
- *32-bit*)
|
1119 | |
- case $host in
|
1120 | |
- x86_64-*kfreebsd*-gnu)
|
1121 | |
- LD="${LD-ld} -m elf_i386_fbsd"
|
1122 | |
- ;;
|
1123 | |
- x86_64-*linux*)
|
1124 | |
- LD="${LD-ld} -m elf_i386"
|
1125 | |
- ;;
|
1126 | |
- ppc64-*linux*|powerpc64-*linux*)
|
1127 | |
- LD="${LD-ld} -m elf32ppclinux"
|
1128 | |
- ;;
|
1129 | |
- s390x-*linux*)
|
1130 | |
- LD="${LD-ld} -m elf_s390"
|
1131 | |
- ;;
|
1132 | |
- sparc64-*linux*)
|
1133 | |
- LD="${LD-ld} -m elf32_sparc"
|
1134 | |
- ;;
|
1135 | |
- esac
|
1136 | |
- ;;
|
1137 | |
- *64-bit*)
|
1138 | |
- case $host in
|
1139 | |
- x86_64-*kfreebsd*-gnu)
|
1140 | |
- LD="${LD-ld} -m elf_x86_64_fbsd"
|
1141 | |
- ;;
|
1142 | |
- x86_64-*linux*)
|
1143 | |
- LD="${LD-ld} -m elf_x86_64"
|
1144 | |
- ;;
|
1145 | |
- ppc*-*linux*|powerpc*-*linux*)
|
1146 | |
- LD="${LD-ld} -m elf64ppc"
|
1147 | |
- ;;
|
1148 | |
- s390*-*linux*)
|
1149 | |
- LD="${LD-ld} -m elf64_s390"
|
1150 | |
- ;;
|
1151 | |
- sparc*-*linux*)
|
1152 | |
- LD="${LD-ld} -m elf64_sparc"
|
1153 | |
- ;;
|
1154 | |
- esac
|
1155 | |
- ;;
|
1156 | |
- esac
|
1157 | |
- fi
|
1158 | |
- rm -rf conftest*
|
1159 | |
- ;;
|
1160 | |
+# AC_PROG_LIBTOOL
|
1161 | |
+# ---------------
|
1162 | |
+AC_DEFUN([AC_PROG_LIBTOOL],
|
1163 | |
+[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
|
1164 | |
+dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
|
1165 | |
+dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
|
1166 | |
+ AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
1167 | |
+ [AC_LIBTOOL_CXX],
|
1168 | |
+ [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
|
1169 | |
+ ])])
|
1170 | |
+dnl And a similar setup for Fortran 77 support
|
1171 | |
+ AC_PROVIDE_IFELSE([AC_PROG_F77],
|
1172 | |
+ [AC_LIBTOOL_F77],
|
1173 | |
+ [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
|
1174 | |
+])])
|
1175 | |
|
1176 | |
-*-*-sco3.2v5*)
|
1177 | |
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
1178 | |
- SAVE_CFLAGS="$CFLAGS"
|
1179 | |
- CFLAGS="$CFLAGS -belf"
|
1180 | |
- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
1181 | |
- [AC_LANG_PUSH(C)
|
1182 | |
- AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
1183 | |
- AC_LANG_POP])
|
1184 | |
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
1185 | |
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
1186 | |
- CFLAGS="$SAVE_CFLAGS"
|
1187 | |
- fi
|
1188 | |
- ;;
|
1189 | |
-sparc*-*solaris*)
|
1190 | |
- # Find out which ABI we are using.
|
1191 | |
- echo 'int i;' > conftest.$ac_ext
|
1192 | |
- if AC_TRY_EVAL(ac_compile); then
|
1193 | |
- case `/usr/bin/file conftest.o` in
|
1194 | |
- *64-bit*)
|
1195 | |
- case $lt_cv_prog_gnu_ld in
|
1196 | |
- yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
1197 | |
- *) LD="${LD-ld} -64" ;;
|
1198 | |
- esac
|
1199 | |
- ;;
|
1200 | |
- esac
|
1201 | |
- fi
|
1202 | |
- rm -rf conftest*
|
1203 | |
- ;;
|
1204 | |
+dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
|
1205 | |
+dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
|
1206 | |
+dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
|
1207 | |
+ AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
1208 | |
+ [AC_LIBTOOL_GCJ],
|
1209 | |
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
|
1210 | |
+ [AC_LIBTOOL_GCJ],
|
1211 | |
+ [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
|
1212 | |
+ [AC_LIBTOOL_GCJ],
|
1213 | |
+ [ifdef([AC_PROG_GCJ],
|
1214 | |
+ [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
|
1215 | |
+ ifdef([A][M_PROG_GCJ],
|
1216 | |
+ [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
|
1217 | |
+ ifdef([LT_AC_PROG_GCJ],
|
1218 | |
+ [define([LT_AC_PROG_GCJ],
|
1219 | |
+ defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
|
1220 | |
+])])# AC_PROG_LIBTOOL
|
1221 | |
|
1222 | |
-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
1223 | |
-[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
|
1224 | |
- AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
1225 | |
- AC_CHECK_TOOL(AS, as, false)
|
1226 | |
- AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
1227 | |
- ;;
|
1228 | |
- ])
|
1229 | |
-esac
|
1230 | |
|
1231 | |
-need_locks="$enable_libtool_lock"
|
1232 | |
+# _AC_PROG_LIBTOOL
|
1233 | |
+# ----------------
|
1234 | |
+AC_DEFUN([_AC_PROG_LIBTOOL],
|
1235 | |
+[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
|
1236 | |
+AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
|
1237 | |
+AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
|
1238 | |
+AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
|
1239 | |
|
1240 | |
-])# _LT_AC_LOCK
|
1241 | |
+# This can be used to rebuild libtool when needed
|
1242 | |
+LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
1243 | |
|
1244 | |
+# Always use our own libtool.
|
1245 | |
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
1246 | |
+AC_SUBST(LIBTOOL)dnl
|
1247 | |
|
1248 | |
-# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
1249 | |
-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
|
1250 | |
-# ----------------------------------------------------------------
|
1251 | |
-# Check whether the given compiler option works
|
1252 | |
-AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
|
1253 | |
-[AC_REQUIRE([LT_AC_PROG_SED])
|
1254 | |
-AC_CACHE_CHECK([$1], [$2],
|
1255 | |
- [$2=no
|
1256 | |
- ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
1257 | |
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
1258 | |
- lt_compiler_flag="$3"
|
1259 | |
- # Insert the option either (1) after the last *FLAGS variable, or
|
1260 | |
- # (2) before a word containing "conftest.", or (3) at the end.
|
1261 | |
- # Note that $ac_compile itself does not contain backslashes and begins
|
1262 | |
- # with a dollar sign (not a hyphen), so the echo should work correctly.
|
1263 | |
- # The option is referenced via a variable to avoid confusing sed.
|
1264 | |
- lt_compile=`echo "$ac_compile" | $SED \
|
1265 | |
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
1266 | |
- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
1267 | |
- -e 's:$: $lt_compiler_flag:'`
|
1268 | |
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
1269 | |
- (eval "$lt_compile" 2>conftest.err)
|
1270 | |
- ac_status=$?
|
1271 | |
- cat conftest.err >&AS_MESSAGE_LOG_FD
|
1272 | |
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
1273 | |
- if (exit $ac_status) && test -s "$ac_outfile"; then
|
1274 | |
- # The compiler can only warn and ignore the option if not recognized
|
1275 | |
- # So say no if there are warnings other than the usual output.
|
1276 | |
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
1277 | |
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
1278 | |
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
1279 | |
- $2=yes
|
1280 | |
- fi
|
1281 | |
- fi
|
1282 | |
- $rm conftest*
|
1283 | |
-])
|
1284 | |
+# Prevent multiple expansion
|
1285 | |
+define([AC_PROG_LIBTOOL], [])
|
1286 | |
+])# _AC_PROG_LIBTOOL
|
1287 | |
|
1288 | |
-if test x"[$]$2" = xyes; then
|
1289 | |
- ifelse([$5], , :, [$5])
|
1290 | |
-else
|
1291 | |
- ifelse([$6], , :, [$6])
|
1292 | |
-fi
|
1293 | |
-])# AC_LIBTOOL_COMPILER_OPTION
|
1294 | |
|
1295 | |
+# AC_LIBTOOL_SETUP
|
1296 | |
+# ----------------
|
1297 | |
+AC_DEFUN([AC_LIBTOOL_SETUP],
|
1298 | |
+[AC_PREREQ(2.50)dnl
|
1299 | |
+AC_REQUIRE([AC_ENABLE_SHARED])dnl
|
1300 | |
+AC_REQUIRE([AC_ENABLE_STATIC])dnl
|
1301 | |
+AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
|
1302 | |
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
1303 | |
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
1304 | |
+AC_REQUIRE([AC_PROG_CC])dnl
|
1305 | |
+AC_REQUIRE([AC_PROG_LD])dnl
|
1306 | |
+AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
|
1307 | |
+AC_REQUIRE([AC_PROG_NM])dnl
|
1308 | |
|
1309 | |
-# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
1310 | |
-# [ACTION-SUCCESS], [ACTION-FAILURE])
|
1311 | |
-# ------------------------------------------------------------
|
1312 | |
-# Check whether the given compiler option works
|
1313 | |
-AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
|
1314 | |
-[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
1315 | |
-AC_CACHE_CHECK([$1], [$2],
|
1316 | |
- [$2=no
|
1317 | |
- save_LDFLAGS="$LDFLAGS"
|
1318 | |
- LDFLAGS="$LDFLAGS $3"
|
1319 | |
- echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
1320 | |
- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
1321 | |
- # The linker can only warn and ignore the option if not recognized
|
1322 | |
- # So say no if there are warnings
|
1323 | |
- if test -s conftest.err; then
|
1324 | |
- # Append any errors to the config.log.
|
1325 | |
- cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
1326 | |
- $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
1327 | |
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
1328 | |
- if diff conftest.exp conftest.er2 >/dev/null; then
|
1329 | |
- $2=yes
|
1330 | |
- fi
|
1331 | |
- else
|
1332 | |
- $2=yes
|
1333 | |
- fi
|
1334 | |
- fi
|
1335 | |
- $rm conftest*
|
1336 | |
- LDFLAGS="$save_LDFLAGS"
|
1337 | |
-])
|
1338 | |
+AC_REQUIRE([AC_PROG_LN_S])dnl
|
1339 | |
+AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
|
1340 | |
+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
1341 | |
+AC_REQUIRE([AC_OBJEXT])dnl
|
1342 | |
+AC_REQUIRE([AC_EXEEXT])dnl
|
1343 | |
+dnl
|
1344 | |
|
1345 | |
-if test x"[$]$2" = xyes; then
|
1346 | |
- ifelse([$4], , :, [$4])
|
1347 | |
-else
|
1348 | |
- ifelse([$5], , :, [$5])
|
1349 | |
-fi
|
1350 | |
-])# AC_LIBTOOL_LINKER_OPTION
|
1351 | |
+AC_LIBTOOL_SYS_MAX_CMD_LEN
|
1352 | |
+AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
1353 | |
+AC_LIBTOOL_OBJDIR
|
1354 | |
|
1355 | |
+AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
1356 | |
+_LT_AC_PROG_ECHO_BACKSLASH
|
1357 | |
|
1358 | |
-# AC_LIBTOOL_SYS_MAX_CMD_LEN
|
1359 | |
-# --------------------------
|
1360 | |
-AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
|
1361 | |
-[# find the maximum length of command line arguments
|
1362 | |
-AC_MSG_CHECKING([the maximum length of command line arguments])
|
1363 | |
-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
1364 | |
- i=0
|
1365 | |
- teststring="ABCD"
|
1366 | |
+case $host_os in
|
1367 | |
+aix3*)
|
1368 | |
+ # AIX sometimes has problems with the GCC collect2 program. For some
|
1369 | |
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
|
1370 | |
+ # vanish in a puff of smoke.
|
1371 | |
+ if test "X${COLLECT_NAMES+set}" != Xset; then
|
1372 | |
+ COLLECT_NAMES=
|
1373 | |
+ export COLLECT_NAMES
|
1374 | |
+ fi
|
1375 | |
+ ;;
|
1376 | |
+esac
|
1377 | |
|
1378 | |
- case $build_os in
|
1379 | |
- msdosdjgpp*)
|
1380 | |
- # On DJGPP, this test can blow up pretty badly due to problems in libc
|
1381 | |
- # (any single argument exceeding 2000 bytes causes a buffer overrun
|
1382 | |
- # during glob expansion). Even if it were fixed, the result of this
|
1383 | |
- # check would be larger than it should be.
|
1384 | |
- lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
1385 | |
- ;;
|
1386 | |
+# Sed substitution that helps us do robust quoting. It backslashifies
|
1387 | |
+# metacharacters that are still active within double-quoted strings.
|
1388 | |
+Xsed='sed -e 1s/^X//'
|
1389 | |
+[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
|
1390 | |
|
1391 | |
- gnu*)
|
1392 | |
- # Under GNU Hurd, this test is not required because there is
|
1393 | |
- # no limit to the length of command line arguments.
|
1394 | |
- # Libtool will interpret -1 as no limit whatsoever
|
1395 | |
- lt_cv_sys_max_cmd_len=-1;
|
1396 | |
- ;;
|
1397 | |
+# Same as above, but do not quote variable references.
|
1398 | |
+[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
|
1399 | |
|
1400 | |
- cygwin* | mingw*)
|
1401 | |
- # On Win9x/ME, this test blows up -- it succeeds, but takes
|
1402 | |
- # about 5 minutes as the teststring grows exponentially.
|
1403 | |
- # Worse, since 9x/ME are not pre-emptively multitasking,
|
1404 | |
- # you end up with a "frozen" computer, even though with patience
|
1405 | |
- # the test eventually succeeds (with a max line length of 256k).
|
1406 | |
- # Instead, let's just punt: use the minimum linelength reported by
|
1407 | |
- # all of the supported platforms: 8192 (on NT/2K/XP).
|
1408 | |
- lt_cv_sys_max_cmd_len=8192;
|
1409 | |
- ;;
|
1410 | |
+# Sed substitution to delay expansion of an escaped shell variable in a
|
1411 | |
+# double_quote_subst'ed string.
|
1412 | |
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
1413 | |
|
1414 | |
- amigaos*)
|
1415 | |
- # On AmigaOS with pdksh, this test takes hours, literally.
|
1416 | |
- # So we just punt and use a minimum line length of 8192.
|
1417 | |
- lt_cv_sys_max_cmd_len=8192;
|
1418 | |
- ;;
|
1419 | |
+# Sed substitution to avoid accidental globbing in evaled expressions
|
1420 | |
+no_glob_subst='s/\*/\\\*/g'
|
1421 | |
|
1422 | |
- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
1423 | |
- # This has been around since 386BSD, at least. Likely further.
|
1424 | |
- if test -x /sbin/sysctl; then
|
1425 | |
- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
1426 | |
- elif test -x /usr/sbin/sysctl; then
|
1427 | |
- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
1428 | |
- else
|
1429 | |
- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
1430 | |
- fi
|
1431 | |
- # And add a safety zone
|
1432 | |
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
1433 | |
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
1434 | |
- ;;
|
1435 | |
+# Constants:
|
1436 | |
+rm="rm -f"
|
1437 | |
|
1438 | |
- interix*)
|
1439 | |
- # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
1440 | |
- lt_cv_sys_max_cmd_len=196608
|
1441 | |
- ;;
|
1442 | |
+# Global variables:
|
1443 | |
+default_ofile=libtool
|
1444 | |
+can_build_shared=yes
|
1445 | |
|
1446 | |
- osf*)
|
1447 | |
- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
1448 | |
- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
1449 | |
- # nice to cause kernel panics so lets avoid the loop below.
|
1450 | |
- # First set a reasonable default.
|
1451 | |
- lt_cv_sys_max_cmd_len=16384
|
1452 | |
- #
|
1453 | |
- if test -x /sbin/sysconfig; then
|
1454 | |
- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
1455 | |
- *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
1456 | |
- esac
|
1457 | |
- fi
|
1458 | |
- ;;
|
1459 | |
- sco3.2v5*)
|
1460 | |
- lt_cv_sys_max_cmd_len=102400
|
1461 | |
- ;;
|
1462 | |
- sysv5* | sco5v6* | sysv4.2uw2*)
|
1463 | |
- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
1464 | |
- if test -n "$kargmax"; then
|
1465 | |
- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
|
1466 | |
- else
|
1467 | |
- lt_cv_sys_max_cmd_len=32768
|
1468 | |
- fi
|
1469 | |
+# All known linkers require a `.a' archive for static linking (except MSVC,
|
1470 | |
+# which needs '.lib').
|
1471 | |
+libext=a
|
1472 | |
+ltmain="$ac_aux_dir/ltmain.sh"
|
1473 | |
+ofile="$default_ofile"
|
1474 | |
+with_gnu_ld="$lt_cv_prog_gnu_ld"
|
1475 | |
+
|
1476 | |
+AC_CHECK_TOOL(AR, ar, false)
|
1477 | |
+AC_CHECK_TOOL(RANLIB, ranlib, :)
|
1478 | |
+AC_CHECK_TOOL(STRIP, strip, :)
|
1479 | |
+
|
1480 | |
+old_CC="$CC"
|
1481 | |
+old_CFLAGS="$CFLAGS"
|
1482 | |
+
|
1483 | |
+# Set sane defaults for various variables
|
1484 | |
+test -z "$AR" && AR=ar
|
1485 | |
+test -z "$AR_FLAGS" && AR_FLAGS=cru
|
1486 | |
+test -z "$AS" && AS=as
|
1487 | |
+test -z "$CC" && CC=cc
|
1488 | |
+test -z "$LTCC" && LTCC=$CC
|
1489 | |
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
1490 | |
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
1491 | |
+test -z "$LD" && LD=ld
|
1492 | |
+test -z "$LN_S" && LN_S="ln -s"
|
1493 | |
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
1494 | |
+test -z "$NM" && NM=nm
|
1495 | |
+test -z "$SED" && SED=sed
|
1496 | |
+test -z "$OBJDUMP" && OBJDUMP=objdump
|
1497 | |
+test -z "$RANLIB" && RANLIB=:
|
1498 | |
+test -z "$STRIP" && STRIP=:
|
1499 | |
+test -z "$ac_objext" && ac_objext=o
|
1500 | |
+
|
1501 | |
+# Determine commands to create old-style static archives.
|
|
10 |
|
|
11 |
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
|
|
12 |
@@ -845,7 +845,7 @@
|
|
13 |
test -z "$ac_objext" && ac_objext=o
|
|
14 |
|
|
15 |
# Determine commands to create old-style static archives.
|
|
16 |
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
|
1502 | 17 |
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
1503 | |
+old_postinstall_cmds='chmod 644 $oldlib'
|
1504 | |
+old_postuninstall_cmds=
|
1505 | |
+
|
1506 | |
+if test -n "$RANLIB"; then
|
1507 | |
+ case $host_os in
|
1508 | |
+ openbsd*)
|
1509 | |
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
1510 | |
;;
|
1511 | |
*)
|
1512 | |
- lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
1513 | |
- if test -n "$lt_cv_sys_max_cmd_len"; then
|
1514 | |
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
1515 | |
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
1516 | |
- else
|
1517 | |
- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
1518 | |
- while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
|
1519 | |
- = "XX$teststring") >/dev/null 2>&1 &&
|
1520 | |
- new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
1521 | |
- lt_cv_sys_max_cmd_len=$new_result &&
|
1522 | |
- test $i != 17 # 1/2 MB should be enough
|
1523 | |
- do
|
1524 | |
- i=`expr $i + 1`
|
1525 | |
- teststring=$teststring$teststring
|
1526 | |
- done
|
1527 | |
- teststring=
|
1528 | |
- # Add a significant safety factor because C++ compilers can tack on massive
|
1529 | |
- # amounts of additional arguments before passing them to the linker.
|
1530 | |
- # It appears as though 1/2 is a usable value.
|
1531 | |
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
1532 | |
- fi
|
1533 | |
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
1534 | |
;;
|
1535 | |
esac
|
1536 | |
-])
|
1537 | |
-if test -n $lt_cv_sys_max_cmd_len ; then
|
1538 | |
- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
|
1539 | |
-else
|
1540 | |
- AC_MSG_RESULT(none)
|
1541 | |
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
1542 | |
fi
|
1543 | |
-])# AC_LIBTOOL_SYS_MAX_CMD_LEN
|
1544 | |
-
|
1545 | |
|
1546 | |
-# _LT_AC_CHECK_DLFCN
|
1547 | |
-# ------------------
|
1548 | |
-AC_DEFUN([_LT_AC_CHECK_DLFCN],
|
1549 | |
-[AC_CHECK_HEADERS(dlfcn.h)dnl
|
1550 | |
-])# _LT_AC_CHECK_DLFCN
|
1551 | |
+_LT_CC_BASENAME([$compiler])
|
1552 | |
|
1553 | |
+# Only perform the check for file, if the check method requires it
|
1554 | |
+case $deplibs_check_method in
|
1555 | |
+file_magic*)
|
1556 | |
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
1557 | |
+ AC_PATH_MAGIC
|
1558 | |
+ fi
|
1559 | |
+ ;;
|
1560 | |
+esac
|
1561 | |
|
1562 | |
-# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
1563 | |
-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
1564 | |
-# ---------------------------------------------------------------------
|
1565 | |
-AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
|
1566 | |
-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
1567 | |
-if test "$cross_compiling" = yes; then :
|
1568 | |
- [$4]
|
1569 | |
-else
|
1570 | |
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
1571 | |
- lt_status=$lt_dlunknown
|
1572 | |
- cat > conftest.$ac_ext <<EOF
|
1573 | |
-[#line __oline__ "configure"
|
1574 | |
-#include "confdefs.h"
|
1575 | |
+AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
|
1576 | |
+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
1577 | |
+enable_win32_dll=yes, enable_win32_dll=no)
|
1578 | |
|
1579 | |
-#if HAVE_DLFCN_H
|
1580 | |
-#include <dlfcn.h>
|
1581 | |
-#endif
|
1582 | |
+AC_ARG_ENABLE([libtool-lock],
|
1583 | |
+ [AC_HELP_STRING([--disable-libtool-lock],
|
1584 | |
+ [avoid locking (might break parallel builds)])])
|
1585 | |
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
1586 | |
|
1587 | |
-#include <stdio.h>
|
1588 | |
+AC_ARG_WITH([pic],
|
1589 | |
+ [AC_HELP_STRING([--with-pic],
|
1590 | |
+ [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
1591 | |
+ [pic_mode="$withval"],
|
1592 | |
+ [pic_mode=default])
|
1593 | |
+test -z "$pic_mode" && pic_mode=default
|
1594 | |
|
1595 | |
-#ifdef RTLD_GLOBAL
|
1596 | |
-# define LT_DLGLOBAL RTLD_GLOBAL
|
1597 | |
-#else
|
1598 | |
-# ifdef DL_GLOBAL
|
1599 | |
-# define LT_DLGLOBAL DL_GLOBAL
|
1600 | |
-# else
|
1601 | |
-# define LT_DLGLOBAL 0
|
1602 | |
-# endif
|
1603 | |
-#endif
|
1604 | |
+# Use C for the default configuration in the libtool script
|
1605 | |
+tagname=
|
1606 | |
+AC_LIBTOOL_LANG_C_CONFIG
|
1607 | |
+_LT_AC_TAGCONFIG
|
1608 | |
+])# AC_LIBTOOL_SETUP
|
1609 | |
|
1610 | |
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
1611 | |
- find out it does not work in some platform. */
|
1612 | |
-#ifndef LT_DLLAZY_OR_NOW
|
1613 | |
-# ifdef RTLD_LAZY
|
1614 | |
-# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
1615 | |
-# else
|
1616 | |
-# ifdef DL_LAZY
|
1617 | |
-# define LT_DLLAZY_OR_NOW DL_LAZY
|
1618 | |
-# else
|
1619 | |
-# ifdef RTLD_NOW
|
1620 | |
-# define LT_DLLAZY_OR_NOW RTLD_NOW
|
1621 | |
-# else
|
1622 | |
-# ifdef DL_NOW
|
1623 | |
-# define LT_DLLAZY_OR_NOW DL_NOW
|
1624 | |
-# else
|
1625 | |
-# define LT_DLLAZY_OR_NOW 0
|
1626 | |
-# endif
|
1627 | |
-# endif
|
1628 | |
-# endif
|
1629 | |
-# endif
|
1630 | |
-#endif
|
1631 | |
|
1632 | |
-#ifdef __cplusplus
|
1633 | |
-extern "C" void exit (int);
|
1634 | |
-#endif
|
1635 | |
+# _LT_AC_SYS_COMPILER
|
1636 | |
+# -------------------
|
1637 | |
+AC_DEFUN([_LT_AC_SYS_COMPILER],
|
1638 | |
+[AC_REQUIRE([AC_PROG_CC])dnl
|
1639 | |
|
1640 | |
-void fnord() { int i=42;}
|
1641 | |
-int main ()
|
1642 | |
-{
|
1643 | |
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
1644 | |
- int status = $lt_dlunknown;
|
1645 | |
-
|
1646 | |
- if (self)
|
1647 | |
- {
|
1648 | |
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
1649 | |
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
1650 | |
- /* dlclose (self); */
|
1651 | |
- }
|
1652 | |
- else
|
1653 | |
- puts (dlerror ());
|
1654 | |
+# If no C compiler was specified, use CC.
|
1655 | |
+LTCC=${LTCC-"$CC"}
|
1656 | |
|
1657 | |
- exit (status);
|
1658 | |
-}]
|
1659 | |
-EOF
|
1660 | |
- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
|
1661 | |
- (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
|
1662 | |
- lt_status=$?
|
1663 | |
- case x$lt_status in
|
1664 | |
- x$lt_dlno_uscore) $1 ;;
|
1665 | |
- x$lt_dlneed_uscore) $2 ;;
|
1666 | |
- x$lt_dlunknown|x*) $3 ;;
|
1667 | |
- esac
|
1668 | |
- else :
|
1669 | |
- # compilation failed
|
1670 | |
- $3
|
1671 | |
- fi
|
1672 | |
-fi
|
1673 | |
-rm -fr conftest*
|
1674 | |
-])# _LT_AC_TRY_DLOPEN_SELF
|
1675 | |
+# If no C compiler flags were specified, use CFLAGS.
|
1676 | |
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
1677 | |
|
1678 | |
+# Allow CC to be a program name with arguments.
|
1679 | |
+compiler=$CC
|
1680 | |
+])# _LT_AC_SYS_COMPILER
|
1681 | |
|
1682 | |
-# AC_LIBTOOL_DLOPEN_SELF
|
1683 | |
-# ----------------------
|
1684 | |
-AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
|
1685 | |
-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
1686 | |
-if test "x$enable_dlopen" != xyes; then
|
1687 | |
- enable_dlopen=unknown
|
1688 | |
- enable_dlopen_self=unknown
|
1689 | |
- enable_dlopen_self_static=unknown
|
1690 | |
-else
|
1691 | |
- lt_cv_dlopen=no
|
1692 | |
- lt_cv_dlopen_libs=
|
1693 | |
|
1694 | |
- case $host_os in
|
1695 | |
- beos*)
|
1696 | |
- lt_cv_dlopen="load_add_on"
|
1697 | |
- lt_cv_dlopen_libs=
|
1698 | |
- lt_cv_dlopen_self=yes
|
1699 | |
- ;;
|
1700 | |
+# _LT_CC_BASENAME(CC)
|
1701 | |
+# -------------------
|
1702 | |
+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
1703 | |
+AC_DEFUN([_LT_CC_BASENAME],
|
1704 | |
+[for cc_temp in $1""; do
|
1705 | |
+ case $cc_temp in
|
1706 | |
+ compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
|
1707 | |
+ distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
|
1708 | |
+ \-*) ;;
|
1709 | |
+ *) break;;
|
1710 | |
+ esac
|
1711 | |
+done
|
1712 | |
+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
1713 | |
+])
|
1714 | |
|
1715 | |
- mingw* | pw32*)
|
1716 | |
- lt_cv_dlopen="LoadLibrary"
|
1717 | |
- lt_cv_dlopen_libs=
|
1718 | |
- ;;
|
1719 | |
|
1720 | |
- cygwin*)
|
1721 | |
- lt_cv_dlopen="dlopen"
|
1722 | |
- lt_cv_dlopen_libs=
|
1723 | |
- ;;
|
1724 | |
+# _LT_COMPILER_BOILERPLATE
|
1725 | |
+# ------------------------
|
1726 | |
+# Check for compiler boilerplate output or warnings with
|
1727 | |
+# the simple compiler test code.
|
1728 | |
+AC_DEFUN([_LT_COMPILER_BOILERPLATE],
|
|
18 |
old_postinstall_cmds='chmod 644 $oldlib'
|
|
19 |
old_postuninstall_cmds=
|
|
20 |
|
|
21 |
@@ -932,8 +932,9 @@
|
|
22 |
# Check for compiler boilerplate output or warnings with
|
|
23 |
# the simple compiler test code.
|
|
24 |
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
|
|
25 |
-[ac_outfile=conftest.$ac_objext
|
|
26 |
-printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
1729 | 27 |
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
1730 | 28 |
+ac_outfile=conftest.$ac_objext
|
1731 | 29 |
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
1732 | |
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
1733 | |
+_lt_compiler_boilerplate=`cat conftest.err`
|
1734 | |
+$rm conftest*
|
1735 | |
+])# _LT_COMPILER_BOILERPLATE
|
1736 | |
|
1737 | |
- darwin*)
|
1738 | |
- # if libdl is installed we need to link against it
|
1739 | |
- AC_CHECK_LIB([dl], [dlopen],
|
1740 | |
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
|
1741 | |
- lt_cv_dlopen="dyld"
|
1742 | |
- lt_cv_dlopen_libs=
|
1743 | |
- lt_cv_dlopen_self=yes
|
1744 | |
- ])
|
1745 | |
- ;;
|
1746 | |
|
1747 | |
- *)
|
1748 | |
- AC_CHECK_FUNC([shl_load],
|
1749 | |
- [lt_cv_dlopen="shl_load"],
|
1750 | |
- [AC_CHECK_LIB([dld], [shl_load],
|
1751 | |
- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
|
1752 | |
- [AC_CHECK_FUNC([dlopen],
|
1753 | |
- [lt_cv_dlopen="dlopen"],
|
1754 | |
- [AC_CHECK_LIB([dl], [dlopen],
|
1755 | |
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
1756 | |
- [AC_CHECK_LIB([svld], [dlopen],
|
1757 | |
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
1758 | |
- [AC_CHECK_LIB([dld], [dld_link],
|
1759 | |
- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
1760 | |
- ])
|
1761 | |
- ])
|
1762 | |
- ])
|
1763 | |
- ])
|
1764 | |
- ])
|
1765 | |
- ;;
|
1766 | |
- esac
|
1767 | |
+# _LT_LINKER_BOILERPLATE
|
1768 | |
+# ----------------------
|
1769 | |
+# Check for linker boilerplate output or warnings with
|
1770 | |
+# the simple link test code.
|
1771 | |
+AC_DEFUN([_LT_LINKER_BOILERPLATE],
|
|
30 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
31 |
_lt_compiler_boilerplate=`cat conftest.err`
|
|
32 |
$rm conftest*
|
|
33 |
@@ -945,8 +946,9 @@
|
|
34 |
# Check for linker boilerplate output or warnings with
|
|
35 |
# the simple link test code.
|
|
36 |
AC_DEFUN([_LT_LINKER_BOILERPLATE],
|
|
37 |
-[ac_outfile=conftest.$ac_objext
|
|
38 |
-printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
1772 | 39 |
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
1773 | 40 |
+ac_outfile=conftest.$ac_objext
|
1774 | 41 |
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
1775 | |
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
1776 | |
+_lt_linker_boilerplate=`cat conftest.err`
|
1777 | |
+$rm conftest*
|
1778 | |
+])# _LT_LINKER_BOILERPLATE
|
1779 | |
|
1780 | |
- if test "x$lt_cv_dlopen" != xno; then
|
1781 | |
- enable_dlopen=yes
|
1782 | |
- else
|
1783 | |
- enable_dlopen=no
|
1784 | |
- fi
|
1785 | |
|
1786 | |
- case $lt_cv_dlopen in
|
1787 | |
- dlopen)
|
1788 | |
- save_CPPFLAGS="$CPPFLAGS"
|
1789 | |
- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
1790 | |
+# _LT_AC_SYS_LIBPATH_AIX
|
1791 | |
+# ----------------------
|
1792 | |
+# Links a minimal program and checks the executable
|
1793 | |
+# for the system default hardcoded library path. In most cases,
|
1794 | |
+# this is /usr/lib:/lib, but when the MPI compilers are used
|
1795 | |
+# the location of the communication and MPI libs are included too.
|
1796 | |
+# If we don't find anything, use the default library path according
|
1797 | |
+# to the aix ld manual.
|
1798 | |
+AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
|
|
42 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
43 |
_lt_linker_boilerplate=`cat conftest.err`
|
|
44 |
$rm conftest*
|
|
45 |
@@ -962,12 +964,20 @@
|
|
46 |
# If we don't find anything, use the default library path according
|
|
47 |
# to the aix ld manual.
|
|
48 |
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
|
|
49 |
-[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
|
|
50 |
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
|
51 |
-}'`
|
1799 | 52 |
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
1800 | 53 |
+AC_LINK_IFELSE(AC_LANG_PROGRAM,[
|
1801 | 54 |
+lt_aix_libpath_sed='
|
|
1806 | 59 |
+ }
|
1807 | 60 |
+ }'
|
1808 | 61 |
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
1809 | |
+# Check for a 64-bit object if we didn't find anything.
|
|
62 |
# Check for a 64-bit object if we didn't find anything.
|
|
63 |
-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; }
|
|
64 |
-}'`; fi],[])
|
1810 | 65 |
+if test -z "$aix_libpath"; then
|
1811 | 66 |
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
1812 | 67 |
+fi],[])
|
1813 | |
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
1814 | |
+])# _LT_AC_SYS_LIBPATH_AIX
|
1815 | |
|
1816 | |
- save_LDFLAGS="$LDFLAGS"
|
1817 | |
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
1818 | |
|
1819 | |
- save_LIBS="$LIBS"
|
1820 | |
- LIBS="$lt_cv_dlopen_libs $LIBS"
|
1821 | |
+# _LT_AC_SHELL_INIT(ARG)
|
1822 | |
+# ----------------------
|
1823 | |
+AC_DEFUN([_LT_AC_SHELL_INIT],
|
1824 | |
+[ifdef([AC_DIVERSION_NOTICE],
|
1825 | |
+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
|
1826 | |
+ [AC_DIVERT_PUSH(NOTICE)])
|
1827 | |
+$1
|
1828 | |
+AC_DIVERT_POP
|
1829 | |
+])# _LT_AC_SHELL_INIT
|
1830 | |
|
1831 | |
- AC_CACHE_CHECK([whether a program can dlopen itself],
|
1832 | |
- lt_cv_dlopen_self, [dnl
|
1833 | |
- _LT_AC_TRY_DLOPEN_SELF(
|
1834 | |
- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
|
1835 | |
- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
|
1836 | |
- ])
|
1837 | |
|
1838 | |
- if test "x$lt_cv_dlopen_self" = xyes; then
|
1839 | |
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
1840 | |
- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
1841 | |
- lt_cv_dlopen_self_static, [dnl
|
1842 | |
- _LT_AC_TRY_DLOPEN_SELF(
|
1843 | |
- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
|
1844 | |
- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
|
1845 | |
- ])
|
1846 | |
- fi
|
1847 | |
+# _LT_AC_PROG_ECHO_BACKSLASH
|
1848 | |
+# --------------------------
|
1849 | |
+# Add some code to the start of the generated configure script which
|
1850 | |
+# will find an echo command which doesn't interpret backslashes.
|
1851 | |
+AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
|
1852 | |
+[_LT_AC_SHELL_INIT([
|
1853 | |
+# Check that we are running under the correct shell.
|
1854 | |
+SHELL=${CONFIG_SHELL-/bin/sh}
|
1855 | |
|
1856 | |
- CPPFLAGS="$save_CPPFLAGS"
|
1857 | |
- LDFLAGS="$save_LDFLAGS"
|
1858 | |
- LIBS="$save_LIBS"
|
1859 | |
- ;;
|
1860 | |
- esac
|
1861 | |
+case X$ECHO in
|
1862 | |
+X*--fallback-echo)
|
1863 | |
+ # Remove one level of quotation (which was required for Make).
|
1864 | |
+ ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
|
1865 | |
+ ;;
|
1866 | |
+esac
|
1867 | |
|
1868 | |
- case $lt_cv_dlopen_self in
|
1869 | |
- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
1870 | |
- *) enable_dlopen_self=unknown ;;
|
1871 | |
- esac
|
1872 | |
+echo=${ECHO-echo}
|
1873 | |
+if test "X[$]1" = X--no-reexec; then
|
1874 | |
+ # Discard the --no-reexec flag, and continue.
|
1875 | |
+ shift
|
1876 | |
+elif test "X[$]1" = X--fallback-echo; then
|
1877 | |
+ # Avoid inline document here, it may be left over
|
1878 | |
+ :
|
1879 | |
+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
|
1880 | |
+ # Yippee, $echo works!
|
1881 | |
+ :
|
1882 | |
+else
|
1883 | |
+ # Restart under the correct shell.
|
1884 | |
+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
1885 | |
+fi
|
1886 | |
|
1887 | |
- case $lt_cv_dlopen_self_static in
|
1888 | |
- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
1889 | |
- *) enable_dlopen_self_static=unknown ;;
|
1890 | |
- esac
|
1891 | |
+if test "X[$]1" = X--fallback-echo; then
|
1892 | |
+ # used as fallback echo
|
1893 | |
+ shift
|
1894 | |
+ cat <<EOF
|
1895 | |
+[$]*
|
1896 | |
+EOF
|
1897 | |
+ exit 0
|
1898 | |
fi
|
1899 | |
-])# AC_LIBTOOL_DLOPEN_SELF
|
1900 | |
|
1901 | |
+# The HP-UX ksh and POSIX shell print the target directory to stdout
|
1902 | |
+# if CDPATH is set.
|
1903 | |
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
1904 | |
|
1905 | |
-# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
|
1906 | |
-# ---------------------------------
|
1907 | |
-# Check to see if options -c and -o are simultaneously supported by compiler
|
1908 | |
-AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
|
1909 | |
-[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
1910 | |
-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
1911 | |
-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
1912 | |
- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
1913 | |
- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
1914 | |
- $rm -r conftest 2>/dev/null
|
1915 | |
- mkdir conftest
|
1916 | |
- cd conftest
|
1917 | |
- mkdir out
|
1918 | |
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
1919 | |
-
|
1920 | |
- lt_compiler_flag="-o out/conftest2.$ac_objext"
|
1921 | |
- # Insert the option either (1) after the last *FLAGS variable, or
|
1922 | |
- # (2) before a word containing "conftest.", or (3) at the end.
|
1923 | |
- # Note that $ac_compile itself does not contain backslashes and begins
|
1924 | |
- # with a dollar sign (not a hyphen), so the echo should work correctly.
|
1925 | |
- lt_compile=`echo "$ac_compile" | $SED \
|
1926 | |
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
1927 | |
- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
1928 | |
- -e 's:$: $lt_compiler_flag:'`
|
1929 | |
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
1930 | |
- (eval "$lt_compile" 2>out/conftest.err)
|
1931 | |
- ac_status=$?
|
1932 | |
- cat out/conftest.err >&AS_MESSAGE_LOG_FD
|
1933 | |
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
1934 | |
- if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
1935 | |
- then
|
1936 | |
- # The compiler can only warn and ignore the option if not recognized
|
1937 | |
- # So say no if there are warnings
|
1938 | |
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
1939 | |
- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
1940 | |
- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
1941 | |
- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
1942 | |
- fi
|
1943 | |
- fi
|
1944 | |
- chmod u+w . 2>&AS_MESSAGE_LOG_FD
|
1945 | |
- $rm conftest*
|
1946 | |
- # SGI C++ compiler will create directory out/ii_files/ for
|
1947 | |
- # template instantiation
|
1948 | |
- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
1949 | |
- $rm out/* && rmdir out
|
1950 | |
- cd ..
|
1951 | |
- rmdir conftest
|
1952 | |
- $rm conftest*
|
1953 | |
-])
|
1954 | |
-])# AC_LIBTOOL_PROG_CC_C_O
|
1955 | |
-
|
1956 | |
-
|
1957 | |
-# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
|
1958 | |
-# -----------------------------------------
|
1959 | |
-# Check to see if we can do hard links to lock some files if needed
|
1960 | |
-AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
|
1961 | |
-[AC_REQUIRE([_LT_AC_LOCK])dnl
|
1962 | |
-
|
1963 | |
-hard_links="nottested"
|
1964 | |
-if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
|
1965 | |
- # do not overwrite the value of need_locks provided by the user
|
1966 | |
- AC_MSG_CHECKING([if we can lock with hard links])
|
1967 | |
- hard_links=yes
|
1968 | |
- $rm conftest*
|
1969 | |
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
1970 | |
- touch conftest.a
|
1971 | |
- ln conftest.a conftest.b 2>&5 || hard_links=no
|
1972 | |
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
1973 | |
- AC_MSG_RESULT([$hard_links])
|
1974 | |
- if test "$hard_links" = no; then
|
1975 | |
- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
|
1976 | |
- need_locks=warn
|
1977 | |
- fi
|
1978 | |
-else
|
1979 | |
- need_locks=no
|
1980 | |
+if test -z "$ECHO"; then
|
1981 | |
+if test "X${echo_test_string+set}" != Xset; then
|
1982 | |
+# find a string as large as possible, as long as the shell can cope with it
|
1983 | |
+ for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
|
1984 | |
+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
1985 | |
+ if (echo_test_string=`eval $cmd`) 2>/dev/null &&
|
1986 | |
+ echo_test_string=`eval $cmd` &&
|
1987 | |
+ (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
|
1988 | |
+ then
|
1989 | |
+ break
|
1990 | |
+ fi
|
1991 | |
+ done
|
1992 | |
fi
|
1993 | |
-])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
|
1994 | |
-
|
1995 | |
|
1996 | |
-# AC_LIBTOOL_OBJDIR
|
1997 | |
-# -----------------
|
1998 | |
-AC_DEFUN([AC_LIBTOOL_OBJDIR],
|
1999 | |
-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
|
2000 | |
-[rm -f .libs 2>/dev/null
|
2001 | |
-mkdir .libs 2>/dev/null
|
2002 | |
-if test -d .libs; then
|
2003 | |
- lt_cv_objdir=.libs
|
2004 | |
+if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
2005 | |
+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
2006 | |
+ test "X$echo_testing_string" = "X$echo_test_string"; then
|
2007 | |
+ :
|
2008 | |
else
|
2009 | |
- # MS-DOS does not allow filenames that begin with a dot.
|
2010 | |
- lt_cv_objdir=_libs
|
2011 | |
-fi
|
2012 | |
-rmdir .libs 2>/dev/null])
|
2013 | |
-objdir=$lt_cv_objdir
|
2014 | |
-])# AC_LIBTOOL_OBJDIR
|
2015 | |
+ # The Solaris, AIX, and Digital Unix default echo programs unquote
|
2016 | |
+ # backslashes. This makes it impossible to quote backslashes using
|
2017 | |
+ # echo "$something" | sed 's/\\/\\\\/g'
|
2018 | |
+ #
|
2019 | |
+ # So, first we look for a working echo in the user's PATH.
|
2020 | |
|
2021 | |
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
2022 | |
+ for dir in $PATH /usr/ucb; do
|
2023 | |
+ IFS="$lt_save_ifs"
|
2024 | |
+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
2025 | |
+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
2026 | |
+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
2027 | |
+ test "X$echo_testing_string" = "X$echo_test_string"; then
|
2028 | |
+ echo="$dir/echo"
|
2029 | |
+ break
|
2030 | |
+ fi
|
2031 | |
+ done
|
2032 | |
+ IFS="$lt_save_ifs"
|
2033 | |
|
2034 | |
-# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
|
2035 | |
-# ----------------------------------------------
|
2036 | |
-# Check hardcoding attributes.
|
2037 | |
-AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
|
2038 | |
-[AC_MSG_CHECKING([how to hardcode library paths into programs])
|
2039 | |
-_LT_AC_TAGVAR(hardcode_action, $1)=
|
2040 | |
-if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
|
2041 | |
- test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
|
2042 | |
- test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
|
2043 | |
+ if test "X$echo" = Xecho; then
|
2044 | |
+ # We didn't find a better echo, so look for alternatives.
|
2045 | |
+ if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
|
2046 | |
+ echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
|
2047 | |
+ test "X$echo_testing_string" = "X$echo_test_string"; then
|
2048 | |
+ # This shell has a builtin print -r that does the trick.
|
2049 | |
+ echo='print -r'
|
2050 | |
+ elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
|
2051 | |
+ test "X$CONFIG_SHELL" != X/bin/ksh; then
|
2052 | |
+ # If we have ksh, try running configure again with it.
|
2053 | |
+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
2054 | |
+ export ORIGINAL_CONFIG_SHELL
|
2055 | |
+ CONFIG_SHELL=/bin/ksh
|
2056 | |
+ export CONFIG_SHELL
|
2057 | |
+ exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
2058 | |
+ else
|
2059 | |
+ # Try using printf.
|
2060 | |
+ echo='printf %s\n'
|
2061 | |
+ if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
2062 | |
+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
2063 | |
+ test "X$echo_testing_string" = "X$echo_test_string"; then
|
2064 | |
+ # Cool, printf works
|
2065 | |
+ :
|
2066 | |
+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
2067 | |
+ test "X$echo_testing_string" = 'X\t' &&
|
2068 | |
+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
2069 | |
+ test "X$echo_testing_string" = "X$echo_test_string"; then
|
2070 | |
+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
2071 | |
+ export CONFIG_SHELL
|
2072 | |
+ SHELL="$CONFIG_SHELL"
|
2073 | |
+ export SHELL
|
2074 | |
+ echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
2075 | |
+ elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
2076 | |
+ test "X$echo_testing_string" = 'X\t' &&
|
2077 | |
+ echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
2078 | |
+ test "X$echo_testing_string" = "X$echo_test_string"; then
|
2079 | |
+ echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
2080 | |
+ else
|
2081 | |
+ # maybe with a smaller string...
|
2082 | |
+ prev=:
|
2083 | |
|
2084 | |
- # We can hardcode non-existant directories.
|
2085 | |
- if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
|
2086 | |
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
2087 | |
- # have to relink, otherwise we might link with an installed library
|
2088 | |
- # when we should be linking with a yet-to-be-installed one
|
2089 | |
- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
|
2090 | |
- test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
|
2091 | |
- # Linking always hardcodes the temporary library directory.
|
2092 | |
- _LT_AC_TAGVAR(hardcode_action, $1)=relink
|
2093 | |
- else
|
2094 | |
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
2095 | |
- _LT_AC_TAGVAR(hardcode_action, $1)=immediate
|
2096 | |
+ for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
|
2097 | |
+ if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
|
2098 | |
+ then
|
2099 | |
+ break
|
2100 | |
+ fi
|
2101 | |
+ prev="$cmd"
|
2102 | |
+ done
|
2103 | |
+
|
2104 | |
+ if test "$prev" != 'sed 50q "[$]0"'; then
|
2105 | |
+ echo_test_string=`eval $prev`
|
2106 | |
+ export echo_test_string
|
2107 | |
+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
|
2108 | |
+ else
|
2109 | |
+ # Oops. We lost completely, so just stick with echo.
|
2110 | |
+ echo=echo
|
2111 | |
+ fi
|
2112 | |
+ fi
|
2113 | |
+ fi
|
2114 | |
fi
|
2115 | |
-else
|
2116 | |
- # We cannot hardcode anything, or else we can only hardcode existing
|
2117 | |
- # directories.
|
2118 | |
- _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
|
2119 | |
fi
|
2120 | |
-AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
|
2121 | |
+fi
|
2122 | |
|
2123 | |
-if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
|
2124 | |
- # Fast installation is not supported
|
2125 | |
- enable_fast_install=no
|
2126 | |
-elif test "$shlibpath_overrides_runpath" = yes ||
|
2127 | |
- test "$enable_shared" = no; then
|
2128 | |
- # Fast installation is not necessary
|
2129 | |
- enable_fast_install=needless
|
2130 | |
+# Copy echo and quote the copy suitably for passing to libtool from
|
2131 | |
+# the Makefile, instead of quoting the original, which is used later.
|
2132 | |
+ECHO=$echo
|
2133 | |
+if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
|
2134 | |
+ ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
|
2135 | |
fi
|
2136 | |
-])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
|
2137 | |
|
2138 | |
+AC_SUBST(ECHO)
|
2139 | |
+])])# _LT_AC_PROG_ECHO_BACKSLASH
|
2140 | |
|
2141 | |
-# AC_LIBTOOL_SYS_LIB_STRIP
|
2142 | |
-# ------------------------
|
2143 | |
-AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
|
2144 | |
-[striplib=
|
2145 | |
-old_striplib=
|
2146 | |
-AC_MSG_CHECKING([whether stripping libraries is possible])
|
2147 | |
-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
2148 | |
- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
2149 | |
- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
2150 | |
- AC_MSG_RESULT([yes])
|
2151 | |
-else
|
2152 | |
-# FIXME - insert some real tests, host_os isn't really good enough
|
2153 | |
- case $host_os in
|
2154 | |
- darwin*)
|
2155 | |
- if test -n "$STRIP" ; then
|
2156 | |
- striplib="$STRIP -x"
|
2157 | |
- old_striplib="$STRIP -S"
|
2158 | |
- AC_MSG_RESULT([yes])
|
2159 | |
- else
|
2160 | |
- AC_MSG_RESULT([no])
|
2161 | |
-fi
|
2162 | |
- ;;
|
2163 | |
- *)
|
2164 | |
- AC_MSG_RESULT([no])
|
2165 | |
- ;;
|
2166 | |
- esac
|
2167 | |
-fi
|
2168 | |
-])# AC_LIBTOOL_SYS_LIB_STRIP
|
2169 | |
|
2170 | |
+# _LT_AC_LOCK
|
2171 | |
+# -----------
|
2172 | |
+AC_DEFUN([_LT_AC_LOCK],
|
2173 | |
+[AC_ARG_ENABLE([libtool-lock],
|
2174 | |
+ [AC_HELP_STRING([--disable-libtool-lock],
|
2175 | |
+ [avoid locking (might break parallel builds)])])
|
2176 | |
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
2177 | |
|
2178 | |
-# AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
2179 | |
-# -----------------------------
|
2180 | |
-# PORTME Fill in your ld.so characteristics
|
2181 | |
-AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
|
2182 | |
-[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
2183 | |
-AC_MSG_CHECKING([dynamic linker characteristics])
|
2184 | |
-library_names_spec=
|
2185 | |
-libname_spec='lib$name'
|
2186 | |
-soname_spec=
|
2187 | |
-shrext_cmds=".so"
|
2188 | |
-postinstall_cmds=
|
2189 | |
-postuninstall_cmds=
|
2190 | |
-finish_cmds=
|
2191 | |
-finish_eval=
|
2192 | |
-shlibpath_var=
|
2193 | |
-shlibpath_overrides_runpath=unknown
|
2194 | |
-version_type=none
|
2195 | |
-dynamic_linker="$host_os ld.so"
|
2196 | |
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
2197 | |
-m4_if($1,[],[
|
2198 | |
-if test "$GCC" = yes; then
|
2199 | |
- case $host_os in
|
2200 | |
- darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
2201 | |
- *) lt_awk_arg="/^libraries:/" ;;
|
2202 | |
- esac
|
2203 | |
- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
2204 | |
- if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
|
2205 | |
- # if the path contains ";" then we assume it to be the separator
|
2206 | |
- # otherwise default to the standard path separator (i.e. ":") - it is
|
2207 | |
- # assumed that no part of a normal pathname contains ";" but that should
|
2208 | |
- # okay in the real world where ";" in dirpaths is itself problematic.
|
2209 | |
- lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
|
2210 | |
- else
|
2211 | |
- lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
2212 | |
+# Some flags need to be propagated to the compiler or linker for good
|
2213 | |
+# libtool support.
|
2214 | |
+case $host in
|
2215 | |
+ia64-*-hpux*)
|
2216 | |
+ # Find out which ABI we are using.
|
2217 | |
+ echo 'int i;' > conftest.$ac_ext
|
2218 | |
+ if AC_TRY_EVAL(ac_compile); then
|
2219 | |
+ case `/usr/bin/file conftest.$ac_objext` in
|
2220 | |
+ *ELF-32*)
|
2221 | |
+ HPUX_IA64_MODE="32"
|
2222 | |
+ ;;
|
2223 | |
+ *ELF-64*)
|
2224 | |
+ HPUX_IA64_MODE="64"
|
2225 | |
+ ;;
|
2226 | |
+ esac
|
2227 | |
fi
|
2228 | |
- # Ok, now we have the path, separated by spaces, we can step through it
|
2229 | |
- # and add multilib dir if necessary.
|
2230 | |
- lt_tmp_lt_search_path_spec=
|
2231 | |
- lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
2232 | |
- for lt_sys_path in $lt_search_path_spec; do
|
2233 | |
- if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
2234 | |
- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
2235 | |
- else
|
2236 | |
- test -d "$lt_sys_path" && \
|
2237 | |
- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
2238 | |
- fi
|
2239 | |
- done
|
2240 | |
- lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
|
2241 | |
-BEGIN {RS=" "; FS="/|\n";} {
|
2242 | |
- lt_foo="";
|
2243 | |
- lt_count=0;
|
2244 | |
- for (lt_i = NF; lt_i > 0; lt_i--) {
|
2245 | |
- if ($lt_i != "" && $lt_i != ".") {
|
2246 | |
- if ($lt_i == "..") {
|
2247 | |
- lt_count++;
|
2248 | |
- } else {
|
2249 | |
- if (lt_count == 0) {
|
2250 | |
- lt_foo="/" $lt_i lt_foo;
|
2251 | |
- } else {
|
2252 | |
- lt_count--;
|
2253 | |
- }
|
2254 | |
- }
|
2255 | |
- }
|
2256 | |
- }
|
2257 | |
- if (lt_foo != "") { lt_freq[[lt_foo]]++; }
|
2258 | |
- if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
|
2259 | |
-}'`
|
2260 | |
- sys_lib_search_path_spec=`echo $lt_search_path_spec`
|
2261 | |
-else
|
2262 | |
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
2263 | |
-fi])
|
2264 | |
-need_lib_prefix=unknown
|
2265 | |
-hardcode_into_libs=no
|
2266 | |
-
|
2267 | |
-# when you set need_version to no, make sure it does not cause -set_version
|
2268 | |
-# flags to be left without arguments
|
2269 | |
-need_version=unknown
|
2270 | |
-
|
2271 | |
-case $host_os in
|
2272 | |
-aix3*)
|
2273 | |
- version_type=linux
|
2274 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
2275 | |
- shlibpath_var=LIBPATH
|
2276 | |
-
|
2277 | |
- # AIX 3 has no versioning support, so we append a major version to the name.
|
2278 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2279 | |
+ rm -rf conftest*
|
|
68 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
69 |
])# _LT_AC_SYS_LIBPATH_AIX
|
|
70 |
|
|
71 |
@@ -1198,13 +1208,17 @@
|
|
72 |
rm -rf conftest*
|
2280 | 73 |
;;
|
2281 | |
-
|
2282 | |
-aix4* | aix5*)
|
2283 | |
- version_type=linux
|
2284 | |
- need_lib_prefix=no
|
2285 | |
- need_version=no
|
2286 | |
- hardcode_into_libs=yes
|
2287 | |
- if test "$host_cpu" = ia64; then
|
2288 | |
- # AIX 5 supports IA64
|
2289 | |
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
2290 | |
- shlibpath_var=LD_LIBRARY_PATH
|
2291 | |
- else
|
2292 | |
- # With GCC up to 2.95.x, collect2 would create an import file
|
2293 | |
- # for dependence libraries. The import file would start with
|
2294 | |
- # the line `#! .'. This would cause the generated library to
|
2295 | |
- # depend on `.', always an invalid library. This was fixed in
|
2296 | |
- # development snapshots of GCC prior to 3.0.
|
2297 | |
- case $host_os in
|
2298 | |
- aix4 | aix4.[[01]] | aix4.[[01]].*)
|
2299 | |
- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
2300 | |
- echo ' yes '
|
2301 | |
- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
2302 | |
- :
|
2303 | |
- else
|
2304 | |
- can_build_shared=no
|
2305 | |
- fi
|
2306 | |
+*-*-irix6*)
|
2307 | |
+ # Find out which ABI we are using.
|
2308 | |
+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
|
2309 | |
+ if AC_TRY_EVAL(ac_compile); then
|
2310 | |
+ if test "$lt_cv_prog_gnu_ld" = yes; then
|
2311 | |
+ case `/usr/bin/file conftest.$ac_objext` in
|
2312 | |
+ *32-bit*)
|
2313 | |
+ LD="${LD-ld} -melf32bsmip"
|
2314 | |
+ ;;
|
2315 | |
+ *N32*)
|
2316 | |
+ LD="${LD-ld} -melf32bmipn32"
|
2317 | |
+ ;;
|
2318 | |
+ *64-bit*)
|
2319 | |
+ LD="${LD-ld} -melf64bmip"
|
2320 | |
;;
|
2321 | |
esac
|
2322 | |
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
2323 | |
- # soname into executable. Probably we can add versioning support to
|
2324 | |
- # collect2, so additional links can be useful in future.
|
2325 | |
- if test "$aix_use_runtimelinking" = yes; then
|
2326 | |
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
2327 | |
- # instead of lib<name>.a to let people know that these are not
|
2328 | |
- # typical AIX shared libraries.
|
2329 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2330 | |
- else
|
2331 | |
- # We preserve .a as extension for shared libraries through AIX4.2
|
2332 | |
- # and later when we are not doing run time linking.
|
2333 | |
- library_names_spec='${libname}${release}.a $libname.a'
|
2334 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2335 | |
- fi
|
2336 | |
- shlibpath_var=LIBPATH
|
2337 | |
+ else
|
2338 | |
+ case `/usr/bin/file conftest.$ac_objext` in
|
2339 | |
+ *32-bit*)
|
2340 | |
+ LD="${LD-ld} -32"
|
2341 | |
+ ;;
|
2342 | |
+ *N32*)
|
2343 | |
+ LD="${LD-ld} -n32"
|
2344 | |
+ ;;
|
2345 | |
+ *64-bit*)
|
2346 | |
+ LD="${LD-ld} -64"
|
2347 | |
+ ;;
|
2348 | |
+ esac
|
2349 | |
+ fi
|
2350 | |
fi
|
2351 | |
+ rm -rf conftest*
|
2352 | |
;;
|
2353 | |
|
2354 | |
-amigaos*)
|
2355 | |
- library_names_spec='$libname.ixlibrary $libname.a'
|
2356 | |
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
2357 | |
- 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'
|
|
74 |
|
|
75 |
-x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
|
2358 | 76 |
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
2359 | 77 |
+s390*-*linux*|sparc*-*linux*)
|
2360 | |
+ # Find out which ABI we are using.
|
2361 | |
+ echo 'int i;' > conftest.$ac_ext
|
2362 | |
+ if AC_TRY_EVAL(ac_compile); then
|
2363 | |
+ case `/usr/bin/file conftest.o` in
|
2364 | |
+ *32-bit*)
|
2365 | |
+ case $host in
|
|
78 |
# Find out which ABI we are using.
|
|
79 |
echo 'int i;' > conftest.$ac_ext
|
|
80 |
if AC_TRY_EVAL(ac_compile); then
|
|
81 |
case `/usr/bin/file conftest.o` in
|
|
82 |
*32-bit*)
|
|
83 |
case $host in
|
2366 | 84 |
+ x86_64-*kfreebsd*-gnu)
|
2367 | 85 |
+ LD="${LD-ld} -m elf_i386_fbsd"
|
2368 | 86 |
+ ;;
|
2369 | |
+ x86_64-*linux*)
|
2370 | |
+ LD="${LD-ld} -m elf_i386"
|
2371 | |
+ ;;
|
2372 | |
+ ppc64-*linux*|powerpc64-*linux*)
|
2373 | |
+ LD="${LD-ld} -m elf32ppclinux"
|
2374 | |
+ ;;
|
2375 | |
+ s390x-*linux*)
|
2376 | |
+ LD="${LD-ld} -m elf_s390"
|
2377 | |
+ ;;
|
2378 | |
+ sparc64-*linux*)
|
2379 | |
+ LD="${LD-ld} -m elf32_sparc"
|
2380 | |
+ ;;
|
2381 | |
+ esac
|
2382 | |
+ ;;
|
2383 | |
+ *64-bit*)
|
2384 | |
+ case $host in
|
|
87 |
x86_64-*linux*)
|
|
88 |
LD="${LD-ld} -m elf_i386"
|
|
89 |
;;
|
|
90 |
@@ -1221,6 +1235,9 @@
|
|
91 |
;;
|
|
92 |
*64-bit*)
|
|
93 |
case $host in
|
2385 | 94 |
+ x86_64-*kfreebsd*-gnu)
|
2386 | 95 |
+ LD="${LD-ld} -m elf_x86_64_fbsd"
|
2387 | 96 |
+ ;;
|
2388 | |
+ x86_64-*linux*)
|
2389 | |
+ LD="${LD-ld} -m elf_x86_64"
|
2390 | |
+ ;;
|
2391 | |
+ ppc*-*linux*|powerpc*-*linux*)
|
2392 | |
+ LD="${LD-ld} -m elf64ppc"
|
2393 | |
+ ;;
|
2394 | |
+ s390*-*linux*)
|
2395 | |
+ LD="${LD-ld} -m elf64_s390"
|
2396 | |
+ ;;
|
2397 | |
+ sparc*-*linux*)
|
2398 | |
+ LD="${LD-ld} -m elf64_sparc"
|
2399 | |
+ ;;
|
2400 | |
+ esac
|
2401 | |
+ ;;
|
2402 | |
+ esac
|
2403 | |
+ fi
|
2404 | |
+ rm -rf conftest*
|
2405 | |
;;
|
2406 | |
|
2407 | |
-beos*)
|
2408 | |
- library_names_spec='${libname}${shared_ext}'
|
2409 | |
- dynamic_linker="$host_os ld.so"
|
2410 | |
- shlibpath_var=LIBRARY_PATH
|
2411 | |
+*-*-sco3.2v5*)
|
2412 | |
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
2413 | |
+ SAVE_CFLAGS="$CFLAGS"
|
2414 | |
+ CFLAGS="$CFLAGS -belf"
|
2415 | |
+ AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
2416 | |
+ [AC_LANG_PUSH(C)
|
2417 | |
+ AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
2418 | |
+ AC_LANG_POP])
|
2419 | |
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
2420 | |
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
2421 | |
+ CFLAGS="$SAVE_CFLAGS"
|
2422 | |
+ fi
|
2423 | |
;;
|
2424 | |
-
|
2425 | |
-bsdi[[45]]*)
|
2426 | |
- version_type=linux
|
2427 | |
- need_version=no
|
2428 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2429 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2430 | |
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
2431 | |
- shlibpath_var=LD_LIBRARY_PATH
|
2432 | |
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
2433 | |
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
2434 | |
- # the default ld.so.conf also contains /usr/contrib/lib and
|
2435 | |
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
2436 | |
- # libtool to hard-code these into programs
|
2437 | |
+sparc*-*solaris*)
|
2438 | |
+ # Find out which ABI we are using.
|
2439 | |
+ echo 'int i;' > conftest.$ac_ext
|
2440 | |
+ if AC_TRY_EVAL(ac_compile); then
|
2441 | |
+ case `/usr/bin/file conftest.o` in
|
2442 | |
+ *64-bit*)
|
2443 | |
+ case $lt_cv_prog_gnu_ld in
|
2444 | |
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
2445 | |
+ *) LD="${LD-ld} -64" ;;
|
2446 | |
+ esac
|
2447 | |
+ ;;
|
2448 | |
+ esac
|
2449 | |
+ fi
|
2450 | |
+ rm -rf conftest*
|
2451 | |
;;
|
2452 | |
|
2453 | |
-cygwin* | mingw* | pw32*)
|
2454 | |
- version_type=windows
|
2455 | |
- shrext_cmds=".dll"
|
2456 | |
- need_version=no
|
2457 | |
- need_lib_prefix=no
|
2458 | |
+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
2459 | |
+[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
|
2460 | |
+ AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
2461 | |
+ AC_CHECK_TOOL(AS, as, false)
|
2462 | |
+ AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
2463 | |
+ ;;
|
2464 | |
+ ])
|
2465 | |
+esac
|
2466 | |
|
2467 | |
- case $GCC,$host_os in
|
2468 | |
- yes,cygwin* | yes,mingw* | yes,pw32*)
|
2469 | |
- library_names_spec='$libname.dll.a'
|
2470 | |
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
2471 | |
- postinstall_cmds='base_file=`basename \${file}`~
|
2472 | |
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
2473 | |
- dldir=$destdir/`dirname \$dlpath`~
|
2474 | |
- test -d \$dldir || mkdir -p \$dldir~
|
2475 | |
- $install_prog $dir/$dlname \$dldir/$dlname~
|
2476 | |
- chmod a+x \$dldir/$dlname'
|
2477 | |
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
2478 | |
- dlpath=$dir/\$dldll~
|
2479 | |
- $rm \$dlpath'
|
2480 | |
- shlibpath_overrides_runpath=yes
|
2481 | |
+need_locks="$enable_libtool_lock"
|
2482 | |
|
2483 | |
- case $host_os in
|
2484 | |
- cygwin*)
|
2485 | |
- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
2486 | |
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
2487 | |
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
2488 | |
- ;;
|
2489 | |
- mingw*)
|
2490 | |
- # MinGW DLLs use traditional 'lib' prefix
|
2491 | |
- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
2492 | |
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
2493 | |
- if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
|
2494 | |
- # It is most probably a Windows format PATH printed by
|
2495 | |
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
2496 | |
- # path with ; separators, and with drive letters. We can handle the
|
2497 | |
- # drive letters (cygwin fileutils understands them), so leave them,
|
2498 | |
- # especially as we might pass files found there to a mingw objdump,
|
2499 | |
- # which wouldn't understand a cygwinified path. Ahh.
|
2500 | |
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
2501 | |
- else
|
2502 | |
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
2503 | |
- fi
|
2504 | |
- ;;
|
2505 | |
- pw32*)
|
2506 | |
- # pw32 DLLs use 'pw' prefix rather than 'lib'
|
2507 | |
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
2508 | |
- ;;
|
2509 | |
- esac
|
2510 | |
- ;;
|
2511 | |
+])# _LT_AC_LOCK
|
2512 | |
|
2513 | |
- *)
|
2514 | |
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
2515 | |
- ;;
|
2516 | |
- esac
|
2517 | |
- dynamic_linker='Win32 ld.exe'
|
2518 | |
- # FIXME: first we should search . and the directory the executable is in
|
2519 | |
- shlibpath_var=PATH
|
2520 | |
- ;;
|
2521 | |
|
2522 | |
-darwin* | rhapsody*)
|
2523 | |
- dynamic_linker="$host_os dyld"
|
2524 | |
- version_type=darwin
|
2525 | |
- need_lib_prefix=no
|
2526 | |
- need_version=no
|
2527 | |
- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
2528 | |
- soname_spec='${libname}${release}${major}$shared_ext'
|
2529 | |
- shlibpath_overrides_runpath=yes
|
2530 | |
- shlibpath_var=DYLD_LIBRARY_PATH
|
2531 | |
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
2532 | |
- m4_if([$1], [],[
|
2533 | |
- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
|
2534 | |
- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
2535 | |
- ;;
|
2536 | |
+# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
2537 | |
+# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
|
2538 | |
+# ----------------------------------------------------------------
|
2539 | |
+# Check whether the given compiler option works
|
2540 | |
+AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
|
2541 | |
+[AC_REQUIRE([LT_AC_PROG_SED])
|
2542 | |
+AC_CACHE_CHECK([$1], [$2],
|
2543 | |
+ [$2=no
|
2544 | |
+ ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
|
97 |
x86_64-*linux*)
|
|
98 |
LD="${LD-ld} -m elf_x86_64"
|
|
99 |
;;
|
|
100 |
@@ -1292,7 +1309,7 @@
|
|
101 |
AC_CACHE_CHECK([$1], [$2],
|
|
102 |
[$2=no
|
|
103 |
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
|
104 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
2545 | 105 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
2546 | |
+ lt_compiler_flag="$3"
|
2547 | |
+ # Insert the option either (1) after the last *FLAGS variable, or
|
2548 | |
+ # (2) before a word containing "conftest.", or (3) at the end.
|
2549 | |
+ # Note that $ac_compile itself does not contain backslashes and begins
|
2550 | |
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
|
2551 | |
+ # The option is referenced via a variable to avoid confusing sed.
|
2552 | |
+ lt_compile=`echo "$ac_compile" | $SED \
|
2553 | |
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
2554 | |
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
2555 | |
+ -e 's:$: $lt_compiler_flag:'`
|
2556 | |
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
2557 | |
+ (eval "$lt_compile" 2>conftest.err)
|
2558 | |
+ ac_status=$?
|
2559 | |
+ cat conftest.err >&AS_MESSAGE_LOG_FD
|
2560 | |
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
2561 | |
+ if (exit $ac_status) && test -s "$ac_outfile"; then
|
2562 | |
+ # The compiler can only warn and ignore the option if not recognized
|
2563 | |
+ # So say no if there are warnings other than the usual output.
|
2564 | |
+ $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
2565 | |
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
2566 | |
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
2567 | |
+ $2=yes
|
2568 | |
+ fi
|
2569 | |
+ fi
|
2570 | |
+ $rm conftest*
|
2571 | |
+])
|
2572 | |
|
2573 | |
-dgux*)
|
2574 | |
- version_type=linux
|
2575 | |
- need_lib_prefix=no
|
2576 | |
- need_version=no
|
2577 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
2578 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2579 | |
- shlibpath_var=LD_LIBRARY_PATH
|
2580 | |
- ;;
|
2581 | |
+if test x"[$]$2" = xyes; then
|
2582 | |
+ ifelse([$5], , :, [$5])
|
2583 | |
+else
|
2584 | |
+ ifelse([$6], , :, [$6])
|
2585 | |
+fi
|
2586 | |
+])# AC_LIBTOOL_COMPILER_OPTION
|
2587 | |
|
2588 | |
-freebsd1*)
|
2589 | |
- dynamic_linker=no
|
2590 | |
- ;;
|
2591 | |
|
2592 | |
-freebsd* | dragonfly*)
|
2593 | |
- # DragonFly does not have aout. When/if they implement a new
|
2594 | |
- # versioning mechanism, adjust this.
|
2595 | |
- if test -x /usr/bin/objformat; then
|
2596 | |
- objformat=`/usr/bin/objformat`
|
2597 | |
- else
|
2598 | |
- case $host_os in
|
2599 | |
- freebsd[[123]]*) objformat=aout ;;
|
2600 | |
- *) objformat=elf ;;
|
2601 | |
- esac
|
2602 | |
- fi
|
2603 | |
- version_type=freebsd-$objformat
|
2604 | |
- case $version_type in
|
2605 | |
- freebsd-elf*)
|
2606 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
2607 | |
- need_version=no
|
2608 | |
- need_lib_prefix=no
|
2609 | |
- ;;
|
2610 | |
- freebsd-*)
|
2611 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
2612 | |
- need_version=yes
|
2613 | |
- ;;
|
2614 | |
- esac
|
2615 | |
- shlibpath_var=LD_LIBRARY_PATH
|
2616 | |
- case $host_os in
|
2617 | |
- freebsd2*)
|
2618 | |
- shlibpath_overrides_runpath=yes
|
2619 | |
- ;;
|
2620 | |
- freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
2621 | |
- shlibpath_overrides_runpath=yes
|
2622 | |
- hardcode_into_libs=yes
|
2623 | |
+# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
2624 | |
+# [ACTION-SUCCESS], [ACTION-FAILURE])
|
2625 | |
+# ------------------------------------------------------------
|
2626 | |
+# Check whether the given compiler option works
|
2627 | |
+AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
|
|
106 |
lt_compiler_flag="$3"
|
|
107 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
108 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
109 |
@@ -1333,11 +1350,12 @@
|
|
110 |
# ------------------------------------------------------------
|
|
111 |
# Check whether the given compiler option works
|
|
112 |
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
|
|
113 |
-[AC_CACHE_CHECK([$1], [$2],
|
2628 | 114 |
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
2629 | 115 |
+AC_CACHE_CHECK([$1], [$2],
|
2630 | |
+ [$2=no
|
2631 | |
+ save_LDFLAGS="$LDFLAGS"
|
2632 | |
+ LDFLAGS="$LDFLAGS $3"
|
|
116 |
[$2=no
|
|
117 |
save_LDFLAGS="$LDFLAGS"
|
|
118 |
LDFLAGS="$LDFLAGS $3"
|
|
119 |
- printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
2633 | 120 |
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
2634 | |
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
2635 | |
+ # The linker can only warn and ignore the option if not recognized
|
2636 | |
+ # So say no if there are warnings
|
2637 | |
+ if test -s conftest.err; then
|
2638 | |
+ # Append any errors to the config.log.
|
2639 | |
+ cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
2640 | |
+ $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
2641 | |
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
2642 | |
+ if diff conftest.exp conftest.er2 >/dev/null; then
|
2643 | |
+ $2=yes
|
2644 | |
+ fi
|
2645 | |
+ else
|
2646 | |
+ $2=yes
|
2647 | |
+ fi
|
2648 | |
+ fi
|
2649 | |
+ $rm conftest*
|
2650 | |
+ LDFLAGS="$save_LDFLAGS"
|
2651 | |
+])
|
2652 | |
+
|
2653 | |
+if test x"[$]$2" = xyes; then
|
2654 | |
+ ifelse([$4], , :, [$4])
|
2655 | |
+else
|
2656 | |
+ ifelse([$5], , :, [$5])
|
2657 | |
+fi
|
2658 | |
+])# AC_LIBTOOL_LINKER_OPTION
|
2659 | |
+
|
2660 | |
+
|
2661 | |
+# AC_LIBTOOL_SYS_MAX_CMD_LEN
|
2662 | |
+# --------------------------
|
2663 | |
+AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
|
2664 | |
+[# find the maximum length of command line arguments
|
2665 | |
+AC_MSG_CHECKING([the maximum length of command line arguments])
|
2666 | |
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
2667 | |
+ i=0
|
2668 | |
+ teststring="ABCD"
|
2669 | |
+
|
2670 | |
+ case $build_os in
|
2671 | |
+ msdosdjgpp*)
|
2672 | |
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
|
2673 | |
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
|
2674 | |
+ # during glob expansion). Even if it were fixed, the result of this
|
2675 | |
+ # check would be larger than it should be.
|
2676 | |
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
2677 | |
;;
|
2678 | |
- freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
|
2679 | |
- freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
|
2680 | |
- shlibpath_overrides_runpath=no
|
2681 | |
- hardcode_into_libs=yes
|
2682 | |
+
|
2683 | |
+ gnu*)
|
2684 | |
+ # Under GNU Hurd, this test is not required because there is
|
2685 | |
+ # no limit to the length of command line arguments.
|
2686 | |
+ # Libtool will interpret -1 as no limit whatsoever
|
2687 | |
+ lt_cv_sys_max_cmd_len=-1;
|
2688 | |
;;
|
2689 | |
- *) # from 4.6 on, and DragonFly
|
2690 | |
- shlibpath_overrides_runpath=yes
|
2691 | |
- hardcode_into_libs=yes
|
2692 | |
+
|
2693 | |
+ cygwin* | mingw*)
|
2694 | |
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
|
2695 | |
+ # about 5 minutes as the teststring grows exponentially.
|
2696 | |
+ # Worse, since 9x/ME are not pre-emptively multitasking,
|
2697 | |
+ # you end up with a "frozen" computer, even though with patience
|
2698 | |
+ # the test eventually succeeds (with a max line length of 256k).
|
2699 | |
+ # Instead, let's just punt: use the minimum linelength reported by
|
2700 | |
+ # all of the supported platforms: 8192 (on NT/2K/XP).
|
2701 | |
+ lt_cv_sys_max_cmd_len=8192;
|
2702 | |
;;
|
2703 | |
- esac
|
2704 | |
- ;;
|
2705 | |
|
2706 | |
-gnu*)
|
2707 | |
- version_type=linux
|
2708 | |
- need_lib_prefix=no
|
2709 | |
- need_version=no
|
2710 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
2711 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2712 | |
- shlibpath_var=LD_LIBRARY_PATH
|
2713 | |
- hardcode_into_libs=yes
|
2714 | |
- ;;
|
2715 | |
+ amigaos*)
|
2716 | |
+ # On AmigaOS with pdksh, this test takes hours, literally.
|
2717 | |
+ # So we just punt and use a minimum line length of 8192.
|
2718 | |
+ lt_cv_sys_max_cmd_len=8192;
|
2719 | |
+ ;;
|
2720 | |
|
2721 | |
-hpux9* | hpux10* | hpux11*)
|
2722 | |
- # Give a soname corresponding to the major version so that dld.sl refuses to
|
2723 | |
- # link against other versions.
|
2724 | |
- version_type=sunos
|
2725 | |
- need_lib_prefix=no
|
2726 | |
- need_version=no
|
2727 | |
- case $host_cpu in
|
2728 | |
- ia64*)
|
2729 | |
- shrext_cmds='.so'
|
2730 | |
- hardcode_into_libs=yes
|
2731 | |
- dynamic_linker="$host_os dld.so"
|
2732 | |
- shlibpath_var=LD_LIBRARY_PATH
|
2733 | |
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
2734 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2735 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2736 | |
- if test "X$HPUX_IA64_MODE" = X32; then
|
2737 | |
- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
2738 | |
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
2739 | |
+ # This has been around since 386BSD, at least. Likely further.
|
2740 | |
+ if test -x /sbin/sysctl; then
|
2741 | |
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
2742 | |
+ elif test -x /usr/sbin/sysctl; then
|
2743 | |
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
2744 | |
else
|
2745 | |
- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
2746 | |
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
|
121 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
122 |
# The linker can only warn and ignore the option if not recognized
|
|
123 |
# So say no if there are warnings
|
|
124 |
@@ -1451,24 +1469,27 @@
|
2747 | 125 |
fi
|
2748 | |
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
2749 | |
- ;;
|
2750 | |
- hppa*64*)
|
2751 | |
- shrext_cmds='.sl'
|
2752 | |
- hardcode_into_libs=yes
|
2753 | |
- dynamic_linker="$host_os dld.sl"
|
2754 | |
- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
2755 | |
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
2756 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2757 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2758 | |
- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
2759 | |
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
2760 | |
- ;;
|
2761 | |
- *)
|
2762 | |
- shrext_cmds='.sl'
|
2763 | |
- dynamic_linker="$host_os dld.sl"
|
2764 | |
- shlibpath_var=SHLIB_PATH
|
2765 | |
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
2766 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2767 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2768 | |
+ # And add a safety zone
|
2769 | |
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
2770 | |
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
2771 | |
;;
|
2772 | |
- esac
|
2773 | |
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
2774 | |
- postinstall_cmds='chmod 555 $lib'
|
2775 | |
- ;;
|
2776 | |
|
2777 | |
-interix[[3-9]]*)
|
2778 | |
- version_type=linux
|
2779 | |
- need_lib_prefix=no
|
2780 | |
- need_version=no
|
2781 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
2782 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2783 | |
- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
2784 | |
- shlibpath_var=LD_LIBRARY_PATH
|
2785 | |
- shlibpath_overrides_runpath=no
|
2786 | |
- hardcode_into_libs=yes
|
2787 | |
- ;;
|
2788 | |
+ interix*)
|
2789 | |
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
2790 | |
+ lt_cv_sys_max_cmd_len=196608
|
2791 | |
+ ;;
|
2792 | |
|
2793 | |
-irix5* | irix6* | nonstopux*)
|
2794 | |
- case $host_os in
|
2795 | |
- nonstopux*) version_type=nonstopux ;;
|
2796 | |
- *)
|
2797 | |
- if test "$lt_cv_prog_gnu_ld" = yes; then
|
2798 | |
- version_type=linux
|
2799 | |
- else
|
2800 | |
- version_type=irix
|
2801 | |
- fi ;;
|
2802 | |
- esac
|
2803 | |
- need_lib_prefix=no
|
2804 | |
- need_version=no
|
2805 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2806 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
2807 | |
- case $host_os in
|
2808 | |
- irix5* | nonstopux*)
|
2809 | |
- libsuff= shlibsuff=
|
2810 | |
+ osf*)
|
2811 | |
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
2812 | |
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
2813 | |
+ # nice to cause kernel panics so lets avoid the loop below.
|
2814 | |
+ # First set a reasonable default.
|
2815 | |
+ lt_cv_sys_max_cmd_len=16384
|
2816 | |
+ #
|
2817 | |
+ if test -x /sbin/sysconfig; then
|
2818 | |
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
2819 | |
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
2820 | |
+ esac
|
2821 | |
+ fi
|
2822 | |
+ ;;
|
2823 | |
+ sco3.2v5*)
|
2824 | |
+ lt_cv_sys_max_cmd_len=102400
|
2825 | |
+ ;;
|
2826 | |
+ sysv5* | sco5v6* | sysv4.2uw2*)
|
2827 | |
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
2828 | |
+ if test -n "$kargmax"; then
|
2829 | |
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
|
2830 | |
+ else
|
2831 | |
+ lt_cv_sys_max_cmd_len=32768
|
2832 | |
+ fi
|
2833 | 126 |
;;
|
2834 | 127 |
*)
|
2835 | |
- case $LD in # libtool.m4 will add one of these switches to LD
|
2836 | |
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
2837 | |
- libsuff= shlibsuff= libmagic=32-bit;;
|
2838 | |
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
2839 | |
- libsuff=32 shlibsuff=N32 libmagic=N32;;
|
2840 | |
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
2841 | |
- libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
2842 | |
- *) libsuff= shlibsuff= libmagic=never-match;;
|
2843 | |
- esac
|
|
128 |
- # If test is not a shell built-in, we'll probably end up computing a
|
|
129 |
- # maximum length that is only half of the actual maximum length, but
|
|
130 |
- # we can't tell.
|
|
131 |
- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
|
132 |
- while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
|
2844 | 133 |
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
2845 | 134 |
+ if test -n "$lt_cv_sys_max_cmd_len"; then
|
2846 | 135 |
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
2848 | 137 |
+ else
|
2849 | 138 |
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
2850 | 139 |
+ while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
|
2851 | |
+ = "XX$teststring") >/dev/null 2>&1 &&
|
|
140 |
= "XX$teststring") >/dev/null 2>&1 &&
|
|
141 |
- new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
|
142 |
- lt_cv_sys_max_cmd_len=$new_result &&
|
|
143 |
- test $i != 17 # 1/2 MB should be enough
|
|
144 |
- do
|
|
145 |
- i=`expr $i + 1`
|
|
146 |
- teststring=$teststring$teststring
|
|
147 |
- done
|
|
148 |
- teststring=
|
|
149 |
- # Add a significant safety factor because C++ compilers can tack on massive
|
|
150 |
- # amounts of additional arguments before passing them to the linker.
|
|
151 |
- # It appears as though 1/2 is a usable value.
|
|
152 |
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
2852 | 153 |
+ new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
2853 | 154 |
+ lt_cv_sys_max_cmd_len=$new_result &&
|
2854 | 155 |
+ test $i != 17 # 1/2 MB should be enough
|
|
2864 | 165 |
+ fi
|
2865 | 166 |
;;
|
2866 | 167 |
esac
|
2867 | |
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
2868 | |
- shlibpath_overrides_runpath=no
|
2869 | |
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
2870 | |
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
2871 | |
- hardcode_into_libs=yes
|
2872 | |
- ;;
|
2873 | |
-
|
2874 | |
-# No shared lib support for Linux oldld, aout, or coff.
|
2875 | |
-linux*oldld* | linux*aout* | linux*coff*)
|
2876 | |
- dynamic_linker=no
|
2877 | |
- ;;
|
2878 | |
+])
|
2879 | |
+if test -n $lt_cv_sys_max_cmd_len ; then
|
2880 | |
+ AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
|
2881 | |
+else
|
2882 | |
+ AC_MSG_RESULT(none)
|
2883 | |
+fi
|
2884 | |
+])# AC_LIBTOOL_SYS_MAX_CMD_LEN
|
2885 | |
|
2886 | |
-# This must be Linux ELF.
|
2887 | |
-linux* | k*bsd*-gnu)
|
2888 | |
- version_type=linux
|
2889 | |
- need_lib_prefix=no
|
2890 | |
- need_version=no
|
2891 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2892 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2893 | |
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
2894 | |
- shlibpath_var=LD_LIBRARY_PATH
|
2895 | |
- shlibpath_overrides_runpath=no
|
2896 | |
- # This implies no fast_install, which is unacceptable.
|
2897 | |
- # Some rework will be needed to allow for fast_install
|
2898 | |
- # before this can be enabled.
|
2899 | |
- hardcode_into_libs=yes
|
2900 | |
|
2901 | |
- # Append ld.so.conf contents to the search path
|
2902 | |
- if test -f /etc/ld.so.conf; then
|
2903 | |
- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
2904 | |
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
2905 | |
- fi
|
2906 | |
+# _LT_AC_CHECK_DLFCN
|
2907 | |
+# ------------------
|
2908 | |
+AC_DEFUN([_LT_AC_CHECK_DLFCN],
|
2909 | |
+[AC_CHECK_HEADERS(dlfcn.h)dnl
|
2910 | |
+])# _LT_AC_CHECK_DLFCN
|
2911 | |
|
2912 | |
- # We used to test for /lib/ld.so.1 and disable shared libraries on
|
2913 | |
- # powerpc, because MkLinux only supported shared libraries with the
|
2914 | |
- # GNU dynamic linker. Since this was broken with cross compilers,
|
2915 | |
- # most powerpc-linux boxes support dynamic linking these days and
|
2916 | |
- # people can always --disable-shared, the test was removed, and we
|
2917 | |
- # assume the GNU/Linux dynamic linker is in use.
|
2918 | |
- dynamic_linker='GNU/Linux ld.so'
|
2919 | |
- ;;
|
2920 | |
|
2921 | |
-netbsdelf*-gnu)
|
2922 | |
- version_type=linux
|
2923 | |
- need_lib_prefix=no
|
2924 | |
- need_version=no
|
2925 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
2926 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2927 | |
- shlibpath_var=LD_LIBRARY_PATH
|
2928 | |
- shlibpath_overrides_runpath=no
|
2929 | |
- hardcode_into_libs=yes
|
2930 | |
- dynamic_linker='NetBSD ld.elf_so'
|
2931 | |
- ;;
|
2932 | |
+# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
2933 | |
+# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
2934 | |
+# ---------------------------------------------------------------------
|
2935 | |
+AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
|
2936 | |
+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
2937 | |
+if test "$cross_compiling" = yes; then :
|
2938 | |
+ [$4]
|
2939 | |
+else
|
2940 | |
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
2941 | |
+ lt_status=$lt_dlunknown
|
2942 | |
+ cat > conftest.$ac_ext <<EOF
|
2943 | |
+[#line __oline__ "configure"
|
2944 | |
+#include "confdefs.h"
|
2945 | |
|
2946 | |
-netbsd*)
|
2947 | |
- version_type=sunos
|
2948 | |
- need_lib_prefix=no
|
2949 | |
- need_version=no
|
2950 | |
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
2951 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
2952 | |
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
2953 | |
- dynamic_linker='NetBSD (a.out) ld.so'
|
2954 | |
- else
|
2955 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
2956 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2957 | |
- dynamic_linker='NetBSD ld.elf_so'
|
2958 | |
- fi
|
2959 | |
- shlibpath_var=LD_LIBRARY_PATH
|
2960 | |
- shlibpath_overrides_runpath=yes
|
2961 | |
- hardcode_into_libs=yes
|
2962 | |
- ;;
|
2963 | |
+#if HAVE_DLFCN_H
|
2964 | |
+#include <dlfcn.h>
|
2965 | |
+#endif
|
2966 | |
|
2967 | |
-newsos6)
|
2968 | |
- version_type=linux
|
2969 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2970 | |
- shlibpath_var=LD_LIBRARY_PATH
|
2971 | |
- shlibpath_overrides_runpath=yes
|
2972 | |
- ;;
|
2973 | |
+#include <stdio.h>
|
2974 | |
|
2975 | |
-nto-qnx*)
|
2976 | |
- version_type=linux
|
2977 | |
- need_lib_prefix=no
|
2978 | |
- need_version=no
|
2979 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2980 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
2981 | |
- shlibpath_var=LD_LIBRARY_PATH
|
2982 | |
- shlibpath_overrides_runpath=yes
|
2983 | |
- ;;
|
2984 | |
+#ifdef RTLD_GLOBAL
|
2985 | |
+# define LT_DLGLOBAL RTLD_GLOBAL
|
2986 | |
+#else
|
2987 | |
+# ifdef DL_GLOBAL
|
2988 | |
+# define LT_DLGLOBAL DL_GLOBAL
|
2989 | |
+# else
|
2990 | |
+# define LT_DLGLOBAL 0
|
2991 | |
+# endif
|
2992 | |
+#endif
|
2993 | |
|
2994 | |
-openbsd*)
|
2995 | |
- version_type=sunos
|
2996 | |
- sys_lib_dlsearch_path_spec="/usr/lib"
|
2997 | |
- need_lib_prefix=no
|
2998 | |
- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
2999 | |
- case $host_os in
|
3000 | |
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
3001 | |
- *) need_version=no ;;
|
3002 | |
- esac
|
3003 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
3004 | |
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
3005 | |
- shlibpath_var=LD_LIBRARY_PATH
|
3006 | |
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
3007 | |
- case $host_os in
|
3008 | |
- openbsd2.[[89]] | openbsd2.[[89]].*)
|
3009 | |
- shlibpath_overrides_runpath=no
|
3010 | |
- ;;
|
3011 | |
- *)
|
3012 | |
- shlibpath_overrides_runpath=yes
|
3013 | |
- ;;
|
3014 | |
- esac
|
3015 | |
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
3016 | |
+ find out it does not work in some platform. */
|
3017 | |
+#ifndef LT_DLLAZY_OR_NOW
|
3018 | |
+# ifdef RTLD_LAZY
|
3019 | |
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
3020 | |
+# else
|
3021 | |
+# ifdef DL_LAZY
|
3022 | |
+# define LT_DLLAZY_OR_NOW DL_LAZY
|
3023 | |
+# else
|
3024 | |
+# ifdef RTLD_NOW
|
3025 | |
+# define LT_DLLAZY_OR_NOW RTLD_NOW
|
3026 | |
+# else
|
3027 | |
+# ifdef DL_NOW
|
3028 | |
+# define LT_DLLAZY_OR_NOW DL_NOW
|
3029 | |
+# else
|
3030 | |
+# define LT_DLLAZY_OR_NOW 0
|
3031 | |
+# endif
|
3032 | |
+# endif
|
3033 | |
+# endif
|
3034 | |
+# endif
|
3035 | |
+#endif
|
3036 | |
+
|
3037 | |
+#ifdef __cplusplus
|
3038 | |
+extern "C" void exit (int);
|
3039 | |
+#endif
|
3040 | |
+
|
3041 | |
+void fnord() { int i=42;}
|
3042 | |
+int main ()
|
3043 | |
+{
|
3044 | |
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
3045 | |
+ int status = $lt_dlunknown;
|
3046 | |
+
|
3047 | |
+ if (self)
|
3048 | |
+ {
|
3049 | |
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
3050 | |
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
3051 | |
+ /* dlclose (self); */
|
3052 | |
+ }
|
3053 | |
else
|
3054 | |
- shlibpath_overrides_runpath=yes
|
3055 | |
+ puts (dlerror ());
|
3056 | |
+
|
3057 | |
+ exit (status);
|
3058 | |
+}]
|
3059 | |
+EOF
|
3060 | |
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
|
3061 | |
+ (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
|
3062 | |
+ lt_status=$?
|
3063 | |
+ case x$lt_status in
|
3064 | |
+ x$lt_dlno_uscore) $1 ;;
|
3065 | |
+ x$lt_dlneed_uscore) $2 ;;
|
3066 | |
+ x$lt_dlunknown|x*) $3 ;;
|
3067 | |
+ esac
|
3068 | |
+ else :
|
3069 | |
+ # compilation failed
|
3070 | |
+ $3
|
3071 | |
fi
|
3072 | |
- ;;
|
3073 | |
+fi
|
3074 | |
+rm -fr conftest*
|
3075 | |
+])# _LT_AC_TRY_DLOPEN_SELF
|
3076 | |
|
3077 | |
-os2*)
|
3078 | |
- libname_spec='$name'
|
3079 | |
- shrext_cmds=".dll"
|
3080 | |
- need_lib_prefix=no
|
3081 | |
- library_names_spec='$libname${shared_ext} $libname.a'
|
3082 | |
- dynamic_linker='OS/2 ld.exe'
|
3083 | |
- shlibpath_var=LIBPATH
|
3084 | |
- ;;
|
3085 | |
|
3086 | |
-osf3* | osf4* | osf5*)
|
3087 | |
- version_type=osf
|
3088 | |
- need_lib_prefix=no
|
3089 | |
- need_version=no
|
3090 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
3091 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
3092 | |
- shlibpath_var=LD_LIBRARY_PATH
|
3093 | |
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
3094 | |
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
3095 | |
- ;;
|
3096 | |
+# AC_LIBTOOL_DLOPEN_SELF
|
3097 | |
+# ----------------------
|
3098 | |
+AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
|
3099 | |
+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
3100 | |
+if test "x$enable_dlopen" != xyes; then
|
3101 | |
+ enable_dlopen=unknown
|
3102 | |
+ enable_dlopen_self=unknown
|
3103 | |
+ enable_dlopen_self_static=unknown
|
3104 | |
+else
|
3105 | |
+ lt_cv_dlopen=no
|
3106 | |
+ lt_cv_dlopen_libs=
|
3107 | |
|
3108 | |
-rdos*)
|
3109 | |
- dynamic_linker=no
|
3110 | |
- ;;
|
3111 | |
+ case $host_os in
|
3112 | |
+ beos*)
|
3113 | |
+ lt_cv_dlopen="load_add_on"
|
3114 | |
+ lt_cv_dlopen_libs=
|
3115 | |
+ lt_cv_dlopen_self=yes
|
3116 | |
+ ;;
|
3117 | |
|
3118 | |
-solaris*)
|
3119 | |
- version_type=linux
|
3120 | |
- need_lib_prefix=no
|
3121 | |
- need_version=no
|
3122 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
3123 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
3124 | |
- shlibpath_var=LD_LIBRARY_PATH
|
3125 | |
- shlibpath_overrides_runpath=yes
|
3126 | |
- hardcode_into_libs=yes
|
3127 | |
- # ldd complains unless libraries are executable
|
3128 | |
- postinstall_cmds='chmod +x $lib'
|
3129 | |
- ;;
|
3130 | |
+ mingw* | pw32*)
|
3131 | |
+ lt_cv_dlopen="LoadLibrary"
|
3132 | |
+ lt_cv_dlopen_libs=
|
3133 | |
+ ;;
|
3134 | |
|
3135 | |
-sunos4*)
|
3136 | |
- version_type=sunos
|
3137 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
3138 | |
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
3139 | |
- shlibpath_var=LD_LIBRARY_PATH
|
3140 | |
- shlibpath_overrides_runpath=yes
|
3141 | |
- if test "$with_gnu_ld" = yes; then
|
3142 | |
- need_lib_prefix=no
|
3143 | |
- fi
|
3144 | |
- need_version=yes
|
3145 | |
- ;;
|
3146 | |
+ cygwin*)
|
3147 | |
+ lt_cv_dlopen="dlopen"
|
3148 | |
+ lt_cv_dlopen_libs=
|
3149 | |
+ ;;
|
3150 | |
|
3151 | |
-sysv4 | sysv4.3*)
|
3152 | |
- version_type=linux
|
3153 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
3154 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
3155 | |
- shlibpath_var=LD_LIBRARY_PATH
|
3156 | |
- case $host_vendor in
|
3157 | |
- sni)
|
3158 | |
- shlibpath_overrides_runpath=no
|
3159 | |
- need_lib_prefix=no
|
3160 | |
- export_dynamic_flag_spec='${wl}-Blargedynsym'
|
3161 | |
- runpath_var=LD_RUN_PATH
|
3162 | |
- ;;
|
3163 | |
- siemens)
|
3164 | |
- need_lib_prefix=no
|
3165 | |
- ;;
|
3166 | |
- motorola)
|
3167 | |
- need_lib_prefix=no
|
3168 | |
- need_version=no
|
3169 | |
- shlibpath_overrides_runpath=no
|
3170 | |
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
3171 | |
- ;;
|
3172 | |
- esac
|
3173 | |
- ;;
|
3174 | |
+ darwin*)
|
3175 | |
+ # if libdl is installed we need to link against it
|
3176 | |
+ AC_CHECK_LIB([dl], [dlopen],
|
3177 | |
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
|
3178 | |
+ lt_cv_dlopen="dyld"
|
3179 | |
+ lt_cv_dlopen_libs=
|
3180 | |
+ lt_cv_dlopen_self=yes
|
3181 | |
+ ])
|
3182 | |
+ ;;
|
3183 | |
|
3184 | |
-sysv4*MP*)
|
3185 | |
- if test -d /usr/nec ;then
|
3186 | |
- version_type=linux
|
3187 | |
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
3188 | |
- soname_spec='$libname${shared_ext}.$major'
|
3189 | |
- shlibpath_var=LD_LIBRARY_PATH
|
3190 | |
- fi
|
3191 | |
- ;;
|
3192 | |
+ *)
|
3193 | |
+ AC_CHECK_FUNC([shl_load],
|
3194 | |
+ [lt_cv_dlopen="shl_load"],
|
3195 | |
+ [AC_CHECK_LIB([dld], [shl_load],
|
3196 | |
+ [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
|
3197 | |
+ [AC_CHECK_FUNC([dlopen],
|
3198 | |
+ [lt_cv_dlopen="dlopen"],
|
3199 | |
+ [AC_CHECK_LIB([dl], [dlopen],
|
3200 | |
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
3201 | |
+ [AC_CHECK_LIB([svld], [dlopen],
|
3202 | |
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
3203 | |
+ [AC_CHECK_LIB([dld], [dld_link],
|
3204 | |
+ [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
3205 | |
+ ])
|
3206 | |
+ ])
|
3207 | |
+ ])
|
3208 | |
+ ])
|
3209 | |
+ ])
|
3210 | |
+ ;;
|
3211 | |
+ esac
|
3212 | |
|
3213 | |
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
3214 | |
- version_type=freebsd-elf
|
3215 | |
- need_lib_prefix=no
|
3216 | |
- need_version=no
|
3217 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
3218 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
3219 | |
- shlibpath_var=LD_LIBRARY_PATH
|
3220 | |
- hardcode_into_libs=yes
|
3221 | |
- if test "$with_gnu_ld" = yes; then
|
3222 | |
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
3223 | |
- shlibpath_overrides_runpath=no
|
3224 | |
+ if test "x$lt_cv_dlopen" != xno; then
|
3225 | |
+ enable_dlopen=yes
|
3226 | |
else
|
3227 | |
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
3228 | |
- shlibpath_overrides_runpath=yes
|
3229 | |
- case $host_os in
|
3230 | |
- sco3.2v5*)
|
3231 | |
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
3232 | |
- ;;
|
3233 | |
- esac
|
3234 | |
+ enable_dlopen=no
|
3235 | |
fi
|
3236 | |
- sys_lib_dlsearch_path_spec='/usr/lib'
|
3237 | |
- ;;
|
3238 | |
|
3239 | |
-uts4*)
|
3240 | |
- version_type=linux
|
3241 | |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
3242 | |
- soname_spec='${libname}${release}${shared_ext}$major'
|
3243 | |
- shlibpath_var=LD_LIBRARY_PATH
|
3244 | |
- ;;
|
3245 | |
+ case $lt_cv_dlopen in
|
3246 | |
+ dlopen)
|
3247 | |
+ save_CPPFLAGS="$CPPFLAGS"
|
3248 | |
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
3249 | |
|
3250 | |
-*)
|
3251 | |
- dynamic_linker=no
|
3252 | |
- ;;
|
3253 | |
-esac
|
3254 | |
-AC_MSG_RESULT([$dynamic_linker])
|
3255 | |
-test "$dynamic_linker" = no && can_build_shared=no
|
3256 | |
+ save_LDFLAGS="$LDFLAGS"
|
3257 | |
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
3258 | |
|
3259 | |
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
3260 | |
-if test "$GCC" = yes; then
|
3261 | |
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
3262 | |
-fi
|
3263 | |
-])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
3264 | |
+ save_LIBS="$LIBS"
|
3265 | |
+ LIBS="$lt_cv_dlopen_libs $LIBS"
|
3266 | |
|
3267 | |
+ AC_CACHE_CHECK([whether a program can dlopen itself],
|
3268 | |
+ lt_cv_dlopen_self, [dnl
|
3269 | |
+ _LT_AC_TRY_DLOPEN_SELF(
|
3270 | |
+ lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
|
3271 | |
+ lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
|
3272 | |
+ ])
|
3273 | |
|
3274 | |
-# _LT_AC_TAGCONFIG
|
3275 | |
-# ----------------
|
3276 | |
-AC_DEFUN([_LT_AC_TAGCONFIG],
|
3277 | |
-[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
3278 | |
-AC_ARG_WITH([tags],
|
3279 | |
- [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
|
3280 | |
- [include additional configurations @<:@automatic@:>@])],
|
3281 | |
- [tagnames="$withval"])
|
3282 | |
-
|
3283 | |
-if test -f "$ltmain" && test -n "$tagnames"; then
|
3284 | |
- if test ! -f "${ofile}"; then
|
3285 | |
- AC_MSG_WARN([output file `$ofile' does not exist])
|
3286 | |
- fi
|
3287 | |
-
|
3288 | |
- if test -z "$LTCC"; then
|
3289 | |
- eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
|
3290 | |
- if test -z "$LTCC"; then
|
3291 | |
- AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
|
3292 | |
- else
|
3293 | |
- AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
|
3294 | |
+ if test "x$lt_cv_dlopen_self" = xyes; then
|
3295 | |
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
3296 | |
+ AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
3297 | |
+ lt_cv_dlopen_self_static, [dnl
|
3298 | |
+ _LT_AC_TRY_DLOPEN_SELF(
|
3299 | |
+ lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
|
3300 | |
+ lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
|
3301 | |
+ ])
|
3302 | |
fi
|
3303 | |
- fi
|
3304 | |
- if test -z "$LTCFLAGS"; then
|
3305 | |
- eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
|
3306 | |
- fi
|
3307 | |
-
|
3308 | |
- # Extract list of available tagged configurations in $ofile.
|
3309 | |
- # Note that this assumes the entire list is on one line.
|
3310 | |
- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
|
3311 | |
-
|
3312 | |
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
3313 | |
- for tagname in $tagnames; do
|
3314 | |
- IFS="$lt_save_ifs"
|
3315 | |
- # Check whether tagname contains only valid characters
|
3316 | |
- case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
|
3317 | |
- "") ;;
|
3318 | |
- *) AC_MSG_ERROR([invalid tag name: $tagname])
|
3319 | |
- ;;
|
3320 | |
- esac
|
3321 | |
|
3322 | |
- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
|
3323 | |
- then
|
3324 | |
- AC_MSG_ERROR([tag name \"$tagname\" already exists])
|
3325 | |
- fi
|
3326 | |
+ CPPFLAGS="$save_CPPFLAGS"
|
3327 | |
+ LDFLAGS="$save_LDFLAGS"
|
3328 | |
+ LIBS="$save_LIBS"
|
3329 | |
+ ;;
|
3330 | |
+ esac
|
3331 | |
|
3332 | |
- # Update the list of available tags.
|
3333 | |
- if test -n "$tagname"; then
|
3334 | |
- echo appending configuration tag \"$tagname\" to $ofile
|
3335 | |
+ case $lt_cv_dlopen_self in
|
3336 | |
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
3337 | |
+ *) enable_dlopen_self=unknown ;;
|
3338 | |
+ esac
|
3339 | |
|
3340 | |
- case $tagname in
|
3341 | |
- CXX)
|
3342 | |
- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
3343 | |
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
3344 | |
- (test "X$CXX" != "Xg++"))) ; then
|
3345 | |
- AC_LIBTOOL_LANG_CXX_CONFIG
|
3346 | |
- else
|
3347 | |
- tagname=""
|
3348 | |
- fi
|
3349 | |
- ;;
|
3350 | |
+ case $lt_cv_dlopen_self_static in
|
3351 | |
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
3352 | |
+ *) enable_dlopen_self_static=unknown ;;
|
3353 | |
+ esac
|
3354 | |
+fi
|
3355 | |
+])# AC_LIBTOOL_DLOPEN_SELF
|
3356 | |
|
3357 | |
- F77)
|
3358 | |
- if test -n "$F77" && test "X$F77" != "Xno"; then
|
3359 | |
- AC_LIBTOOL_LANG_F77_CONFIG
|
3360 | |
- else
|
3361 | |
- tagname=""
|
3362 | |
- fi
|
3363 | |
- ;;
|
3364 | |
|
3365 | |
- GCJ)
|
3366 | |
- if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
|
3367 | |
- AC_LIBTOOL_LANG_GCJ_CONFIG
|
3368 | |
- else
|
3369 | |
- tagname=""
|
3370 | |
- fi
|
3371 | |
- ;;
|
3372 | |
+# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
|
3373 | |
+# ---------------------------------
|
3374 | |
+# Check to see if options -c and -o are simultaneously supported by compiler
|
3375 | |
+AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
|
|
168 |
])
|
|
169 |
@@ -1695,7 +1716,8 @@
|
|
170 |
# ---------------------------------
|
|
171 |
# Check to see if options -c and -o are simultaneously supported by compiler
|
|
172 |
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
|
|
173 |
-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
3376 | 174 |
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
3377 | 175 |
+AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
3378 | |
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
3379 | |
+ [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
3380 | |
+ [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
3381 | |
+ $rm -r conftest 2>/dev/null
|
3382 | |
+ mkdir conftest
|
3383 | |
+ cd conftest
|
3384 | |
+ mkdir out
|
|
176 |
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
|
177 |
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
|
178 |
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
|
179 |
@@ -1703,7 +1725,7 @@
|
|
180 |
mkdir conftest
|
|
181 |
cd conftest
|
|
182 |
mkdir out
|
|
183 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
3385 | 184 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
3386 | 185 |
|
3387 | |
- RC)
|
3388 | |
- AC_LIBTOOL_LANG_RC_CONFIG
|
3389 | |
- ;;
|
3390 | |
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
|
3391 | |
+ # Insert the option either (1) after the last *FLAGS variable, or
|
3392 | |
+ # (2) before a word containing "conftest.", or (3) at the end.
|
3393 | |
+ # Note that $ac_compile itself does not contain backslashes and begins
|
3394 | |
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
|
3395 | |
+ lt_compile=`echo "$ac_compile" | $SED \
|
3396 | |
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
3397 | |
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
3398 | |
+ -e 's:$: $lt_compiler_flag:'`
|
3399 | |
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
3400 | |
+ (eval "$lt_compile" 2>out/conftest.err)
|
3401 | |
+ ac_status=$?
|
3402 | |
+ cat out/conftest.err >&AS_MESSAGE_LOG_FD
|
3403 | |
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
3404 | |
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
3405 | |
+ then
|
3406 | |
+ # The compiler can only warn and ignore the option if not recognized
|
3407 | |
+ # So say no if there are warnings
|
3408 | |
+ $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
3409 | |
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
3410 | |
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
3411 | |
+ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
3412 | |
+ fi
|
3413 | |
+ fi
|
3414 | |
+ chmod u+w . 2>&AS_MESSAGE_LOG_FD
|
3415 | |
+ $rm conftest*
|
3416 | |
+ # SGI C++ compiler will create directory out/ii_files/ for
|
3417 | |
+ # template instantiation
|
3418 | |
+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
3419 | |
+ $rm out/* && rmdir out
|
3420 | |
+ cd ..
|
3421 | |
+ rmdir conftest
|
3422 | |
+ $rm conftest*
|
3423 | |
+])
|
3424 | |
+])# AC_LIBTOOL_PROG_CC_C_O
|
3425 | |
|
3426 | |
- *)
|
3427 | |
- AC_MSG_ERROR([Unsupported tag name: $tagname])
|
3428 | |
- ;;
|
3429 | |
- esac
|
3430 | |
|
3431 | |
- # Append the new tag name to the list of available tags.
|
3432 | |
- if test -n "$tagname" ; then
|
3433 | |
- available_tags="$available_tags $tagname"
|
3434 | |
- fi
|
3435 | |
- fi
|
3436 | |
- done
|
3437 | |
- IFS="$lt_save_ifs"
|
3438 | |
+# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
|
3439 | |
+# -----------------------------------------
|
3440 | |
+# Check to see if we can do hard links to lock some files if needed
|
3441 | |
+AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
|
3442 | |
+[AC_REQUIRE([_LT_AC_LOCK])dnl
|
3443 | |
|
3444 | |
- # Now substitute the updated list of available tags.
|
3445 | |
- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
|
3446 | |
- mv "${ofile}T" "$ofile"
|
3447 | |
- chmod +x "$ofile"
|
3448 | |
- else
|
3449 | |
- rm -f "${ofile}T"
|
3450 | |
- AC_MSG_ERROR([unable to update list of available tagged configurations.])
|
3451 | |
+hard_links="nottested"
|
3452 | |
+if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
|
3453 | |
+ # do not overwrite the value of need_locks provided by the user
|
3454 | |
+ AC_MSG_CHECKING([if we can lock with hard links])
|
3455 | |
+ hard_links=yes
|
3456 | |
+ $rm conftest*
|
3457 | |
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
3458 | |
+ touch conftest.a
|
3459 | |
+ ln conftest.a conftest.b 2>&5 || hard_links=no
|
3460 | |
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
3461 | |
+ AC_MSG_RESULT([$hard_links])
|
3462 | |
+ if test "$hard_links" = no; then
|
3463 | |
+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
|
3464 | |
+ need_locks=warn
|
3465 | |
fi
|
3466 | |
+else
|
3467 | |
+ need_locks=no
|
3468 | |
fi
|
3469 | |
-])# _LT_AC_TAGCONFIG
|
3470 | |
+])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
|
3471 | |
|
3472 | |
|
3473 | |
-# AC_LIBTOOL_DLOPEN
|
3474 | |
+# AC_LIBTOOL_OBJDIR
|
3475 | |
# -----------------
|
3476 | |
-# enable checks for dlopen support
|
3477 | |
-AC_DEFUN([AC_LIBTOOL_DLOPEN],
|
3478 | |
- [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
|
3479 | |
-])# AC_LIBTOOL_DLOPEN
|
3480 | |
+AC_DEFUN([AC_LIBTOOL_OBJDIR],
|
3481 | |
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
|
3482 | |
+[rm -f .libs 2>/dev/null
|
3483 | |
+mkdir .libs 2>/dev/null
|
3484 | |
+if test -d .libs; then
|
3485 | |
+ lt_cv_objdir=.libs
|
3486 | |
+else
|
3487 | |
+ # MS-DOS does not allow filenames that begin with a dot.
|
3488 | |
+ lt_cv_objdir=_libs
|
3489 | |
+fi
|
3490 | |
+rmdir .libs 2>/dev/null])
|
3491 | |
+objdir=$lt_cv_objdir
|
3492 | |
+])# AC_LIBTOOL_OBJDIR
|
3493 | |
|
3494 | |
|
3495 | |
-# AC_LIBTOOL_WIN32_DLL
|
3496 | |
-# --------------------
|
3497 | |
-# declare package support for building win32 DLLs
|
3498 | |
-AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
3499 | |
-[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
|
3500 | |
-])# AC_LIBTOOL_WIN32_DLL
|
3501 | |
+# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
|
3502 | |
+# ----------------------------------------------
|
3503 | |
+# Check hardcoding attributes.
|
3504 | |
+AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
|
3505 | |
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
|
3506 | |
+_LT_AC_TAGVAR(hardcode_action, $1)=
|
3507 | |
+if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
|
3508 | |
+ test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
|
3509 | |
+ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
|
3510 | |
|
3511 | |
+ # We can hardcode non-existant directories.
|
3512 | |
+ if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
|
3513 | |
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
3514 | |
+ # have to relink, otherwise we might link with an installed library
|
3515 | |
+ # when we should be linking with a yet-to-be-installed one
|
3516 | |
+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
|
3517 | |
+ test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
|
3518 | |
+ # Linking always hardcodes the temporary library directory.
|
3519 | |
+ _LT_AC_TAGVAR(hardcode_action, $1)=relink
|
3520 | |
+ else
|
3521 | |
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
3522 | |
+ _LT_AC_TAGVAR(hardcode_action, $1)=immediate
|
3523 | |
+ fi
|
3524 | |
+else
|
3525 | |
+ # We cannot hardcode anything, or else we can only hardcode existing
|
3526 | |
+ # directories.
|
3527 | |
+ _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
|
3528 | |
+fi
|
3529 | |
+AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
|
3530 | |
|
3531 | |
-# AC_ENABLE_SHARED([DEFAULT])
|
3532 | |
-# ---------------------------
|
3533 | |
-# implement the --enable-shared flag
|
3534 | |
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
3535 | |
-AC_DEFUN([AC_ENABLE_SHARED],
|
3536 | |
-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
|
3537 | |
-AC_ARG_ENABLE([shared],
|
3538 | |
- [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
3539 | |
- [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
|
3540 | |
- [p=${PACKAGE-default}
|
3541 | |
- case $enableval in
|
3542 | |
- yes) enable_shared=yes ;;
|
3543 | |
- no) enable_shared=no ;;
|
3544 | |
- *)
|
3545 | |
- enable_shared=no
|
3546 | |
- # Look at the argument we got. We use all the common list separators.
|
3547 | |
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
3548 | |
- for pkg in $enableval; do
|
3549 | |
- IFS="$lt_save_ifs"
|
3550 | |
- if test "X$pkg" = "X$p"; then
|
3551 | |
- enable_shared=yes
|
3552 | |
- fi
|
3553 | |
- done
|
3554 | |
- IFS="$lt_save_ifs"
|
3555 | |
- ;;
|
3556 | |
- esac],
|
3557 | |
- [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
|
3558 | |
-])# AC_ENABLE_SHARED
|
3559 | |
+if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
|
3560 | |
+ # Fast installation is not supported
|
3561 | |
+ enable_fast_install=no
|
3562 | |
+elif test "$shlibpath_overrides_runpath" = yes ||
|
3563 | |
+ test "$enable_shared" = no; then
|
3564 | |
+ # Fast installation is not necessary
|
3565 | |
+ enable_fast_install=needless
|
3566 | |
+fi
|
3567 | |
+])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
|
3568 | |
|
3569 | |
|
3570 | |
-# AC_DISABLE_SHARED
|
3571 | |
-# -----------------
|
3572 | |
-# set the default shared flag to --disable-shared
|
3573 | |
-AC_DEFUN([AC_DISABLE_SHARED],
|
3574 | |
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
3575 | |
-AC_ENABLE_SHARED(no)
|
3576 | |
-])# AC_DISABLE_SHARED
|
3577 | |
+# AC_LIBTOOL_SYS_LIB_STRIP
|
3578 | |
+# ------------------------
|
3579 | |
+AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
|
3580 | |
+[striplib=
|
3581 | |
+old_striplib=
|
3582 | |
+AC_MSG_CHECKING([whether stripping libraries is possible])
|
3583 | |
+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
3584 | |
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
3585 | |
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
3586 | |
+ AC_MSG_RESULT([yes])
|
3587 | |
+else
|
3588 | |
+# FIXME - insert some real tests, host_os isn't really good enough
|
3589 | |
+ case $host_os in
|
3590 | |
+ darwin*)
|
3591 | |
+ if test -n "$STRIP" ; then
|
3592 | |
+ striplib="$STRIP -x"
|
|
186 |
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
187 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
188 |
@@ -1843,6 +1865,7 @@
|
|
189 |
darwin*)
|
|
190 |
if test -n "$STRIP" ; then
|
|
191 |
striplib="$STRIP -x"
|
3593 | 192 |
+ old_striplib="$STRIP -S"
|
3594 | |
+ AC_MSG_RESULT([yes])
|
3595 | |
+ else
|
3596 | |
+ AC_MSG_RESULT([no])
|
3597 | |
+fi
|
3598 | |
+ ;;
|
3599 | |
+ *)
|
3600 | |
+ AC_MSG_RESULT([no])
|
3601 | |
+ ;;
|
3602 | |
+ esac
|
3603 | |
+fi
|
3604 | |
+])# AC_LIBTOOL_SYS_LIB_STRIP
|
3605 | |
|
3606 | |
|
3607 | |
-# AC_ENABLE_STATIC([DEFAULT])
|
3608 | |
-# ---------------------------
|
3609 | |
-# implement the --enable-static flag
|
3610 | |
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
3611 | |
-AC_DEFUN([AC_ENABLE_STATIC],
|
3612 | |
-[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
|
3613 | |
-AC_ARG_ENABLE([static],
|
3614 | |
- [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
3615 | |
- [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
|
3616 | |
- [p=${PACKAGE-default}
|
3617 | |
- case $enableval in
|
3618 | |
- yes) enable_static=yes ;;
|
3619 | |
- no) enable_static=no ;;
|
3620 | |
- *)
|
3621 | |
- enable_static=no
|
3622 | |
- # Look at the argument we got. We use all the common list separators.
|
3623 | |
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
3624 | |
- for pkg in $enableval; do
|
3625 | |
- IFS="$lt_save_ifs"
|
3626 | |
- if test "X$pkg" = "X$p"; then
|
3627 | |
- enable_static=yes
|
3628 | |
- fi
|
3629 | |
- done
|
3630 | |
- IFS="$lt_save_ifs"
|
3631 | |
- ;;
|
3632 | |
- esac],
|
3633 | |
- [enable_static=]AC_ENABLE_STATIC_DEFAULT)
|
3634 | |
-])# AC_ENABLE_STATIC
|
3635 | |
+# AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
3636 | |
+# -----------------------------
|
3637 | |
+# PORTME Fill in your ld.so characteristics
|
3638 | |
+AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
|
|
193 |
AC_MSG_RESULT([yes])
|
|
194 |
else
|
|
195 |
AC_MSG_RESULT([no])
|
|
196 |
@@ -1860,7 +1883,8 @@
|
|
197 |
# -----------------------------
|
|
198 |
# PORTME Fill in your ld.so characteristics
|
|
199 |
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
|
|
200 |
-[AC_MSG_CHECKING([dynamic linker characteristics])
|
3639 | 201 |
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
3640 | 202 |
+AC_MSG_CHECKING([dynamic linker characteristics])
|
3641 | |
+library_names_spec=
|
3642 | |
+libname_spec='lib$name'
|
3643 | |
+soname_spec=
|
3644 | |
+shrext_cmds=".so"
|
3645 | |
+postinstall_cmds=
|
3646 | |
+postuninstall_cmds=
|
3647 | |
+finish_cmds=
|
3648 | |
+finish_eval=
|
3649 | |
+shlibpath_var=
|
3650 | |
+shlibpath_overrides_runpath=unknown
|
3651 | |
+version_type=none
|
3652 | |
+dynamic_linker="$host_os ld.so"
|
3653 | |
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
203 |
library_names_spec=
|
|
204 |
libname_spec='lib$name'
|
|
205 |
soname_spec=
|
|
206 |
@@ -1874,20 +1898,58 @@
|
|
207 |
version_type=none
|
|
208 |
dynamic_linker="$host_os ld.so"
|
|
209 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
3654 | 210 |
+m4_if($1,[],[
|
3655 | |
+if test "$GCC" = yes; then
|
|
211 |
if test "$GCC" = yes; then
|
|
212 |
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
213 |
- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
3656 | 214 |
+ case $host_os in
|
3657 | 215 |
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
3658 | 216 |
+ *) lt_awk_arg="/^libraries:/" ;;
|
3659 | 217 |
+ esac
|
3660 | 218 |
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
3661 | 219 |
+ if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
|
3662 | |
+ # if the path contains ";" then we assume it to be the separator
|
3663 | |
+ # otherwise default to the standard path separator (i.e. ":") - it is
|
3664 | |
+ # assumed that no part of a normal pathname contains ";" but that should
|
3665 | |
+ # okay in the real world where ";" in dirpaths is itself problematic.
|
|
220 |
# if the path contains ";" then we assume it to be the separator
|
|
221 |
# otherwise default to the standard path separator (i.e. ":") - it is
|
|
222 |
# assumed that no part of a normal pathname contains ";" but that should
|
|
223 |
# okay in the real world where ";" in dirpaths is itself problematic.
|
|
224 |
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
3666 | 225 |
+ lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
|
3667 | |
+ else
|
|
226 |
else
|
|
227 |
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
3668 | 228 |
+ lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
3669 | |
+ fi
|
|
229 |
fi
|
3670 | 230 |
+ # Ok, now we have the path, separated by spaces, we can step through it
|
3671 | 231 |
+ # and add multilib dir if necessary.
|
3672 | 232 |
+ lt_tmp_lt_search_path_spec=
|
|
3700 | 260 |
+ if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
|
3701 | 261 |
+}'`
|
3702 | 262 |
+ sys_lib_search_path_spec=`echo $lt_search_path_spec`
|
3703 | |
+else
|
3704 | |
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
|
263 |
else
|
|
264 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
|
265 |
-fi
|
3705 | 266 |
+fi])
|
3706 | |
+need_lib_prefix=unknown
|
3707 | |
+hardcode_into_libs=no
|
3708 | |
|
3709 | |
+# when you set need_version to no, make sure it does not cause -set_version
|
3710 | |
+# flags to be left without arguments
|
3711 | |
+need_version=unknown
|
3712 | |
|
3713 | |
-# AC_DISABLE_STATIC
|
3714 | |
-# -----------------
|
3715 | |
-# set the default static flag to --disable-static
|
3716 | |
-AC_DEFUN([AC_DISABLE_STATIC],
|
3717 | |
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
3718 | |
-AC_ENABLE_STATIC(no)
|
3719 | |
-])# AC_DISABLE_STATIC
|
3720 | |
+case $host_os in
|
3721 | |
+aix3*)
|
3722 | |
+ version_type=linux
|
3723 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
3724 | |
+ shlibpath_var=LIBPATH
|
3725 | |
|
3726 | |
+ # AIX 3 has no versioning support, so we append a major version to the name.
|
3727 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
3728 | |
+ ;;
|
3729 | |
|
3730 | |
-# AC_ENABLE_FAST_INSTALL([DEFAULT])
|
3731 | |
-# ---------------------------------
|
3732 | |
-# implement the --enable-fast-install flag
|
3733 | |
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
3734 | |
-AC_DEFUN([AC_ENABLE_FAST_INSTALL],
|
3735 | |
-[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
|
3736 | |
-AC_ARG_ENABLE([fast-install],
|
3737 | |
- [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
3738 | |
- [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
3739 | |
- [p=${PACKAGE-default}
|
3740 | |
- case $enableval in
|
3741 | |
- yes) enable_fast_install=yes ;;
|
3742 | |
- no) enable_fast_install=no ;;
|
3743 | |
- *)
|
3744 | |
- enable_fast_install=no
|
3745 | |
- # Look at the argument we got. We use all the common list separators.
|
3746 | |
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
3747 | |
- for pkg in $enableval; do
|
3748 | |
- IFS="$lt_save_ifs"
|
3749 | |
- if test "X$pkg" = "X$p"; then
|
3750 | |
- enable_fast_install=yes
|
3751 | |
- fi
|
3752 | |
- done
|
3753 | |
- IFS="$lt_save_ifs"
|
3754 | |
+aix4* | aix5*)
|
3755 | |
+ version_type=linux
|
3756 | |
+ need_lib_prefix=no
|
3757 | |
+ need_version=no
|
3758 | |
+ hardcode_into_libs=yes
|
3759 | |
+ if test "$host_cpu" = ia64; then
|
3760 | |
+ # AIX 5 supports IA64
|
3761 | |
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
3762 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
3763 | |
+ else
|
3764 | |
+ # With GCC up to 2.95.x, collect2 would create an import file
|
3765 | |
+ # for dependence libraries. The import file would start with
|
3766 | |
+ # the line `#! .'. This would cause the generated library to
|
3767 | |
+ # depend on `.', always an invalid library. This was fixed in
|
3768 | |
+ # development snapshots of GCC prior to 3.0.
|
3769 | |
+ case $host_os in
|
3770 | |
+ aix4 | aix4.[[01]] | aix4.[[01]].*)
|
3771 | |
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
3772 | |
+ echo ' yes '
|
3773 | |
+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
3774 | |
+ :
|
3775 | |
+ else
|
3776 | |
+ can_build_shared=no
|
3777 | |
+ fi
|
3778 | |
;;
|
3779 | |
- esac],
|
3780 | |
- [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
|
3781 | |
-])# AC_ENABLE_FAST_INSTALL
|
3782 | |
+ esac
|
3783 | |
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
3784 | |
+ # soname into executable. Probably we can add versioning support to
|
3785 | |
+ # collect2, so additional links can be useful in future.
|
3786 | |
+ if test "$aix_use_runtimelinking" = yes; then
|
3787 | |
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
3788 | |
+ # instead of lib<name>.a to let people know that these are not
|
3789 | |
+ # typical AIX shared libraries.
|
3790 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
3791 | |
+ else
|
3792 | |
+ # We preserve .a as extension for shared libraries through AIX4.2
|
3793 | |
+ # and later when we are not doing run time linking.
|
3794 | |
+ library_names_spec='${libname}${release}.a $libname.a'
|
3795 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
3796 | |
+ fi
|
3797 | |
+ shlibpath_var=LIBPATH
|
3798 | |
+ fi
|
3799 | |
+ ;;
|
3800 | |
|
3801 | |
+amigaos*)
|
3802 | |
+ library_names_spec='$libname.ixlibrary $libname.a'
|
3803 | |
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
3804 | |
+ 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'
|
3805 | |
+ ;;
|
3806 | |
|
3807 | |
-# AC_DISABLE_FAST_INSTALL
|
3808 | |
-# -----------------------
|
3809 | |
-# set the default to --disable-fast-install
|
3810 | |
-AC_DEFUN([AC_DISABLE_FAST_INSTALL],
|
3811 | |
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
3812 | |
-AC_ENABLE_FAST_INSTALL(no)
|
3813 | |
-])# AC_DISABLE_FAST_INSTALL
|
3814 | |
-
|
3815 | |
+beos*)
|
3816 | |
+ library_names_spec='${libname}${shared_ext}'
|
3817 | |
+ dynamic_linker="$host_os ld.so"
|
3818 | |
+ shlibpath_var=LIBRARY_PATH
|
3819 | |
+ ;;
|
3820 | |
|
3821 | |
-# AC_LIBTOOL_PICMODE([MODE])
|
3822 | |
-# --------------------------
|
3823 | |
-# implement the --with-pic flag
|
3824 | |
-# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
3825 | |
-AC_DEFUN([AC_LIBTOOL_PICMODE],
|
3826 | |
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
3827 | |
-pic_mode=ifelse($#,1,$1,default)
|
3828 | |
-])# AC_LIBTOOL_PICMODE
|
3829 | |
+bsdi[[45]]*)
|
3830 | |
+ version_type=linux
|
3831 | |
+ need_version=no
|
3832 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
3833 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
3834 | |
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
3835 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
3836 | |
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
3837 | |
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
3838 | |
+ # the default ld.so.conf also contains /usr/contrib/lib and
|
3839 | |
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
3840 | |
+ # libtool to hard-code these into programs
|
3841 | |
+ ;;
|
3842 | |
|
3843 | |
+cygwin* | mingw* | pw32*)
|
3844 | |
+ version_type=windows
|
3845 | |
+ shrext_cmds=".dll"
|
3846 | |
+ need_version=no
|
3847 | |
+ need_lib_prefix=no
|
3848 | |
|
3849 | |
-# AC_PROG_EGREP
|
3850 | |
-# -------------
|
3851 | |
-# This is predefined starting with Autoconf 2.54, so this conditional
|
3852 | |
-# definition can be removed once we require Autoconf 2.54 or later.
|
3853 | |
-m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
|
3854 | |
-[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
|
3855 | |
- [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
3856 | |
- then ac_cv_prog_egrep='grep -E'
|
3857 | |
- else ac_cv_prog_egrep='egrep'
|
3858 | |
- fi])
|
3859 | |
- EGREP=$ac_cv_prog_egrep
|
3860 | |
- AC_SUBST([EGREP])
|
3861 | |
-])])
|
3862 | |
+ case $GCC,$host_os in
|
3863 | |
+ yes,cygwin* | yes,mingw* | yes,pw32*)
|
3864 | |
+ library_names_spec='$libname.dll.a'
|
3865 | |
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
3866 | |
+ postinstall_cmds='base_file=`basename \${file}`~
|
3867 | |
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
3868 | |
+ dldir=$destdir/`dirname \$dlpath`~
|
3869 | |
+ test -d \$dldir || mkdir -p \$dldir~
|
3870 | |
+ $install_prog $dir/$dlname \$dldir/$dlname~
|
3871 | |
+ chmod a+x \$dldir/$dlname'
|
3872 | |
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
3873 | |
+ dlpath=$dir/\$dldll~
|
3874 | |
+ $rm \$dlpath'
|
3875 | |
+ shlibpath_overrides_runpath=yes
|
3876 | |
|
3877 | |
+ case $host_os in
|
3878 | |
+ cygwin*)
|
3879 | |
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
3880 | |
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
3881 | |
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
3882 | |
+ ;;
|
3883 | |
+ mingw*)
|
3884 | |
+ # MinGW DLLs use traditional 'lib' prefix
|
3885 | |
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
3886 | |
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
3887 | |
+ if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
|
3888 | |
+ # It is most probably a Windows format PATH printed by
|
3889 | |
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
3890 | |
+ # path with ; separators, and with drive letters. We can handle the
|
3891 | |
+ # drive letters (cygwin fileutils understands them), so leave them,
|
3892 | |
+ # especially as we might pass files found there to a mingw objdump,
|
3893 | |
+ # which wouldn't understand a cygwinified path. Ahh.
|
3894 | |
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
3895 | |
+ else
|
3896 | |
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
3897 | |
+ fi
|
3898 | |
+ ;;
|
3899 | |
+ pw32*)
|
3900 | |
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
|
3901 | |
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
3902 | |
+ ;;
|
3903 | |
+ esac
|
3904 | |
+ ;;
|
3905 | |
|
3906 | |
-# AC_PATH_TOOL_PREFIX
|
3907 | |
-# -------------------
|
3908 | |
-# find a file program which can recognize shared library
|
3909 | |
-AC_DEFUN([AC_PATH_TOOL_PREFIX],
|
3910 | |
-[AC_REQUIRE([AC_PROG_EGREP])dnl
|
3911 | |
-AC_MSG_CHECKING([for $1])
|
3912 | |
-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
|
3913 | |
-[case $MAGIC_CMD in
|
3914 | |
-[[\\/*] | ?:[\\/]*])
|
3915 | |
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
3916 | |
+ *)
|
3917 | |
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
3918 | |
+ ;;
|
3919 | |
+ esac
|
3920 | |
+ dynamic_linker='Win32 ld.exe'
|
3921 | |
+ # FIXME: first we should search . and the directory the executable is in
|
3922 | |
+ shlibpath_var=PATH
|
3923 | |
;;
|
3924 | |
-*)
|
3925 | |
- lt_save_MAGIC_CMD="$MAGIC_CMD"
|
3926 | |
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
3927 | |
-dnl $ac_dummy forces splitting on constant user-supplied paths.
|
3928 | |
-dnl POSIX.2 word splitting is done only on the output of word expansions,
|
3929 | |
-dnl not every word. This closes a longstanding sh security hole.
|
3930 | |
- ac_dummy="ifelse([$2], , $PATH, [$2])"
|
3931 | |
- for ac_dir in $ac_dummy; do
|
3932 | |
- IFS="$lt_save_ifs"
|
3933 | |
- test -z "$ac_dir" && ac_dir=.
|
3934 | |
- if test -f $ac_dir/$1; then
|
3935 | |
- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
|
3936 | |
- if test -n "$file_magic_test_file"; then
|
3937 | |
- case $deplibs_check_method in
|
3938 | |
- "file_magic "*)
|
3939 | |
- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
3940 | |
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
3941 | |
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
3942 | |
- $EGREP "$file_magic_regex" > /dev/null; then
|
3943 | |
- :
|
3944 | |
- else
|
3945 | |
- cat <<EOF 1>&2
|
3946 | |
|
3947 | |
-*** Warning: the command libtool uses to detect shared libraries,
|
3948 | |
-*** $file_magic_cmd, produces output that libtool cannot recognize.
|
3949 | |
-*** The result is that libtool may fail to recognize shared libraries
|
3950 | |
-*** as such. This will affect the creation of libtool libraries that
|
3951 | |
-*** depend on shared libraries, but programs linked with such libtool
|
3952 | |
-*** libraries will work regardless of this problem. Nevertheless, you
|
3953 | |
-*** may want to report the problem to your system manager and/or to
|
3954 | |
-*** bug-libtool@gnu.org
|
3955 | |
+darwin* | rhapsody*)
|
3956 | |
+ dynamic_linker="$host_os dyld"
|
3957 | |
+ version_type=darwin
|
3958 | |
+ need_lib_prefix=no
|
3959 | |
+ need_version=no
|
3960 | |
+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
3961 | |
+ soname_spec='${libname}${release}${major}$shared_ext'
|
3962 | |
+ shlibpath_overrides_runpath=yes
|
3963 | |
+ shlibpath_var=DYLD_LIBRARY_PATH
|
3964 | |
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
267 |
need_lib_prefix=unknown
|
|
268 |
hardcode_into_libs=no
|
|
269 |
|
|
270 |
@@ -2044,12 +2106,8 @@
|
|
271 |
shlibpath_overrides_runpath=yes
|
|
272 |
shlibpath_var=DYLD_LIBRARY_PATH
|
|
273 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
274 |
- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
|
275 |
- if test "$GCC" = yes; then
|
|
276 |
- 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"`
|
|
277 |
- else
|
|
278 |
- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
|
279 |
- fi
|
3965 | 280 |
+ m4_if([$1], [],[
|
3966 | 281 |
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
|
3967 | |
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
3968 | |
+ ;;
|
3969 | |
|
3970 | |
-EOF
|
3971 | |
- fi ;;
|
3972 | |
- esac
|
3973 | |
- fi
|
3974 | |
- break
|
3975 | |
- fi
|
3976 | |
- done
|
3977 | |
- IFS="$lt_save_ifs"
|
3978 | |
- MAGIC_CMD="$lt_save_MAGIC_CMD"
|
3979 | |
+dgux*)
|
3980 | |
+ version_type=linux
|
3981 | |
+ need_lib_prefix=no
|
3982 | |
+ need_version=no
|
3983 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
3984 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
3985 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
|
282 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
3986 | 283 |
;;
|
3987 | |
-esac])
|
3988 | |
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
3989 | |
-if test -n "$MAGIC_CMD"; then
|
3990 | |
- AC_MSG_RESULT($MAGIC_CMD)
|
3991 | |
-else
|
3992 | |
- AC_MSG_RESULT(no)
|
3993 | |
-fi
|
3994 | |
-])# AC_PATH_TOOL_PREFIX
|
3995 | |
|
3996 | |
+freebsd1*)
|
|
284 |
|
|
285 |
@@ -2103,7 +2161,7 @@
|
|
286 |
shlibpath_overrides_runpath=no
|
|
287 |
hardcode_into_libs=yes
|
|
288 |
;;
|
|
289 |
- freebsd*) # from 4.6 on
|
|
290 |
+ *) # from 4.6 on, and DragonFly
|
|
291 |
shlibpath_overrides_runpath=yes
|
|
292 |
hardcode_into_libs=yes
|
|
293 |
;;
|
|
294 |
@@ -2166,7 +2224,7 @@
|
|
295 |
postinstall_cmds='chmod 555 $lib'
|
|
296 |
;;
|
|
297 |
|
|
298 |
-interix3*)
|
|
299 |
+interix[[3-9]]*)
|
|
300 |
version_type=linux
|
|
301 |
need_lib_prefix=no
|
|
302 |
need_version=no
|
|
303 |
@@ -2237,7 +2295,7 @@
|
|
304 |
|
|
305 |
# Append ld.so.conf contents to the search path
|
|
306 |
if test -f /etc/ld.so.conf; then
|
|
307 |
- 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' ' '`
|
|
308 |
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
|
309 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
310 |
fi
|
|
311 |
|
|
312 |
@@ -2343,6 +2401,10 @@
|
|
313 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
314 |
;;
|
|
315 |
|
|
316 |
+rdos*)
|
3997 | 317 |
+ dynamic_linker=no
|
3998 | 318 |
+ ;;
|
3999 | |
|
4000 | |
-# AC_PATH_MAGIC
|
4001 | |
-# -------------
|
4002 | |
-# find a file program which can recognize a shared library
|
4003 | |
-AC_DEFUN([AC_PATH_MAGIC],
|
4004 | |
-[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
|
4005 | |
-if test -z "$lt_cv_path_MAGIC_CMD"; then
|
4006 | |
- if test -n "$ac_tool_prefix"; then
|
4007 | |
- AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
|
4008 | |
+freebsd* | dragonfly*)
|
4009 | |
+ # DragonFly does not have aout. When/if they implement a new
|
4010 | |
+ # versioning mechanism, adjust this.
|
4011 | |
+ if test -x /usr/bin/objformat; then
|
4012 | |
+ objformat=`/usr/bin/objformat`
|
4013 | |
else
|
4014 | |
- MAGIC_CMD=:
|
4015 | |
+ case $host_os in
|
4016 | |
+ freebsd[[123]]*) objformat=aout ;;
|
4017 | |
+ *) objformat=elf ;;
|
4018 | |
+ esac
|
4019 | |
fi
|
4020 | |
-fi
|
4021 | |
-])# AC_PATH_MAGIC
|
4022 | |
-
|
4023 | |
-
|
4024 | |
-# AC_PROG_LD
|
4025 | |
-# ----------
|
4026 | |
-# find the pathname to the GNU or non-GNU linker
|
4027 | |
-AC_DEFUN([AC_PROG_LD],
|
4028 | |
-[AC_ARG_WITH([gnu-ld],
|
4029 | |
- [AC_HELP_STRING([--with-gnu-ld],
|
4030 | |
- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
|
4031 | |
- [test "$withval" = no || with_gnu_ld=yes],
|
4032 | |
- [with_gnu_ld=no])
|
4033 | |
-AC_REQUIRE([LT_AC_PROG_SED])dnl
|
4034 | |
-AC_REQUIRE([AC_PROG_CC])dnl
|
4035 | |
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
4036 | |
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
4037 | |
-ac_prog=ld
|
4038 | |
-if test "$GCC" = yes; then
|
4039 | |
- # Check if gcc -print-prog-name=ld gives a path.
|
4040 | |
- AC_MSG_CHECKING([for ld used by $CC])
|
4041 | |
- case $host in
|
4042 | |
- *-*-mingw*)
|
4043 | |
- # gcc leaves a trailing carriage return which upsets mingw
|
4044 | |
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
4045 | |
- *)
|
4046 | |
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
4047 | |
- esac
|
4048 | |
- case $ac_prog in
|
4049 | |
- # Accept absolute paths.
|
4050 | |
- [[\\/]]* | ?:[[\\/]]*)
|
4051 | |
- re_direlt='/[[^/]][[^/]]*/\.\./'
|
4052 | |
- # Canonicalize the pathname of ld
|
4053 | |
- ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
4054 | |
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
4055 | |
- ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
4056 | |
- done
|
4057 | |
- test -z "$LD" && LD="$ac_prog"
|
4058 | |
+ version_type=freebsd-$objformat
|
4059 | |
+ case $version_type in
|
4060 | |
+ freebsd-elf*)
|
4061 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
4062 | |
+ need_version=no
|
4063 | |
+ need_lib_prefix=no
|
4064 | |
+ ;;
|
4065 | |
+ freebsd-*)
|
4066 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
4067 | |
+ need_version=yes
|
4068 | |
;;
|
4069 | |
- "")
|
4070 | |
- # If it fails, then pretend we aren't using GCC.
|
4071 | |
- ac_prog=ld
|
4072 | |
- ;;
|
4073 | |
- *)
|
4074 | |
- # If it is relative, then search for the first ld in PATH.
|
4075 | |
- with_gnu_ld=unknown
|
4076 | |
- ;;
|
4077 | |
esac
|
4078 | |
-elif test "$with_gnu_ld" = yes; then
|
4079 | |
- AC_MSG_CHECKING([for GNU ld])
|
4080 | |
-else
|
4081 | |
- AC_MSG_CHECKING([for non-GNU ld])
|
4082 | |
-fi
|
4083 | |
-AC_CACHE_VAL(lt_cv_path_LD,
|
4084 | |
-[if test -z "$LD"; then
|
4085 | |
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
4086 | |
- for ac_dir in $PATH; do
|
4087 | |
- IFS="$lt_save_ifs"
|
4088 | |
- test -z "$ac_dir" && ac_dir=.
|
4089 | |
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
4090 | |
- lt_cv_path_LD="$ac_dir/$ac_prog"
|
4091 | |
- # Check to see if the program is GNU ld. I'd rather use --version,
|
4092 | |
- # but apparently some variants of GNU ld only accept -v.
|
4093 | |
- # Break only if it was the GNU/non-GNU ld that we prefer.
|
4094 | |
- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
4095 | |
- *GNU* | *'with BFD'*)
|
4096 | |
- test "$with_gnu_ld" != no && break
|
4097 | |
- ;;
|
4098 | |
- *)
|
4099 | |
- test "$with_gnu_ld" != yes && break
|
4100 | |
- ;;
|
4101 | |
- esac
|
4102 | |
- fi
|
4103 | |
- done
|
4104 | |
- IFS="$lt_save_ifs"
|
4105 | |
-else
|
4106 | |
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
4107 | |
-fi])
|
4108 | |
-LD="$lt_cv_path_LD"
|
4109 | |
-if test -n "$LD"; then
|
4110 | |
- AC_MSG_RESULT($LD)
|
4111 | |
-else
|
4112 | |
- AC_MSG_RESULT(no)
|
4113 | |
-fi
|
4114 | |
-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
4115 | |
-AC_PROG_LD_GNU
|
4116 | |
-])# AC_PROG_LD
|
4117 | |
-
|
4118 | |
-
|
4119 | |
-# AC_PROG_LD_GNU
|
4120 | |
-# --------------
|
4121 | |
-AC_DEFUN([AC_PROG_LD_GNU],
|
4122 | |
-[AC_REQUIRE([AC_PROG_EGREP])dnl
|
4123 | |
-AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
|
4124 | |
-[# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
4125 | |
-case `$LD -v 2>&1 </dev/null` in
|
4126 | |
-*GNU* | *'with BFD'*)
|
4127 | |
- lt_cv_prog_gnu_ld=yes
|
4128 | |
- ;;
|
4129 | |
-*)
|
4130 | |
- lt_cv_prog_gnu_ld=no
|
4131 | |
- ;;
|
4132 | |
-esac])
|
4133 | |
-with_gnu_ld=$lt_cv_prog_gnu_ld
|
4134 | |
-])# AC_PROG_LD_GNU
|
4135 | |
-
|
4136 | |
-
|
4137 | |
-# AC_PROG_LD_RELOAD_FLAG
|
4138 | |
-# ----------------------
|
4139 | |
-# find reload flag for linker
|
4140 | |
-# -- PORTME Some linkers may need a different reload flag.
|
4141 | |
-AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
|
4142 | |
-[AC_CACHE_CHECK([for $LD option to reload object files],
|
4143 | |
- lt_cv_ld_reload_flag,
|
4144 | |
- [lt_cv_ld_reload_flag='-r'])
|
4145 | |
-reload_flag=$lt_cv_ld_reload_flag
|
4146 | |
-case $reload_flag in
|
4147 | |
-"" | " "*) ;;
|
4148 | |
-*) reload_flag=" $reload_flag" ;;
|
4149 | |
-esac
|
4150 | |
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
4151 | |
-case $host_os in
|
4152 | |
- darwin*)
|
4153 | |
- if test "$GCC" = yes; then
|
4154 | |
- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
4155 | |
- else
|
4156 | |
- reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
4157 | |
- fi
|
4158 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4159 | |
+ case $host_os in
|
4160 | |
+ freebsd2*)
|
4161 | |
+ shlibpath_overrides_runpath=yes
|
4162 | |
;;
|
4163 | |
-esac
|
4164 | |
-])# AC_PROG_LD_RELOAD_FLAG
|
4165 | |
-
|
4166 | |
-
|
4167 | |
-# AC_DEPLIBS_CHECK_METHOD
|
4168 | |
-# -----------------------
|
4169 | |
-# how to check for library dependencies
|
4170 | |
-# -- PORTME fill in with the dynamic library characteristics
|
4171 | |
-AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
|
4172 | |
-[AC_CACHE_CHECK([how to recognize dependent libraries],
|
4173 | |
-lt_cv_deplibs_check_method,
|
4174 | |
-[lt_cv_file_magic_cmd='$MAGIC_CMD'
|
4175 | |
-lt_cv_file_magic_test_file=
|
4176 | |
-lt_cv_deplibs_check_method='unknown'
|
4177 | |
-# Need to set the preceding variable on all platforms that support
|
4178 | |
-# interlibrary dependencies.
|
4179 | |
-# 'none' -- dependencies not supported.
|
4180 | |
-# `unknown' -- same as none, but documents that we really don't know.
|
4181 | |
-# 'pass_all' -- all dependencies passed with no checks.
|
4182 | |
-# 'test_compile' -- check by making test program.
|
4183 | |
-# 'file_magic [[regex]]' -- check by looking for files in library path
|
4184 | |
-# which responds to the $file_magic_cmd with a given extended regex.
|
4185 | |
-# If you have `file' or equivalent on your system and you're not sure
|
4186 | |
-# whether `pass_all' will *always* work, you probably want this one.
|
4187 | |
-
|
4188 | |
-case $host_os in
|
4189 | |
-aix4* | aix5*)
|
4190 | |
- lt_cv_deplibs_check_method=pass_all
|
4191 | |
- ;;
|
4192 | |
-
|
4193 | |
-beos*)
|
4194 | |
- lt_cv_deplibs_check_method=pass_all
|
4195 | |
- ;;
|
4196 | |
-
|
4197 | |
-bsdi[[45]]*)
|
4198 | |
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
|
4199 | |
- lt_cv_file_magic_cmd='/usr/bin/file -L'
|
4200 | |
- lt_cv_file_magic_test_file=/shlib/libc.so
|
4201 | |
- ;;
|
4202 | |
-
|
4203 | |
-cygwin*)
|
4204 | |
- # func_win32_libid is a shell function defined in ltmain.sh
|
4205 | |
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
4206 | |
- lt_cv_file_magic_cmd='func_win32_libid'
|
4207 | |
- ;;
|
4208 | |
-
|
4209 | |
-mingw* | pw32*)
|
4210 | |
- # Base MSYS/MinGW do not provide the 'file' command needed by
|
4211 | |
- # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
4212 | |
- # unless we find 'file', for example because we are cross-compiling.
|
4213 | |
- if ( file / ) >/dev/null 2>&1; then
|
4214 | |
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
4215 | |
- lt_cv_file_magic_cmd='func_win32_libid'
|
4216 | |
- else
|
4217 | |
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
4218 | |
- lt_cv_file_magic_cmd='$OBJDUMP -f'
|
4219 | |
- fi
|
4220 | |
- ;;
|
4221 | |
-
|
4222 | |
-darwin* | rhapsody*)
|
4223 | |
- lt_cv_deplibs_check_method=pass_all
|
4224 | |
- ;;
|
4225 | |
-
|
4226 | |
-freebsd* | dragonfly*)
|
4227 | |
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
4228 | |
- case $host_cpu in
|
4229 | |
- i*86 )
|
4230 | |
- # Not sure whether the presence of OpenBSD here was a mistake.
|
4231 | |
- # Let's accept both of them until this is cleared up.
|
4232 | |
- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
|
4233 | |
- lt_cv_file_magic_cmd=/usr/bin/file
|
4234 | |
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
4235 | |
- ;;
|
4236 | |
- esac
|
4237 | |
- else
|
4238 | |
- lt_cv_deplibs_check_method=pass_all
|
4239 | |
- fi
|
4240 | |
+ freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
4241 | |
+ shlibpath_overrides_runpath=yes
|
4242 | |
+ hardcode_into_libs=yes
|
4243 | |
+ ;;
|
4244 | |
+ freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
|
4245 | |
+ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
|
4246 | |
+ shlibpath_overrides_runpath=no
|
4247 | |
+ hardcode_into_libs=yes
|
4248 | |
+ ;;
|
4249 | |
+ *) # from 4.6 on, and DragonFly
|
4250 | |
+ shlibpath_overrides_runpath=yes
|
4251 | |
+ hardcode_into_libs=yes
|
4252 | |
+ ;;
|
4253 | |
+ esac
|
4254 | |
;;
|
4255 | |
|
4256 | |
gnu*)
|
4257 | |
- lt_cv_deplibs_check_method=pass_all
|
4258 | |
+ version_type=linux
|
4259 | |
+ need_lib_prefix=no
|
4260 | |
+ need_version=no
|
4261 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
4262 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4263 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4264 | |
+ hardcode_into_libs=yes
|
4265 | |
;;
|
4266 | |
|
4267 | |
-hpux10.20* | hpux11*)
|
4268 | |
- lt_cv_file_magic_cmd=/usr/bin/file
|
4269 | |
+hpux9* | hpux10* | hpux11*)
|
4270 | |
+ # Give a soname corresponding to the major version so that dld.sl refuses to
|
4271 | |
+ # link against other versions.
|
4272 | |
+ version_type=sunos
|
4273 | |
+ need_lib_prefix=no
|
4274 | |
+ need_version=no
|
4275 | |
case $host_cpu in
|
4276 | |
ia64*)
|
4277 | |
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
|
4278 | |
- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
4279 | |
- ;;
|
4280 | |
- hppa*64*)
|
4281 | |
- [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]']
|
4282 | |
- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
4283 | |
+ shrext_cmds='.so'
|
4284 | |
+ hardcode_into_libs=yes
|
4285 | |
+ dynamic_linker="$host_os dld.so"
|
4286 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4287 | |
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
4288 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
4289 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4290 | |
+ if test "X$HPUX_IA64_MODE" = X32; then
|
4291 | |
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
4292 | |
+ else
|
4293 | |
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
4294 | |
+ fi
|
4295 | |
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
4296 | |
;;
|
4297 | |
- *)
|
4298 | |
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
|
4299 | |
- lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
4300 | |
+ hppa*64*)
|
4301 | |
+ shrext_cmds='.sl'
|
4302 | |
+ hardcode_into_libs=yes
|
4303 | |
+ dynamic_linker="$host_os dld.sl"
|
4304 | |
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
4305 | |
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
4306 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
4307 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4308 | |
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
4309 | |
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
4310 | |
+ ;;
|
4311 | |
+ *)
|
4312 | |
+ shrext_cmds='.sl'
|
4313 | |
+ dynamic_linker="$host_os dld.sl"
|
4314 | |
+ shlibpath_var=SHLIB_PATH
|
4315 | |
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
4316 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
4317 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4318 | |
;;
|
4319 | |
esac
|
4320 | |
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
4321 | |
+ postinstall_cmds='chmod 555 $lib'
|
4322 | |
;;
|
4323 | |
|
4324 | |
interix[[3-9]]*)
|
4325 | |
- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
4326 | |
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
|
4327 | |
+ version_type=linux
|
4328 | |
+ need_lib_prefix=no
|
4329 | |
+ need_version=no
|
4330 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
4331 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4332 | |
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
4333 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4334 | |
+ shlibpath_overrides_runpath=no
|
4335 | |
+ hardcode_into_libs=yes
|
4336 | |
;;
|
4337 | |
|
4338 | |
irix5* | irix6* | nonstopux*)
|
4339 | |
- case $LD in
|
4340 | |
- *-32|*"-32 ") libmagic=32-bit;;
|
4341 | |
- *-n32|*"-n32 ") libmagic=N32;;
|
4342 | |
- *-64|*"-64 ") libmagic=64-bit;;
|
4343 | |
- *) libmagic=never-match;;
|
4344 | |
+ case $host_os in
|
4345 | |
+ nonstopux*) version_type=nonstopux ;;
|
4346 | |
+ *)
|
4347 | |
+ if test "$lt_cv_prog_gnu_ld" = yes; then
|
4348 | |
+ version_type=linux
|
4349 | |
+ else
|
4350 | |
+ version_type=irix
|
4351 | |
+ fi ;;
|
4352 | |
esac
|
4353 | |
- lt_cv_deplibs_check_method=pass_all
|
4354 | |
- ;;
|
4355 | |
+ need_lib_prefix=no
|
4356 | |
+ need_version=no
|
4357 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4358 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
4359 | |
+ case $host_os in
|
4360 | |
+ irix5* | nonstopux*)
|
4361 | |
+ libsuff= shlibsuff=
|
4362 | |
+ ;;
|
4363 | |
+ *)
|
4364 | |
+ case $LD in # libtool.m4 will add one of these switches to LD
|
4365 | |
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
4366 | |
+ libsuff= shlibsuff= libmagic=32-bit;;
|
4367 | |
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
4368 | |
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
|
4369 | |
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
4370 | |
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
4371 | |
+ *) libsuff= shlibsuff= libmagic=never-match;;
|
4372 | |
+ esac
|
4373 | |
+ ;;
|
4374 | |
+ esac
|
4375 | |
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
4376 | |
+ shlibpath_overrides_runpath=no
|
4377 | |
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
4378 | |
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
4379 | |
+ hardcode_into_libs=yes
|
4380 | |
+ ;;
|
4381 | |
+
|
4382 | |
+# No shared lib support for Linux oldld, aout, or coff.
|
4383 | |
+linux*oldld* | linux*aout* | linux*coff*)
|
4384 | |
+ dynamic_linker=no
|
4385 | |
+ ;;
|
4386 | |
|
4387 | |
# This must be Linux ELF.
|
4388 | |
linux* | k*bsd*-gnu)
|
4389 | |
- lt_cv_deplibs_check_method=pass_all
|
4390 | |
+ version_type=linux
|
4391 | |
+ need_lib_prefix=no
|
4392 | |
+ need_version=no
|
4393 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
4394 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4395 | |
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
4396 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4397 | |
+ shlibpath_overrides_runpath=no
|
4398 | |
+ # This implies no fast_install, which is unacceptable.
|
4399 | |
+ # Some rework will be needed to allow for fast_install
|
4400 | |
+ # before this can be enabled.
|
4401 | |
+ hardcode_into_libs=yes
|
4402 | |
+
|
4403 | |
+ # Append ld.so.conf contents to the search path
|
4404 | |
+ if test -f /etc/ld.so.conf; then
|
4405 | |
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
4406 | |
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
4407 | |
+ fi
|
4408 | |
+
|
4409 | |
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
|
4410 | |
+ # powerpc, because MkLinux only supported shared libraries with the
|
4411 | |
+ # GNU dynamic linker. Since this was broken with cross compilers,
|
4412 | |
+ # most powerpc-linux boxes support dynamic linking these days and
|
4413 | |
+ # people can always --disable-shared, the test was removed, and we
|
4414 | |
+ # assume the GNU/Linux dynamic linker is in use.
|
4415 | |
+ dynamic_linker='GNU/Linux ld.so'
|
4416 | |
;;
|
4417 | |
|
4418 | |
-netbsd* | netbsdelf*-gnu)
|
4419 | |
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
4420 | |
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
4421 | |
+netbsdelf*-gnu)
|
4422 | |
+ version_type=linux
|
4423 | |
+ need_lib_prefix=no
|
4424 | |
+ need_version=no
|
4425 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
4426 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4427 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4428 | |
+ shlibpath_overrides_runpath=no
|
4429 | |
+ hardcode_into_libs=yes
|
4430 | |
+ dynamic_linker='NetBSD ld.elf_so'
|
4431 | |
+ ;;
|
4432 | |
+
|
4433 | |
+netbsd*)
|
4434 | |
+ version_type=sunos
|
4435 | |
+ need_lib_prefix=no
|
4436 | |
+ need_version=no
|
4437 | |
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
4438 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
4439 | |
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
4440 | |
+ dynamic_linker='NetBSD (a.out) ld.so'
|
4441 | |
else
|
4442 | |
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
|
4443 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
4444 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4445 | |
+ dynamic_linker='NetBSD ld.elf_so'
|
4446 | |
fi
|
4447 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4448 | |
+ shlibpath_overrides_runpath=yes
|
4449 | |
+ hardcode_into_libs=yes
|
4450 | |
;;
|
4451 | |
|
4452 | |
-newos6*)
|
4453 | |
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
|
4454 | |
- lt_cv_file_magic_cmd=/usr/bin/file
|
4455 | |
- lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
4456 | |
+newsos6)
|
4457 | |
+ version_type=linux
|
4458 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
4459 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4460 | |
+ shlibpath_overrides_runpath=yes
|
4461 | |
;;
|
4462 | |
|
4463 | |
nto-qnx*)
|
4464 | |
- lt_cv_deplibs_check_method=unknown
|
4465 | |
+ version_type=linux
|
4466 | |
+ need_lib_prefix=no
|
4467 | |
+ need_version=no
|
4468 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
4469 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4470 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4471 | |
+ shlibpath_overrides_runpath=yes
|
4472 | |
;;
|
4473 | |
|
4474 | |
openbsd*)
|
4475 | |
+ version_type=sunos
|
4476 | |
+ sys_lib_dlsearch_path_spec="/usr/lib"
|
4477 | |
+ need_lib_prefix=no
|
4478 | |
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
4479 | |
+ case $host_os in
|
4480 | |
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
4481 | |
+ *) need_version=no ;;
|
4482 | |
+ esac
|
4483 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
4484 | |
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
4485 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4486 | |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
4487 | |
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
|
4488 | |
+ case $host_os in
|
4489 | |
+ openbsd2.[[89]] | openbsd2.[[89]].*)
|
4490 | |
+ shlibpath_overrides_runpath=no
|
4491 | |
+ ;;
|
4492 | |
+ *)
|
4493 | |
+ shlibpath_overrides_runpath=yes
|
4494 | |
+ ;;
|
4495 | |
+ esac
|
4496 | |
else
|
4497 | |
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
4498 | |
+ shlibpath_overrides_runpath=yes
|
4499 | |
fi
|
4500 | |
;;
|
4501 | |
|
4502 | |
+os2*)
|
4503 | |
+ libname_spec='$name'
|
4504 | |
+ shrext_cmds=".dll"
|
4505 | |
+ need_lib_prefix=no
|
4506 | |
+ library_names_spec='$libname${shared_ext} $libname.a'
|
4507 | |
+ dynamic_linker='OS/2 ld.exe'
|
4508 | |
+ shlibpath_var=LIBPATH
|
4509 | |
+ ;;
|
4510 | |
+
|
4511 | |
osf3* | osf4* | osf5*)
|
4512 | |
- lt_cv_deplibs_check_method=pass_all
|
4513 | |
+ version_type=osf
|
4514 | |
+ need_lib_prefix=no
|
4515 | |
+ need_version=no
|
4516 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4517 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
4518 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4519 | |
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
4520 | |
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
4521 | |
;;
|
4522 | |
|
4523 | |
rdos*)
|
4524 | |
- lt_cv_deplibs_check_method=pass_all
|
4525 | |
+ dynamic_linker=no
|
4526 | |
;;
|
4527 | |
|
|
319 |
+
|
4528 | 320 |
solaris*)
|
4529 | |
- lt_cv_deplibs_check_method=pass_all
|
4530 | |
+ version_type=linux
|
4531 | |
+ need_lib_prefix=no
|
4532 | |
+ need_version=no
|
4533 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
4534 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4535 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4536 | |
+ shlibpath_overrides_runpath=yes
|
4537 | |
+ hardcode_into_libs=yes
|
4538 | |
+ # ldd complains unless libraries are executable
|
4539 | |
+ postinstall_cmds='chmod +x $lib'
|
4540 | |
+ ;;
|
4541 | |
+
|
4542 | |
+sunos4*)
|
4543 | |
+ version_type=sunos
|
4544 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
4545 | |
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
4546 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4547 | |
+ shlibpath_overrides_runpath=yes
|
4548 | |
+ if test "$with_gnu_ld" = yes; then
|
4549 | |
+ need_lib_prefix=no
|
4550 | |
+ fi
|
4551 | |
+ need_version=yes
|
4552 | |
;;
|
4553 | |
|
4554 | |
sysv4 | sysv4.3*)
|
4555 | |
+ version_type=linux
|
4556 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
4557 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4558 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4559 | |
case $host_vendor in
|
4560 | |
- motorola)
|
4561 | |
- 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]]'
|
4562 | |
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
4563 | |
- ;;
|
4564 | |
- ncr)
|
4565 | |
- lt_cv_deplibs_check_method=pass_all
|
4566 | |
- ;;
|
4567 | |
- sequent)
|
4568 | |
- lt_cv_file_magic_cmd='/bin/file'
|
4569 | |
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
|
4570 | |
- ;;
|
4571 | |
- sni)
|
4572 | |
- lt_cv_file_magic_cmd='/bin/file'
|
4573 | |
- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
|
4574 | |
- lt_cv_file_magic_test_file=/lib/libc.so
|
4575 | |
- ;;
|
4576 | |
- siemens)
|
4577 | |
- lt_cv_deplibs_check_method=pass_all
|
4578 | |
- ;;
|
4579 | |
- pc)
|
4580 | |
- lt_cv_deplibs_check_method=pass_all
|
4581 | |
- ;;
|
4582 | |
+ sni)
|
4583 | |
+ shlibpath_overrides_runpath=no
|
4584 | |
+ need_lib_prefix=no
|
4585 | |
+ export_dynamic_flag_spec='${wl}-Blargedynsym'
|
4586 | |
+ runpath_var=LD_RUN_PATH
|
4587 | |
+ ;;
|
4588 | |
+ siemens)
|
4589 | |
+ need_lib_prefix=no
|
4590 | |
+ ;;
|
4591 | |
+ motorola)
|
4592 | |
+ need_lib_prefix=no
|
4593 | |
+ need_version=no
|
4594 | |
+ shlibpath_overrides_runpath=no
|
4595 | |
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
4596 | |
+ ;;
|
4597 | |
esac
|
4598 | |
;;
|
4599 | |
|
4600 | |
+sysv4*MP*)
|
4601 | |
+ if test -d /usr/nec ;then
|
4602 | |
+ version_type=linux
|
4603 | |
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
4604 | |
+ soname_spec='$libname${shared_ext}.$major'
|
4605 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4606 | |
+ fi
|
4607 | |
+ ;;
|
4608 | |
+
|
4609 | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
4610 | |
- lt_cv_deplibs_check_method=pass_all
|
4611 | |
+ version_type=freebsd-elf
|
4612 | |
+ need_lib_prefix=no
|
4613 | |
+ need_version=no
|
4614 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
4615 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4616 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4617 | |
+ hardcode_into_libs=yes
|
4618 | |
+ if test "$with_gnu_ld" = yes; then
|
4619 | |
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
4620 | |
+ shlibpath_overrides_runpath=no
|
4621 | |
+ else
|
4622 | |
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
4623 | |
+ shlibpath_overrides_runpath=yes
|
4624 | |
+ case $host_os in
|
4625 | |
+ sco3.2v5*)
|
4626 | |
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
4627 | |
+ ;;
|
4628 | |
+ esac
|
4629 | |
+ fi
|
4630 | |
+ sys_lib_dlsearch_path_spec='/usr/lib'
|
4631 | |
;;
|
4632 | |
-esac
|
4633 | |
-])
|
4634 | |
-file_magic_cmd=$lt_cv_file_magic_cmd
|
4635 | |
-deplibs_check_method=$lt_cv_deplibs_check_method
|
4636 | |
-test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
4637 | |
-])# AC_DEPLIBS_CHECK_METHOD
|
4638 | |
|
4639 | |
+uts4*)
|
4640 | |
+ version_type=linux
|
4641 | |
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
4642 | |
+ soname_spec='${libname}${release}${shared_ext}$major'
|
4643 | |
+ shlibpath_var=LD_LIBRARY_PATH
|
4644 | |
+ ;;
|
4645 | |
|
4646 | |
-# AC_PROG_NM
|
4647 | |
-# ----------
|
4648 | |
-# find the pathname to a BSD-compatible name lister
|
4649 | |
-AC_DEFUN([AC_PROG_NM],
|
4650 | |
-[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
|
4651 | |
-[if test -n "$NM"; then
|
4652 | |
- # Let the user override the test.
|
4653 | |
- lt_cv_path_NM="$NM"
|
4654 | |
-else
|
4655 | |
- lt_nm_to_check="${ac_tool_prefix}nm"
|
4656 | |
- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
4657 | |
- lt_nm_to_check="$lt_nm_to_check nm"
|
4658 | |
- fi
|
4659 | |
- for lt_tmp_nm in $lt_nm_to_check; do
|
4660 | |
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
4661 | |
- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
4662 | |
- IFS="$lt_save_ifs"
|
4663 | |
- test -z "$ac_dir" && ac_dir=.
|
4664 | |
- tmp_nm="$ac_dir/$lt_tmp_nm"
|
4665 | |
- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
4666 | |
- # Check to see if the nm accepts a BSD-compat flag.
|
4667 | |
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
4668 | |
- # nm: unknown option "B" ignored
|
4669 | |
- # Tru64's nm complains that /dev/null is an invalid object file
|
4670 | |
- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
4671 | |
- */dev/null* | *'Invalid file or object type'*)
|
4672 | |
- lt_cv_path_NM="$tmp_nm -B"
|
4673 | |
- break
|
4674 | |
- ;;
|
4675 | |
- *)
|
4676 | |
- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
4677 | |
- */dev/null*)
|
4678 | |
- lt_cv_path_NM="$tmp_nm -p"
|
4679 | |
- break
|
4680 | |
- ;;
|
4681 | |
- *)
|
4682 | |
- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
4683 | |
- continue # so that we can try to find one that supports BSD flags
|
4684 | |
- ;;
|
4685 | |
- esac
|
4686 | |
- ;;
|
4687 | |
- esac
|
4688 | |
- fi
|
4689 | |
- done
|
4690 | |
- IFS="$lt_save_ifs"
|
4691 | |
- done
|
4692 | |
- test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
4693 | |
-fi])
|
4694 | |
-NM="$lt_cv_path_NM"
|
4695 | |
-])# AC_PROG_NM
|
4696 | |
-
|
4697 | |
-
|
4698 | |
-# AC_CHECK_LIBM
|
4699 | |
-# -------------
|
4700 | |
-# check for math library
|
4701 | |
-AC_DEFUN([AC_CHECK_LIBM],
|
4702 | |
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
4703 | |
-LIBM=
|
4704 | |
-case $host in
|
4705 | |
-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
|
4706 | |
- # These system don't have libm, or don't need it
|
4707 | |
- ;;
|
4708 | |
-*-ncr-sysv4.3*)
|
4709 | |
- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
|
4710 | |
- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
|
4711 | |
- ;;
|
4712 | |
*)
|
4713 | |
- AC_CHECK_LIB(m, cos, LIBM="-lm")
|
4714 | |
+ dynamic_linker=no
|
4715 | |
;;
|
4716 | |
esac
|
4717 | |
-])# AC_CHECK_LIBM
|
4718 | |
+AC_MSG_RESULT([$dynamic_linker])
|
4719 | |
+test "$dynamic_linker" = no && can_build_shared=no
|
4720 | |
|
4721 | |
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
4722 | |
+if test "$GCC" = yes; then
|
4723 | |
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
4724 | |
+fi
|
4725 | |
+])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
4726 | |
|
4727 | |
-# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
|
4728 | |
-# -----------------------------------
|
4729 | |
-# sets LIBLTDL to the link flags for the libltdl convenience library and
|
4730 | |
-# LTDLINCL to the include flags for the libltdl header and adds
|
4731 | |
-# --enable-ltdl-convenience to the configure arguments. Note that
|
4732 | |
-# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
|
4733 | |
-# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
|
4734 | |
-# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
|
4735 | |
-# (note the single quotes!). If your package is not flat and you're not
|
4736 | |
-# using automake, define top_builddir and top_srcdir appropriately in
|
4737 | |
-# the Makefiles.
|
4738 | |
-AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
|
4739 | |
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
4740 | |
- case $enable_ltdl_convenience in
|
4741 | |
- no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
|
4742 | |
- "") enable_ltdl_convenience=yes
|
4743 | |
- ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
4744 | |
- esac
|
4745 | |
- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
|
4746 | |
- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
4747 | |
- # For backwards non-gettext consistent compatibility...
|
4748 | |
- INCLTDL="$LTDLINCL"
|
4749 | |
-])# AC_LIBLTDL_CONVENIENCE
|
4750 | |
|
4751 | |
+# _LT_AC_TAGCONFIG
|
4752 | |
+# ----------------
|
4753 | |
+AC_DEFUN([_LT_AC_TAGCONFIG],
|
|
321 |
version_type=linux
|
|
322 |
need_lib_prefix=no
|
|
323 |
@@ -2448,7 +2510,8 @@
|
|
324 |
# _LT_AC_TAGCONFIG
|
|
325 |
# ----------------
|
|
326 |
AC_DEFUN([_LT_AC_TAGCONFIG],
|
|
327 |
-[AC_ARG_WITH([tags],
|
4754 | 328 |
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
4755 | 329 |
+AC_ARG_WITH([tags],
|
4756 | |
+ [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
|
4757 | |
+ [include additional configurations @<:@automatic@:>@])],
|
4758 | |
+ [tagnames="$withval"])
|
4759 | |
|
4760 | |
-# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
|
4761 | |
-# -----------------------------------
|
4762 | |
-# sets LIBLTDL to the link flags for the libltdl installable library and
|
4763 | |
-# LTDLINCL to the include flags for the libltdl header and adds
|
4764 | |
-# --enable-ltdl-install to the configure arguments. Note that
|
4765 | |
-# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
|
4766 | |
-# and an installed libltdl is not found, it is assumed to be `libltdl'.
|
4767 | |
-# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
|
4768 | |
-# '${top_srcdir}/' (note the single quotes!). If your package is not
|
4769 | |
-# flat and you're not using automake, define top_builddir and top_srcdir
|
4770 | |
-# appropriately in the Makefiles.
|
4771 | |
-# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
|
4772 | |
-AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
|
4773 | |
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
4774 | |
- AC_CHECK_LIB(ltdl, lt_dlinit,
|
4775 | |
- [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
|
4776 | |
- [if test x"$enable_ltdl_install" = xno; then
|
4777 | |
- AC_MSG_WARN([libltdl not installed, but installation disabled])
|
4778 | |
- else
|
4779 | |
- enable_ltdl_install=yes
|
4780 | |
- fi
|
4781 | |
- ])
|
4782 | |
- if test x"$enable_ltdl_install" = x"yes"; then
|
4783 | |
- ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
4784 | |
- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
|
4785 | |
- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
4786 | |
- else
|
4787 | |
- ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
|
4788 | |
- LIBLTDL="-lltdl"
|
4789 | |
- LTDLINCL=
|
4790 | |
+if test -f "$ltmain" && test -n "$tagnames"; then
|
4791 | |
+ if test ! -f "${ofile}"; then
|
4792 | |
+ AC_MSG_WARN([output file `$ofile' does not exist])
|
4793 | |
fi
|
4794 | |
- # For backwards non-gettext consistent compatibility...
|
4795 | |
- INCLTDL="$LTDLINCL"
|
4796 | |
-])# AC_LIBLTDL_INSTALLABLE
|
4797 | |
|
4798 | |
+ if test -z "$LTCC"; then
|
4799 | |
+ eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
|
4800 | |
+ if test -z "$LTCC"; then
|
4801 | |
+ AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
|
4802 | |
+ else
|
4803 | |
+ AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
|
4804 | |
+ fi
|
4805 | |
+ fi
|
4806 | |
+ if test -z "$LTCFLAGS"; then
|
4807 | |
+ eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
|
4808 | |
+ fi
|
4809 | |
|
4810 | |
-# AC_LIBTOOL_CXX
|
4811 | |
-# --------------
|
4812 | |
-# enable support for C++ libraries
|
4813 | |
-AC_DEFUN([AC_LIBTOOL_CXX],
|
4814 | |
-[AC_REQUIRE([_LT_AC_LANG_CXX])
|
4815 | |
-])# AC_LIBTOOL_CXX
|
4816 | |
+ # Extract list of available tagged configurations in $ofile.
|
4817 | |
+ # Note that this assumes the entire list is on one line.
|
4818 | |
+ available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
|
4819 | |
|
4820 | |
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
4821 | |
+ for tagname in $tagnames; do
|
4822 | |
+ IFS="$lt_save_ifs"
|
4823 | |
+ # Check whether tagname contains only valid characters
|
4824 | |
+ case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
|
4825 | |
+ "") ;;
|
4826 | |
+ *) AC_MSG_ERROR([invalid tag name: $tagname])
|
4827 | |
+ ;;
|
4828 | |
+ esac
|
4829 | |
|
4830 | |
-# _LT_AC_LANG_CXX
|
4831 | |
-# ---------------
|
4832 | |
-AC_DEFUN([_LT_AC_LANG_CXX],
|
4833 | |
-[AC_REQUIRE([AC_PROG_CXX])
|
4834 | |
-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
|
4835 | |
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
|
4836 | |
-])# _LT_AC_LANG_CXX
|
4837 | |
+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
|
4838 | |
+ then
|
4839 | |
+ AC_MSG_ERROR([tag name \"$tagname\" already exists])
|
4840 | |
+ fi
|
4841 | |
|
4842 | |
-# _LT_AC_PROG_CXXCPP
|
4843 | |
-# ------------------
|
4844 | |
-AC_DEFUN([_LT_AC_PROG_CXXCPP],
|
4845 | |
-[
|
4846 | |
-AC_REQUIRE([AC_PROG_CXX])
|
4847 | |
-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
4848 | |
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
4849 | |
- (test "X$CXX" != "Xg++"))) ; then
|
4850 | |
- AC_PROG_CXXCPP
|
4851 | |
-fi
|
4852 | |
-])# _LT_AC_PROG_CXXCPP
|
4853 | |
+ # Update the list of available tags.
|
4854 | |
+ if test -n "$tagname"; then
|
4855 | |
+ echo appending configuration tag \"$tagname\" to $ofile
|
4856 | |
|
4857 | |
-# AC_LIBTOOL_F77
|
4858 | |
-# --------------
|
4859 | |
-# enable support for Fortran 77 libraries
|
4860 | |
-AC_DEFUN([AC_LIBTOOL_F77],
|
4861 | |
-[AC_REQUIRE([_LT_AC_LANG_F77])
|
4862 | |
-])# AC_LIBTOOL_F77
|
4863 | |
+ case $tagname in
|
4864 | |
+ CXX)
|
4865 | |
+ if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
4866 | |
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
4867 | |
+ (test "X$CXX" != "Xg++"))) ; then
|
4868 | |
+ AC_LIBTOOL_LANG_CXX_CONFIG
|
4869 | |
+ else
|
4870 | |
+ tagname=""
|
4871 | |
+ fi
|
4872 | |
+ ;;
|
4873 | |
|
4874 | |
+ F77)
|
4875 | |
+ if test -n "$F77" && test "X$F77" != "Xno"; then
|
4876 | |
+ AC_LIBTOOL_LANG_F77_CONFIG
|
4877 | |
+ else
|
4878 | |
+ tagname=""
|
4879 | |
+ fi
|
4880 | |
+ ;;
|
4881 | |
|
4882 | |
-# _LT_AC_LANG_F77
|
4883 | |
-# ---------------
|
4884 | |
-AC_DEFUN([_LT_AC_LANG_F77],
|
4885 | |
-[AC_REQUIRE([AC_PROG_F77])
|
4886 | |
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
|
4887 | |
-])# _LT_AC_LANG_F77
|
4888 | |
+ GCJ)
|
4889 | |
+ if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
|
4890 | |
+ AC_LIBTOOL_LANG_GCJ_CONFIG
|
4891 | |
+ else
|
4892 | |
+ tagname=""
|
4893 | |
+ fi
|
4894 | |
+ ;;
|
4895 | |
|
4896 | |
+ RC)
|
4897 | |
+ AC_LIBTOOL_LANG_RC_CONFIG
|
4898 | |
+ ;;
|
4899 | |
|
4900 | |
-# AC_LIBTOOL_GCJ
|
4901 | |
-# --------------
|
4902 | |
-# enable support for GCJ libraries
|
4903 | |
-AC_DEFUN([AC_LIBTOOL_GCJ],
|
4904 | |
-[AC_REQUIRE([_LT_AC_LANG_GCJ])
|
4905 | |
-])# AC_LIBTOOL_GCJ
|
4906 | |
+ *)
|
4907 | |
+ AC_MSG_ERROR([Unsupported tag name: $tagname])
|
4908 | |
+ ;;
|
4909 | |
+ esac
|
4910 | |
|
4911 | |
+ # Append the new tag name to the list of available tags.
|
4912 | |
+ if test -n "$tagname" ; then
|
4913 | |
+ available_tags="$available_tags $tagname"
|
4914 | |
+ fi
|
4915 | |
+ fi
|
4916 | |
+ done
|
4917 | |
+ IFS="$lt_save_ifs"
|
4918 | |
|
4919 | |
-# _LT_AC_LANG_GCJ
|
4920 | |
-# ---------------
|
4921 | |
-AC_DEFUN([_LT_AC_LANG_GCJ],
|
4922 | |
-[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
|
4923 | |
- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
|
4924 | |
- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
|
4925 | |
- [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
|
4926 | |
- [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
|
4927 | |
- [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
|
4928 | |
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
|
4929 | |
-])# _LT_AC_LANG_GCJ
|
4930 | |
-
|
4931 | |
-
|
4932 | |
-# AC_LIBTOOL_RC
|
4933 | |
-# -------------
|
4934 | |
-# enable support for Windows resource files
|
4935 | |
-AC_DEFUN([AC_LIBTOOL_RC],
|
4936 | |
-[AC_REQUIRE([LT_AC_PROG_RC])
|
4937 | |
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
|
4938 | |
-])# AC_LIBTOOL_RC
|
4939 | |
+ # Now substitute the updated list of available tags.
|
4940 | |
+ if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
|
4941 | |
+ mv "${ofile}T" "$ofile"
|
4942 | |
+ chmod +x "$ofile"
|
4943 | |
+ else
|
4944 | |
+ rm -f "${ofile}T"
|
4945 | |
+ AC_MSG_ERROR([unable to update list of available tagged configurations.])
|
4946 | |
+ fi
|
4947 | |
+fi
|
4948 | |
+])# _LT_AC_TAGCONFIG
|
4949 | |
|
4950 | |
|
4951 | |
-# AC_LIBTOOL_LANG_C_CONFIG
|
4952 | |
-# ------------------------
|
4953 | |
-# Ensure that the configuration vars for the C compiler are
|
4954 | |
-# suitably defined. Those variables are subsequently used by
|
4955 | |
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
4956 | |
-AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
|
4957 | |
-AC_DEFUN([_LT_AC_LANG_C_CONFIG],
|
4958 | |
-[lt_save_CC="$CC"
|
4959 | |
-AC_LANG_PUSH(C)
|
4960 | |
+# AC_LIBTOOL_DLOPEN
|
4961 | |
+# -----------------
|
4962 | |
+# enable checks for dlopen support
|
4963 | |
+AC_DEFUN([AC_LIBTOOL_DLOPEN],
|
4964 | |
+ [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
|
4965 | |
+])# AC_LIBTOOL_DLOPEN
|
4966 | |
|
4967 | |
-# Source file extension for C test sources.
|
4968 | |
-ac_ext=c
|
4969 | |
|
4970 | |
-# Object file extension for compiled C test sources.
|
4971 | |
-objext=o
|
4972 | |
-_LT_AC_TAGVAR(objext, $1)=$objext
|
4973 | |
+# AC_LIBTOOL_WIN32_DLL
|
4974 | |
+# --------------------
|
4975 | |
+# declare package support for building win32 DLLs
|
4976 | |
+AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
4977 | |
+[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
|
4978 | |
+])# AC_LIBTOOL_WIN32_DLL
|
4979 | |
|
4980 | |
-# Code to be used in simple compile tests
|
4981 | |
-lt_simple_compile_test_code="int some_variable = 0;"
|
4982 | |
|
4983 | |
-# Code to be used in simple link tests
|
4984 | |
-lt_simple_link_test_code='int main(){return(0);}'
|
4985 | |
+# AC_ENABLE_SHARED([DEFAULT])
|
4986 | |
+# ---------------------------
|
4987 | |
+# implement the --enable-shared flag
|
4988 | |
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
4989 | |
+AC_DEFUN([AC_ENABLE_SHARED],
|
4990 | |
+[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
|
4991 | |
+AC_ARG_ENABLE([shared],
|
4992 | |
+ [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
4993 | |
+ [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
|
4994 | |
+ [p=${PACKAGE-default}
|
4995 | |
+ case $enableval in
|
4996 | |
+ yes) enable_shared=yes ;;
|
4997 | |
+ no) enable_shared=no ;;
|
4998 | |
+ *)
|
4999 | |
+ enable_shared=no
|
5000 | |
+ # Look at the argument we got. We use all the common list separators.
|
5001 | |
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
5002 | |
+ for pkg in $enableval; do
|
5003 | |
+ IFS="$lt_save_ifs"
|
5004 | |
+ if test "X$pkg" = "X$p"; then
|
5005 | |
+ enable_shared=yes
|
5006 | |
+ fi
|
5007 | |
+ done
|
5008 | |
+ IFS="$lt_save_ifs"
|
5009 | |
+ ;;
|
5010 | |
+ esac],
|
5011 | |
+ [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
|
5012 | |
+])# AC_ENABLE_SHARED
|
5013 | |
|
5014 | |
-_LT_AC_SYS_COMPILER
|
5015 | |
|
5016 | |
-# save warnings/boilerplate of simple test code
|
5017 | |
-_LT_COMPILER_BOILERPLATE
|
5018 | |
-_LT_LINKER_BOILERPLATE
|
5019 | |
+# AC_DISABLE_SHARED
|
5020 | |
+# -----------------
|
5021 | |
+# set the default shared flag to --disable-shared
|
5022 | |
+AC_DEFUN([AC_DISABLE_SHARED],
|
5023 | |
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
5024 | |
+AC_ENABLE_SHARED(no)
|
5025 | |
+])# AC_DISABLE_SHARED
|
5026 | |
|
5027 | |
-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
|
5028 | |
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
5029 | |
-AC_LIBTOOL_PROG_CC_C_O($1)
|
5030 | |
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
5031 | |
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
5032 | |
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
5033 | |
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
5034 | |
-AC_LIBTOOL_SYS_LIB_STRIP
|
5035 | |
-AC_LIBTOOL_DLOPEN_SELF
|
5036 | |
|
5037 | |
-# Report which library types will actually be built
|
5038 | |
-AC_MSG_CHECKING([if libtool supports shared libraries])
|
5039 | |
-AC_MSG_RESULT([$can_build_shared])
|
5040 | |
+# AC_ENABLE_STATIC([DEFAULT])
|
5041 | |
+# ---------------------------
|
5042 | |
+# implement the --enable-static flag
|
5043 | |
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
5044 | |
+AC_DEFUN([AC_ENABLE_STATIC],
|
5045 | |
+[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
|
5046 | |
+AC_ARG_ENABLE([static],
|
5047 | |
+ [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
5048 | |
+ [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
|
5049 | |
+ [p=${PACKAGE-default}
|
5050 | |
+ case $enableval in
|
5051 | |
+ yes) enable_static=yes ;;
|
5052 | |
+ no) enable_static=no ;;
|
5053 | |
+ *)
|
5054 | |
+ enable_static=no
|
5055 | |
+ # Look at the argument we got. We use all the common list separators.
|
5056 | |
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
5057 | |
+ for pkg in $enableval; do
|
5058 | |
+ IFS="$lt_save_ifs"
|
5059 | |
+ if test "X$pkg" = "X$p"; then
|
5060 | |
+ enable_static=yes
|
5061 | |
+ fi
|
5062 | |
+ done
|
5063 | |
+ IFS="$lt_save_ifs"
|
5064 | |
+ ;;
|
5065 | |
+ esac],
|
5066 | |
+ [enable_static=]AC_ENABLE_STATIC_DEFAULT)
|
5067 | |
+])# AC_ENABLE_STATIC
|
5068 | |
|
5069 | |
-AC_MSG_CHECKING([whether to build shared libraries])
|
5070 | |
-test "$can_build_shared" = "no" && enable_shared=no
|
5071 | |
|
5072 | |
-# On AIX, shared libraries and static libraries use the same namespace, and
|
5073 | |
-# are all built from PIC.
|
5074 | |
-case $host_os in
|
5075 | |
-aix3*)
|
5076 | |
- test "$enable_shared" = yes && enable_static=no
|
5077 | |
- if test -n "$RANLIB"; then
|
5078 | |
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
5079 | |
- postinstall_cmds='$RANLIB $lib'
|
5080 | |
- fi
|
5081 | |
- ;;
|
5082 | |
+# AC_DISABLE_STATIC
|
5083 | |
+# -----------------
|
5084 | |
+# set the default static flag to --disable-static
|
5085 | |
+AC_DEFUN([AC_DISABLE_STATIC],
|
5086 | |
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
5087 | |
+AC_ENABLE_STATIC(no)
|
5088 | |
+])# AC_DISABLE_STATIC
|
5089 | |
|
5090 | |
-aix4* | aix5*)
|
5091 | |
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
5092 | |
- test "$enable_shared" = yes && enable_static=no
|
5093 | |
- fi
|
5094 | |
- ;;
|
5095 | |
-esac
|
5096 | |
-AC_MSG_RESULT([$enable_shared])
|
5097 | |
|
5098 | |
-AC_MSG_CHECKING([whether to build static libraries])
|
5099 | |
-# Make sure either enable_shared or enable_static is yes.
|
5100 | |
-test "$enable_shared" = yes || enable_static=yes
|
5101 | |
-AC_MSG_RESULT([$enable_static])
|
5102 | |
+# AC_ENABLE_FAST_INSTALL([DEFAULT])
|
5103 | |
+# ---------------------------------
|
5104 | |
+# implement the --enable-fast-install flag
|
5105 | |
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
5106 | |
+AC_DEFUN([AC_ENABLE_FAST_INSTALL],
|
5107 | |
+[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
|
5108 | |
+AC_ARG_ENABLE([fast-install],
|
5109 | |
+ [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
5110 | |
+ [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
5111 | |
+ [p=${PACKAGE-default}
|
5112 | |
+ case $enableval in
|
5113 | |
+ yes) enable_fast_install=yes ;;
|
5114 | |
+ no) enable_fast_install=no ;;
|
5115 | |
+ *)
|
5116 | |
+ enable_fast_install=no
|
5117 | |
+ # Look at the argument we got. We use all the common list separators.
|
5118 | |
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
5119 | |
+ for pkg in $enableval; do
|
5120 | |
+ IFS="$lt_save_ifs"
|
5121 | |
+ if test "X$pkg" = "X$p"; then
|
5122 | |
+ enable_fast_install=yes
|
5123 | |
+ fi
|
5124 | |
+ done
|
5125 | |
+ IFS="$lt_save_ifs"
|
5126 | |
+ ;;
|
5127 | |
+ esac],
|
5128 | |
+ [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
|
5129 | |
+])# AC_ENABLE_FAST_INSTALL
|
5130 | |
|
5131 | |
-AC_LIBTOOL_CONFIG($1)
|
5132 | |
|
5133 | |
-AC_LANG_POP
|
5134 | |
-CC="$lt_save_CC"
|
5135 | |
-])# AC_LIBTOOL_LANG_C_CONFIG
|
5136 | |
+# AC_DISABLE_FAST_INSTALL
|
5137 | |
+# -----------------------
|
5138 | |
+# set the default to --disable-fast-install
|
5139 | |
+AC_DEFUN([AC_DISABLE_FAST_INSTALL],
|
5140 | |
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
5141 | |
+AC_ENABLE_FAST_INSTALL(no)
|
5142 | |
+])# AC_DISABLE_FAST_INSTALL
|
5143 | |
|
5144 | |
|
5145 | |
-# AC_LIBTOOL_LANG_CXX_CONFIG
|
5146 | |
+# AC_LIBTOOL_PICMODE([MODE])
|
5147 | |
# --------------------------
|
5148 | |
-# Ensure that the configuration vars for the C compiler are
|
5149 | |
-# suitably defined. Those variables are subsequently used by
|
5150 | |
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
5151 | |
-AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
|
5152 | |
-AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
|
5153 | |
-[AC_LANG_PUSH(C++)
|
5154 | |
-AC_REQUIRE([AC_PROG_CXX])
|
5155 | |
-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
|
5156 | |
+# implement the --with-pic flag
|
5157 | |
+# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
5158 | |
+AC_DEFUN([AC_LIBTOOL_PICMODE],
|
5159 | |
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
5160 | |
+pic_mode=ifelse($#,1,$1,default)
|
5161 | |
+])# AC_LIBTOOL_PICMODE
|
5162 | |
|
5163 | |
-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
5164 | |
-_LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
5165 | |
-_LT_AC_TAGVAR(always_export_symbols, $1)=no
|
5166 | |
-_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
5167 | |
-_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
5168 | |
-_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
5169 | |
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
5170 | |
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
5171 | |
-_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
5172 | |
-_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
5173 | |
-_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
5174 | |
-_LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
5175 | |
-_LT_AC_TAGVAR(module_cmds, $1)=
|
5176 | |
-_LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
5177 | |
-_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
5178 | |
-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
5179 | |
-_LT_AC_TAGVAR(no_undefined_flag, $1)=
|
5180 | |
-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
5181 | |
-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
5182 | |
|
5183 | |
-# Dependencies to place before and after the object being linked:
|
5184 | |
-_LT_AC_TAGVAR(predep_objects, $1)=
|
5185 | |
-_LT_AC_TAGVAR(postdep_objects, $1)=
|
5186 | |
-_LT_AC_TAGVAR(predeps, $1)=
|
5187 | |
-_LT_AC_TAGVAR(postdeps, $1)=
|
5188 | |
-_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
|
5189 | |
+# AC_PROG_EGREP
|
5190 | |
+# -------------
|
5191 | |
+# This is predefined starting with Autoconf 2.54, so this conditional
|
5192 | |
+# definition can be removed once we require Autoconf 2.54 or later.
|
5193 | |
+m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
|
5194 | |
+[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
|
5195 | |
+ [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
5196 | |
+ then ac_cv_prog_egrep='grep -E'
|
5197 | |
+ else ac_cv_prog_egrep='egrep'
|
5198 | |
+ fi])
|
5199 | |
+ EGREP=$ac_cv_prog_egrep
|
5200 | |
+ AC_SUBST([EGREP])
|
5201 | |
+])])
|
5202 | |
|
5203 | |
-# Source file extension for C++ test sources.
|
5204 | |
-ac_ext=cpp
|
5205 | |
|
5206 | |
-# Object file extension for compiled C++ test sources.
|
5207 | |
-objext=o
|
5208 | |
-_LT_AC_TAGVAR(objext, $1)=$objext
|
5209 | |
+# AC_PATH_TOOL_PREFIX
|
5210 | |
+# -------------------
|
|
330 |
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
|
|
331 |
[include additional configurations @<:@automatic@:>@])],
|
|
332 |
[tagnames="$withval"])
|
|
333 |
@@ -2709,7 +2772,7 @@
|
|
334 |
|
|
335 |
# AC_PATH_TOOL_PREFIX
|
|
336 |
# -------------------
|
|
337 |
-# find a file program which can recognise shared library
|
5211 | 338 |
+# find a file program which can recognize shared library
|
5212 | |
+AC_DEFUN([AC_PATH_TOOL_PREFIX],
|
5213 | |
+[AC_REQUIRE([AC_PROG_EGREP])dnl
|
5214 | |
+AC_MSG_CHECKING([for $1])
|
5215 | |
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
|
5216 | |
+[case $MAGIC_CMD in
|
5217 | |
+[[\\/*] | ?:[\\/]*])
|
5218 | |
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
5219 | |
+ ;;
|
5220 | |
+*)
|
5221 | |
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
|
5222 | |
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
5223 | |
+dnl $ac_dummy forces splitting on constant user-supplied paths.
|
5224 | |
+dnl POSIX.2 word splitting is done only on the output of word expansions,
|
5225 | |
+dnl not every word. This closes a longstanding sh security hole.
|
5226 | |
+ ac_dummy="ifelse([$2], , $PATH, [$2])"
|
5227 | |
+ for ac_dir in $ac_dummy; do
|
5228 | |
+ IFS="$lt_save_ifs"
|
5229 | |
+ test -z "$ac_dir" && ac_dir=.
|
5230 | |
+ if test -f $ac_dir/$1; then
|
5231 | |
+ lt_cv_path_MAGIC_CMD="$ac_dir/$1"
|
5232 | |
+ if test -n "$file_magic_test_file"; then
|
5233 | |
+ case $deplibs_check_method in
|
5234 | |
+ "file_magic "*)
|
5235 | |
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
5236 | |
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
5237 | |
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
5238 | |
+ $EGREP "$file_magic_regex" > /dev/null; then
|
5239 | |
+ :
|
5240 | |
+ else
|
5241 | |
+ cat <<EOF 1>&2
|
5242 | |
|
5243 | |
-# Code to be used in simple compile tests
|
5244 | |
-lt_simple_compile_test_code="int some_variable = 0;"
|
5245 | |
+*** Warning: the command libtool uses to detect shared libraries,
|
5246 | |
+*** $file_magic_cmd, produces output that libtool cannot recognize.
|
5247 | |
+*** The result is that libtool may fail to recognize shared libraries
|
5248 | |
+*** as such. This will affect the creation of libtool libraries that
|
5249 | |
+*** depend on shared libraries, but programs linked with such libtool
|
5250 | |
+*** libraries will work regardless of this problem. Nevertheless, you
|
5251 | |
+*** may want to report the problem to your system manager and/or to
|
5252 | |
+*** bug-libtool@gnu.org
|
5253 | |
|
5254 | |
-# Code to be used in simple link tests
|
5255 | |
-lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
|
5256 | |
+EOF
|
5257 | |
+ fi ;;
|
5258 | |
+ esac
|
5259 | |
+ fi
|
5260 | |
+ break
|
5261 | |
+ fi
|
5262 | |
+ done
|
5263 | |
+ IFS="$lt_save_ifs"
|
5264 | |
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
|
5265 | |
+ ;;
|
5266 | |
+esac])
|
5267 | |
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
5268 | |
+if test -n "$MAGIC_CMD"; then
|
5269 | |
+ AC_MSG_RESULT($MAGIC_CMD)
|
5270 | |
+else
|
5271 | |
+ AC_MSG_RESULT(no)
|
5272 | |
+fi
|
5273 | |
+])# AC_PATH_TOOL_PREFIX
|
5274 | |
|
5275 | |
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
5276 | |
-_LT_AC_SYS_COMPILER
|
5277 | |
|
5278 | |
-# save warnings/boilerplate of simple test code
|
5279 | |
-_LT_COMPILER_BOILERPLATE
|
5280 | |
-_LT_LINKER_BOILERPLATE
|
5281 | |
+# AC_PATH_MAGIC
|
5282 | |
+# -------------
|
|
339 |
AC_DEFUN([AC_PATH_TOOL_PREFIX],
|
|
340 |
[AC_REQUIRE([AC_PROG_EGREP])dnl
|
|
341 |
AC_MSG_CHECKING([for $1])
|
|
342 |
@@ -2772,7 +2835,7 @@
|
|
343 |
|
|
344 |
# AC_PATH_MAGIC
|
|
345 |
# -------------
|
|
346 |
-# find a file program which can recognise a shared library
|
5283 | 347 |
+# find a file program which can recognize a shared library
|
5284 | |
+AC_DEFUN([AC_PATH_MAGIC],
|
5285 | |
+[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
|
5286 | |
+if test -z "$lt_cv_path_MAGIC_CMD"; then
|
5287 | |
+ if test -n "$ac_tool_prefix"; then
|
5288 | |
+ AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
|
5289 | |
+ else
|
5290 | |
+ MAGIC_CMD=:
|
5291 | |
+ fi
|
5292 | |
+fi
|
5293 | |
+])# AC_PATH_MAGIC
|
5294 | |
|
5295 | |
-# Allow CC to be a program name with arguments.
|
5296 | |
-lt_save_CC=$CC
|
5297 | |
-lt_save_LD=$LD
|
5298 | |
-lt_save_GCC=$GCC
|
5299 | |
-GCC=$GXX
|
5300 | |
-lt_save_with_gnu_ld=$with_gnu_ld
|
5301 | |
-lt_save_path_LD=$lt_cv_path_LD
|
5302 | |
-if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
5303 | |
- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
5304 | |
+
|
5305 | |
+# AC_PROG_LD
|
5306 | |
+# ----------
|
5307 | |
+# find the pathname to the GNU or non-GNU linker
|
5308 | |
+AC_DEFUN([AC_PROG_LD],
|
5309 | |
+[AC_ARG_WITH([gnu-ld],
|
5310 | |
+ [AC_HELP_STRING([--with-gnu-ld],
|
5311 | |
+ [assume the C compiler uses GNU ld @<:@default=no@:>@])],
|
5312 | |
+ [test "$withval" = no || with_gnu_ld=yes],
|
5313 | |
+ [with_gnu_ld=no])
|
5314 | |
+AC_REQUIRE([LT_AC_PROG_SED])dnl
|
5315 | |
+AC_REQUIRE([AC_PROG_CC])dnl
|
5316 | |
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
5317 | |
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
5318 | |
+ac_prog=ld
|
5319 | |
+if test "$GCC" = yes; then
|
5320 | |
+ # Check if gcc -print-prog-name=ld gives a path.
|
5321 | |
+ AC_MSG_CHECKING([for ld used by $CC])
|
5322 | |
+ case $host in
|
5323 | |
+ *-*-mingw*)
|
5324 | |
+ # gcc leaves a trailing carriage return which upsets mingw
|
5325 | |
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
5326 | |
+ *)
|
5327 | |
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
5328 | |
+ esac
|
5329 | |
+ case $ac_prog in
|
5330 | |
+ # Accept absolute paths.
|
5331 | |
+ [[\\/]]* | ?:[[\\/]]*)
|
5332 | |
+ re_direlt='/[[^/]][[^/]]*/\.\./'
|
5333 | |
+ # Canonicalize the pathname of ld
|
5334 | |
+ ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
5335 | |
+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
5336 | |
+ ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
5337 | |
+ done
|
5338 | |
+ test -z "$LD" && LD="$ac_prog"
|
5339 | |
+ ;;
|
5340 | |
+ "")
|
5341 | |
+ # If it fails, then pretend we aren't using GCC.
|
5342 | |
+ ac_prog=ld
|
5343 | |
+ ;;
|
5344 | |
+ *)
|
5345 | |
+ # If it is relative, then search for the first ld in PATH.
|
5346 | |
+ with_gnu_ld=unknown
|
5347 | |
+ ;;
|
5348 | |
+ esac
|
5349 | |
+elif test "$with_gnu_ld" = yes; then
|
5350 | |
+ AC_MSG_CHECKING([for GNU ld])
|
5351 | |
else
|
5352 | |
- $as_unset lt_cv_prog_gnu_ld
|
5353 | |
+ AC_MSG_CHECKING([for non-GNU ld])
|
5354 | |
fi
|
5355 | |
-if test -n "${lt_cv_path_LDCXX+set}"; then
|
5356 | |
- lt_cv_path_LD=$lt_cv_path_LDCXX
|
5357 | |
+AC_CACHE_VAL(lt_cv_path_LD,
|
5358 | |
+[if test -z "$LD"; then
|
5359 | |
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
5360 | |
+ for ac_dir in $PATH; do
|
5361 | |
+ IFS="$lt_save_ifs"
|
5362 | |
+ test -z "$ac_dir" && ac_dir=.
|
5363 | |
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
5364 | |
+ lt_cv_path_LD="$ac_dir/$ac_prog"
|
5365 | |
+ # Check to see if the program is GNU ld. I'd rather use --version,
|
5366 | |
+ # but apparently some variants of GNU ld only accept -v.
|
5367 | |
+ # Break only if it was the GNU/non-GNU ld that we prefer.
|
5368 | |
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
5369 | |
+ *GNU* | *'with BFD'*)
|
5370 | |
+ test "$with_gnu_ld" != no && break
|
5371 | |
+ ;;
|
5372 | |
+ *)
|
5373 | |
+ test "$with_gnu_ld" != yes && break
|
5374 | |
+ ;;
|
5375 | |
+ esac
|
5376 | |
+ fi
|
5377 | |
+ done
|
5378 | |
+ IFS="$lt_save_ifs"
|
5379 | |
else
|
5380 | |
- $as_unset lt_cv_path_LD
|
5381 | |
-fi
|
5382 | |
-test -z "${LDCXX+set}" || LD=$LDCXX
|
5383 | |
-CC=${CXX-"c++"}
|
5384 | |
-compiler=$CC
|
5385 | |
-_LT_AC_TAGVAR(compiler, $1)=$CC
|
5386 | |
-_LT_CC_BASENAME([$compiler])
|
5387 | |
-
|
5388 | |
-# We don't want -fno-exception wen compiling C++ code, so set the
|
5389 | |
-# no_builtin_flag separately
|
5390 | |
-if test "$GXX" = yes; then
|
5391 | |
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
5392 | |
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
5393 | |
+fi])
|
5394 | |
+LD="$lt_cv_path_LD"
|
5395 | |
+if test -n "$LD"; then
|
5396 | |
+ AC_MSG_RESULT($LD)
|
5397 | |
else
|
5398 | |
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
5399 | |
+ AC_MSG_RESULT(no)
|
5400 | |
fi
|
5401 | |
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
5402 | |
+AC_PROG_LD_GNU
|
5403 | |
+])# AC_PROG_LD
|
5404 | |
|
5405 | |
-if test "$GXX" = yes; then
|
5406 | |
- # Set up default GNU C++ configuration
|
5407 | |
-
|
5408 | |
- AC_PROG_LD
|
5409 | |
-
|
5410 | |
- # Check if GNU C++ uses GNU ld as the underlying linker, since the
|
5411 | |
- # archiving commands below assume that GNU ld is being used.
|
5412 | |
- if test "$with_gnu_ld" = yes; then
|
5413 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
5414 | |
- _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'
|
5415 | |
|
5416 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
5417 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
5418 | |
+# AC_PROG_LD_GNU
|
5419 | |
+# --------------
|
5420 | |
+AC_DEFUN([AC_PROG_LD_GNU],
|
5421 | |
+[AC_REQUIRE([AC_PROG_EGREP])dnl
|
5422 | |
+AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
|
5423 | |
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
5424 | |
+case `$LD -v 2>&1 </dev/null` in
|
5425 | |
+*GNU* | *'with BFD'*)
|
5426 | |
+ lt_cv_prog_gnu_ld=yes
|
5427 | |
+ ;;
|
5428 | |
+*)
|
5429 | |
+ lt_cv_prog_gnu_ld=no
|
5430 | |
+ ;;
|
5431 | |
+esac])
|
5432 | |
+with_gnu_ld=$lt_cv_prog_gnu_ld
|
5433 | |
+])# AC_PROG_LD_GNU
|
5434 | |
|
5435 | |
- # If archive_cmds runs LD, not CC, wlarc should be empty
|
5436 | |
- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
5437 | |
- # investigate it a little bit more. (MM)
|
5438 | |
- wlarc='${wl}'
|
5439 | |
|
5440 | |
- # ancient GNU ld didn't support --whole-archive et. al.
|
5441 | |
- if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
|
5442 | |
- grep 'no-whole-archive' > /dev/null; then
|
5443 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
5444 | |
+# AC_PROG_LD_RELOAD_FLAG
|
5445 | |
+# ----------------------
|
5446 | |
+# find reload flag for linker
|
5447 | |
+# -- PORTME Some linkers may need a different reload flag.
|
5448 | |
+AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
|
5449 | |
+[AC_CACHE_CHECK([for $LD option to reload object files],
|
5450 | |
+ lt_cv_ld_reload_flag,
|
5451 | |
+ [lt_cv_ld_reload_flag='-r'])
|
5452 | |
+reload_flag=$lt_cv_ld_reload_flag
|
5453 | |
+case $reload_flag in
|
5454 | |
+"" | " "*) ;;
|
5455 | |
+*) reload_flag=" $reload_flag" ;;
|
5456 | |
+esac
|
5457 | |
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
5458 | |
+case $host_os in
|
5459 | |
+ darwin*)
|
5460 | |
+ if test "$GCC" = yes; then
|
5461 | |
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
5462 | |
else
|
5463 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
5464 | |
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
5465 | |
fi
|
5466 | |
- else
|
5467 | |
- with_gnu_ld=no
|
5468 | |
- wlarc=
|
5469 | |
+ ;;
|
5470 | |
+esac
|
5471 | |
+])# AC_PROG_LD_RELOAD_FLAG
|
5472 | |
|
5473 | |
- # A generic and very simple default shared library creation
|
5474 | |
- # command for GNU C++ for the case where it uses the native
|
5475 | |
- # linker, instead of GNU ld. If possible, this setting should
|
5476 | |
- # overridden to take advantage of the native linker features on
|
5477 | |
- # the platform it is being used on.
|
5478 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
5479 | |
- fi
|
5480 | |
-
|
5481 | |
- # Commands to make compiler produce verbose output that lists
|
5482 | |
- # what "hidden" libraries, object files and flags are used when
|
5483 | |
- # linking a shared library.
|
5484 | |
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
5485 | |
|
5486 | |
-else
|
5487 | |
- GXX=no
|
5488 | |
- with_gnu_ld=no
|
5489 | |
- wlarc=
|
5490 | |
-fi
|
5491 | |
+# AC_DEPLIBS_CHECK_METHOD
|
5492 | |
+# -----------------------
|
5493 | |
+# how to check for library dependencies
|
5494 | |
+# -- PORTME fill in with the dynamic library characteristics
|
5495 | |
+AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
|
|
348 |
AC_DEFUN([AC_PATH_MAGIC],
|
|
349 |
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
|
|
350 |
if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|
351 |
@@ -2919,7 +2982,7 @@
|
|
352 |
# how to check for library dependencies
|
|
353 |
# -- PORTME fill in with the dynamic library characteristics
|
|
354 |
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
|
|
355 |
-[AC_CACHE_CHECK([how to recognise dependent libraries],
|
5496 | 356 |
+[AC_CACHE_CHECK([how to recognize dependent libraries],
|
5497 | |
+lt_cv_deplibs_check_method,
|
5498 | |
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
|
5499 | |
+lt_cv_file_magic_test_file=
|
5500 | |
+lt_cv_deplibs_check_method='unknown'
|
5501 | |
+# Need to set the preceding variable on all platforms that support
|
5502 | |
+# interlibrary dependencies.
|
5503 | |
+# 'none' -- dependencies not supported.
|
5504 | |
+# `unknown' -- same as none, but documents that we really don't know.
|
5505 | |
+# 'pass_all' -- all dependencies passed with no checks.
|
5506 | |
+# 'test_compile' -- check by making test program.
|
5507 | |
+# 'file_magic [[regex]]' -- check by looking for files in library path
|
5508 | |
+# which responds to the $file_magic_cmd with a given extended regex.
|
5509 | |
+# If you have `file' or equivalent on your system and you're not sure
|
5510 | |
+# whether `pass_all' will *always* work, you probably want this one.
|
5511 | |
|
5512 | |
-# PORTME: fill in a description of your system's C++ link characteristics
|
5513 | |
-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
5514 | |
-_LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
5515 | |
case $host_os in
|
5516 | |
- aix3*)
|
5517 | |
- # FIXME: insert proper C++ library support
|
5518 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
5519 | |
- ;;
|
5520 | |
- aix4* | aix5*)
|
5521 | |
- if test "$host_cpu" = ia64; then
|
5522 | |
- # On IA64, the linker does run time linking by default, so we don't
|
5523 | |
- # have to do anything special.
|
5524 | |
- aix_use_runtimelinking=no
|
5525 | |
- exp_sym_flag='-Bexport'
|
5526 | |
- no_entry_flag=""
|
5527 | |
- else
|
5528 | |
- aix_use_runtimelinking=no
|
5529 | |
+aix4* | aix5*)
|
5530 | |
+ lt_cv_deplibs_check_method=pass_all
|
5531 | |
+ ;;
|
5532 | |
|
5533 | |
- # Test if we are trying to use run time linking or normal
|
5534 | |
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
5535 | |
- # need to do runtime linking.
|
5536 | |
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
|
5537 | |
- for ld_flag in $LDFLAGS; do
|
5538 | |
- case $ld_flag in
|
5539 | |
- *-brtl*)
|
5540 | |
- aix_use_runtimelinking=yes
|
5541 | |
- break
|
5542 | |
- ;;
|
5543 | |
- esac
|
5544 | |
- done
|
5545 | |
- ;;
|
5546 | |
- esac
|
5547 | |
+beos*)
|
5548 | |
+ lt_cv_deplibs_check_method=pass_all
|
5549 | |
+ ;;
|
5550 | |
|
5551 | |
- exp_sym_flag='-bexport'
|
5552 | |
- no_entry_flag='-bnoentry'
|
5553 | |
- fi
|
5554 | |
+bsdi[[45]]*)
|
5555 | |
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
|
5556 | |
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
|
5557 | |
+ lt_cv_file_magic_test_file=/shlib/libc.so
|
5558 | |
+ ;;
|
5559 | |
|
5560 | |
- # When large executables or shared objects are built, AIX ld can
|
5561 | |
- # have problems creating the table of contents. If linking a library
|
5562 | |
- # or program results in "error TOC overflow" add -mminimal-toc to
|
5563 | |
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
5564 | |
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
5565 | |
+cygwin*)
|
5566 | |
+ # func_win32_libid is a shell function defined in ltmain.sh
|
5567 | |
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
5568 | |
+ lt_cv_file_magic_cmd='func_win32_libid'
|
5569 | |
+ ;;
|
5570 | |
|
5571 | |
- _LT_AC_TAGVAR(archive_cmds, $1)=''
|
5572 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
5573 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
5574 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
5575 | |
+mingw* | pw32*)
|
5576 | |
+ # Base MSYS/MinGW do not provide the 'file' command needed by
|
|
357 |
lt_cv_deplibs_check_method,
|
|
358 |
[lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|
359 |
lt_cv_file_magic_test_file=
|
|
360 |
@@ -2958,9 +3021,15 @@
|
|
361 |
|
|
362 |
mingw* | pw32*)
|
|
363 |
# Base MSYS/MinGW do not provide the 'file' command needed by
|
|
364 |
- # func_win32_libid shell function, so use a weaker test based on 'objdump'.
|
|
365 |
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
366 |
- lt_cv_file_magic_cmd='$OBJDUMP -f'
|
5577 | 367 |
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
5578 | 368 |
+ # unless we find 'file', for example because we are cross-compiling.
|
5579 | 369 |
+ if ( file / ) >/dev/null 2>&1; then
|
|
5583 | 373 |
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
5584 | 374 |
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
|
5585 | 375 |
+ fi
|
5586 | |
+ ;;
|
5587 | |
|
5588 | |
- if test "$GXX" = yes; then
|
5589 | |
- case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
5590 | |
- # We only want to do this on AIX 4.2 and lower, the check
|
5591 | |
- # below for broken collect2 doesn't work under 4.3+
|
5592 | |
- collect2name=`${CC} -print-prog-name=collect2`
|
5593 | |
- if test -f "$collect2name" && \
|
5594 | |
- strings "$collect2name" | grep resolve_lib_name >/dev/null
|
5595 | |
- then
|
5596 | |
- # We have reworked collect2
|
5597 | |
- :
|
5598 | |
- else
|
5599 | |
- # We have old collect2
|
5600 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
5601 | |
- # It fails to find uninstalled libraries when the uninstalled
|
5602 | |
- # path is not listed in the libpath. Setting hardcode_minus_L
|
5603 | |
- # to unsupported forces relinking
|
5604 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
5605 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
5606 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
5607 | |
- fi
|
5608 | |
- ;;
|
5609 | |
- esac
|
5610 | |
- shared_flag='-shared'
|
5611 | |
- if test "$aix_use_runtimelinking" = yes; then
|
5612 | |
- shared_flag="$shared_flag "'${wl}-G'
|
5613 | |
- fi
|
5614 | |
- else
|
5615 | |
- # not using gcc
|
5616 | |
- if test "$host_cpu" = ia64; then
|
5617 | |
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
5618 | |
- # chokes on -Wl,-G. The following line is correct:
|
5619 | |
- shared_flag='-G'
|
5620 | |
- else
|
5621 | |
- if test "$aix_use_runtimelinking" = yes; then
|
5622 | |
- shared_flag='${wl}-G'
|
5623 | |
- else
|
5624 | |
- shared_flag='${wl}-bM:SRE'
|
5625 | |
- fi
|
5626 | |
- fi
|
5627 | |
- fi
|
5628 | |
+darwin* | rhapsody*)
|
5629 | |
+ lt_cv_deplibs_check_method=pass_all
|
5630 | |
+ ;;
|
5631 | |
|
5632 | |
- # It seems that -bexpall does not export symbols beginning with
|
5633 | |
- # underscore (_), so it is better to generate a list of symbols to export.
|
5634 | |
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
5635 | |
- if test "$aix_use_runtimelinking" = yes; then
|
5636 | |
- # Warning - without using the other runtime loading flags (-brtl),
|
5637 | |
- # -berok will link without error, but may produce a broken library.
|
5638 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
|
5639 | |
- # Determine the default libpath from the value encoded in an empty executable.
|
5640 | |
- _LT_AC_SYS_LIBPATH_AIX
|
5641 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
5642 | |
+freebsd* | dragonfly*)
|
5643 | |
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
5644 | |
+ case $host_cpu in
|
5645 | |
+ i*86 )
|
5646 | |
+ # Not sure whether the presence of OpenBSD here was a mistake.
|
5647 | |
+ # Let's accept both of them until this is cleared up.
|
5648 | |
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
|
5649 | |
+ lt_cv_file_magic_cmd=/usr/bin/file
|
5650 | |
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
5651 | |
+ ;;
|
5652 | |
+ esac
|
5653 | |
+ else
|
5654 | |
+ lt_cv_deplibs_check_method=pass_all
|
5655 | |
+ fi
|
5656 | |
+ ;;
|
5657 | |
|
5658 | |
- _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"
|
5659 | |
- else
|
5660 | |
- if test "$host_cpu" = ia64; then
|
5661 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
5662 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
5663 | |
- _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"
|
5664 | |
- else
|
5665 | |
- # Determine the default libpath from the value encoded in an empty executable.
|
5666 | |
- _LT_AC_SYS_LIBPATH_AIX
|
5667 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
5668 | |
- # Warning - without using the other run time loading flags,
|
5669 | |
- # -berok will link without error, but may produce a broken library.
|
5670 | |
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
5671 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
5672 | |
- # Exported symbols can be pulled into shared objects from archives
|
5673 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
5674 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
5675 | |
- # This is similar to how AIX traditionally builds its shared libraries.
|
5676 | |
- _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'
|
5677 | |
- fi
|
5678 | |
- fi
|
5679 | |
- ;;
|
5680 | |
+gnu*)
|
5681 | |
+ lt_cv_deplibs_check_method=pass_all
|
5682 | |
+ ;;
|
5683 | |
|
5684 | |
- beos*)
|
5685 | |
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
5686 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
5687 | |
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
5688 | |
- # support --undefined. This deserves some investigation. FIXME
|
5689 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
5690 | |
- else
|
5691 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
5692 | |
- fi
|
5693 | |
+hpux10.20* | hpux11*)
|
5694 | |
+ lt_cv_file_magic_cmd=/usr/bin/file
|
5695 | |
+ case $host_cpu in
|
5696 | |
+ ia64*)
|
5697 | |
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
|
5698 | |
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
5699 | |
;;
|
5700 | |
-
|
5701 | |
- chorus*)
|
5702 | |
- case $cc_basename in
|
5703 | |
- *)
|
5704 | |
- # FIXME: insert proper C++ library support
|
5705 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
5706 | |
- ;;
|
5707 | |
- esac
|
5708 | |
+ hppa*64*)
|
5709 | |
+ [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]']
|
5710 | |
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
5711 | |
;;
|
5712 | |
+ *)
|
5713 | |
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
|
5714 | |
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
5715 | |
+ ;;
|
5716 | |
+ esac
|
5717 | |
+ ;;
|
5718 | |
|
5719 | |
- cygwin* | mingw* | pw32*)
|
5720 | |
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
5721 | |
- # as there is no search path for DLLs.
|
5722 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
5723 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
5724 | |
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
5725 | |
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
5726 | |
-
|
5727 | |
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
5728 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
5729 | |
- # If the export-symbols file already is a .def file (1st line
|
5730 | |
- # is EXPORTS), use it as is; otherwise, prepend...
|
5731 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
5732 | |
- cp $export_symbols $output_objdir/$soname.def;
|
5733 | |
- else
|
5734 | |
- echo EXPORTS > $output_objdir/$soname.def;
|
5735 | |
- cat $export_symbols >> $output_objdir/$soname.def;
|
5736 | |
- fi~
|
5737 | |
- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
5738 | |
- else
|
5739 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
5740 | |
- fi
|
|
376 |
;;
|
|
377 |
|
|
378 |
darwin* | rhapsody*)
|
|
379 |
@@ -3005,7 +3074,7 @@
|
|
380 |
esac
|
|
381 |
;;
|
|
382 |
|
|
383 |
-interix3*)
|
5741 | 384 |
+interix[[3-9]]*)
|
5742 | |
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
5743 | |
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
|
|
385 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
|
386 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
|
5744 | 387 |
;;
|
5745 | |
- darwin* | rhapsody*)
|
5746 | |
- case $host_os in
|
5747 | |
- rhapsody* | darwin1.[[012]])
|
5748 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
|
5749 | |
- ;;
|
5750 | |
- *) # Darwin 1.3 on
|
5751 | |
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
5752 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
5753 | |
- else
|
5754 | |
- case ${MACOSX_DEPLOYMENT_TARGET} in
|
5755 | |
- 10.[[012]])
|
5756 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
5757 | |
- ;;
|
5758 | |
- 10.*)
|
5759 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
|
5760 | |
- ;;
|
5761 | |
- esac
|
5762 | |
- fi
|
5763 | |
- ;;
|
5764 | |
- esac
|
5765 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
5766 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
5767 | |
- _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
|
5768 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
5769 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
|
5770 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
5771 | |
|
5772 | |
- if test "$GXX" = yes ; then
|
5773 | |
- lt_int_apple_cc_single_mod=no
|
5774 | |
- output_verbose_link_cmd='echo'
|
5775 | |
- if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
|
5776 | |
- lt_int_apple_cc_single_mod=yes
|
5777 | |
- fi
|
5778 | |
- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
5779 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
5780 | |
- else
|
5781 | |
- _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'
|
5782 | |
- fi
|
5783 | |
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
5784 | |
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
5785 | |
- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
5786 | |
- _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}'
|
5787 | |
- else
|
5788 | |
- _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}'
|
5789 | |
- fi
|
5790 | |
- _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}'
|
5791 | |
- else
|
5792 | |
- case $cc_basename in
|
5793 | |
- xlc*)
|
5794 | |
- output_verbose_link_cmd='echo'
|
5795 | |
- _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` $xlcverstring'
|
5796 | |
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
5797 | |
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
5798 | |
- _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
5799 | |
- _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}'
|
5800 | |
- ;;
|
5801 | |
- *)
|
5802 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
5803 | |
- ;;
|
5804 | |
- esac
|
5805 | |
- fi
|
5806 | |
- ;;
|
5807 | |
+irix5* | irix6* | nonstopux*)
|
5808 | |
+ case $LD in
|
5809 | |
+ *-32|*"-32 ") libmagic=32-bit;;
|
5810 | |
+ *-n32|*"-n32 ") libmagic=N32;;
|
5811 | |
+ *-64|*"-64 ") libmagic=64-bit;;
|
5812 | |
+ *) libmagic=never-match;;
|
5813 | |
+ esac
|
5814 | |
+ lt_cv_deplibs_check_method=pass_all
|
5815 | |
+ ;;
|
5816 | |
|
5817 | |
- dgux*)
|
5818 | |
- case $cc_basename in
|
5819 | |
- ec++*)
|
5820 | |
- # FIXME: insert proper C++ library support
|
5821 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
5822 | |
- ;;
|
5823 | |
- ghcx*)
|
5824 | |
- # Green Hills C++ Compiler
|
5825 | |
- # FIXME: insert proper C++ library support
|
5826 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
5827 | |
- ;;
|
5828 | |
- *)
|
5829 | |
- # FIXME: insert proper C++ library support
|
5830 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
5831 | |
- ;;
|
5832 | |
- esac
|
5833 | |
+# This must be Linux ELF.
|
5834 | |
+linux* | k*bsd*-gnu)
|
5835 | |
+ lt_cv_deplibs_check_method=pass_all
|
5836 | |
+ ;;
|
5837 | |
+
|
5838 | |
+netbsd* | netbsdelf*-gnu)
|
5839 | |
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
5840 | |
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
5841 | |
+ else
|
5842 | |
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
|
5843 | |
+ fi
|
5844 | |
+ ;;
|
5845 | |
+
|
5846 | |
+newos6*)
|
5847 | |
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
|
5848 | |
+ lt_cv_file_magic_cmd=/usr/bin/file
|
5849 | |
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
5850 | |
+ ;;
|
5851 | |
+
|
5852 | |
+nto-qnx*)
|
5853 | |
+ lt_cv_deplibs_check_method=unknown
|
5854 | |
+ ;;
|
5855 | |
+
|
5856 | |
+openbsd*)
|
5857 | |
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
5858 | |
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
|
5859 | |
+ else
|
5860 | |
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
5861 | |
+ fi
|
5862 | |
+ ;;
|
5863 | |
+
|
5864 | |
+osf3* | osf4* | osf5*)
|
5865 | |
+ lt_cv_deplibs_check_method=pass_all
|
5866 | |
+ ;;
|
5867 | |
+
|
|
388 |
@@ -3055,6 +3124,10 @@
|
|
389 |
lt_cv_deplibs_check_method=pass_all
|
|
390 |
;;
|
|
391 |
|
5868 | 392 |
+rdos*)
|
5869 | 393 |
+ lt_cv_deplibs_check_method=pass_all
|
5870 | 394 |
+ ;;
|
5871 | 395 |
+
|
5872 | |
+solaris*)
|
5873 | |
+ lt_cv_deplibs_check_method=pass_all
|
5874 | |
+ ;;
|
5875 | |
+
|
5876 | |
+sysv4 | sysv4.3*)
|
5877 | |
+ case $host_vendor in
|
5878 | |
+ motorola)
|
5879 | |
+ 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]]'
|
5880 | |
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
5881 | |
;;
|
5882 | |
- freebsd[[12]]*)
|
5883 | |
- # C++ shared libraries reported to be fairly broken before switch to ELF
|
5884 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
5885 | |
+ ncr)
|
5886 | |
+ lt_cv_deplibs_check_method=pass_all
|
5887 | |
;;
|
5888 | |
- freebsd-elf*)
|
5889 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
5890 | |
+ sequent)
|
5891 | |
+ lt_cv_file_magic_cmd='/bin/file'
|
5892 | |
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
|
5893 | |
;;
|
5894 | |
- freebsd* | dragonfly*)
|
5895 | |
- # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
5896 | |
- # conventions
|
5897 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
5898 | |
+ sni)
|
5899 | |
+ lt_cv_file_magic_cmd='/bin/file'
|
5900 | |
+ lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
|
5901 | |
+ lt_cv_file_magic_test_file=/lib/libc.so
|
5902 | |
;;
|
5903 | |
- gnu*)
|
5904 | |
+ siemens)
|
5905 | |
+ lt_cv_deplibs_check_method=pass_all
|
5906 | |
;;
|
5907 | |
- hpux9*)
|
5908 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
5909 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
5910 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
5911 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
5912 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
5913 | |
- # but as the default
|
5914 | |
- # location of the library.
|
5915 | |
-
|
5916 | |
- case $cc_basename in
|
5917 | |
- CC*)
|
5918 | |
- # FIXME: insert proper C++ library support
|
5919 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
5920 | |
- ;;
|
5921 | |
- aCC*)
|
5922 | |
- _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'
|
5923 | |
- # Commands to make compiler produce verbose output that lists
|
5924 | |
- # what "hidden" libraries, object files and flags are used when
|
5925 | |
- # linking a shared library.
|
5926 | |
- #
|
5927 | |
- # There doesn't appear to be a way to prevent this compiler from
|
5928 | |
- # explicitly linking system object files so we need to strip them
|
5929 | |
- # from the output so that they don't get included in the library
|
5930 | |
- # dependencies.
|
5931 | |
- 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'
|
5932 | |
- ;;
|
5933 | |
- *)
|
5934 | |
- if test "$GXX" = yes; then
|
5935 | |
- _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'
|
5936 | |
- else
|
5937 | |
- # FIXME: insert proper C++ library support
|
5938 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
5939 | |
- fi
|
5940 | |
- ;;
|
5941 | |
- esac
|
5942 | |
+ pc)
|
5943 | |
+ lt_cv_deplibs_check_method=pass_all
|
5944 | |
;;
|
5945 | |
- hpux10*|hpux11*)
|
5946 | |
- if test $with_gnu_ld = no; then
|
5947 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
5948 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
5949 | |
+ esac
|
5950 | |
+ ;;
|
5951 | |
|
5952 | |
- case $host_cpu in
|
5953 | |
- hppa*64*|ia64*) ;;
|
5954 | |
- *)
|
5955 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
5956 | |
- ;;
|
5957 | |
- esac
|
5958 | |
- fi
|
5959 | |
- case $host_cpu in
|
5960 | |
- hppa*64*|ia64*)
|
5961 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
5962 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
5963 | |
- ;;
|
5964 | |
- *)
|
5965 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
5966 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
5967 | |
- # but as the default
|
5968 | |
- # location of the library.
|
5969 | |
- ;;
|
5970 | |
- esac
|
5971 | |
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
5972 | |
+ lt_cv_deplibs_check_method=pass_all
|
5973 | |
+ ;;
|
5974 | |
+esac
|
5975 | |
+])
|
5976 | |
+file_magic_cmd=$lt_cv_file_magic_cmd
|
5977 | |
+deplibs_check_method=$lt_cv_deplibs_check_method
|
5978 | |
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
5979 | |
+])# AC_DEPLIBS_CHECK_METHOD
|
5980 | |
|
5981 | |
- case $cc_basename in
|
5982 | |
- CC*)
|
5983 | |
- # FIXME: insert proper C++ library support
|
5984 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
5985 | |
- ;;
|
5986 | |
- aCC*)
|
5987 | |
- case $host_cpu in
|
5988 | |
- hppa*64*)
|
5989 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
5990 | |
- ;;
|
5991 | |
- ia64*)
|
5992 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
5993 | |
- ;;
|
5994 | |
- *)
|
5995 | |
- _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'
|
5996 | |
- ;;
|
5997 | |
- esac
|
5998 | |
- # Commands to make compiler produce verbose output that lists
|
5999 | |
- # what "hidden" libraries, object files and flags are used when
|
6000 | |
- # linking a shared library.
|
6001 | |
- #
|
6002 | |
- # There doesn't appear to be a way to prevent this compiler from
|
6003 | |
- # explicitly linking system object files so we need to strip them
|
6004 | |
- # from the output so that they don't get included in the library
|
6005 | |
- # dependencies.
|
6006 | |
- 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'
|
6007 | |
- ;;
|
6008 | |
- *)
|
6009 | |
- if test "$GXX" = yes; then
|
6010 | |
- if test $with_gnu_ld = no; then
|
6011 | |
- case $host_cpu in
|
6012 | |
- hppa*64*)
|
6013 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
6014 | |
- ;;
|
6015 | |
- ia64*)
|
6016 | |
- _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'
|
6017 | |
- ;;
|
6018 | |
- *)
|
6019 | |
- _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'
|
6020 | |
- ;;
|
6021 | |
- esac
|
6022 | |
- fi
|
6023 | |
- else
|
6024 | |
- # FIXME: insert proper C++ library support
|
6025 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6026 | |
- fi
|
6027 | |
- ;;
|
6028 | |
- esac
|
6029 | |
- ;;
|
6030 | |
- interix[[3-9]]*)
|
6031 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
6032 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
6033 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
6034 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
6035 | |
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
6036 | |
- # Instead, shared libraries are loaded at an image base (0x10000000 by
|
6037 | |
- # default) and relocated if they conflict, which is a slow very memory
|
6038 | |
- # consuming and fragmenting process. To avoid this, we pick a random,
|
6039 | |
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
6040 | |
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
6041 | |
- _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'
|
6042 | |
- _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'
|
6043 | |
- ;;
|
6044 | |
- irix5* | irix6*)
|
6045 | |
- case $cc_basename in
|
6046 | |
- CC*)
|
6047 | |
- # SGI C++
|
6048 | |
- _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'
|
6049 | |
-
|
6050 | |
- # Archives containing C++ object files must be created using
|
6051 | |
- # "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
6052 | |
- # necessary to make sure instantiated templates are included
|
6053 | |
- # in the archive.
|
6054 | |
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
6055 | |
- ;;
|
6056 | |
- *)
|
6057 | |
- if test "$GXX" = yes; then
|
6058 | |
- if test "$with_gnu_ld" = no; then
|
6059 | |
- _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'
|
6060 | |
- else
|
6061 | |
- _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'
|
6062 | |
- fi
|
6063 | |
- fi
|
6064 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
6065 | |
- ;;
|
6066 | |
- esac
|
6067 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
6068 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
6069 | |
- ;;
|
6070 | |
- linux* | k*bsd*-gnu)
|
6071 | |
- case $cc_basename in
|
6072 | |
- KCC*)
|
6073 | |
- # Kuck and Associates, Inc. (KAI) C++ Compiler
|
6074 | |
-
|
6075 | |
- # KCC will only create a shared library if the output file
|
6076 | |
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
6077 | |
- # to its proper name (with version) after linking.
|
6078 | |
- _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'
|
6079 | |
- _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'
|
6080 | |
- # Commands to make compiler produce verbose output that lists
|
6081 | |
- # what "hidden" libraries, object files and flags are used when
|
6082 | |
- # linking a shared library.
|
6083 | |
- #
|
6084 | |
- # There doesn't appear to be a way to prevent this compiler from
|
6085 | |
- # explicitly linking system object files so we need to strip them
|
6086 | |
- # from the output so that they don't get included in the library
|
6087 | |
- # dependencies.
|
6088 | |
- 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'
|
6089 | |
-
|
6090 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
|
6091 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
6092 | |
|
6093 | |
- # Archives containing C++ object files must be created using
|
6094 | |
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
6095 | |
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
6096 | |
- ;;
|
6097 | |
- icpc*)
|
6098 | |
- # Intel C++
|
6099 | |
- with_gnu_ld=yes
|
6100 | |
- # version 8.0 and above of icpc choke on multiply defined symbols
|
6101 | |
- # if we add $predep_objects and $postdep_objects, however 7.1 and
|
6102 | |
- # earlier do not add the objects themselves.
|
6103 | |
- case `$CC -V 2>&1` in
|
6104 | |
- *"Version 7."*)
|
6105 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
6106 | |
- _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'
|
6107 | |
+# AC_PROG_NM
|
6108 | |
+# ----------
|
6109 | |
+# find the pathname to a BSD-compatible name lister
|
6110 | |
+AC_DEFUN([AC_PROG_NM],
|
6111 | |
+[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
|
6112 | |
+[if test -n "$NM"; then
|
6113 | |
+ # Let the user override the test.
|
6114 | |
+ lt_cv_path_NM="$NM"
|
6115 | |
+else
|
6116 | |
+ lt_nm_to_check="${ac_tool_prefix}nm"
|
|
396 |
solaris*)
|
|
397 |
lt_cv_deplibs_check_method=pass_all
|
|
398 |
;;
|
|
399 |
@@ -3107,7 +3180,7 @@
|
|
400 |
lt_cv_path_NM="$NM"
|
|
401 |
else
|
|
402 |
lt_nm_to_check="${ac_tool_prefix}nm"
|
|
403 |
- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
6117 | 404 |
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
6118 | |
+ lt_nm_to_check="$lt_nm_to_check nm"
|
6119 | |
+ fi
|
6120 | |
+ for lt_tmp_nm in $lt_nm_to_check; do
|
6121 | |
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
6122 | |
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
6123 | |
+ IFS="$lt_save_ifs"
|
6124 | |
+ test -z "$ac_dir" && ac_dir=.
|
6125 | |
+ tmp_nm="$ac_dir/$lt_tmp_nm"
|
6126 | |
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
6127 | |
+ # Check to see if the nm accepts a BSD-compat flag.
|
6128 | |
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
6129 | |
+ # nm: unknown option "B" ignored
|
6130 | |
+ # Tru64's nm complains that /dev/null is an invalid object file
|
6131 | |
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
6132 | |
+ */dev/null* | *'Invalid file or object type'*)
|
6133 | |
+ lt_cv_path_NM="$tmp_nm -B"
|
6134 | |
+ break
|
6135 | |
;;
|
6136 | |
- *) # Version 8.0 or newer
|
6137 | |
- tmp_idyn=
|
6138 | |
- case $host_cpu in
|
6139 | |
- ia64*) tmp_idyn=' -i_dynamic';;
|
6140 | |
+ *)
|
6141 | |
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
6142 | |
+ */dev/null*)
|
6143 | |
+ lt_cv_path_NM="$tmp_nm -p"
|
6144 | |
+ break
|
6145 | |
+ ;;
|
6146 | |
+ *)
|
6147 | |
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
6148 | |
+ continue # so that we can try to find one that supports BSD flags
|
6149 | |
+ ;;
|
6150 | |
esac
|
6151 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
6152 | |
- _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'
|
6153 | |
;;
|
6154 | |
esac
|
6155 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
6156 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
6157 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
6158 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
6159 | |
- ;;
|
6160 | |
- pgCC*)
|
6161 | |
- # Portland Group C++ compiler
|
6162 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
6163 | |
- _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'
|
6164 | |
+ fi
|
6165 | |
+ done
|
6166 | |
+ IFS="$lt_save_ifs"
|
6167 | |
+ done
|
6168 | |
+ test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
6169 | |
+fi])
|
6170 | |
+NM="$lt_cv_path_NM"
|
6171 | |
+])# AC_PROG_NM
|
6172 | |
|
6173 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
6174 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
6175 | |
- _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'
|
6176 | |
- ;;
|
6177 | |
- cxx*)
|
6178 | |
- # Compaq C++
|
6179 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
6180 | |
- _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'
|
6181 | |
|
6182 | |
- runpath_var=LD_RUN_PATH
|
6183 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
6184 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
6185 | |
+# AC_CHECK_LIBM
|
6186 | |
+# -------------
|
6187 | |
+# check for math library
|
6188 | |
+AC_DEFUN([AC_CHECK_LIBM],
|
6189 | |
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
6190 | |
+LIBM=
|
6191 | |
+case $host in
|
6192 | |
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
|
6193 | |
+ # These system don't have libm, or don't need it
|
6194 | |
+ ;;
|
6195 | |
+*-ncr-sysv4.3*)
|
6196 | |
+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
|
6197 | |
+ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
|
6198 | |
+ ;;
|
6199 | |
+*)
|
6200 | |
+ AC_CHECK_LIB(m, cos, LIBM="-lm")
|
6201 | |
+ ;;
|
6202 | |
+esac
|
6203 | |
+])# AC_CHECK_LIBM
|
6204 | |
|
6205 | |
- # Commands to make compiler produce verbose output that lists
|
6206 | |
- # what "hidden" libraries, object files and flags are used when
|
6207 | |
- # linking a shared library.
|
6208 | |
- #
|
6209 | |
- # There doesn't appear to be a way to prevent this compiler from
|
6210 | |
- # explicitly linking system object files so we need to strip them
|
6211 | |
- # from the output so that they don't get included in the library
|
6212 | |
- # dependencies.
|
6213 | |
- 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'
|
6214 | |
- ;;
|
6215 | |
- *)
|
6216 | |
- case `$CC -V 2>&1 | sed 5q` in
|
6217 | |
- *Sun\ C*)
|
6218 | |
- # Sun C++ 5.9
|
6219 | |
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
6220 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
6221 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
|
6222 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
6223 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
6224 | |
|
6225 | |
- # Not sure whether something based on
|
6226 | |
- # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
6227 | |
- # would be better.
|
6228 | |
- output_verbose_link_cmd='echo'
|
6229 | |
+# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
|
6230 | |
+# -----------------------------------
|
6231 | |
+# sets LIBLTDL to the link flags for the libltdl convenience library and
|
6232 | |
+# LTDLINCL to the include flags for the libltdl header and adds
|
6233 | |
+# --enable-ltdl-convenience to the configure arguments. Note that
|
6234 | |
+# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
|
6235 | |
+# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
|
6236 | |
+# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
|
6237 | |
+# (note the single quotes!). If your package is not flat and you're not
|
6238 | |
+# using automake, define top_builddir and top_srcdir appropriately in
|
6239 | |
+# the Makefiles.
|
6240 | |
+AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
|
6241 | |
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
6242 | |
+ case $enable_ltdl_convenience in
|
6243 | |
+ no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
|
6244 | |
+ "") enable_ltdl_convenience=yes
|
6245 | |
+ ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
6246 | |
+ esac
|
6247 | |
+ LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
|
6248 | |
+ LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
6249 | |
+ # For backwards non-gettext consistent compatibility...
|
6250 | |
+ INCLTDL="$LTDLINCL"
|
6251 | |
+])# AC_LIBLTDL_CONVENIENCE
|
6252 | |
|
6253 | |
- # Archives containing C++ object files must be created using
|
6254 | |
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
6255 | |
- # necessary to make sure instantiated templates are included
|
6256 | |
- # in the archive.
|
6257 | |
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
6258 | |
- ;;
|
6259 | |
- esac
|
6260 | |
- ;;
|
6261 | |
- esac
|
6262 | |
- ;;
|
6263 | |
- lynxos*)
|
6264 | |
- # FIXME: insert proper C++ library support
|
6265 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6266 | |
- ;;
|
6267 | |
- m88k*)
|
6268 | |
- # FIXME: insert proper C++ library support
|
6269 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6270 | |
- ;;
|
6271 | |
- mvs*)
|
6272 | |
- case $cc_basename in
|
6273 | |
- cxx*)
|
6274 | |
- # FIXME: insert proper C++ library support
|
6275 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6276 | |
- ;;
|
6277 | |
- *)
|
6278 | |
- # FIXME: insert proper C++ library support
|
6279 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6280 | |
- ;;
|
6281 | |
- esac
|
6282 | |
- ;;
|
6283 | |
- netbsd* | netbsdelf*-gnu)
|
6284 | |
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
6285 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
6286 | |
- wlarc=
|
6287 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
6288 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
6289 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
6290 | |
- fi
|
6291 | |
- # Workaround some broken pre-1.5 toolchains
|
6292 | |
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
6293 | |
- ;;
|
6294 | |
- openbsd2*)
|
6295 | |
- # C++ shared libraries are fairly broken
|
6296 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6297 | |
- ;;
|
6298 | |
- openbsd*)
|
6299 | |
- if test -f /usr/libexec/ld.so; then
|
6300 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
6301 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
6302 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
6303 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
6304 | |
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
6305 | |
- _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'
|
6306 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
6307 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
6308 | |
- fi
|
6309 | |
- output_verbose_link_cmd='echo'
|
6310 | |
- else
|
6311 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6312 | |
- fi
|
6313 | |
- ;;
|
6314 | |
- osf3*)
|
6315 | |
- case $cc_basename in
|
6316 | |
- KCC*)
|
6317 | |
- # Kuck and Associates, Inc. (KAI) C++ Compiler
|
6318 | |
|
6319 | |
- # KCC will only create a shared library if the output file
|
6320 | |
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
6321 | |
- # to its proper name (with version) after linking.
|
6322 | |
- _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'
|
6323 | |
+# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
|
6324 | |
+# -----------------------------------
|
6325 | |
+# sets LIBLTDL to the link flags for the libltdl installable library and
|
6326 | |
+# LTDLINCL to the include flags for the libltdl header and adds
|
6327 | |
+# --enable-ltdl-install to the configure arguments. Note that
|
6328 | |
+# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
|
6329 | |
+# and an installed libltdl is not found, it is assumed to be `libltdl'.
|
6330 | |
+# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
|
6331 | |
+# '${top_srcdir}/' (note the single quotes!). If your package is not
|
6332 | |
+# flat and you're not using automake, define top_builddir and top_srcdir
|
6333 | |
+# appropriately in the Makefiles.
|
6334 | |
+# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
|
6335 | |
+AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
|
6336 | |
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
6337 | |
+ AC_CHECK_LIB(ltdl, lt_dlinit,
|
6338 | |
+ [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
|
6339 | |
+ [if test x"$enable_ltdl_install" = xno; then
|
6340 | |
+ AC_MSG_WARN([libltdl not installed, but installation disabled])
|
6341 | |
+ else
|
6342 | |
+ enable_ltdl_install=yes
|
6343 | |
+ fi
|
6344 | |
+ ])
|
6345 | |
+ if test x"$enable_ltdl_install" = x"yes"; then
|
6346 | |
+ ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
6347 | |
+ LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
|
6348 | |
+ LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
6349 | |
+ else
|
6350 | |
+ ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
|
6351 | |
+ LIBLTDL="-lltdl"
|
6352 | |
+ LTDLINCL=
|
6353 | |
+ fi
|
6354 | |
+ # For backwards non-gettext consistent compatibility...
|
6355 | |
+ INCLTDL="$LTDLINCL"
|
6356 | |
+])# AC_LIBLTDL_INSTALLABLE
|
6357 | |
|
6358 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
6359 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
6360 | |
|
6361 | |
- # Archives containing C++ object files must be created using
|
6362 | |
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
6363 | |
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
6364 | |
+# AC_LIBTOOL_CXX
|
6365 | |
+# --------------
|
6366 | |
+# enable support for C++ libraries
|
6367 | |
+AC_DEFUN([AC_LIBTOOL_CXX],
|
6368 | |
+[AC_REQUIRE([_LT_AC_LANG_CXX])
|
6369 | |
+])# AC_LIBTOOL_CXX
|
6370 | |
|
6371 | |
- ;;
|
6372 | |
- RCC*)
|
6373 | |
- # Rational C++ 2.4.1
|
6374 | |
- # FIXME: insert proper C++ library support
|
6375 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6376 | |
- ;;
|
6377 | |
- cxx*)
|
6378 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
6379 | |
- _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'
|
6380 | |
|
6381 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
6382 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
6383 | |
+# _LT_AC_LANG_CXX
|
6384 | |
+# ---------------
|
6385 | |
+AC_DEFUN([_LT_AC_LANG_CXX],
|
6386 | |
+[AC_REQUIRE([AC_PROG_CXX])
|
6387 | |
+AC_REQUIRE([_LT_AC_PROG_CXXCPP])
|
6388 | |
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
|
6389 | |
+])# _LT_AC_LANG_CXX
|
6390 | |
|
6391 | |
- # Commands to make compiler produce verbose output that lists
|
6392 | |
- # what "hidden" libraries, object files and flags are used when
|
6393 | |
- # linking a shared library.
|
6394 | |
- #
|
6395 | |
- # There doesn't appear to be a way to prevent this compiler from
|
6396 | |
- # explicitly linking system object files so we need to strip them
|
6397 | |
- # from the output so that they don't get included in the library
|
6398 | |
- # dependencies.
|
6399 | |
- 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'
|
6400 | |
- ;;
|
6401 | |
- *)
|
6402 | |
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
6403 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
6404 | |
- _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'
|
6405 | |
+# _LT_AC_PROG_CXXCPP
|
6406 | |
+# ------------------
|
6407 | |
+AC_DEFUN([_LT_AC_PROG_CXXCPP],
|
6408 | |
+[
|
6409 | |
+AC_REQUIRE([AC_PROG_CXX])
|
6410 | |
+if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
6411 | |
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
6412 | |
+ (test "X$CXX" != "Xg++"))) ; then
|
6413 | |
+ AC_PROG_CXXCPP
|
6414 | |
+fi
|
6415 | |
+])# _LT_AC_PROG_CXXCPP
|
6416 | |
|
6417 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
6418 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
6419 | |
+# AC_LIBTOOL_F77
|
6420 | |
+# --------------
|
6421 | |
+# enable support for Fortran 77 libraries
|
6422 | |
+AC_DEFUN([AC_LIBTOOL_F77],
|
6423 | |
+[AC_REQUIRE([_LT_AC_LANG_F77])
|
6424 | |
+])# AC_LIBTOOL_F77
|
6425 | |
|
6426 | |
- # Commands to make compiler produce verbose output that lists
|
6427 | |
- # what "hidden" libraries, object files and flags are used when
|
6428 | |
- # linking a shared library.
|
6429 | |
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
6430 | |
|
6431 | |
- else
|
6432 | |
- # FIXME: insert proper C++ library support
|
6433 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6434 | |
- fi
|
6435 | |
- ;;
|
6436 | |
- esac
|
6437 | |
- ;;
|
6438 | |
- osf4* | osf5*)
|
6439 | |
- case $cc_basename in
|
6440 | |
- KCC*)
|
6441 | |
- # Kuck and Associates, Inc. (KAI) C++ Compiler
|
6442 | |
+# _LT_AC_LANG_F77
|
6443 | |
+# ---------------
|
6444 | |
+AC_DEFUN([_LT_AC_LANG_F77],
|
6445 | |
+[AC_REQUIRE([AC_PROG_F77])
|
6446 | |
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
|
6447 | |
+])# _LT_AC_LANG_F77
|
6448 | |
|
6449 | |
- # KCC will only create a shared library if the output file
|
6450 | |
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
6451 | |
- # to its proper name (with version) after linking.
|
6452 | |
- _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'
|
6453 | |
|
6454 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
6455 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
6456 | |
+# AC_LIBTOOL_GCJ
|
6457 | |
+# --------------
|
6458 | |
+# enable support for GCJ libraries
|
6459 | |
+AC_DEFUN([AC_LIBTOOL_GCJ],
|
6460 | |
+[AC_REQUIRE([_LT_AC_LANG_GCJ])
|
6461 | |
+])# AC_LIBTOOL_GCJ
|
6462 | |
|
6463 | |
- # Archives containing C++ object files must be created using
|
6464 | |
- # the KAI C++ compiler.
|
6465 | |
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
|
6466 | |
- ;;
|
6467 | |
- RCC*)
|
6468 | |
- # Rational C++ 2.4.1
|
6469 | |
- # FIXME: insert proper C++ library support
|
6470 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6471 | |
- ;;
|
6472 | |
- cxx*)
|
6473 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
6474 | |
- _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'
|
6475 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
6476 | |
- echo "-hidden">> $lib.exp~
|
6477 | |
- $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~
|
6478 | |
- $rm $lib.exp'
|
6479 | |
|
6480 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
6481 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
6482 | |
+# _LT_AC_LANG_GCJ
|
6483 | |
+# ---------------
|
6484 | |
+AC_DEFUN([_LT_AC_LANG_GCJ],
|
6485 | |
+[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
|
6486 | |
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
|
6487 | |
+ [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
|
6488 | |
+ [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
|
6489 | |
+ [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
|
6490 | |
+ [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
|
6491 | |
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
|
6492 | |
+])# _LT_AC_LANG_GCJ
|
6493 | |
|
6494 | |
- # Commands to make compiler produce verbose output that lists
|
6495 | |
- # what "hidden" libraries, object files and flags are used when
|
6496 | |
- # linking a shared library.
|
6497 | |
- #
|
6498 | |
- # There doesn't appear to be a way to prevent this compiler from
|
6499 | |
- # explicitly linking system object files so we need to strip them
|
6500 | |
- # from the output so that they don't get included in the library
|
6501 | |
- # dependencies.
|
6502 | |
- 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'
|
6503 | |
- ;;
|
6504 | |
- *)
|
6505 | |
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
6506 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
6507 | |
- _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'
|
6508 | |
|
6509 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
6510 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
6511 | |
+# AC_LIBTOOL_RC
|
6512 | |
+# -------------
|
6513 | |
+# enable support for Windows resource files
|
6514 | |
+AC_DEFUN([AC_LIBTOOL_RC],
|
6515 | |
+[AC_REQUIRE([LT_AC_PROG_RC])
|
6516 | |
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
|
6517 | |
+])# AC_LIBTOOL_RC
|
6518 | |
|
6519 | |
- # Commands to make compiler produce verbose output that lists
|
6520 | |
- # what "hidden" libraries, object files and flags are used when
|
6521 | |
- # linking a shared library.
|
6522 | |
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
6523 | |
|
6524 | |
- else
|
6525 | |
- # FIXME: insert proper C++ library support
|
6526 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6527 | |
- fi
|
6528 | |
- ;;
|
6529 | |
- esac
|
6530 | |
- ;;
|
6531 | |
- psos*)
|
6532 | |
- # FIXME: insert proper C++ library support
|
6533 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6534 | |
- ;;
|
6535 | |
- sunos4*)
|
6536 | |
- case $cc_basename in
|
6537 | |
- CC*)
|
6538 | |
- # Sun C++ 4.x
|
6539 | |
- # FIXME: insert proper C++ library support
|
6540 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6541 | |
- ;;
|
6542 | |
- lcc*)
|
6543 | |
- # Lucid
|
6544 | |
- # FIXME: insert proper C++ library support
|
6545 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6546 | |
- ;;
|
6547 | |
- *)
|
6548 | |
- # FIXME: insert proper C++ library support
|
6549 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6550 | |
- ;;
|
6551 | |
- esac
|
6552 | |
- ;;
|
6553 | |
- solaris*)
|
6554 | |
- case $cc_basename in
|
6555 | |
- CC*)
|
6556 | |
- # Sun C++ 4.2, 5.x and Centerline C++
|
6557 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
|
6558 | |
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
6559 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
6560 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
6561 | |
- $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'
|
6562 | |
-
|
6563 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
6564 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
6565 | |
- case $host_os in
|
6566 | |
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
6567 | |
- *)
|
6568 | |
- # The compiler driver will combine and reorder linker options,
|
6569 | |
- # but understands `-z linker_flag'.
|
6570 | |
- # Supported since Solaris 2.6 (maybe 2.5.1?)
|
6571 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
|
6572 | |
- ;;
|
6573 | |
- esac
|
6574 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
6575 | |
-
|
6576 | |
- output_verbose_link_cmd='echo'
|
6577 | |
-
|
6578 | |
- # Archives containing C++ object files must be created using
|
6579 | |
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
6580 | |
- # necessary to make sure instantiated templates are included
|
6581 | |
- # in the archive.
|
6582 | |
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
6583 | |
- ;;
|
6584 | |
- gcx*)
|
6585 | |
- # Green Hills C++ Compiler
|
6586 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
6587 | |
-
|
6588 | |
- # The C++ compiler must be used to create the archive.
|
6589 | |
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
6590 | |
- ;;
|
6591 | |
- *)
|
6592 | |
- # GNU C++ compiler with Solaris linker
|
6593 | |
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
6594 | |
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
|
6595 | |
- if $CC --version | grep -v '^2\.7' > /dev/null; then
|
6596 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
6597 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
6598 | |
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
6599 | |
+# AC_LIBTOOL_LANG_C_CONFIG
|
6600 | |
+# ------------------------
|
6601 | |
+# Ensure that the configuration vars for the C compiler are
|
6602 | |
+# suitably defined. Those variables are subsequently used by
|
6603 | |
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
6604 | |
+AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
|
6605 | |
+AC_DEFUN([_LT_AC_LANG_C_CONFIG],
|
6606 | |
+[lt_save_CC="$CC"
|
6607 | |
+AC_LANG_PUSH(C)
|
6608 | |
|
6609 | |
- # Commands to make compiler produce verbose output that lists
|
6610 | |
- # what "hidden" libraries, object files and flags are used when
|
6611 | |
- # linking a shared library.
|
6612 | |
- output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
6613 | |
- else
|
6614 | |
- # g++ 2.7 appears to require `-G' NOT `-shared' on this
|
6615 | |
- # platform.
|
6616 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
6617 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
6618 | |
- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
6619 | |
+# Source file extension for C test sources.
|
6620 | |
+ac_ext=c
|
6621 | |
|
6622 | |
- # Commands to make compiler produce verbose output that lists
|
6623 | |
- # what "hidden" libraries, object files and flags are used when
|
6624 | |
- # linking a shared library.
|
6625 | |
- output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
6626 | |
- fi
|
6627 | |
+# Object file extension for compiled C test sources.
|
6628 | |
+objext=o
|
6629 | |
+_LT_AC_TAGVAR(objext, $1)=$objext
|
6630 | |
|
6631 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
|
6632 | |
- case $host_os in
|
6633 | |
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
6634 | |
- *)
|
6635 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
6636 | |
- ;;
|
6637 | |
- esac
|
6638 | |
- fi
|
6639 | |
- ;;
|
6640 | |
- esac
|
6641 | |
- ;;
|
6642 | |
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
6643 | |
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
6644 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
6645 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
6646 | |
- runpath_var='LD_RUN_PATH'
|
6647 | |
+# Code to be used in simple compile tests
|
|
405 |
lt_nm_to_check="$lt_nm_to_check nm"
|
|
406 |
fi
|
|
407 |
for lt_tmp_nm in $lt_nm_to_check; do
|
|
408 |
@@ -3323,10 +3396,10 @@
|
|
409 |
_LT_AC_TAGVAR(objext, $1)=$objext
|
|
410 |
|
|
411 |
# Code to be used in simple compile tests
|
|
412 |
-lt_simple_compile_test_code="int some_variable = 0;\n"
|
6648 | 413 |
+lt_simple_compile_test_code="int some_variable = 0;"
|
6649 | 414 |
|
6650 | |
- case $cc_basename in
|
6651 | |
- CC*)
|
6652 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
6653 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
6654 | |
- ;;
|
6655 | |
- *)
|
6656 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
6657 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
6658 | |
- ;;
|
6659 | |
- esac
|
6660 | |
- ;;
|
6661 | |
- sysv5* | sco3.2v5* | sco5v6*)
|
6662 | |
- # Note: We can NOT use -z defs as we might desire, because we do not
|
6663 | |
- # link with -lc, and that would cause any symbols used from libc to
|
6664 | |
- # always be unresolved, which means just about no library would
|
6665 | |
- # ever link correctly. If we're not using GNU ld we use -z text
|
6666 | |
- # though, which does catch some bad symbols but isn't as heavy-handed
|
6667 | |
- # as -z defs.
|
6668 | |
- # For security reasons, it is highly recommended that you always
|
6669 | |
- # use absolute paths for naming shared libraries, and exclude the
|
6670 | |
- # DT_RUNPATH tag from executables and libraries. But doing so
|
6671 | |
- # requires that you compile everything twice, which is a pain.
|
6672 | |
- # So that behaviour is only enabled if SCOABSPATH is set to a
|
6673 | |
- # non-empty value in the environment. Most likely only useful for
|
6674 | |
- # creating official distributions of packages.
|
6675 | |
- # This is a hack until libtool officially supports absolute path
|
6676 | |
- # names for shared libraries.
|
6677 | |
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
6678 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
|
6679 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
6680 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
6681 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
6682 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
6683 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
6684 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
6685 | |
- runpath_var='LD_RUN_PATH'
|
6686 | |
+# Code to be used in simple link tests
|
|
415 |
# Code to be used in simple link tests
|
|
416 |
-lt_simple_link_test_code='int main(){return(0);}\n'
|
6687 | 417 |
+lt_simple_link_test_code='int main(){return(0);}'
|
6688 | 418 |
|
6689 | |
- case $cc_basename in
|
6690 | |
- CC*)
|
6691 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
6692 | |
- _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'
|
6693 | |
- ;;
|
6694 | |
- *)
|
6695 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
6696 | |
- _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'
|
6697 | |
- ;;
|
6698 | |
- esac
|
6699 | |
- ;;
|
6700 | |
- tandem*)
|
6701 | |
- case $cc_basename in
|
6702 | |
- NCC*)
|
6703 | |
- # NonStop-UX NCC 3.20
|
6704 | |
- # FIXME: insert proper C++ library support
|
6705 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6706 | |
- ;;
|
6707 | |
- *)
|
6708 | |
- # FIXME: insert proper C++ library support
|
6709 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6710 | |
- ;;
|
6711 | |
- esac
|
6712 | |
- ;;
|
6713 | |
- vxworks*)
|
6714 | |
- # FIXME: insert proper C++ library support
|
6715 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6716 | |
- ;;
|
6717 | |
- *)
|
6718 | |
- # FIXME: insert proper C++ library support
|
6719 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
6720 | |
- ;;
|
6721 | |
-esac
|
6722 | |
-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
|
6723 | |
-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
6724 | |
+_LT_AC_SYS_COMPILER
|
6725 | |
|
6726 | |
-_LT_AC_TAGVAR(GCC, $1)="$GXX"
|
6727 | |
-_LT_AC_TAGVAR(LD, $1)="$LD"
|
6728 | |
+# save warnings/boilerplate of simple test code
|
6729 | |
+_LT_COMPILER_BOILERPLATE
|
6730 | |
+_LT_LINKER_BOILERPLATE
|
6731 | |
|
6732 | |
-AC_LIBTOOL_POSTDEP_PREDEP($1)
|
6733 | |
+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
|
6734 | |
AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
6735 | |
AC_LIBTOOL_PROG_CC_C_O($1)
|
6736 | |
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
6737 | |
AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
6738 | |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
6739 | |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
6740 | |
+AC_LIBTOOL_SYS_LIB_STRIP
|
6741 | |
+AC_LIBTOOL_DLOPEN_SELF
|
6742 | |
+
|
6743 | |
+# Report which library types will actually be built
|
6744 | |
+AC_MSG_CHECKING([if libtool supports shared libraries])
|
6745 | |
+AC_MSG_RESULT([$can_build_shared])
|
6746 | |
+
|
6747 | |
+AC_MSG_CHECKING([whether to build shared libraries])
|
6748 | |
+test "$can_build_shared" = "no" && enable_shared=no
|
6749 | |
+
|
6750 | |
+# On AIX, shared libraries and static libraries use the same namespace, and
|
6751 | |
+# are all built from PIC.
|
6752 | |
+case $host_os in
|
6753 | |
+aix3*)
|
6754 | |
+ test "$enable_shared" = yes && enable_static=no
|
6755 | |
+ if test -n "$RANLIB"; then
|
6756 | |
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
6757 | |
+ postinstall_cmds='$RANLIB $lib'
|
6758 | |
+ fi
|
6759 | |
+ ;;
|
6760 | |
+
|
6761 | |
+aix4* | aix5*)
|
6762 | |
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
6763 | |
+ test "$enable_shared" = yes && enable_static=no
|
6764 | |
+ fi
|
6765 | |
+ ;;
|
6766 | |
+esac
|
6767 | |
+AC_MSG_RESULT([$enable_shared])
|
6768 | |
+
|
6769 | |
+AC_MSG_CHECKING([whether to build static libraries])
|
6770 | |
+# Make sure either enable_shared or enable_static is yes.
|
6771 | |
+test "$enable_shared" = yes || enable_static=yes
|
6772 | |
+AC_MSG_RESULT([$enable_static])
|
6773 | |
|
6774 | |
AC_LIBTOOL_CONFIG($1)
|
6775 | |
|
6776 | |
AC_LANG_POP
|
6777 | |
-CC=$lt_save_CC
|
6778 | |
-LDCXX=$LD
|
6779 | |
-LD=$lt_save_LD
|
6780 | |
-GCC=$lt_save_GCC
|
6781 | |
-with_gnu_ldcxx=$with_gnu_ld
|
6782 | |
-with_gnu_ld=$lt_save_with_gnu_ld
|
6783 | |
-lt_cv_path_LDCXX=$lt_cv_path_LD
|
6784 | |
-lt_cv_path_LD=$lt_save_path_LD
|
6785 | |
-lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
6786 | |
-lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
6787 | |
-])# AC_LIBTOOL_LANG_CXX_CONFIG
|
6788 | |
+CC="$lt_save_CC"
|
6789 | |
+])# AC_LIBTOOL_LANG_C_CONFIG
|
6790 | |
|
6791 | |
-# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
|
6792 | |
-# ------------------------------------
|
6793 | |
-# Figure out "hidden" library dependencies from verbose
|
6794 | |
-# compiler output when linking a shared library.
|
6795 | |
-# Parse the compiler output and extract the necessary
|
6796 | |
-# objects, libraries and library flags.
|
6797 | |
-AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
|
6798 | |
-dnl we can't use the lt_simple_compile_test_code here,
|
6799 | |
-dnl because it contains code intended for an executable,
|
6800 | |
-dnl not a library. It's possible we should let each
|
6801 | |
-dnl tag define a new lt_????_link_test_code variable,
|
6802 | |
-dnl but it's only used here...
|
6803 | |
-ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
|
6804 | |
-int a;
|
6805 | |
-void foo (void) { a = 0; }
|
6806 | |
-EOF
|
6807 | |
-],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
|
6808 | |
-class Foo
|
6809 | |
-{
|
6810 | |
-public:
|
6811 | |
- Foo (void) { a = 0; }
|
6812 | |
-private:
|
6813 | |
- int a;
|
6814 | |
-};
|
6815 | |
-EOF
|
6816 | |
-],[$1],[F77],[cat > conftest.$ac_ext <<EOF
|
6817 | |
- subroutine foo
|
6818 | |
- implicit none
|
6819 | |
- integer*4 a
|
6820 | |
- a=0
|
6821 | |
- return
|
6822 | |
- end
|
6823 | |
-EOF
|
6824 | |
-],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
|
6825 | |
-public class foo {
|
6826 | |
- private int a;
|
6827 | |
- public void bar (void) {
|
6828 | |
- a = 0;
|
6829 | |
- }
|
6830 | |
-};
|
6831 | |
-EOF
|
6832 | |
-])
|
6833 | |
-dnl Parse the compiler output and extract the necessary
|
6834 | |
-dnl objects, libraries and library flags.
|
6835 | |
-if AC_TRY_EVAL(ac_compile); then
|
6836 | |
- # Parse the compiler output and extract the necessary
|
6837 | |
- # objects, libraries and library flags.
|
6838 | |
-
|
6839 | |
- # Sentinel used to keep track of whether or not we are before
|
6840 | |
- # the conftest object file.
|
6841 | |
- pre_test_object_deps_done=no
|
6842 | |
-
|
6843 | |
- # The `*' in the case matches for architectures that use `case' in
|
6844 | |
- # $output_verbose_cmd can trigger glob expansion during the loop
|
6845 | |
- # eval without this substitution.
|
6846 | |
- output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
|
6847 | |
-
|
6848 | |
- for p in `eval $output_verbose_link_cmd`; do
|
6849 | |
- case $p in
|
6850 | |
-
|
6851 | |
- -L* | -R* | -l*)
|
6852 | |
- # Some compilers place space between "-{L,R}" and the path.
|
6853 | |
- # Remove the space.
|
6854 | |
- if test $p = "-L" \
|
6855 | |
- || test $p = "-R"; then
|
6856 | |
- prev=$p
|
6857 | |
- continue
|
6858 | |
- else
|
6859 | |
- prev=
|
6860 | |
- fi
|
6861 | |
-
|
6862 | |
- if test "$pre_test_object_deps_done" = no; then
|
6863 | |
- case $p in
|
6864 | |
- -L* | -R*)
|
6865 | |
- # Internal compiler library paths should come after those
|
6866 | |
- # provided the user. The postdeps already come after the
|
6867 | |
- # user supplied libs so there is no need to process them.
|
6868 | |
- if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
|
6869 | |
- _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
|
6870 | |
- else
|
6871 | |
- _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
|
6872 | |
- fi
|
6873 | |
- ;;
|
6874 | |
- # The "-l" case would never come before the object being
|
6875 | |
- # linked, so don't bother handling this case.
|
6876 | |
- esac
|
6877 | |
- else
|
6878 | |
- if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
|
6879 | |
- _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
|
6880 | |
- else
|
6881 | |
- _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
|
6882 | |
- fi
|
6883 | |
- fi
|
6884 | |
- ;;
|
6885 | |
-
|
6886 | |
- *.$objext)
|
6887 | |
- # This assumes that the test object file only shows up
|
6888 | |
- # once in the compiler output.
|
6889 | |
- if test "$p" = "conftest.$objext"; then
|
6890 | |
- pre_test_object_deps_done=yes
|
6891 | |
- continue
|
6892 | |
- fi
|
6893 | |
-
|
6894 | |
- if test "$pre_test_object_deps_done" = no; then
|
6895 | |
- if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
|
6896 | |
- _LT_AC_TAGVAR(predep_objects, $1)="$p"
|
6897 | |
- else
|
6898 | |
- _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
|
6899 | |
- fi
|
6900 | |
- else
|
6901 | |
- if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
|
6902 | |
- _LT_AC_TAGVAR(postdep_objects, $1)="$p"
|
6903 | |
- else
|
6904 | |
- _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
|
6905 | |
- fi
|
6906 | |
- fi
|
6907 | |
- ;;
|
6908 | |
-
|
6909 | |
- *) ;; # Ignore the rest.
|
6910 | |
-
|
6911 | |
- esac
|
6912 | |
- done
|
6913 | |
-
|
6914 | |
- # Clean up.
|
6915 | |
- rm -f a.out a.exe
|
6916 | |
-else
|
6917 | |
- echo "libtool.m4: error: problem compiling $1 test program"
|
6918 | |
-fi
|
6919 | |
-
|
6920 | |
-$rm -f confest.$objext
|
6921 | |
-
|
6922 | |
-# PORTME: override above test on systems where it is broken
|
6923 | |
-ifelse([$1],[CXX],
|
6924 | |
-[case $host_os in
|
6925 | |
-interix[[3-9]]*)
|
6926 | |
- # Interix 3.5 installs completely hosed .la files for C++, so rather than
|
6927 | |
- # hack all around it, let's just trust "g++" to DTRT.
|
6928 | |
- _LT_AC_TAGVAR(predep_objects,$1)=
|
6929 | |
- _LT_AC_TAGVAR(postdep_objects,$1)=
|
6930 | |
- _LT_AC_TAGVAR(postdeps,$1)=
|
6931 | |
- ;;
|
6932 | |
-
|
6933 | |
-linux*)
|
6934 | |
- case `$CC -V 2>&1 | sed 5q` in
|
6935 | |
- *Sun\ C*)
|
6936 | |
- # Sun C++ 5.9
|
6937 | |
- #
|
6938 | |
- # The more standards-conforming stlport4 library is
|
6939 | |
- # incompatible with the Cstd library. Avoid specifying
|
6940 | |
- # it if it's in CXXFLAGS. Ignore libCrun as
|
6941 | |
- # -library=stlport4 depends on it.
|
6942 | |
- case " $CXX $CXXFLAGS " in
|
6943 | |
- *" -library=stlport4 "*)
|
6944 | |
- solaris_use_stlport4=yes
|
6945 | |
- ;;
|
6946 | |
- esac
|
6947 | |
- if test "$solaris_use_stlport4" != yes; then
|
6948 | |
- _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
|
6949 | |
- fi
|
6950 | |
- ;;
|
6951 | |
- esac
|
6952 | |
- ;;
|
6953 | |
-
|
6954 | |
-solaris*)
|
6955 | |
- case $cc_basename in
|
6956 | |
- CC*)
|
6957 | |
- # The more standards-conforming stlport4 library is
|
6958 | |
- # incompatible with the Cstd library. Avoid specifying
|
6959 | |
- # it if it's in CXXFLAGS. Ignore libCrun as
|
6960 | |
- # -library=stlport4 depends on it.
|
6961 | |
- case " $CXX $CXXFLAGS " in
|
6962 | |
- *" -library=stlport4 "*)
|
6963 | |
- solaris_use_stlport4=yes
|
6964 | |
- ;;
|
6965 | |
- esac
|
6966 | |
-
|
6967 | |
- # Adding this requires a known-good setup of shared libraries for
|
6968 | |
- # Sun compiler versions before 5.6, else PIC objects from an old
|
6969 | |
- # archive will be linked into the output, leading to subtle bugs.
|
6970 | |
- if test "$solaris_use_stlport4" != yes; then
|
6971 | |
- _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
|
6972 | |
- fi
|
6973 | |
- ;;
|
6974 | |
- esac
|
6975 | |
- ;;
|
6976 | |
-esac
|
6977 | |
-])
|
6978 | |
-
|
6979 | |
-case " $_LT_AC_TAGVAR(postdeps, $1) " in
|
6980 | |
-*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
|
6981 | |
-esac
|
6982 | |
-])# AC_LIBTOOL_POSTDEP_PREDEP
|
6983 | |
|
6984 | |
-# AC_LIBTOOL_LANG_F77_CONFIG
|
6985 | |
+# AC_LIBTOOL_LANG_CXX_CONFIG
|
6986 | |
# --------------------------
|
6987 | |
# Ensure that the configuration vars for the C compiler are
|
6988 | |
# suitably defined. Those variables are subsequently used by
|
6989 | |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
6990 | |
-AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
|
6991 | |
-AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
|
6992 | |
-[AC_REQUIRE([AC_PROG_F77])
|
6993 | |
-AC_LANG_PUSH(Fortran 77)
|
6994 | |
+AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
|
6995 | |
+AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
|
6996 | |
+[AC_LANG_PUSH(C++)
|
6997 | |
+AC_REQUIRE([AC_PROG_CXX])
|
6998 | |
+AC_REQUIRE([_LT_AC_PROG_CXXCPP])
|
6999 | |
|
7000 | |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
7001 | |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
7002 | |
@@ -4073,6 +3476,7 @@
|
7003 | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
7004 | |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
7005 | |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
7006 | |
+_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
7007 | |
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
7008 | |
_LT_AC_TAGVAR(module_cmds, $1)=
|
7009 | |
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
7010 | |
@@ -4082,25 +3486,25 @@
|
7011 | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
7012 | |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
7013 | |
|
7014 | |
-# Source file extension for f77 test sources.
|
7015 | |
-ac_ext=f
|
7016 | |
+# Dependencies to place before and after the object being linked:
|
7017 | |
+_LT_AC_TAGVAR(predep_objects, $1)=
|
7018 | |
+_LT_AC_TAGVAR(postdep_objects, $1)=
|
7019 | |
+_LT_AC_TAGVAR(predeps, $1)=
|
7020 | |
+_LT_AC_TAGVAR(postdeps, $1)=
|
7021 | |
+_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
|
7022 | |
|
7023 | |
-# Object file extension for compiled f77 test sources.
|
7024 | |
+# Source file extension for C++ test sources.
|
7025 | |
+ac_ext=cpp
|
7026 | |
+
|
7027 | |
+# Object file extension for compiled C++ test sources.
|
7028 | |
objext=o
|
|
419 |
_LT_AC_SYS_COMPILER
|
|
420 |
|
|
421 |
@@ -3428,10 +3501,10 @@
|
7029 | 422 |
_LT_AC_TAGVAR(objext, $1)=$objext
|
7030 | 423 |
|
7031 | 424 |
# Code to be used in simple compile tests
|
7032 | |
-lt_simple_compile_test_code="\
|
7033 | |
- subroutine t
|
7034 | |
- return
|
7035 | |
- end
|
7036 | |
-"
|
|
425 |
-lt_simple_compile_test_code="int some_variable = 0;\n"
|
7037 | 426 |
+lt_simple_compile_test_code="int some_variable = 0;"
|
7038 | 427 |
|
7039 | 428 |
# Code to be used in simple link tests
|
7040 | |
-lt_simple_link_test_code="\
|
7041 | |
- program t
|
7042 | |
- end
|
7043 | |
-"
|
|
429 |
-lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
|
7044 | 430 |
+lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
|
7045 | 431 |
|
7046 | 432 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
7047 | 433 |
_LT_AC_SYS_COMPILER
|
7048 | |
@@ -4110,3562 +3514,4407 @@
|
7049 | |
_LT_LINKER_BOILERPLATE
|
7050 | |
|
7051 | |
# Allow CC to be a program name with arguments.
|
7052 | |
-lt_save_CC="$CC"
|
7053 | |
-CC=${F77-"f77"}
|
7054 | |
+lt_save_CC=$CC
|
7055 | |
+lt_save_LD=$LD
|
7056 | |
+lt_save_GCC=$GCC
|
7057 | |
+GCC=$GXX
|
7058 | |
+lt_save_with_gnu_ld=$with_gnu_ld
|
7059 | |
+lt_save_path_LD=$lt_cv_path_LD
|
7060 | |
+if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
7061 | |
+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
7062 | |
+else
|
7063 | |
+ $as_unset lt_cv_prog_gnu_ld
|
7064 | |
+fi
|
7065 | |
+if test -n "${lt_cv_path_LDCXX+set}"; then
|
7066 | |
+ lt_cv_path_LD=$lt_cv_path_LDCXX
|
7067 | |
+else
|
7068 | |
+ $as_unset lt_cv_path_LD
|
7069 | |
+fi
|
7070 | |
+test -z "${LDCXX+set}" || LD=$LDCXX
|
7071 | |
+CC=${CXX-"c++"}
|
7072 | |
compiler=$CC
|
7073 | |
_LT_AC_TAGVAR(compiler, $1)=$CC
|
7074 | |
_LT_CC_BASENAME([$compiler])
|
7075 | |
|
7076 | |
-AC_MSG_CHECKING([if libtool supports shared libraries])
|
7077 | |
-AC_MSG_RESULT([$can_build_shared])
|
7078 | |
+# We don't want -fno-exception wen compiling C++ code, so set the
|
7079 | |
+# no_builtin_flag separately
|
7080 | |
+if test "$GXX" = yes; then
|
7081 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
7082 | |
+else
|
7083 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
7084 | |
+fi
|
7085 | |
|
7086 | |
-AC_MSG_CHECKING([whether to build shared libraries])
|
7087 | |
-test "$can_build_shared" = "no" && enable_shared=no
|
7088 | |
+if test "$GXX" = yes; then
|
7089 | |
+ # Set up default GNU C++ configuration
|
7090 | |
|
7091 | |
-# On AIX, shared libraries and static libraries use the same namespace, and
|
7092 | |
-# are all built from PIC.
|
7093 | |
-case $host_os in
|
7094 | |
-aix3*)
|
7095 | |
- test "$enable_shared" = yes && enable_static=no
|
7096 | |
- if test -n "$RANLIB"; then
|
7097 | |
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
7098 | |
- postinstall_cmds='$RANLIB $lib'
|
7099 | |
- fi
|
7100 | |
- ;;
|
7101 | |
-aix4* | aix5*)
|
7102 | |
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
7103 | |
- test "$enable_shared" = yes && enable_static=no
|
7104 | |
- fi
|
7105 | |
- ;;
|
7106 | |
-esac
|
7107 | |
-AC_MSG_RESULT([$enable_shared])
|
7108 | |
+ AC_PROG_LD
|
7109 | |
|
7110 | |
-AC_MSG_CHECKING([whether to build static libraries])
|
7111 | |
-# Make sure either enable_shared or enable_static is yes.
|
7112 | |
-test "$enable_shared" = yes || enable_static=yes
|
7113 | |
-AC_MSG_RESULT([$enable_static])
|
7114 | |
+ # Check if GNU C++ uses GNU ld as the underlying linker, since the
|
7115 | |
+ # archiving commands below assume that GNU ld is being used.
|
7116 | |
+ if test "$with_gnu_ld" = yes; then
|
7117 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7118 | |
+ _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'
|
7119 | |
|
7120 | |
-_LT_AC_TAGVAR(GCC, $1)="$G77"
|
7121 | |
-_LT_AC_TAGVAR(LD, $1)="$LD"
|
7122 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
7123 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
7124 | |
|
7125 | |
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
7126 | |
-AC_LIBTOOL_PROG_CC_C_O($1)
|
7127 | |
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
7128 | |
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
7129 | |
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
7130 | |
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
7131 | |
-
|
7132 | |
-AC_LIBTOOL_CONFIG($1)
|
7133 | |
-
|
7134 | |
-AC_LANG_POP
|
7135 | |
-CC="$lt_save_CC"
|
7136 | |
-])# AC_LIBTOOL_LANG_F77_CONFIG
|
7137 | |
-
|
7138 | |
-
|
7139 | |
-# AC_LIBTOOL_LANG_GCJ_CONFIG
|
7140 | |
-# --------------------------
|
7141 | |
-# Ensure that the configuration vars for the C compiler are
|
7142 | |
-# suitably defined. Those variables are subsequently used by
|
7143 | |
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
7144 | |
-AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
|
7145 | |
-AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
|
7146 | |
-[AC_LANG_SAVE
|
7147 | |
-
|
7148 | |
-# Source file extension for Java test sources.
|
7149 | |
-ac_ext=java
|
7150 | |
-
|
7151 | |
-# Object file extension for compiled Java test sources.
|
7152 | |
-objext=o
|
7153 | |
-_LT_AC_TAGVAR(objext, $1)=$objext
|
7154 | |
-
|
7155 | |
-# Code to be used in simple compile tests
|
7156 | |
-lt_simple_compile_test_code="class foo {}"
|
7157 | |
-
|
7158 | |
-# Code to be used in simple link tests
|
7159 | |
-lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
|
7160 | |
-
|
7161 | |
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
7162 | |
-_LT_AC_SYS_COMPILER
|
7163 | |
+ # If archive_cmds runs LD, not CC, wlarc should be empty
|
7164 | |
+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
7165 | |
+ # investigate it a little bit more. (MM)
|
7166 | |
+ wlarc='${wl}'
|
7167 | |
|
7168 | |
-# save warnings/boilerplate of simple test code
|
7169 | |
-_LT_COMPILER_BOILERPLATE
|
7170 | |
-_LT_LINKER_BOILERPLATE
|
7171 | |
+ # ancient GNU ld didn't support --whole-archive et. al.
|
7172 | |
+ if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
|
7173 | |
+ grep 'no-whole-archive' > /dev/null; then
|
7174 | |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
7175 | |
+ else
|
7176 | |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
7177 | |
+ fi
|
7178 | |
+ else
|
7179 | |
+ with_gnu_ld=no
|
7180 | |
+ wlarc=
|
7181 | |
|
7182 | |
-# Allow CC to be a program name with arguments.
|
7183 | |
-lt_save_CC="$CC"
|
7184 | |
-CC=${GCJ-"gcj"}
|
7185 | |
-compiler=$CC
|
7186 | |
-_LT_AC_TAGVAR(compiler, $1)=$CC
|
7187 | |
-_LT_CC_BASENAME([$compiler])
|
7188 | |
+ # A generic and very simple default shared library creation
|
7189 | |
+ # command for GNU C++ for the case where it uses the native
|
7190 | |
+ # linker, instead of GNU ld. If possible, this setting should
|
7191 | |
+ # overridden to take advantage of the native linker features on
|
7192 | |
+ # the platform it is being used on.
|
7193 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
7194 | |
+ fi
|
7195 | |
|
7196 | |
-# GCJ did not exist at the time GCC didn't implicitly link libc in.
|
7197 | |
-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
7198 | |
+ # Commands to make compiler produce verbose output that lists
|
7199 | |
+ # what "hidden" libraries, object files and flags are used when
|
7200 | |
+ # linking a shared library.
|
7201 | |
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
7202 | |
|
7203 | |
-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
7204 | |
+else
|
7205 | |
+ GXX=no
|
7206 | |
+ with_gnu_ld=no
|
7207 | |
+ wlarc=
|
7208 | |
+fi
|
7209 | |
|
7210 | |
-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
|
7211 | |
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
7212 | |
-AC_LIBTOOL_PROG_CC_C_O($1)
|
7213 | |
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
7214 | |
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
7215 | |
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
7216 | |
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
7217 | |
+# PORTME: fill in a description of your system's C++ link characteristics
|
7218 | |
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
7219 | |
+_LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
7220 | |
+case $host_os in
|
7221 | |
+ aix3*)
|
7222 | |
+ # FIXME: insert proper C++ library support
|
7223 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7224 | |
+ ;;
|
7225 | |
+ aix4* | aix5*)
|
7226 | |
+ if test "$host_cpu" = ia64; then
|
7227 | |
+ # On IA64, the linker does run time linking by default, so we don't
|
7228 | |
+ # have to do anything special.
|
7229 | |
+ aix_use_runtimelinking=no
|
7230 | |
+ exp_sym_flag='-Bexport'
|
7231 | |
+ no_entry_flag=""
|
7232 | |
+ else
|
7233 | |
+ aix_use_runtimelinking=no
|
7234 | |
|
7235 | |
-AC_LIBTOOL_CONFIG($1)
|
7236 | |
+ # Test if we are trying to use run time linking or normal
|
7237 | |
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
7238 | |
+ # need to do runtime linking.
|
7239 | |
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
|
7240 | |
+ for ld_flag in $LDFLAGS; do
|
7241 | |
+ case $ld_flag in
|
7242 | |
+ *-brtl*)
|
7243 | |
+ aix_use_runtimelinking=yes
|
7244 | |
+ break
|
7245 | |
+ ;;
|
7246 | |
+ esac
|
7247 | |
+ done
|
7248 | |
+ ;;
|
7249 | |
+ esac
|
7250 | |
|
7251 | |
-AC_LANG_RESTORE
|
7252 | |
-CC="$lt_save_CC"
|
7253 | |
-])# AC_LIBTOOL_LANG_GCJ_CONFIG
|
7254 | |
+ exp_sym_flag='-bexport'
|
7255 | |
+ no_entry_flag='-bnoentry'
|
7256 | |
+ fi
|
7257 | |
|
7258 | |
+ # When large executables or shared objects are built, AIX ld can
|
7259 | |
+ # have problems creating the table of contents. If linking a library
|
7260 | |
+ # or program results in "error TOC overflow" add -mminimal-toc to
|
7261 | |
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
7262 | |
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
7263 | |
|
7264 | |
-# AC_LIBTOOL_LANG_RC_CONFIG
|
7265 | |
-# -------------------------
|
7266 | |
-# Ensure that the configuration vars for the Windows resource compiler are
|
7267 | |
-# suitably defined. Those variables are subsequently used by
|
7268 | |
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
7269 | |
-AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
|
7270 | |
-AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
|
7271 | |
-[AC_LANG_SAVE
|
7272 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)=''
|
7273 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
7274 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
7275 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
7276 | |
|
7277 | |
-# Source file extension for RC test sources.
|
7278 | |
-ac_ext=rc
|
7279 | |
+ if test "$GXX" = yes; then
|
7280 | |
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
7281 | |
+ # We only want to do this on AIX 4.2 and lower, the check
|
7282 | |
+ # below for broken collect2 doesn't work under 4.3+
|
7283 | |
+ collect2name=`${CC} -print-prog-name=collect2`
|
7284 | |
+ if test -f "$collect2name" && \
|
7285 | |
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
|
7286 | |
+ then
|
7287 | |
+ # We have reworked collect2
|
|
434 |
@@ -3577,7 +3650,7 @@
|
|
435 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|
436 |
then
|
|
437 |
# We have reworked collect2
|
|
438 |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
7288 | 439 |
+ :
|
7289 | |
+ else
|
7290 | |
+ # We have old collect2
|
7291 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
7292 | |
+ # It fails to find uninstalled libraries when the uninstalled
|
7293 | |
+ # path is not listed in the libpath. Setting hardcode_minus_L
|
7294 | |
+ # to unsupported forces relinking
|
7295 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
7296 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
7297 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
7298 | |
+ fi
|
7299 | |
+ ;;
|
7300 | |
+ esac
|
7301 | |
+ shared_flag='-shared'
|
7302 | |
+ if test "$aix_use_runtimelinking" = yes; then
|
7303 | |
+ shared_flag="$shared_flag "'${wl}-G'
|
7304 | |
+ fi
|
7305 | |
+ else
|
7306 | |
+ # not using gcc
|
7307 | |
+ if test "$host_cpu" = ia64; then
|
7308 | |
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
7309 | |
+ # chokes on -Wl,-G. The following line is correct:
|
7310 | |
+ shared_flag='-G'
|
7311 | |
+ else
|
7312 | |
+ if test "$aix_use_runtimelinking" = yes; then
|
7313 | |
+ shared_flag='${wl}-G'
|
7314 | |
+ else
|
7315 | |
+ shared_flag='${wl}-bM:SRE'
|
7316 | |
+ fi
|
7317 | |
+ fi
|
7318 | |
+ fi
|
7319 | |
|
7320 | |
-# Object file extension for compiled RC test sources.
|
7321 | |
-objext=o
|
7322 | |
-_LT_AC_TAGVAR(objext, $1)=$objext
|
7323 | |
+ # It seems that -bexpall does not export symbols beginning with
|
7324 | |
+ # underscore (_), so it is better to generate a list of symbols to export.
|
7325 | |
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
7326 | |
+ if test "$aix_use_runtimelinking" = yes; then
|
7327 | |
+ # Warning - without using the other runtime loading flags (-brtl),
|
7328 | |
+ # -berok will link without error, but may produce a broken library.
|
7329 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
|
7330 | |
+ # Determine the default libpath from the value encoded in an empty executable.
|
7331 | |
+ _LT_AC_SYS_LIBPATH_AIX
|
7332 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
7333 | |
|
7334 | |
-# Code to be used in simple compile tests
|
7335 | |
-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
|
7336 | |
+ _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"
|
7337 | |
+ else
|
7338 | |
+ if test "$host_cpu" = ia64; then
|
7339 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
7340 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
7341 | |
+ _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"
|
7342 | |
+ else
|
7343 | |
+ # Determine the default libpath from the value encoded in an empty executable.
|
7344 | |
+ _LT_AC_SYS_LIBPATH_AIX
|
7345 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
7346 | |
+ # Warning - without using the other run time loading flags,
|
7347 | |
+ # -berok will link without error, but may produce a broken library.
|
7348 | |
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
7349 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
7350 | |
+ # Exported symbols can be pulled into shared objects from archives
|
7351 | |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
7352 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
7353 | |
+ # This is similar to how AIX traditionally builds its shared libraries.
|
7354 | |
+ _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'
|
7355 | |
+ fi
|
7356 | |
+ fi
|
7357 | |
+ ;;
|
7358 | |
|
7359 | |
-# Code to be used in simple link tests
|
7360 | |
-lt_simple_link_test_code="$lt_simple_compile_test_code"
|
7361 | |
+ beos*)
|
7362 | |
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
7363 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
7364 | |
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
7365 | |
+ # support --undefined. This deserves some investigation. FIXME
|
7366 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7367 | |
+ else
|
7368 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7369 | |
+ fi
|
7370 | |
+ ;;
|
7371 | |
|
7372 | |
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
7373 | |
-_LT_AC_SYS_COMPILER
|
7374 | |
+ chorus*)
|
7375 | |
+ case $cc_basename in
|
7376 | |
+ *)
|
7377 | |
+ # FIXME: insert proper C++ library support
|
7378 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7379 | |
+ ;;
|
7380 | |
+ esac
|
7381 | |
+ ;;
|
7382 | |
|
7383 | |
-# save warnings/boilerplate of simple test code
|
7384 | |
-_LT_COMPILER_BOILERPLATE
|
7385 | |
-_LT_LINKER_BOILERPLATE
|
7386 | |
+ cygwin* | mingw* | pw32*)
|
7387 | |
+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
7388 | |
+ # as there is no search path for DLLs.
|
7389 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
7390 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
7391 | |
+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
7392 | |
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
7393 | |
|
7394 | |
-# Allow CC to be a program name with arguments.
|
7395 | |
-lt_save_CC="$CC"
|
7396 | |
-CC=${RC-"windres"}
|
7397 | |
-compiler=$CC
|
7398 | |
-_LT_AC_TAGVAR(compiler, $1)=$CC
|
7399 | |
-_LT_CC_BASENAME([$compiler])
|
7400 | |
-_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
7401 | |
-
|
7402 | |
-AC_LIBTOOL_CONFIG($1)
|
7403 | |
-
|
7404 | |
-AC_LANG_RESTORE
|
7405 | |
-CC="$lt_save_CC"
|
7406 | |
-])# AC_LIBTOOL_LANG_RC_CONFIG
|
7407 | |
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
7408 | |
+ _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'
|
7409 | |
+ # If the export-symbols file already is a .def file (1st line
|
7410 | |
+ # is EXPORTS), use it as is; otherwise, prepend...
|
7411 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
7412 | |
+ cp $export_symbols $output_objdir/$soname.def;
|
7413 | |
+ else
|
7414 | |
+ echo EXPORTS > $output_objdir/$soname.def;
|
7415 | |
+ cat $export_symbols >> $output_objdir/$soname.def;
|
7416 | |
+ fi~
|
7417 | |
+ $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'
|
7418 | |
+ else
|
7419 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7420 | |
+ fi
|
7421 | |
+ ;;
|
7422 | |
+ darwin* | rhapsody*)
|
7423 | |
+ case $host_os in
|
7424 | |
+ rhapsody* | darwin1.[[012]])
|
7425 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
|
7426 | |
+ ;;
|
7427 | |
+ *) # Darwin 1.3 on
|
7428 | |
+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
7429 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
7430 | |
+ else
|
7431 | |
+ case ${MACOSX_DEPLOYMENT_TARGET} in
|
7432 | |
+ 10.[[012]])
|
7433 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
7434 | |
+ ;;
|
7435 | |
+ 10.*)
|
7436 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
|
7437 | |
+ ;;
|
7438 | |
+ esac
|
7439 | |
+ fi
|
7440 | |
+ ;;
|
7441 | |
+ esac
|
7442 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
7443 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
7444 | |
+ _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
|
7445 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
7446 | |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
|
7447 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
7448 | |
|
7449 | |
+ if test "$GXX" = yes ; then
|
7450 | |
+ lt_int_apple_cc_single_mod=no
|
7451 | |
+ output_verbose_link_cmd='echo'
|
7452 | |
+ if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
|
7453 | |
+ lt_int_apple_cc_single_mod=yes
|
7454 | |
+ fi
|
7455 | |
+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
7456 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
7457 | |
+ else
|
7458 | |
+ _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'
|
7459 | |
+ fi
|
7460 | |
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
7461 | |
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
7462 | |
+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
7463 | |
+ _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}'
|
7464 | |
+ else
|
7465 | |
+ _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}'
|
7466 | |
+ fi
|
7467 | |
+ _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}'
|
7468 | |
+ else
|
7469 | |
+ case $cc_basename in
|
7470 | |
+ xlc*)
|
7471 | |
+ output_verbose_link_cmd='echo'
|
|
440 |
else
|
|
441 |
# We have old collect2
|
|
442 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
|
443 |
@@ -3736,10 +3809,10 @@
|
|
444 |
case $cc_basename in
|
|
445 |
xlc*)
|
|
446 |
output_verbose_link_cmd='echo'
|
|
447 |
- _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'
|
7472 | 448 |
+ _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` $xlcverstring'
|
7473 | |
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
7474 | |
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
449 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
450 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
451 |
- _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}'
|
7475 | 452 |
+ _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
7476 | |
+ _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}'
|
7477 | |
+ ;;
|
7478 | |
+ *)
|
7479 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7480 | |
+ ;;
|
7481 | |
+ esac
|
7482 | |
+ fi
|
7483 | |
+ ;;
|
7484 | |
|
7485 | |
-# AC_LIBTOOL_CONFIG([TAGNAME])
|
7486 | |
-# ----------------------------
|
7487 | |
-# If TAGNAME is not passed, then create an initial libtool script
|
7488 | |
-# with a default configuration from the untagged config vars. Otherwise
|
7489 | |
-# add code to config.status for appending the configuration named by
|
7490 | |
-# TAGNAME from the matching tagged config vars.
|
7491 | |
-AC_DEFUN([AC_LIBTOOL_CONFIG],
|
7492 | |
-[# The else clause should only fire when bootstrapping the
|
7493 | |
-# libtool distribution, otherwise you forgot to ship ltmain.sh
|
7494 | |
-# with your package, and you will get complaints that there are
|
7495 | |
-# no rules to generate ltmain.sh.
|
7496 | |
-if test -f "$ltmain"; then
|
7497 | |
- # See if we are running on zsh, and set the options which allow our commands through
|
7498 | |
- # without removal of \ escapes.
|
7499 | |
- if test -n "${ZSH_VERSION+set}" ; then
|
7500 | |
- setopt NO_GLOB_SUBST
|
7501 | |
- fi
|
7502 | |
- # Now quote all the things that may contain metacharacters while being
|
7503 | |
- # careful not to overquote the AC_SUBSTed values. We take copies of the
|
7504 | |
- # variables and quote the copies for generation of the libtool script.
|
7505 | |
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
7506 | |
- SED SHELL STRIP \
|
7507 | |
- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
7508 | |
- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
7509 | |
- deplibs_check_method reload_flag reload_cmds need_locks \
|
7510 | |
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
7511 | |
- lt_cv_sys_global_symbol_to_c_name_address \
|
7512 | |
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
7513 | |
- old_postinstall_cmds old_postuninstall_cmds \
|
7514 | |
- _LT_AC_TAGVAR(compiler, $1) \
|
7515 | |
- _LT_AC_TAGVAR(CC, $1) \
|
7516 | |
- _LT_AC_TAGVAR(LD, $1) \
|
7517 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
|
7518 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
|
7519 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
|
7520 | |
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
|
7521 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
|
7522 | |
- _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
|
7523 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
|
7524 | |
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
|
7525 | |
- _LT_AC_TAGVAR(old_archive_cmds, $1) \
|
7526 | |
- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
|
7527 | |
- _LT_AC_TAGVAR(predep_objects, $1) \
|
7528 | |
- _LT_AC_TAGVAR(postdep_objects, $1) \
|
7529 | |
- _LT_AC_TAGVAR(predeps, $1) \
|
7530 | |
- _LT_AC_TAGVAR(postdeps, $1) \
|
7531 | |
- _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
|
7532 | |
- _LT_AC_TAGVAR(archive_cmds, $1) \
|
7533 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
|
7534 | |
- _LT_AC_TAGVAR(postinstall_cmds, $1) \
|
7535 | |
- _LT_AC_TAGVAR(postuninstall_cmds, $1) \
|
7536 | |
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
|
7537 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1) \
|
7538 | |
- _LT_AC_TAGVAR(no_undefined_flag, $1) \
|
7539 | |
- _LT_AC_TAGVAR(export_symbols_cmds, $1) \
|
7540 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
|
7541 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
|
7542 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
|
7543 | |
- _LT_AC_TAGVAR(hardcode_automatic, $1) \
|
7544 | |
- _LT_AC_TAGVAR(module_cmds, $1) \
|
7545 | |
- _LT_AC_TAGVAR(module_expsym_cmds, $1) \
|
7546 | |
- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
|
7547 | |
- _LT_AC_TAGVAR(fix_srcfile_path, $1) \
|
7548 | |
- _LT_AC_TAGVAR(exclude_expsyms, $1) \
|
7549 | |
- _LT_AC_TAGVAR(include_expsyms, $1); do
|
7550 | |
+ dgux*)
|
7551 | |
+ case $cc_basename in
|
7552 | |
+ ec++*)
|
7553 | |
+ # FIXME: insert proper C++ library support
|
7554 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7555 | |
+ ;;
|
7556 | |
+ ghcx*)
|
7557 | |
+ # Green Hills C++ Compiler
|
7558 | |
+ # FIXME: insert proper C++ library support
|
7559 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7560 | |
+ ;;
|
7561 | |
+ *)
|
7562 | |
+ # FIXME: insert proper C++ library support
|
7563 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7564 | |
+ ;;
|
7565 | |
+ esac
|
7566 | |
+ ;;
|
7567 | |
+ freebsd[[12]]*)
|
7568 | |
+ # C++ shared libraries reported to be fairly broken before switch to ELF
|
7569 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7570 | |
+ ;;
|
7571 | |
+ freebsd-elf*)
|
7572 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
7573 | |
+ ;;
|
7574 | |
+ freebsd* | dragonfly*)
|
7575 | |
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
7576 | |
+ # conventions
|
7577 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
7578 | |
+ ;;
|
7579 | |
+ gnu*)
|
7580 | |
+ ;;
|
7581 | |
+ hpux9*)
|
7582 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
7583 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
7584 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
7585 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
7586 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
7587 | |
+ # but as the default
|
7588 | |
+ # location of the library.
|
7589 | |
|
7590 | |
- case $var in
|
7591 | |
- _LT_AC_TAGVAR(old_archive_cmds, $1) | \
|
7592 | |
- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
|
7593 | |
- _LT_AC_TAGVAR(archive_cmds, $1) | \
|
7594 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
|
7595 | |
- _LT_AC_TAGVAR(module_cmds, $1) | \
|
7596 | |
- _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
|
7597 | |
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
|
7598 | |
- _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
|
7599 | |
- extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
7600 | |
- postinstall_cmds | postuninstall_cmds | \
|
7601 | |
- old_postinstall_cmds | old_postuninstall_cmds | \
|
7602 | |
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
7603 | |
- # Double-quote double-evaled strings.
|
7604 | |
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
7605 | |
+ case $cc_basename in
|
7606 | |
+ CC*)
|
7607 | |
+ # FIXME: insert proper C++ library support
|
7608 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7609 | |
+ ;;
|
7610 | |
+ aCC*)
|
7611 | |
+ _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'
|
7612 | |
+ # Commands to make compiler produce verbose output that lists
|
7613 | |
+ # what "hidden" libraries, object files and flags are used when
|
7614 | |
+ # linking a shared library.
|
7615 | |
+ #
|
7616 | |
+ # There doesn't appear to be a way to prevent this compiler from
|
7617 | |
+ # explicitly linking system object files so we need to strip them
|
7618 | |
+ # from the output so that they don't get included in the library
|
7619 | |
+ # dependencies.
|
7620 | |
+ 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'
|
7621 | |
;;
|
7622 | |
*)
|
7623 | |
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
7624 | |
+ if test "$GXX" = yes; then
|
7625 | |
+ _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'
|
7626 | |
+ else
|
7627 | |
+ # FIXME: insert proper C++ library support
|
7628 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7629 | |
+ fi
|
7630 | |
;;
|
|
453 |
_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}'
|
|
454 |
;;
|
|
455 |
*)
|
|
456 |
@@ -3822,9 +3895,7 @@
|
|
457 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
458 |
|
|
459 |
case $host_cpu in
|
|
460 |
- hppa*64*|ia64*)
|
|
461 |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
|
462 |
- ;;
|
|
463 |
+ hppa*64*|ia64*) ;;
|
|
464 |
*)
|
|
465 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
466 |
;;
|
|
467 |
@@ -3892,7 +3963,7 @@
|
|
468 |
;;
|
7631 | 469 |
esac
|
7632 | |
- done
|
7633 | |
-
|
7634 | |
- case $lt_echo in
|
7635 | |
- *'\[$]0 --fallback-echo"')
|
7636 | |
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
|
7637 | 470 |
;;
|
7638 | |
- esac
|
7639 | |
-
|
7640 | |
-ifelse([$1], [],
|
7641 | |
- [cfgfile="${ofile}T"
|
7642 | |
- trap "$rm \"$cfgfile\"; exit 1" 1 2 15
|
7643 | |
- $rm -f "$cfgfile"
|
7644 | |
- AC_MSG_NOTICE([creating $ofile])],
|
7645 | |
- [cfgfile="$ofile"])
|
7646 | |
-
|
7647 | |
- cat <<__EOF__ >> "$cfgfile"
|
7648 | |
-ifelse([$1], [],
|
7649 | |
-[#! $SHELL
|
7650 | |
+ hpux10*|hpux11*)
|
7651 | |
+ if test $with_gnu_ld = no; then
|
7652 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
7653 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
7654 | |
|
7655 | |
-# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
7656 | |
-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
7657 | |
-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
7658 | |
-#
|
7659 | |
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
|
7660 | |
-# Free Software Foundation, Inc.
|
7661 | |
-#
|
7662 | |
-# This file is part of GNU Libtool:
|
7663 | |
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
7664 | |
-#
|
7665 | |
-# This program is free software; you can redistribute it and/or modify
|
7666 | |
-# it under the terms of the GNU General Public License as published by
|
7667 | |
-# the Free Software Foundation; either version 2 of the License, or
|
7668 | |
-# (at your option) any later version.
|
7669 | |
-#
|
7670 | |
-# This program is distributed in the hope that it will be useful, but
|
7671 | |
-# WITHOUT ANY WARRANTY; without even the implied warranty of
|
7672 | |
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
7673 | |
-# General Public License for more details.
|
7674 | |
-#
|
7675 | |
-# You should have received a copy of the GNU General Public License
|
7676 | |
-# along with this program; if not, write to the Free Software
|
7677 | |
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
7678 | |
-#
|
7679 | |
-# As a special exception to the GNU General Public License, if you
|
7680 | |
-# distribute this file as part of a program that contains a
|
7681 | |
-# configuration script generated by Autoconf, you may include it under
|
7682 | |
-# the same distribution terms that you use for the rest of that program.
|
7683 | |
-
|
7684 | |
-# A sed program that does not truncate output.
|
7685 | |
-SED=$lt_SED
|
7686 | |
-
|
7687 | |
-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
7688 | |
-Xsed="$SED -e 1s/^X//"
|
7689 | |
-
|
7690 | |
-# The HP-UX ksh and POSIX shell print the target directory to stdout
|
7691 | |
-# if CDPATH is set.
|
7692 | |
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
7693 | |
-
|
7694 | |
-# The names of the tagged configurations supported by this script.
|
7695 | |
-available_tags=
|
7696 | |
-
|
7697 | |
-# ### BEGIN LIBTOOL CONFIG],
|
7698 | |
-[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
|
7699 | |
-
|
7700 | |
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
7701 | |
+ case $host_cpu in
|
7702 | |
+ hppa*64*|ia64*) ;;
|
7703 | |
+ *)
|
7704 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
7705 | |
+ ;;
|
7706 | |
+ esac
|
7707 | |
+ fi
|
7708 | |
+ case $host_cpu in
|
7709 | |
+ hppa*64*|ia64*)
|
7710 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
7711 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
7712 | |
+ ;;
|
7713 | |
+ *)
|
7714 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
7715 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
7716 | |
+ # but as the default
|
7717 | |
+ # location of the library.
|
7718 | |
+ ;;
|
7719 | |
+ esac
|
7720 | |
|
7721 | |
-# Shell to use when invoking shell scripts.
|
7722 | |
-SHELL=$lt_SHELL
|
7723 | |
+ case $cc_basename in
|
7724 | |
+ CC*)
|
7725 | |
+ # FIXME: insert proper C++ library support
|
7726 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7727 | |
+ ;;
|
7728 | |
+ aCC*)
|
7729 | |
+ case $host_cpu in
|
7730 | |
+ hppa*64*)
|
7731 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
7732 | |
+ ;;
|
7733 | |
+ ia64*)
|
7734 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
7735 | |
+ ;;
|
7736 | |
+ *)
|
7737 | |
+ _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'
|
7738 | |
+ ;;
|
7739 | |
+ esac
|
7740 | |
+ # Commands to make compiler produce verbose output that lists
|
7741 | |
+ # what "hidden" libraries, object files and flags are used when
|
7742 | |
+ # linking a shared library.
|
7743 | |
+ #
|
7744 | |
+ # There doesn't appear to be a way to prevent this compiler from
|
7745 | |
+ # explicitly linking system object files so we need to strip them
|
7746 | |
+ # from the output so that they don't get included in the library
|
7747 | |
+ # dependencies.
|
7748 | |
+ 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'
|
7749 | |
+ ;;
|
7750 | |
+ *)
|
7751 | |
+ if test "$GXX" = yes; then
|
7752 | |
+ if test $with_gnu_ld = no; then
|
7753 | |
+ case $host_cpu in
|
7754 | |
+ hppa*64*)
|
7755 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
7756 | |
+ ;;
|
7757 | |
+ ia64*)
|
7758 | |
+ _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'
|
7759 | |
+ ;;
|
7760 | |
+ *)
|
7761 | |
+ _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'
|
7762 | |
+ ;;
|
7763 | |
+ esac
|
7764 | |
+ fi
|
7765 | |
+ else
|
7766 | |
+ # FIXME: insert proper C++ library support
|
7767 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7768 | |
+ fi
|
7769 | |
+ ;;
|
7770 | |
+ esac
|
7771 | |
+ ;;
|
|
471 |
- interix3*)
|
7772 | 472 |
+ interix[[3-9]]*)
|
7773 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
7774 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
7775 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
7776 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
7777 | |
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
7778 | |
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
|
7779 | |
+ # default) and relocated if they conflict, which is a slow very memory
|
7780 | |
+ # consuming and fragmenting process. To avoid this, we pick a random,
|
7781 | |
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
7782 | |
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
7783 | |
+ _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'
|
7784 | |
+ _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'
|
7785 | |
+ ;;
|
7786 | |
+ irix5* | irix6*)
|
7787 | |
+ case $cc_basename in
|
7788 | |
+ CC*)
|
7789 | |
+ # SGI C++
|
7790 | |
+ _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'
|
7791 | |
|
7792 | |
-# Whether or not to build shared libraries.
|
7793 | |
-build_libtool_libs=$enable_shared
|
7794 | |
+ # Archives containing C++ object files must be created using
|
7795 | |
+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
7796 | |
+ # necessary to make sure instantiated templates are included
|
7797 | |
+ # in the archive.
|
7798 | |
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
7799 | |
+ ;;
|
7800 | |
+ *)
|
7801 | |
+ if test "$GXX" = yes; then
|
7802 | |
+ if test "$with_gnu_ld" = no; then
|
7803 | |
+ _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'
|
7804 | |
+ else
|
7805 | |
+ _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'
|
7806 | |
+ fi
|
7807 | |
+ fi
|
7808 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
7809 | |
+ ;;
|
7810 | |
+ esac
|
7811 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
7812 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
7813 | |
+ ;;
|
7814 | |
+ linux* | k*bsd*-gnu)
|
7815 | |
+ case $cc_basename in
|
7816 | |
+ KCC*)
|
7817 | |
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
|
7818 | |
|
7819 | |
-# Whether or not to build static libraries.
|
7820 | |
-build_old_libs=$enable_static
|
7821 | |
+ # KCC will only create a shared library if the output file
|
7822 | |
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
7823 | |
+ # to its proper name (with version) after linking.
|
7824 | |
+ _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'
|
7825 | |
+ _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'
|
7826 | |
+ # Commands to make compiler produce verbose output that lists
|
7827 | |
+ # what "hidden" libraries, object files and flags are used when
|
7828 | |
+ # linking a shared library.
|
7829 | |
+ #
|
7830 | |
+ # There doesn't appear to be a way to prevent this compiler from
|
7831 | |
+ # explicitly linking system object files so we need to strip them
|
7832 | |
+ # from the output so that they don't get included in the library
|
7833 | |
+ # dependencies.
|
7834 | |
+ 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'
|
7835 | |
|
7836 | |
-# Whether or not to add -lc for building shared libraries.
|
7837 | |
-build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
|
7838 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
|
7839 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
7840 | |
|
7841 | |
-# Whether or not to disallow shared libs when runtime libs are static
|
7842 | |
-allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
|
7843 | |
+ # Archives containing C++ object files must be created using
|
7844 | |
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
7845 | |
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
7846 | |
+ ;;
|
7847 | |
+ icpc*)
|
7848 | |
+ # Intel C++
|
7849 | |
+ with_gnu_ld=yes
|
7850 | |
+ # version 8.0 and above of icpc choke on multiply defined symbols
|
7851 | |
+ # if we add $predep_objects and $postdep_objects, however 7.1 and
|
7852 | |
+ # earlier do not add the objects themselves.
|
7853 | |
+ case `$CC -V 2>&1` in
|
7854 | |
+ *"Version 7."*)
|
7855 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7856 | |
+ _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'
|
7857 | |
+ ;;
|
7858 | |
+ *) # Version 8.0 or newer
|
7859 | |
+ tmp_idyn=
|
7860 | |
+ case $host_cpu in
|
7861 | |
+ ia64*) tmp_idyn=' -i_dynamic';;
|
7862 | |
+ esac
|
7863 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7864 | |
+ _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'
|
7865 | |
+ ;;
|
7866 | |
+ esac
|
7867 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
7868 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
7869 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
7870 | |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
7871 | |
+ ;;
|
7872 | |
+ pgCC*)
|
7873 | |
+ # Portland Group C++ compiler
|
7874 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
7875 | |
+ _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'
|
7876 | |
|
7877 | |
-# Whether or not to optimize for fast installation.
|
7878 | |
-fast_install=$enable_fast_install
|
7879 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
7880 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
7881 | |
+ _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'
|
7882 | |
+ ;;
|
7883 | |
+ cxx*)
|
7884 | |
+ # Compaq C++
|
7885 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7886 | |
+ _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'
|
7887 | |
|
7888 | |
-# The host system.
|
7889 | |
-host_alias=$host_alias
|
7890 | |
-host=$host
|
7891 | |
-host_os=$host_os
|
7892 | |
+ runpath_var=LD_RUN_PATH
|
7893 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
7894 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
7895 | |
|
7896 | |
-# The build system.
|
7897 | |
-build_alias=$build_alias
|
7898 | |
-build=$build
|
7899 | |
-build_os=$build_os
|
7900 | |
+ # Commands to make compiler produce verbose output that lists
|
7901 | |
+ # what "hidden" libraries, object files and flags are used when
|
7902 | |
+ # linking a shared library.
|
7903 | |
+ #
|
7904 | |
+ # There doesn't appear to be a way to prevent this compiler from
|
7905 | |
+ # explicitly linking system object files so we need to strip them
|
7906 | |
+ # from the output so that they don't get included in the library
|
7907 | |
+ # dependencies.
|
7908 | |
+ 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'
|
7909 | |
+ ;;
|
|
473 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|
474 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
475 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
476 |
@@ -4012,6 +4083,29 @@
|
|
477 |
# dependencies.
|
|
478 |
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'
|
|
479 |
;;
|
7910 | 480 |
+ *)
|
7911 | 481 |
+ case `$CC -V 2>&1 | sed 5q` in
|
7912 | 482 |
+ *Sun\ C*)
|
|
7916 | 486 |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
|
7917 | 487 |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
7918 | 488 |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
7919 | |
|
7920 | |
-# An echo program that does not interpret backslashes.
|
7921 | |
-echo=$lt_echo
|
|
489 |
+
|
7922 | 490 |
+ # Not sure whether something based on
|
7923 | 491 |
+ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
7924 | 492 |
+ # would be better.
|
7925 | 493 |
+ output_verbose_link_cmd='echo'
|
7926 | |
|
7927 | |
-# The archiver.
|
7928 | |
-AR=$lt_AR
|
7929 | |
-AR_FLAGS=$lt_AR_FLAGS
|
7930 | |
-
|
7931 | |
-# A C compiler.
|
7932 | |
-LTCC=$lt_LTCC
|
|
494 |
+
|
7933 | 495 |
+ # Archives containing C++ object files must be created using
|
7934 | 496 |
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
7935 | 497 |
+ # necessary to make sure instantiated templates are included
|
|
7938 | 500 |
+ ;;
|
7939 | 501 |
+ esac
|
7940 | 502 |
+ ;;
|
7941 | |
+ esac
|
7942 | |
+ ;;
|
7943 | |
+ lynxos*)
|
7944 | |
+ # FIXME: insert proper C++ library support
|
7945 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7946 | |
+ ;;
|
7947 | |
+ m88k*)
|
7948 | |
+ # FIXME: insert proper C++ library support
|
7949 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7950 | |
+ ;;
|
7951 | |
+ mvs*)
|
7952 | |
+ case $cc_basename in
|
7953 | |
+ cxx*)
|
7954 | |
+ # FIXME: insert proper C++ library support
|
7955 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7956 | |
+ ;;
|
7957 | |
+ *)
|
7958 | |
+ # FIXME: insert proper C++ library support
|
7959 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7960 | |
+ ;;
|
7961 | |
+ esac
|
7962 | |
+ ;;
|
7963 | |
+ netbsd* | netbsdelf*-gnu)
|
7964 | |
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
7965 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
7966 | |
+ wlarc=
|
7967 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
7968 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
7969 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
7970 | |
+ fi
|
7971 | |
+ # Workaround some broken pre-1.5 toolchains
|
7972 | |
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
7973 | |
+ ;;
|
7974 | |
+ openbsd2*)
|
7975 | |
+ # C++ shared libraries are fairly broken
|
7976 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7977 | |
+ ;;
|
7978 | |
+ openbsd*)
|
|
503 |
esac
|
|
504 |
;;
|
|
505 |
lynxos*)
|
|
506 |
@@ -4050,16 +4144,20 @@
|
|
507 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
508 |
;;
|
|
509 |
openbsd*)
|
|
510 |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|
511 |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
512 |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
|
513 |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
514 |
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
515 |
- _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'
|
|
516 |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
517 |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
7979 | 518 |
+ if test -f /usr/libexec/ld.so; then
|
7980 | 519 |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
7981 | 520 |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
7989 | 528 |
+ output_verbose_link_cmd='echo'
|
7990 | 529 |
+ else
|
7991 | 530 |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
7992 | |
+ fi
|
7993 | |
+ ;;
|
7994 | |
+ osf3*)
|
7995 | |
+ case $cc_basename in
|
7996 | |
+ KCC*)
|
7997 | |
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
|
7998 | |
|
7999 | |
-# LTCC compiler flags.
|
8000 | |
-LTCFLAGS=$lt_LTCFLAGS
|
8001 | |
+ # KCC will only create a shared library if the output file
|
8002 | |
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
8003 | |
+ # to its proper name (with version) after linking.
|
8004 | |
+ _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'
|
8005 | |
|
8006 | |
-# A language-specific compiler.
|
8007 | |
-CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
|
8008 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
8009 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
8010 | |
|
8011 | |
-# Is the compiler the GNU C compiler?
|
8012 | |
-with_gcc=$_LT_AC_TAGVAR(GCC, $1)
|
8013 | |
+ # Archives containing C++ object files must be created using
|
8014 | |
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
8015 | |
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
8016 | |
|
8017 | |
-# An ERE matcher.
|
8018 | |
-EGREP=$lt_EGREP
|
8019 | |
+ ;;
|
8020 | |
+ RCC*)
|
8021 | |
+ # Rational C++ 2.4.1
|
8022 | |
+ # FIXME: insert proper C++ library support
|
8023 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
8024 | |
+ ;;
|
8025 | |
+ cxx*)
|
8026 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
8027 | |
+ _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'
|
8028 | |
|
8029 | |
-# The linker used to build libraries.
|
8030 | |
-LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
|
8031 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
8032 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
8033 | |
|
8034 | |
-# Whether we need hard or soft links.
|
8035 | |
-LN_S=$lt_LN_S
|
8036 | |
+ # Commands to make compiler produce verbose output that lists
|
8037 | |
+ # what "hidden" libraries, object files and flags are used when
|
8038 | |
+ # linking a shared library.
|
8039 | |
+ #
|
8040 | |
+ # There doesn't appear to be a way to prevent this compiler from
|
8041 | |
+ # explicitly linking system object files so we need to strip them
|
8042 | |
+ # from the output so that they don't get included in the library
|
8043 | |
+ # dependencies.
|
8044 | |
+ 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'
|
8045 | |
+ ;;
|
8046 | |
+ *)
|
8047 | |
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
8048 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
8049 | |
+ _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'
|
8050 | |
|
8051 | |
-# A BSD-compatible nm program.
|
8052 | |
-NM=$lt_NM
|
8053 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
8054 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
8055 | |
|
8056 | |
-# A symbol stripping program
|
8057 | |
-STRIP=$lt_STRIP
|
8058 | |
+ # Commands to make compiler produce verbose output that lists
|
8059 | |
+ # what "hidden" libraries, object files and flags are used when
|
8060 | |
+ # linking a shared library.
|
8061 | |
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
8062 | |
|
8063 | |
-# Used to examine libraries when file_magic_cmd begins "file"
|
8064 | |
-MAGIC_CMD=$MAGIC_CMD
|
8065 | |
+ else
|
8066 | |
+ # FIXME: insert proper C++ library support
|
8067 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
8068 | |
+ fi
|
8069 | |
+ ;;
|
8070 | |
+ esac
|
8071 | |
+ ;;
|
8072 | |
+ osf4* | osf5*)
|
8073 | |
+ case $cc_basename in
|
8074 | |
+ KCC*)
|
8075 | |
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
|
8076 | |
|
8077 | |
-# Used on cygwin: DLL creation program.
|
8078 | |
-DLLTOOL="$DLLTOOL"
|
8079 | |
+ # KCC will only create a shared library if the output file
|
8080 | |
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
8081 | |
+ # to its proper name (with version) after linking.
|
8082 | |
+ _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'
|
8083 | |
|
8084 | |
-# Used on cygwin: object dumper.
|
8085 | |
-OBJDUMP="$OBJDUMP"
|
8086 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
8087 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
8088 | |
|
8089 | |
-# Used on cygwin: assembler.
|
8090 | |
-AS="$AS"
|
8091 | |
+ # Archives containing C++ object files must be created using
|
8092 | |
+ # the KAI C++ compiler.
|
8093 | |
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
|
8094 | |
+ ;;
|
8095 | |
+ RCC*)
|
8096 | |
+ # Rational C++ 2.4.1
|
8097 | |
+ # FIXME: insert proper C++ library support
|
8098 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
8099 | |
+ ;;
|
8100 | |
+ cxx*)
|
8101 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
8102 | |
+ _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'
|
8103 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
8104 | |
+ echo "-hidden">> $lib.exp~
|
8105 | |
+ $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~
|
8106 | |
+ $rm $lib.exp'
|
8107 | |
|
8108 | |
-# The name of the directory that contains temporary libtool files.
|
8109 | |
-objdir=$objdir
|
8110 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
8111 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
8112 | |
|
8113 | |
-# How to create reloadable object files.
|
8114 | |
-reload_flag=$lt_reload_flag
|
8115 | |
-reload_cmds=$lt_reload_cmds
|
8116 | |
+ # Commands to make compiler produce verbose output that lists
|
8117 | |
+ # what "hidden" libraries, object files and flags are used when
|
8118 | |
+ # linking a shared library.
|
8119 | |
+ #
|
8120 | |
+ # There doesn't appear to be a way to prevent this compiler from
|
8121 | |
+ # explicitly linking system object files so we need to strip them
|
8122 | |
+ # from the output so that they don't get included in the library
|
8123 | |
+ # dependencies.
|
8124 | |
+ 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'
|
8125 | |
+ ;;
|
8126 | |
+ *)
|
8127 | |
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
8128 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
8129 | |
+ _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'
|
8130 | |
|
8131 | |
-# How to pass a linker flag through the compiler.
|
8132 | |
-wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
|
8133 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
8134 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
8135 | |
|
8136 | |
-# Object file suffix (normally "o").
|
8137 | |
-objext="$ac_objext"
|
8138 | |
+ # Commands to make compiler produce verbose output that lists
|
8139 | |
+ # what "hidden" libraries, object files and flags are used when
|
8140 | |
+ # linking a shared library.
|
8141 | |
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
8142 | |
|
8143 | |
-# Old archive suffix (normally "a").
|
8144 | |
-libext="$libext"
|
8145 | |
+ else
|
8146 | |
+ # FIXME: insert proper C++ library support
|
8147 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
8148 | |
+ fi
|
8149 | |
+ ;;
|
8150 | |
+ esac
|
8151 | |
+ ;;
|
8152 | |
+ psos*)
|
8153 | |
+ # FIXME: insert proper C++ library support
|
8154 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
8155 | |
+ ;;
|
8156 | |
+ sunos4*)
|
8157 | |
+ case $cc_basename in
|
8158 | |
+ CC*)
|
8159 | |
+ # Sun C++ 4.x
|
8160 | |
+ # FIXME: insert proper C++ library support
|
8161 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
8162 | |
+ ;;
|
8163 | |
+ lcc*)
|
8164 | |
+ # Lucid
|
8165 | |
+ # FIXME: insert proper C++ library support
|
8166 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
8167 | |
+ ;;
|
8168 | |
+ *)
|
8169 | |
+ # FIXME: insert proper C++ library support
|
8170 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
8171 | |
+ ;;
|
8172 | |
+ esac
|
8173 | |
+ ;;
|
8174 | |
+ solaris*)
|
8175 | |
+ case $cc_basename in
|
8176 | |
+ CC*)
|
8177 | |
+ # Sun C++ 4.2, 5.x and Centerline C++
|
8178 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
|
8179 | |
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
8180 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
8181 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
8182 | |
+ $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'
|
8183 | |
|
8184 | |
-# Shared library suffix (normally ".so").
|
8185 | |
-shrext_cmds='$shrext_cmds'
|
8186 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
8187 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
8188 | |
+ case $host_os in
|
8189 | |
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
8190 | |
+ *)
|
|
531 |
fi
|
|
532 |
- output_verbose_link_cmd='echo'
|
|
533 |
;;
|
|
534 |
osf3*)
|
|
535 |
case $cc_basename in
|
|
536 |
@@ -4221,15 +4319,10 @@
|
|
537 |
case $host_os in
|
|
538 |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
|
539 |
*)
|
|
540 |
- # The C++ compiler is used as linker so we must use $wl
|
|
541 |
- # flag to pass the commands to the underlying system
|
|
542 |
- # linker. We must also pass each convience library through
|
|
543 |
- # to the system linker between allextract/defaultextract.
|
|
544 |
- # The C++ compiler will combine linker options so we
|
|
545 |
- # cannot just pass the convience library names through
|
|
546 |
- # without $wl.
|
8191 | 547 |
+ # The compiler driver will combine and reorder linker options,
|
8192 | 548 |
+ # but understands `-z linker_flag'.
|
8193 | |
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
549 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
550 |
- _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'
|
8194 | 551 |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
|
8195 | |
+ ;;
|
8196 | |
+ esac
|
8197 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
8198 | |
|
8199 | |
-# Executable file suffix (normally "").
|
8200 | |
-exeext="$exeext"
|
8201 | |
+ output_verbose_link_cmd='echo'
|
8202 | |
|
8203 | |
-# Additional compiler flags for building library objects.
|
8204 | |
-pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
|
8205 | |
-pic_mode=$pic_mode
|
8206 | |
-
|
8207 | |
-# What is the maximum length of a command?
|
8208 | |
-max_cmd_len=$lt_cv_sys_max_cmd_len
|
8209 | |
-
|
8210 | |
-# Does compiler simultaneously support -c and -o options?
|
8211 | |
-compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
|
8212 | |
-
|
8213 | |
-# Must we lock files when doing compilation?
|
8214 | |
-need_locks=$lt_need_locks
|
8215 | |
+ # Archives containing C++ object files must be created using
|
8216 | |
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
8217 | |
+ # necessary to make sure instantiated templates are included
|
8218 | |
+ # in the archive.
|
8219 | |
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
8220 | |
+ ;;
|
8221 | |
+ gcx*)
|
8222 | |
+ # Green Hills C++ Compiler
|
8223 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
8224 | |
|
8225 | |
-# Do we need the lib prefix for modules?
|
8226 | |
-need_lib_prefix=$need_lib_prefix
|
8227 | |
+ # The C++ compiler must be used to create the archive.
|
8228 | |
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
8229 | |
+ ;;
|
8230 | |
+ *)
|
8231 | |
+ # GNU C++ compiler with Solaris linker
|
8232 | |
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
8233 | |
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
|
8234 | |
+ if $CC --version | grep -v '^2\.7' > /dev/null; then
|
8235 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
8236 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
8237 | |
+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
8238 | |
|
8239 | |
-# Do we need a version for libraries?
|
8240 | |
-need_version=$need_version
|
8241 | |
+ # Commands to make compiler produce verbose output that lists
|
8242 | |
+ # what "hidden" libraries, object files and flags are used when
|
8243 | |
+ # linking a shared library.
|
8244 | |
+ output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
8245 | |
+ else
|
8246 | |
+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
|
8247 | |
+ # platform.
|
8248 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
8249 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
8250 | |
+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
8251 | |
|
8252 | |
-# Whether dlopen is supported.
|
8253 | |
-dlopen_support=$enable_dlopen
|
8254 | |
+ # Commands to make compiler produce verbose output that lists
|
8255 | |
+ # what "hidden" libraries, object files and flags are used when
|
8256 | |
+ # linking a shared library.
|
8257 | |
+ output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
8258 | |
+ fi
|
8259 | |
|
8260 | |
-# Whether dlopen of programs is supported.
|
8261 | |
-dlopen_self=$enable_dlopen_self
|
8262 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
|
|
552 |
;;
|
|
553 |
esac
|
|
554 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|
555 |
@@ -4276,6 +4369,12 @@
|
|
556 |
fi
|
|
557 |
|
|
558 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
|
8263 | 559 |
+ case $host_os in
|
8264 | 560 |
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
8265 | 561 |
+ *)
|
8266 | 562 |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
8267 | 563 |
+ ;;
|
8268 | 564 |
+ esac
|
8269 | |
+ fi
|
8270 | |
+ ;;
|
8271 | |
+ esac
|
8272 | |
+ ;;
|
8273 | |
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
8274 | |
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
8275 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
8276 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
8277 | |
+ runpath_var='LD_RUN_PATH'
|
8278 | |
|
8279 | |
-# Whether dlopen of statically linked programs is supported.
|
8280 | |
-dlopen_self_static=$enable_dlopen_self_static
|
8281 | |
+ case $cc_basename in
|
8282 | |
+ CC*)
|
8283 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
8284 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
8285 | |
+ ;;
|
8286 | |
+ *)
|
8287 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
8288 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
8289 | |
+ ;;
|
8290 | |
+ esac
|
8291 | |
+ ;;
|
8292 | |
+ sysv5* | sco3.2v5* | sco5v6*)
|
8293 | |
+ # Note: We can NOT use -z defs as we might desire, because we do not
|
8294 | |
+ # link with -lc, and that would cause any symbols used from libc to
|
8295 | |
+ # always be unresolved, which means just about no library would
|
8296 | |
+ # ever link correctly. If we're not using GNU ld we use -z text
|
8297 | |
+ # though, which does catch some bad symbols but isn't as heavy-handed
|
8298 | |
+ # as -z defs.
|
8299 | |
+ # For security reasons, it is highly recommended that you always
|
8300 | |
+ # use absolute paths for naming shared libraries, and exclude the
|
8301 | |
+ # DT_RUNPATH tag from executables and libraries. But doing so
|
8302 | |
+ # requires that you compile everything twice, which is a pain.
|
8303 | |
+ # So that behaviour is only enabled if SCOABSPATH is set to a
|
8304 | |
+ # non-empty value in the environment. Most likely only useful for
|
8305 | |
+ # creating official distributions of packages.
|
8306 | |
+ # This is a hack until libtool officially supports absolute path
|
8307 | |
+ # names for shared libraries.
|
8308 | |
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
8309 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
|
8310 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
8311 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
8312 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
8313 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
8314 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
8315 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
8316 | |
+ runpath_var='LD_RUN_PATH'
|
8317 | |
|
8318 | |
-# Compiler flag to prevent dynamic linking.
|
8319 | |
-link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
|
8320 | |
+ case $cc_basename in
|
8321 | |
+ CC*)
|
8322 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
8323 | |
+ _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'
|
8324 | |
+ ;;
|
8325 | |
+ *)
|
8326 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
8327 | |
+ _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'
|
8328 | |
+ ;;
|
8329 | |
+ esac
|
8330 | |
+ ;;
|
8331 | |
+ tandem*)
|
8332 | |
+ case $cc_basename in
|
8333 | |
+ NCC*)
|
8334 | |
+ # NonStop-UX NCC 3.20
|
8335 | |
+ # FIXME: insert proper C++ library support
|
8336 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
8337 | |
+ ;;
|
8338 | |
+ *)
|
8339 | |
+ # FIXME: insert proper C++ library support
|
8340 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
8341 | |
+ ;;
|
8342 | |
+ esac
|
8343 | |
+ ;;
|
8344 | |
+ vxworks*)
|
8345 | |
+ # FIXME: insert proper C++ library support
|
8346 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
8347 | |
+ ;;
|
8348 | |
+ *)
|
8349 | |
+ # FIXME: insert proper C++ library support
|
8350 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
8351 | |
+ ;;
|
8352 | |
+esac
|
8353 | |
+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
|
8354 | |
+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
8355 | |
|
8356 | |
-# Compiler flag to turn off builtin functions.
|
8357 | |
-no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
|
8358 | |
+_LT_AC_TAGVAR(GCC, $1)="$GXX"
|
8359 | |
+_LT_AC_TAGVAR(LD, $1)="$LD"
|
8360 | |
|
8361 | |
-# Compiler flag to allow reflexive dlopens.
|
8362 | |
-export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
|
8363 | |
+AC_LIBTOOL_POSTDEP_PREDEP($1)
|
8364 | |
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
8365 | |
+AC_LIBTOOL_PROG_CC_C_O($1)
|
8366 | |
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
8367 | |
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
8368 | |
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
8369 | |
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
8370 | |
|
8371 | |
-# Compiler flag to generate shared objects directly from archives.
|
8372 | |
-whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
|
8373 | |
+AC_LIBTOOL_CONFIG($1)
|
8374 | |
|
8375 | |
-# Compiler flag to generate thread-safe objects.
|
8376 | |
-thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
|
8377 | |
+AC_LANG_POP
|
8378 | |
+CC=$lt_save_CC
|
8379 | |
+LDCXX=$LD
|
8380 | |
+LD=$lt_save_LD
|
8381 | |
+GCC=$lt_save_GCC
|
8382 | |
+with_gnu_ldcxx=$with_gnu_ld
|
8383 | |
+with_gnu_ld=$lt_save_with_gnu_ld
|
8384 | |
+lt_cv_path_LDCXX=$lt_cv_path_LD
|
8385 | |
+lt_cv_path_LD=$lt_save_path_LD
|
8386 | |
+lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
8387 | |
+lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
8388 | |
+])# AC_LIBTOOL_LANG_CXX_CONFIG
|
8389 | |
|
8390 | |
-# Library versioning type.
|
8391 | |
-version_type=$version_type
|
8392 | |
+# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
|
8393 | |
+# ------------------------------------
|
8394 | |
+# Figure out "hidden" library dependencies from verbose
|
8395 | |
+# compiler output when linking a shared library.
|
8396 | |
+# Parse the compiler output and extract the necessary
|
8397 | |
+# objects, libraries and library flags.
|
8398 | |
+AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
|
8399 | |
+dnl we can't use the lt_simple_compile_test_code here,
|
8400 | |
+dnl because it contains code intended for an executable,
|
8401 | |
+dnl not a library. It's possible we should let each
|
8402 | |
+dnl tag define a new lt_????_link_test_code variable,
|
8403 | |
+dnl but it's only used here...
|
8404 | |
+ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
|
8405 | |
+int a;
|
8406 | |
+void foo (void) { a = 0; }
|
8407 | |
+EOF
|
8408 | |
+],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
|
8409 | |
+class Foo
|
8410 | |
+{
|
8411 | |
+public:
|
8412 | |
+ Foo (void) { a = 0; }
|
8413 | |
+private:
|
8414 | |
+ int a;
|
8415 | |
+};
|
8416 | |
+EOF
|
8417 | |
+],[$1],[F77],[cat > conftest.$ac_ext <<EOF
|
8418 | |
+ subroutine foo
|
8419 | |
+ implicit none
|
8420 | |
+ integer*4 a
|
8421 | |
+ a=0
|
8422 | |
+ return
|
8423 | |
+ end
|
8424 | |
+EOF
|
8425 | |
+],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
|
8426 | |
+public class foo {
|
8427 | |
+ private int a;
|
8428 | |
+ public void bar (void) {
|
8429 | |
+ a = 0;
|
8430 | |
+ }
|
8431 | |
+};
|
8432 | |
+EOF
|
8433 | |
+])
|
8434 | |
+dnl Parse the compiler output and extract the necessary
|
8435 | |
+dnl objects, libraries and library flags.
|
8436 | |
+if AC_TRY_EVAL(ac_compile); then
|
8437 | |
+ # Parse the compiler output and extract the necessary
|
8438 | |
+ # objects, libraries and library flags.
|
8439 | |
|
8440 | |
-# Format of library name prefix.
|
8441 | |
-libname_spec=$lt_libname_spec
|
8442 | |
+ # Sentinel used to keep track of whether or not we are before
|
8443 | |
+ # the conftest object file.
|
8444 | |
+ pre_test_object_deps_done=no
|
8445 | |
|
8446 | |
-# List of archive names. First name is the real one, the rest are links.
|
8447 | |
-# The last name is the one that the linker finds with -lNAME.
|
8448 | |
-library_names_spec=$lt_library_names_spec
|
8449 | |
+ # The `*' in the case matches for architectures that use `case' in
|
8450 | |
+ # $output_verbose_cmd can trigger glob expansion during the loop
|
8451 | |
+ # eval without this substitution.
|
8452 | |
+ output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
|
8453 | |
|
8454 | |
-# The coded name of the library, if different from the real name.
|
8455 | |
-soname_spec=$lt_soname_spec
|
8456 | |
+ for p in `eval $output_verbose_link_cmd`; do
|
8457 | |
+ case $p in
|
8458 | |
|
8459 | |
-# Commands used to build and install an old-style archive.
|
8460 | |
-RANLIB=$lt_RANLIB
|
8461 | |
-old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
|
8462 | |
-old_postinstall_cmds=$lt_old_postinstall_cmds
|
8463 | |
-old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
8464 | |
+ -L* | -R* | -l*)
|
8465 | |
+ # Some compilers place space between "-{L,R}" and the path.
|
8466 | |
+ # Remove the space.
|
8467 | |
+ if test $p = "-L" \
|
8468 | |
+ || test $p = "-R"; then
|
8469 | |
+ prev=$p
|
8470 | |
+ continue
|
8471 | |
+ else
|
8472 | |
+ prev=
|
8473 | |
+ fi
|
8474 | |
|
8475 | |
-# Create an old-style archive from a shared archive.
|
8476 | |
-old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
|
8477 | |
+ if test "$pre_test_object_deps_done" = no; then
|
8478 | |
+ case $p in
|
8479 | |
+ -L* | -R*)
|
8480 | |
+ # Internal compiler library paths should come after those
|
8481 | |
+ # provided the user. The postdeps already come after the
|
8482 | |
+ # user supplied libs so there is no need to process them.
|
8483 | |
+ if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
|
8484 | |
+ _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
|
8485 | |
+ else
|
8486 | |
+ _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
|
8487 | |
+ fi
|
8488 | |
+ ;;
|
8489 | |
+ # The "-l" case would never come before the object being
|
8490 | |
+ # linked, so don't bother handling this case.
|
8491 | |
+ esac
|
8492 | |
+ else
|
8493 | |
+ if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
|
8494 | |
+ _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
|
8495 | |
+ else
|
8496 | |
+ _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
|
8497 | |
+ fi
|
8498 | |
+ fi
|
8499 | |
+ ;;
|
8500 | |
|
8501 | |
-# Create a temporary old-style archive to link instead of a shared archive.
|
8502 | |
-old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
|
8503 | |
+ *.$objext)
|
8504 | |
+ # This assumes that the test object file only shows up
|
8505 | |
+ # once in the compiler output.
|
8506 | |
+ if test "$p" = "conftest.$objext"; then
|
8507 | |
+ pre_test_object_deps_done=yes
|
8508 | |
+ continue
|
8509 | |
+ fi
|
8510 | |
|
8511 | |
-# Commands used to build and install a shared archive.
|
8512 | |
-archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
|
8513 | |
-archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
|
8514 | |
-postinstall_cmds=$lt_postinstall_cmds
|
8515 | |
-postuninstall_cmds=$lt_postuninstall_cmds
|
8516 | |
+ if test "$pre_test_object_deps_done" = no; then
|
8517 | |
+ if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
|
8518 | |
+ _LT_AC_TAGVAR(predep_objects, $1)="$p"
|
8519 | |
+ else
|
8520 | |
+ _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
|
8521 | |
+ fi
|
8522 | |
+ else
|
8523 | |
+ if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
|
8524 | |
+ _LT_AC_TAGVAR(postdep_objects, $1)="$p"
|
8525 | |
+ else
|
8526 | |
+ _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
|
8527 | |
+ fi
|
8528 | |
+ fi
|
8529 | |
+ ;;
|
8530 | |
|
8531 | |
-# Commands used to build a loadable module (assumed same as above if empty)
|
8532 | |
-module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
|
8533 | |
-module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
|
8534 | |
+ *) ;; # Ignore the rest.
|
8535 | |
|
8536 | |
-# Commands to strip libraries.
|
8537 | |
-old_striplib=$lt_old_striplib
|
8538 | |
-striplib=$lt_striplib
|
8539 | |
+ esac
|
8540 | |
+ done
|
8541 | |
|
8542 | |
-# Dependencies to place before the objects being linked to create a
|
8543 | |
-# shared library.
|
8544 | |
-predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
|
8545 | |
+ # Clean up.
|
8546 | |
+ rm -f a.out a.exe
|
8547 | |
+else
|
8548 | |
+ echo "libtool.m4: error: problem compiling $1 test program"
|
8549 | |
+fi
|
8550 | |
|
8551 | |
-# Dependencies to place after the objects being linked to create a
|
8552 | |
-# shared library.
|
8553 | |
-postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
|
8554 | |
+$rm -f confest.$objext
|
8555 | |
|
8556 | |
-# Dependencies to place before the objects being linked to create a
|
8557 | |
-# shared library.
|
8558 | |
-predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
|
8559 | |
+# PORTME: override above test on systems where it is broken
|
8560 | |
+ifelse([$1],[CXX],
|
8561 | |
+[case $host_os in
|
|
565 |
fi
|
|
566 |
;;
|
|
567 |
esac
|
|
568 |
@@ -4519,7 +4618,7 @@
|
|
569 |
# PORTME: override above test on systems where it is broken
|
|
570 |
ifelse([$1],[CXX],
|
|
571 |
[case $host_os in
|
|
572 |
-interix3*)
|
8562 | 573 |
+interix[[3-9]]*)
|
8563 | |
+ # Interix 3.5 installs completely hosed .la files for C++, so rather than
|
8564 | |
+ # hack all around it, let's just trust "g++" to DTRT.
|
8565 | |
+ _LT_AC_TAGVAR(predep_objects,$1)=
|
8566 | |
+ _LT_AC_TAGVAR(postdep_objects,$1)=
|
8567 | |
+ _LT_AC_TAGVAR(postdeps,$1)=
|
8568 | |
+ ;;
|
8569 | |
|
8570 | |
-# Dependencies to place after the objects being linked to create a
|
8571 | |
-# shared library.
|
8572 | |
-postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
|
|
574 |
# Interix 3.5 installs completely hosed .la files for C++, so rather than
|
|
575 |
# hack all around it, let's just trust "g++" to DTRT.
|
|
576 |
_LT_AC_TAGVAR(predep_objects,$1)=
|
|
577 |
@@ -4527,13 +4626,46 @@
|
|
578 |
_LT_AC_TAGVAR(postdeps,$1)=
|
|
579 |
;;
|
|
580 |
|
8573 | 581 |
+linux*)
|
8574 | 582 |
+ case `$CC -V 2>&1 | sed 5q` in
|
8575 | 583 |
+ *Sun\ C*)
|
|
8590 | 598 |
+ ;;
|
8591 | 599 |
+ esac
|
8592 | 600 |
+ ;;
|
8593 | |
|
8594 | |
-# The library search path used internally by the compiler when linking
|
8595 | |
-# a shared library.
|
8596 | |
-compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
|
8597 | |
+solaris*)
|
8598 | |
+ case $cc_basename in
|
8599 | |
+ CC*)
|
|
601 |
+
|
|
602 |
solaris*)
|
|
603 |
case $cc_basename in
|
|
604 |
CC*)
|
8600 | 605 |
+ # The more standards-conforming stlport4 library is
|
8601 | 606 |
+ # incompatible with the Cstd library. Avoid specifying
|
8602 | 607 |
+ # it if it's in CXXFLAGS. Ignore libCrun as
|
|
8606 | 611 |
+ solaris_use_stlport4=yes
|
8607 | 612 |
+ ;;
|
8608 | 613 |
+ esac
|
8609 | |
|
8610 | |
-# Method to check whether dependent libraries are shared objects.
|
8611 | |
-deplibs_check_method=$lt_deplibs_check_method
|
8612 | |
+ # Adding this requires a known-good setup of shared libraries for
|
8613 | |
+ # Sun compiler versions before 5.6, else PIC objects from an old
|
8614 | |
+ # archive will be linked into the output, leading to subtle bugs.
|
|
614 |
+
|
|
615 |
# Adding this requires a known-good setup of shared libraries for
|
|
616 |
# Sun compiler versions before 5.6, else PIC objects from an old
|
|
617 |
# archive will be linked into the output, leading to subtle bugs.
|
|
618 |
- _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
|
8615 | 619 |
+ if test "$solaris_use_stlport4" != yes; then
|
8616 | 620 |
+ _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
|
8617 | 621 |
+ fi
|
8618 | |
+ ;;
|
8619 | |
+ esac
|
8620 | |
+ ;;
|
8621 | |
+esac
|
8622 | |
+])
|
8623 | |
|
8624 | |
-# Command to use when deplibs_check_method == file_magic.
|
8625 | |
-file_magic_cmd=$lt_file_magic_cmd
|
8626 | |
+case " $_LT_AC_TAGVAR(postdeps, $1) " in
|
8627 | |
+*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
|
8628 | |
+esac
|
8629 | |
+])# AC_LIBTOOL_POSTDEP_PREDEP
|
8630 | |
|
8631 | |
-# Flag that allows shared libraries with undefined symbols to be built.
|
8632 | |
-allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
|
8633 | |
+# AC_LIBTOOL_LANG_F77_CONFIG
|
8634 | |
+# --------------------------
|
8635 | |
+# Ensure that the configuration vars for the C compiler are
|
8636 | |
+# suitably defined. Those variables are subsequently used by
|
8637 | |
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
8638 | |
+AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
|
8639 | |
+AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
|
8640 | |
+[AC_REQUIRE([AC_PROG_F77])
|
8641 | |
+AC_LANG_PUSH(Fortran 77)
|
8642 | |
|
8643 | |
-# Flag that forces no undefined symbols.
|
8644 | |
-no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
|
8645 | |
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
8646 | |
+_LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
8647 | |
+_LT_AC_TAGVAR(always_export_symbols, $1)=no
|
8648 | |
+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
8649 | |
+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
8650 | |
+_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
8651 | |
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
8652 | |
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
8653 | |
+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
8654 | |
+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
8655 | |
+_LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
8656 | |
+_LT_AC_TAGVAR(module_cmds, $1)=
|
8657 | |
+_LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
8658 | |
+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
8659 | |
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
8660 | |
+_LT_AC_TAGVAR(no_undefined_flag, $1)=
|
8661 | |
+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
8662 | |
+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
8663 | |
|
8664 | |
-# Commands used to finish a libtool library installation in a directory.
|
8665 | |
-finish_cmds=$lt_finish_cmds
|
8666 | |
+# Source file extension for f77 test sources.
|
8667 | |
+ac_ext=f
|
8668 | |
|
8669 | |
-# Same as above, but a single script fragment to be evaled but not shown.
|
8670 | |
-finish_eval=$lt_finish_eval
|
8671 | |
+# Object file extension for compiled f77 test sources.
|
8672 | |
+objext=o
|
8673 | |
+_LT_AC_TAGVAR(objext, $1)=$objext
|
8674 | |
|
8675 | |
-# Take the output of nm and produce a listing of raw symbols and C names.
|
8676 | |
-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
8677 | |
+# Code to be used in simple compile tests
|
|
622 |
;;
|
|
623 |
esac
|
|
624 |
;;
|
|
625 |
@@ -4582,10 +4714,17 @@
|
|
626 |
_LT_AC_TAGVAR(objext, $1)=$objext
|
|
627 |
|
|
628 |
# Code to be used in simple compile tests
|
|
629 |
-lt_simple_compile_test_code=" subroutine t\n return\n end\n"
|
8678 | 630 |
+lt_simple_compile_test_code="\
|
8679 | 631 |
+ subroutine t
|
8680 | 632 |
+ return
|
8681 | 633 |
+ end
|
8682 | 634 |
+"
|
8683 | 635 |
|
8684 | |
-# Transform the output of nm in a proper C declaration
|
8685 | |
-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
8686 | |
+# Code to be used in simple link tests
|
|
636 |
# Code to be used in simple link tests
|
|
637 |
-lt_simple_link_test_code=" program t\n end\n"
|
8687 | 638 |
+lt_simple_link_test_code="\
|
8688 | 639 |
+ program t
|
8689 | 640 |
+ end
|
8690 | 641 |
+"
|
8691 | 642 |
|
8692 | |
-# Transform the output of nm in a C name address pair
|
8693 | |
-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
8694 | |
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
8695 | |
+_LT_AC_SYS_COMPILER
|
8696 | |
|
8697 | |
-# This is the shared library runtime path variable.
|
8698 | |
-runpath_var=$runpath_var
|
8699 | |
+# save warnings/boilerplate of simple test code
|
8700 | |
+_LT_COMPILER_BOILERPLATE
|
8701 | |
+_LT_LINKER_BOILERPLATE
|
8702 | |
|
8703 | |
-# This is the shared library path variable.
|
8704 | |
-shlibpath_var=$shlibpath_var
|
8705 | |
+# Allow CC to be a program name with arguments.
|
8706 | |
+lt_save_CC="$CC"
|
8707 | |
+CC=${F77-"f77"}
|
8708 | |
+compiler=$CC
|
8709 | |
+_LT_AC_TAGVAR(compiler, $1)=$CC
|
8710 | |
+_LT_CC_BASENAME([$compiler])
|
8711 | |
|
8712 | |
-# Is shlibpath searched before the hard-coded library search path?
|
8713 | |
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
8714 | |
+AC_MSG_CHECKING([if libtool supports shared libraries])
|
8715 | |
+AC_MSG_RESULT([$can_build_shared])
|
8716 | |
|
8717 | |
-# How to hardcode a shared library path into an executable.
|
8718 | |
-hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
|
8719 | |
+AC_MSG_CHECKING([whether to build shared libraries])
|
8720 | |
+test "$can_build_shared" = "no" && enable_shared=no
|
8721 | |
|
8722 | |
-# Whether we should hardcode library paths into libraries.
|
8723 | |
-hardcode_into_libs=$hardcode_into_libs
|
8724 | |
+# On AIX, shared libraries and static libraries use the same namespace, and
|
8725 | |
+# are all built from PIC.
|
8726 | |
+case $host_os in
|
8727 | |
+aix3*)
|
8728 | |
+ test "$enable_shared" = yes && enable_static=no
|
8729 | |
+ if test -n "$RANLIB"; then
|
8730 | |
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
8731 | |
+ postinstall_cmds='$RANLIB $lib'
|
8732 | |
+ fi
|
8733 | |
+ ;;
|
8734 | |
+aix4* | aix5*)
|
8735 | |
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
8736 | |
+ test "$enable_shared" = yes && enable_static=no
|
8737 | |
+ fi
|
8738 | |
+ ;;
|
8739 | |
+esac
|
8740 | |
+AC_MSG_RESULT([$enable_shared])
|
8741 | |
|
8742 | |
-# Flag to hardcode \$libdir into a binary during linking.
|
8743 | |
-# This must work even if \$libdir does not exist.
|
8744 | |
-hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
|
8745 | |
+AC_MSG_CHECKING([whether to build static libraries])
|
8746 | |
+# Make sure either enable_shared or enable_static is yes.
|
8747 | |
+test "$enable_shared" = yes || enable_static=yes
|
8748 | |
+AC_MSG_RESULT([$enable_static])
|
8749 | |
|
8750 | |
-# If ld is used when linking, flag to hardcode \$libdir into
|
8751 | |
-# a binary during linking. This must work even if \$libdir does
|
8752 | |
-# not exist.
|
8753 | |
-hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
|
8754 | |
+_LT_AC_TAGVAR(GCC, $1)="$G77"
|
8755 | |
+_LT_AC_TAGVAR(LD, $1)="$LD"
|
8756 | |
|
8757 | |
-# Whether we need a single -rpath flag with a separated argument.
|
8758 | |
-hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
|
8759 | |
-
|
8760 | |
-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
8761 | |
-# resulting binary.
|
8762 | |
-hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
|
8763 | |
-
|
8764 | |
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
8765 | |
-# resulting binary.
|
8766 | |
-hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
|
8767 | |
-
|
8768 | |
-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
8769 | |
-# the resulting binary.
|
8770 | |
-hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
|
8771 | |
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
8772 | |
+AC_LIBTOOL_PROG_CC_C_O($1)
|
8773 | |
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
8774 | |
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
8775 | |
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
8776 | |
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
8777 | |
|
8778 | |
-# Set to yes if building a shared library automatically hardcodes DIR into the library
|
8779 | |
-# and all subsequent libraries and executables linked against it.
|
8780 | |
-hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
|
8781 | |
+AC_LIBTOOL_CONFIG($1)
|
8782 | |
|
8783 | |
-# Variables whose values should be saved in libtool wrapper scripts and
|
8784 | |
-# restored at relink time.
|
8785 | |
-variables_saved_for_relink="$variables_saved_for_relink"
|
8786 | |
+AC_LANG_POP
|
8787 | |
+CC="$lt_save_CC"
|
8788 | |
+])# AC_LIBTOOL_LANG_F77_CONFIG
|
8789 | |
|
8790 | |
-# Whether libtool must link a program against all its dependency libraries.
|
8791 | |
-link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
|
8792 | |
|
8793 | |
-# Compile-time system search path for libraries
|
8794 | |
-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
8795 | |
+# AC_LIBTOOL_LANG_GCJ_CONFIG
|
8796 | |
+# --------------------------
|
8797 | |
+# Ensure that the configuration vars for the C compiler are
|
8798 | |
+# suitably defined. Those variables are subsequently used by
|
8799 | |
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
8800 | |
+AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
|
8801 | |
+AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
|
8802 | |
+[AC_LANG_SAVE
|
8803 | |
|
8804 | |
-# Run-time system search path for libraries
|
8805 | |
-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
8806 | |
+# Source file extension for Java test sources.
|
8807 | |
+ac_ext=java
|
8808 | |
|
8809 | |
-# Fix the shell variable \$srcfile for the compiler.
|
8810 | |
-fix_srcfile_path=$lt_fix_srcfile_path
|
8811 | |
+# Object file extension for compiled Java test sources.
|
8812 | |
+objext=o
|
8813 | |
+_LT_AC_TAGVAR(objext, $1)=$objext
|
8814 | |
|
8815 | |
-# Set to yes if exported symbols are required.
|
8816 | |
-always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
|
8817 | |
+# Code to be used in simple compile tests
|
|
643 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
644 |
_LT_AC_SYS_COMPILER
|
|
645 |
@@ -4664,10 +4803,10 @@
|
|
646 |
_LT_AC_TAGVAR(objext, $1)=$objext
|
|
647 |
|
|
648 |
# Code to be used in simple compile tests
|
|
649 |
-lt_simple_compile_test_code="class foo {}\n"
|
8818 | 650 |
+lt_simple_compile_test_code="class foo {}"
|
8819 | 651 |
|
8820 | |
-# The commands to list exported symbols.
|
8821 | |
-export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
|
8822 | |
+# Code to be used in simple link tests
|
|
652 |
# Code to be used in simple link tests
|
|
653 |
-lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
|
8823 | 654 |
+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
|
8824 | 655 |
|
8825 | |
-# The commands to extract the exported symbol list from a shared archive.
|
8826 | |
-extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
8827 | |
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
8828 | |
+_LT_AC_SYS_COMPILER
|
8829 | |
|
8830 | |
-# Symbols that should not be listed in the preloaded symbols.
|
8831 | |
-exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
|
8832 | |
+# save warnings/boilerplate of simple test code
|
8833 | |
+_LT_COMPILER_BOILERPLATE
|
8834 | |
+_LT_LINKER_BOILERPLATE
|
8835 | |
|
8836 | |
-# Symbols that must always be exported.
|
8837 | |
-include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
|
8838 | |
+# Allow CC to be a program name with arguments.
|
8839 | |
+lt_save_CC="$CC"
|
8840 | |
+CC=${GCJ-"gcj"}
|
8841 | |
+compiler=$CC
|
8842 | |
+_LT_AC_TAGVAR(compiler, $1)=$CC
|
8843 | |
+_LT_CC_BASENAME([$compiler])
|
8844 | |
|
8845 | |
-ifelse([$1],[],
|
8846 | |
-[# ### END LIBTOOL CONFIG],
|
8847 | |
-[# ### END LIBTOOL TAG CONFIG: $tagname])
|
8848 | |
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
|
8849 | |
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
8850 | |
|
8851 | |
-__EOF__
|
8852 | |
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
8853 | |
|
8854 | |
-ifelse([$1],[], [
|
8855 | |
- case $host_os in
|
8856 | |
- aix3*)
|
8857 | |
- cat <<\EOF >> "$cfgfile"
|
8858 | |
+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
|
8859 | |
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
8860 | |
+AC_LIBTOOL_PROG_CC_C_O($1)
|
8861 | |
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
8862 | |
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
8863 | |
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
8864 | |
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
8865 | |
|
8866 | |
-# AIX sometimes has problems with the GCC collect2 program. For some
|
8867 | |
-# reason, if we set the COLLECT_NAMES environment variable, the problems
|
8868 | |
-# vanish in a puff of smoke.
|
8869 | |
-if test "X${COLLECT_NAMES+set}" != Xset; then
|
8870 | |
- COLLECT_NAMES=
|
8871 | |
- export COLLECT_NAMES
|
8872 | |
-fi
|
8873 | |
-EOF
|
8874 | |
- ;;
|
8875 | |
- esac
|
8876 | |
+AC_LIBTOOL_CONFIG($1)
|
8877 | |
|
8878 | |
- # We use sed instead of cat because bash on DJGPP gets confused if
|
8879 | |
- # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
8880 | |
- # text mode, it properly converts lines to CR/LF. This bash problem
|
8881 | |
- # is reportedly fixed, but why not run on old versions too?
|
8882 | |
- sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
|
8883 | |
+AC_LANG_RESTORE
|
8884 | |
+CC="$lt_save_CC"
|
8885 | |
+])# AC_LIBTOOL_LANG_GCJ_CONFIG
|
8886 | |
|
8887 | |
- mv -f "$cfgfile" "$ofile" || \
|
8888 | |
- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
8889 | |
- chmod +x "$ofile"
|
8890 | |
-])
|
8891 | |
-else
|
8892 | |
- # If there is no Makefile yet, we rely on a make rule to execute
|
8893 | |
- # `config.status --recheck' to rerun these tests and create the
|
8894 | |
- # libtool script then.
|
8895 | |
- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
8896 | |
- if test -f "$ltmain_in"; then
|
8897 | |
- test -f Makefile && make "$ltmain"
|
8898 | |
- fi
|
8899 | |
-fi
|
8900 | |
-])# AC_LIBTOOL_CONFIG
|
8901 | |
|
8902 | |
+# AC_LIBTOOL_LANG_RC_CONFIG
|
8903 | |
+# -------------------------
|
8904 | |
+# Ensure that the configuration vars for the Windows resource compiler are
|
8905 | |
+# suitably defined. Those variables are subsequently used by
|
8906 | |
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
8907 | |
+AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
|
8908 | |
+AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
|
8909 | |
+[AC_LANG_SAVE
|
8910 | |
|
8911 | |
-# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
|
8912 | |
-# -------------------------------------------
|
8913 | |
-AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
|
8914 | |
-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
8915 | |
+# Source file extension for RC test sources.
|
8916 | |
+ac_ext=rc
|
8917 | |
|
8918 | |
-_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
8919 | |
+# Object file extension for compiled RC test sources.
|
8920 | |
+objext=o
|
8921 | |
+_LT_AC_TAGVAR(objext, $1)=$objext
|
8922 | |
|
8923 | |
-if test "$GCC" = yes; then
|
8924 | |
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
8925 | |
+# Code to be used in simple compile tests
|
|
656 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
657 |
_LT_AC_SYS_COMPILER
|
|
658 |
@@ -4720,7 +4859,7 @@
|
|
659 |
_LT_AC_TAGVAR(objext, $1)=$objext
|
|
660 |
|
|
661 |
# Code to be used in simple compile tests
|
|
662 |
-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
|
8926 | 663 |
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
|
8927 | 664 |
|
8928 | |
- AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
|
8929 | |
- lt_cv_prog_compiler_rtti_exceptions,
|
8930 | |
- [-fno-rtti -fno-exceptions], [],
|
8931 | |
- [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
|
8932 | |
-fi
|
8933 | |
-])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
|
8934 | |
+# Code to be used in simple link tests
|
8935 | |
+lt_simple_link_test_code="$lt_simple_compile_test_code"
|
8936 | |
|
8937 | |
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
8938 | |
+_LT_AC_SYS_COMPILER
|
8939 | |
|
8940 | |
-# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
8941 | |
-# ---------------------------------
|
8942 | |
-AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
|
8943 | |
-[AC_REQUIRE([AC_CANONICAL_HOST])
|
8944 | |
-AC_REQUIRE([LT_AC_PROG_SED])
|
8945 | |
-AC_REQUIRE([AC_PROG_NM])
|
8946 | |
-AC_REQUIRE([AC_OBJEXT])
|
8947 | |
-# Check for command to grab the raw symbol name followed by C symbol from nm.
|
8948 | |
-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
|
8949 | |
-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
|
8950 | |
-[
|
8951 | |
-# These are sane defaults that work on at least a few old systems.
|
8952 | |
-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
8953 | |
+# save warnings/boilerplate of simple test code
|
8954 | |
+_LT_COMPILER_BOILERPLATE
|
8955 | |
+_LT_LINKER_BOILERPLATE
|
8956 | |
|
8957 | |
-# Character class describing NM global symbol codes.
|
8958 | |
-symcode='[[BCDEGRST]]'
|
8959 | |
+# Allow CC to be a program name with arguments.
|
8960 | |
+lt_save_CC="$CC"
|
8961 | |
+CC=${RC-"windres"}
|
8962 | |
+compiler=$CC
|
8963 | |
+_LT_AC_TAGVAR(compiler, $1)=$CC
|
8964 | |
+_LT_CC_BASENAME([$compiler])
|
8965 | |
+_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
8966 | |
|
8967 | |
-# Regexp to match symbols that can be accessed directly from C.
|
8968 | |
-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
|
8969 | |
+AC_LIBTOOL_CONFIG($1)
|
8970 | |
|
8971 | |
-# Transform an extracted symbol line into a proper C declaration
|
8972 | |
-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
|
8973 | |
+AC_LANG_RESTORE
|
8974 | |
+CC="$lt_save_CC"
|
8975 | |
+])# AC_LIBTOOL_LANG_RC_CONFIG
|
8976 | |
|
8977 | |
-# Transform an extracted symbol line into symbol name and symbol address
|
8978 | |
-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'"
|
8979 | |
|
8980 | |
-# Define system-specific variables.
|
8981 | |
-case $host_os in
|
8982 | |
-aix*)
|
8983 | |
- symcode='[[BCDT]]'
|
8984 | |
- ;;
|
8985 | |
-cygwin* | mingw* | pw32*)
|
8986 | |
- symcode='[[ABCDGISTW]]'
|
8987 | |
- ;;
|
8988 | |
-hpux*) # Its linker distinguishes data from code symbols
|
8989 | |
- if test "$host_cpu" = ia64; then
|
8990 | |
- symcode='[[ABCDEGRST]]'
|
8991 | |
- fi
|
8992 | |
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
8993 | |
- 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'"
|
8994 | |
- ;;
|
8995 | |
-linux* | k*bsd*-gnu)
|
8996 | |
- if test "$host_cpu" = ia64; then
|
8997 | |
- symcode='[[ABCDGIRSTW]]'
|
8998 | |
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
8999 | |
- 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'"
|
9000 | |
+# AC_LIBTOOL_CONFIG([TAGNAME])
|
9001 | |
+# ----------------------------
|
9002 | |
+# If TAGNAME is not passed, then create an initial libtool script
|
9003 | |
+# with a default configuration from the untagged config vars. Otherwise
|
9004 | |
+# add code to config.status for appending the configuration named by
|
9005 | |
+# TAGNAME from the matching tagged config vars.
|
9006 | |
+AC_DEFUN([AC_LIBTOOL_CONFIG],
|
9007 | |
+[# The else clause should only fire when bootstrapping the
|
9008 | |
+# libtool distribution, otherwise you forgot to ship ltmain.sh
|
9009 | |
+# with your package, and you will get complaints that there are
|
9010 | |
+# no rules to generate ltmain.sh.
|
9011 | |
+if test -f "$ltmain"; then
|
9012 | |
+ # See if we are running on zsh, and set the options which allow our commands through
|
9013 | |
+ # without removal of \ escapes.
|
9014 | |
+ if test -n "${ZSH_VERSION+set}" ; then
|
9015 | |
+ setopt NO_GLOB_SUBST
|
9016 | |
fi
|
9017 | |
- ;;
|
9018 | |
-irix* | nonstopux*)
|
9019 | |
- symcode='[[BCDEGRST]]'
|
9020 | |
- ;;
|
9021 | |
-osf*)
|
9022 | |
- symcode='[[BCDEGQRST]]'
|
9023 | |
- ;;
|
9024 | |
-solaris*)
|
9025 | |
- symcode='[[BDRT]]'
|
9026 | |
- ;;
|
9027 | |
-sco3.2v5*)
|
9028 | |
- symcode='[[DT]]'
|
9029 | |
- ;;
|
9030 | |
-sysv4.2uw2*)
|
9031 | |
- symcode='[[DT]]'
|
9032 | |
- ;;
|
9033 | |
-sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
9034 | |
- symcode='[[ABDT]]'
|
9035 | |
- ;;
|
9036 | |
-sysv4)
|
9037 | |
- symcode='[[DFNSTU]]'
|
9038 | |
- ;;
|
9039 | |
-esac
|
9040 | |
-
|
9041 | |
-# Handle CRLF in mingw tool chain
|
9042 | |
-opt_cr=
|
9043 | |
-case $build_os in
|
9044 | |
-mingw*)
|
9045 | |
- opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
9046 | |
- ;;
|
9047 | |
-esac
|
9048 | |
+ # Now quote all the things that may contain metacharacters while being
|
9049 | |
+ # careful not to overquote the AC_SUBSTed values. We take copies of the
|
9050 | |
+ # variables and quote the copies for generation of the libtool script.
|
9051 | |
+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
9052 | |
+ SED SHELL STRIP \
|
9053 | |
+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
9054 | |
+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
9055 | |
+ deplibs_check_method reload_flag reload_cmds need_locks \
|
9056 | |
+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
9057 | |
+ lt_cv_sys_global_symbol_to_c_name_address \
|
9058 | |
+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
9059 | |
+ old_postinstall_cmds old_postuninstall_cmds \
|
9060 | |
+ _LT_AC_TAGVAR(compiler, $1) \
|
9061 | |
+ _LT_AC_TAGVAR(CC, $1) \
|
9062 | |
+ _LT_AC_TAGVAR(LD, $1) \
|
9063 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
|
9064 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
|
9065 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
|
9066 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
|
9067 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
|
9068 | |
+ _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
|
9069 | |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
|
9070 | |
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
|
9071 | |
+ _LT_AC_TAGVAR(old_archive_cmds, $1) \
|
9072 | |
+ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
|
9073 | |
+ _LT_AC_TAGVAR(predep_objects, $1) \
|
9074 | |
+ _LT_AC_TAGVAR(postdep_objects, $1) \
|
9075 | |
+ _LT_AC_TAGVAR(predeps, $1) \
|
9076 | |
+ _LT_AC_TAGVAR(postdeps, $1) \
|
9077 | |
+ _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
|
9078 | |
+ _LT_AC_TAGVAR(archive_cmds, $1) \
|
9079 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
|
9080 | |
+ _LT_AC_TAGVAR(postinstall_cmds, $1) \
|
9081 | |
+ _LT_AC_TAGVAR(postuninstall_cmds, $1) \
|
9082 | |
+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
|
9083 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1) \
|
9084 | |
+ _LT_AC_TAGVAR(no_undefined_flag, $1) \
|
9085 | |
+ _LT_AC_TAGVAR(export_symbols_cmds, $1) \
|
9086 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
|
9087 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
|
9088 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
|
9089 | |
+ _LT_AC_TAGVAR(hardcode_automatic, $1) \
|
9090 | |
+ _LT_AC_TAGVAR(module_cmds, $1) \
|
9091 | |
+ _LT_AC_TAGVAR(module_expsym_cmds, $1) \
|
9092 | |
+ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
|
|
665 |
# Code to be used in simple link tests
|
|
666 |
lt_simple_link_test_code="$lt_simple_compile_test_code"
|
|
667 |
@@ -4809,6 +4948,7 @@
|
|
668 |
_LT_AC_TAGVAR(module_cmds, $1) \
|
|
669 |
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
|
|
670 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
|
9093 | 671 |
+ _LT_AC_TAGVAR(fix_srcfile_path, $1) \
|
9094 | |
+ _LT_AC_TAGVAR(exclude_expsyms, $1) \
|
9095 | |
+ _LT_AC_TAGVAR(include_expsyms, $1); do
|
9096 | |
|
9097 | |
-# If we're using GNU nm, then use its standard symbol codes.
|
9098 | |
-case `$NM -V 2>&1` in
|
9099 | |
-*GNU* | *'with BFD'*)
|
9100 | |
- symcode='[[ABCDGIRSTW]]' ;;
|
9101 | |
-esac
|
9102 | |
+ case $var in
|
9103 | |
+ _LT_AC_TAGVAR(old_archive_cmds, $1) | \
|
9104 | |
+ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
|
9105 | |
+ _LT_AC_TAGVAR(archive_cmds, $1) | \
|
9106 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
|
9107 | |
+ _LT_AC_TAGVAR(module_cmds, $1) | \
|
9108 | |
+ _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
|
9109 | |
+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
|
9110 | |
+ _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
|
9111 | |
+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
9112 | |
+ postinstall_cmds | postuninstall_cmds | \
|
9113 | |
+ old_postinstall_cmds | old_postuninstall_cmds | \
|
9114 | |
+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
9115 | |
+ # Double-quote double-evaled strings.
|
9116 | |
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
9117 | |
+ ;;
|
9118 | |
+ *)
|
9119 | |
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
9120 | |
+ ;;
|
9121 | |
+ esac
|
9122 | |
+ done
|
9123 | |
|
9124 | |
-# Try without a prefix undercore, then with it.
|
9125 | |
-for ac_symprfx in "" "_"; do
|
9126 | |
+ case $lt_echo in
|
9127 | |
+ *'\[$]0 --fallback-echo"')
|
9128 | |
+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
|
9129 | |
+ ;;
|
9130 | |
+ esac
|
9131 | |
|
9132 | |
- # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
9133 | |
- symxfrm="\\1 $ac_symprfx\\2 \\2"
|
9134 | |
+ifelse([$1], [],
|
9135 | |
+ [cfgfile="${ofile}T"
|
9136 | |
+ trap "$rm \"$cfgfile\"; exit 1" 1 2 15
|
9137 | |
+ $rm -f "$cfgfile"
|
9138 | |
+ AC_MSG_NOTICE([creating $ofile])],
|
9139 | |
+ [cfgfile="$ofile"])
|
9140 | |
|
9141 | |
- # Write the raw and C identifiers.
|
9142 | |
- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
9143 | |
+ cat <<__EOF__ >> "$cfgfile"
|
9144 | |
+ifelse([$1], [],
|
9145 | |
+[#! $SHELL
|
9146 | |
|
9147 | |
- # Check to see that the pipe works correctly.
|
9148 | |
- pipe_works=no
|
9149 | |
+# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
9150 | |
+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
9151 | |
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
9152 | |
+#
|
|
672 |
_LT_AC_TAGVAR(exclude_expsyms, $1) \
|
|
673 |
_LT_AC_TAGVAR(include_expsyms, $1); do
|
|
674 |
|
|
675 |
@@ -4855,7 +4995,7 @@
|
|
676 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
|
677 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
678 |
#
|
|
679 |
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
|
9153 | 680 |
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
|
9154 | |
+# Free Software Foundation, Inc.
|
9155 | |
+#
|
9156 | |
+# This file is part of GNU Libtool:
|
9157 | |
+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
9158 | |
+#
|
9159 | |
+# This program is free software; you can redistribute it and/or modify
|
9160 | |
+# it under the terms of the GNU General Public License as published by
|
9161 | |
+# the Free Software Foundation; either version 2 of the License, or
|
9162 | |
+# (at your option) any later version.
|
9163 | |
+#
|
9164 | |
+# This program is distributed in the hope that it will be useful, but
|
9165 | |
+# WITHOUT ANY WARRANTY; without even the implied warranty of
|
9166 | |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
9167 | |
+# General Public License for more details.
|
9168 | |
+#
|
9169 | |
+# You should have received a copy of the GNU General Public License
|
9170 | |
+# along with this program; if not, write to the Free Software
|
9171 | |
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
9172 | |
+#
|
9173 | |
+# As a special exception to the GNU General Public License, if you
|
9174 | |
+# distribute this file as part of a program that contains a
|
9175 | |
+# configuration script generated by Autoconf, you may include it under
|
9176 | |
+# the same distribution terms that you use for the rest of that program.
|
9177 | |
|
9178 | |
- rm -f conftest*
|
9179 | |
- cat > conftest.$ac_ext <<EOF
|
9180 | |
-#ifdef __cplusplus
|
9181 | |
-extern "C" {
|
9182 | |
-#endif
|
9183 | |
-char nm_test_var;
|
9184 | |
-void nm_test_func(){}
|
9185 | |
-#ifdef __cplusplus
|
9186 | |
-}
|
9187 | |
-#endif
|
9188 | |
-int main(){nm_test_var='a';nm_test_func();return(0);}
|
9189 | |
-EOF
|
9190 | |
+# A sed program that does not truncate output.
|
9191 | |
+SED=$lt_SED
|
9192 | |
|
9193 | |
- if AC_TRY_EVAL(ac_compile); then
|
9194 | |
- # Now try to grab the symbols.
|
9195 | |
- nlist=conftest.nm
|
9196 | |
- if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
|
9197 | |
- # Try sorting and uniquifying the output.
|
9198 | |
- if sort "$nlist" | uniq > "$nlist"T; then
|
9199 | |
- mv -f "$nlist"T "$nlist"
|
9200 | |
- else
|
9201 | |
- rm -f "$nlist"T
|
9202 | |
- fi
|
9203 | |
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
9204 | |
+Xsed="$SED -e 1s/^X//"
|
9205 | |
|
9206 | |
- # Make sure that we snagged all the symbols we need.
|
9207 | |
- if grep ' nm_test_var$' "$nlist" >/dev/null; then
|
9208 | |
- if grep ' nm_test_func$' "$nlist" >/dev/null; then
|
9209 | |
- cat <<EOF > conftest.$ac_ext
|
9210 | |
-#ifdef __cplusplus
|
9211 | |
-extern "C" {
|
9212 | |
-#endif
|
9213 | |
+# The HP-UX ksh and POSIX shell print the target directory to stdout
|
9214 | |
+# if CDPATH is set.
|
9215 | |
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
9216 | |
|
9217 | |
-EOF
|
9218 | |
- # Now generate the symbol file.
|
9219 | |
- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
|
9220 | |
+# The names of the tagged configurations supported by this script.
|
9221 | |
+available_tags=
|
9222 | |
|
9223 | |
- cat <<EOF >> conftest.$ac_ext
|
9224 | |
-#if defined (__STDC__) && __STDC__
|
9225 | |
-# define lt_ptr_t void *
|
9226 | |
-#else
|
9227 | |
-# define lt_ptr_t char *
|
9228 | |
-# define const
|
9229 | |
-#endif
|
9230 | |
+# ### BEGIN LIBTOOL CONFIG],
|
9231 | |
+[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
|
9232 | |
|
9233 | |
-/* The mapping between symbol names and symbols. */
|
9234 | |
-const struct {
|
9235 | |
- const char *name;
|
9236 | |
- lt_ptr_t address;
|
9237 | |
-}
|
9238 | |
-lt_preloaded_symbols[[]] =
|
9239 | |
-{
|
9240 | |
-EOF
|
9241 | |
- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
|
9242 | |
- cat <<\EOF >> conftest.$ac_ext
|
9243 | |
- {0, (lt_ptr_t) 0}
|
9244 | |
-};
|
9245 | |
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
9246 | |
|
9247 | |
-#ifdef __cplusplus
|
9248 | |
-}
|
9249 | |
-#endif
|
9250 | |
-EOF
|
9251 | |
- # Now try linking the two files.
|
9252 | |
- mv conftest.$ac_objext conftstm.$ac_objext
|
9253 | |
- lt_save_LIBS="$LIBS"
|
9254 | |
- lt_save_CFLAGS="$CFLAGS"
|
9255 | |
- LIBS="conftstm.$ac_objext"
|
9256 | |
- CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
|
9257 | |
- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
|
9258 | |
- pipe_works=yes
|
9259 | |
- fi
|
9260 | |
- LIBS="$lt_save_LIBS"
|
9261 | |
- CFLAGS="$lt_save_CFLAGS"
|
9262 | |
- else
|
9263 | |
- echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
|
9264 | |
- fi
|
9265 | |
- else
|
9266 | |
- echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
|
9267 | |
- fi
|
9268 | |
- else
|
9269 | |
- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
|
9270 | |
- fi
|
9271 | |
- else
|
9272 | |
- echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
|
9273 | |
- cat conftest.$ac_ext >&5
|
9274 | |
- fi
|
9275 | |
- rm -f conftest* conftst*
|
9276 | |
+# Shell to use when invoking shell scripts.
|
9277 | |
+SHELL=$lt_SHELL
|
9278 | |
|
9279 | |
- # Do not use the global_symbol_pipe unless it works.
|
9280 | |
- if test "$pipe_works" = yes; then
|
9281 | |
- break
|
9282 | |
- else
|
9283 | |
- lt_cv_sys_global_symbol_pipe=
|
9284 | |
- fi
|
9285 | |
-done
|
9286 | |
-])
|
9287 | |
-if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
9288 | |
- lt_cv_sys_global_symbol_to_cdecl=
|
9289 | |
-fi
|
9290 | |
-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
9291 | |
- AC_MSG_RESULT(failed)
|
9292 | |
-else
|
9293 | |
- AC_MSG_RESULT(ok)
|
9294 | |
-fi
|
9295 | |
-]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
9296 | |
+# Whether or not to build shared libraries.
|
9297 | |
+build_libtool_libs=$enable_shared
|
9298 | |
|
9299 | |
+# Whether or not to build static libraries.
|
9300 | |
+build_old_libs=$enable_static
|
9301 | |
|
9302 | |
-# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
|
9303 | |
-# ---------------------------------------
|
9304 | |
-AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
|
9305 | |
-[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
|
9306 | |
-_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
9307 | |
-_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
|
9308 | |
+# Whether or not to add -lc for building shared libraries.
|
9309 | |
+build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
|
9310 | |
|
9311 | |
-AC_MSG_CHECKING([for $compiler option to produce PIC])
|
9312 | |
- ifelse([$1],[CXX],[
|
9313 | |
- # C++ specific cases for pic, static, wl, etc.
|
9314 | |
- if test "$GXX" = yes; then
|
9315 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9316 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
9317 | |
+# Whether or not to disallow shared libs when runtime libs are static
|
9318 | |
+allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
|
9319 | |
|
9320 | |
- case $host_os in
|
9321 | |
- aix*)
|
9322 | |
- # All AIX code is PIC.
|
9323 | |
- if test "$host_cpu" = ia64; then
|
9324 | |
- # AIX 5 now supports IA64 processor
|
9325 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
9326 | |
- fi
|
9327 | |
- ;;
|
9328 | |
- amigaos*)
|
9329 | |
- # FIXME: we need at least 68020 code to build shared libraries, but
|
9330 | |
- # adding the `-m68020' flag to GCC prevents building anything better,
|
9331 | |
- # like `-m68040'.
|
9332 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
9333 | |
- ;;
|
9334 | |
- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
9335 | |
- # PIC is the default for these OSes.
|
9336 | |
- ;;
|
9337 | |
- mingw* | cygwin* | os2* | pw32*)
|
9338 | |
- # This hack is so that the source file can tell whether it is being
|
9339 | |
- # built for inclusion in a dll (and should export symbols for example).
|
9340 | |
- # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
9341 | |
- # (--disable-auto-import) libraries
|
9342 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
9343 | |
- ;;
|
9344 | |
- darwin* | rhapsody*)
|
9345 | |
- # PIC is the default on this platform
|
9346 | |
- # Common symbols not allowed in MH_DYLIB files
|
9347 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
9348 | |
- ;;
|
9349 | |
- *djgpp*)
|
9350 | |
- # DJGPP does not support shared libraries at all
|
9351 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
9352 | |
- ;;
|
9353 | |
- interix[[3-9]]*)
|
9354 | |
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
9355 | |
- # Instead, we relocate shared libraries at runtime.
|
9356 | |
- ;;
|
9357 | |
- sysv4*MP*)
|
9358 | |
- if test -d /usr/nec; then
|
9359 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
9360 | |
- fi
|
9361 | |
- ;;
|
9362 | |
- hpux*)
|
9363 | |
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
9364 | |
- # not for PA HP-UX.
|
9365 | |
- case $host_cpu in
|
9366 | |
- hppa*64*|ia64*)
|
9367 | |
- ;;
|
9368 | |
- *)
|
9369 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
9370 | |
- ;;
|
9371 | |
- esac
|
9372 | |
- ;;
|
9373 | |
- *)
|
9374 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
9375 | |
- ;;
|
9376 | |
- esac
|
9377 | |
- else
|
9378 | |
- case $host_os in
|
9379 | |
- aix4* | aix5*)
|
9380 | |
- # All AIX code is PIC.
|
9381 | |
- if test "$host_cpu" = ia64; then
|
9382 | |
- # AIX 5 now supports IA64 processor
|
9383 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
9384 | |
- else
|
9385 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
9386 | |
- fi
|
9387 | |
- ;;
|
9388 | |
- chorus*)
|
9389 | |
- case $cc_basename in
|
9390 | |
- cxch68*)
|
9391 | |
- # Green Hills C++ Compiler
|
9392 | |
- # _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"
|
9393 | |
- ;;
|
9394 | |
- esac
|
9395 | |
- ;;
|
9396 | |
- darwin*)
|
9397 | |
- # PIC is the default on this platform
|
9398 | |
- # Common symbols not allowed in MH_DYLIB files
|
9399 | |
- case $cc_basename in
|
9400 | |
- xlc*)
|
9401 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
|
9402 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9403 | |
- ;;
|
9404 | |
- esac
|
9405 | |
- ;;
|
9406 | |
- dgux*)
|
9407 | |
- case $cc_basename in
|
9408 | |
- ec++*)
|
9409 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
9410 | |
- ;;
|
9411 | |
- ghcx*)
|
9412 | |
- # Green Hills C++ Compiler
|
9413 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
9414 | |
- ;;
|
9415 | |
- *)
|
9416 | |
- ;;
|
9417 | |
- esac
|
9418 | |
- ;;
|
9419 | |
- freebsd* | dragonfly*)
|
9420 | |
- # FreeBSD uses GNU C++
|
9421 | |
- ;;
|
9422 | |
- hpux9* | hpux10* | hpux11*)
|
9423 | |
- case $cc_basename in
|
9424 | |
- CC*)
|
9425 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9426 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
9427 | |
- if test "$host_cpu" != ia64; then
|
9428 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
9429 | |
- fi
|
9430 | |
- ;;
|
9431 | |
- aCC*)
|
9432 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9433 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
9434 | |
- case $host_cpu in
|
9435 | |
- hppa*64*|ia64*)
|
9436 | |
- # +Z the default
|
9437 | |
- ;;
|
9438 | |
- *)
|
9439 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
9440 | |
- ;;
|
9441 | |
- esac
|
9442 | |
- ;;
|
9443 | |
- *)
|
9444 | |
- ;;
|
9445 | |
- esac
|
9446 | |
- ;;
|
9447 | |
- interix*)
|
9448 | |
- # This is c89, which is MS Visual C++ (no shared libs)
|
9449 | |
- # Anyone wants to do a port?
|
9450 | |
- ;;
|
9451 | |
- irix5* | irix6* | nonstopux*)
|
9452 | |
- case $cc_basename in
|
9453 | |
- CC*)
|
9454 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9455 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
9456 | |
- # CC pic flag -KPIC is the default.
|
9457 | |
- ;;
|
9458 | |
- *)
|
9459 | |
- ;;
|
9460 | |
- esac
|
9461 | |
- ;;
|
9462 | |
- linux* | k*bsd*-gnu)
|
9463 | |
- case $cc_basename in
|
9464 | |
- KCC*)
|
9465 | |
- # KAI C++ Compiler
|
9466 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
9467 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
9468 | |
- ;;
|
9469 | |
- icpc* | ecpc*)
|
9470 | |
- # Intel C++
|
9471 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9472 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
9473 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
9474 | |
- ;;
|
9475 | |
- pgCC*)
|
9476 | |
- # Portland Group C++ compiler.
|
9477 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9478 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
9479 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
9480 | |
- ;;
|
9481 | |
- cxx*)
|
9482 | |
- # Compaq C++
|
9483 | |
- # Make sure the PIC flag is empty. It appears that all Alpha
|
9484 | |
- # Linux and Compaq Tru64 Unix objects are PIC.
|
9485 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
9486 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
9487 | |
- ;;
|
9488 | |
- *)
|
9489 | |
- case `$CC -V 2>&1 | sed 5q` in
|
9490 | |
- *Sun\ C*)
|
9491 | |
- # Sun C++ 5.9
|
9492 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
9493 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
9494 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
9495 | |
- ;;
|
9496 | |
- esac
|
9497 | |
- ;;
|
9498 | |
- esac
|
9499 | |
- ;;
|
9500 | |
- lynxos*)
|
9501 | |
- ;;
|
9502 | |
- m88k*)
|
9503 | |
- ;;
|
9504 | |
- mvs*)
|
9505 | |
- case $cc_basename in
|
9506 | |
- cxx*)
|
9507 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
|
9508 | |
- ;;
|
9509 | |
- *)
|
9510 | |
- ;;
|
9511 | |
- esac
|
9512 | |
- ;;
|
9513 | |
- netbsd* | netbsdelf*-gnu)
|
9514 | |
- ;;
|
9515 | |
- osf3* | osf4* | osf5*)
|
9516 | |
- case $cc_basename in
|
9517 | |
- KCC*)
|
9518 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
9519 | |
- ;;
|
9520 | |
- RCC*)
|
9521 | |
- # Rational C++ 2.4.1
|
9522 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
9523 | |
- ;;
|
9524 | |
- cxx*)
|
9525 | |
- # Digital/Compaq C++
|
9526 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9527 | |
- # Make sure the PIC flag is empty. It appears that all Alpha
|
9528 | |
- # Linux and Compaq Tru64 Unix objects are PIC.
|
9529 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
9530 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
9531 | |
- ;;
|
9532 | |
- *)
|
9533 | |
- ;;
|
9534 | |
- esac
|
9535 | |
- ;;
|
9536 | |
- psos*)
|
9537 | |
- ;;
|
9538 | |
- solaris*)
|
9539 | |
- case $cc_basename in
|
9540 | |
- CC*)
|
9541 | |
- # Sun C++ 4.2, 5.x and Centerline C++
|
9542 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
9543 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
9544 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
9545 | |
- ;;
|
9546 | |
- gcx*)
|
9547 | |
- # Green Hills C++ Compiler
|
9548 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
9549 | |
- ;;
|
9550 | |
- *)
|
9551 | |
- ;;
|
9552 | |
- esac
|
9553 | |
- ;;
|
9554 | |
- sunos4*)
|
9555 | |
- case $cc_basename in
|
9556 | |
- CC*)
|
9557 | |
- # Sun C++ 4.x
|
9558 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
9559 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
9560 | |
- ;;
|
9561 | |
- lcc*)
|
9562 | |
- # Lucid
|
9563 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
9564 | |
- ;;
|
9565 | |
- *)
|
9566 | |
- ;;
|
9567 | |
- esac
|
9568 | |
- ;;
|
9569 | |
- tandem*)
|
9570 | |
- case $cc_basename in
|
9571 | |
- NCC*)
|
9572 | |
- # NonStop-UX NCC 3.20
|
9573 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
9574 | |
- ;;
|
9575 | |
- *)
|
9576 | |
- ;;
|
9577 | |
- esac
|
9578 | |
- ;;
|
9579 | |
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
9580 | |
- case $cc_basename in
|
9581 | |
- CC*)
|
9582 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9583 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
9584 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
9585 | |
- ;;
|
9586 | |
- esac
|
9587 | |
- ;;
|
9588 | |
- vxworks*)
|
9589 | |
- ;;
|
9590 | |
- *)
|
9591 | |
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
9592 | |
- ;;
|
9593 | |
- esac
|
9594 | |
- fi
|
9595 | |
-],
|
9596 | |
-[
|
9597 | |
- if test "$GCC" = yes; then
|
9598 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9599 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
9600 | |
+# Whether or not to optimize for fast installation.
|
9601 | |
+fast_install=$enable_fast_install
|
9602 | |
+
|
9603 | |
+# The host system.
|
9604 | |
+host_alias=$host_alias
|
9605 | |
+host=$host
|
9606 | |
+host_os=$host_os
|
9607 | |
+
|
9608 | |
+# The build system.
|
9609 | |
+build_alias=$build_alias
|
9610 | |
+build=$build
|
9611 | |
+build_os=$build_os
|
9612 | |
+
|
9613 | |
+# An echo program that does not interpret backslashes.
|
9614 | |
+echo=$lt_echo
|
9615 | |
+
|
9616 | |
+# The archiver.
|
9617 | |
+AR=$lt_AR
|
9618 | |
+AR_FLAGS=$lt_AR_FLAGS
|
9619 | |
+
|
9620 | |
+# A C compiler.
|
9621 | |
+LTCC=$lt_LTCC
|
9622 | |
+
|
9623 | |
+# LTCC compiler flags.
|
9624 | |
+LTCFLAGS=$lt_LTCFLAGS
|
9625 | |
+
|
9626 | |
+# A language-specific compiler.
|
9627 | |
+CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
|
9628 | |
+
|
9629 | |
+# Is the compiler the GNU C compiler?
|
9630 | |
+with_gcc=$_LT_AC_TAGVAR(GCC, $1)
|
9631 | |
+
|
9632 | |
+# An ERE matcher.
|
9633 | |
+EGREP=$lt_EGREP
|
9634 | |
+
|
9635 | |
+# The linker used to build libraries.
|
9636 | |
+LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
|
9637 | |
+
|
9638 | |
+# Whether we need hard or soft links.
|
9639 | |
+LN_S=$lt_LN_S
|
9640 | |
+
|
9641 | |
+# A BSD-compatible nm program.
|
9642 | |
+NM=$lt_NM
|
9643 | |
|
9644 | |
- case $host_os in
|
9645 | |
- aix*)
|
9646 | |
- # All AIX code is PIC.
|
9647 | |
- if test "$host_cpu" = ia64; then
|
9648 | |
- # AIX 5 now supports IA64 processor
|
9649 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
9650 | |
- fi
|
9651 | |
- ;;
|
9652 | |
+# A symbol stripping program
|
9653 | |
+STRIP=$lt_STRIP
|
9654 | |
|
9655 | |
- amigaos*)
|
9656 | |
- # FIXME: we need at least 68020 code to build shared libraries, but
|
9657 | |
- # adding the `-m68020' flag to GCC prevents building anything better,
|
9658 | |
- # like `-m68040'.
|
9659 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
9660 | |
- ;;
|
9661 | |
+# Used to examine libraries when file_magic_cmd begins "file"
|
9662 | |
+MAGIC_CMD=$MAGIC_CMD
|
9663 | |
|
9664 | |
- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
9665 | |
- # PIC is the default for these OSes.
|
9666 | |
- ;;
|
9667 | |
+# Used on cygwin: DLL creation program.
|
9668 | |
+DLLTOOL="$DLLTOOL"
|
9669 | |
|
9670 | |
- mingw* | cygwin* | pw32* | os2*)
|
9671 | |
- # This hack is so that the source file can tell whether it is being
|
9672 | |
- # built for inclusion in a dll (and should export symbols for example).
|
9673 | |
- # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
9674 | |
- # (--disable-auto-import) libraries
|
9675 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
9676 | |
- ;;
|
9677 | |
+# Used on cygwin: object dumper.
|
9678 | |
+OBJDUMP="$OBJDUMP"
|
9679 | |
|
9680 | |
- darwin* | rhapsody*)
|
9681 | |
- # PIC is the default on this platform
|
9682 | |
- # Common symbols not allowed in MH_DYLIB files
|
9683 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
9684 | |
- ;;
|
9685 | |
+# Used on cygwin: assembler.
|
9686 | |
+AS="$AS"
|
9687 | |
|
9688 | |
- interix[[3-9]]*)
|
9689 | |
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
9690 | |
- # Instead, we relocate shared libraries at runtime.
|
9691 | |
- ;;
|
9692 | |
+# The name of the directory that contains temporary libtool files.
|
9693 | |
+objdir=$objdir
|
9694 | |
|
9695 | |
- msdosdjgpp*)
|
9696 | |
- # Just because we use GCC doesn't mean we suddenly get shared libraries
|
9697 | |
- # on systems that don't support them.
|
9698 | |
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
9699 | |
- enable_shared=no
|
9700 | |
- ;;
|
9701 | |
+# How to create reloadable object files.
|
9702 | |
+reload_flag=$lt_reload_flag
|
9703 | |
+reload_cmds=$lt_reload_cmds
|
9704 | |
|
9705 | |
- sysv4*MP*)
|
9706 | |
- if test -d /usr/nec; then
|
9707 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
9708 | |
- fi
|
9709 | |
- ;;
|
9710 | |
+# How to pass a linker flag through the compiler.
|
9711 | |
+wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
|
9712 | |
|
9713 | |
- hpux*)
|
9714 | |
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
9715 | |
- # not for PA HP-UX.
|
9716 | |
- case $host_cpu in
|
9717 | |
- hppa*64*|ia64*)
|
9718 | |
- # +Z the default
|
9719 | |
- ;;
|
9720 | |
- *)
|
9721 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
9722 | |
- ;;
|
9723 | |
- esac
|
9724 | |
- ;;
|
9725 | |
+# Object file suffix (normally "o").
|
9726 | |
+objext="$ac_objext"
|
9727 | |
+
|
9728 | |
+# Old archive suffix (normally "a").
|
9729 | |
+libext="$libext"
|
9730 | |
+
|
9731 | |
+# Shared library suffix (normally ".so").
|
9732 | |
+shrext_cmds='$shrext_cmds'
|
9733 | |
+
|
9734 | |
+# Executable file suffix (normally "").
|
9735 | |
+exeext="$exeext"
|
9736 | |
+
|
9737 | |
+# Additional compiler flags for building library objects.
|
9738 | |
+pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
|
9739 | |
+pic_mode=$pic_mode
|
9740 | |
+
|
9741 | |
+# What is the maximum length of a command?
|
9742 | |
+max_cmd_len=$lt_cv_sys_max_cmd_len
|
9743 | |
+
|
9744 | |
+# Does compiler simultaneously support -c and -o options?
|
9745 | |
+compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
|
9746 | |
+
|
9747 | |
+# Must we lock files when doing compilation?
|
9748 | |
+need_locks=$lt_need_locks
|
9749 | |
+
|
9750 | |
+# Do we need the lib prefix for modules?
|
9751 | |
+need_lib_prefix=$need_lib_prefix
|
9752 | |
+
|
9753 | |
+# Do we need a version for libraries?
|
9754 | |
+need_version=$need_version
|
9755 | |
+
|
9756 | |
+# Whether dlopen is supported.
|
9757 | |
+dlopen_support=$enable_dlopen
|
9758 | |
+
|
9759 | |
+# Whether dlopen of programs is supported.
|
9760 | |
+dlopen_self=$enable_dlopen_self
|
9761 | |
+
|
9762 | |
+# Whether dlopen of statically linked programs is supported.
|
9763 | |
+dlopen_self_static=$enable_dlopen_self_static
|
9764 | |
+
|
9765 | |
+# Compiler flag to prevent dynamic linking.
|
9766 | |
+link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
|
9767 | |
+
|
9768 | |
+# Compiler flag to turn off builtin functions.
|
9769 | |
+no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
|
9770 | |
+
|
9771 | |
+# Compiler flag to allow reflexive dlopens.
|
9772 | |
+export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
|
9773 | |
+
|
9774 | |
+# Compiler flag to generate shared objects directly from archives.
|
9775 | |
+whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
|
9776 | |
+
|
9777 | |
+# Compiler flag to generate thread-safe objects.
|
9778 | |
+thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
|
9779 | |
+
|
9780 | |
+# Library versioning type.
|
9781 | |
+version_type=$version_type
|
9782 | |
+
|
9783 | |
+# Format of library name prefix.
|
9784 | |
+libname_spec=$lt_libname_spec
|
9785 | |
+
|
9786 | |
+# List of archive names. First name is the real one, the rest are links.
|
9787 | |
+# The last name is the one that the linker finds with -lNAME.
|
9788 | |
+library_names_spec=$lt_library_names_spec
|
9789 | |
+
|
9790 | |
+# The coded name of the library, if different from the real name.
|
9791 | |
+soname_spec=$lt_soname_spec
|
9792 | |
+
|
9793 | |
+# Commands used to build and install an old-style archive.
|
9794 | |
+RANLIB=$lt_RANLIB
|
9795 | |
+old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
|
9796 | |
+old_postinstall_cmds=$lt_old_postinstall_cmds
|
9797 | |
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
9798 | |
+
|
9799 | |
+# Create an old-style archive from a shared archive.
|
9800 | |
+old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
|
9801 | |
+
|
9802 | |
+# Create a temporary old-style archive to link instead of a shared archive.
|
9803 | |
+old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
|
9804 | |
+
|
9805 | |
+# Commands used to build and install a shared archive.
|
9806 | |
+archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
|
9807 | |
+archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
|
9808 | |
+postinstall_cmds=$lt_postinstall_cmds
|
9809 | |
+postuninstall_cmds=$lt_postuninstall_cmds
|
9810 | |
+
|
9811 | |
+# Commands used to build a loadable module (assumed same as above if empty)
|
9812 | |
+module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
|
9813 | |
+module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
|
9814 | |
+
|
9815 | |
+# Commands to strip libraries.
|
9816 | |
+old_striplib=$lt_old_striplib
|
9817 | |
+striplib=$lt_striplib
|
9818 | |
+
|
9819 | |
+# Dependencies to place before the objects being linked to create a
|
9820 | |
+# shared library.
|
9821 | |
+predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
|
9822 | |
+
|
9823 | |
+# Dependencies to place after the objects being linked to create a
|
9824 | |
+# shared library.
|
9825 | |
+postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
|
9826 | |
+
|
9827 | |
+# Dependencies to place before the objects being linked to create a
|
9828 | |
+# shared library.
|
9829 | |
+predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
|
9830 | |
+
|
9831 | |
+# Dependencies to place after the objects being linked to create a
|
9832 | |
+# shared library.
|
9833 | |
+postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
|
9834 | |
+
|
9835 | |
+# The library search path used internally by the compiler when linking
|
9836 | |
+# a shared library.
|
9837 | |
+compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
|
9838 | |
+
|
9839 | |
+# Method to check whether dependent libraries are shared objects.
|
9840 | |
+deplibs_check_method=$lt_deplibs_check_method
|
9841 | |
+
|
9842 | |
+# Command to use when deplibs_check_method == file_magic.
|
9843 | |
+file_magic_cmd=$lt_file_magic_cmd
|
9844 | |
+
|
9845 | |
+# Flag that allows shared libraries with undefined symbols to be built.
|
9846 | |
+allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
|
9847 | |
+
|
9848 | |
+# Flag that forces no undefined symbols.
|
9849 | |
+no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
|
9850 | |
+
|
9851 | |
+# Commands used to finish a libtool library installation in a directory.
|
9852 | |
+finish_cmds=$lt_finish_cmds
|
9853 | |
+
|
9854 | |
+# Same as above, but a single script fragment to be evaled but not shown.
|
9855 | |
+finish_eval=$lt_finish_eval
|
9856 | |
+
|
9857 | |
+# Take the output of nm and produce a listing of raw symbols and C names.
|
9858 | |
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
9859 | |
+
|
9860 | |
+# Transform the output of nm in a proper C declaration
|
9861 | |
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
9862 | |
+
|
9863 | |
+# Transform the output of nm in a C name address pair
|
9864 | |
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
9865 | |
+
|
9866 | |
+# This is the shared library runtime path variable.
|
9867 | |
+runpath_var=$runpath_var
|
9868 | |
+
|
9869 | |
+# This is the shared library path variable.
|
9870 | |
+shlibpath_var=$shlibpath_var
|
9871 | |
+
|
9872 | |
+# Is shlibpath searched before the hard-coded library search path?
|
9873 | |
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
9874 | |
+
|
9875 | |
+# How to hardcode a shared library path into an executable.
|
9876 | |
+hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
|
9877 | |
+
|
9878 | |
+# Whether we should hardcode library paths into libraries.
|
9879 | |
+hardcode_into_libs=$hardcode_into_libs
|
9880 | |
+
|
9881 | |
+# Flag to hardcode \$libdir into a binary during linking.
|
9882 | |
+# This must work even if \$libdir does not exist.
|
9883 | |
+hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
|
9884 | |
+
|
9885 | |
+# If ld is used when linking, flag to hardcode \$libdir into
|
9886 | |
+# a binary during linking. This must work even if \$libdir does
|
9887 | |
+# not exist.
|
9888 | |
+hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
|
9889 | |
+
|
9890 | |
+# Whether we need a single -rpath flag with a separated argument.
|
9891 | |
+hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
|
9892 | |
+
|
9893 | |
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
9894 | |
+# resulting binary.
|
9895 | |
+hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
|
9896 | |
+
|
9897 | |
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
9898 | |
+# resulting binary.
|
9899 | |
+hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
|
9900 | |
+
|
9901 | |
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
9902 | |
+# the resulting binary.
|
9903 | |
+hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
|
9904 | |
+
|
9905 | |
+# Set to yes if building a shared library automatically hardcodes DIR into the library
|
9906 | |
+# and all subsequent libraries and executables linked against it.
|
9907 | |
+hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
|
9908 | |
|
9909 | |
- *)
|
9910 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
9911 | |
- ;;
|
9912 | |
- esac
|
9913 | |
- else
|
9914 | |
- # PORTME Check for flag to pass linker flags through the system compiler.
|
9915 | |
- case $host_os in
|
9916 | |
- aix*)
|
9917 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9918 | |
- if test "$host_cpu" = ia64; then
|
9919 | |
- # AIX 5 now supports IA64 processor
|
9920 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
9921 | |
- else
|
9922 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
9923 | |
- fi
|
9924 | |
- ;;
|
9925 | |
- darwin*)
|
9926 | |
- # PIC is the default on this platform
|
9927 | |
- # Common symbols not allowed in MH_DYLIB files
|
9928 | |
- case $cc_basename in
|
9929 | |
- xlc*)
|
9930 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
|
9931 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9932 | |
- ;;
|
9933 | |
- esac
|
9934 | |
- ;;
|
9935 | |
+# Variables whose values should be saved in libtool wrapper scripts and
|
9936 | |
+# restored at relink time.
|
9937 | |
+variables_saved_for_relink="$variables_saved_for_relink"
|
9938 | |
|
9939 | |
- mingw* | cygwin* | pw32* | os2*)
|
9940 | |
- # This hack is so that the source file can tell whether it is being
|
9941 | |
- # built for inclusion in a dll (and should export symbols for example).
|
9942 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
9943 | |
- ;;
|
9944 | |
+# Whether libtool must link a program against all its dependency libraries.
|
9945 | |
+link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
|
9946 | |
|
9947 | |
- hpux9* | hpux10* | hpux11*)
|
9948 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9949 | |
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
9950 | |
- # not for PA HP-UX.
|
9951 | |
- case $host_cpu in
|
9952 | |
- hppa*64*|ia64*)
|
9953 | |
- # +Z the default
|
9954 | |
- ;;
|
9955 | |
- *)
|
9956 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
9957 | |
- ;;
|
9958 | |
- esac
|
9959 | |
- # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
9960 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
9961 | |
- ;;
|
9962 | |
+# Compile-time system search path for libraries
|
9963 | |
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
9964 | |
|
9965 | |
- irix5* | irix6* | nonstopux*)
|
9966 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9967 | |
- # PIC (with -KPIC) is the default.
|
9968 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
9969 | |
- ;;
|
9970 | |
+# Run-time system search path for libraries
|
9971 | |
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
9972 | |
|
9973 | |
- newsos6)
|
9974 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
9975 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
9976 | |
- ;;
|
9977 | |
+# Fix the shell variable \$srcfile for the compiler.
|
|
681 |
# Free Software Foundation, Inc.
|
|
682 |
#
|
|
683 |
# This file is part of GNU Libtool:
|
|
684 |
@@ -5180,7 +5320,7 @@
|
|
685 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|
686 |
|
|
687 |
# Fix the shell variable \$srcfile for the compiler.
|
|
688 |
-fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
|
9978 | 689 |
+fix_srcfile_path=$lt_fix_srcfile_path
|
9979 | 690 |
|
9980 | |
- linux* | k*bsd*-gnu)
|
9981 | |
- case $cc_basename in
|
9982 | |
- icc* | ecc*)
|
9983 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9984 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
9985 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
9986 | |
- ;;
|
9987 | |
- pgcc* | pgf77* | pgf90* | pgf95*)
|
9988 | |
- # Portland Group compilers (*not* the Pentium gcc compiler,
|
9989 | |
- # which looks to be a dead project)
|
9990 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9991 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
9992 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
9993 | |
- ;;
|
9994 | |
- ccc*)
|
9995 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
9996 | |
- # All Alpha code is PIC.
|
9997 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
9998 | |
- ;;
|
9999 | |
- *)
|
10000 | |
- case `$CC -V 2>&1 | sed 5q` in
|
10001 | |
- *Sun\ C*)
|
10002 | |
- # Sun C 5.9
|
10003 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
10004 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
10005 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10006 | |
- ;;
|
10007 | |
- *Sun\ F*)
|
10008 | |
- # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
10009 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
10010 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
10011 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
|
10012 | |
- ;;
|
10013 | |
- esac
|
10014 | |
- ;;
|
10015 | |
- esac
|
10016 | |
- ;;
|
10017 | |
+# Set to yes if exported symbols are required.
|
10018 | |
+always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
|
10019 | |
|
10020 | |
- osf3* | osf4* | osf5*)
|
10021 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10022 | |
- # All OSF/1 code is PIC.
|
10023 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
10024 | |
- ;;
|
10025 | |
+# The commands to list exported symbols.
|
10026 | |
+export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
|
10027 | |
|
10028 | |
- rdos*)
|
10029 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
10030 | |
- ;;
|
10031 | |
+# The commands to extract the exported symbol list from a shared archive.
|
10032 | |
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
10033 | |
|
10034 | |
- solaris*)
|
10035 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
10036 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
10037 | |
- case $cc_basename in
|
10038 | |
- f77* | f90* | f95*)
|
10039 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
|
10040 | |
- *)
|
10041 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
|
10042 | |
- esac
|
10043 | |
- ;;
|
10044 | |
+# Symbols that should not be listed in the preloaded symbols.
|
10045 | |
+exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
|
10046 | |
|
10047 | |
- sunos4*)
|
10048 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
10049 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
10050 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
10051 | |
- ;;
|
10052 | |
+# Symbols that must always be exported.
|
10053 | |
+include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
|
10054 | |
|
10055 | |
- sysv4 | sysv4.2uw2* | sysv4.3*)
|
10056 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10057 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
10058 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
10059 | |
- ;;
|
10060 | |
+ifelse([$1],[],
|
10061 | |
+[# ### END LIBTOOL CONFIG],
|
10062 | |
+[# ### END LIBTOOL TAG CONFIG: $tagname])
|
10063 | |
|
10064 | |
- sysv4*MP*)
|
10065 | |
- if test -d /usr/nec ;then
|
10066 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
|
10067 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
10068 | |
- fi
|
10069 | |
- ;;
|
10070 | |
+__EOF__
|
10071 | |
|
10072 | |
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
10073 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10074 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
10075 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
10076 | |
- ;;
|
10077 | |
+ifelse([$1],[], [
|
10078 | |
+ case $host_os in
|
10079 | |
+ aix3*)
|
10080 | |
+ cat <<\EOF >> "$cfgfile"
|
10081 | |
|
10082 | |
- unicos*)
|
10083 | |
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10084 | |
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
10085 | |
- ;;
|
10086 | |
+# AIX sometimes has problems with the GCC collect2 program. For some
|
10087 | |
+# reason, if we set the COLLECT_NAMES environment variable, the problems
|
10088 | |
+# vanish in a puff of smoke.
|
10089 | |
+if test "X${COLLECT_NAMES+set}" != Xset; then
|
10090 | |
+ COLLECT_NAMES=
|
10091 | |
+ export COLLECT_NAMES
|
10092 | |
+fi
|
10093 | |
+EOF
|
10094 | |
+ ;;
|
10095 | |
+ esac
|
10096 | |
|
10097 | |
- uts4*)
|
10098 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
10099 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
10100 | |
- ;;
|
10101 | |
+ # We use sed instead of cat because bash on DJGPP gets confused if
|
10102 | |
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
10103 | |
+ # text mode, it properly converts lines to CR/LF. This bash problem
|
10104 | |
+ # is reportedly fixed, but why not run on old versions too?
|
10105 | |
+ sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
|
10106 | |
|
10107 | |
- *)
|
10108 | |
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
10109 | |
- ;;
|
10110 | |
- esac
|
10111 | |
- fi
|
10112 | |
+ mv -f "$cfgfile" "$ofile" || \
|
10113 | |
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
10114 | |
+ chmod +x "$ofile"
|
10115 | |
])
|
10116 | |
-AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
|
10117 | |
+else
|
10118 | |
+ # If there is no Makefile yet, we rely on a make rule to execute
|
10119 | |
+ # `config.status --recheck' to rerun these tests and create the
|
10120 | |
+ # libtool script then.
|
10121 | |
+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
10122 | |
+ if test -f "$ltmain_in"; then
|
10123 | |
+ test -f Makefile && make "$ltmain"
|
10124 | |
+ fi
|
10125 | |
+fi
|
10126 | |
+])# AC_LIBTOOL_CONFIG
|
10127 | |
|
10128 | |
-#
|
10129 | |
-# Check to make sure the PIC flag actually works.
|
10130 | |
-#
|
10131 | |
-if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
10132 | |
- AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
|
10133 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
|
10134 | |
- [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
|
10135 | |
- [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
|
10136 | |
- "" | " "*) ;;
|
10137 | |
- *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
|
10138 | |
- esac],
|
10139 | |
- [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
10140 | |
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
|
10141 | |
+
|
10142 | |
+# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
|
10143 | |
+# -------------------------------------------
|
10144 | |
+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
|
10145 | |
+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
10146 | |
+
|
10147 | |
+_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
10148 | |
+
|
10149 | |
+if test "$GCC" = yes; then
|
10150 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
10151 | |
+
|
10152 | |
+ AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
|
10153 | |
+ lt_cv_prog_compiler_rtti_exceptions,
|
10154 | |
+ [-fno-rtti -fno-exceptions], [],
|
10155 | |
+ [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
|
10156 | |
fi
|
10157 | |
-case $host_os in
|
10158 | |
- # For platforms which do not support PIC, -DPIC is meaningless:
|
10159 | |
- *djgpp*)
|
10160 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
10161 | |
- ;;
|
10162 | |
- *)
|
10163 | |
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
|
10164 | |
- ;;
|
10165 | |
-esac
|
10166 | |
+])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
|
10167 | |
+
|
10168 | |
+
|
10169 | |
+# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
10170 | |
+# ---------------------------------
|
10171 | |
+AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
|
10172 | |
+[AC_REQUIRE([AC_CANONICAL_HOST])
|
|
691 |
# Set to yes if exported symbols are required.
|
|
692 |
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
|
|
693 |
@@ -5263,6 +5403,7 @@
|
|
694 |
# ---------------------------------
|
|
695 |
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
|
|
696 |
[AC_REQUIRE([AC_CANONICAL_HOST])
|
10173 | 697 |
+AC_REQUIRE([LT_AC_PROG_SED])
|
10174 | |
+AC_REQUIRE([AC_PROG_NM])
|
10175 | |
+AC_REQUIRE([AC_OBJEXT])
|
10176 | |
+# Check for command to grab the raw symbol name followed by C symbol from nm.
|
10177 | |
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
|
10178 | |
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
|
10179 | |
+[
|
10180 | |
+# These are sane defaults that work on at least a few old systems.
|
10181 | |
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
10182 | |
|
10183 | |
-#
|
10184 | |
-# Check to make sure the static flag actually works.
|
10185 | |
-#
|
10186 | |
-wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
|
10187 | |
-AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
|
10188 | |
- _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
|
10189 | |
- $lt_tmp_static_flag,
|
10190 | |
- [],
|
10191 | |
- [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
|
10192 | |
-])
|
10193 | |
+# Character class describing NM global symbol codes.
|
10194 | |
+symcode='[[BCDEGRST]]'
|
10195 | |
|
10196 | |
+# Regexp to match symbols that can be accessed directly from C.
|
10197 | |
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
|
10198 | |
|
10199 | |
-# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
|
10200 | |
-# ------------------------------------
|
10201 | |
-# See if the linker supports building shared libraries.
|
10202 | |
-AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
|
10203 | |
-[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
10204 | |
-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
10205 | |
-ifelse([$1],[CXX],[
|
10206 | |
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
10207 | |
- case $host_os in
|
10208 | |
- aix4* | aix5*)
|
10209 | |
- # If we're using GNU nm, then we don't want the "-C" option.
|
10210 | |
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
10211 | |
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
10212 | |
- _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'
|
10213 | |
- else
|
10214 | |
- _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'
|
10215 | |
- fi
|
10216 | |
- ;;
|
10217 | |
- pw32*)
|
10218 | |
- _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
|
10219 | |
+# Transform an extracted symbol line into a proper C declaration
|
10220 | |
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
|
10221 | |
+
|
10222 | |
+# Transform an extracted symbol line into symbol name and symbol address
|
10223 | |
+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'"
|
10224 | |
+
|
10225 | |
+# Define system-specific variables.
|
10226 | |
+case $host_os in
|
10227 | |
+aix*)
|
10228 | |
+ symcode='[[BCDT]]'
|
10229 | |
;;
|
10230 | |
- cygwin* | mingw*)
|
10231 | |
- _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'
|
10232 | |
+cygwin* | mingw* | pw32*)
|
10233 | |
+ symcode='[[ABCDGISTW]]'
|
10234 | |
;;
|
10235 | |
- linux* | k*bsd*-gnu)
|
10236 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=no
|
10237 | |
+hpux*) # Its linker distinguishes data from code symbols
|
10238 | |
+ if test "$host_cpu" = ia64; then
|
10239 | |
+ symcode='[[ABCDEGRST]]'
|
10240 | |
+ fi
|
10241 | |
+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
10242 | |
+ 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'"
|
10243 | |
;;
|
10244 | |
- *)
|
10245 | |
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
10246 | |
+linux* | k*bsd*-gnu)
|
10247 | |
+ if test "$host_cpu" = ia64; then
|
10248 | |
+ symcode='[[ABCDGIRSTW]]'
|
10249 | |
+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
10250 | |
+ 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'"
|
10251 | |
+ fi
|
10252 | |
;;
|
10253 | |
- esac
|
10254 | |
-],[
|
10255 | |
- runpath_var=
|
10256 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
10257 | |
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
10258 | |
- _LT_AC_TAGVAR(archive_cmds, $1)=
|
10259 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
10260 | |
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
|
10261 | |
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
|
10262 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
10263 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
10264 | |
- _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
|
10265 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
10266 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
10267 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
10268 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
10269 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
10270 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
10271 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
10272 | |
- _LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
10273 | |
- _LT_AC_TAGVAR(module_cmds, $1)=
|
10274 | |
- _LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
10275 | |
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
10276 | |
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
10277 | |
- # include_expsyms should be a list of space-separated symbols to be *always*
|
10278 | |
- # included in the symbol list
|
10279 | |
- _LT_AC_TAGVAR(include_expsyms, $1)=
|
10280 | |
- # exclude_expsyms can be an extended regexp of symbols to exclude
|
10281 | |
- # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
10282 | |
- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
10283 | |
- # as well as any symbol that contains `d'.
|
10284 | |
- _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
|
10285 | |
- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
10286 | |
- # platforms (ab)use it in PIC code, but their linkers get confused if
|
10287 | |
- # the symbol is explicitly referenced. Since portable code cannot
|
10288 | |
- # rely on this symbol name, it's probably fine to never include it in
|
10289 | |
- # preloaded symbol tables.
|
10290 | |
- extract_expsyms_cmds=
|
10291 | |
- # Just being paranoid about ensuring that cc_basename is set.
|
10292 | |
- _LT_CC_BASENAME([$compiler])
|
10293 | |
- case $host_os in
|
10294 | |
- cygwin* | mingw* | pw32*)
|
10295 | |
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
10296 | |
- # When not using gcc, we currently assume that we are using
|
10297 | |
- # Microsoft Visual C++.
|
10298 | |
- if test "$GCC" != yes; then
|
10299 | |
- with_gnu_ld=no
|
10300 | |
- fi
|
10301 | |
- ;;
|
10302 | |
- interix*)
|
10303 | |
- # we just hope/assume this is gcc and not c89 (= MSVC++)
|
10304 | |
- with_gnu_ld=yes
|
10305 | |
- ;;
|
10306 | |
- openbsd*)
|
10307 | |
- with_gnu_ld=no
|
10308 | |
- ;;
|
10309 | |
- esac
|
10310 | |
+irix* | nonstopux*)
|
10311 | |
+ symcode='[[BCDEGRST]]'
|
10312 | |
+ ;;
|
10313 | |
+osf*)
|
10314 | |
+ symcode='[[BCDEGQRST]]'
|
10315 | |
+ ;;
|
10316 | |
+solaris*)
|
10317 | |
+ symcode='[[BDRT]]'
|
10318 | |
+ ;;
|
10319 | |
+sco3.2v5*)
|
10320 | |
+ symcode='[[DT]]'
|
10321 | |
+ ;;
|
10322 | |
+sysv4.2uw2*)
|
10323 | |
+ symcode='[[DT]]'
|
10324 | |
+ ;;
|
10325 | |
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
10326 | |
+ symcode='[[ABDT]]'
|
10327 | |
+ ;;
|
10328 | |
+sysv4)
|
10329 | |
+ symcode='[[DFNSTU]]'
|
10330 | |
+ ;;
|
10331 | |
+esac
|
10332 | |
|
10333 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
10334 | |
- if test "$with_gnu_ld" = yes; then
|
10335 | |
- # If archive_cmds runs LD, not CC, wlarc should be empty
|
10336 | |
- wlarc='${wl}'
|
10337 | |
+# Handle CRLF in mingw tool chain
|
10338 | |
+opt_cr=
|
10339 | |
+case $build_os in
|
10340 | |
+mingw*)
|
10341 | |
+ opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
10342 | |
+ ;;
|
10343 | |
+esac
|
10344 | |
|
10345 | |
- # Set some defaults for GNU ld with shared library support. These
|
10346 | |
- # are reset later if shared libraries are not supported. Putting them
|
10347 | |
- # here allows them to be overridden if necessary.
|
10348 | |
- runpath_var=LD_RUN_PATH
|
10349 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
10350 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
10351 | |
- # ancient GNU ld didn't support --whole-archive et. al.
|
10352 | |
- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
10353 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
10354 | |
+# If we're using GNU nm, then use its standard symbol codes.
|
10355 | |
+case `$NM -V 2>&1` in
|
10356 | |
+*GNU* | *'with BFD'*)
|
10357 | |
+ symcode='[[ABCDGIRSTW]]' ;;
|
10358 | |
+esac
|
10359 | |
+
|
10360 | |
+# Try without a prefix undercore, then with it.
|
10361 | |
+for ac_symprfx in "" "_"; do
|
10362 | |
+
|
10363 | |
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
10364 | |
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
|
10365 | |
+
|
10366 | |
+ # Write the raw and C identifiers.
|
10367 | |
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
10368 | |
+
|
10369 | |
+ # Check to see that the pipe works correctly.
|
10370 | |
+ pipe_works=no
|
10371 | |
+
|
10372 | |
+ rm -f conftest*
|
10373 | |
+ cat > conftest.$ac_ext <<EOF
|
10374 | |
+#ifdef __cplusplus
|
10375 | |
+extern "C" {
|
10376 | |
+#endif
|
10377 | |
+char nm_test_var;
|
10378 | |
+void nm_test_func(){}
|
10379 | |
+#ifdef __cplusplus
|
10380 | |
+}
|
10381 | |
+#endif
|
10382 | |
+int main(){nm_test_var='a';nm_test_func();return(0);}
|
10383 | |
+EOF
|
10384 | |
+
|
10385 | |
+ if AC_TRY_EVAL(ac_compile); then
|
10386 | |
+ # Now try to grab the symbols.
|
10387 | |
+ nlist=conftest.nm
|
10388 | |
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
|
10389 | |
+ # Try sorting and uniquifying the output.
|
10390 | |
+ if sort "$nlist" | uniq > "$nlist"T; then
|
10391 | |
+ mv -f "$nlist"T "$nlist"
|
10392 | |
else
|
10393 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
10394 | |
- fi
|
10395 | |
- supports_anon_versioning=no
|
10396 | |
- case `$LD -v 2>/dev/null` in
|
10397 | |
- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
|
10398 | |
- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
10399 | |
- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
10400 | |
- *\ 2.11.*) ;; # other 2.11 versions
|
10401 | |
- *) supports_anon_versioning=yes ;;
|
10402 | |
- esac
|
10403 | |
+ rm -f "$nlist"T
|
10404 | |
+ fi
|
10405 | |
|
10406 | |
- # See if GNU ld supports shared libraries.
|
10407 | |
- case $host_os in
|
10408 | |
- aix3* | aix4* | aix5*)
|
10409 | |
- # On AIX/PPC, the GNU linker is very broken
|
10410 | |
- if test "$host_cpu" != ia64; then
|
10411 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
10412 | |
- cat <<EOF 1>&2
|
10413 | |
+ # Make sure that we snagged all the symbols we need.
|
10414 | |
+ if grep ' nm_test_var$' "$nlist" >/dev/null; then
|
10415 | |
+ if grep ' nm_test_func$' "$nlist" >/dev/null; then
|
10416 | |
+ cat <<EOF > conftest.$ac_ext
|
10417 | |
+#ifdef __cplusplus
|
10418 | |
+extern "C" {
|
10419 | |
+#endif
|
10420 | |
|
10421 | |
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
10422 | |
-*** to be unable to reliably create shared libraries on AIX.
|
10423 | |
-*** Therefore, libtool is disabling shared libraries support. If you
|
10424 | |
-*** really care for shared libraries, you may want to modify your PATH
|
10425 | |
-*** so that a non-GNU linker is found, and then restart.
|
10426 | |
+EOF
|
10427 | |
+ # Now generate the symbol file.
|
10428 | |
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
|
10429 | |
+
|
10430 | |
+ cat <<EOF >> conftest.$ac_ext
|
10431 | |
+#if defined (__STDC__) && __STDC__
|
10432 | |
+# define lt_ptr_t void *
|
10433 | |
+#else
|
10434 | |
+# define lt_ptr_t char *
|
10435 | |
+# define const
|
10436 | |
+#endif
|
10437 | |
+
|
10438 | |
+/* The mapping between symbol names and symbols. */
|
10439 | |
+const struct {
|
10440 | |
+ const char *name;
|
10441 | |
+ lt_ptr_t address;
|
10442 | |
+}
|
10443 | |
+lt_preloaded_symbols[[]] =
|
10444 | |
+{
|
10445 | |
+EOF
|
10446 | |
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
|
10447 | |
+ cat <<\EOF >> conftest.$ac_ext
|
10448 | |
+ {0, (lt_ptr_t) 0}
|
10449 | |
+};
|
10450 | |
|
10451 | |
+#ifdef __cplusplus
|
10452 | |
+}
|
10453 | |
+#endif
|
10454 | |
EOF
|
10455 | |
+ # Now try linking the two files.
|
10456 | |
+ mv conftest.$ac_objext conftstm.$ac_objext
|
10457 | |
+ lt_save_LIBS="$LIBS"
|
10458 | |
+ lt_save_CFLAGS="$CFLAGS"
|
10459 | |
+ LIBS="conftstm.$ac_objext"
|
10460 | |
+ CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
|
10461 | |
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
|
10462 | |
+ pipe_works=yes
|
10463 | |
+ fi
|
10464 | |
+ LIBS="$lt_save_LIBS"
|
10465 | |
+ CFLAGS="$lt_save_CFLAGS"
|
10466 | |
+ else
|
10467 | |
+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
|
10468 | |
+ fi
|
10469 | |
+ else
|
10470 | |
+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
|
10471 | |
fi
|
10472 | |
- ;;
|
10473 | |
+ else
|
10474 | |
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
|
10475 | |
+ fi
|
10476 | |
+ else
|
10477 | |
+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
|
10478 | |
+ cat conftest.$ac_ext >&5
|
10479 | |
+ fi
|
10480 | |
+ rm -f conftest* conftst*
|
10481 | |
|
10482 | |
- amigaos*)
|
10483 | |
- _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)'
|
10484 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
10485 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
10486 | |
+ # Do not use the global_symbol_pipe unless it works.
|
10487 | |
+ if test "$pipe_works" = yes; then
|
10488 | |
+ break
|
10489 | |
+ else
|
10490 | |
+ lt_cv_sys_global_symbol_pipe=
|
10491 | |
+ fi
|
10492 | |
+done
|
10493 | |
+])
|
10494 | |
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
10495 | |
+ lt_cv_sys_global_symbol_to_cdecl=
|
10496 | |
+fi
|
10497 | |
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
10498 | |
+ AC_MSG_RESULT(failed)
|
10499 | |
+else
|
10500 | |
+ AC_MSG_RESULT(ok)
|
10501 | |
+fi
|
10502 | |
+]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
10503 | |
|
10504 | |
- # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
10505 | |
- # that the semantics of dynamic libraries on AmigaOS, at least up
|
10506 | |
- # to version 4, is to share data among multiple programs linked
|
10507 | |
- # with the same dynamic library. Since this doesn't match the
|
10508 | |
- # behavior of shared libraries on other platforms, we can't use
|
10509 | |
- # them.
|
10510 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
10511 | |
- ;;
|
10512 | |
|
10513 | |
- beos*)
|
10514 | |
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
10515 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
10516 | |
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
10517 | |
- # support --undefined. This deserves some investigation. FIXME
|
10518 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10519 | |
- else
|
10520 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
10521 | |
- fi
|
10522 | |
- ;;
|
10523 | |
+# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
|
10524 | |
+# ---------------------------------------
|
10525 | |
+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
|
10526 | |
+[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
|
10527 | |
+_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
10528 | |
+_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
|
10529 | |
|
10530 | |
- cygwin* | mingw* | pw32*)
|
10531 | |
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
10532 | |
- # as there is no search path for DLLs.
|
10533 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
10534 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
10535 | |
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
10536 | |
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
10537 | |
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
|
10538 | |
+AC_MSG_CHECKING([for $compiler option to produce PIC])
|
10539 | |
+ ifelse([$1],[CXX],[
|
10540 | |
+ # C++ specific cases for pic, static, wl, etc.
|
10541 | |
+ if test "$GXX" = yes; then
|
10542 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10543 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
10544 | |
|
10545 | |
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
10546 | |
- _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'
|
10547 | |
- # If the export-symbols file already is a .def file (1st line
|
10548 | |
- # is EXPORTS), use it as is; otherwise, prepend...
|
10549 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
10550 | |
- cp $export_symbols $output_objdir/$soname.def;
|
10551 | |
- else
|
10552 | |
- echo EXPORTS > $output_objdir/$soname.def;
|
10553 | |
- cat $export_symbols >> $output_objdir/$soname.def;
|
10554 | |
- fi~
|
10555 | |
- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
10556 | |
- else
|
10557 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
10558 | |
+ case $host_os in
|
10559 | |
+ aix*)
|
10560 | |
+ # All AIX code is PIC.
|
10561 | |
+ if test "$host_cpu" = ia64; then
|
10562 | |
+ # AIX 5 now supports IA64 processor
|
10563 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
10564 | |
fi
|
10565 | |
;;
|
10566 | |
-
|
10567 | |
- interix[[3-9]]*)
|
10568 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
10569 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
10570 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
10571 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
10572 | |
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
10573 | |
- # Instead, shared libraries are loaded at an image base (0x10000000 by
|
10574 | |
- # default) and relocated if they conflict, which is a slow very memory
|
10575 | |
- # consuming and fragmenting process. To avoid this, we pick a random,
|
10576 | |
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
10577 | |
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
10578 | |
- _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'
|
10579 | |
- _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'
|
10580 | |
+ amigaos*)
|
10581 | |
+ # FIXME: we need at least 68020 code to build shared libraries, but
|
10582 | |
+ # adding the `-m68020' flag to GCC prevents building anything better,
|
10583 | |
+ # like `-m68040'.
|
10584 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
10585 | |
;;
|
10586 | |
-
|
10587 | |
- gnu* | linux* | k*bsd*-gnu)
|
10588 | |
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
10589 | |
- tmp_addflag=
|
10590 | |
- case $cc_basename,$host_cpu in
|
10591 | |
- pgcc*) # Portland Group C compiler
|
10592 | |
- _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'
|
10593 | |
- tmp_addflag=' $pic_flag'
|
10594 | |
- ;;
|
10595 | |
- pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
10596 | |
- _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'
|
10597 | |
- tmp_addflag=' $pic_flag -Mnomain' ;;
|
10598 | |
- ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
10599 | |
- tmp_addflag=' -i_dynamic' ;;
|
10600 | |
- efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
10601 | |
- tmp_addflag=' -i_dynamic -nofor_main' ;;
|
10602 | |
- ifc* | ifort*) # Intel Fortran compiler
|
10603 | |
- tmp_addflag=' -nofor_main' ;;
|
10604 | |
- esac
|
10605 | |
- case `$CC -V 2>&1 | sed 5q` in
|
10606 | |
- *Sun\ C*) # Sun C 5.9
|
10607 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
10608 | |
- tmp_sharedflag='-G' ;;
|
10609 | |
- *Sun\ F*) # Sun Fortran 8.3
|
10610 | |
- tmp_sharedflag='-G' ;;
|
10611 | |
- *)
|
10612 | |
- tmp_sharedflag='-shared' ;;
|
10613 | |
- esac
|
10614 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10615 | |
-
|
10616 | |
- if test $supports_anon_versioning = yes; then
|
10617 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
|
10618 | |
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
10619 | |
- $echo "local: *; };" >> $output_objdir/$libname.ver~
|
10620 | |
- $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
10621 | |
- fi
|
10622 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=no
|
10623 | |
- else
|
10624 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
10625 | |
- fi
|
|
698 |
AC_REQUIRE([AC_PROG_NM])
|
|
699 |
AC_REQUIRE([AC_OBJEXT])
|
|
700 |
# Check for command to grab the raw symbol name followed by C symbol from nm.
|
|
701 |
@@ -5489,12 +5630,14 @@
|
|
702 |
# like `-m68040'.
|
|
703 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
|
704 |
;;
|
|
705 |
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
10626 | 706 |
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
10627 | |
+ # PIC is the default for these OSes.
|
10628 | |
;;
|
10629 | |
-
|
10630 | |
- netbsd* | netbsdelf*-gnu)
|
10631 | |
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
10632 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
10633 | |
- wlarc=
|
10634 | |
- else
|
10635 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10636 | |
- _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'
|
10637 | |
- fi
|
|
707 |
# PIC is the default for these OSes.
|
|
708 |
;;
|
|
709 |
- mingw* | os2* | pw32*)
|
10638 | 710 |
+ mingw* | cygwin* | os2* | pw32*)
|
10639 | |
+ # This hack is so that the source file can tell whether it is being
|
10640 | |
+ # built for inclusion in a dll (and should export symbols for example).
|
|
711 |
# This hack is so that the source file can tell whether it is being
|
|
712 |
# built for inclusion in a dll (and should export symbols for example).
|
10641 | 713 |
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
10642 | 714 |
+ # (--disable-auto-import) libraries
|
10643 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
10644 | |
;;
|
10645 | |
-
|
10646 | |
- solaris*)
|
10647 | |
- if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
10648 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
10649 | |
- cat <<EOF 1>&2
|
10650 | |
-
|
10651 | |
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
10652 | |
-*** create shared libraries on Solaris systems. Therefore, libtool
|
10653 | |
-*** is disabling shared libraries support. We urge you to upgrade GNU
|
10654 | |
-*** binutils to release 2.9.1 or newer. Another option is to modify
|
10655 | |
-*** your PATH or compiler configuration so that the native linker is
|
10656 | |
-*** used, and then restart.
|
10657 | |
-
|
10658 | |
-EOF
|
10659 | |
- elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
10660 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10661 | |
- _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'
|
10662 | |
- else
|
10663 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
10664 | |
+ darwin* | rhapsody*)
|
10665 | |
+ # PIC is the default on this platform
|
10666 | |
+ # Common symbols not allowed in MH_DYLIB files
|
10667 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
10668 | |
+ ;;
|
10669 | |
+ *djgpp*)
|
10670 | |
+ # DJGPP does not support shared libraries at all
|
10671 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
10672 | |
+ ;;
|
|
715 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
|
716 |
;;
|
|
717 |
darwin* | rhapsody*)
|
|
718 |
@@ -5506,7 +5649,7 @@
|
|
719 |
# DJGPP does not support shared libraries at all
|
|
720 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
721 |
;;
|
|
722 |
- interix3*)
|
10673 | 723 |
+ interix[[3-9]]*)
|
10674 | |
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
10675 | |
+ # Instead, we relocate shared libraries at runtime.
|
10676 | |
+ ;;
|
10677 | |
+ sysv4*MP*)
|
10678 | |
+ if test -d /usr/nec; then
|
10679 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
10680 | |
fi
|
10681 | |
;;
|
10682 | |
-
|
10683 | |
- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
10684 | |
- case `$LD -v 2>&1` in
|
10685 | |
- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
|
10686 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
10687 | |
- cat <<_LT_EOF 1>&2
|
10688 | |
-
|
10689 | |
-*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
10690 | |
-*** reliably create shared libraries on SCO systems. Therefore, libtool
|
10691 | |
-*** is disabling shared libraries support. We urge you to upgrade GNU
|
10692 | |
-*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
10693 | |
-*** your PATH or compiler configuration so that the native linker is
|
10694 | |
-*** used, and then restart.
|
10695 | |
-
|
10696 | |
-_LT_EOF
|
10697 | |
- ;;
|
10698 | |
- *)
|
10699 | |
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
10700 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
10701 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
10702 | |
- _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'
|
10703 | |
- else
|
10704 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
10705 | |
- fi
|
10706 | |
+ hpux*)
|
10707 | |
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
10708 | |
+ # not for PA HP-UX.
|
10709 | |
+ case $host_cpu in
|
10710 | |
+ hppa*64*|ia64*)
|
10711 | |
;;
|
10712 | |
- esac
|
10713 | |
- ;;
|
10714 | |
-
|
10715 | |
- sunos4*)
|
10716 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
10717 | |
- wlarc=
|
10718 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
10719 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
10720 | |
+ *)
|
10721 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
10722 | |
+ ;;
|
10723 | |
+ esac
|
10724 | |
;;
|
10725 | |
-
|
10726 | |
*)
|
10727 | |
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
10728 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10729 | |
- _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'
|
10730 | |
- else
|
10731 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
10732 | |
- fi
|
10733 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
10734 | |
;;
|
10735 | |
esac
|
10736 | |
-
|
10737 | |
- if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
|
10738 | |
- runpath_var=
|
10739 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
10740 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
10741 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
10742 | |
- fi
|
10743 | |
else
|
10744 | |
- # PORTME fill in a description of your system's linker (not GNU ld)
|
10745 | |
case $host_os in
|
10746 | |
- aix3*)
|
10747 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
10748 | |
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
10749 | |
- _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'
|
10750 | |
- # Note: this linker hardcodes the directories in LIBPATH if there
|
10751 | |
- # are no directories specified by -L.
|
10752 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
10753 | |
- if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
10754 | |
- # Neither direct hardcoding nor static linking is supported with a
|
10755 | |
- # broken collect2.
|
10756 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
10757 | |
- fi
|
10758 | |
- ;;
|
10759 | |
-
|
10760 | |
- aix4* | aix5*)
|
10761 | |
- if test "$host_cpu" = ia64; then
|
10762 | |
- # On IA64, the linker does run time linking by default, so we don't
|
10763 | |
- # have to do anything special.
|
10764 | |
- aix_use_runtimelinking=no
|
10765 | |
- exp_sym_flag='-Bexport'
|
10766 | |
- no_entry_flag=""
|
10767 | |
- else
|
10768 | |
- # If we're using GNU nm, then we don't want the "-C" option.
|
10769 | |
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
10770 | |
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
10771 | |
- _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'
|
10772 | |
+ aix4* | aix5*)
|
10773 | |
+ # All AIX code is PIC.
|
10774 | |
+ if test "$host_cpu" = ia64; then
|
10775 | |
+ # AIX 5 now supports IA64 processor
|
10776 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
10777 | |
else
|
10778 | |
- _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'
|
10779 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
10780 | |
fi
|
10781 | |
- aix_use_runtimelinking=no
|
10782 | |
-
|
10783 | |
- # Test if we are trying to use run time linking or normal
|
10784 | |
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
10785 | |
- # need to do runtime linking.
|
10786 | |
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
|
10787 | |
- for ld_flag in $LDFLAGS; do
|
10788 | |
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
10789 | |
- aix_use_runtimelinking=yes
|
10790 | |
- break
|
10791 | |
- fi
|
10792 | |
- done
|
10793 | |
+ ;;
|
10794 | |
+ chorus*)
|
10795 | |
+ case $cc_basename in
|
10796 | |
+ cxch68*)
|
10797 | |
+ # Green Hills C++ Compiler
|
10798 | |
+ # _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"
|
10799 | |
;;
|
10800 | |
esac
|
10801 | |
-
|
10802 | |
- exp_sym_flag='-bexport'
|
10803 | |
- no_entry_flag='-bnoentry'
|
10804 | |
- fi
|
10805 | |
-
|
10806 | |
- # When large executables or shared objects are built, AIX ld can
|
10807 | |
- # have problems creating the table of contents. If linking a library
|
10808 | |
- # or program results in "error TOC overflow" add -mminimal-toc to
|
10809 | |
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
10810 | |
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
10811 | |
-
|
10812 | |
- _LT_AC_TAGVAR(archive_cmds, $1)=''
|
10813 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
10814 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
10815 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
10816 | |
-
|
10817 | |
- if test "$GCC" = yes; then
|
10818 | |
- case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
10819 | |
- # We only want to do this on AIX 4.2 and lower, the check
|
10820 | |
- # below for broken collect2 doesn't work under 4.3+
|
10821 | |
- collect2name=`${CC} -print-prog-name=collect2`
|
10822 | |
- if test -f "$collect2name" && \
|
10823 | |
- strings "$collect2name" | grep resolve_lib_name >/dev/null
|
10824 | |
- then
|
10825 | |
- # We have reworked collect2
|
10826 | |
- :
|
10827 | |
- else
|
10828 | |
- # We have old collect2
|
10829 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
10830 | |
- # It fails to find uninstalled libraries when the uninstalled
|
10831 | |
- # path is not listed in the libpath. Setting hardcode_minus_L
|
10832 | |
- # to unsupported forces relinking
|
10833 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
10834 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
10835 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
10836 | |
- fi
|
10837 | |
- ;;
|
10838 | |
+ ;;
|
10839 | |
+ darwin*)
|
10840 | |
+ # PIC is the default on this platform
|
10841 | |
+ # Common symbols not allowed in MH_DYLIB files
|
10842 | |
+ case $cc_basename in
|
10843 | |
+ xlc*)
|
10844 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
|
10845 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10846 | |
+ ;;
|
10847 | |
+ esac
|
10848 | |
+ ;;
|
10849 | |
+ dgux*)
|
10850 | |
+ case $cc_basename in
|
10851 | |
+ ec++*)
|
10852 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
10853 | |
+ ;;
|
10854 | |
+ ghcx*)
|
10855 | |
+ # Green Hills C++ Compiler
|
10856 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
10857 | |
+ ;;
|
10858 | |
+ *)
|
10859 | |
+ ;;
|
10860 | |
+ esac
|
10861 | |
+ ;;
|
10862 | |
+ freebsd* | dragonfly*)
|
10863 | |
+ # FreeBSD uses GNU C++
|
10864 | |
+ ;;
|
10865 | |
+ hpux9* | hpux10* | hpux11*)
|
10866 | |
+ case $cc_basename in
|
10867 | |
+ CC*)
|
10868 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10869 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
10870 | |
+ if test "$host_cpu" != ia64; then
|
10871 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
10872 | |
+ fi
|
10873 | |
+ ;;
|
10874 | |
+ aCC*)
|
10875 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10876 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
10877 | |
+ case $host_cpu in
|
10878 | |
+ hppa*64*|ia64*)
|
10879 | |
+ # +Z the default
|
10880 | |
+ ;;
|
10881 | |
+ *)
|
10882 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
10883 | |
+ ;;
|
10884 | |
+ esac
|
10885 | |
+ ;;
|
10886 | |
+ *)
|
10887 | |
+ ;;
|
10888 | |
+ esac
|
10889 | |
+ ;;
|
10890 | |
+ interix*)
|
10891 | |
+ # This is c89, which is MS Visual C++ (no shared libs)
|
10892 | |
+ # Anyone wants to do a port?
|
10893 | |
+ ;;
|
10894 | |
+ irix5* | irix6* | nonstopux*)
|
10895 | |
+ case $cc_basename in
|
10896 | |
+ CC*)
|
10897 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10898 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
10899 | |
+ # CC pic flag -KPIC is the default.
|
10900 | |
+ ;;
|
10901 | |
+ *)
|
10902 | |
+ ;;
|
10903 | |
+ esac
|
10904 | |
+ ;;
|
10905 | |
+ linux* | k*bsd*-gnu)
|
10906 | |
+ case $cc_basename in
|
10907 | |
+ KCC*)
|
10908 | |
+ # KAI C++ Compiler
|
10909 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
10910 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
10911 | |
+ ;;
|
10912 | |
+ icpc* | ecpc*)
|
10913 | |
+ # Intel C++
|
10914 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10915 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
10916 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
10917 | |
+ ;;
|
10918 | |
+ pgCC*)
|
10919 | |
+ # Portland Group C++ compiler.
|
10920 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10921 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
10922 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
10923 | |
+ ;;
|
10924 | |
+ cxx*)
|
10925 | |
+ # Compaq C++
|
10926 | |
+ # Make sure the PIC flag is empty. It appears that all Alpha
|
10927 | |
+ # Linux and Compaq Tru64 Unix objects are PIC.
|
10928 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
10929 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
10930 | |
+ ;;
|
10931 | |
+ *)
|
|
724 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
725 |
# Instead, we relocate shared libraries at runtime.
|
|
726 |
;;
|
|
727 |
@@ -5642,6 +5785,14 @@
|
|
728 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
729 |
;;
|
|
730 |
*)
|
10932 | 731 |
+ case `$CC -V 2>&1 | sed 5q` in
|
10933 | 732 |
+ *Sun\ C*)
|
10934 | 733 |
+ # Sun C++ 5.9
|
|
10937 | 736 |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
10938 | 737 |
+ ;;
|
10939 | 738 |
+ esac
|
10940 | |
+ ;;
|
10941 | |
+ esac
|
10942 | |
+ ;;
|
10943 | |
+ lynxos*)
|
10944 | |
+ ;;
|
10945 | |
+ m88k*)
|
10946 | |
+ ;;
|
10947 | |
+ mvs*)
|
10948 | |
+ case $cc_basename in
|
10949 | |
+ cxx*)
|
10950 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
|
10951 | |
+ ;;
|
10952 | |
+ *)
|
10953 | |
+ ;;
|
10954 | |
+ esac
|
10955 | |
+ ;;
|
10956 | |
+ netbsd* | netbsdelf*-gnu)
|
10957 | |
+ ;;
|
10958 | |
+ osf3* | osf4* | osf5*)
|
10959 | |
+ case $cc_basename in
|
10960 | |
+ KCC*)
|
10961 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
10962 | |
+ ;;
|
10963 | |
+ RCC*)
|
10964 | |
+ # Rational C++ 2.4.1
|
10965 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
10966 | |
+ ;;
|
10967 | |
+ cxx*)
|
10968 | |
+ # Digital/Compaq C++
|
10969 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
10970 | |
+ # Make sure the PIC flag is empty. It appears that all Alpha
|
10971 | |
+ # Linux and Compaq Tru64 Unix objects are PIC.
|
10972 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
10973 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
10974 | |
+ ;;
|
10975 | |
+ *)
|
10976 | |
+ ;;
|
10977 | |
+ esac
|
10978 | |
+ ;;
|
10979 | |
+ psos*)
|
10980 | |
+ ;;
|
10981 | |
+ solaris*)
|
10982 | |
+ case $cc_basename in
|
10983 | |
+ CC*)
|
10984 | |
+ # Sun C++ 4.2, 5.x and Centerline C++
|
10985 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
10986 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
10987 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
10988 | |
+ ;;
|
10989 | |
+ gcx*)
|
10990 | |
+ # Green Hills C++ Compiler
|
10991 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
10992 | |
+ ;;
|
10993 | |
+ *)
|
10994 | |
+ ;;
|
|
739 |
;;
|
10995 | 740 |
esac
|
10996 | |
- shared_flag='-shared'
|
10997 | |
- if test "$aix_use_runtimelinking" = yes; then
|
10998 | |
- shared_flag="$shared_flag "'${wl}-G'
|
10999 | |
- fi
|
11000 | |
- else
|
11001 | |
- # not using gcc
|
11002 | |
- if test "$host_cpu" = ia64; then
|
11003 | |
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
11004 | |
- # chokes on -Wl,-G. The following line is correct:
|
11005 | |
- shared_flag='-G'
|
11006 | |
- else
|
11007 | |
- if test "$aix_use_runtimelinking" = yes; then
|
11008 | |
- shared_flag='${wl}-G'
|
11009 | |
- else
|
11010 | |
- shared_flag='${wl}-bM:SRE'
|
11011 | |
- fi
|
11012 | |
- fi
|
11013 | |
- fi
|
11014 | |
+ ;;
|
11015 | |
+ sunos4*)
|
11016 | |
+ case $cc_basename in
|
11017 | |
+ CC*)
|
11018 | |
+ # Sun C++ 4.x
|
11019 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
11020 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
11021 | |
+ ;;
|
11022 | |
+ lcc*)
|
11023 | |
+ # Lucid
|
11024 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
11025 | |
+ ;;
|
11026 | |
+ *)
|
11027 | |
+ ;;
|
11028 | |
+ esac
|
11029 | |
+ ;;
|
11030 | |
+ tandem*)
|
11031 | |
+ case $cc_basename in
|
11032 | |
+ NCC*)
|
11033 | |
+ # NonStop-UX NCC 3.20
|
11034 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
11035 | |
+ ;;
|
11036 | |
+ *)
|
11037 | |
+ ;;
|
11038 | |
+ esac
|
11039 | |
+ ;;
|
11040 | |
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
11041 | |
+ case $cc_basename in
|
11042 | |
+ CC*)
|
11043 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11044 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
11045 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
11046 | |
+ ;;
|
11047 | |
+ esac
|
11048 | |
+ ;;
|
11049 | |
+ vxworks*)
|
11050 | |
+ ;;
|
11051 | |
+ *)
|
11052 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
11053 | |
+ ;;
|
11054 | |
+ esac
|
11055 | |
+ fi
|
11056 | |
+],
|
11057 | |
+[
|
11058 | |
+ if test "$GCC" = yes; then
|
11059 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11060 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
11061 | |
|
11062 | |
- # It seems that -bexpall does not export symbols beginning with
|
11063 | |
- # underscore (_), so it is better to generate a list of symbols to export.
|
11064 | |
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
11065 | |
- if test "$aix_use_runtimelinking" = yes; then
|
11066 | |
- # Warning - without using the other runtime loading flags (-brtl),
|
11067 | |
- # -berok will link without error, but may produce a broken library.
|
11068 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
|
11069 | |
- # Determine the default libpath from the value encoded in an empty executable.
|
11070 | |
- _LT_AC_SYS_LIBPATH_AIX
|
11071 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
11072 | |
- _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"
|
11073 | |
- else
|
11074 | |
- if test "$host_cpu" = ia64; then
|
11075 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
11076 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
11077 | |
- _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"
|
11078 | |
- else
|
11079 | |
- # Determine the default libpath from the value encoded in an empty executable.
|
11080 | |
- _LT_AC_SYS_LIBPATH_AIX
|
11081 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
11082 | |
- # Warning - without using the other run time loading flags,
|
11083 | |
- # -berok will link without error, but may produce a broken library.
|
11084 | |
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
11085 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
11086 | |
- # Exported symbols can be pulled into shared objects from archives
|
11087 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
11088 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
11089 | |
- # This is similar to how AIX traditionally builds its shared libraries.
|
11090 | |
- _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'
|
11091 | |
- fi
|
11092 | |
+ case $host_os in
|
11093 | |
+ aix*)
|
11094 | |
+ # All AIX code is PIC.
|
11095 | |
+ if test "$host_cpu" = ia64; then
|
11096 | |
+ # AIX 5 now supports IA64 processor
|
11097 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
11098 | |
fi
|
11099 | |
;;
|
11100 | |
|
11101 | |
amigaos*)
|
11102 | |
- _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)'
|
11103 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
11104 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
11105 | |
- # see comment about different semantics on the GNU ld section
|
11106 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
11107 | |
- ;;
|
11108 | |
-
|
11109 | |
- bsdi[[45]]*)
|
11110 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
|
11111 | |
- ;;
|
11112 | |
-
|
11113 | |
- cygwin* | mingw* | pw32*)
|
11114 | |
- # When not using gcc, we currently assume that we are using
|
11115 | |
- # Microsoft Visual C++.
|
11116 | |
- # hardcode_libdir_flag_spec is actually meaningless, as there is
|
11117 | |
- # no search path for DLLs.
|
11118 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
11119 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
11120 | |
- # Tell ltmain to make .lib files, not .a files.
|
11121 | |
- libext=lib
|
11122 | |
- # Tell ltmain to make .dll files, not .so files.
|
11123 | |
- shrext_cmds=".dll"
|
11124 | |
- # FIXME: Setting linknames here is a bad hack.
|
11125 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
11126 | |
- # The linker will automatically build a .lib file if we build a DLL.
|
11127 | |
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
|
11128 | |
- # FIXME: Should let the user specify the lib program.
|
11129 | |
- _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
11130 | |
- _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
|
11131 | |
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
11132 | |
- ;;
|
11133 | |
-
|
11134 | |
- darwin* | rhapsody*)
|
11135 | |
- case $host_os in
|
11136 | |
- rhapsody* | darwin1.[[012]])
|
11137 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
|
11138 | |
- ;;
|
11139 | |
- *) # Darwin 1.3 on
|
11140 | |
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
11141 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
11142 | |
- else
|
11143 | |
- case ${MACOSX_DEPLOYMENT_TARGET} in
|
11144 | |
- 10.[[012]])
|
11145 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
11146 | |
- ;;
|
11147 | |
- 10.*)
|
11148 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
|
11149 | |
- ;;
|
11150 | |
- esac
|
11151 | |
- fi
|
11152 | |
- ;;
|
11153 | |
- esac
|
11154 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
11155 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
11156 | |
- _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
|
11157 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
11158 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
|
11159 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
11160 | |
- if test "$GCC" = yes ; then
|
11161 | |
- output_verbose_link_cmd='echo'
|
11162 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
11163 | |
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
11164 | |
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
11165 | |
- _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}'
|
11166 | |
- _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}'
|
11167 | |
- else
|
11168 | |
- case $cc_basename in
|
11169 | |
- xlc*)
|
11170 | |
- output_verbose_link_cmd='echo'
|
11171 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
11172 | |
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
11173 | |
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
11174 | |
- _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
11175 | |
- _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}'
|
11176 | |
- ;;
|
11177 | |
- *)
|
11178 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
11179 | |
- ;;
|
11180 | |
- esac
|
11181 | |
- fi
|
11182 | |
- ;;
|
11183 | |
-
|
11184 | |
- dgux*)
|
11185 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
11186 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
11187 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11188 | |
- ;;
|
11189 | |
-
|
11190 | |
- freebsd1*)
|
11191 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
11192 | |
- ;;
|
11193 | |
-
|
11194 | |
- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
11195 | |
- # support. Future versions do this automatically, but an explicit c++rt0.o
|
11196 | |
- # does not break anything, and helps significantly (at the cost of a little
|
11197 | |
- # extra space).
|
11198 | |
- freebsd2.2*)
|
11199 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
11200 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
11201 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
11202 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11203 | |
- ;;
|
11204 | |
-
|
11205 | |
- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
11206 | |
- freebsd2*)
|
11207 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
11208 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
11209 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
11210 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11211 | |
- ;;
|
11212 | |
-
|
11213 | |
- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
11214 | |
- freebsd* | dragonfly*)
|
11215 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
11216 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
11217 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
11218 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11219 | |
- ;;
|
11220 | |
-
|
11221 | |
- hpux9*)
|
11222 | |
- if test "$GCC" = yes; then
|
11223 | |
- _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'
|
11224 | |
- else
|
11225 | |
- _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'
|
11226 | |
- fi
|
11227 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
11228 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
11229 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
11230 | |
-
|
11231 | |
- # hardcode_minus_L: Not really in the search PATH,
|
11232 | |
- # but as the default location of the library.
|
11233 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
11234 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
11235 | |
- ;;
|
11236 | |
-
|
11237 | |
- hpux10*)
|
11238 | |
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
11239 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
11240 | |
- else
|
11241 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
11242 | |
- fi
|
11243 | |
- if test "$with_gnu_ld" = no; then
|
11244 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
11245 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
11246 | |
+ # FIXME: we need at least 68020 code to build shared libraries, but
|
11247 | |
+ # adding the `-m68020' flag to GCC prevents building anything better,
|
11248 | |
+ # like `-m68040'.
|
11249 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
11250 | |
+ ;;
|
11251 | |
|
11252 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
11253 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
741 |
;;
|
|
742 |
@@ -5762,13 +5913,15 @@
|
|
743 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
|
744 |
;;
|
|
745 |
|
|
746 |
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
11254 | 747 |
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
11255 | |
+ # PIC is the default for these OSes.
|
11256 | |
+ ;;
|
11257 | |
|
11258 | |
- # hardcode_minus_L: Not really in the search PATH,
|
11259 | |
- # but as the default location of the library.
|
11260 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
11261 | |
- fi
|
|
748 |
# PIC is the default for these OSes.
|
|
749 |
;;
|
|
750 |
|
|
751 |
- mingw* | pw32* | os2*)
|
11262 | 752 |
+ mingw* | cygwin* | pw32* | os2*)
|
11263 | |
+ # This hack is so that the source file can tell whether it is being
|
11264 | |
+ # built for inclusion in a dll (and should export symbols for example).
|
|
753 |
# This hack is so that the source file can tell whether it is being
|
|
754 |
# built for inclusion in a dll (and should export symbols for example).
|
11265 | 755 |
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
11266 | 756 |
+ # (--disable-auto-import) libraries
|
11267 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
11268 | |
;;
|
11269 | |
|
11270 | |
- hpux11*)
|
11271 | |
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
11272 | |
- case $host_cpu in
|
11273 | |
- hppa*64*)
|
11274 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11275 | |
- ;;
|
11276 | |
- ia64*)
|
11277 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
11278 | |
- ;;
|
11279 | |
- *)
|
11280 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
11281 | |
- ;;
|
11282 | |
- esac
|
11283 | |
- else
|
11284 | |
- case $host_cpu in
|
11285 | |
- hppa*64*)
|
11286 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11287 | |
- ;;
|
11288 | |
- ia64*)
|
11289 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
11290 | |
- ;;
|
11291 | |
- *)
|
11292 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
11293 | |
- ;;
|
11294 | |
- esac
|
11295 | |
- fi
|
11296 | |
- if test "$with_gnu_ld" = no; then
|
11297 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
11298 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
11299 | |
+ darwin* | rhapsody*)
|
11300 | |
+ # PIC is the default on this platform
|
11301 | |
+ # Common symbols not allowed in MH_DYLIB files
|
11302 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
11303 | |
+ ;;
|
11304 | |
|
11305 | |
- case $host_cpu in
|
11306 | |
- hppa*64*|ia64*)
|
11307 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
11308 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
11309 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11310 | |
- ;;
|
11311 | |
- *)
|
11312 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
11313 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
757 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
|
758 |
;;
|
|
759 |
|
|
760 |
@@ -5778,7 +5931,7 @@
|
|
761 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
|
762 |
;;
|
|
763 |
|
|
764 |
- interix3*)
|
11314 | 765 |
+ interix[[3-9]]*)
|
11315 | |
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
11316 | |
+ # Instead, we relocate shared libraries at runtime.
|
11317 | |
+ ;;
|
11318 | |
|
11319 | |
- # hardcode_minus_L: Not really in the search PATH,
|
11320 | |
- # but as the default location of the library.
|
11321 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
11322 | |
- ;;
|
11323 | |
- esac
|
11324 | |
- fi
|
11325 | |
+ msdosdjgpp*)
|
11326 | |
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
|
11327 | |
+ # on systems that don't support them.
|
11328 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
11329 | |
+ enable_shared=no
|
11330 | |
;;
|
11331 | |
|
11332 | |
- irix5* | irix6* | nonstopux*)
|
11333 | |
- if test "$GCC" = yes; then
|
11334 | |
- _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'
|
11335 | |
- else
|
11336 | |
- _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'
|
11337 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
|
11338 | |
+ sysv4*MP*)
|
11339 | |
+ if test -d /usr/nec; then
|
11340 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
11341 | |
fi
|
11342 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
11343 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
11344 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
11345 | |
;;
|
11346 | |
|
11347 | |
- netbsd* | netbsdelf*-gnu)
|
11348 | |
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
11349 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
11350 | |
+ hpux*)
|
11351 | |
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
11352 | |
+ # not for PA HP-UX.
|
11353 | |
+ case $host_cpu in
|
11354 | |
+ hppa*64*|ia64*)
|
11355 | |
+ # +Z the default
|
11356 | |
+ ;;
|
11357 | |
+ *)
|
11358 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
11359 | |
+ ;;
|
11360 | |
+ esac
|
11361 | |
+ ;;
|
11362 | |
+
|
11363 | |
+ *)
|
11364 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
11365 | |
+ ;;
|
11366 | |
+ esac
|
11367 | |
+ else
|
11368 | |
+ # PORTME Check for flag to pass linker flags through the system compiler.
|
11369 | |
+ case $host_os in
|
11370 | |
+ aix*)
|
11371 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11372 | |
+ if test "$host_cpu" = ia64; then
|
11373 | |
+ # AIX 5 now supports IA64 processor
|
11374 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
11375 | |
else
|
11376 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
11377 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
11378 | |
fi
|
11379 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
11380 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
11381 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11382 | |
;;
|
11383 | |
+ darwin*)
|
11384 | |
+ # PIC is the default on this platform
|
11385 | |
+ # Common symbols not allowed in MH_DYLIB files
|
11386 | |
+ case $cc_basename in
|
11387 | |
+ xlc*)
|
11388 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
|
11389 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11390 | |
+ ;;
|
11391 | |
+ esac
|
11392 | |
+ ;;
|
11393 | |
|
11394 | |
- newsos6)
|
11395 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
11396 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
11397 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
11398 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
11399 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
766 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
767 |
# Instead, we relocate shared libraries at runtime.
|
|
768 |
;;
|
|
769 |
@@ -5836,7 +5989,7 @@
|
|
770 |
esac
|
|
771 |
;;
|
|
772 |
|
|
773 |
- mingw* | pw32* | os2*)
|
11400 | 774 |
+ mingw* | cygwin* | pw32* | os2*)
|
11401 | |
+ # This hack is so that the source file can tell whether it is being
|
11402 | |
+ # built for inclusion in a dll (and should export symbols for example).
|
11403 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
11404 | |
;;
|
11405 | |
|
11406 | |
- openbsd*)
|
11407 | |
- if test -f /usr/libexec/ld.so; then
|
11408 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
11409 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11410 | |
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
11411 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
11412 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
11413 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
11414 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
11415 | |
- else
|
11416 | |
- case $host_os in
|
11417 | |
- openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
|
11418 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
11419 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
11420 | |
- ;;
|
11421 | |
- *)
|
11422 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
11423 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
11424 | |
- ;;
|
11425 | |
- esac
|
11426 | |
- fi
|
11427 | |
- else
|
11428 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
11429 | |
- fi
|
11430 | |
+ hpux9* | hpux10* | hpux11*)
|
11431 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11432 | |
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
11433 | |
+ # not for PA HP-UX.
|
11434 | |
+ case $host_cpu in
|
11435 | |
+ hppa*64*|ia64*)
|
11436 | |
+ # +Z the default
|
11437 | |
+ ;;
|
11438 | |
+ *)
|
11439 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
11440 | |
+ ;;
|
11441 | |
+ esac
|
11442 | |
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
11443 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
11444 | |
;;
|
11445 | |
|
11446 | |
- os2*)
|
11447 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
11448 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
11449 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
11450 | |
- _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'
|
11451 | |
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
11452 | |
+ irix5* | irix6* | nonstopux*)
|
11453 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11454 | |
+ # PIC (with -KPIC) is the default.
|
11455 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
11456 | |
;;
|
11457 | |
|
11458 | |
- osf3*)
|
11459 | |
- if test "$GCC" = yes; then
|
11460 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
11461 | |
- _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'
|
11462 | |
- else
|
11463 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
11464 | |
- _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'
|
11465 | |
- fi
|
11466 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
11467 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
11468 | |
+ newsos6)
|
11469 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
11470 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
11471 | |
;;
|
11472 | |
|
11473 | |
- osf4* | osf5*) # as osf3* with the addition of -msym flag
|
11474 | |
- if test "$GCC" = yes; then
|
11475 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
11476 | |
- _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'
|
11477 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
11478 | |
- else
|
11479 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
11480 | |
- _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'
|
11481 | |
- _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~
|
11482 | |
- $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'
|
11483 | |
+ linux* | k*bsd*-gnu)
|
11484 | |
+ case $cc_basename in
|
11485 | |
+ icc* | ecc*)
|
11486 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11487 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
11488 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
11489 | |
+ ;;
|
11490 | |
+ pgcc* | pgf77* | pgf90* | pgf95*)
|
11491 | |
+ # Portland Group compilers (*not* the Pentium gcc compiler,
|
11492 | |
+ # which looks to be a dead project)
|
11493 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11494 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
11495 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
11496 | |
+ ;;
|
11497 | |
+ ccc*)
|
11498 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11499 | |
+ # All Alpha code is PIC.
|
11500 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
11501 | |
+ ;;
|
|
775 |
# This hack is so that the source file can tell whether it is being
|
|
776 |
# built for inclusion in a dll (and should export symbols for example).
|
|
777 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
|
778 |
@@ -5888,6 +6041,22 @@
|
|
779 |
# All Alpha code is PIC.
|
|
780 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
781 |
;;
|
11502 | 782 |
+ *)
|
11503 | 783 |
+ case `$CC -V 2>&1 | sed 5q` in
|
11504 | 784 |
+ *Sun\ C*)
|
|
11515 | 795 |
+ ;;
|
11516 | 796 |
+ esac
|
11517 | 797 |
+ ;;
|
11518 | |
+ esac
|
11519 | |
+ ;;
|
11520 | |
|
11521 | |
- # Both c and cxx compiler support -rpath directly
|
11522 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
11523 | |
- fi
|
11524 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
11525 | |
+ osf3* | osf4* | osf5*)
|
11526 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11527 | |
+ # All OSF/1 code is PIC.
|
|
798 |
esac
|
|
799 |
;;
|
|
800 |
|
|
801 |
@@ -5897,6 +6066,10 @@
|
|
802 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
803 |
;;
|
|
804 |
|
|
805 |
+ rdos*)
|
11528 | 806 |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
11529 | 807 |
+ ;;
|
11530 | 808 |
+
|
11531 | |
+ rdos*)
|
11532 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
11533 | |
;;
|
11534 | |
|
11535 | 809 |
solaris*)
|
11536 | |
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
|
11537 | |
- if test "$GCC" = yes; then
|
11538 | |
- wlarc='${wl}'
|
11539 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11540 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
11541 | |
- $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
11542 | |
- else
|
11543 | |
- wlarc=''
|
11544 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
11545 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
11546 | |
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
11547 | |
- fi
|
11548 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
11549 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11550 | |
- case $host_os in
|
11551 | |
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
11552 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
11553 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
11554 | |
+ case $cc_basename in
|
11555 | |
+ f77* | f90* | f95*)
|
11556 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
|
11557 | |
*)
|
11558 | |
- # The compiler driver will combine and reorder linker options,
|
11559 | |
- # but understands `-z linker_flag'. GCC discards it without `$wl',
|
11560 | |
- # but is careful enough not to reorder.
|
11561 | |
- # Supported since Solaris 2.6 (maybe 2.5.1?)
|
11562 | |
- if test "$GCC" = yes; then
|
11563 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
11564 | |
- else
|
11565 | |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
|
11566 | |
- fi
|
11567 | |
- ;;
|
11568 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
|
11569 | |
esac
|
11570 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
11571 | |
;;
|
11572 | |
|
11573 | |
sunos4*)
|
11574 | |
- if test "x$host_vendor" = xsequent; then
|
11575 | |
- # Use $CC to link under sequent, because it throws in some extra .o
|
11576 | |
- # files that make .init and .fini sections work.
|
11577 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
11578 | |
- else
|
11579 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
11580 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
11581 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
11582 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
11583 | |
+ ;;
|
11584 | |
+
|
11585 | |
+ sysv4 | sysv4.2uw2* | sysv4.3*)
|
11586 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11587 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
11588 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
11589 | |
+ ;;
|
11590 | |
+
|
11591 | |
+ sysv4*MP*)
|
11592 | |
+ if test -d /usr/nec ;then
|
11593 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
|
11594 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
11595 | |
fi
|
11596 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
11597 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
11598 | |
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
11599 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11600 | |
;;
|
11601 | |
|
11602 | |
- sysv4)
|
11603 | |
- case $host_vendor in
|
11604 | |
- sni)
|
11605 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
11606 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
|
11607 | |
- ;;
|
11608 | |
- siemens)
|
11609 | |
- ## LD is ld it makes a PLAMLIB
|
11610 | |
- ## CC just makes a GrossModule.
|
11611 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
11612 | |
- _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
|
11613 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
11614 | |
- ;;
|
11615 | |
- motorola)
|
11616 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
11617 | |
- _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
|
11618 | |
- ;;
|
11619 | |
- esac
|
11620 | |
- runpath_var='LD_RUN_PATH'
|
11621 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11622 | |
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
11623 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11624 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
11625 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
11626 | |
+ ;;
|
11627 | |
+
|
11628 | |
+ unicos*)
|
11629 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
11630 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
11631 | |
+ ;;
|
11632 | |
+
|
11633 | |
+ uts4*)
|
11634 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
11635 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
11636 | |
;;
|
11637 | |
|
11638 | |
- sysv4.3*)
|
11639 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
11640 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11641 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
|
11642 | |
- ;;
|
11643 | |
+ *)
|
11644 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
11645 | |
+ ;;
|
11646 | |
+ esac
|
11647 | |
+ fi
|
11648 | |
+])
|
11649 | |
+AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
|
11650 | |
+
|
11651 | |
+#
|
11652 | |
+# Check to make sure the PIC flag actually works.
|
11653 | |
+#
|
11654 | |
+if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
11655 | |
+ AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
|
11656 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
|
11657 | |
+ [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
|
11658 | |
+ [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
|
11659 | |
+ "" | " "*) ;;
|
11660 | |
+ *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
|
11661 | |
+ esac],
|
11662 | |
+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
11663 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
|
11664 | |
+fi
|
11665 | |
+case $host_os in
|
11666 | |
+ # For platforms which do not support PIC, -DPIC is meaningless:
|
11667 | |
+ *djgpp*)
|
11668 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
11669 | |
+ ;;
|
11670 | |
+ *)
|
11671 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
|
11672 | |
+ ;;
|
11673 | |
+esac
|
11674 | |
+
|
11675 | |
+#
|
11676 | |
+# Check to make sure the static flag actually works.
|
11677 | |
+#
|
11678 | |
+wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
|
11679 | |
+AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
|
11680 | |
+ _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
|
11681 | |
+ $lt_tmp_static_flag,
|
11682 | |
+ [],
|
11683 | |
+ [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
|
11684 | |
+])
|
11685 | |
+
|
11686 | |
+
|
11687 | |
+# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
|
11688 | |
+# ------------------------------------
|
11689 | |
+# See if the linker supports building shared libraries.
|
11690 | |
+AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
|
|
810 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
811 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
812 |
@@ -5991,7 +6164,8 @@
|
|
813 |
# ------------------------------------
|
|
814 |
# See if the linker supports building shared libraries.
|
|
815 |
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
|
|
816 |
-[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
11691 | 817 |
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
11692 | 818 |
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
11693 | |
+ifelse([$1],[CXX],[
|
11694 | |
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
11695 | |
+ case $host_os in
|
11696 | |
+ aix4* | aix5*)
|
11697 | |
+ # If we're using GNU nm, then we don't want the "-C" option.
|
11698 | |
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
11699 | |
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
11700 | |
+ _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'
|
11701 | |
+ else
|
11702 | |
+ _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'
|
11703 | |
+ fi
|
11704 | |
+ ;;
|
11705 | |
+ pw32*)
|
11706 | |
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
|
11707 | |
+ ;;
|
11708 | |
+ cygwin* | mingw*)
|
|
819 |
ifelse([$1],[CXX],[
|
|
820 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
821 |
case $host_os in
|
|
822 |
@@ -6008,7 +6182,7 @@
|
|
823 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
|
|
824 |
;;
|
|
825 |
cygwin* | mingw*)
|
|
826 |
- _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'
|
11709 | 827 |
+ _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'
|
11710 | |
+ ;;
|
11711 | |
+ linux* | k*bsd*-gnu)
|
11712 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=no
|
11713 | |
+ ;;
|
11714 | |
+ *)
|
11715 | |
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
11716 | |
+ ;;
|
11717 | |
+ esac
|
11718 | |
+],[
|
11719 | |
+ runpath_var=
|
11720 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
11721 | |
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
11722 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)=
|
11723 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
11724 | |
+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
|
11725 | |
+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
|
11726 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
11727 | |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
11728 | |
+ _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
|
11729 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
11730 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
11731 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
11732 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
11733 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
11734 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
11735 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
11736 | |
+ _LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
11737 | |
+ _LT_AC_TAGVAR(module_cmds, $1)=
|
11738 | |
+ _LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
11739 | |
+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
11740 | |
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
11741 | |
+ # include_expsyms should be a list of space-separated symbols to be *always*
|
11742 | |
+ # included in the symbol list
|
11743 | |
+ _LT_AC_TAGVAR(include_expsyms, $1)=
|
11744 | |
+ # exclude_expsyms can be an extended regexp of symbols to exclude
|
11745 | |
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
11746 | |
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
11747 | |
+ # as well as any symbol that contains `d'.
|
11748 | |
+ _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
|
11749 | |
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
11750 | |
+ # platforms (ab)use it in PIC code, but their linkers get confused if
|
11751 | |
+ # the symbol is explicitly referenced. Since portable code cannot
|
11752 | |
+ # rely on this symbol name, it's probably fine to never include it in
|
11753 | |
+ # preloaded symbol tables.
|
11754 | |
+ extract_expsyms_cmds=
|
11755 | |
+ # Just being paranoid about ensuring that cc_basename is set.
|
11756 | |
+ _LT_CC_BASENAME([$compiler])
|
11757 | |
+ case $host_os in
|
11758 | |
+ cygwin* | mingw* | pw32*)
|
11759 | |
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
11760 | |
+ # When not using gcc, we currently assume that we are using
|
11761 | |
+ # Microsoft Visual C++.
|
11762 | |
+ if test "$GCC" != yes; then
|
11763 | |
+ with_gnu_ld=no
|
11764 | |
+ fi
|
11765 | |
+ ;;
|
11766 | |
+ interix*)
|
11767 | |
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
|
11768 | |
+ with_gnu_ld=yes
|
11769 | |
+ ;;
|
11770 | |
+ openbsd*)
|
11771 | |
+ with_gnu_ld=no
|
11772 | |
+ ;;
|
11773 | |
+ esac
|
11774 | |
+
|
11775 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
11776 | |
+ if test "$with_gnu_ld" = yes; then
|
11777 | |
+ # If archive_cmds runs LD, not CC, wlarc should be empty
|
11778 | |
+ wlarc='${wl}'
|
11779 | |
+
|
11780 | |
+ # Set some defaults for GNU ld with shared library support. These
|
11781 | |
+ # are reset later if shared libraries are not supported. Putting them
|
11782 | |
+ # here allows them to be overridden if necessary.
|
11783 | |
+ runpath_var=LD_RUN_PATH
|
11784 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
11785 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
11786 | |
+ # ancient GNU ld didn't support --whole-archive et. al.
|
11787 | |
+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
11788 | |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
11789 | |
+ else
|
11790 | |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
11791 | |
+ fi
|
11792 | |
+ supports_anon_versioning=no
|
11793 | |
+ case `$LD -v 2>/dev/null` in
|
11794 | |
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
|
11795 | |
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
11796 | |
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
11797 | |
+ *\ 2.11.*) ;; # other 2.11 versions
|
11798 | |
+ *) supports_anon_versioning=yes ;;
|
11799 | |
+ esac
|
11800 | |
+
|
11801 | |
+ # See if GNU ld supports shared libraries.
|
11802 | |
+ case $host_os in
|
11803 | |
+ aix3* | aix4* | aix5*)
|
11804 | |
+ # On AIX/PPC, the GNU linker is very broken
|
11805 | |
+ if test "$host_cpu" != ia64; then
|
11806 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
11807 | |
+ cat <<EOF 1>&2
|
11808 | |
+
|
11809 | |
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
11810 | |
+*** to be unable to reliably create shared libraries on AIX.
|
11811 | |
+*** Therefore, libtool is disabling shared libraries support. If you
|
11812 | |
+*** really care for shared libraries, you may want to modify your PATH
|
11813 | |
+*** so that a non-GNU linker is found, and then restart.
|
11814 | |
|
11815 | |
- sysv4*MP*)
|
11816 | |
- if test -d /usr/nec; then
|
11817 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
11818 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11819 | |
- runpath_var=LD_RUN_PATH
|
11820 | |
- hardcode_runpath_var=yes
|
11821 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
11822 | |
+EOF
|
|
828 |
;;
|
|
829 |
linux* | k*bsd*-gnu)
|
|
830 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
|
|
831 |
@@ -6150,7 +6324,7 @@
|
|
832 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
833 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no
|
|
834 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
835 |
- _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'
|
|
836 |
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
|
|
837 |
|
|
838 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
|
839 |
_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'
|
|
840 |
@@ -6168,7 +6342,7 @@
|
11823 | 841 |
fi
|
11824 | 842 |
;;
|
11825 | 843 |
|
11826 | |
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
11827 | |
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
11828 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
11829 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11830 | |
- runpath_var='LD_RUN_PATH'
|
11831 | |
+ amigaos*)
|
11832 | |
+ _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)'
|
11833 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
11834 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
11835 | |
|
11836 | |
- if test "$GCC" = yes; then
|
11837 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11838 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11839 | |
- else
|
11840 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11841 | |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11842 | |
- fi
|
11843 | |
+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
11844 | |
+ # that the semantics of dynamic libraries on AmigaOS, at least up
|
11845 | |
+ # to version 4, is to share data among multiple programs linked
|
11846 | |
+ # with the same dynamic library. Since this doesn't match the
|
11847 | |
+ # behavior of shared libraries on other platforms, we can't use
|
11848 | |
+ # them.
|
11849 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
11850 | |
;;
|
11851 | |
|
11852 | |
- sysv5* | sco3.2v5* | sco5v6*)
|
11853 | |
- # Note: We can NOT use -z defs as we might desire, because we do not
|
11854 | |
- # link with -lc, and that would cause any symbols used from libc to
|
11855 | |
- # always be unresolved, which means just about no library would
|
11856 | |
- # ever link correctly. If we're not using GNU ld we use -z text
|
11857 | |
- # though, which does catch some bad symbols but isn't as heavy-handed
|
11858 | |
- # as -z defs.
|
11859 | |
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
11860 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
|
11861 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
11862 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11863 | |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
11864 | |
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
11865 | |
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
11866 | |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
11867 | |
- runpath_var='LD_RUN_PATH'
|
11868 | |
-
|
11869 | |
- if test "$GCC" = yes; then
|
11870 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11871 | |
- _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'
|
11872 | |
+ beos*)
|
11873 | |
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
11874 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
11875 | |
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
11876 | |
+ # support --undefined. This deserves some investigation. FIXME
|
11877 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
11878 | |
else
|
11879 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11880 | |
- _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'
|
11881 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
11882 | |
fi
|
11883 | |
;;
|
11884 | |
|
11885 | |
- uts4*)
|
11886 | |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
11887 | |
+ cygwin* | mingw* | pw32*)
|
11888 | |
+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
11889 | |
+ # as there is no search path for DLLs.
|
11890 | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
11891 | |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
11892 | |
- ;;
|
11893 | |
-
|
11894 | |
- *)
|
11895 | |
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
11896 | |
- ;;
|
11897 | |
- esac
|
11898 | |
- fi
|
11899 | |
-])
|
11900 | |
-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
|
11901 | |
-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
11902 | |
-
|
11903 | |
-#
|
11904 | |
-# Do we need to explicitly link libc?
|
11905 | |
-#
|
11906 | |
-case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
|
11907 | |
-x|xyes)
|
11908 | |
- # Assume -lc should be added
|
11909 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
11910 | |
-
|
11911 | |
- if test "$enable_shared" = yes && test "$GCC" = yes; then
|
11912 | |
- case $_LT_AC_TAGVAR(archive_cmds, $1) in
|
11913 | |
- *'~'*)
|
11914 | |
- # FIXME: we may have to deal with multi-command sequences.
|
11915 | |
- ;;
|
11916 | |
- '$CC '*)
|
11917 | |
- # Test whether the compiler implicitly links with -lc since on some
|
11918 | |
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
11919 | |
- # to ld, don't add -lc before -lgcc.
|
11920 | |
- AC_MSG_CHECKING([whether -lc should be explicitly linked in])
|
11921 | |
- $rm conftest*
|
11922 | |
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
11923 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
11924 | |
+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
11925 | |
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
11926 | |
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
|
11927 | |
|
11928 | |
- if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
|
11929 | |
- soname=conftest
|
11930 | |
- lib=conftest
|
11931 | |
- libobjs=conftest.$ac_objext
|
11932 | |
- deplibs=
|
11933 | |
- wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
|
11934 | |
- pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
|
11935 | |
- compiler_flags=-v
|
11936 | |
- linker_flags=-v
|
11937 | |
- verstring=
|
11938 | |
- output_objdir=.
|
11939 | |
- libname=conftest
|
11940 | |
- lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
|
11941 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
11942 | |
- if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
|
11943 | |
- then
|
11944 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
11945 | |
- else
|
11946 | |
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
11947 | |
- fi
|
11948 | |
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
|
11949 | |
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
11950 | |
+ _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'
|
11951 | |
+ # If the export-symbols file already is a .def file (1st line
|
11952 | |
+ # is EXPORTS), use it as is; otherwise, prepend...
|
11953 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
11954 | |
+ cp $export_symbols $output_objdir/$soname.def;
|
11955 | |
+ else
|
11956 | |
+ echo EXPORTS > $output_objdir/$soname.def;
|
11957 | |
+ cat $export_symbols >> $output_objdir/$soname.def;
|
11958 | |
+ fi~
|
11959 | |
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
11960 | |
else
|
11961 | |
- cat conftest.err 1>&5
|
11962 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
11963 | |
fi
|
11964 | |
- $rm conftest*
|
11965 | |
- AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
|
11966 | |
;;
|
11967 | |
- esac
|
11968 | |
- fi
|
11969 | |
- ;;
|
11970 | |
-esac
|
11971 | |
-])# AC_LIBTOOL_PROG_LD_SHLIBS
|
11972 | |
-
|
11973 | |
-
|
11974 | |
-# _LT_AC_FILE_LTDLL_C
|
11975 | |
-# -------------------
|
11976 | |
-# Be careful that the start marker always follows a newline.
|
11977 | |
-AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
|
11978 | |
-# /* ltdll.c starts here */
|
11979 | |
-# #define WIN32_LEAN_AND_MEAN
|
11980 | |
-# #include <windows.h>
|
11981 | |
-# #undef WIN32_LEAN_AND_MEAN
|
11982 | |
-# #include <stdio.h>
|
11983 | |
-#
|
11984 | |
-# #ifndef __CYGWIN__
|
11985 | |
-# # ifdef __CYGWIN32__
|
11986 | |
-# # define __CYGWIN__ __CYGWIN32__
|
11987 | |
-# # endif
|
11988 | |
-# #endif
|
11989 | |
-#
|
11990 | |
-# #ifdef __cplusplus
|
11991 | |
-# extern "C" {
|
11992 | |
-# #endif
|
11993 | |
-# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
|
11994 | |
-# #ifdef __cplusplus
|
11995 | |
-# }
|
11996 | |
-# #endif
|
11997 | |
-#
|
11998 | |
-# #ifdef __CYGWIN__
|
11999 | |
-# #include <cygwin/cygwin_dll.h>
|
12000 | |
-# DECLARE_CYGWIN_DLL( DllMain );
|
12001 | |
-# #endif
|
12002 | |
-# HINSTANCE __hDllInstance_base;
|
12003 | |
-#
|
12004 | |
-# BOOL APIENTRY
|
12005 | |
-# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
|
12006 | |
-# {
|
12007 | |
-# __hDllInstance_base = hInst;
|
12008 | |
-# return TRUE;
|
12009 | |
-# }
|
12010 | |
-# /* ltdll.c ends here */
|
12011 | |
-])# _LT_AC_FILE_LTDLL_C
|
12012 | |
-
|
12013 | |
-
|
12014 | |
-# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
|
12015 | |
-# ---------------------------------
|
12016 | |
-AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
|
12017 | |
-
|
12018 | |
-
|
12019 | |
-# old names
|
12020 | |
-AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
|
12021 | |
-AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
12022 | |
-AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
12023 | |
-AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
12024 | |
-AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
12025 | |
-AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
|
12026 | |
-AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
|
12027 | |
-
|
12028 | |
-# This is just to silence aclocal about the macro not being used
|
12029 | |
-ifelse([AC_DISABLE_FAST_INSTALL])
|
12030 | |
|
12031 | |
-AC_DEFUN([LT_AC_PROG_GCJ],
|
12032 | |
-[AC_CHECK_TOOL(GCJ, gcj, no)
|
12033 | |
- test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
|
12034 | |
- AC_SUBST(GCJFLAGS)
|
12035 | |
-])
|
|
844 |
- interix3*)
|
12036 | 845 |
+ interix[[3-9]]*)
|
12037 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
12038 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
12039 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
12040 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
12041 | |
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
12042 | |
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
|
12043 | |
+ # default) and relocated if they conflict, which is a slow very memory
|
12044 | |
+ # consuming and fragmenting process. To avoid this, we pick a random,
|
12045 | |
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
12046 | |
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
12047 | |
+ _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'
|
12048 | |
+ _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'
|
12049 | |
+ ;;
|
12050 | |
|
12051 | |
-AC_DEFUN([LT_AC_PROG_RC],
|
12052 | |
-[AC_CHECK_TOOL(RC, windres, no)
|
12053 | |
-])
|
|
846 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|
847 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
848 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
849 |
@@ -6183,7 +6357,7 @@
|
|
850 |
_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'
|
|
851 |
;;
|
|
852 |
|
|
853 |
- linux* | k*bsd*-gnu)
|
12054 | 854 |
+ gnu* | linux* | k*bsd*-gnu)
|
12055 | |
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
12056 | |
+ tmp_addflag=
|
12057 | |
+ case $cc_basename,$host_cpu in
|
12058 | |
+ pgcc*) # Portland Group C compiler
|
12059 | |
+ _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'
|
12060 | |
+ tmp_addflag=' $pic_flag'
|
12061 | |
+ ;;
|
12062 | |
+ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
12063 | |
+ _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'
|
12064 | |
+ tmp_addflag=' $pic_flag -Mnomain' ;;
|
12065 | |
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
12066 | |
+ tmp_addflag=' -i_dynamic' ;;
|
12067 | |
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
12068 | |
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
|
12069 | |
+ ifc* | ifort*) # Intel Fortran compiler
|
12070 | |
+ tmp_addflag=' -nofor_main' ;;
|
12071 | |
+ esac
|
|
855 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
856 |
tmp_addflag=
|
|
857 |
case $cc_basename,$host_cpu in
|
|
858 |
@@ -6201,13 +6375,22 @@
|
|
859 |
ifc* | ifort*) # Intel Fortran compiler
|
|
860 |
tmp_addflag=' -nofor_main' ;;
|
|
861 |
esac
|
|
862 |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
12072 | 863 |
+ case `$CC -V 2>&1 | sed 5q` in
|
12073 | 864 |
+ *Sun\ C*) # Sun C 5.9
|
12074 | 865 |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
12080 | 871 |
+ esac
|
12081 | 872 |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
12082 | 873 |
|
12083 | |
+ if test $supports_anon_versioning = yes; then
|
12084 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
|
12085 | |
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
12086 | |
+ $echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
874 |
if test $supports_anon_versioning = yes; then
|
|
875 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
|
|
876 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
877 |
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
878 |
- $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
12087 | 879 |
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
12088 | |
+ fi
|
12089 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=no
|
12090 | |
+ else
|
12091 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
12092 | |
+ fi
|
12093 | |
+ ;;
|
12094 | |
|
12095 | |
-# Cheap backport of AS_EXECUTABLE_P and required macros
|
12096 | |
-# from Autoconf 2.59; we should not use $as_executable_p directly.
|
12097 | |
+ netbsd* | netbsdelf*-gnu)
|
12098 | |
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
12099 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
12100 | |
+ wlarc=
|
12101 | |
+ else
|
12102 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
12103 | |
+ _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'
|
12104 | |
+ fi
|
12105 | |
+ ;;
|
12106 | |
|
12107 | |
-# _AS_TEST_PREPARE
|
12108 | |
-# ----------------
|
12109 | |
-m4_ifndef([_AS_TEST_PREPARE],
|
12110 | |
-[m4_defun([_AS_TEST_PREPARE],
|
12111 | |
-[if test -x / >/dev/null 2>&1; then
|
12112 | |
- as_executable_p='test -x'
|
12113 | |
-else
|
12114 | |
- as_executable_p='test -f'
|
12115 | |
-fi
|
12116 | |
-])])# _AS_TEST_PREPARE
|
12117 | |
+ solaris*)
|
12118 | |
+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
12119 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
12120 | |
+ cat <<EOF 1>&2
|
12121 | |
|
12122 | |
-# AS_EXECUTABLE_P
|
12123 | |
-# ---------------
|
12124 | |
-# Check whether a file is executable.
|
12125 | |
-m4_ifndef([AS_EXECUTABLE_P],
|
12126 | |
-[m4_defun([AS_EXECUTABLE_P],
|
12127 | |
-[AS_REQUIRE([_AS_TEST_PREPARE])dnl
|
12128 | |
-$as_executable_p $1[]dnl
|
12129 | |
-])])# AS_EXECUTABLE_P
|
12130 | |
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
12131 | |
+*** create shared libraries on Solaris systems. Therefore, libtool
|
12132 | |
+*** is disabling shared libraries support. We urge you to upgrade GNU
|
12133 | |
+*** binutils to release 2.9.1 or newer. Another option is to modify
|
12134 | |
+*** your PATH or compiler configuration so that the native linker is
|
12135 | |
+*** used, and then restart.
|
12136 | |
|
12137 | |
-# NOTE: This macro has been submitted for inclusion into #
|
12138 | |
-# GNU Autoconf as AC_PROG_SED. When it is available in #
|
12139 | |
-# a released version of Autoconf we should remove this #
|
12140 | |
-# macro and use it instead. #
|
12141 | |
-# LT_AC_PROG_SED
|
12142 | |
-# --------------
|
12143 | |
-# Check for a fully-functional sed program, that truncates
|
12144 | |
-# as few characters as possible. Prefer GNU sed if found.
|
12145 | |
-AC_DEFUN([LT_AC_PROG_SED],
|
12146 | |
-[AC_MSG_CHECKING([for a sed that does not truncate output])
|
12147 | |
-AC_CACHE_VAL(lt_cv_path_SED,
|
12148 | |
-[# Loop through the user's path and test for sed and gsed.
|
12149 | |
-# Then use that list of sed's as ones to test for truncation.
|
12150 | |
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
12151 | |
-for as_dir in $PATH
|
12152 | |
-do
|
12153 | |
- IFS=$as_save_IFS
|
12154 | |
- test -z "$as_dir" && as_dir=.
|
12155 | |
- for lt_ac_prog in sed gsed; do
|
12156 | |
- for ac_exec_ext in '' $ac_executable_extensions; do
|
12157 | |
- if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
|
12158 | |
- lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
12159 | |
+EOF
|
12160 | |
+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
12161 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
12162 | |
+ _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'
|
12163 | |
+ else
|
12164 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
12165 | |
fi
|
12166 | |
- done
|
12167 | |
- done
|
12168 | |
-done
|
12169 | |
-IFS=$as_save_IFS
|
12170 | |
-lt_ac_max=0
|
12171 | |
-lt_ac_count=0
|
12172 | |
-# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
12173 | |
-# along with /bin/sed that truncates output.
|
12174 | |
-for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
12175 | |
- test ! -f $lt_ac_sed && continue
|
12176 | |
- cat /dev/null > conftest.in
|
12177 | |
- lt_ac_count=0
|
12178 | |
- echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
12179 | |
- # Check for GNU sed and select it if it is found.
|
12180 | |
- if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
12181 | |
- lt_cv_path_SED=$lt_ac_sed
|
12182 | |
- break
|
12183 | |
- fi
|
12184 | |
- while true; do
|
12185 | |
- cat conftest.in conftest.in >conftest.tmp
|
12186 | |
- mv conftest.tmp conftest.in
|
12187 | |
- cp conftest.in conftest.nl
|
12188 | |
- echo >>conftest.nl
|
12189 | |
- $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
12190 | |
- cmp -s conftest.out conftest.nl || break
|
12191 | |
- # 10000 chars as input seems more than enough
|
12192 | |
- test $lt_ac_count -gt 10 && break
|
12193 | |
- lt_ac_count=`expr $lt_ac_count + 1`
|
12194 | |
- if test $lt_ac_count -gt $lt_ac_max; then
|
12195 | |
- lt_ac_max=$lt_ac_count
|
12196 | |
- lt_cv_path_SED=$lt_ac_sed
|
12197 | |
- fi
|
12198 | |
- done
|
12199 | |
-done
|
12200 | |
-])
|
12201 | |
-SED=$lt_cv_path_SED
|
12202 | |
-AC_SUBST([SED])
|
12203 | |
-AC_MSG_RESULT([$SED])
|
12204 | |
-])
|
12205 | |
+ ;;
|
12206 | |
|
12207 | |
-# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
12208 | |
-#
|
12209 | |
-# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
12210 | |
-#
|
12211 | |
-# This program is free software; you can redistribute it and/or modify
|
12212 | |
-# it under the terms of the GNU General Public License as published by
|
12213 | |
-# the Free Software Foundation; either version 2 of the License, or
|
12214 | |
-# (at your option) any later version.
|
12215 | |
-#
|
12216 | |
-# This program is distributed in the hope that it will be useful, but
|
12217 | |
-# WITHOUT ANY WARRANTY; without even the implied warranty of
|
12218 | |
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12219 | |
-# General Public License for more details.
|
12220 | |
-#
|
12221 | |
-# You should have received a copy of the GNU General Public License
|
12222 | |
-# along with this program; if not, write to the Free Software
|
12223 | |
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
12224 | |
-#
|
12225 | |
-# As a special exception to the GNU General Public License, if you
|
12226 | |
-# distribute this file as part of a program that contains a
|
12227 | |
-# configuration script generated by Autoconf, you may include it under
|
12228 | |
-# the same distribution terms that you use for the rest of that program.
|
12229 | |
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
12230 | |
+ case `$LD -v 2>&1` in
|
|
880 |
fi
|
|
881 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
|
|
882 |
else
|
|
883 |
@@ -6248,7 +6431,7 @@
|
|
884 |
|
|
885 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
|
886 |
case `$LD -v 2>&1` in
|
|
887 |
- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
|
12231 | 888 |
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
|
12232 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
12233 | |
+ cat <<_LT_EOF 1>&2
|
12234 | |
|
12235 | |
-# PKG_PROG_PKG_CONFIG([MIN-VERSION])
|
12236 | |
-# ----------------------------------
|
12237 | |
-AC_DEFUN([PKG_PROG_PKG_CONFIG],
|
12238 | |
-[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
12239 | |
-m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
|
12240 | |
-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
|
12241 | |
-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
12242 | |
- AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
12243 | |
-fi
|
12244 | |
-if test -n "$PKG_CONFIG"; then
|
12245 | |
- _pkg_min_version=m4_default([$1], [0.9.0])
|
12246 | |
- AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
|
12247 | |
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
12248 | |
- AC_MSG_RESULT([yes])
|
12249 | |
- else
|
12250 | |
- AC_MSG_RESULT([no])
|
12251 | |
- PKG_CONFIG=""
|
12252 | |
- fi
|
12253 | |
-
|
12254 | |
-fi[]dnl
|
12255 | |
-])# PKG_PROG_PKG_CONFIG
|
12256 | |
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
12257 | |
+*** reliably create shared libraries on SCO systems. Therefore, libtool
|
12258 | |
+*** is disabling shared libraries support. We urge you to upgrade GNU
|
12259 | |
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
12260 | |
+*** your PATH or compiler configuration so that the native linker is
|
12261 | |
+*** used, and then restart.
|
12262 | |
|
12263 | |
-# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
12264 | |
-#
|
12265 | |
-# Check to see whether a particular set of modules exists. Similar
|
12266 | |
-# to PKG_CHECK_MODULES(), but does not set variables or print errors.
|
12267 | |
-#
|
12268 | |
-#
|
12269 | |
-# Similar to PKG_CHECK_MODULES, make sure that the first instance of
|
12270 | |
-# this or PKG_CHECK_MODULES is called, or make sure to call
|
12271 | |
-# PKG_CHECK_EXISTS manually
|
12272 | |
-# --------------------------------------------------------------
|
12273 | |
-AC_DEFUN([PKG_CHECK_EXISTS],
|
12274 | |
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
12275 | |
-if test -n "$PKG_CONFIG" && \
|
12276 | |
- AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
|
12277 | |
- m4_ifval([$2], [$2], [:])
|
12278 | |
-m4_ifvaln([$3], [else
|
12279 | |
- $3])dnl
|
12280 | |
-fi])
|
12281 | |
+_LT_EOF
|
12282 | |
+ ;;
|
12283 | |
+ *)
|
12284 | |
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
12285 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
12286 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
12287 | |
+ _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'
|
12288 | |
+ else
|
12289 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
12290 | |
+ fi
|
12291 | |
+ ;;
|
12292 | |
+ esac
|
12293 | |
+ ;;
|
12294 | |
|
12295 | |
+ sunos4*)
|
12296 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
12297 | |
+ wlarc=
|
12298 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
12299 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
12300 | |
+ ;;
|
12301 | |
|
12302 | |
-# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
|
12303 | |
-# ---------------------------------------------
|
12304 | |
-m4_define([_PKG_CONFIG],
|
12305 | |
-[if test -n "$PKG_CONFIG"; then
|
12306 | |
- if test -n "$$1"; then
|
12307 | |
- pkg_cv_[]$1="$$1"
|
12308 | |
- else
|
12309 | |
- PKG_CHECK_EXISTS([$3],
|
12310 | |
- [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
|
12311 | |
- [pkg_failed=yes])
|
12312 | |
+ *)
|
12313 | |
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
12314 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
12315 | |
+ _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'
|
12316 | |
+ else
|
12317 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
12318 | |
+ fi
|
12319 | |
+ ;;
|
12320 | |
+ esac
|
12321 | |
+
|
12322 | |
+ if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
|
12323 | |
+ runpath_var=
|
12324 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
12325 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
12326 | |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
12327 | |
fi
|
12328 | |
-else
|
12329 | |
- pkg_failed=untried
|
12330 | |
-fi[]dnl
|
12331 | |
-])# _PKG_CONFIG
|
12332 | |
+ else
|
12333 | |
+ # PORTME fill in a description of your system's linker (not GNU ld)
|
12334 | |
+ case $host_os in
|
12335 | |
+ aix3*)
|
12336 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
12337 | |
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
12338 | |
+ _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'
|
12339 | |
+ # Note: this linker hardcodes the directories in LIBPATH if there
|
12340 | |
+ # are no directories specified by -L.
|
12341 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
12342 | |
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
12343 | |
+ # Neither direct hardcoding nor static linking is supported with a
|
12344 | |
+ # broken collect2.
|
12345 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
12346 | |
+ fi
|
12347 | |
+ ;;
|
12348 | |
|
12349 | |
-# _PKG_SHORT_ERRORS_SUPPORTED
|
12350 | |
-# -----------------------------
|
12351 | |
-AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
|
12352 | |
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
12353 | |
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
12354 | |
- _pkg_short_errors_supported=yes
|
12355 | |
-else
|
12356 | |
- _pkg_short_errors_supported=no
|
12357 | |
-fi[]dnl
|
12358 | |
-])# _PKG_SHORT_ERRORS_SUPPORTED
|
12359 | |
+ aix4* | aix5*)
|
12360 | |
+ if test "$host_cpu" = ia64; then
|
12361 | |
+ # On IA64, the linker does run time linking by default, so we don't
|
12362 | |
+ # have to do anything special.
|
12363 | |
+ aix_use_runtimelinking=no
|
12364 | |
+ exp_sym_flag='-Bexport'
|
12365 | |
+ no_entry_flag=""
|
12366 | |
+ else
|
12367 | |
+ # If we're using GNU nm, then we don't want the "-C" option.
|
12368 | |
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
12369 | |
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
12370 | |
+ _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'
|
12371 | |
+ else
|
12372 | |
+ _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'
|
12373 | |
+ fi
|
12374 | |
+ aix_use_runtimelinking=no
|
12375 | |
|
12376 | |
+ # Test if we are trying to use run time linking or normal
|
12377 | |
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
12378 | |
+ # need to do runtime linking.
|
12379 | |
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
|
12380 | |
+ for ld_flag in $LDFLAGS; do
|
12381 | |
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
12382 | |
+ aix_use_runtimelinking=yes
|
12383 | |
+ break
|
12384 | |
+ fi
|
12385 | |
+ done
|
12386 | |
+ ;;
|
12387 | |
+ esac
|
12388 | |
|
12389 | |
-# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
12390 | |
-# [ACTION-IF-NOT-FOUND])
|
12391 | |
-#
|
12392 | |
-#
|
12393 | |
-# Note that if there is a possibility the first call to
|
12394 | |
-# PKG_CHECK_MODULES might not happen, you should be sure to include an
|
12395 | |
-# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
|
12396 | |
-#
|
12397 | |
-#
|
12398 | |
-# --------------------------------------------------------------
|
12399 | |
-AC_DEFUN([PKG_CHECK_MODULES],
|
12400 | |
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
12401 | |
-AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
|
12402 | |
-AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
|
12403 | |
+ exp_sym_flag='-bexport'
|
12404 | |
+ no_entry_flag='-bnoentry'
|
12405 | |
+ fi
|
12406 | |
|
12407 | |
-pkg_failed=no
|
12408 | |
-AC_MSG_CHECKING([for $1])
|
12409 | |
+ # When large executables or shared objects are built, AIX ld can
|
12410 | |
+ # have problems creating the table of contents. If linking a library
|
12411 | |
+ # or program results in "error TOC overflow" add -mminimal-toc to
|
12412 | |
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
12413 | |
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
12414 | |
|
12415 | |
-_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
12416 | |
-_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
12417 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)=''
|
12418 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
12419 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
12420 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
12421 | |
|
12422 | |
-m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
|
12423 | |
-and $1[]_LIBS to avoid the need to call pkg-config.
|
12424 | |
-See the pkg-config man page for more details.])
|
12425 | |
+ if test "$GCC" = yes; then
|
12426 | |
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
12427 | |
+ # We only want to do this on AIX 4.2 and lower, the check
|
12428 | |
+ # below for broken collect2 doesn't work under 4.3+
|
12429 | |
+ collect2name=`${CC} -print-prog-name=collect2`
|
12430 | |
+ if test -f "$collect2name" && \
|
12431 | |
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
|
12432 | |
+ then
|
12433 | |
+ # We have reworked collect2
|
|
889 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
890 |
cat <<_LT_EOF 1>&2
|
|
891 |
|
|
892 |
@@ -6367,7 +6550,7 @@
|
|
893 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|
894 |
then
|
|
895 |
# We have reworked collect2
|
|
896 |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
12434 | 897 |
+ :
|
12435 | |
+ else
|
12436 | |
+ # We have old collect2
|
12437 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
12438 | |
+ # It fails to find uninstalled libraries when the uninstalled
|
12439 | |
+ # path is not listed in the libpath. Setting hardcode_minus_L
|
12440 | |
+ # to unsupported forces relinking
|
12441 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
12442 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
12443 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
12444 | |
+ fi
|
12445 | |
+ ;;
|
12446 | |
+ esac
|
12447 | |
+ shared_flag='-shared'
|
12448 | |
+ if test "$aix_use_runtimelinking" = yes; then
|
12449 | |
+ shared_flag="$shared_flag "'${wl}-G'
|
12450 | |
+ fi
|
12451 | |
+ else
|
12452 | |
+ # not using gcc
|
12453 | |
+ if test "$host_cpu" = ia64; then
|
12454 | |
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
12455 | |
+ # chokes on -Wl,-G. The following line is correct:
|
12456 | |
+ shared_flag='-G'
|
12457 | |
+ else
|
12458 | |
+ if test "$aix_use_runtimelinking" = yes; then
|
12459 | |
+ shared_flag='${wl}-G'
|
12460 | |
+ else
|
12461 | |
+ shared_flag='${wl}-bM:SRE'
|
12462 | |
+ fi
|
12463 | |
+ fi
|
12464 | |
+ fi
|
12465 | |
|
12466 | |
-if test $pkg_failed = yes; then
|
12467 | |
- _PKG_SHORT_ERRORS_SUPPORTED
|
12468 | |
- if test $_pkg_short_errors_supported = yes; then
|
12469 | |
- $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
|
12470 | |
- else
|
12471 | |
- $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
12472 | |
- fi
|
12473 | |
- # Put the nasty error message in config.log where it belongs
|
12474 | |
- echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
12475 | |
+ # It seems that -bexpall does not export symbols beginning with
|
12476 | |
+ # underscore (_), so it is better to generate a list of symbols to export.
|
12477 | |
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
12478 | |
+ if test "$aix_use_runtimelinking" = yes; then
|
12479 | |
+ # Warning - without using the other runtime loading flags (-brtl),
|
12480 | |
+ # -berok will link without error, but may produce a broken library.
|
12481 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
|
12482 | |
+ # Determine the default libpath from the value encoded in an empty executable.
|
12483 | |
+ _LT_AC_SYS_LIBPATH_AIX
|
12484 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
12485 | |
+ _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"
|
12486 | |
+ else
|
12487 | |
+ if test "$host_cpu" = ia64; then
|
12488 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
12489 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
12490 | |
+ _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"
|
12491 | |
+ else
|
12492 | |
+ # Determine the default libpath from the value encoded in an empty executable.
|
12493 | |
+ _LT_AC_SYS_LIBPATH_AIX
|
12494 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
12495 | |
+ # Warning - without using the other run time loading flags,
|
12496 | |
+ # -berok will link without error, but may produce a broken library.
|
12497 | |
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
12498 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
12499 | |
+ # Exported symbols can be pulled into shared objects from archives
|
12500 | |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
12501 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
12502 | |
+ # This is similar to how AIX traditionally builds its shared libraries.
|
12503 | |
+ _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'
|
12504 | |
+ fi
|
12505 | |
+ fi
|
12506 | |
+ ;;
|
12507 | |
|
12508 | |
- ifelse([$4], , [AC_MSG_ERROR(dnl
|
12509 | |
-[Package requirements ($2) were not met:
|
12510 | |
+ amigaos*)
|
12511 | |
+ _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)'
|
12512 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
12513 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
12514 | |
+ # see comment about different semantics on the GNU ld section
|
12515 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
12516 | |
+ ;;
|
12517 | |
|
12518 | |
-$$1_PKG_ERRORS
|
12519 | |
+ bsdi[[45]]*)
|
12520 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
|
12521 | |
+ ;;
|
12522 | |
|
12523 | |
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
12524 | |
-installed software in a non-standard prefix.
|
12525 | |
+ cygwin* | mingw* | pw32*)
|
12526 | |
+ # When not using gcc, we currently assume that we are using
|
12527 | |
+ # Microsoft Visual C++.
|
12528 | |
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
|
12529 | |
+ # no search path for DLLs.
|
12530 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
12531 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
12532 | |
+ # Tell ltmain to make .lib files, not .a files.
|
12533 | |
+ libext=lib
|
12534 | |
+ # Tell ltmain to make .dll files, not .so files.
|
12535 | |
+ shrext_cmds=".dll"
|
12536 | |
+ # FIXME: Setting linknames here is a bad hack.
|
12537 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
12538 | |
+ # The linker will automatically build a .lib file if we build a DLL.
|
12539 | |
+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
|
12540 | |
+ # FIXME: Should let the user specify the lib program.
|
|
898 |
else
|
|
899 |
# We have old collect2
|
|
900 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
|
901 |
@@ -6460,7 +6643,7 @@
|
|
902 |
# The linker will automatically build a .lib file if we build a DLL.
|
|
903 |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
|
|
904 |
# FIXME: Should let the user specify the lib program.
|
|
905 |
- _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
12541 | 906 |
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
12542 | |
+ _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
|
12543 | |
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
12544 | |
+ ;;
|
12545 | |
|
12546 | |
-_PKG_TEXT
|
12547 | |
-])],
|
12548 | |
- [AC_MSG_RESULT([no])
|
12549 | |
- $4])
|
12550 | |
-elif test $pkg_failed = untried; then
|
12551 | |
- ifelse([$4], , [AC_MSG_FAILURE(dnl
|
12552 | |
-[The pkg-config script could not be found or is too old. Make sure it
|
12553 | |
-is in your PATH or set the PKG_CONFIG environment variable to the full
|
12554 | |
-path to pkg-config.
|
12555 | |
+ darwin* | rhapsody*)
|
12556 | |
+ case $host_os in
|
12557 | |
+ rhapsody* | darwin1.[[012]])
|
12558 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
|
12559 | |
+ ;;
|
12560 | |
+ *) # Darwin 1.3 on
|
12561 | |
+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
12562 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
12563 | |
+ else
|
12564 | |
+ case ${MACOSX_DEPLOYMENT_TARGET} in
|
12565 | |
+ 10.[[012]])
|
12566 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
12567 | |
+ ;;
|
12568 | |
+ 10.*)
|
12569 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
|
12570 | |
+ ;;
|
12571 | |
+ esac
|
12572 | |
+ fi
|
12573 | |
+ ;;
|
12574 | |
+ esac
|
12575 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
12576 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
12577 | |
+ _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
|
12578 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
12579 | |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
|
12580 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
12581 | |
+ if test "$GCC" = yes ; then
|
12582 | |
+ output_verbose_link_cmd='echo'
|
12583 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
12584 | |
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
12585 | |
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
12586 | |
+ _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}'
|
12587 | |
+ _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}'
|
12588 | |
+ else
|
12589 | |
+ case $cc_basename in
|
12590 | |
+ xlc*)
|
12591 | |
+ output_verbose_link_cmd='echo'
|
|
907 |
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
|
|
908 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
909 |
;;
|
|
910 |
@@ -6502,10 +6685,10 @@
|
|
911 |
case $cc_basename in
|
|
912 |
xlc*)
|
|
913 |
output_verbose_link_cmd='echo'
|
|
914 |
- _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'
|
12592 | 915 |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
12593 | |
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
12594 | |
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
916 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
917 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
918 |
- _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}'
|
12595 | 919 |
+ _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
12596 | |
+ _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}'
|
12597 | |
+ ;;
|
12598 | |
+ *)
|
12599 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
12600 | |
+ ;;
|
12601 | |
+ esac
|
12602 | |
+ fi
|
12603 | |
+ ;;
|
12604 | |
+
|
12605 | |
+ dgux*)
|
12606 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
12607 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
12608 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
12609 | |
+ ;;
|
12610 | |
|
12611 | |
-_PKG_TEXT
|
12612 | |
+ freebsd1*)
|
12613 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
12614 | |
+ ;;
|
12615 | |
|
12616 | |
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
|
12617 | |
- [$4])
|
12618 | |
-else
|
12619 | |
- $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
12620 | |
- $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
12621 | |
- AC_MSG_RESULT([yes])
|
12622 | |
- ifelse([$3], , :, [$3])
|
12623 | |
-fi[]dnl
|
12624 | |
-])# PKG_CHECK_MODULES
|
12625 | |
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
12626 | |
+ # support. Future versions do this automatically, but an explicit c++rt0.o
|
12627 | |
+ # does not break anything, and helps significantly (at the cost of a little
|
12628 | |
+ # extra space).
|
12629 | |
+ freebsd2.2*)
|
12630 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
12631 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
12632 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
12633 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
12634 | |
+ ;;
|
12635 | |
|
12636 | |
-# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
|
12637 | |
-#
|
12638 | |
-# This file is free software; the Free Software Foundation
|
12639 | |
-# gives unlimited permission to copy and/or distribute it,
|
12640 | |
-# with or without modifications, as long as this notice is preserved.
|
12641 | |
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
12642 | |
+ freebsd2*)
|
12643 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
12644 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
12645 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
12646 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
12647 | |
+ ;;
|
12648 | |
|
12649 | |
-# AM_AUTOMAKE_VERSION(VERSION)
|
12650 | |
-# ----------------------------
|
12651 | |
-# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
12652 | |
-# generated from the m4 files accompanying Automake X.Y.
|
12653 | |
-# (This private macro should not be called outside this file.)
|
12654 | |
-AC_DEFUN([AM_AUTOMAKE_VERSION],
|
12655 | |
-[am__api_version='1.10'
|
12656 | |
-dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
12657 | |
-dnl require some minimum version. Point them to the right macro.
|
12658 | |
-m4_if([$1], [1.10], [],
|
12659 | |
- [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
12660 | |
-])
|
12661 | |
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
12662 | |
+ freebsd* | dragonfly*)
|
12663 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
12664 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
12665 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
12666 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
12667 | |
+ ;;
|
12668 | |
|
12669 | |
-# _AM_AUTOCONF_VERSION(VERSION)
|
12670 | |
-# -----------------------------
|
12671 | |
-# aclocal traces this macro to find the Autoconf version.
|
12672 | |
-# This is a private macro too. Using m4_define simplifies
|
12673 | |
-# the logic in aclocal, which can simply ignore this definition.
|
12674 | |
-m4_define([_AM_AUTOCONF_VERSION], [])
|
12675 | |
+ hpux9*)
|
12676 | |
+ if test "$GCC" = yes; then
|
12677 | |
+ _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'
|
12678 | |
+ else
|
12679 | |
+ _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'
|
12680 | |
+ fi
|
12681 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
12682 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
12683 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
12684 | |
|
12685 | |
-# AM_SET_CURRENT_AUTOMAKE_VERSION
|
12686 | |
-# -------------------------------
|
12687 | |
-# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
12688 | |
-# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
12689 | |
-AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
12690 | |
-[AM_AUTOMAKE_VERSION([1.10])dnl
|
12691 | |
-_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
|
12692 | |
+ # hardcode_minus_L: Not really in the search PATH,
|
12693 | |
+ # but as the default location of the library.
|
12694 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
12695 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
12696 | |
+ ;;
|
12697 | |
|
12698 | |
-# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
12699 | |
+ hpux10*)
|
12700 | |
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
12701 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
12702 | |
+ else
|
12703 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
12704 | |
+ fi
|
12705 | |
+ if test "$with_gnu_ld" = no; then
|
12706 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
12707 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
12708 | |
|
12709 | |
-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
12710 | |
-#
|
12711 | |
-# This file is free software; the Free Software Foundation
|
12712 | |
-# gives unlimited permission to copy and/or distribute it,
|
12713 | |
-# with or without modifications, as long as this notice is preserved.
|
12714 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
12715 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
12716 | |
|
12717 | |
-# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
12718 | |
-# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
12719 | |
-# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
12720 | |
-#
|
12721 | |
-# Of course, Automake must honor this variable whenever it calls a
|
12722 | |
-# tool from the auxiliary directory. The problem is that $srcdir (and
|
12723 | |
-# therefore $ac_aux_dir as well) can be either absolute or relative,
|
12724 | |
-# depending on how configure is run. This is pretty annoying, since
|
12725 | |
-# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
12726 | |
-# source directory, any form will work fine, but in subdirectories a
|
12727 | |
-# relative path needs to be adjusted first.
|
12728 | |
-#
|
12729 | |
-# $ac_aux_dir/missing
|
12730 | |
-# fails when called from a subdirectory if $ac_aux_dir is relative
|
12731 | |
-# $top_srcdir/$ac_aux_dir/missing
|
12732 | |
-# fails if $ac_aux_dir is absolute,
|
12733 | |
-# fails when called from a subdirectory in a VPATH build with
|
12734 | |
-# a relative $ac_aux_dir
|
12735 | |
-#
|
12736 | |
-# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
12737 | |
-# are both prefixed by $srcdir. In an in-source build this is usually
|
12738 | |
-# harmless because $srcdir is `.', but things will broke when you
|
12739 | |
-# start a VPATH build or use an absolute $srcdir.
|
12740 | |
-#
|
12741 | |
-# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
12742 | |
-# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
12743 | |
-# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
12744 | |
-# and then we would define $MISSING as
|
12745 | |
-# MISSING="\${SHELL} $am_aux_dir/missing"
|
12746 | |
-# This will work as long as MISSING is not called from configure, because
|
12747 | |
-# unfortunately $(top_srcdir) has no meaning in configure.
|
12748 | |
-# However there are other variables, like CC, which are often used in
|
12749 | |
-# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
12750 | |
-#
|
12751 | |
-# Another solution, used here, is to always expand $ac_aux_dir to an
|
12752 | |
-# absolute PATH. The drawback is that using absolute paths prevent a
|
12753 | |
-# configured tree to be moved without reconfiguration.
|
12754 | |
+ # hardcode_minus_L: Not really in the search PATH,
|
12755 | |
+ # but as the default location of the library.
|
12756 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
12757 | |
+ fi
|
12758 | |
+ ;;
|
12759 | |
|
12760 | |
-AC_DEFUN([AM_AUX_DIR_EXPAND],
|
12761 | |
-[dnl Rely on autoconf to set up CDPATH properly.
|
12762 | |
-AC_PREREQ([2.50])dnl
|
12763 | |
-# expand $ac_aux_dir to an absolute path
|
12764 | |
-am_aux_dir=`cd $ac_aux_dir && pwd`
|
12765 | |
-])
|
12766 | |
+ hpux11*)
|
12767 | |
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
12768 | |
+ case $host_cpu in
|
12769 | |
+ hppa*64*)
|
12770 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
12771 | |
+ ;;
|
12772 | |
+ ia64*)
|
12773 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
12774 | |
+ ;;
|
12775 | |
+ *)
|
12776 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
12777 | |
+ ;;
|
12778 | |
+ esac
|
12779 | |
+ else
|
12780 | |
+ case $host_cpu in
|
12781 | |
+ hppa*64*)
|
12782 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
12783 | |
+ ;;
|
12784 | |
+ ia64*)
|
12785 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
12786 | |
+ ;;
|
12787 | |
+ *)
|
12788 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
12789 | |
+ ;;
|
12790 | |
+ esac
|
12791 | |
+ fi
|
12792 | |
+ if test "$with_gnu_ld" = no; then
|
12793 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
12794 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
12795 | |
|
12796 | |
+ case $host_cpu in
|
12797 | |
+ hppa*64*|ia64*)
|
12798 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
12799 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
12800 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
12801 | |
+ ;;
|
12802 | |
+ *)
|
12803 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
12804 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
12805 | |
|
12806 | |
-# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
|
12807 | |
-# Free Software Foundation, Inc.
|
12808 | |
-#
|
12809 | |
-# This file is free software; the Free Software Foundation
|
12810 | |
-# gives unlimited permission to copy and/or distribute it,
|
12811 | |
-# with or without modifications, as long as this notice is preserved.
|
12812 | |
+ # hardcode_minus_L: Not really in the search PATH,
|
12813 | |
+ # but as the default location of the library.
|
12814 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
12815 | |
+ ;;
|
12816 | |
+ esac
|
12817 | |
+ fi
|
12818 | |
+ ;;
|
12819 | |
|
12820 | |
-# serial 4
|
12821 | |
+ irix5* | irix6* | nonstopux*)
|
12822 | |
+ if test "$GCC" = yes; then
|
12823 | |
+ _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'
|
12824 | |
+ else
|
12825 | |
+ _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'
|
12826 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
|
12827 | |
+ fi
|
12828 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
12829 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
12830 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
12831 | |
+ ;;
|
12832 | |
|
12833 | |
-# This was merged into AC_PROG_CC in Autoconf.
|
12834 | |
+ netbsd* | netbsdelf*-gnu)
|
12835 | |
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
12836 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
12837 | |
+ else
|
12838 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
12839 | |
+ fi
|
12840 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
12841 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
12842 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
12843 | |
+ ;;
|
12844 | |
|
12845 | |
-AU_DEFUN([AM_PROG_CC_STDC],
|
12846 | |
-[AC_PROG_CC
|
12847 | |
-AC_DIAGNOSE([obsolete], [$0:
|
12848 | |
- your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
|
12849 | |
- `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
|
12850 | |
- you adjust the code. You can also remove the above call to
|
12851 | |
- AC_PROG_CC if you already called it elsewhere.])
|
12852 | |
-am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
|
12853 | |
-])
|
12854 | |
-AU_DEFUN([fp_PROG_CC_STDC])
|
12855 | |
+ newsos6)
|
12856 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
12857 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
12858 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
12859 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
12860 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
12861 | |
+ ;;
|
12862 | |
|
12863 | |
-# AM_CONDITIONAL -*- Autoconf -*-
|
12864 | |
+ openbsd*)
|
|
920 |
_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}'
|
|
921 |
;;
|
|
922 |
*)
|
|
923 |
@@ -6667,24 +6850,28 @@
|
|
924 |
;;
|
|
925 |
|
|
926 |
openbsd*)
|
|
927 |
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|
928 |
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
929 |
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
930 |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
931 |
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
932 |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
933 |
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
12865 | 934 |
+ if test -f /usr/libexec/ld.so; then
|
12866 | 935 |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
12867 | 936 |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
12882 | 951 |
+ ;;
|
12883 | 952 |
+ esac
|
12884 | 953 |
+ fi
|
12885 | |
+ else
|
|
954 |
else
|
|
955 |
- case $host_os in
|
|
956 |
- openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
|
|
957 |
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
958 |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
959 |
- ;;
|
|
960 |
- *)
|
|
961 |
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
962 |
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
963 |
- ;;
|
|
964 |
- esac
|
12886 | 965 |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
12887 | |
+ fi
|
12888 | |
+ ;;
|
12889 | |
|
12890 | |
-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
|
12891 | |
-# Free Software Foundation, Inc.
|
12892 | |
-#
|
12893 | |
-# This file is free software; the Free Software Foundation
|
12894 | |
-# gives unlimited permission to copy and/or distribute it,
|
12895 | |
-# with or without modifications, as long as this notice is preserved.
|
12896 | |
+ os2*)
|
12897 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
12898 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
12899 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
12900 | |
+ _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'
|
12901 | |
+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
12902 | |
+ ;;
|
12903 | |
|
12904 | |
-# serial 8
|
12905 | |
+ osf3*)
|
12906 | |
+ if test "$GCC" = yes; then
|
12907 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
12908 | |
+ _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'
|
12909 | |
+ else
|
12910 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
12911 | |
+ _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'
|
12912 | |
+ fi
|
12913 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
12914 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
12915 | |
+ ;;
|
12916 | |
|
12917 | |
-# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
12918 | |
-# -------------------------------------
|
12919 | |
-# Define a conditional.
|
12920 | |
-AC_DEFUN([AM_CONDITIONAL],
|
12921 | |
-[AC_PREREQ(2.52)dnl
|
12922 | |
- ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
12923 | |
- [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
12924 | |
-AC_SUBST([$1_TRUE])dnl
|
12925 | |
-AC_SUBST([$1_FALSE])dnl
|
12926 | |
-_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
12927 | |
-_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
12928 | |
-if $2; then
|
12929 | |
- $1_TRUE=
|
12930 | |
- $1_FALSE='#'
|
12931 | |
-else
|
12932 | |
- $1_TRUE='#'
|
12933 | |
- $1_FALSE=
|
12934 | |
-fi
|
12935 | |
-AC_CONFIG_COMMANDS_PRE(
|
12936 | |
-[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
12937 | |
- AC_MSG_ERROR([[conditional "$1" was never defined.
|
12938 | |
-Usually this means the macro was only invoked conditionally.]])
|
12939 | |
-fi])])
|
12940 | |
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
|
12941 | |
+ if test "$GCC" = yes; then
|
12942 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
12943 | |
+ _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'
|
12944 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
12945 | |
+ else
|
12946 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
12947 | |
+ _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'
|
12948 | |
+ _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~
|
12949 | |
+ $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'
|
12950 | |
|
12951 | |
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
12952 | |
-# Free Software Foundation, Inc.
|
12953 | |
-#
|
12954 | |
-# This file is free software; the Free Software Foundation
|
12955 | |
-# gives unlimited permission to copy and/or distribute it,
|
12956 | |
-# with or without modifications, as long as this notice is preserved.
|
12957 | |
+ # Both c and cxx compiler support -rpath directly
|
12958 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
12959 | |
+ fi
|
12960 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
12961 | |
+ ;;
|
12962 | |
|
12963 | |
-# serial 9
|
12964 | |
+ solaris*)
|
12965 | |
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
|
12966 | |
+ if test "$GCC" = yes; then
|
12967 | |
+ wlarc='${wl}'
|
12968 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
12969 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
12970 | |
+ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
12971 | |
+ else
|
12972 | |
+ wlarc=''
|
12973 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
12974 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
12975 | |
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
12976 | |
+ fi
|
12977 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
12978 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
12979 | |
+ case $host_os in
|
12980 | |
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
12981 | |
+ *)
|
|
966 |
fi
|
|
967 |
;;
|
|
968 |
|
|
969 |
@@ -6743,17 +6930,16 @@
|
|
970 |
case $host_os in
|
|
971 |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
|
972 |
*)
|
|
973 |
- # The compiler driver will combine linker options so we
|
|
974 |
- # cannot just pass the convience library names through
|
|
975 |
- # without $wl, iff we do not link with $LD.
|
|
976 |
- # Luckily, gcc supports the same syntax we need for Sun Studio.
|
12982 | 977 |
+ # The compiler driver will combine and reorder linker options,
|
12983 | 978 |
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
|
12984 | 979 |
+ # but is careful enough not to reorder.
|
12985 | |
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
980 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
981 |
- case $wlarc in
|
|
982 |
- '')
|
|
983 |
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
|
|
984 |
- *)
|
|
985 |
- _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' ;;
|
|
986 |
- esac ;;
|
12986 | 987 |
+ if test "$GCC" = yes; then
|
12987 | 988 |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
12988 | 989 |
+ else
|
12989 | 990 |
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
|
12990 | 991 |
+ fi
|
12991 | 992 |
+ ;;
|
12992 | |
+ esac
|
12993 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
12994 | |
+ ;;
|
12995 | |
|
12996 | |
-# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
12997 | |
-# written in clear, in which case automake, when reading aclocal.m4,
|
12998 | |
-# will think it sees a *use*, and therefore will trigger all it's
|
12999 | |
-# C support machinery. Also note that it means that autoscan, seeing
|
13000 | |
-# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
13001 | |
+ sunos4*)
|
13002 | |
+ if test "x$host_vendor" = xsequent; then
|
13003 | |
+ # Use $CC to link under sequent, because it throws in some extra .o
|
13004 | |
+ # files that make .init and .fini sections work.
|
13005 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
13006 | |
+ else
|
13007 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
13008 | |
+ fi
|
13009 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
13010 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
13011 | |
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
13012 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
13013 | |
+ ;;
|
13014 | |
|
13015 | |
+ sysv4)
|
13016 | |
+ case $host_vendor in
|
13017 | |
+ sni)
|
13018 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
13019 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
|
13020 | |
+ ;;
|
13021 | |
+ siemens)
|
13022 | |
+ ## LD is ld it makes a PLAMLIB
|
13023 | |
+ ## CC just makes a GrossModule.
|
13024 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
13025 | |
+ _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
|
13026 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
13027 | |
+ ;;
|
13028 | |
+ motorola)
|
13029 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
13030 | |
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
|
13031 | |
+ ;;
|
13032 | |
+ esac
|
13033 | |
+ runpath_var='LD_RUN_PATH'
|
13034 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
13035 | |
+ ;;
|
13036 | |
|
13037 | |
-# _AM_DEPENDENCIES(NAME)
|
13038 | |
-# ----------------------
|
13039 | |
-# See how the compiler implements dependency checking.
|
13040 | |
-# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
13041 | |
-# We try a few techniques and use that to set a single cache variable.
|
13042 | |
-#
|
13043 | |
-# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
13044 | |
-# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
13045 | |
-# dependency, and given that the user is not expected to run this macro,
|
13046 | |
-# just rely on AC_PROG_CC.
|
13047 | |
-AC_DEFUN([_AM_DEPENDENCIES],
|
13048 | |
-[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
13049 | |
-AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
13050 | |
-AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
13051 | |
-AC_REQUIRE([AM_DEP_TRACK])dnl
|
13052 | |
+ sysv4.3*)
|
13053 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
13054 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
13055 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
|
13056 | |
+ ;;
|
13057 | |
|
13058 | |
-ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
13059 | |
- [$1], CXX, [depcc="$CXX" am_compiler_list=],
|
13060 | |
- [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
13061 | |
- [$1], UPC, [depcc="$UPC" am_compiler_list=],
|
13062 | |
- [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
13063 | |
- [depcc="$$1" am_compiler_list=])
|
13064 | |
+ sysv4*MP*)
|
13065 | |
+ if test -d /usr/nec; then
|
13066 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
13067 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
13068 | |
+ runpath_var=LD_RUN_PATH
|
13069 | |
+ hardcode_runpath_var=yes
|
13070 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
13071 | |
+ fi
|
13072 | |
+ ;;
|
13073 | |
|
13074 | |
-AC_CACHE_CHECK([dependency style of $depcc],
|
13075 | |
- [am_cv_$1_dependencies_compiler_type],
|
13076 | |
-[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
13077 | |
- # We make a subdir and do the tests there. Otherwise we can end up
|
13078 | |
- # making bogus files that we don't know about and never remove. For
|
13079 | |
- # instance it was reported that on HP-UX the gcc test will end up
|
13080 | |
- # making a dummy file named `D' -- because `-MD' means `put the output
|
13081 | |
- # in D'.
|
13082 | |
- mkdir conftest.dir
|
13083 | |
- # Copy depcomp to subdir because otherwise we won't find it if we're
|
13084 | |
- # using a relative directory.
|
13085 | |
- cp "$am_depcomp" conftest.dir
|
13086 | |
- cd conftest.dir
|
13087 | |
- # We will build objects and dependencies in a subdirectory because
|
13088 | |
- # it helps to detect inapplicable dependency modes. For instance
|
13089 | |
- # both Tru64's cc and ICC support -MD to output dependencies as a
|
13090 | |
- # side effect of compilation, but ICC will put the dependencies in
|
13091 | |
- # the current directory while Tru64 will put them in the object
|
13092 | |
- # directory.
|
13093 | |
- mkdir sub
|
|
993 |
esac
|
|
994 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|
995 |
;;
|
|
996 |
@@ -6810,7 +6996,7 @@
|
|
997 |
fi
|
|
998 |
;;
|
|
999 |
|
|
1000 |
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
|
13094 | 1001 |
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
13095 | |
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
13096 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
13097 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
13098 | |
+ runpath_var='LD_RUN_PATH'
|
13099 | |
|
13100 | |
- am_cv_$1_dependencies_compiler_type=none
|
13101 | |
- if test "$am_compiler_list" = ""; then
|
13102 | |
- am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
13103 | |
- fi
|
13104 | |
- for depmode in $am_compiler_list; do
|
13105 | |
- # Setup a source with many dependencies, because some compilers
|
13106 | |
- # like to wrap large dependency lists on column 80 (with \), and
|
13107 | |
- # we should not choose a depcomp mode which is confused by this.
|
13108 | |
- #
|
13109 | |
- # We need to recreate these files for each test, as the compiler may
|
13110 | |
- # overwrite some of them when testing with obscure command lines.
|
13111 | |
- # This happens at least with the AIX C compiler.
|
13112 | |
- : > sub/conftest.c
|
13113 | |
- for i in 1 2 3 4 5 6; do
|
13114 | |
- echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
13115 | |
- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
13116 | |
- # Solaris 8's {/usr,}/bin/sh.
|
13117 | |
- touch sub/conftst$i.h
|
13118 | |
- done
|
13119 | |
- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
13120 | |
+ if test "$GCC" = yes; then
|
13121 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
13122 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
13123 | |
+ else
|
13124 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
13125 | |
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
13126 | |
+ fi
|
13127 | |
+ ;;
|
13128 | |
|
13129 | |
- case $depmode in
|
13130 | |
- nosideeffect)
|
13131 | |
- # after this tag, mechanisms are not by side-effect, so they'll
|
13132 | |
- # only be used when explicitly requested
|
13133 | |
- if test "x$enable_dependency_tracking" = xyes; then
|
13134 | |
- continue
|
13135 | |
+ sysv5* | sco3.2v5* | sco5v6*)
|
13136 | |
+ # Note: We can NOT use -z defs as we might desire, because we do not
|
13137 | |
+ # link with -lc, and that would cause any symbols used from libc to
|
13138 | |
+ # always be unresolved, which means just about no library would
|
13139 | |
+ # ever link correctly. If we're not using GNU ld we use -z text
|
13140 | |
+ # though, which does catch some bad symbols but isn't as heavy-handed
|
13141 | |
+ # as -z defs.
|
13142 | |
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
13143 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
|
13144 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
13145 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
13146 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
13147 | |
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
13148 | |
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
13149 | |
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
13150 | |
+ runpath_var='LD_RUN_PATH'
|
13151 | |
+
|
13152 | |
+ if test "$GCC" = yes; then
|
13153 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
13154 | |
+ _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'
|
13155 | |
else
|
13156 | |
- break
|
13157 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
13158 | |
+ _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'
|
13159 | |
fi
|
13160 | |
;;
|
13161 | |
- none) break ;;
|
13162 | |
- esac
|
13163 | |
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
13164 | |
- # mode. It turns out that the SunPro C++ compiler does not properly
|
13165 | |
- # handle `-M -o', and we need to detect this.
|
13166 | |
- if depmode=$depmode \
|
13167 | |
- source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
13168 | |
- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
13169 | |
- $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
13170 | |
- >/dev/null 2>conftest.err &&
|
13171 | |
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
13172 | |
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
13173 | |
- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
13174 | |
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
13175 | |
- # icc doesn't choke on unknown options, it will just issue warnings
|
13176 | |
- # or remarks (even with -Werror). So we grep stderr for any message
|
13177 | |
- # that says an option was ignored or not supported.
|
13178 | |
- # When given -MP, icc 7.0 and 7.1 complain thusly:
|
13179 | |
- # icc: Command line warning: ignoring option '-M'; no argument required
|
13180 | |
- # The diagnosis changed in icc 8.0:
|
13181 | |
- # icc: Command line remark: option '-MP' not supported
|
13182 | |
- if (grep 'ignoring option' conftest.err ||
|
13183 | |
- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
13184 | |
- am_cv_$1_dependencies_compiler_type=$depmode
|
13185 | |
- break
|
13186 | |
- fi
|
13187 | |
- fi
|
13188 | |
- done
|
13189 | |
-
|
13190 | |
- cd ..
|
13191 | |
- rm -rf conftest.dir
|
13192 | |
-else
|
13193 | |
- am_cv_$1_dependencies_compiler_type=none
|
13194 | |
-fi
|
13195 | |
-])
|
13196 | |
-AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
13197 | |
-AM_CONDITIONAL([am__fastdep$1], [
|
13198 | |
- test "x$enable_dependency_tracking" != xno \
|
13199 | |
- && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
13200 | |
-])
|
13201 | |
|
13202 | |
+ uts4*)
|
13203 | |
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
13204 | |
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
13205 | |
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
13206 | |
+ ;;
|
13207 | |
|
13208 | |
-# AM_SET_DEPDIR
|
13209 | |
-# -------------
|
13210 | |
-# Choose a directory name for dependency files.
|
13211 | |
-# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
13212 | |
-AC_DEFUN([AM_SET_DEPDIR],
|
13213 | |
-[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
13214 | |
-AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
13215 | |
+ *)
|
13216 | |
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
13217 | |
+ ;;
|
13218 | |
+ esac
|
13219 | |
+ fi
|
|
1002 |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
1003 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
1004 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
1005 |
@@ -6885,7 +7071,7 @@
|
|
1006 |
# to ld, don't add -lc before -lgcc.
|
|
1007 |
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
|
|
1008 |
$rm conftest*
|
|
1009 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
1010 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
1011 |
|
|
1012 |
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
|
|
1013 |
soname=conftest
|
|
1014 |
@@ -6988,6 +7174,30 @@
|
|
1015 |
[AC_CHECK_TOOL(RC, windres, no)
|
13220 | 1016 |
])
|
13221 | |
+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
|
13222 | |
+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
13223 | |
|
13224 | |
+#
|
13225 | |
+# Do we need to explicitly link libc?
|
13226 | |
+#
|
13227 | |
+case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
|
13228 | |
+x|xyes)
|
13229 | |
+ # Assume -lc should be added
|
13230 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
13231 | |
|
13232 | |
-# AM_DEP_TRACK
|
13233 | |
-# ------------
|
13234 | |
-AC_DEFUN([AM_DEP_TRACK],
|
13235 | |
-[AC_ARG_ENABLE(dependency-tracking,
|
13236 | |
-[ --disable-dependency-tracking speeds up one-time build
|
13237 | |
- --enable-dependency-tracking do not reject slow dependency extractors])
|
13238 | |
-if test "x$enable_dependency_tracking" != xno; then
|
13239 | |
- am_depcomp="$ac_aux_dir/depcomp"
|
13240 | |
- AMDEPBACKSLASH='\'
|
13241 | |
-fi
|
13242 | |
-AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
13243 | |
-AC_SUBST([AMDEPBACKSLASH])dnl
|
13244 | |
-_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
13245 | |
-])
|
13246 | |
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
|
13247 | |
+ case $_LT_AC_TAGVAR(archive_cmds, $1) in
|
13248 | |
+ *'~'*)
|
13249 | |
+ # FIXME: we may have to deal with multi-command sequences.
|
13250 | |
+ ;;
|
13251 | |
+ '$CC '*)
|
13252 | |
+ # Test whether the compiler implicitly links with -lc since on some
|
13253 | |
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
13254 | |
+ # to ld, don't add -lc before -lgcc.
|
13255 | |
+ AC_MSG_CHECKING([whether -lc should be explicitly linked in])
|
13256 | |
+ $rm conftest*
|
13257 | |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
13258 | |
|
13259 | |
-# Generate code to set up dependency tracking. -*- Autoconf -*-
|
13260 | |
+ if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
|
13261 | |
+ soname=conftest
|
13262 | |
+ lib=conftest
|
13263 | |
+ libobjs=conftest.$ac_objext
|
13264 | |
+ deplibs=
|
13265 | |
+ wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
|
13266 | |
+ pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
|
13267 | |
+ compiler_flags=-v
|
13268 | |
+ linker_flags=-v
|
13269 | |
+ verstring=
|
13270 | |
+ output_objdir=.
|
13271 | |
+ libname=conftest
|
13272 | |
+ lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
|
13273 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
13274 | |
+ if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
|
13275 | |
+ then
|
13276 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
13277 | |
+ else
|
13278 | |
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
13279 | |
+ fi
|
13280 | |
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
|
13281 | |
+ else
|
13282 | |
+ cat conftest.err 1>&5
|
13283 | |
+ fi
|
13284 | |
+ $rm conftest*
|
13285 | |
+ AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
|
13286 | |
+ ;;
|
13287 | |
+ esac
|
13288 | |
+ fi
|
13289 | |
+ ;;
|
13290 | |
+esac
|
13291 | |
+])# AC_LIBTOOL_PROG_LD_SHLIBS
|
13292 | |
|
13293 | |
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
13294 | |
-# Free Software Foundation, Inc.
|
13295 | |
+
|
13296 | |
+# _LT_AC_FILE_LTDLL_C
|
13297 | |
+# -------------------
|
13298 | |
+# Be careful that the start marker always follows a newline.
|
13299 | |
+AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
|
13300 | |
+# /* ltdll.c starts here */
|
13301 | |
+# #define WIN32_LEAN_AND_MEAN
|
13302 | |
+# #include <windows.h>
|
13303 | |
+# #undef WIN32_LEAN_AND_MEAN
|
13304 | |
+# #include <stdio.h>
|
13305 | |
#
|
13306 | |
-# This file is free software; the Free Software Foundation
|
13307 | |
-# gives unlimited permission to copy and/or distribute it,
|
13308 | |
-# with or without modifications, as long as this notice is preserved.
|
13309 | |
+# #ifndef __CYGWIN__
|
13310 | |
+# # ifdef __CYGWIN32__
|
13311 | |
+# # define __CYGWIN__ __CYGWIN32__
|
13312 | |
+# # endif
|
13313 | |
+# #endif
|
13314 | |
+#
|
13315 | |
+# #ifdef __cplusplus
|
13316 | |
+# extern "C" {
|
13317 | |
+# #endif
|
13318 | |
+# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
|
13319 | |
+# #ifdef __cplusplus
|
13320 | |
+# }
|
13321 | |
+# #endif
|
13322 | |
+#
|
13323 | |
+# #ifdef __CYGWIN__
|
13324 | |
+# #include <cygwin/cygwin_dll.h>
|
13325 | |
+# DECLARE_CYGWIN_DLL( DllMain );
|
13326 | |
+# #endif
|
13327 | |
+# HINSTANCE __hDllInstance_base;
|
13328 | |
+#
|
13329 | |
+# BOOL APIENTRY
|
13330 | |
+# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
|
13331 | |
+# {
|
13332 | |
+# __hDllInstance_base = hInst;
|
13333 | |
+# return TRUE;
|
13334 | |
+# }
|
13335 | |
+# /* ltdll.c ends here */
|
13336 | |
+])# _LT_AC_FILE_LTDLL_C
|
13337 | |
|
13338 | |
-#serial 3
|
13339 | |
|
13340 | |
-# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
13341 | |
-# ------------------------------
|
13342 | |
-AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
13343 | |
-[for mf in $CONFIG_FILES; do
|
13344 | |
- # Strip MF so we end up with the name of the file.
|
13345 | |
- mf=`echo "$mf" | sed -e 's/:.*$//'`
|
13346 | |
- # Check whether this is an Automake generated Makefile or not.
|
13347 | |
- # We used to match only the files named `Makefile.in', but
|
13348 | |
- # some people rename them; so instead we look at the file content.
|
13349 | |
- # Grep'ing the first line is not enough: some people post-process
|
13350 | |
- # each Makefile.in and add a new line on top of each file to say so.
|
13351 | |
- # Grep'ing the whole file is not good either: AIX grep has a line
|
13352 | |
- # limit of 2048, but all sed's we know have understand at least 4000.
|
13353 | |
- if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
|
13354 | |
- dirpart=`AS_DIRNAME("$mf")`
|
13355 | |
- else
|
13356 | |
- continue
|
13357 | |
- fi
|
13358 | |
- # Extract the definition of DEPDIR, am__include, and am__quote
|
13359 | |
- # from the Makefile without running `make'.
|
13360 | |
- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
13361 | |
- test -z "$DEPDIR" && continue
|
13362 | |
- am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
13363 | |
- test -z "am__include" && continue
|
13364 | |
- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
13365 | |
- # When using ansi2knr, U may be empty or an underscore; expand it
|
13366 | |
- U=`sed -n 's/^U = //p' < "$mf"`
|
13367 | |
- # Find all dependency output files, they are included files with
|
13368 | |
- # $(DEPDIR) in their names. We invoke sed twice because it is the
|
13369 | |
- # simplest approach to changing $(DEPDIR) to its actual value in the
|
13370 | |
- # expansion.
|
13371 | |
- for file in `sed -n "
|
13372 | |
- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
13373 | |
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
13374 | |
- # Make sure the directory exists.
|
13375 | |
- test -f "$dirpart/$file" && continue
|
13376 | |
- fdir=`AS_DIRNAME(["$file"])`
|
13377 | |
- AS_MKDIR_P([$dirpart/$fdir])
|
13378 | |
- # echo "creating $dirpart/$file"
|
13379 | |
- echo '# dummy' > "$dirpart/$file"
|
13380 | |
- done
|
13381 | |
-done
|
13382 | |
-])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
13383 | |
+# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
|
13384 | |
+# ---------------------------------
|
13385 | |
+AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
|
13386 | |
|
13387 | |
|
13388 | |
-# AM_OUTPUT_DEPENDENCY_COMMANDS
|
13389 | |
-# -----------------------------
|
13390 | |
-# This macro should only be invoked once -- use via AC_REQUIRE.
|
13391 | |
-#
|
13392 | |
-# This code is only required when automatic dependency tracking
|
13393 | |
-# is enabled. FIXME. This creates each `.P' file that we will
|
13394 | |
-# need in order to bootstrap the dependency handling code.
|
13395 | |
-AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
13396 | |
-[AC_CONFIG_COMMANDS([depfiles],
|
13397 | |
- [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
13398 | |
- [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
13399 | |
+# old names
|
13400 | |
+AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
|
13401 | |
+AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
13402 | |
+AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
13403 | |
+AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
13404 | |
+AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
13405 | |
+AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
|
13406 | |
+AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
|
13407 | |
+
|
13408 | |
+# This is just to silence aclocal about the macro not being used
|
13409 | |
+ifelse([AC_DISABLE_FAST_INSTALL])
|
13410 | |
+
|
13411 | |
+AC_DEFUN([LT_AC_PROG_GCJ],
|
13412 | |
+[AC_CHECK_TOOL(GCJ, gcj, no)
|
13413 | |
+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
|
13414 | |
+ AC_SUBST(GCJFLAGS)
|
13415 | |
+])
|
13416 | |
+
|
13417 | |
+AC_DEFUN([LT_AC_PROG_RC],
|
13418 | |
+[AC_CHECK_TOOL(RC, windres, no)
|
13419 | |
])
|
13420 | |
|
13421 | |
-# Do all the work for Automake. -*- Autoconf -*-
|
13422 | |
|
13423 | |
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
13424 | |
-# 2005, 2006 Free Software Foundation, Inc.
|
13425 | |
-#
|
13426 | |
-# This file is free software; the Free Software Foundation
|
13427 | |
-# gives unlimited permission to copy and/or distribute it,
|
13428 | |
-# with or without modifications, as long as this notice is preserved.
|
|
1017 |
|
|
1018 |
+
|
13429 | 1019 |
+# Cheap backport of AS_EXECUTABLE_P and required macros
|
13430 | 1020 |
+# from Autoconf 2.59; we should not use $as_executable_p directly.
|
13431 | |
|
13432 | |
-# serial 12
|
|
1021 |
+
|
13433 | 1022 |
+# _AS_TEST_PREPARE
|
13434 | 1023 |
+# ----------------
|
13435 | 1024 |
+m4_ifndef([_AS_TEST_PREPARE],
|
|
13440 | 1029 |
+ as_executable_p='test -f'
|
13441 | 1030 |
+fi
|
13442 | 1031 |
+])])# _AS_TEST_PREPARE
|
13443 | |
|
13444 | |
-# This macro actually does too much. Some checks are only needed if
|
13445 | |
-# your package does certain things. But this isn't really a big deal.
|
|
1032 |
+
|
13446 | 1033 |
+# AS_EXECUTABLE_P
|
13447 | 1034 |
+# ---------------
|
13448 | 1035 |
+# Check whether a file is executable.
|
|
13451 | 1038 |
+[AS_REQUIRE([_AS_TEST_PREPARE])dnl
|
13452 | 1039 |
+$as_executable_p $1[]dnl
|
13453 | 1040 |
+])])# AS_EXECUTABLE_P
|
13454 | |
|
13455 | |
-# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
13456 | |
-# AM_INIT_AUTOMAKE([OPTIONS])
|
13457 | |
-# -----------------------------------------------
|
13458 | |
-# The call with PACKAGE and VERSION arguments is the old style
|
13459 | |
-# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
13460 | |
-# and VERSION should now be passed to AC_INIT and removed from
|
13461 | |
-# the call to AM_INIT_AUTOMAKE.
|
13462 | |
-# We support both call styles for the transition. After
|
13463 | |
-# the next Automake release, Autoconf can make the AC_INIT
|
13464 | |
-# arguments mandatory, and then we can depend on a new Autoconf
|
13465 | |
-# release and drop the old call support.
|
13466 | |
-AC_DEFUN([AM_INIT_AUTOMAKE],
|
13467 | |
-[AC_PREREQ([2.60])dnl
|
13468 | |
-dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
13469 | |
-dnl the ones we care about.
|
13470 | |
-m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
13471 | |
-AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
13472 | |
-AC_REQUIRE([AC_PROG_INSTALL])dnl
|
13473 | |
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
13474 | |
- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
13475 | |
- # is not polluted with repeated "-I."
|
13476 | |
- AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
13477 | |
- # test to see if srcdir already configured
|
13478 | |
- if test -f $srcdir/config.status; then
|
13479 | |
- AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
13480 | |
+# NOTE: This macro has been submitted for inclusion into #
|
13481 | |
+# GNU Autoconf as AC_PROG_SED. When it is available in #
|
13482 | |
+# a released version of Autoconf we should remove this #
|
13483 | |
+# macro and use it instead. #
|
13484 | |
+# LT_AC_PROG_SED
|
13485 | |
+# --------------
|
13486 | |
+# Check for a fully-functional sed program, that truncates
|
13487 | |
+# as few characters as possible. Prefer GNU sed if found.
|
13488 | |
+AC_DEFUN([LT_AC_PROG_SED],
|
13489 | |
+[AC_MSG_CHECKING([for a sed that does not truncate output])
|
13490 | |
+AC_CACHE_VAL(lt_cv_path_SED,
|
13491 | |
+[# Loop through the user's path and test for sed and gsed.
|
13492 | |
+# Then use that list of sed's as ones to test for truncation.
|
13493 | |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
13494 | |
+for as_dir in $PATH
|
13495 | |
+do
|
13496 | |
+ IFS=$as_save_IFS
|
13497 | |
+ test -z "$as_dir" && as_dir=.
|
13498 | |
+ for lt_ac_prog in sed gsed; do
|
13499 | |
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
1041 |
+
|
|
1042 |
# NOTE: This macro has been submitted for inclusion into #
|
|
1043 |
# GNU Autoconf as AC_PROG_SED. When it is available in #
|
|
1044 |
# a released version of Autoconf we should remove this #
|
|
1045 |
@@ -7008,12 +7218,13 @@
|
|
1046 |
test -z "$as_dir" && as_dir=.
|
|
1047 |
for lt_ac_prog in sed gsed; do
|
|
1048 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
1049 |
- if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
13500 | 1050 |
+ if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
|
13501 | |
+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
13502 | |
+ fi
|
13503 | |
+ done
|
13504 | |
+ done
|
13505 | |
+done
|
|
1051 |
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
|
1052 |
fi
|
|
1053 |
done
|
|
1054 |
done
|
|
1055 |
done
|
13506 | 1056 |
+IFS=$as_save_IFS
|
13507 | |
+lt_ac_max=0
|
13508 | |
+lt_ac_count=0
|
13509 | |
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
13510 | |
+# along with /bin/sed that truncates output.
|
13511 | |
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
13512 | |
+ test ! -f $lt_ac_sed && continue
|
13513 | |
+ cat /dev/null > conftest.in
|
13514 | |
+ lt_ac_count=0
|
13515 | |
+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
13516 | |
+ # Check for GNU sed and select it if it is found.
|
13517 | |
+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
13518 | |
+ lt_cv_path_SED=$lt_ac_sed
|
13519 | |
+ break
|
13520 | |
fi
|
13521 | |
-fi
|
13522 | |
+ while true; do
|
13523 | |
+ cat conftest.in conftest.in >conftest.tmp
|
13524 | |
+ mv conftest.tmp conftest.in
|
13525 | |
+ cp conftest.in conftest.nl
|
13526 | |
+ echo >>conftest.nl
|
13527 | |
+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
13528 | |
+ cmp -s conftest.out conftest.nl || break
|
13529 | |
+ # 10000 chars as input seems more than enough
|
13530 | |
+ test $lt_ac_count -gt 10 && break
|
13531 | |
+ lt_ac_count=`expr $lt_ac_count + 1`
|
13532 | |
+ if test $lt_ac_count -gt $lt_ac_max; then
|
13533 | |
+ lt_ac_max=$lt_ac_count
|
13534 | |
+ lt_cv_path_SED=$lt_ac_sed
|
13535 | |
+ fi
|
13536 | |
+ done
|
13537 | |
+done
|
13538 | |
+])
|
13539 | |
+SED=$lt_cv_path_SED
|
|
1057 |
lt_ac_max=0
|
|
1058 |
lt_ac_count=0
|
|
1059 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
|
1060 |
@@ -7046,6 +7257,7 @@
|
|
1061 |
done
|
|
1062 |
])
|
|
1063 |
SED=$lt_cv_path_SED
|
13540 | 1064 |
+AC_SUBST([SED])
|
13541 | |
+AC_MSG_RESULT([$SED])
|
13542 | |
+])
|
13543 | |
|
13544 | |
-# test whether we have cygpath
|
13545 | |
-if test -z "$CYGPATH_W"; then
|
13546 | |
- if (cygpath --version) >/dev/null 2>/dev/null; then
|
13547 | |
- CYGPATH_W='cygpath -w'
|
13548 | |
- else
|
13549 | |
- CYGPATH_W=echo
|
13550 | |
- fi
|
13551 | |
-fi
|
13552 | |
-AC_SUBST([CYGPATH_W])
|
13553 | |
+# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
13554 | |
+#
|
13555 | |
+# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
13556 | |
+#
|
13557 | |
+# This program is free software; you can redistribute it and/or modify
|
13558 | |
+# it under the terms of the GNU General Public License as published by
|
13559 | |
+# the Free Software Foundation; either version 2 of the License, or
|
13560 | |
+# (at your option) any later version.
|
13561 | |
+#
|
13562 | |
+# This program is distributed in the hope that it will be useful, but
|
13563 | |
+# WITHOUT ANY WARRANTY; without even the implied warranty of
|
13564 | |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13565 | |
+# General Public License for more details.
|
13566 | |
+#
|
13567 | |
+# You should have received a copy of the GNU General Public License
|
13568 | |
+# along with this program; if not, write to the Free Software
|
13569 | |
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
13570 | |
+#
|
13571 | |
+# As a special exception to the GNU General Public License, if you
|
13572 | |
+# distribute this file as part of a program that contains a
|
13573 | |
+# configuration script generated by Autoconf, you may include it under
|
13574 | |
+# the same distribution terms that you use for the rest of that program.
|
13575 | |
|
13576 | |
-# Define the identity of the package.
|
13577 | |
-dnl Distinguish between old-style and new-style calls.
|
13578 | |
-m4_ifval([$2],
|
13579 | |
-[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
13580 | |
- AC_SUBST([PACKAGE], [$1])dnl
|
13581 | |
- AC_SUBST([VERSION], [$2])],
|
13582 | |
-[_AM_SET_OPTIONS([$1])dnl
|
13583 | |
-dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
13584 | |
-m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
|
13585 | |
- [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
13586 | |
- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
13587 | |
- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
13588 | |
+# PKG_PROG_PKG_CONFIG([MIN-VERSION])
|
13589 | |
+# ----------------------------------
|
13590 | |
+AC_DEFUN([PKG_PROG_PKG_CONFIG],
|
13591 | |
+[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
13592 | |
+m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
|
13593 | |
+AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
|
13594 | |
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
13595 | |
+ AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
13596 | |
+fi
|
13597 | |
+if test -n "$PKG_CONFIG"; then
|
13598 | |
+ _pkg_min_version=m4_default([$1], [0.9.0])
|
13599 | |
+ AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
|
13600 | |
+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
13601 | |
+ AC_MSG_RESULT([yes])
|
13602 | |
+ else
|
13603 | |
+ AC_MSG_RESULT([no])
|
13604 | |
+ PKG_CONFIG=""
|
13605 | |
+ fi
|
13606 | |
+
|
13607 | |
+fi[]dnl
|
13608 | |
+])# PKG_PROG_PKG_CONFIG
|
13609 | |
|
13610 | |
-_AM_IF_OPTION([no-define],,
|
13611 | |
-[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
13612 | |
- AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
13613 | |
+# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
13614 | |
+#
|
13615 | |
+# Check to see whether a particular set of modules exists. Similar
|
13616 | |
+# to PKG_CHECK_MODULES(), but does not set variables or print errors.
|
13617 | |
+#
|
13618 | |
+#
|
13619 | |
+# Similar to PKG_CHECK_MODULES, make sure that the first instance of
|
13620 | |
+# this or PKG_CHECK_MODULES is called, or make sure to call
|
13621 | |
+# PKG_CHECK_EXISTS manually
|
13622 | |
+# --------------------------------------------------------------
|
13623 | |
+AC_DEFUN([PKG_CHECK_EXISTS],
|
13624 | |
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
13625 | |
+if test -n "$PKG_CONFIG" && \
|
13626 | |
+ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
|
13627 | |
+ m4_ifval([$2], [$2], [:])
|
13628 | |
+m4_ifvaln([$3], [else
|
13629 | |
+ $3])dnl
|
13630 | |
+fi])
|
13631 | |
|
13632 | |
-# Some tools Automake needs.
|
13633 | |
-AC_REQUIRE([AM_SANITY_CHECK])dnl
|
13634 | |
-AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
13635 | |
-AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
13636 | |
-AM_MISSING_PROG(AUTOCONF, autoconf)
|
13637 | |
-AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
13638 | |
-AM_MISSING_PROG(AUTOHEADER, autoheader)
|
13639 | |
-AM_MISSING_PROG(MAKEINFO, makeinfo)
|
13640 | |
-AM_PROG_INSTALL_SH
|
13641 | |
-AM_PROG_INSTALL_STRIP
|
13642 | |
-AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
13643 | |
-# We need awk for the "check" target. The system "awk" is bad on
|
13644 | |
-# some platforms.
|
13645 | |
-AC_REQUIRE([AC_PROG_AWK])dnl
|
13646 | |
-AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
13647 | |
-AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
13648 | |
-_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
13649 | |
- [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
13650 | |
- [_AM_PROG_TAR([v7])])])
|
13651 | |
-_AM_IF_OPTION([no-dependencies],,
|
13652 | |
-[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
13653 | |
- [_AM_DEPENDENCIES(CC)],
|
13654 | |
- [define([AC_PROG_CC],
|
13655 | |
- defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
13656 | |
-AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
13657 | |
- [_AM_DEPENDENCIES(CXX)],
|
13658 | |
- [define([AC_PROG_CXX],
|
13659 | |
- defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
13660 | |
-AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
13661 | |
- [_AM_DEPENDENCIES(OBJC)],
|
13662 | |
- [define([AC_PROG_OBJC],
|
13663 | |
- defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
|
13664 | |
-])
|
13665 | |
-])
|
13666 | |
|
13667 | |
+# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
|
13668 | |
+# ---------------------------------------------
|
13669 | |
+m4_define([_PKG_CONFIG],
|
13670 | |
+[if test -n "$PKG_CONFIG"; then
|
13671 | |
+ if test -n "$$1"; then
|
13672 | |
+ pkg_cv_[]$1="$$1"
|
13673 | |
+ else
|
13674 | |
+ PKG_CHECK_EXISTS([$3],
|
13675 | |
+ [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
|
13676 | |
+ [pkg_failed=yes])
|
13677 | |
+ fi
|
13678 | |
+else
|
13679 | |
+ pkg_failed=untried
|
13680 | |
+fi[]dnl
|
13681 | |
+])# _PKG_CONFIG
|
13682 | |
|
13683 | |
-# When config.status generates a header, we must update the stamp-h file.
|
13684 | |
-# This file resides in the same directory as the config header
|
13685 | |
-# that is generated. The stamp files are numbered to have different names.
|
13686 | |
+# _PKG_SHORT_ERRORS_SUPPORTED
|
13687 | |
+# -----------------------------
|
13688 | |
+AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
|
13689 | |
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
13690 | |
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
13691 | |
+ _pkg_short_errors_supported=yes
|
13692 | |
+else
|
13693 | |
+ _pkg_short_errors_supported=no
|
13694 | |
+fi[]dnl
|
13695 | |
+])# _PKG_SHORT_ERRORS_SUPPORTED
|
13696 | |
|
13697 | |
-# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
13698 | |
-# loop where config.status creates the headers, so we can generate
|
13699 | |
-# our stamp files there.
|
13700 | |
-AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
13701 | |
-[# Compute $1's index in $config_headers.
|
13702 | |
-_am_stamp_count=1
|
13703 | |
-for _am_header in $config_headers :; do
|
13704 | |
- case $_am_header in
|
13705 | |
- $1 | $1:* )
|
13706 | |
- break ;;
|
13707 | |
- * )
|
13708 | |
- _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
13709 | |
- esac
|
13710 | |
-done
|
13711 | |
-echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
|
13712 | |
|
13713 | |
-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
13714 | |
+# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
13715 | |
+# [ACTION-IF-NOT-FOUND])
|
13716 | |
#
|
13717 | |
-# This file is free software; the Free Software Foundation
|
13718 | |
-# gives unlimited permission to copy and/or distribute it,
|
13719 | |
-# with or without modifications, as long as this notice is preserved.
|
13720 | |
+#
|
13721 | |
+# Note that if there is a possibility the first call to
|
13722 | |
+# PKG_CHECK_MODULES might not happen, you should be sure to include an
|
13723 | |
+# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
|
13724 | |
+#
|
13725 | |
+#
|
13726 | |
+# --------------------------------------------------------------
|
13727 | |
+AC_DEFUN([PKG_CHECK_MODULES],
|
13728 | |
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
13729 | |
+AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
|
13730 | |
+AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
|
13731 | |
|
13732 | |
-# AM_PROG_INSTALL_SH
|
13733 | |
-# ------------------
|
13734 | |
-# Define $install_sh.
|
13735 | |
-AC_DEFUN([AM_PROG_INSTALL_SH],
|
13736 | |
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
13737 | |
-install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
|
13738 | |
-AC_SUBST(install_sh)])
|
13739 | |
+pkg_failed=no
|
13740 | |
+AC_MSG_CHECKING([for $1])
|
13741 | |
|
13742 | |
-# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
13743 | |
-#
|
13744 | |
-# This file is free software; the Free Software Foundation
|
13745 | |
-# gives unlimited permission to copy and/or distribute it,
|
13746 | |
-# with or without modifications, as long as this notice is preserved.
|
13747 | |
+_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
13748 | |
+_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
13749 | |
|
13750 | |
-# serial 2
|
13751 | |
+m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
|
13752 | |
+and $1[]_LIBS to avoid the need to call pkg-config.
|
13753 | |
+See the pkg-config man page for more details.])
|
13754 | |
|
13755 | |
-# Check whether the underlying file-system supports filenames
|
13756 | |
-# with a leading dot. For instance MS-DOS doesn't.
|
13757 | |
-AC_DEFUN([AM_SET_LEADING_DOT],
|
13758 | |
-[rm -rf .tst 2>/dev/null
|
13759 | |
-mkdir .tst 2>/dev/null
|
13760 | |
-if test -d .tst; then
|
13761 | |
- am__leading_dot=.
|
13762 | |
-else
|
13763 | |
- am__leading_dot=_
|
13764 | |
-fi
|
13765 | |
-rmdir .tst 2>/dev/null
|
13766 | |
-AC_SUBST([am__leading_dot])])
|
13767 | |
+if test $pkg_failed = yes; then
|
13768 | |
+ _PKG_SHORT_ERRORS_SUPPORTED
|
13769 | |
+ if test $_pkg_short_errors_supported = yes; then
|
13770 | |
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
|
13771 | |
+ else
|
13772 | |
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
13773 | |
+ fi
|
13774 | |
+ # Put the nasty error message in config.log where it belongs
|
13775 | |
+ echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
13776 | |
|
13777 | |
-# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
13778 | |
-# From Jim Meyering
|
13779 | |
+ ifelse([$4], , [AC_MSG_ERROR(dnl
|
13780 | |
+[Package requirements ($2) were not met:
|
13781 | |
|
13782 | |
-# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
|
13783 | |
-# Free Software Foundation, Inc.
|
13784 | |
-#
|
13785 | |
-# This file is free software; the Free Software Foundation
|
13786 | |
-# gives unlimited permission to copy and/or distribute it,
|
13787 | |
-# with or without modifications, as long as this notice is preserved.
|
13788 | |
+$$1_PKG_ERRORS
|
13789 | |
|
13790 | |
-# serial 4
|
13791 | |
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
13792 | |
+installed software in a non-standard prefix.
|
13793 | |
|
13794 | |
-AC_DEFUN([AM_MAINTAINER_MODE],
|
13795 | |
-[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
13796 | |
- dnl maintainer-mode is disabled by default
|
13797 | |
- AC_ARG_ENABLE(maintainer-mode,
|
13798 | |
-[ --enable-maintainer-mode enable make rules and dependencies not useful
|
13799 | |
- (and sometimes confusing) to the casual installer],
|
13800 | |
- USE_MAINTAINER_MODE=$enableval,
|
13801 | |
- USE_MAINTAINER_MODE=no)
|
13802 | |
- AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
13803 | |
- AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
|
13804 | |
- MAINT=$MAINTAINER_MODE_TRUE
|
13805 | |
- AC_SUBST(MAINT)dnl
|
13806 | |
-]
|
13807 | |
-)
|
13808 | |
+_PKG_TEXT
|
13809 | |
+])],
|
13810 | |
+ [AC_MSG_RESULT([no])
|
13811 | |
+ $4])
|
13812 | |
+elif test $pkg_failed = untried; then
|
13813 | |
+ ifelse([$4], , [AC_MSG_FAILURE(dnl
|
13814 | |
+[The pkg-config script could not be found or is too old. Make sure it
|
13815 | |
+is in your PATH or set the PKG_CONFIG environment variable to the full
|
13816 | |
+path to pkg-config.
|
13817 | |
|
13818 | |
-AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
|
13819 | |
+_PKG_TEXT
|
13820 | |
|
13821 | |
-# Check to see how 'make' treats includes. -*- Autoconf -*-
|
13822 | |
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
|
13823 | |
+ [$4])
|
13824 | |
+else
|
13825 | |
+ $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
13826 | |
+ $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
13827 | |
+ AC_MSG_RESULT([yes])
|
13828 | |
+ ifelse([$3], , :, [$3])
|
13829 | |
+fi[]dnl
|
13830 | |
+])# PKG_CHECK_MODULES
|
13831 | |
|
13832 | |
-# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
13833 | |
+# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
|
13834 | |
#
|
13835 | |
# This file is free software; the Free Software Foundation
|
13836 | |
# gives unlimited permission to copy and/or distribute it,
|
13837 | |
# with or without modifications, as long as this notice is preserved.
|
13838 | |
|
13839 | |
-# serial 3
|
13840 | |
-
|
13841 | |
-# AM_MAKE_INCLUDE()
|
13842 | |
-# -----------------
|
13843 | |
-# Check to see how make treats includes.
|
13844 | |
-AC_DEFUN([AM_MAKE_INCLUDE],
|
13845 | |
-[am_make=${MAKE-make}
|
13846 | |
-cat > confinc << 'END'
|
13847 | |
-am__doit:
|
13848 | |
- @echo done
|
13849 | |
-.PHONY: am__doit
|
13850 | |
-END
|
13851 | |
-# If we don't find an include directive, just comment out the code.
|
13852 | |
-AC_MSG_CHECKING([for style of include used by $am_make])
|
13853 | |
-am__include="#"
|
13854 | |
-am__quote=
|
13855 | |
-_am_result=none
|
13856 | |
-# First try GNU make style include.
|
13857 | |
-echo "include confinc" > confmf
|
13858 | |
-# We grep out `Entering directory' and `Leaving directory'
|
13859 | |
-# messages which can occur if `w' ends up in MAKEFLAGS.
|
13860 | |
-# In particular we don't look at `^make:' because GNU make might
|
13861 | |
-# be invoked under some other name (usually "gmake"), in which
|
13862 | |
-# case it prints its new name instead of `make'.
|
13863 | |
-if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
13864 | |
- am__include=include
|
13865 | |
- am__quote=
|
13866 | |
- _am_result=GNU
|
13867 | |
-fi
|
13868 | |
-# Now try BSD make style include.
|
13869 | |
-if test "$am__include" = "#"; then
|
13870 | |
- echo '.include "confinc"' > confmf
|
13871 | |
- if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
13872 | |
- am__include=.include
|
13873 | |
- am__quote="\""
|
13874 | |
- _am_result=BSD
|
13875 | |
- fi
|
13876 | |
-fi
|
13877 | |
-AC_SUBST([am__include])
|
13878 | |
-AC_SUBST([am__quote])
|
13879 | |
-AC_MSG_RESULT([$_am_result])
|
13880 | |
-rm -f confinc confmf
|
13881 | |
+# AM_AUTOMAKE_VERSION(VERSION)
|
13882 | |
+# ----------------------------
|
13883 | |
+# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
13884 | |
+# generated from the m4 files accompanying Automake X.Y.
|
13885 | |
+# (This private macro should not be called outside this file.)
|
13886 | |
+AC_DEFUN([AM_AUTOMAKE_VERSION],
|
13887 | |
+[am__api_version='1.10'
|
13888 | |
+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
13889 | |
+dnl require some minimum version. Point them to the right macro.
|
13890 | |
+m4_if([$1], [1.10], [],
|
13891 | |
+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
1065 |
AC_MSG_RESULT([$SED])
|
13892 | 1066 |
])
|
13893 | 1067 |
|
13894 | |
-# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
13895 | |
+# _AM_AUTOCONF_VERSION(VERSION)
|
13896 | |
+# -----------------------------
|
13897 | |
+# aclocal traces this macro to find the Autoconf version.
|
13898 | |
+# This is a private macro too. Using m4_define simplifies
|
13899 | |
+# the logic in aclocal, which can simply ignore this definition.
|
13900 | |
+m4_define([_AM_AUTOCONF_VERSION], [])
|
13901 | |
|
13902 | |
-# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
|
13903 | |
-# Free Software Foundation, Inc.
|
13904 | |
+# AM_SET_CURRENT_AUTOMAKE_VERSION
|
13905 | |
+# -------------------------------
|
13906 | |
+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
13907 | |
+# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
13908 | |
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
13909 | |
+[AM_AUTOMAKE_VERSION([1.10])dnl
|
13910 | |
+_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
|
13911 | |
+
|
13912 | |
+# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
13913 | |
+
|
13914 | |
+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
13915 | |
#
|
13916 | |
# This file is free software; the Free Software Foundation
|
13917 | |
# gives unlimited permission to copy and/or distribute it,
|
13918 | |
# with or without modifications, as long as this notice is preserved.
|
13919 | |
|
13920 | |
-# serial 5
|
13921 | |
-
|
13922 | |
-# AM_MISSING_PROG(NAME, PROGRAM)
|
13923 | |
-# ------------------------------
|
13924 | |
-AC_DEFUN([AM_MISSING_PROG],
|
13925 | |
-[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
13926 | |
-$1=${$1-"${am_missing_run}$2"}
|
13927 | |
-AC_SUBST($1)])
|
13928 | |
-
|
13929 | |
-
|
13930 | |
-# AM_MISSING_HAS_RUN
|
13931 | |
-# ------------------
|
13932 | |
-# Define MISSING if not defined so far and test if it supports --run.
|
13933 | |
-# If it does, set am_missing_run to use it, otherwise, to nothing.
|
13934 | |
-AC_DEFUN([AM_MISSING_HAS_RUN],
|
13935 | |
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
13936 | |
-AC_REQUIRE_AUX_FILE([missing])dnl
|
13937 | |
-test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
13938 | |
-# Use eval to expand $SHELL
|
13939 | |
-if eval "$MISSING --run true"; then
|
13940 | |
- am_missing_run="$MISSING --run "
|
13941 | |
-else
|
13942 | |
- am_missing_run=
|
13943 | |
- AC_MSG_WARN([`missing' script is too old or missing])
|
13944 | |
-fi
|
13945 | |
+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
13946 | |
+# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
13947 | |
+# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
13948 | |
+#
|
13949 | |
+# Of course, Automake must honor this variable whenever it calls a
|
13950 | |
+# tool from the auxiliary directory. The problem is that $srcdir (and
|
13951 | |
+# therefore $ac_aux_dir as well) can be either absolute or relative,
|
13952 | |
+# depending on how configure is run. This is pretty annoying, since
|
13953 | |
+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
13954 | |
+# source directory, any form will work fine, but in subdirectories a
|
13955 | |
+# relative path needs to be adjusted first.
|
13956 | |
+#
|
13957 | |
+# $ac_aux_dir/missing
|
13958 | |
+# fails when called from a subdirectory if $ac_aux_dir is relative
|
13959 | |
+# $top_srcdir/$ac_aux_dir/missing
|
13960 | |
+# fails if $ac_aux_dir is absolute,
|
13961 | |
+# fails when called from a subdirectory in a VPATH build with
|
13962 | |
+# a relative $ac_aux_dir
|
13963 | |
+#
|
13964 | |
+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
13965 | |
+# are both prefixed by $srcdir. In an in-source build this is usually
|
13966 | |
+# harmless because $srcdir is `.', but things will broke when you
|
13967 | |
+# start a VPATH build or use an absolute $srcdir.
|
13968 | |
+#
|
13969 | |
+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
13970 | |
+# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
13971 | |
+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
13972 | |
+# and then we would define $MISSING as
|
13973 | |
+# MISSING="\${SHELL} $am_aux_dir/missing"
|
13974 | |
+# This will work as long as MISSING is not called from configure, because
|
13975 | |
+# unfortunately $(top_srcdir) has no meaning in configure.
|
13976 | |
+# However there are other variables, like CC, which are often used in
|
13977 | |
+# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
13978 | |
+#
|
13979 | |
+# Another solution, used here, is to always expand $ac_aux_dir to an
|
13980 | |
+# absolute PATH. The drawback is that using absolute paths prevent a
|
13981 | |
+# configured tree to be moved without reconfiguration.
|
13982 | |
+
|
13983 | |
+AC_DEFUN([AM_AUX_DIR_EXPAND],
|
13984 | |
+[dnl Rely on autoconf to set up CDPATH properly.
|
13985 | |
+AC_PREREQ([2.50])dnl
|
13986 | |
+# expand $ac_aux_dir to an absolute path
|
13987 | |
+am_aux_dir=`cd $ac_aux_dir && pwd`
|
13988 | |
])
|
13989 | |
|
13990 | |
-# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
13991 | |
+
|
13992 | |
+# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
|
13993 | |
+# Free Software Foundation, Inc.
|
13994 | |
#
|
13995 | |
# This file is free software; the Free Software Foundation
|
13996 | |
# gives unlimited permission to copy and/or distribute it,
|
13997 | |
# with or without modifications, as long as this notice is preserved.
|
13998 | |
|
13999 | |
-# AM_PROG_MKDIR_P
|
14000 | |
-# ---------------
|
14001 | |
-# Check for `mkdir -p'.
|
14002 | |
-AC_DEFUN([AM_PROG_MKDIR_P],
|
14003 | |
-[AC_PREREQ([2.60])dnl
|
14004 | |
-AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
14005 | |
-dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
|
14006 | |
-dnl while keeping a definition of mkdir_p for backward compatibility.
|
14007 | |
-dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
|
14008 | |
-dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
|
14009 | |
-dnl Makefile.ins that do not define MKDIR_P, so we do our own
|
14010 | |
-dnl adjustment using top_builddir (which is defined more often than
|
14011 | |
-dnl MKDIR_P).
|
14012 | |
-AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
|
14013 | |
-case $mkdir_p in
|
14014 | |
- [[\\/$]]* | ?:[[\\/]]*) ;;
|
14015 | |
- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
14016 | |
-esac
|
14017 | |
+# serial 4
|
14018 | |
+
|
14019 | |
+# This was merged into AC_PROG_CC in Autoconf.
|
14020 | |
+
|
14021 | |
+AU_DEFUN([AM_PROG_CC_STDC],
|
14022 | |
+[AC_PROG_CC
|
14023 | |
+AC_DIAGNOSE([obsolete], [$0:
|
14024 | |
+ your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
|
14025 | |
+ `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
|
14026 | |
+ you adjust the code. You can also remove the above call to
|
14027 | |
+ AC_PROG_CC if you already called it elsewhere.])
|
14028 | |
+am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
|
14029 | |
])
|
14030 | |
+AU_DEFUN([fp_PROG_CC_STDC])
|
14031 | |
|
14032 | |
-# Helper functions for option handling. -*- Autoconf -*-
|
14033 | |
+# AM_CONDITIONAL -*- Autoconf -*-
|
14034 | |
|
14035 | |
-# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
14036 | |
+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
|
14037 | |
+# Free Software Foundation, Inc.
|
14038 | |
#
|
14039 | |
# This file is free software; the Free Software Foundation
|
14040 | |
# gives unlimited permission to copy and/or distribute it,
|
14041 | |
# with or without modifications, as long as this notice is preserved.
|
14042 | |
|
14043 | |
-# serial 3
|
14044 | |
-
|
14045 | |
-# _AM_MANGLE_OPTION(NAME)
|
14046 | |
-# -----------------------
|
14047 | |
-AC_DEFUN([_AM_MANGLE_OPTION],
|
14048 | |
-[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
14049 | |
-
|
14050 | |
-# _AM_SET_OPTION(NAME)
|
14051 | |
-# ------------------------------
|
14052 | |
-# Set option NAME. Presently that only means defining a flag for this option.
|
14053 | |
-AC_DEFUN([_AM_SET_OPTION],
|
14054 | |
-[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
14055 | |
-
|
14056 | |
-# _AM_SET_OPTIONS(OPTIONS)
|
14057 | |
-# ----------------------------------
|
14058 | |
-# OPTIONS is a space-separated list of Automake options.
|
14059 | |
-AC_DEFUN([_AM_SET_OPTIONS],
|
14060 | |
-[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
14061 | |
+# serial 8
|
14062 | |
|
14063 | |
-# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
14064 | |
-# -------------------------------------------
|
14065 | |
-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
14066 | |
-AC_DEFUN([_AM_IF_OPTION],
|
14067 | |
-[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
14068 | |
+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
14069 | |
+# -------------------------------------
|
14070 | |
+# Define a conditional.
|
14071 | |
+AC_DEFUN([AM_CONDITIONAL],
|
14072 | |
+[AC_PREREQ(2.52)dnl
|
14073 | |
+ ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
14074 | |
+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
14075 | |
+AC_SUBST([$1_TRUE])dnl
|
14076 | |
+AC_SUBST([$1_FALSE])dnl
|
14077 | |
+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
14078 | |
+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
14079 | |
+if $2; then
|
14080 | |
+ $1_TRUE=
|
14081 | |
+ $1_FALSE='#'
|
14082 | |
+else
|
14083 | |
+ $1_TRUE='#'
|
14084 | |
+ $1_FALSE=
|
14085 | |
+fi
|
14086 | |
+AC_CONFIG_COMMANDS_PRE(
|
14087 | |
+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
14088 | |
+ AC_MSG_ERROR([[conditional "$1" was never defined.
|
14089 | |
+Usually this means the macro was only invoked conditionally.]])
|
14090 | |
+fi])])
|
14091 | |
|
14092 | |
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
14093 | |
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
14094 | |
# Free Software Foundation, Inc.
|
14095 | |
#
|
14096 | |
# This file is free software; the Free Software Foundation
|
14097 | |
# gives unlimited permission to copy and/or distribute it,
|
14098 | |
# with or without modifications, as long as this notice is preserved.
|
14099 | |
|
14100 | |
-# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
14101 | |
-# ---------------------------------------------------------------------------
|
14102 | |
-# Adds support for distributing Python modules and packages. To
|
14103 | |
-# install modules, copy them to $(pythondir), using the python_PYTHON
|
14104 | |
-# automake variable. To install a package with the same name as the
|
14105 | |
-# automake package, install to $(pkgpythondir), or use the
|
14106 | |
-# pkgpython_PYTHON automake variable.
|
14107 | |
-#
|
14108 | |
-# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
|
14109 | |
-# locations to install python extension modules (shared libraries).
|
14110 | |
-# Another macro is required to find the appropriate flags to compile
|
14111 | |
-# extension modules.
|
14112 | |
-#
|
14113 | |
-# If your package is configured with a different prefix to python,
|
14114 | |
-# users will have to add the install directory to the PYTHONPATH
|
14115 | |
-# environment variable, or create a .pth file (see the python
|
14116 | |
-# documentation for details).
|
14117 | |
+# serial 9
|
14118 | |
+
|
14119 | |
+# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
14120 | |
+# written in clear, in which case automake, when reading aclocal.m4,
|
14121 | |
+# will think it sees a *use*, and therefore will trigger all it's
|
14122 | |
+# C support machinery. Also note that it means that autoscan, seeing
|
14123 | |
+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
14124 | |
+
|
14125 | |
+
|
14126 | |
+# _AM_DEPENDENCIES(NAME)
|
14127 | |
+# ----------------------
|
14128 | |
+# See how the compiler implements dependency checking.
|
14129 | |
+# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
14130 | |
+# We try a few techniques and use that to set a single cache variable.
|
14131 | |
#
|
14132 | |
-# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
|
14133 | |
-# cause an error if the version of python installed on the system
|
14134 | |
-# doesn't meet the requirement. MINIMUM-VERSION should consist of
|
14135 | |
-# numbers and dots only.
|
14136 | |
-AC_DEFUN([AM_PATH_PYTHON],
|
14137 | |
- [
|
14138 | |
- dnl Find a Python interpreter. Python versions prior to 1.5 are not
|
14139 | |
- dnl supported because the default installation locations changed from
|
14140 | |
- dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
|
14141 | |
- dnl in 1.5.
|
14142 | |
- m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
|
14143 | |
- [python python2 python2.5 python2.4 python2.3 python2.2 dnl
|
14144 | |
-python2.1 python2.0 python1.6 python1.5])
|
14145 | |
+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
14146 | |
+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
14147 | |
+# dependency, and given that the user is not expected to run this macro,
|
14148 | |
+# just rely on AC_PROG_CC.
|
14149 | |
+AC_DEFUN([_AM_DEPENDENCIES],
|
14150 | |
+[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
14151 | |
+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
14152 | |
+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
14153 | |
+AC_REQUIRE([AM_DEP_TRACK])dnl
|
14154 | |
|
14155 | |
- m4_if([$1],[],[
|
14156 | |
- dnl No version check is needed.
|
14157 | |
- # Find any Python interpreter.
|
14158 | |
- if test -z "$PYTHON"; then
|
14159 | |
- AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
|
14160 | |
- fi
|
14161 | |
- am_display_PYTHON=python
|
14162 | |
- ], [
|
14163 | |
- dnl A version check is needed.
|
14164 | |
- if test -n "$PYTHON"; then
|
14165 | |
- # If the user set $PYTHON, use it and don't search something else.
|
14166 | |
- AC_MSG_CHECKING([whether $PYTHON version >= $1])
|
14167 | |
- AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
|
14168 | |
- [AC_MSG_RESULT(yes)],
|
14169 | |
- [AC_MSG_ERROR(too old)])
|
14170 | |
- am_display_PYTHON=$PYTHON
|
14171 | |
- else
|
14172 | |
- # Otherwise, try each interpreter until we find one that satisfies
|
14173 | |
- # VERSION.
|
14174 | |
- AC_CACHE_CHECK([for a Python interpreter with version >= $1],
|
14175 | |
- [am_cv_pathless_PYTHON],[
|
14176 | |
- for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
|
14177 | |
- test "$am_cv_pathless_PYTHON" = none && break
|
14178 | |
- AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
|
14179 | |
- done])
|
14180 | |
- # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
|
14181 | |
- if test "$am_cv_pathless_PYTHON" = none; then
|
14182 | |
- PYTHON=:
|
14183 | |
+ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
14184 | |
+ [$1], CXX, [depcc="$CXX" am_compiler_list=],
|
14185 | |
+ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
14186 | |
+ [$1], UPC, [depcc="$UPC" am_compiler_list=],
|
14187 | |
+ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
14188 | |
+ [depcc="$$1" am_compiler_list=])
|
14189 | |
+
|
14190 | |
+AC_CACHE_CHECK([dependency style of $depcc],
|
14191 | |
+ [am_cv_$1_dependencies_compiler_type],
|
14192 | |
+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
14193 | |
+ # We make a subdir and do the tests there. Otherwise we can end up
|
14194 | |
+ # making bogus files that we don't know about and never remove. For
|
14195 | |
+ # instance it was reported that on HP-UX the gcc test will end up
|
14196 | |
+ # making a dummy file named `D' -- because `-MD' means `put the output
|
14197 | |
+ # in D'.
|
14198 | |
+ mkdir conftest.dir
|
14199 | |
+ # Copy depcomp to subdir because otherwise we won't find it if we're
|
14200 | |
+ # using a relative directory.
|
14201 | |
+ cp "$am_depcomp" conftest.dir
|
14202 | |
+ cd conftest.dir
|
14203 | |
+ # We will build objects and dependencies in a subdirectory because
|
14204 | |
+ # it helps to detect inapplicable dependency modes. For instance
|
14205 | |
+ # both Tru64's cc and ICC support -MD to output dependencies as a
|
14206 | |
+ # side effect of compilation, but ICC will put the dependencies in
|
14207 | |
+ # the current directory while Tru64 will put them in the object
|
14208 | |
+ # directory.
|
14209 | |
+ mkdir sub
|
14210 | |
+
|
14211 | |
+ am_cv_$1_dependencies_compiler_type=none
|
14212 | |
+ if test "$am_compiler_list" = ""; then
|
14213 | |
+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
14214 | |
+ fi
|
14215 | |
+ for depmode in $am_compiler_list; do
|
14216 | |
+ # Setup a source with many dependencies, because some compilers
|
14217 | |
+ # like to wrap large dependency lists on column 80 (with \), and
|
14218 | |
+ # we should not choose a depcomp mode which is confused by this.
|
14219 | |
+ #
|
14220 | |
+ # We need to recreate these files for each test, as the compiler may
|
14221 | |
+ # overwrite some of them when testing with obscure command lines.
|
14222 | |
+ # This happens at least with the AIX C compiler.
|
14223 | |
+ : > sub/conftest.c
|
14224 | |
+ for i in 1 2 3 4 5 6; do
|
14225 | |
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
14226 | |
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
14227 | |
+ # Solaris 8's {/usr,}/bin/sh.
|
14228 | |
+ touch sub/conftst$i.h
|
14229 | |
+ done
|
14230 | |
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
14231 | |
+
|
14232 | |
+ case $depmode in
|
14233 | |
+ nosideeffect)
|
14234 | |
+ # after this tag, mechanisms are not by side-effect, so they'll
|
14235 | |
+ # only be used when explicitly requested
|
14236 | |
+ if test "x$enable_dependency_tracking" = xyes; then
|
14237 | |
+ continue
|
14238 | |
else
|
14239 | |
- AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
|
14240 | |
+ break
|
14241 | |
+ fi
|
14242 | |
+ ;;
|
14243 | |
+ none) break ;;
|
14244 | |
+ esac
|
14245 | |
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
14246 | |
+ # mode. It turns out that the SunPro C++ compiler does not properly
|
14247 | |
+ # handle `-M -o', and we need to detect this.
|
14248 | |
+ if depmode=$depmode \
|
14249 | |
+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
14250 | |
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
14251 | |
+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
14252 | |
+ >/dev/null 2>conftest.err &&
|
14253 | |
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
14254 | |
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
14255 | |
+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
14256 | |
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
14257 | |
+ # icc doesn't choke on unknown options, it will just issue warnings
|
14258 | |
+ # or remarks (even with -Werror). So we grep stderr for any message
|
14259 | |
+ # that says an option was ignored or not supported.
|
14260 | |
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
|
14261 | |
+ # icc: Command line warning: ignoring option '-M'; no argument required
|
14262 | |
+ # The diagnosis changed in icc 8.0:
|
14263 | |
+ # icc: Command line remark: option '-MP' not supported
|
14264 | |
+ if (grep 'ignoring option' conftest.err ||
|
14265 | |
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
14266 | |
+ am_cv_$1_dependencies_compiler_type=$depmode
|
14267 | |
+ break
|
14268 | |
fi
|
14269 | |
- am_display_PYTHON=$am_cv_pathless_PYTHON
|
14270 | |
fi
|
14271 | |
- ])
|
14272 | |
+ done
|
14273 | |
|
14274 | |
- if test "$PYTHON" = :; then
|
14275 | |
- dnl Run any user-specified action, or abort.
|
14276 | |
- m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
|
14277 | |
- else
|
14278 | |
+ cd ..
|
14279 | |
+ rm -rf conftest.dir
|
14280 | |
+else
|
14281 | |
+ am_cv_$1_dependencies_compiler_type=none
|
14282 | |
+fi
|
14283 | |
+])
|
14284 | |
+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
14285 | |
+AM_CONDITIONAL([am__fastdep$1], [
|
14286 | |
+ test "x$enable_dependency_tracking" != xno \
|
14287 | |
+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
14288 | |
+])
|
14289 | |
|
14290 | |
- dnl Query Python for its version number. Getting [:3] seems to be
|
14291 | |
- dnl the best way to do this; it's what "site.py" does in the standard
|
14292 | |
- dnl library.
|
14293 | |
|
14294 | |
- AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
|
14295 | |
- [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
|
14296 | |
- AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
|
14297 | |
+# AM_SET_DEPDIR
|
14298 | |
+# -------------
|
14299 | |
+# Choose a directory name for dependency files.
|
14300 | |
+# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
14301 | |
+AC_DEFUN([AM_SET_DEPDIR],
|
14302 | |
+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
14303 | |
+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
14304 | |
+])
|
14305 | |
|
14306 | |
- dnl Use the values of $prefix and $exec_prefix for the corresponding
|
14307 | |
- dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
|
14308 | |
- dnl distinct variables so they can be overridden if need be. However,
|
14309 | |
- dnl general consensus is that you shouldn't need this ability.
|
14310 | |
|
14311 | |
- AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
|
14312 | |
- AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
|
14313 | |
+# AM_DEP_TRACK
|
14314 | |
+# ------------
|
14315 | |
+AC_DEFUN([AM_DEP_TRACK],
|
14316 | |
+[AC_ARG_ENABLE(dependency-tracking,
|
14317 | |
+[ --disable-dependency-tracking speeds up one-time build
|
14318 | |
+ --enable-dependency-tracking do not reject slow dependency extractors])
|
14319 | |
+if test "x$enable_dependency_tracking" != xno; then
|
14320 | |
+ am_depcomp="$ac_aux_dir/depcomp"
|
14321 | |
+ AMDEPBACKSLASH='\'
|
14322 | |
+fi
|
14323 | |
+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
14324 | |
+AC_SUBST([AMDEPBACKSLASH])dnl
|
14325 | |
+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
14326 | |
+])
|
14327 | |
|
14328 | |
- dnl At times (like when building shared libraries) you may want
|
14329 | |
- dnl to know which OS platform Python thinks this is.
|
14330 | |
+# Generate code to set up dependency tracking. -*- Autoconf -*-
|
14331 | |
|
14332 | |
- AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
|
14333 | |
- [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
|
14334 | |
- AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
|
14335 | |
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
14336 | |
+# Free Software Foundation, Inc.
|
14337 | |
+#
|
14338 | |
+# This file is free software; the Free Software Foundation
|
14339 | |
+# gives unlimited permission to copy and/or distribute it,
|
14340 | |
+# with or without modifications, as long as this notice is preserved.
|
14341 | |
|
14342 | |
+#serial 3
|
14343 | |
|
14344 | |
- dnl Set up 4 directories:
|
14345 | |
+# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
14346 | |
+# ------------------------------
|
14347 | |
+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
14348 | |
+[for mf in $CONFIG_FILES; do
|
14349 | |
+ # Strip MF so we end up with the name of the file.
|
14350 | |
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
|
14351 | |
+ # Check whether this is an Automake generated Makefile or not.
|
14352 | |
+ # We used to match only the files named `Makefile.in', but
|
14353 | |
+ # some people rename them; so instead we look at the file content.
|
14354 | |
+ # Grep'ing the first line is not enough: some people post-process
|
14355 | |
+ # each Makefile.in and add a new line on top of each file to say so.
|
14356 | |
+ # Grep'ing the whole file is not good either: AIX grep has a line
|
14357 | |
+ # limit of 2048, but all sed's we know have understand at least 4000.
|
14358 | |
+ if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
|
14359 | |
+ dirpart=`AS_DIRNAME("$mf")`
|
14360 | |
+ else
|
14361 | |
+ continue
|
14362 | |
+ fi
|
14363 | |
+ # Extract the definition of DEPDIR, am__include, and am__quote
|
14364 | |
+ # from the Makefile without running `make'.
|
14365 | |
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
14366 | |
+ test -z "$DEPDIR" && continue
|
14367 | |
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
14368 | |
+ test -z "am__include" && continue
|
14369 | |
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
14370 | |
+ # When using ansi2knr, U may be empty or an underscore; expand it
|
14371 | |
+ U=`sed -n 's/^U = //p' < "$mf"`
|
14372 | |
+ # Find all dependency output files, they are included files with
|
14373 | |
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
|
14374 | |
+ # simplest approach to changing $(DEPDIR) to its actual value in the
|
14375 | |
+ # expansion.
|
14376 | |
+ for file in `sed -n "
|
14377 | |
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
14378 | |
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
14379 | |
+ # Make sure the directory exists.
|
14380 | |
+ test -f "$dirpart/$file" && continue
|
14381 | |
+ fdir=`AS_DIRNAME(["$file"])`
|
14382 | |
+ AS_MKDIR_P([$dirpart/$fdir])
|
14383 | |
+ # echo "creating $dirpart/$file"
|
14384 | |
+ echo '# dummy' > "$dirpart/$file"
|
14385 | |
+ done
|
14386 | |
+done
|
14387 | |
+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
14388 | |
|
14389 | |
- dnl pythondir -- where to install python scripts. This is the
|
14390 | |
- dnl site-packages directory, not the python standard library
|
14391 | |
- dnl directory like in previous automake betas. This behavior
|
14392 | |
- dnl is more consistent with lispdir.m4 for example.
|
14393 | |
- dnl Query distutils for this directory. distutils does not exist in
|
14394 | |
- dnl Python 1.5, so we fall back to the hardcoded directory if it
|
14395 | |
- dnl doesn't work.
|
14396 | |
- AC_CACHE_CHECK([for $am_display_PYTHON script directory],
|
14397 | |
- [am_cv_python_pythondir],
|
14398 | |
- [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
|
14399 | |
- echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
|
14400 | |
- AC_SUBST([pythondir], [$am_cv_python_pythondir])
|
14401 | |
|
14402 | |
- dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
|
14403 | |
- dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
|
14404 | |
- dnl more consistent with the rest of automake.
|
14405 | |
+# AM_OUTPUT_DEPENDENCY_COMMANDS
|
14406 | |
+# -----------------------------
|
14407 | |
+# This macro should only be invoked once -- use via AC_REQUIRE.
|
14408 | |
+#
|
14409 | |
+# This code is only required when automatic dependency tracking
|
14410 | |
+# is enabled. FIXME. This creates each `.P' file that we will
|
14411 | |
+# need in order to bootstrap the dependency handling code.
|
14412 | |
+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
14413 | |
+[AC_CONFIG_COMMANDS([depfiles],
|
14414 | |
+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
14415 | |
+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
14416 | |
+])
|
14417 | |
|
14418 | |
- AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
|
14419 | |
+# Do all the work for Automake. -*- Autoconf -*-
|
14420 | |
|
14421 | |
- dnl pyexecdir -- directory for installing python extension modules
|
14422 | |
- dnl (shared libraries)
|
14423 | |
- dnl Query distutils for this directory. distutils does not exist in
|
14424 | |
- dnl Python 1.5, so we fall back to the hardcoded directory if it
|
14425 | |
- dnl doesn't work.
|
14426 | |
- AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
|
14427 | |
- [am_cv_python_pyexecdir],
|
14428 | |
- [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
|
14429 | |
- echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
|
14430 | |
- AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
|
14431 | |
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
14432 | |
+# 2005, 2006 Free Software Foundation, Inc.
|
14433 | |
+#
|
14434 | |
+# This file is free software; the Free Software Foundation
|
14435 | |
+# gives unlimited permission to copy and/or distribute it,
|
14436 | |
+# with or without modifications, as long as this notice is preserved.
|
14437 | |
|
14438 | |
- dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
|
14439 | |
+# serial 12
|
14440 | |
|
14441 | |
- AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
|
14442 | |
+# This macro actually does too much. Some checks are only needed if
|
14443 | |
+# your package does certain things. But this isn't really a big deal.
|
14444 | |
|
14445 | |
- dnl Run any user-specified action.
|
14446 | |
- $2
|
14447 | |
+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
14448 | |
+# AM_INIT_AUTOMAKE([OPTIONS])
|
14449 | |
+# -----------------------------------------------
|
14450 | |
+# The call with PACKAGE and VERSION arguments is the old style
|
14451 | |
+# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
14452 | |
+# and VERSION should now be passed to AC_INIT and removed from
|
14453 | |
+# the call to AM_INIT_AUTOMAKE.
|
14454 | |
+# We support both call styles for the transition. After
|
14455 | |
+# the next Automake release, Autoconf can make the AC_INIT
|
14456 | |
+# arguments mandatory, and then we can depend on a new Autoconf
|
14457 | |
+# release and drop the old call support.
|
14458 | |
+AC_DEFUN([AM_INIT_AUTOMAKE],
|
14459 | |
+[AC_PREREQ([2.60])dnl
|
14460 | |
+dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
14461 | |
+dnl the ones we care about.
|
14462 | |
+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
14463 | |
+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
14464 | |
+AC_REQUIRE([AC_PROG_INSTALL])dnl
|
14465 | |
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
14466 | |
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
14467 | |
+ # is not polluted with repeated "-I."
|
14468 | |
+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
14469 | |
+ # test to see if srcdir already configured
|
14470 | |
+ if test -f $srcdir/config.status; then
|
14471 | |
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
14472 | |
+ fi
|
14473 | |
+fi
|
14474 | |
+
|
14475 | |
+# test whether we have cygpath
|
14476 | |
+if test -z "$CYGPATH_W"; then
|
14477 | |
+ if (cygpath --version) >/dev/null 2>/dev/null; then
|
14478 | |
+ CYGPATH_W='cygpath -w'
|
14479 | |
+ else
|
14480 | |
+ CYGPATH_W=echo
|
14481 | |
fi
|
14482 | |
+fi
|
14483 | |
+AC_SUBST([CYGPATH_W])
|
14484 | |
+
|
14485 | |
+# Define the identity of the package.
|
14486 | |
+dnl Distinguish between old-style and new-style calls.
|
14487 | |
+m4_ifval([$2],
|
14488 | |
+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
14489 | |
+ AC_SUBST([PACKAGE], [$1])dnl
|
14490 | |
+ AC_SUBST([VERSION], [$2])],
|
14491 | |
+[_AM_SET_OPTIONS([$1])dnl
|
14492 | |
+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
14493 | |
+m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
|
14494 | |
+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
14495 | |
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
14496 | |
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
14497 | |
+
|
14498 | |
+_AM_IF_OPTION([no-define],,
|
14499 | |
+[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
14500 | |
+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
14501 | |
|
14502 | |
+# Some tools Automake needs.
|
14503 | |
+AC_REQUIRE([AM_SANITY_CHECK])dnl
|
14504 | |
+AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
14505 | |
+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
14506 | |
+AM_MISSING_PROG(AUTOCONF, autoconf)
|
14507 | |
+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
14508 | |
+AM_MISSING_PROG(AUTOHEADER, autoheader)
|
14509 | |
+AM_MISSING_PROG(MAKEINFO, makeinfo)
|
14510 | |
+AM_PROG_INSTALL_SH
|
14511 | |
+AM_PROG_INSTALL_STRIP
|
14512 | |
+AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
14513 | |
+# We need awk for the "check" target. The system "awk" is bad on
|
14514 | |
+# some platforms.
|
14515 | |
+AC_REQUIRE([AC_PROG_AWK])dnl
|
14516 | |
+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
14517 | |
+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
14518 | |
+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
14519 | |
+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
14520 | |
+ [_AM_PROG_TAR([v7])])])
|
14521 | |
+_AM_IF_OPTION([no-dependencies],,
|
14522 | |
+[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
14523 | |
+ [_AM_DEPENDENCIES(CC)],
|
14524 | |
+ [define([AC_PROG_CC],
|
14525 | |
+ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
14526 | |
+AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
14527 | |
+ [_AM_DEPENDENCIES(CXX)],
|
14528 | |
+ [define([AC_PROG_CXX],
|
14529 | |
+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
14530 | |
+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
14531 | |
+ [_AM_DEPENDENCIES(OBJC)],
|
14532 | |
+ [define([AC_PROG_OBJC],
|
14533 | |
+ defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
|
14534 | |
+])
|
14535 | |
])
|
14536 | |
|
14537 | |
|
14538 | |
-# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
|
14539 | |
-# ---------------------------------------------------------------------------
|
14540 | |
-# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
|
14541 | |
-# Run ACTION-IF-FALSE otherwise.
|
14542 | |
-# This test uses sys.hexversion instead of the string equivalent (first
|
14543 | |
-# word of sys.version), in order to cope with versions such as 2.2c1.
|
14544 | |
-# hexversion has been introduced in Python 1.5.2; it's probably not
|
14545 | |
-# worth to support older versions (1.5.1 was released on October 31, 1998).
|
14546 | |
-AC_DEFUN([AM_PYTHON_CHECK_VERSION],
|
14547 | |
- [prog="import sys, string
|
14548 | |
-# split strings by '.' and convert to numeric. Append some zeros
|
14549 | |
-# because we need at least 4 digits for the hex conversion.
|
14550 | |
-minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
|
14551 | |
-minverhex = 0
|
14552 | |
-for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
|
14553 | |
-sys.exit(sys.hexversion < minverhex)"
|
14554 | |
- AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
|
14555 | |
+# When config.status generates a header, we must update the stamp-h file.
|
14556 | |
+# This file resides in the same directory as the config header
|
14557 | |
+# that is generated. The stamp files are numbered to have different names.
|
14558 | |
+
|
14559 | |
+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
14560 | |
+# loop where config.status creates the headers, so we can generate
|
14561 | |
+# our stamp files there.
|
14562 | |
+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
14563 | |
+[# Compute $1's index in $config_headers.
|
14564 | |
+_am_stamp_count=1
|
14565 | |
+for _am_header in $config_headers :; do
|
14566 | |
+ case $_am_header in
|
14567 | |
+ $1 | $1:* )
|
14568 | |
+ break ;;
|
14569 | |
+ * )
|
14570 | |
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
14571 | |
+ esac
|
14572 | |
+done
|
14573 | |
+echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
|
14574 | |
|
14575 | |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
14576 | |
#
|
14577 | |
@@ -7673,828 +7922,579 @@
|
14578 | |
# gives unlimited permission to copy and/or distribute it,
|
14579 | |
# with or without modifications, as long as this notice is preserved.
|
14580 | |
|
14581 | |
-# AM_RUN_LOG(COMMAND)
|
14582 | |
-# -------------------
|
14583 | |
-# Run COMMAND, save the exit status in ac_status, and log it.
|
14584 | |
-# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
|
14585 | |
-AC_DEFUN([AM_RUN_LOG],
|
14586 | |
-[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
|
14587 | |
- ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
|
14588 | |
- ac_status=$?
|
14589 | |
- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
14590 | |
- (exit $ac_status); }])
|
14591 | |
-
|
14592 | |
-# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
14593 | |
+# AM_PROG_INSTALL_SH
|
14594 | |
+# ------------------
|
14595 | |
+# Define $install_sh.
|
14596 | |
+AC_DEFUN([AM_PROG_INSTALL_SH],
|
14597 | |
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
14598 | |
+install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
|
14599 | |
+AC_SUBST(install_sh)])
|
14600 | |
|
14601 | |
-# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
14602 | |
-# Free Software Foundation, Inc.
|
14603 | |
+# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
14604 | |
#
|
14605 | |
# This file is free software; the Free Software Foundation
|
14606 | |
# gives unlimited permission to copy and/or distribute it,
|
14607 | |
# with or without modifications, as long as this notice is preserved.
|
14608 | |
|
14609 | |
-# serial 4
|
14610 | |
-
|
14611 | |
-# AM_SANITY_CHECK
|
14612 | |
-# ---------------
|
14613 | |
-AC_DEFUN([AM_SANITY_CHECK],
|
14614 | |
-[AC_MSG_CHECKING([whether build environment is sane])
|
14615 | |
-# Just in case
|
14616 | |
-sleep 1
|
14617 | |
-echo timestamp > conftest.file
|
14618 | |
-# Do `set' in a subshell so we don't clobber the current shell's
|
14619 | |
-# arguments. Must try -L first in case configure is actually a
|
14620 | |
-# symlink; some systems play weird games with the mod time of symlinks
|
14621 | |
-# (eg FreeBSD returns the mod time of the symlink's containing
|
14622 | |
-# directory).
|
14623 | |
-if (
|
14624 | |
- set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
14625 | |
- if test "$[*]" = "X"; then
|
14626 | |
- # -L didn't work.
|
14627 | |
- set X `ls -t $srcdir/configure conftest.file`
|
14628 | |
- fi
|
14629 | |
- rm -f conftest.file
|
14630 | |
- if test "$[*]" != "X $srcdir/configure conftest.file" \
|
14631 | |
- && test "$[*]" != "X conftest.file $srcdir/configure"; then
|
14632 | |
-
|
14633 | |
- # If neither matched, then we have a broken ls. This can happen
|
14634 | |
- # if, for instance, CONFIG_SHELL is bash and it inherits a
|
14635 | |
- # broken ls alias from the environment. This has actually
|
14636 | |
- # happened. Such a system could not be considered "sane".
|
14637 | |
- AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
14638 | |
-alias in your environment])
|
14639 | |
- fi
|
14640 | |
+# serial 2
|
14641 | |
|
14642 | |
- test "$[2]" = conftest.file
|
14643 | |
- )
|
14644 | |
-then
|
14645 | |
- # Ok.
|
14646 | |
- :
|
14647 | |
+# Check whether the underlying file-system supports filenames
|
14648 | |
+# with a leading dot. For instance MS-DOS doesn't.
|
14649 | |
+AC_DEFUN([AM_SET_LEADING_DOT],
|
14650 | |
+[rm -rf .tst 2>/dev/null
|
14651 | |
+mkdir .tst 2>/dev/null
|
14652 | |
+if test -d .tst; then
|
14653 | |
+ am__leading_dot=.
|
14654 | |
else
|
14655 | |
- AC_MSG_ERROR([newly created file is older than distributed files!
|
14656 | |
-Check your system clock])
|
14657 | |
-fi
|
14658 | |
-AC_MSG_RESULT(yes)])
|
14659 | |
-
|
14660 | |
-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
14661 | |
-#
|
14662 | |
-# This file is free software; the Free Software Foundation
|
14663 | |
-# gives unlimited permission to copy and/or distribute it,
|
14664 | |
-# with or without modifications, as long as this notice is preserved.
|
14665 | |
-
|
14666 | |
-# AM_PROG_INSTALL_STRIP
|
14667 | |
-# ---------------------
|
14668 | |
-# One issue with vendor `install' (even GNU) is that you can't
|
14669 | |
-# specify the program used to strip binaries. This is especially
|
14670 | |
-# annoying in cross-compiling environments, where the build's strip
|
14671 | |
-# is unlikely to handle the host's binaries.
|
14672 | |
-# Fortunately install-sh will honor a STRIPPROG variable, so we
|
14673 | |
-# always use install-sh in `make install-strip', and initialize
|
14674 | |
-# STRIPPROG with the value of the STRIP variable (set by the user).
|
14675 | |
-AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
14676 | |
-[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
14677 | |
-# Installed binaries are usually stripped using `strip' when the user
|
14678 | |
-# run `make install-strip'. However `strip' might not be the right
|
14679 | |
-# tool to use in cross-compilation environments, therefore Automake
|
14680 | |
-# will honor the `STRIP' environment variable to overrule this program.
|
14681 | |
-dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
14682 | |
-if test "$cross_compiling" != no; then
|
14683 | |
- AC_CHECK_TOOL([STRIP], [strip], :)
|
14684 | |
+ am__leading_dot=_
|
14685 | |
fi
|
14686 | |
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
14687 | |
-AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
14688 | |
-
|
14689 | |
-# Copyright (C) 2006 Free Software Foundation, Inc.
|
14690 | |
-#
|
14691 | |
-# This file is free software; the Free Software Foundation
|
14692 | |
-# gives unlimited permission to copy and/or distribute it,
|
14693 | |
-# with or without modifications, as long as this notice is preserved.
|
14694 | |
-
|
14695 | |
-# _AM_SUBST_NOTMAKE(VARIABLE)
|
14696 | |
-# ---------------------------
|
14697 | |
-# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
|
14698 | |
-# This macro is traced by Automake.
|
14699 | |
-AC_DEFUN([_AM_SUBST_NOTMAKE])
|
14700 | |
+rmdir .tst 2>/dev/null
|
14701 | |
+AC_SUBST([am__leading_dot])])
|
14702 | |
|
14703 | |
-# Check how to create a tarball. -*- Autoconf -*-
|
14704 | |
+# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
14705 | |
+# From Jim Meyering
|
14706 | |
|
14707 | |
-# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
14708 | |
+# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
|
14709 | |
+# Free Software Foundation, Inc.
|
14710 | |
#
|
14711 | |
# This file is free software; the Free Software Foundation
|
14712 | |
# gives unlimited permission to copy and/or distribute it,
|
14713 | |
# with or without modifications, as long as this notice is preserved.
|
14714 | |
|
14715 | |
-# serial 2
|
14716 | |
-
|
14717 | |
-# _AM_PROG_TAR(FORMAT)
|
14718 | |
-# --------------------
|
14719 | |
-# Check how to create a tarball in format FORMAT.
|
14720 | |
-# FORMAT should be one of `v7', `ustar', or `pax'.
|
14721 | |
-#
|
14722 | |
-# Substitute a variable $(am__tar) that is a command
|
14723 | |
-# writing to stdout a FORMAT-tarball containing the directory
|
14724 | |
-# $tardir.
|
14725 | |
-# tardir=directory && $(am__tar) > result.tar
|
14726 | |
-#
|
14727 | |
-# Substitute a variable $(am__untar) that extract such
|
14728 | |
-# a tarball read from stdin.
|
14729 | |
-# $(am__untar) < result.tar
|
14730 | |
-AC_DEFUN([_AM_PROG_TAR],
|
14731 | |
-[# Always define AMTAR for backward compatibility.
|
14732 | |
-AM_MISSING_PROG([AMTAR], [tar])
|
14733 | |
-m4_if([$1], [v7],
|
14734 | |
- [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
14735 | |
- [m4_case([$1], [ustar],, [pax],,
|
14736 | |
- [m4_fatal([Unknown tar format])])
|
14737 | |
-AC_MSG_CHECKING([how to create a $1 tar archive])
|
14738 | |
-# Loop over all known methods to create a tar archive until one works.
|
14739 | |
-_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
14740 | |
-_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
14741 | |
-# Do not fold the above two line into one, because Tru64 sh and
|
14742 | |
-# Solaris sh will not grok spaces in the rhs of `-'.
|
14743 | |
-for _am_tool in $_am_tools
|
14744 | |
-do
|
14745 | |
- case $_am_tool in
|
14746 | |
- gnutar)
|
14747 | |
- for _am_tar in tar gnutar gtar;
|
14748 | |
- do
|
14749 | |
- AM_RUN_LOG([$_am_tar --version]) && break
|
14750 | |
- done
|
14751 | |
- am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
14752 | |
- am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
14753 | |
- am__untar="$_am_tar -xf -"
|
14754 | |
- ;;
|
14755 | |
- plaintar)
|
14756 | |
- # Must skip GNU tar: if it does not support --format= it doesn't create
|
14757 | |
- # ustar tarball either.
|
14758 | |
- (tar --version) >/dev/null 2>&1 && continue
|
14759 | |
- am__tar='tar chf - "$$tardir"'
|
14760 | |
- am__tar_='tar chf - "$tardir"'
|
14761 | |
- am__untar='tar xf -'
|
14762 | |
- ;;
|
14763 | |
- pax)
|
14764 | |
- am__tar='pax -L -x $1 -w "$$tardir"'
|
14765 | |
- am__tar_='pax -L -x $1 -w "$tardir"'
|
14766 | |
- am__untar='pax -r'
|
14767 | |
- ;;
|
14768 | |
- cpio)
|
14769 | |
- am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
14770 | |
- am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
14771 | |
- am__untar='cpio -i -H $1 -d'
|
14772 | |
- ;;
|
14773 | |
- none)
|
14774 | |
- am__tar=false
|
14775 | |
- am__tar_=false
|
14776 | |
- am__untar=false
|
14777 | |
- ;;
|
14778 | |
- esac
|
14779 | |
-
|
14780 | |
- # If the value was cached, stop now. We just wanted to have am__tar
|
14781 | |
- # and am__untar set.
|
14782 | |
- test -n "${am_cv_prog_tar_$1}" && break
|
14783 | |
+# serial 4
|
14784 | |
|
14785 | |
- # tar/untar a dummy directory, and stop if the command works
|
14786 | |
- rm -rf conftest.dir
|
14787 | |
- mkdir conftest.dir
|
14788 | |
- echo GrepMe > conftest.dir/file
|
14789 | |
- AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
14790 | |
- rm -rf conftest.dir
|
14791 | |
- if test -s conftest.tar; then
|
14792 | |
- AM_RUN_LOG([$am__untar <conftest.tar])
|
14793 | |
- grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
14794 | |
- fi
|
14795 | |
-done
|
14796 | |
-rm -rf conftest.dir
|
14797 | |
+AC_DEFUN([AM_MAINTAINER_MODE],
|
14798 | |
+[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
14799 | |
+ dnl maintainer-mode is disabled by default
|
14800 | |
+ AC_ARG_ENABLE(maintainer-mode,
|
14801 | |
+[ --enable-maintainer-mode enable make rules and dependencies not useful
|
14802 | |
+ (and sometimes confusing) to the casual installer],
|
14803 | |
+ USE_MAINTAINER_MODE=$enableval,
|
14804 | |
+ USE_MAINTAINER_MODE=no)
|
14805 | |
+ AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
14806 | |
+ AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
|
14807 | |
+ MAINT=$MAINTAINER_MODE_TRUE
|
14808 | |
+ AC_SUBST(MAINT)dnl
|
14809 | |
+]
|
14810 | |
+)
|
14811 | |
|
14812 | |
-AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
14813 | |
-AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
14814 | |
-AC_SUBST([am__tar])
|
14815 | |
-AC_SUBST([am__untar])
|
14816 | |
-]) # _AM_PROG_TAR
|
14817 | |
+AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
|
14818 | |
|
14819 | |
-# Copyright (C) 1995-2002 Free Software Foundation, Inc.
|
14820 | |
-# Copyright (C) 2001-2003,2004 Red Hat, Inc.
|
14821 | |
-#
|
14822 | |
-# This file is free software, distributed under the terms of the GNU
|
14823 | |
-# General Public License. As a special exception to the GNU General
|
14824 | |
-# Public License, this file may be distributed as part of a program
|
14825 | |
-# that contains a configuration script generated by Autoconf, under
|
14826 | |
-# the same distribution terms as the rest of that program.
|
14827 | |
-#
|
14828 | |
-# This file can be copied and used freely without restrictions. It can
|
14829 | |
-# be used in projects which are not available under the GNU Public License
|
14830 | |
-# but which still want to provide support for the GNU gettext functionality.
|
14831 | |
-#
|
14832 | |
-# Macro to add for using GNU gettext.
|
14833 | |
-# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
|
14834 | |
-#
|
14835 | |
-# Modified to never use included libintl.
|
14836 | |
-# Owen Taylor <otaylor@redhat.com>, 12/15/1998
|
14837 | |
-#
|
14838 | |
-# Major rework to remove unused code
|
14839 | |
-# Owen Taylor <otaylor@redhat.com>, 12/11/2002
|
14840 | |
-#
|
14841 | |
-# Added better handling of ALL_LINGUAS from GNU gettext version
|
14842 | |
-# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
|
14843 | |
+# Check to see how 'make' treats includes. -*- Autoconf -*-
|
14844 | |
+
|
14845 | |
+# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
14846 | |
#
|
14847 | |
-# Modified to require ngettext
|
14848 | |
-# Matthias Clasen <mclasen@redhat.com> 08/06/2004
|
14849 | |
+# This file is free software; the Free Software Foundation
|
14850 | |
+# gives unlimited permission to copy and/or distribute it,
|
14851 | |
+# with or without modifications, as long as this notice is preserved.
|
14852 | |
+
|
14853 | |
+# serial 3
|
14854 | |
+
|
14855 | |
+# AM_MAKE_INCLUDE()
|
14856 | |
+# -----------------
|
14857 | |
+# Check to see how make treats includes.
|
14858 | |
+AC_DEFUN([AM_MAKE_INCLUDE],
|
14859 | |
+[am_make=${MAKE-make}
|
14860 | |
+cat > confinc << 'END'
|
14861 | |
+am__doit:
|
14862 | |
+ @echo done
|
14863 | |
+.PHONY: am__doit
|
14864 | |
+END
|
14865 | |
+# If we don't find an include directive, just comment out the code.
|
14866 | |
+AC_MSG_CHECKING([for style of include used by $am_make])
|
14867 | |
+am__include="#"
|
14868 | |
+am__quote=
|
14869 | |
+_am_result=none
|
14870 | |
+# First try GNU make style include.
|
14871 | |
+echo "include confinc" > confmf
|
14872 | |
+# We grep out `Entering directory' and `Leaving directory'
|
14873 | |
+# messages which can occur if `w' ends up in MAKEFLAGS.
|
14874 | |
+# In particular we don't look at `^make:' because GNU make might
|
14875 | |
+# be invoked under some other name (usually "gmake"), in which
|
14876 | |
+# case it prints its new name instead of `make'.
|
14877 | |
+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
14878 | |
+ am__include=include
|
14879 | |
+ am__quote=
|
14880 | |
+ _am_result=GNU
|
14881 | |
+fi
|
14882 | |
+# Now try BSD make style include.
|
14883 | |
+if test "$am__include" = "#"; then
|
14884 | |
+ echo '.include "confinc"' > confmf
|
14885 | |
+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
14886 | |
+ am__include=.include
|
14887 | |
+ am__quote="\""
|
14888 | |
+ _am_result=BSD
|
14889 | |
+ fi
|
14890 | |
+fi
|
14891 | |
+AC_SUBST([am__include])
|
14892 | |
+AC_SUBST([am__quote])
|
14893 | |
+AC_MSG_RESULT([$_am_result])
|
14894 | |
+rm -f confinc confmf
|
14895 | |
+])
|
14896 | |
+
|
14897 | |
+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
14898 | |
+
|
14899 | |
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
|
14900 | |
+# Free Software Foundation, Inc.
|
14901 | |
#
|
14902 | |
-# We need this here as well, since someone might use autoconf-2.5x
|
14903 | |
-# to configure GLib then an older version to configure a package
|
14904 | |
-# using AM_GLIB_GNU_GETTEXT
|
14905 | |
-AC_PREREQ(2.53)
|
14906 | |
+# This file is free software; the Free Software Foundation
|
14907 | |
+# gives unlimited permission to copy and/or distribute it,
|
14908 | |
+# with or without modifications, as long as this notice is preserved.
|
14909 | |
|
14910 | |
-dnl
|
14911 | |
-dnl We go to great lengths to make sure that aclocal won't
|
14912 | |
-dnl try to pull in the installed version of these macros
|
14913 | |
-dnl when running aclocal in the glib directory.
|
14914 | |
-dnl
|
14915 | |
-m4_copy([AC_DEFUN],[glib_DEFUN])
|
14916 | |
-m4_copy([AC_REQUIRE],[glib_REQUIRE])
|
14917 | |
-dnl
|
14918 | |
-dnl At the end, if we're not within glib, we'll define the public
|
14919 | |
-dnl definitions in terms of our private definitions.
|
14920 | |
-dnl
|
14921 | |
+# serial 5
|
14922 | |
|
14923 | |
-# GLIB_LC_MESSAGES
|
14924 | |
-#--------------------
|
14925 | |
-glib_DEFUN([GLIB_LC_MESSAGES],
|
14926 | |
- [AC_CHECK_HEADERS([locale.h])
|
14927 | |
- if test $ac_cv_header_locale_h = yes; then
|
14928 | |
- AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
|
14929 | |
- [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
|
14930 | |
- am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
|
14931 | |
- if test $am_cv_val_LC_MESSAGES = yes; then
|
14932 | |
- AC_DEFINE(HAVE_LC_MESSAGES, 1,
|
14933 | |
- [Define if your <locale.h> file defines LC_MESSAGES.])
|
14934 | |
- fi
|
14935 | |
- fi])
|
14936 | |
+# AM_MISSING_PROG(NAME, PROGRAM)
|
14937 | |
+# ------------------------------
|
14938 | |
+AC_DEFUN([AM_MISSING_PROG],
|
14939 | |
+[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
14940 | |
+$1=${$1-"${am_missing_run}$2"}
|
14941 | |
+AC_SUBST($1)])
|
14942 | |
|
14943 | |
-# GLIB_PATH_PROG_WITH_TEST
|
14944 | |
-#----------------------------
|
14945 | |
-dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
|
14946 | |
-dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
|
14947 | |
-glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
|
14948 | |
-[# Extract the first word of "$2", so it can be a program name with args.
|
14949 | |
-set dummy $2; ac_word=[$]2
|
14950 | |
-AC_MSG_CHECKING([for $ac_word])
|
14951 | |
-AC_CACHE_VAL(ac_cv_path_$1,
|
14952 | |
-[case "[$]$1" in
|
14953 | |
- /*)
|
14954 | |
- ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
|
14955 | |
- ;;
|
14956 | |
- *)
|
14957 | |
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
14958 | |
- for ac_dir in ifelse([$5], , $PATH, [$5]); do
|
14959 | |
- test -z "$ac_dir" && ac_dir=.
|
14960 | |
- if test -f $ac_dir/$ac_word; then
|
14961 | |
- if [$3]; then
|
14962 | |
- ac_cv_path_$1="$ac_dir/$ac_word"
|
14963 | |
- break
|
14964 | |
- fi
|
14965 | |
- fi
|
14966 | |
- done
|
14967 | |
- IFS="$ac_save_ifs"
|
14968 | |
-dnl If no 4th arg is given, leave the cache variable unset,
|
14969 | |
-dnl so AC_PATH_PROGS will keep looking.
|
14970 | |
-ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
|
14971 | |
-])dnl
|
14972 | |
- ;;
|
14973 | |
-esac])dnl
|
14974 | |
-$1="$ac_cv_path_$1"
|
14975 | |
-if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
|
14976 | |
- AC_MSG_RESULT([$]$1)
|
14977 | |
+
|
14978 | |
+# AM_MISSING_HAS_RUN
|
14979 | |
+# ------------------
|
14980 | |
+# Define MISSING if not defined so far and test if it supports --run.
|
14981 | |
+# If it does, set am_missing_run to use it, otherwise, to nothing.
|
14982 | |
+AC_DEFUN([AM_MISSING_HAS_RUN],
|
14983 | |
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
14984 | |
+AC_REQUIRE_AUX_FILE([missing])dnl
|
14985 | |
+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
14986 | |
+# Use eval to expand $SHELL
|
14987 | |
+if eval "$MISSING --run true"; then
|
14988 | |
+ am_missing_run="$MISSING --run "
|
14989 | |
else
|
14990 | |
- AC_MSG_RESULT(no)
|
14991 | |
+ am_missing_run=
|
14992 | |
+ AC_MSG_WARN([`missing' script is too old or missing])
|
14993 | |
fi
|
14994 | |
-AC_SUBST($1)dnl
|
14995 | |
])
|
14996 | |
|
14997 | |
-# GLIB_WITH_NLS
|
14998 | |
-#-----------------
|
14999 | |
-glib_DEFUN([GLIB_WITH_NLS],
|
15000 | |
- dnl NLS is obligatory
|
15001 | |
- [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
15002 | |
- USE_NLS=yes
|
15003 | |
- AC_SUBST(USE_NLS)
|
15004 | |
-
|
15005 | |
- gt_cv_have_gettext=no
|
15006 | |
-
|
15007 | |
- CATOBJEXT=NONE
|
15008 | |
- XGETTEXT=:
|
15009 | |
- INTLLIBS=
|
15010 | |
+# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
15011 | |
+#
|
15012 | |
+# This file is free software; the Free Software Foundation
|
15013 | |
+# gives unlimited permission to copy and/or distribute it,
|
15014 | |
+# with or without modifications, as long as this notice is preserved.
|
15015 | |
|
15016 | |
- AC_CHECK_HEADER(libintl.h,
|
15017 | |
- [gt_cv_func_dgettext_libintl="no"
|
15018 | |
- libintl_extra_libs=""
|
15019 | |
+# AM_PROG_MKDIR_P
|
15020 | |
+# ---------------
|
15021 | |
+# Check for `mkdir -p'.
|
15022 | |
+AC_DEFUN([AM_PROG_MKDIR_P],
|
15023 | |
+[AC_PREREQ([2.60])dnl
|
15024 | |
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
15025 | |
+dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
|
15026 | |
+dnl while keeping a definition of mkdir_p for backward compatibility.
|
15027 | |
+dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
|
15028 | |
+dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
|
15029 | |
+dnl Makefile.ins that do not define MKDIR_P, so we do our own
|
15030 | |
+dnl adjustment using top_builddir (which is defined more often than
|
15031 | |
+dnl MKDIR_P).
|
15032 | |
+AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
|
15033 | |
+case $mkdir_p in
|
15034 | |
+ [[\\/$]]* | ?:[[\\/]]*) ;;
|
15035 | |
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
15036 | |
+esac
|
15037 | |
+])
|
15038 | |
|
15039 | |
- #
|
15040 | |
- # First check in libc
|
15041 | |
- #
|
15042 | |
- AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
|
15043 | |
- [AC_TRY_LINK([
|
15044 | |
-#include <libintl.h>
|
15045 | |
-],
|
15046 | |
- [return !ngettext ("","", 1)],
|
15047 | |
- gt_cv_func_ngettext_libc=yes,
|
15048 | |
- gt_cv_func_ngettext_libc=no)
|
15049 | |
- ])
|
15050 | |
-
|
15051 | |
- if test "$gt_cv_func_ngettext_libc" = "yes" ; then
|
15052 | |
- AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
|
15053 | |
- [AC_TRY_LINK([
|
15054 | |
-#include <libintl.h>
|
15055 | |
-],
|
15056 | |
- [return !dgettext ("","")],
|
15057 | |
- gt_cv_func_dgettext_libc=yes,
|
15058 | |
- gt_cv_func_dgettext_libc=no)
|
15059 | |
- ])
|
15060 | |
- fi
|
15061 | |
-
|
15062 | |
- if test "$gt_cv_func_ngettext_libc" = "yes" ; then
|
15063 | |
- AC_CHECK_FUNCS(bind_textdomain_codeset)
|
15064 | |
- fi
|
15065 | |
+# Helper functions for option handling. -*- Autoconf -*-
|
15066 | |
|
15067 | |
- #
|
15068 | |
- # If we don't have everything we want, check in libintl
|
15069 | |
- #
|
15070 | |
- if test "$gt_cv_func_dgettext_libc" != "yes" \
|
15071 | |
- || test "$gt_cv_func_ngettext_libc" != "yes" \
|
15072 | |
- || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
|
15073 | |
-
|
15074 | |
- AC_CHECK_LIB(intl, bindtextdomain,
|
15075 | |
- [AC_CHECK_LIB(intl, ngettext,
|
15076 | |
- [AC_CHECK_LIB(intl, dgettext,
|
15077 | |
- gt_cv_func_dgettext_libintl=yes)])])
|
15078 | |
+# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
15079 | |
+#
|
15080 | |
+# This file is free software; the Free Software Foundation
|
15081 | |
+# gives unlimited permission to copy and/or distribute it,
|
15082 | |
+# with or without modifications, as long as this notice is preserved.
|
15083 | |
|
15084 | |
- if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
|
15085 | |
- AC_MSG_CHECKING([if -liconv is needed to use gettext])
|
15086 | |
- AC_MSG_RESULT([])
|
15087 | |
- AC_CHECK_LIB(intl, ngettext,
|
15088 | |
- [AC_CHECK_LIB(intl, dcgettext,
|
15089 | |
- [gt_cv_func_dgettext_libintl=yes
|
15090 | |
- libintl_extra_libs=-liconv],
|
15091 | |
- :,-liconv)],
|
15092 | |
- :,-liconv)
|
15093 | |
- fi
|
15094 | |
+# serial 3
|
15095 | |
|
15096 | |
- #
|
15097 | |
- # If we found libintl, then check in it for bind_textdomain_codeset();
|
15098 | |
- # we'll prefer libc if neither have bind_textdomain_codeset(),
|
15099 | |
- # and both have dgettext and ngettext
|
15100 | |
- #
|
15101 | |
- if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
|
15102 | |
- glib_save_LIBS="$LIBS"
|
15103 | |
- LIBS="$LIBS -lintl $libintl_extra_libs"
|
15104 | |
- unset ac_cv_func_bind_textdomain_codeset
|
15105 | |
- AC_CHECK_FUNCS(bind_textdomain_codeset)
|
15106 | |
- LIBS="$glib_save_LIBS"
|
15107 | |
+# _AM_MANGLE_OPTION(NAME)
|
15108 | |
+# -----------------------
|
15109 | |
+AC_DEFUN([_AM_MANGLE_OPTION],
|
15110 | |
+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
15111 | |
|
15112 | |
- if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
|
15113 | |
- gt_cv_func_dgettext_libc=no
|
15114 | |
- else
|
15115 | |
- if test "$gt_cv_func_dgettext_libc" = "yes" \
|
15116 | |
- && test "$gt_cv_func_ngettext_libc" = "yes"; then
|
15117 | |
- gt_cv_func_dgettext_libintl=no
|
15118 | |
- fi
|
15119 | |
- fi
|
15120 | |
- fi
|
15121 | |
- fi
|
15122 | |
+# _AM_SET_OPTION(NAME)
|
15123 | |
+# ------------------------------
|
15124 | |
+# Set option NAME. Presently that only means defining a flag for this option.
|
15125 | |
+AC_DEFUN([_AM_SET_OPTION],
|
15126 | |
+[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
15127 | |
|
15128 | |
- if test "$gt_cv_func_dgettext_libc" = "yes" \
|
15129 | |
- || test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
15130 | |
- gt_cv_have_gettext=yes
|
15131 | |
- fi
|
15132 | |
-
|
15133 | |
- if test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
15134 | |
- INTLLIBS="-lintl $libintl_extra_libs"
|
15135 | |
- fi
|
15136 | |
-
|
15137 | |
- if test "$gt_cv_have_gettext" = "yes"; then
|
15138 | |
- AC_DEFINE(HAVE_GETTEXT,1,
|
15139 | |
- [Define if the GNU gettext() function is already present or preinstalled.])
|
15140 | |
- GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
15141 | |
- [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
|
15142 | |
- if test "$MSGFMT" != "no"; then
|
15143 | |
- glib_save_LIBS="$LIBS"
|
15144 | |
- LIBS="$LIBS $INTLLIBS"
|
15145 | |
- AC_CHECK_FUNCS(dcgettext)
|
15146 | |
- MSGFMT_OPTS=
|
15147 | |
- AC_MSG_CHECKING([if msgfmt accepts -c])
|
15148 | |
- GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
|
15149 | |
-msgid ""
|
15150 | |
-msgstr ""
|
15151 | |
-"Content-Type: text/plain; charset=UTF-8\n"
|
15152 | |
-"Project-Id-Version: test 1.0\n"
|
15153 | |
-"PO-Revision-Date: 2007-02-15 12:01+0100\n"
|
15154 | |
-"Last-Translator: test <foo@bar.xx>\n"
|
15155 | |
-"Language-Team: C <LL@li.org>\n"
|
15156 | |
-"MIME-Version: 1.0\n"
|
15157 | |
-"Content-Transfer-Encoding: 8bit\n"
|
15158 | |
-], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
|
15159 | |
- AC_SUBST(MSGFMT_OPTS)
|
15160 | |
- AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
|
15161 | |
- GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
15162 | |
- [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
|
15163 | |
- AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
|
15164 | |
- return _nl_msg_cat_cntr],
|
15165 | |
- [CATOBJEXT=.gmo
|
15166 | |
- DATADIRNAME=share],
|
15167 | |
- [case $host in
|
15168 | |
- *-*-solaris*)
|
15169 | |
- dnl On Solaris, if bind_textdomain_codeset is in libc,
|
15170 | |
- dnl GNU format message catalog is always supported,
|
15171 | |
- dnl since both are added to the libc all together.
|
15172 | |
- dnl Hence, we'd like to go with DATADIRNAME=share and
|
15173 | |
- dnl and CATOBJEXT=.gmo in this case.
|
15174 | |
- AC_CHECK_FUNC(bind_textdomain_codeset,
|
15175 | |
- [CATOBJEXT=.gmo
|
15176 | |
- DATADIRNAME=share],
|
15177 | |
- [CATOBJEXT=.mo
|
15178 | |
- DATADIRNAME=lib])
|
15179 | |
- ;;
|
15180 | |
- *)
|
15181 | |
- CATOBJEXT=.mo
|
15182 | |
- DATADIRNAME=lib
|
15183 | |
- ;;
|
15184 | |
- esac])
|
15185 | |
- LIBS="$glib_save_LIBS"
|
15186 | |
- INSTOBJEXT=.mo
|
15187 | |
- else
|
15188 | |
- gt_cv_have_gettext=no
|
15189 | |
- fi
|
15190 | |
- fi
|
15191 | |
- ])
|
15192 | |
+# _AM_SET_OPTIONS(OPTIONS)
|
15193 | |
+# ----------------------------------
|
15194 | |
+# OPTIONS is a space-separated list of Automake options.
|
15195 | |
+AC_DEFUN([_AM_SET_OPTIONS],
|
15196 | |
+[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
15197 | |
|
15198 | |
- if test "$gt_cv_have_gettext" = "yes" ; then
|
15199 | |
- AC_DEFINE(ENABLE_NLS, 1,
|
15200 | |
- [always defined to indicate that i18n is enabled])
|
15201 | |
- fi
|
15202 | |
+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
15203 | |
+# -------------------------------------------
|
15204 | |
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
15205 | |
+AC_DEFUN([_AM_IF_OPTION],
|
15206 | |
+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
15207 | |
|
15208 | |
- dnl Test whether we really found GNU xgettext.
|
15209 | |
- if test "$XGETTEXT" != ":"; then
|
15210 | |
- dnl If it is not GNU xgettext we define it as : so that the
|
15211 | |
- dnl Makefiles still can work.
|
15212 | |
- if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
15213 | |
- : ;
|
15214 | |
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
15215 | |
+# Free Software Foundation, Inc.
|
15216 | |
+#
|
15217 | |
+# This file is free software; the Free Software Foundation
|
15218 | |
+# gives unlimited permission to copy and/or distribute it,
|
15219 | |
+# with or without modifications, as long as this notice is preserved.
|
15220 | |
+
|
15221 | |
+# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
15222 | |
+# ---------------------------------------------------------------------------
|
15223 | |
+# Adds support for distributing Python modules and packages. To
|
15224 | |
+# install modules, copy them to $(pythondir), using the python_PYTHON
|
15225 | |
+# automake variable. To install a package with the same name as the
|
15226 | |
+# automake package, install to $(pkgpythondir), or use the
|
15227 | |
+# pkgpython_PYTHON automake variable.
|
15228 | |
+#
|
15229 | |
+# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
|
15230 | |
+# locations to install python extension modules (shared libraries).
|
15231 | |
+# Another macro is required to find the appropriate flags to compile
|
15232 | |
+# extension modules.
|
15233 | |
+#
|
15234 | |
+# If your package is configured with a different prefix to python,
|
15235 | |
+# users will have to add the install directory to the PYTHONPATH
|
15236 | |
+# environment variable, or create a .pth file (see the python
|
15237 | |
+# documentation for details).
|
15238 | |
+#
|
15239 | |
+# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
|
15240 | |
+# cause an error if the version of python installed on the system
|
15241 | |
+# doesn't meet the requirement. MINIMUM-VERSION should consist of
|
15242 | |
+# numbers and dots only.
|
15243 | |
+AC_DEFUN([AM_PATH_PYTHON],
|
15244 | |
+ [
|
15245 | |
+ dnl Find a Python interpreter. Python versions prior to 1.5 are not
|
15246 | |
+ dnl supported because the default installation locations changed from
|
15247 | |
+ dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
|
15248 | |
+ dnl in 1.5.
|
15249 | |
+ m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
|
15250 | |
+ [python python2 python2.5 python2.4 python2.3 python2.2 dnl
|
15251 | |
+python2.1 python2.0 python1.6 python1.5])
|
15252 | |
+
|
15253 | |
+ m4_if([$1],[],[
|
15254 | |
+ dnl No version check is needed.
|
15255 | |
+ # Find any Python interpreter.
|
15256 | |
+ if test -z "$PYTHON"; then
|
15257 | |
+ AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
|
15258 | |
+ fi
|
15259 | |
+ am_display_PYTHON=python
|
15260 | |
+ ], [
|
15261 | |
+ dnl A version check is needed.
|
15262 | |
+ if test -n "$PYTHON"; then
|
15263 | |
+ # If the user set $PYTHON, use it and don't search something else.
|
15264 | |
+ AC_MSG_CHECKING([whether $PYTHON version >= $1])
|
15265 | |
+ AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
|
15266 | |
+ [AC_MSG_RESULT(yes)],
|
15267 | |
+ [AC_MSG_ERROR(too old)])
|
15268 | |
+ am_display_PYTHON=$PYTHON
|
15269 | |
+ else
|
15270 | |
+ # Otherwise, try each interpreter until we find one that satisfies
|
15271 | |
+ # VERSION.
|
15272 | |
+ AC_CACHE_CHECK([for a Python interpreter with version >= $1],
|
15273 | |
+ [am_cv_pathless_PYTHON],[
|
15274 | |
+ for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
|
15275 | |
+ test "$am_cv_pathless_PYTHON" = none && break
|
15276 | |
+ AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
|
15277 | |
+ done])
|
15278 | |
+ # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
|
15279 | |
+ if test "$am_cv_pathless_PYTHON" = none; then
|
15280 | |
+ PYTHON=:
|
15281 | |
else
|
15282 | |
- AC_MSG_RESULT(
|
15283 | |
- [found xgettext program is not GNU xgettext; ignore it])
|
15284 | |
- XGETTEXT=":"
|
15285 | |
+ AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
|
15286 | |
fi
|
15287 | |
+ am_display_PYTHON=$am_cv_pathless_PYTHON
|
15288 | |
fi
|
15289 | |
+ ])
|
15290 | |
|
15291 | |
- # We need to process the po/ directory.
|
15292 | |
- POSUB=po
|
15293 | |
-
|
15294 | |
- AC_OUTPUT_COMMANDS(
|
15295 | |
- [case "$CONFIG_FILES" in *po/Makefile.in*)
|
15296 | |
- sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
|
15297 | |
- esac])
|
15298 | |
+ if test "$PYTHON" = :; then
|
15299 | |
+ dnl Run any user-specified action, or abort.
|
15300 | |
+ m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
|
15301 | |
+ else
|
15302 | |
|
15303 | |
- dnl These rules are solely for the distribution goal. While doing this
|
15304 | |
- dnl we only have to keep exactly one list of the available catalogs
|
15305 | |
- dnl in configure.in.
|
15306 | |
- for lang in $ALL_LINGUAS; do
|
15307 | |
- GMOFILES="$GMOFILES $lang.gmo"
|
15308 | |
- POFILES="$POFILES $lang.po"
|
15309 | |
- done
|
15310 | |
+ dnl Query Python for its version number. Getting [:3] seems to be
|
15311 | |
+ dnl the best way to do this; it's what "site.py" does in the standard
|
15312 | |
+ dnl library.
|
15313 | |
|
15314 | |
- dnl Make all variables we use known to autoconf.
|
15315 | |
- AC_SUBST(CATALOGS)
|
15316 | |
- AC_SUBST(CATOBJEXT)
|
15317 | |
- AC_SUBST(DATADIRNAME)
|
15318 | |
- AC_SUBST(GMOFILES)
|
15319 | |
- AC_SUBST(INSTOBJEXT)
|
15320 | |
- AC_SUBST(INTLLIBS)
|
15321 | |
- AC_SUBST(PO_IN_DATADIR_TRUE)
|
15322 | |
- AC_SUBST(PO_IN_DATADIR_FALSE)
|
15323 | |
- AC_SUBST(POFILES)
|
15324 | |
- AC_SUBST(POSUB)
|
15325 | |
- ])
|
15326 | |
+ AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
|
15327 | |
+ [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
|
15328 | |
+ AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
|
15329 | |
|
15330 | |
-# AM_GLIB_GNU_GETTEXT
|
15331 | |
-# -------------------
|
15332 | |
-# Do checks necessary for use of gettext. If a suitable implementation
|
15333 | |
-# of gettext is found in either in libintl or in the C library,
|
15334 | |
-# it will set INTLLIBS to the libraries needed for use of gettext
|
15335 | |
-# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
|
15336 | |
-# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
|
15337 | |
-# on various variables needed by the Makefile.in.in installed by
|
15338 | |
-# glib-gettextize.
|
15339 | |
-dnl
|
15340 | |
-glib_DEFUN([GLIB_GNU_GETTEXT],
|
15341 | |
- [AC_REQUIRE([AC_PROG_CC])dnl
|
15342 | |
- AC_REQUIRE([AC_HEADER_STDC])dnl
|
15343 | |
-
|
15344 | |
- GLIB_LC_MESSAGES
|
15345 | |
- GLIB_WITH_NLS
|
15346 | |
+ dnl Use the values of $prefix and $exec_prefix for the corresponding
|
15347 | |
+ dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
|
15348 | |
+ dnl distinct variables so they can be overridden if need be. However,
|
15349 | |
+ dnl general consensus is that you shouldn't need this ability.
|
15350 | |
|
15351 | |
- if test "$gt_cv_have_gettext" = "yes"; then
|
15352 | |
- if test "x$ALL_LINGUAS" = "x"; then
|
15353 | |
- LINGUAS=
|
15354 | |
- else
|
15355 | |
- AC_MSG_CHECKING(for catalogs to be installed)
|
15356 | |
- NEW_LINGUAS=
|
15357 | |
- for presentlang in $ALL_LINGUAS; do
|
15358 | |
- useit=no
|
15359 | |
- if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
|
15360 | |
- desiredlanguages="$LINGUAS"
|
15361 | |
- else
|
15362 | |
- desiredlanguages="$ALL_LINGUAS"
|
15363 | |
- fi
|
15364 | |
- for desiredlang in $desiredlanguages; do
|
15365 | |
- # Use the presentlang catalog if desiredlang is
|
15366 | |
- # a. equal to presentlang, or
|
15367 | |
- # b. a variant of presentlang (because in this case,
|
15368 | |
- # presentlang can be used as a fallback for messages
|
15369 | |
- # which are not translated in the desiredlang catalog).
|
15370 | |
- case "$desiredlang" in
|
15371 | |
- "$presentlang"*) useit=yes;;
|
15372 | |
- esac
|
15373 | |
- done
|
15374 | |
- if test $useit = yes; then
|
15375 | |
- NEW_LINGUAS="$NEW_LINGUAS $presentlang"
|
15376 | |
- fi
|
15377 | |
- done
|
15378 | |
- LINGUAS=$NEW_LINGUAS
|
15379 | |
- AC_MSG_RESULT($LINGUAS)
|
15380 | |
- fi
|
15381 | |
+ AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
|
15382 | |
+ AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
|
15383 | |
|
15384 | |
- dnl Construct list of names of catalog files to be constructed.
|
15385 | |
- if test -n "$LINGUAS"; then
|
15386 | |
- for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
15387 | |
- fi
|
15388 | |
- fi
|
15389 | |
+ dnl At times (like when building shared libraries) you may want
|
15390 | |
+ dnl to know which OS platform Python thinks this is.
|
15391 | |
|
15392 | |
- dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
|
15393 | |
- dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
|
15394 | |
- dnl Try to locate is.
|
15395 | |
- MKINSTALLDIRS=
|
15396 | |
- if test -n "$ac_aux_dir"; then
|
15397 | |
- MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
|
15398 | |
- fi
|
15399 | |
- if test -z "$MKINSTALLDIRS"; then
|
15400 | |
- MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
|
15401 | |
- fi
|
15402 | |
- AC_SUBST(MKINSTALLDIRS)
|
15403 | |
+ AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
|
15404 | |
+ [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
|
15405 | |
+ AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
|
15406 | |
|
15407 | |
- dnl Generate list of files to be processed by xgettext which will
|
15408 | |
- dnl be included in po/Makefile.
|
15409 | |
- test -d po || mkdir po
|
15410 | |
- if test "x$srcdir" != "x."; then
|
15411 | |
- if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
|
15412 | |
- posrcprefix="$srcdir/"
|
15413 | |
- else
|
15414 | |
- posrcprefix="../$srcdir/"
|
15415 | |
- fi
|
15416 | |
- else
|
15417 | |
- posrcprefix="../"
|
15418 | |
- fi
|
15419 | |
- rm -f po/POTFILES
|
15420 | |
- sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
15421 | |
- < $srcdir/po/POTFILES.in > po/POTFILES
|
15422 | |
- ])
|
15423 | |
|
15424 | |
-# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
|
15425 | |
-# -------------------------------
|
15426 | |
-# Define VARIABLE to the location where catalog files will
|
15427 | |
-# be installed by po/Makefile.
|
15428 | |
-glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
|
15429 | |
-[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
|
15430 | |
-glib_save_prefix="$prefix"
|
15431 | |
-glib_save_exec_prefix="$exec_prefix"
|
15432 | |
-glib_save_datarootdir="$datarootdir"
|
15433 | |
-test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
15434 | |
-test "x$exec_prefix" = xNONE && exec_prefix=$prefix
|
15435 | |
-datarootdir=`eval echo "${datarootdir}"`
|
15436 | |
-if test "x$CATOBJEXT" = "x.mo" ; then
|
15437 | |
- localedir=`eval echo "${libdir}/locale"`
|
15438 | |
-else
|
15439 | |
- localedir=`eval echo "${datadir}/locale"`
|
15440 | |
-fi
|
15441 | |
-prefix="$glib_save_prefix"
|
15442 | |
-exec_prefix="$glib_save_exec_prefix"
|
15443 | |
-datarootdir="$glib_save_datarootdir"
|
15444 | |
-AC_DEFINE_UNQUOTED($1, "$localedir",
|
15445 | |
- [Define the location where the catalogs will be installed])
|
15446 | |
-])
|
15447 | |
+ dnl Set up 4 directories:
|
15448 | |
|
15449 | |
-dnl
|
15450 | |
-dnl Now the definitions that aclocal will find
|
15451 | |
-dnl
|
15452 | |
-ifdef(glib_configure_in,[],[
|
15453 | |
-AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
|
15454 | |
-AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
|
15455 | |
-])dnl
|
15456 | |
+ dnl pythondir -- where to install python scripts. This is the
|
15457 | |
+ dnl site-packages directory, not the python standard library
|
15458 | |
+ dnl directory like in previous automake betas. This behavior
|
15459 | |
+ dnl is more consistent with lispdir.m4 for example.
|
15460 | |
+ dnl Query distutils for this directory. distutils does not exist in
|
15461 | |
+ dnl Python 1.5, so we fall back to the hardcoded directory if it
|
15462 | |
+ dnl doesn't work.
|
15463 | |
+ AC_CACHE_CHECK([for $am_display_PYTHON script directory],
|
15464 | |
+ [am_cv_python_pythondir],
|
15465 | |
+ [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
|
15466 | |
+ echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
|
15467 | |
+ AC_SUBST([pythondir], [$am_cv_python_pythondir])
|
15468 | |
|
15469 | |
-# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
|
15470 | |
-#
|
15471 | |
-# Create a temporary file with TEST-FILE as its contents and pass the
|
15472 | |
-# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
|
15473 | |
-# 0 and perform ACTION-IF-FAIL for any other exit status.
|
15474 | |
-AC_DEFUN([GLIB_RUN_PROG],
|
15475 | |
-[cat >conftest.foo <<_ACEOF
|
15476 | |
-$2
|
15477 | |
-_ACEOF
|
15478 | |
-if AC_RUN_LOG([$1 conftest.foo]); then
|
15479 | |
- m4_ifval([$3], [$3], [:])
|
15480 | |
-m4_ifvaln([$4], [else $4])dnl
|
15481 | |
-echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
|
15482 | |
-sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
|
15483 | |
-fi])
|
15484 | |
+ dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
|
15485 | |
+ dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
|
15486 | |
+ dnl more consistent with the rest of automake.
|
15487 | |
|
15488 | |
+ AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
|
15489 | |
|
15490 | |
-# gnome-common.m4
|
15491 | |
-#
|
15492 | |
+ dnl pyexecdir -- directory for installing python extension modules
|
15493 | |
+ dnl (shared libraries)
|
15494 | |
+ dnl Query distutils for this directory. distutils does not exist in
|
15495 | |
+ dnl Python 1.5, so we fall back to the hardcoded directory if it
|
15496 | |
+ dnl doesn't work.
|
15497 | |
+ AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
|
15498 | |
+ [am_cv_python_pyexecdir],
|
15499 | |
+ [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
|
15500 | |
+ echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
|
15501 | |
+ AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
|
15502 | |
|
15503 | |
-dnl GNOME_COMMON_INIT
|
15504 | |
+ dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
|
15505 | |
|
15506 | |
-AC_DEFUN([GNOME_COMMON_INIT],
|
15507 | |
-[
|
15508 | |
- dnl this macro should come after AC_CONFIG_MACRO_DIR
|
15509 | |
- AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
|
15510 | |
+ AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
|
15511 | |
|
15512 | |
- dnl ensure that when the Automake generated makefile calls aclocal,
|
15513 | |
- dnl it honours the $ACLOCAL_FLAGS environment variable
|
15514 | |
- ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
|
15515 | |
- if test -n "$ac_macro_dir"; then
|
15516 | |
- ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
|
15517 | |
+ dnl Run any user-specified action.
|
15518 | |
+ $2
|
15519 | |
fi
|
15520 | |
|
15521 | |
- AC_SUBST([ACLOCAL_AMFLAGS])
|
15522 | |
])
|
15523 | |
|
15524 | |
-AC_DEFUN([GNOME_DEBUG_CHECK],
|
15525 | |
-[
|
15526 | |
- AC_ARG_ENABLE([debug],
|
15527 | |
- AC_HELP_STRING([--enable-debug],
|
15528 | |
- [turn on debugging]),,
|
15529 | |
- [enable_debug=no])
|
15530 | |
|
15531 | |
- if test x$enable_debug = xyes ; then
|
15532 | |
- AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
|
15533 | |
- [Enable additional debugging at the expense of performance and size])
|
15534 | |
- fi
|
15535 | |
-])
|
15536 | |
+# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
|
15537 | |
+# ---------------------------------------------------------------------------
|
15538 | |
+# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
|
15539 | |
+# Run ACTION-IF-FALSE otherwise.
|
15540 | |
+# This test uses sys.hexversion instead of the string equivalent (first
|
15541 | |
+# word of sys.version), in order to cope with versions such as 2.2c1.
|
15542 | |
+# hexversion has been introduced in Python 1.5.2; it's probably not
|
15543 | |
+# worth to support older versions (1.5.1 was released on October 31, 1998).
|
15544 | |
+AC_DEFUN([AM_PYTHON_CHECK_VERSION],
|
15545 | |
+ [prog="import sys, string
|
15546 | |
+# split strings by '.' and convert to numeric. Append some zeros
|
15547 | |
+# because we need at least 4 digits for the hex conversion.
|
15548 | |
+minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
|
15549 | |
+minverhex = 0
|
15550 | |
+for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
|
15551 | |
+sys.exit(sys.hexversion < minverhex)"
|
15552 | |
+ AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
|
15553 | |
|
15554 | |
-dnl GNOME_MAINTAINER_MODE_DEFINES ()
|
15555 | |
-dnl define DISABLE_DEPRECATED
|
15556 | |
-dnl
|
15557 | |
-AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
|
15558 | |
-[
|
15559 | |
- AC_REQUIRE([AM_MAINTAINER_MODE])
|
15560 | |
+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
15561 | |
+#
|
15562 | |
+# This file is free software; the Free Software Foundation
|
15563 | |
+# gives unlimited permission to copy and/or distribute it,
|
15564 | |
+# with or without modifications, as long as this notice is preserved.
|
15565 | |
|
15566 | |
- if test $USE_MAINTAINER_MODE = yes; then
|
15567 | |
- DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED"
|
15568 | |
- else
|
15569 | |
- DISABLE_DEPRECATED=""
|
15570 | |
- fi
|
15571 | |
- AC_SUBST(DISABLE_DEPRECATED)
|
15572 | |
-])
|
15573 | |
+# AM_RUN_LOG(COMMAND)
|
15574 | |
+# -------------------
|
15575 | |
+# Run COMMAND, save the exit status in ac_status, and log it.
|
15576 | |
+# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
|
15577 | |
+AC_DEFUN([AM_RUN_LOG],
|
15578 | |
+[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
|
15579 | |
+ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
|
15580 | |
+ ac_status=$?
|
15581 | |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
15582 | |
+ (exit $ac_status); }])
|
15583 | |
|
15584 | |
-dnl GNOME_COMPILE_WARNINGS
|
15585 | |
-dnl Turn on many useful compiler warnings
|
15586 | |
-dnl For now, only works on GCC
|
15587 | |
-AC_DEFUN([GNOME_COMPILE_WARNINGS],[
|
15588 | |
- dnl ******************************
|
15589 | |
- dnl More compiler warnings
|
15590 | |
- dnl ******************************
|
15591 | |
+# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
15592 | |
|
15593 | |
- AC_ARG_ENABLE(compile-warnings,
|
15594 | |
- AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
|
15595 | |
- [Turn on compiler warnings]),,
|
15596 | |
- [enable_compile_warnings="m4_default([$1],[yes])"])
|
15597 | |
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
15598 | |
+# Free Software Foundation, Inc.
|
15599 | |
+#
|
15600 | |
+# This file is free software; the Free Software Foundation
|
15601 | |
+# gives unlimited permission to copy and/or distribute it,
|
15602 | |
+# with or without modifications, as long as this notice is preserved.
|
15603 | |
|
15604 | |
- warnCFLAGS=
|
15605 | |
- if test "x$GCC" != xyes; then
|
15606 | |
- enable_compile_warnings=no
|
15607 | |
- fi
|
15608 | |
+# serial 4
|
15609 | |
+
|
15610 | |
+# AM_SANITY_CHECK
|
15611 | |
+# ---------------
|
15612 | |
+AC_DEFUN([AM_SANITY_CHECK],
|
15613 | |
+[AC_MSG_CHECKING([whether build environment is sane])
|
15614 | |
+# Just in case
|
15615 | |
+sleep 1
|
15616 | |
+echo timestamp > conftest.file
|
15617 | |
+# Do `set' in a subshell so we don't clobber the current shell's
|
15618 | |
+# arguments. Must try -L first in case configure is actually a
|
15619 | |
+# symlink; some systems play weird games with the mod time of symlinks
|
15620 | |
+# (eg FreeBSD returns the mod time of the symlink's containing
|
15621 | |
+# directory).
|
15622 | |
+if (
|
15623 | |
+ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
15624 | |
+ if test "$[*]" = "X"; then
|
15625 | |
+ # -L didn't work.
|
15626 | |
+ set X `ls -t $srcdir/configure conftest.file`
|
15627 | |
+ fi
|
15628 | |
+ rm -f conftest.file
|
15629 | |
+ if test "$[*]" != "X $srcdir/configure conftest.file" \
|
15630 | |
+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
|
15631 | |
|
15632 | |
- warning_flags=
|
15633 | |
- realsave_CFLAGS="$CFLAGS"
|
15634 | |
+ # If neither matched, then we have a broken ls. This can happen
|
15635 | |
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
|
15636 | |
+ # broken ls alias from the environment. This has actually
|
15637 | |
+ # happened. Such a system could not be considered "sane".
|
15638 | |
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
15639 | |
+alias in your environment])
|
15640 | |
+ fi
|
15641 | |
|
15642 | |
- case "$enable_compile_warnings" in
|
15643 | |
- no)
|
15644 | |
- warning_flags=
|
15645 | |
- ;;
|
15646 | |
- minimum)
|
15647 | |
- warning_flags="-Wall"
|
15648 | |
- ;;
|
15649 | |
- yes)
|
15650 | |
- warning_flags="-Wall -Wmissing-prototypes"
|
15651 | |
- ;;
|
15652 | |
- maximum|error)
|
15653 | |
- warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
|
15654 | |
- CFLAGS="$warning_flags $CFLAGS"
|
15655 | |
- for option in -Wno-sign-compare; do
|
15656 | |
- SAVE_CFLAGS="$CFLAGS"
|
15657 | |
- CFLAGS="$CFLAGS $option"
|
15658 | |
- AC_MSG_CHECKING([whether gcc understands $option])
|
15659 | |
- AC_TRY_COMPILE([], [],
|
15660 | |
- has_option=yes,
|
15661 | |
- has_option=no,)
|
15662 | |
- CFLAGS="$SAVE_CFLAGS"
|
15663 | |
- AC_MSG_RESULT($has_option)
|
15664 | |
- if test $has_option = yes; then
|
15665 | |
- warning_flags="$warning_flags $option"
|
15666 | |
- fi
|
15667 | |
- unset has_option
|
15668 | |
- unset SAVE_CFLAGS
|
15669 | |
- done
|
15670 | |
- unset option
|
15671 | |
- if test "$enable_compile_warnings" = "error" ; then
|
15672 | |
- warning_flags="$warning_flags -Werror"
|
15673 | |
- fi
|
15674 | |
- ;;
|
15675 | |
- *)
|
15676 | |
- AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
|
15677 | |
- ;;
|
15678 | |
- esac
|
15679 | |
- CFLAGS="$realsave_CFLAGS"
|
15680 | |
- AC_MSG_CHECKING(what warning flags to pass to the C compiler)
|
15681 | |
- AC_MSG_RESULT($warning_flags)
|
15682 | |
+ test "$[2]" = conftest.file
|
15683 | |
+ )
|
15684 | |
+then
|
15685 | |
+ # Ok.
|
15686 | |
+ :
|
15687 | |
+else
|
15688 | |
+ AC_MSG_ERROR([newly created file is older than distributed files!
|
15689 | |
+Check your system clock])
|
15690 | |
+fi
|
15691 | |
+AC_MSG_RESULT(yes)])
|
15692 | |
|
15693 | |
- AC_ARG_ENABLE(iso-c,
|
15694 | |
- AC_HELP_STRING([--enable-iso-c],
|
15695 | |
- [Try to warn if code is not ISO C ]),,
|
15696 | |
- [enable_iso_c=no])
|
15697 | |
+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
15698 | |
+#
|
15699 | |
+# This file is free software; the Free Software Foundation
|
15700 | |
+# gives unlimited permission to copy and/or distribute it,
|
15701 | |
+# with or without modifications, as long as this notice is preserved.
|
15702 | |
|
15703 | |
- AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
|
15704 | |
- complCFLAGS=
|
15705 | |
- if test "x$enable_iso_c" != "xno"; then
|
15706 | |
- if test "x$GCC" = "xyes"; then
|
15707 | |
- case " $CFLAGS " in
|
15708 | |
- *[\ \ ]-ansi[\ \ ]*) ;;
|
15709 | |
- *) complCFLAGS="$complCFLAGS -ansi" ;;
|
15710 | |
- esac
|
15711 | |
- case " $CFLAGS " in
|
15712 | |
- *[\ \ ]-pedantic[\ \ ]*) ;;
|
15713 | |
- *) complCFLAGS="$complCFLAGS -pedantic" ;;
|
15714 | |
- esac
|
15715 | |
- fi
|
15716 | |
- fi
|
15717 | |
- AC_MSG_RESULT($complCFLAGS)
|
15718 | |
+# AM_PROG_INSTALL_STRIP
|
15719 | |
+# ---------------------
|
15720 | |
+# One issue with vendor `install' (even GNU) is that you can't
|
15721 | |
+# specify the program used to strip binaries. This is especially
|
15722 | |
+# annoying in cross-compiling environments, where the build's strip
|
15723 | |
+# is unlikely to handle the host's binaries.
|
15724 | |
+# Fortunately install-sh will honor a STRIPPROG variable, so we
|
15725 | |
+# always use install-sh in `make install-strip', and initialize
|
15726 | |
+# STRIPPROG with the value of the STRIP variable (set by the user).
|
15727 | |
+AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
15728 | |
+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
15729 | |
+# Installed binaries are usually stripped using `strip' when the user
|
15730 | |
+# run `make install-strip'. However `strip' might not be the right
|
15731 | |
+# tool to use in cross-compilation environments, therefore Automake
|
15732 | |
+# will honor the `STRIP' environment variable to overrule this program.
|
15733 | |
+dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
15734 | |
+if test "$cross_compiling" != no; then
|
15735 | |
+ AC_CHECK_TOOL([STRIP], [strip], :)
|
15736 | |
+fi
|
15737 | |
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
15738 | |
+AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
15739 | |
|
15740 | |
- WARN_CFLAGS="$warning_flags $complCFLAGS"
|
15741 | |
- AC_SUBST(WARN_CFLAGS)
|
15742 | |
-])
|
15743 | |
+# Copyright (C) 2006 Free Software Foundation, Inc.
|
15744 | |
+#
|
15745 | |
+# This file is free software; the Free Software Foundation
|
15746 | |
+# gives unlimited permission to copy and/or distribute it,
|
15747 | |
+# with or without modifications, as long as this notice is preserved.
|
15748 | |
|
15749 | |
-dnl For C++, do basically the same thing.
|
15750 | |
+# _AM_SUBST_NOTMAKE(VARIABLE)
|
15751 | |
+# ---------------------------
|
15752 | |
+# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
|
15753 | |
+# This macro is traced by Automake.
|
15754 | |
+AC_DEFUN([_AM_SUBST_NOTMAKE])
|
15755 | |
|
15756 | |
-AC_DEFUN([GNOME_CXX_WARNINGS],[
|
15757 | |
- AC_ARG_ENABLE(cxx-warnings,
|
15758 | |
- AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
|
15759 | |
- [Turn on compiler warnings.]),,
|
15760 | |
- [enable_cxx_warnings="m4_default([$1],[minimum])"])
|
15761 | |
+# Check how to create a tarball. -*- Autoconf -*-
|
15762 | |
|
15763 | |
- AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
|
15764 | |
- warnCXXFLAGS=
|
15765 | |
- if test "x$GXX" != xyes; then
|
15766 | |
- enable_cxx_warnings=no
|
15767 | |
- fi
|
15768 | |
- if test "x$enable_cxx_warnings" != "xno"; then
|
15769 | |
- if test "x$GXX" = "xyes"; then
|
15770 | |
- case " $CXXFLAGS " in
|
15771 | |
- *[\ \ ]-Wall[\ \ ]*) ;;
|
15772 | |
- *) warnCXXFLAGS="-Wall -Wno-unused" ;;
|
15773 | |
- esac
|
15774 | |
+# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
15775 | |
+#
|
15776 | |
+# This file is free software; the Free Software Foundation
|
15777 | |
+# gives unlimited permission to copy and/or distribute it,
|
15778 | |
+# with or without modifications, as long as this notice is preserved.
|
15779 | |
|
15780 | |
- ## -W is not all that useful. And it cannot be controlled
|
15781 | |
- ## with individual -Wno-xxx flags, unlike -Wall
|
15782 | |
- if test "x$enable_cxx_warnings" = "xyes"; then
|
15783 | |
- warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
|
15784 | |
- fi
|
15785 | |
- fi
|
15786 | |
- fi
|
15787 | |
- AC_MSG_RESULT($warnCXXFLAGS)
|
15788 | |
+# serial 2
|
15789 | |
|
15790 | |
- AC_ARG_ENABLE(iso-cxx,
|
15791 | |
- AC_HELP_STRING([--enable-iso-cxx],
|
15792 | |
- [Try to warn if code is not ISO C++ ]),,
|
15793 | |
- [enable_iso_cxx=no])
|
15794 | |
+# _AM_PROG_TAR(FORMAT)
|
15795 | |
+# --------------------
|
15796 | |
+# Check how to create a tarball in format FORMAT.
|
15797 | |
+# FORMAT should be one of `v7', `ustar', or `pax'.
|
15798 | |
+#
|
15799 | |
+# Substitute a variable $(am__tar) that is a command
|
15800 | |
+# writing to stdout a FORMAT-tarball containing the directory
|
15801 | |
+# $tardir.
|
15802 | |
+# tardir=directory && $(am__tar) > result.tar
|
15803 | |
+#
|
15804 | |
+# Substitute a variable $(am__untar) that extract such
|
15805 | |
+# a tarball read from stdin.
|
15806 | |
+# $(am__untar) < result.tar
|
15807 | |
+AC_DEFUN([_AM_PROG_TAR],
|
15808 | |
+[# Always define AMTAR for backward compatibility.
|
15809 | |
+AM_MISSING_PROG([AMTAR], [tar])
|
15810 | |
+m4_if([$1], [v7],
|
15811 | |
+ [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
15812 | |
+ [m4_case([$1], [ustar],, [pax],,
|
15813 | |
+ [m4_fatal([Unknown tar format])])
|
15814 | |
+AC_MSG_CHECKING([how to create a $1 tar archive])
|
15815 | |
+# Loop over all known methods to create a tar archive until one works.
|
15816 | |
+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
15817 | |
+_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
15818 | |
+# Do not fold the above two line into one, because Tru64 sh and
|
15819 | |
+# Solaris sh will not grok spaces in the rhs of `-'.
|
15820 | |
+for _am_tool in $_am_tools
|
15821 | |
+do
|
15822 | |
+ case $_am_tool in
|
15823 | |
+ gnutar)
|
15824 | |
+ for _am_tar in tar gnutar gtar;
|
15825 | |
+ do
|
15826 | |
+ AM_RUN_LOG([$_am_tar --version]) && break
|
15827 | |
+ done
|
15828 | |
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
15829 | |
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
15830 | |
+ am__untar="$_am_tar -xf -"
|
15831 | |
+ ;;
|
15832 | |
+ plaintar)
|
15833 | |
+ # Must skip GNU tar: if it does not support --format= it doesn't create
|
15834 | |
+ # ustar tarball either.
|
15835 | |
+ (tar --version) >/dev/null 2>&1 && continue
|
15836 | |
+ am__tar='tar chf - "$$tardir"'
|
15837 | |
+ am__tar_='tar chf - "$tardir"'
|
15838 | |
+ am__untar='tar xf -'
|
15839 | |
+ ;;
|
15840 | |
+ pax)
|
15841 | |
+ am__tar='pax -L -x $1 -w "$$tardir"'
|
15842 | |
+ am__tar_='pax -L -x $1 -w "$tardir"'
|
15843 | |
+ am__untar='pax -r'
|
15844 | |
+ ;;
|
15845 | |
+ cpio)
|
15846 | |
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
15847 | |
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
15848 | |
+ am__untar='cpio -i -H $1 -d'
|
15849 | |
+ ;;
|
15850 | |
+ none)
|
15851 | |
+ am__tar=false
|
15852 | |
+ am__tar_=false
|
15853 | |
+ am__untar=false
|
15854 | |
+ ;;
|
15855 | |
+ esac
|
15856 | |
|
15857 | |
- AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
|
15858 | |
- complCXXFLAGS=
|
15859 | |
- if test "x$enable_iso_cxx" != "xno"; then
|
15860 | |
- if test "x$GXX" = "xyes"; then
|
15861 | |
- case " $CXXFLAGS " in
|
15862 | |
- *[\ \ ]-ansi[\ \ ]*) ;;
|
15863 | |
- *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
|
15864 | |
- esac
|
15865 | |
+ # If the value was cached, stop now. We just wanted to have am__tar
|
15866 | |
+ # and am__untar set.
|
15867 | |
+ test -n "${am_cv_prog_tar_$1}" && break
|
15868 | |
|
15869 | |
- case " $CXXFLAGS " in
|
15870 | |
- *[\ \ ]-pedantic[\ \ ]*) ;;
|
15871 | |
- *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
|
15872 | |
- esac
|
15873 | |
- fi
|
15874 | |
- fi
|
15875 | |
- AC_MSG_RESULT($complCXXFLAGS)
|
15876 | |
+ # tar/untar a dummy directory, and stop if the command works
|
15877 | |
+ rm -rf conftest.dir
|
15878 | |
+ mkdir conftest.dir
|
15879 | |
+ echo GrepMe > conftest.dir/file
|
15880 | |
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
15881 | |
+ rm -rf conftest.dir
|
15882 | |
+ if test -s conftest.tar; then
|
15883 | |
+ AM_RUN_LOG([$am__untar <conftest.tar])
|
15884 | |
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
15885 | |
+ fi
|
15886 | |
+done
|
15887 | |
+rm -rf conftest.dir
|
15888 | |
|
15889 | |
- WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
|
15890 | |
- AC_SUBST(WARN_CXXFLAGS)
|
15891 | |
-])
|
15892 | |
+AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
15893 | |
+AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
15894 | |
+AC_SUBST([am__tar])
|
15895 | |
+AC_SUBST([am__untar])
|
15896 | |
+]) # _AM_PROG_TAR
|
15897 | |
|
15898 | |
m4_include([m4/gecko.m4])
|
15899 | |
m4_include([m4/gnome-doc-utils.m4])
|
15900 | |
diff -Naur epiphany-browser-2.20.1.old/configure epiphany-browser-2.20.1/configure
|
15901 | |
--- epiphany-browser-2.20.1.old/configure 2007-09-28 22:33:54.000000000 +0200
|
15902 | |
+++ epiphany-browser-2.20.1/configure 2007-11-01 07:06:48.000000000 +0100
|
|
1068 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/configure epiphany-browser-2.20.2/configure
|
|
1069 |
--- epiphany-browser-2.20.2.old/configure 2007-11-27 00:37:35.000000000 +0100
|
|
1070 |
+++ epiphany-browser-2.20.2/configure 2007-12-01 17:49:01.000000000 +0100
|
15903 | 1071 |
@@ -727,7 +727,7 @@
|
15904 | 1072 |
|
15905 | 1073 |
# Identity of this package.
|
15906 | 1074 |
PACKAGE_NAME='GNOME Web Browser'
|
15907 | 1075 |
-PACKAGE_TARNAME='epiphany'
|
15908 | 1076 |
+PACKAGE_TARNAME='epiphany-browser'
|
15909 | |
PACKAGE_VERSION='2.20.1'
|
15910 | |
PACKAGE_STRING='GNOME Web Browser 2.20.1'
|
|
1077 |
PACKAGE_VERSION='2.20.2'
|
|
1078 |
PACKAGE_STRING='GNOME Web Browser 2.20.2'
|
15911 | 1079 |
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=epiphany'
|
15912 | |
@@ -1019,6 +1019,7 @@
|
15913 | |
HAVE_GNOME_DOC_UTILS_TRUE
|
15914 | |
HAVE_GNOME_DOC_UTILS_FALSE
|
15915 | |
HTML_DIR
|
15916 | |
+GTKDOC_CHECK
|
15917 | |
ENABLE_GTK_DOC_TRUE
|
15918 | |
ENABLE_GTK_DOC_FALSE
|
15919 | |
GTK_DOC_USE_LIBTOOL_TRUE
|
|
1080 |
@@ -859,6 +859,7 @@
|
|
1081 |
CCDEPMODE
|
|
1082 |
am__fastdepCC_TRUE
|
|
1083 |
am__fastdepCC_FALSE
|
|
1084 |
+SED
|
|
1085 |
GREP
|
|
1086 |
EGREP
|
|
1087 |
LN_S
|
15920 | 1088 |
@@ -1606,7 +1607,7 @@
|
15921 | 1089 |
--infodir=DIR info documentation [DATAROOTDIR/info]
|
15922 | 1090 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
|
15932 | 1100 |
# Define the identity of the package.
|
15933 | 1101 |
- PACKAGE='epiphany'
|
15934 | 1102 |
+ PACKAGE='epiphany-browser'
|
15935 | |
VERSION='2.20.1'
|
15936 | |
|
15937 | |
|
15938 | |
@@ -4679,7 +4680,7 @@
|
|
1103 |
VERSION='2.20.2'
|
|
1104 |
|
|
1105 |
|
|
1106 |
@@ -4040,12 +4041,13 @@
|
|
1107 |
test -z "$as_dir" && as_dir=.
|
|
1108 |
for lt_ac_prog in sed gsed; do
|
|
1109 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
1110 |
- if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
|
1111 |
+ if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
|
|
1112 |
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
|
1113 |
fi
|
|
1114 |
done
|
|
1115 |
done
|
|
1116 |
done
|
|
1117 |
+IFS=$as_save_IFS
|
|
1118 |
lt_ac_max=0
|
|
1119 |
lt_ac_count=0
|
|
1120 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
|
1121 |
@@ -4080,6 +4082,7 @@
|
|
1122 |
fi
|
|
1123 |
|
|
1124 |
SED=$lt_cv_path_SED
|
|
1125 |
+
|
|
1126 |
{ echo "$as_me:$LINENO: result: $SED" >&5
|
|
1127 |
echo "${ECHO_T}$SED" >&6; }
|
|
1128 |
|
|
1129 |
@@ -4441,8 +4444,8 @@
|
|
1130 |
echo "${ECHO_T}no, using $LN_S" >&6; }
|
|
1131 |
fi
|
|
1132 |
|
|
1133 |
-{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
|
|
1134 |
-echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
|
|
1135 |
+{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
|
|
1136 |
+echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
|
|
1137 |
if test "${lt_cv_deplibs_check_method+set}" = set; then
|
|
1138 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
1139 |
else
|
|
1140 |
@@ -4483,9 +4486,15 @@
|
|
1141 |
|
|
1142 |
mingw* | pw32*)
|
|
1143 |
# Base MSYS/MinGW do not provide the 'file' command needed by
|
|
1144 |
- # func_win32_libid shell function, so use a weaker test based on 'objdump'.
|
|
1145 |
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
1146 |
- lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
1147 |
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
|
1148 |
+ # unless we find 'file', for example because we are cross-compiling.
|
|
1149 |
+ if ( file / ) >/dev/null 2>&1; then
|
|
1150 |
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
1151 |
+ lt_cv_file_magic_cmd='func_win32_libid'
|
|
1152 |
+ else
|
|
1153 |
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
1154 |
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
1155 |
+ fi
|
|
1156 |
;;
|
|
1157 |
|
|
1158 |
darwin* | rhapsody*)
|
|
1159 |
@@ -4530,7 +4539,7 @@
|
|
1160 |
esac
|
|
1161 |
;;
|
|
1162 |
|
|
1163 |
-interix3*)
|
|
1164 |
+interix[3-9]*)
|
|
1165 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
|
1166 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
|
1167 |
;;
|
|
1168 |
@@ -4580,6 +4589,10 @@
|
|
1169 |
lt_cv_deplibs_check_method=pass_all
|
|
1170 |
;;
|
|
1171 |
|
|
1172 |
+rdos*)
|
|
1173 |
+ lt_cv_deplibs_check_method=pass_all
|
|
1174 |
+ ;;
|
|
1175 |
+
|
|
1176 |
solaris*)
|
|
1177 |
lt_cv_deplibs_check_method=pass_all
|
|
1178 |
;;
|
|
1179 |
@@ -4667,7 +4680,7 @@
|
15939 | 1180 |
;;
|
15940 | 1181 |
*-*-irix6*)
|
15941 | 1182 |
# Find out which ABI we are using.
|
15942 | |
- echo '#line 4682 "configure"' > conftest.$ac_ext
|
|
1183 |
- echo '#line 4670 "configure"' > conftest.$ac_ext
|
15943 | 1184 |
+ echo '#line 4683 "configure"' > conftest.$ac_ext
|
15944 | 1185 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
15945 | 1186 |
(eval $ac_compile) 2>&5
|
15946 | 1187 |
ac_status=$?
|
15947 | |
@@ -7421,11 +7422,11 @@
|
|
1188 |
@@ -4702,7 +4715,8 @@
|
|
1189 |
rm -rf conftest*
|
|
1190 |
;;
|
|
1191 |
|
|
1192 |
-x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
|
|
1193 |
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
|
1194 |
+s390*-*linux*|sparc*-*linux*)
|
|
1195 |
# Find out which ABI we are using.
|
|
1196 |
echo 'int i;' > conftest.$ac_ext
|
|
1197 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
1198 |
@@ -4713,6 +4727,9 @@
|
|
1199 |
case `/usr/bin/file conftest.o` in
|
|
1200 |
*32-bit*)
|
|
1201 |
case $host in
|
|
1202 |
+ x86_64-*kfreebsd*-gnu)
|
|
1203 |
+ LD="${LD-ld} -m elf_i386_fbsd"
|
|
1204 |
+ ;;
|
|
1205 |
x86_64-*linux*)
|
|
1206 |
LD="${LD-ld} -m elf_i386"
|
|
1207 |
;;
|
|
1208 |
@@ -4729,6 +4746,9 @@
|
|
1209 |
;;
|
|
1210 |
*64-bit*)
|
|
1211 |
case $host in
|
|
1212 |
+ x86_64-*kfreebsd*-gnu)
|
|
1213 |
+ LD="${LD-ld} -m elf_x86_64_fbsd"
|
|
1214 |
+ ;;
|
|
1215 |
x86_64-*linux*)
|
|
1216 |
LD="${LD-ld} -m elf_x86_64"
|
|
1217 |
;;
|
|
1218 |
@@ -6521,24 +6541,27 @@
|
|
1219 |
fi
|
|
1220 |
;;
|
|
1221 |
*)
|
|
1222 |
- # If test is not a shell built-in, we'll probably end up computing a
|
|
1223 |
- # maximum length that is only half of the actual maximum length, but
|
|
1224 |
- # we can't tell.
|
|
1225 |
- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
|
1226 |
- while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
|
|
1227 |
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
|
1228 |
+ if test -n "$lt_cv_sys_max_cmd_len"; then
|
|
1229 |
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
1230 |
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
1231 |
+ else
|
|
1232 |
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
|
1233 |
+ while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
|
|
1234 |
= "XX$teststring") >/dev/null 2>&1 &&
|
|
1235 |
- new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
|
1236 |
- lt_cv_sys_max_cmd_len=$new_result &&
|
|
1237 |
- test $i != 17 # 1/2 MB should be enough
|
|
1238 |
- do
|
|
1239 |
- i=`expr $i + 1`
|
|
1240 |
- teststring=$teststring$teststring
|
|
1241 |
- done
|
|
1242 |
- teststring=
|
|
1243 |
- # Add a significant safety factor because C++ compilers can tack on massive
|
|
1244 |
- # amounts of additional arguments before passing them to the linker.
|
|
1245 |
- # It appears as though 1/2 is a usable value.
|
|
1246 |
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
|
1247 |
+ new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
|
1248 |
+ lt_cv_sys_max_cmd_len=$new_result &&
|
|
1249 |
+ test $i != 17 # 1/2 MB should be enough
|
|
1250 |
+ do
|
|
1251 |
+ i=`expr $i + 1`
|
|
1252 |
+ teststring=$teststring$teststring
|
|
1253 |
+ done
|
|
1254 |
+ teststring=
|
|
1255 |
+ # Add a significant safety factor because C++ compilers can tack on massive
|
|
1256 |
+ # amounts of additional arguments before passing them to the linker.
|
|
1257 |
+ # It appears as though 1/2 is a usable value.
|
|
1258 |
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
|
1259 |
+ fi
|
|
1260 |
;;
|
|
1261 |
esac
|
|
1262 |
|
|
1263 |
@@ -6555,6 +6578,7 @@
|
|
1264 |
|
|
1265 |
|
|
1266 |
|
|
1267 |
+
|
|
1268 |
# Check for command to grab the raw symbol name followed by C symbol from nm.
|
|
1269 |
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
|
|
1270 |
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
|
|
1271 |
@@ -7143,7 +7167,7 @@
|
|
1272 |
test -z "$ac_objext" && ac_objext=o
|
|
1273 |
|
|
1274 |
# Determine commands to create old-style static archives.
|
|
1275 |
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
|
|
1276 |
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
|
1277 |
old_postinstall_cmds='chmod 644 $oldlib'
|
|
1278 |
old_postuninstall_cmds=
|
|
1279 |
|
|
1280 |
@@ -7343,10 +7367,10 @@
|
|
1281 |
objext=$objext
|
|
1282 |
|
|
1283 |
# Code to be used in simple compile tests
|
|
1284 |
-lt_simple_compile_test_code="int some_variable = 0;\n"
|
|
1285 |
+lt_simple_compile_test_code="int some_variable = 0;"
|
|
1286 |
|
|
1287 |
# Code to be used in simple link tests
|
|
1288 |
-lt_simple_link_test_code='int main(){return(0);}\n'
|
|
1289 |
+lt_simple_link_test_code='int main(){return(0);}'
|
|
1290 |
|
|
1291 |
|
|
1292 |
# If no C compiler was specified, use CC.
|
|
1293 |
@@ -7361,13 +7385,13 @@
|
|
1294 |
|
|
1295 |
# save warnings/boilerplate of simple test code
|
|
1296 |
ac_outfile=conftest.$ac_objext
|
|
1297 |
-printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
1298 |
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
1299 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
1300 |
_lt_compiler_boilerplate=`cat conftest.err`
|
|
1301 |
$rm conftest*
|
|
1302 |
|
|
1303 |
ac_outfile=conftest.$ac_objext
|
|
1304 |
-printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
1305 |
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
1306 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
1307 |
_lt_linker_boilerplate=`cat conftest.err`
|
|
1308 |
$rm conftest*
|
|
1309 |
@@ -7387,7 +7411,7 @@
|
|
1310 |
else
|
|
1311 |
lt_cv_prog_compiler_rtti_exceptions=no
|
|
1312 |
ac_outfile=conftest.$ac_objext
|
|
1313 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
1314 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
1315 |
lt_compiler_flag="-fno-rtti -fno-exceptions"
|
|
1316 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
1317 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
1318 |
@@ -7398,11 +7422,11 @@
|
15948 | 1319 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
15949 | 1320 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
15950 | 1321 |
-e 's:$: $lt_compiler_flag:'`
|
15951 | |
- (eval echo "\"\$as_me:7424: $lt_compile\"" >&5)
|
|
1322 |
- (eval echo "\"\$as_me:7401: $lt_compile\"" >&5)
|
15952 | 1323 |
+ (eval echo "\"\$as_me:7425: $lt_compile\"" >&5)
|
15953 | 1324 |
(eval "$lt_compile" 2>conftest.err)
|
15954 | 1325 |
ac_status=$?
|
15955 | 1326 |
cat conftest.err >&5
|
15956 | |
- echo "$as_me:7428: \$? = $ac_status" >&5
|
|
1327 |
- echo "$as_me:7405: \$? = $ac_status" >&5
|
15957 | 1328 |
+ echo "$as_me:7429: \$? = $ac_status" >&5
|
15958 | 1329 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
15959 | 1330 |
# The compiler can only warn and ignore the option if not recognized
|
15960 | 1331 |
# So say no if there are warnings other than the usual output.
|
15961 | |
@@ -7711,11 +7712,11 @@
|
|
1332 |
@@ -7453,13 +7477,15 @@
|
|
1333 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
|
1334 |
;;
|
|
1335 |
|
|
1336 |
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
1337 |
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
1338 |
# PIC is the default for these OSes.
|
|
1339 |
;;
|
|
1340 |
|
|
1341 |
- mingw* | pw32* | os2*)
|
|
1342 |
+ mingw* | cygwin* | pw32* | os2*)
|
|
1343 |
# This hack is so that the source file can tell whether it is being
|
|
1344 |
# built for inclusion in a dll (and should export symbols for example).
|
|
1345 |
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
1346 |
+ # (--disable-auto-import) libraries
|
|
1347 |
lt_prog_compiler_pic='-DDLL_EXPORT'
|
|
1348 |
;;
|
|
1349 |
|
|
1350 |
@@ -7469,7 +7495,7 @@
|
|
1351 |
lt_prog_compiler_pic='-fno-common'
|
|
1352 |
;;
|
|
1353 |
|
|
1354 |
- interix3*)
|
|
1355 |
+ interix[3-9]*)
|
|
1356 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
1357 |
# Instead, we relocate shared libraries at runtime.
|
|
1358 |
;;
|
|
1359 |
@@ -7527,7 +7553,7 @@
|
|
1360 |
esac
|
|
1361 |
;;
|
|
1362 |
|
|
1363 |
- mingw* | pw32* | os2*)
|
|
1364 |
+ mingw* | cygwin* | pw32* | os2*)
|
|
1365 |
# This hack is so that the source file can tell whether it is being
|
|
1366 |
# built for inclusion in a dll (and should export symbols for example).
|
|
1367 |
lt_prog_compiler_pic='-DDLL_EXPORT'
|
|
1368 |
@@ -7579,6 +7605,22 @@
|
|
1369 |
# All Alpha code is PIC.
|
|
1370 |
lt_prog_compiler_static='-non_shared'
|
|
1371 |
;;
|
|
1372 |
+ *)
|
|
1373 |
+ case `$CC -V 2>&1 | sed 5q` in
|
|
1374 |
+ *Sun\ C*)
|
|
1375 |
+ # Sun C 5.9
|
|
1376 |
+ lt_prog_compiler_pic='-KPIC'
|
|
1377 |
+ lt_prog_compiler_static='-Bstatic'
|
|
1378 |
+ lt_prog_compiler_wl='-Wl,'
|
|
1379 |
+ ;;
|
|
1380 |
+ *Sun\ F*)
|
|
1381 |
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
|
1382 |
+ lt_prog_compiler_pic='-KPIC'
|
|
1383 |
+ lt_prog_compiler_static='-Bstatic'
|
|
1384 |
+ lt_prog_compiler_wl=''
|
|
1385 |
+ ;;
|
|
1386 |
+ esac
|
|
1387 |
+ ;;
|
|
1388 |
esac
|
|
1389 |
;;
|
|
1390 |
|
|
1391 |
@@ -7588,6 +7630,10 @@
|
|
1392 |
lt_prog_compiler_static='-non_shared'
|
|
1393 |
;;
|
|
1394 |
|
|
1395 |
+ rdos*)
|
|
1396 |
+ lt_prog_compiler_static='-non_shared'
|
|
1397 |
+ ;;
|
|
1398 |
+
|
|
1399 |
solaris*)
|
|
1400 |
lt_prog_compiler_pic='-KPIC'
|
|
1401 |
lt_prog_compiler_static='-Bstatic'
|
|
1402 |
@@ -7655,7 +7701,7 @@
|
|
1403 |
else
|
|
1404 |
lt_prog_compiler_pic_works=no
|
|
1405 |
ac_outfile=conftest.$ac_objext
|
|
1406 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
1407 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
1408 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
|
|
1409 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
1410 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
1411 |
@@ -7666,11 +7712,11 @@
|
15962 | 1412 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
15963 | 1413 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
15964 | 1414 |
-e 's:$: $lt_compiler_flag:'`
|
15965 | |
- (eval echo "\"\$as_me:7714: $lt_compile\"" >&5)
|
|
1415 |
- (eval echo "\"\$as_me:7669: $lt_compile\"" >&5)
|
15966 | 1416 |
+ (eval echo "\"\$as_me:7715: $lt_compile\"" >&5)
|
15967 | 1417 |
(eval "$lt_compile" 2>conftest.err)
|
15968 | 1418 |
ac_status=$?
|
15969 | 1419 |
cat conftest.err >&5
|
15970 | |
- echo "$as_me:7718: \$? = $ac_status" >&5
|
|
1420 |
- echo "$as_me:7673: \$? = $ac_status" >&5
|
15971 | 1421 |
+ echo "$as_me:7719: \$? = $ac_status" >&5
|
15972 | 1422 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
15973 | 1423 |
# The compiler can only warn and ignore the option if not recognized
|
15974 | 1424 |
# So say no if there are warnings other than the usual output.
|
15975 | |
@@ -7815,11 +7816,11 @@
|
|
1425 |
@@ -7719,7 +7765,7 @@
|
|
1426 |
lt_prog_compiler_static_works=no
|
|
1427 |
save_LDFLAGS="$LDFLAGS"
|
|
1428 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
1429 |
- printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
1430 |
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
1431 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
1432 |
# The linker can only warn and ignore the option if not recognized
|
|
1433 |
# So say no if there are warnings
|
|
1434 |
@@ -7759,7 +7805,7 @@
|
|
1435 |
mkdir conftest
|
|
1436 |
cd conftest
|
|
1437 |
mkdir out
|
|
1438 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
1439 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
1440 |
|
|
1441 |
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
1442 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
1443 |
@@ -7770,11 +7816,11 @@
|
15976 | 1444 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
15977 | 1445 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
15978 | 1446 |
-e 's:$: $lt_compiler_flag:'`
|
15979 | |
- (eval echo "\"\$as_me:7818: $lt_compile\"" >&5)
|
|
1447 |
- (eval echo "\"\$as_me:7773: $lt_compile\"" >&5)
|
15980 | 1448 |
+ (eval echo "\"\$as_me:7819: $lt_compile\"" >&5)
|
15981 | 1449 |
(eval "$lt_compile" 2>out/conftest.err)
|
15982 | 1450 |
ac_status=$?
|
15983 | 1451 |
cat out/conftest.err >&5
|
15984 | |
- echo "$as_me:7822: \$? = $ac_status" >&5
|
|
1452 |
- echo "$as_me:7777: \$? = $ac_status" >&5
|
15985 | 1453 |
+ echo "$as_me:7823: \$? = $ac_status" >&5
|
15986 | 1454 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
15987 | 1455 |
then
|
15988 | 1456 |
# The compiler can only warn and ignore the option if not recognized
|
15989 | |
@@ -10177,7 +10178,7 @@
|
|
1457 |
@@ -7966,7 +8012,7 @@
|
|
1458 |
allow_undefined_flag=unsupported
|
|
1459 |
always_export_symbols=no
|
|
1460 |
enable_shared_with_static_runtimes=yes
|
|
1461 |
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
|
1462 |
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
1463 |
|
|
1464 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
|
1465 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
1466 |
@@ -7984,7 +8030,7 @@
|
|
1467 |
fi
|
|
1468 |
;;
|
|
1469 |
|
|
1470 |
- interix3*)
|
|
1471 |
+ interix[3-9]*)
|
|
1472 |
hardcode_direct=no
|
|
1473 |
hardcode_shlibpath_var=no
|
|
1474 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
|
1475 |
@@ -7999,7 +8045,7 @@
|
|
1476 |
archive_expsym_cmds='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'
|
|
1477 |
;;
|
|
1478 |
|
|
1479 |
- linux* | k*bsd*-gnu)
|
|
1480 |
+ gnu* | linux* | k*bsd*-gnu)
|
|
1481 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
1482 |
tmp_addflag=
|
|
1483 |
case $cc_basename,$host_cpu in
|
|
1484 |
@@ -8017,13 +8063,22 @@
|
|
1485 |
ifc* | ifort*) # Intel Fortran compiler
|
|
1486 |
tmp_addflag=' -nofor_main' ;;
|
|
1487 |
esac
|
|
1488 |
- archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
1489 |
+ case `$CC -V 2>&1 | sed 5q` in
|
|
1490 |
+ *Sun\ C*) # Sun C 5.9
|
|
1491 |
+ whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
1492 |
+ tmp_sharedflag='-G' ;;
|
|
1493 |
+ *Sun\ F*) # Sun Fortran 8.3
|
|
1494 |
+ tmp_sharedflag='-G' ;;
|
|
1495 |
+ *)
|
|
1496 |
+ tmp_sharedflag='-shared' ;;
|
|
1497 |
+ esac
|
|
1498 |
+ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
1499 |
|
|
1500 |
if test $supports_anon_versioning = yes; then
|
|
1501 |
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
|
|
1502 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
1503 |
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
1504 |
- $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
1505 |
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
1506 |
fi
|
|
1507 |
link_all_deplibs=no
|
|
1508 |
else
|
|
1509 |
@@ -8183,7 +8238,7 @@
|
|
1510 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|
1511 |
then
|
|
1512 |
# We have reworked collect2
|
|
1513 |
- hardcode_direct=yes
|
|
1514 |
+ :
|
|
1515 |
else
|
|
1516 |
# We have old collect2
|
|
1517 |
hardcode_direct=unsupported
|
|
1518 |
@@ -8257,11 +8312,18 @@
|
|
1519 |
} && test -s conftest$ac_exeext &&
|
|
1520 |
$as_test_x conftest$ac_exeext; then
|
|
1521 |
|
|
1522 |
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
|
1523 |
-}'`
|
|
1524 |
+lt_aix_libpath_sed='
|
|
1525 |
+ /Import File Strings/,/^$/ {
|
|
1526 |
+ /^0/ {
|
|
1527 |
+ s/^0 *\(.*\)$/\1/
|
|
1528 |
+ p
|
|
1529 |
+ }
|
|
1530 |
+ }'
|
|
1531 |
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
1532 |
# Check for a 64-bit object if we didn't find anything.
|
|
1533 |
-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; }
|
|
1534 |
-}'`; fi
|
|
1535 |
+if test -z "$aix_libpath"; then
|
|
1536 |
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
1537 |
+fi
|
|
1538 |
else
|
|
1539 |
echo "$as_me: failed program was:" >&5
|
|
1540 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
1541 |
@@ -8316,11 +8378,18 @@
|
|
1542 |
} && test -s conftest$ac_exeext &&
|
|
1543 |
$as_test_x conftest$ac_exeext; then
|
|
1544 |
|
|
1545 |
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
|
1546 |
-}'`
|
|
1547 |
+lt_aix_libpath_sed='
|
|
1548 |
+ /Import File Strings/,/^$/ {
|
|
1549 |
+ /^0/ {
|
|
1550 |
+ s/^0 *\(.*\)$/\1/
|
|
1551 |
+ p
|
|
1552 |
+ }
|
|
1553 |
+ }'
|
|
1554 |
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
1555 |
# Check for a 64-bit object if we didn't find anything.
|
|
1556 |
-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; }
|
|
1557 |
-}'`; fi
|
|
1558 |
+if test -z "$aix_libpath"; then
|
|
1559 |
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
1560 |
+fi
|
|
1561 |
else
|
|
1562 |
echo "$as_me: failed program was:" >&5
|
|
1563 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
1564 |
@@ -8374,7 +8443,7 @@
|
|
1565 |
# The linker will automatically build a .lib file if we build a DLL.
|
|
1566 |
old_archive_From_new_cmds='true'
|
|
1567 |
# FIXME: Should let the user specify the lib program.
|
|
1568 |
- old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
|
1569 |
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
1570 |
fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
1571 |
enable_shared_with_static_runtimes=yes
|
|
1572 |
;;
|
|
1573 |
@@ -8416,10 +8485,10 @@
|
|
1574 |
case $cc_basename in
|
|
1575 |
xlc*)
|
|
1576 |
output_verbose_link_cmd='echo'
|
|
1577 |
- archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
|
1578 |
+ archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
|
1579 |
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
1580 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
1581 |
- archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
1582 |
+ archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
1583 |
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
1584 |
;;
|
|
1585 |
*)
|
|
1586 |
@@ -8581,24 +8650,28 @@
|
|
1587 |
;;
|
|
1588 |
|
|
1589 |
openbsd*)
|
|
1590 |
- hardcode_direct=yes
|
|
1591 |
- hardcode_shlibpath_var=no
|
|
1592 |
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
1593 |
- archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
1594 |
- archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
1595 |
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
|
1596 |
- export_dynamic_flag_spec='${wl}-E'
|
|
1597 |
+ if test -f /usr/libexec/ld.so; then
|
|
1598 |
+ hardcode_direct=yes
|
|
1599 |
+ hardcode_shlibpath_var=no
|
|
1600 |
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
1601 |
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
1602 |
+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
1603 |
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
|
1604 |
+ export_dynamic_flag_spec='${wl}-E'
|
|
1605 |
+ else
|
|
1606 |
+ case $host_os in
|
|
1607 |
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
|
1608 |
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
1609 |
+ hardcode_libdir_flag_spec='-R$libdir'
|
|
1610 |
+ ;;
|
|
1611 |
+ *)
|
|
1612 |
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
1613 |
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
|
1614 |
+ ;;
|
|
1615 |
+ esac
|
|
1616 |
+ fi
|
|
1617 |
else
|
|
1618 |
- case $host_os in
|
|
1619 |
- openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
|
1620 |
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
1621 |
- hardcode_libdir_flag_spec='-R$libdir'
|
|
1622 |
- ;;
|
|
1623 |
- *)
|
|
1624 |
- archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
1625 |
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
|
1626 |
- ;;
|
|
1627 |
- esac
|
|
1628 |
+ ld_shlibs=no
|
|
1629 |
fi
|
|
1630 |
;;
|
|
1631 |
|
|
1632 |
@@ -8657,17 +8730,16 @@
|
|
1633 |
case $host_os in
|
|
1634 |
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
|
1635 |
*)
|
|
1636 |
- # The compiler driver will combine linker options so we
|
|
1637 |
- # cannot just pass the convience library names through
|
|
1638 |
- # without $wl, iff we do not link with $LD.
|
|
1639 |
- # Luckily, gcc supports the same syntax we need for Sun Studio.
|
|
1640 |
+ # The compiler driver will combine and reorder linker options,
|
|
1641 |
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
|
|
1642 |
+ # but is careful enough not to reorder.
|
|
1643 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
1644 |
- case $wlarc in
|
|
1645 |
- '')
|
|
1646 |
- whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
|
|
1647 |
- *)
|
|
1648 |
- whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
|
|
1649 |
- esac ;;
|
|
1650 |
+ if test "$GCC" = yes; then
|
|
1651 |
+ whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
|
1652 |
+ else
|
|
1653 |
+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
|
1654 |
+ fi
|
|
1655 |
+ ;;
|
|
1656 |
esac
|
|
1657 |
link_all_deplibs=yes
|
|
1658 |
;;
|
|
1659 |
@@ -8724,7 +8796,7 @@
|
|
1660 |
fi
|
|
1661 |
;;
|
|
1662 |
|
|
1663 |
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
|
|
1664 |
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
|
1665 |
no_undefined_flag='${wl}-z,text'
|
|
1666 |
archive_cmds_need_lc=no
|
|
1667 |
hardcode_shlibpath_var=no
|
|
1668 |
@@ -8801,7 +8873,7 @@
|
|
1669 |
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
|
1670 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
|
1671 |
$rm conftest*
|
|
1672 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
1673 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
1674 |
|
|
1675 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
1676 |
(eval $ac_compile) 2>&5
|
|
1677 |
@@ -8859,17 +8931,55 @@
|
|
1678 |
version_type=none
|
|
1679 |
dynamic_linker="$host_os ld.so"
|
|
1680 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
1681 |
+
|
|
1682 |
if test "$GCC" = yes; then
|
|
1683 |
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
1684 |
- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
|
1685 |
+ case $host_os in
|
|
1686 |
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
|
1687 |
+ *) lt_awk_arg="/^libraries:/" ;;
|
|
1688 |
+ esac
|
|
1689 |
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
1690 |
+ if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
|
|
1691 |
# if the path contains ";" then we assume it to be the separator
|
|
1692 |
# otherwise default to the standard path separator (i.e. ":") - it is
|
|
1693 |
# assumed that no part of a normal pathname contains ";" but that should
|
|
1694 |
# okay in the real world where ";" in dirpaths is itself problematic.
|
|
1695 |
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
1696 |
+ lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
|
|
1697 |
else
|
|
1698 |
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
1699 |
+ lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
1700 |
fi
|
|
1701 |
+ # Ok, now we have the path, separated by spaces, we can step through it
|
|
1702 |
+ # and add multilib dir if necessary.
|
|
1703 |
+ lt_tmp_lt_search_path_spec=
|
|
1704 |
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
|
1705 |
+ for lt_sys_path in $lt_search_path_spec; do
|
|
1706 |
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
|
1707 |
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
|
1708 |
+ else
|
|
1709 |
+ test -d "$lt_sys_path" && \
|
|
1710 |
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
|
1711 |
+ fi
|
|
1712 |
+ done
|
|
1713 |
+ lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
|
|
1714 |
+BEGIN {RS=" "; FS="/|\n";} {
|
|
1715 |
+ lt_foo="";
|
|
1716 |
+ lt_count=0;
|
|
1717 |
+ for (lt_i = NF; lt_i > 0; lt_i--) {
|
|
1718 |
+ if ($lt_i != "" && $lt_i != ".") {
|
|
1719 |
+ if ($lt_i == "..") {
|
|
1720 |
+ lt_count++;
|
|
1721 |
+ } else {
|
|
1722 |
+ if (lt_count == 0) {
|
|
1723 |
+ lt_foo="/" $lt_i lt_foo;
|
|
1724 |
+ } else {
|
|
1725 |
+ lt_count--;
|
|
1726 |
+ }
|
|
1727 |
+ }
|
|
1728 |
+ }
|
|
1729 |
+ }
|
|
1730 |
+ if (lt_foo != "") { lt_freq[lt_foo]++; }
|
|
1731 |
+ if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
|
1732 |
+}'`
|
|
1733 |
+ sys_lib_search_path_spec=`echo $lt_search_path_spec`
|
|
1734 |
else
|
|
1735 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
|
1736 |
fi
|
|
1737 |
@@ -9029,12 +9139,8 @@
|
|
1738 |
shlibpath_overrides_runpath=yes
|
|
1739 |
shlibpath_var=DYLD_LIBRARY_PATH
|
|
1740 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
1741 |
- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
|
1742 |
- if test "$GCC" = yes; then
|
|
1743 |
- 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"`
|
|
1744 |
- else
|
|
1745 |
- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
|
1746 |
- fi
|
|
1747 |
+
|
|
1748 |
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
|
1749 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
1750 |
;;
|
|
1751 |
|
|
1752 |
@@ -9088,7 +9194,7 @@
|
|
1753 |
shlibpath_overrides_runpath=no
|
|
1754 |
hardcode_into_libs=yes
|
|
1755 |
;;
|
|
1756 |
- freebsd*) # from 4.6 on
|
|
1757 |
+ *) # from 4.6 on, and DragonFly
|
|
1758 |
shlibpath_overrides_runpath=yes
|
|
1759 |
hardcode_into_libs=yes
|
|
1760 |
;;
|
|
1761 |
@@ -9151,7 +9257,7 @@
|
|
1762 |
postinstall_cmds='chmod 555 $lib'
|
|
1763 |
;;
|
|
1764 |
|
|
1765 |
-interix3*)
|
|
1766 |
+interix[3-9]*)
|
|
1767 |
version_type=linux
|
|
1768 |
need_lib_prefix=no
|
|
1769 |
need_version=no
|
|
1770 |
@@ -9222,7 +9328,7 @@
|
|
1771 |
|
|
1772 |
# Append ld.so.conf contents to the search path
|
|
1773 |
if test -f /etc/ld.so.conf; then
|
|
1774 |
- 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' ' '`
|
|
1775 |
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
|
1776 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
1777 |
fi
|
|
1778 |
|
|
1779 |
@@ -9328,6 +9434,10 @@
|
|
1780 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
1781 |
;;
|
|
1782 |
|
|
1783 |
+rdos*)
|
|
1784 |
+ dynamic_linker=no
|
|
1785 |
+ ;;
|
|
1786 |
+
|
|
1787 |
solaris*)
|
|
1788 |
version_type=linux
|
|
1789 |
need_lib_prefix=no
|
|
1790 |
@@ -9481,6 +9591,7 @@
|
|
1791 |
darwin*)
|
|
1792 |
if test -n "$STRIP" ; then
|
|
1793 |
striplib="$STRIP -x"
|
|
1794 |
+ old_striplib="$STRIP -S"
|
|
1795 |
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
1796 |
echo "${ECHO_T}yes" >&6; }
|
|
1797 |
else
|
|
1798 |
@@ -10067,7 +10178,7 @@
|
15990 | 1799 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
15991 | 1800 |
lt_status=$lt_dlunknown
|
15992 | 1801 |
cat > conftest.$ac_ext <<EOF
|
15993 | |
-#line 10180 "configure"
|
|
1802 |
-#line 10070 "configure"
|
15994 | 1803 |
+#line 10181 "configure"
|
15995 | 1804 |
#include "confdefs.h"
|
15996 | 1805 |
|
15997 | 1806 |
#if HAVE_DLFCN_H
|
15998 | |
@@ -10277,7 +10278,7 @@
|
|
1807 |
@@ -10167,7 +10278,7 @@
|
15999 | 1808 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
16000 | 1809 |
lt_status=$lt_dlunknown
|
16001 | 1810 |
cat > conftest.$ac_ext <<EOF
|
16002 | |
-#line 10280 "configure"
|
|
1811 |
-#line 10170 "configure"
|
16003 | 1812 |
+#line 10281 "configure"
|
16004 | 1813 |
#include "confdefs.h"
|
16005 | 1814 |
|
16006 | 1815 |
#if HAVE_DLFCN_H
|
16007 | |
@@ -12697,11 +12698,11 @@
|
|
1816 |
@@ -10365,6 +10476,7 @@
|
|
1817 |
module_cmds \
|
|
1818 |
module_expsym_cmds \
|
|
1819 |
lt_cv_prog_compiler_c_o \
|
|
1820 |
+ fix_srcfile_path \
|
|
1821 |
exclude_expsyms \
|
|
1822 |
include_expsyms; do
|
|
1823 |
|
|
1824 |
@@ -10409,7 +10521,7 @@
|
|
1825 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
|
1826 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
1827 |
#
|
|
1828 |
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
|
|
1829 |
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
|
|
1830 |
# Free Software Foundation, Inc.
|
|
1831 |
#
|
|
1832 |
# This file is part of GNU Libtool:
|
|
1833 |
@@ -10733,7 +10845,7 @@
|
|
1834 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|
1835 |
|
|
1836 |
# Fix the shell variable \$srcfile for the compiler.
|
|
1837 |
-fix_srcfile_path="$fix_srcfile_path"
|
|
1838 |
+fix_srcfile_path=$lt_fix_srcfile_path
|
|
1839 |
|
|
1840 |
# Set to yes if exported symbols are required.
|
|
1841 |
always_export_symbols=$always_export_symbols
|
|
1842 |
@@ -10902,10 +11014,10 @@
|
|
1843 |
objext_CXX=$objext
|
|
1844 |
|
|
1845 |
# Code to be used in simple compile tests
|
|
1846 |
-lt_simple_compile_test_code="int some_variable = 0;\n"
|
|
1847 |
+lt_simple_compile_test_code="int some_variable = 0;"
|
|
1848 |
|
|
1849 |
# Code to be used in simple link tests
|
|
1850 |
-lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
|
|
1851 |
+lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
|
|
1852 |
|
|
1853 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
1854 |
|
|
1855 |
@@ -10921,13 +11033,13 @@
|
|
1856 |
|
|
1857 |
# save warnings/boilerplate of simple test code
|
|
1858 |
ac_outfile=conftest.$ac_objext
|
|
1859 |
-printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
1860 |
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
1861 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
1862 |
_lt_compiler_boilerplate=`cat conftest.err`
|
|
1863 |
$rm conftest*
|
|
1864 |
|
|
1865 |
ac_outfile=conftest.$ac_objext
|
|
1866 |
-printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
1867 |
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
1868 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
1869 |
_lt_linker_boilerplate=`cat conftest.err`
|
|
1870 |
$rm conftest*
|
|
1871 |
@@ -11186,7 +11298,7 @@
|
|
1872 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|
1873 |
then
|
|
1874 |
# We have reworked collect2
|
|
1875 |
- hardcode_direct_CXX=yes
|
|
1876 |
+ :
|
|
1877 |
else
|
|
1878 |
# We have old collect2
|
|
1879 |
hardcode_direct_CXX=unsupported
|
|
1880 |
@@ -11260,11 +11372,18 @@
|
|
1881 |
} && test -s conftest$ac_exeext &&
|
|
1882 |
$as_test_x conftest$ac_exeext; then
|
|
1883 |
|
|
1884 |
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
|
1885 |
-}'`
|
|
1886 |
+lt_aix_libpath_sed='
|
|
1887 |
+ /Import File Strings/,/^$/ {
|
|
1888 |
+ /^0/ {
|
|
1889 |
+ s/^0 *\(.*\)$/\1/
|
|
1890 |
+ p
|
|
1891 |
+ }
|
|
1892 |
+ }'
|
|
1893 |
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
1894 |
# Check for a 64-bit object if we didn't find anything.
|
|
1895 |
-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; }
|
|
1896 |
-}'`; fi
|
|
1897 |
+if test -z "$aix_libpath"; then
|
|
1898 |
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
1899 |
+fi
|
|
1900 |
else
|
|
1901 |
echo "$as_me: failed program was:" >&5
|
|
1902 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
1903 |
@@ -11320,11 +11439,18 @@
|
|
1904 |
} && test -s conftest$ac_exeext &&
|
|
1905 |
$as_test_x conftest$ac_exeext; then
|
|
1906 |
|
|
1907 |
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
|
1908 |
-}'`
|
|
1909 |
+lt_aix_libpath_sed='
|
|
1910 |
+ /Import File Strings/,/^$/ {
|
|
1911 |
+ /^0/ {
|
|
1912 |
+ s/^0 *\(.*\)$/\1/
|
|
1913 |
+ p
|
|
1914 |
+ }
|
|
1915 |
+ }'
|
|
1916 |
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
1917 |
# Check for a 64-bit object if we didn't find anything.
|
|
1918 |
-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; }
|
|
1919 |
-}'`; fi
|
|
1920 |
+if test -z "$aix_libpath"; then
|
|
1921 |
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
1922 |
+fi
|
|
1923 |
else
|
|
1924 |
echo "$as_me: failed program was:" >&5
|
|
1925 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
1926 |
@@ -11443,10 +11569,10 @@
|
|
1927 |
case $cc_basename in
|
|
1928 |
xlc*)
|
|
1929 |
output_verbose_link_cmd='echo'
|
|
1930 |
- archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
|
1931 |
+ archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
|
1932 |
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
1933 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
1934 |
- archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
1935 |
+ archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
1936 |
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
1937 |
;;
|
|
1938 |
*)
|
|
1939 |
@@ -11529,9 +11655,7 @@
|
|
1940 |
hardcode_libdir_separator_CXX=:
|
|
1941 |
|
|
1942 |
case $host_cpu in
|
|
1943 |
- hppa*64*|ia64*)
|
|
1944 |
- hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
|
|
1945 |
- ;;
|
|
1946 |
+ hppa*64*|ia64*) ;;
|
|
1947 |
*)
|
|
1948 |
export_dynamic_flag_spec_CXX='${wl}-E'
|
|
1949 |
;;
|
|
1950 |
@@ -11599,7 +11723,7 @@
|
|
1951 |
;;
|
|
1952 |
esac
|
|
1953 |
;;
|
|
1954 |
- interix3*)
|
|
1955 |
+ interix[3-9]*)
|
|
1956 |
hardcode_direct_CXX=no
|
|
1957 |
hardcode_shlibpath_var_CXX=no
|
|
1958 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
|
1959 |
@@ -11719,6 +11843,29 @@
|
|
1960 |
# dependencies.
|
|
1961 |
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'
|
|
1962 |
;;
|
|
1963 |
+ *)
|
|
1964 |
+ case `$CC -V 2>&1 | sed 5q` in
|
|
1965 |
+ *Sun\ C*)
|
|
1966 |
+ # Sun C++ 5.9
|
|
1967 |
+ no_undefined_flag_CXX=' -zdefs'
|
|
1968 |
+ archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
1969 |
+ archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
|
|
1970 |
+ hardcode_libdir_flag_spec_CXX='-R$libdir'
|
|
1971 |
+ whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
1972 |
+
|
|
1973 |
+ # Not sure whether something based on
|
|
1974 |
+ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
|
1975 |
+ # would be better.
|
|
1976 |
+ output_verbose_link_cmd='echo'
|
|
1977 |
+
|
|
1978 |
+ # Archives containing C++ object files must be created using
|
|
1979 |
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
|
1980 |
+ # necessary to make sure instantiated templates are included
|
|
1981 |
+ # in the archive.
|
|
1982 |
+ old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
|
|
1983 |
+ ;;
|
|
1984 |
+ esac
|
|
1985 |
+ ;;
|
|
1986 |
esac
|
|
1987 |
;;
|
|
1988 |
lynxos*)
|
|
1989 |
@@ -11757,16 +11904,20 @@
|
|
1990 |
ld_shlibs_CXX=no
|
|
1991 |
;;
|
|
1992 |
openbsd*)
|
|
1993 |
- hardcode_direct_CXX=yes
|
|
1994 |
- hardcode_shlibpath_var_CXX=no
|
|
1995 |
- archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
|
1996 |
- hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
|
1997 |
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
1998 |
- archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
|
|
1999 |
- export_dynamic_flag_spec_CXX='${wl}-E'
|
|
2000 |
- whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
2001 |
+ if test -f /usr/libexec/ld.so; then
|
|
2002 |
+ hardcode_direct_CXX=yes
|
|
2003 |
+ hardcode_shlibpath_var_CXX=no
|
|
2004 |
+ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
|
2005 |
+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
|
2006 |
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
2007 |
+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
|
|
2008 |
+ export_dynamic_flag_spec_CXX='${wl}-E'
|
|
2009 |
+ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
2010 |
+ fi
|
|
2011 |
+ output_verbose_link_cmd='echo'
|
|
2012 |
+ else
|
|
2013 |
+ ld_shlibs_CXX=no
|
|
2014 |
fi
|
|
2015 |
- output_verbose_link_cmd='echo'
|
|
2016 |
;;
|
|
2017 |
osf3*)
|
|
2018 |
case $cc_basename in
|
|
2019 |
@@ -11928,15 +12079,10 @@
|
|
2020 |
case $host_os in
|
|
2021 |
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
|
2022 |
*)
|
|
2023 |
- # The C++ compiler is used as linker so we must use $wl
|
|
2024 |
- # flag to pass the commands to the underlying system
|
|
2025 |
- # linker. We must also pass each convience library through
|
|
2026 |
- # to the system linker between allextract/defaultextract.
|
|
2027 |
- # The C++ compiler will combine linker options so we
|
|
2028 |
- # cannot just pass the convience library names through
|
|
2029 |
- # without $wl.
|
|
2030 |
+ # The compiler driver will combine and reorder linker options,
|
|
2031 |
+ # but understands `-z linker_flag'.
|
|
2032 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
2033 |
- whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
|
|
2034 |
+ whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
|
|
2035 |
;;
|
|
2036 |
esac
|
|
2037 |
link_all_deplibs_CXX=yes
|
|
2038 |
@@ -11983,6 +12129,12 @@
|
|
2039 |
fi
|
|
2040 |
|
|
2041 |
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
|
|
2042 |
+ case $host_os in
|
|
2043 |
+ solaris2.[0-5] | solaris2.[0-5].*) ;;
|
|
2044 |
+ *)
|
|
2045 |
+ whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
|
2046 |
+ ;;
|
|
2047 |
+ esac
|
|
2048 |
fi
|
|
2049 |
;;
|
|
2050 |
esac
|
|
2051 |
@@ -12174,7 +12326,7 @@
|
|
2052 |
|
|
2053 |
# PORTME: override above test on systems where it is broken
|
|
2054 |
case $host_os in
|
|
2055 |
-interix3*)
|
|
2056 |
+interix[3-9]*)
|
|
2057 |
# Interix 3.5 installs completely hosed .la files for C++, so rather than
|
|
2058 |
# hack all around it, let's just trust "g++" to DTRT.
|
|
2059 |
predep_objects_CXX=
|
|
2060 |
@@ -12182,13 +12334,46 @@
|
|
2061 |
postdeps_CXX=
|
|
2062 |
;;
|
|
2063 |
|
|
2064 |
+linux*)
|
|
2065 |
+ case `$CC -V 2>&1 | sed 5q` in
|
|
2066 |
+ *Sun\ C*)
|
|
2067 |
+ # Sun C++ 5.9
|
|
2068 |
+ #
|
|
2069 |
+ # The more standards-conforming stlport4 library is
|
|
2070 |
+ # incompatible with the Cstd library. Avoid specifying
|
|
2071 |
+ # it if it's in CXXFLAGS. Ignore libCrun as
|
|
2072 |
+ # -library=stlport4 depends on it.
|
|
2073 |
+ case " $CXX $CXXFLAGS " in
|
|
2074 |
+ *" -library=stlport4 "*)
|
|
2075 |
+ solaris_use_stlport4=yes
|
|
2076 |
+ ;;
|
|
2077 |
+ esac
|
|
2078 |
+ if test "$solaris_use_stlport4" != yes; then
|
|
2079 |
+ postdeps_CXX='-library=Cstd -library=Crun'
|
|
2080 |
+ fi
|
|
2081 |
+ ;;
|
|
2082 |
+ esac
|
|
2083 |
+ ;;
|
|
2084 |
+
|
|
2085 |
solaris*)
|
|
2086 |
case $cc_basename in
|
|
2087 |
CC*)
|
|
2088 |
+ # The more standards-conforming stlport4 library is
|
|
2089 |
+ # incompatible with the Cstd library. Avoid specifying
|
|
2090 |
+ # it if it's in CXXFLAGS. Ignore libCrun as
|
|
2091 |
+ # -library=stlport4 depends on it.
|
|
2092 |
+ case " $CXX $CXXFLAGS " in
|
|
2093 |
+ *" -library=stlport4 "*)
|
|
2094 |
+ solaris_use_stlport4=yes
|
|
2095 |
+ ;;
|
|
2096 |
+ esac
|
|
2097 |
+
|
|
2098 |
# Adding this requires a known-good setup of shared libraries for
|
|
2099 |
# Sun compiler versions before 5.6, else PIC objects from an old
|
|
2100 |
# archive will be linked into the output, leading to subtle bugs.
|
|
2101 |
- postdeps_CXX='-lCstd -lCrun'
|
|
2102 |
+ if test "$solaris_use_stlport4" != yes; then
|
|
2103 |
+ postdeps_CXX='-library=Cstd -library=Crun'
|
|
2104 |
+ fi
|
|
2105 |
;;
|
|
2106 |
esac
|
|
2107 |
;;
|
|
2108 |
@@ -12225,12 +12410,14 @@
|
|
2109 |
# like `-m68040'.
|
|
2110 |
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
|
|
2111 |
;;
|
|
2112 |
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
2113 |
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
2114 |
# PIC is the default for these OSes.
|
|
2115 |
;;
|
|
2116 |
- mingw* | os2* | pw32*)
|
|
2117 |
+ mingw* | cygwin* | os2* | pw32*)
|
|
2118 |
# This hack is so that the source file can tell whether it is being
|
|
2119 |
# built for inclusion in a dll (and should export symbols for example).
|
|
2120 |
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
2121 |
+ # (--disable-auto-import) libraries
|
|
2122 |
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
|
|
2123 |
;;
|
|
2124 |
darwin* | rhapsody*)
|
|
2125 |
@@ -12242,7 +12429,7 @@
|
|
2126 |
# DJGPP does not support shared libraries at all
|
|
2127 |
lt_prog_compiler_pic_CXX=
|
|
2128 |
;;
|
|
2129 |
- interix3*)
|
|
2130 |
+ interix[3-9]*)
|
|
2131 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
2132 |
# Instead, we relocate shared libraries at runtime.
|
|
2133 |
;;
|
|
2134 |
@@ -12378,6 +12565,14 @@
|
|
2135 |
lt_prog_compiler_static_CXX='-non_shared'
|
|
2136 |
;;
|
|
2137 |
*)
|
|
2138 |
+ case `$CC -V 2>&1 | sed 5q` in
|
|
2139 |
+ *Sun\ C*)
|
|
2140 |
+ # Sun C++ 5.9
|
|
2141 |
+ lt_prog_compiler_pic_CXX='-KPIC'
|
|
2142 |
+ lt_prog_compiler_static_CXX='-Bstatic'
|
|
2143 |
+ lt_prog_compiler_wl_CXX='-Qoption ld '
|
|
2144 |
+ ;;
|
|
2145 |
+ esac
|
|
2146 |
;;
|
|
2147 |
esac
|
|
2148 |
;;
|
|
2149 |
@@ -12492,7 +12687,7 @@
|
|
2150 |
else
|
|
2151 |
lt_prog_compiler_pic_works_CXX=no
|
|
2152 |
ac_outfile=conftest.$ac_objext
|
|
2153 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2154 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2155 |
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
|
|
2156 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
2157 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
2158 |
@@ -12503,11 +12698,11 @@
|
16008 | 2159 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
16009 | 2160 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
16010 | 2161 |
-e 's:$: $lt_compiler_flag:'`
|
16011 | |
- (eval echo "\"\$as_me:12700: $lt_compile\"" >&5)
|
|
2162 |
- (eval echo "\"\$as_me:12506: $lt_compile\"" >&5)
|
16012 | 2163 |
+ (eval echo "\"\$as_me:12701: $lt_compile\"" >&5)
|
16013 | 2164 |
(eval "$lt_compile" 2>conftest.err)
|
16014 | 2165 |
ac_status=$?
|
16015 | 2166 |
cat conftest.err >&5
|
16016 | |
- echo "$as_me:12704: \$? = $ac_status" >&5
|
|
2167 |
- echo "$as_me:12510: \$? = $ac_status" >&5
|
16017 | 2168 |
+ echo "$as_me:12705: \$? = $ac_status" >&5
|
16018 | 2169 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
16019 | 2170 |
# The compiler can only warn and ignore the option if not recognized
|
16020 | 2171 |
# So say no if there are warnings other than the usual output.
|
16021 | |
@@ -12801,11 +12802,11 @@
|
|
2172 |
@@ -12556,7 +12751,7 @@
|
|
2173 |
lt_prog_compiler_static_works_CXX=no
|
|
2174 |
save_LDFLAGS="$LDFLAGS"
|
|
2175 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
2176 |
- printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
2177 |
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
2178 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
2179 |
# The linker can only warn and ignore the option if not recognized
|
|
2180 |
# So say no if there are warnings
|
|
2181 |
@@ -12596,7 +12791,7 @@
|
|
2182 |
mkdir conftest
|
|
2183 |
cd conftest
|
|
2184 |
mkdir out
|
|
2185 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2186 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2187 |
|
|
2188 |
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
2189 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
2190 |
@@ -12607,11 +12802,11 @@
|
16022 | 2191 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
16023 | 2192 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
16024 | 2193 |
-e 's:$: $lt_compiler_flag:'`
|
16025 | |
- (eval echo "\"\$as_me:12804: $lt_compile\"" >&5)
|
|
2194 |
- (eval echo "\"\$as_me:12610: $lt_compile\"" >&5)
|
16026 | 2195 |
+ (eval echo "\"\$as_me:12805: $lt_compile\"" >&5)
|
16027 | 2196 |
(eval "$lt_compile" 2>out/conftest.err)
|
16028 | 2197 |
ac_status=$?
|
16029 | 2198 |
cat out/conftest.err >&5
|
16030 | |
- echo "$as_me:12808: \$? = $ac_status" >&5
|
|
2199 |
- echo "$as_me:12614: \$? = $ac_status" >&5
|
16031 | 2200 |
+ echo "$as_me:12809: \$? = $ac_status" >&5
|
16032 | 2201 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
16033 | 2202 |
then
|
16034 | 2203 |
# The compiler can only warn and ignore the option if not recognized
|
16035 | |
@@ -14378,11 +14379,11 @@
|
|
2204 |
@@ -12677,7 +12872,7 @@
|
|
2205 |
export_symbols_cmds_CXX="$ltdll_cmds"
|
|
2206 |
;;
|
|
2207 |
cygwin* | mingw*)
|
|
2208 |
- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
|
2209 |
+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
2210 |
;;
|
|
2211 |
linux* | k*bsd*-gnu)
|
|
2212 |
link_all_deplibs_CXX=no
|
|
2213 |
@@ -12711,7 +12906,7 @@
|
|
2214 |
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
|
2215 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
|
2216 |
$rm conftest*
|
|
2217 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2218 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2219 |
|
|
2220 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
2221 |
(eval $ac_compile) 2>&5
|
|
2222 |
@@ -12769,20 +12964,7 @@
|
|
2223 |
version_type=none
|
|
2224 |
dynamic_linker="$host_os ld.so"
|
|
2225 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
2226 |
-if test "$GCC" = yes; then
|
|
2227 |
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
2228 |
- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
|
2229 |
- # if the path contains ";" then we assume it to be the separator
|
|
2230 |
- # otherwise default to the standard path separator (i.e. ":") - it is
|
|
2231 |
- # assumed that no part of a normal pathname contains ";" but that should
|
|
2232 |
- # okay in the real world where ";" in dirpaths is itself problematic.
|
|
2233 |
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
2234 |
- else
|
|
2235 |
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
2236 |
- fi
|
|
2237 |
-else
|
|
2238 |
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
|
2239 |
-fi
|
|
2240 |
+
|
|
2241 |
need_lib_prefix=unknown
|
|
2242 |
hardcode_into_libs=no
|
|
2243 |
|
|
2244 |
@@ -12939,12 +13121,7 @@
|
|
2245 |
shlibpath_overrides_runpath=yes
|
|
2246 |
shlibpath_var=DYLD_LIBRARY_PATH
|
|
2247 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
2248 |
- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
|
2249 |
- if test "$GCC" = yes; then
|
|
2250 |
- 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"`
|
|
2251 |
- else
|
|
2252 |
- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
|
2253 |
- fi
|
|
2254 |
+
|
|
2255 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
2256 |
;;
|
|
2257 |
|
|
2258 |
@@ -12998,7 +13175,7 @@
|
|
2259 |
shlibpath_overrides_runpath=no
|
|
2260 |
hardcode_into_libs=yes
|
|
2261 |
;;
|
|
2262 |
- freebsd*) # from 4.6 on
|
|
2263 |
+ *) # from 4.6 on, and DragonFly
|
|
2264 |
shlibpath_overrides_runpath=yes
|
|
2265 |
hardcode_into_libs=yes
|
|
2266 |
;;
|
|
2267 |
@@ -13061,7 +13238,7 @@
|
|
2268 |
postinstall_cmds='chmod 555 $lib'
|
|
2269 |
;;
|
|
2270 |
|
|
2271 |
-interix3*)
|
|
2272 |
+interix[3-9]*)
|
|
2273 |
version_type=linux
|
|
2274 |
need_lib_prefix=no
|
|
2275 |
need_version=no
|
|
2276 |
@@ -13132,7 +13309,7 @@
|
|
2277 |
|
|
2278 |
# Append ld.so.conf contents to the search path
|
|
2279 |
if test -f /etc/ld.so.conf; then
|
|
2280 |
- 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' ' '`
|
|
2281 |
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
|
2282 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
2283 |
fi
|
|
2284 |
|
|
2285 |
@@ -13238,6 +13415,10 @@
|
|
2286 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
2287 |
;;
|
|
2288 |
|
|
2289 |
+rdos*)
|
|
2290 |
+ dynamic_linker=no
|
|
2291 |
+ ;;
|
|
2292 |
+
|
|
2293 |
solaris*)
|
|
2294 |
version_type=linux
|
|
2295 |
need_lib_prefix=no
|
|
2296 |
@@ -13432,6 +13613,7 @@
|
|
2297 |
module_cmds_CXX \
|
|
2298 |
module_expsym_cmds_CXX \
|
|
2299 |
lt_cv_prog_compiler_c_o_CXX \
|
|
2300 |
+ fix_srcfile_path_CXX \
|
|
2301 |
exclude_expsyms_CXX \
|
|
2302 |
include_expsyms_CXX; do
|
|
2303 |
|
|
2304 |
@@ -13752,7 +13934,7 @@
|
|
2305 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|
2306 |
|
|
2307 |
# Fix the shell variable \$srcfile for the compiler.
|
|
2308 |
-fix_srcfile_path="$fix_srcfile_path_CXX"
|
|
2309 |
+fix_srcfile_path=$lt_fix_srcfile_path
|
|
2310 |
|
|
2311 |
# Set to yes if exported symbols are required.
|
|
2312 |
always_export_symbols=$always_export_symbols_CXX
|
|
2313 |
@@ -13843,10 +14025,17 @@
|
|
2314 |
objext_F77=$objext
|
|
2315 |
|
|
2316 |
# Code to be used in simple compile tests
|
|
2317 |
-lt_simple_compile_test_code=" subroutine t\n return\n end\n"
|
|
2318 |
+lt_simple_compile_test_code="\
|
|
2319 |
+ subroutine t
|
|
2320 |
+ return
|
|
2321 |
+ end
|
|
2322 |
+"
|
|
2323 |
|
|
2324 |
# Code to be used in simple link tests
|
|
2325 |
-lt_simple_link_test_code=" program t\n end\n"
|
|
2326 |
+lt_simple_link_test_code="\
|
|
2327 |
+ program t
|
|
2328 |
+ end
|
|
2329 |
+"
|
|
2330 |
|
|
2331 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
2332 |
|
|
2333 |
@@ -13862,13 +14051,13 @@
|
|
2334 |
|
|
2335 |
# save warnings/boilerplate of simple test code
|
|
2336 |
ac_outfile=conftest.$ac_objext
|
|
2337 |
-printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
2338 |
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
2339 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
2340 |
_lt_compiler_boilerplate=`cat conftest.err`
|
|
2341 |
$rm conftest*
|
|
2342 |
|
|
2343 |
ac_outfile=conftest.$ac_objext
|
|
2344 |
-printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
2345 |
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
2346 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
2347 |
_lt_linker_boilerplate=`cat conftest.err`
|
|
2348 |
$rm conftest*
|
|
2349 |
@@ -13955,13 +14144,15 @@
|
|
2350 |
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
|
|
2351 |
;;
|
|
2352 |
|
|
2353 |
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
2354 |
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
2355 |
# PIC is the default for these OSes.
|
|
2356 |
;;
|
|
2357 |
|
|
2358 |
- mingw* | pw32* | os2*)
|
|
2359 |
+ mingw* | cygwin* | pw32* | os2*)
|
|
2360 |
# This hack is so that the source file can tell whether it is being
|
|
2361 |
# built for inclusion in a dll (and should export symbols for example).
|
|
2362 |
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
2363 |
+ # (--disable-auto-import) libraries
|
|
2364 |
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
|
2365 |
;;
|
|
2366 |
|
|
2367 |
@@ -13971,7 +14162,7 @@
|
|
2368 |
lt_prog_compiler_pic_F77='-fno-common'
|
|
2369 |
;;
|
|
2370 |
|
|
2371 |
- interix3*)
|
|
2372 |
+ interix[3-9]*)
|
|
2373 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
2374 |
# Instead, we relocate shared libraries at runtime.
|
|
2375 |
;;
|
|
2376 |
@@ -14029,7 +14220,7 @@
|
|
2377 |
esac
|
|
2378 |
;;
|
|
2379 |
|
|
2380 |
- mingw* | pw32* | os2*)
|
|
2381 |
+ mingw* | cygwin* | pw32* | os2*)
|
|
2382 |
# This hack is so that the source file can tell whether it is being
|
|
2383 |
# built for inclusion in a dll (and should export symbols for example).
|
|
2384 |
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
|
2385 |
@@ -14081,6 +14272,22 @@
|
|
2386 |
# All Alpha code is PIC.
|
|
2387 |
lt_prog_compiler_static_F77='-non_shared'
|
|
2388 |
;;
|
|
2389 |
+ *)
|
|
2390 |
+ case `$CC -V 2>&1 | sed 5q` in
|
|
2391 |
+ *Sun\ C*)
|
|
2392 |
+ # Sun C 5.9
|
|
2393 |
+ lt_prog_compiler_pic_F77='-KPIC'
|
|
2394 |
+ lt_prog_compiler_static_F77='-Bstatic'
|
|
2395 |
+ lt_prog_compiler_wl_F77='-Wl,'
|
|
2396 |
+ ;;
|
|
2397 |
+ *Sun\ F*)
|
|
2398 |
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
|
2399 |
+ lt_prog_compiler_pic_F77='-KPIC'
|
|
2400 |
+ lt_prog_compiler_static_F77='-Bstatic'
|
|
2401 |
+ lt_prog_compiler_wl_F77=''
|
|
2402 |
+ ;;
|
|
2403 |
+ esac
|
|
2404 |
+ ;;
|
|
2405 |
esac
|
|
2406 |
;;
|
|
2407 |
|
|
2408 |
@@ -14090,6 +14297,10 @@
|
|
2409 |
lt_prog_compiler_static_F77='-non_shared'
|
|
2410 |
;;
|
|
2411 |
|
|
2412 |
+ rdos*)
|
|
2413 |
+ lt_prog_compiler_static_F77='-non_shared'
|
|
2414 |
+ ;;
|
|
2415 |
+
|
|
2416 |
solaris*)
|
|
2417 |
lt_prog_compiler_pic_F77='-KPIC'
|
|
2418 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
2419 |
@@ -14157,7 +14368,7 @@
|
|
2420 |
else
|
|
2421 |
lt_prog_compiler_pic_works_F77=no
|
|
2422 |
ac_outfile=conftest.$ac_objext
|
|
2423 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2424 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2425 |
lt_compiler_flag="$lt_prog_compiler_pic_F77"
|
|
2426 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
2427 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
2428 |
@@ -14168,11 +14379,11 @@
|
16036 | 2429 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
16037 | 2430 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
16038 | 2431 |
-e 's:$: $lt_compiler_flag:'`
|
16039 | |
- (eval echo "\"\$as_me:14381: $lt_compile\"" >&5)
|
|
2432 |
- (eval echo "\"\$as_me:14171: $lt_compile\"" >&5)
|
16040 | 2433 |
+ (eval echo "\"\$as_me:14382: $lt_compile\"" >&5)
|
16041 | 2434 |
(eval "$lt_compile" 2>conftest.err)
|
16042 | 2435 |
ac_status=$?
|
16043 | 2436 |
cat conftest.err >&5
|
16044 | |
- echo "$as_me:14385: \$? = $ac_status" >&5
|
|
2437 |
- echo "$as_me:14175: \$? = $ac_status" >&5
|
16045 | 2438 |
+ echo "$as_me:14386: \$? = $ac_status" >&5
|
16046 | 2439 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
16047 | 2440 |
# The compiler can only warn and ignore the option if not recognized
|
16048 | 2441 |
# So say no if there are warnings other than the usual output.
|
16049 | |
@@ -14482,11 +14483,11 @@
|
|
2442 |
@@ -14221,7 +14432,7 @@
|
|
2443 |
lt_prog_compiler_static_works_F77=no
|
|
2444 |
save_LDFLAGS="$LDFLAGS"
|
|
2445 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
2446 |
- printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
2447 |
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
2448 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
2449 |
# The linker can only warn and ignore the option if not recognized
|
|
2450 |
# So say no if there are warnings
|
|
2451 |
@@ -14261,7 +14472,7 @@
|
|
2452 |
mkdir conftest
|
|
2453 |
cd conftest
|
|
2454 |
mkdir out
|
|
2455 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2456 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2457 |
|
|
2458 |
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
2459 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
2460 |
@@ -14272,11 +14483,11 @@
|
16050 | 2461 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
16051 | 2462 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
16052 | 2463 |
-e 's:$: $lt_compiler_flag:'`
|
16053 | |
- (eval echo "\"\$as_me:14485: $lt_compile\"" >&5)
|
|
2464 |
- (eval echo "\"\$as_me:14275: $lt_compile\"" >&5)
|
16054 | 2465 |
+ (eval echo "\"\$as_me:14486: $lt_compile\"" >&5)
|
16055 | 2466 |
(eval "$lt_compile" 2>out/conftest.err)
|
16056 | 2467 |
ac_status=$?
|
16057 | 2468 |
cat out/conftest.err >&5
|
16058 | |
- echo "$as_me:14489: \$? = $ac_status" >&5
|
|
2469 |
- echo "$as_me:14279: \$? = $ac_status" >&5
|
16059 | 2470 |
+ echo "$as_me:14490: \$? = $ac_status" >&5
|
16060 | 2471 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
16061 | 2472 |
then
|
16062 | 2473 |
# The compiler can only warn and ignore the option if not recognized
|
16063 | |
@@ -16682,11 +16683,11 @@
|
|
2474 |
@@ -14468,7 +14679,7 @@
|
|
2475 |
allow_undefined_flag_F77=unsupported
|
|
2476 |
always_export_symbols_F77=no
|
|
2477 |
enable_shared_with_static_runtimes_F77=yes
|
|
2478 |
- export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
|
2479 |
+ export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
2480 |
|
|
2481 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
|
2482 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
2483 |
@@ -14486,7 +14697,7 @@
|
|
2484 |
fi
|
|
2485 |
;;
|
|
2486 |
|
|
2487 |
- interix3*)
|
|
2488 |
+ interix[3-9]*)
|
|
2489 |
hardcode_direct_F77=no
|
|
2490 |
hardcode_shlibpath_var_F77=no
|
|
2491 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
|
2492 |
@@ -14501,7 +14712,7 @@
|
|
2493 |
archive_expsym_cmds_F77='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'
|
|
2494 |
;;
|
|
2495 |
|
|
2496 |
- linux* | k*bsd*-gnu)
|
|
2497 |
+ gnu* | linux* | k*bsd*-gnu)
|
|
2498 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
2499 |
tmp_addflag=
|
|
2500 |
case $cc_basename,$host_cpu in
|
|
2501 |
@@ -14519,13 +14730,22 @@
|
|
2502 |
ifc* | ifort*) # Intel Fortran compiler
|
|
2503 |
tmp_addflag=' -nofor_main' ;;
|
|
2504 |
esac
|
|
2505 |
- archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
2506 |
+ case `$CC -V 2>&1 | sed 5q` in
|
|
2507 |
+ *Sun\ C*) # Sun C 5.9
|
|
2508 |
+ whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
2509 |
+ tmp_sharedflag='-G' ;;
|
|
2510 |
+ *Sun\ F*) # Sun Fortran 8.3
|
|
2511 |
+ tmp_sharedflag='-G' ;;
|
|
2512 |
+ *)
|
|
2513 |
+ tmp_sharedflag='-shared' ;;
|
|
2514 |
+ esac
|
|
2515 |
+ archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
2516 |
|
|
2517 |
if test $supports_anon_versioning = yes; then
|
|
2518 |
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
|
|
2519 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
2520 |
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
2521 |
- $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
2522 |
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
2523 |
fi
|
|
2524 |
link_all_deplibs_F77=no
|
|
2525 |
else
|
|
2526 |
@@ -14685,7 +14905,7 @@
|
|
2527 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|
2528 |
then
|
|
2529 |
# We have reworked collect2
|
|
2530 |
- hardcode_direct_F77=yes
|
|
2531 |
+ :
|
|
2532 |
else
|
|
2533 |
# We have old collect2
|
|
2534 |
hardcode_direct_F77=unsupported
|
|
2535 |
@@ -14749,11 +14969,18 @@
|
|
2536 |
} && test -s conftest$ac_exeext &&
|
|
2537 |
$as_test_x conftest$ac_exeext; then
|
|
2538 |
|
|
2539 |
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
|
2540 |
-}'`
|
|
2541 |
+lt_aix_libpath_sed='
|
|
2542 |
+ /Import File Strings/,/^$/ {
|
|
2543 |
+ /^0/ {
|
|
2544 |
+ s/^0 *\(.*\)$/\1/
|
|
2545 |
+ p
|
|
2546 |
+ }
|
|
2547 |
+ }'
|
|
2548 |
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
2549 |
# Check for a 64-bit object if we didn't find anything.
|
|
2550 |
-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; }
|
|
2551 |
-}'`; fi
|
|
2552 |
+if test -z "$aix_libpath"; then
|
|
2553 |
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
2554 |
+fi
|
|
2555 |
else
|
|
2556 |
echo "$as_me: failed program was:" >&5
|
|
2557 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
2558 |
@@ -14798,11 +15025,18 @@
|
|
2559 |
} && test -s conftest$ac_exeext &&
|
|
2560 |
$as_test_x conftest$ac_exeext; then
|
|
2561 |
|
|
2562 |
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
|
2563 |
-}'`
|
|
2564 |
+lt_aix_libpath_sed='
|
|
2565 |
+ /Import File Strings/,/^$/ {
|
|
2566 |
+ /^0/ {
|
|
2567 |
+ s/^0 *\(.*\)$/\1/
|
|
2568 |
+ p
|
|
2569 |
+ }
|
|
2570 |
+ }'
|
|
2571 |
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
2572 |
# Check for a 64-bit object if we didn't find anything.
|
|
2573 |
-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; }
|
|
2574 |
-}'`; fi
|
|
2575 |
+if test -z "$aix_libpath"; then
|
|
2576 |
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
2577 |
+fi
|
|
2578 |
else
|
|
2579 |
echo "$as_me: failed program was:" >&5
|
|
2580 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
2581 |
@@ -14856,7 +15090,7 @@
|
|
2582 |
# The linker will automatically build a .lib file if we build a DLL.
|
|
2583 |
old_archive_From_new_cmds_F77='true'
|
|
2584 |
# FIXME: Should let the user specify the lib program.
|
|
2585 |
- old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
|
2586 |
+ old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
2587 |
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
|
|
2588 |
enable_shared_with_static_runtimes_F77=yes
|
|
2589 |
;;
|
|
2590 |
@@ -14898,10 +15132,10 @@
|
|
2591 |
case $cc_basename in
|
|
2592 |
xlc*)
|
|
2593 |
output_verbose_link_cmd='echo'
|
|
2594 |
- archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
|
2595 |
+ archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
|
2596 |
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
2597 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
2598 |
- archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
2599 |
+ archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
2600 |
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
2601 |
;;
|
|
2602 |
*)
|
|
2603 |
@@ -15063,24 +15297,28 @@
|
|
2604 |
;;
|
|
2605 |
|
|
2606 |
openbsd*)
|
|
2607 |
- hardcode_direct_F77=yes
|
|
2608 |
- hardcode_shlibpath_var_F77=no
|
|
2609 |
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
2610 |
- archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
2611 |
- archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
2612 |
- hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
|
2613 |
- export_dynamic_flag_spec_F77='${wl}-E'
|
|
2614 |
+ if test -f /usr/libexec/ld.so; then
|
|
2615 |
+ hardcode_direct_F77=yes
|
|
2616 |
+ hardcode_shlibpath_var_F77=no
|
|
2617 |
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
2618 |
+ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
2619 |
+ archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
2620 |
+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
|
2621 |
+ export_dynamic_flag_spec_F77='${wl}-E'
|
|
2622 |
+ else
|
|
2623 |
+ case $host_os in
|
|
2624 |
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
|
2625 |
+ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
2626 |
+ hardcode_libdir_flag_spec_F77='-R$libdir'
|
|
2627 |
+ ;;
|
|
2628 |
+ *)
|
|
2629 |
+ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
2630 |
+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
|
2631 |
+ ;;
|
|
2632 |
+ esac
|
|
2633 |
+ fi
|
|
2634 |
else
|
|
2635 |
- case $host_os in
|
|
2636 |
- openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
|
2637 |
- archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
2638 |
- hardcode_libdir_flag_spec_F77='-R$libdir'
|
|
2639 |
- ;;
|
|
2640 |
- *)
|
|
2641 |
- archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
2642 |
- hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
|
2643 |
- ;;
|
|
2644 |
- esac
|
|
2645 |
+ ld_shlibs_F77=no
|
|
2646 |
fi
|
|
2647 |
;;
|
|
2648 |
|
|
2649 |
@@ -15139,17 +15377,16 @@
|
|
2650 |
case $host_os in
|
|
2651 |
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
|
2652 |
*)
|
|
2653 |
- # The compiler driver will combine linker options so we
|
|
2654 |
- # cannot just pass the convience library names through
|
|
2655 |
- # without $wl, iff we do not link with $LD.
|
|
2656 |
- # Luckily, gcc supports the same syntax we need for Sun Studio.
|
|
2657 |
+ # The compiler driver will combine and reorder linker options,
|
|
2658 |
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
|
|
2659 |
+ # but is careful enough not to reorder.
|
|
2660 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
2661 |
- case $wlarc in
|
|
2662 |
- '')
|
|
2663 |
- whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
|
|
2664 |
- *)
|
|
2665 |
- whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
|
|
2666 |
- esac ;;
|
|
2667 |
+ if test "$GCC" = yes; then
|
|
2668 |
+ whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
|
2669 |
+ else
|
|
2670 |
+ whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
|
|
2671 |
+ fi
|
|
2672 |
+ ;;
|
|
2673 |
esac
|
|
2674 |
link_all_deplibs_F77=yes
|
|
2675 |
;;
|
|
2676 |
@@ -15206,7 +15443,7 @@
|
|
2677 |
fi
|
|
2678 |
;;
|
|
2679 |
|
|
2680 |
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
|
|
2681 |
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
|
2682 |
no_undefined_flag_F77='${wl}-z,text'
|
|
2683 |
archive_cmds_need_lc_F77=no
|
|
2684 |
hardcode_shlibpath_var_F77=no
|
|
2685 |
@@ -15283,7 +15520,7 @@
|
|
2686 |
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
|
2687 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
|
2688 |
$rm conftest*
|
|
2689 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2690 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2691 |
|
|
2692 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
2693 |
(eval $ac_compile) 2>&5
|
|
2694 |
@@ -15341,20 +15578,7 @@
|
|
2695 |
version_type=none
|
|
2696 |
dynamic_linker="$host_os ld.so"
|
|
2697 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
2698 |
-if test "$GCC" = yes; then
|
|
2699 |
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
2700 |
- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
|
2701 |
- # if the path contains ";" then we assume it to be the separator
|
|
2702 |
- # otherwise default to the standard path separator (i.e. ":") - it is
|
|
2703 |
- # assumed that no part of a normal pathname contains ";" but that should
|
|
2704 |
- # okay in the real world where ";" in dirpaths is itself problematic.
|
|
2705 |
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
2706 |
- else
|
|
2707 |
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
2708 |
- fi
|
|
2709 |
-else
|
|
2710 |
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
|
2711 |
-fi
|
|
2712 |
+
|
|
2713 |
need_lib_prefix=unknown
|
|
2714 |
hardcode_into_libs=no
|
|
2715 |
|
|
2716 |
@@ -15511,12 +15735,7 @@
|
|
2717 |
shlibpath_overrides_runpath=yes
|
|
2718 |
shlibpath_var=DYLD_LIBRARY_PATH
|
|
2719 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
2720 |
- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
|
2721 |
- if test "$GCC" = yes; then
|
|
2722 |
- 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"`
|
|
2723 |
- else
|
|
2724 |
- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
|
2725 |
- fi
|
|
2726 |
+
|
|
2727 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
2728 |
;;
|
|
2729 |
|
|
2730 |
@@ -15570,7 +15789,7 @@
|
|
2731 |
shlibpath_overrides_runpath=no
|
|
2732 |
hardcode_into_libs=yes
|
|
2733 |
;;
|
|
2734 |
- freebsd*) # from 4.6 on
|
|
2735 |
+ *) # from 4.6 on, and DragonFly
|
|
2736 |
shlibpath_overrides_runpath=yes
|
|
2737 |
hardcode_into_libs=yes
|
|
2738 |
;;
|
|
2739 |
@@ -15633,7 +15852,7 @@
|
|
2740 |
postinstall_cmds='chmod 555 $lib'
|
|
2741 |
;;
|
|
2742 |
|
|
2743 |
-interix3*)
|
|
2744 |
+interix[3-9]*)
|
|
2745 |
version_type=linux
|
|
2746 |
need_lib_prefix=no
|
|
2747 |
need_version=no
|
|
2748 |
@@ -15704,7 +15923,7 @@
|
|
2749 |
|
|
2750 |
# Append ld.so.conf contents to the search path
|
|
2751 |
if test -f /etc/ld.so.conf; then
|
|
2752 |
- 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' ' '`
|
|
2753 |
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
|
2754 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
2755 |
fi
|
|
2756 |
|
|
2757 |
@@ -15810,6 +16029,10 @@
|
|
2758 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
2759 |
;;
|
|
2760 |
|
|
2761 |
+rdos*)
|
|
2762 |
+ dynamic_linker=no
|
|
2763 |
+ ;;
|
|
2764 |
+
|
|
2765 |
solaris*)
|
|
2766 |
version_type=linux
|
|
2767 |
need_lib_prefix=no
|
|
2768 |
@@ -16004,6 +16227,7 @@
|
|
2769 |
module_cmds_F77 \
|
|
2770 |
module_expsym_cmds_F77 \
|
|
2771 |
lt_cv_prog_compiler_c_o_F77 \
|
|
2772 |
+ fix_srcfile_path_F77 \
|
|
2773 |
exclude_expsyms_F77 \
|
|
2774 |
include_expsyms_F77; do
|
|
2775 |
|
|
2776 |
@@ -16324,7 +16548,7 @@
|
|
2777 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|
2778 |
|
|
2779 |
# Fix the shell variable \$srcfile for the compiler.
|
|
2780 |
-fix_srcfile_path="$fix_srcfile_path_F77"
|
|
2781 |
+fix_srcfile_path=$lt_fix_srcfile_path
|
|
2782 |
|
|
2783 |
# Set to yes if exported symbols are required.
|
|
2784 |
always_export_symbols=$always_export_symbols_F77
|
|
2785 |
@@ -16382,10 +16606,10 @@
|
|
2786 |
objext_GCJ=$objext
|
|
2787 |
|
|
2788 |
# Code to be used in simple compile tests
|
|
2789 |
-lt_simple_compile_test_code="class foo {}\n"
|
|
2790 |
+lt_simple_compile_test_code="class foo {}"
|
|
2791 |
|
|
2792 |
# Code to be used in simple link tests
|
|
2793 |
-lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
|
|
2794 |
+lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
|
|
2795 |
|
|
2796 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
2797 |
|
|
2798 |
@@ -16401,13 +16625,13 @@
|
|
2799 |
|
|
2800 |
# save warnings/boilerplate of simple test code
|
|
2801 |
ac_outfile=conftest.$ac_objext
|
|
2802 |
-printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
2803 |
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
2804 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
2805 |
_lt_compiler_boilerplate=`cat conftest.err`
|
|
2806 |
$rm conftest*
|
|
2807 |
|
|
2808 |
ac_outfile=conftest.$ac_objext
|
|
2809 |
-printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
2810 |
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
2811 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
2812 |
_lt_linker_boilerplate=`cat conftest.err`
|
|
2813 |
$rm conftest*
|
|
2814 |
@@ -16448,7 +16672,7 @@
|
|
2815 |
else
|
|
2816 |
lt_cv_prog_compiler_rtti_exceptions=no
|
|
2817 |
ac_outfile=conftest.$ac_objext
|
|
2818 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2819 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2820 |
lt_compiler_flag="-fno-rtti -fno-exceptions"
|
|
2821 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
2822 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
2823 |
@@ -16459,11 +16683,11 @@
|
16064 | 2824 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
16065 | 2825 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
16066 | 2826 |
-e 's:$: $lt_compiler_flag:'`
|
16067 | |
- (eval echo "\"\$as_me:16685: $lt_compile\"" >&5)
|
|
2827 |
- (eval echo "\"\$as_me:16462: $lt_compile\"" >&5)
|
16068 | 2828 |
+ (eval echo "\"\$as_me:16686: $lt_compile\"" >&5)
|
16069 | 2829 |
(eval "$lt_compile" 2>conftest.err)
|
16070 | 2830 |
ac_status=$?
|
16071 | 2831 |
cat conftest.err >&5
|
16072 | |
- echo "$as_me:16689: \$? = $ac_status" >&5
|
|
2832 |
- echo "$as_me:16466: \$? = $ac_status" >&5
|
16073 | 2833 |
+ echo "$as_me:16690: \$? = $ac_status" >&5
|
16074 | 2834 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
16075 | 2835 |
# The compiler can only warn and ignore the option if not recognized
|
16076 | 2836 |
# So say no if there are warnings other than the usual output.
|
16077 | |
@@ -16972,11 +16973,11 @@
|
|
2837 |
@@ -16514,13 +16738,15 @@
|
|
2838 |
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
|
|
2839 |
;;
|
|
2840 |
|
|
2841 |
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
2842 |
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
2843 |
# PIC is the default for these OSes.
|
|
2844 |
;;
|
|
2845 |
|
|
2846 |
- mingw* | pw32* | os2*)
|
|
2847 |
+ mingw* | cygwin* | pw32* | os2*)
|
|
2848 |
# This hack is so that the source file can tell whether it is being
|
|
2849 |
# built for inclusion in a dll (and should export symbols for example).
|
|
2850 |
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
2851 |
+ # (--disable-auto-import) libraries
|
|
2852 |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
|
|
2853 |
;;
|
|
2854 |
|
|
2855 |
@@ -16530,7 +16756,7 @@
|
|
2856 |
lt_prog_compiler_pic_GCJ='-fno-common'
|
|
2857 |
;;
|
|
2858 |
|
|
2859 |
- interix3*)
|
|
2860 |
+ interix[3-9]*)
|
|
2861 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
2862 |
# Instead, we relocate shared libraries at runtime.
|
|
2863 |
;;
|
|
2864 |
@@ -16588,7 +16814,7 @@
|
|
2865 |
esac
|
|
2866 |
;;
|
|
2867 |
|
|
2868 |
- mingw* | pw32* | os2*)
|
|
2869 |
+ mingw* | cygwin* | pw32* | os2*)
|
|
2870 |
# This hack is so that the source file can tell whether it is being
|
|
2871 |
# built for inclusion in a dll (and should export symbols for example).
|
|
2872 |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
|
|
2873 |
@@ -16640,6 +16866,22 @@
|
|
2874 |
# All Alpha code is PIC.
|
|
2875 |
lt_prog_compiler_static_GCJ='-non_shared'
|
|
2876 |
;;
|
|
2877 |
+ *)
|
|
2878 |
+ case `$CC -V 2>&1 | sed 5q` in
|
|
2879 |
+ *Sun\ C*)
|
|
2880 |
+ # Sun C 5.9
|
|
2881 |
+ lt_prog_compiler_pic_GCJ='-KPIC'
|
|
2882 |
+ lt_prog_compiler_static_GCJ='-Bstatic'
|
|
2883 |
+ lt_prog_compiler_wl_GCJ='-Wl,'
|
|
2884 |
+ ;;
|
|
2885 |
+ *Sun\ F*)
|
|
2886 |
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
|
2887 |
+ lt_prog_compiler_pic_GCJ='-KPIC'
|
|
2888 |
+ lt_prog_compiler_static_GCJ='-Bstatic'
|
|
2889 |
+ lt_prog_compiler_wl_GCJ=''
|
|
2890 |
+ ;;
|
|
2891 |
+ esac
|
|
2892 |
+ ;;
|
|
2893 |
esac
|
|
2894 |
;;
|
|
2895 |
|
|
2896 |
@@ -16649,6 +16891,10 @@
|
|
2897 |
lt_prog_compiler_static_GCJ='-non_shared'
|
|
2898 |
;;
|
|
2899 |
|
|
2900 |
+ rdos*)
|
|
2901 |
+ lt_prog_compiler_static_GCJ='-non_shared'
|
|
2902 |
+ ;;
|
|
2903 |
+
|
|
2904 |
solaris*)
|
|
2905 |
lt_prog_compiler_pic_GCJ='-KPIC'
|
|
2906 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
2907 |
@@ -16716,7 +16962,7 @@
|
|
2908 |
else
|
|
2909 |
lt_prog_compiler_pic_works_GCJ=no
|
|
2910 |
ac_outfile=conftest.$ac_objext
|
|
2911 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2912 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2913 |
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
|
|
2914 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
2915 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
2916 |
@@ -16727,11 +16973,11 @@
|
16078 | 2917 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
16079 | 2918 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
16080 | 2919 |
-e 's:$: $lt_compiler_flag:'`
|
16081 | |
- (eval echo "\"\$as_me:16975: $lt_compile\"" >&5)
|
|
2920 |
- (eval echo "\"\$as_me:16730: $lt_compile\"" >&5)
|
16082 | 2921 |
+ (eval echo "\"\$as_me:16976: $lt_compile\"" >&5)
|
16083 | 2922 |
(eval "$lt_compile" 2>conftest.err)
|
16084 | 2923 |
ac_status=$?
|
16085 | 2924 |
cat conftest.err >&5
|
16086 | |
- echo "$as_me:16979: \$? = $ac_status" >&5
|
|
2925 |
- echo "$as_me:16734: \$? = $ac_status" >&5
|
16087 | 2926 |
+ echo "$as_me:16980: \$? = $ac_status" >&5
|
16088 | 2927 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
16089 | 2928 |
# The compiler can only warn and ignore the option if not recognized
|
16090 | 2929 |
# So say no if there are warnings other than the usual output.
|
16091 | |
@@ -17076,11 +17077,11 @@
|
|
2930 |
@@ -16780,7 +17026,7 @@
|
|
2931 |
lt_prog_compiler_static_works_GCJ=no
|
|
2932 |
save_LDFLAGS="$LDFLAGS"
|
|
2933 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
2934 |
- printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
2935 |
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
2936 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
2937 |
# The linker can only warn and ignore the option if not recognized
|
|
2938 |
# So say no if there are warnings
|
|
2939 |
@@ -16820,7 +17066,7 @@
|
|
2940 |
mkdir conftest
|
|
2941 |
cd conftest
|
|
2942 |
mkdir out
|
|
2943 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2944 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2945 |
|
|
2946 |
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
2947 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
2948 |
@@ -16831,11 +17077,11 @@
|
16092 | 2949 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
16093 | 2950 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
16094 | 2951 |
-e 's:$: $lt_compiler_flag:'`
|
16095 | |
- (eval echo "\"\$as_me:17079: $lt_compile\"" >&5)
|
|
2952 |
- (eval echo "\"\$as_me:16834: $lt_compile\"" >&5)
|
16096 | 2953 |
+ (eval echo "\"\$as_me:17080: $lt_compile\"" >&5)
|
16097 | 2954 |
(eval "$lt_compile" 2>out/conftest.err)
|
16098 | 2955 |
ac_status=$?
|
16099 | 2956 |
cat out/conftest.err >&5
|
16100 | |
- echo "$as_me:17083: \$? = $ac_status" >&5
|
|
2957 |
- echo "$as_me:16838: \$? = $ac_status" >&5
|
16101 | 2958 |
+ echo "$as_me:17084: \$? = $ac_status" >&5
|
16102 | 2959 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
16103 | 2960 |
then
|
16104 | 2961 |
# The compiler can only warn and ignore the option if not recognized
|
16105 | |
@@ -26353,12 +26354,12 @@
|
|
2962 |
@@ -17027,7 +17273,7 @@
|
|
2963 |
allow_undefined_flag_GCJ=unsupported
|
|
2964 |
always_export_symbols_GCJ=no
|
|
2965 |
enable_shared_with_static_runtimes_GCJ=yes
|
|
2966 |
- export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
|
2967 |
+ export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
2968 |
|
|
2969 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
|
2970 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
2971 |
@@ -17045,7 +17291,7 @@
|
|
2972 |
fi
|
|
2973 |
;;
|
|
2974 |
|
|
2975 |
- interix3*)
|
|
2976 |
+ interix[3-9]*)
|
|
2977 |
hardcode_direct_GCJ=no
|
|
2978 |
hardcode_shlibpath_var_GCJ=no
|
|
2979 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
|
2980 |
@@ -17060,7 +17306,7 @@
|
|
2981 |
archive_expsym_cmds_GCJ='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'
|
|
2982 |
;;
|
|
2983 |
|
|
2984 |
- linux* | k*bsd*-gnu)
|
|
2985 |
+ gnu* | linux* | k*bsd*-gnu)
|
|
2986 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
2987 |
tmp_addflag=
|
|
2988 |
case $cc_basename,$host_cpu in
|
|
2989 |
@@ -17078,13 +17324,22 @@
|
|
2990 |
ifc* | ifort*) # Intel Fortran compiler
|
|
2991 |
tmp_addflag=' -nofor_main' ;;
|
|
2992 |
esac
|
|
2993 |
- archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
2994 |
+ case `$CC -V 2>&1 | sed 5q` in
|
|
2995 |
+ *Sun\ C*) # Sun C 5.9
|
|
2996 |
+ whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
2997 |
+ tmp_sharedflag='-G' ;;
|
|
2998 |
+ *Sun\ F*) # Sun Fortran 8.3
|
|
2999 |
+ tmp_sharedflag='-G' ;;
|
|
3000 |
+ *)
|
|
3001 |
+ tmp_sharedflag='-shared' ;;
|
|
3002 |
+ esac
|
|
3003 |
+ archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
3004 |
|
|
3005 |
if test $supports_anon_versioning = yes; then
|
|
3006 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
|
|
3007 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
3008 |
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
3009 |
- $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
3010 |
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
3011 |
fi
|
|
3012 |
link_all_deplibs_GCJ=no
|
|
3013 |
else
|
|
3014 |
@@ -17244,7 +17499,7 @@
|
|
3015 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|
3016 |
then
|
|
3017 |
# We have reworked collect2
|
|
3018 |
- hardcode_direct_GCJ=yes
|
|
3019 |
+ :
|
|
3020 |
else
|
|
3021 |
# We have old collect2
|
|
3022 |
hardcode_direct_GCJ=unsupported
|
|
3023 |
@@ -17318,11 +17573,18 @@
|
|
3024 |
} && test -s conftest$ac_exeext &&
|
|
3025 |
$as_test_x conftest$ac_exeext; then
|
|
3026 |
|
|
3027 |
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
|
3028 |
-}'`
|
|
3029 |
+lt_aix_libpath_sed='
|
|
3030 |
+ /Import File Strings/,/^$/ {
|
|
3031 |
+ /^0/ {
|
|
3032 |
+ s/^0 *\(.*\)$/\1/
|
|
3033 |
+ p
|
|
3034 |
+ }
|
|
3035 |
+ }'
|
|
3036 |
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
3037 |
# Check for a 64-bit object if we didn't find anything.
|
|
3038 |
-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; }
|
|
3039 |
-}'`; fi
|
|
3040 |
+if test -z "$aix_libpath"; then
|
|
3041 |
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
3042 |
+fi
|
|
3043 |
else
|
|
3044 |
echo "$as_me: failed program was:" >&5
|
|
3045 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3046 |
@@ -17377,11 +17639,18 @@
|
|
3047 |
} && test -s conftest$ac_exeext &&
|
|
3048 |
$as_test_x conftest$ac_exeext; then
|
|
3049 |
|
|
3050 |
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
|
3051 |
-}'`
|
|
3052 |
+lt_aix_libpath_sed='
|
|
3053 |
+ /Import File Strings/,/^$/ {
|
|
3054 |
+ /^0/ {
|
|
3055 |
+ s/^0 *\(.*\)$/\1/
|
|
3056 |
+ p
|
|
3057 |
+ }
|
|
3058 |
+ }'
|
|
3059 |
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
3060 |
# Check for a 64-bit object if we didn't find anything.
|
|
3061 |
-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; }
|
|
3062 |
-}'`; fi
|
|
3063 |
+if test -z "$aix_libpath"; then
|
|
3064 |
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
3065 |
+fi
|
|
3066 |
else
|
|
3067 |
echo "$as_me: failed program was:" >&5
|
|
3068 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3069 |
@@ -17435,7 +17704,7 @@
|
|
3070 |
# The linker will automatically build a .lib file if we build a DLL.
|
|
3071 |
old_archive_From_new_cmds_GCJ='true'
|
|
3072 |
# FIXME: Should let the user specify the lib program.
|
|
3073 |
- old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
|
3074 |
+ old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
3075 |
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
|
|
3076 |
enable_shared_with_static_runtimes_GCJ=yes
|
|
3077 |
;;
|
|
3078 |
@@ -17477,10 +17746,10 @@
|
|
3079 |
case $cc_basename in
|
|
3080 |
xlc*)
|
|
3081 |
output_verbose_link_cmd='echo'
|
|
3082 |
- archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
|
3083 |
+ archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
|
3084 |
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
3085 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
3086 |
- archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
3087 |
+ archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
3088 |
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
3089 |
;;
|
|
3090 |
*)
|
|
3091 |
@@ -17642,24 +17911,28 @@
|
|
3092 |
;;
|
|
3093 |
|
|
3094 |
openbsd*)
|
|
3095 |
- hardcode_direct_GCJ=yes
|
|
3096 |
- hardcode_shlibpath_var_GCJ=no
|
|
3097 |
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
3098 |
- archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
3099 |
- archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
3100 |
- hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
|
3101 |
- export_dynamic_flag_spec_GCJ='${wl}-E'
|
|
3102 |
+ if test -f /usr/libexec/ld.so; then
|
|
3103 |
+ hardcode_direct_GCJ=yes
|
|
3104 |
+ hardcode_shlibpath_var_GCJ=no
|
|
3105 |
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
3106 |
+ archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
3107 |
+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
3108 |
+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
|
3109 |
+ export_dynamic_flag_spec_GCJ='${wl}-E'
|
|
3110 |
+ else
|
|
3111 |
+ case $host_os in
|
|
3112 |
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
|
3113 |
+ archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
3114 |
+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
|
3115 |
+ ;;
|
|
3116 |
+ *)
|
|
3117 |
+ archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
3118 |
+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
|
3119 |
+ ;;
|
|
3120 |
+ esac
|
|
3121 |
+ fi
|
|
3122 |
else
|
|
3123 |
- case $host_os in
|
|
3124 |
- openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
|
3125 |
- archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
3126 |
- hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
|
3127 |
- ;;
|
|
3128 |
- *)
|
|
3129 |
- archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
3130 |
- hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
|
3131 |
- ;;
|
|
3132 |
- esac
|
|
3133 |
+ ld_shlibs_GCJ=no
|
|
3134 |
fi
|
|
3135 |
;;
|
|
3136 |
|
|
3137 |
@@ -17718,17 +17991,16 @@
|
|
3138 |
case $host_os in
|
|
3139 |
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
|
3140 |
*)
|
|
3141 |
- # The compiler driver will combine linker options so we
|
|
3142 |
- # cannot just pass the convience library names through
|
|
3143 |
- # without $wl, iff we do not link with $LD.
|
|
3144 |
- # Luckily, gcc supports the same syntax we need for Sun Studio.
|
|
3145 |
+ # The compiler driver will combine and reorder linker options,
|
|
3146 |
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
|
|
3147 |
+ # but is careful enough not to reorder.
|
|
3148 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
3149 |
- case $wlarc in
|
|
3150 |
- '')
|
|
3151 |
- whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
|
|
3152 |
- *)
|
|
3153 |
- whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
|
|
3154 |
- esac ;;
|
|
3155 |
+ if test "$GCC" = yes; then
|
|
3156 |
+ whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
|
3157 |
+ else
|
|
3158 |
+ whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
|
|
3159 |
+ fi
|
|
3160 |
+ ;;
|
|
3161 |
esac
|
|
3162 |
link_all_deplibs_GCJ=yes
|
|
3163 |
;;
|
|
3164 |
@@ -17785,7 +18057,7 @@
|
|
3165 |
fi
|
|
3166 |
;;
|
|
3167 |
|
|
3168 |
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
|
|
3169 |
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
|
3170 |
no_undefined_flag_GCJ='${wl}-z,text'
|
|
3171 |
archive_cmds_need_lc_GCJ=no
|
|
3172 |
hardcode_shlibpath_var_GCJ=no
|
|
3173 |
@@ -17862,7 +18134,7 @@
|
|
3174 |
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
|
3175 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
|
3176 |
$rm conftest*
|
|
3177 |
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
3178 |
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
3179 |
|
|
3180 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
3181 |
(eval $ac_compile) 2>&5
|
|
3182 |
@@ -17920,20 +18192,7 @@
|
|
3183 |
version_type=none
|
|
3184 |
dynamic_linker="$host_os ld.so"
|
|
3185 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
3186 |
-if test "$GCC" = yes; then
|
|
3187 |
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
3188 |
- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
|
3189 |
- # if the path contains ";" then we assume it to be the separator
|
|
3190 |
- # otherwise default to the standard path separator (i.e. ":") - it is
|
|
3191 |
- # assumed that no part of a normal pathname contains ";" but that should
|
|
3192 |
- # okay in the real world where ";" in dirpaths is itself problematic.
|
|
3193 |
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
3194 |
- else
|
|
3195 |
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
3196 |
- fi
|
|
3197 |
-else
|
|
3198 |
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
|
3199 |
-fi
|
|
3200 |
+
|
|
3201 |
need_lib_prefix=unknown
|
|
3202 |
hardcode_into_libs=no
|
|
3203 |
|
|
3204 |
@@ -18090,12 +18349,7 @@
|
|
3205 |
shlibpath_overrides_runpath=yes
|
|
3206 |
shlibpath_var=DYLD_LIBRARY_PATH
|
|
3207 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
3208 |
- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
|
3209 |
- if test "$GCC" = yes; then
|
|
3210 |
- 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"`
|
|
3211 |
- else
|
|
3212 |
- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
|
3213 |
- fi
|
|
3214 |
+
|
|
3215 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
3216 |
;;
|
|
3217 |
|
|
3218 |
@@ -18149,7 +18403,7 @@
|
|
3219 |
shlibpath_overrides_runpath=no
|
|
3220 |
hardcode_into_libs=yes
|
|
3221 |
;;
|
|
3222 |
- freebsd*) # from 4.6 on
|
|
3223 |
+ *) # from 4.6 on, and DragonFly
|
|
3224 |
shlibpath_overrides_runpath=yes
|
|
3225 |
hardcode_into_libs=yes
|
|
3226 |
;;
|
|
3227 |
@@ -18212,7 +18466,7 @@
|
|
3228 |
postinstall_cmds='chmod 555 $lib'
|
|
3229 |
;;
|
|
3230 |
|
|
3231 |
-interix3*)
|
|
3232 |
+interix[3-9]*)
|
|
3233 |
version_type=linux
|
|
3234 |
need_lib_prefix=no
|
|
3235 |
need_version=no
|
|
3236 |
@@ -18283,7 +18537,7 @@
|
|
3237 |
|
|
3238 |
# Append ld.so.conf contents to the search path
|
|
3239 |
if test -f /etc/ld.so.conf; then
|
|
3240 |
- 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' ' '`
|
|
3241 |
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
|
3242 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
3243 |
fi
|
|
3244 |
|
|
3245 |
@@ -18389,6 +18643,10 @@
|
|
3246 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
3247 |
;;
|
|
3248 |
|
|
3249 |
+rdos*)
|
|
3250 |
+ dynamic_linker=no
|
|
3251 |
+ ;;
|
|
3252 |
+
|
|
3253 |
solaris*)
|
|
3254 |
version_type=linux
|
|
3255 |
need_lib_prefix=no
|
|
3256 |
@@ -18583,6 +18841,7 @@
|
|
3257 |
module_cmds_GCJ \
|
|
3258 |
module_expsym_cmds_GCJ \
|
|
3259 |
lt_cv_prog_compiler_c_o_GCJ \
|
|
3260 |
+ fix_srcfile_path_GCJ \
|
|
3261 |
exclude_expsyms_GCJ \
|
|
3262 |
include_expsyms_GCJ; do
|
|
3263 |
|
|
3264 |
@@ -18903,7 +19162,7 @@
|
|
3265 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|
3266 |
|
|
3267 |
# Fix the shell variable \$srcfile for the compiler.
|
|
3268 |
-fix_srcfile_path="$fix_srcfile_path_GCJ"
|
|
3269 |
+fix_srcfile_path=$lt_fix_srcfile_path
|
|
3270 |
|
|
3271 |
# Set to yes if exported symbols are required.
|
|
3272 |
always_export_symbols=$always_export_symbols_GCJ
|
|
3273 |
@@ -18960,7 +19219,7 @@
|
|
3274 |
objext_RC=$objext
|
|
3275 |
|
|
3276 |
# Code to be used in simple compile tests
|
|
3277 |
-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
|
|
3278 |
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
|
|
3279 |
|
|
3280 |
# Code to be used in simple link tests
|
|
3281 |
lt_simple_link_test_code="$lt_simple_compile_test_code"
|
|
3282 |
@@ -18979,13 +19238,13 @@
|
|
3283 |
|
|
3284 |
# save warnings/boilerplate of simple test code
|
|
3285 |
ac_outfile=conftest.$ac_objext
|
|
3286 |
-printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
3287 |
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
3288 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
3289 |
_lt_compiler_boilerplate=`cat conftest.err`
|
|
3290 |
$rm conftest*
|
|
3291 |
|
|
3292 |
ac_outfile=conftest.$ac_objext
|
|
3293 |
-printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
3294 |
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
3295 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
3296 |
_lt_linker_boilerplate=`cat conftest.err`
|
|
3297 |
$rm conftest*
|
|
3298 |
@@ -19063,6 +19322,7 @@
|
|
3299 |
module_cmds_RC \
|
|
3300 |
module_expsym_cmds_RC \
|
|
3301 |
lt_cv_prog_compiler_c_o_RC \
|
|
3302 |
+ fix_srcfile_path_RC \
|
|
3303 |
exclude_expsyms_RC \
|
|
3304 |
include_expsyms_RC; do
|
|
3305 |
|
|
3306 |
@@ -19383,7 +19643,7 @@
|
|
3307 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|
3308 |
|
|
3309 |
# Fix the shell variable \$srcfile for the compiler.
|
|
3310 |
-fix_srcfile_path="$fix_srcfile_path_RC"
|
|
3311 |
+fix_srcfile_path=$lt_fix_srcfile_path
|
|
3312 |
|
|
3313 |
# Set to yes if exported symbols are required.
|
|
3314 |
always_export_symbols=$always_export_symbols_RC
|
|
3315 |
@@ -26094,12 +26354,12 @@
|
16106 | 3316 |
pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
|
16107 | 3317 |
else
|
16108 | 3318 |
if test -n "$PKG_CONFIG" && \
|
|
16118 | 3328 |
else
|
16119 | 3329 |
pkg_failed=yes
|
16120 | 3330 |
fi
|
16121 | |
@@ -26371,12 +26372,12 @@
|
|
3331 |
@@ -26112,12 +26372,12 @@
|
16122 | 3332 |
pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
|
16123 | 3333 |
else
|
16124 | 3334 |
if test -n "$PKG_CONFIG" && \
|
|
16134 | 3344 |
else
|
16135 | 3345 |
pkg_failed=yes
|
16136 | 3346 |
fi
|
16137 | |
@@ -26395,14 +26396,14 @@
|
|
3347 |
@@ -26136,14 +26396,14 @@
|
16138 | 3348 |
_pkg_short_errors_supported=no
|
16139 | 3349 |
fi
|
16140 | 3350 |
if test $_pkg_short_errors_supported = yes; then
|
|
16152 | 3362 |
|
16153 | 3363 |
$WEBKIT_PKG_ERRORS
|
16154 | 3364 |
|
16155 | |
@@ -26413,7 +26414,7 @@
|
|
3365 |
@@ -26154,7 +26414,7 @@
|
16156 | 3366 |
and WEBKIT_LIBS to avoid the need to call pkg-config.
|
16157 | 3367 |
See the pkg-config man page for more details.
|
16158 | 3368 |
" >&5
|
|
16161 | 3371 |
|
16162 | 3372 |
$WEBKIT_PKG_ERRORS
|
16163 | 3373 |
|
16164 | |
@@ -29407,19 +29408,38 @@
|
16165 | |
fi
|
16166 | |
|
16167 | |
|
16168 | |
- have_gtk_doc=no
|
16169 | |
if test x$enable_gtk_doc = xyes; then
|
16170 | |
- if test -z "$PKG_CONFIG"; then
|
16171 | |
- # Extract the first word of "pkg-config", so it can be a program name with args.
|
16172 | |
-set dummy pkg-config; ac_word=$2
|
16173 | |
+ if test -n "$PKG_CONFIG" && \
|
16174 | |
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\"") >&5
|
16175 | |
+ ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
|
16176 | |
+ ac_status=$?
|
16177 | |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
16178 | |
+ (exit $ac_status); }; then
|
16179 | |
+ :
|
16180 | |
+else
|
16181 | |
+ { { echo "$as_me:$LINENO: error: You need to have gtk-doc >= 1.0 installed to build gtk-doc" >&5
|
16182 | |
+echo "$as_me: error: You need to have gtk-doc >= 1.0 installed to build gtk-doc" >&2;}
|
16183 | |
+ { (exit 1); exit 1; }; }
|
16184 | |
+fi
|
16185 | |
+ fi
|
16186 | |
+
|
16187 | |
+ { echo "$as_me:$LINENO: checking whether to build gtk-doc documentation" >&5
|
16188 | |
+echo $ECHO_N "checking whether to build gtk-doc documentation... $ECHO_C" >&6; }
|
16189 | |
+ { echo "$as_me:$LINENO: result: $enable_gtk_doc" >&5
|
16190 | |
+echo "${ECHO_T}$enable_gtk_doc" >&6; }
|
16191 | |
+
|
16192 | |
+ for ac_prog in gtkdoc-check
|
16193 | |
+do
|
16194 | |
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
16195 | |
+set dummy $ac_prog; ac_word=$2
|
16196 | |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
16197 | |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
16198 | |
-if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
|
16199 | |
+if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then
|
16200 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
16201 | |
else
|
16202 | |
- case $PKG_CONFIG in
|
16203 | |
+ case $GTKDOC_CHECK in
|
16204 | |
[\\/]* | ?:[\\/]*)
|
16205 | |
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
16206 | |
+ ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
|
16207 | |
;;
|
16208 | |
*)
|
16209 | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
16210 | |
@@ -29429,7 +29449,7 @@
|
16211 | |
test -z "$as_dir" && as_dir=.
|
16212 | |
for ac_exec_ext in '' $ac_executable_extensions; do
|
16213 | |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
16214 | |
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
16215 | |
+ ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
|
16216 | |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
16217 | |
break 2
|
16218 | |
fi
|
16219 | |
@@ -29437,43 +29457,22 @@
|
16220 | |
done
|
16221 | |
IFS=$as_save_IFS
|
16222 | |
|
16223 | |
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
|
16224 | |
;;
|
16225 | |
esac
|
16226 | |
fi
|
16227 | |
-PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
16228 | |
-if test -n "$PKG_CONFIG"; then
|
16229 | |
- { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
|
16230 | |
-echo "${ECHO_T}$PKG_CONFIG" >&6; }
|
16231 | |
+GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
|
16232 | |
+if test -n "$GTKDOC_CHECK"; then
|
16233 | |
+ { echo "$as_me:$LINENO: result: $GTKDOC_CHECK" >&5
|
16234 | |
+echo "${ECHO_T}$GTKDOC_CHECK" >&6; }
|
16235 | |
else
|
16236 | |
{ echo "$as_me:$LINENO: result: no" >&5
|
16237 | |
echo "${ECHO_T}no" >&6; }
|
16238 | |
fi
|
16239 | |
|
16240 | |
|
16241 | |
- fi
|
16242 | |
- if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
|
16243 | |
- have_gtk_doc=yes
|
16244 | |
- fi
|
16245 | |
-
|
16246 | |
- gtk_doc_min_version=1.0
|
16247 | |
- if test "$have_gtk_doc" = yes; then
|
16248 | |
- { echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5
|
16249 | |
-echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6; }
|
16250 | |
- if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
|
16251 | |
- { echo "$as_me:$LINENO: result: yes" >&5
|
16252 | |
-echo "${ECHO_T}yes" >&6; }
|
16253 | |
- else
|
16254 | |
- { echo "$as_me:$LINENO: result: no" >&5
|
16255 | |
-echo "${ECHO_T}no" >&6; }
|
16256 | |
- have_gtk_doc=no
|
16257 | |
- fi
|
16258 | |
- fi
|
16259 | |
+ test -n "$GTKDOC_CHECK" && break
|
16260 | |
+done
|
16261 | |
|
16262 | |
- if test "$have_gtk_doc" != yes; then
|
16263 | |
- enable_gtk_doc=no
|
16264 | |
- fi
|
16265 | |
- fi
|
16266 | |
|
16267 | |
if test x$enable_gtk_doc = xyes; then
|
16268 | |
ENABLE_GTK_DOC_TRUE=
|
16269 | |
@@ -30701,6 +30700,7 @@
|
16270 | |
HAVE_GNOME_DOC_UTILS_TRUE!$HAVE_GNOME_DOC_UTILS_TRUE$ac_delim
|
16271 | |
HAVE_GNOME_DOC_UTILS_FALSE!$HAVE_GNOME_DOC_UTILS_FALSE$ac_delim
|
16272 | |
HTML_DIR!$HTML_DIR$ac_delim
|
16273 | |
+GTKDOC_CHECK!$GTKDOC_CHECK$ac_delim
|
16274 | |
ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim
|
16275 | |
ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim
|
16276 | |
GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim
|
16277 | |
@@ -30709,7 +30709,7 @@
|
|
3374 |
@@ -30198,13 +30458,13 @@
|
|
3375 |
CCDEPMODE!$CCDEPMODE$ac_delim
|
|
3376 |
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
|
|
3377 |
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
|
|
3378 |
+SED!$SED$ac_delim
|
|
3379 |
GREP!$GREP$ac_delim
|
|
3380 |
EGREP!$EGREP$ac_delim
|
|
3381 |
LN_S!$LN_S$ac_delim
|
|
3382 |
ECHO!$ECHO$ac_delim
|
|
3383 |
AR!$AR$ac_delim
|
|
3384 |
RANLIB!$RANLIB$ac_delim
|
|
3385 |
-CPP!$CPP$ac_delim
|
|
3386 |
_ACEOF
|
|
3387 |
|
|
3388 |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
|
3389 |
@@ -30246,6 +30506,7 @@
|
|
3390 |
ac_delim='%!_!# '
|
|
3391 |
for ac_last_try in false false false false false :; do
|
|
3392 |
cat >conf$$subs.sed <<_ACEOF
|
|
3393 |
+CPP!$CPP$ac_delim
|
|
3394 |
CXX!$CXX$ac_delim
|
|
3395 |
CXXFLAGS!$CXXFLAGS$ac_delim
|
|
3396 |
ac_ct_CXX!$ac_ct_CXX$ac_delim
|
|
3397 |
@@ -30342,7 +30603,6 @@
|
|
3398 |
pkgpythondir!$pkgpythondir$ac_delim
|
|
3399 |
pyexecdir!$pyexecdir$ac_delim
|
|
3400 |
pkgpyexecdir!$pkgpyexecdir$ac_delim
|
|
3401 |
-PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
|
|
3402 |
_ACEOF
|
|
3403 |
|
|
3404 |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
|
3405 |
@@ -30384,6 +30644,7 @@
|
|
3406 |
ac_delim='%!_!# '
|
|
3407 |
for ac_last_try in false false false false false :; do
|
|
3408 |
cat >conf$$subs.sed <<_ACEOF
|
|
3409 |
+PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
|
|
3410 |
PYTHON_LIBS!$PYTHON_LIBS$ac_delim
|
|
3411 |
PYTHON_LIB_LOC!$PYTHON_LIB_LOC$ac_delim
|
|
3412 |
PYTHON_CFLAGS!$PYTHON_CFLAGS$ac_delim
|
|
3413 |
@@ -30448,7 +30709,7 @@
|
16278 | 3414 |
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
16279 | 3415 |
_ACEOF
|
16280 | 3416 |
|
|
16283 | 3419 |
break
|
16284 | 3420 |
elif $ac_last_try; then
|
16285 | 3421 |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
16286 | |
diff -Naur epiphany-browser-2.20.1.old/data/art/Makefile.in epiphany-browser-2.20.1/data/art/Makefile.in
|
16287 | |
--- epiphany-browser-2.20.1.old/data/art/Makefile.in 2007-09-28 22:33:56.000000000 +0200
|
16288 | |
+++ epiphany-browser-2.20.1/data/art/Makefile.in 2007-11-01 07:06:50.000000000 +0100
|
16289 | |
@@ -124,6 +124,7 @@
|
16290 | |
GMOFILES = @GMOFILES@
|
16291 | |
GMSGFMT = @GMSGFMT@
|
16292 | |
GREP = @GREP@
|
16293 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16294 | |
HELP_DIR = @HELP_DIR@
|
16295 | |
HTML_DIR = @HTML_DIR@
|
16296 | |
INSTALL = @INSTALL@
|
16297 | |
diff -Naur epiphany-browser-2.20.1.old/data/chrome/Makefile.in epiphany-browser-2.20.1/data/chrome/Makefile.in
|
16298 | |
--- epiphany-browser-2.20.1.old/data/chrome/Makefile.in 2007-09-28 22:33:56.000000000 +0200
|
16299 | |
+++ epiphany-browser-2.20.1/data/chrome/Makefile.in 2007-11-01 07:06:50.000000000 +0100
|
16300 | |
@@ -127,6 +127,7 @@
|
16301 | |
GMOFILES = @GMOFILES@
|
16302 | |
GMSGFMT = @GMSGFMT@
|
16303 | |
GREP = @GREP@
|
16304 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16305 | |
HELP_DIR = @HELP_DIR@
|
16306 | |
HTML_DIR = @HTML_DIR@
|
16307 | |
INSTALL = @INSTALL@
|
16308 | |
diff -Naur epiphany-browser-2.20.1.old/data/glade/Makefile.in epiphany-browser-2.20.1/data/glade/Makefile.in
|
16309 | |
--- epiphany-browser-2.20.1.old/data/glade/Makefile.in 2007-09-28 22:33:56.000000000 +0200
|
16310 | |
+++ epiphany-browser-2.20.1/data/glade/Makefile.in 2007-11-01 07:06:51.000000000 +0100
|
16311 | |
@@ -126,6 +126,7 @@
|
16312 | |
GMOFILES = @GMOFILES@
|
16313 | |
GMSGFMT = @GMSGFMT@
|
16314 | |
GREP = @GREP@
|
16315 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16316 | |
HELP_DIR = @HELP_DIR@
|
16317 | |
HTML_DIR = @HTML_DIR@
|
16318 | |
INSTALL = @INSTALL@
|
16319 | |
diff -Naur epiphany-browser-2.20.1.old/data/icons/Makefile.in epiphany-browser-2.20.1/data/icons/Makefile.in
|
16320 | |
--- epiphany-browser-2.20.1.old/data/icons/Makefile.in 2007-09-28 22:33:56.000000000 +0200
|
16321 | |
+++ epiphany-browser-2.20.1/data/icons/Makefile.in 2007-11-01 07:06:51.000000000 +0100
|
16322 | |
@@ -115,6 +115,7 @@
|
16323 | |
GMOFILES = @GMOFILES@
|
16324 | |
GMSGFMT = @GMSGFMT@
|
16325 | |
GREP = @GREP@
|
16326 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16327 | |
HELP_DIR = @HELP_DIR@
|
16328 | |
HTML_DIR = @HTML_DIR@
|
16329 | |
INSTALL = @INSTALL@
|
16330 | |
diff -Naur epiphany-browser-2.20.1.old/data/Makefile.in epiphany-browser-2.20.1/data/Makefile.in
|
16331 | |
--- epiphany-browser-2.20.1.old/data/Makefile.in 2007-09-28 22:33:56.000000000 +0200
|
16332 | |
+++ epiphany-browser-2.20.1/data/Makefile.in 2007-11-01 07:06:50.000000000 +0100
|
16333 | |
@@ -155,6 +155,7 @@
|
16334 | |
GMOFILES = @GMOFILES@
|
16335 | |
GMSGFMT = @GMSGFMT@
|
16336 | |
GREP = @GREP@
|
16337 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16338 | |
HELP_DIR = @HELP_DIR@
|
16339 | |
HTML_DIR = @HTML_DIR@
|
16340 | |
INSTALL = @INSTALL@
|
16341 | |
diff -Naur epiphany-browser-2.20.1.old/data/ui/Makefile.in epiphany-browser-2.20.1/data/ui/Makefile.in
|
16342 | |
--- epiphany-browser-2.20.1.old/data/ui/Makefile.in 2007-09-28 22:33:57.000000000 +0200
|
16343 | |
+++ epiphany-browser-2.20.1/data/ui/Makefile.in 2007-11-01 07:06:51.000000000 +0100
|
16344 | |
@@ -123,6 +123,7 @@
|
16345 | |
GMOFILES = @GMOFILES@
|
16346 | |
GMSGFMT = @GMSGFMT@
|
16347 | |
GREP = @GREP@
|
16348 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16349 | |
HELP_DIR = @HELP_DIR@
|
16350 | |
HTML_DIR = @HTML_DIR@
|
16351 | |
INSTALL = @INSTALL@
|
16352 | |
diff -Naur epiphany-browser-2.20.1.old/doc/Makefile.in epiphany-browser-2.20.1/doc/Makefile.in
|
16353 | |
--- epiphany-browser-2.20.1.old/doc/Makefile.in 2007-09-28 22:33:57.000000000 +0200
|
16354 | |
+++ epiphany-browser-2.20.1/doc/Makefile.in 2007-11-01 07:06:51.000000000 +0100
|
16355 | |
@@ -129,6 +129,7 @@
|
16356 | |
GMOFILES = @GMOFILES@
|
16357 | |
GMSGFMT = @GMSGFMT@
|
16358 | |
GREP = @GREP@
|
16359 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16360 | |
HELP_DIR = @HELP_DIR@
|
16361 | |
HTML_DIR = @HTML_DIR@
|
16362 | |
INSTALL = @INSTALL@
|
16363 | |
diff -Naur epiphany-browser-2.20.1.old/doc/reference/Makefile.in epiphany-browser-2.20.1/doc/reference/Makefile.in
|
16364 | |
--- epiphany-browser-2.20.1.old/doc/reference/Makefile.in 2007-09-28 22:33:57.000000000 +0200
|
16365 | |
+++ epiphany-browser-2.20.1/doc/reference/Makefile.in 2007-11-01 07:06:51.000000000 +0100
|
16366 | |
@@ -129,6 +129,7 @@
|
16367 | |
GMOFILES = @GMOFILES@
|
16368 | |
GMSGFMT = @GMSGFMT@
|
16369 | |
GREP = @GREP@
|
16370 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16371 | |
HELP_DIR = @HELP_DIR@
|
16372 | |
HTML_DIR = @HTML_DIR@
|
16373 | |
INSTALL = @INSTALL@
|
16374 | |
diff -Naur epiphany-browser-2.20.1.old/embed/Makefile.in epiphany-browser-2.20.1/embed/Makefile.in
|
16375 | |
--- epiphany-browser-2.20.1.old/embed/Makefile.in 2007-09-28 22:33:57.000000000 +0200
|
16376 | |
+++ epiphany-browser-2.20.1/embed/Makefile.in 2007-11-01 07:06:52.000000000 +0100
|
16377 | |
@@ -214,6 +214,7 @@
|
16378 | |
GMOFILES = @GMOFILES@
|
16379 | |
GMSGFMT = @GMSGFMT@
|
16380 | |
GREP = @GREP@
|
16381 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16382 | |
HELP_DIR = @HELP_DIR@
|
16383 | |
HTML_DIR = @HTML_DIR@
|
16384 | |
INSTALL = @INSTALL@
|
16385 | |
diff -Naur epiphany-browser-2.20.1.old/embed/mozilla/Makefile.in epiphany-browser-2.20.1/embed/mozilla/Makefile.in
|
16386 | |
--- epiphany-browser-2.20.1.old/embed/mozilla/Makefile.in 2007-11-01 07:02:49.000000000 +0100
|
16387 | |
+++ epiphany-browser-2.20.1/embed/mozilla/Makefile.in 2007-11-01 07:06:52.000000000 +0100
|
16388 | |
@@ -239,6 +239,7 @@
|
16389 | |
GMOFILES = @GMOFILES@
|
16390 | |
GMSGFMT = @GMSGFMT@
|
16391 | |
GREP = @GREP@
|
16392 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16393 | |
HELP_DIR = @HELP_DIR@
|
16394 | |
HTML_DIR = @HTML_DIR@
|
16395 | |
INSTALL = @INSTALL@
|
16396 | |
diff -Naur epiphany-browser-2.20.1.old/embed/webkit/Makefile.in epiphany-browser-2.20.1/embed/webkit/Makefile.in
|
16397 | |
--- epiphany-browser-2.20.1.old/embed/webkit/Makefile.in 2007-09-28 22:33:58.000000000 +0200
|
16398 | |
+++ epiphany-browser-2.20.1/embed/webkit/Makefile.in 2007-11-01 07:06:53.000000000 +0100
|
16399 | |
@@ -145,6 +145,7 @@
|
16400 | |
GMOFILES = @GMOFILES@
|
16401 | |
GMSGFMT = @GMSGFMT@
|
16402 | |
GREP = @GREP@
|
16403 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16404 | |
HELP_DIR = @HELP_DIR@
|
16405 | |
HTML_DIR = @HTML_DIR@
|
16406 | |
INSTALL = @INSTALL@
|
16407 | |
diff -Naur epiphany-browser-2.20.1.old/gtk-doc.make epiphany-browser-2.20.1/gtk-doc.make
|
16408 | |
--- epiphany-browser-2.20.1.old/gtk-doc.make 1970-01-01 01:00:00.000000000 +0100
|
16409 | |
+++ epiphany-browser-2.20.1/gtk-doc.make 2007-11-01 07:06:33.000000000 +0100
|
|
3422 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/data/art/Makefile.in epiphany-browser-2.20.2/data/art/Makefile.in
|
|
3423 |
--- epiphany-browser-2.20.2.old/data/art/Makefile.in 2007-11-27 00:37:37.000000000 +0100
|
|
3424 |
+++ epiphany-browser-2.20.2/data/art/Makefile.in 2007-12-01 17:49:02.000000000 +0100
|
|
3425 |
@@ -200,6 +200,7 @@
|
|
3426 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3427 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3428 |
RANLIB = @RANLIB@
|
|
3429 |
+SED = @SED@
|
|
3430 |
SET_MAKE = @SET_MAKE@
|
|
3431 |
SHELL = @SHELL@
|
|
3432 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3433 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/data/chrome/Makefile.in epiphany-browser-2.20.2/data/chrome/Makefile.in
|
|
3434 |
--- epiphany-browser-2.20.2.old/data/chrome/Makefile.in 2007-11-27 00:37:38.000000000 +0100
|
|
3435 |
+++ epiphany-browser-2.20.2/data/chrome/Makefile.in 2007-12-01 17:49:02.000000000 +0100
|
|
3436 |
@@ -203,6 +203,7 @@
|
|
3437 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3438 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3439 |
RANLIB = @RANLIB@
|
|
3440 |
+SED = @SED@
|
|
3441 |
SET_MAKE = @SET_MAKE@
|
|
3442 |
SHELL = @SHELL@
|
|
3443 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3444 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/data/glade/Makefile.in epiphany-browser-2.20.2/data/glade/Makefile.in
|
|
3445 |
--- epiphany-browser-2.20.2.old/data/glade/Makefile.in 2007-11-27 00:37:38.000000000 +0100
|
|
3446 |
+++ epiphany-browser-2.20.2/data/glade/Makefile.in 2007-12-01 17:49:03.000000000 +0100
|
|
3447 |
@@ -202,6 +202,7 @@
|
|
3448 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3449 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3450 |
RANLIB = @RANLIB@
|
|
3451 |
+SED = @SED@
|
|
3452 |
SET_MAKE = @SET_MAKE@
|
|
3453 |
SHELL = @SHELL@
|
|
3454 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3455 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/data/icons/Makefile.in epiphany-browser-2.20.2/data/icons/Makefile.in
|
|
3456 |
--- epiphany-browser-2.20.2.old/data/icons/Makefile.in 2007-11-27 00:37:38.000000000 +0100
|
|
3457 |
+++ epiphany-browser-2.20.2/data/icons/Makefile.in 2007-12-01 17:49:03.000000000 +0100
|
|
3458 |
@@ -191,6 +191,7 @@
|
|
3459 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3460 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3461 |
RANLIB = @RANLIB@
|
|
3462 |
+SED = @SED@
|
|
3463 |
SET_MAKE = @SET_MAKE@
|
|
3464 |
SHELL = @SHELL@
|
|
3465 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3466 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/data/Makefile.in epiphany-browser-2.20.2/data/Makefile.in
|
|
3467 |
--- epiphany-browser-2.20.2.old/data/Makefile.in 2007-11-27 00:37:37.000000000 +0100
|
|
3468 |
+++ epiphany-browser-2.20.2/data/Makefile.in 2007-12-01 17:49:02.000000000 +0100
|
|
3469 |
@@ -231,6 +231,7 @@
|
|
3470 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3471 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3472 |
RANLIB = @RANLIB@
|
|
3473 |
+SED = @SED@
|
|
3474 |
SET_MAKE = @SET_MAKE@
|
|
3475 |
SHELL = @SHELL@
|
|
3476 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3477 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/data/ui/Makefile.in epiphany-browser-2.20.2/data/ui/Makefile.in
|
|
3478 |
--- epiphany-browser-2.20.2.old/data/ui/Makefile.in 2007-11-27 00:37:38.000000000 +0100
|
|
3479 |
+++ epiphany-browser-2.20.2/data/ui/Makefile.in 2007-12-01 17:49:03.000000000 +0100
|
|
3480 |
@@ -199,6 +199,7 @@
|
|
3481 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3482 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3483 |
RANLIB = @RANLIB@
|
|
3484 |
+SED = @SED@
|
|
3485 |
SET_MAKE = @SET_MAKE@
|
|
3486 |
SHELL = @SHELL@
|
|
3487 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3488 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/doc/Makefile.in epiphany-browser-2.20.2/doc/Makefile.in
|
|
3489 |
--- epiphany-browser-2.20.2.old/doc/Makefile.in 2007-11-27 00:37:38.000000000 +0100
|
|
3490 |
+++ epiphany-browser-2.20.2/doc/Makefile.in 2007-12-01 17:49:03.000000000 +0100
|
|
3491 |
@@ -205,6 +205,7 @@
|
|
3492 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3493 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3494 |
RANLIB = @RANLIB@
|
|
3495 |
+SED = @SED@
|
|
3496 |
SET_MAKE = @SET_MAKE@
|
|
3497 |
SHELL = @SHELL@
|
|
3498 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3499 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/doc/reference/Makefile.in epiphany-browser-2.20.2/doc/reference/Makefile.in
|
|
3500 |
--- epiphany-browser-2.20.2.old/doc/reference/Makefile.in 2007-11-27 00:37:38.000000000 +0100
|
|
3501 |
+++ epiphany-browser-2.20.2/doc/reference/Makefile.in 2007-12-01 17:49:03.000000000 +0100
|
|
3502 |
@@ -205,6 +205,7 @@
|
|
3503 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3504 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3505 |
RANLIB = @RANLIB@
|
|
3506 |
+SED = @SED@
|
|
3507 |
SET_MAKE = @SET_MAKE@
|
|
3508 |
SHELL = @SHELL@
|
|
3509 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3510 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/embed/Makefile.in epiphany-browser-2.20.2/embed/Makefile.in
|
|
3511 |
--- epiphany-browser-2.20.2.old/embed/Makefile.in 2007-11-27 00:37:39.000000000 +0100
|
|
3512 |
+++ epiphany-browser-2.20.2/embed/Makefile.in 2007-12-01 17:49:03.000000000 +0100
|
|
3513 |
@@ -290,6 +290,7 @@
|
|
3514 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3515 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3516 |
RANLIB = @RANLIB@
|
|
3517 |
+SED = @SED@
|
|
3518 |
SET_MAKE = @SET_MAKE@
|
|
3519 |
SHELL = @SHELL@
|
|
3520 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3521 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/embed/mozilla/Makefile.in epiphany-browser-2.20.2/embed/mozilla/Makefile.in
|
|
3522 |
--- epiphany-browser-2.20.2.old/embed/mozilla/Makefile.in 2007-12-01 17:47:23.000000000 +0100
|
|
3523 |
+++ epiphany-browser-2.20.2/embed/mozilla/Makefile.in 2007-12-01 17:49:04.000000000 +0100
|
|
3524 |
@@ -315,6 +315,7 @@
|
|
3525 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3526 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3527 |
RANLIB = @RANLIB@
|
|
3528 |
+SED = @SED@
|
|
3529 |
SET_MAKE = @SET_MAKE@
|
|
3530 |
SHELL = @SHELL@
|
|
3531 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3532 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/embed/webkit/Makefile.in epiphany-browser-2.20.2/embed/webkit/Makefile.in
|
|
3533 |
--- epiphany-browser-2.20.2.old/embed/webkit/Makefile.in 2007-11-27 00:37:40.000000000 +0100
|
|
3534 |
+++ epiphany-browser-2.20.2/embed/webkit/Makefile.in 2007-12-01 17:49:04.000000000 +0100
|
|
3535 |
@@ -221,6 +221,7 @@
|
|
3536 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3537 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3538 |
RANLIB = @RANLIB@
|
|
3539 |
+SED = @SED@
|
|
3540 |
SET_MAKE = @SET_MAKE@
|
|
3541 |
SHELL = @SHELL@
|
|
3542 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3543 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/gtk-doc.make epiphany-browser-2.20.2/gtk-doc.make
|
|
3544 |
--- epiphany-browser-2.20.2.old/gtk-doc.make 1970-01-01 01:00:00.000000000 +0100
|
|
3545 |
+++ epiphany-browser-2.20.2/gtk-doc.make 2007-12-01 17:48:49.000000000 +0100
|
16410 | 3546 |
@@ -0,0 +1,174 @@
|
16411 | 3547 |
+# -*- mode: makefile -*-
|
16412 | 3548 |
+
|
|
16582 | 3718 |
+ -gtkdoc-rebase --online --relative --html-dir=$(distdir)/html
|
16583 | 3719 |
+
|
16584 | 3720 |
+.PHONY : dist-hook-local docs
|
16585 | |
diff -Naur epiphany-browser-2.20.1.old/help/Makefile.in epiphany-browser-2.20.1/help/Makefile.in
|
16586 | |
--- epiphany-browser-2.20.1.old/help/Makefile.in 2007-09-28 22:33:58.000000000 +0200
|
16587 | |
+++ epiphany-browser-2.20.1/help/Makefile.in 2007-11-01 07:06:53.000000000 +0100
|
16588 | |
@@ -138,6 +138,7 @@
|
16589 | |
GMOFILES = @GMOFILES@
|
16590 | |
GMSGFMT = @GMSGFMT@
|
16591 | |
GREP = @GREP@
|
16592 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16593 | |
HELP_DIR = @HELP_DIR@
|
16594 | |
HTML_DIR = @HTML_DIR@
|
16595 | |
INSTALL = @INSTALL@
|
16596 | |
diff -Naur epiphany-browser-2.20.1.old/intltool-extract.in epiphany-browser-2.20.1/intltool-extract.in
|
16597 | |
--- epiphany-browser-2.20.1.old/intltool-extract.in 2007-09-28 22:33:42.000000000 +0200
|
16598 | |
+++ epiphany-browser-2.20.1/intltool-extract.in 2007-11-01 07:06:32.000000000 +0100
|
16599 | |
@@ -32,7 +32,7 @@
|
16600 | |
## Release information
|
16601 | |
my $PROGRAM = "intltool-extract";
|
16602 | |
my $PACKAGE = "intltool";
|
16603 | |
-my $VERSION = "0.36.1";
|
16604 | |
+my $VERSION = "0.36.2";
|
16605 | |
|
16606 | |
## Loaded modules
|
16607 | |
use strict;
|
16608 | |
diff -Naur epiphany-browser-2.20.1.old/intltool-merge.in epiphany-browser-2.20.1/intltool-merge.in
|
16609 | |
--- epiphany-browser-2.20.1.old/intltool-merge.in 2007-09-28 22:33:42.000000000 +0200
|
16610 | |
+++ epiphany-browser-2.20.1/intltool-merge.in 2007-11-01 07:06:32.000000000 +0100
|
16611 | |
@@ -35,7 +35,7 @@
|
16612 | |
## Release information
|
16613 | |
my $PROGRAM = "intltool-merge";
|
16614 | |
my $PACKAGE = "intltool";
|
16615 | |
-my $VERSION = "0.36.1";
|
16616 | |
+my $VERSION = "0.36.2";
|
16617 | |
|
16618 | |
## Loaded modules
|
16619 | |
use strict;
|
16620 | |
diff -Naur epiphany-browser-2.20.1.old/intltool-update.in epiphany-browser-2.20.1/intltool-update.in
|
16621 | |
--- epiphany-browser-2.20.1.old/intltool-update.in 2007-09-28 22:33:42.000000000 +0200
|
16622 | |
+++ epiphany-browser-2.20.1/intltool-update.in 2007-11-01 07:06:32.000000000 +0100
|
16623 | |
@@ -30,7 +30,7 @@
|
16624 | |
|
16625 | |
## Release information
|
16626 | |
my $PROGRAM = "intltool-update";
|
16627 | |
-my $VERSION = "0.36.1";
|
16628 | |
+my $VERSION = "0.36.2";
|
16629 | |
my $PACKAGE = "intltool";
|
16630 | |
|
16631 | |
## Loaded modules
|
16632 | |
diff -Naur epiphany-browser-2.20.1.old/lib/egg/Makefile.in epiphany-browser-2.20.1/lib/egg/Makefile.in
|
16633 | |
--- epiphany-browser-2.20.1.old/lib/egg/Makefile.in 2007-09-28 22:33:59.000000000 +0200
|
16634 | |
+++ epiphany-browser-2.20.1/lib/egg/Makefile.in 2007-11-01 07:06:53.000000000 +0100
|
16635 | |
@@ -147,6 +147,7 @@
|
16636 | |
GMOFILES = @GMOFILES@
|
16637 | |
GMSGFMT = @GMSGFMT@
|
16638 | |
GREP = @GREP@
|
16639 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16640 | |
HELP_DIR = @HELP_DIR@
|
16641 | |
HTML_DIR = @HTML_DIR@
|
16642 | |
INSTALL = @INSTALL@
|
16643 | |
diff -Naur epiphany-browser-2.20.1.old/lib/Makefile.in epiphany-browser-2.20.1/lib/Makefile.in
|
16644 | |
--- epiphany-browser-2.20.1.old/lib/Makefile.in 2007-11-01 07:02:49.000000000 +0100
|
16645 | |
+++ epiphany-browser-2.20.1/lib/Makefile.in 2007-11-01 07:06:53.000000000 +0100
|
16646 | |
@@ -205,6 +205,7 @@
|
16647 | |
GMOFILES = @GMOFILES@
|
16648 | |
GMSGFMT = @GMSGFMT@
|
16649 | |
GREP = @GREP@
|
16650 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16651 | |
HELP_DIR = @HELP_DIR@
|
16652 | |
HTML_DIR = @HTML_DIR@
|
16653 | |
INSTALL = @INSTALL@
|
16654 | |
diff -Naur epiphany-browser-2.20.1.old/lib/widgets/Makefile.in epiphany-browser-2.20.1/lib/widgets/Makefile.in
|
16655 | |
--- epiphany-browser-2.20.1.old/lib/widgets/Makefile.in 2007-09-28 22:33:59.000000000 +0200
|
16656 | |
+++ epiphany-browser-2.20.1/lib/widgets/Makefile.in 2007-11-01 07:06:54.000000000 +0100
|
16657 | |
@@ -145,6 +145,7 @@
|
16658 | |
GMOFILES = @GMOFILES@
|
16659 | |
GMSGFMT = @GMSGFMT@
|
16660 | |
GREP = @GREP@
|
16661 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16662 | |
HELP_DIR = @HELP_DIR@
|
16663 | |
HTML_DIR = @HTML_DIR@
|
16664 | |
INSTALL = @INSTALL@
|
16665 | |
diff -Naur epiphany-browser-2.20.1.old/ltmain.sh epiphany-browser-2.20.1/ltmain.sh
|
16666 | |
--- epiphany-browser-2.20.1.old/ltmain.sh 2007-08-01 16:12:57.000000000 +0200
|
16667 | |
+++ epiphany-browser-2.20.1/ltmain.sh 2007-08-14 19:43:36.000000000 +0200
|
16668 | |
@@ -43,7 +43,7 @@
|
|
3721 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/help/Makefile.in epiphany-browser-2.20.2/help/Makefile.in
|
|
3722 |
--- epiphany-browser-2.20.2.old/help/Makefile.in 2007-11-27 00:37:40.000000000 +0100
|
|
3723 |
+++ epiphany-browser-2.20.2/help/Makefile.in 2007-12-01 17:49:04.000000000 +0100
|
|
3724 |
@@ -214,6 +214,7 @@
|
|
3725 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3726 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3727 |
RANLIB = @RANLIB@
|
|
3728 |
+SED = @SED@
|
|
3729 |
SET_MAKE = @SET_MAKE@
|
|
3730 |
SHELL = @SHELL@
|
|
3731 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3732 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/lib/egg/Makefile.in epiphany-browser-2.20.2/lib/egg/Makefile.in
|
|
3733 |
--- epiphany-browser-2.20.2.old/lib/egg/Makefile.in 2007-11-27 00:37:41.000000000 +0100
|
|
3734 |
+++ epiphany-browser-2.20.2/lib/egg/Makefile.in 2007-12-01 17:49:05.000000000 +0100
|
|
3735 |
@@ -223,6 +223,7 @@
|
|
3736 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3737 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3738 |
RANLIB = @RANLIB@
|
|
3739 |
+SED = @SED@
|
|
3740 |
SET_MAKE = @SET_MAKE@
|
|
3741 |
SHELL = @SHELL@
|
|
3742 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3743 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/lib/Makefile.in epiphany-browser-2.20.2/lib/Makefile.in
|
|
3744 |
--- epiphany-browser-2.20.2.old/lib/Makefile.in 2007-12-01 17:47:23.000000000 +0100
|
|
3745 |
+++ epiphany-browser-2.20.2/lib/Makefile.in 2007-12-01 17:49:05.000000000 +0100
|
|
3746 |
@@ -281,6 +281,7 @@
|
|
3747 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3748 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3749 |
RANLIB = @RANLIB@
|
|
3750 |
+SED = @SED@
|
|
3751 |
SET_MAKE = @SET_MAKE@
|
|
3752 |
SHELL = @SHELL@
|
|
3753 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3754 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/lib/widgets/Makefile.in epiphany-browser-2.20.2/lib/widgets/Makefile.in
|
|
3755 |
--- epiphany-browser-2.20.2.old/lib/widgets/Makefile.in 2007-11-27 00:37:41.000000000 +0100
|
|
3756 |
+++ epiphany-browser-2.20.2/lib/widgets/Makefile.in 2007-12-01 17:49:05.000000000 +0100
|
|
3757 |
@@ -221,6 +221,7 @@
|
|
3758 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
3759 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
3760 |
RANLIB = @RANLIB@
|
|
3761 |
+SED = @SED@
|
|
3762 |
SET_MAKE = @SET_MAKE@
|
|
3763 |
SHELL = @SHELL@
|
|
3764 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
3765 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/ltmain.sh epiphany-browser-2.20.2/ltmain.sh
|
|
3766 |
--- epiphany-browser-2.20.2.old/ltmain.sh 2006-03-11 19:49:04.000000000 +0100
|
|
3767 |
+++ epiphany-browser-2.20.2/ltmain.sh 2007-08-14 19:43:36.000000000 +0200
|
|
3768 |
@@ -1,8 +1,8 @@
|
|
3769 |
# ltmain.sh - Provide generalized library-building support services.
|
|
3770 |
# NOTE: Changing this file will not affect anything until you rerun configure.
|
|
3771 |
#
|
|
3772 |
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
|
|
3773 |
-# Free Software Foundation, Inc.
|
|
3774 |
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
|
|
3775 |
+# 2007 Free Software Foundation, Inc.
|
|
3776 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
|
3777 |
#
|
|
3778 |
# This program is free software; you can redistribute it and/or modify
|
|
3779 |
@@ -43,14 +43,22 @@
|
16669 | 3780 |
|
16670 | 3781 |
PROGRAM=ltmain.sh
|
16671 | 3782 |
PACKAGE=libtool
|
16672 | |
-VERSION="1.5.24 Debian 1.5.24-1"
|
|
3783 |
-VERSION="1.5.22 Debian 1.5.22-4"
|
|
3784 |
-TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
|
16673 | 3785 |
+VERSION="1.5.24 Debian 1.5.24-1ubuntu1"
|
16674 | |
TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
|
16675 | |
|
16676 | |
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
|
16677 | |
diff -Naur epiphany-browser-2.20.1.old/m4/gtk-doc.m4 epiphany-browser-2.20.1/m4/gtk-doc.m4
|
16678 | |
--- epiphany-browser-2.20.1.old/m4/gtk-doc.m4 2007-09-28 22:33:43.000000000 +0200
|
16679 | |
+++ epiphany-browser-2.20.1/m4/gtk-doc.m4 2007-11-01 07:06:33.000000000 +0100
|
16680 | |
@@ -21,33 +21,19 @@
|
16681 | |
[use gtk-doc to build documentation [[default=no]]]),,
|
16682 | |
[enable_gtk_doc=no])
|
16683 | |
|
16684 | |
- have_gtk_doc=no
|
16685 | |
if test x$enable_gtk_doc = xyes; then
|
16686 | |
- if test -z "$PKG_CONFIG"; then
|
16687 | |
- AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
|
16688 | |
- fi
|
16689 | |
- if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
|
16690 | |
- have_gtk_doc=yes
|
16691 | |
- fi
|
|
3786 |
+TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
|
|
3787 |
|
|
3788 |
-# See if we are running on zsh, and set the options which allow our
|
|
3789 |
-# commands through without removal of \ escapes.
|
|
3790 |
-if test -n "${ZSH_VERSION+set}" ; then
|
|
3791 |
+# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
|
|
3792 |
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
3793 |
+ emulate sh
|
|
3794 |
+ NULLCMD=:
|
|
3795 |
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
3796 |
+ # is contrary to our usage. Disable this feature.
|
|
3797 |
+ alias -g '${1+"$@"}'='"$@"'
|
|
3798 |
setopt NO_GLOB_SUBST
|
|
3799 |
+else
|
|
3800 |
+ case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
|
|
3801 |
fi
|
|
3802 |
+BIN_SH=xpg4; export BIN_SH # for Tru64
|
|
3803 |
+DUALCASE=1; export DUALCASE # for MKS sh
|
|
3804 |
|
|
3805 |
# Check that we have a working $echo.
|
|
3806 |
if test "X$1" = X--no-reexec; then
|
|
3807 |
@@ -105,12 +113,14 @@
|
|
3808 |
# These must not be set unconditionally because not all systems understand
|
|
3809 |
# e.g. LANG=C (notably SCO).
|
|
3810 |
# We save the old values to restore during execute mode.
|
|
3811 |
-if test "${LC_ALL+set}" = set; then
|
|
3812 |
- save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
|
|
3813 |
-fi
|
|
3814 |
-if test "${LANG+set}" = set; then
|
|
3815 |
- save_LANG="$LANG"; LANG=C; export LANG
|
|
3816 |
-fi
|
|
3817 |
+for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
|
|
3818 |
+do
|
|
3819 |
+ eval "if test \"\${$lt_var+set}\" = set; then
|
|
3820 |
+ save_$lt_var=\$$lt_var
|
|
3821 |
+ $lt_var=C
|
|
3822 |
+ export $lt_var
|
|
3823 |
+ fi"
|
|
3824 |
+done
|
|
3825 |
|
|
3826 |
# Make sure IFS has a sensible default
|
|
3827 |
lt_nl='
|
|
3828 |
@@ -136,6 +146,8 @@
|
|
3829 |
preserve_args=
|
|
3830 |
lo2o="s/\\.lo\$/.${objext}/"
|
|
3831 |
o2lo="s/\\.${objext}\$/.lo/"
|
|
3832 |
+extracted_archives=
|
|
3833 |
+extracted_serial=0
|
|
3834 |
|
|
3835 |
#####################################
|
|
3836 |
# Shell function definitions:
|
|
3837 |
@@ -196,7 +208,13 @@
|
|
3838 |
if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
|
|
3839 |
$EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
|
|
3840 |
win32_nmres=`eval $NM -f posix -A $1 | \
|
|
3841 |
- $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
|
|
3842 |
+ $SED -n -e '1,100{
|
|
3843 |
+ / I /{
|
|
3844 |
+ s,.*,import,
|
|
3845 |
+ p
|
|
3846 |
+ q
|
|
3847 |
+ }
|
|
3848 |
+ }'`
|
|
3849 |
case $win32_nmres in
|
|
3850 |
import*) win32_libid_type="x86 archive import";;
|
|
3851 |
*) win32_libid_type="x86 archive static";;
|
|
3852 |
@@ -327,7 +345,17 @@
|
|
3853 |
*) my_xabs=`pwd`"/$my_xlib" ;;
|
|
3854 |
esac
|
|
3855 |
my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
|
|
3856 |
- my_xdir="$my_gentop/$my_xlib"
|
|
3857 |
+ my_xlib_u=$my_xlib
|
|
3858 |
+ while :; do
|
|
3859 |
+ case " $extracted_archives " in
|
|
3860 |
+ *" $my_xlib_u "*)
|
|
3861 |
+ extracted_serial=`expr $extracted_serial + 1`
|
|
3862 |
+ my_xlib_u=lt$extracted_serial-$my_xlib ;;
|
|
3863 |
+ *) break ;;
|
|
3864 |
+ esac
|
|
3865 |
+ done
|
|
3866 |
+ extracted_archives="$extracted_archives $my_xlib_u"
|
|
3867 |
+ my_xdir="$my_gentop/$my_xlib_u"
|
|
3868 |
|
|
3869 |
$show "${rm}r $my_xdir"
|
|
3870 |
$run ${rm}r "$my_xdir"
|
|
3871 |
@@ -454,11 +482,12 @@
|
|
3872 |
;;
|
|
3873 |
|
|
3874 |
--version)
|
|
3875 |
- $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
|
|
3876 |
- $echo
|
|
3877 |
- $echo "Copyright (C) 2005 Free Software Foundation, Inc."
|
|
3878 |
- $echo "This is free software; see the source for copying conditions. There is NO"
|
|
3879 |
- $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
|
3880 |
+ echo "\
|
|
3881 |
+$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
|
|
3882 |
+
|
|
3883 |
+Copyright (C) 2007 Free Software Foundation, Inc.
|
|
3884 |
+This is free software; see the source for copying conditions. There is NO
|
|
3885 |
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
|
3886 |
exit $?
|
|
3887 |
;;
|
|
3888 |
|
|
3889 |
@@ -755,9 +784,10 @@
|
|
3890 |
*.class) xform=class ;;
|
|
3891 |
*.cpp) xform=cpp ;;
|
|
3892 |
*.cxx) xform=cxx ;;
|
|
3893 |
- *.f90) xform=f90 ;;
|
|
3894 |
+ *.[fF][09]?) xform=[fF][09]. ;;
|
|
3895 |
*.for) xform=for ;;
|
|
3896 |
*.java) xform=java ;;
|
|
3897 |
+ *.obj) xform=obj ;;
|
|
3898 |
esac
|
|
3899 |
|
|
3900 |
libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
|
|
3901 |
@@ -1138,8 +1168,9 @@
|
|
3902 |
for arg
|
|
3903 |
do
|
|
3904 |
case $arg in
|
|
3905 |
- -all-static | -static)
|
|
3906 |
- if test "X$arg" = "X-all-static"; then
|
|
3907 |
+ -all-static | -static | -static-libtool-libs)
|
|
3908 |
+ case $arg in
|
|
3909 |
+ -all-static)
|
|
3910 |
if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
|
|
3911 |
$echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
|
|
3912 |
fi
|
|
3913 |
@@ -1147,12 +1178,20 @@
|
|
3914 |
dlopen_self=$dlopen_self_static
|
|
3915 |
fi
|
|
3916 |
prefer_static_libs=yes
|
|
3917 |
- else
|
|
3918 |
+ ;;
|
|
3919 |
+ -static)
|
|
3920 |
if test -z "$pic_flag" && test -n "$link_static_flag"; then
|
|
3921 |
dlopen_self=$dlopen_self_static
|
|
3922 |
fi
|
|
3923 |
prefer_static_libs=built
|
|
3924 |
- fi
|
|
3925 |
+ ;;
|
|
3926 |
+ -static-libtool-libs)
|
|
3927 |
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
|
|
3928 |
+ dlopen_self=$dlopen_self_static
|
|
3929 |
+ fi
|
|
3930 |
+ prefer_static_libs=yes
|
|
3931 |
+ ;;
|
|
3932 |
+ esac
|
|
3933 |
build_libtool_libs=no
|
|
3934 |
build_old_libs=yes
|
|
3935 |
break
|
|
3936 |
@@ -1600,7 +1639,7 @@
|
|
3937 |
continue
|
|
3938 |
;;
|
|
3939 |
|
|
3940 |
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
|
|
3941 |
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
|
|
3942 |
compiler_flags="$compiler_flags $arg"
|
|
3943 |
compile_command="$compile_command $arg"
|
|
3944 |
finalize_command="$finalize_command $arg"
|
|
3945 |
@@ -1620,10 +1659,11 @@
|
|
3946 |
# -m* pass through architecture-specific compiler args for GCC
|
|
3947 |
# -m*, -t[45]*, -txscale* pass through architecture-specific
|
|
3948 |
# compiler args for GCC
|
|
3949 |
- # -pg pass through profiling flag for GCC
|
|
3950 |
+ # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
|
|
3951 |
+ # -F/path gives path to uninstalled frameworks, gcc on darwin
|
|
3952 |
# @file GCC response files
|
|
3953 |
- -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
|
|
3954 |
- -t[45]*|-txscale*|@*)
|
|
3955 |
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
|
|
3956 |
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
|
|
3957 |
|
|
3958 |
# Unknown arguments in both finalize_command and compile_command need
|
|
3959 |
# to be aesthetically quoted because they are evaled later.
|
|
3960 |
@@ -1651,9 +1691,9 @@
|
|
3961 |
|
|
3962 |
-no-install)
|
|
3963 |
case $host in
|
|
3964 |
- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
|
|
3965 |
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
|
|
3966 |
# The PATH hackery in wrapper scripts is required on Windows
|
|
3967 |
- # in order for the loader to find any dlls it needs.
|
|
3968 |
+ # and Darwin in order for the loader to find any dlls it needs.
|
|
3969 |
$echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
|
|
3970 |
$echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
|
|
3971 |
fast_install=no
|
|
3972 |
@@ -1712,7 +1752,7 @@
|
|
3973 |
continue
|
|
3974 |
;;
|
|
3975 |
|
|
3976 |
- -static)
|
|
3977 |
+ -static | -static-libtool-libs)
|
|
3978 |
# The effects of -static are defined in a previous loop.
|
|
3979 |
# We used to do the same as -all-static on platforms that
|
|
3980 |
# didn't have a PIC flag, but the assumption that the effects
|
|
3981 |
@@ -2097,7 +2137,7 @@
|
|
3982 |
lib=
|
|
3983 |
found=no
|
|
3984 |
case $deplib in
|
|
3985 |
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
|
|
3986 |
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
|
|
3987 |
if test "$linkmode,$pass" = "prog,link"; then
|
|
3988 |
compile_deplibs="$deplib $compile_deplibs"
|
|
3989 |
finalize_deplibs="$deplib $finalize_deplibs"
|
|
3990 |
@@ -2493,7 +2533,9 @@
|
|
3991 |
|
|
3992 |
if test "$linkmode,$pass" = "prog,link"; then
|
|
3993 |
if test -n "$library_names" &&
|
|
3994 |
- { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
|
|
3995 |
+ { { test "$prefer_static_libs" = no ||
|
|
3996 |
+ test "$prefer_static_libs,$installed" = "built,yes"; } ||
|
|
3997 |
+ test -z "$old_library"; }; then
|
|
3998 |
# We need to hardcode the library path
|
|
3999 |
if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
|
|
4000 |
# Make sure the rpath contains only unique directories.
|
|
4001 |
@@ -3189,7 +3231,7 @@
|
|
4002 |
# which has an extra 1 added just for fun
|
|
4003 |
#
|
|
4004 |
case $version_type in
|
|
4005 |
- darwin|linux|osf|windows)
|
|
4006 |
+ darwin|linux|osf|windows|none)
|
|
4007 |
current=`expr $number_major + $number_minor`
|
|
4008 |
age="$number_minor"
|
|
4009 |
revision="$number_revision"
|
|
4010 |
@@ -3200,9 +3242,10 @@
|
|
4011 |
age="0"
|
|
4012 |
;;
|
|
4013 |
irix|nonstopux)
|
|
4014 |
- current=`expr $number_major + $number_minor - 1`
|
|
4015 |
+ current=`expr $number_major + $number_minor`
|
|
4016 |
age="$number_minor"
|
|
4017 |
revision="$number_minor"
|
|
4018 |
+ lt_irix_increment=no
|
|
4019 |
;;
|
|
4020 |
*)
|
|
4021 |
$echo "$modename: unknown library version type \`$version_type'" 1>&2
|
|
4022 |
@@ -3266,7 +3309,8 @@
|
|
4023 |
versuffix="$major.$age.$revision"
|
|
4024 |
# Darwin ld doesn't like 0 for these options...
|
|
4025 |
minor_current=`expr $current + 1`
|
|
4026 |
- verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
|
|
4027 |
+ xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
|
|
4028 |
+ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
|
|
4029 |
;;
|
|
4030 |
|
|
4031 |
freebsd-aout)
|
|
4032 |
@@ -3280,8 +3324,11 @@
|
|
4033 |
;;
|
|
4034 |
|
|
4035 |
irix | nonstopux)
|
|
4036 |
- major=`expr $current - $age + 1`
|
16692 | 4037 |
-
|
16693 | |
- dnl do we want to do a version check?
|
16694 | |
-ifelse([$1],[],,
|
16695 | |
- [gtk_doc_min_version=$1
|
16696 | |
- if test "$have_gtk_doc" = yes; then
|
16697 | |
- AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
|
16698 | |
- if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
|
16699 | |
- AC_MSG_RESULT([yes])
|
16700 | |
- else
|
16701 | |
- AC_MSG_RESULT([no])
|
16702 | |
- have_gtk_doc=no
|
|
4038 |
+ if test "X$lt_irix_increment" = "Xno"; then
|
|
4039 |
+ major=`expr $current - $age`
|
|
4040 |
+ else
|
|
4041 |
+ major=`expr $current - $age + 1`
|
|
4042 |
+ fi
|
|
4043 |
case $version_type in
|
|
4044 |
nonstopux) verstring_prefix=nonstopux ;;
|
|
4045 |
*) verstring_prefix=sgi ;;
|
|
4046 |
@@ -3418,11 +3465,11 @@
|
|
4047 |
fi
|
|
4048 |
|
|
4049 |
# Eliminate all temporary directories.
|
|
4050 |
- for path in $notinst_path; do
|
|
4051 |
- lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
|
|
4052 |
- deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
|
|
4053 |
- dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
|
|
4054 |
- done
|
|
4055 |
+ #for path in $notinst_path; do
|
|
4056 |
+ # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
|
|
4057 |
+ # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
|
|
4058 |
+ # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
|
|
4059 |
+ #done
|
|
4060 |
|
|
4061 |
if test -n "$xrpath"; then
|
|
4062 |
# If the user specified any rpath flags, then add them.
|
|
4063 |
@@ -3523,13 +3570,12 @@
|
|
4064 |
int main() { return 0; }
|
|
4065 |
EOF
|
|
4066 |
$rm conftest
|
|
4067 |
- $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
|
|
4068 |
- if test "$?" -eq 0 ; then
|
|
4069 |
+ if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
|
|
4070 |
ldd_output=`ldd conftest`
|
|
4071 |
for i in $deplibs; do
|
|
4072 |
name=`expr $i : '-l\(.*\)'`
|
|
4073 |
# If $name is empty we are operating on a -L argument.
|
|
4074 |
- if test "$name" != "" && test "$name" -ne "0"; then
|
|
4075 |
+ if test "$name" != "" && test "$name" != "0"; then
|
|
4076 |
if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
|
|
4077 |
case " $predeps $postdeps " in
|
|
4078 |
*" $i "*)
|
|
4079 |
@@ -3568,9 +3614,7 @@
|
|
4080 |
# If $name is empty we are operating on a -L argument.
|
|
4081 |
if test "$name" != "" && test "$name" != "0"; then
|
|
4082 |
$rm conftest
|
|
4083 |
- $LTCC $LTCFLAGS -o conftest conftest.c $i
|
|
4084 |
- # Did it work?
|
|
4085 |
- if test "$?" -eq 0 ; then
|
|
4086 |
+ if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
|
|
4087 |
ldd_output=`ldd conftest`
|
|
4088 |
if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
|
|
4089 |
case " $predeps $postdeps " in
|
|
4090 |
@@ -3602,7 +3646,7 @@
|
|
4091 |
droppeddeps=yes
|
|
4092 |
$echo
|
|
4093 |
$echo "*** Warning! Library $i is needed by this library but I was not able to"
|
|
4094 |
- $echo "*** make it link in! You will probably need to install it or some"
|
|
4095 |
+ $echo "*** make it link in! You will probably need to install it or some"
|
|
4096 |
$echo "*** library that it depends on before this library will be fully"
|
|
4097 |
$echo "*** functional. Installing it before continuing would be even better."
|
|
4098 |
fi
|
|
4099 |
@@ -3888,7 +3932,10 @@
|
|
4100 |
test -n "$hardcode_libdirs"; then
|
|
4101 |
libdir="$hardcode_libdirs"
|
|
4102 |
if test -n "$hardcode_libdir_flag_spec_ld"; then
|
|
4103 |
- eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
|
|
4104 |
+ case $archive_cmds in
|
|
4105 |
+ *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
|
|
4106 |
+ *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
|
|
4107 |
+ esac
|
|
4108 |
else
|
|
4109 |
eval dep_rpath=\"$hardcode_libdir_flag_spec\"
|
|
4110 |
fi
|
|
4111 |
@@ -4247,12 +4294,14 @@
|
|
4112 |
reload_conv_objs=
|
|
4113 |
gentop=
|
|
4114 |
# reload_cmds runs $LD directly, so let us get rid of
|
|
4115 |
- # -Wl from whole_archive_flag_spec
|
|
4116 |
+ # -Wl from whole_archive_flag_spec and hope we can get by with
|
|
4117 |
+ # turning comma into space..
|
|
4118 |
wl=
|
|
4119 |
|
|
4120 |
if test -n "$convenience"; then
|
|
4121 |
if test -n "$whole_archive_flag_spec"; then
|
|
4122 |
- eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
|
|
4123 |
+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
|
|
4124 |
+ reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
|
|
4125 |
else
|
|
4126 |
gentop="$output_objdir/${obj}x"
|
|
4127 |
generated="$generated $gentop"
|
|
4128 |
@@ -4700,16 +4749,16 @@
|
|
4129 |
case $host in
|
|
4130 |
*cygwin* | *mingw* )
|
|
4131 |
if test -f "$output_objdir/${outputname}.def" ; then
|
|
4132 |
- compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
|
|
4133 |
- finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
|
|
4134 |
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
|
|
4135 |
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
|
|
4136 |
else
|
|
4137 |
- compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
|
|
4138 |
- finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
|
|
4139 |
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
|
|
4140 |
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
|
|
4141 |
fi
|
|
4142 |
;;
|
|
4143 |
* )
|
|
4144 |
- compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
|
|
4145 |
- finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
|
|
4146 |
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
|
|
4147 |
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
|
|
4148 |
;;
|
|
4149 |
esac
|
|
4150 |
;;
|
|
4151 |
@@ -4724,13 +4773,13 @@
|
|
4152 |
# really was required.
|
|
4153 |
|
|
4154 |
# Nullify the symbol file.
|
|
4155 |
- compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
|
|
4156 |
- finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
|
|
4157 |
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
|
|
4158 |
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
|
|
4159 |
fi
|
|
4160 |
|
|
4161 |
if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
|
|
4162 |
# Replace the output file specification.
|
|
4163 |
- compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
|
|
4164 |
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
|
|
4165 |
link_command="$compile_command$compile_rpath"
|
|
4166 |
|
|
4167 |
# We have no uninstalled library dependencies, so finalize right now.
|
|
4168 |
@@ -4817,7 +4866,7 @@
|
|
4169 |
if test "$fast_install" != no; then
|
|
4170 |
link_command="$finalize_var$compile_command$finalize_rpath"
|
|
4171 |
if test "$fast_install" = yes; then
|
|
4172 |
- relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
|
|
4173 |
+ relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
|
|
4174 |
else
|
|
4175 |
# fast_install is set to needless
|
|
4176 |
relink_command=
|
|
4177 |
@@ -4854,7 +4903,7 @@
|
|
4178 |
fi
|
|
4179 |
done
|
|
4180 |
relink_command="(cd `pwd`; $relink_command)"
|
|
4181 |
- relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
|
|
4182 |
+ relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
|
|
4183 |
fi
|
|
4184 |
|
|
4185 |
# Quote $echo for shipping.
|
|
4186 |
@@ -5261,6 +5310,20 @@
|
|
4187 |
Xsed='${SED} -e 1s/^X//'
|
|
4188 |
sed_quote_subst='$sed_quote_subst'
|
|
4189 |
|
|
4190 |
+# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
|
|
4191 |
+if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
|
|
4192 |
+ emulate sh
|
|
4193 |
+ NULLCMD=:
|
|
4194 |
+ # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
|
|
4195 |
+ # is contrary to our usage. Disable this feature.
|
|
4196 |
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
|
4197 |
+ setopt NO_GLOB_SUBST
|
|
4198 |
+else
|
|
4199 |
+ case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
|
|
4200 |
+fi
|
|
4201 |
+BIN_SH=xpg4; export BIN_SH # for Tru64
|
|
4202 |
+DUALCASE=1; export DUALCASE # for MKS sh
|
|
4203 |
+
|
|
4204 |
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
|
4205 |
# if CDPATH is set.
|
|
4206 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
4207 |
@@ -5403,7 +5466,7 @@
|
|
4208 |
;;
|
|
4209 |
esac
|
|
4210 |
$echo >> $output "\
|
|
4211 |
- \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
|
|
4212 |
+ \$echo \"\$0: cannot exec \$program \$*\"
|
|
4213 |
exit $EXIT_FAILURE
|
|
4214 |
fi
|
|
4215 |
else
|
|
4216 |
@@ -5589,7 +5652,7 @@
|
|
4217 |
done
|
|
4218 |
# Quote the link command for shipping.
|
|
4219 |
relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
|
|
4220 |
- relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
|
|
4221 |
+ relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
|
|
4222 |
if test "$hardcode_automatic" = yes ; then
|
|
4223 |
relink_command=
|
|
4224 |
fi
|
|
4225 |
@@ -5934,9 +5997,9 @@
|
|
4226 |
|
|
4227 |
if test -n "$inst_prefix_dir"; then
|
|
4228 |
# Stick the inst_prefix_dir data into the link command.
|
|
4229 |
- relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
|
|
4230 |
+ relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
|
|
4231 |
else
|
|
4232 |
- relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
|
|
4233 |
+ relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
|
|
4234 |
fi
|
|
4235 |
|
|
4236 |
$echo "$modename: warning: relinking \`$file'" 1>&2
|
|
4237 |
@@ -6145,7 +6208,7 @@
|
|
4238 |
file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
|
|
4239 |
outputname="$tmpdir/$file"
|
|
4240 |
# Replace the output file specification.
|
|
4241 |
- relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
|
|
4242 |
+ relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
|
|
4243 |
|
|
4244 |
$show "$relink_command"
|
|
4245 |
if $run eval "$relink_command"; then :
|
|
4246 |
@@ -6356,8 +6419,10 @@
|
|
4247 |
if test -f "$dir/$objdir/$dlname"; then
|
|
4248 |
dir="$dir/$objdir"
|
|
4249 |
else
|
|
4250 |
- $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
|
|
4251 |
- exit $EXIT_FAILURE
|
|
4252 |
+ if test ! -f "$dir/$dlname"; then
|
|
4253 |
+ $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
|
|
4254 |
+ exit $EXIT_FAILURE
|
|
4255 |
+ fi
|
|
4256 |
fi
|
|
4257 |
;;
|
|
4258 |
|
|
4259 |
@@ -6421,12 +6486,12 @@
|
|
4260 |
fi
|
|
4261 |
|
|
4262 |
# Restore saved environment variables
|
|
4263 |
- if test "${save_LC_ALL+set}" = set; then
|
|
4264 |
- LC_ALL="$save_LC_ALL"; export LC_ALL
|
16703 | 4265 |
- fi
|
16704 | |
- fi
|
16705 | |
-])
|
16706 | |
- if test "$have_gtk_doc" != yes; then
|
16707 | |
- enable_gtk_doc=no
|
16708 | |
- fi
|
16709 | |
+ ifelse([$1],[],
|
16710 | |
+ [PKG_CHECK_EXISTS([gtk-doc],,
|
16711 | |
+ AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
|
16712 | |
+ [PKG_CHECK_EXISTS([gtk-doc >= $1],,
|
16713 | |
+ AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
|
16714 | |
fi
|
16715 | |
|
16716 | |
+ AC_MSG_CHECKING([whether to build gtk-doc documentation])
|
16717 | |
+ AC_MSG_RESULT($enable_gtk_doc)
|
16718 | |
+
|
16719 | |
+ AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
|
16720 | |
+
|
16721 | |
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
|
16722 | |
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
|
16723 | |
])
|
16724 | |
diff -Naur epiphany-browser-2.20.1.old/Makefile.in epiphany-browser-2.20.1/Makefile.in
|
16725 | |
--- epiphany-browser-2.20.1.old/Makefile.in 2007-09-28 22:34:00.000000000 +0200
|
16726 | |
+++ epiphany-browser-2.20.1/Makefile.in 2007-11-01 07:06:55.000000000 +0100
|
16727 | |
@@ -140,6 +140,7 @@
|
16728 | |
GMOFILES = @GMOFILES@
|
16729 | |
GMSGFMT = @GMSGFMT@
|
16730 | |
GREP = @GREP@
|
16731 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16732 | |
HELP_DIR = @HELP_DIR@
|
16733 | |
HTML_DIR = @HTML_DIR@
|
16734 | |
INSTALL = @INSTALL@
|
16735 | |
diff -Naur epiphany-browser-2.20.1.old/plugins/desktop-file/Makefile.in epiphany-browser-2.20.1/plugins/desktop-file/Makefile.in
|
16736 | |
--- epiphany-browser-2.20.1.old/plugins/desktop-file/Makefile.in 2007-11-01 07:02:49.000000000 +0100
|
16737 | |
+++ epiphany-browser-2.20.1/plugins/desktop-file/Makefile.in 2007-11-01 07:06:54.000000000 +0100
|
16738 | |
@@ -147,6 +147,7 @@
|
16739 | |
GMOFILES = @GMOFILES@
|
16740 | |
GMSGFMT = @GMSGFMT@
|
16741 | |
GREP = @GREP@
|
16742 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16743 | |
HELP_DIR = @HELP_DIR@
|
16744 | |
HTML_DIR = @HTML_DIR@
|
16745 | |
INSTALL = @INSTALL@
|
16746 | |
diff -Naur epiphany-browser-2.20.1.old/plugins/Makefile.in epiphany-browser-2.20.1/plugins/Makefile.in
|
16747 | |
--- epiphany-browser-2.20.1.old/plugins/Makefile.in 2007-09-28 22:33:59.000000000 +0200
|
16748 | |
+++ epiphany-browser-2.20.1/plugins/Makefile.in 2007-11-01 07:06:54.000000000 +0100
|
16749 | |
@@ -125,6 +125,7 @@
|
16750 | |
GMOFILES = @GMOFILES@
|
16751 | |
GMSGFMT = @GMSGFMT@
|
16752 | |
GREP = @GREP@
|
16753 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16754 | |
HELP_DIR = @HELP_DIR@
|
16755 | |
HTML_DIR = @HTML_DIR@
|
16756 | |
INSTALL = @INSTALL@
|
16757 | |
diff -Naur epiphany-browser-2.20.1.old/src/bookmarks/Makefile.in epiphany-browser-2.20.1/src/bookmarks/Makefile.in
|
16758 | |
--- epiphany-browser-2.20.1.old/src/bookmarks/Makefile.in 2007-09-28 22:34:00.000000000 +0200
|
16759 | |
+++ epiphany-browser-2.20.1/src/bookmarks/Makefile.in 2007-11-01 07:06:55.000000000 +0100
|
16760 | |
@@ -171,6 +171,7 @@
|
16761 | |
GMOFILES = @GMOFILES@
|
16762 | |
GMSGFMT = @GMSGFMT@
|
16763 | |
GREP = @GREP@
|
16764 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16765 | |
HELP_DIR = @HELP_DIR@
|
16766 | |
HTML_DIR = @HTML_DIR@
|
16767 | |
INSTALL = @INSTALL@
|
16768 | |
diff -Naur epiphany-browser-2.20.1.old/src/Makefile.in epiphany-browser-2.20.1/src/Makefile.in
|
16769 | |
--- epiphany-browser-2.20.1.old/src/Makefile.in 2007-11-01 07:02:49.000000000 +0100
|
16770 | |
+++ epiphany-browser-2.20.1/src/Makefile.in 2007-11-01 07:06:55.000000000 +0100
|
16771 | |
@@ -317,6 +317,7 @@
|
16772 | |
GMOFILES = @GMOFILES@
|
16773 | |
GMSGFMT = @GMSGFMT@
|
16774 | |
GREP = @GREP@
|
16775 | |
+GTKDOC_CHECK = @GTKDOC_CHECK@
|
16776 | |
HELP_DIR = @HELP_DIR@
|
16777 | |
HTML_DIR = @HTML_DIR@
|
16778 | |
INSTALL = @INSTALL@
|
|
4266 |
- if test "${save_LANG+set}" = set; then
|
|
4267 |
- LANG="$save_LANG"; export LANG
|
|
4268 |
- fi
|
|
4269 |
+ for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
|
|
4270 |
+ do
|
|
4271 |
+ eval "if test \"\${save_$lt_var+set}\" = set; then
|
|
4272 |
+ $lt_var=\$save_$lt_var; export $lt_var
|
|
4273 |
+ fi"
|
|
4274 |
+ done
|
|
4275 |
|
|
4276 |
# Now prepare to actually exec the command.
|
|
4277 |
exec_cmd="\$cmd$args"
|
|
4278 |
@@ -6783,9 +6848,9 @@
|
|
4279 |
-dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
|
|
4280 |
-export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
|
|
4281 |
-export-symbols SYMFILE
|
|
4282 |
- try to export only the symbols listed in SYMFILE
|
|
4283 |
+ try to export only the symbols listed in SYMFILE
|
|
4284 |
-export-symbols-regex REGEX
|
|
4285 |
- try to export only the symbols matching REGEX
|
|
4286 |
+ try to export only the symbols matching REGEX
|
|
4287 |
-LLIBDIR search LIBDIR for required installed libraries
|
|
4288 |
-lNAME OUTPUT-FILE requires the installed library libNAME
|
|
4289 |
-module build a library that can dlopened
|
|
4290 |
@@ -6799,9 +6864,11 @@
|
|
4291 |
-release RELEASE specify package release information
|
|
4292 |
-rpath LIBDIR the created library will eventually be installed in LIBDIR
|
|
4293 |
-R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
|
|
4294 |
- -static do not do any dynamic linking of libtool libraries
|
|
4295 |
+ -static do not do any dynamic linking of uninstalled libtool libraries
|
|
4296 |
+ -static-libtool-libs
|
|
4297 |
+ do not do any dynamic linking of libtool libraries
|
|
4298 |
-version-info CURRENT[:REVISION[:AGE]]
|
|
4299 |
- specify library version info [each variable defaults to 0]
|
|
4300 |
+ specify library version info [each variable defaults to 0]
|
|
4301 |
|
|
4302 |
All other options (arguments beginning with \`-') are ignored.
|
|
4303 |
|
|
4304 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/Makefile.in epiphany-browser-2.20.2/Makefile.in
|
|
4305 |
--- epiphany-browser-2.20.2.old/Makefile.in 2007-11-27 00:37:43.000000000 +0100
|
|
4306 |
+++ epiphany-browser-2.20.2/Makefile.in 2007-12-01 17:49:06.000000000 +0100
|
|
4307 |
@@ -216,6 +216,7 @@
|
|
4308 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
4309 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
4310 |
RANLIB = @RANLIB@
|
|
4311 |
+SED = @SED@
|
|
4312 |
SET_MAKE = @SET_MAKE@
|
|
4313 |
SHELL = @SHELL@
|
|
4314 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
4315 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/plugins/desktop-file/Makefile.in epiphany-browser-2.20.2/plugins/desktop-file/Makefile.in
|
|
4316 |
--- epiphany-browser-2.20.2.old/plugins/desktop-file/Makefile.in 2007-12-01 17:47:23.000000000 +0100
|
|
4317 |
+++ epiphany-browser-2.20.2/plugins/desktop-file/Makefile.in 2007-12-01 17:49:05.000000000 +0100
|
|
4318 |
@@ -223,6 +223,7 @@
|
|
4319 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
4320 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
4321 |
RANLIB = @RANLIB@
|
|
4322 |
+SED = @SED@
|
|
4323 |
SET_MAKE = @SET_MAKE@
|
|
4324 |
SHELL = @SHELL@
|
|
4325 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
4326 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/plugins/Makefile.in epiphany-browser-2.20.2/plugins/Makefile.in
|
|
4327 |
--- epiphany-browser-2.20.2.old/plugins/Makefile.in 2007-11-27 00:37:41.000000000 +0100
|
|
4328 |
+++ epiphany-browser-2.20.2/plugins/Makefile.in 2007-12-01 17:49:05.000000000 +0100
|
|
4329 |
@@ -201,6 +201,7 @@
|
|
4330 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
4331 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
4332 |
RANLIB = @RANLIB@
|
|
4333 |
+SED = @SED@
|
|
4334 |
SET_MAKE = @SET_MAKE@
|
|
4335 |
SHELL = @SHELL@
|
|
4336 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
4337 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/src/bookmarks/Makefile.in epiphany-browser-2.20.2/src/bookmarks/Makefile.in
|
|
4338 |
--- epiphany-browser-2.20.2.old/src/bookmarks/Makefile.in 2007-11-27 00:37:43.000000000 +0100
|
|
4339 |
+++ epiphany-browser-2.20.2/src/bookmarks/Makefile.in 2007-12-01 17:49:06.000000000 +0100
|
|
4340 |
@@ -247,6 +247,7 @@
|
|
4341 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
4342 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
4343 |
RANLIB = @RANLIB@
|
|
4344 |
+SED = @SED@
|
|
4345 |
SET_MAKE = @SET_MAKE@
|
|
4346 |
SHELL = @SHELL@
|
|
4347 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|
|
4348 |
diff -x'*config.sub' -x'*config.guess' -Naur epiphany-browser-2.20.2.old/src/Makefile.in epiphany-browser-2.20.2/src/Makefile.in
|
|
4349 |
--- epiphany-browser-2.20.2.old/src/Makefile.in 2007-12-01 17:47:23.000000000 +0100
|
|
4350 |
+++ epiphany-browser-2.20.2/src/Makefile.in 2007-12-01 17:49:06.000000000 +0100
|
|
4351 |
@@ -393,6 +393,7 @@
|
|
4352 |
PYTHON_PREFIX = @PYTHON_PREFIX@
|
|
4353 |
PYTHON_VERSION = @PYTHON_VERSION@
|
|
4354 |
RANLIB = @RANLIB@
|
|
4355 |
+SED = @SED@
|
|
4356 |
SET_MAKE = @SET_MAKE@
|
|
4357 |
SHELL = @SHELL@
|
|
4358 |
SPELLCHECKER_CFLAGS = @SPELLCHECKER_CFLAGS@
|