Commit ea0c5c53 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Look for config.h output in public header files

parent 311e5e3a
......@@ -444,8 +444,8 @@ check_PROGRAMS = \
test_headers \
$(NULL)
dist_check_SCRIPTS = check_symbols
TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)
dist_check_SCRIPTS = check_symbols check_headers
TESTS = $(check_PROGRAMS) check_symbols
CFLAGS_tests = `$(VLC_CONFIG) --cflags libvlc`
......@@ -478,6 +478,7 @@ check-local:
exit 1; \
fi ; \
done
$(srcdir)/check_headers $(dist_pkginclude_HEADERS) $(pkginclude_HEADERS)
FORCE:
@echo "Generated source cannot be phony. Go away." >&2
......
#! /bin/sh
# Copyright © 2008 Rémi Denis-Courmont
cd "$(dirname "$0")" || exit $?
# Look for configure #defines in public headers.
# There are incorrect, as external users don't have our <config.h>.
regexp="$(cat ../config.h.in | \
sed -n -e 's/^#undef \([A-Z0-9_]*\)$/\1/p' | \
xargs | \
sed -e 's/ /\\\|/g')"
! grep -- "$regexp" "$@"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment