]> sourceware.org Git - libabigail.git/commitdiff
Fix conditional build wrt zip archives and cx11
authorJan Engelhardt <jengelh@inai.de>
Wed, 10 Dec 2014 10:11:10 +0000 (11:11 +0100)
committerDodji Seketeli <dodji@redhat.com>
Wed, 10 Dec 2014 13:35:55 +0000 (14:35 +0100)
Revert 1b4e3844e959c8261ba5cab9a0c5c34bcb812344. Automake does support
nested conditionals just fine.  One just has to use the += operator.

This also fixes the problem:

./configure: line 15878: ENABLE_ZIP_ARCHIVE_AND_CXX11:
command not found

caused by bad syntax:

ENABLE_ZIP_ARCHIVE_AND_CXX11 = yes

(Variable assignments must not use spaces around '=').

* configure.ac: remove (broken) assignment to the
ENABLE_ZIP_ARCHIVE_AND_CXX11 variable
* Makefile.am: replace variable assignments to
ZIP_ARCHIVE_TESTS_FIRST_PART, ZIP_ARCHIVE_TESTS_SECOND_PART
by ZIP_ARCHIVE_TESTS using the "+=" automake operator.
Likewise for CXX11_TESTS.

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
configure.ac
tests/Makefile.am

index 40c8d7d7e0fc5cd669cfc9cb10ad0ffc8d8a4270..2d6a59c83f4f28814deb350d3676e4dd570cea23 100644 (file)
@@ -144,14 +144,6 @@ fi
 
 AM_CONDITIONAL(ENABLE_CXX11, test x$ENABLE_CXX11 = xyes)
 
-ENABLE_ZIP_ARCHIVE_AND_CXX11=no
-if test x$ENABLE_CXX11 = xyes -a x$ENABLE_ZIP_ARCHIVE = xyes; then
-   ENABLE_ZIP_ARCHIVE_AND_CXX11 = yes
-fi
-
-AM_CONDITIONAL(ENABLE_ZIP_ARCHIVE_AND_CXX11, test x$ENABLE_ZIP_ARCHIVE_AND_CXX11 = xyes)
-
-
 dnl Check for the presence of doxygen program
 
 if test x$ENABLE_APIDOC != xno; then
index 50ab707a711ef4962876aae09b3ba1308edbc89e..4afaa3a4eb38f896baceb30000aaa01c3b6f279c 100644 (file)
@@ -1,26 +1,19 @@
 SUBDIRS = data
 
+ZIP_ARCHIVE_TESTS =
 if ENABLE_ZIP_ARCHIVE
-ZIP_ARCHIVE_TESTS_FIRST_PART = runtestwritereadarchive
-else
-ZIP_ARCHIVE_TESTS_FIRST_PART =
+ZIP_ARCHIVE_TESTS += runtestwritereadarchive
+if ENABLE_CXX11
+ZIP_ARCHIVE_TESTS += runtestdot
+endif
 endif
 
+CXX11_TESTS =
 if ENABLE_CXX11
-CXX11_TESTS = runtestsvg
+CXX11_TESTS += runtestsvg
 AM_CXXFLAGS = "-std=gnu++11"
-else
-CXX11_TESTS =
 endif
 
-if ENABLE_ZIP_ARCHIVE_AND_CXX11
-ZIP_ARCHIVE_TESTS_SECOND_PART = runtestdot
-else
-ZIP_ARCHIVE_TESTS_SECOND_PART =
-endif
-
-ZIP_ARCHIVE_TESTS = $(ZIP_ARCHIVE_TESTS_FIRST_PART) $(ZIP_ARCHIVE_TESTS_SECOND_PART)
-
 TESTS=                         \
 runtestreadwrite               \
 $(ZIP_ARCHIVE_TESTS)           \
This page took 0.03512 seconds and 5 git commands to generate.