]> git.sur5r.net Git - kconfig-frontends/blobdiff - configure.ac
frontends: add qconf
[kconfig-frontends] / configure.ac
index 9b6bf39114a300f7c76836c20d64796060a316d6..2827968b891fcbb07dc21bba083366f01e808af1 100644 (file)
@@ -66,6 +66,12 @@ AC_ARG_ENABLE(
         [--enable-gconf],
         [gconf, the GTK-based frontend (default=yes)])])
 AC_SUBST([enable_gconf], [${enable_gconf:-yes}])
+AC_ARG_ENABLE(
+    [qconf],
+    [AS_HELP_STRING(
+        [--enable-qconf],
+        [qconf, the QT-based frontend (default=yes)])])
+AC_SUBST([enable_qconf], [${enable_qconf:-yes}])
 
 #----------------------------------------
 # Some program checks
@@ -113,15 +119,29 @@ AS_IF(
     [test -z "$ac_ct_curses_lib_found"],
     [AC_MSG_ERROR([could not find curses library])])
 
+#----------------------------------------
+# Check pkg-config if needed
+AS_IF(
+    [test    "$enable_gconf" = "yes"    \
+          -o "$enable_qconf" = "yes"],
+    [PKG_PROG_PKG_CONFIG()])
+
 #----------------------------------------
 # Check headers and libs for gconf
 AS_IF(
     [test "$enable_gconf" = yes ],
-    [PKG_PROG_PKG_CONFIG()
-     PKG_CHECK_MODULES(
+    [PKG_CHECK_MODULES(
         [gtk],
         [gtk+-2.0 gmodule-2.0 libglade-2.0])])
 
+#----------------------------------------
+# Check headers and libs for gconf
+AS_IF(
+    [test "$enable_qconf" = "yes"],
+    [PKG_CHECK_MODULES(
+        [qt4],
+        [QtCore QtGui Qt3Support])])
+
 #---------------------------------------------------------------------------
 # Prepare automake
 AM_INIT_AUTOMAKE
@@ -138,6 +158,9 @@ AM_CONDITIONAL(
 AM_CONDITIONAL(
     [COND_gconf],
     [test "$enable_gconf" = "yes"])
+AM_CONDITIONAL(
+    [COND_qconf],
+    [test "$enable_qconf" = "yes"])
 
 #----------------------------------------
 # Finalise
@@ -151,5 +174,6 @@ AC_CONFIG_FILES([
     frontends/mconf/Makefile
     frontends/nconf/Makefile
     frontends/gconf/Makefile
+    frontends/qconf/Makefile
 ])
 AC_OUTPUT