зеркало из https://github.com/microsoft/git.git
Merge branch 'ah/autoconf-fixes'
"./configure --with-expat=no" did not work as a way to refuse use of the expat library on a system with the library installed, which has been corrected. * ah/autoconf-fixes: configure.ac: always save NO_ICONV to config.status configure.ac: don't overwrite NO_CURL option configure.ac: don't overwrite NO_EXPAT option
This commit is contained in:
Коммит
99acb0fa54
11
configure.ac
11
configure.ac
|
@ -546,6 +546,8 @@ fi
|
|||
# git-http-push are not built, and you cannot use http:// and https://
|
||||
# transports.
|
||||
|
||||
if test -z "$NO_CURL"; then
|
||||
|
||||
GIT_STASH_FLAGS($CURLDIR)
|
||||
|
||||
AC_CHECK_LIB([curl], [curl_global_init],
|
||||
|
@ -554,6 +556,8 @@ AC_CHECK_LIB([curl], [curl_global_init],
|
|||
|
||||
GIT_UNSTASH_FLAGS($CURLDIR)
|
||||
|
||||
fi
|
||||
|
||||
GIT_CONF_SUBST([NO_CURL])
|
||||
|
||||
if test -z "$NO_CURL"; then
|
||||
|
@ -581,6 +585,8 @@ fi
|
|||
# Define NO_EXPAT if you do not have expat installed. git-http-push is
|
||||
# not built, and you cannot push using http:// and https:// transports.
|
||||
|
||||
if test -z "$NO_EXPAT"; then
|
||||
|
||||
GIT_STASH_FLAGS($EXPATDIR)
|
||||
|
||||
AC_CHECK_LIB([expat], [XML_ParserCreate],
|
||||
|
@ -589,6 +595,8 @@ AC_CHECK_LIB([expat], [XML_ParserCreate],
|
|||
|
||||
GIT_UNSTASH_FLAGS($EXPATDIR)
|
||||
|
||||
fi
|
||||
|
||||
GIT_CONF_SUBST([NO_EXPAT])
|
||||
|
||||
#
|
||||
|
@ -636,7 +644,6 @@ LIBS="$old_LIBS"
|
|||
GIT_UNSTASH_FLAGS($ICONVDIR)
|
||||
|
||||
GIT_CONF_SUBST([NEEDS_LIBICONV])
|
||||
GIT_CONF_SUBST([NO_ICONV])
|
||||
|
||||
if test -n "$NO_ICONV"; then
|
||||
NEEDS_LIBICONV=
|
||||
|
@ -644,6 +651,8 @@ fi
|
|||
|
||||
fi
|
||||
|
||||
GIT_CONF_SUBST([NO_ICONV])
|
||||
|
||||
#
|
||||
# Define NO_DEFLATE_BOUND if deflateBound is missing from zlib.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче