X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=autogen.sh;h=1209bd8e0045d7fb70f7eabdef1df0911dc9040d;hp=09e5ecdcff1f8d8fc44687289db93074b965af65;hb=912e7e968f4888d62b3c620893a70e825599973b;hpb=04db888b1a94a7d63fdf9800cfd722aa9c16cd26 diff --git a/autogen.sh b/autogen.sh index 09e5ecdc..1209bd8e 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 @@ -109,8 +114,8 @@ do else echo "Creating $dr/aclocal.m4 ..." test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 - echo "Running gettextize... Ignore non-fatal messages." - echo "no" | gettextize --force --copy + echo "Running autopoint..." + autopoint --force echo "Making $dr/aclocal.m4 writable ..." test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 fi @@ -118,8 +123,8 @@ do if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then echo "Creating $dr/aclocal.m4 ..." test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 - echo "Running gettextize... Ignore non-fatal messages." - echo "no" | gettextize --force --copy + echo "Running autopoint..." + autopoint --force echo "Making $dr/aclocal.m4 writable ..." test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 fi