| 1 |
# generated automatically by aclocal 1.7.9 -*- Autoconf -*- |
| 2 |
|
| 3 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 |
| 4 |
# Free Software Foundation, Inc. |
| 5 |
# This file is free software; the Free Software Foundation |
| 6 |
# gives unlimited permission to copy and/or distribute it, |
| 7 |
# with or without modifications, as long as this notice is preserved. |
| 8 |
|
| 9 |
# This program is distributed in the hope that it will be useful, |
| 10 |
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
| 11 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 12 |
# PARTICULAR PURPOSE. |
| 13 |
|
| 14 |
|
| 15 |
AC_DEFUN([CF_CHECK_PYTHON], |
| 16 |
[ |
| 17 |
PYTHON_LIB="" |
| 18 |
PY_LIBS="" |
| 19 |
PY_INCLUDES="" |
| 20 |
dir="" |
| 21 |
if test "x$PYTHON_HOME" != "x"; then |
| 22 |
for dir in $PYTHON_HOME/include/python{,2.5,2.4,2.3,2.2,2.1,2.0} ; do |
| 23 |
AC_CHECK_HEADERS(["$dir/Python.h"],[cf_have_python_h=yes]) |
| 24 |
if test "x$cf_have_python_h" != "x" ; then |
| 25 |
PY_INCLUDES="-I$dir" |
| 26 |
break |
| 27 |
fi |
| 28 |
done |
| 29 |
PYTHON_SEARCH=$PYTHON |
| 30 |
else |
| 31 |
AC_CHECK_HEADERS([Python.h],[cf_have_python_h=yes]) |
| 32 |
if test "x$cf_have_python_h" = "x" ; then |
| 33 |
for dir in /usr{,/local}/include/python{,2.5,2.4,2.3,2.2,2.1,2.0} ; do |
| 34 |
AC_CHECK_HEADERS(["$dir/Python.h"],[cf_have_python_h=yes]) |
| 35 |
if test "x$cf_have_python_h" != "x" ; then |
| 36 |
PY_INCLUDES="-I$dir" |
| 37 |
break |
| 38 |
fi |
| 39 |
done |
| 40 |
else |
| 41 |
PY_INCLUDES="" |
| 42 |
fi |
| 43 |
fi |
| 44 |
|
| 45 |
if test "x$cf_have_python_h" = "xyes" ; then |
| 46 |
PYTHON_LIB="" |
| 47 |
if test "x$PYTHON_HOME" != "x"; then |
| 48 |
# I am going of how manually compiled python installed on |
| 49 |
# my system. We can't use AC_CHECK_LIB, because that will |
| 50 |
# find the one in the stanard location, which is what we |
| 51 |
# want to avoid. |
| 52 |
python=`echo $dir | awk -F/ '{print $NF}'`; |
| 53 |
AC_MSG_CHECKING([For python lib in various places]) |
| 54 |
if test -f $PYTHON_HOME/lib/lib$python.so ; then |
| 55 |
# Hopefully -R is a universal option |
| 56 |
AC_MSG_RESULT([found in $PYTHON_HOME/lib/]) |
| 57 |
if test -n "$hardcode_libdir_flag_spec" ; then |
| 58 |
oldlibdir=$libdir |
| 59 |
libdir="$PYTHON_HOME/lib/" |
| 60 |
rpath=`eval echo $hardcode_libdir_flag_spec` |
| 61 |
PYTHON_LIB="$rpath -L$PYTHON_HOME/lib/ -l$python" |
| 62 |
echo "rpath=$rpath" |
| 63 |
libdir=$oldlibdir |
| 64 |
else |
| 65 |
PYTHON_LIB="-L$PYTHON_HOME/lib/ -l$python" |
| 66 |
fi |
| 67 |
|
| 68 |
elif test -f $PYTHON_HOME/lib/$python/lib$python.a ; then |
| 69 |
PYTHON_LIB="$PYTHON_HOME/lib/$python/lib$python.a" |
| 70 |
AC_MSG_RESULT([found in $PYTHON_HOME/lib/$python]) |
| 71 |
elif test -f $PYTHON_HOME/lib/$python/config/lib$python.a ; then |
| 72 |
PYTHON_LIB="$PYTHON_HOME/lib/$python/config/lib$python.a" |
| 73 |
AC_MSG_RESULT([found in $PYTHON_HOME/lib/$python/config]) |
| 74 |
fi |
| 75 |
|
| 76 |
else |
| 77 |
for lib in python{,2.5,2.4,2.3,2.2,2.1,2.0} ; do |
| 78 |
AC_CHECK_LIB($lib, PyArg_ParseTuple,[PYTHON_LIB="-l$lib"]) |
| 79 |
if test "x$PYTHON_LIB" != "x" ; then |
| 80 |
break |
| 81 |
fi |
| 82 |
done |
| 83 |
|
| 84 |
# These checks are a bit bogus - would be better to use AC_CHECK_LIB, |
| 85 |
# but it caches the result of the first check, even if we run AC_CHECK_LIB |
| 86 |
# with other options. |
| 87 |
python=`echo $dir | awk -F/ '{print $NF}'`; |
| 88 |
if test "x$PYTHON_LIB" = "x" ; then |
| 89 |
AC_MSG_CHECKING([For python lib in various places]) |
| 90 |
if test -f /usr/lib/$python/lib$python.a ; then |
| 91 |
PYTHON_LIB="/usr/lib/$python/lib$python.a" |
| 92 |
AC_MSG_RESULT([found in /usr/lib/$python]) |
| 93 |
elif test -f /usr/lib/$python/config/lib$python.a ; then |
| 94 |
PYTHON_LIB="/usr/lib/$python/config/lib$python.a" |
| 95 |
AC_MSG_RESULT([found in /usr/lib/$python/config]) |
| 96 |
fi |
| 97 |
fi |
| 98 |
fi |
| 99 |
if test "x$PYTHON_LIB" != "x" ; then |
| 100 |
AC_CHECK_LIB(pthread, main, PY_LIBS="$PY_LIBS -lpthread", , $PY_LIBS ) |
| 101 |
AC_CHECK_LIB(util, main, PY_LIBS="$PY_LIBS -lutil", , $PY_LIBS ) |
| 102 |
AC_CHECK_LIB(dl, main, PY_LIBS="$PY_LIBS -ldl", , $PY_LIBS ) |
| 103 |
|
| 104 |
AC_MSG_CHECKING([whether python supports the "L" format specifier]) |
| 105 |
saved_LIBS="$LIBS" |
| 106 |
LIBS="$LIBS $PYTHON_LIB $PY_LIBS" |
| 107 |
saved_CFLAGS="$CFLAGS" |
| 108 |
CFLAGS="$CFLAGS $PY_INCLUDES" |
| 109 |
AC_TRY_RUN([ |
| 110 |
#include <Python.h> |
| 111 |
#include <stdlib.h> |
| 112 |
|
| 113 |
static PyObject *callback(PyObject *self, PyObject *args) |
| 114 |
{ |
| 115 |
long long val; |
| 116 |
|
| 117 |
if (!PyArg_ParseTuple(args, "L", &val)) |
| 118 |
return NULL; |
| 119 |
if (val != 1) |
| 120 |
exit(1); |
| 121 |
Py_INCREF(Py_None); |
| 122 |
return Py_None; |
| 123 |
} |
| 124 |
|
| 125 |
static PyMethodDef methods[] = { |
| 126 |
{"callback", callback, METH_VARARGS}, |
| 127 |
{NULL, NULL, 0, NULL}, |
| 128 |
}; |
| 129 |
|
| 130 |
int main() |
| 131 |
{ |
| 132 |
Py_Initialize(); |
| 133 |
Py_InitModule("test", methods); |
| 134 |
return(PyRun_SimpleString("import test\ntest.callback(1)\n") != 0); |
| 135 |
} |
| 136 |
], [ |
| 137 |
AC_MSG_RESULT([yes]) |
| 138 |
], [ |
| 139 |
AC_MSG_RESULT([no]) |
| 140 |
PYTHON_LIB="" |
| 141 |
PYLIBS="" |
| 142 |
PY_INCLUDE="" |
| 143 |
], |
| 144 |
[ |
| 145 |
AC_MSG_RESULT([skipped because cross compiling]) |
| 146 |
]) |
| 147 |
LIBS="$saved_LIBS" |
| 148 |
CFLAGS="$saved_CFLAGS" |
| 149 |
fi |
| 150 |
fi |
| 151 |
|
| 152 |
if test "x$PYTHON_LIB" = "x" ; then |
| 153 |
$2 |
| 154 |
else |
| 155 |
$1 |
| 156 |
fi |
| 157 |
|
| 158 |
AC_SUBST(PYTHON_LIB) |
| 159 |
AC_SUBST(PY_LIBS) |
| 160 |
AC_SUBST(PY_INCLUDES) |
| 161 |
]) |
| 162 |
|
| 163 |
dnl CF_CHECK_CROSSEDIT(X11LIBS, ACTION-IF-FOUND , ACTION-IF-NOT-FOUND) |
| 164 |
dnl check if a sample X test code can compile |
| 165 |
dnl |
| 166 |
|
| 167 |
AC_DEFUN([CF_CHECK_CROSSEDIT],[ |
| 168 |
|
| 169 |
ac_save_LIBS="$LIBS" |
| 170 |
|
| 171 |
LIBS="$1 $LIBS" |
| 172 |
AC_MSG_CHECKING(for crossedit required headers) |
| 173 |
AC_TRY_LINK([ |
| 174 |
#include <X11/Xaw/AllWidgets.h> |
| 175 |
], , |
| 176 |
AC_MSG_RESULT(yes) |
| 177 |
[$2], |
| 178 |
AC_MSG_RESULT(no) |
| 179 |
[$3]) |
| 180 |
LIBS="$ac_save_LIBS" |
| 181 |
]) |
| 182 |
|
| 183 |
# Do all the work for Automake. -*- Autoconf -*- |
| 184 |
|
| 185 |
# This macro actually does too much some checks are only needed if |
| 186 |
# your package does certain things. But this isn't really a big deal. |
| 187 |
|
| 188 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 |
| 189 |
# Free Software Foundation, Inc. |
| 190 |
|
| 191 |
# This program is free software; you can redistribute it and/or modify |
| 192 |
# it under the terms of the GNU General Public License as published by |
| 193 |
# the Free Software Foundation; either version 2, or (at your option) |
| 194 |
# any later version. |
| 195 |
|
| 196 |
# This program is distributed in the hope that it will be useful, |
| 197 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 198 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 199 |
# GNU General Public License for more details. |
| 200 |
|
| 201 |
# You should have received a copy of the GNU General Public License |
| 202 |
# along with this program; if not, write to the Free Software |
| 203 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 204 |
# 02111-1307, USA. |
| 205 |
|
| 206 |
# serial 10 |
| 207 |
|
| 208 |
AC_PREREQ([2.54]) |
| 209 |
|
| 210 |
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
| 211 |
# the ones we care about. |
| 212 |
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
| 213 |
|
| 214 |
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
| 215 |
# AM_INIT_AUTOMAKE([OPTIONS]) |
| 216 |
# ----------------------------------------------- |
| 217 |
# The call with PACKAGE and VERSION arguments is the old style |
| 218 |
# call (pre autoconf-2.50), which is being phased out. PACKAGE |
| 219 |
# and VERSION should now be passed to AC_INIT and removed from |
| 220 |
# the call to AM_INIT_AUTOMAKE. |
| 221 |
# We support both call styles for the transition. After |
| 222 |
# the next Automake release, Autoconf can make the AC_INIT |
| 223 |
# arguments mandatory, and then we can depend on a new Autoconf |
| 224 |
# release and drop the old call support. |
| 225 |
AC_DEFUN([AM_INIT_AUTOMAKE], |
| 226 |
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
| 227 |
AC_REQUIRE([AC_PROG_INSTALL])dnl |
| 228 |
# test to see if srcdir already configured |
| 229 |
if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 230 |
test -f $srcdir/config.status; then |
| 231 |
AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
| 232 |
fi |
| 233 |
|
| 234 |
# test whether we have cygpath |
| 235 |
if test -z "$CYGPATH_W"; then |
| 236 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
| 237 |
CYGPATH_W='cygpath -w' |
| 238 |
else |
| 239 |
CYGPATH_W=echo |
| 240 |
fi |
| 241 |
fi |
| 242 |
AC_SUBST([CYGPATH_W]) |
| 243 |
|
| 244 |
# Define the identity of the package. |
| 245 |
dnl Distinguish between old-style and new-style calls. |
| 246 |
m4_ifval([$2], |
| 247 |
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
| 248 |
AC_SUBST([PACKAGE], [$1])dnl |
| 249 |
AC_SUBST([VERSION], [$2])], |
| 250 |
[_AM_SET_OPTIONS([$1])dnl |
| 251 |
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
| 252 |
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
| 253 |
|
| 254 |
_AM_IF_OPTION([no-define],, |
| 255 |
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
| 256 |
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
| 257 |
|
| 258 |
# Some tools Automake needs. |
| 259 |
AC_REQUIRE([AM_SANITY_CHECK])dnl |
| 260 |
AC_REQUIRE([AC_ARG_PROGRAM])dnl |
| 261 |
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
| 262 |
AM_MISSING_PROG(AUTOCONF, autoconf) |
| 263 |
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
| 264 |
AM_MISSING_PROG(AUTOHEADER, autoheader) |
| 265 |
AM_MISSING_PROG(MAKEINFO, makeinfo) |
| 266 |
AM_MISSING_PROG(AMTAR, tar) |
| 267 |
AM_PROG_INSTALL_SH |
| 268 |
AM_PROG_INSTALL_STRIP |
| 269 |
# We need awk for the "check" target. The system "awk" is bad on |
| 270 |
# some platforms. |
| 271 |
AC_REQUIRE([AC_PROG_AWK])dnl |
| 272 |
AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
| 273 |
AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
| 274 |
|
| 275 |
_AM_IF_OPTION([no-dependencies],, |
| 276 |
[AC_PROVIDE_IFELSE([AC_PROG_CC], |
| 277 |
[_AM_DEPENDENCIES(CC)], |
| 278 |
[define([AC_PROG_CC], |
| 279 |
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
| 280 |
AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 281 |
[_AM_DEPENDENCIES(CXX)], |
| 282 |
[define([AC_PROG_CXX], |
| 283 |
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
| 284 |
]) |
| 285 |
]) |
| 286 |
|
| 287 |
|
| 288 |
# When config.status generates a header, we must update the stamp-h file. |
| 289 |
# This file resides in the same directory as the config header |
| 290 |
# that is generated. The stamp files are numbered to have different names. |
| 291 |
|
| 292 |
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
| 293 |
# loop where config.status creates the headers, so we can generate |
| 294 |
# our stamp files there. |
| 295 |
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
| 296 |
[# Compute $1's index in $config_headers. |
| 297 |
_am_stamp_count=1 |
| 298 |
for _am_header in $config_headers :; do |
| 299 |
case $_am_header in |
| 300 |
$1 | $1:* ) |
| 301 |
break ;; |
| 302 |
* ) |
| 303 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 304 |
esac |
| 305 |
done |
| 306 |
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) |
| 307 |
|
| 308 |
# Copyright 2002 Free Software Foundation, Inc. |
| 309 |
|
| 310 |
# This program is free software; you can redistribute it and/or modify |
| 311 |
# it under the terms of the GNU General Public License as published by |
| 312 |
# the Free Software Foundation; either version 2, or (at your option) |
| 313 |
# any later version. |
| 314 |
|
| 315 |
# This program is distributed in the hope that it will be useful, |
| 316 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 317 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 318 |
# GNU General Public License for more details. |
| 319 |
|
| 320 |
# You should have received a copy of the GNU General Public License |
| 321 |
# along with this program; if not, write to the Free Software |
| 322 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 323 |
|
| 324 |
# AM_AUTOMAKE_VERSION(VERSION) |
| 325 |
# ---------------------------- |
| 326 |
# Automake X.Y traces this macro to ensure aclocal.m4 has been |
| 327 |
# generated from the m4 files accompanying Automake X.Y. |
| 328 |
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) |
| 329 |
|
| 330 |
# AM_SET_CURRENT_AUTOMAKE_VERSION |
| 331 |
# ------------------------------- |
| 332 |
# Call AM_AUTOMAKE_VERSION so it can be traced. |
| 333 |
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
| 334 |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
| 335 |
[AM_AUTOMAKE_VERSION([1.7.9])]) |
| 336 |
|
| 337 |
# Helper functions for option handling. -*- Autoconf -*- |
| 338 |
|
| 339 |
# Copyright 2001, 2002 Free Software Foundation, Inc. |
| 340 |
|
| 341 |
# This program is free software; you can redistribute it and/or modify |
| 342 |
# it under the terms of the GNU General Public License as published by |
| 343 |
# the Free Software Foundation; either version 2, or (at your option) |
| 344 |
# any later version. |
| 345 |
|
| 346 |
# This program is distributed in the hope that it will be useful, |
| 347 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 348 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 349 |
# GNU General Public License for more details. |
| 350 |
|
| 351 |
# You should have received a copy of the GNU General Public License |
| 352 |
# along with this program; if not, write to the Free Software |
| 353 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 354 |
# 02111-1307, USA. |
| 355 |
|
| 356 |
# serial 2 |
| 357 |
|
| 358 |
# _AM_MANGLE_OPTION(NAME) |
| 359 |
# ----------------------- |
| 360 |
AC_DEFUN([_AM_MANGLE_OPTION], |
| 361 |
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
| 362 |
|
| 363 |
# _AM_SET_OPTION(NAME) |
| 364 |
# ------------------------------ |
| 365 |
# Set option NAME. Presently that only means defining a flag for this option. |
| 366 |
AC_DEFUN([_AM_SET_OPTION], |
| 367 |
[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
| 368 |
|
| 369 |
# _AM_SET_OPTIONS(OPTIONS) |
| 370 |
# ---------------------------------- |
| 371 |
# OPTIONS is a space-separated list of Automake options. |
| 372 |
AC_DEFUN([_AM_SET_OPTIONS], |
| 373 |
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
| 374 |
|
| 375 |
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
| 376 |
# ------------------------------------------- |
| 377 |
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
| 378 |
AC_DEFUN([_AM_IF_OPTION], |
| 379 |
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
| 380 |
|
| 381 |
# |
| 382 |
# Check to make sure that the build environment is sane. |
| 383 |
# |
| 384 |
|
| 385 |
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. |
| 386 |
|
| 387 |
# This program is free software; you can redistribute it and/or modify |
| 388 |
# it under the terms of the GNU General Public License as published by |
| 389 |
# the Free Software Foundation; either version 2, or (at your option) |
| 390 |
# any later version. |
| 391 |
|
| 392 |
# This program is distributed in the hope that it will be useful, |
| 393 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 394 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 395 |
# GNU General Public License for more details. |
| 396 |
|
| 397 |
# You should have received a copy of the GNU General Public License |
| 398 |
# along with this program; if not, write to the Free Software |
| 399 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 400 |
# 02111-1307, USA. |
| 401 |
|
| 402 |
# serial 3 |
| 403 |
|
| 404 |
# AM_SANITY_CHECK |
| 405 |
# --------------- |
| 406 |
AC_DEFUN([AM_SANITY_CHECK], |
| 407 |
[AC_MSG_CHECKING([whether build environment is sane]) |
| 408 |
# Just in case |
| 409 |
sleep 1 |
| 410 |
echo timestamp > conftest.file |
| 411 |
# Do `set' in a subshell so we don't clobber the current shell's |
| 412 |
# arguments. Must try -L first in case configure is actually a |
| 413 |
# symlink; some systems play weird games with the mod time of symlinks |
| 414 |
# (eg FreeBSD returns the mod time of the symlink's containing |
| 415 |
# directory). |
| 416 |
if ( |
| 417 |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 418 |
if test "$[*]" = "X"; then |
| 419 |
# -L didn't work. |
| 420 |
set X `ls -t $srcdir/configure conftest.file` |
| 421 |
fi |
| 422 |
rm -f conftest.file |
| 423 |
if test "$[*]" != "X $srcdir/configure conftest.file" \ |
| 424 |
&& test "$[*]" != "X conftest.file $srcdir/configure"; then |
| 425 |
|
| 426 |
# If neither matched, then we have a broken ls. This can happen |
| 427 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 428 |
# broken ls alias from the environment. This has actually |
| 429 |
# happened. Such a system could not be considered "sane". |
| 430 |
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
| 431 |
alias in your environment]) |
| 432 |
fi |
| 433 |
|
| 434 |
test "$[2]" = conftest.file |
| 435 |
) |
| 436 |
then |
| 437 |
# Ok. |
| 438 |
: |
| 439 |
else |
| 440 |
AC_MSG_ERROR([newly created file is older than distributed files! |
| 441 |
Check your system clock]) |
| 442 |
fi |
| 443 |
AC_MSG_RESULT(yes)]) |
| 444 |
|
| 445 |
# -*- Autoconf -*- |
| 446 |
|
| 447 |
|
| 448 |
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. |
| 449 |
|
| 450 |
# This program is free software; you can redistribute it and/or modify |
| 451 |
# it under the terms of the GNU General Public License as published by |
| 452 |
# the Free Software Foundation; either version 2, or (at your option) |
| 453 |
# any later version. |
| 454 |
|
| 455 |
# This program is distributed in the hope that it will be useful, |
| 456 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 457 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 458 |
# GNU General Public License for more details. |
| 459 |
|
| 460 |
# You should have received a copy of the GNU General Public License |
| 461 |
# along with this program; if not, write to the Free Software |
| 462 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 463 |
# 02111-1307, USA. |
| 464 |
|
| 465 |
# serial 3 |
| 466 |
|
| 467 |
# AM_MISSING_PROG(NAME, PROGRAM) |
| 468 |
# ------------------------------ |
| 469 |
AC_DEFUN([AM_MISSING_PROG], |
| 470 |
[AC_REQUIRE([AM_MISSING_HAS_RUN]) |
| 471 |
$1=${$1-"${am_missing_run}$2"} |
| 472 |
AC_SUBST($1)]) |
| 473 |
|
| 474 |
|
| 475 |
# AM_MISSING_HAS_RUN |
| 476 |
# ------------------ |
| 477 |
# Define MISSING if not defined so far and test if it supports --run. |
| 478 |
# If it does, set am_missing_run to use it, otherwise, to nothing. |
| 479 |
AC_DEFUN([AM_MISSING_HAS_RUN], |
| 480 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 481 |
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 482 |
# Use eval to expand $SHELL |
| 483 |
if eval "$MISSING --run true"; then |
| 484 |
am_missing_run="$MISSING --run " |
| 485 |
else |
| 486 |
am_missing_run= |
| 487 |
AC_MSG_WARN([`missing' script is too old or missing]) |
| 488 |
fi |
| 489 |
]) |
| 490 |
|
| 491 |
# AM_AUX_DIR_EXPAND |
| 492 |
|
| 493 |
# Copyright 2001 Free Software Foundation, Inc. |
| 494 |
|
| 495 |
# This program is free software; you can redistribute it and/or modify |
| 496 |
# it under the terms of the GNU General Public License as published by |
| 497 |
# the Free Software Foundation; either version 2, or (at your option) |
| 498 |
# any later version. |
| 499 |
|
| 500 |
# This program is distributed in the hope that it will be useful, |
| 501 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 502 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 503 |
# GNU General Public License for more details. |
| 504 |
|
| 505 |
# You should have received a copy of the GNU General Public License |
| 506 |
# along with this program; if not, write to the Free Software |
| 507 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 508 |
# 02111-1307, USA. |
| 509 |
|
| 510 |
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
| 511 |
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
| 512 |
# `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
| 513 |
# |
| 514 |
# Of course, Automake must honor this variable whenever it calls a |
| 515 |
# tool from the auxiliary directory. The problem is that $srcdir (and |
| 516 |
# therefore $ac_aux_dir as well) can be either absolute or relative, |
| 517 |
# depending on how configure is run. This is pretty annoying, since |
| 518 |
# it makes $ac_aux_dir quite unusable in subdirectories: in the top |
| 519 |
# source directory, any form will work fine, but in subdirectories a |
| 520 |
# relative path needs to be adjusted first. |
| 521 |
# |
| 522 |
# $ac_aux_dir/missing |
| 523 |
# fails when called from a subdirectory if $ac_aux_dir is relative |
| 524 |
# $top_srcdir/$ac_aux_dir/missing |
| 525 |
# fails if $ac_aux_dir is absolute, |
| 526 |
# fails when called from a subdirectory in a VPATH build with |
| 527 |
# a relative $ac_aux_dir |
| 528 |
# |
| 529 |
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
| 530 |
# are both prefixed by $srcdir. In an in-source build this is usually |
| 531 |
# harmless because $srcdir is `.', but things will broke when you |
| 532 |
# start a VPATH build or use an absolute $srcdir. |
| 533 |
# |
| 534 |
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
| 535 |
# iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
| 536 |
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
| 537 |
# and then we would define $MISSING as |
| 538 |
# MISSING="\${SHELL} $am_aux_dir/missing" |
| 539 |
# This will work as long as MISSING is not called from configure, because |
| 540 |
# unfortunately $(top_srcdir) has no meaning in configure. |
| 541 |
# However there are other variables, like CC, which are often used in |
| 542 |
# configure, and could therefore not use this "fixed" $ac_aux_dir. |
| 543 |
# |
| 544 |
# Another solution, used here, is to always expand $ac_aux_dir to an |
| 545 |
# absolute PATH. The drawback is that using absolute paths prevent a |
| 546 |
# configured tree to be moved without reconfiguration. |
| 547 |
|
| 548 |
# Rely on autoconf to set up CDPATH properly. |
| 549 |
AC_PREREQ([2.50]) |
| 550 |
|
| 551 |
AC_DEFUN([AM_AUX_DIR_EXPAND], [ |
| 552 |
# expand $ac_aux_dir to an absolute path |
| 553 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
| 554 |
]) |
| 555 |
|
| 556 |
# AM_PROG_INSTALL_SH |
| 557 |
# ------------------ |
| 558 |
# Define $install_sh. |
| 559 |
|
| 560 |
# Copyright 2001 Free Software Foundation, Inc. |
| 561 |
|
| 562 |
# This program is free software; you can redistribute it and/or modify |
| 563 |
# it under the terms of the GNU General Public License as published by |
| 564 |
# the Free Software Foundation; either version 2, or (at your option) |
| 565 |
# any later version. |
| 566 |
|
| 567 |
# This program is distributed in the hope that it will be useful, |
| 568 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 569 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 570 |
# GNU General Public License for more details. |
| 571 |
|
| 572 |
# You should have received a copy of the GNU General Public License |
| 573 |
# along with this program; if not, write to the Free Software |
| 574 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 575 |
# 02111-1307, USA. |
| 576 |
|
| 577 |
AC_DEFUN([AM_PROG_INSTALL_SH], |
| 578 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 579 |
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 580 |
AC_SUBST(install_sh)]) |
| 581 |
|
| 582 |
# AM_PROG_INSTALL_STRIP |
| 583 |
|
| 584 |
# Copyright 2001 Free Software Foundation, Inc. |
| 585 |
|
| 586 |
# This program is free software; you can redistribute it and/or modify |
| 587 |
# it under the terms of the GNU General Public License as published by |
| 588 |
# the Free Software Foundation; either version 2, or (at your option) |
| 589 |
# any later version. |
| 590 |
|
| 591 |
# This program is distributed in the hope that it will be useful, |
| 592 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 593 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 594 |
# GNU General Public License for more details. |
| 595 |
|
| 596 |
# You should have received a copy of the GNU General Public License |
| 597 |
# along with this program; if not, write to the Free Software |
| 598 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 599 |
# 02111-1307, USA. |
| 600 |
|
| 601 |
# One issue with vendor `install' (even GNU) is that you can't |
| 602 |
# specify the program used to strip binaries. This is especially |
| 603 |
# annoying in cross-compiling environments, where the build's strip |
| 604 |
# is unlikely to handle the host's binaries. |
| 605 |
# Fortunately install-sh will honor a STRIPPROG variable, so we |
| 606 |
# always use install-sh in `make install-strip', and initialize |
| 607 |
# STRIPPROG with the value of the STRIP variable (set by the user). |
| 608 |
AC_DEFUN([AM_PROG_INSTALL_STRIP], |
| 609 |
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
| 610 |
# Installed binaries are usually stripped using `strip' when the user |
| 611 |
# run `make install-strip'. However `strip' might not be the right |
| 612 |
# tool to use in cross-compilation environments, therefore Automake |
| 613 |
# will honor the `STRIP' environment variable to overrule this program. |
| 614 |
dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
| 615 |
if test "$cross_compiling" != no; then |
| 616 |
AC_CHECK_TOOL([STRIP], [strip], :) |
| 617 |
fi |
| 618 |
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 619 |
AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
| 620 |
|
| 621 |
# -*- Autoconf -*- |
| 622 |
# Copyright (C) 2003 Free Software Foundation, Inc. |
| 623 |
|
| 624 |
# This program is free software; you can redistribute it and/or modify |
| 625 |
# it under the terms of the GNU General Public License as published by |
| 626 |
# the Free Software Foundation; either version 2, or (at your option) |
| 627 |
# any later version. |
| 628 |
|
| 629 |
# This program is distributed in the hope that it will be useful, |
| 630 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 631 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 632 |
# GNU General Public License for more details. |
| 633 |
|
| 634 |
# You should have received a copy of the GNU General Public License |
| 635 |
# along with this program; if not, write to the Free Software |
| 636 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 637 |
# 02111-1307, USA. |
| 638 |
|
| 639 |
# serial 1 |
| 640 |
|
| 641 |
# Check whether the underlying file-system supports filenames |
| 642 |
# with a leading dot. For instance MS-DOS doesn't. |
| 643 |
AC_DEFUN([AM_SET_LEADING_DOT], |
| 644 |
[rm -rf .tst 2>/dev/null |
| 645 |
mkdir .tst 2>/dev/null |
| 646 |
if test -d .tst; then |
| 647 |
am__leading_dot=. |
| 648 |
else |
| 649 |
am__leading_dot=_ |
| 650 |
fi |
| 651 |
rmdir .tst 2>/dev/null |
| 652 |
AC_SUBST([am__leading_dot])]) |
| 653 |
|
| 654 |
# serial 5 -*- Autoconf -*- |
| 655 |
|
| 656 |
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
| 657 |
|
| 658 |
# This program is free software; you can redistribute it and/or modify |
| 659 |
# it under the terms of the GNU General Public License as published by |
| 660 |
# the Free Software Foundation; either version 2, or (at your option) |
| 661 |
# any later version. |
| 662 |
|
| 663 |
# This program is distributed in the hope that it will be useful, |
| 664 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 665 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 666 |
# GNU General Public License for more details. |
| 667 |
|
| 668 |
# You should have received a copy of the GNU General Public License |
| 669 |
# along with this program; if not, write to the Free Software |
| 670 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 671 |
# 02111-1307, USA. |
| 672 |
|
| 673 |
|
| 674 |
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
| 675 |
# written in clear, in which case automake, when reading aclocal.m4, |
| 676 |
# will think it sees a *use*, and therefore will trigger all it's |
| 677 |
# C support machinery. Also note that it means that autoscan, seeing |
| 678 |
# CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
| 679 |
|
| 680 |
|
| 681 |
|
| 682 |
# _AM_DEPENDENCIES(NAME) |
| 683 |
# ---------------------- |
| 684 |
# See how the compiler implements dependency checking. |
| 685 |
# NAME is "CC", "CXX", "GCJ", or "OBJC". |
| 686 |
# We try a few techniques and use that to set a single cache variable. |
| 687 |
# |
| 688 |
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
| 689 |
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
| 690 |
# dependency, and given that the user is not expected to run this macro, |
| 691 |
# just rely on AC_PROG_CC. |
| 692 |
AC_DEFUN([_AM_DEPENDENCIES], |
| 693 |
[AC_REQUIRE([AM_SET_DEPDIR])dnl |
| 694 |
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
| 695 |
AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
| 696 |
AC_REQUIRE([AM_DEP_TRACK])dnl |
| 697 |
|
| 698 |
ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
| 699 |
[$1], CXX, [depcc="$CXX" am_compiler_list=], |
| 700 |
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
| 701 |
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
| 702 |
[depcc="$$1" am_compiler_list=]) |
| 703 |
|
| 704 |
AC_CACHE_CHECK([dependency style of $depcc], |
| 705 |
[am_cv_$1_dependencies_compiler_type], |
| 706 |
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 707 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 708 |
# making bogus files that we don't know about and never remove. For |
| 709 |
# instance it was reported that on HP-UX the gcc test will end up |
| 710 |
# making a dummy file named `D' -- because `-MD' means `put the output |
| 711 |
# in D'. |
| 712 |
mkdir conftest.dir |
| 713 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 714 |
# using a relative directory. |
| 715 |
cp "$am_depcomp" conftest.dir |
| 716 |
cd conftest.dir |
| 717 |
# We will build objects and dependencies in a subdirectory because |
| 718 |
# it helps to detect inapplicable dependency modes. For instance |
| 719 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 720 |
# side effect of compilation, but ICC will put the dependencies in |
| 721 |
# the current directory while Tru64 will put them in the object |
| 722 |
# directory. |
| 723 |
mkdir sub |
| 724 |
|
| 725 |
am_cv_$1_dependencies_compiler_type=none |
| 726 |
if test "$am_compiler_list" = ""; then |
| 727 |
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
| 728 |
fi |
| 729 |
for depmode in $am_compiler_list; do |
| 730 |
# Setup a source with many dependencies, because some compilers |
| 731 |
# like to wrap large dependency lists on column 80 (with \), and |
| 732 |
# we should not choose a depcomp mode which is confused by this. |
| 733 |
# |
| 734 |
# We need to recreate these files for each test, as the compiler may |
| 735 |
# overwrite some of them when testing with obscure command lines. |
| 736 |
# This happens at least with the AIX C compiler. |
| 737 |
: > sub/conftest.c |
| 738 |
for i in 1 2 3 4 5 6; do |
| 739 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 740 |
: > sub/conftst$i.h |
| 741 |
done |
| 742 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 743 |
|
| 744 |
case $depmode in |
| 745 |
nosideeffect) |
| 746 |
# after this tag, mechanisms are not by side-effect, so they'll |
| 747 |
# only be used when explicitly requested |
| 748 |
if test "x$enable_dependency_tracking" = xyes; then |
| 749 |
continue |
| 750 |
else |
| 751 |
break |
| 752 |
fi |
| 753 |
;; |
| 754 |
none) break ;; |
| 755 |
esac |
| 756 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 757 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 758 |
# handle `-M -o', and we need to detect this. |
| 759 |
if depmode=$depmode \ |
| 760 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 761 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 762 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 763 |
>/dev/null 2>conftest.err && |
| 764 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 765 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 766 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 767 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 768 |
# (even with -Werror). So we grep stderr for any message |
| 769 |
# that says an option was ignored. |
| 770 |
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
| 771 |
am_cv_$1_dependencies_compiler_type=$depmode |
| 772 |
break |
| 773 |
fi |
| 774 |
fi |
| 775 |
done |
| 776 |
|
| 777 |
cd .. |
| 778 |
rm -rf conftest.dir |
| 779 |
else |
| 780 |
am_cv_$1_dependencies_compiler_type=none |
| 781 |
fi |
| 782 |
]) |
| 783 |
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
| 784 |
AM_CONDITIONAL([am__fastdep$1], [ |
| 785 |
test "x$enable_dependency_tracking" != xno \ |
| 786 |
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
| 787 |
]) |
| 788 |
|
| 789 |
|
| 790 |
# AM_SET_DEPDIR |
| 791 |
# ------------- |
| 792 |
# Choose a directory name for dependency files. |
| 793 |
# This macro is AC_REQUIREd in _AM_DEPENDENCIES |
| 794 |
AC_DEFUN([AM_SET_DEPDIR], |
| 795 |
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
| 796 |
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
| 797 |
]) |
| 798 |
|
| 799 |
|
| 800 |
# AM_DEP_TRACK |
| 801 |
# ------------ |
| 802 |
AC_DEFUN([AM_DEP_TRACK], |
| 803 |
[AC_ARG_ENABLE(dependency-tracking, |
| 804 |
[ --disable-dependency-tracking Speeds up one-time builds |
| 805 |
--enable-dependency-tracking Do not reject slow dependency extractors]) |
| 806 |
if test "x$enable_dependency_tracking" != xno; then |
| 807 |
am_depcomp="$ac_aux_dir/depcomp" |
| 808 |
AMDEPBACKSLASH='\' |
| 809 |
fi |
| 810 |
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
| 811 |
AC_SUBST([AMDEPBACKSLASH]) |
| 812 |
]) |
| 813 |
|
| 814 |
# Generate code to set up dependency tracking. -*- Autoconf -*- |
| 815 |
|
| 816 |
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
| 817 |
|
| 818 |
# This program is free software; you can redistribute it and/or modify |
| 819 |
# it under the terms of the GNU General Public License as published by |
| 820 |
# the Free Software Foundation; either version 2, or (at your option) |
| 821 |
# any later version. |
| 822 |
|
| 823 |
# This program is distributed in the hope that it will be useful, |
| 824 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 825 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 826 |
# GNU General Public License for more details. |
| 827 |
|
| 828 |
# You should have received a copy of the GNU General Public License |
| 829 |
# along with this program; if not, write to the Free Software |
| 830 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 831 |
# 02111-1307, USA. |
| 832 |
|
| 833 |
#serial 2 |
| 834 |
|
| 835 |
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
| 836 |
# ------------------------------ |
| 837 |
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 838 |
[for mf in $CONFIG_FILES; do |
| 839 |
# Strip MF so we end up with the name of the file. |
| 840 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 841 |
# Check whether this is an Automake generated Makefile or not. |
| 842 |
# We used to match only the files named `Makefile.in', but |
| 843 |
# some people rename them; so instead we look at the file content. |
| 844 |
# Grep'ing the first line is not enough: some people post-process |
| 845 |
# each Makefile.in and add a new line on top of each file to say so. |
| 846 |
# So let's grep whole file. |
| 847 |
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 848 |
dirpart=`AS_DIRNAME("$mf")` |
| 849 |
else |
| 850 |
continue |
| 851 |
fi |
| 852 |
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue |
| 853 |
# Extract the definition of DEP_FILES from the Makefile without |
| 854 |
# running `make'. |
| 855 |
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 856 |
test -z "$DEPDIR" && continue |
| 857 |
# When using ansi2knr, U may be empty or an underscore; expand it |
| 858 |
U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 859 |
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 860 |
# We invoke sed twice because it is the simplest approach to |
| 861 |
# changing $(DEPDIR) to its actual value in the expansion. |
| 862 |
for file in `sed -n -e ' |
| 863 |
/^DEP_FILES = .*\\\\$/ { |
| 864 |
s/^DEP_FILES = // |
| 865 |
:loop |
| 866 |
s/\\\\$// |
| 867 |
p |
| 868 |
n |
| 869 |
/\\\\$/ b loop |
| 870 |
p |
| 871 |
} |
| 872 |
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 873 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 874 |
# Make sure the directory exists. |
| 875 |
test -f "$dirpart/$file" && continue |
| 876 |
fdir=`AS_DIRNAME(["$file"])` |
| 877 |
AS_MKDIR_P([$dirpart/$fdir]) |
| 878 |
# echo "creating $dirpart/$file" |
| 879 |
echo '# dummy' > "$dirpart/$file" |
| 880 |
done |
| 881 |
done |
| 882 |
])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
| 883 |
|
| 884 |
|
| 885 |
# AM_OUTPUT_DEPENDENCY_COMMANDS |
| 886 |
# ----------------------------- |
| 887 |
# This macro should only be invoked once -- use via AC_REQUIRE. |
| 888 |
# |
| 889 |
# This code is only required when automatic dependency tracking |
| 890 |
# is enabled. FIXME. This creates each `.P' file that we will |
| 891 |
# need in order to bootstrap the dependency handling code. |
| 892 |
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 893 |
[AC_CONFIG_COMMANDS([depfiles], |
| 894 |
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 895 |
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
| 896 |
]) |
| 897 |
|
| 898 |
# Check to see how 'make' treats includes. -*- Autoconf -*- |
| 899 |
|
| 900 |
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. |
| 901 |
|
| 902 |
# This program is free software; you can redistribute it and/or modify |
| 903 |
# it under the terms of the GNU General Public License as published by |
| 904 |
# the Free Software Foundation; either version 2, or (at your option) |
| 905 |
# any later version. |
| 906 |
|
| 907 |
# This program is distributed in the hope that it will be useful, |
| 908 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 909 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 910 |
# GNU General Public License for more details. |
| 911 |
|
| 912 |
# You should have received a copy of the GNU General Public License |
| 913 |
# along with this program; if not, write to the Free Software |
| 914 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 915 |
# 02111-1307, USA. |
| 916 |
|
| 917 |
# serial 2 |
| 918 |
|
| 919 |
# AM_MAKE_INCLUDE() |
| 920 |
# ----------------- |
| 921 |
# Check to see how make treats includes. |
| 922 |
AC_DEFUN([AM_MAKE_INCLUDE], |
| 923 |
[am_make=${MAKE-make} |
| 924 |
cat > confinc << 'END' |
| 925 |
am__doit: |
| 926 |
@echo done |
| 927 |
.PHONY: am__doit |
| 928 |
END |
| 929 |
# If we don't find an include directive, just comment out the code. |
| 930 |
AC_MSG_CHECKING([for style of include used by $am_make]) |
| 931 |
am__include="#" |
| 932 |
am__quote= |
| 933 |
_am_result=none |
| 934 |
# First try GNU make style include. |
| 935 |
echo "include confinc" > confmf |
| 936 |
# We grep out `Entering directory' and `Leaving directory' |
| 937 |
# messages which can occur if `w' ends up in MAKEFLAGS. |
| 938 |
# In particular we don't look at `^make:' because GNU make might |
| 939 |
# be invoked under some other name (usually "gmake"), in which |
| 940 |
# case it prints its new name instead of `make'. |
| 941 |
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 942 |
am__include=include |
| 943 |
am__quote= |
| 944 |
_am_result=GNU |
| 945 |
fi |
| 946 |
# Now try BSD make style include. |
| 947 |
if test "$am__include" = "#"; then |
| 948 |
echo '.include "confinc"' > confmf |
| 949 |
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 950 |
am__include=.include |
| 951 |
am__quote="\"" |
| 952 |
_am_result=BSD |
| 953 |
fi |
| 954 |
fi |
| 955 |
AC_SUBST([am__include]) |
| 956 |
AC_SUBST([am__quote]) |
| 957 |
AC_MSG_RESULT([$_am_result]) |
| 958 |
rm -f confinc confmf |
| 959 |
]) |
| 960 |
|
| 961 |
# AM_CONDITIONAL -*- Autoconf -*- |
| 962 |
|
| 963 |
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc. |
| 964 |
|
| 965 |
# This program is free software; you can redistribute it and/or modify |
| 966 |
# it under the terms of the GNU General Public License as published by |
| 967 |
# the Free Software Foundation; either version 2, or (at your option) |
| 968 |
# any later version. |
| 969 |
|
| 970 |
# This program is distributed in the hope that it will be useful, |
| 971 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 972 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 973 |
# GNU General Public License for more details. |
| 974 |
|
| 975 |
# You should have received a copy of the GNU General Public License |
| 976 |
# along with this program; if not, write to the Free Software |
| 977 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 978 |
# 02111-1307, USA. |
| 979 |
|
| 980 |
# serial 5 |
| 981 |
|
| 982 |
AC_PREREQ(2.52) |
| 983 |
|
| 984 |
# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
| 985 |
# ------------------------------------- |
| 986 |
# Define a conditional. |
| 987 |
AC_DEFUN([AM_CONDITIONAL], |
| 988 |
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
| 989 |
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
| 990 |
AC_SUBST([$1_TRUE]) |
| 991 |
AC_SUBST([$1_FALSE]) |
| 992 |
if $2; then |
| 993 |
$1_TRUE= |
| 994 |
$1_FALSE='#' |
| 995 |
else |
| 996 |
$1_TRUE='#' |
| 997 |
$1_FALSE= |
| 998 |
fi |
| 999 |
AC_CONFIG_COMMANDS_PRE( |
| 1000 |
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
| 1001 |
AC_MSG_ERROR([conditional "$1" was never defined. |
| 1002 |
Usually this means the macro was only invoked conditionally.]) |
| 1003 |
fi])]) |
| 1004 |
|
| 1005 |
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- |
| 1006 |
|
| 1007 |
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. |
| 1008 |
|
| 1009 |
# This program is free software; you can redistribute it and/or modify |
| 1010 |
# it under the terms of the GNU General Public License as published by |
| 1011 |
# the Free Software Foundation; either version 2, or (at your option) |
| 1012 |
# any later version. |
| 1013 |
|
| 1014 |
# This program is distributed in the hope that it will be useful, |
| 1015 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1016 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 1017 |
# GNU General Public License for more details. |
| 1018 |
|
| 1019 |
# You should have received a copy of the GNU General Public License |
| 1020 |
# along with this program; if not, write to the Free Software |
| 1021 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 1022 |
# 02111-1307, USA. |
| 1023 |
|
| 1024 |
AC_PREREQ([2.52]) |
| 1025 |
|
| 1026 |
# serial 6 |
| 1027 |
|
| 1028 |
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
| 1029 |
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
| 1030 |
|
| 1031 |
# Add --enable-maintainer-mode option to configure. |
| 1032 |
# From Jim Meyering |
| 1033 |
|
| 1034 |
# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc. |
| 1035 |
|
| 1036 |
# This program is free software; you can redistribute it and/or modify |
| 1037 |
# it under the terms of the GNU General Public License as published by |
| 1038 |
# the Free Software Foundation; either version 2, or (at your option) |
| 1039 |
# any later version. |
| 1040 |
|
| 1041 |
# This program is distributed in the hope that it will be useful, |
| 1042 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1043 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 1044 |
# GNU General Public License for more details. |
| 1045 |
|
| 1046 |
# You should have received a copy of the GNU General Public License |
| 1047 |
# along with this program; if not, write to the Free Software |
| 1048 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 1049 |
# 02111-1307, USA. |
| 1050 |
|
| 1051 |
# serial 2 |
| 1052 |
|
| 1053 |
AC_DEFUN([AM_MAINTAINER_MODE], |
| 1054 |
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
| 1055 |
dnl maintainer-mode is disabled by default |
| 1056 |
AC_ARG_ENABLE(maintainer-mode, |
| 1057 |
[ --enable-maintainer-mode enable make rules and dependencies not useful |
| 1058 |
(and sometimes confusing) to the casual installer], |
| 1059 |
USE_MAINTAINER_MODE=$enableval, |
| 1060 |
USE_MAINTAINER_MODE=no) |
| 1061 |
AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
| 1062 |
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) |
| 1063 |
MAINT=$MAINTAINER_MODE_TRUE |
| 1064 |
AC_SUBST(MAINT)dnl |
| 1065 |
] |
| 1066 |
) |
| 1067 |
|
| 1068 |
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
| 1069 |
|
| 1070 |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
| 1071 |
|
| 1072 |
m4_define([_LT_COPYING], [dnl |
| 1073 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 |
| 1074 |
# Free Software Foundation, Inc. |
| 1075 |
# |
| 1076 |
# This file is part of GNU Libtool: |
| 1077 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 1078 |
# |
| 1079 |
# This program is free software; you can redistribute it and/or modify |
| 1080 |
# it under the terms of the GNU General Public License as published by |
| 1081 |
# the Free Software Foundation; either version 2 of the License, or |
| 1082 |
# (at your option) any later version. |
| 1083 |
# |
| 1084 |
# This program is distributed in the hope that it will be useful, but |
| 1085 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1086 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1087 |
# General Public License for more details. |
| 1088 |
# |
| 1089 |
# You should have received a copy of the GNU General Public License |
| 1090 |
# along with this program; if not, write to the Free Software |
| 1091 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 1092 |
# |
| 1093 |
# As a special exception to the GNU General Public License, if you |
| 1094 |
# distribute this file as part of a program that contains a |
| 1095 |
# configuration script generated by Autoconf, you may include it under |
| 1096 |
# the same distribution terms that you use for the rest of that program. |
| 1097 |
]) |
| 1098 |
|
| 1099 |
# serial 49 LT_INIT |
| 1100 |
|
| 1101 |
|
| 1102 |
# LT_PREREQ(VERSION) |
| 1103 |
# ------------------ |
| 1104 |
# Complain and exit if this libtool version is less that VERSION. |
| 1105 |
m4_define([LT_PREREQ], |
| 1106 |
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
| 1107 |
[m4_default([$3], |
| 1108 |
[m4_fatal([Libtool version $1 or higher is required], |
| 1109 |
63)])], |
| 1110 |
[$2])]) |
| 1111 |
|
| 1112 |
|
| 1113 |
# LT_INIT([OPTIONS]) |
| 1114 |
# -------------------------- |
| 1115 |
AC_DEFUN([LT_INIT], |
| 1116 |
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
| 1117 |
dnl Autoconf doesn't catch unexpanded LT_ macros by default: |
| 1118 |
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
| 1119 |
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW)$])dnl |
| 1120 |
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 |
| 1121 |
dnl unless we require an AC_DEFUNed macro: |
| 1122 |
AC_REQUIRE([LTOPTIONS_VERSION])dnl |
| 1123 |
AC_REQUIRE([LTSUGAR_VERSION])dnl |
| 1124 |
AC_REQUIRE([LTVERSION_VERSION])dnl |
| 1125 |
AC_REQUIRE([_LT_PROG_LTMAIN])dnl |
| 1126 |
AC_BEFORE([$0], [LT_LANG])dnl |
| 1127 |
|
| 1128 |
# This can be used to rebuild libtool when needed |
| 1129 |
LIBTOOL_DEPS="$ltmain" |
| 1130 |
|
| 1131 |
# Always use our own libtool. |
| 1132 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 1133 |
AC_SUBST(LIBTOOL)dnl |
| 1134 |
|
| 1135 |
# Set options |
| 1136 |
_LT_SET_OPTIONS([$1])dnl |
| 1137 |
|
| 1138 |
_LT_SETUP |
| 1139 |
|
| 1140 |
# Only expand once: |
| 1141 |
m4_define([LT_INIT]) |
| 1142 |
])# _LT_INIT |
| 1143 |
|
| 1144 |
# Old names: |
| 1145 |
AU_DEFUN([AC_PROG_LIBTOOL], [LT_INIT]) |
| 1146 |
AU_DEFUN([AM_PROG_LIBTOOL], [LT_INIT]) |
| 1147 |
|
| 1148 |
|
| 1149 |
# _LT_SETUP |
| 1150 |
# --------- |
| 1151 |
m4_define([_LT_SETUP], |
| 1152 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 1153 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 1154 |
_LT_DECL([], [host_alias], [0], [The host system])dnl |
| 1155 |
_LT_DECL([], [host], [0])dnl |
| 1156 |
dnl |
| 1157 |
AC_REQUIRE([AC_PROG_CC])dnl |
| 1158 |
AC_REQUIRE([AC_PROG_LD])dnl |
| 1159 |
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
| 1160 |
AC_REQUIRE([AC_PROG_NM])dnl |
| 1161 |
dnl |
| 1162 |
AC_REQUIRE([AC_PROG_LN_S])dnl |
| 1163 |
test -z "$LN_S" && LN_S="ln -s" |
| 1164 |
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
| 1165 |
dnl |
| 1166 |
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
| 1167 |
AC_REQUIRE([AC_LIBTOOL_SYS_OLD_ARCHIVE])dnl |
| 1168 |
AC_REQUIRE([AC_LIBTOOL_SYS_MAX_CMD_LEN])dnl |
| 1169 |
AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl |
| 1170 |
AC_REQUIRE([AC_OBJEXT])dnl |
| 1171 |
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
| 1172 |
AC_REQUIRE([AC_EXEEXT])dnl |
| 1173 |
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
| 1174 |
dnl |
| 1175 |
|
| 1176 |
_LT_CONFIG_LIBTOOL_INIT([ |
| 1177 |
# See if we are running on zsh, and set the options which allow our |
| 1178 |
# commands through without removal of \ escapes INIT. |
| 1179 |
if test -n "\${ZSH_VERSION+set}" ; then |
| 1180 |
setopt NO_GLOB_SUBST |
| 1181 |
fi |
| 1182 |
]) |
| 1183 |
if test -n "${ZSH_VERSION+set}" ; then |
| 1184 |
setopt NO_GLOB_SUBST |
| 1185 |
fi |
| 1186 |
|
| 1187 |
AC_LIBTOOL_OBJDIR |
| 1188 |
|
| 1189 |
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| 1190 |
_LT_AC_PROG_ECHO_BACKSLASH |
| 1191 |
|
| 1192 |
case $host_os in |
| 1193 |
aix3*) |
| 1194 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 1195 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 1196 |
# vanish in a puff of smoke. |
| 1197 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 1198 |
COLLECT_NAMES= |
| 1199 |
export COLLECT_NAMES |
| 1200 |
fi |
| 1201 |
;; |
| 1202 |
esac |
| 1203 |
|
| 1204 |
# Sed substitution that helps us do robust quoting. It backslashifies |
| 1205 |
# metacharacters that are still active within double-quoted strings. |
| 1206 |
Xsed='sed -e s/^X//' |
| 1207 |
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
| 1208 |
|
| 1209 |
# Same as above, but do not quote variable references. |
| 1210 |
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
| 1211 |
|
| 1212 |
# Sed substitution to delay expansion of an escaped shell variable in a |
| 1213 |
# double_quote_subst'ed string. |
| 1214 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 1215 |
|
| 1216 |
# Sed substitution to delay expansion of an escaped single quote. |
| 1217 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 1218 |
|
| 1219 |
# Sed substitution to avoid accidental globbing in evaled expressions |
| 1220 |
no_glob_subst='s/\*/\\\*/g' |
| 1221 |
|
| 1222 |
# Constants: |
| 1223 |
rm="rm -f" |
| 1224 |
|
| 1225 |
# Global variables: |
| 1226 |
default_ofile=libtool |
| 1227 |
ofile="$default_ofile" |
| 1228 |
can_build_shared=yes |
| 1229 |
|
| 1230 |
# All known linkers require a `.a' archive for static linking (except M$VC, |
| 1231 |
# which needs '.lib'). |
| 1232 |
libext=a |
| 1233 |
|
| 1234 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 1235 |
|
| 1236 |
old_CC="$CC" |
| 1237 |
old_CFLAGS="$CFLAGS" |
| 1238 |
|
| 1239 |
# Set sane defaults for various variables |
| 1240 |
test -z "$CC" && CC=cc |
| 1241 |
test -z "$LTCC" && LTCC=$CC |
| 1242 |
test -z "$LD" && LD=ld |
| 1243 |
test -z "$ac_objext" && ac_objext=o |
| 1244 |
|
| 1245 |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 1246 |
|
| 1247 |
# Only perform the check for file, if the check method requires it |
| 1248 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 1249 |
case $deplibs_check_method in |
| 1250 |
file_magic*) |
| 1251 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 1252 |
AC_PATH_MAGIC |
| 1253 |
fi |
| 1254 |
;; |
| 1255 |
esac |
| 1256 |
|
| 1257 |
AC_ARG_ENABLE([libtool-lock], |
| 1258 |
[AC_HELP_STRING([--disable-libtool-lock], |
| 1259 |
[avoid locking (might break parallel builds)])]) |
| 1260 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 1261 |
|
| 1262 |
# Use C for the default configuration in the libtool script |
| 1263 |
_LT_LANG_C_CONFIG |
| 1264 |
_LT_LANG_DEFAULT_CONFIG |
| 1265 |
_LT_CONFIG_COMMANDS |
| 1266 |
])# _LT_SETUP |
| 1267 |
|
| 1268 |
|
| 1269 |
# _LT_PROG_LTMAIN |
| 1270 |
# --------------- |
| 1271 |
# In libtool itself `ltmain.sh' is in the build tree, but everything else |
| 1272 |
# ships it in the source tree, for completeness, if we find a copy in the |
| 1273 |
# build tree use that before falling back to auxdir. |
| 1274 |
# |
| 1275 |
# Note that this code is called both from `configure', and `config.status' |
| 1276 |
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
| 1277 |
# `config.status' has no value for ac_aux_dir unless we are using Automake, |
| 1278 |
# so we pass a copy along to make sure it has a sensible value anyway. |
| 1279 |
AC_DEFUN([_LT_PROG_LTMAIN], |
| 1280 |
[_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
| 1281 |
case $ac_aux_dir in |
| 1282 |
$srcdir) ltmain=./ltmain.sh ;; |
| 1283 |
$srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;; |
| 1284 |
esac |
| 1285 |
test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh" |
| 1286 |
])# _LT_PROG_LTMAIN |
| 1287 |
|
| 1288 |
|
| 1289 |
|
| 1290 |
|
| 1291 |
# So that we can recreate a full libtool script including additional |
| 1292 |
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS |
| 1293 |
# in macros and then make a single call at the end using the `libtool' |
| 1294 |
# label. |
| 1295 |
|
| 1296 |
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
| 1297 |
# ---------------------------------------- |
| 1298 |
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
| 1299 |
m4_define([_LT_CONFIG_LIBTOOL_INIT], |
| 1300 |
[m4_ifval([$1], |
| 1301 |
[m4_append([_LT_OUTPUT_LIBTOOL_INIT], |
| 1302 |
[$1 |
| 1303 |
])])]) |
| 1304 |
|
| 1305 |
# Initialize. |
| 1306 |
m4_define([_LT_OUTPUT_LIBTOOL_INIT]) |
| 1307 |
|
| 1308 |
# _LT_CONFIG_LIBTOOL([COMMANDS]) |
| 1309 |
# ------------------------------ |
| 1310 |
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
| 1311 |
m4_define([_LT_CONFIG_LIBTOOL], |
| 1312 |
[m4_ifval([$1], |
| 1313 |
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], |
| 1314 |
[$1 |
| 1315 |
])])]) |
| 1316 |
|
| 1317 |
# Initialize. |
| 1318 |
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) |
| 1319 |
|
| 1320 |
|
| 1321 |
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) |
| 1322 |
# --------------------------------------------------- |
| 1323 |
m4_define([_LT_CONFIG_SAVE_COMMANDS], |
| 1324 |
[_LT_CONFIG_LIBTOOL([$1]) |
| 1325 |
_LT_CONFIG_LIBTOOL_INIT([$2]) |
| 1326 |
]) |
| 1327 |
|
| 1328 |
|
| 1329 |
# _LT_FORMAT_COMMENT([COMMENT]) |
| 1330 |
# ----------------------------- |
| 1331 |
# Add leading comment marks to the start of each line, and a trailing |
| 1332 |
# full-stop to the whole comment if one is not present already. |
| 1333 |
m4_define([_LT_FORMAT_COMMENT], |
| 1334 |
[m4_ifval([$1], [ |
| 1335 |
m4_bpatsubst([$1], [^ *], [# ])]m4_bmatch([$1], [[!?.]$], [], [.]) |
| 1336 |
)]) |
| 1337 |
|
| 1338 |
|
| 1339 |
|
| 1340 |
|
| 1341 |
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) |
| 1342 |
# ------------------------------------------------------------------- |
| 1343 |
# CONFIGNAME is the name given to the value in the libtool script. |
| 1344 |
# VARNAME is the (base) name used in the configure script. |
| 1345 |
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on |
| 1346 |
# VARNAME. Any other value will be used directly. |
| 1347 |
m4_define([_LT_DECL], |
| 1348 |
[lt_if_append_uniq([lt_decl_varnames], [$2], [[, ]], |
| 1349 |
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], |
| 1350 |
[m4_ifval([$1], [$1], [$2])]) |
| 1351 |
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) |
| 1352 |
m4_ifval([$4], |
| 1353 |
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) |
| 1354 |
lt_dict_add_subkey([lt_decl_dict], [$2], |
| 1355 |
[tagged?], [m4_ifval([$5], [yes], [no])])]) |
| 1356 |
]) |
| 1357 |
|
| 1358 |
|
| 1359 |
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) |
| 1360 |
# -------------------------------------------------------- |
| 1361 |
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) |
| 1362 |
|
| 1363 |
|
| 1364 |
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) |
| 1365 |
# ------------------------------------------------- |
| 1366 |
m4_define([lt_decl_tag_varnames], |
| 1367 |
[_lt_decl_filter([tagged?], [yes], $@)]) |
| 1368 |
m4_define([_lt_decl_filter], |
| 1369 |
[m4_case([$#], |
| 1370 |
[0], [m4_fatal([$0: too few arguments: $#])], |
| 1371 |
[1], [m4_fatal([$0: too few arguments: $#: $1])], |
| 1372 |
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], |
| 1373 |
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], |
| 1374 |
[lt_dict_filter([lt_decl_dict], $@)])[]dnl |
| 1375 |
]) |
| 1376 |
|
| 1377 |
|
| 1378 |
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) |
| 1379 |
# --------------------------------------------------- |
| 1380 |
m4_define([lt_decl_quote_varnames], |
| 1381 |
[_lt_decl_filter([value], [1], $@)]) |
| 1382 |
|
| 1383 |
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) |
| 1384 |
# ---------------------------------------------------- |
| 1385 |
m4_define([lt_decl_dquote_varnames], |
| 1386 |
[_lt_decl_filter([value], [2], $@)]) |
| 1387 |
|
| 1388 |
|
| 1389 |
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) |
| 1390 |
# ---------------------------------------------------- |
| 1391 |
m4_define([lt_decl_varnames_tagged], |
| 1392 |
[_$0(m4_quote(m4_default([$1], [[, ]])), |
| 1393 |
m4_quote(m4_if([$2], [], |
| 1394 |
m4_quote(lt_decl_tag_varnames), |
| 1395 |
m4_quote(m4_shift($@)))), |
| 1396 |
m4_split(m4_normalize(m4_quote(_LT_TAGS))))]) |
| 1397 |
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)]) |
| 1398 |
|
| 1399 |
|
| 1400 |
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) |
| 1401 |
# ------------------------------------------------ |
| 1402 |
m4_define([lt_decl_all_varnames], |
| 1403 |
[_$0(m4_quote(m4_default([$1], [[, ]])), |
| 1404 |
m4_if([$2], [], |
| 1405 |
m4_quote(lt_decl_varnames), |
| 1406 |
m4_quote(m4_shift($@))))[]dnl |
| 1407 |
]) |
| 1408 |
m4_define([_lt_decl_all_varnames], |
| 1409 |
[lt_join($@, lt_decl_varnames_tagged([$1], |
| 1410 |
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
| 1411 |
]) |
| 1412 |
|
| 1413 |
|
| 1414 |
# _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
| 1415 |
# ------------------------------------ |
| 1416 |
# Quote a variable value, and forward it to `config.status' so that its |
| 1417 |
# declaration there will have the same value as in `configure'. VARNAME |
| 1418 |
# must have a single quote delimited value for this to work. |
| 1419 |
m4_define([_LT_CONFIG_STATUS_DECLARE], |
| 1420 |
[$1='`$echo "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) |
| 1421 |
|
| 1422 |
|
| 1423 |
# _LT_CONFIG_STATUS_DECLARATIONS |
| 1424 |
# ------------------------------ |
| 1425 |
# We delimit libtool config variables with single quotes, so when |
| 1426 |
# we write them to config.status, we have to be sure to quote all |
| 1427 |
# embedded single quotes properly. In configure, this macro expands |
| 1428 |
# each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
| 1429 |
# |
| 1430 |
# <var>='`$echo "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' |
| 1431 |
m4_define([_LT_CONFIG_STATUS_DECLARATIONS], |
| 1432 |
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
| 1433 |
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
| 1434 |
|
| 1435 |
|
| 1436 |
# _LT_LIBTOOL_TAGS |
| 1437 |
# ---------------- |
| 1438 |
# Output comment and list of tags supported by the script |
| 1439 |
m4_define([_LT_LIBTOOL_TAGS], |
| 1440 |
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl |
| 1441 |
available_tags="[]_LT_TAGS[]"dnl |
| 1442 |
]) |
| 1443 |
|
| 1444 |
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
| 1445 |
# ----------------------------------- |
| 1446 |
# Extract the dictionary values for VARNAME (optionally with TAG) and |
| 1447 |
# expand to a commented shell variable setting: |
| 1448 |
# |
| 1449 |
# # Some comment about what VAR is for. |
| 1450 |
# visible_name=$lt_internal_name |
| 1451 |
m4_define([_LT_LIBTOOL_DECLARE], |
| 1452 |
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], |
| 1453 |
[description])))[]dnl |
| 1454 |
m4_pushdef([_libtool_name], |
| 1455 |
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl |
| 1456 |
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), |
| 1457 |
[0], [_libtool_name=[$]$1], |
| 1458 |
[1], [_libtool_name=$lt_[]$1], |
| 1459 |
[2], [_libtool_name=$lt_[]$1], |
| 1460 |
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl |
| 1461 |
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl |
| 1462 |
]) |
| 1463 |
|
| 1464 |
# _LT_LIBTOOL_CONFIG_VARS |
| 1465 |
# ----------------------- |
| 1466 |
# Produce commented declarations of non-tagged libtool config variables |
| 1467 |
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' |
| 1468 |
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG |
| 1469 |
# section) are produced by _LT_LIBTOOL_TAG_VARS. |
| 1470 |
m4_define([_LT_LIBTOOL_CONFIG_VARS], |
| 1471 |
[m4_foreach([_lt_var], |
| 1472 |
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), |
| 1473 |
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) |
| 1474 |
|
| 1475 |
# _LT_LIBTOOL_TAG_VARS(TAG) |
| 1476 |
# ------------------------- |
| 1477 |
m4_define([_LT_LIBTOOL_TAG_VARS], |
| 1478 |
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), |
| 1479 |
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) |
| 1480 |
|
| 1481 |
|
| 1482 |
# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) |
| 1483 |
# --------------------------------- |
| 1484 |
m4_define([_LT_AC_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) |
| 1485 |
|
| 1486 |
|
| 1487 |
# _LT_CONFIG_COMMANDS |
| 1488 |
# ------------------- |
| 1489 |
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of |
| 1490 |
# variables for single and double quote escaping we saved from calls |
| 1491 |
# to _LT_DECL, we can put quote escaped variables declarations |
| 1492 |
# into `config.status', and then the shell code to quote escape them in |
| 1493 |
# for loops in `config.status'. Finally, any additional code accumulated |
| 1494 |
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. |
| 1495 |
m4_define([_LT_CONFIG_COMMANDS], |
| 1496 |
[AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [ |
| 1497 |
|
| 1498 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 1499 |
# if CDPATH is set. |
| 1500 |
if test "X${CDPATH+set}" = Xset; then CDPATH=${ZSH_VERSION+.}:; export CDPATH; fi |
| 1501 |
|
| 1502 |
sed_quote_subst='$sed_quote_subst' |
| 1503 |
double_quote_subst='$double_quote_subst' |
| 1504 |
delay_variable_subst='$delay_variable_subst' |
| 1505 |
_LT_CONFIG_STATUS_DECLARATIONS |
| 1506 |
LTCC='$LTCC' |
| 1507 |
compiler='$compiler_DEFAULT' |
| 1508 |
|
| 1509 |
# Quote evaled strings. |
| 1510 |
for var in lt_decl_all_varnames([[ ]], lt_decl_quote_varnames); do |
| 1511 |
eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 1512 |
done |
| 1513 |
|
| 1514 |
# Double-quote double-evaled strings. |
| 1515 |
for var in lt_decl_all_varnames([[ ]], lt_decl_dquote_varnames); do |
| 1516 |
eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 1517 |
done |
| 1518 |
|
| 1519 |
# Fix-up fallback echo if it was mangled by the above quoting rules. |
| 1520 |
case \$lt_echo in |
| 1521 |
*'\\\[$]0 --fallback-echo"')dnl " |
| 1522 |
lt_echo=\`\$echo "X\$lt_echo" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` |
| 1523 |
;; |
| 1524 |
esac |
| 1525 |
|
| 1526 |
_LT_OUTPUT_LIBTOOL_INIT |
| 1527 |
]) |
| 1528 |
])#_LT_CONFIG_COMMANDS |
| 1529 |
|
| 1530 |
|
| 1531 |
# _LT_CONFIG(TAG) |
| 1532 |
# ---------------------------- |
| 1533 |
# If TAG is the built-in tag, create an initial libtool script with a |
| 1534 |
# default configuration from the untagged config vars. Otherwise add code |
| 1535 |
# to config.status for appending the configuration named by TAG from the |
| 1536 |
# matching tagged config vars. |
| 1537 |
m4_define([_LT_CONFIG], |
| 1538 |
[_LT_CONFIG_SAVE_COMMANDS([ |
| 1539 |
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl |
| 1540 |
m4_if(_LT_TAG, [C], [ |
| 1541 |
# See if we are running on zsh, and set the options which allow our |
| 1542 |
# commands through without removal of \ escapes. |
| 1543 |
if test -n "${ZSH_VERSION+set}" ; then |
| 1544 |
setopt NO_GLOB_SUBST |
| 1545 |
fi |
| 1546 |
|
| 1547 |
cfgfile="${ofile}T" |
| 1548 |
trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 1549 |
$rm -f "$cfgfile" |
| 1550 |
|
| 1551 |
cat <<_LT_EOF >> "$cfgfile" |
| 1552 |
#! $SHELL |
| 1553 |
|
| 1554 |
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 1555 |
# Generated automatically by config.status (GNU $PACKAGE$TIMESTAMP) $VERSION |
| 1556 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 1557 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 1558 |
# |
| 1559 |
_LT_COPYING |
| 1560 |
|
| 1561 |
_LT_LIBTOOL_TAGS |
| 1562 |
|
| 1563 |
# ### BEGIN LIBTOOL CONFIG |
| 1564 |
_LT_LIBTOOL_CONFIG_VARS |
| 1565 |
_LT_LIBTOOL_TAG_VARS |
| 1566 |
# ### END LIBTOOL CONFIG |
| 1567 |
|
| 1568 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 1569 |
# if CDPATH is set. |
| 1570 |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 1571 |
|
| 1572 |
_LT_EOF |
| 1573 |
|
| 1574 |
case $host_os in |
| 1575 |
aix3*) |
| 1576 |
cat <<\_LT_EOF >> "$cfgfile" |
| 1577 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 1578 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 1579 |
# vanish in a puff of smoke. |
| 1580 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 1581 |
COLLECT_NAMES= |
| 1582 |
export COLLECT_NAMES |
| 1583 |
fi |
| 1584 |
_LT_EOF |
| 1585 |
;; |
| 1586 |
esac |
| 1587 |
|
| 1588 |
_LT_PROG_LTMAIN |
| 1589 |
|
| 1590 |
# We use sed instead of cat because bash on DJGPP gets confused if |
| 1591 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 1592 |
# text mode, it properly converts lines to CR/LF. This bash problem |
| 1593 |
# is reportedly fixed, but why not run on old versions too? |
| 1594 |
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 1595 |
|
| 1596 |
mv -f "$cfgfile" "$ofile" || |
| 1597 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 1598 |
chmod +x "$ofile" |
| 1599 |
], |
| 1600 |
[cat <<_LT_EOF >> "$ofile" |
| 1601 |
|
| 1602 |
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
| 1603 |
dnl in a comment (ie after a #). |
| 1604 |
# ### BEGIN LIBTOOL TAG CONFIG: $1 |
| 1605 |
_LT_LIBTOOL_TAG_VARS(_LT_TAG) |
| 1606 |
# ### END LIBTOOL TAG CONFIG: $1 |
| 1607 |
_LT_EOF |
| 1608 |
])dnl /m4_if |
| 1609 |
], |
| 1610 |
[m4_if([$1], [], [ |
| 1611 |
PACKAGE='$PACKAGE' |
| 1612 |
VERSION='$VERSION' |
| 1613 |
TIMESTAMP='$TIMESTAMP' |
| 1614 |
rm='$rm' |
| 1615 |
ofile='$ofile'], []) |
| 1616 |
])dnl /_LT_CONFIG_SAVE_COMMANDS |
| 1617 |
])# _LT_CONFIG |
| 1618 |
|
| 1619 |
|
| 1620 |
# C support is built-in for now |
| 1621 |
m4_define([_LT_LANG_C_enabled], []) |
| 1622 |
m4_define([_LT_TAGS], []) |
| 1623 |
|
| 1624 |
# LT_LANG(LANG) |
| 1625 |
# ------------- |
| 1626 |
# Enable libtool support for the given language if not already enabled. |
| 1627 |
AC_DEFUN([LT_LANG], |
| 1628 |
[m4_case([$1], |
| 1629 |
[C], [_LT_LANG(C)], |
| 1630 |
[C++], [_LT_LANG(CXX)], |
| 1631 |
[Java], [_LT_LANG(GCJ)], |
| 1632 |
[Fortran 77], [_LT_LANG(F77)], |
| 1633 |
[Windows Resource], [_LT_LANG(RC)], |
| 1634 |
[m4_ifdef([_LT_LANG_]$1[_CONFIG], |
| 1635 |
[_LT_LANG($1)], |
| 1636 |
[m4_fatal([$0: unsupported language: "$1"])])])dnl |
| 1637 |
])# LT_LANG |
| 1638 |
|
| 1639 |
# _LT_LANG(LANGNAME) |
| 1640 |
# ------------------ |
| 1641 |
m4_define([_LT_LANG], |
| 1642 |
[m4_ifdef([_LT_LANG_]$1[_enabled], [], |
| 1643 |
[m4_append([_LT_TAGS], [$1 ])dnl |
| 1644 |
m4_define([_LT_LANG_]$1[_enabled], [])dnl |
| 1645 |
_LT_LANG_$1_CONFIG($1)])dnl |
| 1646 |
])# _LT_LANG |
| 1647 |
|
| 1648 |
# _LT_LANG_DEFAULT_CONFIG |
| 1649 |
# ----------------------- |
| 1650 |
m4_define([_LT_LANG_DEFAULT_CONFIG], |
| 1651 |
[AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 1652 |
[LT_LANG(CXX)], |
| 1653 |
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
| 1654 |
|
| 1655 |
AC_PROVIDE_IFELSE([AC_PROG_F77], |
| 1656 |
[LT_LANG(F77)], |
| 1657 |
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) |
| 1658 |
|
| 1659 |
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal |
| 1660 |
dnl pulling things in needlessly. |
| 1661 |
AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
| 1662 |
[LT_LANG(GCJ)], |
| 1663 |
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
| 1664 |
[LT_LANG(GCJ)], |
| 1665 |
[AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
| 1666 |
[LT_LANG(GCJ)], |
| 1667 |
[m4_ifdef([AC_PROG_GCJ], |
| 1668 |
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
| 1669 |
m4_ifdef([A][M_PROG_GCJ], |
| 1670 |
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
| 1671 |
m4_ifdef([LT_PROG_GCJ], |
| 1672 |
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
| 1673 |
|
| 1674 |
AC_PROVIDE_IFELSE([LT_PROG_RC], |
| 1675 |
[LT_LANG(RC)], |
| 1676 |
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
| 1677 |
])# _LT_LANG_DEFAULT_CONFIG |
| 1678 |
|
| 1679 |
# Obsolete macros |
| 1680 |
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
| 1681 |
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
| 1682 |
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java])]) |
| 1683 |
|
| 1684 |
|
| 1685 |
# _LT_AC_SYS_COMPILER |
| 1686 |
# ------------------- |
| 1687 |
AC_DEFUN([_LT_AC_SYS_COMPILER], |
| 1688 |
[AC_REQUIRE([AC_PROG_CC])dnl |
| 1689 |
|
| 1690 |
_LT_DECL([LTCC], [CC], [1], [A C compiler]) |
| 1691 |
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
| 1692 |
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU C compiler?]) |
| 1693 |
|
| 1694 |
# If no C compiler was specified, use CC. |
| 1695 |
LTCC=${LTCC-"$CC"} |
| 1696 |
|
| 1697 |
# Allow CC to be a program name with arguments. |
| 1698 |
compiler=$CC |
| 1699 |
])# _LT_AC_SYS_COMPILER |
| 1700 |
|
| 1701 |
|
| 1702 |
# _LT_AC_SYS_LIBPATH_AIX |
| 1703 |
# ---------------------- |
| 1704 |
# Links a minimal program and checks the executable |
| 1705 |
# for the system default hardcoded library path. In most cases, |
| 1706 |
# this is /usr/lib:/lib, but when the MPI compilers are used |
| 1707 |
# the location of the communication and MPI libs are included too. |
| 1708 |
# If we don't find anything, use the default library path according |
| 1709 |
# to the aix ld manual. |
| 1710 |
m4_define([_LT_AC_SYS_LIBPATH_AIX], |
| 1711 |
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
| 1712 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 1713 |
}'` |
| 1714 |
# Check for a 64-bit object if we didn't find anything. |
| 1715 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 1716 |
}'`; fi],[]) |
| 1717 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 1718 |
])# _LT_AC_SYS_LIBPATH_AIX |
| 1719 |
|
| 1720 |
|
| 1721 |
# _LT_AC_SHELL_INIT(ARG) |
| 1722 |
# ---------------------- |
| 1723 |
m4_define([_LT_AC_SHELL_INIT], |
| 1724 |
[ifdef([AC_DIVERSION_NOTICE], |
| 1725 |
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
| 1726 |
[AC_DIVERT_PUSH(NOTICE)]) |
| 1727 |
$1 |
| 1728 |
AC_DIVERT_POP |
| 1729 |
])# _LT_AC_SHELL_INIT |
| 1730 |
|
| 1731 |
|
| 1732 |
# _LT_AC_PROG_ECHO_BACKSLASH |
| 1733 |
# -------------------------- |
| 1734 |
# Add some code to the start of the generated configure script which |
| 1735 |
# will find an echo command which doesn't interpret backslashes. |
| 1736 |
m4_define([_LT_AC_PROG_ECHO_BACKSLASH], |
| 1737 |
[_LT_AC_SHELL_INIT([ |
| 1738 |
# Check that we are running under the correct shell. |
| 1739 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 1740 |
|
| 1741 |
case X$ECHO in |
| 1742 |
X*--fallback-echo) |
| 1743 |
# Remove one level of quotation (which was required for Make). |
| 1744 |
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
| 1745 |
;; |
| 1746 |
esac |
| 1747 |
|
| 1748 |
echo=${ECHO-echo} |
| 1749 |
if test "X[$]1" = X--no-reexec; then |
| 1750 |
# Discard the --no-reexec flag, and continue. |
| 1751 |
shift |
| 1752 |
elif test "X[$]1" = X--fallback-echo; then |
| 1753 |
# Avoid inline document here, it may be left over |
| 1754 |
: |
| 1755 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 1756 |
# Yippee, $echo works! |
| 1757 |
: |
| 1758 |
else |
| 1759 |
# Restart under the correct shell. |
| 1760 |
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
| 1761 |
fi |
| 1762 |
|
| 1763 |
if test "X[$]1" = X--fallback-echo; then |
| 1764 |
# used as fallback echo |
| 1765 |
shift |
| 1766 |
cat <<_LT_EOF |
| 1767 |
[$]* |
| 1768 |
_LT_EOF |
| 1769 |
exit 0 |
| 1770 |
fi |
| 1771 |
|
| 1772 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 1773 |
# if CDPATH is set. |
| 1774 |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 1775 |
|
| 1776 |
if test -z "$ECHO"; then |
| 1777 |
if test "X${echo_test_string+set}" != Xset; then |
| 1778 |
# find a string as large as possible, as long as the shell can cope with it |
| 1779 |
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
| 1780 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 1781 |
if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 1782 |
echo_test_string="`eval $cmd`" && |
| 1783 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 1784 |
then |
| 1785 |
break |
| 1786 |
fi |
| 1787 |
done |
| 1788 |
fi |
| 1789 |
|
| 1790 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 1791 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 1792 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 1793 |
: |
| 1794 |
else |
| 1795 |
# The Solaris, AIX, and Digital Unix default echo programs unquote |
| 1796 |
# backslashes. This makes it impossible to quote backslashes using |
| 1797 |
# echo "$something" | sed 's/\\/\\\\/g' |
| 1798 |
# |
| 1799 |
# So, first we look for a working echo in the user's PATH. |
| 1800 |
|
| 1801 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 1802 |
for dir in $PATH /usr/ucb; do |
| 1803 |
IFS="$lt_save_ifs" |
| 1804 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 1805 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 1806 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 1807 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 1808 |
echo="$dir/echo" |
| 1809 |
break |
| 1810 |
fi |
| 1811 |
done |
| 1812 |
IFS="$lt_save_ifs" |
| 1813 |
|
| 1814 |
if test "X$echo" = Xecho; then |
| 1815 |
# We didn't find a better echo, so look for alternatives. |
| 1816 |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 1817 |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 1818 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 1819 |
# This shell has a builtin print -r that does the trick. |
| 1820 |
echo='print -r' |
| 1821 |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 1822 |
test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 1823 |
# If we have ksh, try running configure again with it. |
| 1824 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 1825 |
export ORIGINAL_CONFIG_SHELL |
| 1826 |
CONFIG_SHELL=/bin/ksh |
| 1827 |
export CONFIG_SHELL |
| 1828 |
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
| 1829 |
else |
| 1830 |
# Try using printf. |
| 1831 |
echo='printf %s\n' |
| 1832 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 1833 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 1834 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 1835 |
# Cool, printf works |
| 1836 |
: |
| 1837 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
| 1838 |
test "X$echo_testing_string" = 'X\t' && |
| 1839 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 1840 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 1841 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 1842 |
export CONFIG_SHELL |
| 1843 |
SHELL="$CONFIG_SHELL" |
| 1844 |
export SHELL |
| 1845 |
echo="$CONFIG_SHELL [$]0 --fallback-echo" |
| 1846 |
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
| 1847 |
test "X$echo_testing_string" = 'X\t' && |
| 1848 |
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 1849 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 1850 |
echo="$CONFIG_SHELL [$]0 --fallback-echo" |
| 1851 |
else |
| 1852 |
# maybe with a smaller string... |
| 1853 |
prev=: |
| 1854 |
|
| 1855 |
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
| 1856 |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 1857 |
then |
| 1858 |
break |
| 1859 |
fi |
| 1860 |
prev="$cmd" |
| 1861 |
done |
| 1862 |
|
| 1863 |
if test "$prev" != 'sed 50q "[$]0"'; then |
| 1864 |
echo_test_string=`eval $prev` |
| 1865 |
export echo_test_string |
| 1866 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
| 1867 |
else |
| 1868 |
# Oops. We lost completely, so just stick with echo. |
| 1869 |
echo=echo |
| 1870 |
fi |
| 1871 |
fi |
| 1872 |
fi |
| 1873 |
fi |
| 1874 |
fi |
| 1875 |
fi |
| 1876 |
|
| 1877 |
# Copy echo and quote the copy suitably for passing to libtool from |
| 1878 |
# the Makefile, instead of quoting the original, which is used later. |
| 1879 |
ECHO=$echo |
| 1880 |
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
| 1881 |
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
| 1882 |
fi |
| 1883 |
|
| 1884 |
AC_SUBST(ECHO) |
| 1885 |
]) |
| 1886 |
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
| 1887 |
_LT_DECL([], [echo], [1], |
| 1888 |
[An echo program that does not interpret backslashes]) |
| 1889 |
])# _LT_AC_PROG_ECHO_BACKSLASH |
| 1890 |
|
| 1891 |
|
| 1892 |
# _LT_AC_LOCK |
| 1893 |
# ----------- |
| 1894 |
AC_DEFUN([_LT_AC_LOCK], |
| 1895 |
[AC_REQUIRE([AC_OBJEXT])dnl |
| 1896 |
AC_ARG_ENABLE([libtool-lock], |
| 1897 |
[AC_HELP_STRING([--disable-libtool-lock], |
| 1898 |
[avoid locking (might break parallel builds)])]) |
| 1899 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 1900 |
|
| 1901 |
# Some flags need to be propagated to the compiler or linker for good |
| 1902 |
# libtool support. |
| 1903 |
case $host in |
| 1904 |
ia64-*-hpux*) |
| 1905 |
# Find out which ABI we are using. |
| 1906 |
echo 'int i;' > conftest.$ac_ext |
| 1907 |
if AC_TRY_EVAL(ac_compile); then |
| 1908 |
case `/usr/bin/file conftest.$ac_objext` in |
| 1909 |
*ELF-32*) |
| 1910 |
HPUX_IA64_MODE="32" |
| 1911 |
;; |
| 1912 |
*ELF-64*) |
| 1913 |
HPUX_IA64_MODE="64" |
| 1914 |
;; |
| 1915 |
esac |
| 1916 |
fi |
| 1917 |
rm -rf conftest* |
| 1918 |
;; |
| 1919 |
*-*-irix6*) |
| 1920 |
# Find out which ABI we are using. |
| 1921 |
echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
| 1922 |
if AC_TRY_EVAL(ac_compile); then |
| 1923 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 1924 |
case `/usr/bin/file conftest.$ac_objext` in |
| 1925 |
*32-bit*) |
| 1926 |
LD="${LD-ld} -melf32bsmip" |
| 1927 |
;; |
| 1928 |
*N32*) |
| 1929 |
LD="${LD-ld} -melf32bmipn32" |
| 1930 |
;; |
| 1931 |
*64-bit*) |
| 1932 |
LD="${LD-ld} -melf64bmip" |
| 1933 |
;; |
| 1934 |
esac |
| 1935 |
else |
| 1936 |
case `/usr/bin/file conftest.$ac_objext` in |
| 1937 |
*32-bit*) |
| 1938 |
LD="${LD-ld} -32" |
| 1939 |
;; |
| 1940 |
*N32*) |
| 1941 |
LD="${LD-ld} -n32" |
| 1942 |
;; |
| 1943 |
*64-bit*) |
| 1944 |
LD="${LD-ld} -64" |
| 1945 |
;; |
| 1946 |
esac |
| 1947 |
fi |
| 1948 |
fi |
| 1949 |
rm -rf conftest* |
| 1950 |
;; |
| 1951 |
|
| 1952 |
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 1953 |
# Find out which ABI we are using. |
| 1954 |
echo 'int i;' > conftest.$ac_ext |
| 1955 |
if AC_TRY_EVAL(ac_compile); then |
| 1956 |
case "`/usr/bin/file conftest.o`" in |
| 1957 |
*32-bit*) |
| 1958 |
case $host in |
| 1959 |
x86_64-*linux*) |
| 1960 |
LD="${LD-ld} -m elf_i386" |
| 1961 |
;; |
| 1962 |
ppc64-*linux*|powerpc64-*linux*) |
| 1963 |
LD="${LD-ld} -m elf32ppclinux" |
| 1964 |
;; |
| 1965 |
s390x-*linux*) |
| 1966 |
LD="${LD-ld} -m elf_s390" |
| 1967 |
;; |
| 1968 |
sparc64-*linux*) |
| 1969 |
LD="${LD-ld} -m elf32_sparc" |
| 1970 |
;; |
| 1971 |
esac |
| 1972 |
;; |
| 1973 |
*64-bit*) |
| 1974 |
case $host in |
| 1975 |
x86_64-*linux*) |
| 1976 |
LD="${LD-ld} -m elf_x86_64" |
| 1977 |
;; |
| 1978 |
ppc*-*linux*|powerpc*-*linux*) |
| 1979 |
LD="${LD-ld} -m elf64ppc" |
| 1980 |
;; |
| 1981 |
s390*-*linux*) |
| 1982 |
LD="${LD-ld} -m elf64_s390" |
| 1983 |
;; |
| 1984 |
sparc*-*linux*) |
| 1985 |
LD="${LD-ld} -m elf64_sparc" |
| 1986 |
;; |
| 1987 |
esac |
| 1988 |
;; |
| 1989 |
esac |
| 1990 |
fi |
| 1991 |
rm -rf conftest* |
| 1992 |
;; |
| 1993 |
|
| 1994 |
*-*-sco3.2v5*) |
| 1995 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 1996 |
SAVE_CFLAGS="$CFLAGS" |
| 1997 |
CFLAGS="$CFLAGS -belf" |
| 1998 |
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
| 1999 |
[AC_LANG_PUSH(C) |
| 2000 |
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
| 2001 |
AC_LANG_POP]) |
| 2002 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 2003 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 2004 |
CFLAGS="$SAVE_CFLAGS" |
| 2005 |
fi |
| 2006 |
;; |
| 2007 |
esac |
| 2008 |
|
| 2009 |
need_locks="$enable_libtool_lock" |
| 2010 |
])# _LT_AC_LOCK |
| 2011 |
|
| 2012 |
|
| 2013 |
# AC_LIBTOOL_SYS_OLD_ARCHIVE |
| 2014 |
# -------------------------- |
| 2015 |
AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE], |
| 2016 |
[AC_CHECK_TOOL(AR, ar, false) |
| 2017 |
test -z "$AR" && AR=ar |
| 2018 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 2019 |
_LT_DECL([], [AR], [1], [The archiver]) |
| 2020 |
_LT_DECL([], [AR_FLAGS], [1]) |
| 2021 |
|
| 2022 |
AC_CHECK_TOOL(STRIP, strip, :) |
| 2023 |
test -z "$STRIP" && STRIP=: |
| 2024 |
_LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
| 2025 |
|
| 2026 |
AC_CHECK_TOOL(RANLIB, ranlib, :) |
| 2027 |
test -z "$RANLIB" && RANLIB=: |
| 2028 |
_LT_DECL([], [RANLIB], [1], |
| 2029 |
[Commands used to install an old-style archive]) |
| 2030 |
|
| 2031 |
# Determine commands to create old-style static archives. |
| 2032 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 2033 |
old_postinstall_cmds='chmod 644 $oldlib' |
| 2034 |
old_postuninstall_cmds= |
| 2035 |
|
| 2036 |
if test -n "$RANLIB"; then |
| 2037 |
case $host_os in |
| 2038 |
openbsd*) |
| 2039 |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 2040 |
;; |
| 2041 |
*) |
| 2042 |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 2043 |
;; |
| 2044 |
esac |
| 2045 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 2046 |
fi |
| 2047 |
_LT_DECL([], [old_postinstall_cmds], [2]) |
| 2048 |
_LT_DECL([], [old_postuninstall_cmds], [2]) |
| 2049 |
_LT_TAGDECL([], [old_archive_cmds], [2], |
| 2050 |
[Commands used to build an old-style archive]) |
| 2051 |
])# AC_LIBTOOL_SYS_OLD_ARCHIVE |
| 2052 |
|
| 2053 |
|
| 2054 |
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 2055 |
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 2056 |
# ---------------------------------------------------------------- |
| 2057 |
# Check whether the given compiler option works |
| 2058 |
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
| 2059 |
[AC_REQUIRE([AC_OBJEXT])dnl |
| 2060 |
AC_REQUIRE([LT_AC_PROG_SED])dnl |
| 2061 |
AC_CACHE_CHECK([$1], [$2], |
| 2062 |
[$2=no |
| 2063 |
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
| 2064 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 2065 |
lt_compiler_flag="$3" |
| 2066 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 2067 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 2068 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 2069 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 2070 |
# The option is referenced via a variable to avoid confusing sed. |
| 2071 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 2072 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 2073 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 2074 |
-e 's:$: $lt_compiler_flag:'` |
| 2075 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 2076 |
(eval "$lt_compile" 2>conftest.err) |
| 2077 |
ac_status=$? |
| 2078 |
cat conftest.err >&AS_MESSAGE_LOG_FD |
| 2079 |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 2080 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 2081 |
# The compiler can only warn and ignore the option if not recognized |
| 2082 |
# So say no if there are warnings |
| 2083 |
if test ! -s conftest.err; then |
| 2084 |
$2=yes |
| 2085 |
fi |
| 2086 |
fi |
| 2087 |
$rm conftest* |
| 2088 |
]) |
| 2089 |
|
| 2090 |
if test x"[$]$2" = xyes; then |
| 2091 |
m4_if([$5], , :, [$5]) |
| 2092 |
else |
| 2093 |
m4_if([$6], , :, [$6]) |
| 2094 |
fi |
| 2095 |
])# AC_LIBTOOL_COMPILER_OPTION |
| 2096 |
|
| 2097 |
|
| 2098 |
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 2099 |
# [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 2100 |
# ------------------------------------------------------------ |
| 2101 |
# Check whether the given compiler option works |
| 2102 |
m4_define([AC_LIBTOOL_LINKER_OPTION], |
| 2103 |
[AC_CACHE_CHECK([$1], [$2], |
| 2104 |
[$2=no |
| 2105 |
save_LDFLAGS="$LDFLAGS" |
| 2106 |
LDFLAGS="$LDFLAGS $3" |
| 2107 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 2108 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 2109 |
# The compiler can only warn and ignore the option if not recognized |
| 2110 |
# So say no if there are warnings |
| 2111 |
if test -s conftest.err; then |
| 2112 |
# Append any errors to the config.log. |
| 2113 |
cat conftest.err 1>&AS_MESSAGE_LOG_FD |
| 2114 |
else |
| 2115 |
$2=yes |
| 2116 |
fi |
| 2117 |
fi |
| 2118 |
$rm conftest* |
| 2119 |
LDFLAGS="$save_LDFLAGS" |
| 2120 |
]) |
| 2121 |
|
| 2122 |
if test x"[$]$2" = xyes; then |
| 2123 |
m4_if([$4], , :, [$4]) |
| 2124 |
else |
| 2125 |
m4_if([$5], , :, [$5]) |
| 2126 |
fi |
| 2127 |
])# AC_LIBTOOL_LINKER_OPTION |
| 2128 |
|
| 2129 |
|
| 2130 |
# AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 2131 |
# -------------------------- |
| 2132 |
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
| 2133 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 2134 |
# find the maximum length of command line arguments |
| 2135 |
AC_MSG_CHECKING([the maximum length of command line arguments]) |
| 2136 |
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
| 2137 |
i=0 |
| 2138 |
teststring="ABCD" |
| 2139 |
|
| 2140 |
case $build_os in |
| 2141 |
msdosdjgpp*) |
| 2142 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
| 2143 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
| 2144 |
# during glob expansion). Even if it were fixed, the result of this |
| 2145 |
# check would be larger than it should be. |
| 2146 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 2147 |
;; |
| 2148 |
|
| 2149 |
gnu*) |
| 2150 |
# Under GNU Hurd, this test is not required because there is |
| 2151 |
# no limit to the length of command line arguments. |
| 2152 |
# Libtool will interpret -1 as no limit whatsoever |
| 2153 |
lt_cv_sys_max_cmd_len=-1; |
| 2154 |
;; |
| 2155 |
|
| 2156 |
cygwin* | mingw*) |
| 2157 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
| 2158 |
# about 5 minutes as the teststring grows exponentially. |
| 2159 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
| 2160 |
# you end up with a "frozen" computer, even though with patience |
| 2161 |
# the test eventually succeeds (with a max line length of 256k). |
| 2162 |
# Instead, let's just punt: use the minimum linelength reported by |
| 2163 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
| 2164 |
lt_cv_sys_max_cmd_len=8192; |
| 2165 |
;; |
| 2166 |
|
| 2167 |
amigaos*) |
| 2168 |
# On AmigaOS with pdksh, this test takes hours, literally. |
| 2169 |
# So we just punt and use a minimum line length of 8192. |
| 2170 |
lt_cv_sys_max_cmd_len=8192; |
| 2171 |
;; |
| 2172 |
|
| 2173 |
*) |
| 2174 |
# Make teststring a little bigger before we do anything with it. |
| 2175 |
# a 1K string should be a reasonable start. |
| 2176 |
for i in 1 2 3 4 5 6 7 8 ; do |
| 2177 |
teststring=$teststring$teststring |
| 2178 |
done |
| 2179 |
# If test is not a shell built-in, we'll probably end up computing a |
| 2180 |
# maximum length that is only half of the actual maximum length, but |
| 2181 |
# we can't tell. |
| 2182 |
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 2183 |
= "XX$teststring$teststring") >/dev/null 2>&1 && |
| 2184 |
test $i != 17 # 1/2 MB should be enough |
| 2185 |
do |
| 2186 |
i=`expr $i + 1` |
| 2187 |
teststring=$teststring$teststring |
| 2188 |
done |
| 2189 |
# Only check the string length outside the loop. |
| 2190 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 2191 |
teststring= |
| 2192 |
# Add a significant safety factor because C++ compilers can tack on massive |
| 2193 |
# amounts of additional arguments before passing them to the linker. |
| 2194 |
# It appears as though 1/2 is a usable value. |
| 2195 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 2196 |
;; |
| 2197 |
esac |
| 2198 |
]) |
| 2199 |
if test -n $lt_cv_sys_max_cmd_len ; then |
| 2200 |
AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
| 2201 |
else |
| 2202 |
AC_MSG_RESULT(none) |
| 2203 |
fi |
| 2204 |
_LT_DECL([max_cmd_len], [lt_cv_sys_max_cmd_len], [0], |
| 2205 |
[What is the maximum length of a command?]) |
| 2206 |
])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 2207 |
|
| 2208 |
|
| 2209 |
# _LT_AC_CHECK_DLFCN |
| 2210 |
# -------------------- |
| 2211 |
AC_DEFUN([_LT_AC_CHECK_DLFCN], |
| 2212 |
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl |
| 2213 |
])# _LT_AC_CHECK_DLFCN |
| 2214 |
|
| 2215 |
|
| 2216 |
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
| 2217 |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
| 2218 |
# ------------------------------------------------------------------ |
| 2219 |
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
| 2220 |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
| 2221 |
if test "$cross_compiling" = yes; then : |
| 2222 |
[$4] |
| 2223 |
else |
| 2224 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 2225 |
lt_status=$lt_dlunknown |
| 2226 |
cat > conftest.$ac_ext <<_LT_EOF |
| 2227 |
[#line __oline__ "configure" |
| 2228 |
#include "confdefs.h" |
| 2229 |
|
| 2230 |
#if HAVE_DLFCN_H |
| 2231 |
#include <dlfcn.h> |
| 2232 |
#endif |
| 2233 |
|
| 2234 |
#include <stdio.h> |
| 2235 |
|
| 2236 |
#ifdef RTLD_GLOBAL |
| 2237 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 2238 |
#else |
| 2239 |
# ifdef DL_GLOBAL |
| 2240 |
# define LT_DLGLOBAL DL_GLOBAL |
| 2241 |
# else |
| 2242 |
# define LT_DLGLOBAL 0 |
| 2243 |
# endif |
| 2244 |
#endif |
| 2245 |
|
| 2246 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 2247 |
find out it does not work in some platform. */ |
| 2248 |
#ifndef LT_DLLAZY_OR_NOW |
| 2249 |
# ifdef RTLD_LAZY |
| 2250 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 2251 |
# else |
| 2252 |
# ifdef DL_LAZY |
| 2253 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 2254 |
# else |
| 2255 |
# ifdef RTLD_NOW |
| 2256 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 2257 |
# else |
| 2258 |
# ifdef DL_NOW |
| 2259 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 2260 |
# else |
| 2261 |
# define LT_DLLAZY_OR_NOW 0 |
| 2262 |
# endif |
| 2263 |
# endif |
| 2264 |
# endif |
| 2265 |
# endif |
| 2266 |
#endif |
| 2267 |
|
| 2268 |
#ifdef __cplusplus |
| 2269 |
extern "C" void exit (int); |
| 2270 |
#endif |
| 2271 |
|
| 2272 |
void fnord() { int i=42;} |
| 2273 |
int main () |
| 2274 |
{ |
| 2275 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 2276 |
int status = $lt_dlunknown; |
| 2277 |
|
| 2278 |
if (self) |
| 2279 |
{ |
| 2280 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 2281 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 2282 |
/* dlclose (self); */ |
| 2283 |
} |
| 2284 |
|
| 2285 |
exit (status); |
| 2286 |
}] |
| 2287 |
_LT_EOF |
| 2288 |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
| 2289 |
(./conftest; exit; ) 2>/dev/null |
| 2290 |
lt_status=$? |
| 2291 |
case x$lt_status in |
| 2292 |
x$lt_dlno_uscore) $1 ;; |
| 2293 |
x$lt_dlneed_uscore) $2 ;; |
| 2294 |
x$lt_unknown|x*) $3 ;; |
| 2295 |
esac |
| 2296 |
else : |
| 2297 |
# compilation failed |
| 2298 |
$3 |
| 2299 |
fi |
| 2300 |
fi |
| 2301 |
rm -fr conftest* |
| 2302 |
])# _LT_AC_TRY_DLOPEN_SELF |
| 2303 |
|
| 2304 |
|
| 2305 |
# AC_LIBTOOL_DLOPEN_SELF |
| 2306 |
# ------------------- |
| 2307 |
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
| 2308 |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
| 2309 |
if test "x$enable_dlopen" != xyes; then |
| 2310 |
enable_dlopen=unknown |
| 2311 |
enable_dlopen_self=unknown |
| 2312 |
enable_dlopen_self_static=unknown |
| 2313 |
else |
| 2314 |
lt_cv_dlopen=no |
| 2315 |
lt_cv_dlopen_libs= |
| 2316 |
|
| 2317 |
case $host_os in |
| 2318 |
beos*) |
| 2319 |
lt_cv_dlopen="load_add_on" |
| 2320 |
lt_cv_dlopen_libs= |
| 2321 |
lt_cv_dlopen_self=yes |
| 2322 |
;; |
| 2323 |
|
| 2324 |
mingw* | pw32*) |
| 2325 |
lt_cv_dlopen="LoadLibrary" |
| 2326 |
lt_cv_dlopen_libs= |
| 2327 |
;; |
| 2328 |
|
| 2329 |
cygwin*) |
| 2330 |
lt_cv_dlopen="dlopen" |
| 2331 |
lt_cv_dlopen_libs= |
| 2332 |
;; |
| 2333 |
|
| 2334 |
darwin*) |
| 2335 |
# if libdl is installed we need to link against it |
| 2336 |
AC_CHECK_LIB([dl], [dlopen], |
| 2337 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
| 2338 |
lt_cv_dlopen="dyld" |
| 2339 |
lt_cv_dlopen_libs= |
| 2340 |
lt_cv_dlopen_self=yes |
| 2341 |
]) |
| 2342 |
;; |
| 2343 |
|
| 2344 |
*) |
| 2345 |
AC_CHECK_FUNC([shl_load], |
| 2346 |
[lt_cv_dlopen="shl_load"], |
| 2347 |
[AC_CHECK_LIB([dld], [shl_load], |
| 2348 |
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
| 2349 |
[AC_CHECK_FUNC([dlopen], |
| 2350 |
[lt_cv_dlopen="dlopen"], |
| 2351 |
[AC_CHECK_LIB([dl], [dlopen], |
| 2352 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
| 2353 |
[AC_CHECK_LIB([svld], [dlopen], |
| 2354 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
| 2355 |
[AC_CHECK_LIB([dld], [dld_link], |
| 2356 |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
| 2357 |
]) |
| 2358 |
]) |
| 2359 |
]) |
| 2360 |
]) |
| 2361 |
]) |
| 2362 |
;; |
| 2363 |
esac |
| 2364 |
|
| 2365 |
if test "x$lt_cv_dlopen" != xno; then |
| 2366 |
enable_dlopen=yes |
| 2367 |
else |
| 2368 |
enable_dlopen=no |
| 2369 |
fi |
| 2370 |
|
| 2371 |
case $lt_cv_dlopen in |
| 2372 |
dlopen) |
| 2373 |
save_CPPFLAGS="$CPPFLAGS" |
| 2374 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 2375 |
|
| 2376 |
save_LDFLAGS="$LDFLAGS" |
| 2377 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 2378 |
|
| 2379 |
save_LIBS="$LIBS" |
| 2380 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
| 2381 |
|
| 2382 |
AC_CACHE_CHECK([whether a program can dlopen itself], |
| 2383 |
lt_cv_dlopen_self, [dnl |
| 2384 |
_LT_AC_TRY_DLOPEN_SELF( |
| 2385 |
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
| 2386 |
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
| 2387 |
]) |
| 2388 |
|
| 2389 |
if test "x$lt_cv_dlopen_self" = xyes; then |
| 2390 |
LDFLAGS="$LDFLAGS $link_static_flag" |
| 2391 |
AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
| 2392 |
lt_cv_dlopen_self_static, [dnl |
| 2393 |
_LT_AC_TRY_DLOPEN_SELF( |
| 2394 |
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
| 2395 |
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
| 2396 |
]) |
| 2397 |
fi |
| 2398 |
|
| 2399 |
CPPFLAGS="$save_CPPFLAGS" |
| 2400 |
LDFLAGS="$save_LDFLAGS" |
| 2401 |
LIBS="$save_LIBS" |
| 2402 |
;; |
| 2403 |
esac |
| 2404 |
|
| 2405 |
case $lt_cv_dlopen_self in |
| 2406 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 2407 |
*) enable_dlopen_self=unknown ;; |
| 2408 |
esac |
| 2409 |
|
| 2410 |
case $lt_cv_dlopen_self_static in |
| 2411 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 2412 |
*) enable_dlopen_self_static=unknown ;; |
| 2413 |
esac |
| 2414 |
fi |
| 2415 |
_LT_DECL([dlopen_support], [enable_dlopen], [0], |
| 2416 |
[Whether dlopen is supported]) |
| 2417 |
_LT_DECL([dlopen_self], [enable_dlopen_self], [0], |
| 2418 |
[Whether dlopen of programs is supported]) |
| 2419 |
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], |
| 2420 |
[Whether dlopen of statically linked programs is supported]) |
| 2421 |
])# AC_LIBTOOL_DLOPEN_SELF |
| 2422 |
|
| 2423 |
|
| 2424 |
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
| 2425 |
# --------------------------------- |
| 2426 |
# Check to see if options -c and -o are simultaneously supported by compiler |
| 2427 |
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
| 2428 |
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| 2429 |
AC_REQUIRE([AC_OBJEXT])dnl |
| 2430 |
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
| 2431 |
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
| 2432 |
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
| 2433 |
$rm -r conftest 2>/dev/null |
| 2434 |
mkdir conftest |
| 2435 |
cd conftest |
| 2436 |
mkdir out |
| 2437 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 2438 |
|
| 2439 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 2440 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 2441 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 2442 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 2443 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 2444 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 2445 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 2446 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 2447 |
-e 's:$: $lt_compiler_flag:'` |
| 2448 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 2449 |
(eval "$lt_compile" 2>out/conftest.err) |
| 2450 |
ac_status=$? |
| 2451 |
cat out/conftest.err >&AS_MESSAGE_LOG_FD |
| 2452 |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 2453 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 2454 |
then |
| 2455 |
# The compiler can only warn and ignore the option if not recognized |
| 2456 |
# So say no if there are warnings |
| 2457 |
if test ! -s out/conftest.err; then |
| 2458 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 2459 |
fi |
| 2460 |
fi |
| 2461 |
chmod u+w . |
| 2462 |
$rm conftest* |
| 2463 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 2464 |
# template instantiation |
| 2465 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 2466 |
$rm out/* && rmdir out |
| 2467 |
cd .. |
| 2468 |
rmdir conftest |
| 2469 |
$rm conftest* |
| 2470 |
]) |
| 2471 |
_LT_DECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], |
| 2472 |
[Does compiler simultaneously support -c and -o options?]) |
| 2473 |
])# AC_LIBTOOL_PROG_CC_C_O |
| 2474 |
|
| 2475 |
|
| 2476 |
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) |
| 2477 |
# ----------------------------------------- |
| 2478 |
# Check to see if we can do hard links to lock some files if needed |
| 2479 |
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], |
| 2480 |
[AC_REQUIRE([AC_LIBTOOL_PROG_CC_C_O])dnl |
| 2481 |
AC_REQUIRE([_LT_AC_LOCK])dnl |
| 2482 |
|
| 2483 |
hard_links="nottested" |
| 2484 |
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
| 2485 |
# do not overwrite the value of need_locks provided by the user |
| 2486 |
AC_MSG_CHECKING([if we can lock with hard links]) |
| 2487 |
hard_links=yes |
| 2488 |
$rm conftest* |
| 2489 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 2490 |
touch conftest.a |
| 2491 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 2492 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 2493 |
AC_MSG_RESULT([$hard_links]) |
| 2494 |
if test "$hard_links" = no; then |
| 2495 |
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
| 2496 |
need_locks=warn |
| 2497 |
fi |
| 2498 |
else |
| 2499 |
need_locks=no |
| 2500 |
fi |
| 2501 |
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) |
| 2502 |
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
| 2503 |
|
| 2504 |
|
| 2505 |
# AC_LIBTOOL_OBJDIR |
| 2506 |
# ----------------- |
| 2507 |
AC_DEFUN([AC_LIBTOOL_OBJDIR], |
| 2508 |
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
| 2509 |
[rm -f .libs 2>/dev/null |
| 2510 |
mkdir .libs 2>/dev/null |
| 2511 |
if test -d .libs; then |
| 2512 |
lt_cv_objdir=.libs |
| 2513 |
else |
| 2514 |
# MS-DOS does not allow filenames that begin with a dot. |
| 2515 |
lt_cv_objdir=_libs |
| 2516 |
fi |
| 2517 |
rmdir .libs 2>/dev/null]) |
| 2518 |
objdir=$lt_cv_objdir |
| 2519 |
_LT_DECL([], [objdir], [0], |
| 2520 |
[The name of the directory that contains temporary libtool files])dnl |
| 2521 |
])# AC_LIBTOOL_OBJDIR |
| 2522 |
|
| 2523 |
|
| 2524 |
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
| 2525 |
# ---------------------------------------------- |
| 2526 |
# Check hardcoding attributes. |
| 2527 |
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
| 2528 |
[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
| 2529 |
_LT_AC_TAGVAR(hardcode_action, $1)= |
| 2530 |
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || |
| 2531 |
test -n "$_LT_AC_TAGVAR(runpath_var $1)" || |
| 2532 |
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then |
| 2533 |
|
| 2534 |
# We can hardcode non-existant directories. |
| 2535 |
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
| 2536 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 2537 |
# have to relink, otherwise we might link with an installed library |
| 2538 |
# when we should be linking with a yet-to-be-installed one |
| 2539 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
| 2540 |
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then |
| 2541 |
# Linking always hardcodes the temporary library directory. |
| 2542 |
_LT_AC_TAGVAR(hardcode_action, $1)=relink |
| 2543 |
else |
| 2544 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 2545 |
_LT_AC_TAGVAR(hardcode_action, $1)=immediate |
| 2546 |
fi |
| 2547 |
else |
| 2548 |
# We cannot hardcode anything, or else we can only hardcode existing |
| 2549 |
# directories. |
| 2550 |
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported |
| 2551 |
fi |
| 2552 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) |
| 2553 |
|
| 2554 |
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink || |
| 2555 |
test "$_LT_AC_TAGVAR(inherit_rpath, $1)" = yes; then |
| 2556 |
# Fast installation is not supported |
| 2557 |
enable_fast_install=no |
| 2558 |
elif test "$shlibpath_overrides_runpath" = yes || |
| 2559 |
test "$enable_shared" = no; then |
| 2560 |
# Fast installation is not necessary |
| 2561 |
enable_fast_install=needless |
| 2562 |
fi |
| 2563 |
_LT_TAGDECL([], [hardcode_action], [0], |
| 2564 |
[How to hardcode a shared library path into an executable]) |
| 2565 |
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
| 2566 |
|
| 2567 |
|
| 2568 |
# AC_LIBTOOL_SYS_LIB_STRIP |
| 2569 |
# ------------------------ |
| 2570 |
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], |
| 2571 |
[AC_REQUIRE([LT_AC_PROG_EGREP]) |
| 2572 |
striplib= |
| 2573 |
old_striplib= |
| 2574 |
AC_MSG_CHECKING([whether stripping libraries is possible]) |
| 2575 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 2576 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 2577 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 2578 |
AC_MSG_RESULT([yes]) |
| 2579 |
else |
| 2580 |
# FIXME - insert some real tests, host_os isn't really good enough |
| 2581 |
case $host_os in |
| 2582 |
darwin*) |
| 2583 |
if test -n "$STRIP" ; then |
| 2584 |
striplib="$STRIP -x" |
| 2585 |
AC_MSG_RESULT([yes]) |
| 2586 |
else |
| 2587 |
AC_MSG_RESULT([no]) |
| 2588 |
fi |
| 2589 |
;; |
| 2590 |
*) |
| 2591 |
AC_MSG_RESULT([no]) |
| 2592 |
;; |
| 2593 |
esac |
| 2594 |
fi |
| 2595 |
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) |
| 2596 |
_LT_DECL([], [striplib], [1]) |
| 2597 |
])# AC_LIBTOOL_SYS_LIB_STRIP |
| 2598 |
|
| 2599 |
|
| 2600 |
# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| 2601 |
# ----------------------------- |
| 2602 |
# PORTME Fill in your ld.so characteristics |
| 2603 |
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
| 2604 |
[AC_REQUIRE([LT_AC_PROG_EGREP]) |
| 2605 |
AC_MSG_CHECKING([dynamic linker characteristics]) |
| 2606 |
library_names_spec= |
| 2607 |
libname_spec='lib$name' |
| 2608 |
soname_spec= |
| 2609 |
shrext_cmds=".so" |
| 2610 |
postinstall_cmds= |
| 2611 |
postuninstall_cmds= |
| 2612 |
finish_cmds= |
| 2613 |
finish_eval= |
| 2614 |
shlibpath_var= |
| 2615 |
shlibpath_overrides_runpath=unknown |
| 2616 |
version_type=none |
| 2617 |
dynamic_linker="$host_os ld.so" |
| 2618 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 2619 |
if test "$GCC" = yes; then |
| 2620 |
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 2621 |
if echo "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then |
| 2622 |
# if the path contains ";" then we assume it to be the separator |
| 2623 |
# otherwise default to the standard path separator (i.e. ":") - it is |
| 2624 |
# assumed that no part of a normal pathname contains ";" but that should |
| 2625 |
# okay in the real world where ";" in dirpaths is itself problematic. |
| 2626 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 2627 |
else |
| 2628 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 2629 |
fi |
| 2630 |
else |
| 2631 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 2632 |
fi |
| 2633 |
need_lib_prefix=unknown |
| 2634 |
hardcode_into_libs=no |
| 2635 |
|
| 2636 |
# when you set need_version to no, make sure it does not cause -set_version |
| 2637 |
# flags to be left without arguments |
| 2638 |
need_version=unknown |
| 2639 |
|
| 2640 |
case $host_os in |
| 2641 |
aix3*) |
| 2642 |
version_type=linux |
| 2643 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 2644 |
shlibpath_var=LIBPATH |
| 2645 |
|
| 2646 |
# AIX 3 has no versioning support, so we append a major version to the name. |
| 2647 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 2648 |
;; |
| 2649 |
|
| 2650 |
aix4* | aix5*) |
| 2651 |
version_type=linux |
| 2652 |
need_lib_prefix=no |
| 2653 |
need_version=no |
| 2654 |
hardcode_into_libs=yes |
| 2655 |
if test "$host_cpu" = ia64; then |
| 2656 |
# AIX 5 supports IA64 |
| 2657 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 2658 |
shlibpath_var=LD_LIBRARY_PATH |
| 2659 |
else |
| 2660 |
# With GCC up to 2.95.x, collect2 would create an import file |
| 2661 |
# for dependence libraries. The import file would start with |
| 2662 |
# the line `#! .'. This would cause the generated library to |
| 2663 |
# depend on `.', always an invalid library. This was fixed in |
| 2664 |
# development snapshots of GCC prior to 3.0. |
| 2665 |
case $host_os in |
| 2666 |
aix4 | aix4.[[01]] | aix4.[[01]].*) |
| 2667 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 2668 |
echo ' yes ' |
| 2669 |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 2670 |
: |
| 2671 |
else |
| 2672 |
can_build_shared=no |
| 2673 |
fi |
| 2674 |
;; |
| 2675 |
esac |
| 2676 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 2677 |
# soname into executable. Probably we can add versioning support to |
| 2678 |
# collect2, so additional links can be useful in future. |
| 2679 |
if test "$aix_use_runtimelinking" = yes; then |
| 2680 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 2681 |
# instead of lib<name>.a to let people know that these are not |
| 2682 |
# typical AIX shared libraries. |
| 2683 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2684 |
else |
| 2685 |
# We preserve .a as extension for shared libraries through AIX4.2 |
| 2686 |
# and later when we are not doing run time linking. |
| 2687 |
library_names_spec='${libname}${release}.a $libname.a' |
| 2688 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 2689 |
fi |
| 2690 |
shlibpath_var=LIBPATH |
| 2691 |
fi |
| 2692 |
;; |
| 2693 |
|
| 2694 |
amigaos*) |
| 2695 |
if test "$host_cpu" = m68k; then |
| 2696 |
library_names_spec='$libname.ixlibrary $libname.a' |
| 2697 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 2698 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 2699 |
else |
| 2700 |
dynamic_linker=no |
| 2701 |
fi |
| 2702 |
;; |
| 2703 |
|
| 2704 |
beos*) |
| 2705 |
library_names_spec='${libname}${shared_ext}' |
| 2706 |
dynamic_linker="$host_os ld.so" |
| 2707 |
shlibpath_var=LIBRARY_PATH |
| 2708 |
;; |
| 2709 |
|
| 2710 |
bsdi4*) |
| 2711 |
version_type=linux |
| 2712 |
need_version=no |
| 2713 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2714 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 2715 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 2716 |
shlibpath_var=LD_LIBRARY_PATH |
| 2717 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 2718 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 2719 |
# the default ld.so.conf also contains /usr/contrib/lib and |
| 2720 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 2721 |
# libtool to hard-code these into programs |
| 2722 |
;; |
| 2723 |
|
| 2724 |
cygwin* | mingw* | pw32*) |
| 2725 |
version_type=windows |
| 2726 |
shrext_cmds=".dll" |
| 2727 |
need_version=no |
| 2728 |
need_lib_prefix=no |
| 2729 |
|
| 2730 |
case $GCC,$host_os in |
| 2731 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
| 2732 |
library_names_spec='$libname.dll.a' |
| 2733 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 2734 |
postinstall_cmds='base_file=`basename \${file}`~ |
| 2735 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 2736 |
dldir=$destdir/`dirname \$dlpath`~ |
| 2737 |
test -d \$dldir || mkdir -p \$dldir~ |
| 2738 |
$install_prog $dir/$dlname \$dldir/$dlname' |
| 2739 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 2740 |
dlpath=$dir/\$dldll~ |
| 2741 |
$rm \$dlpath' |
| 2742 |
shlibpath_overrides_runpath=yes |
| 2743 |
|
| 2744 |
case $host_os in |
| 2745 |
cygwin*) |
| 2746 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 2747 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 2748 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 2749 |
;; |
| 2750 |
mingw*) |
| 2751 |
# MinGW DLLs use traditional 'lib' prefix |
| 2752 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 2753 |
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 2754 |
if echo "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
| 2755 |
# It is most probably a Windows format PATH printed by |
| 2756 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 2757 |
# path with ; separators, and with drive letters. We can handle the |
| 2758 |
# drive letters (cygwin fileutils understands them), so leave them, |
| 2759 |
# especially as we might pass files found there to a mingw objdump, |
| 2760 |
# which wouldn't understand a cygwinified path. Ahh. |
| 2761 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 2762 |
else |
| 2763 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 2764 |
fi |
| 2765 |
;; |
| 2766 |
pw32*) |
| 2767 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 2768 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 2769 |
;; |
| 2770 |
esac |
| 2771 |
;; |
| 2772 |
|
| 2773 |
*) |
| 2774 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 2775 |
;; |
| 2776 |
esac |
| 2777 |
dynamic_linker='Win32 ld.exe' |
| 2778 |
# FIXME: first we should search . and the directory the executable is in |
| 2779 |
shlibpath_var=PATH |
| 2780 |
;; |
| 2781 |
|
| 2782 |
darwin* | rhapsody*) |
| 2783 |
dynamic_linker="$host_os dyld" |
| 2784 |
version_type=darwin |
| 2785 |
need_lib_prefix=no |
| 2786 |
need_version=no |
| 2787 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 2788 |
soname_spec='${libname}${release}${major}$shared_ext' |
| 2789 |
shlibpath_overrides_runpath=yes |
| 2790 |
shlibpath_var=DYLD_LIBRARY_PATH |
| 2791 |
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 2792 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 2793 |
if test "$GCC" = yes; then |
| 2794 |
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | $GREP "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 2795 |
else |
| 2796 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 2797 |
fi |
| 2798 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 2799 |
;; |
| 2800 |
|
| 2801 |
dgux*) |
| 2802 |
version_type=linux |
| 2803 |
need_lib_prefix=no |
| 2804 |
need_version=no |
| 2805 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 2806 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 2807 |
shlibpath_var=LD_LIBRARY_PATH |
| 2808 |
;; |
| 2809 |
|
| 2810 |
freebsd1*) |
| 2811 |
dynamic_linker=no |
| 2812 |
;; |
| 2813 |
|
| 2814 |
kfreebsd*-gnu) |
| 2815 |
version_type=linux |
| 2816 |
need_lib_prefix=no |
| 2817 |
need_version=no |
| 2818 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 2819 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 2820 |
shlibpath_var=LD_LIBRARY_PATH |
| 2821 |
shlibpath_overrides_runpath=no |
| 2822 |
hardcode_into_libs=yes |
| 2823 |
dynamic_linker='GNU ld.so' |
| 2824 |
;; |
| 2825 |
|
| 2826 |
freebsd*) |
| 2827 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 2828 |
version_type=freebsd-$objformat |
| 2829 |
case $version_type in |
| 2830 |
freebsd-elf*) |
| 2831 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 2832 |
need_version=no |
| 2833 |
need_lib_prefix=no |
| 2834 |
;; |
| 2835 |
freebsd-*) |
| 2836 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 2837 |
need_version=yes |
| 2838 |
;; |
| 2839 |
esac |
| 2840 |
shlibpath_var=LD_LIBRARY_PATH |
| 2841 |
case $host_os in |
| 2842 |
freebsd2*) |
| 2843 |
shlibpath_overrides_runpath=yes |
| 2844 |
;; |
| 2845 |
freebsd3.[01]* | freebsdelf3.[01]*) |
| 2846 |
shlibpath_overrides_runpath=yes |
| 2847 |
hardcode_into_libs=yes |
| 2848 |
;; |
| 2849 |
*) # from 3.2 on |
| 2850 |
shlibpath_overrides_runpath=no |
| 2851 |
hardcode_into_libs=yes |
| 2852 |
;; |
| 2853 |
esac |
| 2854 |
;; |
| 2855 |
|
| 2856 |
gnu*) |
| 2857 |
version_type=linux |
| 2858 |
need_lib_prefix=no |
| 2859 |
need_version=no |
| 2860 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 2861 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 2862 |
shlibpath_var=LD_LIBRARY_PATH |
| 2863 |
hardcode_into_libs=yes |
| 2864 |
;; |
| 2865 |
|
| 2866 |
hpux9* | hpux10* | hpux11*) |
| 2867 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 2868 |
# link against other versions. |
| 2869 |
version_type=sunos |
| 2870 |
need_lib_prefix=no |
| 2871 |
need_version=no |
| 2872 |
case "$host_cpu" in |
| 2873 |
ia64*) |
| 2874 |
shrext_cmds='.so' |
| 2875 |
hardcode_into_libs=yes |
| 2876 |
dynamic_linker="$host_os dld.so" |
| 2877 |
shlibpath_var=LD_LIBRARY_PATH |
| 2878 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 2879 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2880 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 2881 |
if test "X$HPUX_IA64_MODE" = X32; then |
| 2882 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 2883 |
else |
| 2884 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 2885 |
fi |
| 2886 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 2887 |
;; |
| 2888 |
hppa*64*) |
| 2889 |
shrext_cmds='.sl' |
| 2890 |
hardcode_into_libs=yes |
| 2891 |
dynamic_linker="$host_os dld.sl" |
| 2892 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 2893 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 2894 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2895 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 2896 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 2897 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 2898 |
;; |
| 2899 |
*) |
| 2900 |
shrext_cmds='.sl' |
| 2901 |
dynamic_linker="$host_os dld.sl" |
| 2902 |
shlibpath_var=SHLIB_PATH |
| 2903 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 2904 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2905 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 2906 |
;; |
| 2907 |
esac |
| 2908 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 2909 |
postinstall_cmds='chmod 555 $lib' |
| 2910 |
;; |
| 2911 |
|
| 2912 |
irix5* | irix6* | nonstopux*) |
| 2913 |
case $host_os in |
| 2914 |
nonstopux*) version_type=nonstopux ;; |
| 2915 |
*) |
| 2916 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 2917 |
version_type=linux |
| 2918 |
else |
| 2919 |
version_type=irix |
| 2920 |
fi ;; |
| 2921 |
esac |
| 2922 |
need_lib_prefix=no |
| 2923 |
need_version=no |
| 2924 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 2925 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 2926 |
case $host_os in |
| 2927 |
irix5* | nonstopux*) |
| 2928 |
libsuff= shlibsuff= |
| 2929 |
;; |
| 2930 |
*) |
| 2931 |
case $LD in # libtool.m4 will add one of these switches to LD |
| 2932 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 2933 |
libsuff= shlibsuff= libmagic=32-bit;; |
| 2934 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 2935 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 2936 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 2937 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 2938 |
*) libsuff= shlibsuff= libmagic=never-match;; |
| 2939 |
esac |
| 2940 |
;; |
| 2941 |
esac |
| 2942 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 2943 |
shlibpath_overrides_runpath=no |
| 2944 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 2945 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 2946 |
hardcode_into_libs=yes |
| 2947 |
;; |
| 2948 |
|
| 2949 |
# No shared lib support for Linux oldld, aout, or coff. |
| 2950 |
linux*oldld* | linux*aout* | linux*coff*) |
| 2951 |
dynamic_linker=no |
| 2952 |
;; |
| 2953 |
|
| 2954 |
# This must be Linux ELF. |
| 2955 |
linux*) |
| 2956 |
version_type=linux |
| 2957 |
need_lib_prefix=no |
| 2958 |
need_version=no |
| 2959 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2960 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 2961 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 2962 |
shlibpath_var=LD_LIBRARY_PATH |
| 2963 |
shlibpath_overrides_runpath=no |
| 2964 |
# This implies no fast_install, which is unacceptable. |
| 2965 |
# Some rework will be needed to allow for fast_install |
| 2966 |
# before this can be enabled. |
| 2967 |
hardcode_into_libs=yes |
| 2968 |
|
| 2969 |
# Append ld.so.conf contents to the search path |
| 2970 |
if test -f /etc/ld.so.conf; then |
| 2971 |
lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 2972 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 2973 |
fi |
| 2974 |
|
| 2975 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 2976 |
# powerpc, because MkLinux only supported shared libraries with the |
| 2977 |
# GNU dynamic linker. Since this was broken with cross compilers, |
| 2978 |
# most powerpc-linux boxes support dynamic linking these days and |
| 2979 |
# people can always --disable-shared, the test was removed, and we |
| 2980 |
# assume the GNU/Linux dynamic linker is in use. |
| 2981 |
dynamic_linker='GNU/Linux ld.so' |
| 2982 |
;; |
| 2983 |
|
| 2984 |
knetbsd*-gnu) |
| 2985 |
version_type=linux |
| 2986 |
need_lib_prefix=no |
| 2987 |
need_version=no |
| 2988 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 2989 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 2990 |
shlibpath_var=LD_LIBRARY_PATH |
| 2991 |
shlibpath_overrides_runpath=no |
| 2992 |
hardcode_into_libs=yes |
| 2993 |
dynamic_linker='GNU ld.so' |
| 2994 |
;; |
| 2995 |
|
| 2996 |
netbsd*) |
| 2997 |
version_type=sunos |
| 2998 |
need_lib_prefix=no |
| 2999 |
need_version=no |
| 3000 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 3001 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 3002 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 3003 |
dynamic_linker='NetBSD (a.out) ld.so' |
| 3004 |
else |
| 3005 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 3006 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 3007 |
dynamic_linker='NetBSD ld.elf_so' |
| 3008 |
fi |
| 3009 |
shlibpath_var=LD_LIBRARY_PATH |
| 3010 |
shlibpath_overrides_runpath=yes |
| 3011 |
hardcode_into_libs=yes |
| 3012 |
;; |
| 3013 |
|
| 3014 |
newsos6) |
| 3015 |
version_type=linux |
| 3016 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3017 |
shlibpath_var=LD_LIBRARY_PATH |
| 3018 |
shlibpath_overrides_runpath=yes |
| 3019 |
;; |
| 3020 |
|
| 3021 |
nto-qnx*) |
| 3022 |
version_type=linux |
| 3023 |
need_lib_prefix=no |
| 3024 |
need_version=no |
| 3025 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3026 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 3027 |
shlibpath_var=LD_LIBRARY_PATH |
| 3028 |
shlibpath_overrides_runpath=yes |
| 3029 |
;; |
| 3030 |
|
| 3031 |
openbsd*) |
| 3032 |
version_type=sunos |
| 3033 |
need_lib_prefix=no |
| 3034 |
need_version=yes |
| 3035 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 3036 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 3037 |
shlibpath_var=LD_LIBRARY_PATH |
| 3038 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3039 |
case $host_os in |
| 3040 |
openbsd2.[[89]] | openbsd2.[[89]].*) |
| 3041 |
shlibpath_overrides_runpath=no |
| 3042 |
;; |
| 3043 |
*) |
| 3044 |
shlibpath_overrides_runpath=yes |
| 3045 |
;; |
| 3046 |
esac |
| 3047 |
else |
| 3048 |
shlibpath_overrides_runpath=yes |
| 3049 |
fi |
| 3050 |
;; |
| 3051 |
|
| 3052 |
os2*) |
| 3053 |
libname_spec='$name' |
| 3054 |
shrext_cmds=".dll" |
| 3055 |
need_lib_prefix=no |
| 3056 |
library_names_spec='$libname${shared_ext} $libname.a' |
| 3057 |
dynamic_linker='OS/2 ld.exe' |
| 3058 |
shlibpath_var=LIBPATH |
| 3059 |
;; |
| 3060 |
|
| 3061 |
osf3* | osf4* | osf5*) |
| 3062 |
version_type=osf |
| 3063 |
need_lib_prefix=no |
| 3064 |
need_version=no |
| 3065 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 3066 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3067 |
shlibpath_var=LD_LIBRARY_PATH |
| 3068 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 3069 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 3070 |
;; |
| 3071 |
|
| 3072 |
sco3.2v5*) |
| 3073 |
version_type=osf |
| 3074 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 3075 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3076 |
shlibpath_var=LD_LIBRARY_PATH |
| 3077 |
;; |
| 3078 |
|
| 3079 |
solaris*) |
| 3080 |
version_type=linux |
| 3081 |
need_lib_prefix=no |
| 3082 |
need_version=no |
| 3083 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3084 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 3085 |
shlibpath_var=LD_LIBRARY_PATH |
| 3086 |
shlibpath_overrides_runpath=yes |
| 3087 |
hardcode_into_libs=yes |
| 3088 |
# ldd complains unless libraries are executable |
| 3089 |
postinstall_cmds='chmod +x $lib' |
| 3090 |
;; |
| 3091 |
|
| 3092 |
sunos4*) |
| 3093 |
version_type=sunos |
| 3094 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 3095 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 3096 |
shlibpath_var=LD_LIBRARY_PATH |
| 3097 |
shlibpath_overrides_runpath=yes |
| 3098 |
if test "$with_gnu_ld" = yes; then |
| 3099 |
need_lib_prefix=no |
| 3100 |
fi |
| 3101 |
need_version=yes |
| 3102 |
;; |
| 3103 |
|
| 3104 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3105 |
version_type=linux |
| 3106 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3107 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 3108 |
shlibpath_var=LD_LIBRARY_PATH |
| 3109 |
case $host_vendor in |
| 3110 |
sni) |
| 3111 |
shlibpath_overrides_runpath=no |
| 3112 |
need_lib_prefix=no |
| 3113 |
runpath_var=LD_RUN_PATH |
| 3114 |
;; |
| 3115 |
siemens) |
| 3116 |
need_lib_prefix=no |
| 3117 |
;; |
| 3118 |
motorola) |
| 3119 |
need_lib_prefix=no |
| 3120 |
need_version=no |
| 3121 |
shlibpath_overrides_runpath=no |
| 3122 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 3123 |
;; |
| 3124 |
esac |
| 3125 |
;; |
| 3126 |
|
| 3127 |
sysv4*MP*) |
| 3128 |
if test -d /usr/nec ;then |
| 3129 |
version_type=linux |
| 3130 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 3131 |
soname_spec='$libname${shared_ext}.$major' |
| 3132 |
shlibpath_var=LD_LIBRARY_PATH |
| 3133 |
fi |
| 3134 |
;; |
| 3135 |
|
| 3136 |
uts4*) |
| 3137 |
version_type=linux |
| 3138 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3139 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 3140 |
shlibpath_var=LD_LIBRARY_PATH |
| 3141 |
;; |
| 3142 |
|
| 3143 |
*) |
| 3144 |
dynamic_linker=no |
| 3145 |
;; |
| 3146 |
esac |
| 3147 |
AC_MSG_RESULT([$dynamic_linker]) |
| 3148 |
test "$dynamic_linker" = no && can_build_shared=no |
| 3149 |
_LT_DECL([], [need_lib_prefix], [0], |
| 3150 |
[Do we need the "lib" prefix for modules?]) |
| 3151 |
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) |
| 3152 |
_LT_DECL([], [version_type], [0], [Library versioning type]) |
| 3153 |
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) |
| 3154 |
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) |
| 3155 |
_LT_DECL([], [shlibpath_overrides_runpath], [0], |
| 3156 |
[Is shibpath searched before the hard-coded library search path?]) |
| 3157 |
_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) |
| 3158 |
_LT_DECL([], [library_names_spec], [1], |
| 3159 |
[List of archive names. First name is the real one, the rest are links. |
| 3160 |
The last name is the one that the linker finds with -lNAME]) |
| 3161 |
_LT_DECL([], [soname_spec], [1], |
| 3162 |
[The coded name of the library, if different from the real name]) |
| 3163 |
_LT_DECL([], [postinstall_cmds], [2], |
| 3164 |
[Command to use after installation of a shared archive]) |
| 3165 |
_LT_DECL([], [postuninstall_cmds], [2], |
| 3166 |
[Command to use after uninstallation of a shared archive]) |
| 3167 |
_LT_DECL([], [finish_cmds], [2], |
| 3168 |
[Commands used to finish a libtool library installation in a directory]) |
| 3169 |
_LT_DECL([], [finish_eval], [1], |
| 3170 |
[As "finish_cmds", except a single script fragment to be evaled but |
| 3171 |
not shown]) |
| 3172 |
_LT_DECL([], [hardcode_into_libs], [0], |
| 3173 |
[Whether we should hardcode library paths into libraries]) |
| 3174 |
_LT_DECL([], [sys_lib_search_path_spec], [2], |
| 3175 |
[Compile-time system search path for libraries]) |
| 3176 |
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], |
| 3177 |
[Run-time system search path for libraries]) |
| 3178 |
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| 3179 |
|
| 3180 |
|
| 3181 |
# AC_PATH_TOOL_PREFIX |
| 3182 |
# ------------------- |
| 3183 |
# find a file program which can recognise shared library |
| 3184 |
AC_DEFUN([AC_PATH_TOOL_PREFIX], |
| 3185 |
[AC_REQUIRE([LT_AC_PROG_EGREP])dnl |
| 3186 |
AC_MSG_CHECKING([for $1]) |
| 3187 |
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
| 3188 |
[case $MAGIC_CMD in |
| 3189 |
[[\\/*] | ?:[\\/]*]) |
| 3190 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 3191 |
;; |
| 3192 |
*) |
| 3193 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 3194 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3195 |
dnl $ac_dummy forces splitting on constant user-supplied paths. |
| 3196 |
dnl POSIX.2 word splitting is done only on the output of word expansions, |
| 3197 |
dnl not every word. This closes a longstanding sh security hole. |
| 3198 |
ac_dummy="m4_if([$2], , $PATH, [$2])" |
| 3199 |
for ac_dir in $ac_dummy; do |
| 3200 |
IFS="$lt_save_ifs" |
| 3201 |
test -z "$ac_dir" && ac_dir=. |
| 3202 |
if test -f $ac_dir/$1; then |
| 3203 |
lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
| 3204 |
if test -n "$file_magic_test_file"; then |
| 3205 |
case $deplibs_check_method in |
| 3206 |
"file_magic "*) |
| 3207 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 3208 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3209 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 3210 |
$EGREP "$file_magic_regex" > /dev/null; then |
| 3211 |
: |
| 3212 |
else |
| 3213 |
cat <<_LT_EOF 1>&2 |
| 3214 |
|
| 3215 |
*** Warning: the command libtool uses to detect shared libraries, |
| 3216 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 3217 |
*** The result is that libtool may fail to recognize shared libraries |
| 3218 |
*** as such. This will affect the creation of libtool libraries that |
| 3219 |
*** depend on shared libraries, but programs linked with such libtool |
| 3220 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 3221 |
*** may want to report the problem to your system manager and/or to |
| 3222 |
*** bug-libtool@gnu.org |
| 3223 |
|
| 3224 |
_LT_EOF |
| 3225 |
fi ;; |
| 3226 |
esac |
| 3227 |
fi |
| 3228 |
break |
| 3229 |
fi |
| 3230 |
done |
| 3231 |
IFS="$lt_save_ifs" |
| 3232 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 3233 |
;; |
| 3234 |
esac]) |
| 3235 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3236 |
if test -n "$MAGIC_CMD"; then |
| 3237 |
AC_MSG_RESULT($MAGIC_CMD) |
| 3238 |
else |
| 3239 |
AC_MSG_RESULT(no) |
| 3240 |
fi |
| 3241 |
_LT_DECL([], [MAGIC_CMD], [0], |
| 3242 |
[Used to examine libraries when file_magic_cmd begins "file"])dnl |
| 3243 |
])# AC_PATH_TOOL_PREFIX |
| 3244 |
|
| 3245 |
|
| 3246 |
# AC_PATH_MAGIC |
| 3247 |
# ------------- |
| 3248 |
# find a file program which can recognise a shared library |
| 3249 |
AC_DEFUN([AC_PATH_MAGIC], |
| 3250 |
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
| 3251 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 3252 |
if test -n "$ac_tool_prefix"; then |
| 3253 |
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
| 3254 |
else |
| 3255 |
MAGIC_CMD=: |
| 3256 |
fi |
| 3257 |
fi |
| 3258 |
])# AC_PATH_MAGIC |
| 3259 |
|
| 3260 |
|
| 3261 |
# AC_PROG_LD |
| 3262 |
# ---------- |
| 3263 |
# find the pathname to the GNU or non-GNU linker |
| 3264 |
AC_DEFUN([AC_PROG_LD], |
| 3265 |
[AC_ARG_WITH([gnu-ld], |
| 3266 |
[AC_HELP_STRING([--with-gnu-ld], |
| 3267 |
[assume the C compiler uses GNU ld @<:@default=no@:>@])], |
| 3268 |
[test "$withval" = no || with_gnu_ld=yes], |
| 3269 |
[with_gnu_ld=no]) |
| 3270 |
AC_REQUIRE([LT_AC_PROG_SED])dnl |
| 3271 |
AC_REQUIRE([LT_AC_PROG_EGREP])dnl |
| 3272 |
AC_REQUIRE([AC_PROG_CC])dnl |
| 3273 |
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 3274 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 3275 |
|
| 3276 |
ac_prog=ld |
| 3277 |
if test "$GCC" = yes; then |
| 3278 |
# Check if gcc -print-prog-name=ld gives a path. |
| 3279 |
AC_MSG_CHECKING([for ld used by $CC]) |
| 3280 |
case $host in |
| 3281 |
*-*-mingw*) |
| 3282 |
# gcc leaves a trailing carriage return which upsets mingw |
| 3283 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3284 |
*) |
| 3285 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3286 |
esac |
| 3287 |
case $ac_prog in |
| 3288 |
# Accept absolute paths. |
| 3289 |
[[\\/]]* | ?:[[\\/]]*) |
| 3290 |
re_direlt='/[[^/]][[^/]]*/\.\./' |
| 3291 |
# Canonicalize the pathname of ld |
| 3292 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 3293 |
while echo $ac_prog | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 3294 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 3295 |
done |
| 3296 |
test -z "$LD" && LD="$ac_prog" |
| 3297 |
;; |
| 3298 |
"") |
| 3299 |
# If it fails, then pretend we aren't using GCC. |
| 3300 |
ac_prog=ld |
| 3301 |
;; |
| 3302 |
*) |
| 3303 |
# If it is relative, then search for the first ld in PATH. |
| 3304 |
with_gnu_ld=unknown |
| 3305 |
;; |
| 3306 |
esac |
| 3307 |
elif test "$with_gnu_ld" = yes; then |
| 3308 |
AC_MSG_CHECKING([for GNU ld]) |
| 3309 |
else |
| 3310 |
AC_MSG_CHECKING([for non-GNU ld]) |
| 3311 |
fi |
| 3312 |
AC_CACHE_VAL(lt_cv_path_LD, |
| 3313 |
[if test -z "$LD"; then |
| 3314 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3315 |
for ac_dir in $PATH; do |
| 3316 |
IFS="$lt_save_ifs" |
| 3317 |
test -z "$ac_dir" && ac_dir=. |
| 3318 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3319 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3320 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 3321 |
# but apparently some GNU ld's only accept -v. |
| 3322 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 3323 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3324 |
*GNU* | *'with BFD'*) |
| 3325 |
test "$with_gnu_ld" != no && break |
| 3326 |
;; |
| 3327 |
*) |
| 3328 |
test "$with_gnu_ld" != yes && break |
| 3329 |
;; |
| 3330 |
esac |
| 3331 |
fi |
| 3332 |
done |
| 3333 |
IFS="$lt_save_ifs" |
| 3334 |
else |
| 3335 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3336 |
fi]) |
| 3337 |
LD="$lt_cv_path_LD" |
| 3338 |
if test -n "$LD"; then |
| 3339 |
AC_MSG_RESULT($LD) |
| 3340 |
else |
| 3341 |
AC_MSG_RESULT(no) |
| 3342 |
fi |
| 3343 |
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
| 3344 |
AC_PROG_LD_GNU |
| 3345 |
AC_SUBST([LD]) |
| 3346 |
|
| 3347 |
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) |
| 3348 |
])# AC_PROG_LD |
| 3349 |
|
| 3350 |
# Old name: |
| 3351 |
AU_DEFUN([AM_PROG_LD], [AC_PROG_LD]) |
| 3352 |
|
| 3353 |
|
| 3354 |
# AC_PROG_LD_GNU |
| 3355 |
# -------------- |
| 3356 |
AC_DEFUN([AC_PROG_LD_GNU], |
| 3357 |
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
| 3358 |
[# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 3359 |
case `$LD -v 2>&1 </dev/null` in |
| 3360 |
*GNU* | *'with BFD'*) |
| 3361 |
lt_cv_prog_gnu_ld=yes |
| 3362 |
;; |
| 3363 |
*) |
| 3364 |
lt_cv_prog_gnu_ld=no |
| 3365 |
;; |
| 3366 |
esac]) |
| 3367 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 3368 |
])# AC_PROG_LD_GNU |
| 3369 |
|
| 3370 |
|
| 3371 |
# AC_PROG_LD_RELOAD_FLAG |
| 3372 |
# ---------------------- |
| 3373 |
# find reload flag for linker |
| 3374 |
# -- PORTME Some linkers may need a different reload flag. |
| 3375 |
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], |
| 3376 |
[AC_CACHE_CHECK([for $LD option to reload object files], |
| 3377 |
lt_cv_ld_reload_flag, |
| 3378 |
[lt_cv_ld_reload_flag='-r']) |
| 3379 |
reload_flag=$lt_cv_ld_reload_flag |
| 3380 |
case $reload_flag in |
| 3381 |
"" | " "*) ;; |
| 3382 |
*) reload_flag=" $reload_flag" ;; |
| 3383 |
esac |
| 3384 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3385 |
case $host_os in |
| 3386 |
darwin*) |
| 3387 |
if test "$GCC" = yes; then |
| 3388 |
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
| 3389 |
else |
| 3390 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3391 |
fi |
| 3392 |
;; |
| 3393 |
esac |
| 3394 |
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
| 3395 |
_LT_DECL([], [reload_cmds], [2])dnl |
| 3396 |
])# AC_PROG_LD_RELOAD_FLAG |
| 3397 |
|
| 3398 |
|
| 3399 |
# AC_DEPLIBS_CHECK_METHOD |
| 3400 |
# ----------------------- |
| 3401 |
# how to check for library dependencies |
| 3402 |
# -- PORTME fill in with the dynamic library characteristics |
| 3403 |
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
| 3404 |
[AC_REQUIRE([LT_AC_PROG_EGREP]) |
| 3405 |
AC_CACHE_CHECK([how to recognise dependent libraries], |
| 3406 |
lt_cv_deplibs_check_method, |
| 3407 |
[lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3408 |
lt_cv_file_magic_test_file= |
| 3409 |
lt_cv_deplibs_check_method='unknown' |
| 3410 |
# Need to set the preceding variable on all platforms that support |
| 3411 |
# interlibrary dependencies. |
| 3412 |
# 'none' -- dependencies not supported. |
| 3413 |
# `unknown' -- same as none, but documents that we really don't know. |
| 3414 |
# 'pass_all' -- all dependencies passed with no checks. |
| 3415 |
# 'test_compile' -- check by making test program. |
| 3416 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
| 3417 |
# which responds to the $file_magic_cmd with a given extended regex. |
| 3418 |
# If you have `file' or equivalent on your system and you're not sure |
| 3419 |
# whether `pass_all' will *always* work, you probably want this one. |
| 3420 |
|
| 3421 |
case $host_os in |
| 3422 |
aix4* | aix5*) |
| 3423 |
lt_cv_deplibs_check_method=pass_all |
| 3424 |
;; |
| 3425 |
|
| 3426 |
beos*) |
| 3427 |
lt_cv_deplibs_check_method=pass_all |
| 3428 |
;; |
| 3429 |
|
| 3430 |
bsdi4*) |
| 3431 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
| 3432 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3433 |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 3434 |
;; |
| 3435 |
|
| 3436 |
cygwin*) |
| 3437 |
# func_win32_libid is a shell function defined in ltmain.sh |
| 3438 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 3439 |
lt_cv_file_magic_cmd='func_win32_libid' |
| 3440 |
;; |
| 3441 |
|
| 3442 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
| 3443 |
# func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 3444 |
mingw* | pw32*) |
| 3445 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3446 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3447 |
;; |
| 3448 |
|
| 3449 |
darwin* | rhapsody*) |
| 3450 |
lt_cv_deplibs_check_method=pass_all |
| 3451 |
;; |
| 3452 |
|
| 3453 |
freebsd* | kfreebsd*-gnu) |
| 3454 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 3455 |
case $host_cpu in |
| 3456 |
i*86 ) |
| 3457 |
# Not sure whether the presence of OpenBSD here was a mistake. |
| 3458 |
# Let's accept both of them until this is cleared up. |
| 3459 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' |
| 3460 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 3461 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3462 |
;; |
| 3463 |
esac |
| 3464 |
else |
| 3465 |
lt_cv_deplibs_check_method=pass_all |
| 3466 |
fi |
| 3467 |
;; |
| 3468 |
|
| 3469 |
gnu*) |
| 3470 |
lt_cv_deplibs_check_method=pass_all |
| 3471 |
;; |
| 3472 |
|
| 3473 |
hpux10.20* | hpux11*) |
| 3474 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 3475 |
case "$host_cpu" in |
| 3476 |
ia64*) |
| 3477 |
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
| 3478 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 3479 |
;; |
| 3480 |
hppa*64*) |
| 3481 |
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] |
| 3482 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 3483 |
;; |
| 3484 |
*) |
| 3485 |
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
| 3486 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3487 |
;; |
| 3488 |
esac |
| 3489 |
;; |
| 3490 |
|
| 3491 |
irix5* | irix6* | nonstopux*) |
| 3492 |
case $LD in |
| 3493 |
*-32|*"-32 ") libmagic=32-bit;; |
| 3494 |
*-n32|*"-n32 ") libmagic=N32;; |
| 3495 |
*-64|*"-64 ") libmagic=64-bit;; |
| 3496 |
*) libmagic=never-match;; |
| 3497 |
esac |
| 3498 |
lt_cv_deplibs_check_method=pass_all |
| 3499 |
;; |
| 3500 |
|
| 3501 |
# This must be Linux ELF. |
| 3502 |
linux*) |
| 3503 |
case $host_cpu in |
| 3504 |
alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*) |
| 3505 |
lt_cv_deplibs_check_method=pass_all ;; |
| 3506 |
*) |
| 3507 |
# glibc up to 2.1.1 does not perform some relocations on ARM |
| 3508 |
# this will be overridden with pass_all, but let us keep it just in case |
| 3509 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; |
| 3510 |
esac |
| 3511 |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 3512 |
lt_cv_deplibs_check_method=pass_all |
| 3513 |
;; |
| 3514 |
|
| 3515 |
netbsd* | knetbsd*-gnu) |
| 3516 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 3517 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 3518 |
else |
| 3519 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
| 3520 |
fi |
| 3521 |
;; |
| 3522 |
|
| 3523 |
newos6*) |
| 3524 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
| 3525 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 3526 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3527 |
;; |
| 3528 |
|
| 3529 |
nto-qnx*) |
| 3530 |
lt_cv_deplibs_check_method=unknown |
| 3531 |
;; |
| 3532 |
|
| 3533 |
openbsd*) |
| 3534 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 3535 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3536 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3537 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
| 3538 |
else |
| 3539 |
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3540 |
fi |
| 3541 |
;; |
| 3542 |
|
| 3543 |
osf3* | osf4* | osf5*) |
| 3544 |
lt_cv_deplibs_check_method=pass_all |
| 3545 |
;; |
| 3546 |
|
| 3547 |
sco3.2v5*) |
| 3548 |
lt_cv_deplibs_check_method=pass_all |
| 3549 |
;; |
| 3550 |
|
| 3551 |
solaris*) |
| 3552 |
lt_cv_deplibs_check_method=pass_all |
| 3553 |
;; |
| 3554 |
|
| 3555 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3556 |
case $host_vendor in |
| 3557 |
motorola) |
| 3558 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
| 3559 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3560 |
;; |
| 3561 |
ncr) |
| 3562 |
lt_cv_deplibs_check_method=pass_all |
| 3563 |
;; |
| 3564 |
sequent) |
| 3565 |
lt_cv_file_magic_cmd='/bin/file' |
| 3566 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
| 3567 |
;; |
| 3568 |
sni) |
| 3569 |
lt_cv_file_magic_cmd='/bin/file' |
| 3570 |
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
| 3571 |
lt_cv_file_magic_test_file=/lib/libc.so |
| 3572 |
;; |
| 3573 |
siemens) |
| 3574 |
lt_cv_deplibs_check_method=pass_all |
| 3575 |
;; |
| 3576 |
esac |
| 3577 |
;; |
| 3578 |
|
| 3579 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) |
| 3580 |
lt_cv_deplibs_check_method=pass_all |
| 3581 |
;; |
| 3582 |
esac |
| 3583 |
]) |
| 3584 |
file_magic_cmd=$lt_cv_file_magic_cmd |
| 3585 |
deplibs_check_method=$lt_cv_deplibs_check_method |
| 3586 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 3587 |
|
| 3588 |
_LT_DECL([], [deplibs_check_method], [1], |
| 3589 |
[Method to check whether dependent libraries are shared objects]) |
| 3590 |
_LT_DECL([], [file_magic_cmd], [1], |
| 3591 |
[Command to use when deplibs_check_method == "file_magic"]) |
| 3592 |
])# AC_DEPLIBS_CHECK_METHOD |
| 3593 |
|
| 3594 |
|
| 3595 |
# AC_PROG_NM |
| 3596 |
# ---------- |
| 3597 |
# find the pathname to a BSD-compatible name lister |
| 3598 |
AC_DEFUN([AC_PROG_NM], |
| 3599 |
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, |
| 3600 |
[if test -n "$NM"; then |
| 3601 |
# Let the user override the test. |
| 3602 |
lt_cv_path_NM="$NM" |
| 3603 |
else |
| 3604 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3605 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 3606 |
IFS="$lt_save_ifs" |
| 3607 |
test -z "$ac_dir" && ac_dir=. |
| 3608 |
tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 3609 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 3610 |
# Check to see if the nm accepts a BSD-compat flag. |
| 3611 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3612 |
# nm: unknown option "B" ignored |
| 3613 |
# Tru64's nm complains that /dev/null is an invalid object file |
| 3614 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3615 |
*/dev/null* | *'Invalid file or object type'*) |
| 3616 |
lt_cv_path_NM="$tmp_nm -B" |
| 3617 |
break |
| 3618 |
;; |
| 3619 |
*) |
| 3620 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3621 |
*/dev/null*) |
| 3622 |
lt_cv_path_NM="$tmp_nm -p" |
| 3623 |
break |
| 3624 |
;; |
| 3625 |
*) |
| 3626 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3627 |
continue # so that we can try to find one that supports BSD flags |
| 3628 |
;; |
| 3629 |
esac |
| 3630 |
esac |
| 3631 |
fi |
| 3632 |
done |
| 3633 |
IFS="$lt_save_ifs" |
| 3634 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 3635 |
fi]) |
| 3636 |
NM="$lt_cv_path_NM" |
| 3637 |
test -z "$NM" && NM=nm |
| 3638 |
AC_SUBST([NM]) |
| 3639 |
_LT_DECL([], [NM], [1], [A BSD-compatible nm program])dnl |
| 3640 |
])# AC_PROG_NM |
| 3641 |
|
| 3642 |
# Old name: |
| 3643 |
AU_DEFUN([AM_PROG_NM], [AC_PROG_NM]) |
| 3644 |
|
| 3645 |
|
| 3646 |
# AC_CHECK_LIBM |
| 3647 |
# ------------- |
| 3648 |
# check for math library |
| 3649 |
AC_DEFUN([AC_CHECK_LIBM], |
| 3650 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 3651 |
LIBM= |
| 3652 |
case $host in |
| 3653 |
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
| 3654 |
# These system don't have libm, or don't need it |
| 3655 |
;; |
| 3656 |
*-ncr-sysv4.3*) |
| 3657 |
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
| 3658 |
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
| 3659 |
;; |
| 3660 |
*) |
| 3661 |
AC_CHECK_LIB(m, cos, LIBM="-lm") |
| 3662 |
;; |
| 3663 |
esac |
| 3664 |
])# AC_CHECK_LIBM |
| 3665 |
|
| 3666 |
|
| 3667 |
# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
| 3668 |
# ----------------------------------- |
| 3669 |
# sets LIBLTDL to the link flags for the libltdl convenience library and |
| 3670 |
# LTDLINCL to the include flags for the libltdl header and adds |
| 3671 |
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL |
| 3672 |
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
| 3673 |
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will |
| 3674 |
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with |
| 3675 |
# '${top_srcdir}/' (note the single quotes!). If your package is not |
| 3676 |
# flat and you're not using automake, define top_builddir and |
| 3677 |
# top_srcdir appropriately in the Makefiles. |
| 3678 |
AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
| 3679 |
[case $enable_ltdl_convenience in |
| 3680 |
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
| 3681 |
"") enable_ltdl_convenience=yes |
| 3682 |
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
| 3683 |
esac |
| 3684 |
LIBLTDL='${top_builddir}/'m4_if($#, 1,[$1], ['libltdl'])/libltdlc.la |
| 3685 |
LTDLINCL='-I${top_srcdir}/'m4_if($#, 1, [$1], ['libltdl']) |
| 3686 |
# For backwards non-gettext consistent compatibility... |
| 3687 |
INCLTDL="$LTDLINCL" |
| 3688 |
])# AC_LIBLTDL_CONVENIENCE |
| 3689 |
|
| 3690 |
|
| 3691 |
# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
| 3692 |
# ----------------------------------- |
| 3693 |
# sets LIBLTDL to the link flags for the libltdl installable library and |
| 3694 |
# LTDLINCL to the include flags for the libltdl header and adds |
| 3695 |
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL |
| 3696 |
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
| 3697 |
# DIRECTORY is not provided and an installed libltdl is not found, it is |
| 3698 |
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' |
| 3699 |
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single |
| 3700 |
# quotes!). If your package is not flat and you're not using automake, |
| 3701 |
# define top_builddir and top_srcdir appropriately in the Makefiles. |
| 3702 |
# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
| 3703 |
AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
| 3704 |
[AC_CHECK_LIB(ltdl, lt_dlinit, |
| 3705 |
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
| 3706 |
[if test x"$enable_ltdl_install" = xno; then |
| 3707 |
AC_MSG_WARN([libltdl not installed, but installation disabled]) |
| 3708 |
else |
| 3709 |
enable_ltdl_install=yes |
| 3710 |
fi |
| 3711 |
]) |
| 3712 |
if test x"$enable_ltdl_install" = x"yes"; then |
| 3713 |
ac_configure_args="$ac_configure_args --enable-ltdl-install" |
| 3714 |
LIBLTDL='${top_builddir}/'m4_if($#, 1, [$1], ['libltdl'])/libltdl.la |
| 3715 |
LTDLINCL='-I${top_srcdir}/'m4_if($#, 1, [$1], ['libltdl']) |
| 3716 |
else |
| 3717 |
ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
| 3718 |
LIBLTDL="-lltdl" |
| 3719 |
LTDLINCL= |
| 3720 |
fi |
| 3721 |
# For backwards non-gettext consistent compatibility... |
| 3722 |
INCLTDL="$LTDLINCL" |
| 3723 |
])# AC_LIBLTDL_INSTALLABLE |
| 3724 |
|
| 3725 |
|
| 3726 |
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) |
| 3727 |
# ------------------------------------------- |
| 3728 |
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], |
| 3729 |
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| 3730 |
|
| 3731 |
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 3732 |
|
| 3733 |
if test "$GCC" = yes; then |
| 3734 |
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
| 3735 |
|
| 3736 |
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
| 3737 |
lt_cv_prog_compiler_rtti_exceptions, |
| 3738 |
[-fno-rtti -fno-exceptions], [], |
| 3739 |
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
| 3740 |
fi |
| 3741 |
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], |
| 3742 |
[Compiler flag to turn off builtin functions]) |
| 3743 |
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI |
| 3744 |
|
| 3745 |
|
| 3746 |
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
| 3747 |
# --------------------------------- |
| 3748 |
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], |
| 3749 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 3750 |
AC_REQUIRE([LT_AC_PROG_EGREP])dnl |
| 3751 |
AC_REQUIRE([AC_PROG_CC])dnl |
| 3752 |
AC_REQUIRE([AC_PROG_LD])dnl |
| 3753 |
AC_REQUIRE([AC_PROG_NM])dnl |
| 3754 |
AC_REQUIRE([AC_OBJEXT])dnl |
| 3755 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 3756 |
AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
| 3757 |
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
| 3758 |
[ |
| 3759 |
# These are sane defaults that work on at least a few old systems. |
| 3760 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 3761 |
|
| 3762 |
# Character class describing NM global symbol codes. |
| 3763 |
symcode='[[BCDEGRST]]' |
| 3764 |
|
| 3765 |
# Regexp to match symbols that can be accessed directly from C. |
| 3766 |
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
| 3767 |
|
| 3768 |
# Transform the above into a raw symbol and a C symbol. |
| 3769 |
symxfrm='\1 \2\3 \3' |
| 3770 |
|
| 3771 |
# Transform an extracted symbol line into a proper C declaration |
| 3772 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 3773 |
|
| 3774 |
# Transform an extracted symbol line into symbol name and symbol address |
| 3775 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 3776 |
|
| 3777 |
# Define system-specific variables. |
| 3778 |
case $host_os in |
| 3779 |
aix*) |
| 3780 |
symcode='[[BCDT]]' |
| 3781 |
;; |
| 3782 |
cygwin* | mingw* | pw32*) |
| 3783 |
symcode='[[ABCDGISTW]]' |
| 3784 |
;; |
| 3785 |
hpux*) # Its linker distinguishes data from code symbols |
| 3786 |
if test "$host_cpu" = ia64; then |
| 3787 |
symcode='[[ABCDEGRST]]' |
| 3788 |
fi |
| 3789 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 3790 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 3791 |
;; |
| 3792 |
irix* | nonstopux*) |
| 3793 |
symcode='[[BCDEGRST]]' |
| 3794 |
;; |
| 3795 |
osf*) |
| 3796 |
symcode='[[BCDEGQRST]]' |
| 3797 |
;; |
| 3798 |
solaris* | sysv5*) |
| 3799 |
symcode='[[BDRT]]' |
| 3800 |
;; |
| 3801 |
sysv4) |
| 3802 |
symcode='[[DFNSTU]]' |
| 3803 |
;; |
| 3804 |
esac |
| 3805 |
|
| 3806 |
# Handle CRLF in mingw tool chain |
| 3807 |
opt_cr= |
| 3808 |
case $build_os in |
| 3809 |
mingw*) |
| 3810 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 3811 |
;; |
| 3812 |
esac |
| 3813 |
|
| 3814 |
# If we're using GNU nm, then use its standard symbol codes. |
| 3815 |
case `$NM -V 2>&1` in |
| 3816 |
*GNU* | *'with BFD'*) |
| 3817 |
symcode='[[ABCDGIRSTW]]' ;; |
| 3818 |
esac |
| 3819 |
|
| 3820 |
# Try without a prefix undercore, then with it. |
| 3821 |
for ac_symprfx in "" "_"; do |
| 3822 |
|
| 3823 |
# Write the raw and C identifiers. |
| 3824 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 3825 |
|
| 3826 |
# Check to see that the pipe works correctly. |
| 3827 |
pipe_works=no |
| 3828 |
|
| 3829 |
rm -f conftest* |
| 3830 |
cat > conftest.$ac_ext <<_LT_EOF |
| 3831 |
#ifdef __cplusplus |
| 3832 |
extern "C" { |
| 3833 |
#endif |
| 3834 |
char nm_test_var; |
| 3835 |
void nm_test_func(){} |
| 3836 |
#ifdef __cplusplus |
| 3837 |
} |
| 3838 |
#endif |
| 3839 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
| 3840 |
_LT_EOF |
| 3841 |
|
| 3842 |
if AC_TRY_EVAL(ac_compile); then |
| 3843 |
# Now try to grab the symbols. |
| 3844 |
nlist=conftest.nm |
| 3845 |
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then |
| 3846 |
# Try sorting and uniquifying the output. |
| 3847 |
if sort "$nlist" | uniq > "$nlist"T; then |
| 3848 |
mv -f "$nlist"T "$nlist" |
| 3849 |
else |
| 3850 |
rm -f "$nlist"T |
| 3851 |
fi |
| 3852 |
|
| 3853 |
# Make sure that we snagged all the symbols we need. |
| 3854 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 3855 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 3856 |
cat <<_LT_EOF > conftest.$ac_ext |
| 3857 |
#ifdef __cplusplus |
| 3858 |
extern "C" { |
| 3859 |
#endif |
| 3860 |
|
| 3861 |
_LT_EOF |
| 3862 |
# Now generate the symbol file. |
| 3863 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 3864 |
|
| 3865 |
cat <<_LT_EOF >> conftest.$ac_ext |
| 3866 |
#if defined (__STDC__) && __STDC__ |
| 3867 |
# define lt_ptr_t void * |
| 3868 |
#else |
| 3869 |
# define lt_ptr_t char * |
| 3870 |
# define const |
| 3871 |
#endif |
| 3872 |
|
| 3873 |
/* The mapping between symbol names and symbols. */ |
| 3874 |
const struct { |
| 3875 |
const char *name; |
| 3876 |
lt_ptr_t address; |
| 3877 |
} |
| 3878 |
lt_preloaded_symbols[[]] = |
| 3879 |
{ |
| 3880 |
_LT_EOF |
| 3881 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 3882 |
cat <<\_LT_EOF >> conftest.$ac_ext |
| 3883 |
{0, (lt_ptr_t) 0} |
| 3884 |
}; |
| 3885 |
|
| 3886 |
#ifdef __cplusplus |
| 3887 |
} |
| 3888 |
#endif |
| 3889 |
_LT_EOF |
| 3890 |
# Now try linking the two files. |
| 3891 |
mv conftest.$ac_objext conftstm.$ac_objext |
| 3892 |
lt_save_LIBS="$LIBS" |
| 3893 |
lt_save_CFLAGS="$CFLAGS" |
| 3894 |
LIBS="conftstm.$ac_objext" |
| 3895 |
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
| 3896 |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
| 3897 |
pipe_works=yes |
| 3898 |
fi |
| 3899 |
LIBS="$lt_save_LIBS" |
| 3900 |
CFLAGS="$lt_save_CFLAGS" |
| 3901 |
else |
| 3902 |
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
| 3903 |
fi |
| 3904 |
else |
| 3905 |
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
| 3906 |
fi |
| 3907 |
else |
| 3908 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD |
| 3909 |
fi |
| 3910 |
else |
| 3911 |
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD |
| 3912 |
cat conftest.$ac_ext >&5 |
| 3913 |
fi |
| 3914 |
rm -f conftest* conftst* |
| 3915 |
|
| 3916 |
# Do not use the global_symbol_pipe unless it works. |
| 3917 |
if test "$pipe_works" = yes; then |
| 3918 |
break |
| 3919 |
else |
| 3920 |
lt_cv_sys_global_symbol_pipe= |
| 3921 |
fi |
| 3922 |
done |
| 3923 |
]) |
| 3924 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 3925 |
lt_cv_sys_global_symbol_to_cdecl= |
| 3926 |
fi |
| 3927 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 3928 |
AC_MSG_RESULT(failed) |
| 3929 |
else |
| 3930 |
AC_MSG_RESULT(ok) |
| 3931 |
fi |
| 3932 |
|
| 3933 |
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
| 3934 |
[Take the output of nm and produce a listing of raw symbols and C names]) |
| 3935 |
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
| 3936 |
[Transform the output of nm in a proper C declaration]) |
| 3937 |
_LT_DECL([global_symbol_to_c_name_address], |
| 3938 |
[lt_cv_sys_global_symbol_to_c_name_address], [1], |
| 3939 |
[Transform the output of nm in a C name address pair]) |
| 3940 |
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
| 3941 |
|
| 3942 |
|
| 3943 |
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) |
| 3944 |
# --------------------------------------- |
| 3945 |
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], |
| 3946 |
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= |
| 3947 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 3948 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= |
| 3949 |
|
| 3950 |
AC_MSG_CHECKING([for $compiler option to produce PIC]) |
| 3951 |
m4_if([$1], [CXX], [ |
| 3952 |
# C++ specific cases for pic, static, wl, etc. |
| 3953 |
if test "$GXX" = yes; then |
| 3954 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3955 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 3956 |
|
| 3957 |
case $host_os in |
| 3958 |
aix*) |
| 3959 |
# All AIX code is PIC. |
| 3960 |
if test "$host_cpu" = ia64; then |
| 3961 |
# AIX 5 now supports IA64 processor |
| 3962 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 3963 |
fi |
| 3964 |
;; |
| 3965 |
amigaos*) |
| 3966 |
if test "$host_cpu" = m68k; then |
| 3967 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 3968 |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 3969 |
# like `-m68040'. |
| 3970 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
| 3971 |
fi |
| 3972 |
;; |
| 3973 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 3974 |
# PIC is the default for these OSes. |
| 3975 |
;; |
| 3976 |
mingw* | os2* | pw32*) |
| 3977 |
# This hack is so that the source file can tell whether it is being |
| 3978 |
# built for inclusion in a dll (and should export symbols for example). |
| 3979 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
| 3980 |
;; |
| 3981 |
darwin* | rhapsody*) |
| 3982 |
# PIC is the default on this platform |
| 3983 |
# Common symbols not allowed in MH_DYLIB files |
| 3984 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 3985 |
;; |
| 3986 |
*djgpp*) |
| 3987 |
# DJGPP does not support shared libraries at all |
| 3988 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 3989 |
;; |
| 3990 |
sysv4*MP*) |
| 3991 |
if test -d /usr/nec; then |
| 3992 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 3993 |
fi |
| 3994 |
;; |
| 3995 |
hpux*) |
| 3996 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 3997 |
# not for PA HP-UX. |
| 3998 |
case "$host_cpu" in |
| 3999 |
hppa*64*|ia64*) |
| 4000 |
;; |
| 4001 |
*) |
| 4002 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4003 |
;; |
| 4004 |
esac |
| 4005 |
;; |
| 4006 |
*) |
| 4007 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4008 |
;; |
| 4009 |
esac |
| 4010 |
else |
| 4011 |
case $host_os in |
| 4012 |
aix4* | aix5*) |
| 4013 |
# All AIX code is PIC. |
| 4014 |
if test "$host_cpu" = ia64; then |
| 4015 |
# AIX 5 now supports IA64 processor |
| 4016 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4017 |
else |
| 4018 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 4019 |
fi |
| 4020 |
;; |
| 4021 |
chorus*) |
| 4022 |
case $cc_basename in |
| 4023 |
cxch68) |
| 4024 |
# Green Hills C++ Compiler |
| 4025 |
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 4026 |
;; |
| 4027 |
esac |
| 4028 |
;; |
| 4029 |
darwin*) |
| 4030 |
# PIC is the default on this platform |
| 4031 |
# Common symbols not allowed in MH_DYLIB files |
| 4032 |
case "$cc_basename" in |
| 4033 |
xlc*) |
| 4034 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
| 4035 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4036 |
;; |
| 4037 |
esac |
| 4038 |
;; |
| 4039 |
dgux*) |
| 4040 |
case $cc_basename in |
| 4041 |
ec++) |
| 4042 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4043 |
;; |
| 4044 |
ghcx) |
| 4045 |
# Green Hills C++ Compiler |
| 4046 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 4047 |
;; |
| 4048 |
*) |
| 4049 |
;; |
| 4050 |
esac |
| 4051 |
;; |
| 4052 |
freebsd* | kfreebsd*-gnu) |
| 4053 |
# FreeBSD uses GNU C++ |
| 4054 |
;; |
| 4055 |
hpux9* | hpux10* | hpux11*) |
| 4056 |
case $cc_basename in |
| 4057 |
CC) |
| 4058 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4059 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 4060 |
if test "$host_cpu" != ia64; then |
| 4061 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 4062 |
fi |
| 4063 |
;; |
| 4064 |
aCC) |
| 4065 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4066 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 4067 |
case "$host_cpu" in |
| 4068 |
hppa*64*|ia64*) |
| 4069 |
# +Z the default |
| 4070 |
;; |
| 4071 |
*) |
| 4072 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 4073 |
;; |
| 4074 |
esac |
| 4075 |
;; |
| 4076 |
*) |
| 4077 |
;; |
| 4078 |
esac |
| 4079 |
;; |
| 4080 |
irix5* | irix6* | nonstopux*) |
| 4081 |
case $cc_basename in |
| 4082 |
CC) |
| 4083 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4084 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 4085 |
# CC pic flag -KPIC is the default. |
| 4086 |
;; |
| 4087 |
*) |
| 4088 |
;; |
| 4089 |
esac |
| 4090 |
;; |
| 4091 |
linux*) |
| 4092 |
case $cc_basename in |
| 4093 |
KCC) |
| 4094 |
# KAI C++ Compiler |
| 4095 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 4096 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4097 |
;; |
| 4098 |
icpc) |
| 4099 |
# Intel C++ |
| 4100 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4101 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4102 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 4103 |
;; |
| 4104 |
cxx) |
| 4105 |
# Compaq C++ |
| 4106 |
# Make sure the PIC flag is empty. It appears that all Alpha |
| 4107 |
# Linux and Compaq Tru64 Unix objects are PIC. |
| 4108 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 4109 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 4110 |
;; |
| 4111 |
*) |
| 4112 |
;; |
| 4113 |
esac |
| 4114 |
;; |
| 4115 |
lynxos*) |
| 4116 |
;; |
| 4117 |
m88k*) |
| 4118 |
;; |
| 4119 |
mvs*) |
| 4120 |
case $cc_basename in |
| 4121 |
cxx) |
| 4122 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
| 4123 |
;; |
| 4124 |
*) |
| 4125 |
;; |
| 4126 |
esac |
| 4127 |
;; |
| 4128 |
netbsd*) |
| 4129 |
;; |
| 4130 |
osf3* | osf4* | osf5*) |
| 4131 |
case $cc_basename in |
| 4132 |
KCC) |
| 4133 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 4134 |
;; |
| 4135 |
RCC) |
| 4136 |
# Rational C++ 2.4.1 |
| 4137 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 4138 |
;; |
| 4139 |
cxx) |
| 4140 |
# Digital/Compaq C++ |
| 4141 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4142 |
# Make sure the PIC flag is empty. It appears that all Alpha |
| 4143 |
# Linux and Compaq Tru64 Unix objects are PIC. |
| 4144 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 4145 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 4146 |
;; |
| 4147 |
*) |
| 4148 |
;; |
| 4149 |
esac |
| 4150 |
;; |
| 4151 |
psos*) |
| 4152 |
;; |
| 4153 |
sco*) |
| 4154 |
case $cc_basename in |
| 4155 |
CC) |
| 4156 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4157 |
;; |
| 4158 |
*) |
| 4159 |
;; |
| 4160 |
esac |
| 4161 |
;; |
| 4162 |
solaris*) |
| 4163 |
case $cc_basename in |
| 4164 |
CC) |
| 4165 |
# Sun C++ 4.2, 5.x and Centerline C++ |
| 4166 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4167 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4168 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 4169 |
;; |
| 4170 |
gcx) |
| 4171 |
# Green Hills C++ Compiler |
| 4172 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 4173 |
;; |
| 4174 |
*) |
| 4175 |
;; |
| 4176 |
esac |
| 4177 |
;; |
| 4178 |
sunos4*) |
| 4179 |
case $cc_basename in |
| 4180 |
CC) |
| 4181 |
# Sun C++ 4.x |
| 4182 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 4183 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4184 |
;; |
| 4185 |
lcc) |
| 4186 |
# Lucid |
| 4187 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 4188 |
;; |
| 4189 |
*) |
| 4190 |
;; |
| 4191 |
esac |
| 4192 |
;; |
| 4193 |
tandem*) |
| 4194 |
case $cc_basename in |
| 4195 |
NCC) |
| 4196 |
# NonStop-UX NCC 3.20 |
| 4197 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4198 |
;; |
| 4199 |
*) |
| 4200 |
;; |
| 4201 |
esac |
| 4202 |
;; |
| 4203 |
unixware*) |
| 4204 |
;; |
| 4205 |
vxworks*) |
| 4206 |
;; |
| 4207 |
*) |
| 4208 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 4209 |
;; |
| 4210 |
esac |
| 4211 |
fi |
| 4212 |
], |
| 4213 |
[ |
| 4214 |
if test "$GCC" = yes; then |
| 4215 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4216 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 4217 |
|
| 4218 |
case $host_os in |
| 4219 |
aix*) |
| 4220 |
# All AIX code is PIC. |
| 4221 |
if test "$host_cpu" = ia64; then |
| 4222 |
# AIX 5 now supports IA64 processor |
| 4223 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4224 |
fi |
| 4225 |
;; |
| 4226 |
|
| 4227 |
amigaos*) |
| 4228 |
if test "$host_cpu" = m68k; then |
| 4229 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 4230 |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 4231 |
# like `-m68040'. |
| 4232 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
| 4233 |
fi |
| 4234 |
;; |
| 4235 |
|
| 4236 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 4237 |
# PIC is the default for these OSes. |
| 4238 |
;; |
| 4239 |
|
| 4240 |
mingw* | pw32* | os2*) |
| 4241 |
# This hack is so that the source file can tell whether it is being |
| 4242 |
# built for inclusion in a dll (and should export symbols for example). |
| 4243 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
| 4244 |
;; |
| 4245 |
|
| 4246 |
darwin* | rhapsody*) |
| 4247 |
# PIC is the default on this platform |
| 4248 |
# Common symbols not allowed in MH_DYLIB files |
| 4249 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 4250 |
;; |
| 4251 |
|
| 4252 |
msdosdjgpp*) |
| 4253 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| 4254 |
# on systems that don't support them. |
| 4255 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 4256 |
enable_shared=no |
| 4257 |
;; |
| 4258 |
|
| 4259 |
sysv4*MP*) |
| 4260 |
if test -d /usr/nec; then |
| 4261 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 4262 |
fi |
| 4263 |
;; |
| 4264 |
|
| 4265 |
hpux*) |
| 4266 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 4267 |
# not for PA HP-UX. |
| 4268 |
case "$host_cpu" in |
| 4269 |
hppa*64*|ia64*) |
| 4270 |
# +Z the default |
| 4271 |
;; |
| 4272 |
*) |
| 4273 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4274 |
;; |
| 4275 |
esac |
| 4276 |
;; |
| 4277 |
|
| 4278 |
*) |
| 4279 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4280 |
;; |
| 4281 |
esac |
| 4282 |
else |
| 4283 |
# PORTME Check for flag to pass linker flags through the system compiler. |
| 4284 |
case $host_os in |
| 4285 |
aix*) |
| 4286 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4287 |
if test "$host_cpu" = ia64; then |
| 4288 |
# AIX 5 now supports IA64 processor |
| 4289 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4290 |
else |
| 4291 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 4292 |
fi |
| 4293 |
;; |
| 4294 |
darwin*) |
| 4295 |
# PIC is the default on this platform |
| 4296 |
# Common symbols not allowed in MH_DYLIB files |
| 4297 |
case "$cc_basename" in |
| 4298 |
xlc*) |
| 4299 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
| 4300 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4301 |
;; |
| 4302 |
esac |
| 4303 |
;; |
| 4304 |
|
| 4305 |
mingw* | pw32* | os2*) |
| 4306 |
# This hack is so that the source file can tell whether it is being |
| 4307 |
# built for inclusion in a dll (and should export symbols for example). |
| 4308 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
| 4309 |
;; |
| 4310 |
|
| 4311 |
hpux9* | hpux10* | hpux11*) |
| 4312 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4313 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 4314 |
# not for PA HP-UX. |
| 4315 |
case "$host_cpu" in |
| 4316 |
hppa*64*|ia64*) |
| 4317 |
# +Z the default |
| 4318 |
;; |
| 4319 |
*) |
| 4320 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 4321 |
;; |
| 4322 |
esac |
| 4323 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 4324 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 4325 |
;; |
| 4326 |
|
| 4327 |
irix5* | irix6* | nonstopux*) |
| 4328 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4329 |
# PIC (with -KPIC) is the default. |
| 4330 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 4331 |
;; |
| 4332 |
|
| 4333 |
newsos6) |
| 4334 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4335 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4336 |
;; |
| 4337 |
|
| 4338 |
linux*) |
| 4339 |
case $CC in |
| 4340 |
icc* | ecc*) |
| 4341 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4342 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4343 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 4344 |
;; |
| 4345 |
ccc*) |
| 4346 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4347 |
# All Alpha code is PIC. |
| 4348 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 4349 |
;; |
| 4350 |
esac |
| 4351 |
;; |
| 4352 |
|
| 4353 |
osf3* | osf4* | osf5*) |
| 4354 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4355 |
# All OSF/1 code is PIC. |
| 4356 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 4357 |
;; |
| 4358 |
|
| 4359 |
sco3.2v5*) |
| 4360 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' |
| 4361 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' |
| 4362 |
;; |
| 4363 |
|
| 4364 |
solaris*) |
| 4365 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4366 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4367 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4368 |
;; |
| 4369 |
|
| 4370 |
sunos4*) |
| 4371 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 4372 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 4373 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4374 |
;; |
| 4375 |
|
| 4376 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4377 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4378 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4379 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4380 |
;; |
| 4381 |
|
| 4382 |
sysv4*MP*) |
| 4383 |
if test -d /usr/nec ;then |
| 4384 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
| 4385 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4386 |
fi |
| 4387 |
;; |
| 4388 |
|
| 4389 |
uts4*) |
| 4390 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 4391 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4392 |
;; |
| 4393 |
|
| 4394 |
*) |
| 4395 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 4396 |
;; |
| 4397 |
esac |
| 4398 |
fi |
| 4399 |
]) |
| 4400 |
case "$host_os" in |
| 4401 |
# For platforms which do not support PIC, -DPIC is meaningless: |
| 4402 |
*djgpp*) |
| 4403 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 4404 |
;; |
| 4405 |
*) |
| 4406 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
| 4407 |
;; |
| 4408 |
esac |
| 4409 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) |
| 4410 |
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
| 4411 |
[How to pass a linker flag through the compiler]) |
| 4412 |
|
| 4413 |
# |
| 4414 |
# Check to make sure the PIC flag actually works. |
| 4415 |
# |
| 4416 |
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then |
| 4417 |
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], |
| 4418 |
[_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1)], |
| 4419 |
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], |
| 4420 |
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in |
| 4421 |
"" | " "*) ;; |
| 4422 |
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; |
| 4423 |
esac], |
| 4424 |
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 4425 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
| 4426 |
fi |
| 4427 |
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
| 4428 |
[Additional compiler flags for building library objects]) |
| 4429 |
|
| 4430 |
# |
| 4431 |
# Check to make sure the static flag actually works. |
| 4432 |
# |
| 4433 |
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], |
| 4434 |
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
| 4435 |
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1), |
| 4436 |
[], |
| 4437 |
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
| 4438 |
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], |
| 4439 |
[Compiler flag to prevent dynamic linking]) |
| 4440 |
])# AC_LIBTOOL_PROG_COMPILER_PIC |
| 4441 |
|
| 4442 |
|
| 4443 |
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) |
| 4444 |
# ------------------------------------ |
| 4445 |
# See if the linker supports building shared libraries. |
| 4446 |
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], |
| 4447 |
[AC_REQUIRE([LT_AC_PROG_EGREP])dnl |
| 4448 |
AC_REQUIRE([AC_PROG_LD])dnl |
| 4449 |
AC_REQUIRE([AC_PROG_NM])dnl |
| 4450 |
AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl |
| 4451 |
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 4452 |
m4_if([$1], [CXX], [ |
| 4453 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4454 |
case $host_os in |
| 4455 |
aix4* | aix5*) |
| 4456 |
# If we're using GNU nm, then we don't want the "-C" option. |
| 4457 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 4458 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 4459 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
| 4460 |
else |
| 4461 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
| 4462 |
fi |
| 4463 |
;; |
| 4464 |
pw32*) |
| 4465 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
| 4466 |
;; |
| 4467 |
cygwin* | mingw*) |
| 4468 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 4469 |
;; |
| 4470 |
*) |
| 4471 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4472 |
;; |
| 4473 |
esac |
| 4474 |
], [ |
| 4475 |
runpath_var= |
| 4476 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 4477 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 4478 |
_LT_AC_TAGVAR(archive_cmds, $1)= |
| 4479 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
| 4480 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 4481 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 4482 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4483 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 4484 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 4485 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 4486 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 4487 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 4488 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 4489 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 4490 |
_LT_AC_TAGVAR(inherit_rpath, $1)=no |
| 4491 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 4492 |
_LT_AC_TAGVAR(module_cmds, $1)= |
| 4493 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 4494 |
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)= |
| 4495 |
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
| 4496 |
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)= |
| 4497 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 4498 |
# include_expsyms should be a list of space-separated symbols to be *always* |
| 4499 |
# included in the symbol list |
| 4500 |
_LT_AC_TAGVAR(include_expsyms, $1)= |
| 4501 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
| 4502 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 4503 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 4504 |
# as well as any symbol that contains `d'. |
| 4505 |
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" |
| 4506 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 4507 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 4508 |
# the symbol is explicitly referenced. Since portable code cannot |
| 4509 |
# rely on this symbol name, it's probably fine to never include it in |
| 4510 |
# preloaded symbol tables. |
| 4511 |
extract_expsyms_cmds= |
| 4512 |
|
| 4513 |
case $host_os in |
| 4514 |
cygwin* | mingw* | pw32*) |
| 4515 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 4516 |
# When not using gcc, we currently assume that we are using |
| 4517 |
# Microsoft Visual C++. |
| 4518 |
if test "$GCC" != yes; then |
| 4519 |
with_gnu_ld=no |
| 4520 |
fi |
| 4521 |
;; |
| 4522 |
openbsd*) |
| 4523 |
with_gnu_ld=no |
| 4524 |
;; |
| 4525 |
esac |
| 4526 |
|
| 4527 |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 4528 |
if test "$with_gnu_ld" = yes; then |
| 4529 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 4530 |
wlarc='${wl}' |
| 4531 |
|
| 4532 |
# See if GNU ld supports shared libraries. |
| 4533 |
case $host_os in |
| 4534 |
aix3* | aix4* | aix5*) |
| 4535 |
# On AIX/PPC, the GNU linker is very broken |
| 4536 |
if test "$host_cpu" != ia64; then |
| 4537 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 4538 |
cat <<_LT_EOF 1>&2 |
| 4539 |
|
| 4540 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 4541 |
*** to be unable to reliably create shared libraries on AIX. |
| 4542 |
*** Therefore, libtool is disabling shared libraries support. If you |
| 4543 |
*** really care for shared libraries, you may want to modify your PATH |
| 4544 |
*** so that a non-GNU linker is found, and then restart. |
| 4545 |
|
| 4546 |
_LT_EOF |
| 4547 |
fi |
| 4548 |
;; |
| 4549 |
|
| 4550 |
amigaos*) |
| 4551 |
if test "$host_cpu" = m68k; then |
| 4552 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 4553 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 4554 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 4555 |
fi |
| 4556 |
|
| 4557 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 4558 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
| 4559 |
# to version 4, is to share data among multiple programs linked |
| 4560 |
# with the same dynamic library. Since this doesn't match the |
| 4561 |
# behavior of shared libraries on other platforms, we can't use |
| 4562 |
# them. |
| 4563 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 4564 |
;; |
| 4565 |
|
| 4566 |
beos*) |
| 4567 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 4568 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 4569 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 4570 |
# support --undefined. This deserves some investigation. FIXME |
| 4571 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4572 |
else |
| 4573 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 4574 |
fi |
| 4575 |
;; |
| 4576 |
|
| 4577 |
cygwin* | mingw* | pw32*) |
| 4578 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 4579 |
# as there is no search path for DLLs. |
| 4580 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 4581 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 4582 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 4583 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 4584 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 4585 |
|
| 4586 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 4587 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 4588 |
# If the export-symbols file already is a .def file (1st line |
| 4589 |
# is EXPORTS), use it as is; otherwise, prepend... |
| 4590 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 4591 |
cp $export_symbols $output_objdir/$soname.def; |
| 4592 |
else |
| 4593 |
echo EXPORTS > $output_objdir/$soname.def; |
| 4594 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 4595 |
fi~ |
| 4596 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 4597 |
else |
| 4598 |
ld_shlibs=no |
| 4599 |
fi |
| 4600 |
;; |
| 4601 |
|
| 4602 |
netbsd*) |
| 4603 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 4604 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 4605 |
wlarc= |
| 4606 |
else |
| 4607 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4608 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4609 |
fi |
| 4610 |
;; |
| 4611 |
|
| 4612 |
solaris* | sysv5*) |
| 4613 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 4614 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 4615 |
cat <<_LT_EOF 1>&2 |
| 4616 |
|
| 4617 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 4618 |
*** create shared libraries on Solaris systems. Therefore, libtool |
| 4619 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 4620 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
| 4621 |
*** your PATH or compiler configuration so that the native linker is |
| 4622 |
*** used, and then restart. |
| 4623 |
|
| 4624 |
_LT_EOF |
| 4625 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 4626 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4627 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4628 |
else |
| 4629 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 4630 |
fi |
| 4631 |
;; |
| 4632 |
|
| 4633 |
sunos4*) |
| 4634 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 4635 |
wlarc= |
| 4636 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 4637 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4638 |
;; |
| 4639 |
|
| 4640 |
linux*) |
| 4641 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then |
| 4642 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4643 |
case `$LD -v 2>&1` in |
| 4644 |
*\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 4645 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 4646 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 4647 |
*\ 2.11.*) ;; # other 2.11 versions |
| 4648 |
*) supports_anon_versioning=yes ;; |
| 4649 |
esac |
| 4650 |
if test "x$supports_anon_versioning" = xyes; then |
| 4651 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~$echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 4652 |
else |
| 4653 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=$_LT_AC_TAGVAR(archive_cmds, $1) |
| 4654 |
fi |
| 4655 |
else |
| 4656 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 4657 |
fi |
| 4658 |
;; |
| 4659 |
|
| 4660 |
*) |
| 4661 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 4662 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4663 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4664 |
else |
| 4665 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 4666 |
fi |
| 4667 |
;; |
| 4668 |
esac |
| 4669 |
|
| 4670 |
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then |
| 4671 |
runpath_var=LD_RUN_PATH |
| 4672 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 4673 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 4674 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 4675 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 4676 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 4677 |
else |
| 4678 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 4679 |
fi |
| 4680 |
fi |
| 4681 |
else |
| 4682 |
# PORTME fill in a description of your system's linker (not GNU ld) |
| 4683 |
case $host_os in |
| 4684 |
aix3*) |
| 4685 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 4686 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 4687 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 4688 |
# Note: this linker hardcodes the directories in LIBPATH if there |
| 4689 |
# are no directories specified by -L. |
| 4690 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 4691 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 4692 |
# Neither direct hardcoding nor static linking is supported with a |
| 4693 |
# broken collect2. |
| 4694 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| 4695 |
fi |
| 4696 |
;; |
| 4697 |
|
| 4698 |
aix4* | aix5*) |
| 4699 |
if test "$host_cpu" = ia64; then |
| 4700 |
# On IA64, the linker does run time linking by default, so we don't |
| 4701 |
# have to do anything special. |
| 4702 |
aix_use_runtimelinking=no |
| 4703 |
exp_sym_flag='-Bexport' |
| 4704 |
no_entry_flag="" |
| 4705 |
else |
| 4706 |
# If we're using GNU nm, then we don't want the "-C" option. |
| 4707 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 4708 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 4709 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
| 4710 |
else |
| 4711 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
| 4712 |
fi |
| 4713 |
aix_use_runtimelinking=no |
| 4714 |
|
| 4715 |
# Test if we are trying to use run time linking or normal |
| 4716 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 4717 |
# need to do runtime linking. |
| 4718 |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 4719 |
for ld_flag in $LDFLAGS; do |
| 4720 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 4721 |
aix_use_runtimelinking=yes |
| 4722 |
break |
| 4723 |
fi |
| 4724 |
done |
| 4725 |
esac |
| 4726 |
|
| 4727 |
exp_sym_flag='-bexport' |
| 4728 |
no_entry_flag='-bnoentry' |
| 4729 |
fi |
| 4730 |
|
| 4731 |
# When large executables or shared objects are built, AIX ld can |
| 4732 |
# have problems creating the table of contents. If linking a library |
| 4733 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 4734 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 4735 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 4736 |
|
| 4737 |
_LT_AC_TAGVAR(archive_cmds, $1)='' |
| 4738 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 4739 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 4740 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 4741 |
|
| 4742 |
if test "$GCC" = yes; then |
| 4743 |
case $host_os in aix4.[012]|aix4.[012].*) |
| 4744 |
# We only want to do this on AIX 4.2 and lower, the check |
| 4745 |
# below for broken collect2 doesn't work under 4.3+ |
| 4746 |
collect2name=`${CC} -print-prog-name=collect2` |
| 4747 |
if test -f "$collect2name" && |
| 4748 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 4749 |
then |
| 4750 |
# We have reworked collect2 |
| 4751 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 4752 |
else |
| 4753 |
# We have old collect2 |
| 4754 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| 4755 |
# It fails to find uninstalled libraries when the uninstalled |
| 4756 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 4757 |
# to unsupported forces relinking |
| 4758 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 4759 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 4760 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 4761 |
fi |
| 4762 |
esac |
| 4763 |
shared_flag='-shared' |
| 4764 |
else |
| 4765 |
# not using gcc |
| 4766 |
if test "$host_cpu" = ia64; then |
| 4767 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 4768 |
# chokes on -Wl,-G. The following line is correct: |
| 4769 |
shared_flag='-G' |
| 4770 |
else |
| 4771 |
if test "$aix_use_runtimelinking" = yes; then |
| 4772 |
shared_flag='${wl}-G' |
| 4773 |
else |
| 4774 |
shared_flag='${wl}-bM:SRE' |
| 4775 |
fi |
| 4776 |
fi |
| 4777 |
fi |
| 4778 |
|
| 4779 |
# It seems that -bexpall does not export symbols beginning with |
| 4780 |
# underscore (_), so it is better to generate a list of symbols to export. |
| 4781 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 4782 |
if test "$aix_use_runtimelinking" = yes; then |
| 4783 |
# Warning - without using the other runtime loading flags (-brtl), |
| 4784 |
# -berok will link without error, but may produce a broken library. |
| 4785 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 4786 |
# Determine the default libpath from the value encoded in an |
| 4787 |
# empty executable. |
| 4788 |
_LT_AC_SYS_LIBPATH_AIX |
| 4789 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 4790 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 4791 |
else |
| 4792 |
if test "$host_cpu" = ia64; then |
| 4793 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 4794 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 4795 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 4796 |
else |
| 4797 |
# Determine the default libpath from the value encoded in an |
| 4798 |
# empty executable. |
| 4799 |
_LT_AC_SYS_LIBPATH_AIX |
| 4800 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 4801 |
# Warning - without using the other run time loading flags, |
| 4802 |
# -berok will link without error, but may produce a broken library. |
| 4803 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 4804 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 4805 |
# -bexpall does not export symbols beginning with underscore (_) |
| 4806 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 4807 |
# Exported symbols can be pulled into shared objects from archives |
| 4808 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
| 4809 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 4810 |
# This is similar to how AIX traditionally builds it's shared libraries. |
| 4811 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 4812 |
fi |
| 4813 |
fi |
| 4814 |
;; |
| 4815 |
|
| 4816 |
amigaos*) |
| 4817 |
if test "$host_cpu" = m68k; then |
| 4818 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 4819 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 4820 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 4821 |
fi |
| 4822 |
# see comment about different semantics on the GNU ld section |
| 4823 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 4824 |
;; |
| 4825 |
|
| 4826 |
bsdi4*) |
| 4827 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
| 4828 |
;; |
| 4829 |
|
| 4830 |
cygwin* | mingw* | pw32*) |
| 4831 |
# When not using gcc, we currently assume that we are using |
| 4832 |
# Microsoft Visual C++. |
| 4833 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 4834 |
# no search path for DLLs. |
| 4835 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 4836 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 4837 |
# Tell ltmain to make .lib files, not .a files. |
| 4838 |
libext=lib |
| 4839 |
# Tell ltmain to make .dll files, not .so files. |
| 4840 |
shrext_cmds=".dll" |
| 4841 |
# FIXME: Setting linknames here is a bad hack. |
| 4842 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 4843 |
# The linker will automatically build a .lib file if we build a DLL. |
| 4844 |
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 4845 |
# FIXME: Should let the user specify the lib program. |
| 4846 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 4847 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 4848 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 4849 |
;; |
| 4850 |
|
| 4851 |
darwin* | rhapsody*) |
| 4852 |
case "$host_os" in |
| 4853 |
rhapsody* | darwin1.[[012]]) |
| 4854 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
| 4855 |
;; |
| 4856 |
*) # Darwin 1.3 on |
| 4857 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 4858 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${Wl}suppress' |
| 4859 |
else |
| 4860 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
| 4861 |
10.[[012]]) |
| 4862 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 4863 |
;; |
| 4864 |
10.*) |
| 4865 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
| 4866 |
;; |
| 4867 |
esac |
| 4868 |
fi |
| 4869 |
;; |
| 4870 |
esac |
| 4871 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 4872 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 4873 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 4874 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 4875 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| 4876 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 4877 |
if test "$GCC" = yes ; then |
| 4878 |
output_verbose_link_cmd='echo' |
| 4879 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 4880 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 4881 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 4882 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 4883 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 4884 |
else |
| 4885 |
case "$cc_basename" in |
| 4886 |
xlc*) |
| 4887 |
output_verbose_link_cmd='echo' |
| 4888 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 4889 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 4890 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 4891 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 4892 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 4893 |
;; |
| 4894 |
*) |
| 4895 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 4896 |
;; |
| 4897 |
esac |
| 4898 |
fi |
| 4899 |
;; |
| 4900 |
dgux*) |
| 4901 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 4902 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 4903 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4904 |
;; |
| 4905 |
|
| 4906 |
freebsd1*) |
| 4907 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 4908 |
;; |
| 4909 |
|
| 4910 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 4911 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 4912 |
# does not break anything, and helps significantly (at the cost of a little |
| 4913 |
# extra space). |
| 4914 |
freebsd2.2*) |
| 4915 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 4916 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 4917 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 4918 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4919 |
;; |
| 4920 |
|
| 4921 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 4922 |
freebsd2*) |
| 4923 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 4924 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 4925 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 4926 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4927 |
;; |
| 4928 |
|
| 4929 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 4930 |
freebsd* | kfreebsd*-gnu) |
| 4931 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 4932 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 4933 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 4934 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4935 |
;; |
| 4936 |
|
| 4937 |
hpux9*) |
| 4938 |
if test "$GCC" = yes; then |
| 4939 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 4940 |
else |
| 4941 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 4942 |
fi |
| 4943 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 4944 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 4945 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 4946 |
|
| 4947 |
# hardcode_minus_L: Not really in the search PATH, |
| 4948 |
# but as the default location of the library. |
| 4949 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 4950 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 4951 |
;; |
| 4952 |
|
| 4953 |
hpux10* | hpux11*) |
| 4954 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 4955 |
case "$host_cpu" in |
| 4956 |
hppa*64*|ia64*) |
| 4957 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 4958 |
;; |
| 4959 |
*) |
| 4960 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 4961 |
;; |
| 4962 |
esac |
| 4963 |
else |
| 4964 |
case "$host_cpu" in |
| 4965 |
hppa*64*|ia64*) |
| 4966 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 4967 |
;; |
| 4968 |
*) |
| 4969 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 4970 |
;; |
| 4971 |
esac |
| 4972 |
fi |
| 4973 |
if test "$with_gnu_ld" = no; then |
| 4974 |
case "$host_cpu" in |
| 4975 |
hppa*64*) |
| 4976 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 4977 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 4978 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 4979 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 4980 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4981 |
;; |
| 4982 |
ia64*) |
| 4983 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 4984 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 4985 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4986 |
|
| 4987 |
# hardcode_minus_L: Not really in the search PATH, |
| 4988 |
# but as the default location of the library. |
| 4989 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 4990 |
;; |
| 4991 |
*) |
| 4992 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 4993 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 4994 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 4995 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 4996 |
|
| 4997 |
# hardcode_minus_L: Not really in the search PATH, |
| 4998 |
# but as the default location of the library. |
| 4999 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 5000 |
;; |
| 5001 |
esac |
| 5002 |
fi |
| 5003 |
;; |
| 5004 |
|
| 5005 |
irix5* | irix6* | nonstopux*) |
| 5006 |
if test "$GCC" = yes; then |
| 5007 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5008 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 5009 |
else |
| 5010 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5011 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
| 5012 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
| 5013 |
fi |
| 5014 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 5015 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5016 |
_LT_AC_TAGVAR(inherit_rpath, $1)=yes |
| 5017 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 5018 |
;; |
| 5019 |
|
| 5020 |
netbsd*) |
| 5021 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 5022 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 5023 |
else |
| 5024 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 5025 |
fi |
| 5026 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 5027 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5028 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5029 |
;; |
| 5030 |
|
| 5031 |
newsos6) |
| 5032 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5033 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5034 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 5035 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5036 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5037 |
;; |
| 5038 |
|
| 5039 |
openbsd*) |
| 5040 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5041 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5042 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5043 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5044 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 5045 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5046 |
else |
| 5047 |
case $host_os in |
| 5048 |
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
| 5049 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5050 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 5051 |
;; |
| 5052 |
*) |
| 5053 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5054 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 5055 |
;; |
| 5056 |
esac |
| 5057 |
fi |
| 5058 |
;; |
| 5059 |
|
| 5060 |
os2*) |
| 5061 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5062 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 5063 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5064 |
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 5065 |
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 5066 |
;; |
| 5067 |
|
| 5068 |
osf3*) |
| 5069 |
if test "$GCC" = yes; then |
| 5070 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 5071 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5072 |
else |
| 5073 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 5074 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5075 |
fi |
| 5076 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 5077 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5078 |
;; |
| 5079 |
|
| 5080 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 5081 |
if test "$GCC" = yes; then |
| 5082 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 5083 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5084 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 5085 |
else |
| 5086 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 5087 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5088 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 5089 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 5090 |
|
| 5091 |
# Both c and cxx compiler support -rpath directly |
| 5092 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 5093 |
fi |
| 5094 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5095 |
;; |
| 5096 |
|
| 5097 |
sco3.2v5*) |
| 5098 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5099 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5100 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 5101 |
runpath_var=LD_RUN_PATH |
| 5102 |
hardcode_runpath_var=yes |
| 5103 |
;; |
| 5104 |
|
| 5105 |
solaris*) |
| 5106 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
| 5107 |
if test "$GCC" = yes; then |
| 5108 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5109 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5110 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 5111 |
else |
| 5112 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5113 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5114 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5115 |
fi |
| 5116 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 5117 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5118 |
case $host_os in |
| 5119 |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 5120 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 5121 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
| 5122 |
esac |
| 5123 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 5124 |
;; |
| 5125 |
|
| 5126 |
sunos4*) |
| 5127 |
if test "x$host_vendor" = xsequent; then |
| 5128 |
# Use $CC to link under sequent, because it throws in some extra .o |
| 5129 |
# files that make .init and .fini sections work. |
| 5130 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5131 |
else |
| 5132 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 5133 |
fi |
| 5134 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5135 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5136 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 5137 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5138 |
;; |
| 5139 |
|
| 5140 |
sysv4) |
| 5141 |
case $host_vendor in |
| 5142 |
sni) |
| 5143 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5144 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? |
| 5145 |
;; |
| 5146 |
siemens) |
| 5147 |
## LD is ld it makes a PLAMLIB |
| 5148 |
## CC just makes a GrossModule. |
| 5149 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5150 |
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' |
| 5151 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5152 |
;; |
| 5153 |
motorola) |
| 5154 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5155 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie |
| 5156 |
;; |
| 5157 |
esac |
| 5158 |
runpath_var='LD_RUN_PATH' |
| 5159 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5160 |
;; |
| 5161 |
|
| 5162 |
sysv4.3*) |
| 5163 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5164 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5165 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' |
| 5166 |
;; |
| 5167 |
|
| 5168 |
sysv4*MP*) |
| 5169 |
if test -d /usr/nec; then |
| 5170 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5171 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5172 |
runpath_var=LD_RUN_PATH |
| 5173 |
hardcode_runpath_var=yes |
| 5174 |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 5175 |
fi |
| 5176 |
;; |
| 5177 |
|
| 5178 |
sysv4.2uw2*) |
| 5179 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5180 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5181 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 5182 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5183 |
hardcode_runpath_var=yes |
| 5184 |
runpath_var=LD_RUN_PATH |
| 5185 |
;; |
| 5186 |
|
| 5187 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
| 5188 |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' |
| 5189 |
if test "$GCC" = yes; then |
| 5190 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5191 |
else |
| 5192 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5193 |
fi |
| 5194 |
runpath_var='LD_RUN_PATH' |
| 5195 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5196 |
;; |
| 5197 |
|
| 5198 |
sysv5*) |
| 5199 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
| 5200 |
# $CC -shared without GNU ld will not create a library from C++ |
| 5201 |
# object files and a static libstdc++, better avoid it by now |
| 5202 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5203 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5204 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5205 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 5206 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5207 |
runpath_var='LD_RUN_PATH' |
| 5208 |
;; |
| 5209 |
|
| 5210 |
uts4*) |
| 5211 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5212 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5213 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5214 |
;; |
| 5215 |
|
| 5216 |
*) |
| 5217 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5218 |
;; |
| 5219 |
esac |
| 5220 |
|
| 5221 |
if test x$host_vendor = xsni; then |
| 5222 |
case $host in |
| 5223 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 5224 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 5225 |
;; |
| 5226 |
esac |
| 5227 |
fi |
| 5228 |
fi |
| 5229 |
]) |
| 5230 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
| 5231 |
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 5232 |
|
| 5233 |
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl |
| 5234 |
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl |
| 5235 |
_LT_DECL([], [extract_expsyms_cmds], [2], |
| 5236 |
[The commands to extract the exported symbol list from a shared archive]) |
| 5237 |
|
| 5238 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 5239 |
if test "$GCC" = yes; then |
| 5240 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 5241 |
fi |
| 5242 |
_LT_DECL([], [variables_saved_for_relink], [1], |
| 5243 |
[Variables whose values should be saved in libtool wrapper scripts and |
| 5244 |
restored at link time]) |
| 5245 |
|
| 5246 |
# |
| 5247 |
# Do we need to explicitly link libc? |
| 5248 |
# |
| 5249 |
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in |
| 5250 |
x|xyes) |
| 5251 |
# Assume -lc should be added |
| 5252 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 5253 |
|
| 5254 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 5255 |
case $_LT_AC_TAGVAR(archive_cmds, $1) in |
| 5256 |
*'~'*) |
| 5257 |
# FIXME: we may have to deal with multi-command sequences. |
| 5258 |
;; |
| 5259 |
'$CC '*) |
| 5260 |
# Test whether the compiler implicitly links with -lc since on some |
| 5261 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 5262 |
# to ld, don't add -lc before -lgcc. |
| 5263 |
AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
| 5264 |
$rm conftest* |
| 5265 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5266 |
|
| 5267 |
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
| 5268 |
soname=conftest |
| 5269 |
lib=conftest |
| 5270 |
libobjs=conftest.$ac_objext |
| 5271 |
deplibs= |
| 5272 |
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
| 5273 |
compiler_flags=-v |
| 5274 |
linker_flags=-v |
| 5275 |
verstring= |
| 5276 |
output_objdir=. |
| 5277 |
libname=conftest |
| 5278 |
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) |
| 5279 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 5280 |
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) |
| 5281 |
then |
| 5282 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5283 |
else |
| 5284 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 5285 |
fi |
| 5286 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag |
| 5287 |
else |
| 5288 |
cat conftest.err 1>&5 |
| 5289 |
fi |
| 5290 |
$rm conftest* |
| 5291 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) |
| 5292 |
;; |
| 5293 |
esac |
| 5294 |
fi |
| 5295 |
;; |
| 5296 |
esac |
| 5297 |
|
| 5298 |
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], |
| 5299 |
[Whether or not to add -lc for building shared libraries]) |
| 5300 |
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], |
| 5301 |
[enable_shared_with_static_runtimes], [0], |
| 5302 |
[Whether or not to disallow shared libs when runtime libs are static]) |
| 5303 |
_LT_TAGDECL([], [export_dynamic_flag_spec], [1], |
| 5304 |
[Compiler flag to allow reflexive dlopens]) |
| 5305 |
_LT_TAGDECL([], [whole_archive_flag_spec], [1], |
| 5306 |
[Compiler flag to generate shared objects directly from archives]) |
| 5307 |
_LT_TAGDECL([], [old_archive_from_new_cmds], [2], |
| 5308 |
[Create an old-style archive from a shared archive]) |
| 5309 |
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], |
| 5310 |
[Create a temporary old-style archive to link instead of a shared archive]) |
| 5311 |
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) |
| 5312 |
_LT_TAGDECL([], [archive_expsym_cmds], [2]) |
| 5313 |
_LT_TAGDECL([], [module_cmds], [2], |
| 5314 |
[Commands used to build a loadable module if different from building |
| 5315 |
a shared archive.]) |
| 5316 |
_LT_TAGDECL([], [module_expsym_cmds], [2]) |
| 5317 |
_LT_TAGDECL([], [allow_undefined_flag], [1], |
| 5318 |
[Flag that allows shared libraries with undefined symbols to be built]) |
| 5319 |
_LT_TAGDECL([], [no_undefined_flag], [1], |
| 5320 |
[Flag that enforces no undefined symbols]) |
| 5321 |
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
| 5322 |
[Flag to hardcode $libdir into a binary during linking. |
| 5323 |
This must work even if $libdir does not exist]) |
| 5324 |
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], |
| 5325 |
[If ld is used when linking, flag to hardcode $libdir into a binary |
| 5326 |
during linking. This must work even if $libdir does not exist]) |
| 5327 |
_LT_TAGDECL([], [hardcode_libdir_separator], [1], |
| 5328 |
[Whether we need a single "-rpath" flag with a separated argument]) |
| 5329 |
_LT_TAGDECL([], [hardcode_direct], [0], |
| 5330 |
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
| 5331 |
DIR into the resulting binary]) |
| 5332 |
_LT_TAGDECL([], [hardcode_minus_L], [0], |
| 5333 |
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 5334 |
into the resulting binary]) |
| 5335 |
_LT_TAGDECL([], [hardcode_shlibpath_var], [0], |
| 5336 |
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 5337 |
into the resulting binary]) |
| 5338 |
_LT_TAGDECL([], [hardcode_automatic], [0], |
| 5339 |
[Set to "yes" if building a shared library automatically hardcodes DIR |
| 5340 |
into the library and all subsequent libraries and executables linked |
| 5341 |
against it]) |
| 5342 |
_LT_TAGDECL([], [inherit_rpath], [0], |
| 5343 |
[Set to yes if linker adds runtime paths of dependent libraries |
| 5344 |
to runtime path list]) |
| 5345 |
_LT_TAGDECL([], [link_all_deplibs], [0], |
| 5346 |
[Whether libtool must link a program against all its dependency libraries]) |
| 5347 |
_LT_TAGDECL([], [fix_srcfile_path], [1], |
| 5348 |
[Fix the shell variable $srcfile for the compiler]) |
| 5349 |
_LT_TAGDECL([], [always_export_symbols], [0], |
| 5350 |
[Set to "yes" if exported symbols are required]) |
| 5351 |
_LT_TAGDECL([], [export_symbols_cmds], [2], |
| 5352 |
[The commands to list exported symbols]) |
| 5353 |
_LT_TAGDECL([], [exclude_expsyms], [1], |
| 5354 |
[Symbols that should not be listed in the preloaded symbols]) |
| 5355 |
_LT_TAGDECL([], [include_expsyms], [1], |
| 5356 |
[Symbols that must always be exported]) |
| 5357 |
dnl FIXME: Not yet implemented |
| 5358 |
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], |
| 5359 |
dnl [Compiler flag to generate thread safe objects]) |
| 5360 |
])# AC_LIBTOOL_PROG_LD_SHLIBS |
| 5361 |
|
| 5362 |
|
| 5363 |
# _LT_LANG_C_CONFIG([TAG]) |
| 5364 |
# ------------------------ |
| 5365 |
# Ensure that the configuration variables for a C compiler are suitably |
| 5366 |
# defined. These variables are subsequently used by _LT_CONFIG to write |
| 5367 |
# the compiler configuration to `libtool'. |
| 5368 |
m4_define([_LT_LANG_C_CONFIG], |
| 5369 |
[AC_REQUIRE([LT_AC_PROG_EGREP]) |
| 5370 |
lt_save_CC="$CC" |
| 5371 |
AC_LANG_PUSH(C) |
| 5372 |
|
| 5373 |
# Source file extension for C test sources. |
| 5374 |
ac_ext=c |
| 5375 |
|
| 5376 |
# Object file extension for compiled C test sources. |
| 5377 |
objext=o |
| 5378 |
_LT_AC_TAGVAR(objext, $1)=$objext |
| 5379 |
|
| 5380 |
# Code to be used in simple compile tests |
| 5381 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
| 5382 |
|
| 5383 |
# Code to be used in simple link tests |
| 5384 |
lt_simple_link_test_code='int main(){return(0);}\n' |
| 5385 |
|
| 5386 |
_LT_AC_SYS_COMPILER |
| 5387 |
# Save the default compiler, since it gets overwritten when the other |
| 5388 |
# tags are being tested, and _LT_AC_TAGVAR(compiler, []) is a NOP. |
| 5389 |
compiler_DEFAULT=$CC |
| 5390 |
|
| 5391 |
# |
| 5392 |
# Check for any special shared library compilation flags. |
| 5393 |
# |
| 5394 |
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= |
| 5395 |
if test "$GCC" = no; then |
| 5396 |
case $host_os in |
| 5397 |
sco3.2v5*) |
| 5398 |
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' |
| 5399 |
;; |
| 5400 |
esac |
| 5401 |
fi |
| 5402 |
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
| 5403 |
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
| 5404 |
if echo "$old_CC $old_CFLAGS " | $GREP "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : |
| 5405 |
else |
| 5406 |
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
| 5407 |
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
| 5408 |
fi |
| 5409 |
fi |
| 5410 |
|
| 5411 |
|
| 5412 |
if test -n "$compiler"; then |
| 5413 |
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
| 5414 |
AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 5415 |
AC_LIBTOOL_PROG_CC_C_O($1) |
| 5416 |
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 5417 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 5418 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 5419 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 5420 |
AC_LIBTOOL_SYS_LIB_STRIP |
| 5421 |
AC_LIBTOOL_DLOPEN_SELF($1) |
| 5422 |
|
| 5423 |
# Report which library types will actually be built |
| 5424 |
AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 5425 |
AC_MSG_RESULT([$can_build_shared]) |
| 5426 |
|
| 5427 |
AC_MSG_CHECKING([whether to build shared libraries]) |
| 5428 |
test "$can_build_shared" = "no" && enable_shared=no |
| 5429 |
|
| 5430 |
# On AIX, shared libraries and static libraries use the same namespace, and |
| 5431 |
# are all built from PIC. |
| 5432 |
case "$host_os" in |
| 5433 |
aix3*) |
| 5434 |
test "$enable_shared" = yes && enable_static=no |
| 5435 |
if test -n "$RANLIB"; then |
| 5436 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 5437 |
postinstall_cmds='$RANLIB $lib' |
| 5438 |
fi |
| 5439 |
;; |
| 5440 |
|
| 5441 |
aix4* | aix5*) |
| 5442 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 5443 |
test "$enable_shared" = yes && enable_static=no |
| 5444 |
fi |
| 5445 |
;; |
| 5446 |
esac |
| 5447 |
AC_MSG_RESULT([$enable_shared]) |
| 5448 |
|
| 5449 |
AC_MSG_CHECKING([whether to build static libraries]) |
| 5450 |
# Make sure either enable_shared or enable_static is yes. |
| 5451 |
test "$enable_shared" = yes || enable_static=yes |
| 5452 |
AC_MSG_RESULT([$enable_static]) |
| 5453 |
|
| 5454 |
_LT_CONFIG($1) |
| 5455 |
fi |
| 5456 |
AC_LANG_POP |
| 5457 |
CC="$lt_save_CC" |
| 5458 |
])# _LT_LANG_C_CONFIG |
| 5459 |
|
| 5460 |
|
| 5461 |
# _LT_LANG_CXX_CONFIG([TAG]) |
| 5462 |
# -------------------------- |
| 5463 |
# Ensure that the configuration variables for a C++ compiler are suitably |
| 5464 |
# defined. These variables are subsequently used by _LT_CONFIG to write |
| 5465 |
# the compiler configuration to `libtool'. |
| 5466 |
m4_define([_LT_LANG_CXX_CONFIG], |
| 5467 |
[AC_LANG_PUSH(C++) |
| 5468 |
AC_REQUIRE([LT_AC_PROG_EGREP]) |
| 5469 |
AC_REQUIRE([AC_PROG_CXX]) |
| 5470 |
AC_REQUIRE([AC_PROG_CXXCPP]) |
| 5471 |
|
| 5472 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5473 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 5474 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 5475 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
| 5476 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 5477 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5478 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 5479 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 5480 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 5481 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 5482 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 5483 |
_LT_AC_TAGVAR(inherit_rpath, $1)=no |
| 5484 |
_LT_AC_TAGVAR(module_cmds, $1)= |
| 5485 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 5486 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 5487 |
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 5488 |
_LT_AC_TAGVAR(no_undefined_flag, $1)= |
| 5489 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 5490 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 5491 |
|
| 5492 |
# Source file extension for C++ test sources. |
| 5493 |
ac_ext=cc |
| 5494 |
|
| 5495 |
# Object file extension for compiled C++ test sources. |
| 5496 |
objext=o |
| 5497 |
_LT_AC_TAGVAR(objext, $1)=$objext |
| 5498 |
|
| 5499 |
# Code to be used in simple compile tests |
| 5500 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
| 5501 |
|
| 5502 |
# Code to be used in simple link tests |
| 5503 |
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
| 5504 |
|
| 5505 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 5506 |
_LT_AC_SYS_COMPILER |
| 5507 |
|
| 5508 |
# Allow CC to be a program name with arguments. |
| 5509 |
lt_save_CC=$CC |
| 5510 |
lt_save_LD=$LD |
| 5511 |
lt_save_GCC=$GCC |
| 5512 |
GCC=$GXX |
| 5513 |
lt_save_with_gnu_ld=$with_gnu_ld |
| 5514 |
lt_save_path_LD=$lt_cv_path_LD |
| 5515 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 5516 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 5517 |
else |
| 5518 |
unset lt_cv_prog_gnu_ld |
| 5519 |
fi |
| 5520 |
if test -n "${lt_cv_path_LDCXX+set}"; then |
| 5521 |
lt_cv_path_LD=$lt_cv_path_LDCXX |
| 5522 |
else |
| 5523 |
unset lt_cv_path_LD |
| 5524 |
fi |
| 5525 |
test -z "${LDCXX+set}" || LD=$LDCXX |
| 5526 |
CC=${CXX-"c++"} |
| 5527 |
compiler=$CC |
| 5528 |
_LT_AC_TAGVAR(compiler, $1)=$CC |
| 5529 |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 5530 |
|
| 5531 |
if test -n "$compiler"; then |
| 5532 |
# We don't want -fno-exception when compiling C++ code, so set the |
| 5533 |
# no_builtin_flag separately |
| 5534 |
if test "$GXX" = yes; then |
| 5535 |
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
| 5536 |
else |
| 5537 |
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 5538 |
fi |
| 5539 |
|
| 5540 |
if test "$GXX" = yes; then |
| 5541 |
# Set up default GNU C++ configuration |
| 5542 |
|
| 5543 |
AC_PROG_LD |
| 5544 |
|
| 5545 |
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 5546 |
# archiving commands below assume that GNU ld is being used. |
| 5547 |
if test "$with_gnu_ld" = yes; then |
| 5548 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5549 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5550 |
|
| 5551 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 5552 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 5553 |
|
| 5554 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 5555 |
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 5556 |
# investigate it a little bit more. (MM) |
| 5557 |
wlarc='${wl}' |
| 5558 |
|
| 5559 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 5560 |
if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 5561 |
$GREP 'no-whole-archive' > /dev/null; then |
| 5562 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 5563 |
else |
| 5564 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 5565 |
fi |
| 5566 |
else |
| 5567 |
with_gnu_ld=no |
| 5568 |
wlarc= |
| 5569 |
|
| 5570 |
# A generic and very simple default shared library creation |
| 5571 |
# command for GNU C++ for the case where it uses the native |
| 5572 |
# linker, instead of GNU ld. If possible, this setting should |
| 5573 |
# overridden to take advantage of the native linker features on |
| 5574 |
# the platform it is being used on. |
| 5575 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 5576 |
fi |
| 5577 |
|
| 5578 |
# Commands to make compiler produce verbose output that lists |
| 5579 |
# what "hidden" libraries, object files and flags are used when |
| 5580 |
# linking a shared library. |
| 5581 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 5582 |
|
| 5583 |
else |
| 5584 |
GXX=no |
| 5585 |
with_gnu_ld=no |
| 5586 |
wlarc= |
| 5587 |
fi |
| 5588 |
|
| 5589 |
# PORTME: fill in a description of your system's C++ link characteristics |
| 5590 |
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 5591 |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 5592 |
case $host_os in |
| 5593 |
aix3*) |
| 5594 |
# FIXME: insert proper C++ library support |
| 5595 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5596 |
;; |
| 5597 |
aix4* | aix5*) |
| 5598 |
if test "$host_cpu" = ia64; then |
| 5599 |
# On IA64, the linker does run time linking by default, so we don't |
| 5600 |
# have to do anything special. |
| 5601 |
aix_use_runtimelinking=no |
| 5602 |
exp_sym_flag='-Bexport' |
| 5603 |
no_entry_flag="" |
| 5604 |
else |
| 5605 |
aix_use_runtimelinking=no |
| 5606 |
|
| 5607 |
# Test if we are trying to use run time linking or normal |
| 5608 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 5609 |
# need to do runtime linking. |
| 5610 |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 5611 |
for ld_flag in $LDFLAGS; do |
| 5612 |
case $ld_flag in |
| 5613 |
*-brtl*) |
| 5614 |
aix_use_runtimelinking=yes |
| 5615 |
break |
| 5616 |
;; |
| 5617 |
esac |
| 5618 |
done |
| 5619 |
esac |
| 5620 |
|
| 5621 |
exp_sym_flag='-bexport' |
| 5622 |
no_entry_flag='-bnoentry' |
| 5623 |
fi |
| 5624 |
|
| 5625 |
# When large executables or shared objects are built, AIX ld can |
| 5626 |
# have problems creating the table of contents. If linking a library |
| 5627 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 5628 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 5629 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 5630 |
|
| 5631 |
_LT_AC_TAGVAR(archive_cmds, $1)='' |
| 5632 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5633 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 5634 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 5635 |
|
| 5636 |
if test "$GXX" = yes; then |
| 5637 |
case $host_os in aix4.[012]|aix4.[012].*) |
| 5638 |
# We only want to do this on AIX 4.2 and lower, the check |
| 5639 |
# below for broken collect2 doesn't work under 4.3+ |
| 5640 |
collect2name=`${CC} -print-prog-name=collect2` |
| 5641 |
if test -f "$collect2name" && |
| 5642 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 5643 |
then |
| 5644 |
# We have reworked collect2 |
| 5645 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5646 |
else |
| 5647 |
# We have old collect2 |
| 5648 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| 5649 |
# It fails to find uninstalled libraries when the uninstalled |
| 5650 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 5651 |
# to unsupported forces relinking |
| 5652 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 5653 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5654 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 5655 |
fi |
| 5656 |
esac |
| 5657 |
shared_flag='-shared' |
| 5658 |
else |
| 5659 |
# not using gcc |
| 5660 |
if test "$host_cpu" = ia64; then |
| 5661 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 5662 |
# chokes on -Wl,-G. The following line is correct: |
| 5663 |
shared_flag='-G' |
| 5664 |
else |
| 5665 |
if test "$aix_use_runtimelinking" = yes; then |
| 5666 |
shared_flag='${wl}-G' |
| 5667 |
else |
| 5668 |
shared_flag='${wl}-bM:SRE' |
| 5669 |
fi |
| 5670 |
fi |
| 5671 |
fi |
| 5672 |
|
| 5673 |
# It seems that -bexpall does not export symbols beginning with |
| 5674 |
# underscore (_), so it is better to generate a list of symbols to export. |
| 5675 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 5676 |
if test "$aix_use_runtimelinking" = yes; then |
| 5677 |
# Warning - without using the other runtime loading flags (-brtl), |
| 5678 |
# -berok will link without error, but may produce a broken library. |
| 5679 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 5680 |
# Determine the default libpath from the value encoded in an empty |
| 5681 |
# executable. |
| 5682 |
_LT_AC_SYS_LIBPATH_AIX |
| 5683 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 5684 |
|
| 5685 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 5686 |
else |
| 5687 |
if test "$host_cpu" = ia64; then |
| 5688 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 5689 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 5690 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 5691 |
else |
| 5692 |
# Determine the default libpath from the value encoded in an |
| 5693 |
# empty executable. |
| 5694 |
_LT_AC_SYS_LIBPATH_AIX |
| 5695 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 5696 |
# Warning - without using the other run time loading flags, |
| 5697 |
# -berok will link without error, but may produce a broken library. |
| 5698 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 5699 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 5700 |
# -bexpall does not export symbols beginning with underscore (_) |
| 5701 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 5702 |
# Exported symbols can be pulled into shared objects from archives |
| 5703 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
| 5704 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 5705 |
# This is similar to how AIX traditionally builds it's shared libraries. |
| 5706 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 5707 |
fi |
| 5708 |
fi |
| 5709 |
;; |
| 5710 |
chorus*) |
| 5711 |
case $cc_basename in |
| 5712 |
*) |
| 5713 |
# FIXME: insert proper C++ library support |
| 5714 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5715 |
;; |
| 5716 |
esac |
| 5717 |
;; |
| 5718 |
|
| 5719 |
cygwin* | mingw* | pw32*) |
| 5720 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 5721 |
# as there is no search path for DLLs. |
| 5722 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5723 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5724 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 5725 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5726 |
|
| 5727 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 5728 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 5729 |
# If the export-symbols file already is a .def file (1st line |
| 5730 |
# is EXPORTS), use it as is; otherwise, prepend... |
| 5731 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 5732 |
cp $export_symbols $output_objdir/$soname.def; |
| 5733 |
else |
| 5734 |
echo EXPORTS > $output_objdir/$soname.def; |
| 5735 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 5736 |
fi~ |
| 5737 |
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 5738 |
else |
| 5739 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5740 |
fi |
| 5741 |
;; |
| 5742 |
darwin* | rhapsody*) |
| 5743 |
case "$host_os" in |
| 5744 |
rhapsody* | darwin1.[[012]]) |
| 5745 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
| 5746 |
;; |
| 5747 |
*) # Darwin 1.3 on |
| 5748 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 5749 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${Wl}suppress' |
| 5750 |
else |
| 5751 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
| 5752 |
10.[[012]]) |
| 5753 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 5754 |
;; |
| 5755 |
10.*) |
| 5756 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
| 5757 |
;; |
| 5758 |
esac |
| 5759 |
fi |
| 5760 |
;; |
| 5761 |
esac |
| 5762 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5763 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5764 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 5765 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 5766 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| 5767 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 5768 |
|
| 5769 |
if test "$GXX" = yes ; then |
| 5770 |
lt_int_apple_cc_single_mod=no |
| 5771 |
output_verbose_link_cmd='echo' |
| 5772 |
if $CC -dumpspecs 2>&1 | $GREP 'single_module' >/dev/null ; then |
| 5773 |
lt_int_apple_cc_single_mod=yes |
| 5774 |
fi |
| 5775 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 5776 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 5777 |
else |
| 5778 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 5779 |
fi |
| 5780 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 5781 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 5782 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 5783 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 5784 |
else |
| 5785 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 5786 |
fi |
| 5787 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 5788 |
else |
| 5789 |
case "$cc_basename" in |
| 5790 |
xlc*) |
| 5791 |
output_verbose_link_cmd='echo' |
| 5792 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 5793 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 5794 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 5795 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 5796 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 5797 |
;; |
| 5798 |
*) |
| 5799 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5800 |
;; |
| 5801 |
esac |
| 5802 |
fi |
| 5803 |
;; |
| 5804 |
|
| 5805 |
dgux*) |
| 5806 |
case $cc_basename in |
| 5807 |
ec++) |
| 5808 |
# FIXME: insert proper C++ library support |
| 5809 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5810 |
;; |
| 5811 |
ghcx) |
| 5812 |
# Green Hills C++ Compiler |
| 5813 |
# FIXME: insert proper C++ library support |
| 5814 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5815 |
;; |
| 5816 |
*) |
| 5817 |
# FIXME: insert proper C++ library support |
| 5818 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5819 |
;; |
| 5820 |
esac |
| 5821 |
;; |
| 5822 |
freebsd[12]*) |
| 5823 |
# C++ shared libraries reported to be fairly broken before switch to ELF |
| 5824 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5825 |
;; |
| 5826 |
freebsd-elf*) |
| 5827 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5828 |
;; |
| 5829 |
freebsd* | kfreebsd*-gnu) |
| 5830 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 5831 |
# conventions |
| 5832 |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 5833 |
;; |
| 5834 |
gnu*) |
| 5835 |
;; |
| 5836 |
hpux9*) |
| 5837 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 5838 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5839 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5840 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5841 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 5842 |
# but as the default |
| 5843 |
# location of the library. |
| 5844 |
|
| 5845 |
case $cc_basename in |
| 5846 |
CC) |
| 5847 |
# FIXME: insert proper C++ library support |
| 5848 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5849 |
;; |
| 5850 |
aCC) |
| 5851 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 5852 |
# Commands to make compiler produce verbose output that lists |
| 5853 |
# what "hidden" libraries, object files and flags are used when |
| 5854 |
# linking a shared library. |
| 5855 |
# |
| 5856 |
# There doesn't appear to be a way to prevent this compiler from |
| 5857 |
# explicitly linking system object files so we need to strip them |
| 5858 |
# from the output so that they don't get included in the library |
| 5859 |
# dependencies. |
| 5860 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 5861 |
;; |
| 5862 |
*) |
| 5863 |
if test "$GXX" = yes; then |
| 5864 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 5865 |
else |
| 5866 |
# FIXME: insert proper C++ library support |
| 5867 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5868 |
fi |
| 5869 |
;; |
| 5870 |
esac |
| 5871 |
;; |
| 5872 |
hpux10*|hpux11*) |
| 5873 |
if test $with_gnu_ld = no; then |
| 5874 |
case "$host_cpu" in |
| 5875 |
hppa*64*) |
| 5876 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 5877 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 5878 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5879 |
;; |
| 5880 |
ia64*) |
| 5881 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5882 |
;; |
| 5883 |
*) |
| 5884 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 5885 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5886 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5887 |
;; |
| 5888 |
esac |
| 5889 |
fi |
| 5890 |
case "$host_cpu" in |
| 5891 |
hppa*64*) |
| 5892 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5893 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5894 |
;; |
| 5895 |
ia64*) |
| 5896 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5897 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5898 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 5899 |
# but as the default |
| 5900 |
# location of the library. |
| 5901 |
;; |
| 5902 |
*) |
| 5903 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5904 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 5905 |
# but as the default |
| 5906 |
# location of the library. |
| 5907 |
;; |
| 5908 |
esac |
| 5909 |
|
| 5910 |
case $cc_basename in |
| 5911 |
CC) |
| 5912 |
# FIXME: insert proper C++ library support |
| 5913 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5914 |
;; |
| 5915 |
aCC) |
| 5916 |
case "$host_cpu" in |
| 5917 |
hppa*64*|ia64*) |
| 5918 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 5919 |
;; |
| 5920 |
*) |
| 5921 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 5922 |
;; |
| 5923 |
esac |
| 5924 |
# Commands to make compiler produce verbose output that lists |
| 5925 |
# what "hidden" libraries, object files and flags are used when |
| 5926 |
# linking a shared library. |
| 5927 |
# |
| 5928 |
# There doesn't appear to be a way to prevent this compiler from |
| 5929 |
# explicitly linking system object files so we need to strip them |
| 5930 |
# from the output so that they don't get included in the library |
| 5931 |
# dependencies. |
| 5932 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 5933 |
;; |
| 5934 |
*) |
| 5935 |
if test "$GXX" = yes; then |
| 5936 |
if test $with_gnu_ld = no; then |
| 5937 |
case "$host_cpu" in |
| 5938 |
ia64*|hppa*64*) |
| 5939 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 5940 |
;; |
| 5941 |
*) |
| 5942 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 5943 |
;; |
| 5944 |
esac |
| 5945 |
fi |
| 5946 |
else |
| 5947 |
# FIXME: insert proper C++ library support |
| 5948 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5949 |
fi |
| 5950 |
;; |
| 5951 |
esac |
| 5952 |
;; |
| 5953 |
irix5* | irix6*) |
| 5954 |
case $cc_basename in |
| 5955 |
CC) |
| 5956 |
# SGI C++ |
| 5957 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 5958 |
|
| 5959 |
# Archives containing C++ object files must be created using |
| 5960 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 5961 |
# necessary to make sure instantiated templates are included |
| 5962 |
# in the archive. |
| 5963 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 5964 |
;; |
| 5965 |
*) |
| 5966 |
if test "$GXX" = yes; then |
| 5967 |
if test "$with_gnu_ld" = no; then |
| 5968 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 5969 |
else |
| 5970 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
| 5971 |
fi |
| 5972 |
fi |
| 5973 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 5974 |
;; |
| 5975 |
esac |
| 5976 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 5977 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5978 |
_LT_AC_TAGVAR(inherit_rpath, $1)=yes |
| 5979 |
;; |
| 5980 |
linux*) |
| 5981 |
case $cc_basename in |
| 5982 |
KCC) |
| 5983 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| 5984 |
|
| 5985 |
# KCC will only create a shared library if the output file |
| 5986 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 5987 |
# to its proper name (with version) after linking. |
| 5988 |
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 5989 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 5990 |
# Commands to make compiler produce verbose output that lists |
| 5991 |
# what "hidden" libraries, object files and flags are used when |
| 5992 |
# linking a shared library. |
| 5993 |
# |
| 5994 |
# There doesn't appear to be a way to prevent this compiler from |
| 5995 |
# explicitly linking system object files so we need to strip them |
| 5996 |
# from the output so that they don't get included in the library |
| 5997 |
# dependencies. |
| 5998 |
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 5999 |
|
| 6000 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' |
| 6001 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 6002 |
|
| 6003 |
# Archives containing C++ object files must be created using |
| 6004 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 6005 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 6006 |
;; |
| 6007 |
icpc) |
| 6008 |
# Intel C++ |
| 6009 |
with_gnu_ld=yes |
| 6010 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6011 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6012 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6013 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 6014 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 6015 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 6016 |
;; |
| 6017 |
cxx) |
| 6018 |
# Compaq C++ |
| 6019 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6020 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 6021 |
|
| 6022 |
runpath_var=LD_RUN_PATH |
| 6023 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 6024 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6025 |
|
| 6026 |
# Commands to make compiler produce verbose output that lists |
| 6027 |
# what "hidden" libraries, object files and flags are used when |
| 6028 |
# linking a shared library. |
| 6029 |
# |
| 6030 |
# There doesn't appear to be a way to prevent this compiler from |
| 6031 |
# explicitly linking system object files so we need to strip them |
| 6032 |
# from the output so that they don't get included in the library |
| 6033 |
# dependencies. |
| 6034 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 6035 |
;; |
| 6036 |
esac |
| 6037 |
;; |
| 6038 |
lynxos*) |
| 6039 |
# FIXME: insert proper C++ library support |
| 6040 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6041 |
;; |
| 6042 |
m88k*) |
| 6043 |
# FIXME: insert proper C++ library support |
| 6044 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6045 |
;; |
| 6046 |
mvs*) |
| 6047 |
case $cc_basename in |
| 6048 |
cxx) |
| 6049 |
# FIXME: insert proper C++ library support |
| 6050 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6051 |
;; |
| 6052 |
*) |
| 6053 |
# FIXME: insert proper C++ library support |
| 6054 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6055 |
;; |
| 6056 |
esac |
| 6057 |
;; |
| 6058 |
netbsd*) |
| 6059 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 6060 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 6061 |
wlarc= |
| 6062 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 6063 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 6064 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 6065 |
fi |
| 6066 |
# Workaround some broken pre-1.5 toolchains |
| 6067 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 6068 |
;; |
| 6069 |
osf3*) |
| 6070 |
case $cc_basename in |
| 6071 |
KCC) |
| 6072 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| 6073 |
|
| 6074 |
# KCC will only create a shared library if the output file |
| 6075 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 6076 |
# to its proper name (with version) after linking. |
| 6077 |
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 6078 |
|
| 6079 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 6080 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6081 |
|
| 6082 |
# Archives containing C++ object files must be created using |
| 6083 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 6084 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 6085 |
|
| 6086 |
;; |
| 6087 |
RCC) |
| 6088 |
# Rational C++ 2.4.1 |
| 6089 |
# FIXME: insert proper C++ library support |
| 6090 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6091 |
;; |
| 6092 |
cxx) |
| 6093 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 6094 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 6095 |
|
| 6096 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 6097 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6098 |
|
| 6099 |
# Commands to make compiler produce verbose output that lists |
| 6100 |
# what "hidden" libraries, object files and flags are used when |
| 6101 |
# linking a shared library. |
| 6102 |
# |
| 6103 |
# There doesn't appear to be a way to prevent this compiler from |
| 6104 |
# explicitly linking system object files so we need to strip them |
| 6105 |
# from the output so that they don't get included in the library |
| 6106 |
# dependencies. |
| 6107 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 6108 |
;; |
| 6109 |
*) |
| 6110 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 6111 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 6112 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 6113 |
|
| 6114 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 6115 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6116 |
|
| 6117 |
# Commands to make compiler produce verbose output that lists |
| 6118 |
# what "hidden" libraries, object files and flags are used when |
| 6119 |
# linking a shared library. |
| 6120 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 6121 |
|
| 6122 |
else |
| 6123 |
# FIXME: insert proper C++ library support |
| 6124 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6125 |
fi |
| 6126 |
;; |
| 6127 |
esac |
| 6128 |
;; |
| 6129 |
osf4* | osf5*) |
| 6130 |
case $cc_basename in |
| 6131 |
KCC) |
| 6132 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| 6133 |
|
| 6134 |
# KCC will only create a shared library if the output file |
| 6135 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 6136 |
# to its proper name (with version) after linking. |
| 6137 |
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 6138 |
|
| 6139 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 6140 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6141 |
|
| 6142 |
# Archives containing C++ object files must be created using |
| 6143 |
# the KAI C++ compiler. |
| 6144 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
| 6145 |
;; |
| 6146 |
RCC) |
| 6147 |
# Rational C++ 2.4.1 |
| 6148 |
# FIXME: insert proper C++ library support |
| 6149 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6150 |
;; |
| 6151 |
cxx) |
| 6152 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 6153 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 6154 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 6155 |
echo "-hidden">> $lib.exp~ |
| 6156 |
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
| 6157 |
$rm $lib.exp' |
| 6158 |
|
| 6159 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 6160 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6161 |
|
| 6162 |
# Commands to make compiler produce verbose output that lists |
| 6163 |
# what "hidden" libraries, object files and flags are used when |
| 6164 |
# linking a shared library. |
| 6165 |
# |
| 6166 |
# There doesn't appear to be a way to prevent this compiler from |
| 6167 |
# explicitly linking system object files so we need to strip them |
| 6168 |
# from the output so that they don't get included in the library |
| 6169 |
# dependencies. |
| 6170 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 6171 |
;; |
| 6172 |
*) |
| 6173 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 6174 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 6175 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 6176 |
|
| 6177 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 6178 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6179 |
|
| 6180 |
# Commands to make compiler produce verbose output that lists |
| 6181 |
# what "hidden" libraries, object files and flags are used when |
| 6182 |
# linking a shared library. |
| 6183 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 6184 |
|
| 6185 |
else |
| 6186 |
# FIXME: insert proper C++ library support |
| 6187 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6188 |
fi |
| 6189 |
;; |
| 6190 |
esac |
| 6191 |
;; |
| 6192 |
psos*) |
| 6193 |
# FIXME: insert proper C++ library support |
| 6194 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6195 |
;; |
| 6196 |
sco*) |
| 6197 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6198 |
case $cc_basename in |
| 6199 |
CC) |
| 6200 |
# FIXME: insert proper C++ library support |
| 6201 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6202 |
;; |
| 6203 |
*) |
| 6204 |
# FIXME: insert proper C++ library support |
| 6205 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6206 |
;; |
| 6207 |
esac |
| 6208 |
;; |
| 6209 |
sunos4*) |
| 6210 |
case $cc_basename in |
| 6211 |
CC) |
| 6212 |
# Sun C++ 4.x |
| 6213 |
# FIXME: insert proper C++ library support |
| 6214 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6215 |
;; |
| 6216 |
lcc) |
| 6217 |
# Lucid |
| 6218 |
# FIXME: insert proper C++ library support |
| 6219 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6220 |
;; |
| 6221 |
*) |
| 6222 |
# FIXME: insert proper C++ library support |
| 6223 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6224 |
;; |
| 6225 |
esac |
| 6226 |
;; |
| 6227 |
solaris*) |
| 6228 |
case $cc_basename in |
| 6229 |
CC) |
| 6230 |
# Sun C++ 4.2, 5.x and Centerline C++ |
| 6231 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 6232 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 6233 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6234 |
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 6235 |
|
| 6236 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 6237 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 6238 |
case $host_os in |
| 6239 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 6240 |
*) |
| 6241 |
# The C++ compiler is used as linker so we must use $wl |
| 6242 |
# flag to pass the commands to the underlying system |
| 6243 |
# linker. We must also pass each convience library through |
| 6244 |
# to the system linker between allextract/defaultextract. |
| 6245 |
# The C++ compiler will combine linker options so we |
| 6246 |
# cannot just pass the convience library names through |
| 6247 |
# without $wl. |
| 6248 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 6249 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
| 6250 |
;; |
| 6251 |
esac |
| 6252 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 6253 |
|
| 6254 |
# Commands to make compiler produce verbose output that lists |
| 6255 |
# what "hidden" libraries, object files and flags are used when |
| 6256 |
# linking a shared library. |
| 6257 |
# |
| 6258 |
# There doesn't appear to be a way to prevent this compiler from |
| 6259 |
# explicitly linking system object files so we need to strip them |
| 6260 |
# from the output so that they don't get included in the library |
| 6261 |
# dependencies. |
| 6262 |
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 6263 |
|
| 6264 |
# Archives containing C++ object files must be created using |
| 6265 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 6266 |
# necessary to make sure instantiated templates are included |
| 6267 |
# in the archive. |
| 6268 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 6269 |
;; |
| 6270 |
gcx) |
| 6271 |
# Green Hills C++ Compiler |
| 6272 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 6273 |
|
| 6274 |
# The C++ compiler must be used to create the archive. |
| 6275 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 6276 |
;; |
| 6277 |
*) |
| 6278 |
# GNU C++ compiler with Solaris linker |
| 6279 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 6280 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
| 6281 |
if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 6282 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 6283 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6284 |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 6285 |
|
| 6286 |
# Commands to make compiler produce verbose output that lists |
| 6287 |
# what "hidden" libraries, object files and flags are used when |
| 6288 |
# linking a shared library. |
| 6289 |
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP \"\-L\"" |
| 6290 |
else |
| 6291 |
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 6292 |
# platform. |
| 6293 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 6294 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6295 |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 6296 |
|
| 6297 |
# Commands to make compiler produce verbose output that lists |
| 6298 |
# what "hidden" libraries, object files and flags are used when |
| 6299 |
# linking a shared library. |
| 6300 |
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP \"\-L\"" |
| 6301 |
fi |
| 6302 |
|
| 6303 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
| 6304 |
fi |
| 6305 |
;; |
| 6306 |
esac |
| 6307 |
;; |
| 6308 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
| 6309 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6310 |
;; |
| 6311 |
tandem*) |
| 6312 |
case $cc_basename in |
| 6313 |
NCC) |
| 6314 |
# NonStop-UX NCC 3.20 |
| 6315 |
# FIXME: insert proper C++ library support |
| 6316 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6317 |
;; |
| 6318 |
*) |
| 6319 |
# FIXME: insert proper C++ library support |
| 6320 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6321 |
;; |
| 6322 |
esac |
| 6323 |
;; |
| 6324 |
vxworks*) |
| 6325 |
# FIXME: insert proper C++ library support |
| 6326 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6327 |
;; |
| 6328 |
*) |
| 6329 |
# FIXME: insert proper C++ library support |
| 6330 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6331 |
;; |
| 6332 |
esac |
| 6333 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
| 6334 |
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 6335 |
|
| 6336 |
_LT_AC_TAGVAR(GCC, $1)="$GXX" |
| 6337 |
_LT_AC_TAGVAR(LD, $1)="$LD" |
| 6338 |
|
| 6339 |
## CAVEAT EMPTOR: |
| 6340 |
## There is no encapsulation within the following macros, do not change |
| 6341 |
## the running order or otherwise move them around unless you know exactly |
| 6342 |
## what you are doing... |
| 6343 |
AC_LIBTOOL_POSTDEP_PREDEP($1) |
| 6344 |
AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 6345 |
AC_LIBTOOL_PROG_CC_C_O($1) |
| 6346 |
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 6347 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 6348 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 6349 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 6350 |
AC_LIBTOOL_SYS_LIB_STRIP |
| 6351 |
AC_LIBTOOL_DLOPEN_SELF($1) |
| 6352 |
|
| 6353 |
_LT_CONFIG($1) |
| 6354 |
fi |
| 6355 |
|
| 6356 |
AC_LANG_POP |
| 6357 |
CC=$lt_save_CC |
| 6358 |
LDCXX=$LD |
| 6359 |
LD=$lt_save_LD |
| 6360 |
GCC=$lt_save_GCC |
| 6361 |
with_gnu_ldcxx=$with_gnu_ld |
| 6362 |
with_gnu_ld=$lt_save_with_gnu_ld |
| 6363 |
lt_cv_path_LDCXX=$lt_cv_path_LD |
| 6364 |
lt_cv_path_LD=$lt_save_path_LD |
| 6365 |
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 6366 |
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 6367 |
])# _LT_LANG_CXX_CONFIG |
| 6368 |
|
| 6369 |
|
| 6370 |
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
| 6371 |
# ------------------------------------ |
| 6372 |
# Figure out "hidden" library dependencies from verbose |
| 6373 |
# compiler output when linking a shared library. |
| 6374 |
# Parse the compiler output and extract the necessary |
| 6375 |
# objects, libraries and library flags. |
| 6376 |
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ |
| 6377 |
# Dependencies to place before and after the object being linked: |
| 6378 |
_LT_AC_TAGVAR(predep_objects, $1)= |
| 6379 |
_LT_AC_TAGVAR(postdep_objects, $1)= |
| 6380 |
_LT_AC_TAGVAR(predeps, $1)= |
| 6381 |
_LT_AC_TAGVAR(postdeps, $1)= |
| 6382 |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
| 6383 |
|
| 6384 |
dnl we can't use the lt_simple_compile_test_code here, |
| 6385 |
dnl because it contains code intended for an executable, |
| 6386 |
dnl not a library. It's possible we should let each |
| 6387 |
dnl tag define a new lt_????_link_test_code variable, |
| 6388 |
dnl but it's only used here... |
| 6389 |
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF |
| 6390 |
int a; |
| 6391 |
void foo (void) { a = 0; } |
| 6392 |
_LT_EOF |
| 6393 |
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF |
| 6394 |
class Foo |
| 6395 |
{ |
| 6396 |
public: |
| 6397 |
Foo (void) { a = 0; } |
| 6398 |
private: |
| 6399 |
int a; |
| 6400 |
}; |
| 6401 |
_LT_EOF |
| 6402 |
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF |
| 6403 |
subroutine foo |
| 6404 |
implicit none |
| 6405 |
integer*4 a |
| 6406 |
a=0 |
| 6407 |
return |
| 6408 |
end |
| 6409 |
_LT_EOF |
| 6410 |
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF |
| 6411 |
public class foo { |
| 6412 |
private int a; |
| 6413 |
public void bar (void) { |
| 6414 |
a = 0; |
| 6415 |
} |
| 6416 |
}; |
| 6417 |
_LT_EOF |
| 6418 |
]) |
| 6419 |
dnl Parse the compiler output and extract the necessary |
| 6420 |
dnl objects, libraries and library flags. |
| 6421 |
if AC_TRY_EVAL(ac_compile); then |
| 6422 |
# Parse the compiler output and extract the necessary |
| 6423 |
# objects, libraries and library flags. |
| 6424 |
|
| 6425 |
# Sentinel used to keep track of whether or not we are before |
| 6426 |
# the conftest object file. |
| 6427 |
pre_test_object_deps_done=no |
| 6428 |
|
| 6429 |
# The `*' in the case matches for architectures that use `case' in |
| 6430 |
# $output_verbose_cmd can trigger glob expansion during the loop |
| 6431 |
# eval without this substitution. |
| 6432 |
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 6433 |
|
| 6434 |
for p in `eval $output_verbose_link_cmd`; do |
| 6435 |
case $p in |
| 6436 |
|
| 6437 |
-L* | -R* | -l*) |
| 6438 |
# Some compilers place space between "-{L,R}" and the path. |
| 6439 |
# Remove the space. |
| 6440 |
if test $p = "-L" || |
| 6441 |
test $p = "-R"; then |
| 6442 |
prev=$p |
| 6443 |
continue |
| 6444 |
else |
| 6445 |
prev= |
| 6446 |
fi |
| 6447 |
|
| 6448 |
if test "$pre_test_object_deps_done" = no; then |
| 6449 |
case $p in |
| 6450 |
-L* | -R*) |
| 6451 |
# Internal compiler library paths should come after those |
| 6452 |
# provided the user. The postdeps already come after the |
| 6453 |
# user supplied libs so there is no need to process them. |
| 6454 |
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then |
| 6455 |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
| 6456 |
else |
| 6457 |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" |
| 6458 |
fi |
| 6459 |
;; |
| 6460 |
# The "-l" case would never come before the object being |
| 6461 |
# linked, so don't bother handling this case. |
| 6462 |
esac |
| 6463 |
else |
| 6464 |
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then |
| 6465 |
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" |
| 6466 |
else |
| 6467 |
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" |
| 6468 |
fi |
| 6469 |
fi |
| 6470 |
;; |
| 6471 |
|
| 6472 |
*.$objext) |
| 6473 |
# This assumes that the test object file only shows up |
| 6474 |
# once in the compiler output. |
| 6475 |
if test "$p" = "conftest.$objext"; then |
| 6476 |
pre_test_object_deps_done=yes |
| 6477 |
continue |
| 6478 |
fi |
| 6479 |
|
| 6480 |
if test "$pre_test_object_deps_done" = no; then |
| 6481 |
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then |
| 6482 |
_LT_AC_TAGVAR(predep_objects, $1)="$p" |
| 6483 |
else |
| 6484 |
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" |
| 6485 |
fi |
| 6486 |
else |
| 6487 |
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then |
| 6488 |
_LT_AC_TAGVAR(postdep_objects, $1)="$p" |
| 6489 |
else |
| 6490 |
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" |
| 6491 |
fi |
| 6492 |
fi |
| 6493 |
;; |
| 6494 |
|
| 6495 |
*) ;; # Ignore the rest. |
| 6496 |
|
| 6497 |
esac |
| 6498 |
done |
| 6499 |
|
| 6500 |
# Clean up. |
| 6501 |
rm -f a.out a.exe |
| 6502 |
else |
| 6503 |
echo "libtool.m4: error: problem compiling $1 test program" |
| 6504 |
fi |
| 6505 |
|
| 6506 |
$rm -f confest.$objext |
| 6507 |
|
| 6508 |
case " $_LT_AC_TAGVAR(postdeps, $1) " in |
| 6509 |
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
| 6510 |
esac |
| 6511 |
_LT_TAGDECL([], [predep_objects], [1], |
| 6512 |
[Dependencies to place before and after the objects being linked to |
| 6513 |
create a shared library]) |
| 6514 |
_LT_TAGDECL([], [postdep_objects], [1]) |
| 6515 |
_LT_TAGDECL([], [predeps], [1]) |
| 6516 |
_LT_TAGDECL([], [postdeps], [1]) |
| 6517 |
_LT_TAGDECL([], [compiler_lib_search_path], [1], |
| 6518 |
[The library search path used internally by the compiler when linking |
| 6519 |
a shared library]) |
| 6520 |
])# AC_LIBTOOL_POSTDEP_PREDEP |
| 6521 |
|
| 6522 |
# _LT_LANG_F77_CONFIG([TAG]) |
| 6523 |
# -------------------------- |
| 6524 |
# Ensure that the configuration variables for a Fortran 77 compiler are |
| 6525 |
# suitably defined. These variables are subsequently used by _LT_CONFIG |
| 6526 |
# to write the compiler configuration to `libtool'. |
| 6527 |
m4_define([_LT_LANG_F77_CONFIG], |
| 6528 |
[AC_REQUIRE([AC_PROG_F77]) |
| 6529 |
AC_LANG_PUSH(Fortran 77) |
| 6530 |
|
| 6531 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6532 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 6533 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 6534 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
| 6535 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 6536 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 6537 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 6538 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 6539 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 6540 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 6541 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 6542 |
_LT_AC_TAGVAR(inherit_rpath, $1)=no |
| 6543 |
_LT_AC_TAGVAR(module_cmds, $1)= |
| 6544 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 6545 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 6546 |
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 6547 |
_LT_AC_TAGVAR(no_undefined_flag, $1)= |
| 6548 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 6549 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 6550 |
|
| 6551 |
# Source file extension for f77 test sources. |
| 6552 |
ac_ext=f |
| 6553 |
|
| 6554 |
# Object file extension for compiled f77 test sources. |
| 6555 |
objext=o |
| 6556 |
_LT_AC_TAGVAR(objext, $1)=$objext |
| 6557 |
|
| 6558 |
# Code to be used in simple compile tests |
| 6559 |
lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 6560 |
|
| 6561 |
# Code to be used in simple link tests |
| 6562 |
lt_simple_link_test_code=" program t\n end\n" |
| 6563 |
|
| 6564 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 6565 |
_LT_AC_SYS_COMPILER |
| 6566 |
|
| 6567 |
# Allow CC to be a program name with arguments. |
| 6568 |
lt_save_CC="$CC" |
| 6569 |
CC=${F77-"f77"} |
| 6570 |
compiler=$CC |
| 6571 |
_LT_AC_TAGVAR(compiler, $1)=$CC |
| 6572 |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 6573 |
|
| 6574 |
if test -n "$compiler"; then |
| 6575 |
AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 6576 |
AC_MSG_RESULT([$can_build_shared]) |
| 6577 |
|
| 6578 |
AC_MSG_CHECKING([whether to build shared libraries]) |
| 6579 |
test "$can_build_shared" = "no" && enable_shared=no |
| 6580 |
|
| 6581 |
# On AIX, shared libraries and static libraries use the same namespace, and |
| 6582 |
# are all built from PIC. |
| 6583 |
case "$host_os" in |
| 6584 |
aix3*) |
| 6585 |
test "$enable_shared" = yes && enable_static=no |
| 6586 |
if test -n "$RANLIB"; then |
| 6587 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 6588 |
postinstall_cmds='$RANLIB $lib' |
| 6589 |
fi |
| 6590 |
;; |
| 6591 |
aix4* | aix5*) |
| 6592 |
test "$enable_shared" = yes && enable_static=no |
| 6593 |
;; |
| 6594 |
esac |
| 6595 |
AC_MSG_RESULT([$enable_shared]) |
| 6596 |
|
| 6597 |
AC_MSG_CHECKING([whether to build static libraries]) |
| 6598 |
# Make sure either enable_shared or enable_static is yes. |
| 6599 |
test "$enable_shared" = yes || enable_static=yes |
| 6600 |
AC_MSG_RESULT([$enable_static]) |
| 6601 |
|
| 6602 |
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 6603 |
|
| 6604 |
_LT_AC_TAGVAR(GCC, $1)="$G77" |
| 6605 |
_LT_AC_TAGVAR(LD, $1)="$LD" |
| 6606 |
|
| 6607 |
## CAVEAT EMPTOR: |
| 6608 |
## There is no encapsulation within the following macros, do not change |
| 6609 |
## the running order or otherwise move them around unless you know exactly |
| 6610 |
## what you are doing... |
| 6611 |
AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 6612 |
AC_LIBTOOL_PROG_CC_C_O($1) |
| 6613 |
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 6614 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 6615 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 6616 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 6617 |
AC_LIBTOOL_SYS_LIB_STRIP |
| 6618 |
|
| 6619 |
_LT_CONFIG($1) |
| 6620 |
fi |
| 6621 |
|
| 6622 |
AC_LANG_POP |
| 6623 |
CC="$lt_save_CC" |
| 6624 |
])# _LT_LANG_F77_CONFIG |
| 6625 |
|
| 6626 |
|
| 6627 |
# _LT_LANG_GCJ_CONFIG([TAG]) |
| 6628 |
# -------------------------- |
| 6629 |
# Ensure that the configuration variables for the GNU Java Compiler compiler |
| 6630 |
# are suitably defined. These variables are subsequently used by _LT_CONFIG |
| 6631 |
# to write the compiler configuration to `libtool'. |
| 6632 |
m4_define([_LT_LANG_GCJ_CONFIG], |
| 6633 |
[AC_REQUIRE([LT_PROG_GCJ]) |
| 6634 |
AC_LANG_SAVE |
| 6635 |
|
| 6636 |
# Source file extension for Java test sources. |
| 6637 |
ac_ext=java |
| 6638 |
|
| 6639 |
# Object file extension for compiled Java test sources. |
| 6640 |
objext=o |
| 6641 |
_LT_AC_TAGVAR(objext, $1)=$objext |
| 6642 |
|
| 6643 |
# Code to be used in simple compile tests |
| 6644 |
lt_simple_compile_test_code="class foo {}\n" |
| 6645 |
|
| 6646 |
# Code to be used in simple link tests |
| 6647 |
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
| 6648 |
|
| 6649 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 6650 |
_LT_AC_SYS_COMPILER |
| 6651 |
|
| 6652 |
# Allow CC to be a program name with arguments. |
| 6653 |
lt_save_CC="$CC" |
| 6654 |
CC=${GCJ-"gcj"} |
| 6655 |
compiler=$CC |
| 6656 |
_LT_AC_TAGVAR(compiler, $1)=$CC |
| 6657 |
|
| 6658 |
# GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 6659 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6660 |
|
| 6661 |
if test -n "$compiler"; then |
| 6662 |
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
| 6663 |
AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 6664 |
AC_LIBTOOL_PROG_CC_C_O($1) |
| 6665 |
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 6666 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 6667 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 6668 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 6669 |
AC_LIBTOOL_SYS_LIB_STRIP |
| 6670 |
AC_LIBTOOL_DLOPEN_SELF($1) |
| 6671 |
|
| 6672 |
_LT_CONFIG($1) |
| 6673 |
fi |
| 6674 |
|
| 6675 |
AC_LANG_RESTORE |
| 6676 |
CC="$lt_save_CC" |
| 6677 |
])# _LT_LANG_GCJ_CONFIG |
| 6678 |
|
| 6679 |
|
| 6680 |
# _LT_LANG_RC_CONFIG([TAG]) |
| 6681 |
# -------------------------- |
| 6682 |
# Ensure that the configuration variables for the Windows resource compiler |
| 6683 |
# are suitably defined. These variables are subsequently used by _LT_CONFIG |
| 6684 |
# to write the compiler configuration to `libtool'. |
| 6685 |
m4_define([_LT_LANG_RC_CONFIG], |
| 6686 |
[AC_REQUIRE([LT_PROG_RC]) |
| 6687 |
AC_LANG_SAVE |
| 6688 |
|
| 6689 |
# Source file extension for RC test sources. |
| 6690 |
ac_ext=rc |
| 6691 |
|
| 6692 |
# Object file extension for compiled RC test sources. |
| 6693 |
objext=o |
| 6694 |
_LT_AC_TAGVAR(objext, $1)=$objext |
| 6695 |
|
| 6696 |
# Code to be used in simple compile tests |
| 6697 |
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 6698 |
|
| 6699 |
# Code to be used in simple link tests |
| 6700 |
lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 6701 |
|
| 6702 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 6703 |
_LT_AC_SYS_COMPILER |
| 6704 |
|
| 6705 |
# Allow CC to be a program name with arguments. |
| 6706 |
lt_save_CC="$CC" |
| 6707 |
CC=${RC-"windres"} |
| 6708 |
compiler=$CC |
| 6709 |
_LT_AC_TAGVAR(compiler, $1)=$CC |
| 6710 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 6711 |
|
| 6712 |
if test -n "$compiler"; then |
| 6713 |
: |
| 6714 |
_LT_CONFIG($1) |
| 6715 |
fi |
| 6716 |
|
| 6717 |
AC_LANG_RESTORE |
| 6718 |
CC="$lt_save_CC" |
| 6719 |
])# _LT_LANG_RC_CONFIG |
| 6720 |
|
| 6721 |
|
| 6722 |
AC_DEFUN([LT_PROG_GCJ], |
| 6723 |
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], |
| 6724 |
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], |
| 6725 |
[AC_CHECK_TOOL(GCJ, gcj,) |
| 6726 |
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" |
| 6727 |
AC_SUBST(GCJFLAGS)])])dnl |
| 6728 |
]) |
| 6729 |
AU_DEFUN([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) |
| 6730 |
|
| 6731 |
AC_DEFUN([LT_PROG_RC], |
| 6732 |
[AC_CHECK_TOOL(RC, windres,) |
| 6733 |
]) |
| 6734 |
AU_DEFUN([LT_AC_PROG_RC], [LT_PROG_RC]) |
| 6735 |
|
| 6736 |
|
| 6737 |
# LT_AC_PROG_EGREP |
| 6738 |
# ---------------- |
| 6739 |
# If we don't have a new enough Autoconf to choose the best grep |
| 6740 |
# available, choose the one first in the user's PATH. |
| 6741 |
AC_DEFUN([LT_AC_PROG_EGREP], |
| 6742 |
[AC_REQUIRE([AC_PROG_EGREP]) |
| 6743 |
test -z "$GREP" && GREP=grep |
| 6744 |
_LT_DECL([], [GREP], [1], [A grep program that handles long line]) |
| 6745 |
_LT_DECL([], [EGREP], [1], [An ERE matcher]) |
| 6746 |
]) |
| 6747 |
|
| 6748 |
|
| 6749 |
# LT_AC_PROG_SED |
| 6750 |
# -------------- |
| 6751 |
# Check for a fully-functional sed program, that truncates |
| 6752 |
# as few characters as possible. Prefer GNU sed if found. |
| 6753 |
AC_DEFUN([LT_AC_PROG_SED], |
| 6754 |
[AC_PROG_SED |
| 6755 |
test -z "$SED" && SED=sed |
| 6756 |
_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) |
| 6757 |
_LT_DECL([], [Xsed], ["\$SED -e s/^X//"], |
| 6758 |
[Sed that helps us avoid accidentally triggering echo(1) options like -n]) |
| 6759 |
])# LT_AC_PROG_SED |
| 6760 |
|
| 6761 |
m4_ifndef([AC_PROG_SED], [ |
| 6762 |
# NOTE: This macro has been submitted for inclusion into # |
| 6763 |
# GNU Autoconf as AC_PROG_SED. When it is available in # |
| 6764 |
# a released version of Autoconf we should remove this # |
| 6765 |
# macro and use it instead. # |
| 6766 |
|
| 6767 |
m4_define([AC_PROG_SED], |
| 6768 |
[AC_MSG_CHECKING([for a sed that does not truncate output]) |
| 6769 |
AC_CACHE_VAL(lt_cv_path_SED, |
| 6770 |
[# Loop through the user's path and test for sed and gsed. |
| 6771 |
# Then use that list of sed's as ones to test for truncation. |
| 6772 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6773 |
for as_dir in $PATH |
| 6774 |
do |
| 6775 |
IFS=$as_save_IFS |
| 6776 |
test -z "$as_dir" && as_dir=. |
| 6777 |
for lt_ac_prog in sed gsed; do |
| 6778 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6779 |
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 6780 |
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 6781 |
fi |
| 6782 |
done |
| 6783 |
done |
| 6784 |
done |
| 6785 |
lt_ac_max=0 |
| 6786 |
lt_ac_count=0 |
| 6787 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 6788 |
# along with /bin/sed that truncates output. |
| 6789 |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 6790 |
test ! -f $lt_ac_sed && break |
| 6791 |
cat /dev/null > conftest.in |
| 6792 |
lt_ac_count=0 |
| 6793 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 6794 |
# Check for GNU sed and select it if it is found. |
| 6795 |
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 6796 |
lt_cv_path_SED=$lt_ac_sed |
| 6797 |
break |
| 6798 |
fi |
| 6799 |
while true; do |
| 6800 |
cat conftest.in conftest.in >conftest.tmp |
| 6801 |
mv conftest.tmp conftest.in |
| 6802 |
cp conftest.in conftest.nl |
| 6803 |
echo >>conftest.nl |
| 6804 |
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 6805 |
cmp -s conftest.out conftest.nl || break |
| 6806 |
# 10000 chars as input seems more than enough |
| 6807 |
test $lt_ac_count -gt 10 && break |
| 6808 |
lt_ac_count=`expr $lt_ac_count + 1` |
| 6809 |
if test $lt_ac_count -gt $lt_ac_max; then |
| 6810 |
lt_ac_max=$lt_ac_count |
| 6811 |
lt_cv_path_SED=$lt_ac_sed |
| 6812 |
fi |
| 6813 |
done |
| 6814 |
done |
| 6815 |
SED=$lt_cv_path_SED |
| 6816 |
AC_SUBST([SED]) |
| 6817 |
]) |
| 6818 |
AC_MSG_RESULT([$SED]) |
| 6819 |
])#AC_PROG_SED |
| 6820 |
])#m4_ifndef |
| 6821 |
|
| 6822 |
# Helper functions for option handling. -*- Autoconf -*- |
| 6823 |
# Written by Gary V. Vaughan <gary@gnu.org> |
| 6824 |
|
| 6825 |
# Copyright (C) 2004 Free Software Foundation, Inc. |
| 6826 |
|
| 6827 |
# This program is free software; you can redistribute it and/or modify |
| 6828 |
# it under the terms of the GNU General Public License as published by |
| 6829 |
# the Free Software Foundation; either version 2, or (at your option) |
| 6830 |
# any later version. |
| 6831 |
# |
| 6832 |
# This program is distributed in the hope that it will be useful, |
| 6833 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 6834 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 6835 |
# GNU General Public License for more details. |
| 6836 |
# |
| 6837 |
# You should have received a copy of the GNU General Public License |
| 6838 |
# along with this program; if not, write to the Free Software |
| 6839 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 6840 |
# 02111-1307, USA. |
| 6841 |
|
| 6842 |
# serial 1 |
| 6843 |
|
| 6844 |
# This is to help aclocal find these macros, as it can't see m4_define. |
| 6845 |
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) |
| 6846 |
|
| 6847 |
|
| 6848 |
# _LT_MANGLE_OPTION(NAME) |
| 6849 |
# ----------------------- |
| 6850 |
m4_define([_LT_MANGLE_OPTION], |
| 6851 |
[[_LT_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
| 6852 |
|
| 6853 |
|
| 6854 |
# _LT_SET_OPTION(NAME) |
| 6855 |
# ------------------------------ |
| 6856 |
# Set option NAME. Other NAMEs are saved as a flag. |
| 6857 |
m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1]))]) |
| 6858 |
|
| 6859 |
|
| 6860 |
# _LT_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
| 6861 |
# ------------------------------------------- |
| 6862 |
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
| 6863 |
m4_define([_LT_IF_OPTION], |
| 6864 |
[m4_ifdef(_LT_MANGLE_OPTION([$1]), [$2], [$3])]) |
| 6865 |
|
| 6866 |
|
| 6867 |
# _LT_UNLESS_OPTIONS(OPTIONS, IF-NOT-SET) |
| 6868 |
# --------------------------------------- |
| 6869 |
# Execute IF-NOT-SET if all OPTIONS are not set. |
| 6870 |
m4_define([_LT_UNLESS_OPTIONS], |
| 6871 |
[AC_FOREACH([_LT_Option], [$1], |
| 6872 |
[m4_ifdef(_LT_MANGLE_OPTION(_LT_Option), |
| 6873 |
[m4_define([$0_found])])])[]dnl |
| 6874 |
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$2 |
| 6875 |
])[]dnl |
| 6876 |
]) |
| 6877 |
|
| 6878 |
|
| 6879 |
# _LT_SET_OPTIONS(OPTIONS) |
| 6880 |
# ------------------------ |
| 6881 |
# OPTIONS is a space-separated list of Automake options. |
| 6882 |
# If any OPTION has a handler macro declared with LT_OPTION_DEFINE, |
| 6883 |
# despatch to that macro; otherwise complain about the unknown option |
| 6884 |
# and exit. |
| 6885 |
m4_define([_LT_SET_OPTIONS], |
| 6886 |
[AC_FOREACH([_LT_Option], [$1], |
| 6887 |
[_LT_SET_OPTION(_LT_Option) |
| 6888 |
m4_ifdef(_LT_MANGLE_DEFUN(_LT_Option), |
| 6889 |
_LT_MANGLE_DEFUN(_LT_Option), |
| 6890 |
[m4_fatal([Unknown option `]_LT_Option[' to LT][_INIT_LIBTOOL])]) |
| 6891 |
])dnl |
| 6892 |
dnl |
| 6893 |
dnl Simply set some default values (i.e off) if boolean options were not |
| 6894 |
dnl specified: |
| 6895 |
_LT_UNLESS_OPTIONS([dlopen], enable_dlopen=no) |
| 6896 |
_LT_UNLESS_OPTIONS([win32-dll], enable_win32_dll=no) |
| 6897 |
dnl |
| 6898 |
dnl If no reference was made to various pairs of opposing options, then |
| 6899 |
dnl we run the default mode handler for the pair. For example, if neither |
| 6900 |
dnl `shared' nor `disable-shared' was passed, we enable building of shared |
| 6901 |
dnl archives by default: |
| 6902 |
_LT_UNLESS_OPTIONS([shared disable-shared], [_LT_ENABLE_SHARED]) |
| 6903 |
_LT_UNLESS_OPTIONS([static disable-static], [_LT_ENABLE_STATIC]) |
| 6904 |
_LT_UNLESS_OPTIONS([pic-only no-pic], [_LT_WITH_PIC]) |
| 6905 |
_LT_UNLESS_OPTIONS([fast-install disable-fast-install], |
| 6906 |
[_LT_ENABLE_FAST_INSTALL]) |
| 6907 |
])# _LT_SET_OPTIONS |
| 6908 |
|
| 6909 |
|
| 6910 |
|
| 6911 |
m4_define([_LT_MANGLE_DEFUN], |
| 6912 |
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1]), [[^A-Z0-9_]], [_])]) |
| 6913 |
|
| 6914 |
|
| 6915 |
# LT_OPTION_DEFINE(NAME, CODE) |
| 6916 |
# ---------------------------- |
| 6917 |
m4_define([LT_OPTION_DEFINE], |
| 6918 |
[m4_define(_LT_MANGLE_DEFUN([$1]), [$2])[]dnl |
| 6919 |
])# LT_OPTION_DEFINE |
| 6920 |
|
| 6921 |
|
| 6922 |
# dlopen |
| 6923 |
# ------ |
| 6924 |
LT_OPTION_DEFINE([dlopen], [enable_dlopen=yes]) |
| 6925 |
|
| 6926 |
AU_DEFUN([AC_LIBTOOL_DLOPEN], |
| 6927 |
[_LT_SET_OPTION([dlopen]) |
| 6928 |
AC_DIAGNOSE([obsolete], |
| 6929 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you |
| 6930 |
put the `dlopen' option into LT_LIBTOOL_INIT's first parameter.]) |
| 6931 |
]) |
| 6932 |
|
| 6933 |
|
| 6934 |
# win32-dll |
| 6935 |
# --------- |
| 6936 |
# Declare package support for building win32 dll's. |
| 6937 |
LT_OPTION_DEFINE([win32-dll], |
| 6938 |
[enable_win32_dll=yes |
| 6939 |
|
| 6940 |
case $host in |
| 6941 |
*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
| 6942 |
AC_CHECK_TOOL(AS, as, false) |
| 6943 |
AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
| 6944 |
AC_CHECK_TOOL(OBJDUMP, objdump, false) |
| 6945 |
;; |
| 6946 |
esac |
| 6947 |
|
| 6948 |
test -z "$AS" && AS=as |
| 6949 |
_LT_DECL([], [AS], [0], [Assembler program])dnl |
| 6950 |
|
| 6951 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 6952 |
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl |
| 6953 |
|
| 6954 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
| 6955 |
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl |
| 6956 |
])# win32-dll |
| 6957 |
|
| 6958 |
AU_DEFUN([AC_LIBTOOL_WIN32_DLL], |
| 6959 |
[_LT_SET_OPTION([win32-dll]) |
| 6960 |
AC_DIAGNOSE([obsolete], |
| 6961 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you |
| 6962 |
put the `win32-dll' option into LT_LIBTOOL_INIT's first parameter.]) |
| 6963 |
]) |
| 6964 |
|
| 6965 |
|
| 6966 |
# _LT_ENABLE_SHARED([DEFAULT]) |
| 6967 |
# ---------------------------- |
| 6968 |
# implement the --enable-shared flag, and supports the `shared' and |
| 6969 |
# `disable-shared' LT_INIT_LIBTOOL options. |
| 6970 |
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 6971 |
m4_define([_LT_ENABLE_SHARED], |
| 6972 |
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl |
| 6973 |
AC_ARG_ENABLE([shared], |
| 6974 |
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
| 6975 |
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], |
| 6976 |
[p=${PACKAGE-default} |
| 6977 |
case $enableval in |
| 6978 |
yes) enable_shared=yes ;; |
| 6979 |
no) enable_shared=no ;; |
| 6980 |
*) |
| 6981 |
enable_shared=no |
| 6982 |
# Look at the argument we got. We use all the common list separators. |
| 6983 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6984 |
for pkg in $enableval; do |
| 6985 |
IFS="$lt_save_ifs" |
| 6986 |
if test "X$pkg" = "X$p"; then |
| 6987 |
enable_shared=yes |
| 6988 |
fi |
| 6989 |
done |
| 6990 |
IFS="$lt_save_ifs" |
| 6991 |
;; |
| 6992 |
esac], |
| 6993 |
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT) |
| 6994 |
|
| 6995 |
_LT_DECL([build_libtool_libs], [enable_shared], [0], |
| 6996 |
[Whether or not to build shared libraries]) |
| 6997 |
])# _LT_ENABLE_SHARED |
| 6998 |
|
| 6999 |
LT_OPTION_DEFINE([shared], [_LT_ENABLE_SHARED([yes])]) |
| 7000 |
LT_OPTION_DEFINE([disable-shared], [_LT_ENABLE_SHARED([no])]) |
| 7001 |
|
| 7002 |
# Old names: |
| 7003 |
AU_DEFUN([AC_ENABLE_SHARED], |
| 7004 |
[_LT_SET_OPTION([shared]) |
| 7005 |
AC_DIAGNOSE([obsolete], |
| 7006 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you |
| 7007 |
put the `shared' option into LT_LIBTOOL_INIT's first parameter.]) |
| 7008 |
]) |
| 7009 |
|
| 7010 |
AU_DEFUN([AM_ENABLE_SHARED], |
| 7011 |
[_LT_SET_OPTION([shared]) |
| 7012 |
AC_DIAGNOSE([obsolete], |
| 7013 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you |
| 7014 |
put the `shared' option into LT_LIBTOOL_INIT's first parameter.]) |
| 7015 |
]) |
| 7016 |
|
| 7017 |
AU_DEFUN([AC_DISABLE_SHARED], |
| 7018 |
[_LT_SET_OPTION([disable-shared]) |
| 7019 |
AC_DIAGNOSE([obsolete], |
| 7020 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you put |
| 7021 |
the `disable-shared' option into LT_LIBTOOL_INIT's first parameter.]) |
| 7022 |
]) |
| 7023 |
|
| 7024 |
AU_DEFUN([AM_DISABLE_SHARED], |
| 7025 |
[_LT_SET_OPTION([disable-shared]) |
| 7026 |
AC_DIAGNOSE([obsolete], |
| 7027 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you put |
| 7028 |
the `disable-shared' option into LT_LIBTOOL_INIT's first parameter.]) |
| 7029 |
]) |
| 7030 |
|
| 7031 |
|
| 7032 |
# _LT_ENABLE_STATIC([DEFAULT]) |
| 7033 |
# ---------------------------- |
| 7034 |
# implement the --enable-static flag, and support the `static' and |
| 7035 |
# `disable-static' LT_INIT_LIBTOOL options. |
| 7036 |
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 7037 |
m4_define([_LT_ENABLE_STATIC], |
| 7038 |
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl |
| 7039 |
AC_ARG_ENABLE([static], |
| 7040 |
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
| 7041 |
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], |
| 7042 |
[p=${PACKAGE-default} |
| 7043 |
case $enableval in |
| 7044 |
yes) enable_static=yes ;; |
| 7045 |
no) enable_static=no ;; |
| 7046 |
*) |
| 7047 |
enable_static=no |
| 7048 |
# Look at the argument we got. We use all the common list separators. |
| 7049 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7050 |
for pkg in $enableval; do |
| 7051 |
IFS="$lt_save_ifs" |
| 7052 |
if test "X$pkg" = "X$p"; then |
| 7053 |
enable_static=yes |
| 7054 |
fi |
| 7055 |
done |
| 7056 |
IFS="$lt_save_ifs" |
| 7057 |
;; |
| 7058 |
esac], |
| 7059 |
[enable_static=]_LT_ENABLE_STATIC_DEFAULT) |
| 7060 |
|
| 7061 |
_LT_DECL([build_old_libs], [enable_static], [0], |
| 7062 |
[Whether or not to build static libraries]) |
| 7063 |
])# _LT_ENABLE_STATIC |
| 7064 |
|
| 7065 |
LT_OPTION_DEFINE([static], [_LT_ENABLE_STATIC([yes])]) |
| 7066 |
LT_OPTION_DEFINE([disable-static], [_LT_ENABLE_STATIC([no])]) |
| 7067 |
|
| 7068 |
# Old names: |
| 7069 |
AU_DEFUN([AC_ENABLE_STATIC], |
| 7070 |
[_LT_SET_OPTION([static]) |
| 7071 |
AC_DIAGNOSE([obsolete], |
| 7072 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you |
| 7073 |
put the `static' option into LT_LIBTOOL_INIT's first parameter.]) |
| 7074 |
]) |
| 7075 |
|
| 7076 |
AU_DEFUN([AM_ENABLE_STATIC], |
| 7077 |
[_LT_SET_OPTION([static]) |
| 7078 |
AC_DIAGNOSE([obsolete], |
| 7079 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you |
| 7080 |
put the `static' option into LT_LIBTOOL_INIT's first parameter.]) |
| 7081 |
]) |
| 7082 |
|
| 7083 |
AU_DEFUN([AC_DISABLE_STATIC], |
| 7084 |
[_LT_SET_OPTION([disable-static]) |
| 7085 |
AC_DIAGNOSE([obsolete], |
| 7086 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you put |
| 7087 |
the `disable-static' option into LT_LIBTOOL_INIT's first parameter.]) |
| 7088 |
]) |
| 7089 |
|
| 7090 |
AU_DEFUN([AM_DISABLE_STATIC], |
| 7091 |
[_LT_SET_OPTION([disable-static]) |
| 7092 |
AC_DIAGNOSE([obsolete], |
| 7093 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you put |
| 7094 |
the `disable-static' option into LT_LIBTOOL_INIT's first parameter.]) |
| 7095 |
]) |
| 7096 |
|
| 7097 |
|
| 7098 |
# _LT_ENABLE_FAST_INSTALL([DEFAULT]) |
| 7099 |
# ---------------------------------- |
| 7100 |
# implement the --enable-fast-install flag, and support the `fast-install' |
| 7101 |
# and `disable-fast-install' LT_INIT_LIBTOOL options. |
| 7102 |
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 7103 |
m4_define([_LT_ENABLE_FAST_INSTALL], |
| 7104 |
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl |
| 7105 |
AC_ARG_ENABLE([fast-install], |
| 7106 |
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], |
| 7107 |
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], |
| 7108 |
[p=${PACKAGE-default} |
| 7109 |
case $enableval in |
| 7110 |
yes) enable_fast_install=yes ;; |
| 7111 |
no) enable_fast_install=no ;; |
| 7112 |
*) |
| 7113 |
enable_fast_install=no |
| 7114 |
# Look at the argument we got. We use all the common list separators. |
| 7115 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7116 |
for pkg in $enableval; do |
| 7117 |
IFS="$lt_save_ifs" |
| 7118 |
if test "X$pkg" = "X$p"; then |
| 7119 |
enable_fast_install=yes |
| 7120 |
fi |
| 7121 |
done |
| 7122 |
IFS="$lt_save_ifs" |
| 7123 |
;; |
| 7124 |
esac], |
| 7125 |
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) |
| 7126 |
|
| 7127 |
_LT_DECL([fast_install], [enable_fast_install], [0], |
| 7128 |
[Whether or not to optimize for fast installation])dnl |
| 7129 |
])# _LT_ENABLE_FAST_INSTALL |
| 7130 |
|
| 7131 |
LT_OPTION_DEFINE([fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) |
| 7132 |
LT_OPTION_DEFINE([disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) |
| 7133 |
|
| 7134 |
# Old names: |
| 7135 |
AU_DEFUN([AC_ENABLE_FAST_INSTALL], |
| 7136 |
[_LT_SET_OPTION([fast-install]) |
| 7137 |
AC_DIAGNOSE([obsolete], |
| 7138 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you put |
| 7139 |
the `fast-install' option into LT_LIBTOOL_INIT's first parameter.]) |
| 7140 |
]) |
| 7141 |
|
| 7142 |
AU_DEFUN([AC_DISABLE_FAST_INSTALL], |
| 7143 |
[_LT_SET_OPTION([disable-fast-install]) |
| 7144 |
AC_DIAGNOSE([obsolete], |
| 7145 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you put |
| 7146 |
the `disable-fast-install' option into LT_LIBTOOL_INIT's first parameter.]) |
| 7147 |
]) |
| 7148 |
|
| 7149 |
|
| 7150 |
# _LT_WITH_PIC([MODE]) |
| 7151 |
# -------------------- |
| 7152 |
# implement the --with-pic flag, and support the `pic-only' and `no-pic' |
| 7153 |
# LT_INIT_LIBTOOL options. |
| 7154 |
# MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
| 7155 |
m4_define([_LT_WITH_PIC], |
| 7156 |
[AC_ARG_WITH([pic], |
| 7157 |
[AC_HELP_STRING([--with-pic], |
| 7158 |
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
| 7159 |
[pic_mode="$withval"], |
| 7160 |
[pic_mode=default]) |
| 7161 |
|
| 7162 |
test -z "$pic_mode" && pic_mode=m4_if($#, 1, $1, default) |
| 7163 |
|
| 7164 |
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl |
| 7165 |
])# _LT_WITH_PIC |
| 7166 |
|
| 7167 |
LT_OPTION_DEFINE([pic-only], [_LT_WITH_PIC([yes])]) |
| 7168 |
LT_OPTION_DEFINE([no-pic], [_LT_WITH_PIC([no])]) |
| 7169 |
|
| 7170 |
# Old name: |
| 7171 |
AU_DEFUN([AC_LIBTOOL_PIC_MODE], |
| 7172 |
[_LT_SET_OPTION([pic-only]) |
| 7173 |
AC_DIAGNOSE([obsolete], |
| 7174 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you |
| 7175 |
put the `pic-only' option into LT_LIBTOOL_INIT's first parameter.]) |
| 7176 |
]) |
| 7177 |
|
| 7178 |
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- |
| 7179 |
# |
| 7180 |
# Copyright (C) 2004 Free Software Foundation, Inc. |
| 7181 |
# Written by Gary V. Vaughan. |
| 7182 |
# |
| 7183 |
# This program is free software; you can redistribute it and/or modify |
| 7184 |
# it under the terms of the GNU General Public License as published by |
| 7185 |
# the Free Software Foundation; either version 2 of the License, or |
| 7186 |
# (at your option) any later version. |
| 7187 |
# |
| 7188 |
# This program is distributed in the hope that it will be useful, but |
| 7189 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7190 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 7191 |
# General Public License for more details. |
| 7192 |
# |
| 7193 |
# You should have received a copy of the GNU General Public License |
| 7194 |
# along with this program; if not, write to the Free Software |
| 7195 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7196 |
# |
| 7197 |
# As a special exception to the GNU General Public License, if you |
| 7198 |
# distribute this file as part of a program that contains a |
| 7199 |
# configuration script generated by Autoconf, you may include it under |
| 7200 |
# the same distribution terms that you use for the rest of that program. |
| 7201 |
|
| 7202 |
# serial 1 |
| 7203 |
|
| 7204 |
# This is to help aclocal find these macros, as it can't see m4_define. |
| 7205 |
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) |
| 7206 |
|
| 7207 |
|
| 7208 |
# lt_join(SEP, ARG1, [ARG2...]) |
| 7209 |
# ----------------------------- |
| 7210 |
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their |
| 7211 |
# associated separator. |
| 7212 |
m4_define([lt_join], |
| 7213 |
[m4_case([$#], |
| 7214 |
[0], [m4_fatal([$0: too few arguments: $#])], |
| 7215 |
[1], [], |
| 7216 |
[2], [[$2]], |
| 7217 |
[m4_ifval([$2], |
| 7218 |
[m4_ifval([$3], |
| 7219 |
[[$2][$1][]$0([$1], m4_shiftn(2, $@))], |
| 7220 |
[m4_if([$#], [3], |
| 7221 |
[$2], |
| 7222 |
[$0([$1], [$2], m4_shiftn(3, $@))])])], |
| 7223 |
[$0([$1], m4_shiftn(2, $@))])])[]dnl |
| 7224 |
]) |
| 7225 |
|
| 7226 |
|
| 7227 |
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) |
| 7228 |
# ---------------------------------------------------------- |
| 7229 |
# Produce a SEP delimited list of all paired combinations of elements of |
| 7230 |
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list |
| 7231 |
# has the form PREFIXmINFIXSUFFIXn. |
| 7232 |
m4_define([lt_combine], |
| 7233 |
[m4_if([$2], [[]], [], |
| 7234 |
[lt_join(m4_quote(m4_default([$1], [, ])), |
| 7235 |
_$0([$1], m4_car($2)[$3], m4_shiftn(3, $@)), |
| 7236 |
$0([$1], m4_cdr($2), m4_shiftn(2, $@)))])]) |
| 7237 |
m4_define([_lt_combine], |
| 7238 |
[m4_if([$3], [], [], |
| 7239 |
[lt_join(m4_quote(m4_default([$1], [, ])), |
| 7240 |
[$2$3], |
| 7241 |
$0([$1], [$2], m4_shiftn(3, $@)))])[]dnl |
| 7242 |
]) |
| 7243 |
|
| 7244 |
|
| 7245 |
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) |
| 7246 |
# ----------------------------------------------------------------------- |
| 7247 |
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited |
| 7248 |
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. |
| 7249 |
m4_define([lt_if_append_uniq], |
| 7250 |
[m4_ifdef([$1], |
| 7251 |
[m4_bmatch($3[]m4_defn([$1])$3, $3[]m4_re_escape([$2])$3, |
| 7252 |
[$5], |
| 7253 |
[m4_append([$1], [$2], [$3])$4])], |
| 7254 |
[m4_append([$1], [$2], [$3])$4])]) |
| 7255 |
|
| 7256 |
|
| 7257 |
# lt_dict_add(DICT, KEY, VALUE) |
| 7258 |
# ----------------------------- |
| 7259 |
m4_define([lt_dict_add], |
| 7260 |
[m4_define([$1($2)], [$4])]) |
| 7261 |
|
| 7262 |
|
| 7263 |
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) |
| 7264 |
# -------------------------------------------- |
| 7265 |
m4_define([lt_dict_add_subkey], |
| 7266 |
[m4_define([$1($2:$3)], [$4])]) |
| 7267 |
|
| 7268 |
|
| 7269 |
# lt_dict_fetch(DICT, KEY, [SUBKEY]) |
| 7270 |
# ---------------------------------- |
| 7271 |
m4_define([lt_dict_fetch], |
| 7272 |
[m4_ifval([$3], |
| 7273 |
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), |
| 7274 |
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) |
| 7275 |
|
| 7276 |
|
| 7277 |
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) |
| 7278 |
# ----------------------------------------------------------------- |
| 7279 |
m4_define([lt_if_dict_fetch], |
| 7280 |
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], |
| 7281 |
[$5], |
| 7282 |
[$6])]) |
| 7283 |
|
| 7284 |
|
| 7285 |
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) |
| 7286 |
# ------------------------------------------------------------ |
| 7287 |
m4_define([lt_dict_filter], |
| 7288 |
[m4_if([$5], [], [], |
| 7289 |
[lt_join(m4_quote(m4_default([$4], [[, ]])), |
| 7290 |
m4_quote(lt_if_dict_fetch([$1], [$5], [$2], [$3], [$5])), |
| 7291 |
m4_quote($0([$1], [$2], [$3], [$4], m4_shiftn(5, $@))))])dnl |
| 7292 |
]) |
| 7293 |
|
| 7294 |
# ltversion.m4 -- version numbers -*- Autoconf -*- |
| 7295 |
# Generated from ltversion.in; do not edit by hand. |
| 7296 |
|
| 7297 |
# serial 1467 |
| 7298 |
# This file is part of GNU Libtool |
| 7299 |
|
| 7300 |
m4_define([LT_PACKAGE_VERSION], []) |
| 7301 |
m4_define([LT_PACKAGE_REVISION], [1.1467]) |
| 7302 |
|
| 7303 |
AC_DEFUN([LTVERSION_VERSION], |
| 7304 |
[macro_version='' |
| 7305 |
macro_revision='1.1467' |
| 7306 |
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
| 7307 |
_LT_DECL(, macro_revision, 0) |
| 7308 |
]) |
| 7309 |
|
| 7310 |
|
| 7311 |
# Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
| 7312 |
|
| 7313 |
# This program is free software; you can redistribute it and/or modify |
| 7314 |
# it under the terms of the GNU General Public License as published by |
| 7315 |
# the Free Software Foundation; either version 2, or (at your option) |
| 7316 |
# any later version. |
| 7317 |
|
| 7318 |
# This program is distributed in the hope that it will be useful, |
| 7319 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7320 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 7321 |
# GNU General Public License for more details. |
| 7322 |
|
| 7323 |
# You should have received a copy of the GNU General Public License |
| 7324 |
# along with this program; if not, write to the Free Software |
| 7325 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 7326 |
# 02111-1307, USA. |
| 7327 |
|
| 7328 |
# serial 3 |
| 7329 |
|
| 7330 |
AC_PREREQ(2.50) |
| 7331 |
|
| 7332 |
# AM_PROG_LEX |
| 7333 |
# ----------- |
| 7334 |
# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a |
| 7335 |
# "missing" invocation, for better error output. |
| 7336 |
AC_DEFUN([AM_PROG_LEX], |
| 7337 |
[AC_REQUIRE([AM_MISSING_HAS_RUN])dnl |
| 7338 |
AC_REQUIRE([AC_PROG_LEX])dnl |
| 7339 |
if test "$LEX" = :; then |
| 7340 |
LEX=${am_missing_run}flex |
| 7341 |
fi]) |
| 7342 |
|