From 3957bb4ebef3e76411d15d0559cdd28aa503a63e Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 20 Jul 2018 15:14:03 -0700 Subject: [PATCH] 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. --- configure.ac | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 19c74590d..f149bf60e 100644 --- a/configure.ac +++ b/configure.ac @@ -4319,10 +4319,9 @@ for option in $OPTION_FLAGS; do fi # allow user to ignore system options - ignoresys=no - if test "$noequalsign = _*" + ignoresys=$(echo "$noequalsign" | grep '^_.*') + if test -n "$ignoresys" then - ignoresys=yes echo "#ifndef WOLFSSL_OPTIONS_IGNORE_SYS" >> $OPTION_FILE fi @@ -4330,7 +4329,7 @@ for option in $OPTION_FLAGS; do echo "#undef $noarg" >> $OPTION_FILE echo "#define $noequalsign" >> $OPTION_FILE - if test "$ignoresys" = "yes" + if test -n "$ignoresys" then echo "#endif" >> $OPTION_FILE fi