There are situations, e.g. during cross compilation, where curl-config
program is not present in the PATH.
Make the makefile use a configurable curl-config program passed through
CURL_CONFIG variable which can be set through config.mak.
Also make this variable tunable through use of autoconf/configure. Configure
will set CURL_CONFIG variable in config.mak.autogen to whatever value has been
passed to ac_cv_prog_CURL_CONFIG.
Signed-off-by: Remi Pommarel <redacted>
---
Makefile | 9 +++++++--
configure.ac | 13 +++++++++++++
2 files changed, 20 insertions(+), 2 deletions(-)
@@ -39,6 +39,10 @@ all::# Define CURLDIR=/foo/bar if your curl header and library files are in# /foo/bar/include and /foo/bar/lib directories.#+# Define CURL_CONFIG to curl's configuration program that gives informations+# about the library (ie curl's version, cflags, ...) . If not set it defaults+# to 'curl-config'.+## 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 (dumb).#
@@ -525,6 +525,19 @@ GIT_UNSTASH_FLAGS($CURLDIR) GIT_CONF_SUBST([NO_CURL])+if test -z "$NO_CURL"; then++AC_CHECK_PROG([CURL_CONFIG], [curl-config],+[curl-config],+[no])++if test $CURL_CONFIG != no; then+ GIT_CONF_SUBST([CURL_CONFIG])+fi++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.
From: Jonathan Nieder <hidden> Date: 2016-06-15 23:06:46
Remi Pommarel wrote:
Signed-off-by: Remi Pommarel <redacted>
For what it's worth, with or without the tweaks below,
Reviewed-by: Jonathan Nieder <redacted>
[...]
quoted hunk
--- a/Makefile+++ b/Makefile
@@ -39,6 +39,10 @@ all::# Define CURLDIR=/foo/bar if your curl header and library files are in# /foo/bar/include and /foo/bar/lib directories.#+# Define CURL_CONFIG to curl's configuration program that gives informations+# about the library (ie curl's version, cflags, ...) . If not set it defaults+# to 'curl-config'.
Extra spaces, some wording tweaks:
s/gives informations about the library/prints information about the library/
s/(ie curl's version, cflags, .../) /(e.g., its version number)/
s/If not set it defaults to/The default is/
Thanks.
@@ -39,9 +39,8 @@ all::# Define CURLDIR=/foo/bar if your curl header and library files are in# /foo/bar/include and /foo/bar/lib directories.#-# Define CURL_CONFIG to curl's configuration program that gives informations-# about the library (ie curl's version, cflags, ...) . If not set it defaults-# to 'curl-config'.+# Define CURL_CONFIG to curl's configuration program that prints information+# about the library (e.g., its version number). The default is 'curl-config'.## 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 (dumb).
On Mon, Oct 05, 2015 at 01:49:09PM -0700, Jonathan Nieder wrote:
Remi Pommarel wrote:
quoted
Signed-off-by: Remi Pommarel <redacted>
For what it's worth, with or without the tweaks below,
Reviewed-by: Jonathan Nieder <redacted>
Thanks.
[...]
quoted
--- a/Makefile+++ b/Makefile
@@ -39,6 +39,10 @@ all::# Define CURLDIR=/foo/bar if your curl header and library files are in# /foo/bar/include and /foo/bar/lib directories.#+# Define CURL_CONFIG to curl's configuration program that gives informations+# about the library (ie curl's version, cflags, ...) . If not set it defaults+# to 'curl-config'.
Extra spaces, some wording tweaks:
s/gives informations about the library/prints information about the library/
s/(ie curl's version, cflags, .../) /(e.g., its version number)/
s/If not set it defaults to/The default is/
Do I need to resend a v4 patch with these modifications ? I am not sure
about the correct workflow here.
--
Rémi