]> git.draconx.ca Git - upkg.git/blobdiff - Makefile.am
Use GLib detection macros from dxcommon.
[upkg.git] / Makefile.am
index 495f40af87b39cdbf9c7ffe9a192592387f6d5c3..b1330d05cd1dfa0a9e94fbf3173d2271ea070e65 100644 (file)
@@ -107,8 +107,24 @@ GOB_V_0 = @printf '  %$(DX_ALIGN_V)s %s\n' 'GOB     ' $<;
 # rather than its filename.  This isn't really suitable for use with make, so
 # this rule has to make some assumptions about the source tree layout.
 .gob.gobstamp:
+if HAVE_GOB2_DYN
        $(GOB_V) $(GOB2) -o src --file-sep=/ --no-private-header $<
        $(AM_V_at) touch $@
+else
+if HAVE_GOB2
+       @echo "ERROR: *** $(GOB2) does not support dynamic types." 1>&2
+else
+       @echo "ERROR: *** gob2 is missing on your system."  1>&2
+endif
+       @:; { \
+        echo "       *** Because of this, I cannot compile $<, but"; \
+        echo "       *** (perhaps because you modified it) the sources appear out of date."; \
+        echo "       *** A newer version of gob2 may be required; the latest version"; \
+        echo "       *** may be found at <https://draconx.ca/projects/gob-dx/>."; \
+        echo "       *** See config.log for more details."; \
+       } 1>&2
+       @false
+endif
 
 STAMP_RECOVER = \
        @if test -f $@; then :; else rm -f $<; $(MAKE) $(AM_MAKEFLAGS) $<; fi