Fix references to source tree in VPATH builds

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
This commit is contained in:
Jānis Rukšāns 2012-05-29 19:37:34 +03:00 committed by Karsten Keil
parent cb3126f001
commit 46c29c8a22
3 changed files with 8 additions and 6 deletions

View File

@ -32,7 +32,7 @@ EXTRA_DIST = m4
if GIT_REPO
ChangeLog: .git/objects
ChangeLog: $(srcdir)/.git/objects
git log > $@
endif

View File

@ -154,11 +154,13 @@ AC_CHECK_FUNCS([gethostbyname gettimeofday inet_ntoa memset select socket strcas
MISDN_CHECK_AF_ISDN
if test -d .git/objects
then
git_repo=true
AC_MSG_CHECKING([whether building from git])
if test -d ${srcdir}/.git/objects; then
AC_MSG_RESULT([yes])
git_repo=true
else
git_repo=false
AC_MSG_RESULT([no])
git_repo=false
fi
AC_MISDN_GROUP

View File

@ -20,6 +20,6 @@ lib_LTLIBRARIES = libmisdn.la
libmisdn_la_SOURCES = $(MISC_SRC) $(LAYER3_SRC) $(INCLUDE_SRC) $(ASN1_SRC) $(SUPPSERV_SRC)
libmisdn_la_LDFLAGS = -version-info 1:0:0
AM_CPPFLAGS = -I$(top_srcdir)/include -Iinclude $(_MEMLEAKDEBUG)
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)/include $(_MEMLEAKDEBUG)
CLEANFILES = *~ */*~