[vlc-devel] commit: Use libgcrypt-config script instead of hardcoding -lgcrypt ( Rafaël Carré )

git version control git at videolan.org
Thu Oct 15 15:39:08 CEST 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Thu Oct 15 15:38:44 2009 +0200| [d5bd694baf0e9c301ee9c201d21f2c1fd69ff218] | committer: Rafaël Carré 

Use libgcrypt-config script instead of hardcoding -lgcrypt

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d5bd694baf0e9c301ee9c201d21f2c1fd69ff218
---

 configure.ac |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 005cedc..21ca531 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4590,9 +4590,11 @@ AC_ARG_ENABLE(libgcrypt,
   [  --disable-libgcrypt      gcrypt support (default enabled)])
 AS_IF([test "${enable_libgcrypt}" != "no"], [
   AC_CHECK_DECL([GCRYCTL_SET_THREAD_CBS], [
+    libgcrypt-config --version >/dev/null || AC_MSG_ERROR(
+        [gcrypt.h present but libgcrypt-config could not be found])
     have_libgcrypt="yes"
-    GCRYPT_CFLAGS=""
-    GCRYPT_LIBS="-lgcrypt"
+    GCRYPT_CFLAGS="`libgcrypt-config --cflags`"
+    GCRYPT_LIBS="`libgcrypt-config --libs`"
   ], [
     AS_IF([test "${enable_libgcrypt}"], [
       AC_MSG_ERROR([libgcrypt version 1.1.94 or higher not found.])




More information about the vlc-devel mailing list