Output CCAT configuration. stable-1.5
authorFlorian Pose <fp@igh-essen.com>
Mon, 27 Oct 2014 14:15:25 +0100
branchstable-1.5
changeset 2563 25da153a74b9
parent 2562 e842688ccc5e
child 2564 976381a3bd9e
Output CCAT configuration.
configure.ac
--- a/configure.ac	Mon Oct 27 14:15:55 2014 +0100
+++ b/configure.ac	Mon Oct 27 14:15:25 2014 +0100
@@ -247,29 +247,6 @@
 AC_SUBST(KERNEL_8139TOO,[$kernel8139too])
 
 #------------------------------------------------------------------------------
-# CCAT driver
-#------------------------------------------------------------------------------
-
-AC_ARG_ENABLE([ccat],
-    AS_HELP_STRING([--enable-ccat],
-                   [Enable CCAT driver]),
-    [
-        case "${enableval}" in
-            yes) enableccat=1
-                ;;
-            no) enableccat=0
-                ;;
-            *) AC_MSG_ERROR([Invalid value for --enable-ccat])
-                ;;
-        esac
-    ],
-    [enableccat=0] # disabled by default
-)
-
-AM_CONDITIONAL(ENABLE_CCAT, test "x$enableccat" = "x1")
-AC_SUBST(ENABLE_CCAT,[$enableccat])
-
-#------------------------------------------------------------------------------
 # e100 driver
 #------------------------------------------------------------------------------
 
@@ -506,6 +483,37 @@
 AC_SUBST(KERNEL_R8169,[$kernel_r8169])
 
 #------------------------------------------------------------------------------
+# CCAT driver
+#------------------------------------------------------------------------------
+
+AC_MSG_CHECKING([whether to build the CCAT driver])
+
+AC_ARG_ENABLE([ccat],
+    AS_HELP_STRING([--enable-ccat],
+                   [Enable CCAT driver]),
+    [
+        case "${enableval}" in
+            yes) enableccat=1
+                ;;
+            no) enableccat=0
+                ;;
+            *) AC_MSG_ERROR([Invalid value for --enable-ccat])
+                ;;
+        esac
+    ],
+    [enableccat=0] # disabled by default
+)
+
+if test "x${enableccat}" = "x1"; then
+    AC_MSG_RESULT([yes])
+else
+    AC_MSG_RESULT([no])
+fi
+
+AM_CONDITIONAL(ENABLE_CCAT, test "x$enableccat" = "x1")
+AC_SUBST(ENABLE_CCAT,[$enableccat])
+
+#------------------------------------------------------------------------------
 # RTAI path (optional)
 #------------------------------------------------------------------------------