summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2014-07-13 15:49:51 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2014-07-13 15:49:51 +0000
commit9116421ecbec1119f058d51ba576495e3d101242 (patch)
tree99a665f649f62c75825684ec32489cb05b227cfc
parentd2abe4ca54f88faeea57f731c2df50f9523d34a5 (diff)
Update configure.ac and src/Makefile.am to recent X.Org templates
-rw-r--r--driver/xf86-video-wsudl/configure.ac20
-rw-r--r--driver/xf86-video-wsudl/src/Makefile.am2
2 files changed, 14 insertions, 8 deletions
diff --git a/driver/xf86-video-wsudl/configure.ac b/driver/xf86-video-wsudl/configure.ac
index 7b9692b9c..e873b9a09 100644
--- a/driver/xf86-video-wsudl/configure.ac
+++ b/driver/xf86-video-wsudl/configure.ac
@@ -28,13 +28,7 @@ AC_INIT([xf86-video-wsudl],
[xf86-video-wsudl])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
-
-# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
-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_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR(.)
# Initialize Automake
@@ -45,6 +39,12 @@ AM_MAINTAINER_MODE
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
+# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
+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
+
AH_TOP([#include "xorg-server.h"])
# Define a configure option for an alternate module directory
@@ -62,10 +62,16 @@ AC_ARG_WITH(xorg-module-dir,
# Obtain compiler/linker options for the driver dependencies
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES])
+# Checks for libraries.
+
+# Checks for header files.
+AC_HEADER_STDC
+
AC_SUBST([moduledir])
DRIVER_NAME=wsudl
AC_SUBST([DRIVER_NAME])
+AC_SUBST([moduledir])
AC_CONFIG_FILES([
Makefile
diff --git a/driver/xf86-video-wsudl/src/Makefile.am b/driver/xf86-video-wsudl/src/Makefile.am
index d080d679e..1a1bcc053 100644
--- a/driver/xf86-video-wsudl/src/Makefile.am
+++ b/driver/xf86-video-wsudl/src/Makefile.am
@@ -23,7 +23,7 @@
# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
# _ladir passes a dummy rpath to libtool so the thing will actually link
# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
-AM_CFLAGS = @XORG_CFLAGS@
+AM_CFLAGS = $(XORG_CFLAGS) $(CWARNFLAGS)
wsudl_drv_la_LTLIBRARIES = wsudl_drv.la
wsudl_drv_la_LDFLAGS = -module -avoid-version
wsudl_drv_ladir = @moduledir@/drivers