[Xcb-commit] configure.ac

Julien Danjou jdanjou at kemper.freedesktop.org
Tue Oct 14 14:40:16 PDT 2008


 configure.ac |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

New commits:
commit dcbef23d730b95ef7dc9ef524a4c3fc0017b63d2
Author: Julien Danjou <julien at danjou.info>
Date:   Tue Oct 14 23:39:07 2008 +0200

    build: fix configure.ac AC_DEFINE
    
    Rather use AC_DEFINE_UNQUOTED and only once.
    
    Signed-off-by: Julien Danjou <julien at danjou.info>

diff --git a/configure.ac b/configure.ac
index 62c20be..01655cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,14 +77,13 @@ linux*)
 esac
 
 dnl define buffer queue size
-xcb_queue_buffer_size=16384
-AC_DEFINE(XCB_QUEUE_BUFFER_SIZE, $xcb_queue_buffer_size, [XCB buffer queue size])
-AC_ARG_WITH(queue-size,
+AC_ARG_WITH([queue-size],
             AC_HELP_STRING([--with-queue-size=SIZE],
-              [Set the XCB buffer queue size (default is 16384)]),
-            [AC_DEFINE_UNQUOTED(XCB_QUEUE_BUFFER_SIZE, $withval, [XCB buffer queue size]),
-            xcb_queue_buffer_size=$withval],
-            )
+            [Set the XCB buffer queue size (default is 16384)]),
+            [xcb_queue_buffer_size="$withval"],
+            [xcb_queue_buffer_size=16384])
+AC_DEFINE_UNQUOTED(XCB_QUEUE_BUFFER_SIZE, [$xcb_queue_buffer_size],
+                   [XCB buffer queue size])
 
 dnl check for the sockaddr_un.sun_len member
 AC_CHECK_MEMBER([struct sockaddr_un.sun_len],


More information about the xcb-commit mailing list