mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-05 20:28:22 +02:00
Make sure dist is only run --with-internal-glib
Since there's no DIST_CONFIGURE_FLAGS, the best we can do to not require glib's configure to always be run is to error on dist when we haven't configured --with-internal-glib. This is a hack, but I think it's slightly nicer than overriding dist and re-running configure with different options than were specified by the user.
This commit is contained in:
parent
64647b10a9
commit
c34906923f
1 changed files with 9 additions and 0 deletions
|
|
@ -51,4 +51,13 @@ pkg_config_SOURCES= \
|
|||
parse.h \
|
||||
parse.c \
|
||||
main.c
|
||||
|
||||
# Since we can't always have glib in DIST_SUBDIRS, we need to make sure
|
||||
# glib is configured when we want to run dist. Unfortunately, there's no
|
||||
# DIST_CONFIGURE_FLAGS.
|
||||
DISTCHECK_CONFIGURE_FLAGS = --with-installed-popt --with-internal-glib
|
||||
if !INTERNAL_GLIB
|
||||
dist-hook:
|
||||
@echo "error: --with-internal-glib is required to include glib in dist"
|
||||
@exit 1
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue