aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorceros7 <ceros7@svn>2010-04-19 20:54:08 +0000
committerceros7 <ceros7@svn>2010-04-19 20:54:08 +0000
commit73c5159ed2cf03e6c390286dbf6299179bed54c1 (patch)
tree6e25bd5c1bd2abe22317b064c2837894928947bd /configure.in
parente7b8020a9899a594fee836117d50877afe51ffce (diff)
Fix libcurl basename path for users using libcurl3-gnutls.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29385 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 3d3ca2988f..7135c0043c 100644
--- a/configure.in
+++ b/configure.in
@@ -471,6 +471,17 @@ else
AC_MSG_ERROR($missing_library))
fi
+# libcurl GnuTLS or OpenSSL check
+# checks whether to use libcurl.so.* or libcurl-gnutls.so.* for libcurl basename
+if test "$host_vendor" != "apple"; then
+ LIBCURL_BASENAME=$(readlink -e /usr/lib/libcurl.so | \
+ sed -e 's/^\/usr\/lib\///' | \
+ sed -e 's/\.[[0-9]]\+\.[[0-9]]\+$//')
+ if [[ ! -e "/usr/lib/$LIBCURL_BASENAME" ]]; then
+ AC_MSG_ERROR([Error occurred determining basename of libcurl library])
+ fi
+fi
+
# PulseAudio
if test "$host_vendor" = "apple" ; then
use_pulse="no"
@@ -1152,6 +1163,7 @@ AC_SUBST(USE_PYTHON2_4)
AC_SUBST(OUTPUT_FILES)
AC_SUBST(HAVE_XBMC_NONFREE)
AC_SUBST(USE_ASAP_CODEC)
+AC_SUBST(LIBCURL_BASENAME)
# Function to run the configure scripts in our submodules
# Consists of three paramaters, the path to the submodule, the configure command
# with appropriate arguments, and a third parameter set to 1 if we are to skip