diff options
author | Dan McGee <dan@archlinux.org> | 2011-04-24 18:40:58 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-04-27 23:58:58 +0200 |
commit | 97be2f0e0a0daad2f9058377c7dbee62cc7a8718 (patch) | |
tree | 74e836f26a77219db43237e5a082af8f243fbaa6 /lib/libalpm/Makefile.am | |
parent | b7b3fc23869475d3d1729de802935b98594d1677 (diff) | |
download | pacman-97be2f0e0a0daad2f9058377c7dbee62cc7a8718.tar.gz pacman-97be2f0e0a0daad2f9058377c7dbee62cc7a8718.tar.xz |
Allow conditional compilation with GPGME
This makes it possible to omit usage of -lgpgme, just as we can do for
-lcurl and -lcrypto.
Thanks to Rémy Oudompheng for an initial stab at this.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/Makefile.am')
-rw-r--r-- | lib/libalpm/Makefile.am | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libalpm/Makefile.am b/lib/libalpm/Makefile.am index 080ac195..b2b6d0d2 100644 --- a/lib/libalpm/Makefile.am +++ b/lib/libalpm/Makefile.am @@ -25,7 +25,6 @@ libalpm_la_SOURCES = \ alpm.h alpm.c \ alpm_list.h alpm_list.c \ backup.h backup.c \ - base64.h base64.c \ be_local.c \ be_package.c \ be_sync.c \ @@ -54,6 +53,11 @@ libalpm_la_SOURCES += \ md5.h md5.c endif +if HAVE_LIBGPGME +libalpm_la_SOURCES += \ + base64.h base64.c +endif + libalpm_la_LDFLAGS = -no-undefined -version-info $(LIB_VERSION_INFO) @LIBCURL@ libalpm_la_LIBADD = $(LTLIBINTL) |