Break the current build dependency on perl. Perl is required for
authorTim Potter <tpot@samba.org>
Mon, 31 Mar 2003 01:44:42 +0000 (01:44 +0000)
committerTim Potter <tpot@samba.org>
Mon, 31 Mar 2003 01:44:42 +0000 (01:44 +0000)
include/tdbsam2_parse_info.h which is included by sam/gumm_tdb.c which
doesn't seem to be used anywhere.

It would be nice to have the tdbsam2 stuff hidden behind a --with
configuration parameter so it doesn't interfere with normal builds.

(One of the build farm machines doesn't have perl installed).
(This used to be commit 58924582e8bb922680860a13a89381b44906e9bc)

source3/Makefile.in

index d9e29ed7b102349284aa3dc1be88107024b1e6c1..f712d9969325748f00c92c91a9d206335929adfc 100644 (file)
@@ -21,6 +21,7 @@ LDSHFLAGS=@LDSHFLAGS@ @LDFLAGS@ @CFLAGS@
 AWK=@AWK@
 DYNEXP=@DYNEXP@
 PYTHON=@PYTHON@
+PERL=@PERL@
 
 TERMLDFLAGS=@TERMLDFLAGS@
 TERMLIBS=@TERMLIBS@
@@ -1253,9 +1254,13 @@ utils/net_proto.h:
          $(NET_OBJ1)
 
 include/tdbsam2_parse_info.h:
-       @cd $(srcdir) && @PERL@ -w script/genstruct.pl \
-       -o include/tdbsam2_parse_info.h $(CC) -E -O2 -g \
-       include/tdbsam2.h
+       @if test -n "$(PERL)"; then \
+               cd $(srcdir) && @PERL@ -w script/genstruct.pl \
+               -o include/tdbsam2_parse_info.h $(CC) -E -O2 -g \
+               include/tdbsam2.h; \
+       else \
+               echo Unable to build $@, continuing; \
+       fi
 
 # "make headers" or "make proto" calls a subshell because we need to
 # make sure these commands are executed in sequence even for a