Attempt to fix build for the usual case when log4vala is not installed origin/master
authorDan Breslau <dbreslau@painless-security.com>
Thu, 4 May 2017 15:02:42 +0000 (11:02 -0400)
committerDan Breslau <dbreslau@painless-security.com>
Thu, 4 May 2017 15:02:42 +0000 (11:02 -0400)
configure.ac

index 0b2cf22..184918f 100644 (file)
@@ -88,7 +88,8 @@ PKG_CHECK_MODULES([GTK],
 AC_SUBST(GTK_VERSION)
 
 
-# For all platforms: Use Log4Vala 0.2 if available; else revert to 0.1
+# For all platforms: If Log4Vala is enabled, then Use Log4Vala 0.2 if available; else revert to 0.1
+if [test x$log4vala = xtrue]; then
 PKG_CHECK_MODULES([LOG4VALA],
         [log4vala-0.2],
         [LOG4VALA_VERSION="log4vala-0.2"],
@@ -98,7 +99,7 @@ PKG_CHECK_MODULES([LOG4VALA],
             )]                            
 )
 AC_SUBST(LOG4VALA_VERSION)
-
+fi
 
 
 # For all platforms: Use gee-0.8 if available; else revert to gee-1.0