| 1 | # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
|
|---|
| 2 |
|
|---|
| 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
|---|
| 4 | # 2005 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 | # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
|---|
| 15 | #
|
|---|
| 16 | # This file is free software; the Free Software Foundation
|
|---|
| 17 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 18 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 19 |
|
|---|
| 20 | # AM_AUTOMAKE_VERSION(VERSION)
|
|---|
| 21 | # ----------------------------
|
|---|
| 22 | # Automake X.Y traces this macro to ensure aclocal.m4 has been
|
|---|
| 23 | # generated from the m4 files accompanying Automake X.Y.
|
|---|
| 24 | AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
|
|---|
| 25 |
|
|---|
| 26 | # AM_SET_CURRENT_AUTOMAKE_VERSION
|
|---|
| 27 | # -------------------------------
|
|---|
| 28 | # Call AM_AUTOMAKE_VERSION so it can be traced.
|
|---|
| 29 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
|---|
| 30 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|---|
| 31 | [AM_AUTOMAKE_VERSION([1.9.6])])
|
|---|
| 32 |
|
|---|
| 33 | # AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|---|
| 34 |
|
|---|
| 35 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
|---|
| 36 | #
|
|---|
| 37 | # This file is free software; the Free Software Foundation
|
|---|
| 38 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 39 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 40 |
|
|---|
| 41 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
|---|
| 42 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
|---|
| 43 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
|---|
| 44 | #
|
|---|
| 45 | # Of course, Automake must honor this variable whenever it calls a
|
|---|
| 46 | # tool from the auxiliary directory. The problem is that $srcdir (and
|
|---|
| 47 | # therefore $ac_aux_dir as well) can be either absolute or relative,
|
|---|
| 48 | # depending on how configure is run. This is pretty annoying, since
|
|---|
| 49 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
|---|
| 50 | # source directory, any form will work fine, but in subdirectories a
|
|---|
| 51 | # relative path needs to be adjusted first.
|
|---|
| 52 | #
|
|---|
| 53 | # $ac_aux_dir/missing
|
|---|
| 54 | # fails when called from a subdirectory if $ac_aux_dir is relative
|
|---|
| 55 | # $top_srcdir/$ac_aux_dir/missing
|
|---|
| 56 | # fails if $ac_aux_dir is absolute,
|
|---|
| 57 | # fails when called from a subdirectory in a VPATH build with
|
|---|
| 58 | # a relative $ac_aux_dir
|
|---|
| 59 | #
|
|---|
| 60 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
|---|
| 61 | # are both prefixed by $srcdir. In an in-source build this is usually
|
|---|
| 62 | # harmless because $srcdir is `.', but things will broke when you
|
|---|
| 63 | # start a VPATH build or use an absolute $srcdir.
|
|---|
| 64 | #
|
|---|
| 65 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
|---|
| 66 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
|---|
| 67 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
|---|
| 68 | # and then we would define $MISSING as
|
|---|
| 69 | # MISSING="\${SHELL} $am_aux_dir/missing"
|
|---|
| 70 | # This will work as long as MISSING is not called from configure, because
|
|---|
| 71 | # unfortunately $(top_srcdir) has no meaning in configure.
|
|---|
| 72 | # However there are other variables, like CC, which are often used in
|
|---|
| 73 | # configure, and could therefore not use this "fixed" $ac_aux_dir.
|
|---|
| 74 | #
|
|---|
| 75 | # Another solution, used here, is to always expand $ac_aux_dir to an
|
|---|
| 76 | # absolute PATH. The drawback is that using absolute paths prevent a
|
|---|
| 77 | # configured tree to be moved without reconfiguration.
|
|---|
| 78 |
|
|---|
| 79 | AC_DEFUN([AM_AUX_DIR_EXPAND],
|
|---|
| 80 | [dnl Rely on autoconf to set up CDPATH properly.
|
|---|
| 81 | AC_PREREQ([2.50])dnl
|
|---|
| 82 | # expand $ac_aux_dir to an absolute path
|
|---|
| 83 | am_aux_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 84 | ])
|
|---|
| 85 |
|
|---|
| 86 | # AM_CONDITIONAL -*- Autoconf -*-
|
|---|
| 87 |
|
|---|
| 88 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
|
|---|
| 89 | # Free Software Foundation, Inc.
|
|---|
| 90 | #
|
|---|
| 91 | # This file is free software; the Free Software Foundation
|
|---|
| 92 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 93 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 94 |
|
|---|
| 95 | # serial 7
|
|---|
| 96 |
|
|---|
| 97 | # AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|---|
| 98 | # -------------------------------------
|
|---|
| 99 | # Define a conditional.
|
|---|
| 100 | AC_DEFUN([AM_CONDITIONAL],
|
|---|
| 101 | [AC_PREREQ(2.52)dnl
|
|---|
| 102 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
|---|
| 103 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|---|
| 104 | AC_SUBST([$1_TRUE])
|
|---|
| 105 | AC_SUBST([$1_FALSE])
|
|---|
| 106 | if $2; then
|
|---|
| 107 | $1_TRUE=
|
|---|
| 108 | $1_FALSE='#'
|
|---|
| 109 | else
|
|---|
| 110 | $1_TRUE='#'
|
|---|
| 111 | $1_FALSE=
|
|---|
| 112 | fi
|
|---|
| 113 | AC_CONFIG_COMMANDS_PRE(
|
|---|
| 114 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
|---|
| 115 | AC_MSG_ERROR([[conditional "$1" was never defined.
|
|---|
| 116 | Usually this means the macro was only invoked conditionally.]])
|
|---|
| 117 | fi])])
|
|---|
| 118 |
|
|---|
| 119 |
|
|---|
| 120 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
|---|
| 121 | # Free Software Foundation, Inc.
|
|---|
| 122 | #
|
|---|
| 123 | # This file is free software; the Free Software Foundation
|
|---|
| 124 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 125 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 126 |
|
|---|
| 127 | # serial 8
|
|---|
| 128 |
|
|---|
| 129 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
|---|
| 130 | # written in clear, in which case automake, when reading aclocal.m4,
|
|---|
| 131 | # will think it sees a *use*, and therefore will trigger all it's
|
|---|
| 132 | # C support machinery. Also note that it means that autoscan, seeing
|
|---|
| 133 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
|---|
| 134 |
|
|---|
| 135 |
|
|---|
| 136 | # _AM_DEPENDENCIES(NAME)
|
|---|
| 137 | # ----------------------
|
|---|
| 138 | # See how the compiler implements dependency checking.
|
|---|
| 139 | # NAME is "CC", "CXX", "GCJ", or "OBJC".
|
|---|
| 140 | # We try a few techniques and use that to set a single cache variable.
|
|---|
| 141 | #
|
|---|
| 142 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
|---|
| 143 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
|---|
| 144 | # dependency, and given that the user is not expected to run this macro,
|
|---|
| 145 | # just rely on AC_PROG_CC.
|
|---|
| 146 | AC_DEFUN([_AM_DEPENDENCIES],
|
|---|
| 147 | [AC_REQUIRE([AM_SET_DEPDIR])dnl
|
|---|
| 148 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
|---|
| 149 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
|---|
| 150 | AC_REQUIRE([AM_DEP_TRACK])dnl
|
|---|
| 151 |
|
|---|
| 152 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
|---|
| 153 | [$1], CXX, [depcc="$CXX" am_compiler_list=],
|
|---|
| 154 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
|---|
| 155 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
|---|
| 156 | [depcc="$$1" am_compiler_list=])
|
|---|
| 157 |
|
|---|
| 158 | AC_CACHE_CHECK([dependency style of $depcc],
|
|---|
| 159 | [am_cv_$1_dependencies_compiler_type],
|
|---|
| 160 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
|---|
| 161 | # We make a subdir and do the tests there. Otherwise we can end up
|
|---|
| 162 | # making bogus files that we don't know about and never remove. For
|
|---|
| 163 | # instance it was reported that on HP-UX the gcc test will end up
|
|---|
| 164 | # making a dummy file named `D' -- because `-MD' means `put the output
|
|---|
| 165 | # in D'.
|
|---|
| 166 | mkdir conftest.dir
|
|---|
| 167 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
|---|
| 168 | # using a relative directory.
|
|---|
| 169 | cp "$am_depcomp" conftest.dir
|
|---|
| 170 | cd conftest.dir
|
|---|
| 171 | # We will build objects and dependencies in a subdirectory because
|
|---|
| 172 | # it helps to detect inapplicable dependency modes. For instance
|
|---|
| 173 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
|---|
| 174 | # side effect of compilation, but ICC will put the dependencies in
|
|---|
| 175 | # the current directory while Tru64 will put them in the object
|
|---|
| 176 | # directory.
|
|---|
| 177 | mkdir sub
|
|---|
| 178 |
|
|---|
| 179 | am_cv_$1_dependencies_compiler_type=none
|
|---|
| 180 | if test "$am_compiler_list" = ""; then
|
|---|
| 181 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
|---|
| 182 | fi
|
|---|
| 183 | for depmode in $am_compiler_list; do
|
|---|
| 184 | # Setup a source with many dependencies, because some compilers
|
|---|
| 185 | # like to wrap large dependency lists on column 80 (with \), and
|
|---|
| 186 | # we should not choose a depcomp mode which is confused by this.
|
|---|
| 187 | #
|
|---|
| 188 | # We need to recreate these files for each test, as the compiler may
|
|---|
| 189 | # overwrite some of them when testing with obscure command lines.
|
|---|
| 190 | # This happens at least with the AIX C compiler.
|
|---|
| 191 | : > sub/conftest.c
|
|---|
| 192 | for i in 1 2 3 4 5 6; do
|
|---|
| 193 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
|---|
| 194 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
|---|
| 195 | # Solaris 8's {/usr,}/bin/sh.
|
|---|
| 196 | touch sub/conftst$i.h
|
|---|
| 197 | done
|
|---|
| 198 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
|---|
| 199 |
|
|---|
| 200 | case $depmode in
|
|---|
| 201 | nosideeffect)
|
|---|
| 202 | # after this tag, mechanisms are not by side-effect, so they'll
|
|---|
| 203 | # only be used when explicitly requested
|
|---|
| 204 | if test "x$enable_dependency_tracking" = xyes; then
|
|---|
| 205 | continue
|
|---|
| 206 | else
|
|---|
| 207 | break
|
|---|
| 208 | fi
|
|---|
| 209 | ;;
|
|---|
| 210 | none) break ;;
|
|---|
| 211 | esac
|
|---|
| 212 | # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
|---|
| 213 | # mode. It turns out that the SunPro C++ compiler does not properly
|
|---|
| 214 | # handle `-M -o', and we need to detect this.
|
|---|
| 215 | if depmode=$depmode \
|
|---|
| 216 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
|---|
| 217 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
|---|
| 218 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
|---|
| 219 | >/dev/null 2>conftest.err &&
|
|---|
| 220 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
|---|
| 221 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
|---|
| 222 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|---|
| 223 | # icc doesn't choke on unknown options, it will just issue warnings
|
|---|
| 224 | # or remarks (even with -Werror). So we grep stderr for any message
|
|---|
| 225 | # that says an option was ignored or not supported.
|
|---|
| 226 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
|---|
| 227 | # icc: Command line warning: ignoring option '-M'; no argument required
|
|---|
| 228 | # The diagnosis changed in icc 8.0:
|
|---|
| 229 | # icc: Command line remark: option '-MP' not supported
|
|---|
| 230 | if (grep 'ignoring option' conftest.err ||
|
|---|
| 231 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
|---|
| 232 | am_cv_$1_dependencies_compiler_type=$depmode
|
|---|
| 233 | break
|
|---|
| 234 | fi
|
|---|
| 235 | fi
|
|---|
| 236 | done
|
|---|
| 237 |
|
|---|
| 238 | cd ..
|
|---|
| 239 | rm -rf conftest.dir
|
|---|
| 240 | else
|
|---|
| 241 | am_cv_$1_dependencies_compiler_type=none
|
|---|
| 242 | fi
|
|---|
| 243 | ])
|
|---|
| 244 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
|---|
| 245 | AM_CONDITIONAL([am__fastdep$1], [
|
|---|
| 246 | test "x$enable_dependency_tracking" != xno \
|
|---|
| 247 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
|---|
| 248 | ])
|
|---|
| 249 |
|
|---|
| 250 |
|
|---|
| 251 | # AM_SET_DEPDIR
|
|---|
| 252 | # -------------
|
|---|
| 253 | # Choose a directory name for dependency files.
|
|---|
| 254 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
|---|
| 255 | AC_DEFUN([AM_SET_DEPDIR],
|
|---|
| 256 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|---|
| 257 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
|---|
| 258 | ])
|
|---|
| 259 |
|
|---|
| 260 |
|
|---|
| 261 | # AM_DEP_TRACK
|
|---|
| 262 | # ------------
|
|---|
| 263 | AC_DEFUN([AM_DEP_TRACK],
|
|---|
| 264 | [AC_ARG_ENABLE(dependency-tracking,
|
|---|
| 265 | [ --disable-dependency-tracking speeds up one-time build
|
|---|
| 266 | --enable-dependency-tracking do not reject slow dependency extractors])
|
|---|
| 267 | if test "x$enable_dependency_tracking" != xno; then
|
|---|
| 268 | am_depcomp="$ac_aux_dir/depcomp"
|
|---|
| 269 | AMDEPBACKSLASH='\'
|
|---|
| 270 | fi
|
|---|
| 271 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
|---|
| 272 | AC_SUBST([AMDEPBACKSLASH])
|
|---|
| 273 | ])
|
|---|
| 274 |
|
|---|
| 275 | # Generate code to set up dependency tracking. -*- Autoconf -*-
|
|---|
| 276 |
|
|---|
| 277 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
|---|
| 278 | # Free Software Foundation, Inc.
|
|---|
| 279 | #
|
|---|
| 280 | # This file is free software; the Free Software Foundation
|
|---|
| 281 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 282 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 283 |
|
|---|
| 284 | #serial 3
|
|---|
| 285 |
|
|---|
| 286 | # _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|---|
| 287 | # ------------------------------
|
|---|
| 288 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|---|
| 289 | [for mf in $CONFIG_FILES; do
|
|---|
| 290 | # Strip MF so we end up with the name of the file.
|
|---|
| 291 | mf=`echo "$mf" | sed -e 's/:.*$//'`
|
|---|
| 292 | # Check whether this is an Automake generated Makefile or not.
|
|---|
| 293 | # We used to match only the files named `Makefile.in', but
|
|---|
| 294 | # some people rename them; so instead we look at the file content.
|
|---|
| 295 | # Grep'ing the first line is not enough: some people post-process
|
|---|
| 296 | # each Makefile.in and add a new line on top of each file to say so.
|
|---|
| 297 | # So let's grep whole file.
|
|---|
| 298 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
|---|
| 299 | dirpart=`AS_DIRNAME("$mf")`
|
|---|
| 300 | else
|
|---|
| 301 | continue
|
|---|
| 302 | fi
|
|---|
| 303 | # Extract the definition of DEPDIR, am__include, and am__quote
|
|---|
| 304 | # from the Makefile without running `make'.
|
|---|
| 305 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
|---|
| 306 | test -z "$DEPDIR" && continue
|
|---|
| 307 | am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
|---|
| 308 | test -z "am__include" && continue
|
|---|
| 309 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
|---|
| 310 | # When using ansi2knr, U may be empty or an underscore; expand it
|
|---|
| 311 | U=`sed -n 's/^U = //p' < "$mf"`
|
|---|
| 312 | # Find all dependency output files, they are included files with
|
|---|
| 313 | # $(DEPDIR) in their names. We invoke sed twice because it is the
|
|---|
| 314 | # simplest approach to changing $(DEPDIR) to its actual value in the
|
|---|
| 315 | # expansion.
|
|---|
| 316 | for file in `sed -n "
|
|---|
| 317 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
|---|
| 318 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
|---|
| 319 | # Make sure the directory exists.
|
|---|
| 320 | test -f "$dirpart/$file" && continue
|
|---|
| 321 | fdir=`AS_DIRNAME(["$file"])`
|
|---|
| 322 | AS_MKDIR_P([$dirpart/$fdir])
|
|---|
| 323 | # echo "creating $dirpart/$file"
|
|---|
| 324 | echo '# dummy' > "$dirpart/$file"
|
|---|
| 325 | done
|
|---|
| 326 | done
|
|---|
| 327 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|---|
| 328 |
|
|---|
| 329 |
|
|---|
| 330 | # AM_OUTPUT_DEPENDENCY_COMMANDS
|
|---|
| 331 | # -----------------------------
|
|---|
| 332 | # This macro should only be invoked once -- use via AC_REQUIRE.
|
|---|
| 333 | #
|
|---|
| 334 | # This code is only required when automatic dependency tracking
|
|---|
| 335 | # is enabled. FIXME. This creates each `.P' file that we will
|
|---|
| 336 | # need in order to bootstrap the dependency handling code.
|
|---|
| 337 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|---|
| 338 | [AC_CONFIG_COMMANDS([depfiles],
|
|---|
| 339 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|---|
| 340 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
|---|
| 341 | ])
|
|---|
| 342 |
|
|---|
| 343 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
|---|
| 344 | # Free Software Foundation, Inc.
|
|---|
| 345 | #
|
|---|
| 346 | # This file is free software; the Free Software Foundation
|
|---|
| 347 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 348 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 349 |
|
|---|
| 350 | # serial 8
|
|---|
| 351 |
|
|---|
| 352 | # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
|
|---|
| 353 | AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
|
|---|
| 354 |
|
|---|
| 355 | # Do all the work for Automake. -*- Autoconf -*-
|
|---|
| 356 |
|
|---|
| 357 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
|---|
| 358 | # Free Software Foundation, Inc.
|
|---|
| 359 | #
|
|---|
| 360 | # This file is free software; the Free Software Foundation
|
|---|
| 361 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 362 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 363 |
|
|---|
| 364 | # serial 12
|
|---|
| 365 |
|
|---|
| 366 | # This macro actually does too much. Some checks are only needed if
|
|---|
| 367 | # your package does certain things. But this isn't really a big deal.
|
|---|
| 368 |
|
|---|
| 369 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
|---|
| 370 | # AM_INIT_AUTOMAKE([OPTIONS])
|
|---|
| 371 | # -----------------------------------------------
|
|---|
| 372 | # The call with PACKAGE and VERSION arguments is the old style
|
|---|
| 373 | # call (pre autoconf-2.50), which is being phased out. PACKAGE
|
|---|
| 374 | # and VERSION should now be passed to AC_INIT and removed from
|
|---|
| 375 | # the call to AM_INIT_AUTOMAKE.
|
|---|
| 376 | # We support both call styles for the transition. After
|
|---|
| 377 | # the next Automake release, Autoconf can make the AC_INIT
|
|---|
| 378 | # arguments mandatory, and then we can depend on a new Autoconf
|
|---|
| 379 | # release and drop the old call support.
|
|---|
| 380 | AC_DEFUN([AM_INIT_AUTOMAKE],
|
|---|
| 381 | [AC_PREREQ([2.58])dnl
|
|---|
| 382 | dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
|---|
| 383 | dnl the ones we care about.
|
|---|
| 384 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
|---|
| 385 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
|---|
| 386 | AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|---|
| 387 | # test to see if srcdir already configured
|
|---|
| 388 | if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
|---|
| 389 | test -f $srcdir/config.status; then
|
|---|
| 390 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
|---|
| 391 | fi
|
|---|
| 392 |
|
|---|
| 393 | # test whether we have cygpath
|
|---|
| 394 | if test -z "$CYGPATH_W"; then
|
|---|
| 395 | if (cygpath --version) >/dev/null 2>/dev/null; then
|
|---|
| 396 | CYGPATH_W='cygpath -w'
|
|---|
| 397 | else
|
|---|
| 398 | CYGPATH_W=echo
|
|---|
| 399 | fi
|
|---|
| 400 | fi
|
|---|
| 401 | AC_SUBST([CYGPATH_W])
|
|---|
| 402 |
|
|---|
| 403 | # Define the identity of the package.
|
|---|
| 404 | dnl Distinguish between old-style and new-style calls.
|
|---|
| 405 | m4_ifval([$2],
|
|---|
| 406 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|---|
| 407 | AC_SUBST([PACKAGE], [$1])dnl
|
|---|
| 408 | AC_SUBST([VERSION], [$2])],
|
|---|
| 409 | [_AM_SET_OPTIONS([$1])dnl
|
|---|
| 410 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
|---|
| 411 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
|---|
| 412 |
|
|---|
| 413 | _AM_IF_OPTION([no-define],,
|
|---|
| 414 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
|---|
| 415 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
|---|
| 416 |
|
|---|
| 417 | # Some tools Automake needs.
|
|---|
| 418 | AC_REQUIRE([AM_SANITY_CHECK])dnl
|
|---|
| 419 | AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
|---|
| 420 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
|---|
| 421 | AM_MISSING_PROG(AUTOCONF, autoconf)
|
|---|
| 422 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
|---|
| 423 | AM_MISSING_PROG(AUTOHEADER, autoheader)
|
|---|
| 424 | AM_MISSING_PROG(MAKEINFO, makeinfo)
|
|---|
| 425 | AM_PROG_INSTALL_SH
|
|---|
| 426 | AM_PROG_INSTALL_STRIP
|
|---|
| 427 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
|---|
| 428 | # We need awk for the "check" target. The system "awk" is bad on
|
|---|
| 429 | # some platforms.
|
|---|
| 430 | AC_REQUIRE([AC_PROG_AWK])dnl
|
|---|
| 431 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|---|
| 432 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|---|
| 433 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
|---|
| 434 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
|---|
| 435 | [_AM_PROG_TAR([v7])])])
|
|---|
| 436 | _AM_IF_OPTION([no-dependencies],,
|
|---|
| 437 | [AC_PROVIDE_IFELSE([AC_PROG_CC],
|
|---|
| 438 | [_AM_DEPENDENCIES(CC)],
|
|---|
| 439 | [define([AC_PROG_CC],
|
|---|
| 440 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
|---|
| 441 | AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|---|
| 442 | [_AM_DEPENDENCIES(CXX)],
|
|---|
| 443 | [define([AC_PROG_CXX],
|
|---|
| 444 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
|---|
| 445 | ])
|
|---|
| 446 | ])
|
|---|
| 447 |
|
|---|
| 448 |
|
|---|
| 449 | # When config.status generates a header, we must update the stamp-h file.
|
|---|
| 450 | # This file resides in the same directory as the config header
|
|---|
| 451 | # that is generated. The stamp files are numbered to have different names.
|
|---|
| 452 |
|
|---|
| 453 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
|---|
| 454 | # loop where config.status creates the headers, so we can generate
|
|---|
| 455 | # our stamp files there.
|
|---|
| 456 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
|---|
| 457 | [# Compute $1's index in $config_headers.
|
|---|
| 458 | _am_stamp_count=1
|
|---|
| 459 | for _am_header in $config_headers :; do
|
|---|
| 460 | case $_am_header in
|
|---|
| 461 | $1 | $1:* )
|
|---|
| 462 | break ;;
|
|---|
| 463 | * )
|
|---|
| 464 | _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|---|
| 465 | esac
|
|---|
| 466 | done
|
|---|
| 467 | echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
|
|---|
| 468 |
|
|---|
| 469 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
|---|
| 470 | #
|
|---|
| 471 | # This file is free software; the Free Software Foundation
|
|---|
| 472 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 473 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 474 |
|
|---|
| 475 | # AM_PROG_INSTALL_SH
|
|---|
| 476 | # ------------------
|
|---|
| 477 | # Define $install_sh.
|
|---|
| 478 | AC_DEFUN([AM_PROG_INSTALL_SH],
|
|---|
| 479 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|---|
| 480 | install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
|---|
| 481 | AC_SUBST(install_sh)])
|
|---|
| 482 |
|
|---|
| 483 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
|---|
| 484 | #
|
|---|
| 485 | # This file is free software; the Free Software Foundation
|
|---|
| 486 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 487 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 488 |
|
|---|
| 489 | # serial 2
|
|---|
| 490 |
|
|---|
| 491 | # Check whether the underlying file-system supports filenames
|
|---|
| 492 | # with a leading dot. For instance MS-DOS doesn't.
|
|---|
| 493 | AC_DEFUN([AM_SET_LEADING_DOT],
|
|---|
| 494 | [rm -rf .tst 2>/dev/null
|
|---|
| 495 | mkdir .tst 2>/dev/null
|
|---|
| 496 | if test -d .tst; then
|
|---|
| 497 | am__leading_dot=.
|
|---|
| 498 | else
|
|---|
| 499 | am__leading_dot=_
|
|---|
| 500 | fi
|
|---|
| 501 | rmdir .tst 2>/dev/null
|
|---|
| 502 | AC_SUBST([am__leading_dot])])
|
|---|
| 503 |
|
|---|
| 504 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
|---|
| 505 | # From Jim Meyering
|
|---|
| 506 |
|
|---|
| 507 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
|
|---|
| 508 | # Free Software Foundation, Inc.
|
|---|
| 509 | #
|
|---|
| 510 | # This file is free software; the Free Software Foundation
|
|---|
| 511 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 512 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 513 |
|
|---|
| 514 | # serial 4
|
|---|
| 515 |
|
|---|
| 516 | AC_DEFUN([AM_MAINTAINER_MODE],
|
|---|
| 517 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
|---|
| 518 | dnl maintainer-mode is disabled by default
|
|---|
| 519 | AC_ARG_ENABLE(maintainer-mode,
|
|---|
| 520 | [ --enable-maintainer-mode enable make rules and dependencies not useful
|
|---|
| 521 | (and sometimes confusing) to the casual installer],
|
|---|
| 522 | USE_MAINTAINER_MODE=$enableval,
|
|---|
| 523 | USE_MAINTAINER_MODE=no)
|
|---|
| 524 | AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
|---|
| 525 | AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
|
|---|
| 526 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 527 | AC_SUBST(MAINT)dnl
|
|---|
| 528 | ]
|
|---|
| 529 | )
|
|---|
| 530 |
|
|---|
| 531 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
|
|---|
| 532 |
|
|---|
| 533 | # Check to see how 'make' treats includes. -*- Autoconf -*-
|
|---|
| 534 |
|
|---|
| 535 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
|---|
| 536 | #
|
|---|
| 537 | # This file is free software; the Free Software Foundation
|
|---|
| 538 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 539 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 540 |
|
|---|
| 541 | # serial 3
|
|---|
| 542 |
|
|---|
| 543 | # AM_MAKE_INCLUDE()
|
|---|
| 544 | # -----------------
|
|---|
| 545 | # Check to see how make treats includes.
|
|---|
| 546 | AC_DEFUN([AM_MAKE_INCLUDE],
|
|---|
| 547 | [am_make=${MAKE-make}
|
|---|
| 548 | cat > confinc << 'END'
|
|---|
| 549 | am__doit:
|
|---|
| 550 | @echo done
|
|---|
| 551 | .PHONY: am__doit
|
|---|
| 552 | END
|
|---|
| 553 | # If we don't find an include directive, just comment out the code.
|
|---|
| 554 | AC_MSG_CHECKING([for style of include used by $am_make])
|
|---|
| 555 | am__include="#"
|
|---|
| 556 | am__quote=
|
|---|
| 557 | _am_result=none
|
|---|
| 558 | # First try GNU make style include.
|
|---|
| 559 | echo "include confinc" > confmf
|
|---|
| 560 | # We grep out `Entering directory' and `Leaving directory'
|
|---|
| 561 | # messages which can occur if `w' ends up in MAKEFLAGS.
|
|---|
| 562 | # In particular we don't look at `^make:' because GNU make might
|
|---|
| 563 | # be invoked under some other name (usually "gmake"), in which
|
|---|
| 564 | # case it prints its new name instead of `make'.
|
|---|
| 565 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
|---|
| 566 | am__include=include
|
|---|
| 567 | am__quote=
|
|---|
| 568 | _am_result=GNU
|
|---|
| 569 | fi
|
|---|
| 570 | # Now try BSD make style include.
|
|---|
| 571 | if test "$am__include" = "#"; then
|
|---|
| 572 | echo '.include "confinc"' > confmf
|
|---|
| 573 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
|---|
| 574 | am__include=.include
|
|---|
| 575 | am__quote="\""
|
|---|
| 576 | _am_result=BSD
|
|---|
| 577 | fi
|
|---|
| 578 | fi
|
|---|
| 579 | AC_SUBST([am__include])
|
|---|
| 580 | AC_SUBST([am__quote])
|
|---|
| 581 | AC_MSG_RESULT([$_am_result])
|
|---|
| 582 | rm -f confinc confmf
|
|---|
| 583 | ])
|
|---|
| 584 |
|
|---|
| 585 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
|---|
| 586 |
|
|---|
| 587 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
|
|---|
| 588 | # Free Software Foundation, Inc.
|
|---|
| 589 | #
|
|---|
| 590 | # This file is free software; the Free Software Foundation
|
|---|
| 591 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 592 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 593 |
|
|---|
| 594 | # serial 4
|
|---|
| 595 |
|
|---|
| 596 | # AM_MISSING_PROG(NAME, PROGRAM)
|
|---|
| 597 | # ------------------------------
|
|---|
| 598 | AC_DEFUN([AM_MISSING_PROG],
|
|---|
| 599 | [AC_REQUIRE([AM_MISSING_HAS_RUN])
|
|---|
| 600 | $1=${$1-"${am_missing_run}$2"}
|
|---|
| 601 | AC_SUBST($1)])
|
|---|
| 602 |
|
|---|
| 603 |
|
|---|
| 604 | # AM_MISSING_HAS_RUN
|
|---|
| 605 | # ------------------
|
|---|
| 606 | # Define MISSING if not defined so far and test if it supports --run.
|
|---|
| 607 | # If it does, set am_missing_run to use it, otherwise, to nothing.
|
|---|
| 608 | AC_DEFUN([AM_MISSING_HAS_RUN],
|
|---|
| 609 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|---|
| 610 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
|---|
| 611 | # Use eval to expand $SHELL
|
|---|
| 612 | if eval "$MISSING --run true"; then
|
|---|
| 613 | am_missing_run="$MISSING --run "
|
|---|
| 614 | else
|
|---|
| 615 | am_missing_run=
|
|---|
| 616 | AC_MSG_WARN([`missing' script is too old or missing])
|
|---|
| 617 | fi
|
|---|
| 618 | ])
|
|---|
| 619 |
|
|---|
| 620 | # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
|
|---|
| 621 | #
|
|---|
| 622 | # This file is free software; the Free Software Foundation
|
|---|
| 623 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 624 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 625 |
|
|---|
| 626 | # AM_PROG_MKDIR_P
|
|---|
| 627 | # ---------------
|
|---|
| 628 | # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
|
|---|
| 629 | #
|
|---|
| 630 | # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
|
|---|
| 631 | # created by `make install' are always world readable, even if the
|
|---|
| 632 | # installer happens to have an overly restrictive umask (e.g. 077).
|
|---|
| 633 | # This was a mistake. There are at least two reasons why we must not
|
|---|
| 634 | # use `-m 0755':
|
|---|
| 635 | # - it causes special bits like SGID to be ignored,
|
|---|
| 636 | # - it may be too restrictive (some setups expect 775 directories).
|
|---|
| 637 | #
|
|---|
| 638 | # Do not use -m 0755 and let people choose whatever they expect by
|
|---|
| 639 | # setting umask.
|
|---|
| 640 | #
|
|---|
| 641 | # We cannot accept any implementation of `mkdir' that recognizes `-p'.
|
|---|
| 642 | # Some implementations (such as Solaris 8's) are not thread-safe: if a
|
|---|
| 643 | # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
|
|---|
| 644 | # concurrently, both version can detect that a/ is missing, but only
|
|---|
| 645 | # one can create it and the other will error out. Consequently we
|
|---|
| 646 | # restrict ourselves to GNU make (using the --version option ensures
|
|---|
| 647 | # this.)
|
|---|
| 648 | AC_DEFUN([AM_PROG_MKDIR_P],
|
|---|
| 649 | [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
|---|
| 650 | # We used to keeping the `.' as first argument, in order to
|
|---|
| 651 | # allow $(mkdir_p) to be used without argument. As in
|
|---|
| 652 | # $(mkdir_p) $(somedir)
|
|---|
| 653 | # where $(somedir) is conditionally defined. However this is wrong
|
|---|
| 654 | # for two reasons:
|
|---|
| 655 | # 1. if the package is installed by a user who cannot write `.'
|
|---|
| 656 | # make install will fail,
|
|---|
| 657 | # 2. the above comment should most certainly read
|
|---|
| 658 | # $(mkdir_p) $(DESTDIR)$(somedir)
|
|---|
| 659 | # so it does not work when $(somedir) is undefined and
|
|---|
| 660 | # $(DESTDIR) is not.
|
|---|
| 661 | # To support the latter case, we have to write
|
|---|
| 662 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
|
|---|
| 663 | # so the `.' trick is pointless.
|
|---|
| 664 | mkdir_p='mkdir -p --'
|
|---|
| 665 | else
|
|---|
| 666 | # On NextStep and OpenStep, the `mkdir' command does not
|
|---|
| 667 | # recognize any option. It will interpret all options as
|
|---|
| 668 | # directories to create, and then abort because `.' already
|
|---|
| 669 | # exists.
|
|---|
| 670 | for d in ./-p ./--version;
|
|---|
| 671 | do
|
|---|
| 672 | test -d $d && rmdir $d
|
|---|
| 673 | done
|
|---|
| 674 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
|---|
| 675 | if test -f "$ac_aux_dir/mkinstalldirs"; then
|
|---|
| 676 | mkdir_p='$(mkinstalldirs)'
|
|---|
| 677 | else
|
|---|
| 678 | mkdir_p='$(install_sh) -d'
|
|---|
| 679 | fi
|
|---|
| 680 | fi
|
|---|
| 681 | AC_SUBST([mkdir_p])])
|
|---|
| 682 |
|
|---|
| 683 | # Helper functions for option handling. -*- Autoconf -*-
|
|---|
| 684 |
|
|---|
| 685 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
|---|
| 686 | #
|
|---|
| 687 | # This file is free software; the Free Software Foundation
|
|---|
| 688 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 689 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 690 |
|
|---|
| 691 | # serial 3
|
|---|
| 692 |
|
|---|
| 693 | # _AM_MANGLE_OPTION(NAME)
|
|---|
| 694 | # -----------------------
|
|---|
| 695 | AC_DEFUN([_AM_MANGLE_OPTION],
|
|---|
| 696 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
|---|
| 697 |
|
|---|
| 698 | # _AM_SET_OPTION(NAME)
|
|---|
| 699 | # ------------------------------
|
|---|
| 700 | # Set option NAME. Presently that only means defining a flag for this option.
|
|---|
| 701 | AC_DEFUN([_AM_SET_OPTION],
|
|---|
| 702 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
|---|
| 703 |
|
|---|
| 704 | # _AM_SET_OPTIONS(OPTIONS)
|
|---|
| 705 | # ----------------------------------
|
|---|
| 706 | # OPTIONS is a space-separated list of Automake options.
|
|---|
| 707 | AC_DEFUN([_AM_SET_OPTIONS],
|
|---|
| 708 | [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
|---|
| 709 |
|
|---|
| 710 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
|---|
| 711 | # -------------------------------------------
|
|---|
| 712 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|---|
| 713 | AC_DEFUN([_AM_IF_OPTION],
|
|---|
| 714 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|---|
| 715 |
|
|---|
| 716 | # Check to make sure that the build environment is sane. -*- Autoconf -*-
|
|---|
| 717 |
|
|---|
| 718 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
|---|
| 719 | # Free Software Foundation, Inc.
|
|---|
| 720 | #
|
|---|
| 721 | # This file is free software; the Free Software Foundation
|
|---|
| 722 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 723 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 724 |
|
|---|
| 725 | # serial 4
|
|---|
| 726 |
|
|---|
| 727 | # AM_SANITY_CHECK
|
|---|
| 728 | # ---------------
|
|---|
| 729 | AC_DEFUN([AM_SANITY_CHECK],
|
|---|
| 730 | [AC_MSG_CHECKING([whether build environment is sane])
|
|---|
| 731 | # Just in case
|
|---|
| 732 | sleep 1
|
|---|
| 733 | echo timestamp > conftest.file
|
|---|
| 734 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 735 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 736 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 737 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 738 | # directory).
|
|---|
| 739 | if (
|
|---|
| 740 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
|---|
| 741 | if test "$[*]" = "X"; then
|
|---|
| 742 | # -L didn't work.
|
|---|
| 743 | set X `ls -t $srcdir/configure conftest.file`
|
|---|
| 744 | fi
|
|---|
| 745 | rm -f conftest.file
|
|---|
| 746 | if test "$[*]" != "X $srcdir/configure conftest.file" \
|
|---|
| 747 | && test "$[*]" != "X conftest.file $srcdir/configure"; then
|
|---|
| 748 |
|
|---|
| 749 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 750 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 751 | # broken ls alias from the environment. This has actually
|
|---|
| 752 | # happened. Such a system could not be considered "sane".
|
|---|
| 753 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
|---|
| 754 | alias in your environment])
|
|---|
| 755 | fi
|
|---|
| 756 |
|
|---|
| 757 | test "$[2]" = conftest.file
|
|---|
| 758 | )
|
|---|
| 759 | then
|
|---|
| 760 | # Ok.
|
|---|
| 761 | :
|
|---|
| 762 | else
|
|---|
| 763 | AC_MSG_ERROR([newly created file is older than distributed files!
|
|---|
| 764 | Check your system clock])
|
|---|
| 765 | fi
|
|---|
| 766 | AC_MSG_RESULT(yes)])
|
|---|
| 767 |
|
|---|
| 768 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
|---|
| 769 | #
|
|---|
| 770 | # This file is free software; the Free Software Foundation
|
|---|
| 771 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 772 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 773 |
|
|---|
| 774 | # AM_PROG_INSTALL_STRIP
|
|---|
| 775 | # ---------------------
|
|---|
| 776 | # One issue with vendor `install' (even GNU) is that you can't
|
|---|
| 777 | # specify the program used to strip binaries. This is especially
|
|---|
| 778 | # annoying in cross-compiling environments, where the build's strip
|
|---|
| 779 | # is unlikely to handle the host's binaries.
|
|---|
| 780 | # Fortunately install-sh will honor a STRIPPROG variable, so we
|
|---|
| 781 | # always use install-sh in `make install-strip', and initialize
|
|---|
| 782 | # STRIPPROG with the value of the STRIP variable (set by the user).
|
|---|
| 783 | AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
|---|
| 784 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|---|
| 785 | # Installed binaries are usually stripped using `strip' when the user
|
|---|
| 786 | # run `make install-strip'. However `strip' might not be the right
|
|---|
| 787 | # tool to use in cross-compilation environments, therefore Automake
|
|---|
| 788 | # will honor the `STRIP' environment variable to overrule this program.
|
|---|
| 789 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
|---|
| 790 | if test "$cross_compiling" != no; then
|
|---|
| 791 | AC_CHECK_TOOL([STRIP], [strip], :)
|
|---|
| 792 | fi
|
|---|
| 793 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
|---|
| 794 | AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|---|
| 795 |
|
|---|
| 796 | # Check how to create a tarball. -*- Autoconf -*-
|
|---|
| 797 |
|
|---|
| 798 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
|---|
| 799 | #
|
|---|
| 800 | # This file is free software; the Free Software Foundation
|
|---|
| 801 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 802 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 803 |
|
|---|
| 804 | # serial 2
|
|---|
| 805 |
|
|---|
| 806 | # _AM_PROG_TAR(FORMAT)
|
|---|
| 807 | # --------------------
|
|---|
| 808 | # Check how to create a tarball in format FORMAT.
|
|---|
| 809 | # FORMAT should be one of `v7', `ustar', or `pax'.
|
|---|
| 810 | #
|
|---|
| 811 | # Substitute a variable $(am__tar) that is a command
|
|---|
| 812 | # writing to stdout a FORMAT-tarball containing the directory
|
|---|
| 813 | # $tardir.
|
|---|
| 814 | # tardir=directory && $(am__tar) > result.tar
|
|---|
| 815 | #
|
|---|
| 816 | # Substitute a variable $(am__untar) that extract such
|
|---|
| 817 | # a tarball read from stdin.
|
|---|
| 818 | # $(am__untar) < result.tar
|
|---|
| 819 | AC_DEFUN([_AM_PROG_TAR],
|
|---|
| 820 | [# Always define AMTAR for backward compatibility.
|
|---|
| 821 | AM_MISSING_PROG([AMTAR], [tar])
|
|---|
| 822 | m4_if([$1], [v7],
|
|---|
| 823 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
|---|
| 824 | [m4_case([$1], [ustar],, [pax],,
|
|---|
| 825 | [m4_fatal([Unknown tar format])])
|
|---|
| 826 | AC_MSG_CHECKING([how to create a $1 tar archive])
|
|---|
| 827 | # Loop over all known methods to create a tar archive until one works.
|
|---|
| 828 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
|---|
| 829 | _am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
|---|
| 830 | # Do not fold the above two line into one, because Tru64 sh and
|
|---|
| 831 | # Solaris sh will not grok spaces in the rhs of `-'.
|
|---|
| 832 | for _am_tool in $_am_tools
|
|---|
| 833 | do
|
|---|
| 834 | case $_am_tool in
|
|---|
| 835 | gnutar)
|
|---|
| 836 | for _am_tar in tar gnutar gtar;
|
|---|
| 837 | do
|
|---|
| 838 | AM_RUN_LOG([$_am_tar --version]) && break
|
|---|
| 839 | done
|
|---|
| 840 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
|---|
| 841 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
|---|
| 842 | am__untar="$_am_tar -xf -"
|
|---|
| 843 | ;;
|
|---|
| 844 | plaintar)
|
|---|
| 845 | # Must skip GNU tar: if it does not support --format= it doesn't create
|
|---|
| 846 | # ustar tarball either.
|
|---|
| 847 | (tar --version) >/dev/null 2>&1 && continue
|
|---|
| 848 | am__tar='tar chf - "$$tardir"'
|
|---|
| 849 | am__tar_='tar chf - "$tardir"'
|
|---|
| 850 | am__untar='tar xf -'
|
|---|
| 851 | ;;
|
|---|
| 852 | pax)
|
|---|
| 853 | am__tar='pax -L -x $1 -w "$$tardir"'
|
|---|
| 854 | am__tar_='pax -L -x $1 -w "$tardir"'
|
|---|
| 855 | am__untar='pax -r'
|
|---|
| 856 | ;;
|
|---|
| 857 | cpio)
|
|---|
| 858 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
|---|
| 859 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
|---|
| 860 | am__untar='cpio -i -H $1 -d'
|
|---|
| 861 | ;;
|
|---|
| 862 | none)
|
|---|
| 863 | am__tar=false
|
|---|
| 864 | am__tar_=false
|
|---|
| 865 | am__untar=false
|
|---|
| 866 | ;;
|
|---|
| 867 | esac
|
|---|
| 868 |
|
|---|
| 869 | # If the value was cached, stop now. We just wanted to have am__tar
|
|---|
| 870 | # and am__untar set.
|
|---|
| 871 | test -n "${am_cv_prog_tar_$1}" && break
|
|---|
| 872 |
|
|---|
| 873 | # tar/untar a dummy directory, and stop if the command works
|
|---|
| 874 | rm -rf conftest.dir
|
|---|
| 875 | mkdir conftest.dir
|
|---|
| 876 | echo GrepMe > conftest.dir/file
|
|---|
| 877 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
|---|
| 878 | rm -rf conftest.dir
|
|---|
| 879 | if test -s conftest.tar; then
|
|---|
| 880 | AM_RUN_LOG([$am__untar <conftest.tar])
|
|---|
| 881 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
|---|
| 882 | fi
|
|---|
| 883 | done
|
|---|
| 884 | rm -rf conftest.dir
|
|---|
| 885 |
|
|---|
| 886 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
|---|
| 887 | AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
|---|
| 888 | AC_SUBST([am__tar])
|
|---|
| 889 | AC_SUBST([am__untar])
|
|---|
| 890 | ]) # _AM_PROG_TAR
|
|---|
| 891 |
|
|---|
| 892 | dnl -*- mode: autoconf -*-
|
|---|
| 893 |
|
|---|
| 894 | # serial 1
|
|---|
| 895 |
|
|---|
| 896 | dnl Usage:
|
|---|
| 897 | dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
|
|---|
| 898 | AC_DEFUN([GTK_DOC_CHECK],
|
|---|
| 899 | [
|
|---|
| 900 | AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
|
|---|
| 901 | AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
|
|---|
| 902 | dnl for overriding the documentation installation directory
|
|---|
| 903 | AC_ARG_WITH(html-dir,
|
|---|
| 904 | AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
|
|---|
| 905 | [with_html_dir='${datadir}/gtk-doc/html'])
|
|---|
| 906 | HTML_DIR="$with_html_dir"
|
|---|
| 907 | AC_SUBST(HTML_DIR)
|
|---|
| 908 |
|
|---|
| 909 | dnl enable/disable documentation building
|
|---|
| 910 | AC_ARG_ENABLE(gtk-doc,
|
|---|
| 911 | AC_HELP_STRING([--enable-gtk-doc],
|
|---|
| 912 | [use gtk-doc to build documentation [default=no]]),,
|
|---|
| 913 | enable_gtk_doc=no)
|
|---|
| 914 |
|
|---|
| 915 | have_gtk_doc=no
|
|---|
| 916 | if test x$enable_gtk_doc = xyes; then
|
|---|
| 917 | if test -z "$PKG_CONFIG"; then
|
|---|
| 918 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
|---|
| 919 | fi
|
|---|
| 920 | if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
|
|---|
| 921 | have_gtk_doc=yes
|
|---|
| 922 | fi
|
|---|
| 923 |
|
|---|
| 924 | dnl do we want to do a version check?
|
|---|
| 925 | ifelse([$1],[],,
|
|---|
| 926 | [gtk_doc_min_version=$1
|
|---|
| 927 | if test "$have_gtk_doc" = yes; then
|
|---|
| 928 | AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
|
|---|
| 929 | if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
|
|---|
| 930 | AC_MSG_RESULT(yes)
|
|---|
| 931 | else
|
|---|
| 932 | AC_MSG_RESULT(no)
|
|---|
| 933 | have_gtk_doc=no
|
|---|
| 934 | fi
|
|---|
| 935 | fi
|
|---|
| 936 | ])
|
|---|
| 937 | if test "$have_gtk_doc" != yes; then
|
|---|
| 938 | enable_gtk_doc=no
|
|---|
| 939 | fi
|
|---|
| 940 | fi
|
|---|
| 941 |
|
|---|
| 942 | AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
|
|---|
| 943 | AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
|
|---|
| 944 | ])
|
|---|
| 945 |
|
|---|
| 946 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
|---|
| 947 |
|
|---|
| 948 | # serial 47 AC_PROG_LIBTOOL
|
|---|
| 949 |
|
|---|
| 950 |
|
|---|
| 951 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
|
|---|
| 952 | # -----------------------------------------------------------
|
|---|
| 953 | # If this macro is not defined by Autoconf, define it here.
|
|---|
| 954 | m4_ifdef([AC_PROVIDE_IFELSE],
|
|---|
| 955 | [],
|
|---|
| 956 | [m4_define([AC_PROVIDE_IFELSE],
|
|---|
| 957 | [m4_ifdef([AC_PROVIDE_$1],
|
|---|
| 958 | [$2], [$3])])])
|
|---|
| 959 |
|
|---|
| 960 |
|
|---|
| 961 | # AC_PROG_LIBTOOL
|
|---|
| 962 | # ---------------
|
|---|
| 963 | AC_DEFUN([AC_PROG_LIBTOOL],
|
|---|
| 964 | [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
|
|---|
| 965 | dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
|
|---|
| 966 | dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
|
|---|
| 967 | AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|---|
| 968 | [AC_LIBTOOL_CXX],
|
|---|
| 969 | [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
|
|---|
| 970 | ])])
|
|---|
| 971 | dnl And a similar setup for Fortran 77 support
|
|---|
| 972 | AC_PROVIDE_IFELSE([AC_PROG_F77],
|
|---|
| 973 | [AC_LIBTOOL_F77],
|
|---|
| 974 | [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
|
|---|
| 975 | ])])
|
|---|
| 976 |
|
|---|
| 977 | dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
|
|---|
| 978 | dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
|
|---|
| 979 | dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
|
|---|
| 980 | AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
|---|
| 981 | [AC_LIBTOOL_GCJ],
|
|---|
| 982 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
|
|---|
| 983 | [AC_LIBTOOL_GCJ],
|
|---|
| 984 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
|
|---|
| 985 | [AC_LIBTOOL_GCJ],
|
|---|
| 986 | [ifdef([AC_PROG_GCJ],
|
|---|
| 987 | [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
|
|---|
| 988 | ifdef([A][M_PROG_GCJ],
|
|---|
| 989 | [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
|
|---|
| 990 | ifdef([LT_AC_PROG_GCJ],
|
|---|
| 991 | [define([LT_AC_PROG_GCJ],
|
|---|
| 992 | defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
|
|---|
| 993 | ])])# AC_PROG_LIBTOOL
|
|---|
| 994 |
|
|---|
| 995 |
|
|---|
| 996 | # _AC_PROG_LIBTOOL
|
|---|
| 997 | # ----------------
|
|---|
| 998 | AC_DEFUN([_AC_PROG_LIBTOOL],
|
|---|
| 999 | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
|
|---|
| 1000 | AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
|
|---|
| 1001 | AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
|
|---|
| 1002 | AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
|
|---|
| 1003 |
|
|---|
| 1004 | # This can be used to rebuild libtool when needed
|
|---|
| 1005 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
|---|
| 1006 |
|
|---|
| 1007 | # Always use our own libtool.
|
|---|
| 1008 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 1009 | AC_SUBST(LIBTOOL)dnl
|
|---|
| 1010 |
|
|---|
| 1011 | # Prevent multiple expansion
|
|---|
| 1012 | define([AC_PROG_LIBTOOL], [])
|
|---|
| 1013 | ])# _AC_PROG_LIBTOOL
|
|---|
| 1014 |
|
|---|
| 1015 |
|
|---|
| 1016 | # AC_LIBTOOL_SETUP
|
|---|
| 1017 | # ----------------
|
|---|
| 1018 | AC_DEFUN([AC_LIBTOOL_SETUP],
|
|---|
| 1019 | [AC_PREREQ(2.50)dnl
|
|---|
| 1020 | AC_REQUIRE([AC_ENABLE_SHARED])dnl
|
|---|
| 1021 | AC_REQUIRE([AC_ENABLE_STATIC])dnl
|
|---|
| 1022 | AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
|
|---|
| 1023 | AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|---|
| 1024 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|---|
| 1025 | AC_REQUIRE([AC_PROG_CC])dnl
|
|---|
| 1026 | AC_REQUIRE([AC_PROG_LD])dnl
|
|---|
| 1027 | AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
|
|---|
| 1028 | AC_REQUIRE([AC_PROG_NM])dnl
|
|---|
| 1029 |
|
|---|
| 1030 | AC_REQUIRE([AC_PROG_LN_S])dnl
|
|---|
| 1031 | AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
|
|---|
| 1032 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 1033 | AC_REQUIRE([AC_OBJEXT])dnl
|
|---|
| 1034 | AC_REQUIRE([AC_EXEEXT])dnl
|
|---|
| 1035 | dnl
|
|---|
| 1036 |
|
|---|
| 1037 | AC_LIBTOOL_SYS_MAX_CMD_LEN
|
|---|
| 1038 | AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
|---|
| 1039 | AC_LIBTOOL_OBJDIR
|
|---|
| 1040 |
|
|---|
| 1041 | AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
|---|
| 1042 | _LT_AC_PROG_ECHO_BACKSLASH
|
|---|
| 1043 |
|
|---|
| 1044 | case $host_os in
|
|---|
| 1045 | aix3*)
|
|---|
| 1046 | # AIX sometimes has problems with the GCC collect2 program. For some
|
|---|
| 1047 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
|---|
| 1048 | # vanish in a puff of smoke.
|
|---|
| 1049 | if test "X${COLLECT_NAMES+set}" != Xset; then
|
|---|
| 1050 | COLLECT_NAMES=
|
|---|
| 1051 | export COLLECT_NAMES
|
|---|
| 1052 | fi
|
|---|
| 1053 | ;;
|
|---|
| 1054 | esac
|
|---|
| 1055 |
|
|---|
| 1056 | # Sed substitution that helps us do robust quoting. It backslashifies
|
|---|
| 1057 | # metacharacters that are still active within double-quoted strings.
|
|---|
| 1058 | Xsed='sed -e 1s/^X//'
|
|---|
| 1059 | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
|
|---|
| 1060 |
|
|---|
| 1061 | # Same as above, but do not quote variable references.
|
|---|
| 1062 | [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
|
|---|
| 1063 |
|
|---|
| 1064 | # Sed substitution to delay expansion of an escaped shell variable in a
|
|---|
| 1065 | # double_quote_subst'ed string.
|
|---|
| 1066 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
|---|
| 1067 |
|
|---|
| 1068 | # Sed substitution to avoid accidental globbing in evaled expressions
|
|---|
| 1069 | no_glob_subst='s/\*/\\\*/g'
|
|---|
| 1070 |
|
|---|
| 1071 | # Constants:
|
|---|
| 1072 | rm="rm -f"
|
|---|
| 1073 |
|
|---|
| 1074 | # Global variables:
|
|---|
| 1075 | default_ofile=libtool
|
|---|
| 1076 | can_build_shared=yes
|
|---|
| 1077 |
|
|---|
| 1078 | # All known linkers require a `.a' archive for static linking (except M$VC,
|
|---|
| 1079 | # which needs '.lib').
|
|---|
| 1080 | libext=a
|
|---|
| 1081 | ltmain="$ac_aux_dir/ltmain.sh"
|
|---|
| 1082 | ofile="$default_ofile"
|
|---|
| 1083 | with_gnu_ld="$lt_cv_prog_gnu_ld"
|
|---|
| 1084 |
|
|---|
| 1085 | AC_CHECK_TOOL(AR, ar, false)
|
|---|
| 1086 | AC_CHECK_TOOL(RANLIB, ranlib, :)
|
|---|
| 1087 | AC_CHECK_TOOL(STRIP, strip, :)
|
|---|
| 1088 |
|
|---|
| 1089 | old_CC="$CC"
|
|---|
| 1090 | old_CFLAGS="$CFLAGS"
|
|---|
| 1091 |
|
|---|
| 1092 | # Set sane defaults for various variables
|
|---|
| 1093 | test -z "$AR" && AR=ar
|
|---|
| 1094 | test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|---|
| 1095 | test -z "$AS" && AS=as
|
|---|
| 1096 | test -z "$CC" && CC=cc
|
|---|
| 1097 | test -z "$LTCC" && LTCC=$CC
|
|---|
| 1098 | test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|---|
| 1099 | test -z "$LD" && LD=ld
|
|---|
| 1100 | test -z "$LN_S" && LN_S="ln -s"
|
|---|
| 1101 | test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
|---|
| 1102 | test -z "$NM" && NM=nm
|
|---|
| 1103 | test -z "$SED" && SED=sed
|
|---|
| 1104 | test -z "$OBJDUMP" && OBJDUMP=objdump
|
|---|
| 1105 | test -z "$RANLIB" && RANLIB=:
|
|---|
| 1106 | test -z "$STRIP" && STRIP=:
|
|---|
| 1107 | test -z "$ac_objext" && ac_objext=o
|
|---|
| 1108 |
|
|---|
| 1109 | # Determine commands to create old-style static archives.
|
|---|
| 1110 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
|
|---|
| 1111 | old_postinstall_cmds='chmod 644 $oldlib'
|
|---|
| 1112 | old_postuninstall_cmds=
|
|---|
| 1113 |
|
|---|
| 1114 | if test -n "$RANLIB"; then
|
|---|
| 1115 | case $host_os in
|
|---|
| 1116 | openbsd*)
|
|---|
| 1117 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
|
|---|
| 1118 | ;;
|
|---|
| 1119 | *)
|
|---|
| 1120 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
|
|---|
| 1121 | ;;
|
|---|
| 1122 | esac
|
|---|
| 1123 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
|---|
| 1124 | fi
|
|---|
| 1125 |
|
|---|
| 1126 | _LT_CC_BASENAME([$compiler])
|
|---|
| 1127 |
|
|---|
| 1128 | # Only perform the check for file, if the check method requires it
|
|---|
| 1129 | case $deplibs_check_method in
|
|---|
| 1130 | file_magic*)
|
|---|
| 1131 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 1132 | AC_PATH_MAGIC
|
|---|
| 1133 | fi
|
|---|
| 1134 | ;;
|
|---|
| 1135 | esac
|
|---|
| 1136 |
|
|---|
| 1137 | AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
|
|---|
| 1138 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
|---|
| 1139 | enable_win32_dll=yes, enable_win32_dll=no)
|
|---|
| 1140 |
|
|---|
| 1141 | AC_ARG_ENABLE([libtool-lock],
|
|---|
| 1142 | [AC_HELP_STRING([--disable-libtool-lock],
|
|---|
| 1143 | [avoid locking (might break parallel builds)])])
|
|---|
| 1144 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
|---|
| 1145 |
|
|---|
| 1146 | AC_ARG_WITH([pic],
|
|---|
| 1147 | [AC_HELP_STRING([--with-pic],
|
|---|
| 1148 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
|---|
| 1149 | [pic_mode="$withval"],
|
|---|
| 1150 | [pic_mode=default])
|
|---|
| 1151 | test -z "$pic_mode" && pic_mode=default
|
|---|
| 1152 |
|
|---|
| 1153 | # Use C for the default configuration in the libtool script
|
|---|
| 1154 | tagname=
|
|---|
| 1155 | AC_LIBTOOL_LANG_C_CONFIG
|
|---|
| 1156 | _LT_AC_TAGCONFIG
|
|---|
| 1157 | ])# AC_LIBTOOL_SETUP
|
|---|
| 1158 |
|
|---|
| 1159 |
|
|---|
| 1160 | # _LT_AC_SYS_COMPILER
|
|---|
| 1161 | # -------------------
|
|---|
| 1162 | AC_DEFUN([_LT_AC_SYS_COMPILER],
|
|---|
| 1163 | [AC_REQUIRE([AC_PROG_CC])dnl
|
|---|
| 1164 |
|
|---|
| 1165 | # If no C compiler was specified, use CC.
|
|---|
| 1166 | LTCC=${LTCC-"$CC"}
|
|---|
| 1167 |
|
|---|
| 1168 | # Allow CC to be a program name with arguments.
|
|---|
| 1169 | compiler=$CC
|
|---|
| 1170 | ])# _LT_AC_SYS_COMPILER
|
|---|
| 1171 |
|
|---|
| 1172 |
|
|---|
| 1173 | # _LT_CC_BASENAME(CC)
|
|---|
| 1174 | # -------------------
|
|---|
| 1175 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
|---|
| 1176 | AC_DEFUN([_LT_CC_BASENAME],
|
|---|
| 1177 | [for cc_temp in $1""; do
|
|---|
| 1178 | case $cc_temp in
|
|---|
| 1179 | compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
|
|---|
| 1180 | distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
|
|---|
| 1181 | \-*) ;;
|
|---|
| 1182 | *) break;;
|
|---|
| 1183 | esac
|
|---|
| 1184 | done
|
|---|
| 1185 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|---|
| 1186 | ])
|
|---|
| 1187 |
|
|---|
| 1188 |
|
|---|
| 1189 | # _LT_COMPILER_BOILERPLATE
|
|---|
| 1190 | # ------------------------
|
|---|
| 1191 | # Check for compiler boilerplate output or warnings with
|
|---|
| 1192 | # the simple compiler test code.
|
|---|
| 1193 | AC_DEFUN([_LT_COMPILER_BOILERPLATE],
|
|---|
| 1194 | [ac_outfile=conftest.$ac_objext
|
|---|
| 1195 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|---|
| 1196 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|---|
| 1197 | _lt_compiler_boilerplate=`cat conftest.err`
|
|---|
| 1198 | $rm conftest*
|
|---|
| 1199 | ])# _LT_COMPILER_BOILERPLATE
|
|---|
| 1200 |
|
|---|
| 1201 |
|
|---|
| 1202 | # _LT_LINKER_BOILERPLATE
|
|---|
| 1203 | # ----------------------
|
|---|
| 1204 | # Check for linker boilerplate output or warnings with
|
|---|
| 1205 | # the simple link test code.
|
|---|
| 1206 | AC_DEFUN([_LT_LINKER_BOILERPLATE],
|
|---|
| 1207 | [ac_outfile=conftest.$ac_objext
|
|---|
| 1208 | printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
|---|
| 1209 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|---|
| 1210 | _lt_linker_boilerplate=`cat conftest.err`
|
|---|
| 1211 | $rm conftest*
|
|---|
| 1212 | ])# _LT_LINKER_BOILERPLATE
|
|---|
| 1213 |
|
|---|
| 1214 |
|
|---|
| 1215 | # _LT_AC_SYS_LIBPATH_AIX
|
|---|
| 1216 | # ----------------------
|
|---|
| 1217 | # Links a minimal program and checks the executable
|
|---|
| 1218 | # for the system default hardcoded library path. In most cases,
|
|---|
| 1219 | # this is /usr/lib:/lib, but when the MPI compilers are used
|
|---|
| 1220 | # the location of the communication and MPI libs are included too.
|
|---|
| 1221 | # If we don't find anything, use the default library path according
|
|---|
| 1222 | # to the aix ld manual.
|
|---|
| 1223 | AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
|
|---|
| 1224 | [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
|
|---|
| 1225 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
|---|
| 1226 | }'`
|
|---|
| 1227 | # Check for a 64-bit object if we didn't find anything.
|
|---|
| 1228 | 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; }
|
|---|
| 1229 | }'`; fi],[])
|
|---|
| 1230 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|---|
| 1231 | ])# _LT_AC_SYS_LIBPATH_AIX
|
|---|
| 1232 |
|
|---|
| 1233 |
|
|---|
| 1234 | # _LT_AC_SHELL_INIT(ARG)
|
|---|
| 1235 | # ----------------------
|
|---|
| 1236 | AC_DEFUN([_LT_AC_SHELL_INIT],
|
|---|
| 1237 | [ifdef([AC_DIVERSION_NOTICE],
|
|---|
| 1238 | [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
|
|---|
| 1239 | [AC_DIVERT_PUSH(NOTICE)])
|
|---|
| 1240 | $1
|
|---|
| 1241 | AC_DIVERT_POP
|
|---|
| 1242 | ])# _LT_AC_SHELL_INIT
|
|---|
| 1243 |
|
|---|
| 1244 |
|
|---|
| 1245 | # _LT_AC_PROG_ECHO_BACKSLASH
|
|---|
| 1246 | # --------------------------
|
|---|
| 1247 | # Add some code to the start of the generated configure script which
|
|---|
| 1248 | # will find an echo command which doesn't interpret backslashes.
|
|---|
| 1249 | AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
|
|---|
| 1250 | [_LT_AC_SHELL_INIT([
|
|---|
| 1251 | # Check that we are running under the correct shell.
|
|---|
| 1252 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 1253 |
|
|---|
| 1254 | case X$ECHO in
|
|---|
| 1255 | X*--fallback-echo)
|
|---|
| 1256 | # Remove one level of quotation (which was required for Make).
|
|---|
| 1257 | ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
|
|---|
| 1258 | ;;
|
|---|
| 1259 | esac
|
|---|
| 1260 |
|
|---|
| 1261 | echo=${ECHO-echo}
|
|---|
| 1262 | if test "X[$]1" = X--no-reexec; then
|
|---|
| 1263 | # Discard the --no-reexec flag, and continue.
|
|---|
| 1264 | shift
|
|---|
| 1265 | elif test "X[$]1" = X--fallback-echo; then
|
|---|
| 1266 | # Avoid inline document here, it may be left over
|
|---|
| 1267 | :
|
|---|
| 1268 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
|
|---|
| 1269 | # Yippee, $echo works!
|
|---|
| 1270 | :
|
|---|
| 1271 | else
|
|---|
| 1272 | # Restart under the correct shell.
|
|---|
| 1273 | exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
|---|
| 1274 | fi
|
|---|
| 1275 |
|
|---|
| 1276 | if test "X[$]1" = X--fallback-echo; then
|
|---|
| 1277 | # used as fallback echo
|
|---|
| 1278 | shift
|
|---|
| 1279 | cat <<EOF
|
|---|
| 1280 | [$]*
|
|---|
| 1281 | EOF
|
|---|
| 1282 | exit 0
|
|---|
| 1283 | fi
|
|---|
| 1284 |
|
|---|
| 1285 | # The HP-UX ksh and POSIX shell print the target directory to stdout
|
|---|
| 1286 | # if CDPATH is set.
|
|---|
| 1287 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|---|
| 1288 |
|
|---|
| 1289 | if test -z "$ECHO"; then
|
|---|
| 1290 | if test "X${echo_test_string+set}" != Xset; then
|
|---|
| 1291 | # find a string as large as possible, as long as the shell can cope with it
|
|---|
| 1292 | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
|
|---|
| 1293 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
|---|
| 1294 | if (echo_test_string="`eval $cmd`") 2>/dev/null &&
|
|---|
| 1295 | echo_test_string="`eval $cmd`" &&
|
|---|
| 1296 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
|
|---|
| 1297 | then
|
|---|
| 1298 | break
|
|---|
| 1299 | fi
|
|---|
| 1300 | done
|
|---|
| 1301 | fi
|
|---|
| 1302 |
|
|---|
| 1303 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
|---|
| 1304 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
|---|
| 1305 | test "X$echo_testing_string" = "X$echo_test_string"; then
|
|---|
| 1306 | :
|
|---|
| 1307 | else
|
|---|
| 1308 | # The Solaris, AIX, and Digital Unix default echo programs unquote
|
|---|
| 1309 | # backslashes. This makes it impossible to quote backslashes using
|
|---|
| 1310 | # echo "$something" | sed 's/\\/\\\\/g'
|
|---|
| 1311 | #
|
|---|
| 1312 | # So, first we look for a working echo in the user's PATH.
|
|---|
| 1313 |
|
|---|
| 1314 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|---|
| 1315 | for dir in $PATH /usr/ucb; do
|
|---|
| 1316 | IFS="$lt_save_ifs"
|
|---|
| 1317 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
|---|
| 1318 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
|---|
| 1319 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
|---|
| 1320 | test "X$echo_testing_string" = "X$echo_test_string"; then
|
|---|
| 1321 | echo="$dir/echo"
|
|---|
| 1322 | break
|
|---|
| 1323 | fi
|
|---|
| 1324 | done
|
|---|
| 1325 | IFS="$lt_save_ifs"
|
|---|
| 1326 |
|
|---|
| 1327 | if test "X$echo" = Xecho; then
|
|---|
| 1328 | # We didn't find a better echo, so look for alternatives.
|
|---|
| 1329 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
|
|---|
| 1330 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
|
|---|
| 1331 | test "X$echo_testing_string" = "X$echo_test_string"; then
|
|---|
| 1332 | # This shell has a builtin print -r that does the trick.
|
|---|
| 1333 | echo='print -r'
|
|---|
| 1334 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
|
|---|
| 1335 | test "X$CONFIG_SHELL" != X/bin/ksh; then
|
|---|
| 1336 | # If we have ksh, try running configure again with it.
|
|---|
| 1337 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 1338 | export ORIGINAL_CONFIG_SHELL
|
|---|
| 1339 | CONFIG_SHELL=/bin/ksh
|
|---|
| 1340 | export CONFIG_SHELL
|
|---|
| 1341 | exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
|---|
| 1342 | else
|
|---|
| 1343 | # Try using printf.
|
|---|
| 1344 | echo='printf %s\n'
|
|---|
| 1345 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
|---|
| 1346 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
|---|
| 1347 | test "X$echo_testing_string" = "X$echo_test_string"; then
|
|---|
| 1348 | # Cool, printf works
|
|---|
| 1349 | :
|
|---|
| 1350 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
|---|
| 1351 | test "X$echo_testing_string" = 'X\t' &&
|
|---|
| 1352 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
|---|
| 1353 | test "X$echo_testing_string" = "X$echo_test_string"; then
|
|---|
| 1354 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
|---|
| 1355 | export CONFIG_SHELL
|
|---|
| 1356 | SHELL="$CONFIG_SHELL"
|
|---|
| 1357 | export SHELL
|
|---|
| 1358 | echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
|---|
| 1359 | elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
|---|
| 1360 | test "X$echo_testing_string" = 'X\t' &&
|
|---|
| 1361 | echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
|---|
| 1362 | test "X$echo_testing_string" = "X$echo_test_string"; then
|
|---|
| 1363 | echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
|---|
| 1364 | else
|
|---|
| 1365 | # maybe with a smaller string...
|
|---|
| 1366 | prev=:
|
|---|
| 1367 |
|
|---|
| 1368 | for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
|
|---|
| 1369 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
|
|---|
| 1370 | then
|
|---|
| 1371 | break
|
|---|
| 1372 | fi
|
|---|
| 1373 | prev="$cmd"
|
|---|
| 1374 | done
|
|---|
| 1375 |
|
|---|
| 1376 | if test "$prev" != 'sed 50q "[$]0"'; then
|
|---|
| 1377 | echo_test_string=`eval $prev`
|
|---|
| 1378 | export echo_test_string
|
|---|
| 1379 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
|
|---|
| 1380 | else
|
|---|
| 1381 | # Oops. We lost completely, so just stick with echo.
|
|---|
| 1382 | echo=echo
|
|---|
| 1383 | fi
|
|---|
| 1384 | fi
|
|---|
| 1385 | fi
|
|---|
| 1386 | fi
|
|---|
| 1387 | fi
|
|---|
| 1388 | fi
|
|---|
| 1389 |
|
|---|
| 1390 | # Copy echo and quote the copy suitably for passing to libtool from
|
|---|
| 1391 | # the Makefile, instead of quoting the original, which is used later.
|
|---|
| 1392 | ECHO=$echo
|
|---|
| 1393 | if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
|
|---|
| 1394 | ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
|
|---|
| 1395 | fi
|
|---|
| 1396 |
|
|---|
| 1397 | AC_SUBST(ECHO)
|
|---|
| 1398 | ])])# _LT_AC_PROG_ECHO_BACKSLASH
|
|---|
| 1399 |
|
|---|
| 1400 |
|
|---|
| 1401 | # _LT_AC_LOCK
|
|---|
| 1402 | # -----------
|
|---|
| 1403 | AC_DEFUN([_LT_AC_LOCK],
|
|---|
| 1404 | [AC_ARG_ENABLE([libtool-lock],
|
|---|
| 1405 | [AC_HELP_STRING([--disable-libtool-lock],
|
|---|
| 1406 | [avoid locking (might break parallel builds)])])
|
|---|
| 1407 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
|---|
| 1408 |
|
|---|
| 1409 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 1410 | # libtool support.
|
|---|
| 1411 | case $host in
|
|---|
| 1412 | ia64-*-hpux*)
|
|---|
| 1413 | # Find out which ABI we are using.
|
|---|
| 1414 | echo 'int i;' > conftest.$ac_ext
|
|---|
| 1415 | if AC_TRY_EVAL(ac_compile); then
|
|---|
| 1416 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 1417 | *ELF-32*)
|
|---|
| 1418 | HPUX_IA64_MODE="32"
|
|---|
| 1419 | ;;
|
|---|
| 1420 | *ELF-64*)
|
|---|
| 1421 | HPUX_IA64_MODE="64"
|
|---|
| 1422 | ;;
|
|---|
| 1423 | esac
|
|---|
| 1424 | fi
|
|---|
| 1425 | rm -rf conftest*
|
|---|
| 1426 | ;;
|
|---|
| 1427 | *-*-irix6*)
|
|---|
| 1428 | # Find out which ABI we are using.
|
|---|
| 1429 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext
|
|---|
| 1430 | if AC_TRY_EVAL(ac_compile); then
|
|---|
| 1431 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
|---|
| 1432 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 1433 | *32-bit*)
|
|---|
| 1434 | LD="${LD-ld} -melf32bsmip"
|
|---|
| 1435 | ;;
|
|---|
| 1436 | *N32*)
|
|---|
| 1437 | LD="${LD-ld} -melf32bmipn32"
|
|---|
| 1438 | ;;
|
|---|
| 1439 | *64-bit*)
|
|---|
| 1440 | LD="${LD-ld} -melf64bmip"
|
|---|
| 1441 | ;;
|
|---|
| 1442 | esac
|
|---|
| 1443 | else
|
|---|
| 1444 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 1445 | *32-bit*)
|
|---|
| 1446 | LD="${LD-ld} -32"
|
|---|
| 1447 | ;;
|
|---|
| 1448 | *N32*)
|
|---|
| 1449 | LD="${LD-ld} -n32"
|
|---|
| 1450 | ;;
|
|---|
| 1451 | *64-bit*)
|
|---|
| 1452 | LD="${LD-ld} -64"
|
|---|
| 1453 | ;;
|
|---|
| 1454 | esac
|
|---|
| 1455 | fi
|
|---|
| 1456 | fi
|
|---|
| 1457 | rm -rf conftest*
|
|---|
| 1458 | ;;
|
|---|
| 1459 |
|
|---|
| 1460 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
|
|---|
| 1461 | # Find out which ABI we are using.
|
|---|
| 1462 | echo 'int i;' > conftest.$ac_ext
|
|---|
| 1463 | if AC_TRY_EVAL(ac_compile); then
|
|---|
| 1464 | case "`/usr/bin/file conftest.o`" in
|
|---|
| 1465 | *32-bit*)
|
|---|
| 1466 | case $host in
|
|---|
| 1467 | x86_64-*linux*)
|
|---|
| 1468 | LD="${LD-ld} -m elf_i386"
|
|---|
| 1469 | ;;
|
|---|
| 1470 | ppc64-*linux*|powerpc64-*linux*)
|
|---|
| 1471 | LD="${LD-ld} -m elf32ppclinux"
|
|---|
| 1472 | ;;
|
|---|
| 1473 | s390x-*linux*)
|
|---|
| 1474 | LD="${LD-ld} -m elf_s390"
|
|---|
| 1475 | ;;
|
|---|
| 1476 | sparc64-*linux*)
|
|---|
| 1477 | LD="${LD-ld} -m elf32_sparc"
|
|---|
| 1478 | ;;
|
|---|
| 1479 | esac
|
|---|
| 1480 | ;;
|
|---|
| 1481 | *64-bit*)
|
|---|
| 1482 | case $host in
|
|---|
| 1483 | x86_64-*linux*)
|
|---|
| 1484 | LD="${LD-ld} -m elf_x86_64"
|
|---|
| 1485 | ;;
|
|---|
| 1486 | ppc*-*linux*|powerpc*-*linux*)
|
|---|
| 1487 | LD="${LD-ld} -m elf64ppc"
|
|---|
| 1488 | ;;
|
|---|
| 1489 | s390*-*linux*)
|
|---|
| 1490 | LD="${LD-ld} -m elf64_s390"
|
|---|
| 1491 | ;;
|
|---|
| 1492 | sparc*-*linux*)
|
|---|
| 1493 | LD="${LD-ld} -m elf64_sparc"
|
|---|
| 1494 | ;;
|
|---|
| 1495 | esac
|
|---|
| 1496 | ;;
|
|---|
| 1497 | esac
|
|---|
| 1498 | fi
|
|---|
| 1499 | rm -rf conftest*
|
|---|
| 1500 | ;;
|
|---|
| 1501 |
|
|---|
| 1502 | *-*-sco3.2v5*)
|
|---|
| 1503 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 1504 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 1505 | CFLAGS="$CFLAGS -belf"
|
|---|
| 1506 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
|---|
| 1507 | [AC_LANG_PUSH(C)
|
|---|
| 1508 | AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
|---|
| 1509 | AC_LANG_POP])
|
|---|
| 1510 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 1511 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 1512 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 1513 | fi
|
|---|
| 1514 | ;;
|
|---|
| 1515 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
|---|
| 1516 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
|
|---|
| 1517 | AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
|---|
| 1518 | AC_CHECK_TOOL(AS, as, false)
|
|---|
| 1519 | AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
|---|
| 1520 | ;;
|
|---|
| 1521 | ])
|
|---|
| 1522 | esac
|
|---|
| 1523 |
|
|---|
| 1524 | need_locks="$enable_libtool_lock"
|
|---|
| 1525 |
|
|---|
| 1526 | ])# _LT_AC_LOCK
|
|---|
| 1527 |
|
|---|
| 1528 |
|
|---|
| 1529 | # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
|---|
| 1530 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
|
|---|
| 1531 | # ----------------------------------------------------------------
|
|---|
| 1532 | # Check whether the given compiler option works
|
|---|
| 1533 | AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
|
|---|
| 1534 | [AC_REQUIRE([LT_AC_PROG_SED])
|
|---|
| 1535 | AC_CACHE_CHECK([$1], [$2],
|
|---|
| 1536 | [$2=no
|
|---|
| 1537 | ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
|---|
| 1538 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|---|
| 1539 | lt_compiler_flag="$3"
|
|---|
| 1540 | # Insert the option either (1) after the last *FLAGS variable, or
|
|---|
| 1541 | # (2) before a word containing "conftest.", or (3) at the end.
|
|---|
| 1542 | # Note that $ac_compile itself does not contain backslashes and begins
|
|---|
| 1543 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
|---|
| 1544 | # The option is referenced via a variable to avoid confusing sed.
|
|---|
| 1545 | lt_compile=`echo "$ac_compile" | $SED \
|
|---|
| 1546 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|---|
| 1547 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
|---|
| 1548 | -e 's:$: $lt_compiler_flag:'`
|
|---|
| 1549 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
|---|
| 1550 | (eval "$lt_compile" 2>conftest.err)
|
|---|
| 1551 | ac_status=$?
|
|---|
| 1552 | cat conftest.err >&AS_MESSAGE_LOG_FD
|
|---|
| 1553 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
|---|
| 1554 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
|---|
| 1555 | # The compiler can only warn and ignore the option if not recognized
|
|---|
| 1556 | # So say no if there are warnings other than the usual output.
|
|---|
| 1557 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
|---|
| 1558 | $SED '/^$/d' conftest.err >conftest.er2
|
|---|
| 1559 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
|---|
| 1560 | $2=yes
|
|---|
| 1561 | fi
|
|---|
| 1562 | fi
|
|---|
| 1563 | $rm conftest*
|
|---|
| 1564 | ])
|
|---|
| 1565 |
|
|---|
| 1566 | if test x"[$]$2" = xyes; then
|
|---|
| 1567 | ifelse([$5], , :, [$5])
|
|---|
| 1568 | else
|
|---|
| 1569 | ifelse([$6], , :, [$6])
|
|---|
| 1570 | fi
|
|---|
| 1571 | ])# AC_LIBTOOL_COMPILER_OPTION
|
|---|
| 1572 |
|
|---|
| 1573 |
|
|---|
| 1574 | # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
|---|
| 1575 | # [ACTION-SUCCESS], [ACTION-FAILURE])
|
|---|
| 1576 | # ------------------------------------------------------------
|
|---|
| 1577 | # Check whether the given compiler option works
|
|---|
| 1578 | AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
|
|---|
| 1579 | [AC_CACHE_CHECK([$1], [$2],
|
|---|
| 1580 | [$2=no
|
|---|
| 1581 | save_LDFLAGS="$LDFLAGS"
|
|---|
| 1582 | LDFLAGS="$LDFLAGS $3"
|
|---|
| 1583 | printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
|---|
| 1584 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|---|
| 1585 | # The compiler can only warn and ignore the option if not recognized
|
|---|
| 1586 | # So say no if there are warnings
|
|---|
| 1587 | if test -s conftest.err; then
|
|---|
| 1588 | # Append any errors to the config.log.
|
|---|
| 1589 | cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
|---|
| 1590 | $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
|
|---|
| 1591 | $SED '/^$/d' conftest.err >conftest.er2
|
|---|
| 1592 | if diff conftest.exp conftest.er2 >/dev/null; then
|
|---|
| 1593 | $2=yes
|
|---|
| 1594 | fi
|
|---|
| 1595 | else
|
|---|
| 1596 | $2=yes
|
|---|
| 1597 | fi
|
|---|
| 1598 | fi
|
|---|
| 1599 | $rm conftest*
|
|---|
| 1600 | LDFLAGS="$save_LDFLAGS"
|
|---|
| 1601 | ])
|
|---|
| 1602 |
|
|---|
| 1603 | if test x"[$]$2" = xyes; then
|
|---|
| 1604 | ifelse([$4], , :, [$4])
|
|---|
| 1605 | else
|
|---|
| 1606 | ifelse([$5], , :, [$5])
|
|---|
| 1607 | fi
|
|---|
| 1608 | ])# AC_LIBTOOL_LINKER_OPTION
|
|---|
| 1609 |
|
|---|
| 1610 |
|
|---|
| 1611 | # AC_LIBTOOL_SYS_MAX_CMD_LEN
|
|---|
| 1612 | # --------------------------
|
|---|
| 1613 | AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
|
|---|
| 1614 | [# find the maximum length of command line arguments
|
|---|
| 1615 | AC_MSG_CHECKING([the maximum length of command line arguments])
|
|---|
| 1616 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
|---|
| 1617 | i=0
|
|---|
| 1618 | teststring="ABCD"
|
|---|
| 1619 |
|
|---|
| 1620 | case $build_os in
|
|---|
| 1621 | msdosdjgpp*)
|
|---|
| 1622 | # On DJGPP, this test can blow up pretty badly due to problems in libc
|
|---|
| 1623 | # (any single argument exceeding 2000 bytes causes a buffer overrun
|
|---|
| 1624 | # during glob expansion). Even if it were fixed, the result of this
|
|---|
| 1625 | # check would be larger than it should be.
|
|---|
| 1626 | lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
|---|
| 1627 | ;;
|
|---|
| 1628 |
|
|---|
| 1629 | gnu*)
|
|---|
| 1630 | # Under GNU Hurd, this test is not required because there is
|
|---|
| 1631 | # no limit to the length of command line arguments.
|
|---|
| 1632 | # Libtool will interpret -1 as no limit whatsoever
|
|---|
| 1633 | lt_cv_sys_max_cmd_len=-1;
|
|---|
| 1634 | ;;
|
|---|
| 1635 |
|
|---|
| 1636 | cygwin* | mingw*)
|
|---|
| 1637 | # On Win9x/ME, this test blows up -- it succeeds, but takes
|
|---|
| 1638 | # about 5 minutes as the teststring grows exponentially.
|
|---|
| 1639 | # Worse, since 9x/ME are not pre-emptively multitasking,
|
|---|
| 1640 | # you end up with a "frozen" computer, even though with patience
|
|---|
| 1641 | # the test eventually succeeds (with a max line length of 256k).
|
|---|
| 1642 | # Instead, let's just punt: use the minimum linelength reported by
|
|---|
| 1643 | # all of the supported platforms: 8192 (on NT/2K/XP).
|
|---|
| 1644 | lt_cv_sys_max_cmd_len=8192;
|
|---|
| 1645 | ;;
|
|---|
| 1646 |
|
|---|
| 1647 | amigaos*)
|
|---|
| 1648 | # On AmigaOS with pdksh, this test takes hours, literally.
|
|---|
| 1649 | # So we just punt and use a minimum line length of 8192.
|
|---|
| 1650 | lt_cv_sys_max_cmd_len=8192;
|
|---|
| 1651 | ;;
|
|---|
| 1652 |
|
|---|
| 1653 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
|---|
| 1654 | # This has been around since 386BSD, at least. Likely further.
|
|---|
| 1655 | if test -x /sbin/sysctl; then
|
|---|
| 1656 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
|---|
| 1657 | elif test -x /usr/sbin/sysctl; then
|
|---|
| 1658 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
|---|
| 1659 | else
|
|---|
| 1660 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
|
|---|
| 1661 | fi
|
|---|
| 1662 | # And add a safety zone
|
|---|
| 1663 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|---|
| 1664 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|---|
| 1665 | ;;
|
|---|
| 1666 | osf*)
|
|---|
| 1667 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
|---|
| 1668 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
|---|
| 1669 | # nice to cause kernel panics so lets avoid the loop below.
|
|---|
| 1670 | # First set a reasonable default.
|
|---|
| 1671 | lt_cv_sys_max_cmd_len=16384
|
|---|
| 1672 | #
|
|---|
| 1673 | if test -x /sbin/sysconfig; then
|
|---|
| 1674 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
|---|
| 1675 | *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
|---|
| 1676 | esac
|
|---|
| 1677 | fi
|
|---|
| 1678 | ;;
|
|---|
| 1679 | *)
|
|---|
| 1680 | # If test is not a shell built-in, we'll probably end up computing a
|
|---|
| 1681 | # maximum length that is only half of the actual maximum length, but
|
|---|
| 1682 | # we can't tell.
|
|---|
| 1683 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
|---|
| 1684 | while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
|
|---|
| 1685 | = "XX$teststring") >/dev/null 2>&1 &&
|
|---|
| 1686 | new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
|---|
| 1687 | lt_cv_sys_max_cmd_len=$new_result &&
|
|---|
| 1688 | test $i != 17 # 1/2 MB should be enough
|
|---|
| 1689 | do
|
|---|
| 1690 | i=`expr $i + 1`
|
|---|
| 1691 | teststring=$teststring$teststring
|
|---|
| 1692 | done
|
|---|
| 1693 | teststring=
|
|---|
| 1694 | # Add a significant safety factor because C++ compilers can tack on massive
|
|---|
| 1695 | # amounts of additional arguments before passing them to the linker.
|
|---|
| 1696 | # It appears as though 1/2 is a usable value.
|
|---|
| 1697 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
|---|
| 1698 | ;;
|
|---|
| 1699 | esac
|
|---|
| 1700 | ])
|
|---|
| 1701 | if test -n $lt_cv_sys_max_cmd_len ; then
|
|---|
| 1702 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
|
|---|
| 1703 | else
|
|---|
| 1704 | AC_MSG_RESULT(none)
|
|---|
| 1705 | fi
|
|---|
| 1706 | ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
|
|---|
| 1707 |
|
|---|
| 1708 |
|
|---|
| 1709 | # _LT_AC_CHECK_DLFCN
|
|---|
| 1710 | # --------------------
|
|---|
| 1711 | AC_DEFUN([_LT_AC_CHECK_DLFCN],
|
|---|
| 1712 | [AC_CHECK_HEADERS(dlfcn.h)dnl
|
|---|
| 1713 | ])# _LT_AC_CHECK_DLFCN
|
|---|
| 1714 |
|
|---|
| 1715 |
|
|---|
| 1716 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
|---|
| 1717 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
|---|
| 1718 | # ------------------------------------------------------------------
|
|---|
| 1719 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
|
|---|
| 1720 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
|---|
| 1721 | if test "$cross_compiling" = yes; then :
|
|---|
| 1722 | [$4]
|
|---|
| 1723 | else
|
|---|
| 1724 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|---|
| 1725 | lt_status=$lt_dlunknown
|
|---|
| 1726 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1727 | [#line __oline__ "configure"
|
|---|
| 1728 | #include "confdefs.h"
|
|---|
| 1729 |
|
|---|
| 1730 | #if HAVE_DLFCN_H
|
|---|
| 1731 | #include <dlfcn.h>
|
|---|
| 1732 | #endif
|
|---|
| 1733 |
|
|---|
| 1734 | #include <stdio.h>
|
|---|
| 1735 |
|
|---|
| 1736 | #ifdef RTLD_GLOBAL
|
|---|
| 1737 | # define LT_DLGLOBAL RTLD_GLOBAL
|
|---|
| 1738 | #else
|
|---|
| 1739 | # ifdef DL_GLOBAL
|
|---|
| 1740 | # define LT_DLGLOBAL DL_GLOBAL
|
|---|
| 1741 | # else
|
|---|
| 1742 | # define LT_DLGLOBAL 0
|
|---|
| 1743 | # endif
|
|---|
| 1744 | #endif
|
|---|
| 1745 |
|
|---|
| 1746 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
|---|
| 1747 | find out it does not work in some platform. */
|
|---|
| 1748 | #ifndef LT_DLLAZY_OR_NOW
|
|---|
| 1749 | # ifdef RTLD_LAZY
|
|---|
| 1750 | # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
|---|
| 1751 | # else
|
|---|
| 1752 | # ifdef DL_LAZY
|
|---|
| 1753 | # define LT_DLLAZY_OR_NOW DL_LAZY
|
|---|
| 1754 | # else
|
|---|
| 1755 | # ifdef RTLD_NOW
|
|---|
| 1756 | # define LT_DLLAZY_OR_NOW RTLD_NOW
|
|---|
| 1757 | # else
|
|---|
| 1758 | # ifdef DL_NOW
|
|---|
| 1759 | # define LT_DLLAZY_OR_NOW DL_NOW
|
|---|
| 1760 | # else
|
|---|
| 1761 | # define LT_DLLAZY_OR_NOW 0
|
|---|
| 1762 | # endif
|
|---|
| 1763 | # endif
|
|---|
| 1764 | # endif
|
|---|
| 1765 | # endif
|
|---|
| 1766 | #endif
|
|---|
| 1767 |
|
|---|
| 1768 | #ifdef __cplusplus
|
|---|
| 1769 | extern "C" void exit (int);
|
|---|
| 1770 | #endif
|
|---|
| 1771 |
|
|---|
| 1772 | void fnord() { int i=42;}
|
|---|
| 1773 | int main ()
|
|---|
| 1774 | {
|
|---|
| 1775 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|---|
| 1776 | int status = $lt_dlunknown;
|
|---|
| 1777 |
|
|---|
| 1778 | if (self)
|
|---|
| 1779 | {
|
|---|
| 1780 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
|---|
| 1781 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
|---|
| 1782 | /* dlclose (self); */
|
|---|
| 1783 | }
|
|---|
| 1784 |
|
|---|
| 1785 | exit (status);
|
|---|
| 1786 | }]
|
|---|
| 1787 | EOF
|
|---|
| 1788 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
|
|---|
| 1789 | (./conftest; exit; ) 2>/dev/null
|
|---|
| 1790 | lt_status=$?
|
|---|
| 1791 | case x$lt_status in
|
|---|
| 1792 | x$lt_dlno_uscore) $1 ;;
|
|---|
| 1793 | x$lt_dlneed_uscore) $2 ;;
|
|---|
| 1794 | x$lt_unknown|x*) $3 ;;
|
|---|
| 1795 | esac
|
|---|
| 1796 | else :
|
|---|
| 1797 | # compilation failed
|
|---|
| 1798 | $3
|
|---|
| 1799 | fi
|
|---|
| 1800 | fi
|
|---|
| 1801 | rm -fr conftest*
|
|---|
| 1802 | ])# _LT_AC_TRY_DLOPEN_SELF
|
|---|
| 1803 |
|
|---|
| 1804 |
|
|---|
| 1805 | # AC_LIBTOOL_DLOPEN_SELF
|
|---|
| 1806 | # -------------------
|
|---|
| 1807 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
|
|---|
| 1808 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
|---|
| 1809 | if test "x$enable_dlopen" != xyes; then
|
|---|
| 1810 | enable_dlopen=unknown
|
|---|
| 1811 | enable_dlopen_self=unknown
|
|---|
| 1812 | enable_dlopen_self_static=unknown
|
|---|
| 1813 | else
|
|---|
| 1814 | lt_cv_dlopen=no
|
|---|
| 1815 | lt_cv_dlopen_libs=
|
|---|
| 1816 |
|
|---|
| 1817 | case $host_os in
|
|---|
| 1818 | beos*)
|
|---|
| 1819 | lt_cv_dlopen="load_add_on"
|
|---|
| 1820 | lt_cv_dlopen_libs=
|
|---|
| 1821 | lt_cv_dlopen_self=yes
|
|---|
| 1822 | ;;
|
|---|
| 1823 |
|
|---|
| 1824 | mingw* | pw32*)
|
|---|
| 1825 | lt_cv_dlopen="LoadLibrary"
|
|---|
| 1826 | lt_cv_dlopen_libs=
|
|---|
| 1827 | ;;
|
|---|
| 1828 |
|
|---|
| 1829 | cygwin*)
|
|---|
| 1830 | lt_cv_dlopen="dlopen"
|
|---|
| 1831 | lt_cv_dlopen_libs=
|
|---|
| 1832 | ;;
|
|---|
| 1833 |
|
|---|
| 1834 | darwin*)
|
|---|
| 1835 | # if libdl is installed we need to link against it
|
|---|
| 1836 | AC_CHECK_LIB([dl], [dlopen],
|
|---|
| 1837 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
|
|---|
| 1838 | lt_cv_dlopen="dyld"
|
|---|
| 1839 | lt_cv_dlopen_libs=
|
|---|
| 1840 | lt_cv_dlopen_self=yes
|
|---|
| 1841 | ])
|
|---|
| 1842 | ;;
|
|---|
| 1843 |
|
|---|
| 1844 | *)
|
|---|
| 1845 | AC_CHECK_FUNC([shl_load],
|
|---|
| 1846 | [lt_cv_dlopen="shl_load"],
|
|---|
| 1847 | [AC_CHECK_LIB([dld], [shl_load],
|
|---|
| 1848 | [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
|
|---|
| 1849 | [AC_CHECK_FUNC([dlopen],
|
|---|
| 1850 | [lt_cv_dlopen="dlopen"],
|
|---|
| 1851 | [AC_CHECK_LIB([dl], [dlopen],
|
|---|
| 1852 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
|---|
| 1853 | [AC_CHECK_LIB([svld], [dlopen],
|
|---|
| 1854 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
|---|
| 1855 | [AC_CHECK_LIB([dld], [dld_link],
|
|---|
| 1856 | [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
|---|
| 1857 | ])
|
|---|
| 1858 | ])
|
|---|
| 1859 | ])
|
|---|
| 1860 | ])
|
|---|
| 1861 | ])
|
|---|
| 1862 | ;;
|
|---|
| 1863 | esac
|
|---|
| 1864 |
|
|---|
| 1865 | if test "x$lt_cv_dlopen" != xno; then
|
|---|
| 1866 | enable_dlopen=yes
|
|---|
| 1867 | else
|
|---|
| 1868 | enable_dlopen=no
|
|---|
| 1869 | fi
|
|---|
| 1870 |
|
|---|
| 1871 | case $lt_cv_dlopen in
|
|---|
| 1872 | dlopen)
|
|---|
| 1873 | save_CPPFLAGS="$CPPFLAGS"
|
|---|
| 1874 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
|---|
| 1875 |
|
|---|
| 1876 | save_LDFLAGS="$LDFLAGS"
|
|---|
| 1877 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
|---|
| 1878 |
|
|---|
| 1879 | save_LIBS="$LIBS"
|
|---|
| 1880 | LIBS="$lt_cv_dlopen_libs $LIBS"
|
|---|
| 1881 |
|
|---|
| 1882 | AC_CACHE_CHECK([whether a program can dlopen itself],
|
|---|
| 1883 | lt_cv_dlopen_self, [dnl
|
|---|
| 1884 | _LT_AC_TRY_DLOPEN_SELF(
|
|---|
| 1885 | lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
|
|---|
| 1886 | lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
|
|---|
| 1887 | ])
|
|---|
| 1888 |
|
|---|
| 1889 | if test "x$lt_cv_dlopen_self" = xyes; then
|
|---|
| 1890 | LDFLAGS="$LDFLAGS $link_static_flag"
|
|---|
| 1891 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
|---|
| 1892 | lt_cv_dlopen_self_static, [dnl
|
|---|
| 1893 | _LT_AC_TRY_DLOPEN_SELF(
|
|---|
| 1894 | lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
|
|---|
| 1895 | lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
|
|---|
| 1896 | ])
|
|---|
| 1897 | fi
|
|---|
| 1898 |
|
|---|
| 1899 | CPPFLAGS="$save_CPPFLAGS"
|
|---|
| 1900 | LDFLAGS="$save_LDFLAGS"
|
|---|
| 1901 | LIBS="$save_LIBS"
|
|---|
| 1902 | ;;
|
|---|
| 1903 | esac
|
|---|
| 1904 |
|
|---|
| 1905 | case $lt_cv_dlopen_self in
|
|---|
| 1906 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
|---|
| 1907 | *) enable_dlopen_self=unknown ;;
|
|---|
| 1908 | esac
|
|---|
| 1909 |
|
|---|
| 1910 | case $lt_cv_dlopen_self_static in
|
|---|
| 1911 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
|---|
| 1912 | *) enable_dlopen_self_static=unknown ;;
|
|---|
| 1913 | esac
|
|---|
| 1914 | fi
|
|---|
| 1915 | ])# AC_LIBTOOL_DLOPEN_SELF
|
|---|
| 1916 |
|
|---|
| 1917 |
|
|---|
| 1918 | # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
|
|---|
| 1919 | # ---------------------------------
|
|---|
| 1920 | # Check to see if options -c and -o are simultaneously supported by compiler
|
|---|
| 1921 | AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
|
|---|
| 1922 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
|---|
| 1923 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
|---|
| 1924 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
|---|
| 1925 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
|---|
| 1926 | $rm -r conftest 2>/dev/null
|
|---|
| 1927 | mkdir conftest
|
|---|
| 1928 | cd conftest
|
|---|
| 1929 | mkdir out
|
|---|
| 1930 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|---|
| 1931 |
|
|---|
| 1932 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|---|
| 1933 | # Insert the option either (1) after the last *FLAGS variable, or
|
|---|
| 1934 | # (2) before a word containing "conftest.", or (3) at the end.
|
|---|
| 1935 | # Note that $ac_compile itself does not contain backslashes and begins
|
|---|
| 1936 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
|---|
| 1937 | lt_compile=`echo "$ac_compile" | $SED \
|
|---|
| 1938 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|---|
| 1939 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
|---|
| 1940 | -e 's:$: $lt_compiler_flag:'`
|
|---|
| 1941 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
|---|
| 1942 | (eval "$lt_compile" 2>out/conftest.err)
|
|---|
| 1943 | ac_status=$?
|
|---|
| 1944 | cat out/conftest.err >&AS_MESSAGE_LOG_FD
|
|---|
| 1945 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
|---|
| 1946 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|---|
| 1947 | then
|
|---|
| 1948 | # The compiler can only warn and ignore the option if not recognized
|
|---|
| 1949 | # So say no if there are warnings
|
|---|
| 1950 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
|
|---|
| 1951 | $SED '/^$/d' out/conftest.err >out/conftest.er2
|
|---|
| 1952 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|---|
| 1953 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
|---|
| 1954 | fi
|
|---|
| 1955 | fi
|
|---|
| 1956 | chmod u+w .
|
|---|
| 1957 | $rm conftest*
|
|---|
| 1958 | # SGI C++ compiler will create directory out/ii_files/ for
|
|---|
| 1959 | # template instantiation
|
|---|
| 1960 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
|---|
| 1961 | $rm out/* && rmdir out
|
|---|
| 1962 | cd ..
|
|---|
| 1963 | rmdir conftest
|
|---|
| 1964 | $rm conftest*
|
|---|
| 1965 | ])
|
|---|
| 1966 | ])# AC_LIBTOOL_PROG_CC_C_O
|
|---|
| 1967 |
|
|---|
| 1968 |
|
|---|
| 1969 | # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
|
|---|
| 1970 | # -----------------------------------------
|
|---|
| 1971 | # Check to see if we can do hard links to lock some files if needed
|
|---|
| 1972 | AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
|
|---|
| 1973 | [AC_REQUIRE([_LT_AC_LOCK])dnl
|
|---|
| 1974 |
|
|---|
| 1975 | hard_links="nottested"
|
|---|
| 1976 | if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
|
|---|
| 1977 | # do not overwrite the value of need_locks provided by the user
|
|---|
| 1978 | AC_MSG_CHECKING([if we can lock with hard links])
|
|---|
| 1979 | hard_links=yes
|
|---|
| 1980 | $rm conftest*
|
|---|
| 1981 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|---|
| 1982 | touch conftest.a
|
|---|
| 1983 | ln conftest.a conftest.b 2>&5 || hard_links=no
|
|---|
| 1984 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|---|
| 1985 | AC_MSG_RESULT([$hard_links])
|
|---|
| 1986 | if test "$hard_links" = no; then
|
|---|
| 1987 | AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
|
|---|
| 1988 | need_locks=warn
|
|---|
| 1989 | fi
|
|---|
| 1990 | else
|
|---|
| 1991 | need_locks=no
|
|---|
| 1992 | fi
|
|---|
| 1993 | ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
|
|---|
| 1994 |
|
|---|
| 1995 |
|
|---|
| 1996 | # AC_LIBTOOL_OBJDIR
|
|---|
| 1997 | # -----------------
|
|---|
| 1998 | AC_DEFUN([AC_LIBTOOL_OBJDIR],
|
|---|
| 1999 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
|
|---|
| 2000 | [rm -f .libs 2>/dev/null
|
|---|
| 2001 | mkdir .libs 2>/dev/null
|
|---|
| 2002 | if test -d .libs; then
|
|---|
| 2003 | lt_cv_objdir=.libs
|
|---|
| 2004 | else
|
|---|
| 2005 | # MS-DOS does not allow filenames that begin with a dot.
|
|---|
| 2006 | lt_cv_objdir=_libs
|
|---|
| 2007 | fi
|
|---|
| 2008 | rmdir .libs 2>/dev/null])
|
|---|
| 2009 | objdir=$lt_cv_objdir
|
|---|
| 2010 | ])# AC_LIBTOOL_OBJDIR
|
|---|
| 2011 |
|
|---|
| 2012 |
|
|---|
| 2013 | # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
|
|---|
| 2014 | # ----------------------------------------------
|
|---|
| 2015 | # Check hardcoding attributes.
|
|---|
| 2016 | AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
|
|---|
| 2017 | [AC_MSG_CHECKING([how to hardcode library paths into programs])
|
|---|
| 2018 | _LT_AC_TAGVAR(hardcode_action, $1)=
|
|---|
| 2019 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
|
|---|
| 2020 | test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
|
|---|
| 2021 | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
|
|---|
| 2022 |
|
|---|
| 2023 | # We can hardcode non-existant directories.
|
|---|
| 2024 | if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
|
|---|
| 2025 | # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
|---|
| 2026 | # have to relink, otherwise we might link with an installed library
|
|---|
| 2027 | # when we should be linking with a yet-to-be-installed one
|
|---|
| 2028 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
|
|---|
| 2029 | test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
|
|---|
| 2030 | # Linking always hardcodes the temporary library directory.
|
|---|
| 2031 | _LT_AC_TAGVAR(hardcode_action, $1)=relink
|
|---|
| 2032 | else
|
|---|
| 2033 | # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
|---|
| 2034 | _LT_AC_TAGVAR(hardcode_action, $1)=immediate
|
|---|
| 2035 | fi
|
|---|
| 2036 | else
|
|---|
| 2037 | # We cannot hardcode anything, or else we can only hardcode existing
|
|---|
| 2038 | # directories.
|
|---|
| 2039 | _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
|
|---|
| 2040 | fi
|
|---|
| 2041 | AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
|
|---|
| 2042 |
|
|---|
| 2043 | if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
|
|---|
| 2044 | # Fast installation is not supported
|
|---|
| 2045 | enable_fast_install=no
|
|---|
| 2046 | elif test "$shlibpath_overrides_runpath" = yes ||
|
|---|
| 2047 | test "$enable_shared" = no; then
|
|---|
| 2048 | # Fast installation is not necessary
|
|---|
| 2049 | enable_fast_install=needless
|
|---|
| 2050 | fi
|
|---|
| 2051 | ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
|
|---|
| 2052 |
|
|---|
| 2053 |
|
|---|
| 2054 | # AC_LIBTOOL_SYS_LIB_STRIP
|
|---|
| 2055 | # ------------------------
|
|---|
| 2056 | AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
|
|---|
| 2057 | [striplib=
|
|---|
| 2058 | old_striplib=
|
|---|
| 2059 | AC_MSG_CHECKING([whether stripping libraries is possible])
|
|---|
| 2060 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
|---|
| 2061 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
|---|
| 2062 | test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
|---|
| 2063 | AC_MSG_RESULT([yes])
|
|---|
| 2064 | else
|
|---|
| 2065 | # FIXME - insert some real tests, host_os isn't really good enough
|
|---|
| 2066 | case $host_os in
|
|---|
| 2067 | darwin*)
|
|---|
| 2068 | if test -n "$STRIP" ; then
|
|---|
| 2069 | striplib="$STRIP -x"
|
|---|
| 2070 | AC_MSG_RESULT([yes])
|
|---|
| 2071 | else
|
|---|
| 2072 | AC_MSG_RESULT([no])
|
|---|
| 2073 | fi
|
|---|
| 2074 | ;;
|
|---|
| 2075 | *)
|
|---|
| 2076 | AC_MSG_RESULT([no])
|
|---|
| 2077 | ;;
|
|---|
| 2078 | esac
|
|---|
| 2079 | fi
|
|---|
| 2080 | ])# AC_LIBTOOL_SYS_LIB_STRIP
|
|---|
| 2081 |
|
|---|
| 2082 |
|
|---|
| 2083 | # AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
|---|
| 2084 | # -----------------------------
|
|---|
| 2085 | # PORTME Fill in your ld.so characteristics
|
|---|
| 2086 | AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
|
|---|
| 2087 | [AC_MSG_CHECKING([dynamic linker characteristics])
|
|---|
| 2088 | library_names_spec=
|
|---|
| 2089 | libname_spec='lib$name'
|
|---|
| 2090 | soname_spec=
|
|---|
| 2091 | shrext_cmds=".so"
|
|---|
| 2092 | postinstall_cmds=
|
|---|
| 2093 | postuninstall_cmds=
|
|---|
| 2094 | finish_cmds=
|
|---|
| 2095 | finish_eval=
|
|---|
| 2096 | shlibpath_var=
|
|---|
| 2097 | shlibpath_overrides_runpath=unknown
|
|---|
| 2098 | version_type=none
|
|---|
| 2099 | dynamic_linker="$host_os ld.so"
|
|---|
| 2100 | sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|---|
| 2101 | if test "$GCC" = yes; then
|
|---|
| 2102 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|---|
| 2103 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
|---|
| 2104 | # if the path contains ";" then we assume it to be the separator
|
|---|
| 2105 | # otherwise default to the standard path separator (i.e. ":") - it is
|
|---|
| 2106 | # assumed that no part of a normal pathname contains ";" but that should
|
|---|
| 2107 | # okay in the real world where ";" in dirpaths is itself problematic.
|
|---|
| 2108 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|---|
| 2109 | else
|
|---|
| 2110 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|---|
| 2111 | fi
|
|---|
| 2112 | else
|
|---|
| 2113 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
|---|
| 2114 | fi
|
|---|
| 2115 | need_lib_prefix=unknown
|
|---|
| 2116 | hardcode_into_libs=no
|
|---|
| 2117 |
|
|---|
| 2118 | # when you set need_version to no, make sure it does not cause -set_version
|
|---|
| 2119 | # flags to be left without arguments
|
|---|
| 2120 | need_version=unknown
|
|---|
| 2121 |
|
|---|
| 2122 | case $host_os in
|
|---|
| 2123 | aix3*)
|
|---|
| 2124 | version_type=linux
|
|---|
| 2125 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
|---|
| 2126 | shlibpath_var=LIBPATH
|
|---|
| 2127 |
|
|---|
| 2128 | # AIX 3 has no versioning support, so we append a major version to the name.
|
|---|
| 2129 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2130 | ;;
|
|---|
| 2131 |
|
|---|
| 2132 | aix4* | aix5*)
|
|---|
| 2133 | version_type=linux
|
|---|
| 2134 | need_lib_prefix=no
|
|---|
| 2135 | need_version=no
|
|---|
| 2136 | hardcode_into_libs=yes
|
|---|
| 2137 | if test "$host_cpu" = ia64; then
|
|---|
| 2138 | # AIX 5 supports IA64
|
|---|
| 2139 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
|---|
| 2140 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2141 | else
|
|---|
| 2142 | # With GCC up to 2.95.x, collect2 would create an import file
|
|---|
| 2143 | # for dependence libraries. The import file would start with
|
|---|
| 2144 | # the line `#! .'. This would cause the generated library to
|
|---|
| 2145 | # depend on `.', always an invalid library. This was fixed in
|
|---|
| 2146 | # development snapshots of GCC prior to 3.0.
|
|---|
| 2147 | case $host_os in
|
|---|
| 2148 | aix4 | aix4.[[01]] | aix4.[[01]].*)
|
|---|
| 2149 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
|---|
| 2150 | echo ' yes '
|
|---|
| 2151 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
|---|
| 2152 | :
|
|---|
| 2153 | else
|
|---|
| 2154 | can_build_shared=no
|
|---|
| 2155 | fi
|
|---|
| 2156 | ;;
|
|---|
| 2157 | esac
|
|---|
| 2158 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
|---|
| 2159 | # soname into executable. Probably we can add versioning support to
|
|---|
| 2160 | # collect2, so additional links can be useful in future.
|
|---|
| 2161 | if test "$aix_use_runtimelinking" = yes; then
|
|---|
| 2162 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
|---|
| 2163 | # instead of lib<name>.a to let people know that these are not
|
|---|
| 2164 | # typical AIX shared libraries.
|
|---|
| 2165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2166 | else
|
|---|
| 2167 | # We preserve .a as extension for shared libraries through AIX4.2
|
|---|
| 2168 | # and later when we are not doing run time linking.
|
|---|
| 2169 | library_names_spec='${libname}${release}.a $libname.a'
|
|---|
| 2170 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2171 | fi
|
|---|
| 2172 | shlibpath_var=LIBPATH
|
|---|
| 2173 | fi
|
|---|
| 2174 | ;;
|
|---|
| 2175 |
|
|---|
| 2176 | amigaos*)
|
|---|
| 2177 | library_names_spec='$libname.ixlibrary $libname.a'
|
|---|
| 2178 | # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
|---|
| 2179 | 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'
|
|---|
| 2180 | ;;
|
|---|
| 2181 |
|
|---|
| 2182 | beos*)
|
|---|
| 2183 | library_names_spec='${libname}${shared_ext}'
|
|---|
| 2184 | dynamic_linker="$host_os ld.so"
|
|---|
| 2185 | shlibpath_var=LIBRARY_PATH
|
|---|
| 2186 | ;;
|
|---|
| 2187 |
|
|---|
| 2188 | bsdi[[45]]*)
|
|---|
| 2189 | version_type=linux
|
|---|
| 2190 | need_version=no
|
|---|
| 2191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2192 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2193 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
|---|
| 2194 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2195 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
|---|
| 2196 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
|---|
| 2197 | # the default ld.so.conf also contains /usr/contrib/lib and
|
|---|
| 2198 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
|---|
| 2199 | # libtool to hard-code these into programs
|
|---|
| 2200 | ;;
|
|---|
| 2201 |
|
|---|
| 2202 | cygwin* | mingw* | pw32*)
|
|---|
| 2203 | version_type=windows
|
|---|
| 2204 | shrext_cmds=".dll"
|
|---|
| 2205 | need_version=no
|
|---|
| 2206 | need_lib_prefix=no
|
|---|
| 2207 |
|
|---|
| 2208 | case $GCC,$host_os in
|
|---|
| 2209 | yes,cygwin* | yes,mingw* | yes,pw32*)
|
|---|
| 2210 | library_names_spec='$libname.dll.a'
|
|---|
| 2211 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|---|
| 2212 | postinstall_cmds='base_file=`basename \${file}`~
|
|---|
| 2213 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
|---|
| 2214 | dldir=$destdir/`dirname \$dlpath`~
|
|---|
| 2215 | test -d \$dldir || mkdir -p \$dldir~
|
|---|
| 2216 | $install_prog $dir/$dlname \$dldir/$dlname'
|
|---|
| 2217 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|---|
| 2218 | dlpath=$dir/\$dldll~
|
|---|
| 2219 | $rm \$dlpath'
|
|---|
| 2220 | shlibpath_overrides_runpath=yes
|
|---|
| 2221 |
|
|---|
| 2222 | case $host_os in
|
|---|
| 2223 | cygwin*)
|
|---|
| 2224 | # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
|---|
| 2225 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
|---|
| 2226 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
|---|
| 2227 | ;;
|
|---|
| 2228 | mingw*)
|
|---|
| 2229 | # MinGW DLLs use traditional 'lib' prefix
|
|---|
| 2230 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
|---|
| 2231 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|---|
| 2232 | if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
|
|---|
| 2233 | # It is most probably a Windows format PATH printed by
|
|---|
| 2234 | # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
|---|
| 2235 | # path with ; separators, and with drive letters. We can handle the
|
|---|
| 2236 | # drive letters (cygwin fileutils understands them), so leave them,
|
|---|
| 2237 | # especially as we might pass files found there to a mingw objdump,
|
|---|
| 2238 | # which wouldn't understand a cygwinified path. Ahh.
|
|---|
| 2239 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|---|
| 2240 | else
|
|---|
| 2241 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|---|
| 2242 | fi
|
|---|
| 2243 | ;;
|
|---|
| 2244 | pw32*)
|
|---|
| 2245 | # pw32 DLLs use 'pw' prefix rather than 'lib'
|
|---|
| 2246 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
|---|
| 2247 | ;;
|
|---|
| 2248 | esac
|
|---|
| 2249 | ;;
|
|---|
| 2250 |
|
|---|
| 2251 | *)
|
|---|
| 2252 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|---|
| 2253 | ;;
|
|---|
| 2254 | esac
|
|---|
| 2255 | dynamic_linker='Win32 ld.exe'
|
|---|
| 2256 | # FIXME: first we should search . and the directory the executable is in
|
|---|
| 2257 | shlibpath_var=PATH
|
|---|
| 2258 | ;;
|
|---|
| 2259 |
|
|---|
| 2260 | darwin* | rhapsody*)
|
|---|
| 2261 | dynamic_linker="$host_os dyld"
|
|---|
| 2262 | version_type=darwin
|
|---|
| 2263 | need_lib_prefix=no
|
|---|
| 2264 | need_version=no
|
|---|
| 2265 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
|---|
| 2266 | soname_spec='${libname}${release}${major}$shared_ext'
|
|---|
| 2267 | shlibpath_overrides_runpath=yes
|
|---|
| 2268 | shlibpath_var=DYLD_LIBRARY_PATH
|
|---|
| 2269 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
|
|---|
| 2270 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
|---|
| 2271 | if test "$GCC" = yes; then
|
|---|
| 2272 | 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"`
|
|---|
| 2273 | else
|
|---|
| 2274 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
|---|
| 2275 | fi
|
|---|
| 2276 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|---|
| 2277 | ;;
|
|---|
| 2278 |
|
|---|
| 2279 | dgux*)
|
|---|
| 2280 | version_type=linux
|
|---|
| 2281 | need_lib_prefix=no
|
|---|
| 2282 | need_version=no
|
|---|
| 2283 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
|---|
| 2284 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2285 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2286 | ;;
|
|---|
| 2287 |
|
|---|
| 2288 | freebsd1*)
|
|---|
| 2289 | dynamic_linker=no
|
|---|
| 2290 | ;;
|
|---|
| 2291 |
|
|---|
| 2292 | kfreebsd*-gnu)
|
|---|
| 2293 | version_type=linux
|
|---|
| 2294 | need_lib_prefix=no
|
|---|
| 2295 | need_version=no
|
|---|
| 2296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|---|
| 2297 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2298 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2299 | shlibpath_overrides_runpath=no
|
|---|
| 2300 | hardcode_into_libs=yes
|
|---|
| 2301 | dynamic_linker='GNU ld.so'
|
|---|
| 2302 | ;;
|
|---|
| 2303 |
|
|---|
| 2304 | freebsd* | dragonfly*)
|
|---|
| 2305 | # DragonFly does not have aout. When/if they implement a new
|
|---|
| 2306 | # versioning mechanism, adjust this.
|
|---|
| 2307 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
|---|
| 2308 | version_type=freebsd-$objformat
|
|---|
| 2309 | case $version_type in
|
|---|
| 2310 | freebsd-elf*)
|
|---|
| 2311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|---|
| 2312 | need_version=no
|
|---|
| 2313 | need_lib_prefix=no
|
|---|
| 2314 | ;;
|
|---|
| 2315 | freebsd-*)
|
|---|
| 2316 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
|---|
| 2317 | need_version=yes
|
|---|
| 2318 | ;;
|
|---|
| 2319 | esac
|
|---|
| 2320 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2321 | case $host_os in
|
|---|
| 2322 | freebsd2*)
|
|---|
| 2323 | shlibpath_overrides_runpath=yes
|
|---|
| 2324 | ;;
|
|---|
| 2325 | freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
|---|
| 2326 | shlibpath_overrides_runpath=yes
|
|---|
| 2327 | hardcode_into_libs=yes
|
|---|
| 2328 | ;;
|
|---|
| 2329 | *) # from 3.2 on
|
|---|
| 2330 | shlibpath_overrides_runpath=no
|
|---|
| 2331 | hardcode_into_libs=yes
|
|---|
| 2332 | ;;
|
|---|
| 2333 | esac
|
|---|
| 2334 | ;;
|
|---|
| 2335 |
|
|---|
| 2336 | gnu*)
|
|---|
| 2337 | version_type=linux
|
|---|
| 2338 | need_lib_prefix=no
|
|---|
| 2339 | need_version=no
|
|---|
| 2340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
|---|
| 2341 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2342 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2343 | hardcode_into_libs=yes
|
|---|
| 2344 | ;;
|
|---|
| 2345 |
|
|---|
| 2346 | hpux9* | hpux10* | hpux11*)
|
|---|
| 2347 | # Give a soname corresponding to the major version so that dld.sl refuses to
|
|---|
| 2348 | # link against other versions.
|
|---|
| 2349 | version_type=sunos
|
|---|
| 2350 | need_lib_prefix=no
|
|---|
| 2351 | need_version=no
|
|---|
| 2352 | case "$host_cpu" in
|
|---|
| 2353 | ia64*)
|
|---|
| 2354 | shrext_cmds='.so'
|
|---|
| 2355 | hardcode_into_libs=yes
|
|---|
| 2356 | dynamic_linker="$host_os dld.so"
|
|---|
| 2357 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2358 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|---|
| 2359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2360 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2361 | if test "X$HPUX_IA64_MODE" = X32; then
|
|---|
| 2362 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
|---|
| 2363 | else
|
|---|
| 2364 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
|---|
| 2365 | fi
|
|---|
| 2366 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|---|
| 2367 | ;;
|
|---|
| 2368 | hppa*64*)
|
|---|
| 2369 | shrext_cmds='.sl'
|
|---|
| 2370 | hardcode_into_libs=yes
|
|---|
| 2371 | dynamic_linker="$host_os dld.sl"
|
|---|
| 2372 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
|---|
| 2373 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|---|
| 2374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2375 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2376 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
|---|
| 2377 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|---|
| 2378 | ;;
|
|---|
| 2379 | *)
|
|---|
| 2380 | shrext_cmds='.sl'
|
|---|
| 2381 | dynamic_linker="$host_os dld.sl"
|
|---|
| 2382 | shlibpath_var=SHLIB_PATH
|
|---|
| 2383 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
|---|
| 2384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2385 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2386 | ;;
|
|---|
| 2387 | esac
|
|---|
| 2388 | # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
|---|
| 2389 | postinstall_cmds='chmod 555 $lib'
|
|---|
| 2390 | ;;
|
|---|
| 2391 |
|
|---|
| 2392 | irix5* | irix6* | nonstopux*)
|
|---|
| 2393 | case $host_os in
|
|---|
| 2394 | nonstopux*) version_type=nonstopux ;;
|
|---|
| 2395 | *)
|
|---|
| 2396 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
|---|
| 2397 | version_type=linux
|
|---|
| 2398 | else
|
|---|
| 2399 | version_type=irix
|
|---|
| 2400 | fi ;;
|
|---|
| 2401 | esac
|
|---|
| 2402 | need_lib_prefix=no
|
|---|
| 2403 | need_version=no
|
|---|
| 2404 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|---|
| 2406 | case $host_os in
|
|---|
| 2407 | irix5* | nonstopux*)
|
|---|
| 2408 | libsuff= shlibsuff=
|
|---|
| 2409 | ;;
|
|---|
| 2410 | *)
|
|---|
| 2411 | case $LD in # libtool.m4 will add one of these switches to LD
|
|---|
| 2412 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
|---|
| 2413 | libsuff= shlibsuff= libmagic=32-bit;;
|
|---|
| 2414 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
|---|
| 2415 | libsuff=32 shlibsuff=N32 libmagic=N32;;
|
|---|
| 2416 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
|---|
| 2417 | libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
|---|
| 2418 | *) libsuff= shlibsuff= libmagic=never-match;;
|
|---|
| 2419 | esac
|
|---|
| 2420 | ;;
|
|---|
| 2421 | esac
|
|---|
| 2422 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
|---|
| 2423 | shlibpath_overrides_runpath=no
|
|---|
| 2424 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
|---|
| 2425 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
|---|
| 2426 | hardcode_into_libs=yes
|
|---|
| 2427 | ;;
|
|---|
| 2428 |
|
|---|
| 2429 | # No shared lib support for Linux oldld, aout, or coff.
|
|---|
| 2430 | linux*oldld* | linux*aout* | linux*coff*)
|
|---|
| 2431 | dynamic_linker=no
|
|---|
| 2432 | ;;
|
|---|
| 2433 |
|
|---|
| 2434 | # This must be Linux ELF.
|
|---|
| 2435 | linux*)
|
|---|
| 2436 | version_type=linux
|
|---|
| 2437 | need_lib_prefix=no
|
|---|
| 2438 | need_version=no
|
|---|
| 2439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2440 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2441 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
|---|
| 2442 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2443 | shlibpath_overrides_runpath=no
|
|---|
| 2444 | # This implies no fast_install, which is unacceptable.
|
|---|
| 2445 | # Some rework will be needed to allow for fast_install
|
|---|
| 2446 | # before this can be enabled.
|
|---|
| 2447 | hardcode_into_libs=yes
|
|---|
| 2448 |
|
|---|
| 2449 | # find out which ABI we are using
|
|---|
| 2450 | libsuff=
|
|---|
| 2451 | case "$host_cpu" in
|
|---|
| 2452 | x86_64*|s390x*|powerpc64*)
|
|---|
| 2453 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext
|
|---|
| 2454 | if AC_TRY_EVAL(ac_compile); then
|
|---|
| 2455 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2456 | *64-bit*)
|
|---|
| 2457 | libsuff=64
|
|---|
| 2458 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
|---|
| 2459 | ;;
|
|---|
| 2460 | esac
|
|---|
| 2461 | fi
|
|---|
| 2462 | rm -rf conftest*
|
|---|
| 2463 | ;;
|
|---|
| 2464 | esac
|
|---|
| 2465 |
|
|---|
| 2466 | # Append ld.so.conf contents to the search path
|
|---|
| 2467 | if test -f /etc/ld.so.conf; then
|
|---|
| 2468 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
|---|
| 2469 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
|---|
| 2470 | fi
|
|---|
| 2471 |
|
|---|
| 2472 | # We used to test for /lib/ld.so.1 and disable shared libraries on
|
|---|
| 2473 | # powerpc, because MkLinux only supported shared libraries with the
|
|---|
| 2474 | # GNU dynamic linker. Since this was broken with cross compilers,
|
|---|
| 2475 | # most powerpc-linux boxes support dynamic linking these days and
|
|---|
| 2476 | # people can always --disable-shared, the test was removed, and we
|
|---|
| 2477 | # assume the GNU/Linux dynamic linker is in use.
|
|---|
| 2478 | dynamic_linker='GNU/Linux ld.so'
|
|---|
| 2479 | ;;
|
|---|
| 2480 |
|
|---|
| 2481 | knetbsd*-gnu)
|
|---|
| 2482 | version_type=linux
|
|---|
| 2483 | need_lib_prefix=no
|
|---|
| 2484 | need_version=no
|
|---|
| 2485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|---|
| 2486 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2487 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2488 | shlibpath_overrides_runpath=no
|
|---|
| 2489 | hardcode_into_libs=yes
|
|---|
| 2490 | dynamic_linker='GNU ld.so'
|
|---|
| 2491 | ;;
|
|---|
| 2492 |
|
|---|
| 2493 | netbsd*)
|
|---|
| 2494 | version_type=sunos
|
|---|
| 2495 | need_lib_prefix=no
|
|---|
| 2496 | need_version=no
|
|---|
| 2497 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|---|
| 2498 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|---|
| 2499 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|---|
| 2500 | dynamic_linker='NetBSD (a.out) ld.so'
|
|---|
| 2501 | else
|
|---|
| 2502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|---|
| 2503 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2504 | dynamic_linker='NetBSD ld.elf_so'
|
|---|
| 2505 | fi
|
|---|
| 2506 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2507 | shlibpath_overrides_runpath=yes
|
|---|
| 2508 | hardcode_into_libs=yes
|
|---|
| 2509 | ;;
|
|---|
| 2510 |
|
|---|
| 2511 | newsos6)
|
|---|
| 2512 | version_type=linux
|
|---|
| 2513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2514 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2515 | shlibpath_overrides_runpath=yes
|
|---|
| 2516 | ;;
|
|---|
| 2517 |
|
|---|
| 2518 | nto-qnx*)
|
|---|
| 2519 | version_type=linux
|
|---|
| 2520 | need_lib_prefix=no
|
|---|
| 2521 | need_version=no
|
|---|
| 2522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2523 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2524 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2525 | shlibpath_overrides_runpath=yes
|
|---|
| 2526 | ;;
|
|---|
| 2527 |
|
|---|
| 2528 | openbsd*)
|
|---|
| 2529 | version_type=sunos
|
|---|
| 2530 | need_lib_prefix=no
|
|---|
| 2531 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
|---|
| 2532 | case $host_os in
|
|---|
| 2533 | openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
|---|
| 2534 | *) need_version=no ;;
|
|---|
| 2535 | esac
|
|---|
| 2536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|---|
| 2537 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|---|
| 2538 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2539 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|---|
| 2540 | case $host_os in
|
|---|
| 2541 | openbsd2.[[89]] | openbsd2.[[89]].*)
|
|---|
| 2542 | shlibpath_overrides_runpath=no
|
|---|
| 2543 | ;;
|
|---|
| 2544 | *)
|
|---|
| 2545 | shlibpath_overrides_runpath=yes
|
|---|
| 2546 | ;;
|
|---|
| 2547 | esac
|
|---|
| 2548 | else
|
|---|
| 2549 | shlibpath_overrides_runpath=yes
|
|---|
| 2550 | fi
|
|---|
| 2551 | ;;
|
|---|
| 2552 |
|
|---|
| 2553 | os2*)
|
|---|
| 2554 | libname_spec='$name'
|
|---|
| 2555 | shrext_cmds=".dll"
|
|---|
| 2556 | need_lib_prefix=no
|
|---|
| 2557 | library_names_spec='$libname${shared_ext} $libname.a'
|
|---|
| 2558 | dynamic_linker='OS/2 ld.exe'
|
|---|
| 2559 | shlibpath_var=LIBPATH
|
|---|
| 2560 | ;;
|
|---|
| 2561 |
|
|---|
| 2562 | osf3* | osf4* | osf5*)
|
|---|
| 2563 | version_type=osf
|
|---|
| 2564 | need_lib_prefix=no
|
|---|
| 2565 | need_version=no
|
|---|
| 2566 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2568 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2569 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
|---|
| 2570 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|---|
| 2571 | ;;
|
|---|
| 2572 |
|
|---|
| 2573 | sco3.2v5*)
|
|---|
| 2574 | version_type=osf
|
|---|
| 2575 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2577 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2578 | ;;
|
|---|
| 2579 |
|
|---|
| 2580 | solaris*)
|
|---|
| 2581 | version_type=linux
|
|---|
| 2582 | need_lib_prefix=no
|
|---|
| 2583 | need_version=no
|
|---|
| 2584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2585 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2586 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2587 | shlibpath_overrides_runpath=yes
|
|---|
| 2588 | hardcode_into_libs=yes
|
|---|
| 2589 | # ldd complains unless libraries are executable
|
|---|
| 2590 | postinstall_cmds='chmod +x $lib'
|
|---|
| 2591 | ;;
|
|---|
| 2592 |
|
|---|
| 2593 | sunos4*)
|
|---|
| 2594 | version_type=sunos
|
|---|
| 2595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|---|
| 2596 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
|---|
| 2597 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2598 | shlibpath_overrides_runpath=yes
|
|---|
| 2599 | if test "$with_gnu_ld" = yes; then
|
|---|
| 2600 | need_lib_prefix=no
|
|---|
| 2601 | fi
|
|---|
| 2602 | need_version=yes
|
|---|
| 2603 | ;;
|
|---|
| 2604 |
|
|---|
| 2605 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 2606 | version_type=linux
|
|---|
| 2607 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2608 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2609 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2610 | case $host_vendor in
|
|---|
| 2611 | sni)
|
|---|
| 2612 | shlibpath_overrides_runpath=no
|
|---|
| 2613 | need_lib_prefix=no
|
|---|
| 2614 | export_dynamic_flag_spec='${wl}-Blargedynsym'
|
|---|
| 2615 | runpath_var=LD_RUN_PATH
|
|---|
| 2616 | ;;
|
|---|
| 2617 | siemens)
|
|---|
| 2618 | need_lib_prefix=no
|
|---|
| 2619 | ;;
|
|---|
| 2620 | motorola)
|
|---|
| 2621 | need_lib_prefix=no
|
|---|
| 2622 | need_version=no
|
|---|
| 2623 | shlibpath_overrides_runpath=no
|
|---|
| 2624 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
|---|
| 2625 | ;;
|
|---|
| 2626 | esac
|
|---|
| 2627 | ;;
|
|---|
| 2628 |
|
|---|
| 2629 | sysv4*MP*)
|
|---|
| 2630 | if test -d /usr/nec ;then
|
|---|
| 2631 | version_type=linux
|
|---|
| 2632 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
|---|
| 2633 | soname_spec='$libname${shared_ext}.$major'
|
|---|
| 2634 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2635 | fi
|
|---|
| 2636 | ;;
|
|---|
| 2637 |
|
|---|
| 2638 | uts4*)
|
|---|
| 2639 | version_type=linux
|
|---|
| 2640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|---|
| 2641 | soname_spec='${libname}${release}${shared_ext}$major'
|
|---|
| 2642 | shlibpath_var=LD_LIBRARY_PATH
|
|---|
| 2643 | ;;
|
|---|
| 2644 |
|
|---|
| 2645 | *)
|
|---|
| 2646 | dynamic_linker=no
|
|---|
| 2647 | ;;
|
|---|
| 2648 | esac
|
|---|
| 2649 | AC_MSG_RESULT([$dynamic_linker])
|
|---|
| 2650 | test "$dynamic_linker" = no && can_build_shared=no
|
|---|
| 2651 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
|---|
| 2652 |
|
|---|
| 2653 |
|
|---|
| 2654 | # _LT_AC_TAGCONFIG
|
|---|
| 2655 | # ----------------
|
|---|
| 2656 | AC_DEFUN([_LT_AC_TAGCONFIG],
|
|---|
| 2657 | [AC_ARG_WITH([tags],
|
|---|
| 2658 | [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
|
|---|
| 2659 | [include additional configurations @<:@automatic@:>@])],
|
|---|
| 2660 | [tagnames="$withval"])
|
|---|
| 2661 |
|
|---|
| 2662 | if test -f "$ltmain" && test -n "$tagnames"; then
|
|---|
| 2663 | if test ! -f "${ofile}"; then
|
|---|
| 2664 | AC_MSG_WARN([output file `$ofile' does not exist])
|
|---|
| 2665 | fi
|
|---|
| 2666 |
|
|---|
| 2667 | if test -z "$LTCC"; then
|
|---|
| 2668 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
|
|---|
| 2669 | if test -z "$LTCC"; then
|
|---|
| 2670 | AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
|
|---|
| 2671 | else
|
|---|
| 2672 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
|
|---|
| 2673 | fi
|
|---|
| 2674 | fi
|
|---|
| 2675 |
|
|---|
| 2676 | # Extract list of available tagged configurations in $ofile.
|
|---|
| 2677 | # Note that this assumes the entire list is on one line.
|
|---|
| 2678 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
|
|---|
| 2679 |
|
|---|
| 2680 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|---|
| 2681 | for tagname in $tagnames; do
|
|---|
| 2682 | IFS="$lt_save_ifs"
|
|---|
| 2683 | # Check whether tagname contains only valid characters
|
|---|
| 2684 | case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
|
|---|
| 2685 | "") ;;
|
|---|
| 2686 | *) AC_MSG_ERROR([invalid tag name: $tagname])
|
|---|
| 2687 | ;;
|
|---|
| 2688 | esac
|
|---|
| 2689 |
|
|---|
| 2690 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
|
|---|
| 2691 | then
|
|---|
| 2692 | AC_MSG_ERROR([tag name \"$tagname\" already exists])
|
|---|
| 2693 | fi
|
|---|
| 2694 |
|
|---|
| 2695 | # Update the list of available tags.
|
|---|
| 2696 | if test -n "$tagname"; then
|
|---|
| 2697 | echo appending configuration tag \"$tagname\" to $ofile
|
|---|
| 2698 |
|
|---|
| 2699 | case $tagname in
|
|---|
| 2700 | CXX)
|
|---|
| 2701 | if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
|---|
| 2702 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
|---|
| 2703 | (test "X$CXX" != "Xg++"))) ; then
|
|---|
| 2704 | AC_LIBTOOL_LANG_CXX_CONFIG
|
|---|
| 2705 | else
|
|---|
| 2706 | tagname=""
|
|---|
| 2707 | fi
|
|---|
| 2708 | ;;
|
|---|
| 2709 |
|
|---|
| 2710 | F77)
|
|---|
| 2711 | if test -n "$F77" && test "X$F77" != "Xno"; then
|
|---|
| 2712 | AC_LIBTOOL_LANG_F77_CONFIG
|
|---|
| 2713 | else
|
|---|
| 2714 | tagname=""
|
|---|
| 2715 | fi
|
|---|
| 2716 | ;;
|
|---|
| 2717 |
|
|---|
| 2718 | GCJ)
|
|---|
| 2719 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
|
|---|
| 2720 | AC_LIBTOOL_LANG_GCJ_CONFIG
|
|---|
| 2721 | else
|
|---|
| 2722 | tagname=""
|
|---|
| 2723 | fi
|
|---|
| 2724 | ;;
|
|---|
| 2725 |
|
|---|
| 2726 | RC)
|
|---|
| 2727 | AC_LIBTOOL_LANG_RC_CONFIG
|
|---|
| 2728 | ;;
|
|---|
| 2729 |
|
|---|
| 2730 | *)
|
|---|
| 2731 | AC_MSG_ERROR([Unsupported tag name: $tagname])
|
|---|
| 2732 | ;;
|
|---|
| 2733 | esac
|
|---|
| 2734 |
|
|---|
| 2735 | # Append the new tag name to the list of available tags.
|
|---|
| 2736 | if test -n "$tagname" ; then
|
|---|
| 2737 | available_tags="$available_tags $tagname"
|
|---|
| 2738 | fi
|
|---|
| 2739 | fi
|
|---|
| 2740 | done
|
|---|
| 2741 | IFS="$lt_save_ifs"
|
|---|
| 2742 |
|
|---|
| 2743 | # Now substitute the updated list of available tags.
|
|---|
| 2744 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
|
|---|
| 2745 | mv "${ofile}T" "$ofile"
|
|---|
| 2746 | chmod +x "$ofile"
|
|---|
| 2747 | else
|
|---|
| 2748 | rm -f "${ofile}T"
|
|---|
| 2749 | AC_MSG_ERROR([unable to update list of available tagged configurations.])
|
|---|
| 2750 | fi
|
|---|
| 2751 | fi
|
|---|
| 2752 | ])# _LT_AC_TAGCONFIG
|
|---|
| 2753 |
|
|---|
| 2754 |
|
|---|
| 2755 | # AC_LIBTOOL_DLOPEN
|
|---|
| 2756 | # -----------------
|
|---|
| 2757 | # enable checks for dlopen support
|
|---|
| 2758 | AC_DEFUN([AC_LIBTOOL_DLOPEN],
|
|---|
| 2759 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
|
|---|
| 2760 | ])# AC_LIBTOOL_DLOPEN
|
|---|
| 2761 |
|
|---|
| 2762 |
|
|---|
| 2763 | # AC_LIBTOOL_WIN32_DLL
|
|---|
| 2764 | # --------------------
|
|---|
| 2765 | # declare package support for building win32 dll's
|
|---|
| 2766 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
|---|
| 2767 | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
|
|---|
| 2768 | ])# AC_LIBTOOL_WIN32_DLL
|
|---|
| 2769 |
|
|---|
| 2770 |
|
|---|
| 2771 | # AC_ENABLE_SHARED([DEFAULT])
|
|---|
| 2772 | # ---------------------------
|
|---|
| 2773 | # implement the --enable-shared flag
|
|---|
| 2774 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
|---|
| 2775 | AC_DEFUN([AC_ENABLE_SHARED],
|
|---|
| 2776 | [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
|
|---|
| 2777 | AC_ARG_ENABLE([shared],
|
|---|
| 2778 | [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
|---|
| 2779 | [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
|
|---|
| 2780 | [p=${PACKAGE-default}
|
|---|
| 2781 | case $enableval in
|
|---|
| 2782 | yes) enable_shared=yes ;;
|
|---|
| 2783 | no) enable_shared=no ;;
|
|---|
| 2784 | *)
|
|---|
| 2785 | enable_shared=no
|
|---|
| 2786 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 2787 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|---|
| 2788 | for pkg in $enableval; do
|
|---|
| 2789 | IFS="$lt_save_ifs"
|
|---|
| 2790 | if test "X$pkg" = "X$p"; then
|
|---|
| 2791 | enable_shared=yes
|
|---|
| 2792 | fi
|
|---|
| 2793 | done
|
|---|
| 2794 | IFS="$lt_save_ifs"
|
|---|
| 2795 | ;;
|
|---|
| 2796 | esac],
|
|---|
| 2797 | [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
|
|---|
| 2798 | ])# AC_ENABLE_SHARED
|
|---|
| 2799 |
|
|---|
| 2800 |
|
|---|
| 2801 | # AC_DISABLE_SHARED
|
|---|
| 2802 | # -----------------
|
|---|
| 2803 | #- set the default shared flag to --disable-shared
|
|---|
| 2804 | AC_DEFUN([AC_DISABLE_SHARED],
|
|---|
| 2805 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|---|
| 2806 | AC_ENABLE_SHARED(no)
|
|---|
| 2807 | ])# AC_DISABLE_SHARED
|
|---|
| 2808 |
|
|---|
| 2809 |
|
|---|
| 2810 | # AC_ENABLE_STATIC([DEFAULT])
|
|---|
| 2811 | # ---------------------------
|
|---|
| 2812 | # implement the --enable-static flag
|
|---|
| 2813 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
|---|
| 2814 | AC_DEFUN([AC_ENABLE_STATIC],
|
|---|
| 2815 | [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
|
|---|
| 2816 | AC_ARG_ENABLE([static],
|
|---|
| 2817 | [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
|---|
| 2818 | [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
|
|---|
| 2819 | [p=${PACKAGE-default}
|
|---|
| 2820 | case $enableval in
|
|---|
| 2821 | yes) enable_static=yes ;;
|
|---|
| 2822 | no) enable_static=no ;;
|
|---|
| 2823 | *)
|
|---|
| 2824 | enable_static=no
|
|---|
| 2825 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 2826 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|---|
| 2827 | for pkg in $enableval; do
|
|---|
| 2828 | IFS="$lt_save_ifs"
|
|---|
| 2829 | if test "X$pkg" = "X$p"; then
|
|---|
| 2830 | enable_static=yes
|
|---|
| 2831 | fi
|
|---|
| 2832 | done
|
|---|
| 2833 | IFS="$lt_save_ifs"
|
|---|
| 2834 | ;;
|
|---|
| 2835 | esac],
|
|---|
| 2836 | [enable_static=]AC_ENABLE_STATIC_DEFAULT)
|
|---|
| 2837 | ])# AC_ENABLE_STATIC
|
|---|
| 2838 |
|
|---|
| 2839 |
|
|---|
| 2840 | # AC_DISABLE_STATIC
|
|---|
| 2841 | # -----------------
|
|---|
| 2842 | # set the default static flag to --disable-static
|
|---|
| 2843 | AC_DEFUN([AC_DISABLE_STATIC],
|
|---|
| 2844 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|---|
| 2845 | AC_ENABLE_STATIC(no)
|
|---|
| 2846 | ])# AC_DISABLE_STATIC
|
|---|
| 2847 |
|
|---|
| 2848 |
|
|---|
| 2849 | # AC_ENABLE_FAST_INSTALL([DEFAULT])
|
|---|
| 2850 | # ---------------------------------
|
|---|
| 2851 | # implement the --enable-fast-install flag
|
|---|
| 2852 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
|---|
| 2853 | AC_DEFUN([AC_ENABLE_FAST_INSTALL],
|
|---|
| 2854 | [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
|
|---|
| 2855 | AC_ARG_ENABLE([fast-install],
|
|---|
| 2856 | [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
|---|
| 2857 | [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
|---|
| 2858 | [p=${PACKAGE-default}
|
|---|
| 2859 | case $enableval in
|
|---|
| 2860 | yes) enable_fast_install=yes ;;
|
|---|
| 2861 | no) enable_fast_install=no ;;
|
|---|
| 2862 | *)
|
|---|
| 2863 | enable_fast_install=no
|
|---|
| 2864 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 2865 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|---|
| 2866 | for pkg in $enableval; do
|
|---|
| 2867 | IFS="$lt_save_ifs"
|
|---|
| 2868 | if test "X$pkg" = "X$p"; then
|
|---|
| 2869 | enable_fast_install=yes
|
|---|
| 2870 | fi
|
|---|
| 2871 | done
|
|---|
| 2872 | IFS="$lt_save_ifs"
|
|---|
| 2873 | ;;
|
|---|
| 2874 | esac],
|
|---|
| 2875 | [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
|
|---|
| 2876 | ])# AC_ENABLE_FAST_INSTALL
|
|---|
| 2877 |
|
|---|
| 2878 |
|
|---|
| 2879 | # AC_DISABLE_FAST_INSTALL
|
|---|
| 2880 | # -----------------------
|
|---|
| 2881 | # set the default to --disable-fast-install
|
|---|
| 2882 | AC_DEFUN([AC_DISABLE_FAST_INSTALL],
|
|---|
| 2883 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|---|
| 2884 | AC_ENABLE_FAST_INSTALL(no)
|
|---|
| 2885 | ])# AC_DISABLE_FAST_INSTALL
|
|---|
| 2886 |
|
|---|
| 2887 |
|
|---|
| 2888 | # AC_LIBTOOL_PICMODE([MODE])
|
|---|
| 2889 | # --------------------------
|
|---|
| 2890 | # implement the --with-pic flag
|
|---|
| 2891 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
|---|
| 2892 | AC_DEFUN([AC_LIBTOOL_PICMODE],
|
|---|
| 2893 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|---|
| 2894 | pic_mode=ifelse($#,1,$1,default)
|
|---|
| 2895 | ])# AC_LIBTOOL_PICMODE
|
|---|
| 2896 |
|
|---|
| 2897 |
|
|---|
| 2898 | # AC_PROG_EGREP
|
|---|
| 2899 | # -------------
|
|---|
| 2900 | # This is predefined starting with Autoconf 2.54, so this conditional
|
|---|
| 2901 | # definition can be removed once we require Autoconf 2.54 or later.
|
|---|
| 2902 | m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
|
|---|
| 2903 | [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
|
|---|
| 2904 | [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
|---|
| 2905 | then ac_cv_prog_egrep='grep -E'
|
|---|
| 2906 | else ac_cv_prog_egrep='egrep'
|
|---|
| 2907 | fi])
|
|---|
| 2908 | EGREP=$ac_cv_prog_egrep
|
|---|
| 2909 | AC_SUBST([EGREP])
|
|---|
| 2910 | ])])
|
|---|
| 2911 |
|
|---|
| 2912 |
|
|---|
| 2913 | # AC_PATH_TOOL_PREFIX
|
|---|
| 2914 | # -------------------
|
|---|
| 2915 | # find a file program which can recognise shared library
|
|---|
| 2916 | AC_DEFUN([AC_PATH_TOOL_PREFIX],
|
|---|
| 2917 | [AC_REQUIRE([AC_PROG_EGREP])dnl
|
|---|
| 2918 | AC_MSG_CHECKING([for $1])
|
|---|
| 2919 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
|
|---|
| 2920 | [case $MAGIC_CMD in
|
|---|
| 2921 | [[\\/*] | ?:[\\/]*])
|
|---|
| 2922 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 2923 | ;;
|
|---|
| 2924 | *)
|
|---|
| 2925 | lt_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 2926 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|---|
| 2927 | dnl $ac_dummy forces splitting on constant user-supplied paths.
|
|---|
| 2928 | dnl POSIX.2 word splitting is done only on the output of word expansions,
|
|---|
| 2929 | dnl not every word. This closes a longstanding sh security hole.
|
|---|
| 2930 | ac_dummy="ifelse([$2], , $PATH, [$2])"
|
|---|
| 2931 | for ac_dir in $ac_dummy; do
|
|---|
| 2932 | IFS="$lt_save_ifs"
|
|---|
| 2933 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2934 | if test -f $ac_dir/$1; then
|
|---|
| 2935 | lt_cv_path_MAGIC_CMD="$ac_dir/$1"
|
|---|
| 2936 | if test -n "$file_magic_test_file"; then
|
|---|
| 2937 | case $deplibs_check_method in
|
|---|
| 2938 | "file_magic "*)
|
|---|
| 2939 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 2940 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 2941 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 2942 | $EGREP "$file_magic_regex" > /dev/null; then
|
|---|
| 2943 | :
|
|---|
| 2944 | else
|
|---|
| 2945 | cat <<EOF 1>&2
|
|---|
| 2946 |
|
|---|
| 2947 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 2948 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 2949 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 2950 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 2951 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 2952 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 2953 | *** may want to report the problem to your system manager and/or to
|
|---|
| 2954 | *** bug-libtool@gnu.org
|
|---|
| 2955 |
|
|---|
| 2956 | EOF
|
|---|
| 2957 | fi ;;
|
|---|
| 2958 | esac
|
|---|
| 2959 | fi
|
|---|
| 2960 | break
|
|---|
| 2961 | fi
|
|---|
| 2962 | done
|
|---|
| 2963 | IFS="$lt_save_ifs"
|
|---|
| 2964 | MAGIC_CMD="$lt_save_MAGIC_CMD"
|
|---|
| 2965 | ;;
|
|---|
| 2966 | esac])
|
|---|
| 2967 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 2968 | if test -n "$MAGIC_CMD"; then
|
|---|
| 2969 | AC_MSG_RESULT($MAGIC_CMD)
|
|---|
| 2970 | else
|
|---|
| 2971 | AC_MSG_RESULT(no)
|
|---|
| 2972 | fi
|
|---|
| 2973 | ])# AC_PATH_TOOL_PREFIX
|
|---|
| 2974 |
|
|---|
| 2975 |
|
|---|
| 2976 | # AC_PATH_MAGIC
|
|---|
| 2977 | # -------------
|
|---|
| 2978 | # find a file program which can recognise a shared library
|
|---|
| 2979 | AC_DEFUN([AC_PATH_MAGIC],
|
|---|
| 2980 | [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
|
|---|
| 2981 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 2982 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2983 | AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
|
|---|
| 2984 | else
|
|---|
| 2985 | MAGIC_CMD=:
|
|---|
| 2986 | fi
|
|---|
| 2987 | fi
|
|---|
| 2988 | ])# AC_PATH_MAGIC
|
|---|
| 2989 |
|
|---|
| 2990 |
|
|---|
| 2991 | # AC_PROG_LD
|
|---|
| 2992 | # ----------
|
|---|
| 2993 | # find the pathname to the GNU or non-GNU linker
|
|---|
| 2994 | AC_DEFUN([AC_PROG_LD],
|
|---|
| 2995 | [AC_ARG_WITH([gnu-ld],
|
|---|
| 2996 | [AC_HELP_STRING([--with-gnu-ld],
|
|---|
| 2997 | [assume the C compiler uses GNU ld @<:@default=no@:>@])],
|
|---|
| 2998 | [test "$withval" = no || with_gnu_ld=yes],
|
|---|
| 2999 | [with_gnu_ld=no])
|
|---|
| 3000 | AC_REQUIRE([LT_AC_PROG_SED])dnl
|
|---|
| 3001 | AC_REQUIRE([AC_PROG_CC])dnl
|
|---|
| 3002 | AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|---|
| 3003 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|---|
| 3004 | ac_prog=ld
|
|---|
| 3005 | if test "$GCC" = yes; then
|
|---|
| 3006 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 3007 | AC_MSG_CHECKING([for ld used by $CC])
|
|---|
| 3008 | case $host in
|
|---|
| 3009 | *-*-mingw*)
|
|---|
| 3010 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 3011 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 3012 | *)
|
|---|
| 3013 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 3014 | esac
|
|---|
| 3015 | case $ac_prog in
|
|---|
| 3016 | # Accept absolute paths.
|
|---|
| 3017 | [[\\/]]* | ?:[[\\/]]*)
|
|---|
| 3018 | re_direlt='/[[^/]][[^/]]*/\.\./'
|
|---|
| 3019 | # Canonicalize the pathname of ld
|
|---|
| 3020 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
|---|
| 3021 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 3022 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
|---|
| 3023 | done
|
|---|
| 3024 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 3025 | ;;
|
|---|
| 3026 | "")
|
|---|
| 3027 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 3028 | ac_prog=ld
|
|---|
| 3029 | ;;
|
|---|
| 3030 | *)
|
|---|
| 3031 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 3032 | with_gnu_ld=unknown
|
|---|
| 3033 | ;;
|
|---|
| 3034 | esac
|
|---|
| 3035 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 3036 | AC_MSG_CHECKING([for GNU ld])
|
|---|
| 3037 | else
|
|---|
| 3038 | AC_MSG_CHECKING([for non-GNU ld])
|
|---|
| 3039 | fi
|
|---|
| 3040 | AC_CACHE_VAL(lt_cv_path_LD,
|
|---|
| 3041 | [if test -z "$LD"; then
|
|---|
| 3042 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|---|
| 3043 | for ac_dir in $PATH; do
|
|---|
| 3044 | IFS="$lt_save_ifs"
|
|---|
| 3045 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3046 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 3047 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 3048 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 3049 | # but apparently some GNU ld's only accept -v.
|
|---|
| 3050 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 3051 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
|---|
| 3052 | *GNU* | *'with BFD'*)
|
|---|
| 3053 | test "$with_gnu_ld" != no && break
|
|---|
| 3054 | ;;
|
|---|
| 3055 | *)
|
|---|
| 3056 | test "$with_gnu_ld" != yes && break
|
|---|
| 3057 | ;;
|
|---|
| 3058 | esac
|
|---|
| 3059 | fi
|
|---|
| 3060 | done
|
|---|
| 3061 | IFS="$lt_save_ifs"
|
|---|
| 3062 | else
|
|---|
| 3063 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 3064 | fi])
|
|---|
| 3065 | LD="$lt_cv_path_LD"
|
|---|
| 3066 | if test -n "$LD"; then
|
|---|
| 3067 | AC_MSG_RESULT($LD)
|
|---|
| 3068 | else
|
|---|
| 3069 | AC_MSG_RESULT(no)
|
|---|
| 3070 | fi
|
|---|
| 3071 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
|---|
| 3072 | AC_PROG_LD_GNU
|
|---|
| 3073 | ])# AC_PROG_LD
|
|---|
| 3074 |
|
|---|
| 3075 |
|
|---|
| 3076 | # AC_PROG_LD_GNU
|
|---|
| 3077 | # --------------
|
|---|
| 3078 | AC_DEFUN([AC_PROG_LD_GNU],
|
|---|
| 3079 | [AC_REQUIRE([AC_PROG_EGREP])dnl
|
|---|
| 3080 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
|
|---|
| 3081 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 3082 | case `$LD -v 2>&1 </dev/null` in
|
|---|
| 3083 | *GNU* | *'with BFD'*)
|
|---|
| 3084 | lt_cv_prog_gnu_ld=yes
|
|---|
| 3085 | ;;
|
|---|
| 3086 | *)
|
|---|
| 3087 | lt_cv_prog_gnu_ld=no
|
|---|
| 3088 | ;;
|
|---|
| 3089 | esac])
|
|---|
| 3090 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
|---|
| 3091 | ])# AC_PROG_LD_GNU
|
|---|
| 3092 |
|
|---|
| 3093 |
|
|---|
| 3094 | # AC_PROG_LD_RELOAD_FLAG
|
|---|
| 3095 | # ----------------------
|
|---|
| 3096 | # find reload flag for linker
|
|---|
| 3097 | # -- PORTME Some linkers may need a different reload flag.
|
|---|
| 3098 | AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
|
|---|
| 3099 | [AC_CACHE_CHECK([for $LD option to reload object files],
|
|---|
| 3100 | lt_cv_ld_reload_flag,
|
|---|
| 3101 | [lt_cv_ld_reload_flag='-r'])
|
|---|
| 3102 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 3103 | case $reload_flag in
|
|---|
| 3104 | "" | " "*) ;;
|
|---|
| 3105 | *) reload_flag=" $reload_flag" ;;
|
|---|
| 3106 | esac
|
|---|
| 3107 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|---|
| 3108 | case $host_os in
|
|---|
| 3109 | darwin*)
|
|---|
| 3110 | if test "$GCC" = yes; then
|
|---|
| 3111 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
|
|---|
| 3112 | else
|
|---|
| 3113 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|---|
| 3114 | fi
|
|---|
| 3115 | ;;
|
|---|
| 3116 | esac
|
|---|
| 3117 | ])# AC_PROG_LD_RELOAD_FLAG
|
|---|
| 3118 |
|
|---|
| 3119 |
|
|---|
| 3120 | # AC_DEPLIBS_CHECK_METHOD
|
|---|
| 3121 | # -----------------------
|
|---|
| 3122 | # how to check for library dependencies
|
|---|
| 3123 | # -- PORTME fill in with the dynamic library characteristics
|
|---|
| 3124 | AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
|
|---|
| 3125 | [AC_CACHE_CHECK([how to recognise dependent libraries],
|
|---|
| 3126 | lt_cv_deplibs_check_method,
|
|---|
| 3127 | [lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 3128 | lt_cv_file_magic_test_file=
|
|---|
| 3129 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 3130 | # Need to set the preceding variable on all platforms that support
|
|---|
| 3131 | # interlibrary dependencies.
|
|---|
| 3132 | # 'none' -- dependencies not supported.
|
|---|
| 3133 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 3134 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 3135 | # 'test_compile' -- check by making test program.
|
|---|
| 3136 | # 'file_magic [[regex]]' -- check by looking for files in library path
|
|---|
| 3137 | # which responds to the $file_magic_cmd with a given extended regex.
|
|---|
| 3138 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 3139 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 3140 |
|
|---|
| 3141 | case $host_os in
|
|---|
| 3142 | aix4* | aix5*)
|
|---|
| 3143 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3144 | ;;
|
|---|
| 3145 |
|
|---|
| 3146 | beos*)
|
|---|
| 3147 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3148 | ;;
|
|---|
| 3149 |
|
|---|
| 3150 | bsdi[[45]]*)
|
|---|
| 3151 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
|
|---|
| 3152 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 3153 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 3154 | ;;
|
|---|
| 3155 |
|
|---|
| 3156 | cygwin*)
|
|---|
| 3157 | # func_win32_libid is a shell function defined in ltmain.sh
|
|---|
| 3158 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|---|
| 3159 | lt_cv_file_magic_cmd='func_win32_libid'
|
|---|
| 3160 | ;;
|
|---|
| 3161 |
|
|---|
| 3162 | mingw* | pw32*)
|
|---|
| 3163 | # Base MSYS/MinGW do not provide the 'file' command needed by
|
|---|
| 3164 | # func_win32_libid shell function, so use a weaker test based on 'objdump'.
|
|---|
| 3165 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 3166 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 3167 | ;;
|
|---|
| 3168 |
|
|---|
| 3169 | darwin* | rhapsody*)
|
|---|
| 3170 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3171 | ;;
|
|---|
| 3172 |
|
|---|
| 3173 | freebsd* | kfreebsd*-gnu | dragonfly*)
|
|---|
| 3174 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 3175 | case $host_cpu in
|
|---|
| 3176 | i*86 )
|
|---|
| 3177 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 3178 | # Let's accept both of them until this is cleared up.
|
|---|
| 3179 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
|
|---|
| 3180 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 3181 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 3182 | ;;
|
|---|
| 3183 | esac
|
|---|
| 3184 | else
|
|---|
| 3185 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3186 | fi
|
|---|
| 3187 | ;;
|
|---|
| 3188 |
|
|---|
| 3189 | gnu*)
|
|---|
| 3190 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3191 | ;;
|
|---|
| 3192 |
|
|---|
| 3193 | hpux10.20* | hpux11*)
|
|---|
| 3194 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 3195 | case "$host_cpu" in
|
|---|
| 3196 | ia64*)
|
|---|
| 3197 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
|
|---|
| 3198 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|---|
| 3199 | ;;
|
|---|
| 3200 | hppa*64*)
|
|---|
| 3201 | [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]']
|
|---|
| 3202 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
|---|
| 3203 | ;;
|
|---|
| 3204 | *)
|
|---|
| 3205 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
|
|---|
| 3206 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 3207 | ;;
|
|---|
| 3208 | esac
|
|---|
| 3209 | ;;
|
|---|
| 3210 |
|
|---|
| 3211 | irix5* | irix6* | nonstopux*)
|
|---|
| 3212 | case $LD in
|
|---|
| 3213 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 3214 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 3215 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 3216 | *) libmagic=never-match;;
|
|---|
| 3217 | esac
|
|---|
| 3218 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3219 | ;;
|
|---|
| 3220 |
|
|---|
| 3221 | # This must be Linux ELF.
|
|---|
| 3222 | linux*)
|
|---|
| 3223 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3224 | ;;
|
|---|
| 3225 |
|
|---|
| 3226 | netbsd*)
|
|---|
| 3227 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 3228 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
|---|
| 3229 | else
|
|---|
| 3230 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
|
|---|
| 3231 | fi
|
|---|
| 3232 | ;;
|
|---|
| 3233 |
|
|---|
| 3234 | newos6*)
|
|---|
| 3235 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
|
|---|
| 3236 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 3237 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|---|
| 3238 | ;;
|
|---|
| 3239 |
|
|---|
| 3240 | nto-qnx*)
|
|---|
| 3241 | lt_cv_deplibs_check_method=unknown
|
|---|
| 3242 | ;;
|
|---|
| 3243 |
|
|---|
| 3244 | openbsd*)
|
|---|
| 3245 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|---|
| 3246 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
|
|---|
| 3247 | else
|
|---|
| 3248 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
|---|
| 3249 | fi
|
|---|
| 3250 | ;;
|
|---|
| 3251 |
|
|---|
| 3252 | osf3* | osf4* | osf5*)
|
|---|
| 3253 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3254 | ;;
|
|---|
| 3255 |
|
|---|
| 3256 | sco3.2v5*)
|
|---|
| 3257 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3258 | ;;
|
|---|
| 3259 |
|
|---|
| 3260 | solaris*)
|
|---|
| 3261 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3262 | ;;
|
|---|
| 3263 |
|
|---|
| 3264 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 3265 | case $host_vendor in
|
|---|
| 3266 | motorola)
|
|---|
| 3267 | 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]]'
|
|---|
| 3268 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 3269 | ;;
|
|---|
| 3270 | ncr)
|
|---|
| 3271 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3272 | ;;
|
|---|
| 3273 | sequent)
|
|---|
| 3274 | lt_cv_file_magic_cmd='/bin/file'
|
|---|
| 3275 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
|
|---|
| 3276 | ;;
|
|---|
| 3277 | sni)
|
|---|
| 3278 | lt_cv_file_magic_cmd='/bin/file'
|
|---|
| 3279 | lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
|
|---|
| 3280 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 3281 | ;;
|
|---|
| 3282 | siemens)
|
|---|
| 3283 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3284 | ;;
|
|---|
| 3285 | esac
|
|---|
| 3286 | ;;
|
|---|
| 3287 |
|
|---|
| 3288 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
|
|---|
| 3289 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 3290 | ;;
|
|---|
| 3291 | esac
|
|---|
| 3292 | ])
|
|---|
| 3293 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 3294 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 3295 | test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|---|
| 3296 | ])# AC_DEPLIBS_CHECK_METHOD
|
|---|
| 3297 |
|
|---|
| 3298 |
|
|---|
| 3299 | # AC_PROG_NM
|
|---|
| 3300 | # ----------
|
|---|
| 3301 | # find the pathname to a BSD-compatible name lister
|
|---|
| 3302 | AC_DEFUN([AC_PROG_NM],
|
|---|
| 3303 | [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
|
|---|
| 3304 | [if test -n "$NM"; then
|
|---|
| 3305 | # Let the user override the test.
|
|---|
| 3306 | lt_cv_path_NM="$NM"
|
|---|
| 3307 | else
|
|---|
| 3308 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|---|
| 3309 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 3310 | IFS="$lt_save_ifs"
|
|---|
| 3311 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3312 | tmp_nm="$ac_dir/${ac_tool_prefix}nm"
|
|---|
| 3313 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
|---|
| 3314 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 3315 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 3316 | # nm: unknown option "B" ignored
|
|---|
| 3317 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 3318 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
|---|
| 3319 | */dev/null* | *'Invalid file or object type'*)
|
|---|
| 3320 | lt_cv_path_NM="$tmp_nm -B"
|
|---|
| 3321 | break
|
|---|
| 3322 | ;;
|
|---|
| 3323 | *)
|
|---|
| 3324 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
|---|
| 3325 | */dev/null*)
|
|---|
| 3326 | lt_cv_path_NM="$tmp_nm -p"
|
|---|
| 3327 | break
|
|---|
| 3328 | ;;
|
|---|
| 3329 | *)
|
|---|
| 3330 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 3331 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 3332 | ;;
|
|---|
| 3333 | esac
|
|---|
| 3334 | esac
|
|---|
| 3335 | fi
|
|---|
| 3336 | done
|
|---|
| 3337 | IFS="$lt_save_ifs"
|
|---|
| 3338 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|---|
| 3339 | fi])
|
|---|
| 3340 | NM="$lt_cv_path_NM"
|
|---|
| 3341 | ])# AC_PROG_NM
|
|---|
| 3342 |
|
|---|
| 3343 |
|
|---|
| 3344 | # AC_CHECK_LIBM
|
|---|
| 3345 | # -------------
|
|---|
| 3346 | # check for math library
|
|---|
| 3347 | AC_DEFUN([AC_CHECK_LIBM],
|
|---|
| 3348 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|---|
| 3349 | LIBM=
|
|---|
| 3350 | case $host in
|
|---|
| 3351 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
|
|---|
| 3352 | # These system don't have libm, or don't need it
|
|---|
| 3353 | ;;
|
|---|
| 3354 | *-ncr-sysv4.3*)
|
|---|
| 3355 | AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
|
|---|
| 3356 | AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
|
|---|
| 3357 | ;;
|
|---|
| 3358 | *)
|
|---|
| 3359 | AC_CHECK_LIB(m, cos, LIBM="-lm")
|
|---|
| 3360 | ;;
|
|---|
| 3361 | esac
|
|---|
| 3362 | ])# AC_CHECK_LIBM
|
|---|
| 3363 |
|
|---|
| 3364 |
|
|---|
| 3365 | # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
|
|---|
| 3366 | # -----------------------------------
|
|---|
| 3367 | # sets LIBLTDL to the link flags for the libltdl convenience library and
|
|---|
| 3368 | # LTDLINCL to the include flags for the libltdl header and adds
|
|---|
| 3369 | # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
|
|---|
| 3370 | # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
|
|---|
| 3371 | # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
|
|---|
| 3372 | # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
|
|---|
| 3373 | # '${top_srcdir}/' (note the single quotes!). If your package is not
|
|---|
| 3374 | # flat and you're not using automake, define top_builddir and
|
|---|
| 3375 | # top_srcdir appropriately in the Makefiles.
|
|---|
| 3376 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
|
|---|
| 3377 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|---|
| 3378 | case $enable_ltdl_convenience in
|
|---|
| 3379 | no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
|
|---|
| 3380 | "") enable_ltdl_convenience=yes
|
|---|
| 3381 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
|---|
| 3382 | esac
|
|---|
| 3383 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
|
|---|
| 3384 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
|---|
| 3385 | # For backwards non-gettext consistent compatibility...
|
|---|
| 3386 | INCLTDL="$LTDLINCL"
|
|---|
| 3387 | ])# AC_LIBLTDL_CONVENIENCE
|
|---|
| 3388 |
|
|---|
| 3389 |
|
|---|
| 3390 | # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
|
|---|
| 3391 | # -----------------------------------
|
|---|
| 3392 | # sets LIBLTDL to the link flags for the libltdl installable library and
|
|---|
| 3393 | # LTDLINCL to the include flags for the libltdl header and adds
|
|---|
| 3394 | # --enable-ltdl-install to the configure arguments. Note that LIBLTDL
|
|---|
| 3395 | # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
|
|---|
| 3396 | # DIRECTORY is not provided and an installed libltdl is not found, it is
|
|---|
| 3397 | # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
|
|---|
| 3398 | # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
|
|---|
| 3399 | # quotes!). If your package is not flat and you're not using automake,
|
|---|
| 3400 | # define top_builddir and top_srcdir appropriately in the Makefiles.
|
|---|
| 3401 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
|
|---|
| 3402 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
|
|---|
| 3403 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|---|
| 3404 | AC_CHECK_LIB(ltdl, lt_dlinit,
|
|---|
| 3405 | [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
|
|---|
| 3406 | [if test x"$enable_ltdl_install" = xno; then
|
|---|
| 3407 | AC_MSG_WARN([libltdl not installed, but installation disabled])
|
|---|
| 3408 | else
|
|---|
| 3409 | enable_ltdl_install=yes
|
|---|
| 3410 | fi
|
|---|
| 3411 | ])
|
|---|
| 3412 | if test x"$enable_ltdl_install" = x"yes"; then
|
|---|
| 3413 | ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
|---|
| 3414 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
|
|---|
| 3415 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
|---|
| 3416 | else
|
|---|
| 3417 | ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
|
|---|
| 3418 | LIBLTDL="-lltdl"
|
|---|
| 3419 | LTDLINCL=
|
|---|
| 3420 | fi
|
|---|
| 3421 | # For backwards non-gettext consistent compatibility...
|
|---|
| 3422 | INCLTDL="$LTDLINCL"
|
|---|
| 3423 | ])# AC_LIBLTDL_INSTALLABLE
|
|---|
| 3424 |
|
|---|
| 3425 |
|
|---|
| 3426 | # AC_LIBTOOL_CXX
|
|---|
| 3427 | # --------------
|
|---|
| 3428 | # enable support for C++ libraries
|
|---|
| 3429 | AC_DEFUN([AC_LIBTOOL_CXX],
|
|---|
| 3430 | [AC_REQUIRE([_LT_AC_LANG_CXX])
|
|---|
| 3431 | ])# AC_LIBTOOL_CXX
|
|---|
| 3432 |
|
|---|
| 3433 |
|
|---|
| 3434 | # _LT_AC_LANG_CXX
|
|---|
| 3435 | # ---------------
|
|---|
| 3436 | AC_DEFUN([_LT_AC_LANG_CXX],
|
|---|
| 3437 | [AC_REQUIRE([AC_PROG_CXX])
|
|---|
| 3438 | AC_REQUIRE([_LT_AC_PROG_CXXCPP])
|
|---|
| 3439 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
|
|---|
| 3440 | ])# _LT_AC_LANG_CXX
|
|---|
| 3441 |
|
|---|
| 3442 | # _LT_AC_PROG_CXXCPP
|
|---|
| 3443 | # ---------------
|
|---|
| 3444 | AC_DEFUN([_LT_AC_PROG_CXXCPP],
|
|---|
| 3445 | [
|
|---|
| 3446 | AC_REQUIRE([AC_PROG_CXX])
|
|---|
| 3447 | if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
|---|
| 3448 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
|---|
| 3449 | (test "X$CXX" != "Xg++"))) ; then
|
|---|
| 3450 | AC_PROG_CXXCPP
|
|---|
| 3451 | fi
|
|---|
| 3452 | ])# _LT_AC_PROG_CXXCPP
|
|---|
| 3453 |
|
|---|
| 3454 | # AC_LIBTOOL_F77
|
|---|
| 3455 | # --------------
|
|---|
| 3456 | # enable support for Fortran 77 libraries
|
|---|
| 3457 | AC_DEFUN([AC_LIBTOOL_F77],
|
|---|
| 3458 | [AC_REQUIRE([_LT_AC_LANG_F77])
|
|---|
| 3459 | ])# AC_LIBTOOL_F77
|
|---|
| 3460 |
|
|---|
| 3461 |
|
|---|
| 3462 | # _LT_AC_LANG_F77
|
|---|
| 3463 | # ---------------
|
|---|
| 3464 | AC_DEFUN([_LT_AC_LANG_F77],
|
|---|
| 3465 | [AC_REQUIRE([AC_PROG_F77])
|
|---|
| 3466 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
|
|---|
| 3467 | ])# _LT_AC_LANG_F77
|
|---|
| 3468 |
|
|---|
| 3469 |
|
|---|
| 3470 | # AC_LIBTOOL_GCJ
|
|---|
| 3471 | # --------------
|
|---|
| 3472 | # enable support for GCJ libraries
|
|---|
| 3473 | AC_DEFUN([AC_LIBTOOL_GCJ],
|
|---|
| 3474 | [AC_REQUIRE([_LT_AC_LANG_GCJ])
|
|---|
| 3475 | ])# AC_LIBTOOL_GCJ
|
|---|
| 3476 |
|
|---|
| 3477 |
|
|---|
| 3478 | # _LT_AC_LANG_GCJ
|
|---|
| 3479 | # ---------------
|
|---|
| 3480 | AC_DEFUN([_LT_AC_LANG_GCJ],
|
|---|
| 3481 | [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
|
|---|
| 3482 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
|
|---|
| 3483 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
|
|---|
| 3484 | [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
|
|---|
| 3485 | [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
|
|---|
| 3486 | [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
|
|---|
| 3487 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
|
|---|
| 3488 | ])# _LT_AC_LANG_GCJ
|
|---|
| 3489 |
|
|---|
| 3490 |
|
|---|
| 3491 | # AC_LIBTOOL_RC
|
|---|
| 3492 | # --------------
|
|---|
| 3493 | # enable support for Windows resource files
|
|---|
| 3494 | AC_DEFUN([AC_LIBTOOL_RC],
|
|---|
| 3495 | [AC_REQUIRE([LT_AC_PROG_RC])
|
|---|
| 3496 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
|
|---|
| 3497 | ])# AC_LIBTOOL_RC
|
|---|
| 3498 |
|
|---|
| 3499 |
|
|---|
| 3500 | # AC_LIBTOOL_LANG_C_CONFIG
|
|---|
| 3501 | # ------------------------
|
|---|
| 3502 | # Ensure that the configuration vars for the C compiler are
|
|---|
| 3503 | # suitably defined. Those variables are subsequently used by
|
|---|
| 3504 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
|---|
| 3505 | AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
|
|---|
| 3506 | AC_DEFUN([_LT_AC_LANG_C_CONFIG],
|
|---|
| 3507 | [lt_save_CC="$CC"
|
|---|
| 3508 | AC_LANG_PUSH(C)
|
|---|
| 3509 |
|
|---|
| 3510 | # Source file extension for C test sources.
|
|---|
| 3511 | ac_ext=c
|
|---|
| 3512 |
|
|---|
| 3513 | # Object file extension for compiled C test sources.
|
|---|
| 3514 | objext=o
|
|---|
| 3515 | _LT_AC_TAGVAR(objext, $1)=$objext
|
|---|
| 3516 |
|
|---|
| 3517 | # Code to be used in simple compile tests
|
|---|
| 3518 | lt_simple_compile_test_code="int some_variable = 0;\n"
|
|---|
| 3519 |
|
|---|
| 3520 | # Code to be used in simple link tests
|
|---|
| 3521 | lt_simple_link_test_code='int main(){return(0);}\n'
|
|---|
| 3522 |
|
|---|
| 3523 | _LT_AC_SYS_COMPILER
|
|---|
| 3524 |
|
|---|
| 3525 | # save warnings/boilerplate of simple test code
|
|---|
| 3526 | _LT_COMPILER_BOILERPLATE
|
|---|
| 3527 | _LT_LINKER_BOILERPLATE
|
|---|
| 3528 |
|
|---|
| 3529 | #
|
|---|
| 3530 | # Check for any special shared library compilation flags.
|
|---|
| 3531 | #
|
|---|
| 3532 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
|
|---|
| 3533 | if test "$GCC" = no; then
|
|---|
| 3534 | case $host_os in
|
|---|
| 3535 | sco3.2v5*)
|
|---|
| 3536 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
|
|---|
| 3537 | ;;
|
|---|
| 3538 | esac
|
|---|
| 3539 | fi
|
|---|
| 3540 | if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
|
|---|
| 3541 | AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
|
|---|
| 3542 | if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
|
|---|
| 3543 | else
|
|---|
| 3544 | AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
|
|---|
| 3545 | _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
|
|---|
| 3546 | fi
|
|---|
| 3547 | fi
|
|---|
| 3548 |
|
|---|
| 3549 |
|
|---|
| 3550 | #
|
|---|
| 3551 | # Check to make sure the static flag actually works.
|
|---|
| 3552 | #
|
|---|
| 3553 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
|
|---|
| 3554 | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
|
|---|
| 3555 | $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
|
|---|
| 3556 | [],
|
|---|
| 3557 | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
|
|---|
| 3558 |
|
|---|
| 3559 |
|
|---|
| 3560 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
|
|---|
| 3561 | AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
|---|
| 3562 | AC_LIBTOOL_PROG_CC_C_O($1)
|
|---|
| 3563 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
|---|
| 3564 | AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
|---|
| 3565 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
|---|
| 3566 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
|---|
| 3567 | AC_LIBTOOL_SYS_LIB_STRIP
|
|---|
| 3568 | AC_LIBTOOL_DLOPEN_SELF($1)
|
|---|
| 3569 |
|
|---|
| 3570 | # Report which librarie types wil actually be built
|
|---|
| 3571 | AC_MSG_CHECKING([if libtool supports shared libraries])
|
|---|
| 3572 | AC_MSG_RESULT([$can_build_shared])
|
|---|
| 3573 |
|
|---|
| 3574 | AC_MSG_CHECKING([whether to build shared libraries])
|
|---|
| 3575 | test "$can_build_shared" = "no" && enable_shared=no
|
|---|
| 3576 |
|
|---|
| 3577 | # On AIX, shared libraries and static libraries use the same namespace, and
|
|---|
| 3578 | # are all built from PIC.
|
|---|
| 3579 | case "$host_os" in
|
|---|
| 3580 | aix3*)
|
|---|
| 3581 | test "$enable_shared" = yes && enable_static=no
|
|---|
| 3582 | if test -n "$RANLIB"; then
|
|---|
| 3583 | archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
|---|
| 3584 | postinstall_cmds='$RANLIB $lib'
|
|---|
| 3585 | fi
|
|---|
| 3586 | ;;
|
|---|
| 3587 |
|
|---|
| 3588 | aix4* | aix5*)
|
|---|
| 3589 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
|---|
| 3590 | test "$enable_shared" = yes && enable_static=no
|
|---|
| 3591 | fi
|
|---|
| 3592 | ;;
|
|---|
| 3593 | esac
|
|---|
| 3594 | AC_MSG_RESULT([$enable_shared])
|
|---|
| 3595 |
|
|---|
| 3596 | AC_MSG_CHECKING([whether to build static libraries])
|
|---|
| 3597 | # Make sure either enable_shared or enable_static is yes.
|
|---|
| 3598 | test "$enable_shared" = yes || enable_static=yes
|
|---|
| 3599 | AC_MSG_RESULT([$enable_static])
|
|---|
| 3600 |
|
|---|
| 3601 | AC_LIBTOOL_CONFIG($1)
|
|---|
| 3602 |
|
|---|
| 3603 | AC_LANG_POP
|
|---|
| 3604 | CC="$lt_save_CC"
|
|---|
| 3605 | ])# AC_LIBTOOL_LANG_C_CONFIG
|
|---|
| 3606 |
|
|---|
| 3607 |
|
|---|
| 3608 | # AC_LIBTOOL_LANG_CXX_CONFIG
|
|---|
| 3609 | # --------------------------
|
|---|
| 3610 | # Ensure that the configuration vars for the C compiler are
|
|---|
| 3611 | # suitably defined. Those variables are subsequently used by
|
|---|
| 3612 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
|---|
| 3613 | AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
|
|---|
| 3614 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
|
|---|
| 3615 | [AC_LANG_PUSH(C++)
|
|---|
| 3616 | AC_REQUIRE([AC_PROG_CXX])
|
|---|
| 3617 | AC_REQUIRE([_LT_AC_PROG_CXXCPP])
|
|---|
| 3618 |
|
|---|
| 3619 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|---|
| 3620 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
|---|
| 3621 | _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
|---|
| 3622 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
|---|
| 3623 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
|---|
| 3624 | _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|---|
| 3625 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|---|
| 3626 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
|---|
| 3627 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
|---|
| 3628 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
|---|
| 3629 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
|---|
| 3630 | _LT_AC_TAGVAR(module_cmds, $1)=
|
|---|
| 3631 | _LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
|---|
| 3632 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
|---|
| 3633 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|---|
| 3634 | _LT_AC_TAGVAR(no_undefined_flag, $1)=
|
|---|
| 3635 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
|---|
| 3636 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
|---|
| 3637 |
|
|---|
| 3638 | # Dependencies to place before and after the object being linked:
|
|---|
| 3639 | _LT_AC_TAGVAR(predep_objects, $1)=
|
|---|
| 3640 | _LT_AC_TAGVAR(postdep_objects, $1)=
|
|---|
| 3641 | _LT_AC_TAGVAR(predeps, $1)=
|
|---|
| 3642 | _LT_AC_TAGVAR(postdeps, $1)=
|
|---|
| 3643 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
|
|---|
| 3644 |
|
|---|
| 3645 | # Source file extension for C++ test sources.
|
|---|
| 3646 | ac_ext=cc
|
|---|
| 3647 |
|
|---|
| 3648 | # Object file extension for compiled C++ test sources.
|
|---|
| 3649 | objext=o
|
|---|
| 3650 | _LT_AC_TAGVAR(objext, $1)=$objext
|
|---|
| 3651 |
|
|---|
| 3652 | # Code to be used in simple compile tests
|
|---|
| 3653 | lt_simple_compile_test_code="int some_variable = 0;\n"
|
|---|
| 3654 |
|
|---|
| 3655 | # Code to be used in simple link tests
|
|---|
| 3656 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
|
|---|
| 3657 |
|
|---|
| 3658 | # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|---|
| 3659 | _LT_AC_SYS_COMPILER
|
|---|
| 3660 |
|
|---|
| 3661 | # save warnings/boilerplate of simple test code
|
|---|
| 3662 | _LT_COMPILER_BOILERPLATE
|
|---|
| 3663 | _LT_LINKER_BOILERPLATE
|
|---|
| 3664 |
|
|---|
| 3665 | # Allow CC to be a program name with arguments.
|
|---|
| 3666 | lt_save_CC=$CC
|
|---|
| 3667 | lt_save_LD=$LD
|
|---|
| 3668 | lt_save_GCC=$GCC
|
|---|
| 3669 | GCC=$GXX
|
|---|
| 3670 | lt_save_with_gnu_ld=$with_gnu_ld
|
|---|
| 3671 | lt_save_path_LD=$lt_cv_path_LD
|
|---|
| 3672 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
|---|
| 3673 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
|---|
| 3674 | else
|
|---|
| 3675 | unset lt_cv_prog_gnu_ld
|
|---|
| 3676 | fi
|
|---|
| 3677 | if test -n "${lt_cv_path_LDCXX+set}"; then
|
|---|
| 3678 | lt_cv_path_LD=$lt_cv_path_LDCXX
|
|---|
| 3679 | else
|
|---|
| 3680 | unset lt_cv_path_LD
|
|---|
| 3681 | fi
|
|---|
| 3682 | test -z "${LDCXX+set}" || LD=$LDCXX
|
|---|
| 3683 | CC=${CXX-"c++"}
|
|---|
| 3684 | compiler=$CC
|
|---|
| 3685 | _LT_AC_TAGVAR(compiler, $1)=$CC
|
|---|
| 3686 | _LT_CC_BASENAME([$compiler])
|
|---|
| 3687 |
|
|---|
| 3688 | # We don't want -fno-exception wen compiling C++ code, so set the
|
|---|
| 3689 | # no_builtin_flag separately
|
|---|
| 3690 | if test "$GXX" = yes; then
|
|---|
| 3691 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
|---|
| 3692 | else
|
|---|
| 3693 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
|---|
| 3694 | fi
|
|---|
| 3695 |
|
|---|
| 3696 | if test "$GXX" = yes; then
|
|---|
| 3697 | # Set up default GNU C++ configuration
|
|---|
| 3698 |
|
|---|
| 3699 | AC_PROG_LD
|
|---|
| 3700 |
|
|---|
| 3701 | # Check if GNU C++ uses GNU ld as the underlying linker, since the
|
|---|
| 3702 | # archiving commands below assume that GNU ld is being used.
|
|---|
| 3703 | if test "$with_gnu_ld" = yes; then
|
|---|
| 3704 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|---|
| 3705 | _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'
|
|---|
| 3706 |
|
|---|
| 3707 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
|---|
| 3708 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|---|
| 3709 |
|
|---|
| 3710 | # If archive_cmds runs LD, not CC, wlarc should be empty
|
|---|
| 3711 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
|---|
| 3712 | # investigate it a little bit more. (MM)
|
|---|
| 3713 | wlarc='${wl}'
|
|---|
| 3714 |
|
|---|
| 3715 | # ancient GNU ld didn't support --whole-archive et. al.
|
|---|
| 3716 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
|
|---|
| 3717 | grep 'no-whole-archive' > /dev/null; then
|
|---|
| 3718 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|---|
| 3719 | else
|
|---|
| 3720 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
|---|
| 3721 | fi
|
|---|
| 3722 | else
|
|---|
| 3723 | with_gnu_ld=no
|
|---|
| 3724 | wlarc=
|
|---|
| 3725 |
|
|---|
| 3726 | # A generic and very simple default shared library creation
|
|---|
| 3727 | # command for GNU C++ for the case where it uses the native
|
|---|
| 3728 | # linker, instead of GNU ld. If possible, this setting should
|
|---|
| 3729 | # overridden to take advantage of the native linker features on
|
|---|
| 3730 | # the platform it is being used on.
|
|---|
| 3731 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
|---|
| 3732 | fi
|
|---|
| 3733 |
|
|---|
| 3734 | # Commands to make compiler produce verbose output that lists
|
|---|
| 3735 | # what "hidden" libraries, object files and flags are used when
|
|---|
| 3736 | # linking a shared library.
|
|---|
| 3737 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
|---|
| 3738 |
|
|---|
| 3739 | else
|
|---|
| 3740 | GXX=no
|
|---|
| 3741 | with_gnu_ld=no
|
|---|
| 3742 | wlarc=
|
|---|
| 3743 | fi
|
|---|
| 3744 |
|
|---|
| 3745 | # PORTME: fill in a description of your system's C++ link characteristics
|
|---|
| 3746 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
|---|
| 3747 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
|---|
| 3748 | case $host_os in
|
|---|
| 3749 | aix3*)
|
|---|
| 3750 | # FIXME: insert proper C++ library support
|
|---|
| 3751 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 3752 | ;;
|
|---|
| 3753 | aix4* | aix5*)
|
|---|
| 3754 | if test "$host_cpu" = ia64; then
|
|---|
| 3755 | # On IA64, the linker does run time linking by default, so we don't
|
|---|
| 3756 | # have to do anything special.
|
|---|
| 3757 | aix_use_runtimelinking=no
|
|---|
| 3758 | exp_sym_flag='-Bexport'
|
|---|
| 3759 | no_entry_flag=""
|
|---|
| 3760 | else
|
|---|
| 3761 | aix_use_runtimelinking=no
|
|---|
| 3762 |
|
|---|
| 3763 | # Test if we are trying to use run time linking or normal
|
|---|
| 3764 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
|---|
| 3765 | # need to do runtime linking.
|
|---|
| 3766 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
|
|---|
| 3767 | for ld_flag in $LDFLAGS; do
|
|---|
| 3768 | case $ld_flag in
|
|---|
| 3769 | *-brtl*)
|
|---|
| 3770 | aix_use_runtimelinking=yes
|
|---|
| 3771 | break
|
|---|
| 3772 | ;;
|
|---|
| 3773 | esac
|
|---|
| 3774 | done
|
|---|
| 3775 | esac
|
|---|
| 3776 |
|
|---|
| 3777 | exp_sym_flag='-bexport'
|
|---|
| 3778 | no_entry_flag='-bnoentry'
|
|---|
| 3779 | fi
|
|---|
| 3780 |
|
|---|
| 3781 | # When large executables or shared objects are built, AIX ld can
|
|---|
| 3782 | # have problems creating the table of contents. If linking a library
|
|---|
| 3783 | # or program results in "error TOC overflow" add -mminimal-toc to
|
|---|
| 3784 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
|---|
| 3785 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
|---|
| 3786 |
|
|---|
| 3787 | _LT_AC_TAGVAR(archive_cmds, $1)=''
|
|---|
| 3788 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 3789 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
|---|
| 3790 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|---|
| 3791 |
|
|---|
| 3792 | if test "$GXX" = yes; then
|
|---|
| 3793 | case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
|---|
| 3794 | # We only want to do this on AIX 4.2 and lower, the check
|
|---|
| 3795 | # below for broken collect2 doesn't work under 4.3+
|
|---|
| 3796 | collect2name=`${CC} -print-prog-name=collect2`
|
|---|
| 3797 | if test -f "$collect2name" && \
|
|---|
| 3798 | strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|---|
| 3799 | then
|
|---|
| 3800 | # We have reworked collect2
|
|---|
| 3801 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 3802 | else
|
|---|
| 3803 | # We have old collect2
|
|---|
| 3804 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
|---|
| 3805 | # It fails to find uninstalled libraries when the uninstalled
|
|---|
| 3806 | # path is not listed in the libpath. Setting hardcode_minus_L
|
|---|
| 3807 | # to unsupported forces relinking
|
|---|
| 3808 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|---|
| 3809 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|---|
| 3810 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
|---|
| 3811 | fi
|
|---|
| 3812 | esac
|
|---|
| 3813 | shared_flag='-shared'
|
|---|
| 3814 | if test "$aix_use_runtimelinking" = yes; then
|
|---|
| 3815 | shared_flag="$shared_flag "'${wl}-G'
|
|---|
| 3816 | fi
|
|---|
| 3817 | else
|
|---|
| 3818 | # not using gcc
|
|---|
| 3819 | if test "$host_cpu" = ia64; then
|
|---|
| 3820 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
|---|
| 3821 | # chokes on -Wl,-G. The following line is correct:
|
|---|
| 3822 | shared_flag='-G'
|
|---|
| 3823 | else
|
|---|
| 3824 | if test "$aix_use_runtimelinking" = yes; then
|
|---|
| 3825 | shared_flag='${wl}-G'
|
|---|
| 3826 | else
|
|---|
| 3827 | shared_flag='${wl}-bM:SRE'
|
|---|
| 3828 | fi
|
|---|
| 3829 | fi
|
|---|
| 3830 | fi
|
|---|
| 3831 |
|
|---|
| 3832 | # It seems that -bexpall does not export symbols beginning with
|
|---|
| 3833 | # underscore (_), so it is better to generate a list of symbols to export.
|
|---|
| 3834 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
|---|
| 3835 | if test "$aix_use_runtimelinking" = yes; then
|
|---|
| 3836 | # Warning - without using the other runtime loading flags (-brtl),
|
|---|
| 3837 | # -berok will link without error, but may produce a broken library.
|
|---|
| 3838 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
|
|---|
| 3839 | # Determine the default libpath from the value encoded in an empty executable.
|
|---|
| 3840 | _LT_AC_SYS_LIBPATH_AIX
|
|---|
| 3841 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|---|
| 3842 |
|
|---|
| 3843 | _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"
|
|---|
| 3844 | else
|
|---|
| 3845 | if test "$host_cpu" = ia64; then
|
|---|
| 3846 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
|---|
| 3847 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
|---|
| 3848 | _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"
|
|---|
| 3849 | else
|
|---|
| 3850 | # Determine the default libpath from the value encoded in an empty executable.
|
|---|
| 3851 | _LT_AC_SYS_LIBPATH_AIX
|
|---|
| 3852 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|---|
| 3853 | # Warning - without using the other run time loading flags,
|
|---|
| 3854 | # -berok will link without error, but may produce a broken library.
|
|---|
| 3855 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
|---|
| 3856 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
|---|
| 3857 | # -bexpall does not export symbols beginning with underscore (_)
|
|---|
| 3858 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
|---|
| 3859 | # Exported symbols can be pulled into shared objects from archives
|
|---|
| 3860 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
|
|---|
| 3861 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|---|
| 3862 | # This is similar to how AIX traditionally builds it's shared libraries.
|
|---|
| 3863 | _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'
|
|---|
| 3864 | fi
|
|---|
| 3865 | fi
|
|---|
| 3866 | ;;
|
|---|
| 3867 | chorus*)
|
|---|
| 3868 | case $cc_basename in
|
|---|
| 3869 | *)
|
|---|
| 3870 | # FIXME: insert proper C++ library support
|
|---|
| 3871 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 3872 | ;;
|
|---|
| 3873 | esac
|
|---|
| 3874 | ;;
|
|---|
| 3875 |
|
|---|
| 3876 |
|
|---|
| 3877 | cygwin* | mingw* | pw32*)
|
|---|
| 3878 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
|---|
| 3879 | # as there is no search path for DLLs.
|
|---|
| 3880 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|---|
| 3881 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|---|
| 3882 | _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
|---|
| 3883 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|---|
| 3884 |
|
|---|
| 3885 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
|---|
| 3886 | _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'
|
|---|
| 3887 | # If the export-symbols file already is a .def file (1st line
|
|---|
| 3888 | # is EXPORTS), use it as is; otherwise, prepend...
|
|---|
| 3889 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|---|
| 3890 | cp $export_symbols $output_objdir/$soname.def;
|
|---|
| 3891 | else
|
|---|
| 3892 | echo EXPORTS > $output_objdir/$soname.def;
|
|---|
| 3893 | cat $export_symbols >> $output_objdir/$soname.def;
|
|---|
| 3894 | fi~
|
|---|
| 3895 | $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'
|
|---|
| 3896 | else
|
|---|
| 3897 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 3898 | fi
|
|---|
| 3899 | ;;
|
|---|
| 3900 | darwin* | rhapsody*)
|
|---|
| 3901 | case "$host_os" in
|
|---|
| 3902 | rhapsody* | darwin1.[[012]])
|
|---|
| 3903 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
|
|---|
| 3904 | ;;
|
|---|
| 3905 | *) # Darwin 1.3 on
|
|---|
| 3906 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
|---|
| 3907 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|---|
| 3908 | else
|
|---|
| 3909 | case ${MACOSX_DEPLOYMENT_TARGET} in
|
|---|
| 3910 | 10.[[012]])
|
|---|
| 3911 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|---|
| 3912 | ;;
|
|---|
| 3913 | 10.*)
|
|---|
| 3914 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
|
|---|
| 3915 | ;;
|
|---|
| 3916 | esac
|
|---|
| 3917 | fi
|
|---|
| 3918 | ;;
|
|---|
| 3919 | esac
|
|---|
| 3920 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|---|
| 3921 | _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|---|
| 3922 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
|
|---|
| 3923 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|---|
| 3924 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
|
|---|
| 3925 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|---|
| 3926 |
|
|---|
| 3927 | if test "$GXX" = yes ; then
|
|---|
| 3928 | lt_int_apple_cc_single_mod=no
|
|---|
| 3929 | output_verbose_link_cmd='echo'
|
|---|
| 3930 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
|
|---|
| 3931 | lt_int_apple_cc_single_mod=yes
|
|---|
| 3932 | fi
|
|---|
| 3933 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
|---|
| 3934 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
|---|
| 3935 | else
|
|---|
| 3936 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
|---|
| 3937 | fi
|
|---|
| 3938 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|---|
| 3939 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
|---|
| 3940 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
|---|
| 3941 | _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}'
|
|---|
| 3942 | else
|
|---|
| 3943 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|---|
| 3944 | fi
|
|---|
| 3945 | _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}'
|
|---|
| 3946 | else
|
|---|
| 3947 | case $cc_basename in
|
|---|
| 3948 | xlc*)
|
|---|
| 3949 | output_verbose_link_cmd='echo'
|
|---|
| 3950 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
|---|
| 3951 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|---|
| 3952 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
|---|
| 3953 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|---|
| 3954 | _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}'
|
|---|
| 3955 | ;;
|
|---|
| 3956 | *)
|
|---|
| 3957 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 3958 | ;;
|
|---|
| 3959 | esac
|
|---|
| 3960 | fi
|
|---|
| 3961 | ;;
|
|---|
| 3962 |
|
|---|
| 3963 | dgux*)
|
|---|
| 3964 | case $cc_basename in
|
|---|
| 3965 | ec++*)
|
|---|
| 3966 | # FIXME: insert proper C++ library support
|
|---|
| 3967 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 3968 | ;;
|
|---|
| 3969 | ghcx*)
|
|---|
| 3970 | # Green Hills C++ Compiler
|
|---|
| 3971 | # FIXME: insert proper C++ library support
|
|---|
| 3972 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 3973 | ;;
|
|---|
| 3974 | *)
|
|---|
| 3975 | # FIXME: insert proper C++ library support
|
|---|
| 3976 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 3977 | ;;
|
|---|
| 3978 | esac
|
|---|
| 3979 | ;;
|
|---|
| 3980 | freebsd[[12]]*)
|
|---|
| 3981 | # C++ shared libraries reported to be fairly broken before switch to ELF
|
|---|
| 3982 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 3983 | ;;
|
|---|
| 3984 | freebsd-elf*)
|
|---|
| 3985 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|---|
| 3986 | ;;
|
|---|
| 3987 | freebsd* | kfreebsd*-gnu | dragonfly*)
|
|---|
| 3988 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
|---|
| 3989 | # conventions
|
|---|
| 3990 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
|---|
| 3991 | ;;
|
|---|
| 3992 | gnu*)
|
|---|
| 3993 | ;;
|
|---|
| 3994 | hpux9*)
|
|---|
| 3995 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|---|
| 3996 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 3997 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|---|
| 3998 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 3999 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
|---|
| 4000 | # but as the default
|
|---|
| 4001 | # location of the library.
|
|---|
| 4002 |
|
|---|
| 4003 | case $cc_basename in
|
|---|
| 4004 | CC*)
|
|---|
| 4005 | # FIXME: insert proper C++ library support
|
|---|
| 4006 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4007 | ;;
|
|---|
| 4008 | aCC*)
|
|---|
| 4009 | _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'
|
|---|
| 4010 | # Commands to make compiler produce verbose output that lists
|
|---|
| 4011 | # what "hidden" libraries, object files and flags are used when
|
|---|
| 4012 | # linking a shared library.
|
|---|
| 4013 | #
|
|---|
| 4014 | # There doesn't appear to be a way to prevent this compiler from
|
|---|
| 4015 | # explicitly linking system object files so we need to strip them
|
|---|
| 4016 | # from the output so that they don't get included in the library
|
|---|
| 4017 | # dependencies.
|
|---|
| 4018 | 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'
|
|---|
| 4019 | ;;
|
|---|
| 4020 | *)
|
|---|
| 4021 | if test "$GXX" = yes; then
|
|---|
| 4022 | _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'
|
|---|
| 4023 | else
|
|---|
| 4024 | # FIXME: insert proper C++ library support
|
|---|
| 4025 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4026 | fi
|
|---|
| 4027 | ;;
|
|---|
| 4028 | esac
|
|---|
| 4029 | ;;
|
|---|
| 4030 | hpux10*|hpux11*)
|
|---|
| 4031 | if test $with_gnu_ld = no; then
|
|---|
| 4032 | case "$host_cpu" in
|
|---|
| 4033 | hppa*64*)
|
|---|
| 4034 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|---|
| 4035 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
|---|
| 4036 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 4037 | ;;
|
|---|
| 4038 | ia64*)
|
|---|
| 4039 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|---|
| 4040 | ;;
|
|---|
| 4041 | *)
|
|---|
| 4042 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|---|
| 4043 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 4044 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|---|
| 4045 | ;;
|
|---|
| 4046 | esac
|
|---|
| 4047 | fi
|
|---|
| 4048 | case "$host_cpu" in
|
|---|
| 4049 | hppa*64*)
|
|---|
| 4050 | _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|---|
| 4051 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 4052 | ;;
|
|---|
| 4053 | ia64*)
|
|---|
| 4054 | _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|---|
| 4055 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 4056 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
|---|
| 4057 | # but as the default
|
|---|
| 4058 | # location of the library.
|
|---|
| 4059 | ;;
|
|---|
| 4060 | *)
|
|---|
| 4061 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 4062 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
|---|
| 4063 | # but as the default
|
|---|
| 4064 | # location of the library.
|
|---|
| 4065 | ;;
|
|---|
| 4066 | esac
|
|---|
| 4067 |
|
|---|
| 4068 | case $cc_basename in
|
|---|
| 4069 | CC*)
|
|---|
| 4070 | # FIXME: insert proper C++ library support
|
|---|
| 4071 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4072 | ;;
|
|---|
| 4073 | aCC*)
|
|---|
| 4074 | case "$host_cpu" in
|
|---|
| 4075 | hppa*64*|ia64*)
|
|---|
| 4076 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
|
|---|
| 4077 | ;;
|
|---|
| 4078 | *)
|
|---|
| 4079 | _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'
|
|---|
| 4080 | ;;
|
|---|
| 4081 | esac
|
|---|
| 4082 | # Commands to make compiler produce verbose output that lists
|
|---|
| 4083 | # what "hidden" libraries, object files and flags are used when
|
|---|
| 4084 | # linking a shared library.
|
|---|
| 4085 | #
|
|---|
| 4086 | # There doesn't appear to be a way to prevent this compiler from
|
|---|
| 4087 | # explicitly linking system object files so we need to strip them
|
|---|
| 4088 | # from the output so that they don't get included in the library
|
|---|
| 4089 | # dependencies.
|
|---|
| 4090 | 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'
|
|---|
| 4091 | ;;
|
|---|
| 4092 | *)
|
|---|
| 4093 | if test "$GXX" = yes; then
|
|---|
| 4094 | if test $with_gnu_ld = no; then
|
|---|
| 4095 | case "$host_cpu" in
|
|---|
| 4096 | ia64*|hppa*64*)
|
|---|
| 4097 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
|
|---|
| 4098 | ;;
|
|---|
| 4099 | *)
|
|---|
| 4100 | _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'
|
|---|
| 4101 | ;;
|
|---|
| 4102 | esac
|
|---|
| 4103 | fi
|
|---|
| 4104 | else
|
|---|
| 4105 | # FIXME: insert proper C++ library support
|
|---|
| 4106 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4107 | fi
|
|---|
| 4108 | ;;
|
|---|
| 4109 | esac
|
|---|
| 4110 | ;;
|
|---|
| 4111 | irix5* | irix6*)
|
|---|
| 4112 | case $cc_basename in
|
|---|
| 4113 | CC*)
|
|---|
| 4114 | # SGI C++
|
|---|
| 4115 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|---|
| 4116 |
|
|---|
| 4117 | # Archives containing C++ object files must be created using
|
|---|
| 4118 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
|---|
| 4119 | # necessary to make sure instantiated templates are included
|
|---|
| 4120 | # in the archive.
|
|---|
| 4121 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
|---|
| 4122 | ;;
|
|---|
| 4123 | *)
|
|---|
| 4124 | if test "$GXX" = yes; then
|
|---|
| 4125 | if test "$with_gnu_ld" = no; then
|
|---|
| 4126 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|---|
| 4127 | else
|
|---|
| 4128 | _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'
|
|---|
| 4129 | fi
|
|---|
| 4130 | fi
|
|---|
| 4131 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|---|
| 4132 | ;;
|
|---|
| 4133 | esac
|
|---|
| 4134 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|---|
| 4135 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 4136 | ;;
|
|---|
| 4137 | linux*)
|
|---|
| 4138 | case $cc_basename in
|
|---|
| 4139 | KCC*)
|
|---|
| 4140 | # Kuck and Associates, Inc. (KAI) C++ Compiler
|
|---|
| 4141 |
|
|---|
| 4142 | # KCC will only create a shared library if the output file
|
|---|
| 4143 | # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
|---|
| 4144 | # to its proper name (with version) after linking.
|
|---|
| 4145 | _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'
|
|---|
| 4146 | _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'
|
|---|
| 4147 | # Commands to make compiler produce verbose output that lists
|
|---|
| 4148 | # what "hidden" libraries, object files and flags are used when
|
|---|
| 4149 | # linking a shared library.
|
|---|
| 4150 | #
|
|---|
| 4151 | # There doesn't appear to be a way to prevent this compiler from
|
|---|
| 4152 | # explicitly linking system object files so we need to strip them
|
|---|
| 4153 | # from the output so that they don't get included in the library
|
|---|
| 4154 | # dependencies.
|
|---|
| 4155 | 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'
|
|---|
| 4156 |
|
|---|
| 4157 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
|
|---|
| 4158 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|---|
| 4159 |
|
|---|
| 4160 | # Archives containing C++ object files must be created using
|
|---|
| 4161 | # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
|---|
| 4162 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
|---|
| 4163 | ;;
|
|---|
| 4164 | icpc*)
|
|---|
| 4165 | # Intel C++
|
|---|
| 4166 | with_gnu_ld=yes
|
|---|
| 4167 | # version 8.0 and above of icpc choke on multiply defined symbols
|
|---|
| 4168 | # if we add $predep_objects and $postdep_objects, however 7.1 and
|
|---|
| 4169 | # earlier do not add the objects themselves.
|
|---|
| 4170 | case `$CC -V 2>&1` in
|
|---|
| 4171 | *"Version 7."*)
|
|---|
| 4172 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|---|
| 4173 | _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'
|
|---|
| 4174 | ;;
|
|---|
| 4175 | *) # Version 8.0 or newer
|
|---|
| 4176 | tmp_idyn=
|
|---|
| 4177 | case $host_cpu in
|
|---|
| 4178 | ia64*) tmp_idyn=' -i_dynamic';;
|
|---|
| 4179 | esac
|
|---|
| 4180 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|---|
| 4181 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|---|
| 4182 | ;;
|
|---|
| 4183 | esac
|
|---|
| 4184 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|---|
| 4185 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|---|
| 4186 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|---|
| 4187 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
|---|
| 4188 | ;;
|
|---|
| 4189 | pgCC*)
|
|---|
| 4190 | # Portland Group C++ compiler
|
|---|
| 4191 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
|---|
| 4192 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
|---|
| 4193 |
|
|---|
| 4194 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
|---|
| 4195 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|---|
| 4196 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|---|
| 4197 | ;;
|
|---|
| 4198 | cxx*)
|
|---|
| 4199 | # Compaq C++
|
|---|
| 4200 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|---|
| 4201 | _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'
|
|---|
| 4202 |
|
|---|
| 4203 | runpath_var=LD_RUN_PATH
|
|---|
| 4204 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
|---|
| 4205 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 4206 |
|
|---|
| 4207 | # Commands to make compiler produce verbose output that lists
|
|---|
| 4208 | # what "hidden" libraries, object files and flags are used when
|
|---|
| 4209 | # linking a shared library.
|
|---|
| 4210 | #
|
|---|
| 4211 | # There doesn't appear to be a way to prevent this compiler from
|
|---|
| 4212 | # explicitly linking system object files so we need to strip them
|
|---|
| 4213 | # from the output so that they don't get included in the library
|
|---|
| 4214 | # dependencies.
|
|---|
| 4215 | 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'
|
|---|
| 4216 | ;;
|
|---|
| 4217 | esac
|
|---|
| 4218 | ;;
|
|---|
| 4219 | lynxos*)
|
|---|
| 4220 | # FIXME: insert proper C++ library support
|
|---|
| 4221 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4222 | ;;
|
|---|
| 4223 | m88k*)
|
|---|
| 4224 | # FIXME: insert proper C++ library support
|
|---|
| 4225 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4226 | ;;
|
|---|
| 4227 | mvs*)
|
|---|
| 4228 | case $cc_basename in
|
|---|
| 4229 | cxx*)
|
|---|
| 4230 | # FIXME: insert proper C++ library support
|
|---|
| 4231 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4232 | ;;
|
|---|
| 4233 | *)
|
|---|
| 4234 | # FIXME: insert proper C++ library support
|
|---|
| 4235 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4236 | ;;
|
|---|
| 4237 | esac
|
|---|
| 4238 | ;;
|
|---|
| 4239 | netbsd*)
|
|---|
| 4240 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|---|
| 4241 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
|---|
| 4242 | wlarc=
|
|---|
| 4243 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|---|
| 4244 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 4245 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 4246 | fi
|
|---|
| 4247 | # Workaround some broken pre-1.5 toolchains
|
|---|
| 4248 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
|---|
| 4249 | ;;
|
|---|
| 4250 | openbsd2*)
|
|---|
| 4251 | # C++ shared libraries are fairly broken
|
|---|
| 4252 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4253 | ;;
|
|---|
| 4254 | openbsd*)
|
|---|
| 4255 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 4256 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 4257 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
|---|
| 4258 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|---|
| 4259 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|---|
| 4260 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
|
|---|
| 4261 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|---|
| 4262 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|---|
| 4263 | fi
|
|---|
| 4264 | output_verbose_link_cmd='echo'
|
|---|
| 4265 | ;;
|
|---|
| 4266 | osf3*)
|
|---|
| 4267 | case $cc_basename in
|
|---|
| 4268 | KCC*)
|
|---|
| 4269 | # Kuck and Associates, Inc. (KAI) C++ Compiler
|
|---|
| 4270 |
|
|---|
| 4271 | # KCC will only create a shared library if the output file
|
|---|
| 4272 | # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
|---|
| 4273 | # to its proper name (with version) after linking.
|
|---|
| 4274 | _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'
|
|---|
| 4275 |
|
|---|
| 4276 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|---|
| 4277 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 4278 |
|
|---|
| 4279 | # Archives containing C++ object files must be created using
|
|---|
| 4280 | # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
|---|
| 4281 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
|---|
| 4282 |
|
|---|
| 4283 | ;;
|
|---|
| 4284 | RCC*)
|
|---|
| 4285 | # Rational C++ 2.4.1
|
|---|
| 4286 | # FIXME: insert proper C++ library support
|
|---|
| 4287 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4288 | ;;
|
|---|
| 4289 | cxx*)
|
|---|
| 4290 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|---|
| 4291 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|---|
| 4292 |
|
|---|
| 4293 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|---|
| 4294 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 4295 |
|
|---|
| 4296 | # Commands to make compiler produce verbose output that lists
|
|---|
| 4297 | # what "hidden" libraries, object files and flags are used when
|
|---|
| 4298 | # linking a shared library.
|
|---|
| 4299 | #
|
|---|
| 4300 | # There doesn't appear to be a way to prevent this compiler from
|
|---|
| 4301 | # explicitly linking system object files so we need to strip them
|
|---|
| 4302 | # from the output so that they don't get included in the library
|
|---|
| 4303 | # dependencies.
|
|---|
| 4304 | 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'
|
|---|
| 4305 | ;;
|
|---|
| 4306 | *)
|
|---|
| 4307 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|---|
| 4308 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|---|
| 4309 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|---|
| 4310 |
|
|---|
| 4311 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|---|
| 4312 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 4313 |
|
|---|
| 4314 | # Commands to make compiler produce verbose output that lists
|
|---|
| 4315 | # what "hidden" libraries, object files and flags are used when
|
|---|
| 4316 | # linking a shared library.
|
|---|
| 4317 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
|---|
| 4318 |
|
|---|
| 4319 | else
|
|---|
| 4320 | # FIXME: insert proper C++ library support
|
|---|
| 4321 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4322 | fi
|
|---|
| 4323 | ;;
|
|---|
| 4324 | esac
|
|---|
| 4325 | ;;
|
|---|
| 4326 | osf4* | osf5*)
|
|---|
| 4327 | case $cc_basename in
|
|---|
| 4328 | KCC*)
|
|---|
| 4329 | # Kuck and Associates, Inc. (KAI) C++ Compiler
|
|---|
| 4330 |
|
|---|
| 4331 | # KCC will only create a shared library if the output file
|
|---|
| 4332 | # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
|---|
| 4333 | # to its proper name (with version) after linking.
|
|---|
| 4334 | _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'
|
|---|
| 4335 |
|
|---|
| 4336 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|---|
| 4337 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 4338 |
|
|---|
| 4339 | # Archives containing C++ object files must be created using
|
|---|
| 4340 | # the KAI C++ compiler.
|
|---|
| 4341 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
|
|---|
| 4342 | ;;
|
|---|
| 4343 | RCC*)
|
|---|
| 4344 | # Rational C++ 2.4.1
|
|---|
| 4345 | # FIXME: insert proper C++ library support
|
|---|
| 4346 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4347 | ;;
|
|---|
| 4348 | cxx*)
|
|---|
| 4349 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
|---|
| 4350 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|---|
| 4351 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
|---|
| 4352 | echo "-hidden">> $lib.exp~
|
|---|
| 4353 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
|
|---|
| 4354 | $rm $lib.exp'
|
|---|
| 4355 |
|
|---|
| 4356 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
|---|
| 4357 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 4358 |
|
|---|
| 4359 | # Commands to make compiler produce verbose output that lists
|
|---|
| 4360 | # what "hidden" libraries, object files and flags are used when
|
|---|
| 4361 | # linking a shared library.
|
|---|
| 4362 | #
|
|---|
| 4363 | # There doesn't appear to be a way to prevent this compiler from
|
|---|
| 4364 | # explicitly linking system object files so we need to strip them
|
|---|
| 4365 | # from the output so that they don't get included in the library
|
|---|
| 4366 | # dependencies.
|
|---|
| 4367 | 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'
|
|---|
| 4368 | ;;
|
|---|
| 4369 | *)
|
|---|
| 4370 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|---|
| 4371 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|---|
| 4372 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|---|
| 4373 |
|
|---|
| 4374 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|---|
| 4375 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 4376 |
|
|---|
| 4377 | # Commands to make compiler produce verbose output that lists
|
|---|
| 4378 | # what "hidden" libraries, object files and flags are used when
|
|---|
| 4379 | # linking a shared library.
|
|---|
| 4380 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
|---|
| 4381 |
|
|---|
| 4382 | else
|
|---|
| 4383 | # FIXME: insert proper C++ library support
|
|---|
| 4384 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4385 | fi
|
|---|
| 4386 | ;;
|
|---|
| 4387 | esac
|
|---|
| 4388 | ;;
|
|---|
| 4389 | psos*)
|
|---|
| 4390 | # FIXME: insert proper C++ library support
|
|---|
| 4391 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4392 | ;;
|
|---|
| 4393 | sco*)
|
|---|
| 4394 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|---|
| 4395 | case $cc_basename in
|
|---|
| 4396 | CC*)
|
|---|
| 4397 | # FIXME: insert proper C++ library support
|
|---|
| 4398 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4399 | ;;
|
|---|
| 4400 | *)
|
|---|
| 4401 | # FIXME: insert proper C++ library support
|
|---|
| 4402 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4403 | ;;
|
|---|
| 4404 | esac
|
|---|
| 4405 | ;;
|
|---|
| 4406 | sunos4*)
|
|---|
| 4407 | case $cc_basename in
|
|---|
| 4408 | CC*)
|
|---|
| 4409 | # Sun C++ 4.x
|
|---|
| 4410 | # FIXME: insert proper C++ library support
|
|---|
| 4411 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4412 | ;;
|
|---|
| 4413 | lcc*)
|
|---|
| 4414 | # Lucid
|
|---|
| 4415 | # FIXME: insert proper C++ library support
|
|---|
| 4416 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4417 | ;;
|
|---|
| 4418 | *)
|
|---|
| 4419 | # FIXME: insert proper C++ library support
|
|---|
| 4420 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4421 | ;;
|
|---|
| 4422 | esac
|
|---|
| 4423 | ;;
|
|---|
| 4424 | solaris*)
|
|---|
| 4425 | case $cc_basename in
|
|---|
| 4426 | CC*)
|
|---|
| 4427 | # Sun C++ 4.2, 5.x and Centerline C++
|
|---|
| 4428 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
|---|
| 4429 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|---|
| 4430 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|---|
| 4431 | $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'
|
|---|
| 4432 |
|
|---|
| 4433 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|---|
| 4434 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 4435 | case $host_os in
|
|---|
| 4436 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
|---|
| 4437 | *)
|
|---|
| 4438 | # The C++ compiler is used as linker so we must use $wl
|
|---|
| 4439 | # flag to pass the commands to the underlying system
|
|---|
| 4440 | # linker. We must also pass each convience library through
|
|---|
| 4441 | # to the system linker between allextract/defaultextract.
|
|---|
| 4442 | # The C++ compiler will combine linker options so we
|
|---|
| 4443 | # cannot just pass the convience library names through
|
|---|
| 4444 | # without $wl.
|
|---|
| 4445 | # Supported since Solaris 2.6 (maybe 2.5.1?)
|
|---|
| 4446 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
|
|---|
| 4447 | ;;
|
|---|
| 4448 | esac
|
|---|
| 4449 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|---|
| 4450 |
|
|---|
| 4451 | # Commands to make compiler produce verbose output that lists
|
|---|
| 4452 | # what "hidden" libraries, object files and flags are used when
|
|---|
| 4453 | # linking a shared library.
|
|---|
| 4454 | #
|
|---|
| 4455 | # There doesn't appear to be a way to prevent this compiler from
|
|---|
| 4456 | # explicitly linking system object files so we need to strip them
|
|---|
| 4457 | # from the output so that they don't get included in the library
|
|---|
| 4458 | # dependencies.
|
|---|
| 4459 | 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'
|
|---|
| 4460 |
|
|---|
| 4461 | # Archives containing C++ object files must be created using
|
|---|
| 4462 | # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
|---|
| 4463 | # necessary to make sure instantiated templates are included
|
|---|
| 4464 | # in the archive.
|
|---|
| 4465 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
|---|
| 4466 | ;;
|
|---|
| 4467 | gcx*)
|
|---|
| 4468 | # Green Hills C++ Compiler
|
|---|
| 4469 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|---|
| 4470 |
|
|---|
| 4471 | # The C++ compiler must be used to create the archive.
|
|---|
| 4472 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
|---|
| 4473 | ;;
|
|---|
| 4474 | *)
|
|---|
| 4475 | # GNU C++ compiler with Solaris linker
|
|---|
| 4476 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|---|
| 4477 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
|
|---|
| 4478 | if $CC --version | grep -v '^2\.7' > /dev/null; then
|
|---|
| 4479 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|---|
| 4480 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|---|
| 4481 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
|---|
| 4482 |
|
|---|
| 4483 | # Commands to make compiler produce verbose output that lists
|
|---|
| 4484 | # what "hidden" libraries, object files and flags are used when
|
|---|
| 4485 | # linking a shared library.
|
|---|
| 4486 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
|---|
| 4487 | else
|
|---|
| 4488 | # g++ 2.7 appears to require `-G' NOT `-shared' on this
|
|---|
| 4489 | # platform.
|
|---|
| 4490 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|---|
| 4491 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|---|
| 4492 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
|---|
| 4493 |
|
|---|
| 4494 | # Commands to make compiler produce verbose output that lists
|
|---|
| 4495 | # what "hidden" libraries, object files and flags are used when
|
|---|
| 4496 | # linking a shared library.
|
|---|
| 4497 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
|---|
| 4498 | fi
|
|---|
| 4499 |
|
|---|
| 4500 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
|
|---|
| 4501 | fi
|
|---|
| 4502 | ;;
|
|---|
| 4503 | esac
|
|---|
| 4504 | ;;
|
|---|
| 4505 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
|
|---|
| 4506 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|---|
| 4507 | ;;
|
|---|
| 4508 | tandem*)
|
|---|
| 4509 | case $cc_basename in
|
|---|
| 4510 | NCC*)
|
|---|
| 4511 | # NonStop-UX NCC 3.20
|
|---|
| 4512 | # FIXME: insert proper C++ library support
|
|---|
| 4513 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4514 | ;;
|
|---|
| 4515 | *)
|
|---|
| 4516 | # FIXME: insert proper C++ library support
|
|---|
| 4517 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4518 | ;;
|
|---|
| 4519 | esac
|
|---|
| 4520 | ;;
|
|---|
| 4521 | vxworks*)
|
|---|
| 4522 | # FIXME: insert proper C++ library support
|
|---|
| 4523 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4524 | ;;
|
|---|
| 4525 | *)
|
|---|
| 4526 | # FIXME: insert proper C++ library support
|
|---|
| 4527 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 4528 | ;;
|
|---|
| 4529 | esac
|
|---|
| 4530 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
|
|---|
| 4531 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
|---|
| 4532 |
|
|---|
| 4533 | _LT_AC_TAGVAR(GCC, $1)="$GXX"
|
|---|
| 4534 | _LT_AC_TAGVAR(LD, $1)="$LD"
|
|---|
| 4535 |
|
|---|
| 4536 | AC_LIBTOOL_POSTDEP_PREDEP($1)
|
|---|
| 4537 | AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
|---|
| 4538 | AC_LIBTOOL_PROG_CC_C_O($1)
|
|---|
| 4539 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
|---|
| 4540 | AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
|---|
| 4541 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
|---|
| 4542 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
|---|
| 4543 | AC_LIBTOOL_SYS_LIB_STRIP
|
|---|
| 4544 | AC_LIBTOOL_DLOPEN_SELF($1)
|
|---|
| 4545 |
|
|---|
| 4546 | AC_LIBTOOL_CONFIG($1)
|
|---|
| 4547 |
|
|---|
| 4548 | AC_LANG_POP
|
|---|
| 4549 | CC=$lt_save_CC
|
|---|
| 4550 | LDCXX=$LD
|
|---|
| 4551 | LD=$lt_save_LD
|
|---|
| 4552 | GCC=$lt_save_GCC
|
|---|
| 4553 | with_gnu_ldcxx=$with_gnu_ld
|
|---|
| 4554 | with_gnu_ld=$lt_save_with_gnu_ld
|
|---|
| 4555 | lt_cv_path_LDCXX=$lt_cv_path_LD
|
|---|
| 4556 | lt_cv_path_LD=$lt_save_path_LD
|
|---|
| 4557 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
|---|
| 4558 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
|---|
| 4559 | ])# AC_LIBTOOL_LANG_CXX_CONFIG
|
|---|
| 4560 |
|
|---|
| 4561 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
|
|---|
| 4562 | # ------------------------
|
|---|
| 4563 | # Figure out "hidden" library dependencies from verbose
|
|---|
| 4564 | # compiler output when linking a shared library.
|
|---|
| 4565 | # Parse the compiler output and extract the necessary
|
|---|
| 4566 | # objects, libraries and library flags.
|
|---|
| 4567 | AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
|
|---|
| 4568 | dnl we can't use the lt_simple_compile_test_code here,
|
|---|
| 4569 | dnl because it contains code intended for an executable,
|
|---|
| 4570 | dnl not a library. It's possible we should let each
|
|---|
| 4571 | dnl tag define a new lt_????_link_test_code variable,
|
|---|
| 4572 | dnl but it's only used here...
|
|---|
| 4573 | ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
|
|---|
| 4574 | int a;
|
|---|
| 4575 | void foo (void) { a = 0; }
|
|---|
| 4576 | EOF
|
|---|
| 4577 | ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
|
|---|
| 4578 | class Foo
|
|---|
| 4579 | {
|
|---|
| 4580 | public:
|
|---|
| 4581 | Foo (void) { a = 0; }
|
|---|
| 4582 | private:
|
|---|
| 4583 | int a;
|
|---|
| 4584 | };
|
|---|
| 4585 | EOF
|
|---|
| 4586 | ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
|
|---|
| 4587 | subroutine foo
|
|---|
| 4588 | implicit none
|
|---|
| 4589 | integer*4 a
|
|---|
| 4590 | a=0
|
|---|
| 4591 | return
|
|---|
| 4592 | end
|
|---|
| 4593 | EOF
|
|---|
| 4594 | ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
|
|---|
| 4595 | public class foo {
|
|---|
| 4596 | private int a;
|
|---|
| 4597 | public void bar (void) {
|
|---|
| 4598 | a = 0;
|
|---|
| 4599 | }
|
|---|
| 4600 | };
|
|---|
| 4601 | EOF
|
|---|
| 4602 | ])
|
|---|
| 4603 | dnl Parse the compiler output and extract the necessary
|
|---|
| 4604 | dnl objects, libraries and library flags.
|
|---|
| 4605 | if AC_TRY_EVAL(ac_compile); then
|
|---|
| 4606 | # Parse the compiler output and extract the necessary
|
|---|
| 4607 | # objects, libraries and library flags.
|
|---|
| 4608 |
|
|---|
| 4609 | # Sentinel used to keep track of whether or not we are before
|
|---|
| 4610 | # the conftest object file.
|
|---|
| 4611 | pre_test_object_deps_done=no
|
|---|
| 4612 |
|
|---|
| 4613 | # The `*' in the case matches for architectures that use `case' in
|
|---|
| 4614 | # $output_verbose_cmd can trigger glob expansion during the loop
|
|---|
| 4615 | # eval without this substitution.
|
|---|
| 4616 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
|
|---|
| 4617 |
|
|---|
| 4618 | for p in `eval $output_verbose_link_cmd`; do
|
|---|
| 4619 | case $p in
|
|---|
| 4620 |
|
|---|
| 4621 | -L* | -R* | -l*)
|
|---|
| 4622 | # Some compilers place space between "-{L,R}" and the path.
|
|---|
| 4623 | # Remove the space.
|
|---|
| 4624 | if test $p = "-L" \
|
|---|
| 4625 | || test $p = "-R"; then
|
|---|
| 4626 | prev=$p
|
|---|
| 4627 | continue
|
|---|
| 4628 | else
|
|---|
| 4629 | prev=
|
|---|
| 4630 | fi
|
|---|
| 4631 |
|
|---|
| 4632 | if test "$pre_test_object_deps_done" = no; then
|
|---|
| 4633 | case $p in
|
|---|
| 4634 | -L* | -R*)
|
|---|
| 4635 | # Internal compiler library paths should come after those
|
|---|
| 4636 | # provided the user. The postdeps already come after the
|
|---|
| 4637 | # user supplied libs so there is no need to process them.
|
|---|
| 4638 | if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
|
|---|
| 4639 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
|
|---|
| 4640 | else
|
|---|
| 4641 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
|
|---|
| 4642 | fi
|
|---|
| 4643 | ;;
|
|---|
| 4644 | # The "-l" case would never come before the object being
|
|---|
| 4645 | # linked, so don't bother handling this case.
|
|---|
| 4646 | esac
|
|---|
| 4647 | else
|
|---|
| 4648 | if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
|
|---|
| 4649 | _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
|
|---|
| 4650 | else
|
|---|
| 4651 | _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
|
|---|
| 4652 | fi
|
|---|
| 4653 | fi
|
|---|
| 4654 | ;;
|
|---|
| 4655 |
|
|---|
| 4656 | *.$objext)
|
|---|
| 4657 | # This assumes that the test object file only shows up
|
|---|
| 4658 | # once in the compiler output.
|
|---|
| 4659 | if test "$p" = "conftest.$objext"; then
|
|---|
| 4660 | pre_test_object_deps_done=yes
|
|---|
| 4661 | continue
|
|---|
| 4662 | fi
|
|---|
| 4663 |
|
|---|
| 4664 | if test "$pre_test_object_deps_done" = no; then
|
|---|
| 4665 | if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
|
|---|
| 4666 | _LT_AC_TAGVAR(predep_objects, $1)="$p"
|
|---|
| 4667 | else
|
|---|
| 4668 | _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
|
|---|
| 4669 | fi
|
|---|
| 4670 | else
|
|---|
| 4671 | if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
|
|---|
| 4672 | _LT_AC_TAGVAR(postdep_objects, $1)="$p"
|
|---|
| 4673 | else
|
|---|
| 4674 | _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
|
|---|
| 4675 | fi
|
|---|
| 4676 | fi
|
|---|
| 4677 | ;;
|
|---|
| 4678 |
|
|---|
| 4679 | *) ;; # Ignore the rest.
|
|---|
| 4680 |
|
|---|
| 4681 | esac
|
|---|
| 4682 | done
|
|---|
| 4683 |
|
|---|
| 4684 | # Clean up.
|
|---|
| 4685 | rm -f a.out a.exe
|
|---|
| 4686 | else
|
|---|
| 4687 | echo "libtool.m4: error: problem compiling $1 test program"
|
|---|
| 4688 | fi
|
|---|
| 4689 |
|
|---|
| 4690 | $rm -f confest.$objext
|
|---|
| 4691 |
|
|---|
| 4692 | case " $_LT_AC_TAGVAR(postdeps, $1) " in
|
|---|
| 4693 | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
|
|---|
| 4694 | esac
|
|---|
| 4695 | ])# AC_LIBTOOL_POSTDEP_PREDEP
|
|---|
| 4696 |
|
|---|
| 4697 | # AC_LIBTOOL_LANG_F77_CONFIG
|
|---|
| 4698 | # ------------------------
|
|---|
| 4699 | # Ensure that the configuration vars for the C compiler are
|
|---|
| 4700 | # suitably defined. Those variables are subsequently used by
|
|---|
| 4701 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
|---|
| 4702 | AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
|
|---|
| 4703 | AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
|
|---|
| 4704 | [AC_REQUIRE([AC_PROG_F77])
|
|---|
| 4705 | AC_LANG_PUSH(Fortran 77)
|
|---|
| 4706 |
|
|---|
| 4707 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|---|
| 4708 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
|---|
| 4709 | _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
|---|
| 4710 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
|---|
| 4711 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
|---|
| 4712 | _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|---|
| 4713 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|---|
| 4714 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
|---|
| 4715 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
|---|
| 4716 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
|---|
| 4717 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
|---|
| 4718 | _LT_AC_TAGVAR(module_cmds, $1)=
|
|---|
| 4719 | _LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
|---|
| 4720 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
|---|
| 4721 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|---|
| 4722 | _LT_AC_TAGVAR(no_undefined_flag, $1)=
|
|---|
| 4723 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
|---|
| 4724 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
|---|
| 4725 |
|
|---|
| 4726 | # Source file extension for f77 test sources.
|
|---|
| 4727 | ac_ext=f
|
|---|
| 4728 |
|
|---|
| 4729 | # Object file extension for compiled f77 test sources.
|
|---|
| 4730 | objext=o
|
|---|
| 4731 | _LT_AC_TAGVAR(objext, $1)=$objext
|
|---|
| 4732 |
|
|---|
| 4733 | # Code to be used in simple compile tests
|
|---|
| 4734 | lt_simple_compile_test_code=" subroutine t\n return\n end\n"
|
|---|
| 4735 |
|
|---|
| 4736 | # Code to be used in simple link tests
|
|---|
| 4737 | lt_simple_link_test_code=" program t\n end\n"
|
|---|
| 4738 |
|
|---|
| 4739 | # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|---|
| 4740 | _LT_AC_SYS_COMPILER
|
|---|
| 4741 |
|
|---|
| 4742 | # save warnings/boilerplate of simple test code
|
|---|
| 4743 | _LT_COMPILER_BOILERPLATE
|
|---|
| 4744 | _LT_LINKER_BOILERPLATE
|
|---|
| 4745 |
|
|---|
| 4746 | # Allow CC to be a program name with arguments.
|
|---|
| 4747 | lt_save_CC="$CC"
|
|---|
| 4748 | CC=${F77-"f77"}
|
|---|
| 4749 | compiler=$CC
|
|---|
| 4750 | _LT_AC_TAGVAR(compiler, $1)=$CC
|
|---|
| 4751 | _LT_CC_BASENAME([$compiler])
|
|---|
| 4752 |
|
|---|
| 4753 | AC_MSG_CHECKING([if libtool supports shared libraries])
|
|---|
| 4754 | AC_MSG_RESULT([$can_build_shared])
|
|---|
| 4755 |
|
|---|
| 4756 | AC_MSG_CHECKING([whether to build shared libraries])
|
|---|
| 4757 | test "$can_build_shared" = "no" && enable_shared=no
|
|---|
| 4758 |
|
|---|
| 4759 | # On AIX, shared libraries and static libraries use the same namespace, and
|
|---|
| 4760 | # are all built from PIC.
|
|---|
| 4761 | case "$host_os" in
|
|---|
| 4762 | aix3*)
|
|---|
| 4763 | test "$enable_shared" = yes && enable_static=no
|
|---|
| 4764 | if test -n "$RANLIB"; then
|
|---|
| 4765 | archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
|---|
| 4766 | postinstall_cmds='$RANLIB $lib'
|
|---|
| 4767 | fi
|
|---|
| 4768 | ;;
|
|---|
| 4769 | aix4* | aix5*)
|
|---|
| 4770 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
|---|
| 4771 | test "$enable_shared" = yes && enable_static=no
|
|---|
| 4772 | fi
|
|---|
| 4773 | ;;
|
|---|
| 4774 | esac
|
|---|
| 4775 | AC_MSG_RESULT([$enable_shared])
|
|---|
| 4776 |
|
|---|
| 4777 | AC_MSG_CHECKING([whether to build static libraries])
|
|---|
| 4778 | # Make sure either enable_shared or enable_static is yes.
|
|---|
| 4779 | test "$enable_shared" = yes || enable_static=yes
|
|---|
| 4780 | AC_MSG_RESULT([$enable_static])
|
|---|
| 4781 |
|
|---|
| 4782 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
|---|
| 4783 |
|
|---|
| 4784 | _LT_AC_TAGVAR(GCC, $1)="$G77"
|
|---|
| 4785 | _LT_AC_TAGVAR(LD, $1)="$LD"
|
|---|
| 4786 |
|
|---|
| 4787 | AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
|---|
| 4788 | AC_LIBTOOL_PROG_CC_C_O($1)
|
|---|
| 4789 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
|---|
| 4790 | AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
|---|
| 4791 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
|---|
| 4792 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
|---|
| 4793 | AC_LIBTOOL_SYS_LIB_STRIP
|
|---|
| 4794 |
|
|---|
| 4795 |
|
|---|
| 4796 | AC_LIBTOOL_CONFIG($1)
|
|---|
| 4797 |
|
|---|
| 4798 | AC_LANG_POP
|
|---|
| 4799 | CC="$lt_save_CC"
|
|---|
| 4800 | ])# AC_LIBTOOL_LANG_F77_CONFIG
|
|---|
| 4801 |
|
|---|
| 4802 |
|
|---|
| 4803 | # AC_LIBTOOL_LANG_GCJ_CONFIG
|
|---|
| 4804 | # --------------------------
|
|---|
| 4805 | # Ensure that the configuration vars for the C compiler are
|
|---|
| 4806 | # suitably defined. Those variables are subsequently used by
|
|---|
| 4807 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
|---|
| 4808 | AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
|
|---|
| 4809 | AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
|
|---|
| 4810 | [AC_LANG_SAVE
|
|---|
| 4811 |
|
|---|
| 4812 | # Source file extension for Java test sources.
|
|---|
| 4813 | ac_ext=java
|
|---|
| 4814 |
|
|---|
| 4815 | # Object file extension for compiled Java test sources.
|
|---|
| 4816 | objext=o
|
|---|
| 4817 | _LT_AC_TAGVAR(objext, $1)=$objext
|
|---|
| 4818 |
|
|---|
| 4819 | # Code to be used in simple compile tests
|
|---|
| 4820 | lt_simple_compile_test_code="class foo {}\n"
|
|---|
| 4821 |
|
|---|
| 4822 | # Code to be used in simple link tests
|
|---|
| 4823 | lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
|
|---|
| 4824 |
|
|---|
| 4825 | # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|---|
| 4826 | _LT_AC_SYS_COMPILER
|
|---|
| 4827 |
|
|---|
| 4828 | # save warnings/boilerplate of simple test code
|
|---|
| 4829 | _LT_COMPILER_BOILERPLATE
|
|---|
| 4830 | _LT_LINKER_BOILERPLATE
|
|---|
| 4831 |
|
|---|
| 4832 | # Allow CC to be a program name with arguments.
|
|---|
| 4833 | lt_save_CC="$CC"
|
|---|
| 4834 | CC=${GCJ-"gcj"}
|
|---|
| 4835 | compiler=$CC
|
|---|
| 4836 | _LT_AC_TAGVAR(compiler, $1)=$CC
|
|---|
| 4837 | _LT_CC_BASENAME([$compiler])
|
|---|
| 4838 |
|
|---|
| 4839 | # GCJ did not exist at the time GCC didn't implicitly link libc in.
|
|---|
| 4840 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|---|
| 4841 |
|
|---|
| 4842 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|---|
| 4843 |
|
|---|
| 4844 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
|
|---|
| 4845 | AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
|---|
| 4846 | AC_LIBTOOL_PROG_CC_C_O($1)
|
|---|
| 4847 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
|---|
| 4848 | AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
|---|
| 4849 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
|---|
| 4850 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
|---|
| 4851 | AC_LIBTOOL_SYS_LIB_STRIP
|
|---|
| 4852 | AC_LIBTOOL_DLOPEN_SELF($1)
|
|---|
| 4853 |
|
|---|
| 4854 | AC_LIBTOOL_CONFIG($1)
|
|---|
| 4855 |
|
|---|
| 4856 | AC_LANG_RESTORE
|
|---|
| 4857 | CC="$lt_save_CC"
|
|---|
| 4858 | ])# AC_LIBTOOL_LANG_GCJ_CONFIG
|
|---|
| 4859 |
|
|---|
| 4860 |
|
|---|
| 4861 | # AC_LIBTOOL_LANG_RC_CONFIG
|
|---|
| 4862 | # --------------------------
|
|---|
| 4863 | # Ensure that the configuration vars for the Windows resource compiler are
|
|---|
| 4864 | # suitably defined. Those variables are subsequently used by
|
|---|
| 4865 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
|---|
| 4866 | AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
|
|---|
| 4867 | AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
|
|---|
| 4868 | [AC_LANG_SAVE
|
|---|
| 4869 |
|
|---|
| 4870 | # Source file extension for RC test sources.
|
|---|
| 4871 | ac_ext=rc
|
|---|
| 4872 |
|
|---|
| 4873 | # Object file extension for compiled RC test sources.
|
|---|
| 4874 | objext=o
|
|---|
| 4875 | _LT_AC_TAGVAR(objext, $1)=$objext
|
|---|
| 4876 |
|
|---|
| 4877 | # Code to be used in simple compile tests
|
|---|
| 4878 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
|
|---|
| 4879 |
|
|---|
| 4880 | # Code to be used in simple link tests
|
|---|
| 4881 | lt_simple_link_test_code="$lt_simple_compile_test_code"
|
|---|
| 4882 |
|
|---|
| 4883 | # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|---|
| 4884 | _LT_AC_SYS_COMPILER
|
|---|
| 4885 |
|
|---|
| 4886 | # save warnings/boilerplate of simple test code
|
|---|
| 4887 | _LT_COMPILER_BOILERPLATE
|
|---|
| 4888 | _LT_LINKER_BOILERPLATE
|
|---|
| 4889 |
|
|---|
| 4890 | # Allow CC to be a program name with arguments.
|
|---|
| 4891 | lt_save_CC="$CC"
|
|---|
| 4892 | CC=${RC-"windres"}
|
|---|
| 4893 | compiler=$CC
|
|---|
| 4894 | _LT_AC_TAGVAR(compiler, $1)=$CC
|
|---|
| 4895 | _LT_CC_BASENAME([$compiler])
|
|---|
| 4896 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
|---|
| 4897 |
|
|---|
| 4898 | AC_LIBTOOL_CONFIG($1)
|
|---|
| 4899 |
|
|---|
| 4900 | AC_LANG_RESTORE
|
|---|
| 4901 | CC="$lt_save_CC"
|
|---|
| 4902 | ])# AC_LIBTOOL_LANG_RC_CONFIG
|
|---|
| 4903 |
|
|---|
| 4904 |
|
|---|
| 4905 | # AC_LIBTOOL_CONFIG([TAGNAME])
|
|---|
| 4906 | # ----------------------------
|
|---|
| 4907 | # If TAGNAME is not passed, then create an initial libtool script
|
|---|
| 4908 | # with a default configuration from the untagged config vars. Otherwise
|
|---|
| 4909 | # add code to config.status for appending the configuration named by
|
|---|
| 4910 | # TAGNAME from the matching tagged config vars.
|
|---|
| 4911 | AC_DEFUN([AC_LIBTOOL_CONFIG],
|
|---|
| 4912 | [# The else clause should only fire when bootstrapping the
|
|---|
| 4913 | # libtool distribution, otherwise you forgot to ship ltmain.sh
|
|---|
| 4914 | # with your package, and you will get complaints that there are
|
|---|
| 4915 | # no rules to generate ltmain.sh.
|
|---|
| 4916 | if test -f "$ltmain"; then
|
|---|
| 4917 | # See if we are running on zsh, and set the options which allow our commands through
|
|---|
| 4918 | # without removal of \ escapes.
|
|---|
| 4919 | if test -n "${ZSH_VERSION+set}" ; then
|
|---|
| 4920 | setopt NO_GLOB_SUBST
|
|---|
| 4921 | fi
|
|---|
| 4922 | # Now quote all the things that may contain metacharacters while being
|
|---|
| 4923 | # careful not to overquote the AC_SUBSTed values. We take copies of the
|
|---|
| 4924 | # variables and quote the copies for generation of the libtool script.
|
|---|
| 4925 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
|---|
| 4926 | SED SHELL STRIP \
|
|---|
| 4927 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
|---|
| 4928 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
|---|
| 4929 | deplibs_check_method reload_flag reload_cmds need_locks \
|
|---|
| 4930 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
|---|
| 4931 | lt_cv_sys_global_symbol_to_c_name_address \
|
|---|
| 4932 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
|---|
| 4933 | old_postinstall_cmds old_postuninstall_cmds \
|
|---|
| 4934 | _LT_AC_TAGVAR(compiler, $1) \
|
|---|
| 4935 | _LT_AC_TAGVAR(CC, $1) \
|
|---|
| 4936 | _LT_AC_TAGVAR(LD, $1) \
|
|---|
| 4937 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
|
|---|
| 4938 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
|
|---|
| 4939 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
|
|---|
| 4940 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
|
|---|
| 4941 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
|
|---|
| 4942 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
|
|---|
| 4943 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
|
|---|
| 4944 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
|
|---|
| 4945 | _LT_AC_TAGVAR(old_archive_cmds, $1) \
|
|---|
| 4946 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
|
|---|
| 4947 | _LT_AC_TAGVAR(predep_objects, $1) \
|
|---|
| 4948 | _LT_AC_TAGVAR(postdep_objects, $1) \
|
|---|
| 4949 | _LT_AC_TAGVAR(predeps, $1) \
|
|---|
| 4950 | _LT_AC_TAGVAR(postdeps, $1) \
|
|---|
| 4951 | _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
|
|---|
| 4952 | _LT_AC_TAGVAR(archive_cmds, $1) \
|
|---|
| 4953 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
|
|---|
| 4954 | _LT_AC_TAGVAR(postinstall_cmds, $1) \
|
|---|
| 4955 | _LT_AC_TAGVAR(postuninstall_cmds, $1) \
|
|---|
| 4956 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
|
|---|
| 4957 | _LT_AC_TAGVAR(allow_undefined_flag, $1) \
|
|---|
| 4958 | _LT_AC_TAGVAR(no_undefined_flag, $1) \
|
|---|
| 4959 | _LT_AC_TAGVAR(export_symbols_cmds, $1) \
|
|---|
| 4960 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
|
|---|
| 4961 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
|
|---|
| 4962 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
|
|---|
| 4963 | _LT_AC_TAGVAR(hardcode_automatic, $1) \
|
|---|
| 4964 | _LT_AC_TAGVAR(module_cmds, $1) \
|
|---|
| 4965 | _LT_AC_TAGVAR(module_expsym_cmds, $1) \
|
|---|
| 4966 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
|
|---|
| 4967 | _LT_AC_TAGVAR(exclude_expsyms, $1) \
|
|---|
| 4968 | _LT_AC_TAGVAR(include_expsyms, $1); do
|
|---|
| 4969 |
|
|---|
| 4970 | case $var in
|
|---|
| 4971 | _LT_AC_TAGVAR(old_archive_cmds, $1) | \
|
|---|
| 4972 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
|
|---|
| 4973 | _LT_AC_TAGVAR(archive_cmds, $1) | \
|
|---|
| 4974 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
|
|---|
| 4975 | _LT_AC_TAGVAR(module_cmds, $1) | \
|
|---|
| 4976 | _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
|
|---|
| 4977 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
|
|---|
| 4978 | _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
|
|---|
| 4979 | extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
|---|
| 4980 | postinstall_cmds | postuninstall_cmds | \
|
|---|
| 4981 | old_postinstall_cmds | old_postuninstall_cmds | \
|
|---|
| 4982 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
|---|
| 4983 | # Double-quote double-evaled strings.
|
|---|
| 4984 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
|---|
| 4985 | ;;
|
|---|
| 4986 | *)
|
|---|
| 4987 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
|---|
| 4988 | ;;
|
|---|
| 4989 | esac
|
|---|
| 4990 | done
|
|---|
| 4991 |
|
|---|
| 4992 | case $lt_echo in
|
|---|
| 4993 | *'\[$]0 --fallback-echo"')
|
|---|
| 4994 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
|
|---|
| 4995 | ;;
|
|---|
| 4996 | esac
|
|---|
| 4997 |
|
|---|
| 4998 | ifelse([$1], [],
|
|---|
| 4999 | [cfgfile="${ofile}T"
|
|---|
| 5000 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15
|
|---|
| 5001 | $rm -f "$cfgfile"
|
|---|
| 5002 | AC_MSG_NOTICE([creating $ofile])],
|
|---|
| 5003 | [cfgfile="$ofile"])
|
|---|
| 5004 |
|
|---|
| 5005 | cat <<__EOF__ >> "$cfgfile"
|
|---|
| 5006 | ifelse([$1], [],
|
|---|
| 5007 | [#! $SHELL
|
|---|
| 5008 |
|
|---|
| 5009 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
|---|
| 5010 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
|---|
| 5011 | # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|---|
| 5012 | #
|
|---|
| 5013 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
|
|---|
| 5014 | # Free Software Foundation, Inc.
|
|---|
| 5015 | #
|
|---|
| 5016 | # This file is part of GNU Libtool:
|
|---|
| 5017 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
|---|
| 5018 | #
|
|---|
| 5019 | # This program is free software; you can redistribute it and/or modify
|
|---|
| 5020 | # it under the terms of the GNU General Public License as published by
|
|---|
| 5021 | # the Free Software Foundation; either version 2 of the License, or
|
|---|
| 5022 | # (at your option) any later version.
|
|---|
| 5023 | #
|
|---|
| 5024 | # This program is distributed in the hope that it will be useful, but
|
|---|
| 5025 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 5026 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|---|
| 5027 | # General Public License for more details.
|
|---|
| 5028 | #
|
|---|
| 5029 | # You should have received a copy of the GNU General Public License
|
|---|
| 5030 | # along with this program; if not, write to the Free Software
|
|---|
| 5031 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|---|
| 5032 | #
|
|---|
| 5033 | # As a special exception to the GNU General Public License, if you
|
|---|
| 5034 | # distribute this file as part of a program that contains a
|
|---|
| 5035 | # configuration script generated by Autoconf, you may include it under
|
|---|
| 5036 | # the same distribution terms that you use for the rest of that program.
|
|---|
| 5037 |
|
|---|
| 5038 | # A sed program that does not truncate output.
|
|---|
| 5039 | SED=$lt_SED
|
|---|
| 5040 |
|
|---|
| 5041 | # Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
|---|
| 5042 | Xsed="$SED -e 1s/^X//"
|
|---|
| 5043 |
|
|---|
| 5044 | # The HP-UX ksh and POSIX shell print the target directory to stdout
|
|---|
| 5045 | # if CDPATH is set.
|
|---|
| 5046 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|---|
| 5047 |
|
|---|
| 5048 | # The names of the tagged configurations supported by this script.
|
|---|
| 5049 | available_tags=
|
|---|
| 5050 |
|
|---|
| 5051 | # ### BEGIN LIBTOOL CONFIG],
|
|---|
| 5052 | [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
|
|---|
| 5053 |
|
|---|
| 5054 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|---|
| 5055 |
|
|---|
| 5056 | # Shell to use when invoking shell scripts.
|
|---|
| 5057 | SHELL=$lt_SHELL
|
|---|
| 5058 |
|
|---|
| 5059 | # Whether or not to build shared libraries.
|
|---|
| 5060 | build_libtool_libs=$enable_shared
|
|---|
| 5061 |
|
|---|
| 5062 | # Whether or not to build static libraries.
|
|---|
| 5063 | build_old_libs=$enable_static
|
|---|
| 5064 |
|
|---|
| 5065 | # Whether or not to add -lc for building shared libraries.
|
|---|
| 5066 | build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
|
|---|
| 5067 |
|
|---|
| 5068 | # Whether or not to disallow shared libs when runtime libs are static
|
|---|
| 5069 | allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
|
|---|
| 5070 |
|
|---|
| 5071 | # Whether or not to optimize for fast installation.
|
|---|
| 5072 | fast_install=$enable_fast_install
|
|---|
| 5073 |
|
|---|
| 5074 | # The host system.
|
|---|
| 5075 | host_alias=$host_alias
|
|---|
| 5076 | host=$host
|
|---|
| 5077 | host_os=$host_os
|
|---|
| 5078 |
|
|---|
| 5079 | # The build system.
|
|---|
| 5080 | build_alias=$build_alias
|
|---|
| 5081 | build=$build
|
|---|
| 5082 | build_os=$build_os
|
|---|
| 5083 |
|
|---|
| 5084 | # An echo program that does not interpret backslashes.
|
|---|
| 5085 | echo=$lt_echo
|
|---|
| 5086 |
|
|---|
| 5087 | # The archiver.
|
|---|
| 5088 | AR=$lt_AR
|
|---|
| 5089 | AR_FLAGS=$lt_AR_FLAGS
|
|---|
| 5090 |
|
|---|
| 5091 | # A C compiler.
|
|---|
| 5092 | LTCC=$lt_LTCC
|
|---|
| 5093 |
|
|---|
| 5094 | # A language-specific compiler.
|
|---|
| 5095 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
|
|---|
| 5096 |
|
|---|
| 5097 | # Is the compiler the GNU C compiler?
|
|---|
| 5098 | with_gcc=$_LT_AC_TAGVAR(GCC, $1)
|
|---|
| 5099 |
|
|---|
| 5100 | # An ERE matcher.
|
|---|
| 5101 | EGREP=$lt_EGREP
|
|---|
| 5102 |
|
|---|
| 5103 | # The linker used to build libraries.
|
|---|
| 5104 | LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
|
|---|
| 5105 |
|
|---|
| 5106 | # Whether we need hard or soft links.
|
|---|
| 5107 | LN_S=$lt_LN_S
|
|---|
| 5108 |
|
|---|
| 5109 | # A BSD-compatible nm program.
|
|---|
| 5110 | NM=$lt_NM
|
|---|
| 5111 |
|
|---|
| 5112 | # A symbol stripping program
|
|---|
| 5113 | STRIP=$lt_STRIP
|
|---|
| 5114 |
|
|---|
| 5115 | # Used to examine libraries when file_magic_cmd begins "file"
|
|---|
| 5116 | MAGIC_CMD=$MAGIC_CMD
|
|---|
| 5117 |
|
|---|
| 5118 | # Used on cygwin: DLL creation program.
|
|---|
| 5119 | DLLTOOL="$DLLTOOL"
|
|---|
| 5120 |
|
|---|
| 5121 | # Used on cygwin: object dumper.
|
|---|
| 5122 | OBJDUMP="$OBJDUMP"
|
|---|
| 5123 |
|
|---|
| 5124 | # Used on cygwin: assembler.
|
|---|
| 5125 | AS="$AS"
|
|---|
| 5126 |
|
|---|
| 5127 | # The name of the directory that contains temporary libtool files.
|
|---|
| 5128 | objdir=$objdir
|
|---|
| 5129 |
|
|---|
| 5130 | # How to create reloadable object files.
|
|---|
| 5131 | reload_flag=$lt_reload_flag
|
|---|
| 5132 | reload_cmds=$lt_reload_cmds
|
|---|
| 5133 |
|
|---|
| 5134 | # How to pass a linker flag through the compiler.
|
|---|
| 5135 | wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
|
|---|
| 5136 |
|
|---|
| 5137 | # Object file suffix (normally "o").
|
|---|
| 5138 | objext="$ac_objext"
|
|---|
| 5139 |
|
|---|
| 5140 | # Old archive suffix (normally "a").
|
|---|
| 5141 | libext="$libext"
|
|---|
| 5142 |
|
|---|
| 5143 | # Shared library suffix (normally ".so").
|
|---|
| 5144 | shrext_cmds='$shrext_cmds'
|
|---|
| 5145 |
|
|---|
| 5146 | # Executable file suffix (normally "").
|
|---|
| 5147 | exeext="$exeext"
|
|---|
| 5148 |
|
|---|
| 5149 | # Additional compiler flags for building library objects.
|
|---|
| 5150 | pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
|
|---|
| 5151 | pic_mode=$pic_mode
|
|---|
| 5152 |
|
|---|
| 5153 | # What is the maximum length of a command?
|
|---|
| 5154 | max_cmd_len=$lt_cv_sys_max_cmd_len
|
|---|
| 5155 |
|
|---|
| 5156 | # Does compiler simultaneously support -c and -o options?
|
|---|
| 5157 | compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
|
|---|
| 5158 |
|
|---|
| 5159 | # Must we lock files when doing compilation?
|
|---|
| 5160 | need_locks=$lt_need_locks
|
|---|
| 5161 |
|
|---|
| 5162 | # Do we need the lib prefix for modules?
|
|---|
| 5163 | need_lib_prefix=$need_lib_prefix
|
|---|
| 5164 |
|
|---|
| 5165 | # Do we need a version for libraries?
|
|---|
| 5166 | need_version=$need_version
|
|---|
| 5167 |
|
|---|
| 5168 | # Whether dlopen is supported.
|
|---|
| 5169 | dlopen_support=$enable_dlopen
|
|---|
| 5170 |
|
|---|
| 5171 | # Whether dlopen of programs is supported.
|
|---|
| 5172 | dlopen_self=$enable_dlopen_self
|
|---|
| 5173 |
|
|---|
| 5174 | # Whether dlopen of statically linked programs is supported.
|
|---|
| 5175 | dlopen_self_static=$enable_dlopen_self_static
|
|---|
| 5176 |
|
|---|
| 5177 | # Compiler flag to prevent dynamic linking.
|
|---|
| 5178 | link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
|
|---|
| 5179 |
|
|---|
| 5180 | # Compiler flag to turn off builtin functions.
|
|---|
| 5181 | no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
|
|---|
| 5182 |
|
|---|
| 5183 | # Compiler flag to allow reflexive dlopens.
|
|---|
| 5184 | export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
|
|---|
| 5185 |
|
|---|
| 5186 | # Compiler flag to generate shared objects directly from archives.
|
|---|
| 5187 | whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
|
|---|
| 5188 |
|
|---|
| 5189 | # Compiler flag to generate thread-safe objects.
|
|---|
| 5190 | thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
|
|---|
| 5191 |
|
|---|
| 5192 | # Library versioning type.
|
|---|
| 5193 | version_type=$version_type
|
|---|
| 5194 |
|
|---|
| 5195 | # Format of library name prefix.
|
|---|
| 5196 | libname_spec=$lt_libname_spec
|
|---|
| 5197 |
|
|---|
| 5198 | # List of archive names. First name is the real one, the rest are links.
|
|---|
| 5199 | # The last name is the one that the linker finds with -lNAME.
|
|---|
| 5200 | library_names_spec=$lt_library_names_spec
|
|---|
| 5201 |
|
|---|
| 5202 | # The coded name of the library, if different from the real name.
|
|---|
| 5203 | soname_spec=$lt_soname_spec
|
|---|
| 5204 |
|
|---|
| 5205 | # Commands used to build and install an old-style archive.
|
|---|
| 5206 | RANLIB=$lt_RANLIB
|
|---|
| 5207 | old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
|
|---|
| 5208 | old_postinstall_cmds=$lt_old_postinstall_cmds
|
|---|
| 5209 | old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
|---|
| 5210 |
|
|---|
| 5211 | # Create an old-style archive from a shared archive.
|
|---|
| 5212 | old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
|
|---|
| 5213 |
|
|---|
| 5214 | # Create a temporary old-style archive to link instead of a shared archive.
|
|---|
| 5215 | old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
|
|---|
| 5216 |
|
|---|
| 5217 | # Commands used to build and install a shared archive.
|
|---|
| 5218 | archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
|
|---|
| 5219 | archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
|
|---|
| 5220 | postinstall_cmds=$lt_postinstall_cmds
|
|---|
| 5221 | postuninstall_cmds=$lt_postuninstall_cmds
|
|---|
| 5222 |
|
|---|
| 5223 | # Commands used to build a loadable module (assumed same as above if empty)
|
|---|
| 5224 | module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
|
|---|
| 5225 | module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
|
|---|
| 5226 |
|
|---|
| 5227 | # Commands to strip libraries.
|
|---|
| 5228 | old_striplib=$lt_old_striplib
|
|---|
| 5229 | striplib=$lt_striplib
|
|---|
| 5230 |
|
|---|
| 5231 | # Dependencies to place before the objects being linked to create a
|
|---|
| 5232 | # shared library.
|
|---|
| 5233 | predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
|
|---|
| 5234 |
|
|---|
| 5235 | # Dependencies to place after the objects being linked to create a
|
|---|
| 5236 | # shared library.
|
|---|
| 5237 | postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
|
|---|
| 5238 |
|
|---|
| 5239 | # Dependencies to place before the objects being linked to create a
|
|---|
| 5240 | # shared library.
|
|---|
| 5241 | predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
|
|---|
| 5242 |
|
|---|
| 5243 | # Dependencies to place after the objects being linked to create a
|
|---|
| 5244 | # shared library.
|
|---|
| 5245 | postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
|
|---|
| 5246 |
|
|---|
| 5247 | # The library search path used internally by the compiler when linking
|
|---|
| 5248 | # a shared library.
|
|---|
| 5249 | compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
|
|---|
| 5250 |
|
|---|
| 5251 | # Method to check whether dependent libraries are shared objects.
|
|---|
| 5252 | deplibs_check_method=$lt_deplibs_check_method
|
|---|
| 5253 |
|
|---|
| 5254 | # Command to use when deplibs_check_method == file_magic.
|
|---|
| 5255 | file_magic_cmd=$lt_file_magic_cmd
|
|---|
| 5256 |
|
|---|
| 5257 | # Flag that allows shared libraries with undefined symbols to be built.
|
|---|
| 5258 | allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
|
|---|
| 5259 |
|
|---|
| 5260 | # Flag that forces no undefined symbols.
|
|---|
| 5261 | no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
|
|---|
| 5262 |
|
|---|
| 5263 | # Commands used to finish a libtool library installation in a directory.
|
|---|
| 5264 | finish_cmds=$lt_finish_cmds
|
|---|
| 5265 |
|
|---|
| 5266 | # Same as above, but a single script fragment to be evaled but not shown.
|
|---|
| 5267 | finish_eval=$lt_finish_eval
|
|---|
| 5268 |
|
|---|
| 5269 | # Take the output of nm and produce a listing of raw symbols and C names.
|
|---|
| 5270 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
|---|
| 5271 |
|
|---|
| 5272 | # Transform the output of nm in a proper C declaration
|
|---|
| 5273 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
|---|
| 5274 |
|
|---|
| 5275 | # Transform the output of nm in a C name address pair
|
|---|
| 5276 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|---|
| 5277 |
|
|---|
| 5278 | # This is the shared library runtime path variable.
|
|---|
| 5279 | runpath_var=$runpath_var
|
|---|
| 5280 |
|
|---|
| 5281 | # This is the shared library path variable.
|
|---|
| 5282 | shlibpath_var=$shlibpath_var
|
|---|
| 5283 |
|
|---|
| 5284 | # Is shlibpath searched before the hard-coded library search path?
|
|---|
| 5285 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
|---|
| 5286 |
|
|---|
| 5287 | # How to hardcode a shared library path into an executable.
|
|---|
| 5288 | hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
|
|---|
| 5289 |
|
|---|
| 5290 | # Whether we should hardcode library paths into libraries.
|
|---|
| 5291 | hardcode_into_libs=$hardcode_into_libs
|
|---|
| 5292 |
|
|---|
| 5293 | # Flag to hardcode \$libdir into a binary during linking.
|
|---|
| 5294 | # This must work even if \$libdir does not exist.
|
|---|
| 5295 | hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
|
|---|
| 5296 |
|
|---|
| 5297 | # If ld is used when linking, flag to hardcode \$libdir into
|
|---|
| 5298 | # a binary during linking. This must work even if \$libdir does
|
|---|
| 5299 | # not exist.
|
|---|
| 5300 | hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
|
|---|
| 5301 |
|
|---|
| 5302 | # Whether we need a single -rpath flag with a separated argument.
|
|---|
| 5303 | hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
|
|---|
| 5304 |
|
|---|
| 5305 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
|---|
| 5306 | # resulting binary.
|
|---|
| 5307 | hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
|
|---|
| 5308 |
|
|---|
| 5309 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
|---|
| 5310 | # resulting binary.
|
|---|
| 5311 | hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
|
|---|
| 5312 |
|
|---|
| 5313 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
|---|
| 5314 | # the resulting binary.
|
|---|
| 5315 | hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
|
|---|
| 5316 |
|
|---|
| 5317 | # Set to yes if building a shared library automatically hardcodes DIR into the library
|
|---|
| 5318 | # and all subsequent libraries and executables linked against it.
|
|---|
| 5319 | hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
|
|---|
| 5320 |
|
|---|
| 5321 | # Variables whose values should be saved in libtool wrapper scripts and
|
|---|
| 5322 | # restored at relink time.
|
|---|
| 5323 | variables_saved_for_relink="$variables_saved_for_relink"
|
|---|
| 5324 |
|
|---|
| 5325 | # Whether libtool must link a program against all its dependency libraries.
|
|---|
| 5326 | link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
|
|---|
| 5327 |
|
|---|
| 5328 | # Compile-time system search path for libraries
|
|---|
| 5329 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
|---|
| 5330 |
|
|---|
| 5331 | # Run-time system search path for libraries
|
|---|
| 5332 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|---|
| 5333 |
|
|---|
| 5334 | # Fix the shell variable \$srcfile for the compiler.
|
|---|
| 5335 | fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
|
|---|
| 5336 |
|
|---|
| 5337 | # Set to yes if exported symbols are required.
|
|---|
| 5338 | always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
|
|---|
| 5339 |
|
|---|
| 5340 | # The commands to list exported symbols.
|
|---|
| 5341 | export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
|
|---|
| 5342 |
|
|---|
| 5343 | # The commands to extract the exported symbol list from a shared archive.
|
|---|
| 5344 | extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
|---|
| 5345 |
|
|---|
| 5346 | # Symbols that should not be listed in the preloaded symbols.
|
|---|
| 5347 | exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
|
|---|
| 5348 |
|
|---|
| 5349 | # Symbols that must always be exported.
|
|---|
| 5350 | include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
|
|---|
| 5351 |
|
|---|
| 5352 | ifelse([$1],[],
|
|---|
| 5353 | [# ### END LIBTOOL CONFIG],
|
|---|
| 5354 | [# ### END LIBTOOL TAG CONFIG: $tagname])
|
|---|
| 5355 |
|
|---|
| 5356 | __EOF__
|
|---|
| 5357 |
|
|---|
| 5358 | ifelse([$1],[], [
|
|---|
| 5359 | case $host_os in
|
|---|
| 5360 | aix3*)
|
|---|
| 5361 | cat <<\EOF >> "$cfgfile"
|
|---|
| 5362 |
|
|---|
| 5363 | # AIX sometimes has problems with the GCC collect2 program. For some
|
|---|
| 5364 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
|---|
| 5365 | # vanish in a puff of smoke.
|
|---|
| 5366 | if test "X${COLLECT_NAMES+set}" != Xset; then
|
|---|
| 5367 | COLLECT_NAMES=
|
|---|
| 5368 | export COLLECT_NAMES
|
|---|
| 5369 | fi
|
|---|
| 5370 | EOF
|
|---|
| 5371 | ;;
|
|---|
| 5372 | esac
|
|---|
| 5373 |
|
|---|
| 5374 | # We use sed instead of cat because bash on DJGPP gets confused if
|
|---|
| 5375 | # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|---|
| 5376 | # text mode, it properly converts lines to CR/LF. This bash problem
|
|---|
| 5377 | # is reportedly fixed, but why not run on old versions too?
|
|---|
| 5378 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
|
|---|
| 5379 |
|
|---|
| 5380 | mv -f "$cfgfile" "$ofile" || \
|
|---|
| 5381 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|---|
| 5382 | chmod +x "$ofile"
|
|---|
| 5383 | ])
|
|---|
| 5384 | else
|
|---|
| 5385 | # If there is no Makefile yet, we rely on a make rule to execute
|
|---|
| 5386 | # `config.status --recheck' to rerun these tests and create the
|
|---|
| 5387 | # libtool script then.
|
|---|
| 5388 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
|---|
| 5389 | if test -f "$ltmain_in"; then
|
|---|
| 5390 | test -f Makefile && make "$ltmain"
|
|---|
| 5391 | fi
|
|---|
| 5392 | fi
|
|---|
| 5393 | ])# AC_LIBTOOL_CONFIG
|
|---|
| 5394 |
|
|---|
| 5395 |
|
|---|
| 5396 | # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
|
|---|
| 5397 | # -------------------------------------------
|
|---|
| 5398 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
|
|---|
| 5399 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
|---|
| 5400 |
|
|---|
| 5401 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
|---|
| 5402 |
|
|---|
| 5403 | if test "$GCC" = yes; then
|
|---|
| 5404 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
|---|
| 5405 |
|
|---|
| 5406 | AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
|
|---|
| 5407 | lt_cv_prog_compiler_rtti_exceptions,
|
|---|
| 5408 | [-fno-rtti -fno-exceptions], [],
|
|---|
| 5409 | [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
|
|---|
| 5410 | fi
|
|---|
| 5411 | ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
|
|---|
| 5412 |
|
|---|
| 5413 |
|
|---|
| 5414 | # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
|---|
| 5415 | # ---------------------------------
|
|---|
| 5416 | AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
|
|---|
| 5417 | [AC_REQUIRE([AC_CANONICAL_HOST])
|
|---|
| 5418 | AC_REQUIRE([AC_PROG_NM])
|
|---|
| 5419 | AC_REQUIRE([AC_OBJEXT])
|
|---|
| 5420 | # Check for command to grab the raw symbol name followed by C symbol from nm.
|
|---|
| 5421 | AC_MSG_CHECKING([command to parse $NM output from $compiler object])
|
|---|
| 5422 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
|
|---|
| 5423 | [
|
|---|
| 5424 | # These are sane defaults that work on at least a few old systems.
|
|---|
| 5425 | # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
|---|
| 5426 |
|
|---|
| 5427 | # Character class describing NM global symbol codes.
|
|---|
| 5428 | symcode='[[BCDEGRST]]'
|
|---|
| 5429 |
|
|---|
| 5430 | # Regexp to match symbols that can be accessed directly from C.
|
|---|
| 5431 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
|
|---|
| 5432 |
|
|---|
| 5433 | # Transform an extracted symbol line into a proper C declaration
|
|---|
| 5434 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
|
|---|
| 5435 |
|
|---|
| 5436 | # Transform an extracted symbol line into symbol name and symbol address
|
|---|
| 5437 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
|---|
| 5438 |
|
|---|
| 5439 | # Define system-specific variables.
|
|---|
| 5440 | case $host_os in
|
|---|
| 5441 | aix*)
|
|---|
| 5442 | symcode='[[BCDT]]'
|
|---|
| 5443 | ;;
|
|---|
| 5444 | cygwin* | mingw* | pw32*)
|
|---|
| 5445 | symcode='[[ABCDGISTW]]'
|
|---|
| 5446 | ;;
|
|---|
| 5447 | hpux*) # Its linker distinguishes data from code symbols
|
|---|
| 5448 | if test "$host_cpu" = ia64; then
|
|---|
| 5449 | symcode='[[ABCDEGRST]]'
|
|---|
| 5450 | fi
|
|---|
| 5451 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|---|
| 5452 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
|---|
| 5453 | ;;
|
|---|
| 5454 | linux*)
|
|---|
| 5455 | if test "$host_cpu" = ia64; then
|
|---|
| 5456 | symcode='[[ABCDGIRSTW]]'
|
|---|
| 5457 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|---|
| 5458 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
|---|
| 5459 | fi
|
|---|
| 5460 | ;;
|
|---|
| 5461 | irix* | nonstopux*)
|
|---|
| 5462 | symcode='[[BCDEGRST]]'
|
|---|
| 5463 | ;;
|
|---|
| 5464 | osf*)
|
|---|
| 5465 | symcode='[[BCDEGQRST]]'
|
|---|
| 5466 | ;;
|
|---|
| 5467 | solaris* | sysv5*)
|
|---|
| 5468 | symcode='[[BDRT]]'
|
|---|
| 5469 | ;;
|
|---|
| 5470 | sysv4)
|
|---|
| 5471 | symcode='[[DFNSTU]]'
|
|---|
| 5472 | ;;
|
|---|
| 5473 | esac
|
|---|
| 5474 |
|
|---|
| 5475 | # Handle CRLF in mingw tool chain
|
|---|
| 5476 | opt_cr=
|
|---|
| 5477 | case $build_os in
|
|---|
| 5478 | mingw*)
|
|---|
| 5479 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
|---|
| 5480 | ;;
|
|---|
| 5481 | esac
|
|---|
| 5482 |
|
|---|
| 5483 | # If we're using GNU nm, then use its standard symbol codes.
|
|---|
| 5484 | case `$NM -V 2>&1` in
|
|---|
| 5485 | *GNU* | *'with BFD'*)
|
|---|
| 5486 | symcode='[[ABCDGIRSTW]]' ;;
|
|---|
| 5487 | esac
|
|---|
| 5488 |
|
|---|
| 5489 | # Try without a prefix undercore, then with it.
|
|---|
| 5490 | for ac_symprfx in "" "_"; do
|
|---|
| 5491 |
|
|---|
| 5492 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
|---|
| 5493 | symxfrm="\\1 $ac_symprfx\\2 \\2"
|
|---|
| 5494 |
|
|---|
| 5495 | # Write the raw and C identifiers.
|
|---|
| 5496 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|---|
| 5497 |
|
|---|
| 5498 | # Check to see that the pipe works correctly.
|
|---|
| 5499 | pipe_works=no
|
|---|
| 5500 |
|
|---|
| 5501 | rm -f conftest*
|
|---|
| 5502 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5503 | #ifdef __cplusplus
|
|---|
| 5504 | extern "C" {
|
|---|
| 5505 | #endif
|
|---|
| 5506 | char nm_test_var;
|
|---|
| 5507 | void nm_test_func(){}
|
|---|
| 5508 | #ifdef __cplusplus
|
|---|
| 5509 | }
|
|---|
| 5510 | #endif
|
|---|
| 5511 | int main(){nm_test_var='a';nm_test_func();return(0);}
|
|---|
| 5512 | EOF
|
|---|
| 5513 |
|
|---|
| 5514 | if AC_TRY_EVAL(ac_compile); then
|
|---|
| 5515 | # Now try to grab the symbols.
|
|---|
| 5516 | nlist=conftest.nm
|
|---|
| 5517 | if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
|
|---|
| 5518 | # Try sorting and uniquifying the output.
|
|---|
| 5519 | if sort "$nlist" | uniq > "$nlist"T; then
|
|---|
| 5520 | mv -f "$nlist"T "$nlist"
|
|---|
| 5521 | else
|
|---|
| 5522 | rm -f "$nlist"T
|
|---|
| 5523 | fi
|
|---|
| 5524 |
|
|---|
| 5525 | # Make sure that we snagged all the symbols we need.
|
|---|
| 5526 | if grep ' nm_test_var$' "$nlist" >/dev/null; then
|
|---|
| 5527 | if grep ' nm_test_func$' "$nlist" >/dev/null; then
|
|---|
| 5528 | cat <<EOF > conftest.$ac_ext
|
|---|
| 5529 | #ifdef __cplusplus
|
|---|
| 5530 | extern "C" {
|
|---|
| 5531 | #endif
|
|---|
| 5532 |
|
|---|
| 5533 | EOF
|
|---|
| 5534 | # Now generate the symbol file.
|
|---|
| 5535 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
|
|---|
| 5536 |
|
|---|
| 5537 | cat <<EOF >> conftest.$ac_ext
|
|---|
| 5538 | #if defined (__STDC__) && __STDC__
|
|---|
| 5539 | # define lt_ptr_t void *
|
|---|
| 5540 | #else
|
|---|
| 5541 | # define lt_ptr_t char *
|
|---|
| 5542 | # define const
|
|---|
| 5543 | #endif
|
|---|
| 5544 |
|
|---|
| 5545 | /* The mapping between symbol names and symbols. */
|
|---|
| 5546 | const struct {
|
|---|
| 5547 | const char *name;
|
|---|
| 5548 | lt_ptr_t address;
|
|---|
| 5549 | }
|
|---|
| 5550 | lt_preloaded_symbols[[]] =
|
|---|
| 5551 | {
|
|---|
| 5552 | EOF
|
|---|
| 5553 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
|
|---|
| 5554 | cat <<\EOF >> conftest.$ac_ext
|
|---|
| 5555 | {0, (lt_ptr_t) 0}
|
|---|
| 5556 | };
|
|---|
| 5557 |
|
|---|
| 5558 | #ifdef __cplusplus
|
|---|
| 5559 | }
|
|---|
| 5560 | #endif
|
|---|
| 5561 | EOF
|
|---|
| 5562 | # Now try linking the two files.
|
|---|
| 5563 | mv conftest.$ac_objext conftstm.$ac_objext
|
|---|
| 5564 | lt_save_LIBS="$LIBS"
|
|---|
| 5565 | lt_save_CFLAGS="$CFLAGS"
|
|---|
| 5566 | LIBS="conftstm.$ac_objext"
|
|---|
| 5567 | CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
|
|---|
| 5568 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
|
|---|
| 5569 | pipe_works=yes
|
|---|
| 5570 | fi
|
|---|
| 5571 | LIBS="$lt_save_LIBS"
|
|---|
| 5572 | CFLAGS="$lt_save_CFLAGS"
|
|---|
| 5573 | else
|
|---|
| 5574 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
|
|---|
| 5575 | fi
|
|---|
| 5576 | else
|
|---|
| 5577 | echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
|
|---|
| 5578 | fi
|
|---|
| 5579 | else
|
|---|
| 5580 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
|
|---|
| 5581 | fi
|
|---|
| 5582 | else
|
|---|
| 5583 | echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
|
|---|
| 5584 | cat conftest.$ac_ext >&5
|
|---|
| 5585 | fi
|
|---|
| 5586 | rm -f conftest* conftst*
|
|---|
| 5587 |
|
|---|
| 5588 | # Do not use the global_symbol_pipe unless it works.
|
|---|
| 5589 | if test "$pipe_works" = yes; then
|
|---|
| 5590 | break
|
|---|
| 5591 | else
|
|---|
| 5592 | lt_cv_sys_global_symbol_pipe=
|
|---|
| 5593 | fi
|
|---|
| 5594 | done
|
|---|
| 5595 | ])
|
|---|
| 5596 | if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
|---|
| 5597 | lt_cv_sys_global_symbol_to_cdecl=
|
|---|
| 5598 | fi
|
|---|
| 5599 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
|---|
| 5600 | AC_MSG_RESULT(failed)
|
|---|
| 5601 | else
|
|---|
| 5602 | AC_MSG_RESULT(ok)
|
|---|
| 5603 | fi
|
|---|
| 5604 | ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
|---|
| 5605 |
|
|---|
| 5606 |
|
|---|
| 5607 | # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
|
|---|
| 5608 | # ---------------------------------------
|
|---|
| 5609 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
|
|---|
| 5610 | [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
|
|---|
| 5611 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
|---|
| 5612 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
|
|---|
| 5613 |
|
|---|
| 5614 | AC_MSG_CHECKING([for $compiler option to produce PIC])
|
|---|
| 5615 | ifelse([$1],[CXX],[
|
|---|
| 5616 | # C++ specific cases for pic, static, wl, etc.
|
|---|
| 5617 | if test "$GXX" = yes; then
|
|---|
| 5618 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5619 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|---|
| 5620 |
|
|---|
| 5621 | case $host_os in
|
|---|
| 5622 | aix*)
|
|---|
| 5623 | # All AIX code is PIC.
|
|---|
| 5624 | if test "$host_cpu" = ia64; then
|
|---|
| 5625 | # AIX 5 now supports IA64 processor
|
|---|
| 5626 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|---|
| 5627 | fi
|
|---|
| 5628 | ;;
|
|---|
| 5629 | amigaos*)
|
|---|
| 5630 | # FIXME: we need at least 68020 code to build shared libraries, but
|
|---|
| 5631 | # adding the `-m68020' flag to GCC prevents building anything better,
|
|---|
| 5632 | # like `-m68040'.
|
|---|
| 5633 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
|---|
| 5634 | ;;
|
|---|
| 5635 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|---|
| 5636 | # PIC is the default for these OSes.
|
|---|
| 5637 | ;;
|
|---|
| 5638 | mingw* | os2* | pw32*)
|
|---|
| 5639 | # This hack is so that the source file can tell whether it is being
|
|---|
| 5640 | # built for inclusion in a dll (and should export symbols for example).
|
|---|
| 5641 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
|---|
| 5642 | ;;
|
|---|
| 5643 | darwin* | rhapsody*)
|
|---|
| 5644 | # PIC is the default on this platform
|
|---|
| 5645 | # Common symbols not allowed in MH_DYLIB files
|
|---|
| 5646 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
|---|
| 5647 | ;;
|
|---|
| 5648 | *djgpp*)
|
|---|
| 5649 | # DJGPP does not support shared libraries at all
|
|---|
| 5650 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
|---|
| 5651 | ;;
|
|---|
| 5652 | sysv4*MP*)
|
|---|
| 5653 | if test -d /usr/nec; then
|
|---|
| 5654 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
|---|
| 5655 | fi
|
|---|
| 5656 | ;;
|
|---|
| 5657 | hpux*)
|
|---|
| 5658 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|---|
| 5659 | # not for PA HP-UX.
|
|---|
| 5660 | case "$host_cpu" in
|
|---|
| 5661 | hppa*64*|ia64*)
|
|---|
| 5662 | ;;
|
|---|
| 5663 | *)
|
|---|
| 5664 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|---|
| 5665 | ;;
|
|---|
| 5666 | esac
|
|---|
| 5667 | ;;
|
|---|
| 5668 | *)
|
|---|
| 5669 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|---|
| 5670 | ;;
|
|---|
| 5671 | esac
|
|---|
| 5672 | else
|
|---|
| 5673 | case $host_os in
|
|---|
| 5674 | aix4* | aix5*)
|
|---|
| 5675 | # All AIX code is PIC.
|
|---|
| 5676 | if test "$host_cpu" = ia64; then
|
|---|
| 5677 | # AIX 5 now supports IA64 processor
|
|---|
| 5678 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|---|
| 5679 | else
|
|---|
| 5680 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
|---|
| 5681 | fi
|
|---|
| 5682 | ;;
|
|---|
| 5683 | chorus*)
|
|---|
| 5684 | case $cc_basename in
|
|---|
| 5685 | cxch68*)
|
|---|
| 5686 | # Green Hills C++ Compiler
|
|---|
| 5687 | # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
|
|---|
| 5688 | ;;
|
|---|
| 5689 | esac
|
|---|
| 5690 | ;;
|
|---|
| 5691 | darwin*)
|
|---|
| 5692 | # PIC is the default on this platform
|
|---|
| 5693 | # Common symbols not allowed in MH_DYLIB files
|
|---|
| 5694 | case $cc_basename in
|
|---|
| 5695 | xlc*)
|
|---|
| 5696 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
|
|---|
| 5697 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5698 | ;;
|
|---|
| 5699 | esac
|
|---|
| 5700 | ;;
|
|---|
| 5701 | dgux*)
|
|---|
| 5702 | case $cc_basename in
|
|---|
| 5703 | ec++*)
|
|---|
| 5704 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|---|
| 5705 | ;;
|
|---|
| 5706 | ghcx*)
|
|---|
| 5707 | # Green Hills C++ Compiler
|
|---|
| 5708 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|---|
| 5709 | ;;
|
|---|
| 5710 | *)
|
|---|
| 5711 | ;;
|
|---|
| 5712 | esac
|
|---|
| 5713 | ;;
|
|---|
| 5714 | freebsd* | kfreebsd*-gnu | dragonfly*)
|
|---|
| 5715 | # FreeBSD uses GNU C++
|
|---|
| 5716 | ;;
|
|---|
| 5717 | hpux9* | hpux10* | hpux11*)
|
|---|
| 5718 | case $cc_basename in
|
|---|
| 5719 | CC*)
|
|---|
| 5720 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5721 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
|
|---|
| 5722 | if test "$host_cpu" != ia64; then
|
|---|
| 5723 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
|---|
| 5724 | fi
|
|---|
| 5725 | ;;
|
|---|
| 5726 | aCC*)
|
|---|
| 5727 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5728 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
|
|---|
| 5729 | case "$host_cpu" in
|
|---|
| 5730 | hppa*64*|ia64*)
|
|---|
| 5731 | # +Z the default
|
|---|
| 5732 | ;;
|
|---|
| 5733 | *)
|
|---|
| 5734 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
|---|
| 5735 | ;;
|
|---|
| 5736 | esac
|
|---|
| 5737 | ;;
|
|---|
| 5738 | *)
|
|---|
| 5739 | ;;
|
|---|
| 5740 | esac
|
|---|
| 5741 | ;;
|
|---|
| 5742 | irix5* | irix6* | nonstopux*)
|
|---|
| 5743 | case $cc_basename in
|
|---|
| 5744 | CC*)
|
|---|
| 5745 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5746 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|---|
| 5747 | # CC pic flag -KPIC is the default.
|
|---|
| 5748 | ;;
|
|---|
| 5749 | *)
|
|---|
| 5750 | ;;
|
|---|
| 5751 | esac
|
|---|
| 5752 | ;;
|
|---|
| 5753 | linux*)
|
|---|
| 5754 | case $cc_basename in
|
|---|
| 5755 | KCC*)
|
|---|
| 5756 | # KAI C++ Compiler
|
|---|
| 5757 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
|---|
| 5758 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|---|
| 5759 | ;;
|
|---|
| 5760 | icpc* | ecpc*)
|
|---|
| 5761 | # Intel C++
|
|---|
| 5762 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5763 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|---|
| 5764 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|---|
| 5765 | ;;
|
|---|
| 5766 | pgCC*)
|
|---|
| 5767 | # Portland Group C++ compiler.
|
|---|
| 5768 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5769 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
|---|
| 5770 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|---|
| 5771 | ;;
|
|---|
| 5772 | cxx*)
|
|---|
| 5773 | # Compaq C++
|
|---|
| 5774 | # Make sure the PIC flag is empty. It appears that all Alpha
|
|---|
| 5775 | # Linux and Compaq Tru64 Unix objects are PIC.
|
|---|
| 5776 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
|---|
| 5777 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|---|
| 5778 | ;;
|
|---|
| 5779 | *)
|
|---|
| 5780 | ;;
|
|---|
| 5781 | esac
|
|---|
| 5782 | ;;
|
|---|
| 5783 | lynxos*)
|
|---|
| 5784 | ;;
|
|---|
| 5785 | m88k*)
|
|---|
| 5786 | ;;
|
|---|
| 5787 | mvs*)
|
|---|
| 5788 | case $cc_basename in
|
|---|
| 5789 | cxx*)
|
|---|
| 5790 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
|
|---|
| 5791 | ;;
|
|---|
| 5792 | *)
|
|---|
| 5793 | ;;
|
|---|
| 5794 | esac
|
|---|
| 5795 | ;;
|
|---|
| 5796 | netbsd*)
|
|---|
| 5797 | ;;
|
|---|
| 5798 | osf3* | osf4* | osf5*)
|
|---|
| 5799 | case $cc_basename in
|
|---|
| 5800 | KCC*)
|
|---|
| 5801 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
|---|
| 5802 | ;;
|
|---|
| 5803 | RCC*)
|
|---|
| 5804 | # Rational C++ 2.4.1
|
|---|
| 5805 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|---|
| 5806 | ;;
|
|---|
| 5807 | cxx*)
|
|---|
| 5808 | # Digital/Compaq C++
|
|---|
| 5809 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5810 | # Make sure the PIC flag is empty. It appears that all Alpha
|
|---|
| 5811 | # Linux and Compaq Tru64 Unix objects are PIC.
|
|---|
| 5812 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
|---|
| 5813 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|---|
| 5814 | ;;
|
|---|
| 5815 | *)
|
|---|
| 5816 | ;;
|
|---|
| 5817 | esac
|
|---|
| 5818 | ;;
|
|---|
| 5819 | psos*)
|
|---|
| 5820 | ;;
|
|---|
| 5821 | sco*)
|
|---|
| 5822 | case $cc_basename in
|
|---|
| 5823 | CC*)
|
|---|
| 5824 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|---|
| 5825 | ;;
|
|---|
| 5826 | *)
|
|---|
| 5827 | ;;
|
|---|
| 5828 | esac
|
|---|
| 5829 | ;;
|
|---|
| 5830 | solaris*)
|
|---|
| 5831 | case $cc_basename in
|
|---|
| 5832 | CC*)
|
|---|
| 5833 | # Sun C++ 4.2, 5.x and Centerline C++
|
|---|
| 5834 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|---|
| 5835 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|---|
| 5836 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
|---|
| 5837 | ;;
|
|---|
| 5838 | gcx*)
|
|---|
| 5839 | # Green Hills C++ Compiler
|
|---|
| 5840 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
|---|
| 5841 | ;;
|
|---|
| 5842 | *)
|
|---|
| 5843 | ;;
|
|---|
| 5844 | esac
|
|---|
| 5845 | ;;
|
|---|
| 5846 | sunos4*)
|
|---|
| 5847 | case $cc_basename in
|
|---|
| 5848 | CC*)
|
|---|
| 5849 | # Sun C++ 4.x
|
|---|
| 5850 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|---|
| 5851 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|---|
| 5852 | ;;
|
|---|
| 5853 | lcc*)
|
|---|
| 5854 | # Lucid
|
|---|
| 5855 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|---|
| 5856 | ;;
|
|---|
| 5857 | *)
|
|---|
| 5858 | ;;
|
|---|
| 5859 | esac
|
|---|
| 5860 | ;;
|
|---|
| 5861 | tandem*)
|
|---|
| 5862 | case $cc_basename in
|
|---|
| 5863 | NCC*)
|
|---|
| 5864 | # NonStop-UX NCC 3.20
|
|---|
| 5865 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|---|
| 5866 | ;;
|
|---|
| 5867 | *)
|
|---|
| 5868 | ;;
|
|---|
| 5869 | esac
|
|---|
| 5870 | ;;
|
|---|
| 5871 | unixware*)
|
|---|
| 5872 | ;;
|
|---|
| 5873 | vxworks*)
|
|---|
| 5874 | ;;
|
|---|
| 5875 | *)
|
|---|
| 5876 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|---|
| 5877 | ;;
|
|---|
| 5878 | esac
|
|---|
| 5879 | fi
|
|---|
| 5880 | ],
|
|---|
| 5881 | [
|
|---|
| 5882 | if test "$GCC" = yes; then
|
|---|
| 5883 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5884 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|---|
| 5885 |
|
|---|
| 5886 | case $host_os in
|
|---|
| 5887 | aix*)
|
|---|
| 5888 | # All AIX code is PIC.
|
|---|
| 5889 | if test "$host_cpu" = ia64; then
|
|---|
| 5890 | # AIX 5 now supports IA64 processor
|
|---|
| 5891 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|---|
| 5892 | fi
|
|---|
| 5893 | ;;
|
|---|
| 5894 |
|
|---|
| 5895 | amigaos*)
|
|---|
| 5896 | # FIXME: we need at least 68020 code to build shared libraries, but
|
|---|
| 5897 | # adding the `-m68020' flag to GCC prevents building anything better,
|
|---|
| 5898 | # like `-m68040'.
|
|---|
| 5899 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
|---|
| 5900 | ;;
|
|---|
| 5901 |
|
|---|
| 5902 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|---|
| 5903 | # PIC is the default for these OSes.
|
|---|
| 5904 | ;;
|
|---|
| 5905 |
|
|---|
| 5906 | mingw* | pw32* | os2*)
|
|---|
| 5907 | # This hack is so that the source file can tell whether it is being
|
|---|
| 5908 | # built for inclusion in a dll (and should export symbols for example).
|
|---|
| 5909 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
|---|
| 5910 | ;;
|
|---|
| 5911 |
|
|---|
| 5912 | darwin* | rhapsody*)
|
|---|
| 5913 | # PIC is the default on this platform
|
|---|
| 5914 | # Common symbols not allowed in MH_DYLIB files
|
|---|
| 5915 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
|---|
| 5916 | ;;
|
|---|
| 5917 |
|
|---|
| 5918 | msdosdjgpp*)
|
|---|
| 5919 | # Just because we use GCC doesn't mean we suddenly get shared libraries
|
|---|
| 5920 | # on systems that don't support them.
|
|---|
| 5921 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|---|
| 5922 | enable_shared=no
|
|---|
| 5923 | ;;
|
|---|
| 5924 |
|
|---|
| 5925 | sysv4*MP*)
|
|---|
| 5926 | if test -d /usr/nec; then
|
|---|
| 5927 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
|---|
| 5928 | fi
|
|---|
| 5929 | ;;
|
|---|
| 5930 |
|
|---|
| 5931 | hpux*)
|
|---|
| 5932 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|---|
| 5933 | # not for PA HP-UX.
|
|---|
| 5934 | case "$host_cpu" in
|
|---|
| 5935 | hppa*64*|ia64*)
|
|---|
| 5936 | # +Z the default
|
|---|
| 5937 | ;;
|
|---|
| 5938 | *)
|
|---|
| 5939 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|---|
| 5940 | ;;
|
|---|
| 5941 | esac
|
|---|
| 5942 | ;;
|
|---|
| 5943 |
|
|---|
| 5944 | *)
|
|---|
| 5945 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|---|
| 5946 | ;;
|
|---|
| 5947 | esac
|
|---|
| 5948 | else
|
|---|
| 5949 | # PORTME Check for flag to pass linker flags through the system compiler.
|
|---|
| 5950 | case $host_os in
|
|---|
| 5951 | aix*)
|
|---|
| 5952 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5953 | if test "$host_cpu" = ia64; then
|
|---|
| 5954 | # AIX 5 now supports IA64 processor
|
|---|
| 5955 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|---|
| 5956 | else
|
|---|
| 5957 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
|---|
| 5958 | fi
|
|---|
| 5959 | ;;
|
|---|
| 5960 | darwin*)
|
|---|
| 5961 | # PIC is the default on this platform
|
|---|
| 5962 | # Common symbols not allowed in MH_DYLIB files
|
|---|
| 5963 | case $cc_basename in
|
|---|
| 5964 | xlc*)
|
|---|
| 5965 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
|
|---|
| 5966 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5967 | ;;
|
|---|
| 5968 | esac
|
|---|
| 5969 | ;;
|
|---|
| 5970 |
|
|---|
| 5971 | mingw* | pw32* | os2*)
|
|---|
| 5972 | # This hack is so that the source file can tell whether it is being
|
|---|
| 5973 | # built for inclusion in a dll (and should export symbols for example).
|
|---|
| 5974 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
|---|
| 5975 | ;;
|
|---|
| 5976 |
|
|---|
| 5977 | hpux9* | hpux10* | hpux11*)
|
|---|
| 5978 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5979 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|---|
| 5980 | # not for PA HP-UX.
|
|---|
| 5981 | case "$host_cpu" in
|
|---|
| 5982 | hppa*64*|ia64*)
|
|---|
| 5983 | # +Z the default
|
|---|
| 5984 | ;;
|
|---|
| 5985 | *)
|
|---|
| 5986 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
|---|
| 5987 | ;;
|
|---|
| 5988 | esac
|
|---|
| 5989 | # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
|---|
| 5990 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
|---|
| 5991 | ;;
|
|---|
| 5992 |
|
|---|
| 5993 | irix5* | irix6* | nonstopux*)
|
|---|
| 5994 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 5995 | # PIC (with -KPIC) is the default.
|
|---|
| 5996 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|---|
| 5997 | ;;
|
|---|
| 5998 |
|
|---|
| 5999 | newsos6)
|
|---|
| 6000 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|---|
| 6001 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|---|
| 6002 | ;;
|
|---|
| 6003 |
|
|---|
| 6004 | linux*)
|
|---|
| 6005 | case $cc_basename in
|
|---|
| 6006 | icc* | ecc*)
|
|---|
| 6007 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 6008 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|---|
| 6009 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|---|
| 6010 | ;;
|
|---|
| 6011 | pgcc* | pgf77* | pgf90*)
|
|---|
| 6012 | # Portland Group compilers (*not* the Pentium gcc compiler,
|
|---|
| 6013 | # which looks to be a dead project)
|
|---|
| 6014 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 6015 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
|---|
| 6016 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|---|
| 6017 | ;;
|
|---|
| 6018 | ccc*)
|
|---|
| 6019 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 6020 | # All Alpha code is PIC.
|
|---|
| 6021 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|---|
| 6022 | ;;
|
|---|
| 6023 | esac
|
|---|
| 6024 | ;;
|
|---|
| 6025 |
|
|---|
| 6026 | osf3* | osf4* | osf5*)
|
|---|
| 6027 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 6028 | # All OSF/1 code is PIC.
|
|---|
| 6029 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|---|
| 6030 | ;;
|
|---|
| 6031 |
|
|---|
| 6032 | sco3.2v5*)
|
|---|
| 6033 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
|
|---|
| 6034 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
|
|---|
| 6035 | ;;
|
|---|
| 6036 |
|
|---|
| 6037 | solaris*)
|
|---|
| 6038 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|---|
| 6039 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|---|
| 6040 | case $cc_basename in
|
|---|
| 6041 | f77* | f90* | f95*)
|
|---|
| 6042 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
|
|---|
| 6043 | *)
|
|---|
| 6044 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
|
|---|
| 6045 | esac
|
|---|
| 6046 | ;;
|
|---|
| 6047 |
|
|---|
| 6048 | sunos4*)
|
|---|
| 6049 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
|---|
| 6050 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
|---|
| 6051 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|---|
| 6052 | ;;
|
|---|
| 6053 |
|
|---|
| 6054 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 6055 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 6056 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|---|
| 6057 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|---|
| 6058 | ;;
|
|---|
| 6059 |
|
|---|
| 6060 | sysv4*MP*)
|
|---|
| 6061 | if test -d /usr/nec ;then
|
|---|
| 6062 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
|
|---|
| 6063 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|---|
| 6064 | fi
|
|---|
| 6065 | ;;
|
|---|
| 6066 |
|
|---|
| 6067 | unicos*)
|
|---|
| 6068 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|---|
| 6069 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|---|
| 6070 | ;;
|
|---|
| 6071 |
|
|---|
| 6072 | uts4*)
|
|---|
| 6073 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|---|
| 6074 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|---|
| 6075 | ;;
|
|---|
| 6076 |
|
|---|
| 6077 | *)
|
|---|
| 6078 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|---|
| 6079 | ;;
|
|---|
| 6080 | esac
|
|---|
| 6081 | fi
|
|---|
| 6082 | ])
|
|---|
| 6083 | AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
|
|---|
| 6084 |
|
|---|
| 6085 | #
|
|---|
| 6086 | # Check to make sure the PIC flag actually works.
|
|---|
| 6087 | #
|
|---|
| 6088 | if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
|---|
| 6089 | AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
|
|---|
| 6090 | _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
|
|---|
| 6091 | [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
|
|---|
| 6092 | [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
|
|---|
| 6093 | "" | " "*) ;;
|
|---|
| 6094 | *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
|
|---|
| 6095 | esac],
|
|---|
| 6096 | [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
|---|
| 6097 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
|
|---|
| 6098 | fi
|
|---|
| 6099 | case "$host_os" in
|
|---|
| 6100 | # For platforms which do not support PIC, -DPIC is meaningless:
|
|---|
| 6101 | *djgpp*)
|
|---|
| 6102 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
|---|
| 6103 | ;;
|
|---|
| 6104 | *)
|
|---|
| 6105 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
|
|---|
| 6106 | ;;
|
|---|
| 6107 | esac
|
|---|
| 6108 | ])
|
|---|
| 6109 |
|
|---|
| 6110 |
|
|---|
| 6111 | # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
|
|---|
| 6112 | # ------------------------------------
|
|---|
| 6113 | # See if the linker supports building shared libraries.
|
|---|
| 6114 | AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
|
|---|
| 6115 | [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
|---|
| 6116 | ifelse([$1],[CXX],[
|
|---|
| 6117 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|---|
| 6118 | case $host_os in
|
|---|
| 6119 | aix4* | aix5*)
|
|---|
| 6120 | # If we're using GNU nm, then we don't want the "-C" option.
|
|---|
| 6121 | # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
|---|
| 6122 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
|---|
| 6123 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
|
|---|
| 6124 | else
|
|---|
| 6125 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
|
|---|
| 6126 | fi
|
|---|
| 6127 | ;;
|
|---|
| 6128 | pw32*)
|
|---|
| 6129 | _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
|
|---|
| 6130 | ;;
|
|---|
| 6131 | cygwin* | mingw*)
|
|---|
| 6132 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
|
|---|
| 6133 | ;;
|
|---|
| 6134 | *)
|
|---|
| 6135 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|---|
| 6136 | ;;
|
|---|
| 6137 | esac
|
|---|
| 6138 | ],[
|
|---|
| 6139 | runpath_var=
|
|---|
| 6140 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
|---|
| 6141 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
|---|
| 6142 | _LT_AC_TAGVAR(archive_cmds, $1)=
|
|---|
| 6143 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
|---|
| 6144 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
|
|---|
| 6145 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
|
|---|
| 6146 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
|---|
| 6147 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
|---|
| 6148 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
|
|---|
| 6149 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|---|
| 6150 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
|---|
| 6151 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
|---|
| 6152 | _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|---|
| 6153 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
|---|
| 6154 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|---|
| 6155 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
|---|
| 6156 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
|---|
| 6157 | _LT_AC_TAGVAR(module_cmds, $1)=
|
|---|
| 6158 | _LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
|---|
| 6159 | _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
|---|
| 6160 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|---|
| 6161 | # include_expsyms should be a list of space-separated symbols to be *always*
|
|---|
| 6162 | # included in the symbol list
|
|---|
| 6163 | _LT_AC_TAGVAR(include_expsyms, $1)=
|
|---|
| 6164 | # exclude_expsyms can be an extended regexp of symbols to exclude
|
|---|
| 6165 | # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
|---|
| 6166 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
|---|
| 6167 | # as well as any symbol that contains `d'.
|
|---|
| 6168 | _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
|
|---|
| 6169 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
|---|
| 6170 | # platforms (ab)use it in PIC code, but their linkers get confused if
|
|---|
| 6171 | # the symbol is explicitly referenced. Since portable code cannot
|
|---|
| 6172 | # rely on this symbol name, it's probably fine to never include it in
|
|---|
| 6173 | # preloaded symbol tables.
|
|---|
| 6174 | extract_expsyms_cmds=
|
|---|
| 6175 | # Just being paranoid about ensuring that cc_basename is set.
|
|---|
| 6176 | _LT_CC_BASENAME([$compiler])
|
|---|
| 6177 | case $host_os in
|
|---|
| 6178 | cygwin* | mingw* | pw32*)
|
|---|
| 6179 | # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
|---|
| 6180 | # When not using gcc, we currently assume that we are using
|
|---|
| 6181 | # Microsoft Visual C++.
|
|---|
| 6182 | if test "$GCC" != yes; then
|
|---|
| 6183 | with_gnu_ld=no
|
|---|
| 6184 | fi
|
|---|
| 6185 | ;;
|
|---|
| 6186 | openbsd*)
|
|---|
| 6187 | with_gnu_ld=no
|
|---|
| 6188 | ;;
|
|---|
| 6189 | esac
|
|---|
| 6190 |
|
|---|
| 6191 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
|---|
| 6192 | if test "$with_gnu_ld" = yes; then
|
|---|
| 6193 | # If archive_cmds runs LD, not CC, wlarc should be empty
|
|---|
| 6194 | wlarc='${wl}'
|
|---|
| 6195 |
|
|---|
| 6196 | # Set some defaults for GNU ld with shared library support. These
|
|---|
| 6197 | # are reset later if shared libraries are not supported. Putting them
|
|---|
| 6198 | # here allows them to be overridden if necessary.
|
|---|
| 6199 | runpath_var=LD_RUN_PATH
|
|---|
| 6200 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
|---|
| 6201 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|---|
| 6202 | # ancient GNU ld didn't support --whole-archive et. al.
|
|---|
| 6203 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
|---|
| 6204 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|---|
| 6205 | else
|
|---|
| 6206 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
|---|
| 6207 | fi
|
|---|
| 6208 | supports_anon_versioning=no
|
|---|
| 6209 | case `$LD -v 2>/dev/null` in
|
|---|
| 6210 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
|
|---|
| 6211 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
|---|
| 6212 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
|---|
| 6213 | *\ 2.11.*) ;; # other 2.11 versions
|
|---|
| 6214 | *) supports_anon_versioning=yes ;;
|
|---|
| 6215 | esac
|
|---|
| 6216 |
|
|---|
| 6217 | # See if GNU ld supports shared libraries.
|
|---|
| 6218 | case $host_os in
|
|---|
| 6219 | aix3* | aix4* | aix5*)
|
|---|
| 6220 | # On AIX/PPC, the GNU linker is very broken
|
|---|
| 6221 | if test "$host_cpu" != ia64; then
|
|---|
| 6222 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 6223 | cat <<EOF 1>&2
|
|---|
| 6224 |
|
|---|
| 6225 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
|---|
| 6226 | *** to be unable to reliably create shared libraries on AIX.
|
|---|
| 6227 | *** Therefore, libtool is disabling shared libraries support. If you
|
|---|
| 6228 | *** really care for shared libraries, you may want to modify your PATH
|
|---|
| 6229 | *** so that a non-GNU linker is found, and then restart.
|
|---|
| 6230 |
|
|---|
| 6231 | EOF
|
|---|
| 6232 | fi
|
|---|
| 6233 | ;;
|
|---|
| 6234 |
|
|---|
| 6235 | amigaos*)
|
|---|
| 6236 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
|---|
| 6237 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|---|
| 6238 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|---|
| 6239 |
|
|---|
| 6240 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
|---|
| 6241 | # that the semantics of dynamic libraries on AmigaOS, at least up
|
|---|
| 6242 | # to version 4, is to share data among multiple programs linked
|
|---|
| 6243 | # with the same dynamic library. Since this doesn't match the
|
|---|
| 6244 | # behavior of shared libraries on other platforms, we can't use
|
|---|
| 6245 | # them.
|
|---|
| 6246 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 6247 | ;;
|
|---|
| 6248 |
|
|---|
| 6249 | beos*)
|
|---|
| 6250 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|---|
| 6251 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|---|
| 6252 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|---|
| 6253 | # support --undefined. This deserves some investigation. FIXME
|
|---|
| 6254 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|---|
| 6255 | else
|
|---|
| 6256 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 6257 | fi
|
|---|
| 6258 | ;;
|
|---|
| 6259 |
|
|---|
| 6260 | cygwin* | mingw* | pw32*)
|
|---|
| 6261 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
|---|
| 6262 | # as there is no search path for DLLs.
|
|---|
| 6263 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|---|
| 6264 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|---|
| 6265 | _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
|---|
| 6266 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|---|
| 6267 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
|
|---|
| 6268 |
|
|---|
| 6269 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
|---|
| 6270 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|---|
| 6271 | # If the export-symbols file already is a .def file (1st line
|
|---|
| 6272 | # is EXPORTS), use it as is; otherwise, prepend...
|
|---|
| 6273 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|---|
| 6274 | cp $export_symbols $output_objdir/$soname.def;
|
|---|
| 6275 | else
|
|---|
| 6276 | echo EXPORTS > $output_objdir/$soname.def;
|
|---|
| 6277 | cat $export_symbols >> $output_objdir/$soname.def;
|
|---|
| 6278 | fi~
|
|---|
| 6279 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|---|
| 6280 | else
|
|---|
| 6281 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 6282 | fi
|
|---|
| 6283 | ;;
|
|---|
| 6284 |
|
|---|
| 6285 | linux*)
|
|---|
| 6286 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|---|
| 6287 | tmp_addflag=
|
|---|
| 6288 | case $cc_basename,$host_cpu in
|
|---|
| 6289 | pgcc*) # Portland Group C compiler
|
|---|
| 6290 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|---|
| 6291 | tmp_addflag=' $pic_flag'
|
|---|
| 6292 | ;;
|
|---|
| 6293 | pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
|
|---|
| 6294 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|---|
| 6295 | tmp_addflag=' $pic_flag -Mnomain' ;;
|
|---|
| 6296 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
|---|
| 6297 | tmp_addflag=' -i_dynamic' ;;
|
|---|
| 6298 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
|---|
| 6299 | tmp_addflag=' -i_dynamic -nofor_main' ;;
|
|---|
| 6300 | ifc* | ifort*) # Intel Fortran compiler
|
|---|
| 6301 | tmp_addflag=' -nofor_main' ;;
|
|---|
| 6302 | esac
|
|---|
| 6303 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|---|
| 6304 |
|
|---|
| 6305 | if test $supports_anon_versioning = yes; then
|
|---|
| 6306 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
|
|---|
| 6307 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|---|
| 6308 | $echo "local: *; };" >> $output_objdir/$libname.ver~
|
|---|
| 6309 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|---|
| 6310 | fi
|
|---|
| 6311 | else
|
|---|
| 6312 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 6313 | fi
|
|---|
| 6314 | ;;
|
|---|
| 6315 |
|
|---|
| 6316 | netbsd*)
|
|---|
| 6317 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|---|
| 6318 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|---|
| 6319 | wlarc=
|
|---|
| 6320 | else
|
|---|
| 6321 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|---|
| 6322 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|---|
| 6323 | fi
|
|---|
| 6324 | ;;
|
|---|
| 6325 |
|
|---|
| 6326 | solaris* | sysv5*)
|
|---|
| 6327 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
|---|
| 6328 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 6329 | cat <<EOF 1>&2
|
|---|
| 6330 |
|
|---|
| 6331 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
|---|
| 6332 | *** create shared libraries on Solaris systems. Therefore, libtool
|
|---|
| 6333 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
|---|
| 6334 | *** binutils to release 2.9.1 or newer. Another option is to modify
|
|---|
| 6335 | *** your PATH or compiler configuration so that the native linker is
|
|---|
| 6336 | *** used, and then restart.
|
|---|
| 6337 |
|
|---|
| 6338 | EOF
|
|---|
| 6339 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|---|
| 6340 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|---|
| 6341 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|---|
| 6342 | else
|
|---|
| 6343 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 6344 | fi
|
|---|
| 6345 | ;;
|
|---|
| 6346 |
|
|---|
| 6347 | sunos4*)
|
|---|
| 6348 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6349 | wlarc=
|
|---|
| 6350 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6351 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6352 | ;;
|
|---|
| 6353 |
|
|---|
| 6354 | *)
|
|---|
| 6355 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|---|
| 6356 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|---|
| 6357 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|---|
| 6358 | else
|
|---|
| 6359 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 6360 | fi
|
|---|
| 6361 | ;;
|
|---|
| 6362 | esac
|
|---|
| 6363 |
|
|---|
| 6364 | if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
|
|---|
| 6365 | runpath_var=
|
|---|
| 6366 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|---|
| 6367 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
|---|
| 6368 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
|---|
| 6369 | fi
|
|---|
| 6370 | else
|
|---|
| 6371 | # PORTME fill in a description of your system's linker (not GNU ld)
|
|---|
| 6372 | case $host_os in
|
|---|
| 6373 | aix3*)
|
|---|
| 6374 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|---|
| 6375 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
|---|
| 6376 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
|---|
| 6377 | # Note: this linker hardcodes the directories in LIBPATH if there
|
|---|
| 6378 | # are no directories specified by -L.
|
|---|
| 6379 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|---|
| 6380 | if test "$GCC" = yes && test -z "$link_static_flag"; then
|
|---|
| 6381 | # Neither direct hardcoding nor static linking is supported with a
|
|---|
| 6382 | # broken collect2.
|
|---|
| 6383 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
|---|
| 6384 | fi
|
|---|
| 6385 | ;;
|
|---|
| 6386 |
|
|---|
| 6387 | aix4* | aix5*)
|
|---|
| 6388 | if test "$host_cpu" = ia64; then
|
|---|
| 6389 | # On IA64, the linker does run time linking by default, so we don't
|
|---|
| 6390 | # have to do anything special.
|
|---|
| 6391 | aix_use_runtimelinking=no
|
|---|
| 6392 | exp_sym_flag='-Bexport'
|
|---|
| 6393 | no_entry_flag=""
|
|---|
| 6394 | else
|
|---|
| 6395 | # If we're using GNU nm, then we don't want the "-C" option.
|
|---|
| 6396 | # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
|---|
| 6397 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
|---|
| 6398 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
|
|---|
| 6399 | else
|
|---|
| 6400 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
|
|---|
| 6401 | fi
|
|---|
| 6402 | aix_use_runtimelinking=no
|
|---|
| 6403 |
|
|---|
| 6404 | # Test if we are trying to use run time linking or normal
|
|---|
| 6405 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
|---|
| 6406 | # need to do runtime linking.
|
|---|
| 6407 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
|
|---|
| 6408 | for ld_flag in $LDFLAGS; do
|
|---|
| 6409 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
|---|
| 6410 | aix_use_runtimelinking=yes
|
|---|
| 6411 | break
|
|---|
| 6412 | fi
|
|---|
| 6413 | done
|
|---|
| 6414 | esac
|
|---|
| 6415 |
|
|---|
| 6416 | exp_sym_flag='-bexport'
|
|---|
| 6417 | no_entry_flag='-bnoentry'
|
|---|
| 6418 | fi
|
|---|
| 6419 |
|
|---|
| 6420 | # When large executables or shared objects are built, AIX ld can
|
|---|
| 6421 | # have problems creating the table of contents. If linking a library
|
|---|
| 6422 | # or program results in "error TOC overflow" add -mminimal-toc to
|
|---|
| 6423 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
|---|
| 6424 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
|---|
| 6425 |
|
|---|
| 6426 | _LT_AC_TAGVAR(archive_cmds, $1)=''
|
|---|
| 6427 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6428 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
|---|
| 6429 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|---|
| 6430 |
|
|---|
| 6431 | if test "$GCC" = yes; then
|
|---|
| 6432 | case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
|---|
| 6433 | # We only want to do this on AIX 4.2 and lower, the check
|
|---|
| 6434 | # below for broken collect2 doesn't work under 4.3+
|
|---|
| 6435 | collect2name=`${CC} -print-prog-name=collect2`
|
|---|
| 6436 | if test -f "$collect2name" && \
|
|---|
| 6437 | strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|---|
| 6438 | then
|
|---|
| 6439 | # We have reworked collect2
|
|---|
| 6440 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6441 | else
|
|---|
| 6442 | # We have old collect2
|
|---|
| 6443 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
|---|
| 6444 | # It fails to find uninstalled libraries when the uninstalled
|
|---|
| 6445 | # path is not listed in the libpath. Setting hardcode_minus_L
|
|---|
| 6446 | # to unsupported forces relinking
|
|---|
| 6447 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|---|
| 6448 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|---|
| 6449 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
|---|
| 6450 | fi
|
|---|
| 6451 | esac
|
|---|
| 6452 | shared_flag='-shared'
|
|---|
| 6453 | if test "$aix_use_runtimelinking" = yes; then
|
|---|
| 6454 | shared_flag="$shared_flag "'${wl}-G'
|
|---|
| 6455 | fi
|
|---|
| 6456 | else
|
|---|
| 6457 | # not using gcc
|
|---|
| 6458 | if test "$host_cpu" = ia64; then
|
|---|
| 6459 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
|---|
| 6460 | # chokes on -Wl,-G. The following line is correct:
|
|---|
| 6461 | shared_flag='-G'
|
|---|
| 6462 | else
|
|---|
| 6463 | if test "$aix_use_runtimelinking" = yes; then
|
|---|
| 6464 | shared_flag='${wl}-G'
|
|---|
| 6465 | else
|
|---|
| 6466 | shared_flag='${wl}-bM:SRE'
|
|---|
| 6467 | fi
|
|---|
| 6468 | fi
|
|---|
| 6469 | fi
|
|---|
| 6470 |
|
|---|
| 6471 | # It seems that -bexpall does not export symbols beginning with
|
|---|
| 6472 | # underscore (_), so it is better to generate a list of symbols to export.
|
|---|
| 6473 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
|---|
| 6474 | if test "$aix_use_runtimelinking" = yes; then
|
|---|
| 6475 | # Warning - without using the other runtime loading flags (-brtl),
|
|---|
| 6476 | # -berok will link without error, but may produce a broken library.
|
|---|
| 6477 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
|
|---|
| 6478 | # Determine the default libpath from the value encoded in an empty executable.
|
|---|
| 6479 | _LT_AC_SYS_LIBPATH_AIX
|
|---|
| 6480 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|---|
| 6481 | _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"
|
|---|
| 6482 | else
|
|---|
| 6483 | if test "$host_cpu" = ia64; then
|
|---|
| 6484 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
|---|
| 6485 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
|---|
| 6486 | _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"
|
|---|
| 6487 | else
|
|---|
| 6488 | # Determine the default libpath from the value encoded in an empty executable.
|
|---|
| 6489 | _LT_AC_SYS_LIBPATH_AIX
|
|---|
| 6490 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|---|
| 6491 | # Warning - without using the other run time loading flags,
|
|---|
| 6492 | # -berok will link without error, but may produce a broken library.
|
|---|
| 6493 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
|---|
| 6494 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
|---|
| 6495 | # -bexpall does not export symbols beginning with underscore (_)
|
|---|
| 6496 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
|---|
| 6497 | # Exported symbols can be pulled into shared objects from archives
|
|---|
| 6498 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
|
|---|
| 6499 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|---|
| 6500 | # This is similar to how AIX traditionally builds it's shared libraries.
|
|---|
| 6501 | _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'
|
|---|
| 6502 | fi
|
|---|
| 6503 | fi
|
|---|
| 6504 | ;;
|
|---|
| 6505 |
|
|---|
| 6506 | amigaos*)
|
|---|
| 6507 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
|---|
| 6508 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|---|
| 6509 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|---|
| 6510 | # see comment about different semantics on the GNU ld section
|
|---|
| 6511 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 6512 | ;;
|
|---|
| 6513 |
|
|---|
| 6514 | bsdi[[45]]*)
|
|---|
| 6515 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
|
|---|
| 6516 | ;;
|
|---|
| 6517 |
|
|---|
| 6518 | cygwin* | mingw* | pw32*)
|
|---|
| 6519 | # When not using gcc, we currently assume that we are using
|
|---|
| 6520 | # Microsoft Visual C++.
|
|---|
| 6521 | # hardcode_libdir_flag_spec is actually meaningless, as there is
|
|---|
| 6522 | # no search path for DLLs.
|
|---|
| 6523 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
|---|
| 6524 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|---|
| 6525 | # Tell ltmain to make .lib files, not .a files.
|
|---|
| 6526 | libext=lib
|
|---|
| 6527 | # Tell ltmain to make .dll files, not .so files.
|
|---|
| 6528 | shrext_cmds=".dll"
|
|---|
| 6529 | # FIXME: Setting linknames here is a bad hack.
|
|---|
| 6530 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
|---|
| 6531 | # The linker will automatically build a .lib file if we build a DLL.
|
|---|
| 6532 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
|
|---|
| 6533 | # FIXME: Should let the user specify the lib program.
|
|---|
| 6534 | _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
|---|
| 6535 | _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
|
|---|
| 6536 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|---|
| 6537 | ;;
|
|---|
| 6538 |
|
|---|
| 6539 | darwin* | rhapsody*)
|
|---|
| 6540 | case "$host_os" in
|
|---|
| 6541 | rhapsody* | darwin1.[[012]])
|
|---|
| 6542 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
|
|---|
| 6543 | ;;
|
|---|
| 6544 | *) # Darwin 1.3 on
|
|---|
| 6545 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
|---|
| 6546 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|---|
| 6547 | else
|
|---|
| 6548 | case ${MACOSX_DEPLOYMENT_TARGET} in
|
|---|
| 6549 | 10.[[012]])
|
|---|
| 6550 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|---|
| 6551 | ;;
|
|---|
| 6552 | 10.*)
|
|---|
| 6553 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
|
|---|
| 6554 | ;;
|
|---|
| 6555 | esac
|
|---|
| 6556 | fi
|
|---|
| 6557 | ;;
|
|---|
| 6558 | esac
|
|---|
| 6559 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|---|
| 6560 | _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|---|
| 6561 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
|
|---|
| 6562 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|---|
| 6563 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
|
|---|
| 6564 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|---|
| 6565 | if test "$GCC" = yes ; then
|
|---|
| 6566 | output_verbose_link_cmd='echo'
|
|---|
| 6567 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
|---|
| 6568 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|---|
| 6569 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
|---|
| 6570 | _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}'
|
|---|
| 6571 | _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}'
|
|---|
| 6572 | else
|
|---|
| 6573 | case $cc_basename in
|
|---|
| 6574 | xlc*)
|
|---|
| 6575 | output_verbose_link_cmd='echo'
|
|---|
| 6576 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
|---|
| 6577 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|---|
| 6578 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
|---|
| 6579 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|---|
| 6580 | _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}'
|
|---|
| 6581 | ;;
|
|---|
| 6582 | *)
|
|---|
| 6583 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 6584 | ;;
|
|---|
| 6585 | esac
|
|---|
| 6586 | fi
|
|---|
| 6587 | ;;
|
|---|
| 6588 |
|
|---|
| 6589 | dgux*)
|
|---|
| 6590 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6591 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|---|
| 6592 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6593 | ;;
|
|---|
| 6594 |
|
|---|
| 6595 | freebsd1*)
|
|---|
| 6596 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 6597 | ;;
|
|---|
| 6598 |
|
|---|
| 6599 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|---|
| 6600 | # support. Future versions do this automatically, but an explicit c++rt0.o
|
|---|
| 6601 | # does not break anything, and helps significantly (at the cost of a little
|
|---|
| 6602 | # extra space).
|
|---|
| 6603 | freebsd2.2*)
|
|---|
| 6604 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
|---|
| 6605 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|---|
| 6606 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6607 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6608 | ;;
|
|---|
| 6609 |
|
|---|
| 6610 | # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
|---|
| 6611 | freebsd2*)
|
|---|
| 6612 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6613 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6614 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|---|
| 6615 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6616 | ;;
|
|---|
| 6617 |
|
|---|
| 6618 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|---|
| 6619 | freebsd* | kfreebsd*-gnu | dragonfly*)
|
|---|
| 6620 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|---|
| 6621 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|---|
| 6622 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6623 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6624 | ;;
|
|---|
| 6625 |
|
|---|
| 6626 | hpux9*)
|
|---|
| 6627 | if test "$GCC" = yes; then
|
|---|
| 6628 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|---|
| 6629 | else
|
|---|
| 6630 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|---|
| 6631 | fi
|
|---|
| 6632 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|---|
| 6633 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 6634 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6635 |
|
|---|
| 6636 | # hardcode_minus_L: Not really in the search PATH,
|
|---|
| 6637 | # but as the default location of the library.
|
|---|
| 6638 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|---|
| 6639 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|---|
| 6640 | ;;
|
|---|
| 6641 |
|
|---|
| 6642 | hpux10* | hpux11*)
|
|---|
| 6643 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|---|
| 6644 | case "$host_cpu" in
|
|---|
| 6645 | hppa*64*|ia64*)
|
|---|
| 6646 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|---|
| 6647 | ;;
|
|---|
| 6648 | *)
|
|---|
| 6649 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|---|
| 6650 | ;;
|
|---|
| 6651 | esac
|
|---|
| 6652 | else
|
|---|
| 6653 | case "$host_cpu" in
|
|---|
| 6654 | hppa*64*|ia64*)
|
|---|
| 6655 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6656 | ;;
|
|---|
| 6657 | *)
|
|---|
| 6658 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6659 | ;;
|
|---|
| 6660 | esac
|
|---|
| 6661 | fi
|
|---|
| 6662 | if test "$with_gnu_ld" = no; then
|
|---|
| 6663 | case "$host_cpu" in
|
|---|
| 6664 | hppa*64*)
|
|---|
| 6665 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|---|
| 6666 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
|---|
| 6667 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 6668 | _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|---|
| 6669 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6670 | ;;
|
|---|
| 6671 | ia64*)
|
|---|
| 6672 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|---|
| 6673 | _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|---|
| 6674 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6675 |
|
|---|
| 6676 | # hardcode_minus_L: Not really in the search PATH,
|
|---|
| 6677 | # but as the default location of the library.
|
|---|
| 6678 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|---|
| 6679 | ;;
|
|---|
| 6680 | *)
|
|---|
| 6681 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|---|
| 6682 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 6683 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6684 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|---|
| 6685 |
|
|---|
| 6686 | # hardcode_minus_L: Not really in the search PATH,
|
|---|
| 6687 | # but as the default location of the library.
|
|---|
| 6688 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|---|
| 6689 | ;;
|
|---|
| 6690 | esac
|
|---|
| 6691 | fi
|
|---|
| 6692 | ;;
|
|---|
| 6693 |
|
|---|
| 6694 | irix5* | irix6* | nonstopux*)
|
|---|
| 6695 | if test "$GCC" = yes; then
|
|---|
| 6696 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|---|
| 6697 | else
|
|---|
| 6698 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|---|
| 6699 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
|
|---|
| 6700 | fi
|
|---|
| 6701 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|---|
| 6702 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 6703 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|---|
| 6704 | ;;
|
|---|
| 6705 |
|
|---|
| 6706 | netbsd*)
|
|---|
| 6707 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|---|
| 6708 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
|---|
| 6709 | else
|
|---|
| 6710 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
|---|
| 6711 | fi
|
|---|
| 6712 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|---|
| 6713 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6714 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6715 | ;;
|
|---|
| 6716 |
|
|---|
| 6717 | newsos6)
|
|---|
| 6718 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6719 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6720 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|---|
| 6721 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 6722 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6723 | ;;
|
|---|
| 6724 |
|
|---|
| 6725 | openbsd*)
|
|---|
| 6726 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6727 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6728 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|---|
| 6729 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|---|
| 6730 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|---|
| 6731 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|---|
| 6732 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|---|
| 6733 | else
|
|---|
| 6734 | case $host_os in
|
|---|
| 6735 | openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
|
|---|
| 6736 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6737 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|---|
| 6738 | ;;
|
|---|
| 6739 | *)
|
|---|
| 6740 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|---|
| 6741 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|---|
| 6742 | ;;
|
|---|
| 6743 | esac
|
|---|
| 6744 | fi
|
|---|
| 6745 | ;;
|
|---|
| 6746 |
|
|---|
| 6747 | os2*)
|
|---|
| 6748 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|---|
| 6749 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|---|
| 6750 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|---|
| 6751 | _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
|
|---|
| 6752 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
|---|
| 6753 | ;;
|
|---|
| 6754 |
|
|---|
| 6755 | osf3*)
|
|---|
| 6756 | if test "$GCC" = yes; then
|
|---|
| 6757 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|---|
| 6758 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|---|
| 6759 | else
|
|---|
| 6760 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
|---|
| 6761 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|---|
| 6762 | fi
|
|---|
| 6763 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|---|
| 6764 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 6765 | ;;
|
|---|
| 6766 |
|
|---|
| 6767 | osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|---|
| 6768 | if test "$GCC" = yes; then
|
|---|
| 6769 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|---|
| 6770 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|---|
| 6771 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|---|
| 6772 | else
|
|---|
| 6773 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
|---|
| 6774 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|---|
| 6775 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
|---|
| 6776 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
|---|
| 6777 |
|
|---|
| 6778 | # Both c and cxx compiler support -rpath directly
|
|---|
| 6779 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
|---|
| 6780 | fi
|
|---|
| 6781 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|---|
| 6782 | ;;
|
|---|
| 6783 |
|
|---|
| 6784 | sco3.2v5*)
|
|---|
| 6785 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6786 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6787 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
|---|
| 6788 | runpath_var=LD_RUN_PATH
|
|---|
| 6789 | hardcode_runpath_var=yes
|
|---|
| 6790 | ;;
|
|---|
| 6791 |
|
|---|
| 6792 | solaris*)
|
|---|
| 6793 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
|
|---|
| 6794 | if test "$GCC" = yes; then
|
|---|
| 6795 | wlarc='${wl}'
|
|---|
| 6796 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|---|
| 6797 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|---|
| 6798 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
|---|
| 6799 | else
|
|---|
| 6800 | wlarc=''
|
|---|
| 6801 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6802 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|---|
| 6803 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
|---|
| 6804 | fi
|
|---|
| 6805 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|---|
| 6806 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6807 | case $host_os in
|
|---|
| 6808 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
|---|
| 6809 | *)
|
|---|
| 6810 | # The compiler driver will combine linker options so we
|
|---|
| 6811 | # cannot just pass the convience library names through
|
|---|
| 6812 | # without $wl, iff we do not link with $LD.
|
|---|
| 6813 | # Luckily, gcc supports the same syntax we need for Sun Studio.
|
|---|
| 6814 | # Supported since Solaris 2.6 (maybe 2.5.1?)
|
|---|
| 6815 | case $wlarc in
|
|---|
| 6816 | '')
|
|---|
| 6817 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
|
|---|
| 6818 | *)
|
|---|
| 6819 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
|
|---|
| 6820 | esac ;;
|
|---|
| 6821 | esac
|
|---|
| 6822 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|---|
| 6823 | ;;
|
|---|
| 6824 |
|
|---|
| 6825 | sunos4*)
|
|---|
| 6826 | if test "x$host_vendor" = xsequent; then
|
|---|
| 6827 | # Use $CC to link under sequent, because it throws in some extra .o
|
|---|
| 6828 | # files that make .init and .fini sections work.
|
|---|
| 6829 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
|---|
| 6830 | else
|
|---|
| 6831 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6832 | fi
|
|---|
| 6833 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|---|
| 6834 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6835 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|---|
| 6836 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6837 | ;;
|
|---|
| 6838 |
|
|---|
| 6839 | sysv4)
|
|---|
| 6840 | case $host_vendor in
|
|---|
| 6841 | sni)
|
|---|
| 6842 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6843 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
|
|---|
| 6844 | ;;
|
|---|
| 6845 | siemens)
|
|---|
| 6846 | ## LD is ld it makes a PLAMLIB
|
|---|
| 6847 | ## CC just makes a GrossModule.
|
|---|
| 6848 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6849 | _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
|
|---|
| 6850 | _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|---|
| 6851 | ;;
|
|---|
| 6852 | motorola)
|
|---|
| 6853 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6854 | _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
|
|---|
| 6855 | ;;
|
|---|
| 6856 | esac
|
|---|
| 6857 | runpath_var='LD_RUN_PATH'
|
|---|
| 6858 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6859 | ;;
|
|---|
| 6860 |
|
|---|
| 6861 | sysv4.3*)
|
|---|
| 6862 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6863 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6864 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
|
|---|
| 6865 | ;;
|
|---|
| 6866 |
|
|---|
| 6867 | sysv4*MP*)
|
|---|
| 6868 | if test -d /usr/nec; then
|
|---|
| 6869 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6870 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6871 | runpath_var=LD_RUN_PATH
|
|---|
| 6872 | hardcode_runpath_var=yes
|
|---|
| 6873 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
|---|
| 6874 | fi
|
|---|
| 6875 | ;;
|
|---|
| 6876 |
|
|---|
| 6877 | sysv4.2uw2*)
|
|---|
| 6878 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6879 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|---|
| 6880 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
|---|
| 6881 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6882 | hardcode_runpath_var=yes
|
|---|
| 6883 | runpath_var=LD_RUN_PATH
|
|---|
| 6884 | ;;
|
|---|
| 6885 |
|
|---|
| 6886 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
|
|---|
| 6887 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
|
|---|
| 6888 | if test "$GCC" = yes; then
|
|---|
| 6889 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|---|
| 6890 | else
|
|---|
| 6891 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|---|
| 6892 | fi
|
|---|
| 6893 | runpath_var='LD_RUN_PATH'
|
|---|
| 6894 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6895 | ;;
|
|---|
| 6896 |
|
|---|
| 6897 | sysv5*)
|
|---|
| 6898 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
|
|---|
| 6899 | # $CC -shared without GNU ld will not create a library from C++
|
|---|
| 6900 | # object files and a static libstdc++, better avoid it by now
|
|---|
| 6901 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6902 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|---|
| 6903 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
|---|
| 6904 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|---|
| 6905 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6906 | runpath_var='LD_RUN_PATH'
|
|---|
| 6907 | ;;
|
|---|
| 6908 |
|
|---|
| 6909 | uts4*)
|
|---|
| 6910 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|---|
| 6911 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|---|
| 6912 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|---|
| 6913 | ;;
|
|---|
| 6914 |
|
|---|
| 6915 | *)
|
|---|
| 6916 | _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|---|
| 6917 | ;;
|
|---|
| 6918 | esac
|
|---|
| 6919 | fi
|
|---|
| 6920 | ])
|
|---|
| 6921 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
|
|---|
| 6922 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
|---|
| 6923 |
|
|---|
| 6924 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|---|
| 6925 | if test "$GCC" = yes; then
|
|---|
| 6926 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|---|
| 6927 | fi
|
|---|
| 6928 |
|
|---|
| 6929 | #
|
|---|
| 6930 | # Do we need to explicitly link libc?
|
|---|
| 6931 | #
|
|---|
| 6932 | case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
|
|---|
| 6933 | x|xyes)
|
|---|
| 6934 | # Assume -lc should be added
|
|---|
| 6935 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|---|
| 6936 |
|
|---|
| 6937 | if test "$enable_shared" = yes && test "$GCC" = yes; then
|
|---|
| 6938 | case $_LT_AC_TAGVAR(archive_cmds, $1) in
|
|---|
| 6939 | *'~'*)
|
|---|
| 6940 | # FIXME: we may have to deal with multi-command sequences.
|
|---|
| 6941 | ;;
|
|---|
| 6942 | '$CC '*)
|
|---|
| 6943 | # Test whether the compiler implicitly links with -lc since on some
|
|---|
| 6944 | # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
|---|
| 6945 | # to ld, don't add -lc before -lgcc.
|
|---|
| 6946 | AC_MSG_CHECKING([whether -lc should be explicitly linked in])
|
|---|
| 6947 | $rm conftest*
|
|---|
| 6948 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|---|
| 6949 |
|
|---|
| 6950 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
|
|---|
| 6951 | soname=conftest
|
|---|
| 6952 | lib=conftest
|
|---|
| 6953 | libobjs=conftest.$ac_objext
|
|---|
| 6954 | deplibs=
|
|---|
| 6955 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
|
|---|
| 6956 | compiler_flags=-v
|
|---|
| 6957 | linker_flags=-v
|
|---|
| 6958 | verstring=
|
|---|
| 6959 | output_objdir=.
|
|---|
| 6960 | libname=conftest
|
|---|
| 6961 | lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
|
|---|
| 6962 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
|---|
| 6963 | if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
|
|---|
| 6964 | then
|
|---|
| 6965 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|---|
| 6966 | else
|
|---|
| 6967 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|---|
| 6968 | fi
|
|---|
| 6969 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
|
|---|
| 6970 | else
|
|---|
| 6971 | cat conftest.err 1>&5
|
|---|
| 6972 | fi
|
|---|
| 6973 | $rm conftest*
|
|---|
| 6974 | AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
|
|---|
| 6975 | ;;
|
|---|
| 6976 | esac
|
|---|
| 6977 | fi
|
|---|
| 6978 | ;;
|
|---|
| 6979 | esac
|
|---|
| 6980 | ])# AC_LIBTOOL_PROG_LD_SHLIBS
|
|---|
| 6981 |
|
|---|
| 6982 |
|
|---|
| 6983 | # _LT_AC_FILE_LTDLL_C
|
|---|
| 6984 | # -------------------
|
|---|
| 6985 | # Be careful that the start marker always follows a newline.
|
|---|
| 6986 | AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
|
|---|
| 6987 | # /* ltdll.c starts here */
|
|---|
| 6988 | # #define WIN32_LEAN_AND_MEAN
|
|---|
| 6989 | # #include <windows.h>
|
|---|
| 6990 | # #undef WIN32_LEAN_AND_MEAN
|
|---|
| 6991 | # #include <stdio.h>
|
|---|
| 6992 | #
|
|---|
| 6993 | # #ifndef __CYGWIN__
|
|---|
| 6994 | # # ifdef __CYGWIN32__
|
|---|
| 6995 | # # define __CYGWIN__ __CYGWIN32__
|
|---|
| 6996 | # # endif
|
|---|
| 6997 | # #endif
|
|---|
| 6998 | #
|
|---|
| 6999 | # #ifdef __cplusplus
|
|---|
| 7000 | # extern "C" {
|
|---|
| 7001 | # #endif
|
|---|
| 7002 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
|
|---|
| 7003 | # #ifdef __cplusplus
|
|---|
| 7004 | # }
|
|---|
| 7005 | # #endif
|
|---|
| 7006 | #
|
|---|
| 7007 | # #ifdef __CYGWIN__
|
|---|
| 7008 | # #include <cygwin/cygwin_dll.h>
|
|---|
| 7009 | # DECLARE_CYGWIN_DLL( DllMain );
|
|---|
| 7010 | # #endif
|
|---|
| 7011 | # HINSTANCE __hDllInstance_base;
|
|---|
| 7012 | #
|
|---|
| 7013 | # BOOL APIENTRY
|
|---|
| 7014 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
|
|---|
| 7015 | # {
|
|---|
| 7016 | # __hDllInstance_base = hInst;
|
|---|
| 7017 | # return TRUE;
|
|---|
| 7018 | # }
|
|---|
| 7019 | # /* ltdll.c ends here */
|
|---|
| 7020 | ])# _LT_AC_FILE_LTDLL_C
|
|---|
| 7021 |
|
|---|
| 7022 |
|
|---|
| 7023 | # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
|
|---|
| 7024 | # ---------------------------------
|
|---|
| 7025 | AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
|
|---|
| 7026 |
|
|---|
| 7027 |
|
|---|
| 7028 | # old names
|
|---|
| 7029 | AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
|
|---|
| 7030 | AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
|---|
| 7031 | AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
|---|
| 7032 | AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
|---|
| 7033 | AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
|---|
| 7034 | AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
|
|---|
| 7035 | AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
|
|---|
| 7036 |
|
|---|
| 7037 | # This is just to silence aclocal about the macro not being used
|
|---|
| 7038 | ifelse([AC_DISABLE_FAST_INSTALL])
|
|---|
| 7039 |
|
|---|
| 7040 | AC_DEFUN([LT_AC_PROG_GCJ],
|
|---|
| 7041 | [AC_CHECK_TOOL(GCJ, gcj, no)
|
|---|
| 7042 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
|
|---|
| 7043 | AC_SUBST(GCJFLAGS)
|
|---|
| 7044 | ])
|
|---|
| 7045 |
|
|---|
| 7046 | AC_DEFUN([LT_AC_PROG_RC],
|
|---|
| 7047 | [AC_CHECK_TOOL(RC, windres, no)
|
|---|
| 7048 | ])
|
|---|
| 7049 |
|
|---|
| 7050 | # NOTE: This macro has been submitted for inclusion into #
|
|---|
| 7051 | # GNU Autoconf as AC_PROG_SED. When it is available in #
|
|---|
| 7052 | # a released version of Autoconf we should remove this #
|
|---|
| 7053 | # macro and use it instead. #
|
|---|
| 7054 | # LT_AC_PROG_SED
|
|---|
| 7055 | # --------------
|
|---|
| 7056 | # Check for a fully-functional sed program, that truncates
|
|---|
| 7057 | # as few characters as possible. Prefer GNU sed if found.
|
|---|
| 7058 | AC_DEFUN([LT_AC_PROG_SED],
|
|---|
| 7059 | [AC_MSG_CHECKING([for a sed that does not truncate output])
|
|---|
| 7060 | AC_CACHE_VAL(lt_cv_path_SED,
|
|---|
| 7061 | [# Loop through the user's path and test for sed and gsed.
|
|---|
| 7062 | # Then use that list of sed's as ones to test for truncation.
|
|---|
| 7063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|---|
| 7064 | for as_dir in $PATH
|
|---|
| 7065 | do
|
|---|
| 7066 | IFS=$as_save_IFS
|
|---|
| 7067 | test -z "$as_dir" && as_dir=.
|
|---|
| 7068 | for lt_ac_prog in sed gsed; do
|
|---|
| 7069 | for ac_exec_ext in '' $ac_executable_extensions; do
|
|---|
| 7070 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
|---|
| 7071 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
|---|
| 7072 | fi
|
|---|
| 7073 | done
|
|---|
| 7074 | done
|
|---|
| 7075 | done
|
|---|
| 7076 | lt_ac_max=0
|
|---|
| 7077 | lt_ac_count=0
|
|---|
| 7078 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
|---|
| 7079 | # along with /bin/sed that truncates output.
|
|---|
| 7080 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
|---|
| 7081 | test ! -f $lt_ac_sed && continue
|
|---|
| 7082 | cat /dev/null > conftest.in
|
|---|
| 7083 | lt_ac_count=0
|
|---|
| 7084 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
|---|
| 7085 | # Check for GNU sed and select it if it is found.
|
|---|
| 7086 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
|---|
| 7087 | lt_cv_path_SED=$lt_ac_sed
|
|---|
| 7088 | break
|
|---|
| 7089 | fi
|
|---|
| 7090 | while true; do
|
|---|
| 7091 | cat conftest.in conftest.in >conftest.tmp
|
|---|
| 7092 | mv conftest.tmp conftest.in
|
|---|
| 7093 | cp conftest.in conftest.nl
|
|---|
| 7094 | echo >>conftest.nl
|
|---|
| 7095 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
|---|
| 7096 | cmp -s conftest.out conftest.nl || break
|
|---|
| 7097 | # 10000 chars as input seems more than enough
|
|---|
| 7098 | test $lt_ac_count -gt 10 && break
|
|---|
| 7099 | lt_ac_count=`expr $lt_ac_count + 1`
|
|---|
| 7100 | if test $lt_ac_count -gt $lt_ac_max; then
|
|---|
| 7101 | lt_ac_max=$lt_ac_count
|
|---|
| 7102 | lt_cv_path_SED=$lt_ac_sed
|
|---|
| 7103 | fi
|
|---|
| 7104 | done
|
|---|
| 7105 | done
|
|---|
| 7106 | ])
|
|---|
| 7107 | SED=$lt_cv_path_SED
|
|---|
| 7108 | AC_MSG_RESULT([$SED])
|
|---|
| 7109 | ])
|
|---|
| 7110 |
|
|---|
| 7111 | # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
|---|
| 7112 | #
|
|---|
| 7113 | # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
|---|
| 7114 | #
|
|---|
| 7115 | # This program is free software; you can redistribute it and/or modify
|
|---|
| 7116 | # it under the terms of the GNU General Public License as published by
|
|---|
| 7117 | # the Free Software Foundation; either version 2 of the License, or
|
|---|
| 7118 | # (at your option) any later version.
|
|---|
| 7119 | #
|
|---|
| 7120 | # This program is distributed in the hope that it will be useful, but
|
|---|
| 7121 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 7122 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|---|
| 7123 | # General Public License for more details.
|
|---|
| 7124 | #
|
|---|
| 7125 | # You should have received a copy of the GNU General Public License
|
|---|
| 7126 | # along with this program; if not, write to the Free Software
|
|---|
| 7127 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|---|
| 7128 | #
|
|---|
| 7129 | # As a special exception to the GNU General Public License, if you
|
|---|
| 7130 | # distribute this file as part of a program that contains a
|
|---|
| 7131 | # configuration script generated by Autoconf, you may include it under
|
|---|
| 7132 | # the same distribution terms that you use for the rest of that program.
|
|---|
| 7133 |
|
|---|
| 7134 | # PKG_PROG_PKG_CONFIG([MIN-VERSION])
|
|---|
| 7135 | # ----------------------------------
|
|---|
| 7136 | AC_DEFUN([PKG_PROG_PKG_CONFIG],
|
|---|
| 7137 | [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
|---|
| 7138 | m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
|
|---|
| 7139 | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
|
|---|
| 7140 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
|---|
| 7141 | AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
|---|
| 7142 | fi
|
|---|
| 7143 | if test -n "$PKG_CONFIG"; then
|
|---|
| 7144 | _pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
|
|---|
| 7145 | AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
|
|---|
| 7146 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
|---|
| 7147 | AC_MSG_RESULT([yes])
|
|---|
| 7148 | else
|
|---|
| 7149 | AC_MSG_RESULT([no])
|
|---|
| 7150 | PKG_CONFIG=""
|
|---|
| 7151 | fi
|
|---|
| 7152 |
|
|---|
| 7153 | fi[]dnl
|
|---|
| 7154 | ])# PKG_PROG_PKG_CONFIG
|
|---|
| 7155 |
|
|---|
| 7156 | # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
|---|
| 7157 | #
|
|---|
| 7158 | # Check to see whether a particular set of modules exists. Similar
|
|---|
| 7159 | # to PKG_CHECK_MODULES(), but does not set variables or print errors.
|
|---|
| 7160 | #
|
|---|
| 7161 | #
|
|---|
| 7162 | # Similar to PKG_CHECK_MODULES, make sure that the first instance of
|
|---|
| 7163 | # this or PKG_CHECK_MODULES is called, or make sure to call
|
|---|
| 7164 | # PKG_CHECK_EXISTS manually
|
|---|
| 7165 | # --------------------------------------------------------------
|
|---|
| 7166 | AC_DEFUN([PKG_CHECK_EXISTS],
|
|---|
| 7167 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|---|
| 7168 | if test -n "$PKG_CONFIG" && \
|
|---|
| 7169 | AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
|
|---|
| 7170 | m4_ifval([$2], [$2], [:])
|
|---|
| 7171 | m4_ifvaln([$3], [else
|
|---|
| 7172 | $3])dnl
|
|---|
| 7173 | fi])
|
|---|
| 7174 |
|
|---|
| 7175 |
|
|---|
| 7176 | # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
|
|---|
| 7177 | # ---------------------------------------------
|
|---|
| 7178 | m4_define([_PKG_CONFIG],
|
|---|
| 7179 | [if test -n "$PKG_CONFIG"; then
|
|---|
| 7180 | PKG_CHECK_EXISTS([$3],
|
|---|
| 7181 | [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
|
|---|
| 7182 | [pkg_failed=yes])
|
|---|
| 7183 | else
|
|---|
| 7184 | pkg_failed=untried
|
|---|
| 7185 | fi[]dnl
|
|---|
| 7186 | ])# _PKG_CONFIG
|
|---|
| 7187 |
|
|---|
| 7188 | # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
|---|
| 7189 | # [ACTION-IF-NOT-FOUND])
|
|---|
| 7190 | #
|
|---|
| 7191 | #
|
|---|
| 7192 | # Note that if there is a possibility the first call to
|
|---|
| 7193 | # PKG_CHECK_MODULES might not happen, you should be sure to include an
|
|---|
| 7194 | # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
|
|---|
| 7195 | #
|
|---|
| 7196 | #
|
|---|
| 7197 | # --------------------------------------------------------------
|
|---|
| 7198 | AC_DEFUN([PKG_CHECK_MODULES],
|
|---|
| 7199 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|---|
| 7200 | AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
|
|---|
| 7201 | AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
|
|---|
| 7202 |
|
|---|
| 7203 | pkg_failed=no
|
|---|
| 7204 | AC_MSG_CHECKING([for $1])
|
|---|
| 7205 |
|
|---|
| 7206 | _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
|---|
| 7207 | _PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
|---|
| 7208 |
|
|---|
| 7209 | if test $pkg_failed = yes; then
|
|---|
| 7210 | $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
|---|
| 7211 | # Put the nasty error message in config.log where it belongs
|
|---|
| 7212 | echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
|
|---|
| 7213 |
|
|---|
| 7214 | ifelse([$4], , [AC_MSG_ERROR(dnl
|
|---|
| 7215 | [Package requirements ($2) were not met.
|
|---|
| 7216 | Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|---|
| 7217 | installed software in a non-standard prefix.
|
|---|
| 7218 |
|
|---|
| 7219 | Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
|
|---|
| 7220 | to avoid the need to call pkg-config. See the pkg-config man page for
|
|---|
| 7221 | more details.])],
|
|---|
| 7222 | [$4])
|
|---|
| 7223 | elif test $pkg_failed = untried; then
|
|---|
| 7224 | ifelse([$4], , [AC_MSG_FAILURE(dnl
|
|---|
| 7225 | [The pkg-config script could not be found or is too old. Make sure it
|
|---|
| 7226 | is in your PATH or set the PKG_CONFIG environment variable to the full
|
|---|
| 7227 | path to pkg-config.
|
|---|
| 7228 |
|
|---|
| 7229 | Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
|
|---|
| 7230 | to avoid the need to call pkg-config. See the pkg-config man page for
|
|---|
| 7231 | more details.
|
|---|
| 7232 |
|
|---|
| 7233 | To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
|
|---|
| 7234 | [$4])
|
|---|
| 7235 | else
|
|---|
| 7236 | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
|---|
| 7237 | $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
|---|
| 7238 | AC_MSG_RESULT([yes])
|
|---|
| 7239 | ifelse([$3], , :, [$3])
|
|---|
| 7240 | fi[]dnl
|
|---|
| 7241 | ])# PKG_CHECK_MODULES
|
|---|
| 7242 |
|
|---|
| 7243 | m4_include([acinclude.m4])
|
|---|