Fix mozilla autoconf check : AC_PATH_PROGS() was used incorrectly, and the check...
authorRafaël Carré <rafael.carre@gmail.com>
Wed, 27 May 2009 09:12:20 +0000 (11:12 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 29 May 2009 22:32:41 +0000 (00:32 +0200)
(cherry picked from commit f3fe98dbb4255e70fec8f12c5bba44749122930b)

configure.ac

index 8603f46..3b510a1 100644 (file)
@@ -5562,8 +5562,8 @@ then
           [
             AC_PATH_PROGS(MOZILLA_CONFIG,
            [mozilla-config seamonkey-config xulrunner-config],
-            AC_MSG_ERROR([Please install the Mozilla development tools. mozilla-config was not found.])
-                 )
+        [no])
+            test "${MOZILLA_CONFIG}" = "no" && AC_MSG_ERROR([Please install the Mozilla development tools. mozilla-config was not found.])
           ]
         )
     dnl pkg-config failed but we might have found a mozilla-config