diff --git a/autogen.sh b/autogen.sh index aa67ab1e..bcfe937a 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,10 @@ #!/bin/sh -make maintainer-clean >/dev/null 2>/dev/null +MAKE=make +if command -v gmake >/dev/null 2>/dev/null; then + MAKE=gmake +fi +$MAKE maintainer-clean >/dev/null 2>/dev/null if [ -x "`which autoreconf 2>/dev/null`" ] ; then exec autoreconf -ivf