diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2010-07-21 16:49:04 -0400 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2010-07-22 15:22:56 -0400 |
commit | 411570523550e1997bbd83815990bdda8cfd129c (patch) | |
tree | d54196ab457260a393c2459636bdb7050ee9c6b6 /configure.ac | |
parent | 99892c4f416e9669a62963d29e7dee760382da95 (diff) |
config: add comments for main statements
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index dbbb430..900e1fa 100644 --- a/configure.ac +++ b/configure.ac @@ -20,13 +20,12 @@ # # Process this file with autoconf to produce a configure script +# Initialize Autoconf AC_PREREQ([2.60]) - AC_INIT([xf86-video-mga], [1.4.12], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xf86-video-mga]) - AC_CONFIG_SRCDIR([Makefile.am]) AC_CONFIG_HEADERS([config.h]) @@ -38,16 +37,17 @@ XORG_DEFAULT_OPTIONS AC_CONFIG_AUX_DIR(.) +# Initialize Automake AM_INIT_AUTOMAKE([foreign dist-bzip2]) - AM_MAINTAINER_MODE -# Checks for programs. +# Initialize libtool AC_DISABLE_STATIC AC_PROG_LIBTOOL AH_TOP([#include "xorg-server.h"]) +# Define a configure option for an alternate module directory AC_ARG_WITH(xorg-module-dir, AS_HELP_STRING([--with-xorg-module-dir=DIR], [Default xorg module directory [[default=$libdir/xorg/modules]]]), @@ -64,19 +64,18 @@ AC_ARG_ENABLE(exa, [EXA="$enableval"], [EXA=yes]) -# Checks for extensions +# Store the list of server defined optional extensions in REQUIRED_MODULES XORG_DRIVER_CHECK_EXT(RANDR, randrproto) XORG_DRIVER_CHECK_EXT(RENDER, renderproto) XORG_DRIVER_CHECK_EXT(XV, videoproto) XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto) -# Checks for pkg-config packages +# Obtain compiler/linker options for the driver dependencies PKG_CHECK_MODULES(XORG, [xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES]) sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` # Checks for libraries. - if test "x$DRI" != xno; then AC_CHECK_FILE([${sdkdir}/dri.h], [have_dri_h="yes"], [have_dri_h="no"]) |