| 1 |
orrisroot |
1.1 |
# generated automatically by aclocal 1.7.8 -*- Autoconf -*- |
| 2 |
|
|
|
| 3 |
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 |
| 4 |
|
|
# Free Software Foundation, Inc. |
| 5 |
|
|
# This file is free software; the Free Software Foundation |
| 6 |
|
|
# gives unlimited permission to copy and/or distribute it, |
| 7 |
|
|
# with or without modifications, as long as this notice is preserved. |
| 8 |
|
|
|
| 9 |
|
|
# This program is distributed in the hope that it will be useful, |
| 10 |
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
| 11 |
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 12 |
|
|
# PARTICULAR PURPOSE. |
| 13 |
|
|
|
| 14 |
|
|
# Do all the work for Automake. -*- Autoconf -*- |
| 15 |
|
|
|
| 16 |
|
|
# This macro actually does too much some checks are only needed if |
| 17 |
|
|
# your package does certain things. But this isn't really a big deal. |
| 18 |
|
|
|
| 19 |
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 |
| 20 |
|
|
# Free Software Foundation, Inc. |
| 21 |
|
|
|
| 22 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 23 |
|
|
# it under the terms of the GNU General Public License as published by |
| 24 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 25 |
|
|
# any later version. |
| 26 |
|
|
|
| 27 |
|
|
# This program is distributed in the hope that it will be useful, |
| 28 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 29 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 30 |
|
|
# GNU General Public License for more details. |
| 31 |
|
|
|
| 32 |
|
|
# You should have received a copy of the GNU General Public License |
| 33 |
|
|
# along with this program; if not, write to the Free Software |
| 34 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 35 |
|
|
# 02111-1307, USA. |
| 36 |
|
|
|
| 37 |
|
|
# serial 10 |
| 38 |
|
|
|
| 39 |
|
|
AC_PREREQ([2.54]) |
| 40 |
|
|
|
| 41 |
|
|
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
| 42 |
|
|
# the ones we care about. |
| 43 |
|
|
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
| 44 |
|
|
|
| 45 |
|
|
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
| 46 |
|
|
# AM_INIT_AUTOMAKE([OPTIONS]) |
| 47 |
|
|
# ----------------------------------------------- |
| 48 |
|
|
# The call with PACKAGE and VERSION arguments is the old style |
| 49 |
|
|
# call (pre autoconf-2.50), which is being phased out. PACKAGE |
| 50 |
|
|
# and VERSION should now be passed to AC_INIT and removed from |
| 51 |
|
|
# the call to AM_INIT_AUTOMAKE. |
| 52 |
|
|
# We support both call styles for the transition. After |
| 53 |
|
|
# the next Automake release, Autoconf can make the AC_INIT |
| 54 |
|
|
# arguments mandatory, and then we can depend on a new Autoconf |
| 55 |
|
|
# release and drop the old call support. |
| 56 |
|
|
AC_DEFUN([AM_INIT_AUTOMAKE], |
| 57 |
|
|
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
| 58 |
|
|
AC_REQUIRE([AC_PROG_INSTALL])dnl |
| 59 |
|
|
# test to see if srcdir already configured |
| 60 |
|
|
if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 61 |
|
|
test -f $srcdir/config.status; then |
| 62 |
|
|
AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
| 63 |
|
|
fi |
| 64 |
|
|
|
| 65 |
|
|
# test whether we have cygpath |
| 66 |
|
|
if test -z "$CYGPATH_W"; then |
| 67 |
|
|
if (cygpath --version) >/dev/null 2>/dev/null; then |
| 68 |
|
|
CYGPATH_W='cygpath -w' |
| 69 |
|
|
else |
| 70 |
|
|
CYGPATH_W=echo |
| 71 |
|
|
fi |
| 72 |
|
|
fi |
| 73 |
|
|
AC_SUBST([CYGPATH_W]) |
| 74 |
|
|
|
| 75 |
|
|
# Define the identity of the package. |
| 76 |
|
|
dnl Distinguish between old-style and new-style calls. |
| 77 |
|
|
m4_ifval([$2], |
| 78 |
|
|
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
| 79 |
|
|
AC_SUBST([PACKAGE], [$1])dnl |
| 80 |
|
|
AC_SUBST([VERSION], [$2])], |
| 81 |
|
|
[_AM_SET_OPTIONS([$1])dnl |
| 82 |
|
|
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
| 83 |
|
|
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
| 84 |
|
|
|
| 85 |
|
|
_AM_IF_OPTION([no-define],, |
| 86 |
|
|
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
| 87 |
|
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
| 88 |
|
|
|
| 89 |
|
|
# Some tools Automake needs. |
| 90 |
|
|
AC_REQUIRE([AM_SANITY_CHECK])dnl |
| 91 |
|
|
AC_REQUIRE([AC_ARG_PROGRAM])dnl |
| 92 |
|
|
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
| 93 |
|
|
AM_MISSING_PROG(AUTOCONF, autoconf) |
| 94 |
|
|
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
| 95 |
|
|
AM_MISSING_PROG(AUTOHEADER, autoheader) |
| 96 |
|
|
AM_MISSING_PROG(MAKEINFO, makeinfo) |
| 97 |
|
|
AM_MISSING_PROG(AMTAR, tar) |
| 98 |
|
|
AM_PROG_INSTALL_SH |
| 99 |
|
|
AM_PROG_INSTALL_STRIP |
| 100 |
|
|
# We need awk for the "check" target. The system "awk" is bad on |
| 101 |
|
|
# some platforms. |
| 102 |
|
|
AC_REQUIRE([AC_PROG_AWK])dnl |
| 103 |
|
|
AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
| 104 |
|
|
AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
| 105 |
|
|
|
| 106 |
|
|
_AM_IF_OPTION([no-dependencies],, |
| 107 |
|
|
[AC_PROVIDE_IFELSE([AC_PROG_CC], |
| 108 |
|
|
[_AM_DEPENDENCIES(CC)], |
| 109 |
|
|
[define([AC_PROG_CC], |
| 110 |
|
|
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
| 111 |
|
|
AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 112 |
|
|
[_AM_DEPENDENCIES(CXX)], |
| 113 |
|
|
[define([AC_PROG_CXX], |
| 114 |
|
|
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
| 115 |
|
|
]) |
| 116 |
|
|
]) |
| 117 |
|
|
|
| 118 |
|
|
|
| 119 |
|
|
# When config.status generates a header, we must update the stamp-h file. |
| 120 |
|
|
# This file resides in the same directory as the config header |
| 121 |
|
|
# that is generated. The stamp files are numbered to have different names. |
| 122 |
|
|
|
| 123 |
|
|
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
| 124 |
|
|
# loop where config.status creates the headers, so we can generate |
| 125 |
|
|
# our stamp files there. |
| 126 |
|
|
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
| 127 |
|
|
[# Compute $1's index in $config_headers. |
| 128 |
|
|
_am_stamp_count=1 |
| 129 |
|
|
for _am_header in $config_headers :; do |
| 130 |
|
|
case $_am_header in |
| 131 |
|
|
$1 | $1:* ) |
| 132 |
|
|
break ;; |
| 133 |
|
|
* ) |
| 134 |
|
|
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 135 |
|
|
esac |
| 136 |
|
|
done |
| 137 |
|
|
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) |
| 138 |
|
|
|
| 139 |
|
|
# Copyright 2002 Free Software Foundation, Inc. |
| 140 |
|
|
|
| 141 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 142 |
|
|
# it under the terms of the GNU General Public License as published by |
| 143 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 144 |
|
|
# any later version. |
| 145 |
|
|
|
| 146 |
|
|
# This program is distributed in the hope that it will be useful, |
| 147 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 148 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 149 |
|
|
# GNU General Public License for more details. |
| 150 |
|
|
|
| 151 |
|
|
# You should have received a copy of the GNU General Public License |
| 152 |
|
|
# along with this program; if not, write to the Free Software |
| 153 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 154 |
|
|
|
| 155 |
|
|
# AM_AUTOMAKE_VERSION(VERSION) |
| 156 |
|
|
# ---------------------------- |
| 157 |
|
|
# Automake X.Y traces this macro to ensure aclocal.m4 has been |
| 158 |
|
|
# generated from the m4 files accompanying Automake X.Y. |
| 159 |
|
|
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) |
| 160 |
|
|
|
| 161 |
|
|
# AM_SET_CURRENT_AUTOMAKE_VERSION |
| 162 |
|
|
# ------------------------------- |
| 163 |
|
|
# Call AM_AUTOMAKE_VERSION so it can be traced. |
| 164 |
|
|
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
| 165 |
|
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
| 166 |
|
|
[AM_AUTOMAKE_VERSION([1.7.8])]) |
| 167 |
|
|
|
| 168 |
|
|
# Helper functions for option handling. -*- Autoconf -*- |
| 169 |
|
|
|
| 170 |
|
|
# Copyright 2001, 2002 Free Software Foundation, Inc. |
| 171 |
|
|
|
| 172 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 173 |
|
|
# it under the terms of the GNU General Public License as published by |
| 174 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 175 |
|
|
# any later version. |
| 176 |
|
|
|
| 177 |
|
|
# This program is distributed in the hope that it will be useful, |
| 178 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 179 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 180 |
|
|
# GNU General Public License for more details. |
| 181 |
|
|
|
| 182 |
|
|
# You should have received a copy of the GNU General Public License |
| 183 |
|
|
# along with this program; if not, write to the Free Software |
| 184 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 185 |
|
|
# 02111-1307, USA. |
| 186 |
|
|
|
| 187 |
|
|
# serial 2 |
| 188 |
|
|
|
| 189 |
|
|
# _AM_MANGLE_OPTION(NAME) |
| 190 |
|
|
# ----------------------- |
| 191 |
|
|
AC_DEFUN([_AM_MANGLE_OPTION], |
| 192 |
|
|
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
| 193 |
|
|
|
| 194 |
|
|
# _AM_SET_OPTION(NAME) |
| 195 |
|
|
# ------------------------------ |
| 196 |
|
|
# Set option NAME. Presently that only means defining a flag for this option. |
| 197 |
|
|
AC_DEFUN([_AM_SET_OPTION], |
| 198 |
|
|
[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
| 199 |
|
|
|
| 200 |
|
|
# _AM_SET_OPTIONS(OPTIONS) |
| 201 |
|
|
# ---------------------------------- |
| 202 |
|
|
# OPTIONS is a space-separated list of Automake options. |
| 203 |
|
|
AC_DEFUN([_AM_SET_OPTIONS], |
| 204 |
|
|
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
| 205 |
|
|
|
| 206 |
|
|
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
| 207 |
|
|
# ------------------------------------------- |
| 208 |
|
|
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
| 209 |
|
|
AC_DEFUN([_AM_IF_OPTION], |
| 210 |
|
|
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
| 211 |
|
|
|
| 212 |
|
|
# |
| 213 |
|
|
# Check to make sure that the build environment is sane. |
| 214 |
|
|
# |
| 215 |
|
|
|
| 216 |
|
|
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. |
| 217 |
|
|
|
| 218 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 219 |
|
|
# it under the terms of the GNU General Public License as published by |
| 220 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 221 |
|
|
# any later version. |
| 222 |
|
|
|
| 223 |
|
|
# This program is distributed in the hope that it will be useful, |
| 224 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 225 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 226 |
|
|
# GNU General Public License for more details. |
| 227 |
|
|
|
| 228 |
|
|
# You should have received a copy of the GNU General Public License |
| 229 |
|
|
# along with this program; if not, write to the Free Software |
| 230 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 231 |
|
|
# 02111-1307, USA. |
| 232 |
|
|
|
| 233 |
|
|
# serial 3 |
| 234 |
|
|
|
| 235 |
|
|
# AM_SANITY_CHECK |
| 236 |
|
|
# --------------- |
| 237 |
|
|
AC_DEFUN([AM_SANITY_CHECK], |
| 238 |
|
|
[AC_MSG_CHECKING([whether build environment is sane]) |
| 239 |
|
|
# Just in case |
| 240 |
|
|
sleep 1 |
| 241 |
|
|
echo timestamp > conftest.file |
| 242 |
|
|
# Do `set' in a subshell so we don't clobber the current shell's |
| 243 |
|
|
# arguments. Must try -L first in case configure is actually a |
| 244 |
|
|
# symlink; some systems play weird games with the mod time of symlinks |
| 245 |
|
|
# (eg FreeBSD returns the mod time of the symlink's containing |
| 246 |
|
|
# directory). |
| 247 |
|
|
if ( |
| 248 |
|
|
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 249 |
|
|
if test "$[*]" = "X"; then |
| 250 |
|
|
# -L didn't work. |
| 251 |
|
|
set X `ls -t $srcdir/configure conftest.file` |
| 252 |
|
|
fi |
| 253 |
|
|
rm -f conftest.file |
| 254 |
|
|
if test "$[*]" != "X $srcdir/configure conftest.file" \ |
| 255 |
|
|
&& test "$[*]" != "X conftest.file $srcdir/configure"; then |
| 256 |
|
|
|
| 257 |
|
|
# If neither matched, then we have a broken ls. This can happen |
| 258 |
|
|
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 259 |
|
|
# broken ls alias from the environment. This has actually |
| 260 |
|
|
# happened. Such a system could not be considered "sane". |
| 261 |
|
|
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
| 262 |
|
|
alias in your environment]) |
| 263 |
|
|
fi |
| 264 |
|
|
|
| 265 |
|
|
test "$[2]" = conftest.file |
| 266 |
|
|
) |
| 267 |
|
|
then |
| 268 |
|
|
# Ok. |
| 269 |
|
|
: |
| 270 |
|
|
else |
| 271 |
|
|
AC_MSG_ERROR([newly created file is older than distributed files! |
| 272 |
|
|
Check your system clock]) |
| 273 |
|
|
fi |
| 274 |
|
|
AC_MSG_RESULT(yes)]) |
| 275 |
|
|
|
| 276 |
|
|
# -*- Autoconf -*- |
| 277 |
|
|
|
| 278 |
|
|
|
| 279 |
|
|
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. |
| 280 |
|
|
|
| 281 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 282 |
|
|
# it under the terms of the GNU General Public License as published by |
| 283 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 284 |
|
|
# any later version. |
| 285 |
|
|
|
| 286 |
|
|
# This program is distributed in the hope that it will be useful, |
| 287 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 288 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 289 |
|
|
# GNU General Public License for more details. |
| 290 |
|
|
|
| 291 |
|
|
# You should have received a copy of the GNU General Public License |
| 292 |
|
|
# along with this program; if not, write to the Free Software |
| 293 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 294 |
|
|
# 02111-1307, USA. |
| 295 |
|
|
|
| 296 |
|
|
# serial 3 |
| 297 |
|
|
|
| 298 |
|
|
# AM_MISSING_PROG(NAME, PROGRAM) |
| 299 |
|
|
# ------------------------------ |
| 300 |
|
|
AC_DEFUN([AM_MISSING_PROG], |
| 301 |
|
|
[AC_REQUIRE([AM_MISSING_HAS_RUN]) |
| 302 |
|
|
$1=${$1-"${am_missing_run}$2"} |
| 303 |
|
|
AC_SUBST($1)]) |
| 304 |
|
|
|
| 305 |
|
|
|
| 306 |
|
|
# AM_MISSING_HAS_RUN |
| 307 |
|
|
# ------------------ |
| 308 |
|
|
# Define MISSING if not defined so far and test if it supports --run. |
| 309 |
|
|
# If it does, set am_missing_run to use it, otherwise, to nothing. |
| 310 |
|
|
AC_DEFUN([AM_MISSING_HAS_RUN], |
| 311 |
|
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 312 |
|
|
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 313 |
|
|
# Use eval to expand $SHELL |
| 314 |
|
|
if eval "$MISSING --run true"; then |
| 315 |
|
|
am_missing_run="$MISSING --run " |
| 316 |
|
|
else |
| 317 |
|
|
am_missing_run= |
| 318 |
|
|
AC_MSG_WARN([`missing' script is too old or missing]) |
| 319 |
|
|
fi |
| 320 |
|
|
]) |
| 321 |
|
|
|
| 322 |
|
|
# AM_AUX_DIR_EXPAND |
| 323 |
|
|
|
| 324 |
|
|
# Copyright 2001 Free Software Foundation, Inc. |
| 325 |
|
|
|
| 326 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 327 |
|
|
# it under the terms of the GNU General Public License as published by |
| 328 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 329 |
|
|
# any later version. |
| 330 |
|
|
|
| 331 |
|
|
# This program is distributed in the hope that it will be useful, |
| 332 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 333 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 334 |
|
|
# GNU General Public License for more details. |
| 335 |
|
|
|
| 336 |
|
|
# You should have received a copy of the GNU General Public License |
| 337 |
|
|
# along with this program; if not, write to the Free Software |
| 338 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 339 |
|
|
# 02111-1307, USA. |
| 340 |
|
|
|
| 341 |
|
|
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
| 342 |
|
|
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
| 343 |
|
|
# `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
| 344 |
|
|
# |
| 345 |
|
|
# Of course, Automake must honor this variable whenever it calls a |
| 346 |
|
|
# tool from the auxiliary directory. The problem is that $srcdir (and |
| 347 |
|
|
# therefore $ac_aux_dir as well) can be either absolute or relative, |
| 348 |
|
|
# depending on how configure is run. This is pretty annoying, since |
| 349 |
|
|
# it makes $ac_aux_dir quite unusable in subdirectories: in the top |
| 350 |
|
|
# source directory, any form will work fine, but in subdirectories a |
| 351 |
|
|
# relative path needs to be adjusted first. |
| 352 |
|
|
# |
| 353 |
|
|
# $ac_aux_dir/missing |
| 354 |
|
|
# fails when called from a subdirectory if $ac_aux_dir is relative |
| 355 |
|
|
# $top_srcdir/$ac_aux_dir/missing |
| 356 |
|
|
# fails if $ac_aux_dir is absolute, |
| 357 |
|
|
# fails when called from a subdirectory in a VPATH build with |
| 358 |
|
|
# a relative $ac_aux_dir |
| 359 |
|
|
# |
| 360 |
|
|
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
| 361 |
|
|
# are both prefixed by $srcdir. In an in-source build this is usually |
| 362 |
|
|
# harmless because $srcdir is `.', but things will broke when you |
| 363 |
|
|
# start a VPATH build or use an absolute $srcdir. |
| 364 |
|
|
# |
| 365 |
|
|
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
| 366 |
|
|
# iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
| 367 |
|
|
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
| 368 |
|
|
# and then we would define $MISSING as |
| 369 |
|
|
# MISSING="\${SHELL} $am_aux_dir/missing" |
| 370 |
|
|
# This will work as long as MISSING is not called from configure, because |
| 371 |
|
|
# unfortunately $(top_srcdir) has no meaning in configure. |
| 372 |
|
|
# However there are other variables, like CC, which are often used in |
| 373 |
|
|
# configure, and could therefore not use this "fixed" $ac_aux_dir. |
| 374 |
|
|
# |
| 375 |
|
|
# Another solution, used here, is to always expand $ac_aux_dir to an |
| 376 |
|
|
# absolute PATH. The drawback is that using absolute paths prevent a |
| 377 |
|
|
# configured tree to be moved without reconfiguration. |
| 378 |
|
|
|
| 379 |
|
|
# Rely on autoconf to set up CDPATH properly. |
| 380 |
|
|
AC_PREREQ([2.50]) |
| 381 |
|
|
|
| 382 |
|
|
AC_DEFUN([AM_AUX_DIR_EXPAND], [ |
| 383 |
|
|
# expand $ac_aux_dir to an absolute path |
| 384 |
|
|
am_aux_dir=`cd $ac_aux_dir && pwd` |
| 385 |
|
|
]) |
| 386 |
|
|
|
| 387 |
|
|
# AM_PROG_INSTALL_SH |
| 388 |
|
|
# ------------------ |
| 389 |
|
|
# Define $install_sh. |
| 390 |
|
|
|
| 391 |
|
|
# Copyright 2001 Free Software Foundation, Inc. |
| 392 |
|
|
|
| 393 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 394 |
|
|
# it under the terms of the GNU General Public License as published by |
| 395 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 396 |
|
|
# any later version. |
| 397 |
|
|
|
| 398 |
|
|
# This program is distributed in the hope that it will be useful, |
| 399 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 400 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 401 |
|
|
# GNU General Public License for more details. |
| 402 |
|
|
|
| 403 |
|
|
# You should have received a copy of the GNU General Public License |
| 404 |
|
|
# along with this program; if not, write to the Free Software |
| 405 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 406 |
|
|
# 02111-1307, USA. |
| 407 |
|
|
|
| 408 |
|
|
AC_DEFUN([AM_PROG_INSTALL_SH], |
| 409 |
|
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 410 |
|
|
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 411 |
|
|
AC_SUBST(install_sh)]) |
| 412 |
|
|
|
| 413 |
|
|
# AM_PROG_INSTALL_STRIP |
| 414 |
|
|
|
| 415 |
|
|
# Copyright 2001 Free Software Foundation, Inc. |
| 416 |
|
|
|
| 417 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 418 |
|
|
# it under the terms of the GNU General Public License as published by |
| 419 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 420 |
|
|
# any later version. |
| 421 |
|
|
|
| 422 |
|
|
# This program is distributed in the hope that it will be useful, |
| 423 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 424 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 425 |
|
|
# GNU General Public License for more details. |
| 426 |
|
|
|
| 427 |
|
|
# You should have received a copy of the GNU General Public License |
| 428 |
|
|
# along with this program; if not, write to the Free Software |
| 429 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 430 |
|
|
# 02111-1307, USA. |
| 431 |
|
|
|
| 432 |
|
|
# One issue with vendor `install' (even GNU) is that you can't |
| 433 |
|
|
# specify the program used to strip binaries. This is especially |
| 434 |
|
|
# annoying in cross-compiling environments, where the build's strip |
| 435 |
|
|
# is unlikely to handle the host's binaries. |
| 436 |
|
|
# Fortunately install-sh will honor a STRIPPROG variable, so we |
| 437 |
|
|
# always use install-sh in `make install-strip', and initialize |
| 438 |
|
|
# STRIPPROG with the value of the STRIP variable (set by the user). |
| 439 |
|
|
AC_DEFUN([AM_PROG_INSTALL_STRIP], |
| 440 |
|
|
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
| 441 |
|
|
# Installed binaries are usually stripped using `strip' when the user |
| 442 |
|
|
# run `make install-strip'. However `strip' might not be the right |
| 443 |
|
|
# tool to use in cross-compilation environments, therefore Automake |
| 444 |
|
|
# will honor the `STRIP' environment variable to overrule this program. |
| 445 |
|
|
dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
| 446 |
|
|
if test "$cross_compiling" != no; then |
| 447 |
|
|
AC_CHECK_TOOL([STRIP], [strip], :) |
| 448 |
|
|
fi |
| 449 |
|
|
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 450 |
|
|
AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
| 451 |
|
|
|
| 452 |
|
|
# -*- Autoconf -*- |
| 453 |
|
|
# Copyright (C) 2003 Free Software Foundation, Inc. |
| 454 |
|
|
|
| 455 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 456 |
|
|
# it under the terms of the GNU General Public License as published by |
| 457 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 458 |
|
|
# any later version. |
| 459 |
|
|
|
| 460 |
|
|
# This program is distributed in the hope that it will be useful, |
| 461 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 462 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 463 |
|
|
# GNU General Public License for more details. |
| 464 |
|
|
|
| 465 |
|
|
# You should have received a copy of the GNU General Public License |
| 466 |
|
|
# along with this program; if not, write to the Free Software |
| 467 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 468 |
|
|
# 02111-1307, USA. |
| 469 |
|
|
|
| 470 |
|
|
# serial 1 |
| 471 |
|
|
|
| 472 |
|
|
# Check whether the underlying file-system supports filenames |
| 473 |
|
|
# with a leading dot. For instance MS-DOS doesn't. |
| 474 |
|
|
AC_DEFUN([AM_SET_LEADING_DOT], |
| 475 |
|
|
[rm -rf .tst 2>/dev/null |
| 476 |
|
|
mkdir .tst 2>/dev/null |
| 477 |
|
|
if test -d .tst; then |
| 478 |
|
|
am__leading_dot=. |
| 479 |
|
|
else |
| 480 |
|
|
am__leading_dot=_ |
| 481 |
|
|
fi |
| 482 |
|
|
rmdir .tst 2>/dev/null |
| 483 |
|
|
AC_SUBST([am__leading_dot])]) |
| 484 |
|
|
|
| 485 |
|
|
# serial 5 -*- Autoconf -*- |
| 486 |
|
|
|
| 487 |
|
|
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
| 488 |
|
|
|
| 489 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 490 |
|
|
# it under the terms of the GNU General Public License as published by |
| 491 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 492 |
|
|
# any later version. |
| 493 |
|
|
|
| 494 |
|
|
# This program is distributed in the hope that it will be useful, |
| 495 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 496 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 497 |
|
|
# GNU General Public License for more details. |
| 498 |
|
|
|
| 499 |
|
|
# You should have received a copy of the GNU General Public License |
| 500 |
|
|
# along with this program; if not, write to the Free Software |
| 501 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 502 |
|
|
# 02111-1307, USA. |
| 503 |
|
|
|
| 504 |
|
|
|
| 505 |
|
|
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
| 506 |
|
|
# written in clear, in which case automake, when reading aclocal.m4, |
| 507 |
|
|
# will think it sees a *use*, and therefore will trigger all it's |
| 508 |
|
|
# C support machinery. Also note that it means that autoscan, seeing |
| 509 |
|
|
# CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
| 510 |
|
|
|
| 511 |
|
|
|
| 512 |
|
|
|
| 513 |
|
|
# _AM_DEPENDENCIES(NAME) |
| 514 |
|
|
# ---------------------- |
| 515 |
|
|
# See how the compiler implements dependency checking. |
| 516 |
|
|
# NAME is "CC", "CXX", "GCJ", or "OBJC". |
| 517 |
|
|
# We try a few techniques and use that to set a single cache variable. |
| 518 |
|
|
# |
| 519 |
|
|
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
| 520 |
|
|
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
| 521 |
|
|
# dependency, and given that the user is not expected to run this macro, |
| 522 |
|
|
# just rely on AC_PROG_CC. |
| 523 |
|
|
AC_DEFUN([_AM_DEPENDENCIES], |
| 524 |
|
|
[AC_REQUIRE([AM_SET_DEPDIR])dnl |
| 525 |
|
|
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
| 526 |
|
|
AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
| 527 |
|
|
AC_REQUIRE([AM_DEP_TRACK])dnl |
| 528 |
|
|
|
| 529 |
|
|
ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
| 530 |
|
|
[$1], CXX, [depcc="$CXX" am_compiler_list=], |
| 531 |
|
|
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
| 532 |
|
|
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
| 533 |
|
|
[depcc="$$1" am_compiler_list=]) |
| 534 |
|
|
|
| 535 |
|
|
AC_CACHE_CHECK([dependency style of $depcc], |
| 536 |
|
|
[am_cv_$1_dependencies_compiler_type], |
| 537 |
|
|
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 538 |
|
|
# We make a subdir and do the tests there. Otherwise we can end up |
| 539 |
|
|
# making bogus files that we don't know about and never remove. For |
| 540 |
|
|
# instance it was reported that on HP-UX the gcc test will end up |
| 541 |
|
|
# making a dummy file named `D' -- because `-MD' means `put the output |
| 542 |
|
|
# in D'. |
| 543 |
|
|
mkdir conftest.dir |
| 544 |
|
|
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 545 |
|
|
# using a relative directory. |
| 546 |
|
|
cp "$am_depcomp" conftest.dir |
| 547 |
|
|
cd conftest.dir |
| 548 |
|
|
# We will build objects and dependencies in a subdirectory because |
| 549 |
|
|
# it helps to detect inapplicable dependency modes. For instance |
| 550 |
|
|
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 551 |
|
|
# side effect of compilation, but ICC will put the dependencies in |
| 552 |
|
|
# the current directory while Tru64 will put them in the object |
| 553 |
|
|
# directory. |
| 554 |
|
|
mkdir sub |
| 555 |
|
|
|
| 556 |
|
|
am_cv_$1_dependencies_compiler_type=none |
| 557 |
|
|
if test "$am_compiler_list" = ""; then |
| 558 |
|
|
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
| 559 |
|
|
fi |
| 560 |
|
|
for depmode in $am_compiler_list; do |
| 561 |
|
|
# Setup a source with many dependencies, because some compilers |
| 562 |
|
|
# like to wrap large dependency lists on column 80 (with \), and |
| 563 |
|
|
# we should not choose a depcomp mode which is confused by this. |
| 564 |
|
|
# |
| 565 |
|
|
# We need to recreate these files for each test, as the compiler may |
| 566 |
|
|
# overwrite some of them when testing with obscure command lines. |
| 567 |
|
|
# This happens at least with the AIX C compiler. |
| 568 |
|
|
: > sub/conftest.c |
| 569 |
|
|
for i in 1 2 3 4 5 6; do |
| 570 |
|
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 571 |
|
|
: > sub/conftst$i.h |
| 572 |
|
|
done |
| 573 |
|
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 574 |
|
|
|
| 575 |
|
|
case $depmode in |
| 576 |
|
|
nosideeffect) |
| 577 |
|
|
# after this tag, mechanisms are not by side-effect, so they'll |
| 578 |
|
|
# only be used when explicitly requested |
| 579 |
|
|
if test "x$enable_dependency_tracking" = xyes; then |
| 580 |
|
|
continue |
| 581 |
|
|
else |
| 582 |
|
|
break |
| 583 |
|
|
fi |
| 584 |
|
|
;; |
| 585 |
|
|
none) break ;; |
| 586 |
|
|
esac |
| 587 |
|
|
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 588 |
|
|
# mode. It turns out that the SunPro C++ compiler does not properly |
| 589 |
|
|
# handle `-M -o', and we need to detect this. |
| 590 |
|
|
if depmode=$depmode \ |
| 591 |
|
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 592 |
|
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 593 |
|
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 594 |
|
|
>/dev/null 2>conftest.err && |
| 595 |
|
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 596 |
|
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 597 |
|
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 598 |
|
|
# icc doesn't choke on unknown options, it will just issue warnings |
| 599 |
|
|
# (even with -Werror). So we grep stderr for any message |
| 600 |
|
|
# that says an option was ignored. |
| 601 |
|
|
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
| 602 |
|
|
am_cv_$1_dependencies_compiler_type=$depmode |
| 603 |
|
|
break |
| 604 |
|
|
fi |
| 605 |
|
|
fi |
| 606 |
|
|
done |
| 607 |
|
|
|
| 608 |
|
|
cd .. |
| 609 |
|
|
rm -rf conftest.dir |
| 610 |
|
|
else |
| 611 |
|
|
am_cv_$1_dependencies_compiler_type=none |
| 612 |
|
|
fi |
| 613 |
|
|
]) |
| 614 |
|
|
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
| 615 |
|
|
AM_CONDITIONAL([am__fastdep$1], [ |
| 616 |
|
|
test "x$enable_dependency_tracking" != xno \ |
| 617 |
|
|
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
| 618 |
|
|
]) |
| 619 |
|
|
|
| 620 |
|
|
|
| 621 |
|
|
# AM_SET_DEPDIR |
| 622 |
|
|
# ------------- |
| 623 |
|
|
# Choose a directory name for dependency files. |
| 624 |
|
|
# This macro is AC_REQUIREd in _AM_DEPENDENCIES |
| 625 |
|
|
AC_DEFUN([AM_SET_DEPDIR], |
| 626 |
|
|
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
| 627 |
|
|
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
| 628 |
|
|
]) |
| 629 |
|
|
|
| 630 |
|
|
|
| 631 |
|
|
# AM_DEP_TRACK |
| 632 |
|
|
# ------------ |
| 633 |
|
|
AC_DEFUN([AM_DEP_TRACK], |
| 634 |
|
|
[AC_ARG_ENABLE(dependency-tracking, |
| 635 |
|
|
[ --disable-dependency-tracking Speeds up one-time builds |
| 636 |
|
|
--enable-dependency-tracking Do not reject slow dependency extractors]) |
| 637 |
|
|
if test "x$enable_dependency_tracking" != xno; then |
| 638 |
|
|
am_depcomp="$ac_aux_dir/depcomp" |
| 639 |
|
|
AMDEPBACKSLASH='\' |
| 640 |
|
|
fi |
| 641 |
|
|
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
| 642 |
|
|
AC_SUBST([AMDEPBACKSLASH]) |
| 643 |
|
|
]) |
| 644 |
|
|
|
| 645 |
|
|
# Generate code to set up dependency tracking. -*- Autoconf -*- |
| 646 |
|
|
|
| 647 |
|
|
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
| 648 |
|
|
|
| 649 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 650 |
|
|
# it under the terms of the GNU General Public License as published by |
| 651 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 652 |
|
|
# any later version. |
| 653 |
|
|
|
| 654 |
|
|
# This program is distributed in the hope that it will be useful, |
| 655 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 656 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 657 |
|
|
# GNU General Public License for more details. |
| 658 |
|
|
|
| 659 |
|
|
# You should have received a copy of the GNU General Public License |
| 660 |
|
|
# along with this program; if not, write to the Free Software |
| 661 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 662 |
|
|
# 02111-1307, USA. |
| 663 |
|
|
|
| 664 |
|
|
#serial 2 |
| 665 |
|
|
|
| 666 |
|
|
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
| 667 |
|
|
# ------------------------------ |
| 668 |
|
|
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 669 |
|
|
[for mf in $CONFIG_FILES; do |
| 670 |
|
|
# Strip MF so we end up with the name of the file. |
| 671 |
|
|
mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 672 |
|
|
# Check whether this is an Automake generated Makefile or not. |
| 673 |
|
|
# We used to match only the files named `Makefile.in', but |
| 674 |
|
|
# some people rename them; so instead we look at the file content. |
| 675 |
|
|
# Grep'ing the first line is not enough: some people post-process |
| 676 |
|
|
# each Makefile.in and add a new line on top of each file to say so. |
| 677 |
|
|
# So let's grep whole file. |
| 678 |
|
|
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 679 |
|
|
dirpart=`AS_DIRNAME("$mf")` |
| 680 |
|
|
else |
| 681 |
|
|
continue |
| 682 |
|
|
fi |
| 683 |
|
|
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue |
| 684 |
|
|
# Extract the definition of DEP_FILES from the Makefile without |
| 685 |
|
|
# running `make'. |
| 686 |
|
|
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 687 |
|
|
test -z "$DEPDIR" && continue |
| 688 |
|
|
# When using ansi2knr, U may be empty or an underscore; expand it |
| 689 |
|
|
U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 690 |
|
|
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 691 |
|
|
# We invoke sed twice because it is the simplest approach to |
| 692 |
|
|
# changing $(DEPDIR) to its actual value in the expansion. |
| 693 |
|
|
for file in `sed -n -e ' |
| 694 |
|
|
/^DEP_FILES = .*\\\\$/ { |
| 695 |
|
|
s/^DEP_FILES = // |
| 696 |
|
|
:loop |
| 697 |
|
|
s/\\\\$// |
| 698 |
|
|
p |
| 699 |
|
|
n |
| 700 |
|
|
/\\\\$/ b loop |
| 701 |
|
|
p |
| 702 |
|
|
} |
| 703 |
|
|
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 704 |
|
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 705 |
|
|
# Make sure the directory exists. |
| 706 |
|
|
test -f "$dirpart/$file" && continue |
| 707 |
|
|
fdir=`AS_DIRNAME(["$file"])` |
| 708 |
|
|
AS_MKDIR_P([$dirpart/$fdir]) |
| 709 |
|
|
# echo "creating $dirpart/$file" |
| 710 |
|
|
echo '# dummy' > "$dirpart/$file" |
| 711 |
|
|
done |
| 712 |
|
|
done |
| 713 |
|
|
])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
| 714 |
|
|
|
| 715 |
|
|
|
| 716 |
|
|
# AM_OUTPUT_DEPENDENCY_COMMANDS |
| 717 |
|
|
# ----------------------------- |
| 718 |
|
|
# This macro should only be invoked once -- use via AC_REQUIRE. |
| 719 |
|
|
# |
| 720 |
|
|
# This code is only required when automatic dependency tracking |
| 721 |
|
|
# is enabled. FIXME. This creates each `.P' file that we will |
| 722 |
|
|
# need in order to bootstrap the dependency handling code. |
| 723 |
|
|
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 724 |
|
|
[AC_CONFIG_COMMANDS([depfiles], |
| 725 |
|
|
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 726 |
|
|
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
| 727 |
|
|
]) |
| 728 |
|
|
|
| 729 |
|
|
# Check to see how 'make' treats includes. -*- Autoconf -*- |
| 730 |
|
|
|
| 731 |
|
|
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. |
| 732 |
|
|
|
| 733 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 734 |
|
|
# it under the terms of the GNU General Public License as published by |
| 735 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 736 |
|
|
# any later version. |
| 737 |
|
|
|
| 738 |
|
|
# This program is distributed in the hope that it will be useful, |
| 739 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 740 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 741 |
|
|
# GNU General Public License for more details. |
| 742 |
|
|
|
| 743 |
|
|
# You should have received a copy of the GNU General Public License |
| 744 |
|
|
# along with this program; if not, write to the Free Software |
| 745 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 746 |
|
|
# 02111-1307, USA. |
| 747 |
|
|
|
| 748 |
|
|
# serial 2 |
| 749 |
|
|
|
| 750 |
|
|
# AM_MAKE_INCLUDE() |
| 751 |
|
|
# ----------------- |
| 752 |
|
|
# Check to see how make treats includes. |
| 753 |
|
|
AC_DEFUN([AM_MAKE_INCLUDE], |
| 754 |
|
|
[am_make=${MAKE-make} |
| 755 |
|
|
cat > confinc << 'END' |
| 756 |
|
|
am__doit: |
| 757 |
|
|
@echo done |
| 758 |
|
|
.PHONY: am__doit |
| 759 |
|
|
END |
| 760 |
|
|
# If we don't find an include directive, just comment out the code. |
| 761 |
|
|
AC_MSG_CHECKING([for style of include used by $am_make]) |
| 762 |
|
|
am__include="#" |
| 763 |
|
|
am__quote= |
| 764 |
|
|
_am_result=none |
| 765 |
|
|
# First try GNU make style include. |
| 766 |
|
|
echo "include confinc" > confmf |
| 767 |
|
|
# We grep out `Entering directory' and `Leaving directory' |
| 768 |
|
|
# messages which can occur if `w' ends up in MAKEFLAGS. |
| 769 |
|
|
# In particular we don't look at `^make:' because GNU make might |
| 770 |
|
|
# be invoked under some other name (usually "gmake"), in which |
| 771 |
|
|
# case it prints its new name instead of `make'. |
| 772 |
|
|
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 773 |
|
|
am__include=include |
| 774 |
|
|
am__quote= |
| 775 |
|
|
_am_result=GNU |
| 776 |
|
|
fi |
| 777 |
|
|
# Now try BSD make style include. |
| 778 |
|
|
if test "$am__include" = "#"; then |
| 779 |
|
|
echo '.include "confinc"' > confmf |
| 780 |
|
|
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 781 |
|
|
am__include=.include |
| 782 |
|
|
am__quote="\"" |
| 783 |
|
|
_am_result=BSD |
| 784 |
|
|
fi |
| 785 |
|
|
fi |
| 786 |
|
|
AC_SUBST([am__include]) |
| 787 |
|
|
AC_SUBST([am__quote]) |
| 788 |
|
|
AC_MSG_RESULT([$_am_result]) |
| 789 |
|
|
rm -f confinc confmf |
| 790 |
|
|
]) |
| 791 |
|
|
|
| 792 |
|
|
# AM_CONDITIONAL -*- Autoconf -*- |
| 793 |
|
|
|
| 794 |
|
|
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc. |
| 795 |
|
|
|
| 796 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 797 |
|
|
# it under the terms of the GNU General Public License as published by |
| 798 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 799 |
|
|
# any later version. |
| 800 |
|
|
|
| 801 |
|
|
# This program is distributed in the hope that it will be useful, |
| 802 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 803 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 804 |
|
|
# GNU General Public License for more details. |
| 805 |
|
|
|
| 806 |
|
|
# You should have received a copy of the GNU General Public License |
| 807 |
|
|
# along with this program; if not, write to the Free Software |
| 808 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 809 |
|
|
# 02111-1307, USA. |
| 810 |
|
|
|
| 811 |
|
|
# serial 5 |
| 812 |
|
|
|
| 813 |
|
|
AC_PREREQ(2.52) |
| 814 |
|
|
|
| 815 |
|
|
# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
| 816 |
|
|
# ------------------------------------- |
| 817 |
|
|
# Define a conditional. |
| 818 |
|
|
AC_DEFUN([AM_CONDITIONAL], |
| 819 |
|
|
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
| 820 |
|
|
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
| 821 |
|
|
AC_SUBST([$1_TRUE]) |
| 822 |
|
|
AC_SUBST([$1_FALSE]) |
| 823 |
|
|
if $2; then |
| 824 |
|
|
$1_TRUE= |
| 825 |
|
|
$1_FALSE='#' |
| 826 |
|
|
else |
| 827 |
|
|
$1_TRUE='#' |
| 828 |
|
|
$1_FALSE= |
| 829 |
|
|
fi |
| 830 |
|
|
AC_CONFIG_COMMANDS_PRE( |
| 831 |
|
|
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
| 832 |
|
|
AC_MSG_ERROR([conditional "$1" was never defined. |
| 833 |
|
|
Usually this means the macro was only invoked conditionally.]) |
| 834 |
|
|
fi])]) |
| 835 |
|
|
|
| 836 |
|
|
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- |
| 837 |
|
|
|
| 838 |
|
|
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. |
| 839 |
|
|
|
| 840 |
|
|
# This program is free software; you can redistribute it and/or modify |
| 841 |
|
|
# it under the terms of the GNU General Public License as published by |
| 842 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
| 843 |
|
|
# any later version. |
| 844 |
|
|
|
| 845 |
|
|
# This program is distributed in the hope that it will be useful, |
| 846 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 847 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 848 |
|
|
# GNU General Public License for more details. |
| 849 |
|
|
|
| 850 |
|
|
# You should have received a copy of the GNU General Public License |
| 851 |
|
|
# along with this program; if not, write to the Free Software |
| 852 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 853 |
|
|
# 02111-1307, USA. |
| 854 |
|
|
|
| 855 |
|
|
AC_PREREQ([2.52]) |
| 856 |
|
|
|
| 857 |
|
|
# serial 6 |
| 858 |
|
|
|
| 859 |
|
|
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
| 860 |
|
|
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
| 861 |
|
|
|
| 862 |
|
|
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
| 863 |
|
|
# Modified for unofficial support of icc and icpc on FreeBSD |
| 864 |
|
|
# (By Yoshihiro OKUMURA) |
| 865 |
|
|
# serial 47 AC_PROG_LIBTOOL |
| 866 |
|
|
|
| 867 |
|
|
|
| 868 |
|
|
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
| 869 |
|
|
# ----------------------------------------------------------- |
| 870 |
|
|
# If this macro is not defined by Autoconf, define it here. |
| 871 |
|
|
m4_ifdef([AC_PROVIDE_IFELSE], |
| 872 |
|
|
[], |
| 873 |
|
|
[m4_define([AC_PROVIDE_IFELSE], |
| 874 |
|
|
[m4_ifdef([AC_PROVIDE_$1], |
| 875 |
|
|
[$2], [$3])])]) |
| 876 |
|
|
|
| 877 |
|
|
|
| 878 |
|
|
# AC_PROG_LIBTOOL |
| 879 |
|
|
# --------------- |
| 880 |
|
|
AC_DEFUN([AC_PROG_LIBTOOL], |
| 881 |
|
|
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl |
| 882 |
|
|
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX |
| 883 |
|
|
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. |
| 884 |
|
|
AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 885 |
|
|
[AC_LIBTOOL_CXX], |
| 886 |
|
|
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX |
| 887 |
|
|
])]) |
| 888 |
|
|
dnl And a similar setup for Fortran 77 support |
| 889 |
|
|
AC_PROVIDE_IFELSE([AC_PROG_F77], |
| 890 |
|
|
[AC_LIBTOOL_F77], |
| 891 |
|
|
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 |
| 892 |
|
|
])]) |
| 893 |
|
|
|
| 894 |
|
|
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. |
| 895 |
|
|
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run |
| 896 |
|
|
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. |
| 897 |
|
|
AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
| 898 |
|
|
[AC_LIBTOOL_GCJ], |
| 899 |
|
|
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
| 900 |
|
|
[AC_LIBTOOL_GCJ], |
| 901 |
|
|
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], |
| 902 |
|
|
[AC_LIBTOOL_GCJ], |
| 903 |
|
|
[ifdef([AC_PROG_GCJ], |
| 904 |
|
|
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
| 905 |
|
|
ifdef([A][M_PROG_GCJ], |
| 906 |
|
|
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
| 907 |
|
|
ifdef([LT_AC_PROG_GCJ], |
| 908 |
|
|
[define([LT_AC_PROG_GCJ], |
| 909 |
|
|
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
| 910 |
|
|
])])# AC_PROG_LIBTOOL |
| 911 |
|
|
|
| 912 |
|
|
|
| 913 |
|
|
# _AC_PROG_LIBTOOL |
| 914 |
|
|
# ---------------- |
| 915 |
|
|
AC_DEFUN([_AC_PROG_LIBTOOL], |
| 916 |
|
|
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
| 917 |
|
|
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl |
| 918 |
|
|
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl |
| 919 |
|
|
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl |
| 920 |
|
|
|
| 921 |
|
|
# This can be used to rebuild libtool when needed |
| 922 |
|
|
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 923 |
|
|
|
| 924 |
|
|
# Always use our own libtool. |
| 925 |
|
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 926 |
|
|
AC_SUBST(LIBTOOL)dnl |
| 927 |
|
|
|
| 928 |
|
|
# Prevent multiple expansion |
| 929 |
|
|
define([AC_PROG_LIBTOOL], []) |
| 930 |
|
|
])# _AC_PROG_LIBTOOL |
| 931 |
|
|
|
| 932 |
|
|
|
| 933 |
|
|
# AC_LIBTOOL_SETUP |
| 934 |
|
|
# ---------------- |
| 935 |
|
|
AC_DEFUN([AC_LIBTOOL_SETUP], |
| 936 |
|
|
[AC_PREREQ(2.50)dnl |
| 937 |
|
|
AC_REQUIRE([AC_ENABLE_SHARED])dnl |
| 938 |
|
|
AC_REQUIRE([AC_ENABLE_STATIC])dnl |
| 939 |
|
|
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl |
| 940 |
|
|
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 941 |
|
|
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 942 |
|
|
AC_REQUIRE([AC_PROG_CC])dnl |
| 943 |
|
|
AC_REQUIRE([AC_PROG_LD])dnl |
| 944 |
|
|
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
| 945 |
|
|
AC_REQUIRE([AC_PROG_NM])dnl |
| 946 |
|
|
|
| 947 |
|
|
AC_REQUIRE([AC_PROG_LN_S])dnl |
| 948 |
|
|
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
| 949 |
|
|
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 950 |
|
|
AC_REQUIRE([AC_OBJEXT])dnl |
| 951 |
|
|
AC_REQUIRE([AC_EXEEXT])dnl |
| 952 |
|
|
dnl |
| 953 |
|
|
|
| 954 |
|
|
AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 955 |
|
|
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
| 956 |
|
|
AC_LIBTOOL_OBJDIR |
| 957 |
|
|
|
| 958 |
|
|
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| 959 |
|
|
_LT_AC_PROG_ECHO_BACKSLASH |
| 960 |
|
|
|
| 961 |
|
|
case $host_os in |
| 962 |
|
|
aix3*) |
| 963 |
|
|
# AIX sometimes has problems with the GCC collect2 program. For some |
| 964 |
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 965 |
|
|
# vanish in a puff of smoke. |
| 966 |
|
|
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 967 |
|
|
COLLECT_NAMES= |
| 968 |
|
|
export COLLECT_NAMES |
| 969 |
|
|
fi |
| 970 |
|
|
;; |
| 971 |
|
|
esac |
| 972 |
|
|
|
| 973 |
|
|
# Sed substitution that helps us do robust quoting. It backslashifies |
| 974 |
|
|
# metacharacters that are still active within double-quoted strings. |
| 975 |
|
|
Xsed='sed -e s/^X//' |
| 976 |
|
|
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
| 977 |
|
|
|
| 978 |
|
|
# Same as above, but do not quote variable references. |
| 979 |
|
|
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
| 980 |
|
|
|
| 981 |
|
|
# Sed substitution to delay expansion of an escaped shell variable in a |
| 982 |
|
|
# double_quote_subst'ed string. |
| 983 |
|
|
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 984 |
|
|
|
| 985 |
|
|
# Sed substitution to avoid accidental globbing in evaled expressions |
| 986 |
|
|
no_glob_subst='s/\*/\\\*/g' |
| 987 |
|
|
|
| 988 |
|
|
# Constants: |
| 989 |
|
|
rm="rm -f" |
| 990 |
|
|
|
| 991 |
|
|
# Global variables: |
| 992 |
|
|
default_ofile=libtool |
| 993 |
|
|
can_build_shared=yes |
| 994 |
|
|
|
| 995 |
|
|
# All known linkers require a `.a' archive for static linking (except M$VC, |
| 996 |
|
|
# which needs '.lib'). |
| 997 |
|
|
libext=a |
| 998 |
|
|
ltmain="$ac_aux_dir/ltmain.sh" |
| 999 |
|
|
ofile="$default_ofile" |
| 1000 |
|
|
with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 1001 |
|
|
|
| 1002 |
|
|
AC_CHECK_TOOL(AR, ar, false) |
| 1003 |
|
|
AC_CHECK_TOOL(RANLIB, ranlib, :) |
| 1004 |
|
|
AC_CHECK_TOOL(STRIP, strip, :) |
| 1005 |
|
|
|
| 1006 |
|
|
old_CC="$CC" |
| 1007 |
|
|
old_CFLAGS="$CFLAGS" |
| 1008 |
|
|
|
| 1009 |
|
|
# Set sane defaults for various variables |
| 1010 |
|
|
test -z "$AR" && AR=ar |
| 1011 |
|
|
test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 1012 |
|
|
test -z "$AS" && AS=as |
| 1013 |
|
|
test -z "$CC" && CC=cc |
| 1014 |
|
|
test -z "$LTCC" && LTCC=$CC |
| 1015 |
|
|
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 1016 |
|
|
test -z "$LD" && LD=ld |
| 1017 |
|
|
test -z "$LN_S" && LN_S="ln -s" |
| 1018 |
|
|
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 1019 |
|
|
test -z "$NM" && NM=nm |
| 1020 |
|
|
test -z "$SED" && SED=sed |
| 1021 |
|
|
test -z "$OBJDUMP" && OBJDUMP=objdump |
| 1022 |
|
|
test -z "$RANLIB" && RANLIB=: |
| 1023 |
|
|
test -z "$STRIP" && STRIP=: |
| 1024 |
|
|
test -z "$ac_objext" && ac_objext=o |
| 1025 |
|
|
|
| 1026 |
|
|
# Determine commands to create old-style static archives. |
| 1027 |
|
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 1028 |
|
|
old_postinstall_cmds='chmod 644 $oldlib' |
| 1029 |
|
|
old_postuninstall_cmds= |
| 1030 |
|
|
|
| 1031 |
|
|
if test -n "$RANLIB"; then |
| 1032 |
|
|
case $host_os in |
| 1033 |
|
|
openbsd*) |
| 1034 |
|
|
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 1035 |
|
|
;; |
| 1036 |
|
|
*) |
| 1037 |
|
|
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 1038 |
|
|
;; |
| 1039 |
|
|
esac |
| 1040 |
|
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 1041 |
|
|
fi |
| 1042 |
|
|
|
| 1043 |
|
|
# Only perform the check for file, if the check method requires it |
| 1044 |
|
|
case $deplibs_check_method in |
| 1045 |
|
|
file_magic*) |
| 1046 |
|
|
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 1047 |
|
|
AC_PATH_MAGIC |
| 1048 |
|
|
fi |
| 1049 |
|
|
;; |
| 1050 |
|
|
esac |
| 1051 |
|
|
|
| 1052 |
|
|
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
| 1053 |
|
|
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
| 1054 |
|
|
enable_win32_dll=yes, enable_win32_dll=no) |
| 1055 |
|
|
|
| 1056 |
|
|
AC_ARG_ENABLE([libtool-lock], |
| 1057 |
|
|
[AC_HELP_STRING([--disable-libtool-lock], |
| 1058 |
|
|
[avoid locking (might break parallel builds)])]) |
| 1059 |
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 1060 |
|
|
|
| 1061 |
|
|
AC_ARG_WITH([pic], |
| 1062 |
|
|
[AC_HELP_STRING([--with-pic], |
| 1063 |
|
|
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
| 1064 |
|
|
[pic_mode="$withval"], |
| 1065 |
|
|
[pic_mode=default]) |
| 1066 |
|
|
test -z "$pic_mode" && pic_mode=default |
| 1067 |
|
|
|
| 1068 |
|
|
# Use C for the default configuration in the libtool script |
| 1069 |
|
|
tagname= |
| 1070 |
|
|
AC_LIBTOOL_LANG_C_CONFIG |
| 1071 |
|
|
_LT_AC_TAGCONFIG |
| 1072 |
|
|
])# AC_LIBTOOL_SETUP |
| 1073 |
|
|
|
| 1074 |
|
|
|
| 1075 |
|
|
# _LT_AC_SYS_COMPILER |
| 1076 |
|
|
# ------------------- |
| 1077 |
|
|
AC_DEFUN([_LT_AC_SYS_COMPILER], |
| 1078 |
|
|
[AC_REQUIRE([AC_PROG_CC])dnl |
| 1079 |
|
|
|
| 1080 |
|
|
# If no C compiler was specified, use CC. |
| 1081 |
|
|
LTCC=${LTCC-"$CC"} |
| 1082 |
|
|
|
| 1083 |
|
|
# Allow CC to be a program name with arguments. |
| 1084 |
|
|
compiler=$CC |
| 1085 |
|
|
])# _LT_AC_SYS_COMPILER |
| 1086 |
|
|
|
| 1087 |
|
|
|
| 1088 |
|
|
# _LT_AC_SYS_LIBPATH_AIX |
| 1089 |
|
|
# ---------------------- |
| 1090 |
|
|
# Links a minimal program and checks the executable |
| 1091 |
|
|
# for the system default hardcoded library path. In most cases, |
| 1092 |
|
|
# this is /usr/lib:/lib, but when the MPI compilers are used |
| 1093 |
|
|
# the location of the communication and MPI libs are included too. |
| 1094 |
|
|
# If we don't find anything, use the default library path according |
| 1095 |
|
|
# to the aix ld manual. |
| 1096 |
|
|
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], |
| 1097 |
|
|
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
| 1098 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 1099 |
|
|
}'` |
| 1100 |
|
|
# Check for a 64-bit object if we didn't find anything. |
| 1101 |
|
|
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; } |
| 1102 |
|
|
}'`; fi],[]) |
| 1103 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 1104 |
|
|
])# _LT_AC_SYS_LIBPATH_AIX |
| 1105 |
|
|
|
| 1106 |
|
|
|
| 1107 |
|
|
# _LT_AC_SHELL_INIT(ARG) |
| 1108 |
|
|
# ---------------------- |
| 1109 |
|
|
AC_DEFUN([_LT_AC_SHELL_INIT], |
| 1110 |
|
|
[ifdef([AC_DIVERSION_NOTICE], |
| 1111 |
|
|
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
| 1112 |
|
|
[AC_DIVERT_PUSH(NOTICE)]) |
| 1113 |
|
|
$1 |
| 1114 |
|
|
AC_DIVERT_POP |
| 1115 |
|
|
])# _LT_AC_SHELL_INIT |
| 1116 |
|
|
|
| 1117 |
|
|
|
| 1118 |
|
|
# _LT_AC_PROG_ECHO_BACKSLASH |
| 1119 |
|
|
# -------------------------- |
| 1120 |
|
|
# Add some code to the start of the generated configure script which |
| 1121 |
|
|
# will find an echo command which doesn't interpret backslashes. |
| 1122 |
|
|
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
| 1123 |
|
|
[_LT_AC_SHELL_INIT([ |
| 1124 |
|
|
# Check that we are running under the correct shell. |
| 1125 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh} |
| 1126 |
|
|
|
| 1127 |
|
|
case X$ECHO in |
| 1128 |
|
|
X*--fallback-echo) |
| 1129 |
|
|
# Remove one level of quotation (which was required for Make). |
| 1130 |
|
|
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
| 1131 |
|
|
;; |
| 1132 |
|
|
esac |
| 1133 |
|
|
|
| 1134 |
|
|
echo=${ECHO-echo} |
| 1135 |
|
|
if test "X[$]1" = X--no-reexec; then |
| 1136 |
|
|
# Discard the --no-reexec flag, and continue. |
| 1137 |
|
|
shift |
| 1138 |
|
|
elif test "X[$]1" = X--fallback-echo; then |
| 1139 |
|
|
# Avoid inline document here, it may be left over |
| 1140 |
|
|
: |
| 1141 |
|
|
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 1142 |
|
|
# Yippee, $echo works! |
| 1143 |
|
|
: |
| 1144 |
|
|
else |
| 1145 |
|
|
# Restart under the correct shell. |
| 1146 |
|
|
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
| 1147 |
|
|
fi |
| 1148 |
|
|
|
| 1149 |
|
|
if test "X[$]1" = X--fallback-echo; then |
| 1150 |
|
|
# used as fallback echo |
| 1151 |
|
|
shift |
| 1152 |
|
|
cat <<EOF |
| 1153 |
|
|
[$]* |
| 1154 |
|
|
EOF |
| 1155 |
|
|
exit 0 |
| 1156 |
|
|
fi |
| 1157 |
|
|
|
| 1158 |
|
|
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 1159 |
|
|
# if CDPATH is set. |
| 1160 |
|
|
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 1161 |
|
|
|
| 1162 |
|
|
if test -z "$ECHO"; then |
| 1163 |
|
|
if test "X${echo_test_string+set}" != Xset; then |
| 1164 |
|
|
# find a string as large as possible, as long as the shell can cope with it |
| 1165 |
|
|
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
| 1166 |
|
|
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 1167 |
|
|
if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 1168 |
|
|
echo_test_string="`eval $cmd`" && |
| 1169 |
|
|
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 1170 |
|
|
then |
| 1171 |
|
|
break |
| 1172 |
|
|
fi |
| 1173 |
|
|
done |
| 1174 |
|
|
fi |
| 1175 |
|
|
|
| 1176 |
|
|
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 1177 |
|
|
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 1178 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 1179 |
|
|
: |
| 1180 |
|
|
else |
| 1181 |
|
|
# The Solaris, AIX, and Digital Unix default echo programs unquote |
| 1182 |
|
|
# backslashes. This makes it impossible to quote backslashes using |
| 1183 |
|
|
# echo "$something" | sed 's/\\/\\\\/g' |
| 1184 |
|
|
# |
| 1185 |
|
|
# So, first we look for a working echo in the user's PATH. |
| 1186 |
|
|
|
| 1187 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 1188 |
|
|
for dir in $PATH /usr/ucb; do |
| 1189 |
|
|
IFS="$lt_save_ifs" |
| 1190 |
|
|
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 1191 |
|
|
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 1192 |
|
|
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 1193 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 1194 |
|
|
echo="$dir/echo" |
| 1195 |
|
|
break |
| 1196 |
|
|
fi |
| 1197 |
|
|
done |
| 1198 |
|
|
IFS="$lt_save_ifs" |
| 1199 |
|
|
|
| 1200 |
|
|
if test "X$echo" = Xecho; then |
| 1201 |
|
|
# We didn't find a better echo, so look for alternatives. |
| 1202 |
|
|
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 1203 |
|
|
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 1204 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 1205 |
|
|
# This shell has a builtin print -r that does the trick. |
| 1206 |
|
|
echo='print -r' |
| 1207 |
|
|
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 1208 |
|
|
test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 1209 |
|
|
# If we have ksh, try running configure again with it. |
| 1210 |
|
|
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 1211 |
|
|
export ORIGINAL_CONFIG_SHELL |
| 1212 |
|
|
CONFIG_SHELL=/bin/ksh |
| 1213 |
|
|
export CONFIG_SHELL |
| 1214 |
|
|
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
| 1215 |
|
|
else |
| 1216 |
|
|
# Try using printf. |
| 1217 |
|
|
echo='printf %s\n' |
| 1218 |
|
|
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 1219 |
|
|
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 1220 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 1221 |
|
|
# Cool, printf works |
| 1222 |
|
|
: |
| 1223 |
|
|
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
| 1224 |
|
|
test "X$echo_testing_string" = 'X\t' && |
| 1225 |
|
|
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 1226 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 1227 |
|
|
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 1228 |
|
|
export CONFIG_SHELL |
| 1229 |
|
|
SHELL="$CONFIG_SHELL" |
| 1230 |
|
|
export SHELL |
| 1231 |
|
|
echo="$CONFIG_SHELL [$]0 --fallback-echo" |
| 1232 |
|
|
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
| 1233 |
|
|
test "X$echo_testing_string" = 'X\t' && |
| 1234 |
|
|
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 1235 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 1236 |
|
|
echo="$CONFIG_SHELL [$]0 --fallback-echo" |
| 1237 |
|
|
else |
| 1238 |
|
|
# maybe with a smaller string... |
| 1239 |
|
|
prev=: |
| 1240 |
|
|
|
| 1241 |
|
|
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
| 1242 |
|
|
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 1243 |
|
|
then |
| 1244 |
|
|
break |
| 1245 |
|
|
fi |
| 1246 |
|
|
prev="$cmd" |
| 1247 |
|
|
done |
| 1248 |
|
|
|
| 1249 |
|
|
if test "$prev" != 'sed 50q "[$]0"'; then |
| 1250 |
|
|
echo_test_string=`eval $prev` |
| 1251 |
|
|
export echo_test_string |
| 1252 |
|
|
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
| 1253 |
|
|
else |
| 1254 |
|
|
# Oops. We lost completely, so just stick with echo. |
| 1255 |
|
|
echo=echo |
| 1256 |
|
|
fi |
| 1257 |
|
|
fi |
| 1258 |
|
|
fi |
| 1259 |
|
|
fi |
| 1260 |
|
|
fi |
| 1261 |
|
|
fi |
| 1262 |
|
|
|
| 1263 |
|
|
# Copy echo and quote the copy suitably for passing to libtool from |
| 1264 |
|
|
# the Makefile, instead of quoting the original, which is used later. |
| 1265 |
|
|
ECHO=$echo |
| 1266 |
|
|
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
| 1267 |
|
|
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
| 1268 |
|
|
fi |
| 1269 |
|
|
|
| 1270 |
|
|
AC_SUBST(ECHO) |
| 1271 |
|
|
])])# _LT_AC_PROG_ECHO_BACKSLASH |
| 1272 |
|
|
|
| 1273 |
|
|
|
| 1274 |
|
|
# _LT_AC_LOCK |
| 1275 |
|
|
# ----------- |
| 1276 |
|
|
AC_DEFUN([_LT_AC_LOCK], |
| 1277 |
|
|
[AC_ARG_ENABLE([libtool-lock], |
| 1278 |
|
|
[AC_HELP_STRING([--disable-libtool-lock], |
| 1279 |
|
|
[avoid locking (might break parallel builds)])]) |
| 1280 |
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 1281 |
|
|
|
| 1282 |
|
|
# Some flags need to be propagated to the compiler or linker for good |
| 1283 |
|
|
# libtool support. |
| 1284 |
|
|
case $host in |
| 1285 |
|
|
ia64-*-hpux*) |
| 1286 |
|
|
# Find out which ABI we are using. |
| 1287 |
|
|
echo 'int i;' > conftest.$ac_ext |
| 1288 |
|
|
if AC_TRY_EVAL(ac_compile); then |
| 1289 |
|
|
case `/usr/bin/file conftest.$ac_objext` in |
| 1290 |
|
|
*ELF-32*) |
| 1291 |
|
|
HPUX_IA64_MODE="32" |
| 1292 |
|
|
;; |
| 1293 |
|
|
*ELF-64*) |
| 1294 |
|
|
HPUX_IA64_MODE="64" |
| 1295 |
|
|
;; |
| 1296 |
|
|
esac |
| 1297 |
|
|
fi |
| 1298 |
|
|
rm -rf conftest* |
| 1299 |
|
|
;; |
| 1300 |
|
|
*-*-irix6*) |
| 1301 |
|
|
# Find out which ABI we are using. |
| 1302 |
|
|
echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
| 1303 |
|
|
if AC_TRY_EVAL(ac_compile); then |
| 1304 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 1305 |
|
|
case `/usr/bin/file conftest.$ac_objext` in |
| 1306 |
|
|
*32-bit*) |
| 1307 |
|
|
LD="${LD-ld} -melf32bsmip" |
| 1308 |
|
|
;; |
| 1309 |
|
|
*N32*) |
| 1310 |
|
|
LD="${LD-ld} -melf32bmipn32" |
| 1311 |
|
|
;; |
| 1312 |
|
|
*64-bit*) |
| 1313 |
|
|
LD="${LD-ld} -melf64bmip" |
| 1314 |
|
|
;; |
| 1315 |
|
|
esac |
| 1316 |
|
|
else |
| 1317 |
|
|
case `/usr/bin/file conftest.$ac_objext` in |
| 1318 |
|
|
*32-bit*) |
| 1319 |
|
|
LD="${LD-ld} -32" |
| 1320 |
|
|
;; |
| 1321 |
|
|
*N32*) |
| 1322 |
|
|
LD="${LD-ld} -n32" |
| 1323 |
|
|
;; |
| 1324 |
|
|
*64-bit*) |
| 1325 |
|
|
LD="${LD-ld} -64" |
| 1326 |
|
|
;; |
| 1327 |
|
|
esac |
| 1328 |
|
|
fi |
| 1329 |
|
|
fi |
| 1330 |
|
|
rm -rf conftest* |
| 1331 |
|
|
;; |
| 1332 |
|
|
|
| 1333 |
|
|
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 1334 |
|
|
# Find out which ABI we are using. |
| 1335 |
|
|
echo 'int i;' > conftest.$ac_ext |
| 1336 |
|
|
if AC_TRY_EVAL(ac_compile); then |
| 1337 |
|
|
case "`/usr/bin/file conftest.o`" in |
| 1338 |
|
|
*32-bit*) |
| 1339 |
|
|
case $host in |
| 1340 |
|
|
x86_64-*linux*) |
| 1341 |
|
|
LD="${LD-ld} -m elf_i386" |
| 1342 |
|
|
;; |
| 1343 |
|
|
ppc64-*linux*) |
| 1344 |
|
|
LD="${LD-ld} -m elf32ppclinux" |
| 1345 |
|
|
;; |
| 1346 |
|
|
s390x-*linux*) |
| 1347 |
|
|
LD="${LD-ld} -m elf_s390" |
| 1348 |
|
|
;; |
| 1349 |
|
|
sparc64-*linux*) |
| 1350 |
|
|
LD="${LD-ld} -m elf32_sparc" |
| 1351 |
|
|
;; |
| 1352 |
|
|
esac |
| 1353 |
|
|
;; |
| 1354 |
|
|
*64-bit*) |
| 1355 |
|
|
case $host in |
| 1356 |
|
|
x86_64-*linux*) |
| 1357 |
|
|
LD="${LD-ld} -m elf_x86_64" |
| 1358 |
|
|
;; |
| 1359 |
|
|
ppc*-*linux*|powerpc*-*linux*) |
| 1360 |
|
|
LD="${LD-ld} -m elf64ppc" |
| 1361 |
|
|
;; |
| 1362 |
|
|
s390*-*linux*) |
| 1363 |
|
|
LD="${LD-ld} -m elf64_s390" |
| 1364 |
|
|
;; |
| 1365 |
|
|
sparc*-*linux*) |
| 1366 |
|
|
LD="${LD-ld} -m elf64_sparc" |
| 1367 |
|
|
;; |
| 1368 |
|
|
esac |
| 1369 |
|
|
;; |
| 1370 |
|
|
esac |
| 1371 |
|
|
fi |
| 1372 |
|
|
rm -rf conftest* |
| 1373 |
|
|
;; |
| 1374 |
|
|
|
| 1375 |
|
|
*-*-sco3.2v5*) |
| 1376 |
|
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 1377 |
|
|
SAVE_CFLAGS="$CFLAGS" |
| 1378 |
|
|
CFLAGS="$CFLAGS -belf" |
| 1379 |
|
|
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
| 1380 |
|
|
[AC_LANG_PUSH(C) |
| 1381 |
|
|
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
| 1382 |
|
|
AC_LANG_POP]) |
| 1383 |
|
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 1384 |
|
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 1385 |
|
|
CFLAGS="$SAVE_CFLAGS" |
| 1386 |
|
|
fi |
| 1387 |
|
|
;; |
| 1388 |
|
|
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
| 1389 |
|
|
[*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
| 1390 |
|
|
AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
| 1391 |
|
|
AC_CHECK_TOOL(AS, as, false) |
| 1392 |
|
|
AC_CHECK_TOOL(OBJDUMP, objdump, false) |
| 1393 |
|
|
;; |
| 1394 |
|
|
]) |
| 1395 |
|
|
esac |
| 1396 |
|
|
|
| 1397 |
|
|
need_locks="$enable_libtool_lock" |
| 1398 |
|
|
|
| 1399 |
|
|
])# _LT_AC_LOCK |
| 1400 |
|
|
|
| 1401 |
|
|
|
| 1402 |
|
|
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 1403 |
|
|
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 1404 |
|
|
# ---------------------------------------------------------------- |
| 1405 |
|
|
# Check whether the given compiler option works |
| 1406 |
|
|
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
| 1407 |
|
|
[AC_CACHE_CHECK([$1], [$2], |
| 1408 |
|
|
[$2=no |
| 1409 |
|
|
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
| 1410 |
|
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 1411 |
|
|
lt_compiler_flag="$3" |
| 1412 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or |
| 1413 |
|
|
# (2) before a word containing "conftest.", or (3) at the end. |
| 1414 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins |
| 1415 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 1416 |
|
|
# The option is referenced via a variable to avoid confusing sed. |
| 1417 |
|
|
lt_compile=`echo "$ac_compile" | $SED \ |
| 1418 |
|
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 1419 |
|
|
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 1420 |
|
|
-e 's:$: $lt_compiler_flag:'` |
| 1421 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 1422 |
|
|
(eval "$lt_compile" 2>conftest.err) |
| 1423 |
|
|
ac_status=$? |
| 1424 |
|
|
cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1425 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 1426 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 1427 |
|
|
# The compiler can only warn and ignore the option if not recognized |
| 1428 |
|
|
# So say no if there are warnings |
| 1429 |
|
|
if test ! -s conftest.err; then |
| 1430 |
|
|
$2=yes |
| 1431 |
|
|
fi |
| 1432 |
|
|
fi |
| 1433 |
|
|
$rm conftest* |
| 1434 |
|
|
]) |
| 1435 |
|
|
|
| 1436 |
|
|
if test x"[$]$2" = xyes; then |
| 1437 |
|
|
ifelse([$5], , :, [$5]) |
| 1438 |
|
|
else |
| 1439 |
|
|
ifelse([$6], , :, [$6]) |
| 1440 |
|
|
fi |
| 1441 |
|
|
])# AC_LIBTOOL_COMPILER_OPTION |
| 1442 |
|
|
|
| 1443 |
|
|
|
| 1444 |
|
|
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 1445 |
|
|
# [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 1446 |
|
|
# ------------------------------------------------------------ |
| 1447 |
|
|
# Check whether the given compiler option works |
| 1448 |
|
|
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
| 1449 |
|
|
[AC_CACHE_CHECK([$1], [$2], |
| 1450 |
|
|
[$2=no |
| 1451 |
|
|
save_LDFLAGS="$LDFLAGS" |
| 1452 |
|
|
LDFLAGS="$LDFLAGS $3" |
| 1453 |
|
|
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 1454 |
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 1455 |
|
|
# The compiler can only warn and ignore the option if not recognized |
| 1456 |
|
|
# So say no if there are warnings |
| 1457 |
|
|
if test -s conftest.err; then |
| 1458 |
|
|
# Append any errors to the config.log. |
| 1459 |
|
|
cat conftest.err 1>&AS_MESSAGE_LOG_FD |
| 1460 |
|
|
else |
| 1461 |
|
|
$2=yes |
| 1462 |
|
|
fi |
| 1463 |
|
|
fi |
| 1464 |
|
|
$rm conftest* |
| 1465 |
|
|
LDFLAGS="$save_LDFLAGS" |
| 1466 |
|
|
]) |
| 1467 |
|
|
|
| 1468 |
|
|
if test x"[$]$2" = xyes; then |
| 1469 |
|
|
ifelse([$4], , :, [$4]) |
| 1470 |
|
|
else |
| 1471 |
|
|
ifelse([$5], , :, [$5]) |
| 1472 |
|
|
fi |
| 1473 |
|
|
])# AC_LIBTOOL_LINKER_OPTION |
| 1474 |
|
|
|
| 1475 |
|
|
|
| 1476 |
|
|
# AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 1477 |
|
|
# -------------------------- |
| 1478 |
|
|
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
| 1479 |
|
|
[# find the maximum length of command line arguments |
| 1480 |
|
|
AC_MSG_CHECKING([the maximum length of command line arguments]) |
| 1481 |
|
|
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
| 1482 |
|
|
i=0 |
| 1483 |
|
|
testring="ABCD" |
| 1484 |
|
|
|
| 1485 |
|
|
case $build_os in |
| 1486 |
|
|
msdosdjgpp*) |
| 1487 |
|
|
# On DJGPP, this test can blow up pretty badly due to problems in libc |
| 1488 |
|
|
# (any single argument exceeding 2000 bytes causes a buffer overrun |
| 1489 |
|
|
# during glob expansion). Even if it were fixed, the result of this |
| 1490 |
|
|
# check would be larger than it should be. |
| 1491 |
|
|
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 1492 |
|
|
;; |
| 1493 |
|
|
|
| 1494 |
|
|
gnu*) |
| 1495 |
|
|
# Under GNU Hurd, this test is not required because there is |
| 1496 |
|
|
# no limit to the length of command line arguments. |
| 1497 |
|
|
# Libtool will interpret -1 as no limit whatsoever |
| 1498 |
|
|
lt_cv_sys_max_cmd_len=-1; |
| 1499 |
|
|
;; |
| 1500 |
|
|
|
| 1501 |
|
|
cygwin* | mingw*) |
| 1502 |
|
|
# On Win9x/ME, this test blows up -- it succeeds, but takes |
| 1503 |
|
|
# about 5 minutes as the teststring grows exponentially. |
| 1504 |
|
|
# Worse, since 9x/ME are not pre-emptively multitasking, |
| 1505 |
|
|
# you end up with a "frozen" computer, even though with patience |
| 1506 |
|
|
# the test eventually succeeds (with a max line length of 256k). |
| 1507 |
|
|
# Instead, let's just punt: use the minimum linelength reported by |
| 1508 |
|
|
# all of the supported platforms: 8192 (on NT/2K/XP). |
| 1509 |
|
|
lt_cv_sys_max_cmd_len=8192; |
| 1510 |
|
|
;; |
| 1511 |
|
|
|
| 1512 |
|
|
*) |
| 1513 |
|
|
# If test is not a shell built-in, we'll probably end up computing a |
| 1514 |
|
|
# maximum length that is only half of the actual maximum length, but |
| 1515 |
|
|
# we can't tell. |
| 1516 |
|
|
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ |
| 1517 |
|
|
= "XX$testring") >/dev/null 2>&1 && |
| 1518 |
|
|
new_result=`expr "X$testring" : ".*" 2>&1` && |
| 1519 |
|
|
lt_cv_sys_max_cmd_len=$new_result && |
| 1520 |
|
|
test $i != 17 # 1/2 MB should be enough |
| 1521 |
|
|
do |
| 1522 |
|
|
i=`expr $i + 1` |
| 1523 |
|
|
testring=$testring$testring |
| 1524 |
|
|
done |
| 1525 |
|
|
testring= |
| 1526 |
|
|
# Add a significant safety factor because C++ compilers can tack on massive |
| 1527 |
|
|
# amounts of additional arguments before passing them to the linker. |
| 1528 |
|
|
# It appears as though 1/2 is a usable value. |
| 1529 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 1530 |
|
|
;; |
| 1531 |
|
|
esac |
| 1532 |
|
|
]) |
| 1533 |
|
|
if test -n $lt_cv_sys_max_cmd_len ; then |
| 1534 |
|
|
AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
| 1535 |
|
|
else |
| 1536 |
|
|
AC_MSG_RESULT(none) |
| 1537 |
|
|
fi |
| 1538 |
|
|
])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 1539 |
|
|
|
| 1540 |
|
|
|
| 1541 |
|
|
# _LT_AC_CHECK_DLFCN |
| 1542 |
|
|
# -------------------- |
| 1543 |
|
|
AC_DEFUN([_LT_AC_CHECK_DLFCN], |
| 1544 |
|
|
[AC_CHECK_HEADERS(dlfcn.h)dnl |
| 1545 |
|
|
])# _LT_AC_CHECK_DLFCN |
| 1546 |
|
|
|
| 1547 |
|
|
|
| 1548 |
|
|
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
| 1549 |
|
|
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
| 1550 |
|
|
# ------------------------------------------------------------------ |
| 1551 |
|
|
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
| 1552 |
|
|
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
| 1553 |
|
|
if test "$cross_compiling" = yes; then : |
| 1554 |
|
|
[$4] |
| 1555 |
|
|
else |
| 1556 |
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 1557 |
|
|
lt_status=$lt_dlunknown |
| 1558 |
|
|
cat > conftest.$ac_ext <<EOF |
| 1559 |
|
|
[#line __oline__ "configure" |
| 1560 |
|
|
#include "confdefs.h" |
| 1561 |
|
|
|
| 1562 |
|
|
#if HAVE_DLFCN_H |
| 1563 |
|
|
#include <dlfcn.h> |
| 1564 |
|
|
#endif |
| 1565 |
|
|
|
| 1566 |
|
|
#include <stdio.h> |
| 1567 |
|
|
|
| 1568 |
|
|
#ifdef RTLD_GLOBAL |
| 1569 |
|
|
# define LT_DLGLOBAL RTLD_GLOBAL |
| 1570 |
|
|
#else |
| 1571 |
|
|
# ifdef DL_GLOBAL |
| 1572 |
|
|
# define LT_DLGLOBAL DL_GLOBAL |
| 1573 |
|
|
# else |
| 1574 |
|
|
# define LT_DLGLOBAL 0 |
| 1575 |
|
|
# endif |
| 1576 |
|
|
#endif |
| 1577 |
|
|
|
| 1578 |
|
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 1579 |
|
|
find out it does not work in some platform. */ |
| 1580 |
|
|
#ifndef LT_DLLAZY_OR_NOW |
| 1581 |
|
|
# ifdef RTLD_LAZY |
| 1582 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 1583 |
|
|
# else |
| 1584 |
|
|
# ifdef DL_LAZY |
| 1585 |
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 1586 |
|
|
# else |
| 1587 |
|
|
# ifdef RTLD_NOW |
| 1588 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 1589 |
|
|
# else |
| 1590 |
|
|
# ifdef DL_NOW |
| 1591 |
|
|
# define LT_DLLAZY_OR_NOW DL_NOW |
| 1592 |
|
|
# else |
| 1593 |
|
|
# define LT_DLLAZY_OR_NOW 0 |
| 1594 |
|
|
# endif |
| 1595 |
|
|
# endif |
| 1596 |
|
|
# endif |
| 1597 |
|
|
# endif |
| 1598 |
|
|
#endif |
| 1599 |
|
|
|
| 1600 |
|
|
#ifdef __cplusplus |
| 1601 |
|
|
extern "C" void exit (int); |
| 1602 |
|
|
#endif |
| 1603 |
|
|
|
| 1604 |
|
|
void fnord() { int i=42;} |
| 1605 |
|
|
int main () |
| 1606 |
|
|
{ |
| 1607 |
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 1608 |
|
|
int status = $lt_dlunknown; |
| 1609 |
|
|
|
| 1610 |
|
|
if (self) |
| 1611 |
|
|
{ |
| 1612 |
|
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 1613 |
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 1614 |
|
|
/* dlclose (self); */ |
| 1615 |
|
|
} |
| 1616 |
|
|
|
| 1617 |
|
|
exit (status); |
| 1618 |
|
|
}] |
| 1619 |
|
|
EOF |
| 1620 |
|
|
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
| 1621 |
|
|
(./conftest; exit; ) 2>/dev/null |
| 1622 |
|
|
lt_status=$? |
| 1623 |
|
|
case x$lt_status in |
| 1624 |
|
|
x$lt_dlno_uscore) $1 ;; |
| 1625 |
|
|
x$lt_dlneed_uscore) $2 ;; |
| 1626 |
|
|
x$lt_unknown|x*) $3 ;; |
| 1627 |
|
|
esac |
| 1628 |
|
|
else : |
| 1629 |
|
|
# compilation failed |
| 1630 |
|
|
$3 |
| 1631 |
|
|
fi |
| 1632 |
|
|
fi |
| 1633 |
|
|
rm -fr conftest* |
| 1634 |
|
|
])# _LT_AC_TRY_DLOPEN_SELF |
| 1635 |
|
|
|
| 1636 |
|
|
|
| 1637 |
|
|
# AC_LIBTOOL_DLOPEN_SELF |
| 1638 |
|
|
# ------------------- |
| 1639 |
|
|
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
| 1640 |
|
|
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
| 1641 |
|
|
if test "x$enable_dlopen" != xyes; then |
| 1642 |
|
|
enable_dlopen=unknown |
| 1643 |
|
|
enable_dlopen_self=unknown |
| 1644 |
|
|
enable_dlopen_self_static=unknown |
| 1645 |
|
|
else |
| 1646 |
|
|
lt_cv_dlopen=no |
| 1647 |
|
|
lt_cv_dlopen_libs= |
| 1648 |
|
|
|
| 1649 |
|
|
case $host_os in |
| 1650 |
|
|
beos*) |
| 1651 |
|
|
lt_cv_dlopen="load_add_on" |
| 1652 |
|
|
lt_cv_dlopen_libs= |
| 1653 |
|
|
lt_cv_dlopen_self=yes |
| 1654 |
|
|
;; |
| 1655 |
|
|
|
| 1656 |
|
|
mingw* | pw32*) |
| 1657 |
|
|
lt_cv_dlopen="LoadLibrary" |
| 1658 |
|
|
lt_cv_dlopen_libs= |
| 1659 |
|
|
;; |
| 1660 |
|
|
|
| 1661 |
|
|
cygwin*) |
| 1662 |
|
|
lt_cv_dlopen="dlopen" |
| 1663 |
|
|
lt_cv_dlopen_libs= |
| 1664 |
|
|
;; |
| 1665 |
|
|
|
| 1666 |
|
|
darwin*) |
| 1667 |
|
|
# if libdl is installed we need to link against it |
| 1668 |
|
|
AC_CHECK_LIB([dl], [dlopen], |
| 1669 |
|
|
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
| 1670 |
|
|
lt_cv_dlopen="dyld" |
| 1671 |
|
|
lt_cv_dlopen_libs= |
| 1672 |
|
|
lt_cv_dlopen_self=yes |
| 1673 |
|
|
]) |
| 1674 |
|
|
;; |
| 1675 |
|
|
|
| 1676 |
|
|
*) |
| 1677 |
|
|
AC_CHECK_FUNC([shl_load], |
| 1678 |
|
|
[lt_cv_dlopen="shl_load"], |
| 1679 |
|
|
[AC_CHECK_LIB([dld], [shl_load], |
| 1680 |
|
|
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
| 1681 |
|
|
[AC_CHECK_FUNC([dlopen], |
| 1682 |
|
|
[lt_cv_dlopen="dlopen"], |
| 1683 |
|
|
[AC_CHECK_LIB([dl], [dlopen], |
| 1684 |
|
|
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
| 1685 |
|
|
[AC_CHECK_LIB([svld], [dlopen], |
| 1686 |
|
|
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
| 1687 |
|
|
[AC_CHECK_LIB([dld], [dld_link], |
| 1688 |
|
|
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
| 1689 |
|
|
]) |
| 1690 |
|
|
]) |
| 1691 |
|
|
]) |
| 1692 |
|
|
]) |
| 1693 |
|
|
]) |
| 1694 |
|
|
;; |
| 1695 |
|
|
esac |
| 1696 |
|
|
|
| 1697 |
|
|
if test "x$lt_cv_dlopen" != xno; then |
| 1698 |
|
|
enable_dlopen=yes |
| 1699 |
|
|
else |
| 1700 |
|
|
enable_dlopen=no |
| 1701 |
|
|
fi |
| 1702 |
|
|
|
| 1703 |
|
|
case $lt_cv_dlopen in |
| 1704 |
|
|
dlopen) |
| 1705 |
|
|
save_CPPFLAGS="$CPPFLAGS" |
| 1706 |
|
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 1707 |
|
|
|
| 1708 |
|
|
save_LDFLAGS="$LDFLAGS" |
| 1709 |
|
|
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 1710 |
|
|
|
| 1711 |
|
|
save_LIBS="$LIBS" |
| 1712 |
|
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
| 1713 |
|
|
|
| 1714 |
|
|
AC_CACHE_CHECK([whether a program can dlopen itself], |
| 1715 |
|
|
lt_cv_dlopen_self, [dnl |
| 1716 |
|
|
_LT_AC_TRY_DLOPEN_SELF( |
| 1717 |
|
|
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
| 1718 |
|
|
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
| 1719 |
|
|
]) |
| 1720 |
|
|
|
| 1721 |
|
|
if test "x$lt_cv_dlopen_self" = xyes; then |
| 1722 |
|
|
LDFLAGS="$LDFLAGS $link_static_flag" |
| 1723 |
|
|
AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
| 1724 |
|
|
lt_cv_dlopen_self_static, [dnl |
| 1725 |
|
|
_LT_AC_TRY_DLOPEN_SELF( |
| 1726 |
|
|
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
| 1727 |
|
|
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
| 1728 |
|
|
]) |
| 1729 |
|
|
fi |
| 1730 |
|
|
|
| 1731 |
|
|
CPPFLAGS="$save_CPPFLAGS" |
| 1732 |
|
|
LDFLAGS="$save_LDFLAGS" |
| 1733 |
|
|
LIBS="$save_LIBS" |
| 1734 |
|
|
;; |
| 1735 |
|
|
esac |
| 1736 |
|
|
|
| 1737 |
|
|
case $lt_cv_dlopen_self in |
| 1738 |
|
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 1739 |
|
|
*) enable_dlopen_self=unknown ;; |
| 1740 |
|
|
esac |
| 1741 |
|
|
|
| 1742 |
|
|
case $lt_cv_dlopen_self_static in |
| 1743 |
|
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 1744 |
|
|
*) enable_dlopen_self_static=unknown ;; |
| 1745 |
|
|
esac |
| 1746 |
|
|
fi |
| 1747 |
|
|
])# AC_LIBTOOL_DLOPEN_SELF |
| 1748 |
|
|
|
| 1749 |
|
|
|
| 1750 |
|
|
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
| 1751 |
|
|
# --------------------------------- |
| 1752 |
|
|
# Check to see if options -c and -o are simultaneously supported by compiler |
| 1753 |
|
|
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
| 1754 |
|
|
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| 1755 |
|
|
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
| 1756 |
|
|
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
| 1757 |
|
|
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
| 1758 |
|
|
$rm -r conftest 2>/dev/null |
| 1759 |
|
|
mkdir conftest |
| 1760 |
|
|
cd conftest |
| 1761 |
|
|
mkdir out |
| 1762 |
|
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 1763 |
|
|
|
| 1764 |
|
|
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 1765 |
|
|
# that will create temporary files in the current directory regardless of |
| 1766 |
|
|
# the output directory. Thus, making CWD read-only will cause this test |
| 1767 |
|
|
# to fail, enabling locking or at least warning the user not to do parallel |
| 1768 |
|
|
# builds. |
| 1769 |
|
|
chmod -w . |
| 1770 |
|
|
|
| 1771 |
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 1772 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or |
| 1773 |
|
|
# (2) before a word containing "conftest.", or (3) at the end. |
| 1774 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins |
| 1775 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 1776 |
|
|
lt_compile=`echo "$ac_compile" | $SED \ |
| 1777 |
|
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 1778 |
|
|
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 1779 |
|
|
-e 's:$: $lt_compiler_flag:'` |
| 1780 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 1781 |
|
|
(eval "$lt_compile" 2>out/conftest.err) |
| 1782 |
|
|
ac_status=$? |
| 1783 |
|
|
cat out/conftest.err >&AS_MESSAGE_LOG_FD |
| 1784 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 1785 |
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 1786 |
|
|
then |
| 1787 |
|
|
# The compiler can only warn and ignore the option if not recognized |
| 1788 |
|
|
# So say no if there are warnings |
| 1789 |
|
|
if test ! -s out/conftest.err; then |
| 1790 |
|
|
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 1791 |
|
|
fi |
| 1792 |
|
|
fi |
| 1793 |
|
|
chmod u+w . |
| 1794 |
|
|
$rm conftest* out/* |
| 1795 |
|
|
rmdir out |
| 1796 |
|
|
cd .. |
| 1797 |
|
|
rmdir conftest |
| 1798 |
|
|
$rm conftest* |
| 1799 |
|
|
]) |
| 1800 |
|
|
])# AC_LIBTOOL_PROG_CC_C_O |
| 1801 |
|
|
|
| 1802 |
|
|
|
| 1803 |
|
|
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) |
| 1804 |
|
|
# ----------------------------------------- |
| 1805 |
|
|
# Check to see if we can do hard links to lock some files if needed |
| 1806 |
|
|
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], |
| 1807 |
|
|
[AC_REQUIRE([_LT_AC_LOCK])dnl |
| 1808 |
|
|
|
| 1809 |
|
|
hard_links="nottested" |
| 1810 |
|
|
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
| 1811 |
|
|
# do not overwrite the value of need_locks provided by the user |
| 1812 |
|
|
AC_MSG_CHECKING([if we can lock with hard links]) |
| 1813 |
|
|
hard_links=yes |
| 1814 |
|
|
$rm conftest* |
| 1815 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 1816 |
|
|
touch conftest.a |
| 1817 |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 1818 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 1819 |
|
|
AC_MSG_RESULT([$hard_links]) |
| 1820 |
|
|
if test "$hard_links" = no; then |
| 1821 |
|
|
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
| 1822 |
|
|
need_locks=warn |
| 1823 |
|
|
fi |
| 1824 |
|
|
else |
| 1825 |
|
|
need_locks=no |
| 1826 |
|
|
fi |
| 1827 |
|
|
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
| 1828 |
|
|
|
| 1829 |
|
|
|
| 1830 |
|
|
# AC_LIBTOOL_OBJDIR |
| 1831 |
|
|
# ----------------- |
| 1832 |
|
|
AC_DEFUN([AC_LIBTOOL_OBJDIR], |
| 1833 |
|
|
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
| 1834 |
|
|
[rm -f .libs 2>/dev/null |
| 1835 |
|
|
mkdir .libs 2>/dev/null |
| 1836 |
|
|
if test -d .libs; then |
| 1837 |
|
|
lt_cv_objdir=.libs |
| 1838 |
|
|
else |
| 1839 |
|
|
# MS-DOS does not allow filenames that begin with a dot. |
| 1840 |
|
|
lt_cv_objdir=_libs |
| 1841 |
|
|
fi |
| 1842 |
|
|
rmdir .libs 2>/dev/null]) |
| 1843 |
|
|
objdir=$lt_cv_objdir |
| 1844 |
|
|
])# AC_LIBTOOL_OBJDIR |
| 1845 |
|
|
|
| 1846 |
|
|
|
| 1847 |
|
|
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
| 1848 |
|
|
# ---------------------------------------------- |
| 1849 |
|
|
# Check hardcoding attributes. |
| 1850 |
|
|
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
| 1851 |
|
|
[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
| 1852 |
|
|
_LT_AC_TAGVAR(hardcode_action, $1)= |
| 1853 |
|
|
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
| 1854 |
|
|
test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ |
| 1855 |
|
|
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then |
| 1856 |
|
|
|
| 1857 |
|
|
# We can hardcode non-existant directories. |
| 1858 |
|
|
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
| 1859 |
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 1860 |
|
|
# have to relink, otherwise we might link with an installed library |
| 1861 |
|
|
# when we should be linking with a yet-to-be-installed one |
| 1862 |
|
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
| 1863 |
|
|
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then |
| 1864 |
|
|
# Linking always hardcodes the temporary library directory. |
| 1865 |
|
|
_LT_AC_TAGVAR(hardcode_action, $1)=relink |
| 1866 |
|
|
else |
| 1867 |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 1868 |
|
|
_LT_AC_TAGVAR(hardcode_action, $1)=immediate |
| 1869 |
|
|
fi |
| 1870 |
|
|
else |
| 1871 |
|
|
# We cannot hardcode anything, or else we can only hardcode existing |
| 1872 |
|
|
# directories. |
| 1873 |
|
|
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported |
| 1874 |
|
|
fi |
| 1875 |
|
|
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) |
| 1876 |
|
|
|
| 1877 |
|
|
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then |
| 1878 |
|
|
# Fast installation is not supported |
| 1879 |
|
|
enable_fast_install=no |
| 1880 |
|
|
elif test "$shlibpath_overrides_runpath" = yes || |
| 1881 |
|
|
test "$enable_shared" = no; then |
| 1882 |
|
|
# Fast installation is not necessary |
| 1883 |
|
|
enable_fast_install=needless |
| 1884 |
|
|
fi |
| 1885 |
|
|
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
| 1886 |
|
|
|
| 1887 |
|
|
|
| 1888 |
|
|
# AC_LIBTOOL_SYS_LIB_STRIP |
| 1889 |
|
|
# ------------------------ |
| 1890 |
|
|
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], |
| 1891 |
|
|
[striplib= |
| 1892 |
|
|
old_striplib= |
| 1893 |
|
|
AC_MSG_CHECKING([whether stripping libraries is possible]) |
| 1894 |
|
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 1895 |
|
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 1896 |
|
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 1897 |
|
|
AC_MSG_RESULT([yes]) |
| 1898 |
|
|
else |
| 1899 |
|
|
# FIXME - insert some real tests, host_os isn't really good enough |
| 1900 |
|
|
case $host_os in |
| 1901 |
|
|
darwin*) |
| 1902 |
|
|
if test -n "$STRIP" ; then |
| 1903 |
|
|
striplib="$STRIP -x" |
| 1904 |
|
|
AC_MSG_RESULT([yes]) |
| 1905 |
|
|
else |
| 1906 |
|
|
AC_MSG_RESULT([no]) |
| 1907 |
|
|
fi |
| 1908 |
|
|
;; |
| 1909 |
|
|
*) |
| 1910 |
|
|
AC_MSG_RESULT([no]) |
| 1911 |
|
|
;; |
| 1912 |
|
|
esac |
| 1913 |
|
|
fi |
| 1914 |
|
|
])# AC_LIBTOOL_SYS_LIB_STRIP |
| 1915 |
|
|
|
| 1916 |
|
|
|
| 1917 |
|
|
# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| 1918 |
|
|
# ----------------------------- |
| 1919 |
|
|
# PORTME Fill in your ld.so characteristics |
| 1920 |
|
|
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
| 1921 |
|
|
[AC_MSG_CHECKING([dynamic linker characteristics]) |
| 1922 |
|
|
library_names_spec= |
| 1923 |
|
|
libname_spec='lib$name' |
| 1924 |
|
|
soname_spec= |
| 1925 |
|
|
shrext=".so" |
| 1926 |
|
|
postinstall_cmds= |
| 1927 |
|
|
postuninstall_cmds= |
| 1928 |
|
|
finish_cmds= |
| 1929 |
|
|
finish_eval= |
| 1930 |
|
|
shlibpath_var= |
| 1931 |
|
|
shlibpath_overrides_runpath=unknown |
| 1932 |
|
|
version_type=none |
| 1933 |
|
|
dynamic_linker="$host_os ld.so" |
| 1934 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 1935 |
|
|
if test "$GCC" = yes; then |
| 1936 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 1937 |
|
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 1938 |
|
|
# if the path contains ";" then we assume it to be the separator |
| 1939 |
|
|
# otherwise default to the standard path separator (i.e. ":") - it is |
| 1940 |
|
|
# assumed that no part of a normal pathname contains ";" but that should |
| 1941 |
|
|
# okay in the real world where ";" in dirpaths is itself problematic. |
| 1942 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 1943 |
|
|
else |
| 1944 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 1945 |
|
|
fi |
| 1946 |
|
|
else |
| 1947 |
|
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 1948 |
|
|
fi |
| 1949 |
|
|
need_lib_prefix=unknown |
| 1950 |
|
|
hardcode_into_libs=no |
| 1951 |
|
|
|
| 1952 |
|
|
# when you set need_version to no, make sure it does not cause -set_version |
| 1953 |
|
|
# flags to be left without arguments |
| 1954 |
|
|
need_version=unknown |
| 1955 |
|
|
|
| 1956 |
|
|
case $host_os in |
| 1957 |
|
|
aix3*) |
| 1958 |
|
|
version_type=linux |
| 1959 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 1960 |
|
|
shlibpath_var=LIBPATH |
| 1961 |
|
|
|
| 1962 |
|
|
# AIX 3 has no versioning support, so we append a major version to the name. |
| 1963 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 1964 |
|
|
;; |
| 1965 |
|
|
|
| 1966 |
|
|
aix4* | aix5*) |
| 1967 |
|
|
version_type=linux |
| 1968 |
|
|
need_lib_prefix=no |
| 1969 |
|
|
need_version=no |
| 1970 |
|
|
hardcode_into_libs=yes |
| 1971 |
|
|
if test "$host_cpu" = ia64; then |
| 1972 |
|
|
# AIX 5 supports IA64 |
| 1973 |
|
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 1974 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 1975 |
|
|
else |
| 1976 |
|
|
# With GCC up to 2.95.x, collect2 would create an import file |
| 1977 |
|
|
# for dependence libraries. The import file would start with |
| 1978 |
|
|
# the line `#! .'. This would cause the generated library to |
| 1979 |
|
|
# depend on `.', always an invalid library. This was fixed in |
| 1980 |
|
|
# development snapshots of GCC prior to 3.0. |
| 1981 |
|
|
case $host_os in |
| 1982 |
|
|
aix4 | aix4.[[01]] | aix4.[[01]].*) |
| 1983 |
|
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 1984 |
|
|
echo ' yes ' |
| 1985 |
|
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 1986 |
|
|
: |
| 1987 |
|
|
else |
| 1988 |
|
|
can_build_shared=no |
| 1989 |
|
|
fi |
| 1990 |
|
|
;; |
| 1991 |
|
|
esac |
| 1992 |
|
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 1993 |
|
|
# soname into executable. Probably we can add versioning support to |
| 1994 |
|
|
# collect2, so additional links can be useful in future. |
| 1995 |
|
|
if test "$aix_use_runtimelinking" = yes; then |
| 1996 |
|
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 1997 |
|
|
# instead of lib<name>.a to let people know that these are not |
| 1998 |
|
|
# typical AIX shared libraries. |
| 1999 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2000 |
|
|
else |
| 2001 |
|
|
# We preserve .a as extension for shared libraries through AIX4.2 |
| 2002 |
|
|
# and later when we are not doing run time linking. |
| 2003 |
|
|
library_names_spec='${libname}${release}.a $libname.a' |
| 2004 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2005 |
|
|
fi |
| 2006 |
|
|
shlibpath_var=LIBPATH |
| 2007 |
|
|
fi |
| 2008 |
|
|
;; |
| 2009 |
|
|
|
| 2010 |
|
|
amigaos*) |
| 2011 |
|
|
library_names_spec='$libname.ixlibrary $libname.a' |
| 2012 |
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 2013 |
|
|
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' |
| 2014 |
|
|
;; |
| 2015 |
|
|
|
| 2016 |
|
|
beos*) |
| 2017 |
|
|
library_names_spec='${libname}${shared_ext}' |
| 2018 |
|
|
dynamic_linker="$host_os ld.so" |
| 2019 |
|
|
shlibpath_var=LIBRARY_PATH |
| 2020 |
|
|
;; |
| 2021 |
|
|
|
| 2022 |
|
|
bsdi4*) |
| 2023 |
|
|
version_type=linux |
| 2024 |
|
|
need_version=no |
| 2025 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2026 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2027 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 2028 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2029 |
|
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 2030 |
|
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 2031 |
|
|
# the default ld.so.conf also contains /usr/contrib/lib and |
| 2032 |
|
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 2033 |
|
|
# libtool to hard-code these into programs |
| 2034 |
|
|
;; |
| 2035 |
|
|
|
| 2036 |
|
|
cygwin* | mingw* | pw32*) |
| 2037 |
|
|
version_type=windows |
| 2038 |
|
|
shrext=".dll" |
| 2039 |
|
|
need_version=no |
| 2040 |
|
|
need_lib_prefix=no |
| 2041 |
|
|
|
| 2042 |
|
|
case $GCC,$host_os in |
| 2043 |
|
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
| 2044 |
|
|
library_names_spec='$libname.dll.a' |
| 2045 |
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 2046 |
|
|
postinstall_cmds='base_file=`basename \${file}`~ |
| 2047 |
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 2048 |
|
|
dldir=$destdir/`dirname \$dlpath`~ |
| 2049 |
|
|
test -d \$dldir || mkdir -p \$dldir~ |
| 2050 |
|
|
$install_prog $dir/$dlname \$dldir/$dlname' |
| 2051 |
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 2052 |
|
|
dlpath=$dir/\$dldll~ |
| 2053 |
|
|
$rm \$dlpath' |
| 2054 |
|
|
shlibpath_overrides_runpath=yes |
| 2055 |
|
|
|
| 2056 |
|
|
case $host_os in |
| 2057 |
|
|
cygwin*) |
| 2058 |
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 2059 |
|
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 2060 |
|
|
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 2061 |
|
|
;; |
| 2062 |
|
|
mingw*) |
| 2063 |
|
|
# MinGW DLLs use traditional 'lib' prefix |
| 2064 |
|
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 2065 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 2066 |
|
|
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then |
| 2067 |
|
|
# It is most probably a Windows format PATH printed by |
| 2068 |
|
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 2069 |
|
|
# path with ; separators, and with drive letters. We can handle the |
| 2070 |
|
|
# drive letters (cygwin fileutils understands them), so leave them, |
| 2071 |
|
|
# especially as we might pass files found there to a mingw objdump, |
| 2072 |
|
|
# which wouldn't understand a cygwinified path. Ahh. |
| 2073 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 2074 |
|
|
else |
| 2075 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 2076 |
|
|
fi |
| 2077 |
|
|
;; |
| 2078 |
|
|
pw32*) |
| 2079 |
|
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 2080 |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 2081 |
|
|
;; |
| 2082 |
|
|
esac |
| 2083 |
|
|
;; |
| 2084 |
|
|
|
| 2085 |
|
|
*) |
| 2086 |
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 2087 |
|
|
;; |
| 2088 |
|
|
esac |
| 2089 |
|
|
dynamic_linker='Win32 ld.exe' |
| 2090 |
|
|
# FIXME: first we should search . and the directory the executable is in |
| 2091 |
|
|
shlibpath_var=PATH |
| 2092 |
|
|
;; |
| 2093 |
|
|
|
| 2094 |
|
|
darwin* | rhapsody*) |
| 2095 |
|
|
dynamic_linker="$host_os dyld" |
| 2096 |
|
|
version_type=darwin |
| 2097 |
|
|
need_lib_prefix=no |
| 2098 |
|
|
need_version=no |
| 2099 |
|
|
# FIXME: Relying on posixy $() will cause problems for |
| 2100 |
|
|
# cross-compilation, but unfortunately the echo tests do not |
| 2101 |
|
|
# yet detect zsh echo's removal of \ escapes. |
| 2102 |
|
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 2103 |
|
|
soname_spec='${libname}${release}${major}$shared_ext' |
| 2104 |
|
|
shlibpath_overrides_runpath=yes |
| 2105 |
|
|
shlibpath_var=DYLD_LIBRARY_PATH |
| 2106 |
|
|
shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 2107 |
|
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 2108 |
|
|
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 2109 |
|
|
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"` |
| 2110 |
|
|
fi |
| 2111 |
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 2112 |
|
|
;; |
| 2113 |
|
|
|
| 2114 |
|
|
dgux*) |
| 2115 |
|
|
version_type=linux |
| 2116 |
|
|
need_lib_prefix=no |
| 2117 |
|
|
need_version=no |
| 2118 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 2119 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2120 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2121 |
|
|
;; |
| 2122 |
|
|
|
| 2123 |
|
|
freebsd1*) |
| 2124 |
|
|
dynamic_linker=no |
| 2125 |
|
|
;; |
| 2126 |
|
|
|
| 2127 |
|
|
freebsd*) |
| 2128 |
|
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 2129 |
|
|
version_type=freebsd-$objformat |
| 2130 |
|
|
case $version_type in |
| 2131 |
|
|
freebsd-elf*) |
| 2132 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 2133 |
|
|
need_version=no |
| 2134 |
|
|
need_lib_prefix=no |
| 2135 |
|
|
;; |
| 2136 |
|
|
freebsd-*) |
| 2137 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 2138 |
|
|
need_version=yes |
| 2139 |
|
|
;; |
| 2140 |
|
|
esac |
| 2141 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2142 |
|
|
case $host_os in |
| 2143 |
|
|
freebsd2*) |
| 2144 |
|
|
shlibpath_overrides_runpath=yes |
| 2145 |
|
|
;; |
| 2146 |
|
|
freebsd3.[01]* | freebsdelf3.[01]*) |
| 2147 |
|
|
shlibpath_overrides_runpath=yes |
| 2148 |
|
|
hardcode_into_libs=yes |
| 2149 |
|
|
;; |
| 2150 |
|
|
*) # from 3.2 on |
| 2151 |
|
|
shlibpath_overrides_runpath=no |
| 2152 |
|
|
hardcode_into_libs=yes |
| 2153 |
|
|
;; |
| 2154 |
|
|
esac |
| 2155 |
|
|
;; |
| 2156 |
|
|
|
| 2157 |
|
|
gnu*) |
| 2158 |
|
|
version_type=linux |
| 2159 |
|
|
need_lib_prefix=no |
| 2160 |
|
|
need_version=no |
| 2161 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 2162 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2163 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2164 |
|
|
hardcode_into_libs=yes |
| 2165 |
|
|
;; |
| 2166 |
|
|
|
| 2167 |
|
|
hpux9* | hpux10* | hpux11*) |
| 2168 |
|
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 2169 |
|
|
# link against other versions. |
| 2170 |
|
|
version_type=sunos |
| 2171 |
|
|
need_lib_prefix=no |
| 2172 |
|
|
need_version=no |
| 2173 |
|
|
case "$host_cpu" in |
| 2174 |
|
|
ia64*) |
| 2175 |
|
|
shrext='.so' |
| 2176 |
|
|
hardcode_into_libs=yes |
| 2177 |
|
|
dynamic_linker="$host_os dld.so" |
| 2178 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2179 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 2180 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2181 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2182 |
|
|
if test "X$HPUX_IA64_MODE" = X32; then |
| 2183 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 2184 |
|
|
else |
| 2185 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 2186 |
|
|
fi |
| 2187 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 2188 |
|
|
;; |
| 2189 |
|
|
hppa*64*) |
| 2190 |
|
|
shrext='.sl' |
| 2191 |
|
|
hardcode_into_libs=yes |
| 2192 |
|
|
dynamic_linker="$host_os dld.sl" |
| 2193 |
|
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 2194 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 2195 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2196 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2197 |
|
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 2198 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 2199 |
|
|
;; |
| 2200 |
|
|
*) |
| 2201 |
|
|
shrext='.sl' |
| 2202 |
|
|
dynamic_linker="$host_os dld.sl" |
| 2203 |
|
|
shlibpath_var=SHLIB_PATH |
| 2204 |
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 2205 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2206 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2207 |
|
|
;; |
| 2208 |
|
|
esac |
| 2209 |
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 2210 |
|
|
postinstall_cmds='chmod 555 $lib' |
| 2211 |
|
|
;; |
| 2212 |
|
|
|
| 2213 |
|
|
irix5* | irix6* | nonstopux*) |
| 2214 |
|
|
case $host_os in |
| 2215 |
|
|
nonstopux*) version_type=nonstopux ;; |
| 2216 |
|
|
*) |
| 2217 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 2218 |
|
|
version_type=linux |
| 2219 |
|
|
else |
| 2220 |
|
|
version_type=irix |
| 2221 |
|
|
fi ;; |
| 2222 |
|
|
esac |
| 2223 |
|
|
need_lib_prefix=no |
| 2224 |
|
|
need_version=no |
| 2225 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2226 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 2227 |
|
|
case $host_os in |
| 2228 |
|
|
irix5* | nonstopux*) |
| 2229 |
|
|
libsuff= shlibsuff= |
| 2230 |
|
|
;; |
| 2231 |
|
|
*) |
| 2232 |
|
|
case $LD in # libtool.m4 will add one of these switches to LD |
| 2233 |
|
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 2234 |
|
|
libsuff= shlibsuff= libmagic=32-bit;; |
| 2235 |
|
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 2236 |
|
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 2237 |
|
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 2238 |
|
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 2239 |
|
|
*) libsuff= shlibsuff= libmagic=never-match;; |
| 2240 |
|
|
esac |
| 2241 |
|
|
;; |
| 2242 |
|
|
esac |
| 2243 |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 2244 |
|
|
shlibpath_overrides_runpath=no |
| 2245 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 2246 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 2247 |
|
|
hardcode_into_libs=yes |
| 2248 |
|
|
;; |
| 2249 |
|
|
|
| 2250 |
|
|
# No shared lib support for Linux oldld, aout, or coff. |
| 2251 |
|
|
linux*oldld* | linux*aout* | linux*coff*) |
| 2252 |
|
|
dynamic_linker=no |
| 2253 |
|
|
;; |
| 2254 |
|
|
|
| 2255 |
|
|
# This must be Linux ELF. |
| 2256 |
|
|
linux*) |
| 2257 |
|
|
version_type=linux |
| 2258 |
|
|
need_lib_prefix=no |
| 2259 |
|
|
need_version=no |
| 2260 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2261 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2262 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 2263 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2264 |
|
|
shlibpath_overrides_runpath=no |
| 2265 |
|
|
# This implies no fast_install, which is unacceptable. |
| 2266 |
|
|
# Some rework will be needed to allow for fast_install |
| 2267 |
|
|
# before this can be enabled. |
| 2268 |
|
|
hardcode_into_libs=yes |
| 2269 |
|
|
|
| 2270 |
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 2271 |
|
|
# powerpc, because MkLinux only supported shared libraries with the |
| 2272 |
|
|
# GNU dynamic linker. Since this was broken with cross compilers, |
| 2273 |
|
|
# most powerpc-linux boxes support dynamic linking these days and |
| 2274 |
|
|
# people can always --disable-shared, the test was removed, and we |
| 2275 |
|
|
# assume the GNU/Linux dynamic linker is in use. |
| 2276 |
|
|
dynamic_linker='GNU/Linux ld.so' |
| 2277 |
|
|
|
| 2278 |
|
|
# Find out which ABI we are using (multilib Linux x86_64 hack). |
| 2279 |
|
|
libsuff= |
| 2280 |
|
|
case "$host_cpu" in |
| 2281 |
orrisroot |
1.4 |
x86_64*|s390x*|powerpc64*) |
| 2282 |
orrisroot |
1.1 |
echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
| 2283 |
|
|
if AC_TRY_EVAL(ac_compile); then |
| 2284 |
|
|
case `/usr/bin/file conftest.$ac_objext` in |
| 2285 |
|
|
*64-bit*) |
| 2286 |
|
|
libsuff=64 |
| 2287 |
|
|
;; |
| 2288 |
|
|
esac |
| 2289 |
|
|
fi |
| 2290 |
|
|
rm -rf conftest* |
| 2291 |
|
|
;; |
| 2292 |
|
|
*) |
| 2293 |
|
|
;; |
| 2294 |
|
|
esac |
| 2295 |
|
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
| 2296 |
|
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
| 2297 |
|
|
;; |
| 2298 |
|
|
|
| 2299 |
|
|
netbsd*) |
| 2300 |
|
|
version_type=sunos |
| 2301 |
|
|
need_lib_prefix=no |
| 2302 |
|
|
need_version=no |
| 2303 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 2304 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 2305 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 2306 |
|
|
dynamic_linker='NetBSD (a.out) ld.so' |
| 2307 |
|
|
else |
| 2308 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 2309 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2310 |
|
|
dynamic_linker='NetBSD ld.elf_so' |
| 2311 |
|
|
fi |
| 2312 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2313 |
|
|
shlibpath_overrides_runpath=yes |
| 2314 |
|
|
hardcode_into_libs=yes |
| 2315 |
|
|
;; |
| 2316 |
|
|
|
| 2317 |
|
|
newsos6) |
| 2318 |
|
|
version_type=linux |
| 2319 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2320 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2321 |
|
|
shlibpath_overrides_runpath=yes |
| 2322 |
|
|
;; |
| 2323 |
|
|
|
| 2324 |
|
|
nto-qnx) |
| 2325 |
|
|
version_type=linux |
| 2326 |
|
|
need_lib_prefix=no |
| 2327 |
|
|
need_version=no |
| 2328 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2329 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2330 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2331 |
|
|
shlibpath_overrides_runpath=yes |
| 2332 |
|
|
;; |
| 2333 |
|
|
|
| 2334 |
|
|
openbsd*) |
| 2335 |
|
|
version_type=sunos |
| 2336 |
|
|
need_lib_prefix=no |
| 2337 |
|
|
need_version=no |
| 2338 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 2339 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 2340 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2341 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 2342 |
|
|
case $host_os in |
| 2343 |
|
|
openbsd2.[[89]] | openbsd2.[[89]].*) |
| 2344 |
|
|
shlibpath_overrides_runpath=no |
| 2345 |
|
|
;; |
| 2346 |
|
|
*) |
| 2347 |
|
|
shlibpath_overrides_runpath=yes |
| 2348 |
|
|
;; |
| 2349 |
|
|
esac |
| 2350 |
|
|
else |
| 2351 |
|
|
shlibpath_overrides_runpath=yes |
| 2352 |
|
|
fi |
| 2353 |
|
|
;; |
| 2354 |
|
|
|
| 2355 |
|
|
os2*) |
| 2356 |
|
|
libname_spec='$name' |
| 2357 |
|
|
shrext=".dll" |
| 2358 |
|
|
need_lib_prefix=no |
| 2359 |
|
|
library_names_spec='$libname${shared_ext} $libname.a' |
| 2360 |
|
|
dynamic_linker='OS/2 ld.exe' |
| 2361 |
|
|
shlibpath_var=LIBPATH |
| 2362 |
|
|
;; |
| 2363 |
|
|
|
| 2364 |
|
|
osf3* | osf4* | osf5*) |
| 2365 |
|
|
version_type=osf |
| 2366 |
|
|
need_lib_prefix=no |
| 2367 |
|
|
need_version=no |
| 2368 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2369 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2370 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2371 |
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 2372 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 2373 |
|
|
;; |
| 2374 |
|
|
|
| 2375 |
|
|
sco3.2v5*) |
| 2376 |
|
|
version_type=osf |
| 2377 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2378 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2379 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2380 |
|
|
;; |
| 2381 |
|
|
|
| 2382 |
|
|
solaris*) |
| 2383 |
|
|
version_type=linux |
| 2384 |
|
|
need_lib_prefix=no |
| 2385 |
|
|
need_version=no |
| 2386 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2387 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2388 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2389 |
|
|
shlibpath_overrides_runpath=yes |
| 2390 |
|
|
hardcode_into_libs=yes |
| 2391 |
|
|
# ldd complains unless libraries are executable |
| 2392 |
|
|
postinstall_cmds='chmod +x $lib' |
| 2393 |
|
|
;; |
| 2394 |
|
|
|
| 2395 |
|
|
sunos4*) |
| 2396 |
|
|
version_type=sunos |
| 2397 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 2398 |
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 2399 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2400 |
|
|
shlibpath_overrides_runpath=yes |
| 2401 |
|
|
if test "$with_gnu_ld" = yes; then |
| 2402 |
|
|
need_lib_prefix=no |
| 2403 |
|
|
fi |
| 2404 |
|
|
need_version=yes |
| 2405 |
|
|
;; |
| 2406 |
|
|
|
| 2407 |
|
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 2408 |
|
|
version_type=linux |
| 2409 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2410 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2411 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2412 |
|
|
case $host_vendor in |
| 2413 |
|
|
sni) |
| 2414 |
|
|
shlibpath_overrides_runpath=no |
| 2415 |
|
|
need_lib_prefix=no |
| 2416 |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 2417 |
|
|
runpath_var=LD_RUN_PATH |
| 2418 |
|
|
;; |
| 2419 |
|
|
siemens) |
| 2420 |
|
|
need_lib_prefix=no |
| 2421 |
|
|
;; |
| 2422 |
|
|
motorola) |
| 2423 |
|
|
need_lib_prefix=no |
| 2424 |
|
|
need_version=no |
| 2425 |
|
|
shlibpath_overrides_runpath=no |
| 2426 |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 2427 |
|
|
;; |
| 2428 |
|
|
esac |
| 2429 |
|
|
;; |
| 2430 |
|
|
|
| 2431 |
|
|
sysv4*MP*) |
| 2432 |
|
|
if test -d /usr/nec ;then |
| 2433 |
|
|
version_type=linux |
| 2434 |
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 2435 |
|
|
soname_spec='$libname${shared_ext}.$major' |
| 2436 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2437 |
|
|
fi |
| 2438 |
|
|
;; |
| 2439 |
|
|
|
| 2440 |
|
|
uts4*) |
| 2441 |
|
|
version_type=linux |
| 2442 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2443 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2444 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
| 2445 |
|
|
;; |
| 2446 |
|
|
|
| 2447 |
|
|
*) |
| 2448 |
|
|
dynamic_linker=no |
| 2449 |
|
|
;; |
| 2450 |
|
|
esac |
| 2451 |
|
|
AC_MSG_RESULT([$dynamic_linker]) |
| 2452 |
|
|
test "$dynamic_linker" = no && can_build_shared=no |
| 2453 |
|
|
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| 2454 |
|
|
|
| 2455 |
|
|
|
| 2456 |
|
|
# _LT_AC_TAGCONFIG |
| 2457 |
|
|
# ---------------- |
| 2458 |
|
|
AC_DEFUN([_LT_AC_TAGCONFIG], |
| 2459 |
|
|
[AC_ARG_WITH([tags], |
| 2460 |
|
|
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], |
| 2461 |
|
|
[include additional configurations @<:@automatic@:>@])], |
| 2462 |
|
|
[tagnames="$withval"]) |
| 2463 |
|
|
|
| 2464 |
|
|
if test -f "$ltmain" && test -n "$tagnames"; then |
| 2465 |
|
|
if test ! -f "${ofile}"; then |
| 2466 |
|
|
AC_MSG_WARN([output file `$ofile' does not exist]) |
| 2467 |
|
|
fi |
| 2468 |
|
|
|
| 2469 |
|
|
if test -z "$LTCC"; then |
| 2470 |
|
|
eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 2471 |
|
|
if test -z "$LTCC"; then |
| 2472 |
|
|
AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) |
| 2473 |
|
|
else |
| 2474 |
|
|
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
| 2475 |
|
|
fi |
| 2476 |
|
|
fi |
| 2477 |
|
|
|
| 2478 |
|
|
# Extract list of available tagged configurations in $ofile. |
| 2479 |
|
|
# Note that this assumes the entire list is on one line. |
| 2480 |
|
|
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 2481 |
|
|
|
| 2482 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2483 |
|
|
for tagname in $tagnames; do |
| 2484 |
|
|
IFS="$lt_save_ifs" |
| 2485 |
|
|
# Check whether tagname contains only valid characters |
| 2486 |
|
|
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in |
| 2487 |
|
|
"") ;; |
| 2488 |
|
|
*) AC_MSG_ERROR([invalid tag name: $tagname]) |
| 2489 |
|
|
;; |
| 2490 |
|
|
esac |
| 2491 |
|
|
|
| 2492 |
|
|
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 2493 |
|
|
then |
| 2494 |
|
|
AC_MSG_ERROR([tag name \"$tagname\" already exists]) |
| 2495 |
|
|
fi |
| 2496 |
|
|
|
| 2497 |
|
|
# Update the list of available tags. |
| 2498 |
|
|
if test -n "$tagname"; then |
| 2499 |
|
|
echo appending configuration tag \"$tagname\" to $ofile |
| 2500 |
|
|
|
| 2501 |
|
|
case $tagname in |
| 2502 |
|
|
CXX) |
| 2503 |
|
|
if test -n "$CXX" && test "X$CXX" != "Xno"; then |
| 2504 |
|
|
AC_LIBTOOL_LANG_CXX_CONFIG |
| 2505 |
|
|
else |
| 2506 |
|
|
tagname="" |
| 2507 |
|
|
fi |
| 2508 |
|
|
;; |
| 2509 |
|
|
|
| 2510 |
|
|
F77) |
| 2511 |
|
|
if test -n "$F77" && test "X$F77" != "Xno"; then |
| 2512 |
|
|
AC_LIBTOOL_LANG_F77_CONFIG |
| 2513 |
|
|
else |
| 2514 |
|
|
tagname="" |
| 2515 |
|
|
fi |
| 2516 |
|
|
;; |
| 2517 |
|
|
|
| 2518 |
|
|
GCJ) |
| 2519 |
|
|
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 2520 |
|
|
AC_LIBTOOL_LANG_GCJ_CONFIG |
| 2521 |
|
|
else |
| 2522 |
|
|
tagname="" |
| 2523 |
|
|
fi |
| 2524 |
|
|
;; |
| 2525 |
|
|
|
| 2526 |
|
|
RC) |
| 2527 |
|
|
AC_LIBTOOL_LANG_RC_CONFIG |
| 2528 |
|
|
;; |
| 2529 |
|
|
|
| 2530 |
|
|
*) |
| 2531 |
|
|
AC_MSG_ERROR([Unsupported tag name: $tagname]) |
| 2532 |
|
|
;; |
| 2533 |
|
|
esac |
| 2534 |
|
|
|
| 2535 |
|
|
# Append the new tag name to the list of available tags. |
| 2536 |
|
|
if test -n "$tagname" ; then |
| 2537 |
|
|
available_tags="$available_tags $tagname" |
| 2538 |
|
|
fi |
| 2539 |
|
|
fi |
| 2540 |
|
|
done |
| 2541 |
|
|
IFS="$lt_save_ifs" |
| 2542 |
|
|
|
| 2543 |
|
|
# Now substitute the updated list of available tags. |
| 2544 |
|
|
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 2545 |
|
|
mv "${ofile}T" "$ofile" |
| 2546 |
|
|
chmod +x "$ofile" |
| 2547 |
|
|
else |
| 2548 |
|
|
rm -f "${ofile}T" |
| 2549 |
|
|
AC_MSG_ERROR([unable to update list of available tagged configurations.]) |
| 2550 |
|
|
fi |
| 2551 |
|
|
fi |
| 2552 |
|
|
])# _LT_AC_TAGCONFIG |
| 2553 |
|
|
|
| 2554 |
|
|
|
| 2555 |
|
|
# AC_LIBTOOL_DLOPEN |
| 2556 |
|
|
# ----------------- |
| 2557 |
|
|
# enable checks for dlopen support |
| 2558 |
|
|
AC_DEFUN([AC_LIBTOOL_DLOPEN], |
| 2559 |
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) |
| 2560 |
|
|
])# AC_LIBTOOL_DLOPEN |
| 2561 |
|
|
|
| 2562 |
|
|
|
| 2563 |
|
|
# AC_LIBTOOL_WIN32_DLL |
| 2564 |
|
|
# -------------------- |
| 2565 |
|
|
# declare package support for building win32 dll's |
| 2566 |
|
|
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
| 2567 |
|
|
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
| 2568 |
|
|
])# AC_LIBTOOL_WIN32_DLL |
| 2569 |
|
|
|
| 2570 |
|
|
|
| 2571 |
|
|
# AC_ENABLE_SHARED([DEFAULT]) |
| 2572 |
|
|
# --------------------------- |
| 2573 |
|
|
# implement the --enable-shared flag |
| 2574 |
|
|
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 2575 |
|
|
AC_DEFUN([AC_ENABLE_SHARED], |
| 2576 |
|
|
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
| 2577 |
|
|
AC_ARG_ENABLE([shared], |
| 2578 |
|
|
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
| 2579 |
|
|
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], |
| 2580 |
|
|
[p=${PACKAGE-default} |
| 2581 |
|
|
case $enableval in |
| 2582 |
|
|
yes) enable_shared=yes ;; |
| 2583 |
|
|
no) enable_shared=no ;; |
| 2584 |
|
|
*) |
| 2585 |
|
|
enable_shared=no |
| 2586 |
|
|
# Look at the argument we got. We use all the common list separators. |
| 2587 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2588 |
|
|
for pkg in $enableval; do |
| 2589 |
|
|
IFS="$lt_save_ifs" |
| 2590 |
|
|
if test "X$pkg" = "X$p"; then |
| 2591 |
|
|
enable_shared=yes |
| 2592 |
|
|
fi |
| 2593 |
|
|
done |
| 2594 |
|
|
IFS="$lt_save_ifs" |
| 2595 |
|
|
;; |
| 2596 |
|
|
esac], |
| 2597 |
|
|
[enable_shared=]AC_ENABLE_SHARED_DEFAULT) |
| 2598 |
|
|
])# AC_ENABLE_SHARED |
| 2599 |
|
|
|
| 2600 |
|
|
|
| 2601 |
|
|
# AC_DISABLE_SHARED |
| 2602 |
|
|
# ----------------- |
| 2603 |
|
|
#- set the default shared flag to --disable-shared |
| 2604 |
|
|
AC_DEFUN([AC_DISABLE_SHARED], |
| 2605 |
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 2606 |
|
|
AC_ENABLE_SHARED(no) |
| 2607 |
|
|
])# AC_DISABLE_SHARED |
| 2608 |
|
|
|
| 2609 |
|
|
|
| 2610 |
|
|
# AC_ENABLE_STATIC([DEFAULT]) |
| 2611 |
|
|
# --------------------------- |
| 2612 |
|
|
# implement the --enable-static flag |
| 2613 |
|
|
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 2614 |
|
|
AC_DEFUN([AC_ENABLE_STATIC], |
| 2615 |
|
|
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
| 2616 |
|
|
AC_ARG_ENABLE([static], |
| 2617 |
|
|
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
| 2618 |
|
|
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], |
| 2619 |
|
|
[p=${PACKAGE-default} |
| 2620 |
|
|
case $enableval in |
| 2621 |
|
|
yes) enable_static=yes ;; |
| 2622 |
|
|
no) enable_static=no ;; |
| 2623 |
|
|
*) |
| 2624 |
|
|
enable_static=no |
| 2625 |
|
|
# Look at the argument we got. We use all the common list separators. |
| 2626 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2627 |
|
|
for pkg in $enableval; do |
| 2628 |
|
|
IFS="$lt_save_ifs" |
| 2629 |
|
|
if test "X$pkg" = "X$p"; then |
| 2630 |
|
|
enable_static=yes |
| 2631 |
|
|
fi |
| 2632 |
|
|
done |
| 2633 |
|
|
IFS="$lt_save_ifs" |
| 2634 |
|
|
;; |
| 2635 |
|
|
esac], |
| 2636 |
|
|
[enable_static=]AC_ENABLE_STATIC_DEFAULT) |
| 2637 |
|
|
])# AC_ENABLE_STATIC |
| 2638 |
|
|
|
| 2639 |
|
|
|
| 2640 |
|
|
# AC_DISABLE_STATIC |
| 2641 |
|
|
# ----------------- |
| 2642 |
|
|
# set the default static flag to --disable-static |
| 2643 |
|
|
AC_DEFUN([AC_DISABLE_STATIC], |
| 2644 |
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 2645 |
|
|
AC_ENABLE_STATIC(no) |
| 2646 |
|
|
])# AC_DISABLE_STATIC |
| 2647 |
|
|
|
| 2648 |
|
|
|
| 2649 |
|
|
# AC_ENABLE_FAST_INSTALL([DEFAULT]) |
| 2650 |
|
|
# --------------------------------- |
| 2651 |
|
|
# implement the --enable-fast-install flag |
| 2652 |
|
|
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 2653 |
|
|
AC_DEFUN([AC_ENABLE_FAST_INSTALL], |
| 2654 |
|
|
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl |
| 2655 |
|
|
AC_ARG_ENABLE([fast-install], |
| 2656 |
|
|
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], |
| 2657 |
|
|
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], |
| 2658 |
|
|
[p=${PACKAGE-default} |
| 2659 |
|
|
case $enableval in |
| 2660 |
|
|
yes) enable_fast_install=yes ;; |
| 2661 |
|
|
no) enable_fast_install=no ;; |
| 2662 |
|
|
*) |
| 2663 |
|
|
enable_fast_install=no |
| 2664 |
|
|
# Look at the argument we got. We use all the common list separators. |
| 2665 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2666 |
|
|
for pkg in $enableval; do |
| 2667 |
|
|
IFS="$lt_save_ifs" |
| 2668 |
|
|
if test "X$pkg" = "X$p"; then |
| 2669 |
|
|
enable_fast_install=yes |
| 2670 |
|
|
fi |
| 2671 |
|
|
done |
| 2672 |
|
|
IFS="$lt_save_ifs" |
| 2673 |
|
|
;; |
| 2674 |
|
|
esac], |
| 2675 |
|
|
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) |
| 2676 |
|
|
])# AC_ENABLE_FAST_INSTALL |
| 2677 |
|
|
|
| 2678 |
|
|
|
| 2679 |
|
|
# AC_DISABLE_FAST_INSTALL |
| 2680 |
|
|
# ----------------------- |
| 2681 |
|
|
# set the default to --disable-fast-install |
| 2682 |
|
|
AC_DEFUN([AC_DISABLE_FAST_INSTALL], |
| 2683 |
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 2684 |
|
|
AC_ENABLE_FAST_INSTALL(no) |
| 2685 |
|
|
])# AC_DISABLE_FAST_INSTALL |
| 2686 |
|
|
|
| 2687 |
|
|
|
| 2688 |
|
|
# AC_LIBTOOL_PICMODE([MODE]) |
| 2689 |
|
|
# -------------------------- |
| 2690 |
|
|
# implement the --with-pic flag |
| 2691 |
|
|
# MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
| 2692 |
|
|
AC_DEFUN([AC_LIBTOOL_PICMODE], |
| 2693 |
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 2694 |
|
|
pic_mode=ifelse($#,1,$1,default) |
| 2695 |
|
|
])# AC_LIBTOOL_PICMODE |
| 2696 |
|
|
|
| 2697 |
|
|
|
| 2698 |
|
|
# AC_PROG_EGREP |
| 2699 |
|
|
# ------------- |
| 2700 |
|
|
# This is predefined starting with Autoconf 2.54, so this conditional |
| 2701 |
|
|
# definition can be removed once we require Autoconf 2.54 or later. |
| 2702 |
|
|
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], |
| 2703 |
|
|
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], |
| 2704 |
|
|
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2705 |
|
|
then ac_cv_prog_egrep='grep -E' |
| 2706 |
|
|
else ac_cv_prog_egrep='egrep' |
| 2707 |
|
|
fi]) |
| 2708 |
|
|
EGREP=$ac_cv_prog_egrep |
| 2709 |
|
|
AC_SUBST([EGREP]) |
| 2710 |
|
|
])]) |
| 2711 |
|
|
|
| 2712 |
|
|
|
| 2713 |
|
|
# AC_PATH_TOOL_PREFIX |
| 2714 |
|
|
# ------------------- |
| 2715 |
|
|
# find a file program which can recognise shared library |
| 2716 |
|
|
AC_DEFUN([AC_PATH_TOOL_PREFIX], |
| 2717 |
|
|
[AC_REQUIRE([AC_PROG_EGREP])dnl |
| 2718 |
|
|
AC_MSG_CHECKING([for $1]) |
| 2719 |
|
|
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
| 2720 |
|
|
[case $MAGIC_CMD in |
| 2721 |
|
|
[[\\/*] | ?:[\\/]*]) |
| 2722 |
|
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 2723 |
|
|
;; |
| 2724 |
|
|
*) |
| 2725 |
|
|
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 2726 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 2727 |
|
|
dnl $ac_dummy forces splitting on constant user-supplied paths. |
| 2728 |
|
|
dnl POSIX.2 word splitting is done only on the output of word expansions, |
| 2729 |
|
|
dnl not every word. This closes a longstanding sh security hole. |
| 2730 |
|
|
ac_dummy="ifelse([$2], , $PATH, [$2])" |
| 2731 |
|
|
for ac_dir in $ac_dummy; do |
| 2732 |
|
|
IFS="$lt_save_ifs" |
| 2733 |
|
|
test -z "$ac_dir" && ac_dir=. |
| 2734 |
|
|
if test -f $ac_dir/$1; then |
| 2735 |
|
|
lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
| 2736 |
|
|
if test -n "$file_magic_test_file"; then |
| 2737 |
|
|
case $deplibs_check_method in |
| 2738 |
|
|
"file_magic "*) |
| 2739 |
|
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 2740 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2741 |
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 2742 |
|
|
$EGREP "$file_magic_regex" > /dev/null; then |
| 2743 |
|
|
: |
| 2744 |
|
|
else |
| 2745 |
|
|
cat <<EOF 1>&2 |
| 2746 |
|
|
|
| 2747 |
|
|
*** Warning: the command libtool uses to detect shared libraries, |
| 2748 |
|
|
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 2749 |
|
|
*** The result is that libtool may fail to recognize shared libraries |
| 2750 |
|
|
*** as such. This will affect the creation of libtool libraries that |
| 2751 |
|
|
*** depend on shared libraries, but programs linked with such libtool |
| 2752 |
|
|
*** libraries will work regardless of this problem. Nevertheless, you |
| 2753 |
|
|
*** may want to report the problem to your system manager and/or to |
| 2754 |
|
|
*** bug-libtool@gnu.org |
| 2755 |
|
|
|
| 2756 |
|
|
EOF |
| 2757 |
|
|
fi ;; |
| 2758 |
|
|
esac |
| 2759 |
|
|
fi |
| 2760 |
|
|
break |
| 2761 |
|
|
fi |
| 2762 |
|
|
done |
| 2763 |
|
|
IFS="$lt_save_ifs" |
| 2764 |
|
|
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 2765 |
|
|
;; |
| 2766 |
|
|
esac]) |
| 2767 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2768 |
|
|
if test -n "$MAGIC_CMD"; then |
| 2769 |
|
|
AC_MSG_RESULT($MAGIC_CMD) |
| 2770 |
|
|
else |
| 2771 |
|
|
AC_MSG_RESULT(no) |
| 2772 |
|
|
fi |
| 2773 |
|
|
])# AC_PATH_TOOL_PREFIX |
| 2774 |
|
|
|
| 2775 |
|
|
|
| 2776 |
|
|
# AC_PATH_MAGIC |
| 2777 |
|
|
# ------------- |
| 2778 |
|
|
# find a file program which can recognise a shared library |
| 2779 |
|
|
AC_DEFUN([AC_PATH_MAGIC], |
| 2780 |
|
|
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
| 2781 |
|
|
if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 2782 |
|
|
if test -n "$ac_tool_prefix"; then |
| 2783 |
|
|
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
| 2784 |
|
|
else |
| 2785 |
|
|
MAGIC_CMD=: |
| 2786 |
|
|
fi |
| 2787 |
|
|
fi |
| 2788 |
|
|
])# AC_PATH_MAGIC |
| 2789 |
|
|
|
| 2790 |
|
|
|
| 2791 |
|
|
# AC_PROG_LD |
| 2792 |
|
|
# ---------- |
| 2793 |
|
|
# find the path to the GNU or non-GNU linker |
| 2794 |
|
|
AC_DEFUN([AC_PROG_LD], |
| 2795 |
|
|
[AC_ARG_WITH([gnu-ld], |
| 2796 |
|
|
[AC_HELP_STRING([--with-gnu-ld], |
| 2797 |
|
|
[assume the C compiler uses GNU ld @<:@default=no@:>@])], |
| 2798 |
|
|
[test "$withval" = no || with_gnu_ld=yes], |
| 2799 |
|
|
[with_gnu_ld=no]) |
| 2800 |
|
|
AC_REQUIRE([LT_AC_PROG_SED])dnl |
| 2801 |
|
|
AC_REQUIRE([AC_PROG_CC])dnl |
| 2802 |
|
|
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 2803 |
|
|
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 2804 |
|
|
ac_prog=ld |
| 2805 |
|
|
if test "$GCC" = yes; then |
| 2806 |
|
|
# Check if gcc -print-prog-name=ld gives a path. |
| 2807 |
|
|
AC_MSG_CHECKING([for ld used by $CC]) |
| 2808 |
|
|
case $host in |
| 2809 |
|
|
*-*-mingw*) |
| 2810 |
|
|
# gcc leaves a trailing carriage return which upsets mingw |
| 2811 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 2812 |
|
|
*) |
| 2813 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 2814 |
|
|
esac |
| 2815 |
|
|
case $ac_prog in |
| 2816 |
|
|
# Accept absolute paths. |
| 2817 |
|
|
[[\\/]]* | ?:[[\\/]]*) |
| 2818 |
|
|
re_direlt='/[[^/]][[^/]]*/\.\./' |
| 2819 |
|
|
# Canonicalize the path of ld |
| 2820 |
|
|
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 2821 |
|
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 2822 |
|
|
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 2823 |
|
|
done |
| 2824 |
|
|
test -z "$LD" && LD="$ac_prog" |
| 2825 |
|
|
;; |
| 2826 |
|
|
"") |
| 2827 |
|
|
# If it fails, then pretend we aren't using GCC. |
| 2828 |
|
|
ac_prog=ld |
| 2829 |
|
|
;; |
| 2830 |
|
|
*) |
| 2831 |
|
|
# If it is relative, then search for the first ld in PATH. |
| 2832 |
|
|
with_gnu_ld=unknown |
| 2833 |
|
|
;; |
| 2834 |
|
|
esac |
| 2835 |
|
|
elif test "$with_gnu_ld" = yes; then |
| 2836 |
|
|
AC_MSG_CHECKING([for GNU ld]) |
| 2837 |
|
|
else |
| 2838 |
|
|
AC_MSG_CHECKING([for non-GNU ld]) |
| 2839 |
|
|
fi |
| 2840 |
|
|
AC_CACHE_VAL(lt_cv_path_LD, |
| 2841 |
|
|
[if test -z "$LD"; then |
| 2842 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 2843 |
|
|
for ac_dir in $PATH; do |
| 2844 |
|
|
IFS="$lt_save_ifs" |
| 2845 |
|
|
test -z "$ac_dir" && ac_dir=. |
| 2846 |
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 2847 |
|
|
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 2848 |
|
|
# Check to see if the program is GNU ld. I'd rather use --version, |
| 2849 |
|
|
# but apparently some GNU ld's only accept -v. |
| 2850 |
|
|
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 2851 |
|
|
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 2852 |
|
|
*GNU* | *'with BFD'*) |
| 2853 |
|
|
test "$with_gnu_ld" != no && break |
| 2854 |
|
|
;; |
| 2855 |
|
|
*) |
| 2856 |
|
|
test "$with_gnu_ld" != yes && break |
| 2857 |
|
|
;; |
| 2858 |
|
|
esac |
| 2859 |
|
|
fi |
| 2860 |
|
|
done |
| 2861 |
|
|
IFS="$lt_save_ifs" |
| 2862 |
|
|
else |
| 2863 |
|
|
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 2864 |
|
|
fi]) |
| 2865 |
|
|
LD="$lt_cv_path_LD" |
| 2866 |
|
|
if test -n "$LD"; then |
| 2867 |
|
|
AC_MSG_RESULT($LD) |
| 2868 |
|
|
else |
| 2869 |
|
|
AC_MSG_RESULT(no) |
| 2870 |
|
|
fi |
| 2871 |
|
|
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
| 2872 |
|
|
AC_PROG_LD_GNU |
| 2873 |
|
|
])# AC_PROG_LD |
| 2874 |
|
|
|
| 2875 |
|
|
|
| 2876 |
|
|
# AC_PROG_LD_GNU |
| 2877 |
|
|
# -------------- |
| 2878 |
|
|
AC_DEFUN([AC_PROG_LD_GNU], |
| 2879 |
|
|
[AC_REQUIRE([AC_PROG_EGREP])dnl |
| 2880 |
|
|
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
| 2881 |
|
|
[# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 2882 |
|
|
case `$LD -v 2>&1 </dev/null` in |
| 2883 |
|
|
*GNU* | *'with BFD'*) |
| 2884 |
|
|
lt_cv_prog_gnu_ld=yes |
| 2885 |
|
|
;; |
| 2886 |
|
|
*) |
| 2887 |
|
|
lt_cv_prog_gnu_ld=no |
| 2888 |
|
|
;; |
| 2889 |
|
|
esac]) |
| 2890 |
|
|
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 2891 |
|
|
])# AC_PROG_LD_GNU |
| 2892 |
|
|
|
| 2893 |
|
|
|
| 2894 |
|
|
# AC_PROG_LD_RELOAD_FLAG |
| 2895 |
|
|
# ---------------------- |
| 2896 |
|
|
# find reload flag for linker |
| 2897 |
|
|
# -- PORTME Some linkers may need a different reload flag. |
| 2898 |
|
|
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], |
| 2899 |
|
|
[AC_CACHE_CHECK([for $LD option to reload object files], |
| 2900 |
|
|
lt_cv_ld_reload_flag, |
| 2901 |
|
|
[lt_cv_ld_reload_flag='-r']) |
| 2902 |
|
|
reload_flag=$lt_cv_ld_reload_flag |
| 2903 |
|
|
case $reload_flag in |
| 2904 |
|
|
"" | " "*) ;; |
| 2905 |
|
|
*) reload_flag=" $reload_flag" ;; |
| 2906 |
|
|
esac |
| 2907 |
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 2908 |
|
|
])# AC_PROG_LD_RELOAD_FLAG |
| 2909 |
|
|
|
| 2910 |
|
|
|
| 2911 |
|
|
# AC_DEPLIBS_CHECK_METHOD |
| 2912 |
|
|
# ----------------------- |
| 2913 |
|
|
# how to check for library dependencies |
| 2914 |
|
|
# -- PORTME fill in with the dynamic library characteristics |
| 2915 |
|
|
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
| 2916 |
|
|
[AC_CACHE_CHECK([how to recognise dependent libraries], |
| 2917 |
|
|
lt_cv_deplibs_check_method, |
| 2918 |
|
|
[lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 2919 |
|
|
lt_cv_file_magic_test_file= |
| 2920 |
|
|
lt_cv_deplibs_check_method='unknown' |
| 2921 |
|
|
# Need to set the preceding variable on all platforms that support |
| 2922 |
|
|
# interlibrary dependencies. |
| 2923 |
|
|
# 'none' -- dependencies not supported. |
| 2924 |
|
|
# `unknown' -- same as none, but documents that we really don't know. |
| 2925 |
|
|
# 'pass_all' -- all dependencies passed with no checks. |
| 2926 |
|
|
# 'test_compile' -- check by making test program. |
| 2927 |
|
|
# 'file_magic [[regex]]' -- check by looking for files in library path |
| 2928 |
|
|
# which responds to the $file_magic_cmd with a given extended regex. |
| 2929 |
|
|
# If you have `file' or equivalent on your system and you're not sure |
| 2930 |
|
|
# whether `pass_all' will *always* work, you probably want this one. |
| 2931 |
|
|
|
| 2932 |
|
|
case $host_os in |
| 2933 |
|
|
aix4* | aix5*) |
| 2934 |
|
|
lt_cv_deplibs_check_method=pass_all |
| 2935 |
|
|
;; |
| 2936 |
|
|
|
| 2937 |
|
|
beos*) |
| 2938 |
|
|
lt_cv_deplibs_check_method=pass_all |
| 2939 |
|
|
;; |
| 2940 |
|
|
|
| 2941 |
|
|
bsdi4*) |
| 2942 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
| 2943 |
|
|
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2944 |
|
|
lt_cv_file_magic_test_file=/shlib/libc.so |
| 2945 |
|
|
;; |
| 2946 |
|
|
|
| 2947 |
|
|
cygwin* | mingw* | pw32*) |
| 2948 |
|
|
# win32_libid is a shell function defined in ltmain.sh |
| 2949 |
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 2950 |
|
|
lt_cv_file_magic_cmd='win32_libid' |
| 2951 |
|
|
;; |
| 2952 |
|
|
|
| 2953 |
|
|
darwin* | rhapsody*) |
| 2954 |
|
|
# this will be overwritten by pass_all, but leave it in just in case |
| 2955 |
|
|
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 2956 |
|
|
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2957 |
|
|
case "$host_os" in |
| 2958 |
|
|
rhapsody* | darwin1.[[012]]) |
| 2959 |
|
|
lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
| 2960 |
|
|
;; |
| 2961 |
|
|
*) # Darwin 1.3 on |
| 2962 |
|
|
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 2963 |
|
|
;; |
| 2964 |
|
|
esac |
| 2965 |
|
|
lt_cv_deplibs_check_method=pass_all |
| 2966 |
|
|
;; |
| 2967 |
|
|
|
| 2968 |
|
|
freebsd*) |
| 2969 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2970 |
|
|
case $host_cpu in |
| 2971 |
|
|
i*86 ) |
| 2972 |
|
|
# Not sure whether the presence of OpenBSD here was a mistake. |
| 2973 |
|
|
# Let's accept both of them until this is cleared up. |
| 2974 |
|
|
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' |
| 2975 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file |
| 2976 |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 2977 |
|
|
;; |
| 2978 |
|
|
esac |
| 2979 |
|
|
else |
| 2980 |
|
|
lt_cv_deplibs_check_method=pass_all |
| 2981 |
|
|
fi |
| 2982 |
|
|
;; |
| 2983 |
|
|
|
| 2984 |
|
|
gnu*) |
| 2985 |
|
|
lt_cv_deplibs_check_method=pass_all |
| 2986 |
|
|
;; |
| 2987 |
|
|
|
| 2988 |
|
|
hpux10.20* | hpux11*) |
| 2989 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file |
| 2990 |
|
|
case "$host_cpu" in |
| 2991 |
|
|
ia64*) |
| 2992 |
|
|
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
| 2993 |
|
|
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 2994 |
|
|
;; |
| 2995 |
|
|
hppa*64*) |
| 2996 |
|
|
[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]'] |
| 2997 |
|
|
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 2998 |
|
|
;; |
| 2999 |
|
|
*) |
| 3000 |
|
|
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
| 3001 |
|
|
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3002 |
|
|
;; |
| 3003 |
|
|
esac |
| 3004 |
|
|
;; |
| 3005 |
|
|
|
| 3006 |
|
|
irix5* | irix6* | nonstopux*) |
| 3007 |
|
|
case $host_os in |
| 3008 |
|
|
irix5* | nonstopux*) |
| 3009 |
|
|
# this will be overridden with pass_all, but let us keep it just in case |
| 3010 |
|
|
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 3011 |
|
|
;; |
| 3012 |
|
|
*) |
| 3013 |
|
|
case $LD in |
| 3014 |
|
|
*-32|*"-32 ") libmagic=32-bit;; |
| 3015 |
|
|
*-n32|*"-n32 ") libmagic=N32;; |
| 3016 |
|
|
*-64|*"-64 ") libmagic=64-bit;; |
| 3017 |
|
|
*) libmagic=never-match;; |
| 3018 |
|
|
esac |
| 3019 |
|
|
# this will be overridden with pass_all, but let us keep it just in case |
| 3020 |
|
|
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" |
| 3021 |
|
|
;; |
| 3022 |
|
|
esac |
| 3023 |
|
|
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 3024 |
|
|
lt_cv_deplibs_check_method=pass_all |
| 3025 |
|
|
;; |
| 3026 |
|
|
|
| 3027 |
|
|
# This must be Linux ELF. |
| 3028 |
|
|
linux*) |
| 3029 |
|
|
case $host_cpu in |
| 3030 |
|
|
alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64*) |
| 3031 |
|
|
lt_cv_deplibs_check_method=pass_all ;; |
| 3032 |
|
|
*) |
| 3033 |
|
|
# glibc up to 2.1.1 does not perform some relocations on ARM |
| 3034 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; |
| 3035 |
|
|
esac |
| 3036 |
|
|
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 3037 |
|
|
;; |
| 3038 |
|
|
|
| 3039 |
|
|
netbsd*) |
| 3040 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3041 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 3042 |
|
|
else |
| 3043 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
| 3044 |
|
|
fi |
| 3045 |
|
|
;; |
| 3046 |
|
|
|
| 3047 |
|
|
newos6*) |
| 3048 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
| 3049 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file |
| 3050 |
|
|
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3051 |
|
|
;; |
| 3052 |
|
|
|
| 3053 |
|
|
nto-qnx) |
| 3054 |
|
|
lt_cv_deplibs_check_method=unknown |
| 3055 |
|
|
;; |
| 3056 |
|
|
|
| 3057 |
|
|
openbsd*) |
| 3058 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file |
| 3059 |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3060 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3061 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
| 3062 |
|
|
else |
| 3063 |
|
|
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3064 |
|
|
fi |
| 3065 |
|
|
;; |
| 3066 |
|
|
|
| 3067 |
|
|
osf3* | osf4* | osf5*) |
| 3068 |
|
|
# this will be overridden with pass_all, but let us keep it just in case |
| 3069 |
|
|
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 3070 |
|
|
lt_cv_file_magic_test_file=/shlib/libc.so |
| 3071 |
|
|
lt_cv_deplibs_check_method=pass_all |
| 3072 |
|
|
;; |
| 3073 |
|
|
|
| 3074 |
|
|
sco3.2v5*) |
| 3075 |
|
|
lt_cv_deplibs_check_method=pass_all |
| 3076 |
|
|
;; |
| 3077 |
|
|
|
| 3078 |
|
|
solaris*) |
| 3079 |
|
|
lt_cv_deplibs_check_method=pass_all |
| 3080 |
|
|
lt_cv_file_magic_test_file=/lib/libc.so |
| 3081 |
|
|
;; |
| 3082 |
|
|
|
| 3083 |
|
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3084 |
|
|
case $host_vendor in |
| 3085 |
|
|
motorola) |
| 3086 |
|
|
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]]' |
| 3087 |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3088 |
|
|
;; |
| 3089 |
|
|
ncr) |
| 3090 |
|
|
lt_cv_deplibs_check_method=pass_all |
| 3091 |
|
|
;; |
| 3092 |
|
|
sequent) |
| 3093 |
|
|
lt_cv_file_magic_cmd='/bin/file' |
| 3094 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
| 3095 |
|
|
;; |
| 3096 |
|
|
sni) |
| 3097 |
|
|
lt_cv_file_magic_cmd='/bin/file' |
| 3098 |
|
|
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
| 3099 |
|
|
lt_cv_file_magic_test_file=/lib/libc.so |
| 3100 |
|
|
;; |
| 3101 |
|
|
siemens) |
| 3102 |
|
|
lt_cv_deplibs_check_method=pass_all |
| 3103 |
|
|
;; |
| 3104 |
|
|
esac |
| 3105 |
|
|
;; |
| 3106 |
|
|
|
| 3107 |
|
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) |
| 3108 |
|
|
lt_cv_deplibs_check_method=pass_all |
| 3109 |
|
|
;; |
| 3110 |
|
|
esac |
| 3111 |
|
|
]) |
| 3112 |
|
|
file_magic_cmd=$lt_cv_file_magic_cmd |
| 3113 |
|
|
deplibs_check_method=$lt_cv_deplibs_check_method |
| 3114 |
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 3115 |
|
|
])# AC_DEPLIBS_CHECK_METHOD |
| 3116 |
|
|
|
| 3117 |
|
|
|
| 3118 |
|
|
# AC_PROG_NM |
| 3119 |
|
|
# ---------- |
| 3120 |
|
|
# find the path to a BSD-compatible name lister |
| 3121 |
|
|
AC_DEFUN([AC_PROG_NM], |
| 3122 |
|
|
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, |
| 3123 |
|
|
[if test -n "$NM"; then |
| 3124 |
|
|
# Let the user override the test. |
| 3125 |
|
|
lt_cv_path_NM="$NM" |
| 3126 |
|
|
else |
| 3127 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3128 |
|
|
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 3129 |
|
|
IFS="$lt_save_ifs" |
| 3130 |
|
|
test -z "$ac_dir" && ac_dir=. |
| 3131 |
|
|
tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 3132 |
|
|
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 3133 |
|
|
# Check to see if the nm accepts a BSD-compat flag. |
| 3134 |
|
|
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3135 |
|
|
# nm: unknown option "B" ignored |
| 3136 |
|
|
# Tru64's nm complains that /dev/null is an invalid object file |
| 3137 |
|
|
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3138 |
|
|
*/dev/null* | *'Invalid file or object type'*) |
| 3139 |
|
|
lt_cv_path_NM="$tmp_nm -B" |
| 3140 |
|
|
break |
| 3141 |
|
|
;; |
| 3142 |
|
|
*) |
| 3143 |
|
|
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3144 |
|
|
*/dev/null*) |
| 3145 |
|
|
lt_cv_path_NM="$tmp_nm -p" |
| 3146 |
|
|
break |
| 3147 |
|
|
;; |
| 3148 |
|
|
*) |
| 3149 |
|
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3150 |
|
|
continue # so that we can try to find one that supports BSD flags |
| 3151 |
|
|
;; |
| 3152 |
|
|
esac |
| 3153 |
|
|
esac |
| 3154 |
|
|
fi |
| 3155 |
|
|
done |
| 3156 |
|
|
IFS="$lt_save_ifs" |
| 3157 |
|
|
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 3158 |
|
|
fi]) |
| 3159 |
|
|
NM="$lt_cv_path_NM" |
| 3160 |
|
|
])# AC_PROG_NM |
| 3161 |
|
|
|
| 3162 |
|
|
|
| 3163 |
|
|
# AC_CHECK_LIBM |
| 3164 |
|
|
# ------------- |
| 3165 |
|
|
# check for math library |
| 3166 |
|
|
AC_DEFUN([AC_CHECK_LIBM], |
| 3167 |
|
|
[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 3168 |
|
|
LIBM= |
| 3169 |
|
|
case $host in |
| 3170 |
|
|
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
| 3171 |
|
|
# These system don't have libm, or don't need it |
| 3172 |
|
|
;; |
| 3173 |
|
|
*-ncr-sysv4.3*) |
| 3174 |
|
|
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
| 3175 |
|
|
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
| 3176 |
|
|
;; |
| 3177 |
|
|
*) |
| 3178 |
|
|
AC_CHECK_LIB(m, cos, LIBM="-lm") |
| 3179 |
|
|
;; |
| 3180 |
|
|
esac |
| 3181 |
|
|
])# AC_CHECK_LIBM |
| 3182 |
|
|
|
| 3183 |
|
|
|
| 3184 |
|
|
# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
| 3185 |
|
|
# ----------------------------------- |
| 3186 |
|
|
# sets LIBLTDL to the link flags for the libltdl convenience library and |
| 3187 |
|
|
# LTDLINCL to the include flags for the libltdl header and adds |
| 3188 |
|
|
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL |
| 3189 |
|
|
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
| 3190 |
|
|
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will |
| 3191 |
|
|
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with |
| 3192 |
|
|
# '${top_srcdir}/' (note the single quotes!). If your package is not |
| 3193 |
|
|
# flat and you're not using automake, define top_builddir and |
| 3194 |
|
|
# top_srcdir appropriately in the Makefiles. |
| 3195 |
|
|
AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
| 3196 |
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 3197 |
|
|
case $enable_ltdl_convenience in |
| 3198 |
|
|
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
| 3199 |
|
|
"") enable_ltdl_convenience=yes |
| 3200 |
|
|
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
| 3201 |
|
|
esac |
| 3202 |
|
|
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
| 3203 |
|
|
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
| 3204 |
|
|
# For backwards non-gettext consistent compatibility... |
| 3205 |
|
|
INCLTDL="$LTDLINCL" |
| 3206 |
|
|
])# AC_LIBLTDL_CONVENIENCE |
| 3207 |
|
|
|
| 3208 |
|
|
|
| 3209 |
|
|
# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
| 3210 |
|
|
# ----------------------------------- |
| 3211 |
|
|
# sets LIBLTDL to the link flags for the libltdl installable library and |
| 3212 |
|
|
# LTDLINCL to the include flags for the libltdl header and adds |
| 3213 |
|
|
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL |
| 3214 |
|
|
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
| 3215 |
|
|
# DIRECTORY is not provided and an installed libltdl is not found, it is |
| 3216 |
|
|
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' |
| 3217 |
|
|
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single |
| 3218 |
|
|
# quotes!). If your package is not flat and you're not using automake, |
| 3219 |
|
|
# define top_builddir and top_srcdir appropriately in the Makefiles. |
| 3220 |
|
|
# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
| 3221 |
|
|
AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
| 3222 |
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 3223 |
|
|
AC_CHECK_LIB(ltdl, lt_dlinit, |
| 3224 |
|
|
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
| 3225 |
|
|
[if test x"$enable_ltdl_install" = xno; then |
| 3226 |
|
|
AC_MSG_WARN([libltdl not installed, but installation disabled]) |
| 3227 |
|
|
else |
| 3228 |
|
|
enable_ltdl_install=yes |
| 3229 |
|
|
fi |
| 3230 |
|
|
]) |
| 3231 |
|
|
if test x"$enable_ltdl_install" = x"yes"; then |
| 3232 |
|
|
ac_configure_args="$ac_configure_args --enable-ltdl-install" |
| 3233 |
|
|
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
| 3234 |
|
|
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
| 3235 |
|
|
else |
| 3236 |
|
|
ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
| 3237 |
|
|
LIBLTDL="-lltdl" |
| 3238 |
|
|
LTDLINCL= |
| 3239 |
|
|
fi |
| 3240 |
|
|
# For backwards non-gettext consistent compatibility... |
| 3241 |
|
|
INCLTDL="$LTDLINCL" |
| 3242 |
|
|
])# AC_LIBLTDL_INSTALLABLE |
| 3243 |
|
|
|
| 3244 |
|
|
|
| 3245 |
|
|
# AC_LIBTOOL_CXX |
| 3246 |
|
|
# -------------- |
| 3247 |
|
|
# enable support for C++ libraries |
| 3248 |
|
|
AC_DEFUN([AC_LIBTOOL_CXX], |
| 3249 |
|
|
[AC_REQUIRE([_LT_AC_LANG_CXX]) |
| 3250 |
|
|
])# AC_LIBTOOL_CXX |
| 3251 |
|
|
|
| 3252 |
|
|
|
| 3253 |
|
|
# _LT_AC_LANG_CXX |
| 3254 |
|
|
# --------------- |
| 3255 |
|
|
AC_DEFUN([_LT_AC_LANG_CXX], |
| 3256 |
|
|
[AC_REQUIRE([AC_PROG_CXX]) |
| 3257 |
|
|
AC_REQUIRE([AC_PROG_CXXCPP]) |
| 3258 |
|
|
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`]) |
| 3259 |
|
|
])# _LT_AC_LANG_CXX |
| 3260 |
|
|
|
| 3261 |
|
|
|
| 3262 |
|
|
# AC_LIBTOOL_F77 |
| 3263 |
|
|
# -------------- |
| 3264 |
|
|
# enable support for Fortran 77 libraries |
| 3265 |
|
|
AC_DEFUN([AC_LIBTOOL_F77], |
| 3266 |
|
|
[AC_REQUIRE([_LT_AC_LANG_F77]) |
| 3267 |
|
|
])# AC_LIBTOOL_F77 |
| 3268 |
|
|
|
| 3269 |
|
|
|
| 3270 |
|
|
# _LT_AC_LANG_F77 |
| 3271 |
|
|
# --------------- |
| 3272 |
|
|
AC_DEFUN([_LT_AC_LANG_F77], |
| 3273 |
|
|
[AC_REQUIRE([AC_PROG_F77]) |
| 3274 |
|
|
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`]) |
| 3275 |
|
|
])# _LT_AC_LANG_F77 |
| 3276 |
|
|
|
| 3277 |
|
|
|
| 3278 |
|
|
# AC_LIBTOOL_GCJ |
| 3279 |
|
|
# -------------- |
| 3280 |
|
|
# enable support for GCJ libraries |
| 3281 |
|
|
AC_DEFUN([AC_LIBTOOL_GCJ], |
| 3282 |
|
|
[AC_REQUIRE([_LT_AC_LANG_GCJ]) |
| 3283 |
|
|
])# AC_LIBTOOL_GCJ |
| 3284 |
|
|
|
| 3285 |
|
|
|
| 3286 |
|
|
# _LT_AC_LANG_GCJ |
| 3287 |
|
|
# --------------- |
| 3288 |
|
|
AC_DEFUN([_LT_AC_LANG_GCJ], |
| 3289 |
|
|
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], |
| 3290 |
|
|
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
| 3291 |
|
|
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
| 3292 |
|
|
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
| 3293 |
|
|
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
| 3294 |
|
|
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
| 3295 |
|
|
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`]) |
| 3296 |
|
|
])# _LT_AC_LANG_GCJ |
| 3297 |
|
|
|
| 3298 |
|
|
|
| 3299 |
|
|
# AC_LIBTOOL_RC |
| 3300 |
|
|
# -------------- |
| 3301 |
|
|
# enable support for Windows resource files |
| 3302 |
|
|
AC_DEFUN([AC_LIBTOOL_RC], |
| 3303 |
|
|
[AC_REQUIRE([LT_AC_PROG_RC]) |
| 3304 |
|
|
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`]) |
| 3305 |
|
|
])# AC_LIBTOOL_RC |
| 3306 |
|
|
|
| 3307 |
|
|
|
| 3308 |
|
|
# AC_LIBTOOL_LANG_C_CONFIG |
| 3309 |
|
|
# ------------------------ |
| 3310 |
|
|
# Ensure that the configuration vars for the C compiler are |
| 3311 |
|
|
# suitably defined. Those variables are subsequently used by |
| 3312 |
|
|
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 3313 |
|
|
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) |
| 3314 |
|
|
AC_DEFUN([_LT_AC_LANG_C_CONFIG], |
| 3315 |
|
|
[lt_save_CC="$CC" |
| 3316 |
|
|
AC_LANG_PUSH(C) |
| 3317 |
|
|
|
| 3318 |
|
|
# Source file extension for C test sources. |
| 3319 |
|
|
ac_ext=c |
| 3320 |
|
|
|
| 3321 |
|
|
# Object file extension for compiled C test sources. |
| 3322 |
|
|
objext=o |
| 3323 |
|
|
_LT_AC_TAGVAR(objext, $1)=$objext |
| 3324 |
|
|
|
| 3325 |
|
|
# Code to be used in simple compile tests |
| 3326 |
|
|
lt_simple_compile_test_code="int some_variable = 0;\n" |
| 3327 |
|
|
|
| 3328 |
|
|
# Code to be used in simple link tests |
| 3329 |
|
|
lt_simple_link_test_code='int main(){return(0);}\n' |
| 3330 |
|
|
|
| 3331 |
|
|
_LT_AC_SYS_COMPILER |
| 3332 |
|
|
|
| 3333 |
|
|
# |
| 3334 |
|
|
# Check for any special shared library compilation flags. |
| 3335 |
|
|
# |
| 3336 |
|
|
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= |
| 3337 |
|
|
if test "$GCC" = no; then |
| 3338 |
|
|
case $host_os in |
| 3339 |
|
|
sco3.2v5*) |
| 3340 |
|
|
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' |
| 3341 |
|
|
;; |
| 3342 |
|
|
esac |
| 3343 |
|
|
fi |
| 3344 |
|
|
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
| 3345 |
|
|
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
| 3346 |
|
|
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then : |
| 3347 |
|
|
else |
| 3348 |
|
|
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
| 3349 |
|
|
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
| 3350 |
|
|
fi |
| 3351 |
|
|
fi |
| 3352 |
|
|
|
| 3353 |
|
|
|
| 3354 |
|
|
# |
| 3355 |
|
|
# Check to make sure the static flag actually works. |
| 3356 |
|
|
# |
| 3357 |
|
|
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], |
| 3358 |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
| 3359 |
|
|
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1), |
| 3360 |
|
|
[], |
| 3361 |
|
|
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
| 3362 |
|
|
|
| 3363 |
|
|
|
| 3364 |
|
|
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
| 3365 |
|
|
AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 3366 |
|
|
AC_LIBTOOL_PROG_CC_C_O($1) |
| 3367 |
|
|
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 3368 |
|
|
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 3369 |
|
|
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 3370 |
|
|
AC_LIBTOOL_SYS_LIB_STRIP |
| 3371 |
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 3372 |
|
|
AC_LIBTOOL_DLOPEN_SELF($1) |
| 3373 |
|
|
|
| 3374 |
|
|
# Report which librarie types wil actually be built |
| 3375 |
|
|
AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 3376 |
|
|
AC_MSG_RESULT([$can_build_shared]) |
| 3377 |
|
|
|
| 3378 |
|
|
AC_MSG_CHECKING([whether to build shared libraries]) |
| 3379 |
|
|
test "$can_build_shared" = "no" && enable_shared=no |
| 3380 |
|
|
|
| 3381 |
|
|
# On AIX, shared libraries and static libraries use the same namespace, and |
| 3382 |
|
|
# are all built from PIC. |
| 3383 |
|
|
case "$host_os" in |
| 3384 |
|
|
aix3*) |
| 3385 |
|
|
test "$enable_shared" = yes && enable_static=no |
| 3386 |
|
|
if test -n "$RANLIB"; then |
| 3387 |
|
|
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 3388 |
|
|
postinstall_cmds='$RANLIB $lib' |
| 3389 |
|
|
fi |
| 3390 |
|
|
;; |
| 3391 |
|
|
|
| 3392 |
|
|
aix4*) |
| 3393 |
|
|
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 3394 |
|
|
test "$enable_shared" = yes && enable_static=no |
| 3395 |
|
|
fi |
| 3396 |
|
|
;; |
| 3397 |
|
|
darwin* | rhapsody*) |
| 3398 |
|
|
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 3399 |
|
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3400 |
|
|
case "$host_os" in |
| 3401 |
|
|
rhapsody* | darwin1.[[012]]) |
| 3402 |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
| 3403 |
|
|
;; |
| 3404 |
|
|
*) # Darwin 1.3 on |
| 3405 |
|
|
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
| 3406 |
|
|
;; |
| 3407 |
|
|
esac |
| 3408 |
|
|
# FIXME: Relying on posixy $() will cause problems for |
| 3409 |
|
|
# cross-compilation, but unfortunately the echo tests do not |
| 3410 |
|
|
# yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 3411 |
|
|
# `"' quotes if we put them in here... so don't! |
| 3412 |
|
|
output_verbose_link_cmd='echo' |
| 3413 |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| 3414 |
|
|
_LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 3415 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 3416 |
|
|
_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}' |
| 3417 |
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 3418 |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3419 |
|
|
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 3420 |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 3421 |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| 3422 |
|
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 3423 |
|
|
fi |
| 3424 |
|
|
;; |
| 3425 |
|
|
esac |
| 3426 |
|
|
AC_MSG_RESULT([$enable_shared]) |
| 3427 |
|
|
|
| 3428 |
|
|
AC_MSG_CHECKING([whether to build static libraries]) |
| 3429 |
|
|
# Make sure either enable_shared or enable_static is yes. |
| 3430 |
|
|
test "$enable_shared" = yes || enable_static=yes |
| 3431 |
|
|
AC_MSG_RESULT([$enable_static]) |
| 3432 |
|
|
|
| 3433 |
|
|
AC_LIBTOOL_CONFIG($1) |
| 3434 |
|
|
|
| 3435 |
|
|
AC_LANG_POP |
| 3436 |
|
|
CC="$lt_save_CC" |
| 3437 |
|
|
])# AC_LIBTOOL_LANG_C_CONFIG |
| 3438 |
|
|
|
| 3439 |
|
|
|
| 3440 |
|
|
# AC_LIBTOOL_LANG_CXX_CONFIG |
| 3441 |
|
|
# -------------------------- |
| 3442 |
|
|
# Ensure that the configuration vars for the C compiler are |
| 3443 |
|
|
# suitably defined. Those variables are subsequently used by |
| 3444 |
|
|
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 3445 |
|
|
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) |
| 3446 |
|
|
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
| 3447 |
|
|
[AC_LANG_PUSH(C++) |
| 3448 |
|
|
AC_REQUIRE([AC_PROG_CXX]) |
| 3449 |
|
|
AC_REQUIRE([AC_PROG_CXXCPP]) |
| 3450 |
|
|
|
| 3451 |
|
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3452 |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 3453 |
|
|
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 3454 |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
| 3455 |
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 3456 |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3457 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 3458 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 3459 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 3460 |
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 3461 |
|
|
_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 3462 |
|
|
_LT_AC_TAGVAR(module_cmds, $1)= |
| 3463 |
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 3464 |
|
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 3465 |
|
|
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 3466 |
|
|
_LT_AC_TAGVAR(no_undefined_flag, $1)= |
| 3467 |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 3468 |
|
|
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 3469 |
|
|
|
| 3470 |
|
|
# Dependencies to place before and after the object being linked: |
| 3471 |
|
|
_LT_AC_TAGVAR(predep_objects, $1)= |
| 3472 |
|
|
_LT_AC_TAGVAR(postdep_objects, $1)= |
| 3473 |
|
|
_LT_AC_TAGVAR(predeps, $1)= |
| 3474 |
|
|
_LT_AC_TAGVAR(postdeps, $1)= |
| 3475 |
|
|
_LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
| 3476 |
|
|
|
| 3477 |
|
|
# Source file extension for C++ test sources. |
| 3478 |
|
|
ac_ext=cc |
| 3479 |
|
|
|
| 3480 |
|
|
# Object file extension for compiled C++ test sources. |
| 3481 |
|
|
objext=o |
| 3482 |
|
|
_LT_AC_TAGVAR(objext, $1)=$objext |
| 3483 |
|
|
|
| 3484 |
|
|
# Code to be used in simple compile tests |
| 3485 |
|
|
lt_simple_compile_test_code="int some_variable = 0;\n" |
| 3486 |
|
|
|
| 3487 |
|
|
# Code to be used in simple link tests |
| 3488 |
|
|
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
| 3489 |
|
|
|
| 3490 |
|
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 3491 |
|
|
_LT_AC_SYS_COMPILER |
| 3492 |
|
|
|
| 3493 |
|
|
# Allow CC to be a program name with arguments. |
| 3494 |
|
|
lt_save_CC=$CC |
| 3495 |
|
|
lt_save_LD=$LD |
| 3496 |
|
|
lt_save_GCC=$GCC |
| 3497 |
|
|
GCC=$GXX |
| 3498 |
|
|
lt_save_with_gnu_ld=$with_gnu_ld |
| 3499 |
|
|
lt_save_path_LD=$lt_cv_path_LD |
| 3500 |
|
|
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 3501 |
|
|
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 3502 |
|
|
else |
| 3503 |
|
|
unset lt_cv_prog_gnu_ld |
| 3504 |
|
|
fi |
| 3505 |
|
|
if test -n "${lt_cv_path_LDCXX+set}"; then |
| 3506 |
|
|
lt_cv_path_LD=$lt_cv_path_LDCXX |
| 3507 |
|
|
else |
| 3508 |
|
|
unset lt_cv_path_LD |
| 3509 |
|
|
fi |
| 3510 |
|
|
test -z "${LDCXX+set}" || LD=$LDCXX |
| 3511 |
|
|
CC=${CXX-"c++"} |
| 3512 |
|
|
compiler=$CC |
| 3513 |
|
|
_LT_AC_TAGVAR(compiler, $1)=$CC |
| 3514 |
|
|
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 3515 |
|
|
|
| 3516 |
|
|
# We don't want -fno-exception wen compiling C++ code, so set the |
| 3517 |
|
|
# no_builtin_flag separately |
| 3518 |
|
|
if test "$GXX" = yes; then |
| 3519 |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
| 3520 |
|
|
else |
| 3521 |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 3522 |
|
|
fi |
| 3523 |
|
|
|
| 3524 |
|
|
if test "$GXX" = yes; then |
| 3525 |
|
|
# Set up default GNU C++ configuration |
| 3526 |
|
|
|
| 3527 |
|
|
AC_PROG_LD |
| 3528 |
|
|
|
| 3529 |
|
|
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 3530 |
|
|
# archiving commands below assume that GNU ld is being used. |
| 3531 |
|
|
if test "$with_gnu_ld" = yes; then |
| 3532 |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3533 |
|
|
_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' |
| 3534 |
|
|
|
| 3535 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 3536 |
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 3537 |
|
|
|
| 3538 |
|
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 3539 |
|
|
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 3540 |
|
|
# investigate it a little bit more. (MM) |
| 3541 |
|
|
wlarc='${wl}' |
| 3542 |
|
|
|
| 3543 |
|
|
# ancient GNU ld didn't support --whole-archive et. al. |
| 3544 |
|
|
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 3545 |
|
|
grep 'no-whole-archive' > /dev/null; then |
| 3546 |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 3547 |
|
|
else |
| 3548 |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 3549 |
|
|
fi |
| 3550 |
|
|
else |
| 3551 |
|
|
with_gnu_ld=no |
| 3552 |
|
|
wlarc= |
| 3553 |
|
|
|
| 3554 |
|
|
# A generic and very simple default shared library creation |
| 3555 |
|
|
# command for GNU C++ for the case where it uses the native |
| 3556 |
|
|
# linker, instead of GNU ld. If possible, this setting should |
| 3557 |
|
|
# overridden to take advantage of the native linker features on |
| 3558 |
|
|
# the platform it is being used on. |
| 3559 |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 3560 |
|
|
fi |
| 3561 |
|
|
|
| 3562 |
|
|
# Commands to make compiler produce verbose output that lists |
| 3563 |
|
|
# what "hidden" libraries, object files and flags are used when |
| 3564 |
|
|
# linking a shared library. |
| 3565 |
|
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 3566 |
|
|
|
| 3567 |
|
|
else |
| 3568 |
|
|
GXX=no |
| 3569 |
|
|
with_gnu_ld=no |
| 3570 |
|
|
wlarc= |
| 3571 |
|
|
fi |
| 3572 |
|
|
|
| 3573 |
|
|
# PORTME: fill in a description of your system's C++ link characteristics |
| 3574 |
|
|
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 3575 |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 3576 |
|
|
case $host_os in |
| 3577 |
|
|
aix3*) |
| 3578 |
|
|
# FIXME: insert proper C++ library support |
| 3579 |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3580 |
|
|
;; |
| 3581 |
|
|
aix4* | aix5*) |
| 3582 |
|
|
if test "$host_cpu" = ia64; then |
| 3583 |
|
|
# On IA64, the linker does run time linking by default, so we don't |
| 3584 |
|
|
# have to do anything special. |
| 3585 |
|
|
aix_use_runtimelinking=no |
| 3586 |
|
|
exp_sym_flag='-Bexport' |
| 3587 |
|
|
no_entry_flag="" |
| 3588 |
|
|
else |
| 3589 |
|
|
aix_use_runtimelinking=no |
| 3590 |
|
|
|
| 3591 |
|
|
# Test if we are trying to use run time linking or normal |
| 3592 |
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 3593 |
|
|
# need to do runtime linking. |
| 3594 |
|
|
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 3595 |
|
|
for ld_flag in $LDFLAGS; do |
| 3596 |
|
|
case $ld_flag in |
| 3597 |
|
|
*-brtl*) |
| 3598 |
|
|
aix_use_runtimelinking=yes |
| 3599 |
|
|
break |
| 3600 |
|
|
;; |
| 3601 |
|
|
esac |
| 3602 |
|
|
done |
| 3603 |
|
|
esac |
| 3604 |
|
|
|
| 3605 |
|
|
exp_sym_flag='-bexport' |
| 3606 |
|
|
no_entry_flag='-bnoentry' |
| 3607 |
|
|
fi |
| 3608 |
|
|
|
| 3609 |
|
|
# When large executables or shared objects are built, AIX ld can |
| 3610 |
|
|
# have problems creating the table of contents. If linking a library |
| 3611 |
|
|
# or program results in "error TOC overflow" add -mminimal-toc to |
| 3612 |
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 3613 |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 3614 |
|
|
|
| 3615 |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='' |
| 3616 |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 3617 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 3618 |
|
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 3619 |
|
|
|
| 3620 |
|
|
if test "$GXX" = yes; then |
| 3621 |
|
|
case $host_os in aix4.[012]|aix4.[012].*) |
| 3622 |
|
|
# We only want to do this on AIX 4.2 and lower, the check |
| 3623 |
|
|
# below for broken collect2 doesn't work under 4.3+ |
| 3624 |
|
|
collect2name=`${CC} -print-prog-name=collect2` |
| 3625 |
|
|
if test -f "$collect2name" && \ |
| 3626 |
|
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 3627 |
|
|
then |
| 3628 |
|
|
# We have reworked collect2 |
| 3629 |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 3630 |
|
|
else |
| 3631 |
|
|
# We have old collect2 |
| 3632 |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| 3633 |
|
|
# It fails to find uninstalled libraries when the uninstalled |
| 3634 |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L |
| 3635 |
|
|
# to unsupported forces relinking |
| 3636 |
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 3637 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 3638 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 3639 |
|
|
fi |
| 3640 |
|
|
esac |
| 3641 |
|
|
shared_flag='-shared' |
| 3642 |
|
|
else |
| 3643 |
|
|
# not using gcc |
| 3644 |
|
|
if test "$host_cpu" = ia64; then |
| 3645 |
|
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 3646 |
|
|
# chokes on -Wl,-G. The following line is correct: |
| 3647 |
|
|
shared_flag='-G' |
| 3648 |
|
|
else |
| 3649 |
|
|
if test "$aix_use_runtimelinking" = yes; then |
| 3650 |
|
|
shared_flag='${wl}-G' |
| 3651 |
|
|
else |
| 3652 |
|
|
shared_flag='${wl}-bM:SRE' |
| 3653 |
|
|
fi |
| 3654 |
|
|
fi |
| 3655 |
|
|
fi |
| 3656 |
|
|
|
| 3657 |
|
|
# It seems that -bexpall does not export symbols beginning with |
| 3658 |
|
|
# underscore (_), so it is better to generate a list of symbols to export. |
| 3659 |
|
|
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 3660 |
|
|
if test "$aix_use_runtimelinking" = yes; then |
| 3661 |
|
|
# Warning - without using the other runtime loading flags (-brtl), |
| 3662 |
|
|
# -berok will link without error, but may produce a broken library. |
| 3663 |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 3664 |
|
|
# Determine the default libpath from the value encoded in an empty executable. |
| 3665 |
|
|
_LT_AC_SYS_LIBPATH_AIX |
| 3666 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 3667 |
|
|
|
| 3668 |
|
|
_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" |
| 3669 |
|
|
else |
| 3670 |
|
|
if test "$host_cpu" = ia64; then |
| 3671 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 3672 |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 3673 |
|
|
_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" |
| 3674 |
|
|
else |
| 3675 |
|
|
# Determine the default libpath from the value encoded in an empty executable. |
| 3676 |
|
|
_LT_AC_SYS_LIBPATH_AIX |
| 3677 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 3678 |
|
|
# Warning - without using the other run time loading flags, |
| 3679 |
|
|
# -berok will link without error, but may produce a broken library. |
| 3680 |
|
|
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 3681 |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 3682 |
|
|
# -bexpall does not export symbols beginning with underscore (_) |
| 3683 |
|
|
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 3684 |
|
|
# Exported symbols can be pulled into shared objects from archives |
| 3685 |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
| 3686 |
|
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 3687 |
|
|
# This is similar to how AIX traditionally builds it's shared libraries. |
| 3688 |
|
|
_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' |
| 3689 |
|
|
fi |
| 3690 |
|
|
fi |
| 3691 |
|
|
;; |
| 3692 |
|
|
chorus*) |
| 3693 |
|
|
case $cc_basename in |
| 3694 |
|
|
*) |
| 3695 |
|
|
# FIXME: insert proper C++ library support |
| 3696 |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3697 |
|
|
;; |
| 3698 |
|
|
esac |
| 3699 |
|
|
;; |
| 3700 |
|
|
|
| 3701 |
|
|
cygwin* | mingw* | pw32*) |
| 3702 |
|
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 3703 |
|
|
# as there is no search path for DLLs. |
| 3704 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 3705 |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 3706 |
|
|
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 3707 |
|
|
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 3708 |
|
|
|
| 3709 |
|
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 3710 |
|
|
_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' |
| 3711 |
|
|
# If the export-symbols file already is a .def file (1st line |
| 3712 |
|
|
# is EXPORTS), use it as is; otherwise, prepend... |
| 3713 |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 3714 |
|
|
cp $export_symbols $output_objdir/$soname.def; |
| 3715 |
|
|
else |
| 3716 |
|
|
echo EXPORTS > $output_objdir/$soname.def; |
| 3717 |
|
|
cat $export_symbols >> $output_objdir/$soname.def; |
| 3718 |
|
|
fi~ |
| 3719 |
|
|
$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' |
| 3720 |
|
|
else |
| 3721 |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3722 |
|
|
fi |
| 3723 |
|
|
;; |
| 3724 |
|
|
|
| 3725 |
|
|
darwin* | rhapsody*) |
| 3726 |
|
|
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 3727 |
|
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3728 |
|
|
case "$host_os" in |
| 3729 |
|
|
rhapsody* | darwin1.[[012]]) |
| 3730 |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
| 3731 |
|
|
;; |
| 3732 |
|
|
*) # Darwin 1.3 on |
| 3733 |
|
|
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
| 3734 |
|
|
;; |
| 3735 |
|
|
esac |
| 3736 |
|
|
lt_int_apple_cc_single_mod=no |
| 3737 |
|
|
output_verbose_link_cmd='echo' |
| 3738 |
|
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 3739 |
|
|
lt_int_apple_cc_single_mod=yes |
| 3740 |
|
|
fi |
| 3741 |
|
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 3742 |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 3743 |
|
|
else |
| 3744 |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 3745 |
|
|
fi |
| 3746 |
|
|
_LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 3747 |
|
|
|
| 3748 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 3749 |
|
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 3750 |
|
|
_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}' |
| 3751 |
|
|
else |
| 3752 |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 3753 |
|
|
fi |
| 3754 |
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 3755 |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3756 |
|
|
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 3757 |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 3758 |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| 3759 |
|
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 3760 |
|
|
fi |
| 3761 |
|
|
;; |
| 3762 |
|
|
|
| 3763 |
|
|
dgux*) |
| 3764 |
|
|
case $cc_basename in |
| 3765 |
|
|
ec++) |
| 3766 |
|
|
# FIXME: insert proper C++ library support |
| 3767 |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3768 |
|
|
;; |
| 3769 |
|
|
ghcx) |
| 3770 |
|
|
# Green Hills C++ Compiler |
| 3771 |
|
|
# FIXME: insert proper C++ library support |
| 3772 |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3773 |
|
|
;; |
| 3774 |
|
|
*) |
| 3775 |
|
|
# FIXME: insert proper C++ library support |
| 3776 |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3777 |
|
|
;; |
| 3778 |
|
|
esac |
| 3779 |
|
|
;; |
| 3780 |
|
|
freebsd[12]*) |
| 3781 |
|
|
# C++ shared libraries reported to be fairly broken before switch to ELF |
| 3782 |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3783 |
|
|
;; |
| 3784 |
|
|
freebsd-elf*) |
| 3785 |
|
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3786 |
|
|
;; |
| 3787 |
|
|
freebsd*) |
| 3788 |
|
|
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 3789 |
|
|
# conventions |
| 3790 |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 3791 |
|
|
case $cc_basename in |
| 3792 |
|
|
icpc) |
| 3793 |
|
|
# Intel C++ |
| 3794 |
|
|
with_gnu_ld=yes |
| 3795 |
|
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3796 |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3797 |
|
|
_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' |
| 3798 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 3799 |
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 3800 |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 3801 |
|
|
;; |
| 3802 |
|
|
cxx) |
| 3803 |
|
|
# Compaq C++ |
| 3804 |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3805 |
|
|
_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' |
| 3806 |
|
|
|
| 3807 |
|
|
runpath_var=LD_RUN_PATH |
| 3808 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 3809 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 3810 |
|
|
|
| 3811 |
|
|
# Commands to make compiler produce verbose output that lists |
| 3812 |
|
|
# what "hidden" libraries, object files and flags are used when |
| 3813 |
|
|
# linking a shared library. |
| 3814 |
|
|
# |
| 3815 |
|
|
# There doesn't appear to be a way to prevent this compiler from |
| 3816 |
|
|
# explicitly linking system object files so we need to strip them |
| 3817 |
|
|
# from the output so that they don't get included in the library |
| 3818 |
|
|
# dependencies. |
| 3819 |
|
|
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' |
| 3820 |
|
|
;; |
| 3821 |
|
|
esac |
| 3822 |
|
|
;; |
| 3823 |
|
|
gnu*) |
| 3824 |
|
|
;; |
| 3825 |
|
|
hpux9*) |
| 3826 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 3827 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 3828 |
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 3829 |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 3830 |
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 3831 |
|
|
# but as the default |
| 3832 |
|
|
# location of the library. |
| 3833 |
|
|
|
| 3834 |
|
|
case $cc_basename in |
| 3835 |
|
|
CC) |
| 3836 |
|
|
# FIXME: insert proper C++ library support |
| 3837 |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3838 |
|
|
;; |
| 3839 |
|
|
aCC) |
| 3840 |
|
|
_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' |
| 3841 |
|
|
# Commands to make compiler produce verbose output that lists |
| 3842 |
|
|
# what "hidden" libraries, object files and flags are used when |
| 3843 |
|
|
# linking a shared library. |
| 3844 |
|
|
# |
| 3845 |
|
|
# There doesn't appear to be a way to prevent this compiler from |
| 3846 |
|
|
# explicitly linking system object files so we need to strip them |
| 3847 |
|
|
# from the output so that they don't get included in the library |
| 3848 |
|
|
# dependencies. |
| 3849 |
|
|
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' |
| 3850 |
|
|
;; |
| 3851 |
|
|
*) |
| 3852 |
|
|
if test "$GXX" = yes; then |
| 3853 |
|
|
_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' |
| 3854 |
|
|
else |
| 3855 |
|
|
# FIXME: insert proper C++ library support |
| 3856 |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3857 |
|
|
fi |
| 3858 |
|
|
;; |
| 3859 |
|
|
esac |
| 3860 |
|
|
;; |
| 3861 |
|
|
hpux10*|hpux11*) |
| 3862 |
|
|
if test $with_gnu_ld = no; then |
| 3863 |
|
|
case "$host_cpu" in |
| 3864 |
|
|
hppa*64*) |
| 3865 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 3866 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 3867 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 3868 |
|
|
;; |
| 3869 |
|
|
ia64*) |
| 3870 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 3871 |
|
|
;; |
| 3872 |
|
|
*) |
| 3873 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 3874 |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 3875 |
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 3876 |
|
|
;; |
| 3877 |
|
|
esac |
| 3878 |
|
|
fi |
| 3879 |
|
|
case "$host_cpu" in |
| 3880 |
|
|
hppa*64*) |
| 3881 |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3882 |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3883 |
|
|
;; |
| 3884 |
|
|
ia64*) |
| 3885 |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3886 |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3887 |
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 3888 |
|
|
# but as the default |
| 3889 |
|
|
# location of the library. |
| 3890 |
|
|
;; |
| 3891 |
|
|
*) |
| 3892 |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 3893 |
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 3894 |
|
|
# but as the default |
| 3895 |
|
|
# location of the library. |
| 3896 |
|
|
;; |
| 3897 |
|
|
esac |
| 3898 |
|
|
|
| 3899 |
|
|
case $cc_basename in |
| 3900 |
|
|
CC) |
| 3901 |
|
|
# FIXME: insert proper C++ library support |
| 3902 |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3903 |
|
|
;; |
| 3904 |
|
|
aCC) |
| 3905 |
|
|
case "$host_cpu" in |
| 3906 |
|
|
hppa*64*|ia64*) |
| 3907 |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 3908 |
|
|
;; |
| 3909 |
|
|
*) |
| 3910 |
|
|
_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' |
| 3911 |
|
|
;; |
| 3912 |
|
|
esac |
| 3913 |
|
|
# Commands to make compiler produce verbose output that lists |
| 3914 |
|
|
# what "hidden" libraries, object files and flags are used when |
| 3915 |
|
|
# linking a shared library. |
| 3916 |
|
|
# |
| 3917 |
|
|
# There doesn't appear to be a way to prevent this compiler from |
| 3918 |
|
|
# explicitly linking system object files so we need to strip them |
| 3919 |
|
|
# from the output so that they don't get included in the library |
| 3920 |
|
|
# dependencies. |
|