mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-14 17:38:09 +02:00
Allow documented environment variables in autoconf
It might be useful to write something like sdkflags=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=sdkdir xorg-server` in configure.ac macros. Unfortunately, this will be blocked because 'PKG_CONFIG_SYSROOT' is a forbidden m4 pattern. This patch extends the list of allowed pattern by the names of documented pkg-config environment variables.
This commit is contained in:
parent
b02c40bca4
commit
4939bdb9a6
1 changed files with 2 additions and 1 deletions
3
pkg.m4
3
pkg.m4
|
|
@ -26,7 +26,8 @@
|
|||
# ----------------------------------
|
||||
AC_DEFUN([PKG_PROG_PKG_CONFIG],
|
||||
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
||||
m4_pattern_allow([^PKG_CONFIG(_PATH|_LIBDIR)?$])
|
||||
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
|
||||
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
|
||||
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
|
||||
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
|
||||
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue