From: dbs Date: Tue, 2 Feb 2010 17:11:29 +0000 (+0000) Subject: Forward-port r1908 + r1914 from rel_1_2 to improve portability without breaking X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4a12aa20cec7f9720521bc425b9552deac85ef90;p=opensrf%2Fbjwebb.git Forward-port r1908 + r1914 from rel_1_2 to improve portability without breaking git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1915 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/gateway/Makefile.am b/src/gateway/Makefile.am index 9552765..0eb5706 100644 --- a/src/gateway/Makefile.am +++ b/src/gateway/Makefile.am @@ -20,9 +20,10 @@ AM_LDFLAGS = -L$(LIBDIR) -L@top_builddir@/src/libopensrf DISTCLEANFILES = Makefile.in Makefile install-exec-local: - if [ ! "$$(grep mod_placeholder `$(APXS2) -q SYSCONFDIR`/httpd.conf)" ]; \ + d=`$(APXS2) -q SYSCONFDIR` && \ + if ! grep mod_placeholder $${d}/httpd.conf 2>&1 >/dev/null ; \ then echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \ - >> `$(APXS2) -q SYSCONFDIR`/httpd.conf; \ + >> $${d}/httpd.conf; \ fi $(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) @srcdir@/osrf_json_gateway.c apachetools.c apachetools.h libopensrf.so $(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) @srcdir@/osrf_http_translator.c apachetools.c apachetools.h libopensrf.so