X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fconfigure;h=6879efc4008aeaa87bbdc3c644eedd31e4c994e6;hb=980bd5cb1c17023459f0330397b817e18b9cb0c3;hp=14031a8b1b58a561beb415a20b06729c85309e18;hpb=a2b4b63a98cff9bbf979f446d0351d8978365518;p=melted diff --git a/src/modules/configure b/src/modules/configure index 14031a8..6879efc 100755 --- a/src/modules/configure +++ b/src/modules/configure @@ -7,7 +7,7 @@ echo SUBDIRS = `find -type d -maxdepth 1 | grep -v CVS | grep -v "^.$" | sed 's/\.\///'` > make.inc # Iterate through arguments -for i in $* +for i in "$@" do case $i in --disable-* ) touch disable-${i#--disable-} ;; @@ -19,11 +19,17 @@ for i in * do if [ -x $i/configure -a \( "$help" = "1" -o ! -f disable-$i \) ] then - echo "Configuring modules/$i:" - pushd $i > /dev/null - ./configure $@ - [ $? != 0 ] && exit 1 - popd > /dev/null + if [ "$gpl" = "true" -o ! -f $i/gpl ] + then + [ "$help" = "0" ] && echo "Configuring modules/$i:" + pushd $i > /dev/null + ./configure "$@" + [ $? != 0 ] && exit 1 + popd > /dev/null + elif [ "$help" = "0" ] + then + touch disable-$i + fi fi done