[PATCH app-xinput 3/5] Apply standard configuration init, layout and comments

Gaetan Nadon memsize at videotron.ca
Sat Jun 18 11:41:33 PDT 2011


http://www.x.org/wiki/NewModuleGuidelines#Configurationfilescontentguidelines

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 configure.ac |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/configure.ac b/configure.ac
index 245f8fb..fa64bf8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,8 +19,14 @@
 #  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 #  PERFORMANCE OF THIS SOFTWARE.
 
+# Initialize Autoconf
 AC_PREREQ([2.60])
-AC_INIT(xinput,[1.5.3], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xinput)
+AC_INIT([xinput], [1.5.3],
+	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xinput])
+AC_CONFIG_SRCDIR([Makefile.am])
+AC_CONFIG_HEADERS([config.h])
+
+# Initialize Automake
 AM_INIT_AUTOMAKE([foreign dist-bzip2])
 AM_MAINTAINER_MODE
 
@@ -30,11 +36,7 @@ m4_ifndef([XORG_MACROS_VERSION],
 XORG_MACROS_VERSION(1.8)
 XORG_DEFAULT_OPTIONS
 
-AC_CONFIG_HEADERS([config.h])
-
-
-
-# Checks for pkg-config packages
+# Obtain protocols headers include directives
 PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.2] [inputproto >= 1.5])
 
 # XI2 support
@@ -47,6 +49,7 @@ AC_SUBST(HAVE_XI2)
 
 AC_SUBST(VERSION)
 
-AC_OUTPUT([Makefile
-           src/Makefile
-           man/Makefile])
+AC_CONFIG_FILES([Makefile
+	src/Makefile
+	man/Makefile])
+AC_OUTPUT
-- 
1.7.4.1



More information about the xorg-devel mailing list