[vlc-devel] commit: Put AC_ARG_ENABLE outside of if statement ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Aug 30 10:10:41 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 30 11:01:39 2009 +0300| [ed1f01cd4da4c8135f6c7917e62de20e9974b18b] | committer: Rémi Denis-Courmont
Put AC_ARG_ENABLE outside of if statement
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ed1f01cd4da4c8135f6c7917e62de20e9974b18b
---
configure.ac | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/configure.ac b/configure.ac
index e82d378..968683e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4544,16 +4544,16 @@ PKG_ENABLE_MODULES_VLC([projectm], [], [libprojectM], [projectM visualization pl
dnl
dnl AtmoLight (homebrew AmbiLight)
dnl
-if test "${SYS}" = "mingw32" -o "${SYS}" = "linux"; then
- AC_ARG_ENABLE(atmo,
-AS_HELP_STRING([--disable-atmo],[AtmoLight (homebrew philips ambilight)
- (default enabled)]))
- if test "${enable_atmo}" != "no"; then
- AC_LANG_PUSH(C++)
- VLC_ADD_PLUGIN([atmo])
- AC_LANG_POP(C++)
- fi
-fi
+AC_ARG_ENABLE(atmo,
+AS_HELP_STRING([--disable-atmo],[AtmoLight (homebrew Philips ambilight)
+ (default enabled)]),, [enable_atmo="yes"])
+AS_IF([test "${enable_atmo}" != no], [
+ AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "linux"], [
+ AC_LANG_PUSH(C++)
+ VLC_ADD_PLUGIN([atmo])
+ AC_LANG_POP(C++)
+ ])
+])
dnl
dnl Bonjour services discovery
More information about the vlc-devel
mailing list