pkg-config/check/check-whitespace
Tollef Fog Heen 1b1bd80f5f Allow $() through unescaped.
$(foo) is used for make escapes, so allow them through.

Freedesktop #33920
2011-04-13 22:02:51 +02:00

20 lines
487 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
# expect cflags from whitespace
ARGS="--cflags whitespace"
RESULT='-Dlala=misc -I/usr/white\ space/include -I$(top_builddir) -Iinclude\ dir -Iother\ include\ dir'
run_test
# expect libs from whitespace
ARGS="--libs whitespace"
RESULT="-r:foo -L/usr/white\\ space/lib -lfoo\\ bar -lbar\\ baz"
run_test