Blame SOURCES/autofs-5.0.8-fix-external-env-configure.patch

6bbd11
autofs-5.0.8 - fix external env configure
6bbd11
6bbd11
From: Ian Kent <raven@themaw.net>
6bbd11
6bbd11
Macro lookup can also resolve names in the external environment.
6bbd11
The configure script disables this by default but the configure
6bbd11
help implies it is enabled by default.
6bbd11
---
6bbd11
 CHANGELOG    |    1 +
6bbd11
 configure    |    2 +-
6bbd11
 configure.in |    2 +-
6bbd11
 3 files changed, 3 insertions(+), 2 deletions(-)
6bbd11
6bbd11
--- autofs-5.0.7.orig/CHANGELOG
6bbd11
+++ autofs-5.0.7/CHANGELOG
6bbd11
@@ -92,6 +92,7 @@
6bbd11
 - fix macro_addvar() and move init to main thread.
6bbd11
 - change walk_tree() to take ap.
6bbd11
 - add negative cache lookup to hesiod lookup.
6bbd11
+- fix external env configure.
6bbd11
 
6bbd11
 25/07/2012 autofs-5.0.7
6bbd11
 =======================
6bbd11
--- autofs-5.0.7.orig/configure
6bbd11
+++ autofs-5.0.7/configure
6bbd11
@@ -5608,7 +5608,7 @@ else
6bbd11
   enableval=yes
6bbd11
 fi
6bbd11
 
6bbd11
-if test x$enable_ext_env = xyes; then
6bbd11
+if test x$enable_ext_env = xyes -o x$enableval = xyes; then
6bbd11
 
6bbd11
 $as_echo "#define ENABLE_EXT_ENV 1" >>confdefs.h
6bbd11
 
6bbd11
--- autofs-5.0.7.orig/configure.in
6bbd11
+++ autofs-5.0.7/configure.in
6bbd11
@@ -346,7 +346,7 @@ AC_SUBST(DAEMON_LDFLAGS)
6bbd11
 AC_ARG_ENABLE(ext-env,
6bbd11
 [  --disable-ext-env	  disable search in environment for substitution variable],,
6bbd11
 	enableval=yes)
6bbd11
-if test x$enable_ext_env = xyes; then
6bbd11
+if test x$enable_ext_env = xyes -o x$enableval = xyes; then
6bbd11
         AC_DEFINE(ENABLE_EXT_ENV, 1, [leave this alone])
6bbd11
 fi
6bbd11