Code

src/Makefile.am: simplify Apache plugin
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 3 Jun 2016 17:05:44 +0000 (19:05 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 3 Jun 2016 17:05:44 +0000 (19:05 +0200)
It can't be build without libcurl support and
configure will take care of that.

src/Makefile.am

index a9db3052dc0d83be13cd211ad6f3acdc6429a49e..fd4f733fabca8e8c194de2ca97325a13d30c065e 100644 (file)
@@ -130,12 +130,8 @@ if BUILD_PLUGIN_APACHE
 pkglib_LTLIBRARIES += apache.la
 apache_la_SOURCES = apache.c
 apache_la_LDFLAGS = $(PLUGIN_LDFLAGS)
-apache_la_CFLAGS = $(AM_CFLAGS)
-apache_la_LIBADD =
-if BUILD_WITH_LIBCURL
-apache_la_CFLAGS += $(BUILD_WITH_LIBCURL_CFLAGS)
-apache_la_LIBADD += $(BUILD_WITH_LIBCURL_LIBS)
-endif
+apache_la_CFLAGS = $(AM_CFLAGS) $(BUILD_WITH_LIBCURL_CFLAGS)
+apache_la_LIBADD = $(BUILD_WITH_LIBCURL_LIBS)
 endif
 
 if BUILD_PLUGIN_APCUPS