Fix testing when compiled with --disable-afs-support

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Anton Lundin
2010-09-17 12:44:50 +02:00
committed by Love Hornquist Astrand
parent 4328f3980f
commit 61bfc2997b
2 changed files with 2 additions and 1 deletions

View File

@@ -245,6 +245,7 @@ AC_ARG_ENABLE([afs-support],
AS_HELP_STRING([--disable-afs-support],[if you don't want support for AFS]))
if test "$enable_afs_support" = no; then
AC_DEFINE(NO_AFS, 1, [Define if you don't wan't support for AFS.])
NO_AFS="1"
fi
AC_SUBST(NO_AFS)dnl

View File

@@ -9,7 +9,7 @@ do_subst = \
-e "s,[@]EGREP[@],$(EGREP),g" \
-e "s,[@]top_srcdir[@],$${top_srcdir},g" \
-e "s,[@]top_builddir[@],$${top_builddir},g" \
-e "s,[@]NO_AFS[@],$${NO_AFS},g"
-e "s,[@]NO_AFS[@],$(NO_AFS),g"
setup-env: setup-env.in Makefile
$(do_subst) < $(srcdir)/setup-env.in > setup-env.tmp