ChangeLog | 74 ++++++++++++++++++++++++++++++++++ Makefile.am | 8 +-- configure.ac | 95 +++++++++++++++++++++----------------------- debian/changelog | 8 ++- debian/control | 10 +++- debian/libxres-dev.install | 7 +-- debian/libxres-dev.manpages | 1 debian/libxres1.install | 2 debian/rules | 20 ++++----- man/XRes.man | 66 +++++++++++++++--------------- src/XRes.c | 6 +- 11 files changed, 188 insertions(+), 109 deletions(-)
New commits: commit bb3f8792d4bd4b065bdce70c4376f7a971fe2f5e Author: Julien Cristau <jcris...@debian.org> Date: Sat Apr 21 14:40:38 2012 +0200 Upload to unstable diff --git a/debian/changelog b/debian/changelog index 1504fc5..82adc6c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -libxres (2:1.0.6-1) UNRELEASED; urgency=low +libxres (2:1.0.6-1) unstable; urgency=low * Remove Andres, David and Brice from Uploaders. * Drop Depends and Pre-Depends on x11-common. @@ -7,7 +7,7 @@ libxres (2:1.0.6-1) UNRELEASED; urgency=low * Build for multiarch. * Kill useless libxres-dev.manpages file. - -- Julien Cristau <jcris...@debian.org> Sat, 21 Apr 2012 13:27:09 +0200 + -- Julien Cristau <jcris...@debian.org> Sat, 21 Apr 2012 14:40:34 +0200 libxres (2:1.0.5-1) unstable; urgency=low commit c57f44e8d7557af8cb3132883032f29707b45d09 Author: Julien Cristau <jcris...@debian.org> Date: Sat Apr 21 14:18:10 2012 +0200 Kill useless libxres-dev.manpages file. diff --git a/debian/changelog b/debian/changelog index fdef283..1504fc5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ libxres (2:1.0.6-1) UNRELEASED; urgency=low * Don't require (fake)root for debian/rules clean. * New upstream release. * Build for multiarch. + * Kill useless libxres-dev.manpages file. -- Julien Cristau <jcris...@debian.org> Sat, 21 Apr 2012 13:27:09 +0200 diff --git a/debian/libxres-dev.install b/debian/libxres-dev.install index deb3fd9..f6b77d3 100644 --- a/debian/libxres-dev.install +++ b/debian/libxres-dev.install @@ -2,3 +2,4 @@ usr/include/X11/* usr/lib/*/libXRes.a usr/lib/*/libXRes.so usr/lib/*/pkgconfig/xres.pc +usr/share/man diff --git a/debian/libxres-dev.manpages b/debian/libxres-dev.manpages deleted file mode 100644 index 7c72677..0000000 --- a/debian/libxres-dev.manpages +++ /dev/null @@ -1 +0,0 @@ -debian/tmp/usr/share/man/man3/* diff --git a/debian/rules b/debian/rules index 5818659..459f24a 100755 --- a/debian/rules +++ b/debian/rules @@ -77,7 +77,7 @@ binary-arch: build install dh_testroot dh_installdocs - dh_install --sourcedir=debian/tmp --fail-missing --exclude=libXRes.la --exclude=usr/share/man/man3 + dh_install --sourcedir=debian/tmp --fail-missing --exclude=libXRes.la dh_installman dh_installchangelogs ChangeLog dh_link commit c4c9fb7b7affe9f491c4c7d82a5388989769491a Author: Julien Cristau <jcris...@debian.org> Date: Sat Apr 21 14:14:31 2012 +0200 Build for multiarch. diff --git a/debian/changelog b/debian/changelog index 878dea8..fdef283 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ libxres (2:1.0.6-1) UNRELEASED; urgency=low * Drop Depends and Pre-Depends on x11-common. * Don't require (fake)root for debian/rules clean. * New upstream release. + * Build for multiarch. -- Julien Cristau <jcris...@debian.org> Sat, 21 Apr 2012 13:27:09 +0200 diff --git a/debian/control b/debian/control index f45971e..74f0e45 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Debian X Strike Force <debian-x@lists.debian.org> Uploaders: Drew Parsons <dpars...@debian.org>, Cyril Brulebois <k...@debian.org> Build-Depends: - debhelper (>= 5.0.0), + debhelper (>= 8.1.3), libx11-dev (>= 1:0.99.2), libxext-dev (>= 1:0.99.1), x11proto-resource-dev, @@ -21,6 +21,9 @@ Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/libxres.git Package: libxres1 Section: libs Architecture: any +Multi-Arch: same +Pre-Depends: + ${misc:Pre-Depends}, Depends: ${shlibs:Depends}, ${misc:Depends} Description: X11 Resource extension library libXRes provides an X Window System client interface to the Resource @@ -37,8 +40,11 @@ Description: X11 Resource extension library Package: libxres1-dbg Section: debug -Architecture: any Priority: extra +Architecture: any +Multi-Arch: same +Pre-Depends: + ${misc:Pre-Depends}, Depends: ${shlibs:Depends}, ${misc:Depends}, libxres1 (= ${binary:Version}) Description: X11 Resource extension library (debug package) libXRes provides an X Window System client interface to the Resource diff --git a/debian/libxres-dev.install b/debian/libxres-dev.install index a071ecf..deb3fd9 100644 --- a/debian/libxres-dev.install +++ b/debian/libxres-dev.install @@ -1,4 +1,4 @@ usr/include/X11/* -usr/lib/libXRes.a -usr/lib/libXRes.so -usr/lib/pkgconfig/xres.pc +usr/lib/*/libXRes.a +usr/lib/*/libXRes.so +usr/lib/*/pkgconfig/xres.pc diff --git a/debian/libxres1.install b/debian/libxres1.install index cbb2bcf..51c603e 100644 --- a/debian/libxres1.install +++ b/debian/libxres1.install @@ -1 +1 @@ -usr/lib/libXRes.so.1* +usr/lib/*/libXRes.so.1* diff --git a/debian/rules b/debian/rules index 7008755..5818659 100755 --- a/debian/rules +++ b/debian/rules @@ -24,6 +24,7 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) endif DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) @@ -39,13 +40,13 @@ configure: $(STAMP_DIR)/patch build: build-stamp build-stamp: configure $(STAMP_DIR)/genscripts dh_testdir - - mkdir -p obj-$(DEB_BUILD_GNU_TYPE) - cd obj-$(DEB_BUILD_GNU_TYPE) && \ + mkdir -p build + cd build && \ ../configure --prefix=/usr --mandir=\$${prefix}/share/man \ + --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \ --infodir=\$${prefix}/share/info $(confflags) \ CFLAGS="$(CFLAGS)" - cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) + cd build && $(MAKE) >$@ clean: xsfclean @@ -55,7 +56,7 @@ clean: xsfclean rm -f */config.cache */config.log */config.status rm -f conftest* */conftest* rm -rf autom4te.cache */autom4te.cache - rm -rf obj-* + rm -rf build rm -f aclocal.m4 compile config.guess config.sub configure rm -f depcomp install-sh ltmain.sh missing mkinstalldirs rm -f src/config.h.in @@ -68,7 +69,7 @@ install: build dh_clean -k dh_installdirs - cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + cd build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install # Build architecture-dependent files here. binary-arch: build install commit 184abf8a27b03dbef134e1b8a8c91b9c08aed0bc Author: Julien Cristau <jcris...@debian.org> Date: Sat Apr 21 13:27:18 2012 +0200 Bump changelogs diff --git a/ChangeLog b/ChangeLog index 0da3242..5832f59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,77 @@ +commit e6e0e02e4bf764fa58798540793bdeb44a60cc7f +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Wed Mar 7 20:53:56 2012 -0800 + + libXres 1.0.6 + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit 96c59e1c7c61d7e42b8da5ddbe9af1a12567fd47 +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Thu Nov 10 21:40:51 2011 -0800 + + Fix gcc -Wwrite-strings warning + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit fb6002c5736eda80a8ae1df46626862ca53a1c25 +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Fri Sep 16 22:52:12 2011 -0700 + + Strip trailing whitespace + + Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' + git diff -w & git diff -b show no diffs from this change + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit 455c02ee9143b2bfbfd99b6481a1b22a0ce2a2bf +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Wed Feb 2 11:43:40 2011 -0500 + + config: comment, minor upgrade, quote and layout configure.ac + + Group statements per section as per Autoconf standard layout + Quote statements where appropriate. + Autoconf recommends not using dnl instead of # for comments + + Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parameters. + Add AC_CONFIG_SRCDIR([Makefile.am]) + + This helps automated maintenance and release activities. + Details can be found in http://wiki.x.org/wiki/NewModuleGuidelines + +commit ecb0cb424a93e7de7671353d9514a8bf193ad678 +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Fri Jan 28 19:41:37 2011 -0500 + + config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS + + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + +commit 34e906a430185bd4debc00606321980ac25737db +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Fri Jan 28 16:34:14 2011 -0500 + + config: remove unrequired AC_CONFIG_AUX_DIR + + The default location for the generation of configuation files is the current + package root directory. These files are config.* and friends. + + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + +commit 2f16931c01e667a24210b3a76c50c5d5fe46e314 +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Thu Jan 27 18:50:15 2011 -0500 + + config: remove AC_PROG_CC as it overrides AC_PROG_C_C99 + + XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls + AC_PROG_C_C99. This sets gcc with -std=gnu99. + If AC_PROG_CC macro is called afterwards, it resets CC to gcc. + + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + commit 1cb91aaf819ae3c9385c130e4fa0146057c4c89b Author: Alan Coopersmith <alan.coopersm...@oracle.com> Date: Thu Oct 28 16:21:39 2010 -0700 diff --git a/debian/changelog b/debian/changelog index 8e989f0..878dea8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,11 @@ -libxres (2:1.0.5-2) UNRELEASED; urgency=low +libxres (2:1.0.6-1) UNRELEASED; urgency=low * Remove Andres, David and Brice from Uploaders. * Drop Depends and Pre-Depends on x11-common. * Don't require (fake)root for debian/rules clean. + * New upstream release. - -- Julien Cristau <jcris...@debian.org> Thu, 28 Apr 2011 14:27:18 +0200 + -- Julien Cristau <jcris...@debian.org> Sat, 21 Apr 2012 13:27:09 +0200 libxres (2:1.0.5-1) unstable; urgency=low commit 18e94326a895bfed488c374be5258d433e27a4b1 Author: Julien Cristau <jcris...@debian.org> Date: Sat Apr 21 13:23:42 2012 +0200 Don't require (fake)root for debian/rules clean. diff --git a/debian/changelog b/debian/changelog index 7b6a638..8e989f0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ libxres (2:1.0.5-2) UNRELEASED; urgency=low * Remove Andres, David and Brice from Uploaders. * Drop Depends and Pre-Depends on x11-common. + * Don't require (fake)root for debian/rules clean. -- Julien Cristau <jcris...@debian.org> Thu, 28 Apr 2011 14:27:18 +0200 diff --git a/debian/rules b/debian/rules index 8454b4a..7008755 100755 --- a/debian/rules +++ b/debian/rules @@ -50,9 +50,7 @@ build-stamp: configure $(STAMP_DIR)/genscripts clean: xsfclean dh_testdir - dh_testroot rm -f build-stamp - rm -f config.cache config.log config.status rm -f */config.cache */config.log */config.status rm -f conftest* */conftest* @@ -61,8 +59,7 @@ clean: xsfclean rm -f aclocal.m4 compile config.guess config.sub configure rm -f depcomp install-sh ltmain.sh missing mkinstalldirs rm -f src/config.h.in - rm -f $$(find -name Makefile.in) - + find -name Makefile.in -delete dh_clean install: build commit e6e0e02e4bf764fa58798540793bdeb44a60cc7f Author: Alan Coopersmith <alan.coopersm...@oracle.com> Date: Wed Mar 7 20:53:56 2012 -0800 libXres 1.0.6 Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> diff --git a/configure.ac b/configure.ac index 845e91d..bc4e8a6 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,7 @@ AC_PREREQ([2.60]) # digit in the version number to track changes which don't affect the # protocol, so XRes version l.n.m corresponds to protocol version l.n # -AC_INIT([libXres], [1.0.5], +AC_INIT([libXres], [1.0.6], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXres]) AC_CONFIG_SRCDIR([Makefile.am]) AC_CONFIG_HEADERS([config.h]) commit 96c59e1c7c61d7e42b8da5ddbe9af1a12567fd47 Author: Alan Coopersmith <alan.coopersm...@oracle.com> Date: Thu Nov 10 21:40:51 2011 -0800 Fix gcc -Wwrite-strings warning Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> diff --git a/src/XRes.c b/src/XRes.c index d1ba49c..6091c96 100644 --- a/src/XRes.c +++ b/src/XRes.c @@ -16,7 +16,7 @@ static XExtensionInfo _xres_ext_info_data; static XExtensionInfo *xres_ext_info = &_xres_ext_info_data; -static char *xres_extension_name = XRES_NAME; +static const char *xres_extension_name = XRES_NAME; #define XResCheckExtension(dpy,i,val) \ XextCheckExtension (dpy, i, xres_extension_name, val) commit fb6002c5736eda80a8ae1df46626862ca53a1c25 Author: Alan Coopersmith <alan.coopersm...@oracle.com> Date: Fri Sep 16 22:52:12 2011 -0700 Strip trailing whitespace Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> diff --git a/Makefile.am b/Makefile.am index 061309f..456e398 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ -# +# # Copyright © 2003 Keith Packard, Noah Levitt -# +# # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that @@ -10,7 +10,7 @@ # specific, written prior permission. Keith Packard makes no # representations about the suitability of this software for any purpose. It # is provided "as is" without express or implied warranty. -# +# # KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO # EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR @@ -21,7 +21,7 @@ AUTOMAKE_OPTIONS = foreign -SUBDIRS = src man +SUBDIRS = src man pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = xres.pc diff --git a/man/XRes.man b/man/XRes.man index e62c07b..c35dec4 100644 --- a/man/XRes.man +++ b/man/XRes.man @@ -1,6 +1,6 @@ .\" .\" Copyright (C) 1994-2003 The XFree86 Project, Inc. All Rights Reserved. -.\" +.\" .\" Permission is hereby granted, free of charge, to any person obtaining .\" a copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ .\" distribute, sublicense, and/or sell copies of the Software, and to .\" permit persons to whom the Software is furnished to do so, subject to .\" the following conditions: -.\" +.\" .\" The above copyright notice and this permission notice shall be .\" included in all copies or substantial portions of the Software. -.\" +.\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. @@ -19,12 +19,12 @@ .\" OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. -.\" +.\" .\" Except as contained in this notice, the name of the XFree86 Project .\" shall not be used in advertising or otherwise to promote the sale, use .\" or other dealings in this Software without prior written authorization .\" from the XFree86 Project. -.\" +.\" .TH XRes __libmansuffix__ __vendorversion__ .SH NAME XRes \- X-Resource extension client library @@ -44,19 +44,19 @@ typedef struct { } XResType; .fi .HP -Bool XResQueryExtension(Display *\fIdpy\fP, +Bool XResQueryExtension(Display *\fIdpy\fP, int *\fIevent_base_return\fP, int *\fIerror_base_return\fP\^); .HP Status XResQueryVersion(Display *\fIdpy\fP, int *\fImajor_version_return\fP, int *\fIminor_version_return\fP\^); .HP -Status XResQueryClients(Display *\fIdpy\fP, int *\fInum_clients\fP, +Status XResQueryClients(Display *\fIdpy\fP, int *\fInum_clients\fP, XResClient **\fIclients\fP\^); .HP -Status XResQueryClientResources(Display *\fIdpy\fP, XID \fIxid\fP, +Status XResQueryClientResources(Display *\fIdpy\fP, XID \fIxid\fP, int *\fInum_types\fP, XResType **\fItypes\fP\^); .HP -Status XResQueryClientPixmapBytes(Display *\fIdpy\fP, XID \fIxid\fP, +Status XResQueryClientPixmapBytes(Display *\fIdpy\fP, XID \fIxid\fP, unsigned long *\fIbytes\fP\^); .PP .SH DESCRIPTION @@ -68,10 +68,10 @@ with the X resource database access functions. .B XResQueryExtension returns .B True -if the +if the .I XRes extension is available on the given display. -A client must call +A client must call .B XResQueryExtension before calling any other XRes function in order to negotiate a compatible protocol version; otherwise the client will @@ -81,57 +81,57 @@ get undefined behavior (XRes may or may not work). returns .B True if the request succeeded; the values of the major and minor protocol -versions supported by the server are returned in +versions supported by the server are returned in .I major_version_return -and +and .I minor_version_return . .PP .PP -.B XResQueryClients +.B XResQueryClients fills a list of clients of the given display. For each client it -returns in the +returns in the .I XResClient structure a mask and a base value of the resources used by these -clients. -Returns +clients. +Returns .B True -on success or +on success or .B False -on failure. +on failure. .PP .B XResQueryClientResources -fills a list of +fills a list of XResType structures, indicating for each resource type allocated by the client its -name (as an Atom) and the number of resources of this type allocated. -Returns +name (as an Atom) and the number of resources of this type allocated. +Returns .B True -on success or +on success or .B False -on failure. +on failure. .PP .B XResQueryClientPixmapBytes -gives, for resources of type +gives, for resources of type .I PIXMAP the total number of bytes allocated in the X server by the given -client. -Returns +client. +Returns .B True -on success or +on success or .B False -on failure. +on failure. .SH "ERRORS" .B XResQueryClientResources and .B XResQueryClientPixmapBytes -will return +will return .I BadValue -if passed an illegal client identifier. +if passed an illegal client identifier. .SH "SEE ALSO" X(__miscmansuffix__) .SH AUTHOR -Mark Vojkovich, originally for The XFree86 Project Inc. +Mark Vojkovich, originally for The XFree86 Project Inc. .SH STABILITY This API is considered as experimental. The XRes library major revision may be incremented whenever incompatible changes are done to -the API without notice. Use with care. +the API without notice. Use with care. diff --git a/src/XRes.c b/src/XRes.c index 518ad01..d1ba49c 100644 --- a/src/XRes.c +++ b/src/XRes.c @@ -38,7 +38,7 @@ static XExtensionHooks xres_extension_hooks = { }; static XEXT_GENERATE_FIND_DISPLAY (find_display, xres_ext_info, - xres_extension_name, + xres_extension_name, &xres_extension_hooks, 0, NULL) @@ -186,7 +186,7 @@ Status XResQueryClientResources ( _XEatData(dpy, rep.length << 2); } } - + UnlockDisplay (dpy); SyncHandle (); return result; commit 455c02ee9143b2bfbfd99b6481a1b22a0ce2a2bf Author: Gaetan Nadon <mems...@videotron.ca> Date: Wed Feb 2 11:43:40 2011 -0500 config: comment, minor upgrade, quote and layout configure.ac Group statements per section as per Autoconf standard layout Quote statements where appropriate. Autoconf recommends not using dnl instead of # for comments Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parameters. Add AC_CONFIG_SRCDIR([Makefile.am]) This helps automated maintenance and release activities. Details can be found in http://wiki.x.org/wiki/NewModuleGuidelines diff --git a/configure.ac b/configure.ac index d3ea524..845e91d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,63 +1,62 @@ -dnl -dnl Copyright © 2003 Keith Packard, Noah Levitt -dnl -dnl Permission to use, copy, modify, distribute, and sell this software and its -dnl documentation for any purpose is hereby granted without fee, provided that -dnl the above copyright notice appear in all copies and that both that -dnl copyright notice and this permission notice appear in supporting -dnl documentation, and that the name of Keith Packard not be used in -dnl advertising or publicity pertaining to distribution of the software without -dnl specific, written prior permission. Keith Packard makes no -dnl representations about the suitability of this software for any purpose. It -dnl is provided "as is" without express or implied warranty. -dnl -dnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, -dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO -dnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR -dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, -dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -dnl PERFORMANCE OF THIS SOFTWARE. -dnl -dnl Process this file with autoconf to create configure. - +# +# Copyright © 2003 Keith Packard, Noah Levitt +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of Keith Packard not be used in +# advertising or publicity pertaining to distribution of the software without +# specific, written prior permission. Keith Packard makes no +# representations about the suitability of this software for any purpose. It +# is provided "as is" without express or implied warranty. +# +# KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO +# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR +# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. +# + +# Initialize Autoconf AC_PREREQ([2.60]) - -dnl -dnl Version should match the current XRes version. XResQueryVersion -dnl returns the version from XResproto.h, NOT the version we set here. But we -dnl try to keep these the same. Note that the library has an extra -dnl digit in the version number to track changes which don't affect the -dnl protocol, so XRes version l.n.m corresponds to protocol version l.n -dnl +# +# Version should match the current XRes version. XResQueryVersion +# returns the version from XResproto.h, NOT the version we set here. But we +# try to keep these the same. Note that the library has an extra +# digit in the version number to track changes which don't affect the +# protocol, so XRes version l.n.m corresponds to protocol version l.n +# AC_INIT([libXres], [1.0.5], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXres]) +AC_CONFIG_SRCDIR([Makefile.am]) +AC_CONFIG_HEADERS([config.h]) + +# Initialize Automake AM_INIT_AUTOMAKE([foreign dist-bzip2]) AM_MAINTAINER_MODE +# Initialize libtool +AC_PROG_LIBTOOL + # 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) - -AC_CONFIG_HEADERS(config.h) - -# Check for progs -AC_PROG_LIBTOOL - XORG_DEFAULT_OPTIONS - -# get modules +XORG_CHECK_MALLOC_ZERO # Check xres configuration, strip extra digits from package version to # find the required protocol version RES_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] -PKG_CHECK_MODULES(XRES, x11 xext xextproto [resourceproto >= $RES_VERSION]) -XORG_CHECK_MALLOC_ZERO - -AC_OUTPUT([Makefile - src/Makefile - man/Makefile - xres.pc]) +# Obtain compiler/linker options for depedencies +PKG_CHECK_MODULES(XRES, x11 xext xextproto [resourceproto >= $RES_VERSION]) +AC_CONFIG_FILES([Makefile + src/Makefile + man/Makefile + xres.pc]) +AC_OUTPUT commit ecb0cb424a93e7de7671353d9514a8bf193ad678 Author: Gaetan Nadon <mems...@videotron.ca> Date: Fri Jan 28 19:41:37 2011 -0500 config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS Signed-off-by: Gaetan Nadon <mems...@videotron.ca> diff --git a/configure.ac b/configure.ac index 47b4e7c..d3ea524 100644 --- a/configure.ac +++ b/configure.ac @@ -40,7 +40,7 @@ m4_ifndef([XORG_MACROS_VERSION], [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) XORG_MACROS_VERSION(1.8) -AM_CONFIG_HEADER(config.h) +AC_CONFIG_HEADERS(config.h) # Check for progs AC_PROG_LIBTOOL commit 34e906a430185bd4debc00606321980ac25737db Author: Gaetan Nadon <mems...@videotron.ca> Date: Fri Jan 28 16:34:14 2011 -0500 config: remove unrequired AC_CONFIG_AUX_DIR The default location for the generation of configuation files is the current package root directory. These files are config.* and friends. Signed-off-by: Gaetan Nadon <mems...@videotron.ca> diff --git a/configure.ac b/configure.ac index 37ecb28..47b4e7c 100644 --- a/configure.ac +++ b/configure.ac @@ -32,7 +32,6 @@ dnl protocol, so XRes version l.n.m corresponds to protocol version l.n dnl AC_INIT([libXres], [1.0.5], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXres]) -AC_CONFIG_AUX_DIR(.) AM_INIT_AUTOMAKE([foreign dist-bzip2]) AM_MAINTAINER_MODE commit 2f16931c01e667a24210b3a76c50c5d5fe46e314 Author: Gaetan Nadon <mems...@videotron.ca> Date: Thu Jan 27 18:50:15 2011 -0500 config: remove AC_PROG_CC as it overrides AC_PROG_C_C99 XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls AC_PROG_C_C99. This sets gcc with -std=gnu99. If AC_PROG_CC macro is called afterwards, it resets CC to gcc. Signed-off-by: Gaetan Nadon <mems...@videotron.ca> diff --git a/configure.ac b/configure.ac index 3794b23..37ecb28 100644 --- a/configure.ac +++ b/configure.ac @@ -44,7 +44,6 @@ XORG_MACROS_VERSION(1.8) AM_CONFIG_HEADER(config.h) # Check for progs -AC_PROG_CC AC_PROG_LIBTOOL XORG_DEFAULT_OPTIONS -- To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/e1slzfq-0007vs...@vasks.debian.org