diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-19 19:23:43 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-19 19:23:43 -0200 |
commit | 1ff763d1f34c3027969f9f09d3226fc447435c04 (patch) | |
tree | e3c61e67434aefd646f60656d3c020ecbcab0090 | |
parent | 89508e83db03b45a8b1d1a5191084ddb93ea34f8 (diff) |
Ansification and compile warning fixes.
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects
make distcheck and all gcc 4.3 and sparse warnings.
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | configure.ac | 8 | ||||
-rw-r--r-- | xcmsdb.c | 2 |
4 files changed, 15 insertions, 3 deletions
@@ -18,3 +18,7 @@ stamp-h1 xcmsdb xcmsdb.1 *~ +*.o +xcmsdb-*.tar.* +ChangeLog +tags diff --git a/Makefile.am b/Makefile.am index 5ac4188..d0a4c39 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,7 +21,7 @@ bin_PROGRAMS = xcmsdb -xcmsdb_CFLAGS = $(XCMSDB_CFLAGS) +AM_CFLAGS = $(XCMSDB_CFLAGS) xcmsdb_LDADD = $(XCMSDB_LIBS) xcmsdb_SOURCES = \ @@ -71,6 +71,6 @@ 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 7cbfab9..3af3676 100644 --- a/configure.ac +++ b/configure.ac @@ -26,17 +26,25 @@ AC_INIT(xcmsdb,[1.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 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) AC_PROG_CC AC_PROG_INSTALL +XORG_CWARNFLAGS + # Checks for pkg-config packages PKG_CHECK_MODULES(XCMSDB, x11) +XCMSDB_CFLAGS="$CWARNFLAGS $XCMSDB_CFLAGS" AC_SUBST(XCMSDB_CFLAGS) AC_SUBST(XCMSDB_LIBS) XORG_MANPAGE_SECTIONS XORG_RELEASE_VERSION +XORG_CHANGELOG AC_OUTPUT([Makefile]) @@ -53,7 +53,7 @@ static int _XcmsGetProperty(Display *pDpy, Window w, Atom property, unsigned long *pNBytes, char **pValue); -char *ProgramName; +static char *ProgramName; static void Syntax (void) |