summaryrefslogtreecommitdiffstats
path: root/config/examples.am
diff options
context:
space:
mode:
Diffstat (limited to 'config/examples.am')
-rw-r--r--config/examples.am12
1 files changed, 11 insertions, 1 deletions
diff --git a/config/examples.am b/config/examples.am
index b3651ef..5eab7c1 100644
--- a/config/examples.am
+++ b/config/examples.am
@@ -70,5 +70,15 @@ uninstall-examples:
fi
installcheck-local:
- @$(MAKE) $(AM_MAKEFLAGS) check
+ @if test "$(STATIC_SHARED)" = "static, shared"; then \
+ H5CCFLAGS="-shlib" $(MAKE) $(AM_MAKEFLAGS) check; \
+ $(MAKE) $(AM_MAKEFLAGS) clean; \
+ H5CCFLAGS="" $(MAKE) $(AM_MAKEFLAGS) check; \
+ elif test "$(STATIC_SHARED)" = "shared"; then \
+ H5CCFLAGS="-shlib" $(MAKE) $(AM_MAKEFLAGS) check; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) check; \
+ fi
+
+