Really fix distcheck

distcheck has an annoying feature where it checks that all files install
under $prefix. Unfortunately, this conflicts with the desire to install
headers to the SDK directory. Workaround by passing --with-sdkdir during
distcheck.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Dan Nicholson
2009-02-02 22:35:20 -08:00
committed by Peter Hutterer
parent 095766ebb3
commit 0f0743e3cf
2 changed files with 9 additions and 4 deletions

View File

@@ -20,6 +20,9 @@
AUTOMAKE_OPTIONS = foreign
# Ensure headers are installed below $(prefix) for distcheck
DISTCHECK_CONFIGURE_FLAGS = --with-sdkdir='$${includedir}/xorg'
if BUILD_TEST
test_dir=test
endif

View File

@@ -71,12 +71,14 @@ fi
# Checks for extensions
XORG_DRIVER_CHECK_EXT(XINPUT, inputproto)
# Checks for pkg-config packages
# Checks for pkg-config packages. We need to be able to override sdkdir
# to satisfy silly distcheck requirements.
PKG_CHECK_MODULES(XORG, xorg-server xproto $REQUIRED_MODULES)
XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS"
sdkdir=$(pkg-config --variable=sdkdir xorg-server |
sed -e 's@/usr/include@$(includedir)@')
AC_SUBST(sdkdir)
AC_ARG_WITH([sdkdir], [],
[sdkdir="$withval"],
[sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`])
AC_SUBST([sdkdir])
# Checks for libraries.