summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@crux.(none)>2008-12-07 23:56:15 +0100
committerMatthieu Herrb <matthieu@crux.(none)>2008-12-07 23:56:15 +0100
commit22d4ddcc3d63b7fbf2a23f5162075e4ee06db781 (patch)
treed121657191d7b5a6b426c1a678184c3d5903b414
parentd2dad384f5725a36e593fd75f03d712f53b20620 (diff)
parentc3bf15ba85fd3ab2e1fe809428b75bf34db25cc8 (diff)
Merge branch 'master' of git://anongit.freedesktop.org/git/xorg/xserver
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac16
-rw-r--r--hw/xfree86/x86emu/Makefile.am4
3 files changed, 12 insertions, 11 deletions
diff --git a/Makefile.am b/Makefile.am
index 89911045c..f5ab8a5ab 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -53,8 +53,7 @@ MAINTAINERCLEANFILES=ChangeLog
.PHONY: ChangeLog
ChangeLog:
- (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || \
- (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
+ $(CHANGELOG_CMD)
dist-hook: ChangeLog
diff --git a/configure.ac b/configure.ac
index 9e656808f..0270fc39c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,11 @@ AC_CONFIG_SRCDIR([Makefile.am])
AM_INIT_AUTOMAKE([dist-bzip2 foreign])
AM_MAINTAINER_MODE
+# Require xorg-macros version 1.2.0 or newer for XORG_CHANGELOG and
+# XORG_CWARNFLAGS
+m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.2)
+
dnl this gets generated by autoheader, and thus contains all the defines. we
dnl don't ever actually use it, internally.
AC_CONFIG_HEADERS(include/do-not-use-config.h)
@@ -1146,18 +1151,14 @@ AC_SUBST([UTILS_SYS_LIBS])
# Some platforms require extra flags to do this. gcc should set these flags
# when -rdynamic is passed to it, other compilers/linkers may need to be added
# here.
+XORG_CWARNFLAGS
if test "x$GCC" = "xyes"; then
- GCC_WARNINGS1="-Wall -Wpointer-arith -Wstrict-prototypes"
- GCC_WARNINGS2="-Wmissing-prototypes -Wmissing-declarations"
- GCC_WARNINGS3="-Wnested-externs -fno-strict-aliasing"
- GCC_WARNINGS="$GCC_WARNINGS1 $GCC_WARNINGS2 $GCC_WARNINGS3"
if test "x$WERROR" = "xyes"; then
- GCC_WARNINGS="${GCC_WARNINGS} -Werror"
+ CWARNFLAGS="${CWARNFLAGS} -Werror"
fi
- XSERVER_CFLAGS="$GCC_WARNINGS $XSERVER_CFLAGS"
-
LD_EXPORT_SYMBOLS_FLAG="-rdynamic"
fi
+XSERVER_CFLAGS="$CWARNFLAGS $XSERVER_CFLAGS"
case $host_os in
openbsd*)
LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-dynamic"
@@ -1851,6 +1852,7 @@ AC_SUBST([prefix])
# Man page sections - used in config utils & generating man pages
XORG_MANPAGE_SECTIONS
+XORG_CHANGELOG
AC_OUTPUT([
Makefile
diff --git a/hw/xfree86/x86emu/Makefile.am b/hw/xfree86/x86emu/Makefile.am
index acd249c7f..987ea8bd7 100644
--- a/hw/xfree86/x86emu/Makefile.am
+++ b/hw/xfree86/x86emu/Makefile.am
@@ -1,6 +1,6 @@
-noinst_LIBRARIES = libx86emu.a
+noinst_LTLIBRARIES = libx86emu.la
-libx86emu_a_SOURCES = debug.c \
+libx86emu_la_SOURCES = debug.c \
decode.c \
fpu.c \
ops2.c \