summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-02-02 11:43:40 -0500
committerGaetan Nadon <memsize@videotron.ca>2011-02-02 19:02:50 -0500
commit87d34a2f04c9d920da01802cd9707c8107746fa5 (patch)
treeea18e347f580dbbc61b3a659c1083df751221aa6 /configure.ac
parent548eded10385ccc336e66dac8bbabe05f3225ec2 (diff)
config: comment, minor upgrade, quote and layout configure.ac
Group statements per section as per Autoconf standard layout Quote statements where appropriate. Autoconf recommends not using dnl instead of # for comments Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parameters. This helps automated maintenance and release activities. Details can be found in http://wiki.x.org/wiki/NewModuleGuidelines Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac26
1 files changed, 12 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac
index 61e15a6..483c389 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,3 @@
-# -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
# Initialize Autoconf
AC_PREREQ([2.60])
@@ -17,6 +15,9 @@ AC_USE_SYSTEM_EXTENSIONS
AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_MAINTAINER_MODE
+# Initialize libtool
+AC_PROG_LIBTOOL
+
# Require xorg-macros minimum of 1.10 for DocBook XML documentation
m4_ifndef([XORG_MACROS_VERSION],
[m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])])
@@ -28,10 +29,7 @@ XORG_WITH_XMLTO(0.0.20)
XORG_WITH_FOP
XORG_CHECK_SGML_DOCTOOLS(1.5)
-# Checks for programs.
-AC_PROG_LIBTOOL
-
-# Checks for pkg-config packages
+# Obtain compiler/linker options for depedencies
PKG_CHECK_MODULES(ICE, xproto)
PKG_CHECK_MODULES(XTRANS, xtrans)
@@ -39,17 +37,17 @@ PKG_CHECK_MODULES(XTRANS, xtrans)
XTRANS_CONNECTION_FLAGS
AC_DEFINE(ICE_t, 1, [Xtrans transport type])
-# Checks for functions
+# Checks for library functions.
AC_CHECK_FUNCS([asprintf])
-dnl Allow checking code with lint, sparse, etc.
+# Allow checking code with lint, sparse, etc.
XORG_WITH_LINT
XORG_LINT_LIBRARY([ICE])
LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}"
-
-AC_OUTPUT([Makefile
- doc/Makefile
- specs/Makefile
- src/Makefile
- ice.pc])
+AC_CONFIG_FILES([Makefile
+ doc/Makefile
+ specs/Makefile
+ src/Makefile
+ ice.pc])
+AC_OUTPUT