Ticket #44540: patch-autogen.sh.diff

File patch-autogen.sh.diff, 1.9 KB (added by Greisby (Greisberger Christophe), 5 years ago)

Patch modified to add support for automake 1.15-1.18

  • autogen.sh

    old new  
    1818        DIE=1
    1919}
    2020
    21 if automake-1.10 --version < /dev/null > /dev/null 2>&1 ; then
     21if automake-1.18 --version < /dev/null > /dev/null 2>&1 ; then
     22    AUTOMAKE=automake-1.18
     23    ACLOCAL=aclocal-1.18
     24elif automake-1.17 --version < /dev/null > /dev/null 2>&1 ; then
     25    AUTOMAKE=automake-1.17
     26    ACLOCAL=aclocal-1.17
     27elif automake-1.16 --version < /dev/null > /dev/null 2>&1 ; then
     28    AUTOMAKE=automake-1.16
     29    ACLOCAL=aclocal-1.16
     30elif automake-1.15 --version < /dev/null > /dev/null 2>&1 ; then
     31    AUTOMAKE=automake-1.15
     32    ACLOCAL=aclocal-1.15
     33elif automake-1.14 --version < /dev/null > /dev/null 2>&1 ; then
     34    AUTOMAKE=automake-1.14
     35    ACLOCAL=aclocal-1.14
     36elif automake-1.13 --version < /dev/null > /dev/null 2>&1 ; then
     37    AUTOMAKE=automake-1.13
     38    ACLOCAL=aclocal-1.13
     39elif automake-1.12 --version < /dev/null > /dev/null 2>&1 ; then
     40    AUTOMAKE=automake-1.12
     41    ACLOCAL=aclocal-1.12
     42elif automake-1.11 --version < /dev/null > /dev/null 2>&1 ; then
     43    AUTOMAKE=automake-1.11
     44    ACLOCAL=aclocal-1.11
     45elif automake-1.10 --version < /dev/null > /dev/null 2>&1 ; then
    2246    AUTOMAKE=automake-1.10
    2347    ACLOCAL=aclocal-1.10
    2448elif automake-1.9 --version < /dev/null > /dev/null 2>&1 ; then
     
    3850        DIE=1
    3951fi
    4052
    41 (libtool --version) < /dev/null > /dev/null 2>&1 || {
     53(glibtool --version) < /dev/null > /dev/null 2>&1 || {
    4254        echo
    4355        echo "You must have libtool installed to compile $PROJECT."
    4456        echo "Get http://ftp.gnu.org/gnu/libtool/libtool-1.5.22.tar.gz"
     
    4961        exit 1
    5062fi
    5163
    52 libtoolize --force --copy
     64glibtoolize --force --copy --quiet
    5365
    5466$ACLOCAL $ACLOCAL_FLAGS
    5567autoheader
    56 $AUTOMAKE --add-missing
     68$AUTOMAKE --add-missing < /dev/null > /dev/null 2>&1
    5769autoconf
    5870cd $THEDIR
    5971
    60 $srcdir/configure --enable-maintainer-mode "$@"
    61 
    62 echo
    63 echo "Now type 'make' to compile $PROJECT"