Set a sane default if --with-dev-headers is given without path
authorMartin Willi <martin@revosec.ch>
Thu, 12 Jul 2012 06:39:54 +0000 (08:39 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 12 Jul 2012 06:39:54 +0000 (08:39 +0200)
configure.in

index 91993ac..90683c8 100644 (file)
@@ -786,6 +786,9 @@ if test x$integrity_test = xtrue; then
 fi
 
 AM_CONDITIONAL(USE_DEV_HEADERS, [test "x$dev_headers" != xno])
+if test x$dev_headers = xyes; then
+       dev_headers="$includedir/strongswan"
+fi
 AC_SUBST(dev_headers)
 
 CFLAGS="$CFLAGS -include `pwd`/config.h"