X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=autogen.sh;h=09e5a70431092dd7cd78e764884a352b2977c883;hp=09e5ecdcff1f8d8fc44687289db93074b965af65;hb=refs%2Fheads%2FPOKEY;hpb=04db888b1a94a7d63fdf9800cfd722aa9c16cd26 diff --git a/autogen.sh b/autogen.sh index 09e5ecdc..09e5a704 100644 --- a/autogen.sh +++ b/autogen.sh @@ -4,7 +4,12 @@ DIE=0 -srcdir="`pwd`" +if ${MAKE:-gmake} -q -C . autogen.sh 2> /dev/null +then + alias make=${MAKE:-gmake} +fi + +srcdir="`/bin/pwd`" (autoconf --version) < /dev/null > /dev/null 2>&1 || { echo @@ -145,6 +150,7 @@ conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c if test x$NOCONFIGURE = x; then echo Running $srcdir/configure $conf_flags "$@" ... + rm -f config.status config.cache $srcdir/configure $conf_flags "$@" \ && echo Now type \`make\' to compile $PKG_NAME || exit 1 else