[anjal] Add --with-mozilla=no option to build without it.



commit 0836a8184f76b0d66daa60081c30324537e51f58
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Tue May 5 13:46:15 2009 +0530

    Add --with-mozilla=no option to build without it.
---
 configure.ac |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index f6d25e7..aa5ab5a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,6 +60,14 @@ else
    AM_CONDITIONAL(ENABLE_WEBKIT, false)
 fi
 
+AC_MSG_CHECKING([whether to build with mozilla])
+AC_ARG_WITH([mozilla],
+	[AC_HELP_STRING([--with-mozilla],
+	[Build with Mozilla [default=yes]])],
+	with_mozilla="$withval", with_mozilla="yes")
+AC_MSG_RESULT($with_mozilla)
+
+if test "x$with_mozilla" = "xyes"; then
 PKG_CHECK_MODULES(MOZILLA, [mozilla-gtkmozembed],HAVE_MOZILLA="yes", HAVE_MOZILLA="no")
 if test "x$HAVE_MOZILLA" = "xyes"; then
    AC_DEFINE(HAVE_MOZILLA, 1, [mozilla available])
@@ -68,7 +76,10 @@ else
    AC_DEFINE(HAVE_MOZILLA, 0, [mozilla not available])
    AM_CONDITIONAL(ENABLE_MOZILLA, false)
 fi
-
+else
+   AC_DEFINE(HAVE_MOZILLA, 0, [mozilla not available])
+   AM_CONDITIONAL(ENABLE_MOZILLA, false)
+fi
 
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]