mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2025-12-28 16:30:05 +01:00
* check/check-cflags, check/check-define-variable, check/check-includedir, check/check-libs, check/check-libs-private, check/check-requires-private: Replace the crazy -d ~root check with a more proper way to just make sure we are running under a POSIX shell. Thanks to Kjetil Torgrim Homme for the tip about using getconf PATH.
15 lines
284 B
Bash
Executable file
15 lines
284 B
Bash
Executable file
#! /bin/sh
|
|
|
|
# Make sure we're POSIX
|
|
if [ "$PKG_CONFIG_SHELL_IS_POSIX" != "1" ]; then
|
|
PKG_CONFIG_SHELL_IS_POSIX=1 PATH=`getconf PATH` exec sh $0 "$@"
|
|
fi
|
|
|
|
set -e
|
|
|
|
. ${srcdir}/common
|
|
|
|
ARGS="--define-variable=includedir=/includedir/ --cflags simple"
|
|
RESULT="-I/includedir/"
|
|
|
|
run_test
|