Support building from directories other than the source directory.

Patch contributed by Mo DeJong -- thanks!

This closes SF patch #431340.
This commit is contained in:
Fred L. Drake, Jr. 2001-07-21 03:37:12 +00:00
parent 517663ce07
commit 84ec06ca9c
2 changed files with 4 additions and 4 deletions

View File

@ -94,13 +94,13 @@ dnl in "embedded distributions", where only part of the Expat sources
dnl are included in the sources for another project.
OUTPUT="Makefile lib/Makefile lib/expat.h"
if test -d xmlwf; then
if test -d ${srcdir}/xmlwf; then
OUTPUT="$OUTPUT xmlwf/Makefile"
fi
if test -d sample; then
if test -d ${srcdir}/sample; then
OUTPUT="$OUTPUT sample/Makefile"
fi
if test -d examples; then
if test -d ${srcdir}/examples; then
OUTPUT="$OUTPUT examples/Makefile"
fi
AC_OUTPUT($OUTPUT)

View File

@ -77,7 +77,7 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES =
INCLUDES = -I$(srcdir) -I..
INCLUDES = -I$(srcdir) -I. -I..
DEFS = @DEFS@ -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(PACKAGE)_$(VERSION)"'
CPPFLAGS = @CPPFLAGS@