summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-30 15:45:20 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-30 15:45:20 -0200
commit6697e31fbb616656b7f34515a79454af394b500a (patch)
tree504d0d5c456226bec6ced89839d94964a728e321 /configure.ac
parent41e4e2de4d73d098d332ece0410e9f8fda4fe10d (diff)
Janitor: ansification, make distcheck, .gitignore
The ansification code is minor edit of the patch (by me) at https://bugs.freedesktop.org/show_bug.cgi?id=14727 as it would not apply cleanly anymore.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 7 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 3174b30..34e3ea1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,15 +5,20 @@ AM_INIT_AUTOMAKE([dist-bzip2])
AM_MAINTAINER_MODE
+# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
+m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.2)
AM_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_LIBTOOL
AC_PROG_CC
LT_AC_PROG_SED
+XORG_CWARNFLAGS
# Checks for pkg-config packages
PKG_CHECK_MODULES(XPM, xproto x11)
+XPM_CFLAGS="$CWARNFLAGS $XPM_CFLAGS"
AC_SUBST(XPM_CFLAGS)
AC_SUBST(XPM_LIBS)
@@ -23,15 +28,6 @@ AC_HEADER_STDC
# Checks for functions
AC_CHECK_FUNCS([strlcat])
-# Checks for typedefs, structures, and compiler characteristics.
-
-if test "x$GCC" = "xyes"; then
- GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \
- -Wmissing-prototypes -Wmissing-declarations \
- -Wnested-externs -fno-strict-aliasing"
- CFLAGS="$GCC_WARNINGS $CFLAGS"
-fi
-
# Internationalization & localization support
AC_SEARCH_LIBS([gettext], [intl], [USE_GETTEXT="yes"], [USE_GETTEXT="no"])
AC_MSG_CHECKING([where to install localized messages])
@@ -63,11 +59,12 @@ if test x$STAT_ZFILE = xyes ; then
fi
PKG_CHECK_MODULES(SXPM, xt xext xextproto, build_sxpm=true, build_sxpm=false)
-
+SXPM_CFLAGS="$CWARNFLAGS $SXPM_CFLAGS"
AM_CONDITIONAL(BUILD_SXPM, test x$build_sxpm = xtrue)
XORG_MANPAGE_SECTIONS
XORG_RELEASE_VERSION
+XORG_CHANGELOG
AC_OUTPUT([Makefile
src/Makefile