From 70c0bd30f0f77e70910d10f91ecca617d6b5acb7 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Sun, 22 Jan 2012 20:19:45 -0500 Subject: configure.ac: regroup statements and comment Add missing AC_CONFIG_SRCDIR([Makefile.am]) Move AC_USE_SYSTEM_EXTENSIONS higher up in Autoconf init section which must come before XORG_DEFAULT_OPTIONS Move XORG_DEFAULT_OPTIONS to its usual place with X.Org macros Note that AC_FUNC_STRNLEN calls AC_REQUIRE(AC_USE_SYSTEM_EXTENSIONS) Comment the strnlen function replacement. http://pubs.opengroup.org/onlinepubs/9699919799/functions/strlen.html No functional changes. Following the layout in http://www.x.org/wiki/NewModuleGuidelines Signed-off-by: Gaetan Nadon --- configure.ac | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 0ac554e..2f9c369 100644 --- a/configure.ac +++ b/configure.ac @@ -21,10 +21,15 @@ dnl PERFORMANCE OF THIS SOFTWARE. dnl dnl Process this file with autoconf to create configure. +# Initialize Autoconf AC_PREREQ([2.60]) AC_INIT([xlsclients], [1.1.2], - [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], - [xlsclients]) + [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xlsclients]) +AC_CONFIG_SRCDIR([Makefile.am]) +AC_CONFIG_HEADERS([config.h]) +AC_USE_SYSTEM_EXTENSIONS + +# Initialize Automake AM_INIT_AUTOMAKE([foreign dist-bzip2]) AM_MAINTAINER_MODE @@ -32,19 +37,15 @@ AM_MAINTAINER_MODE m4_ifndef([XORG_MACROS_VERSION], [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) XORG_MACROS_VERSION(1.8) +XORG_DEFAULT_OPTIONS -AC_CONFIG_HEADERS([config.h]) - -# Check for functional strnlen -AC_USE_SYSTEM_EXTENSIONS +# Use POSIX strnlen or the implementation supplied in this module AC_FUNC_STRNLEN if test "x$ac_cv_func_strnlen_working" = xyes; then AC_DEFINE(HAVE_STRNLEN, 1, [Define to 1 if you have a working strnlen function.]) fi -XORG_DEFAULT_OPTIONS - -# Checks for pkg-config packages +# Obtain compiler/linker options for xlsclients dependencies PKG_CHECK_MODULES(XLSCLIENTS, xcb >= 1.6) AC_CONFIG_FILES([ -- cgit v1.2.3