tweak the error message
authorChristophe Mutricy <xtophe@videolan.org>
Sun, 4 Mar 2007 20:29:45 +0000 (20:29 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sun, 4 Mar 2007 20:29:45 +0000 (20:29 +0000)
configure.ac

index a3f5755..2075f17 100644 (file)
@@ -4891,7 +4891,12 @@ AS_IF([test "${enable_qt4}" != "no" &&
       MOC=`$PKG_CONFIG --variable=exec_prefix QtCore`/bin/moc
       RCC=`$PKG_CONFIG --variable=exec_prefix QtCore`/bin/rcc
       UIC=`$PKG_CONFIG --variable=exec_prefix QtCore`/bin/uic],
-    [AC_MSG_ERROR(QT4 library not found)])
+      AS_IF([test "${enable_qt4}" = "yes"],[
+       AC_MSG_ERROR(QT4 library not found)
+      ],[
+        AC_MSG_WARN(QT4 library not found)
+      ])
+    ])
 ])
 AM_CONDITIONAL(ENABLE_QT4, test "$enableqt4" = "true")