From bb2496cbc380a2d0af4e71ffc1f6314f3dc88536 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Mon, 19 Jul 2010 18:35:36 +0000 Subject: [PATCH] only build job_submit/lua plugin if LUA is installed --- src/plugins/job_submit/Makefile.am | 6 +++++- src/plugins/job_submit/Makefile.in | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/plugins/job_submit/Makefile.am b/src/plugins/job_submit/Makefile.am index 8e8fd4e949f..848a499b874 100644 --- a/src/plugins/job_submit/Makefile.am +++ b/src/plugins/job_submit/Makefile.am @@ -1,3 +1,7 @@ # Makefile for job_submit plugins -SUBDIRS = defaults logging lua partition +if HAVE_LUA +LUA = lua +endif + +SUBDIRS = defaults logging $(LUA) partition diff --git a/src/plugins/job_submit/Makefile.in b/src/plugins/job_submit/Makefile.in index 91616f85c19..b3afd3563d1 100644 --- a/src/plugins/job_submit/Makefile.in +++ b/src/plugins/job_submit/Makefile.in @@ -96,7 +96,7 @@ AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ distdir ETAGS = etags CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) +DIST_SUBDIRS = defaults logging lua partition DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ @@ -311,7 +311,8 @@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -SUBDIRS = defaults logging lua partition +@HAVE_LUA_TRUE@LUA = lua +SUBDIRS = defaults logging $(LUA) partition all: all-recursive .SUFFIXES: -- GitLab