Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=cbbccb4f2c0bcc1a44c9472cd76043e1c218dc2a
commit cbbccb4f2c0bcc1a44c9472cd76043e1c218dc2a Author: crazy <[email protected]> Date: Fri Dec 4 17:37:22 2015 +0100 include/util.sh * fix Fconfoptstryset * we used to grep for --$1= in configure but this won't allow us * to use Fconfoptstryset with some normal --enable/--disable-foo * even they support =yes/no/etc. * just grep for --$1 diff --git a/source/include/util.sh b/source/include/util.sh index 4a71750..b4f2470 100644 --- a/source/include/util.sh +++ b/source/include/util.sh @@ -799,12 +799,13 @@ Fbuildsystem_make() { # $confopts. Parameters: 1) Name of the option 2) Value of the option. ### Fconfoptstryset() { + if [ -z "$2" ]; then return 0 fi # check if $_F_conf_configure supports it - if ! grep -q -- "--$1=" $_F_conf_configure; then + if ! grep -q -- "--$1" $_F_conf_configure; then return 1 fi @@ -817,6 +818,7 @@ Fconfoptstryset() { Fconfopts+=" --$1=$2" fi return 0 + } Fbuildsystem_configure() { _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
