From b80507bea0347d6add27e9a108d484ec629f0bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 2 Apr 2014 12:42:41 +0000 Subject: [PATCH] setup DISTCHECK_CONFIGURE_FLAGS; refs #28 --- configure.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 6da62bb..1771005 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,7 @@ # $Id$ +DISTCHECK_CONFIG_FLAGS="$(env | sed 's/ /\\ /g')" +AC_SUBST(DISTCHECK_CONFIG_FLAGS) + m4_include(ax_cxx_compile_stdcxx_11.m4) AC_ALIAS([AC_DEFINE_DIR], [AX_DEFINE_DIR]) AC_DEFUN([AX_DEFINE_DIR], [ @@ -103,10 +106,10 @@ PKG_CHECK_MODULES([QT_GUI], [QtCore QtGui], [have_qtgui=0]) AM_CONDITIONAL(HAVE_QTGUI, test "$have_qtgui" = "1") PKG_CHECK_MODULES([QT_NETWORK], [QtNetwork], - [AC_DEFINE([HAVE_QTNETWORK], $have_qtnetwork) + [AC_DEFINE([HAVE_QTNETWORK]) have_qtnetwork=1], [PKG_CHECK_MODULES([QT_NETWORK], [Qt5Network])], - [AC_DEFINE([HAVE_QTNETWORK], $have_qtnetwork) + [AC_DEFINE([HAVE_QTNETWORK]) have_qtnetwork=1], [have_qtnetwork=0]) AM_CONDITIONAL(HAVE_QTNETWORK, test "$have_qtnetwork" = "1") @@ -155,8 +158,6 @@ AC_SUBST(PACKAGENAME) AC_SUBST(AM_CXXFLAGS) AC_SUBST(AM_CPPFLAGS) AC_SUBST(LIBS) -DISTCHECK_CONFIG_FLAGS="$(env | sed 's/ /\\ /g')" -AC_SUBST(DISTCHECK_CONFIG_FLAGS) # create output AC_OUTPUT