aboutsummaryrefslogtreecommitdiffstats
path: root/extension
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-03-01 13:35:19 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-03-01 13:35:19 +0200
commitc39c22ef05a188119bbf6da7b80e900ff3fcab31 (patch)
treef21b237b72f45853d355cb23d5e91dc158f38021 /extension
parent0b59be74188529bcb0aa3476fee51a525b365391 (diff)
downloadegawk-c39c22ef05a188119bbf6da7b80e900ff3fcab31.tar.gz
egawk-c39c22ef05a188119bbf6da7b80e900ff3fcab31.tar.bz2
egawk-c39c22ef05a188119bbf6da7b80e900ff3fcab31.zip
Don't build the extensions if no API support.
Diffstat (limited to 'extension')
-rw-r--r--extension/ChangeLog7
-rw-r--r--extension/Makefile.am12
-rw-r--r--extension/Makefile.in12
3 files changed, 31 insertions, 0 deletions
diff --git a/extension/ChangeLog b/extension/ChangeLog
index 291b564d..5eff9782 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -1,3 +1,10 @@
+2013-02-26 Arnold D. Robbins <arnold@skeeve.com>
+
+ * Makefile.am (check-recursive, all-recursive): Make dependant upon
+ check-for-shared-lib-support.
+ (check-for-shared-lib-support): New target. If gawk doesn't have the
+ API built-in, don't try to build.
+
2013-02-11 Arnold D. Robbins <arnold@skeeve.com>
* fnmatch.c: Pull in versions of C routine from missing_d
diff --git a/extension/Makefile.am b/extension/Makefile.am
index 48d315a9..61e26976 100644
--- a/extension/Makefile.am
+++ b/extension/Makefile.am
@@ -111,3 +111,15 @@ dist_man_MANS = \
# gettext requires this
SUBDIRS =
+
+# This is an ugly hack, initially for MirBSD but probably needed for other
+# systems. If gawk doesn't have the API built in, don't try to build the
+# extensions.
+check-recursive all-recursive: check-for-shared-lib-support
+
+check-for-shared-lib-support:
+ @if ../gawk$(EXEEXT) --version | sed 1q | grep API > /dev/null; \
+ then : do nothing ; \
+ else echo Building the extensions is not supported on this platform ; \
+ exit 1; \
+ fi
diff --git a/extension/Makefile.in b/extension/Makefile.in
index 20a52404..9aa75cee 100644
--- a/extension/Makefile.in
+++ b/extension/Makefile.in
@@ -1183,6 +1183,18 @@ uninstall-man: uninstall-man3
uninstall-pkgextensionLTLIBRARIES
+# This is an ugly hack, initially for MirBSD but probably needed for other
+# systems. If gawk doesn't have the API built in, don't try to build the
+# extensions.
+check-recursive all-recursive: check-for-shared-lib-support
+
+check-for-shared-lib-support:
+ @if ../gawk$(EXEEXT) --version | sed 1q | grep API > /dev/null; \
+ then : do nothing ; \
+ else echo Building the extensions is not supported on this platform ; \
+ exit 1; \
+ fi
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: