mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-30 14:30:15 +08:00
add --with-sysroot
* libltdl/m4/libtool.m4 (_LT_HOST_NONCANONICAL, _LT_WITH_SYSROOT): New. (LT_SETUP): Require _LT_WITH_SYSROOT. Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
This commit is contained in:
parent
a8f549c134
commit
3334f7ed58
34
libltdl/m4/libtool.m4
vendored
34
libltdl/m4/libtool.m4
vendored
@ -173,6 +173,7 @@ m4_require([_LT_CHECK_MAGIC_METHOD])dnl
|
||||
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
|
||||
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
|
||||
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
||||
m4_require([_LT_WITH_SYSROOT])dnl
|
||||
|
||||
_LT_CONFIG_LIBTOOL_INIT([
|
||||
# See if we are running on zsh, and set the options which allow our
|
||||
@ -1166,6 +1167,39 @@ _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
|
||||
])# _LT_PROG_ECHO_BACKSLASH
|
||||
|
||||
|
||||
# _LT_WITH_SYSROOT
|
||||
# ----------------
|
||||
AC_DEFUN([_LT_WITH_SYSROOT],
|
||||
[AC_MSG_CHECKING([for sysroot])
|
||||
AC_ARG_WITH([sysroot],
|
||||
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
|
||||
(or the compiler's sysroot if not specified).],
|
||||
[], [with_sysroot=no])
|
||||
|
||||
dnl lt_sysroot will always be passed unquoted. We quote it here
|
||||
dnl in case the user passed a directory name.
|
||||
lt_sysroot=
|
||||
case ${with_sysroot} in #(
|
||||
yes)
|
||||
if test "$GCC" = yes; then
|
||||
lt_sysroot=`$GCC --print-sysroot 2>/dev/null`
|
||||
fi
|
||||
;; #(
|
||||
/*)
|
||||
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
|
||||
;; #(
|
||||
no|'')
|
||||
;; #(
|
||||
*)
|
||||
AC_MSG_RESULT([${with_sysroot}])
|
||||
AC_MSG_ERROR([The sysroot must be an absolute path.])
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_MSG_RESULT([${lt_sysroot:-no}])
|
||||
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
|
||||
[dependent libraries, and in which our libraries should be installed.])])
|
||||
|
||||
# _LT_ENABLE_LOCK
|
||||
# ---------------
|
||||
m4_defun([_LT_ENABLE_LOCK],
|
||||
|
Loading…
Reference in New Issue
Block a user