added USE_LIBCURL
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 6 Oct 2006 07:24:05 +0000 (07:24 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 6 Oct 2006 07:24:05 +0000 (07:24 -0000)
src/openac/Makefile.am

index e83cd12..c1e2a59 100644 (file)
@@ -1,13 +1,23 @@
 ipsec_PROGRAMS = openac
 openac_SOURCES = openac.c build.c build.h loglite.c
 
-INCLUDES = -I$(top_srcdir)/src/libfreeswan -I$(top_srcdir)/src/pluto -I$(top_srcdir)/src/libcrypto -I$(top_srcdir)/src/whack
+INCLUDES = \
+-I$(top_srcdir)/src/libfreeswan \
+-I$(top_srcdir)/src/pluto \
+-I$(top_srcdir)/src/libcrypto \
+-I$(top_srcdir)/src/whack
+
 AM_CFLAGS = -DDEBUG -DNO_PLUTO -DIPSEC_CONFDIR=\"${confdir}\"
 openac_LDADD = ac.o asn1.o ca.o certs.o constants.o crl.o defs.o mp_defs.o fetch.o id.o keys.o lex.o \
                md2.o md5.o ocsp.o oid.o pem.o pgp.o pkcs1.o rnd.o sha1.o smartcard.o x509.o \
                $(top_srcdir)/src/libfreeswan/libfreeswan.a $(top_srcdir)/src/libcrypto/libcrypto.a \
                -lgmp
 
+# This compile option activates dynamic URL fetching using libcurl
+if USE_LIBCURL
+  openac_LDADD += -lcurl
+endif
+
 # This compile option activates smartcard support
 if USE_SMARTCARD
   openac_LDADD += -ldl