summaryrefslogtreecommitdiff
path: root/bld/pkg-wrapper
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2014-06-17 19:49:31 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2014-06-17 19:49:31 +0100
commit063efb330a3f341c2548e2cf1f67f83e49cd6395 (patch)
treefe93c43561f23f34d9afa7e3463eceaba5759722 /bld/pkg-wrapper
parent70772c909199ad6701dc25593bc185938fa4cd23 (diff)
downloaddnsmasq-063efb330a3f341c2548e2cf1f67f83e49cd6395.tar.gz
Build config: add -DNO_GMP for use with nettle/mini-gmp
Diffstat (limited to 'bld/pkg-wrapper')
-rwxr-xr-xbld/pkg-wrapper9
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 $*`