aboutsummaryrefslogtreecommitdiffstats
path: root/extension
diff options
context:
space:
mode:
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 fcaff2b7..62638fcc 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -3,6 +3,13 @@
* filefuncs.c (fill_stat_array): Adjust computation for block
count for WIN32 systems after consultation with Eli Zaretskii.
+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: