diff --git a/configure b/configure
index a3932ab06873beaa662090261522a2862cdef030..237e99b6d382fa4965e31b8f426ce6054cf96338 100755
--- a/configure
+++ b/configure
@@ -586,6 +586,7 @@ CONFIG_LIST='
     ffserver
     gpl
     gprof
+    gray
     ipv6
     liba52
     liba52bin
@@ -616,7 +617,6 @@ CONFIG_LIST='
     v4l2
     x11grab
     zlib
-    gray
 '
 
 THREADS_LIST='