mirror of
https://github.com/tstack/lnav
synced 2024-11-03 23:15:38 +00:00
Merge pull request #254 from sureshsundriyal/curl
[cURL] Allow libcurl to be dynamically linked in on OS X.
This commit is contained in:
commit
9711e99d11
@ -143,6 +143,23 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
|
||||
esac
|
||||
fi
|
||||
|
||||
dnl If we are on OS X and we haven't picked up libcurl static or
|
||||
dnl otherwise, then let's just go ahead and use the one present on
|
||||
dnl the system. Since this compiled binary will only run on OS X
|
||||
dnl which almost always has cURL installed, it's OK to add the
|
||||
dnl static dependency.
|
||||
AS_IF([test "x${LIBCURL}" = "x"],
|
||||
[AS_CASE(["$host_os"],
|
||||
[darwin*],
|
||||
[AS_IF([test "x$_libcurl_config" != "x"],
|
||||
AS_VAR_SET(LIBCURL, $($_libcurl_config --libs)),
|
||||
[]
|
||||
)],
|
||||
[]
|
||||
)],
|
||||
[]
|
||||
)
|
||||
|
||||
# All curl-config scripts support --feature
|
||||
_libcurl_features=`$_libcurl_config --feature`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user