]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
explained the (hard) way it is done
authorFrancis Dupont <fdupont@isc.org>
Fri, 16 Sep 2016 21:52:02 +0000 (23:52 +0200)
committerFrancis Dupont <fdupont@isc.org>
Fri, 16 Sep 2016 21:52:02 +0000 (23:52 +0200)
configure
configure.ac

index 8f58b1f539c3f27cb265f40b3d18760ecc0de255..a710dd1c40a2e0d9e1be90a6fc8e0e973fd26565 100755 (executable)
--- a/configure
+++ b/configure
@@ -4475,8 +4475,13 @@ BINDCONFIG=
 if test "$cross_compiling" = "yes"; then
        BINDCONFIG="--host=$host"
 fi
+# Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..."
+# and as there can be a space inside an argument some magic is required.
+# This sets $1 ... $N to my_configure_args, arg1 ... argN
 eval "set my_configure_args $ac_configure_args"
+# remove my_configure_args, i.e., the guard against empty $ac_configure_args
 shift
+# iterate on arguments and copying 'arg' when it begins by an upper case
 for a
 do
        case $a in
index ca4608028696c2e84f6132559ab89c6e193d116b..ce8de1beb6b09df935dbd3f001f08f32b35b3229 100644 (file)
@@ -37,8 +37,13 @@ BINDCONFIG=
 if test "$cross_compiling" = "yes"; then
        BINDCONFIG="--host=$host"
 fi
+# Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..."
+# and as there can be a space inside an argument some magic is required.
+# This sets $1 ... $N to my_configure_args, arg1 ... argN
 eval "set my_configure_args $ac_configure_args"
+# remove my_configure_args, i.e., the guard against empty $ac_configure_args
 shift
+# iterate on arguments and copying 'arg' when it begins by an upper case
 for a
 do
        case $a in