opkg: fix configure checks for gpgme
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 04:19:59 +0000 (04:19 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 04:19:59 +0000 (04:19 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@20 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

Makefile.am
configure.ac

index c6218c1..bb33843 100644 (file)
@@ -52,7 +52,7 @@ libopkg_include_HEADERS= \
 #\ replace/replace.h
 
 #libopkg_la_LIBADD = libbb/libbb.la replace/libreplace.a
-libopkg_la_LIBADD = libbb/libbb.la $(CURL_LIBS)
+libopkg_la_LIBADD = libbb/libbb.la $(CURL_LIBS) $(GPGME_LIBS)
 
 opkg_core_sources = args.c args.h opkg.c \
                    user.c user.h 
@@ -97,9 +97,9 @@ libopkg_la_SOURCES = $(opkg_libcore_sources) $(opkg_cmd_sources) $(opkg_db_sourc
 
 opkg_cl_SOURCES = opkg-frontend.c
 
-libopkg_la_CFLAGS = -DOPKG_LIB $(ALL_CFLAGS)  $(CURL_CFLAGS)
+libopkg_la_CFLAGS = -DOPKG_LIB $(ALL_CFLAGS)  $(CURL_CFLAGS) $(GPGME_CFLAGS)
 
-opkg_CFLAGS = $(ALL_CFLAGS) $(CURL_CFLAGS)
+opkg_CFLAGS = $(ALL_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS)
 
 opkg_cl_CFLAGS = -DOPKG_LIB $(ALL_CFLAGS)
 
index 2048313..3e1d0bb 100644 (file)
@@ -66,7 +66,8 @@ else
   AC_MSG_ERROR(GPGME $min_gpgme_version or later needed)
 fi
 
-
+AC_SUBST(GPGME_CFLAGS)
+AC_SUBST(GPGME_LIBS)
 
 
 # Checks for header files