slouken@3342
|
1 |
##############################################################################
|
slouken@3342
|
2 |
# Based on libtool-2.2.6a
|
slouken@3342
|
3 |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
slouken@3342
|
4 |
#
|
slouken@3342
|
5 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
slouken@3342
|
6 |
# 2006, 2007, 2008 Free Software Foundation, Inc.
|
slouken@3342
|
7 |
# Written by Gordon Matzigkeit, 1996
|
slouken@3342
|
8 |
#
|
slouken@3342
|
9 |
# This file is free software; the Free Software Foundation gives
|
slouken@3342
|
10 |
# unlimited permission to copy and/or distribute it, with or without
|
slouken@3342
|
11 |
# modifications, as long as this notice is preserved.
|
slouken@3342
|
12 |
|
slouken@3342
|
13 |
m4_define([_LT_COPYING], [dnl
|
slouken@3342
|
14 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
slouken@3342
|
15 |
# 2006, 2007, 2008 Free Software Foundation, Inc.
|
slouken@3342
|
16 |
# Written by Gordon Matzigkeit, 1996
|
slouken@3342
|
17 |
#
|
slouken@3342
|
18 |
# This file is part of GNU Libtool.
|
slouken@3342
|
19 |
#
|
slouken@3342
|
20 |
# GNU Libtool is free software; you can redistribute it and/or
|
slouken@3342
|
21 |
# modify it under the terms of the GNU General Public License as
|
slouken@3342
|
22 |
# published by the Free Software Foundation; either version 2 of
|
slouken@3342
|
23 |
# the License, or (at your option) any later version.
|
slouken@3342
|
24 |
#
|
slouken@3342
|
25 |
# As a special exception to the GNU General Public License,
|
slouken@3342
|
26 |
# if you distribute this file as part of a program or library that
|
slouken@3342
|
27 |
# is built using GNU Libtool, you may include this file under the
|
slouken@3342
|
28 |
# same distribution terms that you use for the rest of that program.
|
slouken@3342
|
29 |
#
|
slouken@3342
|
30 |
# GNU Libtool is distributed in the hope that it will be useful,
|
slouken@3342
|
31 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
slouken@3342
|
32 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
slouken@3342
|
33 |
# GNU General Public License for more details.
|
slouken@3342
|
34 |
#
|
slouken@3342
|
35 |
# You should have received a copy of the GNU General Public License
|
slouken@3342
|
36 |
# along with GNU Libtool; see the file COPYING. If not, a copy
|
slouken@3342
|
37 |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
|
slouken@3342
|
38 |
# obtained by writing to the Free Software Foundation, Inc.,
|
slouken@3342
|
39 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
slouken@3342
|
40 |
])
|
slouken@3342
|
41 |
|
slouken@3342
|
42 |
# serial 56 LT_INIT
|
slouken@3342
|
43 |
|
slouken@3342
|
44 |
|
slouken@3342
|
45 |
# LT_PREREQ(VERSION)
|
slouken@3342
|
46 |
# ------------------
|
slouken@3342
|
47 |
# Complain and exit if this libtool version is less that VERSION.
|
slouken@3342
|
48 |
m4_defun([LT_PREREQ],
|
slouken@3342
|
49 |
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
|
slouken@3342
|
50 |
[m4_default([$3],
|
slouken@3342
|
51 |
[m4_fatal([Libtool version $1 or higher is required],
|
slouken@3342
|
52 |
63)])],
|
slouken@3342
|
53 |
[$2])])
|
slouken@3342
|
54 |
|
slouken@3342
|
55 |
|
slouken@3342
|
56 |
# _LT_CHECK_BUILDDIR
|
slouken@3342
|
57 |
# ------------------
|
slouken@3342
|
58 |
# Complain if the absolute build directory name contains unusual characters
|
slouken@3342
|
59 |
m4_defun([_LT_CHECK_BUILDDIR],
|
slouken@3342
|
60 |
[case `pwd` in
|
slouken@3342
|
61 |
*\ * | *\ *)
|
slouken@3342
|
62 |
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
|
slouken@3342
|
63 |
esac
|
slouken@3342
|
64 |
])
|
slouken@3342
|
65 |
|
slouken@3342
|
66 |
|
slouken@3342
|
67 |
# LT_INIT([OPTIONS])
|
slouken@3342
|
68 |
# ------------------
|
slouken@3342
|
69 |
AC_DEFUN([LT_INIT],
|
slouken@3342
|
70 |
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
|
slouken@3342
|
71 |
AC_BEFORE([$0], [LT_LANG])dnl
|
slouken@3342
|
72 |
AC_BEFORE([$0], [LT_OUTPUT])dnl
|
slouken@3342
|
73 |
AC_BEFORE([$0], [LTDL_INIT])dnl
|
slouken@3342
|
74 |
m4_require([_LT_CHECK_BUILDDIR])dnl
|
slouken@3342
|
75 |
|
slouken@3342
|
76 |
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
|
slouken@3342
|
77 |
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
|
slouken@3342
|
78 |
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
|
slouken@3342
|
79 |
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
|
slouken@3342
|
80 |
dnl unless we require an AC_DEFUNed macro:
|
slouken@3342
|
81 |
AC_REQUIRE([LTOPTIONS_VERSION])dnl
|
slouken@3342
|
82 |
AC_REQUIRE([LTSUGAR_VERSION])dnl
|
slouken@3342
|
83 |
AC_REQUIRE([LTVERSION_VERSION])dnl
|
slouken@3342
|
84 |
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
|
slouken@3342
|
85 |
m4_require([_LT_PROG_LTMAIN])dnl
|
slouken@3342
|
86 |
|
slouken@3342
|
87 |
dnl Parse OPTIONS
|
slouken@3342
|
88 |
_LT_SET_OPTIONS([$0], [$1])
|
slouken@3342
|
89 |
|
slouken@3342
|
90 |
# This can be used to rebuild libtool when needed
|
slouken@3342
|
91 |
LIBTOOL_DEPS="$ltmain"
|
slouken@3342
|
92 |
|
slouken@3342
|
93 |
# Always use our own libtool.
|
slouken@3342
|
94 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
slouken@3342
|
95 |
AC_SUBST(LIBTOOL)dnl
|
slouken@3342
|
96 |
|
slouken@3342
|
97 |
_LT_SETUP
|
slouken@3342
|
98 |
|
slouken@3342
|
99 |
# Only expand once:
|
slouken@3342
|
100 |
m4_define([LT_INIT])
|
slouken@3342
|
101 |
])# LT_INIT
|
slouken@3342
|
102 |
|
slouken@3342
|
103 |
# Old names:
|
slouken@3342
|
104 |
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
|
slouken@3342
|
105 |
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
|
slouken@3342
|
106 |
dnl aclocal-1.4 backwards compatibility:
|
slouken@3342
|
107 |
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
|
slouken@3342
|
108 |
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
|
slouken@3342
|
109 |
|
slouken@3342
|
110 |
|
slouken@3342
|
111 |
# _LT_CC_BASENAME(CC)
|
slouken@3342
|
112 |
# -------------------
|
slouken@3342
|
113 |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
slouken@3342
|
114 |
m4_defun([_LT_CC_BASENAME],
|
slouken@3342
|
115 |
[for cc_temp in $1""; do
|
slouken@3342
|
116 |
case $cc_temp in
|
slouken@3342
|
117 |
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
|
slouken@3342
|
118 |
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
|
slouken@3342
|
119 |
\-*) ;;
|
slouken@3342
|
120 |
*) break;;
|
slouken@3342
|
121 |
esac
|
slouken@3342
|
122 |
done
|
slouken@3342
|
123 |
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
slouken@3342
|
124 |
])
|
slouken@3342
|
125 |
|
slouken@3342
|
126 |
|
slouken@3342
|
127 |
# _LT_FILEUTILS_DEFAULTS
|
slouken@3342
|
128 |
# ----------------------
|
slouken@3342
|
129 |
# It is okay to use these file commands and assume they have been set
|
slouken@3342
|
130 |
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
|
slouken@3342
|
131 |
m4_defun([_LT_FILEUTILS_DEFAULTS],
|
slouken@3342
|
132 |
[: ${CP="cp -f"}
|
slouken@3342
|
133 |
: ${MV="mv -f"}
|
slouken@3342
|
134 |
: ${RM="rm -f"}
|
slouken@3342
|
135 |
])# _LT_FILEUTILS_DEFAULTS
|
slouken@3342
|
136 |
|
slouken@3342
|
137 |
|
slouken@3342
|
138 |
# _LT_SETUP
|
slouken@3342
|
139 |
# ---------
|
slouken@3342
|
140 |
m4_defun([_LT_SETUP],
|
slouken@3342
|
141 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
slouken@3342
|
142 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
slouken@3342
|
143 |
_LT_DECL([], [host_alias], [0], [The host system])dnl
|
slouken@3342
|
144 |
_LT_DECL([], [host], [0])dnl
|
slouken@3342
|
145 |
_LT_DECL([], [host_os], [0])dnl
|
slouken@3342
|
146 |
dnl
|
slouken@3342
|
147 |
_LT_DECL([], [build_alias], [0], [The build system])dnl
|
slouken@3342
|
148 |
_LT_DECL([], [build], [0])dnl
|
slouken@3342
|
149 |
_LT_DECL([], [build_os], [0])dnl
|
slouken@3342
|
150 |
dnl
|
slouken@3342
|
151 |
AC_REQUIRE([AC_PROG_CC])dnl
|
slouken@3342
|
152 |
AC_REQUIRE([LT_PATH_LD])dnl
|
slouken@3342
|
153 |
AC_REQUIRE([LT_PATH_NM])dnl
|
slouken@3342
|
154 |
dnl
|
slouken@3342
|
155 |
AC_REQUIRE([AC_PROG_LN_S])dnl
|
slouken@3342
|
156 |
test -z "$LN_S" && LN_S="ln -s"
|
slouken@3342
|
157 |
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
|
slouken@3342
|
158 |
dnl
|
slouken@3342
|
159 |
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
|
slouken@3342
|
160 |
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
|
slouken@3342
|
161 |
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
|
slouken@3342
|
162 |
dnl
|
slouken@3342
|
163 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
slouken@3342
|
164 |
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
slouken@3342
|
165 |
m4_require([_LT_CMD_RELOAD])dnl
|
slouken@3342
|
166 |
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
|
slouken@3342
|
167 |
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
|
slouken@3342
|
168 |
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
slouken@3342
|
169 |
|
slouken@3342
|
170 |
_LT_CONFIG_LIBTOOL_INIT([
|
slouken@3342
|
171 |
# See if we are running on zsh, and set the options which allow our
|
slouken@3342
|
172 |
# commands through without removal of \ escapes INIT.
|
slouken@3342
|
173 |
if test -n "\${ZSH_VERSION+set}" ; then
|
slouken@3342
|
174 |
setopt NO_GLOB_SUBST
|
slouken@3342
|
175 |
fi
|
slouken@3342
|
176 |
])
|
slouken@3342
|
177 |
if test -n "${ZSH_VERSION+set}" ; then
|
slouken@3342
|
178 |
setopt NO_GLOB_SUBST
|
slouken@3342
|
179 |
fi
|
slouken@3342
|
180 |
|
slouken@3342
|
181 |
_LT_CHECK_OBJDIR
|
slouken@3342
|
182 |
|
slouken@3342
|
183 |
m4_require([_LT_TAG_COMPILER])dnl
|
slouken@3342
|
184 |
_LT_PROG_ECHO_BACKSLASH
|
slouken@3342
|
185 |
|
slouken@3342
|
186 |
case $host_os in
|
slouken@3342
|
187 |
aix3*)
|
slouken@3342
|
188 |
# AIX sometimes has problems with the GCC collect2 program. For some
|
slouken@3342
|
189 |
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
slouken@3342
|
190 |
# vanish in a puff of smoke.
|
slouken@3342
|
191 |
if test "X${COLLECT_NAMES+set}" != Xset; then
|
slouken@3342
|
192 |
COLLECT_NAMES=
|
slouken@3342
|
193 |
export COLLECT_NAMES
|
slouken@3342
|
194 |
fi
|
slouken@3342
|
195 |
;;
|
slouken@3342
|
196 |
esac
|
slouken@3342
|
197 |
|
slouken@3342
|
198 |
# Sed substitution that helps us do robust quoting. It backslashifies
|
slouken@3342
|
199 |
# metacharacters that are still active within double-quoted strings.
|
slouken@3342
|
200 |
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
|
slouken@3342
|
201 |
|
slouken@3342
|
202 |
# Same as above, but do not quote variable references.
|
slouken@3342
|
203 |
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
|
slouken@3342
|
204 |
|
slouken@3342
|
205 |
# Sed substitution to delay expansion of an escaped shell variable in a
|
slouken@3342
|
206 |
# double_quote_subst'ed string.
|
slouken@3342
|
207 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
slouken@3342
|
208 |
|
slouken@3342
|
209 |
# Sed substitution to delay expansion of an escaped single quote.
|
slouken@3342
|
210 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
slouken@3342
|
211 |
|
slouken@3342
|
212 |
# Sed substitution to avoid accidental globbing in evaled expressions
|
slouken@3342
|
213 |
no_glob_subst='s/\*/\\\*/g'
|
slouken@3342
|
214 |
|
slouken@3342
|
215 |
# Global variables:
|
slouken@3342
|
216 |
ofile=libtool
|
slouken@3342
|
217 |
can_build_shared=yes
|
slouken@3342
|
218 |
|
slouken@3342
|
219 |
# All known linkers require a `.a' archive for static linking (except MSVC,
|
slouken@3342
|
220 |
# which needs '.lib').
|
slouken@3342
|
221 |
libext=a
|
slouken@3342
|
222 |
|
slouken@3342
|
223 |
with_gnu_ld="$lt_cv_prog_gnu_ld"
|
slouken@3342
|
224 |
|
slouken@3342
|
225 |
old_CC="$CC"
|
slouken@3342
|
226 |
old_CFLAGS="$CFLAGS"
|
slouken@3342
|
227 |
|
slouken@3342
|
228 |
# Set sane defaults for various variables
|
slouken@3342
|
229 |
test -z "$CC" && CC=cc
|
slouken@3342
|
230 |
test -z "$LTCC" && LTCC=$CC
|
slouken@3342
|
231 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
slouken@3342
|
232 |
test -z "$LD" && LD=ld
|
slouken@3342
|
233 |
test -z "$ac_objext" && ac_objext=o
|
slouken@3342
|
234 |
|
slouken@3342
|
235 |
_LT_CC_BASENAME([$compiler])
|
slouken@3342
|
236 |
|
slouken@3342
|
237 |
# Only perform the check for file, if the check method requires it
|
slouken@3342
|
238 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
slouken@3342
|
239 |
case $deplibs_check_method in
|
slouken@3342
|
240 |
file_magic*)
|
slouken@3342
|
241 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
slouken@3342
|
242 |
_LT_PATH_MAGIC
|
slouken@3342
|
243 |
fi
|
slouken@3342
|
244 |
;;
|
slouken@3342
|
245 |
esac
|
slouken@3342
|
246 |
|
slouken@3342
|
247 |
# Use C for the default configuration in the libtool script
|
slouken@3342
|
248 |
LT_SUPPORTED_TAG([CC])
|
slouken@3342
|
249 |
_LT_LANG_C_CONFIG
|
slouken@3342
|
250 |
_LT_LANG_DEFAULT_CONFIG
|
slouken@3342
|
251 |
_LT_CONFIG_COMMANDS
|
slouken@3342
|
252 |
])# _LT_SETUP
|
slouken@3342
|
253 |
|
slouken@3342
|
254 |
|
slouken@3342
|
255 |
# _LT_PROG_LTMAIN
|
slouken@3342
|
256 |
# ---------------
|
slouken@3342
|
257 |
# Note that this code is called both from `configure', and `config.status'
|
slouken@3342
|
258 |
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
|
slouken@3342
|
259 |
# `config.status' has no value for ac_aux_dir unless we are using Automake,
|
slouken@3342
|
260 |
# so we pass a copy along to make sure it has a sensible value anyway.
|
slouken@3342
|
261 |
m4_defun([_LT_PROG_LTMAIN],
|
slouken@3342
|
262 |
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
|
slouken@3342
|
263 |
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
|
slouken@3342
|
264 |
ltmain="$ac_aux_dir/ltmain.sh"
|
slouken@3342
|
265 |
])# _LT_PROG_LTMAIN
|
slouken@3342
|
266 |
|
slouken@3342
|
267 |
|
slouken@3342
|
268 |
## ------------------------------------- ##
|
slouken@3342
|
269 |
## Accumulate code for creating libtool. ##
|
slouken@3342
|
270 |
## ------------------------------------- ##
|
slouken@3342
|
271 |
|
slouken@3342
|
272 |
# So that we can recreate a full libtool script including additional
|
slouken@3342
|
273 |
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
|
slouken@3342
|
274 |
# in macros and then make a single call at the end using the `libtool'
|
slouken@3342
|
275 |
# label.
|
slouken@3342
|
276 |
|
slouken@3342
|
277 |
|
slouken@3342
|
278 |
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
|
slouken@3342
|
279 |
# ----------------------------------------
|
slouken@3342
|
280 |
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
slouken@3342
|
281 |
m4_define([_LT_CONFIG_LIBTOOL_INIT],
|
slouken@3342
|
282 |
[m4_ifval([$1],
|
slouken@3342
|
283 |
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
|
slouken@3342
|
284 |
[$1
|
slouken@3342
|
285 |
])])])
|
slouken@3342
|
286 |
|
slouken@3342
|
287 |
# Initialize.
|
slouken@3342
|
288 |
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
|
slouken@3342
|
289 |
|
slouken@3342
|
290 |
|
slouken@3342
|
291 |
# _LT_CONFIG_LIBTOOL([COMMANDS])
|
slouken@3342
|
292 |
# ------------------------------
|
slouken@3342
|
293 |
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
slouken@3342
|
294 |
m4_define([_LT_CONFIG_LIBTOOL],
|
slouken@3342
|
295 |
[m4_ifval([$1],
|
slouken@3342
|
296 |
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
|
slouken@3342
|
297 |
[$1
|
slouken@3342
|
298 |
])])])
|
slouken@3342
|
299 |
|
slouken@3342
|
300 |
# Initialize.
|
slouken@3342
|
301 |
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
|
slouken@3342
|
302 |
|
slouken@3342
|
303 |
|
slouken@3342
|
304 |
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
|
slouken@3342
|
305 |
# -----------------------------------------------------
|
slouken@3342
|
306 |
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
|
slouken@3342
|
307 |
[_LT_CONFIG_LIBTOOL([$1])
|
slouken@3342
|
308 |
_LT_CONFIG_LIBTOOL_INIT([$2])
|
slouken@3342
|
309 |
])
|
slouken@3342
|
310 |
|
slouken@3342
|
311 |
|
slouken@3342
|
312 |
# _LT_FORMAT_COMMENT([COMMENT])
|
slouken@3342
|
313 |
# -----------------------------
|
slouken@3342
|
314 |
# Add leading comment marks to the start of each line, and a trailing
|
slouken@3342
|
315 |
# full-stop to the whole comment if one is not present already.
|
slouken@3342
|
316 |
m4_define([_LT_FORMAT_COMMENT],
|
slouken@3342
|
317 |
[m4_ifval([$1], [
|
slouken@3342
|
318 |
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
|
slouken@3342
|
319 |
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
|
slouken@3342
|
320 |
)])
|
slouken@3342
|
321 |
|
slouken@3342
|
322 |
|
slouken@3342
|
323 |
|
slouken@3342
|
324 |
## ------------------------ ##
|
slouken@3342
|
325 |
## FIXME: Eliminate VARNAME ##
|
slouken@3342
|
326 |
## ------------------------ ##
|
slouken@3342
|
327 |
|
slouken@3342
|
328 |
|
slouken@3342
|
329 |
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
|
slouken@3342
|
330 |
# -------------------------------------------------------------------
|
slouken@3342
|
331 |
# CONFIGNAME is the name given to the value in the libtool script.
|
slouken@3342
|
332 |
# VARNAME is the (base) name used in the configure script.
|
slouken@3342
|
333 |
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
|
slouken@3342
|
334 |
# VARNAME. Any other value will be used directly.
|
slouken@3342
|
335 |
m4_define([_LT_DECL],
|
slouken@3342
|
336 |
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
|
slouken@3342
|
337 |
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
|
slouken@3342
|
338 |
[m4_ifval([$1], [$1], [$2])])
|
slouken@3342
|
339 |
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
|
slouken@3342
|
340 |
m4_ifval([$4],
|
slouken@3342
|
341 |
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
|
slouken@3342
|
342 |
lt_dict_add_subkey([lt_decl_dict], [$2],
|
slouken@3342
|
343 |
[tagged?], [m4_ifval([$5], [yes], [no])])])
|
slouken@3342
|
344 |
])
|
slouken@3342
|
345 |
|
slouken@3342
|
346 |
|
slouken@3342
|
347 |
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
|
slouken@3342
|
348 |
# --------------------------------------------------------
|
slouken@3342
|
349 |
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
|
slouken@3342
|
350 |
|
slouken@3342
|
351 |
|
slouken@3342
|
352 |
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
|
slouken@3342
|
353 |
# ------------------------------------------------
|
slouken@3342
|
354 |
m4_define([lt_decl_tag_varnames],
|
slouken@3342
|
355 |
[_lt_decl_filter([tagged?], [yes], $@)])
|
slouken@3342
|
356 |
|
slouken@3342
|
357 |
|
slouken@3342
|
358 |
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
|
slouken@3342
|
359 |
# ---------------------------------------------------------
|
slouken@3342
|
360 |
m4_define([_lt_decl_filter],
|
slouken@3342
|
361 |
[m4_case([$#],
|
slouken@3342
|
362 |
[0], [m4_fatal([$0: too few arguments: $#])],
|
slouken@3342
|
363 |
[1], [m4_fatal([$0: too few arguments: $#: $1])],
|
slouken@3342
|
364 |
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
|
slouken@3342
|
365 |
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
|
slouken@3342
|
366 |
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
|
slouken@3342
|
367 |
])
|
slouken@3342
|
368 |
|
slouken@3342
|
369 |
|
slouken@3342
|
370 |
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
|
slouken@3342
|
371 |
# --------------------------------------------------
|
slouken@3342
|
372 |
m4_define([lt_decl_quote_varnames],
|
slouken@3342
|
373 |
[_lt_decl_filter([value], [1], $@)])
|
slouken@3342
|
374 |
|
slouken@3342
|
375 |
|
slouken@3342
|
376 |
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
|
slouken@3342
|
377 |
# ---------------------------------------------------
|
slouken@3342
|
378 |
m4_define([lt_decl_dquote_varnames],
|
slouken@3342
|
379 |
[_lt_decl_filter([value], [2], $@)])
|
slouken@3342
|
380 |
|
slouken@3342
|
381 |
|
slouken@3342
|
382 |
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
|
slouken@3342
|
383 |
# ---------------------------------------------------
|
slouken@3342
|
384 |
m4_define([lt_decl_varnames_tagged],
|
slouken@3342
|
385 |
[m4_assert([$# <= 2])dnl
|
slouken@3342
|
386 |
_$0(m4_quote(m4_default([$1], [[, ]])),
|
slouken@3342
|
387 |
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
|
slouken@3342
|
388 |
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
|
slouken@3342
|
389 |
m4_define([_lt_decl_varnames_tagged],
|
slouken@3342
|
390 |
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
|
slouken@3342
|
391 |
|
slouken@3342
|
392 |
|
slouken@3342
|
393 |
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
|
slouken@3342
|
394 |
# ------------------------------------------------
|
slouken@3342
|
395 |
m4_define([lt_decl_all_varnames],
|
slouken@3342
|
396 |
[_$0(m4_quote(m4_default([$1], [[, ]])),
|
slouken@3342
|
397 |
m4_if([$2], [],
|
slouken@3342
|
398 |
m4_quote(lt_decl_varnames),
|
slouken@3342
|
399 |
m4_quote(m4_shift($@))))[]dnl
|
slouken@3342
|
400 |
])
|
slouken@3342
|
401 |
m4_define([_lt_decl_all_varnames],
|
slouken@3342
|
402 |
[lt_join($@, lt_decl_varnames_tagged([$1],
|
slouken@3342
|
403 |
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
|
slouken@3342
|
404 |
])
|
slouken@3342
|
405 |
|
slouken@3342
|
406 |
|
slouken@3342
|
407 |
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
|
slouken@3342
|
408 |
# ------------------------------------
|
slouken@3342
|
409 |
# Quote a variable value, and forward it to `config.status' so that its
|
slouken@3342
|
410 |
# declaration there will have the same value as in `configure'. VARNAME
|
slouken@3342
|
411 |
# must have a single quote delimited value for this to work.
|
slouken@3342
|
412 |
m4_define([_LT_CONFIG_STATUS_DECLARE],
|
slouken@3342
|
413 |
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
|
slouken@3342
|
414 |
|
slouken@3342
|
415 |
|
slouken@3342
|
416 |
# _LT_CONFIG_STATUS_DECLARATIONS
|
slouken@3342
|
417 |
# ------------------------------
|
slouken@3342
|
418 |
# We delimit libtool config variables with single quotes, so when
|
slouken@3342
|
419 |
# we write them to config.status, we have to be sure to quote all
|
slouken@3342
|
420 |
# embedded single quotes properly. In configure, this macro expands
|
slouken@3342
|
421 |
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
|
slouken@3342
|
422 |
#
|
slouken@3342
|
423 |
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
|
slouken@3342
|
424 |
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
|
slouken@3342
|
425 |
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
|
slouken@3342
|
426 |
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
|
slouken@3342
|
427 |
|
slouken@3342
|
428 |
|
slouken@3342
|
429 |
# _LT_LIBTOOL_TAGS
|
slouken@3342
|
430 |
# ----------------
|
slouken@3342
|
431 |
# Output comment and list of tags supported by the script
|
slouken@3342
|
432 |
m4_defun([_LT_LIBTOOL_TAGS],
|
slouken@3342
|
433 |
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
|
slouken@3342
|
434 |
available_tags="_LT_TAGS"dnl
|
slouken@3342
|
435 |
])
|
slouken@3342
|
436 |
|
slouken@3342
|
437 |
|
slouken@3342
|
438 |
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
|
slouken@3342
|
439 |
# -----------------------------------
|
slouken@3342
|
440 |
# Extract the dictionary values for VARNAME (optionally with TAG) and
|
slouken@3342
|
441 |
# expand to a commented shell variable setting:
|
slouken@3342
|
442 |
#
|
slouken@3342
|
443 |
# # Some comment about what VAR is for.
|
slouken@3342
|
444 |
# visible_name=$lt_internal_name
|
slouken@3342
|
445 |
m4_define([_LT_LIBTOOL_DECLARE],
|
slouken@3342
|
446 |
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
|
slouken@3342
|
447 |
[description])))[]dnl
|
slouken@3342
|
448 |
m4_pushdef([_libtool_name],
|
slouken@3342
|
449 |
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
|
slouken@3342
|
450 |
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
|
slouken@3342
|
451 |
[0], [_libtool_name=[$]$1],
|
slouken@3342
|
452 |
[1], [_libtool_name=$lt_[]$1],
|
slouken@3342
|
453 |
[2], [_libtool_name=$lt_[]$1],
|
slouken@3342
|
454 |
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
|
slouken@3342
|
455 |
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
|
slouken@3342
|
456 |
])
|
slouken@3342
|
457 |
|
slouken@3342
|
458 |
|
slouken@3342
|
459 |
# _LT_LIBTOOL_CONFIG_VARS
|
slouken@3342
|
460 |
# -----------------------
|
slouken@3342
|
461 |
# Produce commented declarations of non-tagged libtool config variables
|
slouken@3342
|
462 |
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
|
slouken@3342
|
463 |
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
|
slouken@3342
|
464 |
# section) are produced by _LT_LIBTOOL_TAG_VARS.
|
slouken@3342
|
465 |
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
|
slouken@3342
|
466 |
[m4_foreach([_lt_var],
|
slouken@3342
|
467 |
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
|
slouken@3342
|
468 |
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
|
slouken@3342
|
469 |
|
slouken@3342
|
470 |
|
slouken@3342
|
471 |
# _LT_LIBTOOL_TAG_VARS(TAG)
|
slouken@3342
|
472 |
# -------------------------
|
slouken@3342
|
473 |
m4_define([_LT_LIBTOOL_TAG_VARS],
|
slouken@3342
|
474 |
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
|
slouken@3342
|
475 |
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
|
slouken@3342
|
476 |
|
slouken@3342
|
477 |
|
slouken@3342
|
478 |
# _LT_TAGVAR(VARNAME, [TAGNAME])
|
slouken@3342
|
479 |
# ------------------------------
|
slouken@3342
|
480 |
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
|
slouken@3342
|
481 |
|
slouken@3342
|
482 |
|
slouken@3342
|
483 |
# _LT_CONFIG_COMMANDS
|
slouken@3342
|
484 |
# -------------------
|
slouken@3342
|
485 |
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
|
slouken@3342
|
486 |
# variables for single and double quote escaping we saved from calls
|
slouken@3342
|
487 |
# to _LT_DECL, we can put quote escaped variables declarations
|
slouken@3342
|
488 |
# into `config.status', and then the shell code to quote escape them in
|
slouken@3342
|
489 |
# for loops in `config.status'. Finally, any additional code accumulated
|
slouken@3342
|
490 |
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
|
slouken@3342
|
491 |
m4_defun([_LT_CONFIG_COMMANDS],
|
slouken@3342
|
492 |
[AC_PROVIDE_IFELSE([LT_OUTPUT],
|
slouken@3342
|
493 |
dnl If the libtool generation code has been placed in $CONFIG_LT,
|
slouken@3342
|
494 |
dnl instead of duplicating it all over again into config.status,
|
slouken@3342
|
495 |
dnl then we will have config.status run $CONFIG_LT later, so it
|
slouken@3342
|
496 |
dnl needs to know what name is stored there:
|
slouken@3342
|
497 |
[AC_CONFIG_COMMANDS([libtool],
|
slouken@3342
|
498 |
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
|
slouken@3342
|
499 |
dnl If the libtool generation code is destined for config.status,
|
slouken@3342
|
500 |
dnl expand the accumulated commands and init code now:
|
slouken@3342
|
501 |
[AC_CONFIG_COMMANDS([libtool],
|
slouken@3342
|
502 |
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
|
slouken@3342
|
503 |
])#_LT_CONFIG_COMMANDS
|
slouken@3342
|
504 |
|
slouken@3342
|
505 |
|
slouken@3342
|
506 |
# Initialize.
|
slouken@3342
|
507 |
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
|
slouken@3342
|
508 |
[
|
slouken@3342
|
509 |
|
slouken@3342
|
510 |
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
slouken@3342
|
511 |
# if CDPATH is set.
|
slouken@3342
|
512 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
slouken@3342
|
513 |
|
slouken@3342
|
514 |
sed_quote_subst='$sed_quote_subst'
|
slouken@3342
|
515 |
double_quote_subst='$double_quote_subst'
|
slouken@3342
|
516 |
delay_variable_subst='$delay_variable_subst'
|
slouken@3342
|
517 |
_LT_CONFIG_STATUS_DECLARATIONS
|
slouken@3342
|
518 |
LTCC='$LTCC'
|
slouken@3342
|
519 |
LTCFLAGS='$LTCFLAGS'
|
slouken@3342
|
520 |
compiler='$compiler_DEFAULT'
|
slouken@3342
|
521 |
|
slouken@3342
|
522 |
# Quote evaled strings.
|
slouken@3342
|
523 |
for var in lt_decl_all_varnames([[ \
|
slouken@3342
|
524 |
]], lt_decl_quote_varnames); do
|
slouken@3342
|
525 |
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
|
slouken@3342
|
526 |
*[[\\\\\\\`\\"\\\$]]*)
|
slouken@3342
|
527 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
|
slouken@3342
|
528 |
;;
|
slouken@3342
|
529 |
*)
|
slouken@3342
|
530 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
slouken@3342
|
531 |
;;
|
slouken@3342
|
532 |
esac
|
slouken@3342
|
533 |
done
|
slouken@3342
|
534 |
|
slouken@3342
|
535 |
# Double-quote double-evaled strings.
|
slouken@3342
|
536 |
for var in lt_decl_all_varnames([[ \
|
slouken@3342
|
537 |
]], lt_decl_dquote_varnames); do
|
slouken@3342
|
538 |
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
|
slouken@3342
|
539 |
*[[\\\\\\\`\\"\\\$]]*)
|
slouken@3342
|
540 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
slouken@3342
|
541 |
;;
|
slouken@3342
|
542 |
*)
|
slouken@3342
|
543 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
slouken@3342
|
544 |
;;
|
slouken@3342
|
545 |
esac
|
slouken@3342
|
546 |
done
|
slouken@3342
|
547 |
|
slouken@3342
|
548 |
# Fix-up fallback echo if it was mangled by the above quoting rules.
|
slouken@3342
|
549 |
case \$lt_ECHO in
|
slouken@3342
|
550 |
*'\\\[$]0 --fallback-echo"')dnl "
|
slouken@3342
|
551 |
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
|
slouken@3342
|
552 |
;;
|
slouken@3342
|
553 |
esac
|
slouken@3342
|
554 |
|
slouken@3342
|
555 |
_LT_OUTPUT_LIBTOOL_INIT
|
slouken@3342
|
556 |
])
|
slouken@3342
|
557 |
|
slouken@3342
|
558 |
|
slouken@3342
|
559 |
# LT_OUTPUT
|
slouken@3342
|
560 |
# ---------
|
slouken@3342
|
561 |
# This macro allows early generation of the libtool script (before
|
slouken@3342
|
562 |
# AC_OUTPUT is called), incase it is used in configure for compilation
|
slouken@3342
|
563 |
# tests.
|
slouken@3342
|
564 |
AC_DEFUN([LT_OUTPUT],
|
slouken@3342
|
565 |
[: ${CONFIG_LT=./config.lt}
|
slouken@3342
|
566 |
AC_MSG_NOTICE([creating $CONFIG_LT])
|
slouken@3342
|
567 |
cat >"$CONFIG_LT" <<_LTEOF
|
slouken@3342
|
568 |
#! $SHELL
|
slouken@3342
|
569 |
# Generated by $as_me.
|
slouken@3342
|
570 |
# Run this file to recreate a libtool stub with the current configuration.
|
slouken@3342
|
571 |
|
slouken@3342
|
572 |
lt_cl_silent=false
|
slouken@3342
|
573 |
SHELL=\${CONFIG_SHELL-$SHELL}
|
slouken@3342
|
574 |
_LTEOF
|
slouken@3342
|
575 |
|
slouken@3342
|
576 |
cat >>"$CONFIG_LT" <<\_LTEOF
|
slouken@3342
|
577 |
AS_SHELL_SANITIZE
|
slouken@3342
|
578 |
_AS_PREPARE
|
slouken@3342
|
579 |
|
slouken@3342
|
580 |
exec AS_MESSAGE_FD>&1
|
slouken@3342
|
581 |
exec AS_MESSAGE_LOG_FD>>config.log
|
slouken@3342
|
582 |
{
|
slouken@3342
|
583 |
echo
|
slouken@3342
|
584 |
AS_BOX([Running $as_me.])
|
slouken@3342
|
585 |
} >&AS_MESSAGE_LOG_FD
|
slouken@3342
|
586 |
|
slouken@3342
|
587 |
lt_cl_help="\
|
slouken@3342
|
588 |
\`$as_me' creates a local libtool stub from the current configuration,
|
slouken@3342
|
589 |
for use in further configure time tests before the real libtool is
|
slouken@3342
|
590 |
generated.
|
slouken@3342
|
591 |
|
slouken@3342
|
592 |
Usage: $[0] [[OPTIONS]]
|
slouken@3342
|
593 |
|
slouken@3342
|
594 |
-h, --help print this help, then exit
|
slouken@3342
|
595 |
-V, --version print version number, then exit
|
slouken@3342
|
596 |
-q, --quiet do not print progress messages
|
slouken@3342
|
597 |
-d, --debug don't remove temporary files
|
slouken@3342
|
598 |
|
slouken@3342
|
599 |
Report bugs to <bug-libtool@gnu.org>."
|
slouken@3342
|
600 |
|
slouken@3342
|
601 |
lt_cl_version="\
|
slouken@3342
|
602 |
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
|
slouken@3342
|
603 |
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
|
slouken@3342
|
604 |
configured by $[0], generated by m4_PACKAGE_STRING.
|
slouken@3342
|
605 |
|
slouken@3342
|
606 |
Copyright (C) 2008 Free Software Foundation, Inc.
|
slouken@3342
|
607 |
This config.lt script is free software; the Free Software Foundation
|
slouken@3342
|
608 |
gives unlimited permision to copy, distribute and modify it."
|
slouken@3342
|
609 |
|
slouken@3342
|
610 |
while test $[#] != 0
|
slouken@3342
|
611 |
do
|
slouken@3342
|
612 |
case $[1] in
|
slouken@3342
|
613 |
--version | --v* | -V )
|
slouken@3342
|
614 |
echo "$lt_cl_version"; exit 0 ;;
|
slouken@3342
|
615 |
--help | --h* | -h )
|
slouken@3342
|
616 |
echo "$lt_cl_help"; exit 0 ;;
|
slouken@3342
|
617 |
--debug | --d* | -d )
|
slouken@3342
|
618 |
debug=: ;;
|
slouken@3342
|
619 |
--quiet | --q* | --silent | --s* | -q )
|
slouken@3342
|
620 |
lt_cl_silent=: ;;
|
slouken@3342
|
621 |
|
slouken@3342
|
622 |
-*) AC_MSG_ERROR([unrecognized option: $[1]
|
slouken@3342
|
623 |
Try \`$[0] --help' for more information.]) ;;
|
slouken@3342
|
624 |
|
slouken@3342
|
625 |
*) AC_MSG_ERROR([unrecognized argument: $[1]
|
slouken@3342
|
626 |
Try \`$[0] --help' for more information.]) ;;
|
slouken@3342
|
627 |
esac
|
slouken@3342
|
628 |
shift
|
slouken@3342
|
629 |
done
|
slouken@3342
|
630 |
|
slouken@3342
|
631 |
if $lt_cl_silent; then
|
slouken@3342
|
632 |
exec AS_MESSAGE_FD>/dev/null
|
slouken@3342
|
633 |
fi
|
slouken@3342
|
634 |
_LTEOF
|
slouken@3342
|
635 |
|
slouken@3342
|
636 |
cat >>"$CONFIG_LT" <<_LTEOF
|
slouken@3342
|
637 |
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
|
slouken@3342
|
638 |
_LTEOF
|
slouken@3342
|
639 |
|
slouken@3342
|
640 |
cat >>"$CONFIG_LT" <<\_LTEOF
|
slouken@3342
|
641 |
AC_MSG_NOTICE([creating $ofile])
|
slouken@3342
|
642 |
_LT_OUTPUT_LIBTOOL_COMMANDS
|
slouken@3342
|
643 |
AS_EXIT(0)
|
slouken@3342
|
644 |
_LTEOF
|
slouken@3342
|
645 |
chmod +x "$CONFIG_LT"
|
slouken@3342
|
646 |
|
slouken@3342
|
647 |
# configure is writing to config.log, but config.lt does its own redirection,
|
slouken@3342
|
648 |
# appending to config.log, which fails on DOS, as config.log is still kept
|
slouken@3342
|
649 |
# open by configure. Here we exec the FD to /dev/null, effectively closing
|
slouken@3342
|
650 |
# config.log, so it can be properly (re)opened and appended to by config.lt.
|
slouken@3342
|
651 |
if test "$no_create" != yes; then
|
slouken@3342
|
652 |
lt_cl_success=:
|
slouken@3342
|
653 |
test "$silent" = yes &&
|
slouken@3342
|
654 |
lt_config_lt_args="$lt_config_lt_args --quiet"
|
slouken@3342
|
655 |
exec AS_MESSAGE_LOG_FD>/dev/null
|
slouken@3342
|
656 |
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
|
slouken@3342
|
657 |
exec AS_MESSAGE_LOG_FD>>config.log
|
slouken@3342
|
658 |
$lt_cl_success || AS_EXIT(1)
|
slouken@3342
|
659 |
fi
|
slouken@3342
|
660 |
])# LT_OUTPUT
|
slouken@3342
|
661 |
|
slouken@3342
|
662 |
|
slouken@3342
|
663 |
# _LT_CONFIG(TAG)
|
slouken@3342
|
664 |
# ---------------
|
slouken@3342
|
665 |
# If TAG is the built-in tag, create an initial libtool script with a
|
slouken@3342
|
666 |
# default configuration from the untagged config vars. Otherwise add code
|
slouken@3342
|
667 |
# to config.status for appending the configuration named by TAG from the
|
slouken@3342
|
668 |
# matching tagged config vars.
|
slouken@3342
|
669 |
m4_defun([_LT_CONFIG],
|
slouken@3342
|
670 |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
slouken@3342
|
671 |
_LT_CONFIG_SAVE_COMMANDS([
|
slouken@3342
|
672 |
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
|
slouken@3342
|
673 |
m4_if(_LT_TAG, [C], [
|
slouken@3342
|
674 |
# See if we are running on zsh, and set the options which allow our
|
slouken@3342
|
675 |
# commands through without removal of \ escapes.
|
slouken@3342
|
676 |
if test -n "${ZSH_VERSION+set}" ; then
|
slouken@3342
|
677 |
setopt NO_GLOB_SUBST
|
slouken@3342
|
678 |
fi
|
slouken@3342
|
679 |
|
slouken@3342
|
680 |
cfgfile="${ofile}T"
|
slouken@3342
|
681 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
slouken@3342
|
682 |
$RM "$cfgfile"
|
slouken@3342
|
683 |
|
slouken@3342
|
684 |
cat <<_LT_EOF >> "$cfgfile"
|
slouken@3342
|
685 |
#! $SHELL
|
slouken@3342
|
686 |
|
slouken@3342
|
687 |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
slouken@3342
|
688 |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
|
slouken@3342
|
689 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
slouken@3342
|
690 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
slouken@3342
|
691 |
#
|
slouken@3342
|
692 |
_LT_COPYING
|
slouken@3342
|
693 |
_LT_LIBTOOL_TAGS
|
slouken@3342
|
694 |
|
slouken@3342
|
695 |
# ### BEGIN LIBTOOL CONFIG
|
slouken@3342
|
696 |
_LT_LIBTOOL_CONFIG_VARS
|
slouken@3342
|
697 |
_LT_LIBTOOL_TAG_VARS
|
slouken@3342
|
698 |
# ### END LIBTOOL CONFIG
|
slouken@3342
|
699 |
|
slouken@3342
|
700 |
_LT_EOF
|
slouken@3342
|
701 |
|
slouken@3342
|
702 |
case $host_os in
|
slouken@3342
|
703 |
aix3*)
|
slouken@3342
|
704 |
cat <<\_LT_EOF >> "$cfgfile"
|
slouken@3342
|
705 |
# AIX sometimes has problems with the GCC collect2 program. For some
|
slouken@3342
|
706 |
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
slouken@3342
|
707 |
# vanish in a puff of smoke.
|
slouken@3342
|
708 |
if test "X${COLLECT_NAMES+set}" != Xset; then
|
slouken@3342
|
709 |
COLLECT_NAMES=
|
slouken@3342
|
710 |
export COLLECT_NAMES
|
slouken@3342
|
711 |
fi
|
slouken@3342
|
712 |
_LT_EOF
|
slouken@3342
|
713 |
;;
|
slouken@3342
|
714 |
esac
|
slouken@3342
|
715 |
|
slouken@3342
|
716 |
_LT_PROG_LTMAIN
|
slouken@3342
|
717 |
|
slouken@3342
|
718 |
# We use sed instead of cat because bash on DJGPP gets confused if
|
slouken@3342
|
719 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
slouken@3342
|
720 |
# text mode, it properly converts lines to CR/LF. This bash problem
|
slouken@3342
|
721 |
# is reportedly fixed, but why not run on old versions too?
|
slouken@3342
|
722 |
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
slouken@3342
|
723 |
|| (rm -f "$cfgfile"; exit 1)
|
slouken@3342
|
724 |
|
slouken@3342
|
725 |
_LT_PROG_XSI_SHELLFNS
|
slouken@3342
|
726 |
|
slouken@3342
|
727 |
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
slouken@3342
|
728 |
|| (rm -f "$cfgfile"; exit 1)
|
slouken@3342
|
729 |
|
slouken@3342
|
730 |
mv -f "$cfgfile" "$ofile" ||
|
slouken@3342
|
731 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
slouken@3342
|
732 |
chmod +x "$ofile"
|
slouken@3342
|
733 |
],
|
slouken@3342
|
734 |
[cat <<_LT_EOF >> "$ofile"
|
slouken@3342
|
735 |
|
slouken@3342
|
736 |
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
|
slouken@3342
|
737 |
dnl in a comment (ie after a #).
|
slouken@3342
|
738 |
# ### BEGIN LIBTOOL TAG CONFIG: $1
|
slouken@3342
|
739 |
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
|
slouken@3342
|
740 |
# ### END LIBTOOL TAG CONFIG: $1
|
slouken@3342
|
741 |
_LT_EOF
|
slouken@3342
|
742 |
])dnl /m4_if
|
slouken@3342
|
743 |
],
|
slouken@3342
|
744 |
[m4_if([$1], [], [
|
slouken@3342
|
745 |
PACKAGE='$PACKAGE'
|
slouken@3342
|
746 |
VERSION='$VERSION'
|
slouken@3342
|
747 |
TIMESTAMP='$TIMESTAMP'
|
slouken@3342
|
748 |
RM='$RM'
|
slouken@3342
|
749 |
ofile='$ofile'], [])
|
slouken@3342
|
750 |
])dnl /_LT_CONFIG_SAVE_COMMANDS
|
slouken@3342
|
751 |
])# _LT_CONFIG
|
slouken@3342
|
752 |
|
slouken@3342
|
753 |
|
slouken@3342
|
754 |
# LT_SUPPORTED_TAG(TAG)
|
slouken@3342
|
755 |
# ---------------------
|
slouken@3342
|
756 |
# Trace this macro to discover what tags are supported by the libtool
|
slouken@3342
|
757 |
# --tag option, using:
|
slouken@3342
|
758 |
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
|
slouken@3342
|
759 |
AC_DEFUN([LT_SUPPORTED_TAG], [])
|
slouken@3342
|
760 |
|
slouken@3342
|
761 |
|
slouken@3342
|
762 |
# C support is built-in for now
|
slouken@3342
|
763 |
m4_define([_LT_LANG_C_enabled], [])
|
slouken@3342
|
764 |
m4_define([_LT_TAGS], [])
|
slouken@3342
|
765 |
|
slouken@3342
|
766 |
|
slouken@3342
|
767 |
# LT_LANG(LANG)
|
slouken@3342
|
768 |
# -------------
|
slouken@3342
|
769 |
# Enable libtool support for the given language if not already enabled.
|
slouken@3342
|
770 |
AC_DEFUN([LT_LANG],
|
slouken@3342
|
771 |
[AC_BEFORE([$0], [LT_OUTPUT])dnl
|
slouken@3342
|
772 |
m4_case([$1],
|
slouken@3342
|
773 |
[C], [_LT_LANG(C)],
|
slouken@3342
|
774 |
[C++], [_LT_LANG(CXX)],
|
slouken@3342
|
775 |
[Java], [_LT_LANG(GCJ)],
|
slouken@3342
|
776 |
[Fortran 77], [_LT_LANG(F77)],
|
slouken@3342
|
777 |
[Fortran], [_LT_LANG(FC)],
|
slouken@3342
|
778 |
[Windows Resource], [_LT_LANG(RC)],
|
slouken@3342
|
779 |
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
|
slouken@3342
|
780 |
[_LT_LANG($1)],
|
slouken@3342
|
781 |
[m4_fatal([$0: unsupported language: "$1"])])])dnl
|
slouken@3342
|
782 |
])# LT_LANG
|
slouken@3342
|
783 |
|
slouken@3342
|
784 |
|
slouken@3342
|
785 |
# _LT_LANG(LANGNAME)
|
slouken@3342
|
786 |
# ------------------
|
slouken@3342
|
787 |
m4_defun([_LT_LANG],
|
slouken@3342
|
788 |
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
|
slouken@3342
|
789 |
[LT_SUPPORTED_TAG([$1])dnl
|
slouken@3342
|
790 |
m4_append([_LT_TAGS], [$1 ])dnl
|
slouken@3342
|
791 |
m4_define([_LT_LANG_]$1[_enabled], [])dnl
|
slouken@3342
|
792 |
_LT_LANG_$1_CONFIG($1)])dnl
|
slouken@3342
|
793 |
])# _LT_LANG
|
slouken@3342
|
794 |
|
slouken@3342
|
795 |
|
slouken@3342
|
796 |
# _LT_LANG_DEFAULT_CONFIG
|
slouken@3342
|
797 |
# -----------------------
|
slouken@3342
|
798 |
m4_defun([_LT_LANG_DEFAULT_CONFIG],
|
slouken@3342
|
799 |
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
slouken@3342
|
800 |
[LT_LANG(CXX)],
|
slouken@3342
|
801 |
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
|
slouken@3342
|
802 |
|
slouken@3342
|
803 |
AC_PROVIDE_IFELSE([AC_PROG_F77],
|
slouken@3342
|
804 |
[LT_LANG(F77)],
|
slouken@3342
|
805 |
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
|
slouken@3342
|
806 |
|
slouken@3342
|
807 |
AC_PROVIDE_IFELSE([AC_PROG_FC],
|
slouken@3342
|
808 |
[LT_LANG(FC)],
|
slouken@3342
|
809 |
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
|
slouken@3342
|
810 |
|
slouken@3342
|
811 |
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
|
slouken@3342
|
812 |
dnl pulling things in needlessly.
|
slouken@3342
|
813 |
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
slouken@3342
|
814 |
[LT_LANG(GCJ)],
|
slouken@3342
|
815 |
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
|
slouken@3342
|
816 |
[LT_LANG(GCJ)],
|
slouken@3342
|
817 |
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
|
slouken@3342
|
818 |
[LT_LANG(GCJ)],
|
slouken@3342
|
819 |
[m4_ifdef([AC_PROG_GCJ],
|
slouken@3342
|
820 |
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
|
slouken@3342
|
821 |
m4_ifdef([A][M_PROG_GCJ],
|
slouken@3342
|
822 |
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
|
slouken@3342
|
823 |
m4_ifdef([LT_PROG_GCJ],
|
slouken@3342
|
824 |
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
|
slouken@3342
|
825 |
|
slouken@3342
|
826 |
AC_PROVIDE_IFELSE([LT_PROG_RC],
|
slouken@3342
|
827 |
[LT_LANG(RC)],
|
slouken@3342
|
828 |
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
|
slouken@3342
|
829 |
])# _LT_LANG_DEFAULT_CONFIG
|
slouken@3342
|
830 |
|
slouken@3342
|
831 |
# Obsolete macros:
|
slouken@3342
|
832 |
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
|
slouken@3342
|
833 |
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
|
slouken@3342
|
834 |
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
|
slouken@3342
|
835 |
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
|
slouken@3342
|
836 |
dnl aclocal-1.4 backwards compatibility:
|
slouken@3342
|
837 |
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
|
slouken@3342
|
838 |
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
|
slouken@3342
|
839 |
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
|
slouken@3342
|
840 |
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
|
slouken@3342
|
841 |
|
slouken@3342
|
842 |
|
slouken@3342
|
843 |
# _LT_TAG_COMPILER
|
slouken@3342
|
844 |
# ----------------
|
slouken@3342
|
845 |
m4_defun([_LT_TAG_COMPILER],
|
slouken@3342
|
846 |
[AC_REQUIRE([AC_PROG_CC])dnl
|
slouken@3342
|
847 |
|
slouken@3342
|
848 |
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
|
slouken@3342
|
849 |
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
|
slouken@3342
|
850 |
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
|
slouken@3342
|
851 |
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
|
slouken@3342
|
852 |
|
slouken@3342
|
853 |
# If no C compiler was specified, use CC.
|
slouken@3342
|
854 |
LTCC=${LTCC-"$CC"}
|
slouken@3342
|
855 |
|
slouken@3342
|
856 |
# If no C compiler flags were specified, use CFLAGS.
|
slouken@3342
|
857 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
slouken@3342
|
858 |
|
slouken@3342
|
859 |
# Allow CC to be a program name with arguments.
|
slouken@3342
|
860 |
compiler=$CC
|
slouken@3342
|
861 |
])# _LT_TAG_COMPILER
|
slouken@3342
|
862 |
|
slouken@3342
|
863 |
|
slouken@3342
|
864 |
# _LT_COMPILER_BOILERPLATE
|
slouken@3342
|
865 |
# ------------------------
|
slouken@3342
|
866 |
# Check for compiler boilerplate output or warnings with
|
slouken@3342
|
867 |
# the simple compiler test code.
|
slouken@3342
|
868 |
m4_defun([_LT_COMPILER_BOILERPLATE],
|
slouken@3342
|
869 |
[m4_require([_LT_DECL_SED])dnl
|
slouken@3342
|
870 |
ac_outfile=conftest.$ac_objext
|
slouken@3342
|
871 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
slouken@3342
|
872 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
slouken@3342
|
873 |
_lt_compiler_boilerplate=`cat conftest.err`
|
slouken@3342
|
874 |
$RM conftest*
|
slouken@3342
|
875 |
])# _LT_COMPILER_BOILERPLATE
|
slouken@3342
|
876 |
|
slouken@3342
|
877 |
|
slouken@3342
|
878 |
# _LT_LINKER_BOILERPLATE
|
slouken@3342
|
879 |
# ----------------------
|
slouken@3342
|
880 |
# Check for linker boilerplate output or warnings with
|
slouken@3342
|
881 |
# the simple link test code.
|
slouken@3342
|
882 |
m4_defun([_LT_LINKER_BOILERPLATE],
|
slouken@3342
|
883 |
[m4_require([_LT_DECL_SED])dnl
|
slouken@3342
|
884 |
ac_outfile=conftest.$ac_objext
|
slouken@3342
|
885 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
slouken@3342
|
886 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
slouken@3342
|
887 |
_lt_linker_boilerplate=`cat conftest.err`
|
slouken@3342
|
888 |
$RM -r conftest*
|
slouken@3342
|
889 |
])# _LT_LINKER_BOILERPLATE
|
slouken@3342
|
890 |
|
slouken@3342
|
891 |
# _LT_REQUIRED_DARWIN_CHECKS
|
slouken@3342
|
892 |
# -------------------------
|
slouken@3342
|
893 |
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
slouken@3342
|
894 |
case $host_os in
|
slouken@3342
|
895 |
rhapsody* | darwin*)
|
slouken@3342
|
896 |
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
|
slouken@3342
|
897 |
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
|
slouken@3342
|
898 |
AC_CHECK_TOOL([LIPO], [lipo], [:])
|
slouken@3342
|
899 |
AC_CHECK_TOOL([OTOOL], [otool], [:])
|
slouken@3342
|
900 |
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
|
slouken@3342
|
901 |
_LT_DECL([], [DSYMUTIL], [1],
|
slouken@3342
|
902 |
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
|
slouken@3342
|
903 |
_LT_DECL([], [NMEDIT], [1],
|
slouken@3342
|
904 |
[Tool to change global to local symbols on Mac OS X])
|
slouken@3342
|
905 |
_LT_DECL([], [LIPO], [1],
|
slouken@3342
|
906 |
[Tool to manipulate fat objects and archives on Mac OS X])
|
slouken@3342
|
907 |
_LT_DECL([], [OTOOL], [1],
|
slouken@3342
|
908 |
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
|
slouken@3342
|
909 |
_LT_DECL([], [OTOOL64], [1],
|
slouken@3342
|
910 |
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
|
slouken@3342
|
911 |
|
slouken@3342
|
912 |
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
|
slouken@3342
|
913 |
[lt_cv_apple_cc_single_mod=no
|
slouken@3342
|
914 |
if test -z "${LT_MULTI_MODULE}"; then
|
slouken@3342
|
915 |
# By default we will add the -single_module flag. You can override
|
slouken@3342
|
916 |
# by either setting the environment variable LT_MULTI_MODULE
|
slouken@3342
|
917 |
# non-empty at configure time, or by adding -multi_module to the
|
slouken@3342
|
918 |
# link flags.
|
slouken@3342
|
919 |
rm -rf libconftest.dylib*
|
slouken@3342
|
920 |
echo "int foo(void){return 1;}" > conftest.c
|
slouken@3342
|
921 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
slouken@3342
|
922 |
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
|
slouken@3342
|
923 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
slouken@3342
|
924 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
slouken@3342
|
925 |
_lt_result=$?
|
slouken@3342
|
926 |
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
|
slouken@3342
|
927 |
lt_cv_apple_cc_single_mod=yes
|
slouken@3342
|
928 |
else
|
slouken@3342
|
929 |
cat conftest.err >&AS_MESSAGE_LOG_FD
|
slouken@3342
|
930 |
fi
|
slouken@3342
|
931 |
rm -rf libconftest.dylib*
|
slouken@3342
|
932 |
rm -f conftest.*
|
slouken@3342
|
933 |
fi])
|
slouken@3342
|
934 |
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
|
slouken@3342
|
935 |
[lt_cv_ld_exported_symbols_list],
|
slouken@3342
|
936 |
[lt_cv_ld_exported_symbols_list=no
|
slouken@3342
|
937 |
save_LDFLAGS=$LDFLAGS
|
slouken@3342
|
938 |
echo "_main" > conftest.sym
|
slouken@3342
|
939 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
slouken@3342
|
940 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
slouken@3342
|
941 |
[lt_cv_ld_exported_symbols_list=yes],
|
slouken@3342
|
942 |
[lt_cv_ld_exported_symbols_list=no])
|
slouken@3342
|
943 |
LDFLAGS="$save_LDFLAGS"
|
slouken@3342
|
944 |
])
|
slouken@3342
|
945 |
case $host_os in
|
slouken@3342
|
946 |
rhapsody* | darwin1.[[012]])
|
slouken@3342
|
947 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
|
slouken@3342
|
948 |
darwin1.*)
|
slouken@3342
|
949 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
slouken@3342
|
950 |
darwin*) # darwin 5.x on
|
slouken@3342
|
951 |
# if running on 10.5 or later, the deployment target defaults
|
slouken@3342
|
952 |
# to the OS version, if on x86, and 10.4, the deployment
|
slouken@3342
|
953 |
# target defaults to 10.4. Don't you love it?
|
slouken@3342
|
954 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
slouken@3342
|
955 |
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
|
slouken@3342
|
956 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
slouken@3342
|
957 |
10.[[012]]*)
|
slouken@3342
|
958 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
slouken@3342
|
959 |
10.*)
|
slouken@3342
|
960 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
slouken@3342
|
961 |
esac
|
slouken@3342
|
962 |
;;
|
slouken@3342
|
963 |
esac
|
slouken@3342
|
964 |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
|
slouken@3342
|
965 |
_lt_dar_single_mod='$single_module'
|
slouken@3342
|
966 |
fi
|
slouken@3342
|
967 |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
|
slouken@3342
|
968 |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
|
slouken@3342
|
969 |
else
|
slouken@3342
|
970 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
slouken@3342
|
971 |
fi
|
slouken@3342
|
972 |
if test "$DSYMUTIL" != ":"; then
|
slouken@3342
|
973 |
_lt_dsymutil='~$DSYMUTIL $lib || :'
|
slouken@3342
|
974 |
else
|
slouken@3342
|
975 |
_lt_dsymutil=
|
slouken@3342
|
976 |
fi
|
slouken@3342
|
977 |
;;
|
slouken@3342
|
978 |
esac
|
slouken@3342
|
979 |
])
|
slouken@3342
|
980 |
|
slouken@3342
|
981 |
|
slouken@3342
|
982 |
# _LT_DARWIN_LINKER_FEATURES
|
slouken@3342
|
983 |
# --------------------------
|
slouken@3342
|
984 |
# Checks for linker and compiler features on darwin
|
slouken@3342
|
985 |
m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
slouken@3342
|
986 |
[
|
slouken@3342
|
987 |
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
|
slouken@3342
|
988 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
slouken@3342
|
989 |
_LT_TAGVAR(hardcode_direct, $1)=no
|
slouken@3342
|
990 |
_LT_TAGVAR(hardcode_automatic, $1)=yes
|
slouken@3342
|
991 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
slouken@3342
|
992 |
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
|
slouken@3342
|
993 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
slouken@3342
|
994 |
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
|
slouken@3342
|
995 |
case $cc_basename in
|
slouken@3342
|
996 |
ifort*) _lt_dar_can_shared=yes ;;
|
slouken@3342
|
997 |
*) _lt_dar_can_shared=$GCC ;;
|
slouken@3342
|
998 |
esac
|
slouken@3342
|
999 |
if test "$_lt_dar_can_shared" = "yes"; then
|
slouken@3342
|
1000 |
output_verbose_link_cmd=echo
|
slouken@3342
|
1001 |
_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
|
slouken@3342
|
1002 |
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
|
slouken@3342
|
1003 |
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
|
slouken@3342
|
1004 |
_LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
|
slouken@3342
|
1005 |
m4_if([$1], [CXX],
|
slouken@3342
|
1006 |
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
|
slouken@3342
|
1007 |
_LT_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${_lt_dsymutil}"
|
slouken@3342
|
1008 |
_LT_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
|
slouken@3342
|
1009 |
fi
|
slouken@3342
|
1010 |
],[])
|
slouken@3342
|
1011 |
else
|
slouken@3342
|
1012 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
slouken@3342
|
1013 |
fi
|
slouken@3342
|
1014 |
])
|
slouken@3342
|
1015 |
|
slouken@3342
|
1016 |
# _LT_SYS_MODULE_PATH_AIX
|
slouken@3342
|
1017 |
# -----------------------
|
slouken@3342
|
1018 |
# Links a minimal program and checks the executable
|
slouken@3342
|
1019 |
# for the system default hardcoded library path. In most cases,
|
slouken@3342
|
1020 |
# this is /usr/lib:/lib, but when the MPI compilers are used
|
slouken@3342
|
1021 |
# the location of the communication and MPI libs are included too.
|
slouken@3342
|
1022 |
# If we don't find anything, use the default library path according
|
slouken@3342
|
1023 |
# to the aix ld manual.
|
slouken@3342
|
1024 |
m4_defun([_LT_SYS_MODULE_PATH_AIX],
|
slouken@3342
|
1025 |
[m4_require([_LT_DECL_SED])dnl
|
slouken@3342
|
1026 |
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
|
slouken@3342
|
1027 |
lt_aix_libpath_sed='
|
slouken@3342
|
1028 |
/Import File Strings/,/^$/ {
|
slouken@3342
|
1029 |
/^0/ {
|
slouken@3342
|
1030 |
s/^0 *\(.*\)$/\1/
|
slouken@3342
|
1031 |
p
|
slouken@3342
|
1032 |
}
|
slouken@3342
|
1033 |
}'
|
slouken@3342
|
1034 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
slouken@3342
|
1035 |
# Check for a 64-bit object if we didn't find anything.
|
slouken@3342
|
1036 |
if test -z "$aix_libpath"; then
|
slouken@3342
|
1037 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
slouken@3342
|
1038 |
fi],[])
|
slouken@3342
|
1039 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
slouken@3342
|
1040 |
])# _LT_SYS_MODULE_PATH_AIX
|
slouken@3342
|
1041 |
|
slouken@3342
|
1042 |
|
slouken@3342
|
1043 |
# _LT_SHELL_INIT(ARG)
|
slouken@3342
|
1044 |
# -------------------
|
slouken@3342
|
1045 |
m4_define([_LT_SHELL_INIT],
|
slouken@3342
|
1046 |
[ifdef([AC_DIVERSION_NOTICE],
|
slouken@3342
|
1047 |
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
|
slouken@3342
|
1048 |
[AC_DIVERT_PUSH(NOTICE)])
|
slouken@3342
|
1049 |
$1
|
slouken@3342
|
1050 |
AC_DIVERT_POP
|
slouken@3342
|
1051 |
])# _LT_SHELL_INIT
|
slouken@3342
|
1052 |
|
slouken@3342
|
1053 |
|
slouken@3342
|
1054 |
# _LT_PROG_ECHO_BACKSLASH
|
slouken@3342
|
1055 |
# -----------------------
|
slouken@3342
|
1056 |
# Add some code to the start of the generated configure script which
|
slouken@3342
|
1057 |
# will find an echo command which doesn't interpret backslashes.
|
slouken@3342
|
1058 |
m4_defun([_LT_PROG_ECHO_BACKSLASH],
|
slouken@3342
|
1059 |
[_LT_SHELL_INIT([
|
slouken@3342
|
1060 |
# Check that we are running under the correct shell.
|
slouken@3342
|
1061 |
SHELL=${CONFIG_SHELL-/bin/sh}
|
slouken@3342
|
1062 |
|
slouken@3342
|
1063 |
case X$lt_ECHO in
|
slouken@3342
|
1064 |
X*--fallback-echo)
|
slouken@3342
|
1065 |
# Remove one level of quotation (which was required for Make).
|
slouken@3342
|
1066 |
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
|
slouken@3342
|
1067 |
;;
|
slouken@3342
|
1068 |
esac
|
slouken@3342
|
1069 |
|
slouken@3342
|
1070 |
ECHO=${lt_ECHO-echo}
|
slouken@3342
|
1071 |
if test "X[$]1" = X--no-reexec; then
|
slouken@3342
|
1072 |
# Discard the --no-reexec flag, and continue.
|
slouken@3342
|
1073 |
shift
|
slouken@3342
|
1074 |
elif test "X[$]1" = X--fallback-echo; then
|
slouken@3342
|
1075 |
# Avoid inline document here, it may be left over
|
slouken@3342
|
1076 |
:
|
slouken@3342
|
1077 |
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
|
slouken@3342
|
1078 |
# Yippee, $ECHO works!
|
slouken@3342
|
1079 |
:
|
slouken@3342
|
1080 |
else
|
slouken@3342
|
1081 |
# Restart under the correct shell.
|
slouken@3342
|
1082 |
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
slouken@3342
|
1083 |
fi
|
slouken@3342
|
1084 |
|
slouken@3342
|
1085 |
if test "X[$]1" = X--fallback-echo; then
|
slouken@3342
|
1086 |
# used as fallback echo
|
slouken@3342
|
1087 |
shift
|
slouken@3342
|
1088 |
cat <<_LT_EOF
|
slouken@3342
|
1089 |
[$]*
|
slouken@3342
|
1090 |
_LT_EOF
|
slouken@3342
|
1091 |
exit 0
|
slouken@3342
|
1092 |
fi
|
slouken@3342
|
1093 |
|
slouken@3342
|
1094 |
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
slouken@3342
|
1095 |
# if CDPATH is set.
|
slouken@3342
|
1096 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
slouken@3342
|
1097 |
|
slouken@3342
|
1098 |
if test -z "$lt_ECHO"; then
|
slouken@3342
|
1099 |
if test "X${echo_test_string+set}" != Xset; then
|
slouken@3342
|
1100 |
# find a string as large as possible, as long as the shell can cope with it
|
slouken@3342
|
1101 |
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
|
slouken@3342
|
1102 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
slouken@3342
|
1103 |
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
|
slouken@3342
|
1104 |
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
|
slouken@3342
|
1105 |
then
|
slouken@3342
|
1106 |
break
|
slouken@3342
|
1107 |
fi
|
slouken@3342
|
1108 |
done
|
slouken@3342
|
1109 |
fi
|
slouken@3342
|
1110 |
|
slouken@3342
|
1111 |
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
|
slouken@3342
|
1112 |
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
|
slouken@3342
|
1113 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
slouken@3342
|
1114 |
:
|
slouken@3342
|
1115 |
else
|
slouken@3342
|
1116 |
# The Solaris, AIX, and Digital Unix default echo programs unquote
|
slouken@3342
|
1117 |
# backslashes. This makes it impossible to quote backslashes using
|
slouken@3342
|
1118 |
# echo "$something" | sed 's/\\/\\\\/g'
|
slouken@3342
|
1119 |
#
|
slouken@3342
|
1120 |
# So, first we look for a working echo in the user's PATH.
|
slouken@3342
|
1121 |
|
slouken@3342
|
1122 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
slouken@3342
|
1123 |
for dir in $PATH /usr/ucb; do
|
slouken@3342
|
1124 |
IFS="$lt_save_ifs"
|
slouken@3342
|
1125 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
slouken@3342
|
1126 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
slouken@3342
|
1127 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
slouken@3342
|
1128 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
slouken@3342
|
1129 |
ECHO="$dir/echo"
|
slouken@3342
|
1130 |
break
|
slouken@3342
|
1131 |
fi
|
slouken@3342
|
1132 |
done
|
slouken@3342
|
1133 |
IFS="$lt_save_ifs"
|
slouken@3342
|
1134 |
|
slouken@3342
|
1135 |
if test "X$ECHO" = Xecho; then
|
slouken@3342
|
1136 |
# We didn't find a better echo, so look for alternatives.
|
slouken@3342
|
1137 |
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
|
slouken@3342
|
1138 |
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
|
slouken@3342
|
1139 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
slouken@3342
|
1140 |
# This shell has a builtin print -r that does the trick.
|
slouken@3342
|
1141 |
ECHO='print -r'
|
slouken@3342
|
1142 |
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
|
slouken@3342
|
1143 |
test "X$CONFIG_SHELL" != X/bin/ksh; then
|
slouken@3342
|
1144 |
# If we have ksh, try running configure again with it.
|
slouken@3342
|
1145 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
slouken@3342
|
1146 |
export ORIGINAL_CONFIG_SHELL
|
slouken@3342
|
1147 |
CONFIG_SHELL=/bin/ksh
|
slouken@3342
|
1148 |
export CONFIG_SHELL
|
slouken@3342
|
1149 |
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
slouken@3342
|
1150 |
else
|
slouken@3342
|
1151 |
# Try using printf.
|
slouken@3342
|
1152 |
ECHO='printf %s\n'
|
slouken@3342
|
1153 |
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
|
slouken@3342
|
1154 |
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
|
slouken@3342
|
1155 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
slouken@3342
|
1156 |
# Cool, printf works
|
slouken@3342
|
1157 |
:
|
slouken@3342
|
1158 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
slouken@3342
|
1159 |
test "X$echo_testing_string" = 'X\t' &&
|
slouken@3342
|
1160 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
slouken@3342
|
1161 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
slouken@3342
|
1162 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
slouken@3342
|
1163 |
export CONFIG_SHELL
|
slouken@3342
|
1164 |
SHELL="$CONFIG_SHELL"
|
slouken@3342
|
1165 |
export SHELL
|
slouken@3342
|
1166 |
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
|
slouken@3342
|
1167 |
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
slouken@3342
|
1168 |
test "X$echo_testing_string" = 'X\t' &&
|
slouken@3342
|
1169 |
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
slouken@3342
|
1170 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
slouken@3342
|
1171 |
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
|
slouken@3342
|
1172 |
else
|
slouken@3342
|
1173 |
# maybe with a smaller string...
|
slouken@3342
|
1174 |
prev=:
|
slouken@3342
|
1175 |
|
slouken@3342
|
1176 |
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
|
slouken@3342
|
1177 |
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
|
slouken@3342
|
1178 |
then
|
slouken@3342
|
1179 |
break
|
slouken@3342
|
1180 |
fi
|
slouken@3342
|
1181 |
prev="$cmd"
|
slouken@3342
|
1182 |
done
|
slouken@3342
|
1183 |
|
slouken@3342
|
1184 |
if test "$prev" != 'sed 50q "[$]0"'; then
|
slouken@3342
|
1185 |
echo_test_string=`eval $prev`
|
slouken@3342
|
1186 |
export echo_test_string
|
slouken@3342
|
1187 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
|
slouken@3342
|
1188 |
else
|
slouken@3342
|
1189 |
# Oops. We lost completely, so just stick with echo.
|
slouken@3342
|
1190 |
ECHO=echo
|
slouken@3342
|
1191 |
fi
|
slouken@3342
|
1192 |
fi
|
slouken@3342
|
1193 |
fi
|
slouken@3342
|
1194 |
fi
|
slouken@3342
|
1195 |
fi
|
slouken@3342
|
1196 |
fi
|
slouken@3342
|
1197 |
|
slouken@3342
|
1198 |
# Copy echo and quote the copy suitably for passing to libtool from
|
slouken@3342
|
1199 |
# the Makefile, instead of quoting the original, which is used later.
|
slouken@3342
|
1200 |
lt_ECHO=$ECHO
|
slouken@3342
|
1201 |
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
|
slouken@3342
|
1202 |
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
|
slouken@3342
|
1203 |
fi
|
slouken@3342
|
1204 |
|
slouken@3342
|
1205 |
AC_SUBST(lt_ECHO)
|
slouken@3342
|
1206 |
])
|
slouken@3342
|
1207 |
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
|
slouken@3342
|
1208 |
_LT_DECL([], [ECHO], [1],
|
slouken@3342
|
1209 |
[An echo program that does not interpret backslashes])
|
slouken@3342
|
1210 |
])# _LT_PROG_ECHO_BACKSLASH
|
slouken@3342
|
1211 |
|
slouken@3342
|
1212 |
|
slouken@3342
|
1213 |
# _LT_ENABLE_LOCK
|
slouken@3342
|
1214 |
# ---------------
|
slouken@3342
|
1215 |
m4_defun([_LT_ENABLE_LOCK],
|
slouken@3342
|
1216 |
[AC_ARG_ENABLE([libtool-lock],
|
slouken@3342
|
1217 |
[AS_HELP_STRING([--disable-libtool-lock],
|
slouken@3342
|
1218 |
[avoid locking (might break parallel builds)])])
|
slouken@3342
|
1219 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
slouken@3342
|
1220 |
|
slouken@3342
|
1221 |
# Some flags need to be propagated to the compiler or linker for good
|
slouken@3342
|
1222 |
# libtool support.
|
slouken@3342
|
1223 |
case $host in
|
slouken@3342
|
1224 |
ia64-*-hpux*)
|
slouken@3342
|
1225 |
# Find out which ABI we are using.
|
slouken@3342
|
1226 |
echo 'int i;' > conftest.$ac_ext
|
slouken@3342
|
1227 |
if AC_TRY_EVAL(ac_compile); then
|
slouken@3342
|
1228 |
case `/usr/bin/file conftest.$ac_objext` in
|
slouken@3342
|
1229 |
*ELF-32*)
|
slouken@3342
|
1230 |
HPUX_IA64_MODE="32"
|
slouken@3342
|
1231 |
;;
|
slouken@3342
|
1232 |
*ELF-64*)
|
slouken@3342
|
1233 |
HPUX_IA64_MODE="64"
|
slouken@3342
|
1234 |
;;
|
slouken@3342
|
1235 |
esac
|
slouken@3342
|
1236 |
fi
|
slouken@3342
|
1237 |
rm -rf conftest*
|
slouken@3342
|
1238 |
;;
|
slouken@3342
|
1239 |
*-*-irix6*)
|
slouken@3342
|
1240 |
# Find out which ABI we are using.
|
slouken@3342
|
1241 |
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
|
slouken@3342
|
1242 |
if AC_TRY_EVAL(ac_compile); then
|
slouken@3342
|
1243 |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
slouken@3342
|
1244 |
case `/usr/bin/file conftest.$ac_objext` in
|
slouken@3342
|
1245 |
*32-bit*)
|
slouken@3342
|
1246 |
LD="${LD-ld} -melf32bsmip"
|
slouken@3342
|
1247 |
;;
|
slouken@3342
|
1248 |
*N32*)
|
slouken@3342
|
1249 |
LD="${LD-ld} -melf32bmipn32"
|
slouken@3342
|
1250 |
;;
|
slouken@3342
|
1251 |
*64-bit*)
|
slouken@3342
|
1252 |
LD="${LD-ld} -melf64bmip"
|
slouken@3342
|
1253 |
;;
|
slouken@3342
|
1254 |
esac
|
slouken@3342
|
1255 |
else
|
slouken@3342
|
1256 |
case `/usr/bin/file conftest.$ac_objext` in
|
slouken@3342
|
1257 |
*32-bit*)
|
slouken@3342
|
1258 |
LD="${LD-ld} -32"
|
slouken@3342
|
1259 |
;;
|
slouken@3342
|
1260 |
*N32*)
|
slouken@3342
|
1261 |
LD="${LD-ld} -n32"
|
slouken@3342
|
1262 |
;;
|
slouken@3342
|
1263 |
*64-bit*)
|
slouken@3342
|
1264 |
LD="${LD-ld} -64"
|
slouken@3342
|
1265 |
;;
|
slouken@3342
|
1266 |
esac
|
slouken@3342
|
1267 |
fi
|
slouken@3342
|
1268 |
fi
|
slouken@3342
|
1269 |
rm -rf conftest*
|
slouken@3342
|
1270 |
;;
|
slouken@3342
|
1271 |
|
slouken@3342
|
1272 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
slouken@3342
|
1273 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
slouken@3342
|
1274 |
# Find out which ABI we are using.
|
slouken@3342
|
1275 |
echo 'int i;' > conftest.$ac_ext
|
slouken@3342
|
1276 |
if AC_TRY_EVAL(ac_compile); then
|
slouken@3342
|
1277 |
case `/usr/bin/file conftest.o` in
|
slouken@3342
|
1278 |
*32-bit*)
|
slouken@3342
|
1279 |
case $host in
|
slouken@3342
|
1280 |
x86_64-*kfreebsd*-gnu)
|
slouken@3342
|
1281 |
LD="${LD-ld} -m elf_i386_fbsd"
|
slouken@3342
|
1282 |
;;
|
slouken@3342
|
1283 |
x86_64-*linux*)
|
slouken@3342
|
1284 |
LD="${LD-ld} -m elf_i386"
|
slouken@3342
|
1285 |
;;
|
slouken@3342
|
1286 |
ppc64-*linux*|powerpc64-*linux*)
|
slouken@3342
|
1287 |
LD="${LD-ld} -m elf32ppclinux"
|
slouken@3342
|
1288 |
;;
|
slouken@3342
|
1289 |
s390x-*linux*)
|
slouken@3342
|
1290 |
LD="${LD-ld} -m elf_s390"
|
slouken@3342
|
1291 |
;;
|
slouken@3342
|
1292 |
sparc64-*linux*)
|
slouken@3342
|
1293 |
LD="${LD-ld} -m elf32_sparc"
|
slouken@3342
|
1294 |
;;
|
slouken@3342
|
1295 |
esac
|
slouken@3342
|
1296 |
;;
|
slouken@3342
|
1297 |
*64-bit*)
|
slouken@3342
|
1298 |
case $host in
|
slouken@3342
|
1299 |
x86_64-*kfreebsd*-gnu)
|
slouken@3342
|
1300 |
LD="${LD-ld} -m elf_x86_64_fbsd"
|
slouken@3342
|
1301 |
;;
|
slouken@3342
|
1302 |
x86_64-*linux*)
|
slouken@3342
|
1303 |
LD="${LD-ld} -m elf_x86_64"
|
slouken@3342
|
1304 |
;;
|
slouken@3342
|
1305 |
ppc*-*linux*|powerpc*-*linux*)
|
slouken@3342
|
1306 |
LD="${LD-ld} -m elf64ppc"
|
slouken@3342
|
1307 |
;;
|
slouken@3342
|
1308 |
s390*-*linux*|s390*-*tpf*)
|
slouken@3342
|
1309 |
LD="${LD-ld} -m elf64_s390"
|
slouken@3342
|
1310 |
;;
|
slouken@3342
|
1311 |
sparc*-*linux*)
|
slouken@3342
|
1312 |
LD="${LD-ld} -m elf64_sparc"
|
slouken@3342
|
1313 |
;;
|
slouken@3342
|
1314 |
esac
|
slouken@3342
|
1315 |
;;
|
slouken@3342
|
1316 |
esac
|
slouken@3342
|
1317 |
fi
|
slouken@3342
|
1318 |
rm -rf conftest*
|
slouken@3342
|
1319 |
;;
|
slouken@3342
|
1320 |
|
slouken@3342
|
1321 |
*-*-sco3.2v5*)
|
slouken@3342
|
1322 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
slouken@3342
|
1323 |
SAVE_CFLAGS="$CFLAGS"
|
slouken@3342
|
1324 |
CFLAGS="$CFLAGS -belf"
|
slouken@3342
|
1325 |
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
slouken@3342
|
1326 |
[AC_LANG_PUSH(C)
|
slouken@3342
|
1327 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
slouken@3342
|
1328 |
AC_LANG_POP])
|
slouken@3342
|
1329 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
slouken@3342
|
1330 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
slouken@3342
|
1331 |
CFLAGS="$SAVE_CFLAGS"
|
slouken@3342
|
1332 |
fi
|
slouken@3342
|
1333 |
;;
|
slouken@3342
|
1334 |
sparc*-*solaris*)
|
slouken@3342
|
1335 |
# Find out which ABI we are using.
|
slouken@3342
|
1336 |
echo 'int i;' > conftest.$ac_ext
|
slouken@3342
|
1337 |
if AC_TRY_EVAL(ac_compile); then
|
slouken@3342
|
1338 |
case `/usr/bin/file conftest.o` in
|
slouken@3342
|
1339 |
*64-bit*)
|
slouken@3342
|
1340 |
case $lt_cv_prog_gnu_ld in
|
slouken@3342
|
1341 |
yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
slouken@3342
|
1342 |
*)
|
slouken@3342
|
1343 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
slouken@3342
|
1344 |
LD="${LD-ld} -64"
|
slouken@3342
|
1345 |
fi
|
slouken@3342
|
1346 |
;;
|
slouken@3342
|
1347 |
esac
|
slouken@3342
|
1348 |
;;
|
slouken@3342
|
1349 |
esac
|
slouken@3342
|
1350 |
fi
|
slouken@3342
|
1351 |
rm -rf conftest*
|
slouken@3342
|
1352 |
;;
|
slouken@3342
|
1353 |
esac
|
slouken@3342
|
1354 |
|
slouken@3342
|
1355 |
need_locks="$enable_libtool_lock"
|
slouken@3342
|
1356 |
])# _LT_ENABLE_LOCK
|
slouken@3342
|
1357 |
|
slouken@3342
|
1358 |
|
slouken@3342
|
1359 |
# _LT_CMD_OLD_ARCHIVE
|
slouken@3342
|
1360 |
# -------------------
|
slouken@3342
|
1361 |
m4_defun([_LT_CMD_OLD_ARCHIVE],
|
slouken@3342
|
1362 |
[AC_CHECK_TOOL(AR, ar, false)
|
slouken@3342
|
1363 |
test -z "$AR" && AR=ar
|
slouken@3342
|
1364 |
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
slouken@3342
|
1365 |
_LT_DECL([], [AR], [1], [The archiver])
|
slouken@3342
|
1366 |
_LT_DECL([], [AR_FLAGS], [1])
|
slouken@3342
|
1367 |
|
slouken@3342
|
1368 |
AC_CHECK_TOOL(STRIP, strip, :)
|
slouken@3342
|
1369 |
test -z "$STRIP" && STRIP=:
|
slouken@3342
|
1370 |
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
|
slouken@3342
|
1371 |
|
slouken@3342
|
1372 |
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
slouken@3342
|
1373 |
test -z "$RANLIB" && RANLIB=:
|
slouken@3342
|
1374 |
_LT_DECL([], [RANLIB], [1],
|
slouken@3342
|
1375 |
[Commands used to install an old-style archive])
|
slouken@3342
|
1376 |
|
slouken@3342
|
1377 |
# Determine commands to create old-style static archives.
|
slouken@3342
|
1378 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
slouken@3342
|
1379 |
old_postinstall_cmds='chmod 644 $oldlib'
|
slouken@3342
|
1380 |
old_postuninstall_cmds=
|
slouken@3342
|
1381 |
|
slouken@3342
|
1382 |
if test -n "$RANLIB"; then
|
slouken@3342
|
1383 |
case $host_os in
|
slouken@3342
|
1384 |
openbsd*)
|
slouken@3342
|
1385 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
slouken@3342
|
1386 |
;;
|
slouken@3342
|
1387 |
*)
|
slouken@3342
|
1388 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
slouken@3342
|
1389 |
;;
|
slouken@3342
|
1390 |
esac
|
slouken@3342
|
1391 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
slouken@3342
|
1392 |
fi
|
slouken@3342
|
1393 |
_LT_DECL([], [old_postinstall_cmds], [2])
|
slouken@3342
|
1394 |
_LT_DECL([], [old_postuninstall_cmds], [2])
|
slouken@3342
|
1395 |
_LT_TAGDECL([], [old_archive_cmds], [2],
|
slouken@3342
|
1396 |
[Commands used to build an old-style archive])
|
slouken@3342
|
1397 |
])# _LT_CMD_OLD_ARCHIVE
|
slouken@3342
|
1398 |
|
slouken@3342
|
1399 |
|
slouken@3342
|
1400 |
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
slouken@3342
|
1401 |
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
|
slouken@3342
|
1402 |
# ----------------------------------------------------------------
|
slouken@3342
|
1403 |
# Check whether the given compiler option works
|
slouken@3342
|
1404 |
AC_DEFUN([_LT_COMPILER_OPTION],
|
slouken@3342
|
1405 |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
slouken@3342
|
1406 |
m4_require([_LT_DECL_SED])dnl
|
slouken@3342
|
1407 |
AC_CACHE_CHECK([$1], [$2],
|
slouken@3342
|
1408 |
[$2=no
|
slouken@3342
|
1409 |
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
slouken@3342
|
1410 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
slouken@3342
|
1411 |
lt_compiler_flag="$3"
|
slouken@3342
|
1412 |
# Insert the option either (1) after the last *FLAGS variable, or
|
slouken@3342
|
1413 |
# (2) before a word containing "conftest.", or (3) at the end.
|
slouken@3342
|
1414 |
# Note that $ac_compile itself does not contain backslashes and begins
|
slouken@3342
|
1415 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
slouken@3342
|
1416 |
# The option is referenced via a variable to avoid confusing sed.
|
slouken@3342
|
1417 |
lt_compile=`echo "$ac_compile" | $SED \
|
slouken@3342
|
1418 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
slouken@3342
|
1419 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
slouken@3342
|
1420 |
-e 's:$: $lt_compiler_flag:'`
|
slouken@3342
|
1421 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
slouken@3342
|
1422 |
(eval "$lt_compile" 2>conftest.err)
|
slouken@3342
|
1423 |
ac_status=$?
|
slouken@3342
|
1424 |
cat conftest.err >&AS_MESSAGE_LOG_FD
|
slouken@3342
|
1425 |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
slouken@3342
|
1426 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
slouken@3342
|
1427 |
# The compiler can only warn and ignore the option if not recognized
|
slouken@3342
|
1428 |
# So say no if there are warnings other than the usual output.
|
slouken@3342
|
1429 |
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
slouken@3342
|
1430 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
slouken@3342
|
1431 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
slouken@3342
|
1432 |
$2=yes
|
slouken@3342
|
1433 |
fi
|
slouken@3342
|
1434 |
fi
|
slouken@3342
|
1435 |
$RM conftest*
|
slouken@3342
|
1436 |
])
|
slouken@3342
|
1437 |
|
slouken@3342
|
1438 |
if test x"[$]$2" = xyes; then
|
slouken@3342
|
1439 |
m4_if([$5], , :, [$5])
|
slouken@3342
|
1440 |
else
|
slouken@3342
|
1441 |
m4_if([$6], , :, [$6])
|
slouken@3342
|
1442 |
fi
|
slouken@3342
|
1443 |
])# _LT_COMPILER_OPTION
|
slouken@3342
|
1444 |
|
slouken@3342
|
1445 |
# Old name:
|
slouken@3342
|
1446 |
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
|
slouken@3342
|
1447 |
dnl aclocal-1.4 backwards compatibility:
|
slouken@3342
|
1448 |
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
|
slouken@3342
|
1449 |
|
slouken@3342
|
1450 |
|
slouken@3342
|
1451 |
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
slouken@3342
|
1452 |
# [ACTION-SUCCESS], [ACTION-FAILURE])
|
slouken@3342
|
1453 |
# ----------------------------------------------------
|
slouken@3342
|
1454 |
# Check whether the given linker option works
|
slouken@3342
|
1455 |
AC_DEFUN([_LT_LINKER_OPTION],
|
slouken@3342
|
1456 |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
slouken@3342
|
1457 |
m4_require([_LT_DECL_SED])dnl
|
slouken@3342
|
1458 |
AC_CACHE_CHECK([$1], [$2],
|
slouken@3342
|
1459 |
[$2=no
|
slouken@3342
|
1460 |
save_LDFLAGS="$LDFLAGS"
|
slouken@3342
|
1461 |
LDFLAGS="$LDFLAGS $3"
|
slouken@3342
|
1462 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
slouken@3342
|
1463 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
slouken@3342
|
1464 |
# The linker can only warn and ignore the option if not recognized
|
slouken@3342
|
1465 |
# So say no if there are warnings
|
slouken@3342
|
1466 |
if test -s conftest.err; then
|
slouken@3342
|
1467 |
# Append any errors to the config.log.
|
slouken@3342
|
1468 |
cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
slouken@3342
|
1469 |
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
slouken@3342
|
1470 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
slouken@3342
|
1471 |
if diff conftest.exp conftest.er2 >/dev/null; then
|
slouken@3342
|
1472 |
$2=yes
|
slouken@3342
|
1473 |
fi
|
slouken@3342
|
1474 |
else
|
slouken@3342
|
1475 |
$2=yes
|
slouken@3342
|
1476 |
fi
|
slouken@3342
|
1477 |
fi
|
slouken@3342
|
1478 |
$RM -r conftest*
|
slouken@3342
|
1479 |
LDFLAGS="$save_LDFLAGS"
|
slouken@3342
|
1480 |
])
|
slouken@3342
|
1481 |
|
slouken@3342
|
1482 |
if test x"[$]$2" = xyes; then
|
slouken@3342
|
1483 |
m4_if([$4], , :, [$4])
|
slouken@3342
|
1484 |
else
|
slouken@3342
|
1485 |
m4_if([$5], , :, [$5])
|
slouken@3342
|
1486 |
fi
|
slouken@3342
|
1487 |
])# _LT_LINKER_OPTION
|
slouken@3342
|
1488 |
|
slouken@3342
|
1489 |
# Old name:
|
slouken@3342
|
1490 |
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
|
slouken@3342
|
1491 |
dnl aclocal-1.4 backwards compatibility:
|
slouken@3342
|
1492 |
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
|
slouken@3342
|
1493 |
|
slouken@3342
|
1494 |
|
slouken@3342
|
1495 |
# LT_CMD_MAX_LEN
|
slouken@3342
|
1496 |
#---------------
|
slouken@3342
|
1497 |
AC_DEFUN([LT_CMD_MAX_LEN],
|
slouken@3342
|
1498 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
slouken@3342
|
1499 |
# find the maximum length of command line arguments
|
slouken@3342
|
1500 |
AC_MSG_CHECKING([the maximum length of command line arguments])
|
slouken@3342
|
1501 |
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
slouken@3342
|
1502 |
i=0
|
slouken@3342
|
1503 |
teststring="ABCD"
|
slouken@3342
|
1504 |
|
slouken@3342
|
1505 |
case $build_os in
|
slouken@3342
|
1506 |
msdosdjgpp*)
|
slouken@3342
|
1507 |
# On DJGPP, this test can blow up pretty badly due to problems in libc
|
slouken@3342
|
1508 |
# (any single argument exceeding 2000 bytes causes a buffer overrun
|
slouken@3342
|
1509 |
# during glob expansion). Even if it were fixed, the result of this
|
slouken@3342
|
1510 |
# check would be larger than it should be.
|
slouken@3342
|
1511 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
slouken@3342
|
1512 |
;;
|
slouken@3342
|
1513 |
|
slouken@3342
|
1514 |
gnu*)
|
slouken@3342
|
1515 |
# Under GNU Hurd, this test is not required because there is
|
slouken@3342
|
1516 |
# no limit to the length of command line arguments.
|
slouken@3342
|
1517 |
# Libtool will interpret -1 as no limit whatsoever
|
slouken@3342
|
1518 |
lt_cv_sys_max_cmd_len=-1;
|
slouken@3342
|
1519 |
;;
|
slouken@3342
|
1520 |
|
slouken@3342
|
1521 |
cygwin* | mingw* | cegcc*)
|
slouken@3342
|
1522 |
# On Win9x/ME, this test blows up -- it succeeds, but takes
|
slouken@3342
|
1523 |
# about 5 minutes as the teststring grows exponentially.
|
slouken@3342
|
1524 |
# Worse, since 9x/ME are not pre-emptively multitasking,
|
slouken@3342
|
1525 |
# you end up with a "frozen" computer, even though with patience
|
slouken@3342
|
1526 |
# the test eventually succeeds (with a max line length of 256k).
|
slouken@3342
|
1527 |
# Instead, let's just punt: use the minimum linelength reported by
|
slouken@3342
|
1528 |
# all of the supported platforms: 8192 (on NT/2K/XP).
|
slouken@3342
|
1529 |
lt_cv_sys_max_cmd_len=8192;
|
slouken@3342
|
1530 |
;;
|
slouken@3342
|
1531 |
|
slouken@3342
|
1532 |
beos*)
|
slouken@3342
|
1533 |
# On BeOS, this test takes a really really long time.
|
slouken@3342
|
1534 |
# So we just punt and use a minimum line length of 8192.
|
slouken@3342
|
1535 |
lt_cv_sys_max_cmd_len=8192;
|
slouken@3342
|
1536 |
;;
|
slouken@3342
|
1537 |
|
slouken@3342
|
1538 |
amigaos*)
|
slouken@3342
|
1539 |
# On AmigaOS with pdksh, this test takes hours, literally.
|
slouken@3342
|
1540 |
# So we just punt and use a minimum line length of 8192.
|
slouken@3342
|
1541 |
lt_cv_sys_max_cmd_len=8192;
|
slouken@3342
|
1542 |
;;
|
slouken@3342
|
1543 |
|
slouken@3342
|
1544 |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
slouken@3342
|
1545 |
# This has been around since 386BSD, at least. Likely further.
|
slouken@3342
|
1546 |
if test -x /sbin/sysctl; then
|
slouken@3342
|
1547 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
slouken@3342
|
1548 |
elif test -x /usr/sbin/sysctl; then
|
slouken@3342
|
1549 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
slouken@3342
|
1550 |
else
|
slouken@3342
|
1551 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
slouken@3342
|
1552 |
fi
|
slouken@3342
|
1553 |
# And add a safety zone
|
slouken@3342
|
1554 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
slouken@3342
|
1555 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
slouken@3342
|
1556 |
;;
|
slouken@3342
|
1557 |
|
slouken@3342
|
1558 |
interix*)
|
slouken@3342
|
1559 |
# We know the value 262144 and hardcode it with a safety zone (like BSD)
|
slouken@3342
|
1560 |
lt_cv_sys_max_cmd_len=196608
|
slouken@3342
|
1561 |
;;
|
slouken@3342
|
1562 |
|
slouken@3342
|
1563 |
osf*)
|
slouken@3342
|
1564 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
slouken@3342
|
1565 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
slouken@3342
|
1566 |
# nice to cause kernel panics so lets avoid the loop below.
|
slouken@3342
|
1567 |
# First set a reasonable default.
|
slouken@3342
|
1568 |
lt_cv_sys_max_cmd_len=16384
|
slouken@3342
|
1569 |
#
|
slouken@3342
|
1570 |
if test -x /sbin/sysconfig; then
|
slouken@3342
|
1571 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
slouken@3342
|
1572 |
*1*) lt_cv_sys_max_cmd_len=-1 ;;
|
slouken@3342
|
1573 |
esac
|
slouken@3342
|
1574 |
fi
|
slouken@3342
|
1575 |
;;
|
slouken@3342
|
1576 |
sco3.2v5*)
|
slouken@3342
|
1577 |
lt_cv_sys_max_cmd_len=102400
|
slouken@3342
|
1578 |
;;
|
slouken@3342
|
1579 |
sysv5* | sco5v6* | sysv4.2uw2*)
|
slouken@3342
|
1580 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
slouken@3342
|
1581 |
if test -n "$kargmax"; then
|
slouken@3342
|
1582 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
|
slouken@3342
|
1583 |
else
|
slouken@3342
|
1584 |
lt_cv_sys_max_cmd_len=32768
|
slouken@3342
|
1585 |
fi
|
slouken@3342
|
1586 |
;;
|
slouken@3342
|
1587 |
*)
|
slouken@3342
|
1588 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
slouken@3342
|
1589 |
if test -n "$lt_cv_sys_max_cmd_len"; then
|
slouken@3342
|
1590 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
slouken@3342
|
1591 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
slouken@3342
|
1592 |
else
|
slouken@3342
|
1593 |
# Make teststring a little bigger before we do anything with it.
|
slouken@3342
|
1594 |
# a 1K string should be a reasonable start.
|
slouken@3342
|
1595 |
for i in 1 2 3 4 5 6 7 8 ; do
|
slouken@3342
|
1596 |
teststring=$teststring$teststring
|
slouken@3342
|
1597 |
done
|
slouken@3342
|
1598 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
slouken@3342
|
1599 |
# If test is not a shell built-in, we'll probably end up computing a
|
slouken@3342
|
1600 |
# maximum length that is only half of the actual maximum length, but
|
slouken@3342
|
1601 |
# we can't tell.
|
slouken@3342
|
1602 |
while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
|
slouken@3342
|
1603 |
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
|
slouken@3342
|
1604 |
test $i != 17 # 1/2 MB should be enough
|
slouken@3342
|
1605 |
do
|
slouken@3342
|
1606 |
i=`expr $i + 1`
|
slouken@3342
|
1607 |
teststring=$teststring$teststring
|
slouken@3342
|
1608 |
done
|
slouken@3342
|
1609 |
# Only check the string length outside the loop.
|
slouken@3342
|
1610 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
slouken@3342
|
1611 |
teststring=
|
slouken@3342
|
1612 |
# Add a significant safety factor because C++ compilers can tack on
|
slouken@3342
|
1613 |
# massive amounts of additional arguments before passing them to the
|
slouken@3342
|
1614 |
# linker. It appears as though 1/2 is a usable value.
|
slouken@3342
|
1615 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
slouken@3342
|
1616 |
fi
|
slouken@3342
|
1617 |
;;
|
slouken@3342
|
1618 |
esac
|
slouken@3342
|
1619 |
])
|
slouken@3342
|
1620 |
if test -n $lt_cv_sys_max_cmd_len ; then
|
slouken@3342
|
1621 |
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
|
slouken@3342
|
1622 |
else
|
slouken@3342
|
1623 |
AC_MSG_RESULT(none)
|
slouken@3342
|
1624 |
fi
|
slouken@3342
|
1625 |
max_cmd_len=$lt_cv_sys_max_cmd_len
|
slouken@3342
|
1626 |
_LT_DECL([], [max_cmd_len], [0],
|
slouken@3342
|
1627 |
[What is the maximum length of a command?])
|
slouken@3342
|
1628 |
])# LT_CMD_MAX_LEN
|
slouken@3342
|
1629 |
|
slouken@3342
|
1630 |
# Old name:
|
slouken@3342
|
1631 |
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
|
slouken@3342
|
1632 |
dnl aclocal-1.4 backwards compatibility:
|
slouken@3342
|
1633 |
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
|
slouken@3342
|
1634 |
|
slouken@3342
|
1635 |
|
slouken@3342
|
1636 |
# _LT_HEADER_DLFCN
|
slouken@3342
|
1637 |
# ----------------
|
slouken@3342
|
1638 |
m4_defun([_LT_HEADER_DLFCN],
|
slouken@3342
|
1639 |
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
|
slouken@3342
|
1640 |
])# _LT_HEADER_DLFCN
|
slouken@3342
|
1641 |
|
slouken@3342
|
1642 |
|
slouken@3342
|
1643 |
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
slouken@3342
|
1644 |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
slouken@3342
|
1645 |
# ----------------------------------------------------------------
|
slouken@3342
|
1646 |
m4_defun([_LT_TRY_DLOPEN_SELF],
|
slouken@3342
|
1647 |
[m4_require([_LT_HEADER_DLFCN])dnl
|
slouken@3342
|
1648 |
if test "$cross_compiling" = yes; then :
|
slouken@3342
|
1649 |
[$4]
|
slouken@3342
|
1650 |
else
|
slouken@3342
|
1651 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
slouken@3342
|
1652 |
lt_status=$lt_dlunknown
|
slouken@3342
|
1653 |
cat > conftest.$ac_ext <<_LT_EOF
|
slouken@3342
|
1654 |
[#line __oline__ "configure"
|
slouken@3342
|
1655 |
#include "confdefs.h"
|
slouken@3342
|
1656 |
|
slouken@3342
|
1657 |
#if HAVE_DLFCN_H
|
slouken@3342
|
1658 |
#include <dlfcn.h>
|
slouken@3342
|
1659 |
#endif
|
slouken@3342
|
1660 |
|
slouken@3342
|
1661 |
#include <stdio.h>
|
slouken@3342
|
1662 |
|
slouken@3342
|
1663 |
#ifdef RTLD_GLOBAL
|
slouken@3342
|
1664 |
# define LT_DLGLOBAL RTLD_GLOBAL
|
slouken@3342
|
1665 |
#else
|
slouken@3342
|
1666 |
# ifdef DL_GLOBAL
|
slouken@3342
|
1667 |
# define LT_DLGLOBAL DL_GLOBAL
|
slouken@3342
|
1668 |
# else
|
slouken@3342
|
1669 |
# define LT_DLGLOBAL 0
|
slouken@3342
|
1670 |
# endif
|
slouken@3342
|
1671 |
#endif
|
slouken@3342
|
1672 |
|
slouken@3342
|
1673 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
slouken@3342
|
1674 |
find out it does not work in some platform. */
|
slouken@3342
|
1675 |
#ifndef LT_DLLAZY_OR_NOW
|
slouken@3342
|
1676 |
# ifdef RTLD_LAZY
|
slouken@3342
|
1677 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
slouken@3342
|
1678 |
# else
|
slouken@3342
|
1679 |
# ifdef DL_LAZY
|
slouken@3342
|
1680 |
# define LT_DLLAZY_OR_NOW DL_LAZY
|
slouken@3342
|
1681 |
# else
|
slouken@3342
|
1682 |
# ifdef RTLD_NOW
|
slouken@3342
|
1683 |
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
slouken@3342
|
1684 |
# else
|
slouken@3342
|
1685 |
# ifdef DL_NOW
|
slouken@3342
|
1686 |
# define LT_DLLAZY_OR_NOW DL_NOW
|
slouken@3342
|
1687 |
# else
|
slouken@3342
|
1688 |
# define LT_DLLAZY_OR_NOW 0
|
slouken@3342
|
1689 |
# endif
|
slouken@3342
|
1690 |
# endif
|
slouken@3342
|
1691 |
# endif
|
slouken@3342
|
1692 |
# endif
|
slouken@3342
|
1693 |
#endif
|
slouken@3342
|
1694 |
|
slouken@3342
|
1695 |
void fnord() { int i=42;}
|
slouken@3342
|
1696 |
int main ()
|
slouken@3342
|
1697 |
{
|
slouken@3342
|
1698 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
slouken@3342
|
1699 |
int status = $lt_dlunknown;
|
slouken@3342
|
1700 |
|
slouken@3342
|
1701 |
if (self)
|
slouken@3342
|
1702 |
{
|
slouken@3342
|
1703 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
slouken@3342
|
1704 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
slouken@3342
|
1705 |
/* dlclose (self); */
|
slouken@3342
|
1706 |
}
|
slouken@3342
|
1707 |
else
|
slouken@3342
|
1708 |
puts (dlerror ());
|
slouken@3342
|
1709 |
|
slouken@3342
|
1710 |
return status;
|
slouken@3342
|
1711 |
}]
|
slouken@3342
|
1712 |
_LT_EOF
|
slouken@3342
|
1713 |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
|
slouken@3342
|
1714 |
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
|
slouken@3342
|
1715 |
lt_status=$?
|
slouken@3342
|
1716 |
case x$lt_status in
|
slouken@3342
|
1717 |
x$lt_dlno_uscore) $1 ;;
|
slouken@3342
|
1718 |
x$lt_dlneed_uscore) $2 ;;
|
slouken@3342
|
1719 |
x$lt_dlunknown|x*) $3 ;;
|
slouken@3342
|
1720 |
esac
|
slouken@3342
|
1721 |
else :
|
slouken@3342
|
1722 |
# compilation failed
|
slouken@3342
|
1723 |
$3
|
slouken@3342
|
1724 |
fi
|
slouken@3342
|
1725 |
fi
|
slouken@3342
|
1726 |
rm -fr conftest*
|
slouken@3342
|
1727 |
])# _LT_TRY_DLOPEN_SELF
|
slouken@3342
|
1728 |
|
slouken@3342
|
1729 |
|
slouken@3342
|
1730 |
# LT_SYS_DLOPEN_SELF
|
slouken@3342
|
1731 |
# ------------------
|
slouken@3342
|
1732 |
AC_DEFUN([LT_SYS_DLOPEN_SELF],
|
slouken@3342
|
1733 |
[m4_require([_LT_HEADER_DLFCN])dnl
|
slouken@3342
|
1734 |
if test "x$enable_dlopen" != xyes; then
|
slouken@3342
|
1735 |
enable_dlopen=unknown
|
slouken@3342
|
1736 |
enable_dlopen_self=unknown
|
slouken@3342
|
1737 |
enable_dlopen_self_static=unknown
|
slouken@3342
|
1738 |
else
|
slouken@3342
|
1739 |
lt_cv_dlopen=no
|
slouken@3342
|
1740 |
lt_cv_dlopen_libs=
|
slouken@3342
|
1741 |
|
slouken@3342
|
1742 |
case $host_os in
|
slouken@3342
|
1743 |
beos*)
|
slouken@3342
|
1744 |
lt_cv_dlopen="load_add_on"
|
slouken@3342
|
1745 |
lt_cv_dlopen_libs=
|
slouken@3342
|
1746 |
lt_cv_dlopen_self=yes
|
slouken@3342
|
1747 |
;;
|
slouken@3342
|
1748 |
|
slouken@3342
|
1749 |
mingw* | pw32* | cegcc*)
|
slouken@3342
|
1750 |
lt_cv_dlopen="LoadLibrary"
|
slouken@3342
|
1751 |
lt_cv_dlopen_libs=
|
slouken@3342
|
1752 |
;;
|
slouken@3342
|
1753 |
|
slouken@3342
|
1754 |
cygwin*)
|
slouken@3342
|
1755 |
lt_cv_dlopen="dlopen"
|
slouken@3342
|
1756 |
lt_cv_dlopen_libs=
|
slouken@3342
|
1757 |
;;
|
slouken@3342
|
1758 |
|
slouken@3342
|
1759 |
darwin*)
|
slouken@3342
|
1760 |
# if libdl is installed we need to link against it
|
slouken@3342
|
1761 |
AC_CHECK_LIB([dl], [dlopen],
|
slouken@3342
|
1762 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
|
slouken@3342
|
1763 |
lt_cv_dlopen="dyld"
|
slouken@3342
|
1764 |
lt_cv_dlopen_libs=
|
slouken@3342
|
1765 |
lt_cv_dlopen_self=yes
|
slouken@3342
|
1766 |
])
|
slouken@3342
|
1767 |
;;
|
slouken@3342
|
1768 |
|
slouken@3342
|
1769 |
*)
|
slouken@3342
|
1770 |
AC_CHECK_FUNC([shl_load],
|
slouken@3342
|
1771 |
[lt_cv_dlopen="shl_load"],
|
slouken@3342
|
1772 |
[AC_CHECK_LIB([dld], [shl_load],
|
slouken@3342
|
1773 |
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
|
slouken@3342
|
1774 |
[AC_CHECK_FUNC([dlopen],
|
slouken@3342
|
1775 |
[lt_cv_dlopen="dlopen"],
|
slouken@3342
|
1776 |
[AC_CHECK_LIB([dl], [dlopen],
|
slouken@3342
|
1777 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
slouken@3342
|
1778 |
[AC_CHECK_LIB([svld], [dlopen],
|
slouken@3342
|
1779 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
slouken@3342
|
1780 |
[AC_CHECK_LIB([dld], [dld_link],
|
slouken@3342
|
1781 |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
|
slouken@3342
|
1782 |
])
|
slouken@3342
|
1783 |
])
|
slouken@3342
|
1784 |
])
|
slouken@3342
|
1785 |
])
|
slouken@3342
|
1786 |
])
|
slouken@3342
|
1787 |
;;
|
slouken@3342
|
1788 |
esac
|
slouken@3342
|
1789 |
|
slouken@3342
|
1790 |
if test "x$lt_cv_dlopen" != xno; then
|
slouken@3342
|
1791 |
enable_dlopen=yes
|
slouken@3342
|
1792 |
else
|
slouken@3342
|
1793 |
enable_dlopen=no
|
slouken@3342
|
1794 |
fi
|
slouken@3342
|
1795 |
|
slouken@3342
|
1796 |
case $lt_cv_dlopen in
|
slouken@3342
|
1797 |
dlopen)
|
slouken@3342
|
1798 |
save_CPPFLAGS="$CPPFLAGS"
|
slouken@3342
|
1799 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
slouken@3342
|
1800 |
|
slouken@3342
|
1801 |
save_LDFLAGS="$LDFLAGS"
|
slouken@3342
|
1802 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
slouken@3342
|
1803 |
|
slouken@3342
|
1804 |
save_LIBS="$LIBS"
|
slouken@3342
|
1805 |
LIBS="$lt_cv_dlopen_libs $LIBS"
|
slouken@3342
|
1806 |
|
slouken@3342
|
1807 |
AC_CACHE_CHECK([whether a program can dlopen itself],
|
slouken@3342
|
1808 |
lt_cv_dlopen_self, [dnl
|
slouken@3342
|
1809 |
_LT_TRY_DLOPEN_SELF(
|
slouken@3342
|
1810 |
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
|
slouken@3342
|
1811 |
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
|
slouken@3342
|
1812 |
])
|
slouken@3342
|
1813 |
|
slouken@3342
|
1814 |
if test "x$lt_cv_dlopen_self" = xyes; then
|
slouken@3342
|
1815 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
slouken@3342
|
1816 |
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
slouken@3342
|
1817 |
lt_cv_dlopen_self_static, [dnl
|
slouken@3342
|
1818 |
_LT_TRY_DLOPEN_SELF(
|
slouken@3342
|
1819 |
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
|
slouken@3342
|
1820 |
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
|
slouken@3342
|
1821 |
])
|
slouken@3342
|
1822 |
fi
|
slouken@3342
|
1823 |
|
slouken@3342
|
1824 |
CPPFLAGS="$save_CPPFLAGS"
|
slouken@3342
|
1825 |
LDFLAGS="$save_LDFLAGS"
|
slouken@3342
|
1826 |
LIBS="$save_LIBS"
|
slouken@3342
|
1827 |
;;
|
slouken@3342
|
1828 |
esac
|
slouken@3342
|
1829 |
|
slouken@3342
|
1830 |
case $lt_cv_dlopen_self in
|
slouken@3342
|
1831 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
slouken@3342
|
1832 |
*) enable_dlopen_self=unknown ;;
|
slouken@3342
|
1833 |
esac
|
slouken@3342
|
1834 |
|
slouken@3342
|
1835 |
case $lt_cv_dlopen_self_static in
|
slouken@3342
|
1836 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
slouken@3342
|
1837 |
*) enable_dlopen_self_static=unknown ;;
|
slouken@3342
|
1838 |
esac
|
slouken@3342
|
1839 |
fi
|
slouken@3342
|
1840 |
_LT_DECL([dlopen_support], [enable_dlopen], [0],
|
slouken@3342
|
1841 |
[Whether dlopen is supported])
|
slouken@3342
|
1842 |
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
|
slouken@3342
|
1843 |
[Whether dlopen of programs is supported])
|
slouken@3342
|
1844 |
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
|
slouken@3342
|
1845 |
[Whether dlopen of statically linked programs is supported])
|
slouken@3342
|
1846 |
])# LT_SYS_DLOPEN_SELF
|
slouken@3342
|
1847 |
|
slouken@3342
|
1848 |
# Old name:
|
slouken@3342
|
1849 |
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
|
slouken@3342
|
1850 |
dnl aclocal-1.4 backwards compatibility:
|
slouken@3342
|
1851 |
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
|
slouken@3342
|
1852 |
|
slouken@3342
|
1853 |
|
slouken@3342
|
1854 |
# _LT_COMPILER_C_O([TAGNAME])
|
slouken@3342
|
1855 |
# ---------------------------
|
slouken@3342
|
1856 |
# Check to see if options -c and -o are simultaneously supported by compiler.
|
slouken@3342
|
1857 |
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
|
slouken@3342
|
1858 |
m4_defun([_LT_COMPILER_C_O],
|
slouken@3342
|
1859 |
[m4_require([_LT_DECL_SED])dnl
|
slouken@3342
|
1860 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
slouken@3342
|
1861 |
m4_require([_LT_TAG_COMPILER])dnl
|
slouken@3342
|
1862 |
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
slouken@3342
|
1863 |
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
slouken@3342
|
1864 |
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
slouken@3342
|
1865 |
$RM -r conftest 2>/dev/null
|
slouken@3342
|
1866 |
mkdir conftest
|
slouken@3342
|
1867 |
cd conftest
|
slouken@3342
|
1868 |
mkdir out
|
slouken@3342
|
1869 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
slouken@3342
|
1870 |
|
slouken@3342
|
1871 |
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
slouken@3342
|
1872 |
# Insert the option either (1) after the last *FLAGS variable, or
|
slouken@3342
|
1873 |
# (2) before a word containing "conftest.", or (3) at the end.
|
slouken@3342
|
1874 |
# Note that $ac_compile itself does not contain backslashes and begins
|
slouken@3342
|
1875 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
slouken@3342
|
1876 |
lt_compile=`echo "$ac_compile" | $SED \
|
slouken@3342
|
1877 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
slouken@3342
|
1878 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
slouken@3342
|
1879 |
-e 's:$: $lt_compiler_flag:'`
|
slouken@3342
|
1880 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
slouken@3342
|
1881 |
(eval "$lt_compile" 2>out/conftest.err)
|
slouken@3342
|
1882 |
ac_status=$?
|
slouken@3342
|
1883 |
cat out/conftest.err >&AS_MESSAGE_LOG_FD
|
slouken@3342
|
1884 |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
slouken@3342
|
1885 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
slouken@3342
|
1886 |
then
|
slouken@3342
|
1887 |
# The compiler can only warn and ignore the option if not recognized
|
slouken@3342
|
1888 |
# So say no if there are warnings
|
slouken@3342
|
1889 |
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
slouken@3342
|
1890 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
slouken@3342
|
1891 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
slouken@3342
|
1892 |
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
slouken@3342
|
1893 |
fi
|
slouken@3342
|
1894 |
fi
|
slouken@3342
|
1895 |
chmod u+w . 2>&AS_MESSAGE_LOG_FD
|
slouken@3342
|
1896 |
$RM conftest*
|
slouken@3342
|
1897 |
# SGI C++ compiler will create directory out/ii_files/ for
|
slouken@3342
|
1898 |
# template instantiation
|
slouken@3342
|
1899 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
slouken@3342
|
1900 |
$RM out/* && rmdir out
|
slouken@3342
|
1901 |
cd ..
|
slouken@3342
|
1902 |
$RM -r conftest
|
slouken@3342
|
1903 |
$RM conftest*
|
slouken@3342
|
1904 |
])
|
slouken@3342
|
1905 |
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
|
slouken@3342
|
1906 |
[Does compiler simultaneously support -c and -o options?])
|
slouken@3342
|
1907 |
])# _LT_COMPILER_C_O
|
slouken@3342
|
1908 |
|
slouken@3342
|
1909 |
|
slouken@3342
|
1910 |
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
|
slouken@3342
|
1911 |
# ----------------------------------
|
slouken@3342
|
1912 |
# Check to see if we can do hard links to lock some files if needed
|
slouken@3342
|
1913 |
m4_defun([_LT_COMPILER_FILE_LOCKS],
|
slouken@3342
|
1914 |
[m4_require([_LT_ENABLE_LOCK])dnl
|
slouken@3342
|
1915 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
slouken@3342
|
1916 |
_LT_COMPILER_C_O([$1])
|
slouken@3342
|
1917 |
|
slouken@3342
|
1918 |
hard_links="nottested"
|
slouken@3342
|
1919 |
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
|
slouken@3342
|
1920 |
# do not overwrite the value of need_locks provided by the user
|
slouken@3342
|
1921 |
AC_MSG_CHECKING([if we can lock with hard links])
|
slouken@3342
|
1922 |
hard_links=yes
|
slouken@3342
|
1923 |
$RM conftest*
|
slouken@3342
|
1924 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
slouken@3342
|
1925 |
touch conftest.a
|
slouken@3342
|
1926 |
ln conftest.a conftest.b 2>&5 || hard_links=no
|
slouken@3342
|
1927 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
slouken@3342
|
1928 |
AC_MSG_RESULT([$hard_links])
|
slouken@3342
|
1929 |
if test "$hard_links" = no; then
|
slouken@3342
|
1930 |
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
|
slouken@3342
|
1931 |
need_locks=warn
|
slouken@3342
|
1932 |
fi
|
slouken@3342
|
1933 |
else
|
slouken@3342
|
1934 |
need_locks=no
|
slouken@3342
|
1935 |
fi
|
slouken@3342
|
1936 |
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
|
slouken@3342
|
1937 |
])# _LT_COMPILER_FILE_LOCKS
|
slouken@3342
|
1938 |
|
slouken@3342
|
1939 |
|
slouken@3342
|
1940 |
# _LT_CHECK_OBJDIR
|
slouken@3342
|
1941 |
# ----------------
|
slouken@3342
|
1942 |
m4_defun([_LT_CHECK_OBJDIR],
|
slouken@3342
|
1943 |
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
|
slouken@3342
|
1944 |
[rm -f .libs 2>/dev/null
|
slouken@3342
|
1945 |
mkdir .libs 2>/dev/null
|
slouken@3342
|
1946 |
if test -d .libs; then
|
slouken@3342
|
1947 |
lt_cv_objdir=.libs
|
slouken@3342
|
1948 |
else
|
slouken@3342
|
1949 |
# MS-DOS does not allow filenames that begin with a dot.
|
slouken@3342
|
1950 |
lt_cv_objdir=_libs
|
slouken@3342
|
1951 |
fi
|
slouken@3342
|
1952 |
rmdir .libs 2>/dev/null])
|
slouken@3342
|
1953 |
objdir=$lt_cv_objdir
|
slouken@3342
|
1954 |
_LT_DECL([], [objdir], [0],
|
slouken@3342
|
1955 |
[The name of the directory that contains temporary libtool files])dnl
|
slouken@3342
|
1956 |
m4_pattern_allow([LT_OBJDIR])dnl
|
slouken@3342
|
1957 |
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
|
slouken@3342
|
1958 |
[Define to the sub-directory in which libtool stores uninstalled libraries.])
|
slouken@3342
|
1959 |
])# _LT_CHECK_OBJDIR
|
slouken@3342
|
1960 |
|
slouken@3342
|
1961 |
|
slouken@3342
|
1962 |
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
|
slouken@3342
|
1963 |
# --------------------------------------
|
slouken@3342
|
1964 |
# Check hardcoding attributes.
|
slouken@3342
|
1965 |
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
|
slouken@3342
|
1966 |
[AC_MSG_CHECKING([how to hardcode library paths into programs])
|
slouken@3342
|
1967 |
_LT_TAGVAR(hardcode_action, $1)=
|
slouken@3342
|
1968 |
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
|
slouken@3342
|
1969 |
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
|
slouken@3342
|
1970 |
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
|
slouken@3342
|
1971 |
|
slouken@3342
|
1972 |
# We can hardcode non-existent directories.
|
slouken@3342
|
1973 |
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
|
slouken@3342
|
1974 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
slouken@3342
|
1975 |
# have to relink, otherwise we might link with an installed library
|
slouken@3342
|
1976 |
# when we should be linking with a yet-to-be-installed one
|
slouken@3342
|
1977 |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
|
slouken@3342
|
1978 |
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
|
slouken@3342
|
1979 |
# Linking always hardcodes the temporary library directory.
|
slouken@3342
|
1980 |
_LT_TAGVAR(hardcode_action, $1)=relink
|
slouken@3342
|
1981 |
else
|
slouken@3342
|
1982 |
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
slouken@3342
|
1983 |
_LT_TAGVAR(hardcode_action, $1)=immediate
|
slouken@3342
|
1984 |
fi
|
slouken@3342
|
1985 |
else
|
slouken@3342
|
1986 |
# We cannot hardcode anything, or else we can only hardcode existing
|
slouken@3342
|
1987 |
# directories.
|
slouken@3342
|
1988 |
_LT_TAGVAR(hardcode_action, $1)=unsupported
|
slouken@3342
|
1989 |
fi
|
slouken@3342
|
1990 |
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
|
slouken@3342
|
1991 |
|
slouken@3342
|
1992 |
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
|
slouken@3342
|
1993 |
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
|
slouken@3342
|
1994 |
# Fast installation is not supported
|
slouken@3342
|
1995 |
enable_fast_install=no
|
slouken@3342
|
1996 |
elif test "$shlibpath_overrides_runpath" = yes ||
|
slouken@3342
|
1997 |
test "$enable_shared" = no; then
|
slouken@3342
|
1998 |
# Fast installation is not necessary
|
slouken@3342
|
1999 |
enable_fast_install=needless
|
slouken@3342
|
2000 |
fi
|
slouken@3342
|
2001 |
_LT_TAGDECL([], [hardcode_action], [0],
|
slouken@3342
|
2002 |
[How to hardcode a shared library path into an executable])
|
slouken@3342
|
2003 |
])# _LT_LINKER_HARDCODE_LIBPATH
|
slouken@3342
|
2004 |
|
slouken@3342
|
2005 |
|
slouken@3342
|
2006 |
# _LT_CMD_STRIPLIB
|
slouken@3342
|
2007 |
# ----------------
|
slouken@3342
|
2008 |
m4_defun([_LT_CMD_STRIPLIB],
|
slouken@3342
|
2009 |
[m4_require([_LT_DECL_EGREP])
|
slouken@3342
|
2010 |
striplib=
|
slouken@3342
|
2011 |
old_striplib=
|
slouken@3342
|
2012 |
AC_MSG_CHECKING([whether stripping libraries is possible])
|
slouken@3342
|
2013 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
slouken@3342
|
2014 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
slouken@3342
|
2015 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
slouken@3342
|
2016 |
AC_MSG_RESULT([yes])
|
slouken@3342
|
2017 |
else
|
slouken@3342
|
2018 |
# FIXME - insert some real tests, host_os isn't really good enough
|
slouken@3342
|
2019 |
case $host_os in
|
slouken@3342
|
2020 |
darwin*)
|
slouken@3342
|
2021 |
if test -n "$STRIP" ; then
|
slouken@3342
|
2022 |
striplib="$STRIP -x"
|
slouken@3342
|
2023 |
old_striplib="$STRIP -S"
|
slouken@3342
|
2024 |
AC_MSG_RESULT([yes])
|
slouken@3342
|
2025 |
else
|
slouken@3342
|
2026 |
AC_MSG_RESULT([no])
|
slouken@3342
|
2027 |
fi
|
slouken@3342
|
2028 |
;;
|
slouken@3342
|
2029 |
*)
|
slouken@3342
|
2030 |
AC_MSG_RESULT([no])
|
slouken@3342
|
2031 |
;;
|
slouken@3342
|
2032 |
esac
|
slouken@3342
|
2033 |
fi
|
slouken@3342
|
2034 |
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
|
slouken@3342
|
2035 |
_LT_DECL([], [striplib], [1])
|
slouken@3342
|
2036 |
])# _LT_CMD_STRIPLIB
|
slouken@3342
|
2037 |
|
slouken@3342
|
2038 |
|
slouken@3342
|
2039 |
# _LT_SYS_DYNAMIC_LINKER([TAG])
|
slouken@3342
|
2040 |
# -----------------------------
|
slouken@3342
|
2041 |
# PORTME Fill in your ld.so characteristics
|
slouken@3342
|
2042 |
m4_defun([_LT_SYS_DYNAMIC_LINKER],
|
slouken@3342
|
2043 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
slouken@3342
|
2044 |
m4_require([_LT_DECL_EGREP])dnl
|
slouken@3342
|
2045 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
slouken@3342
|
2046 |
m4_require([_LT_DECL_OBJDUMP])dnl
|
slouken@3342
|
2047 |
m4_require([_LT_DECL_SED])dnl
|
slouken@3342
|
2048 |
AC_MSG_CHECKING([dynamic linker characteristics])
|
slouken@3342
|
2049 |
m4_if([$1],
|
slouken@3342
|
2050 |
[], [
|
slouken@3342
|
2051 |
if test "$GCC" = yes; then
|
slouken@3342
|
2052 |
case $host_os in
|
slouken@3342
|
2053 |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
slouken@3342
|
2054 |
*) lt_awk_arg="/^libraries:/" ;;
|
slouken@3342
|
2055 |
esac
|
slouken@3342
|
2056 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
slouken@3342
|
2057 |
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
|
slouken@3342
|
2058 |
# if the path contains ";" then we assume it to be the separator
|
slouken@3342
|
2059 |
# otherwise default to the standard path separator (i.e. ":") - it is
|
slouken@3342
|
2060 |
# assumed that no part of a normal pathname contains ";" but that should
|
slouken@3342
|
2061 |
# okay in the real world where ";" in dirpaths is itself problematic.
|
slouken@3342
|
2062 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
|
slouken@3342
|
2063 |
else
|
slouken@3342
|
2064 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
slouken@3342
|
2065 |
fi
|
slouken@3342
|
2066 |
# Ok, now we have the path, separated by spaces, we can step through it
|
slouken@3342
|
2067 |
# and add multilib dir if necessary.
|
slouken@3342
|
2068 |
lt_tmp_lt_search_path_spec=
|
slouken@3342
|
2069 |
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
slouken@3342
|
2070 |
for lt_sys_path in $lt_search_path_spec; do
|
slouken@3342
|
2071 |
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
slouken@3342
|
2072 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
slouken@3342
|
2073 |
else
|
slouken@3342
|
2074 |
test -d "$lt_sys_path" && \
|
slouken@3342
|
2075 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
slouken@3342
|
2076 |
fi
|
slouken@3342
|
2077 |
done
|
slouken@3342
|
2078 |
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
|
slouken@3342
|
2079 |
BEGIN {RS=" "; FS="/|\n";} {
|
slouken@3342
|
2080 |
lt_foo="";
|
slouken@3342
|
2081 |
lt_count=0;
|
slouken@3342
|
2082 |
for (lt_i = NF; lt_i > 0; lt_i--) {
|
slouken@3342
|
2083 |
if ($lt_i != "" && $lt_i != ".") {
|
slouken@3342
|
2084 |
if ($lt_i == "..") {
|
slouken@3342
|
2085 |
lt_count++;
|
slouken@3342
|
2086 |
} else {
|
slouken@3342
|
2087 |
if (lt_count == 0) {
|
slouken@3342
|
2088 |
lt_foo="/" $lt_i lt_foo;
|
slouken@3342
|
2089 |
} else {
|
slouken@3342
|
2090 |
lt_count--;
|
slouken@3342
|
2091 |
}
|
slouken@3342
|
2092 |
}
|
slouken@3342
|
2093 |
}
|
slouken@3342
|
2094 |
}
|
slouken@3342
|
2095 |
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
|
slouken@3342
|
2096 |
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
|
slouken@3342
|
2097 |
}'`
|
slouken@3342
|
2098 |
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
|
slouken@3342
|
2099 |
else
|
slouken@3342
|
2100 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
slouken@3342
|
2101 |
fi])
|
slouken@3342
|
2102 |
library_names_spec=
|
slouken@3342
|
2103 |
libname_spec='lib$name'
|
slouken@3342
|
2104 |
soname_spec=
|
slouken@3342
|
2105 |
shrext_cmds=".so"
|
slouken@3342
|
2106 |
postinstall_cmds=
|
slouken@3342
|
2107 |
postuninstall_cmds=
|
slouken@3342
|
2108 |
finish_cmds=
|
slouken@3342
|
2109 |
finish_eval=
|
slouken@3342
|
2110 |
shlibpath_var=
|
slouken@3342
|
2111 |
shlibpath_overrides_runpath=unknown
|
slouken@3342
|
2112 |
version_type=none
|
slouken@3342
|
2113 |
dynamic_linker="$host_os ld.so"
|
slouken@3342
|
2114 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
slouken@3342
|
2115 |
need_lib_prefix=unknown
|
slouken@3342
|
2116 |
hardcode_into_libs=no
|
slouken@3342
|
2117 |
|
slouken@3342
|
2118 |
# when you set need_version to no, make sure it does not cause -set_version
|
slouken@3342
|
2119 |
# flags to be left without arguments
|
slouken@3342
|
2120 |
need_version=unknown
|
slouken@3342
|
2121 |
|
slouken@3342
|
2122 |
case $host_os in
|
slouken@3342
|
2123 |
aix3*)
|
slouken@3342
|
2124 |
version_type=linux
|
slouken@3342
|
2125 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
slouken@3342
|
2126 |
shlibpath_var=LIBPATH
|
slouken@3342
|
2127 |
|
slouken@3342
|
2128 |
# AIX 3 has no versioning support, so we append a major version to the name.
|
slouken@3342
|
2129 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2130 |
;;
|
slouken@3342
|
2131 |
|
slouken@3342
|
2132 |
aix[[4-9]]*)
|
slouken@3342
|
2133 |
version_type=linux
|
slouken@3342
|
2134 |
need_lib_prefix=no
|
slouken@3342
|
2135 |
need_version=no
|
slouken@3342
|
2136 |
hardcode_into_libs=yes
|
slouken@3342
|
2137 |
if test "$host_cpu" = ia64; then
|
slouken@3342
|
2138 |
# AIX 5 supports IA64
|
slouken@3342
|
2139 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
slouken@3342
|
2140 |
shlibpath_var=LD_LIBRARY_PATH
|
slouken@3342
|
2141 |
else
|
slouken@3342
|
2142 |
# With GCC up to 2.95.x, collect2 would create an import file
|
slouken@3342
|
2143 |
# for dependence libraries. The import file would start with
|
slouken@3342
|
2144 |
# the line `#! .'. This would cause the generated library to
|
slouken@3342
|
2145 |
# depend on `.', always an invalid library. This was fixed in
|
slouken@3342
|
2146 |
# development snapshots of GCC prior to 3.0.
|
slouken@3342
|
2147 |
case $host_os in
|
slouken@3342
|
2148 |
aix4 | aix4.[[01]] | aix4.[[01]].*)
|
slouken@3342
|
2149 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
slouken@3342
|
2150 |
echo ' yes '
|
slouken@3342
|
2151 |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
|
slouken@3342
|
2152 |
:
|
slouken@3342
|
2153 |
else
|
slouken@3342
|
2154 |
can_build_shared=no
|
slouken@3342
|
2155 |
fi
|
slouken@3342
|
2156 |
;;
|
slouken@3342
|
2157 |
esac
|
slouken@3342
|
2158 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
slouken@3342
|
2159 |
# soname into executable. Probably we can add versioning support to
|
slouken@3342
|
2160 |
# collect2, so additional links can be useful in future.
|
slouken@3342
|
2161 |
if test "$aix_use_runtimelinking" = yes; then
|
slouken@3342
|
2162 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
slouken@3342
|
2163 |
# instead of lib<name>.a to let people know that these are not
|
slouken@3342
|
2164 |
# typical AIX shared libraries.
|
slouken@3342
|
2165 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
slouken@3342
|
2166 |
else
|
slouken@3342
|
2167 |
# We preserve .a as extension for shared libraries through AIX4.2
|
slouken@3342
|
2168 |
# and later when we are not doing run time linking.
|
slouken@3342
|
2169 |
library_names_spec='${libname}${release}.a $libname.a'
|
slouken@3342
|
2170 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2171 |
fi
|
slouken@3342
|
2172 |
shlibpath_var=LIBPATH
|
slouken@3342
|
2173 |
fi
|
slouken@3342
|
2174 |
;;
|
slouken@3342
|
2175 |
|
slouken@3342
|
2176 |
amigaos*)
|
slouken@3342
|
2177 |
case $host_cpu in
|
slouken@3342
|
2178 |
powerpc)
|
slouken@3342
|
2179 |
# Since July 2007 AmigaOS4 officially supports .so libraries.
|
slouken@3342
|
2180 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
slouken@3342
|
2181 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
slouken@3342
|
2182 |
;;
|
slouken@3342
|
2183 |
m68k)
|
slouken@3342
|
2184 |
library_names_spec='$libname.ixlibrary $libname.a'
|
slouken@3342
|
2185 |
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
slouken@3342
|
2186 |
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'
|
slouken@3342
|
2187 |
;;
|
slouken@3342
|
2188 |
esac
|
slouken@3342
|
2189 |
;;
|
slouken@3342
|
2190 |
|
slouken@3342
|
2191 |
beos*)
|
slouken@3342
|
2192 |
library_names_spec='${libname}${shared_ext}'
|
slouken@3342
|
2193 |
dynamic_linker="$host_os ld.so"
|
slouken@3342
|
2194 |
shlibpath_var=LIBRARY_PATH
|
slouken@3342
|
2195 |
;;
|
slouken@3342
|
2196 |
|
slouken@3342
|
2197 |
bsdi[[45]]*)
|
slouken@3342
|
2198 |
version_type=linux
|
slouken@3342
|
2199 |
need_version=no
|
slouken@3342
|
2200 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
slouken@3342
|
2201 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2202 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
slouken@3342
|
2203 |
shlibpath_var=LD_LIBRARY_PATH
|
slouken@3342
|
2204 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
slouken@3342
|
2205 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
slouken@3342
|
2206 |
# the default ld.so.conf also contains /usr/contrib/lib and
|
slouken@3342
|
2207 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
slouken@3342
|
2208 |
# libtool to hard-code these into programs
|
slouken@3342
|
2209 |
;;
|
slouken@3342
|
2210 |
|
slouken@3342
|
2211 |
cygwin* | mingw* | pw32* | cegcc*)
|
slouken@3342
|
2212 |
version_type=windows
|
slouken@3342
|
2213 |
shrext_cmds=".dll"
|
slouken@3342
|
2214 |
need_version=no
|
slouken@3342
|
2215 |
need_lib_prefix=no
|
slouken@3342
|
2216 |
|
slouken@3342
|
2217 |
case $GCC,$host_os in
|
slouken@3342
|
2218 |
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
slouken@3342
|
2219 |
library_names_spec='$libname.dll.a'
|
slouken@3342
|
2220 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
slouken@3342
|
2221 |
postinstall_cmds='base_file=`basename \${file}`~
|
slouken@3342
|
2222 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
slouken@3342
|
2223 |
dldir=$destdir/`dirname \$dlpath`~
|
slouken@3342
|
2224 |
test -d \$dldir || mkdir -p \$dldir~
|
slouken@3342
|
2225 |
$install_prog $dir/$dlname \$dldir/$dlname~
|
slouken@3342
|
2226 |
chmod a+x \$dldir/$dlname~
|
slouken@3342
|
2227 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
slouken@3342
|
2228 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
slouken@3342
|
2229 |
fi'
|
slouken@3342
|
2230 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
slouken@3342
|
2231 |
dlpath=$dir/\$dldll~
|
slouken@3342
|
2232 |
$RM \$dlpath'
|
slouken@3342
|
2233 |
shlibpath_overrides_runpath=yes
|
slouken@3342
|
2234 |
|
slouken@3342
|
2235 |
case $host_os in
|
slouken@3342
|
2236 |
cygwin*)
|
slouken@3342
|
2237 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
slouken@3342
|
2238 |
#soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
slouken@3342
|
2239 |
soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
|
slouken@3342
|
2240 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
slouken@3342
|
2241 |
;;
|
slouken@3342
|
2242 |
mingw* | cegcc*)
|
slouken@3342
|
2243 |
# MinGW DLLs use traditional 'lib' prefix
|
slouken@3342
|
2244 |
#soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
slouken@3342
|
2245 |
soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
|
slouken@3342
|
2246 |
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
slouken@3342
|
2247 |
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
|
slouken@3342
|
2248 |
# It is most probably a Windows format PATH printed by
|
slouken@3342
|
2249 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
slouken@3342
|
2250 |
# path with ; separators, and with drive letters. We can handle the
|
slouken@3342
|
2251 |
# drive letters (cygwin fileutils understands them), so leave them,
|
slouken@3342
|
2252 |
# especially as we might pass files found there to a mingw objdump,
|
slouken@3342
|
2253 |
# which wouldn't understand a cygwinified path. Ahh.
|
slouken@3342
|
2254 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
slouken@3342
|
2255 |
else
|
slouken@3342
|
2256 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
slouken@3342
|
2257 |
fi
|
slouken@3342
|
2258 |
;;
|
slouken@3342
|
2259 |
pw32*)
|
slouken@3342
|
2260 |
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
slouken@3342
|
2261 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
slouken@3342
|
2262 |
;;
|
slouken@3342
|
2263 |
esac
|
slouken@3342
|
2264 |
;;
|
slouken@3342
|
2265 |
|
slouken@3342
|
2266 |
*)
|
slouken@3342
|
2267 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
slouken@3342
|
2268 |
;;
|
slouken@3342
|
2269 |
esac
|
slouken@3342
|
2270 |
dynamic_linker='Win32 ld.exe'
|
slouken@3342
|
2271 |
# FIXME: first we should search . and the directory the executable is in
|
slouken@3342
|
2272 |
shlibpath_var=PATH
|
slouken@3342
|
2273 |
;;
|
slouken@3342
|
2274 |
|
slouken@3342
|
2275 |
darwin* | rhapsody*)
|
slouken@3342
|
2276 |
dynamic_linker="$host_os dyld"
|
slouken@3342
|
2277 |
version_type=darwin
|
slouken@3342
|
2278 |
need_lib_prefix=no
|
slouken@3342
|
2279 |
need_version=no
|
slouken@3342
|
2280 |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
slouken@3342
|
2281 |
soname_spec='${libname}${release}${major}$shared_ext'
|
slouken@3342
|
2282 |
shlibpath_overrides_runpath=yes
|
slouken@3342
|
2283 |
shlibpath_var=DYLD_LIBRARY_PATH
|
slouken@3342
|
2284 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
slouken@3342
|
2285 |
m4_if([$1], [],[
|
slouken@3342
|
2286 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
|
slouken@3342
|
2287 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
slouken@3342
|
2288 |
;;
|
slouken@3342
|
2289 |
|
slouken@3342
|
2290 |
dgux*)
|
slouken@3342
|
2291 |
version_type=linux
|
slouken@3342
|
2292 |
need_lib_prefix=no
|
slouken@3342
|
2293 |
need_version=no
|
slouken@3342
|
2294 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
slouken@3342
|
2295 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2296 |
shlibpath_var=LD_LIBRARY_PATH
|
slouken@3342
|
2297 |
;;
|
slouken@3342
|
2298 |
|
slouken@3342
|
2299 |
freebsd1*)
|
slouken@3342
|
2300 |
dynamic_linker=no
|
slouken@3342
|
2301 |
;;
|
slouken@3342
|
2302 |
|
slouken@3342
|
2303 |
freebsd* | dragonfly*)
|
slouken@3342
|
2304 |
# DragonFly does not have aout. When/if they implement a new
|
slouken@3342
|
2305 |
# versioning mechanism, adjust this.
|
slouken@3342
|
2306 |
if test -x /usr/bin/objformat; then
|
slouken@3342
|
2307 |
objformat=`/usr/bin/objformat`
|
slouken@3342
|
2308 |
else
|
slouken@3342
|
2309 |
case $host_os in
|
slouken@3342
|
2310 |
freebsd[[123]]*) objformat=aout ;;
|
slouken@3342
|
2311 |
*) objformat=elf ;;
|
slouken@3342
|
2312 |
esac
|
slouken@3342
|
2313 |
fi
|
slouken@3342
|
2314 |
version_type=freebsd-$objformat
|
slouken@3342
|
2315 |
case $version_type in
|
slouken@3342
|
2316 |
freebsd-elf*)
|
slouken@3342
|
2317 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
slouken@3342
|
2318 |
need_version=no
|
slouken@3342
|
2319 |
need_lib_prefix=no
|
slouken@3342
|
2320 |
;;
|
slouken@3342
|
2321 |
freebsd-*)
|
slouken@3342
|
2322 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
slouken@3342
|
2323 |
need_version=yes
|
slouken@3342
|
2324 |
;;
|
slouken@3342
|
2325 |
esac
|
slouken@3342
|
2326 |
shlibpath_var=LD_LIBRARY_PATH
|
slouken@3342
|
2327 |
case $host_os in
|
slouken@3342
|
2328 |
freebsd2*)
|
slouken@3342
|
2329 |
shlibpath_overrides_runpath=yes
|
slouken@3342
|
2330 |
;;
|
slouken@3342
|
2331 |
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
slouken@3342
|
2332 |
shlibpath_overrides_runpath=yes
|
slouken@3342
|
2333 |
hardcode_into_libs=yes
|
slouken@3342
|
2334 |
;;
|
slouken@3342
|
2335 |
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
|
slouken@3342
|
2336 |
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
|
slouken@3342
|
2337 |
shlibpath_overrides_runpath=no
|
slouken@3342
|
2338 |
hardcode_into_libs=yes
|
slouken@3342
|
2339 |
;;
|
slouken@3342
|
2340 |
*) # from 4.6 on, and DragonFly
|
slouken@3342
|
2341 |
shlibpath_overrides_runpath=yes
|
slouken@3342
|
2342 |
hardcode_into_libs=yes
|
slouken@3342
|
2343 |
;;
|
slouken@3342
|
2344 |
esac
|
slouken@3342
|
2345 |
;;
|
slouken@3342
|
2346 |
|
slouken@3342
|
2347 |
gnu*)
|
slouken@3342
|
2348 |
version_type=linux
|
slouken@3342
|
2349 |
need_lib_prefix=no
|
slouken@3342
|
2350 |
need_version=no
|
slouken@3342
|
2351 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
slouken@3342
|
2352 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2353 |
shlibpath_var=LD_LIBRARY_PATH
|
slouken@3342
|
2354 |
hardcode_into_libs=yes
|
slouken@3342
|
2355 |
;;
|
slouken@3342
|
2356 |
|
slouken@3342
|
2357 |
hpux9* | hpux10* | hpux11*)
|
slouken@3342
|
2358 |
# Give a soname corresponding to the major version so that dld.sl refuses to
|
slouken@3342
|
2359 |
# link against other versions.
|
slouken@3342
|
2360 |
version_type=sunos
|
slouken@3342
|
2361 |
need_lib_prefix=no
|
slouken@3342
|
2362 |
need_version=no
|
slouken@3342
|
2363 |
case $host_cpu in
|
slouken@3342
|
2364 |
ia64*)
|
slouken@3342
|
2365 |
shrext_cmds='.so'
|
slouken@3342
|
2366 |
hardcode_into_libs=yes
|
slouken@3342
|
2367 |
dynamic_linker="$host_os dld.so"
|
slouken@3342
|
2368 |
shlibpath_var=LD_LIBRARY_PATH
|
slouken@3342
|
2369 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
slouken@3342
|
2370 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
slouken@3342
|
2371 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2372 |
if test "X$HPUX_IA64_MODE" = X32; then
|
slouken@3342
|
2373 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
slouken@3342
|
2374 |
else
|
slouken@3342
|
2375 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
slouken@3342
|
2376 |
fi
|
slouken@3342
|
2377 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
slouken@3342
|
2378 |
;;
|
slouken@3342
|
2379 |
hppa*64*)
|
slouken@3342
|
2380 |
shrext_cmds='.sl'
|
slouken@3342
|
2381 |
hardcode_into_libs=yes
|
slouken@3342
|
2382 |
dynamic_linker="$host_os dld.sl"
|
slouken@3342
|
2383 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
slouken@3342
|
2384 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
slouken@3342
|
2385 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
slouken@3342
|
2386 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2387 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
slouken@3342
|
2388 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
slouken@3342
|
2389 |
;;
|
slouken@3342
|
2390 |
*)
|
slouken@3342
|
2391 |
shrext_cmds='.sl'
|
slouken@3342
|
2392 |
dynamic_linker="$host_os dld.sl"
|
slouken@3342
|
2393 |
shlibpath_var=SHLIB_PATH
|
slouken@3342
|
2394 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
slouken@3342
|
2395 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
slouken@3342
|
2396 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2397 |
;;
|
slouken@3342
|
2398 |
esac
|
slouken@3342
|
2399 |
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
slouken@3342
|
2400 |
postinstall_cmds='chmod 555 $lib'
|
slouken@3342
|
2401 |
;;
|
slouken@3342
|
2402 |
|
slouken@3342
|
2403 |
interix[[3-9]]*)
|
slouken@3342
|
2404 |
version_type=linux
|
slouken@3342
|
2405 |
need_lib_prefix=no
|
slouken@3342
|
2406 |
need_version=no
|
slouken@3342
|
2407 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
slouken@3342
|
2408 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2409 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
slouken@3342
|
2410 |
shlibpath_var=LD_LIBRARY_PATH
|
slouken@3342
|
2411 |
shlibpath_overrides_runpath=no
|
slouken@3342
|
2412 |
hardcode_into_libs=yes
|
slouken@3342
|
2413 |
;;
|
slouken@3342
|
2414 |
|
slouken@3342
|
2415 |
irix5* | irix6* | nonstopux*)
|
slouken@3342
|
2416 |
case $host_os in
|
slouken@3342
|
2417 |
nonstopux*) version_type=nonstopux ;;
|
slouken@3342
|
2418 |
*)
|
slouken@3342
|
2419 |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
slouken@3342
|
2420 |
version_type=linux
|
slouken@3342
|
2421 |
else
|
slouken@3342
|
2422 |
version_type=irix
|
slouken@3342
|
2423 |
fi ;;
|
slouken@3342
|
2424 |
esac
|
slouken@3342
|
2425 |
need_lib_prefix=no
|
slouken@3342
|
2426 |
need_version=no
|
slouken@3342
|
2427 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2428 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
slouken@3342
|
2429 |
case $host_os in
|
slouken@3342
|
2430 |
irix5* | nonstopux*)
|
slouken@3342
|
2431 |
libsuff= shlibsuff=
|
slouken@3342
|
2432 |
;;
|
slouken@3342
|
2433 |
*)
|
slouken@3342
|
2434 |
case $LD in # libtool.m4 will add one of these switches to LD
|
slouken@3342
|
2435 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
slouken@3342
|
2436 |
libsuff= shlibsuff= libmagic=32-bit;;
|
slouken@3342
|
2437 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
slouken@3342
|
2438 |
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
slouken@3342
|
2439 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
slouken@3342
|
2440 |
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
slouken@3342
|
2441 |
*) libsuff= shlibsuff= libmagic=never-match;;
|
slouken@3342
|
2442 |
esac
|
slouken@3342
|
2443 |
;;
|
slouken@3342
|
2444 |
esac
|
slouken@3342
|
2445 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
slouken@3342
|
2446 |
shlibpath_overrides_runpath=no
|
slouken@3342
|
2447 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
slouken@3342
|
2448 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
slouken@3342
|
2449 |
hardcode_into_libs=yes
|
slouken@3342
|
2450 |
;;
|
slouken@3342
|
2451 |
|
slouken@3342
|
2452 |
# No shared lib support for Linux oldld, aout, or coff.
|
slouken@3342
|
2453 |
linux*oldld* | linux*aout* | linux*coff*)
|
slouken@3342
|
2454 |
dynamic_linker=no
|
slouken@3342
|
2455 |
;;
|
slouken@3342
|
2456 |
|
slouken@3342
|
2457 |
# This must be Linux ELF.
|
slouken@3342
|
2458 |
linux* | k*bsd*-gnu)
|
slouken@3342
|
2459 |
version_type=linux
|
slouken@3342
|
2460 |
need_lib_prefix=no
|
slouken@3342
|
2461 |
need_version=no
|
slouken@3342
|
2462 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
slouken@3342
|
2463 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2464 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
slouken@3342
|
2465 |
shlibpath_var=LD_LIBRARY_PATH
|
slouken@3342
|
2466 |
shlibpath_overrides_runpath=no
|
slouken@3342
|
2467 |
# Some binutils ld are patched to set DT_RUNPATH
|
slouken@3342
|
2468 |
save_LDFLAGS=$LDFLAGS
|
slouken@3342
|
2469 |
save_libdir=$libdir
|
slouken@3342
|
2470 |
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
|
slouken@3342
|
2471 |
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
|
slouken@3342
|
2472 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
slouken@3342
|
2473 |
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
|
slouken@3342
|
2474 |
[shlibpath_overrides_runpath=yes])])
|
slouken@3342
|
2475 |
LDFLAGS=$save_LDFLAGS
|
slouken@3342
|
2476 |
libdir=$save_libdir
|
slouken@3342
|
2477 |
|
slouken@3342
|
2478 |
# This implies no fast_install, which is unacceptable.
|
slouken@3342
|
2479 |
# Some rework will be needed to allow for fast_install
|
slouken@3342
|
2480 |
# before this can be enabled.
|
slouken@3342
|
2481 |
hardcode_into_libs=yes
|
slouken@3342
|
2482 |
|
slouken@3342
|
2483 |
# Append ld.so.conf contents to the search path
|
slouken@3342
|
2484 |
if test -f /etc/ld.so.conf; then
|
slouken@3342
|
2485 |
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' ' '`
|
slouken@3342
|
2486 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
slouken@3342
|
2487 |
fi
|
slouken@3342
|
2488 |
|
slouken@3342
|
2489 |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
slouken@3342
|
2490 |
# powerpc, because MkLinux only supported shared libraries with the
|
slouken@3342
|
2491 |
# GNU dynamic linker. Since this was broken with cross compilers,
|
slouken@3342
|
2492 |
# most powerpc-linux boxes support dynamic linking these days and
|
slouken@3342
|
2493 |
# people can always --disable-shared, the test was removed, and we
|
slouken@3342
|
2494 |
# assume the GNU/Linux dynamic linker is in use.
|
slouken@3342
|
2495 |
dynamic_linker='GNU/Linux ld.so'
|
slouken@3342
|
2496 |
;;
|
slouken@3342
|
2497 |
|
slouken@3342
|
2498 |
netbsd*)
|
slouken@3342
|
2499 |
version_type=sunos
|
slouken@3342
|
2500 |
need_lib_prefix=no
|
slouken@3342
|
2501 |
need_version=no
|
slouken@3342
|
2502 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
slouken@3342
|
2503 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
slouken@3342
|
2504 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
slouken@3342
|
2505 |
dynamic_linker='NetBSD (a.out) ld.so'
|
slouken@3342
|
2506 |
else
|
slouken@3342
|
2507 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
slouken@3342
|
2508 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2509 |
dynamic_linker='NetBSD ld.elf_so'
|
slouken@3342
|
2510 |
fi
|
slouken@3342
|
2511 |
shlibpath_var=LD_LIBRARY_PATH
|
slouken@3342
|
2512 |
shlibpath_overrides_runpath=yes
|
slouken@3342
|
2513 |
hardcode_into_libs=yes
|
slouken@3342
|
2514 |
;;
|
slouken@3342
|
2515 |
|
slouken@3342
|
2516 |
newsos6)
|
slouken@3342
|
2517 |
version_type=linux
|
slouken@3342
|
2518 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
slouken@3342
|
2519 |
shlibpath_var=LD_LIBRARY_PATH
|
slouken@3342
|
2520 |
shlibpath_overrides_runpath=yes
|
slouken@3342
|
2521 |
;;
|
slouken@3342
|
2522 |
|
slouken@3342
|
2523 |
*nto* | *qnx*)
|
slouken@3342
|
2524 |
version_type=qnx
|
slouken@3342
|
2525 |
need_lib_prefix=no
|
slouken@3342
|
2526 |
need_version=no
|
slouken@3342
|
2527 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
slouken@3342
|
2528 |
soname_spec='${libname}${release}${shared_ext}$major'
|
slouken@3342
|
2529 |
shlibpath_var=LD_LIBRARY_PATH
|
slouken@3342
|
2530 |
shlibpath_overrides_runpath=no
|
slouken@3342
|
2531 |
hardcode_into_libs=yes
|
slouken@3342
|
2532 |
dynamic_linker='ldqnx.so'
|
slouken@3342
|
2533 |
;;
|
slouken@3342
|
2534 |
|
slouken@3342
|
2535 |
openbsd*)
|
slouken@3342
|
2536 |
version_type=sunos
|
slouken@3342
|
2537 |
sys_lib_dlsearch_path_spec="/usr/lib"
|
slouken@3342
|
2538 |
need_lib_prefix=no
|
slouken@3342
|
2539 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
slouken@3342
|
2540 |
case $host_os in
|
slouken@3342
|
2541 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
slouken@3342
|
2542 |
*) need_version=no ;;
|
slouken@3342
|
2543 |
esac
|
slouken@3342
|
2544 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
slouken@3342
|
2545 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
slouken@3342
|
2546 |
shlibpath_var=LD_LIBRARY_PATH
|
slouken@3342
|
2547 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
slouken@3342
|
2548 |
case $host_os in
|
slouken@3342
|
2549 |
openbsd2.[[89]] | openbsd2.[[89]].*)
|
slouken@3342
|
2550 |
shlibpath_overrides_runpath=no
|
slouken@3342
|
2551 |
;;
|
slouken@3342
|
2552 |
*)
|
slouken@3342
|
2553 |
shlibpath_overrides_runpath=yes
|
slouken@3342
|
2554 |
;;
|
slouken@3342
|
2555 |
esac
|
slouken@3342
|
2556 |
else
|
slouken@3342
|
2557 |
shlibpath_overrides_runpath=yes
|
slouken@3342
|
2558 |
fi
|
slouken@3342
|
2559 |
;;
|
slouken@3342
|
2560 |
|
slouken@3342
|
2561 |
os2*)
|
slouken@3342
|
2562 |
libname_spec='$name'
|
slouken@3342
|
2563 |
shrext_cmds=".dll"
|
slouken@3342
|
2564 |
need_lib_prefix=no
|
slouken@3342
|
2565 |
library_names_spec='$libname${shared_ext} $libname.a'
|
slouken@3342
|
2566 |
dynamic_linker='OS/2 ld.exe'
|
slouken@3342
|
2567 |
shlibpath_var=LIBPATH
|
slouken@3342
|
2568 |
;;
|
slouken@3342
|
2569 |
|
slouken@3342
|
2570 |
osf3* | osf4* | osf5*)
|
slouken@3342
|
2571 |
version_type=osf
|
slouken@3342
|
2572 |
need_lib_prefix=no
|
slouken@3342
|
2573 |
need_version=no
|
|