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