forked from wolfSSL/wolfssl
Configure Fix
1. The check for options that start with an underscore to wrap them with another check was broken. Replaced with a use of grep. The old original version breaks on some shells.
This commit is contained in:
@ -4319,10 +4319,9 @@ for option in $OPTION_FLAGS; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# allow user to ignore system options
|
# allow user to ignore system options
|
||||||
ignoresys=no
|
ignoresys=$(echo "$noequalsign" | grep '^_.*')
|
||||||
if test "$noequalsign = _*"
|
if test -n "$ignoresys"
|
||||||
then
|
then
|
||||||
ignoresys=yes
|
|
||||||
echo "#ifndef WOLFSSL_OPTIONS_IGNORE_SYS" >> $OPTION_FILE
|
echo "#ifndef WOLFSSL_OPTIONS_IGNORE_SYS" >> $OPTION_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -4330,7 +4329,7 @@ for option in $OPTION_FLAGS; do
|
|||||||
echo "#undef $noarg" >> $OPTION_FILE
|
echo "#undef $noarg" >> $OPTION_FILE
|
||||||
echo "#define $noequalsign" >> $OPTION_FILE
|
echo "#define $noequalsign" >> $OPTION_FILE
|
||||||
|
|
||||||
if test "$ignoresys" = "yes"
|
if test -n "$ignoresys"
|
||||||
then
|
then
|
||||||
echo "#endif" >> $OPTION_FILE
|
echo "#endif" >> $OPTION_FILE
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user