aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog2
-rw-r--r--test/Makefile.am6
-rw-r--r--test/Makefile.in6
3 files changed, 8 insertions, 6 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 9d612dcd..ba491f3e 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -2,6 +2,8 @@
* Makefile.am: Move functab4 into shlib tests, since it uses
@load. Thanks to Anders Wallin for the report.
+ (shlib-tests): Check --version output for "API" and run tests
+ if there.
2013-01-31 Andrew J. Schorr <aschorr@telemetry-investments.com>
diff --git a/test/Makefile.am b/test/Makefile.am
index 5edb499f..c45be575 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1059,9 +1059,9 @@ mpfr-tests:
fi
shlib-tests:
- @if grep 'DYNAMIC 1' $(top_builddir)/config.h > /dev/null ; then \
- $(MAKE) shlib-real-tests ; \
- else echo shlib tests not supported on this system ; \
+ @if $(AWK) --version | $(AWK) '/API/ { exit 1 }' ; then \
+ echo shlib tests not supported on this system ; \
+ else $(MAKE) shlib-real-tests ; \
fi
shlib-real-tests: $(SHLIB_TESTS)
diff --git a/test/Makefile.in b/test/Makefile.in
index c182952a..e1a44a5a 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1442,9 +1442,9 @@ mpfr-tests:
fi
shlib-tests:
- @if grep 'DYNAMIC 1' $(top_builddir)/config.h > /dev/null ; then \
- $(MAKE) shlib-real-tests ; \
- else echo shlib tests not supported on this system ; \
+ @if $(AWK) --version | $(AWK) '/API/ { exit 1 }' ; then \
+ echo shlib tests not supported on this system ; \
+ else $(MAKE) shlib-real-tests ; \
fi
shlib-real-tests: $(SHLIB_TESTS)