commit d57f583ca3b4b6d5f2280a9f81a9da584b320bac
parent 46b09904dbb90107762e9a74dae533e82f0f896d
Author: Geoff Johnstone <qwerty@acm.org>
Date: Fri, 10 Apr 2009 18:21:44 +0100
Disallow --without-samba. Fix dist target.
Diffstat:
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/Makefile.in b/Makefile.in
@@ -84,8 +84,10 @@ tar:
git log > $(STAGING)/Changelog
cp -a $(PWD)/* $(STAGING)/
rm -rf $(STAGING)/.hg
- (cd $(STAGING)/..; \
- tar jcf $(PWD)/usmb-$(VERSION).tar.bz2 usmb-$(VERSION) ; \
+ (cd $(STAGING)/.. && \
+ autoreconf && \
+ rm -rf autom4te.cache && \
+ tar jcf $(PWD)/usmb-$(VERSION).tar.bz2 usmb-$(VERSION) && \
tar zcf $(PWD)/usmb-$(VERSION).tar.gz usmb-$(VERSION))
rm -rf $(STAGING)
diff --git a/configure.ac b/configure.ac
@@ -11,8 +11,12 @@ AC_ARG_ENABLE([debug],
AC_ARG_WITH([samba],
[AS_HELP_STRING([--with-samba=prefix],
[Location of Samba (i.e. libsmbclient)])],
- [CFLAGS="$CFLAGS -I$withval/include"
- LDFLAGS="$LDFLAGS -L$withval/lib"])
+ [if test no = $withval ; then
+ AC_MSG_ERROR(Samba is required for building AC_PACKAGE_NAME)
+ else
+ CFLAGS="$CFLAGS -I$withval/include"
+ LDFLAGS="$LDFLAGS -L$withval/lib"
+ fi])
# Checks for programs.
AC_PROG_CC_C99([gcc])