Install dev headers only if --with-dev-headers= option is set

This commit is contained in:
Martin Willi
2012-07-11 11:16:31 +02:00
parent 2a6bcbbdee
commit b188f23199
5 changed files with 15 additions and 3 deletions
+4
View File
@@ -46,6 +46,7 @@ ARG_WITH_SUBST([ipsec-script], [ipsec], [change the name of the ipsec scri
ARG_WITH_SET([capabilities], [no], [set capability dropping library. Currently supported values are "libcap" and "native"])
ARG_WITH_SET([mpz_powm_sec], [yes], [use the more side-channel resistant mpz_powm_sec in libgmp, if available])
ARG_WITH_SET([dev-headers], [no], [install strongSwan development headers to directory.])
if test -n "$PKG_CONFIG"; then
systemdsystemunitdir_default=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
@@ -784,6 +785,9 @@ if test x$integrity_test = xtrue; then
)
fi
AM_CONDITIONAL(USE_DEV_HEADERS, [test "x$dev_headers" != xno])
AC_SUBST(dev_headers)
CFLAGS="$CFLAGS -include `pwd`/config.h"
dnl ==============================================