From 7b07dd6c9ec599dc902513bcaf3c66662ed6b9c4 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 16 Feb 2021 12:14:59 +0100 Subject: Raise an error if GUILE_DRMAA_LIBRARY is unset at runtime. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index c3bd8f6..8c73a13 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,7 +32,7 @@ SUFFIXES = .scm .go .ffi drmaa/v1/ffi.scm: drmaa/v1/ffi.ffi $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile-ffi -I $(top_srcdir)/include -X -o "$@" "$<" && \ - $(SED) -e 's,(define drmaa-v1-ffi-llibs (list)),(define drmaa-v1-ffi-llibs (delay (list (dynamic-link (getenv "GUILE_DRMAA_LIBRARY"))))),' \ + $(SED) -e 's,(define drmaa-v1-ffi-llibs (list)),(define drmaa-v1-ffi-llibs (delay (list (dynamic-link (or (getenv "GUILE_DRMAA_LIBRARY") (error "GUILE_DRMAA_LIBRARY must be set!")))))),' \ -e 's,drmaa-v1-ffi-llibs),(force drmaa-v1-ffi-llibs)),' -i $@ SOURCES = drmaa.scm \ -- cgit v1.2.3