diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2014-06-17 19:49:31 +0100 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2014-06-17 19:49:31 +0100 |
commit | 063efb330a3f341c2548e2cf1f67f83e49cd6395 (patch) | |
tree | fe93c43561f23f34d9afa7e3463eceaba5759722 /bld/pkg-wrapper | |
parent | 70772c909199ad6701dc25593bc185938fa4cd23 (diff) | |
download | dnsmasq-063efb330a3f341c2548e2cf1f67f83e49cd6395.tar.gz |
Build config: add -DNO_GMP for use with nettle/mini-gmp
Diffstat (limited to 'bld/pkg-wrapper')
-rwxr-xr-x | bld/pkg-wrapper | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bld/pkg-wrapper b/bld/pkg-wrapper index 9f9332d..0ddb678 100755 --- a/bld/pkg-wrapper +++ b/bld/pkg-wrapper @@ -11,9 +11,14 @@ in=`cat` if grep "^\#[[:space:]]*define[[:space:]]*$search" config.h >/dev/null 2>&1 || \ echo $in | grep $search >/dev/null 2>&1; then - +# Nasty, nasty, in --copy, arg 2 is another config to search for, use with NO_GMP if [ $op = "--copy" ]; then - pkg="$*" + if grep "^\#[[:space:]]*define[[:space:]]*$pkg" config.h >/dev/null 2>&1 || \ + echo $in | grep $pkg >/dev/null 2>&1; then + pkg="" + else + pkg="$*" + fi elif grep "^\#[[:space:]]*define[[:space:]]*${search}_STATIC" config.h >/dev/null 2>&1 || \ echo $in | grep ${search}_STATIC >/dev/null 2>&1; then pkg=`$pkg --static $op $*` |