Disallow --without-samba. Fix dist target. - susmb - mounting of SMB/CIFS shares via FUSE
 (HTM) git clone git://git.codemadness.org/susmb
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d57f583ca3b4b6d5f2280a9f81a9da584b320bac
 (DIR) parent 46b09904dbb90107762e9a74dae533e82f0f896d
 (HTM) Author: Geoff Johnstone <qwerty@acm.org>
       Date:   Fri, 10 Apr 2009 18:21:44 +0100
       
       Disallow --without-samba. Fix dist target.
       
       Diffstat:
         M Makefile.in                         |       6 ++++--
         M configure.ac                        |       8 ++++++--
       
       2 files changed, 10 insertions(+), 4 deletions(-)
       ---
 (DIR) 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)
        
 (DIR) 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])