fix building on MAC. fixes bug 3835, 'autogen.sh fails with invalid test on line 33'
authorPaul <paul@claws-mail.org>
Fri, 16 Jun 2017 09:05:15 +0000 (10:05 +0100)
committerPaul <paul@claws-mail.org>
Fri, 16 Jun 2017 09:05:15 +0000 (10:05 +0100)
fix by Michael Vilain <michael@vilain.com>

AUTHORS
autogen.sh
src/gtk/authors.h

diff --git a/AUTHORS b/AUTHORS
index f84b2cc..a387e3f 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -312,3 +312,4 @@ contributors (in addition to the above; based on Changelog)
        Darac Marjal
        Ashish Gupta
        Olivier Brunel
+       Michael Vilain
index 093adb3..f2f62c9 100755 (executable)
@@ -12,9 +12,9 @@ if [ "$bisonver" = "" ]; then
 fi
 
 if [ "$LEX" != "" ]; then
-       flexver=`$LEX --version|sed "s/.* //"`
+       flexver=`$LEX --version|awk '{print $2}'`
 else
-       flexver=`flex --version|sed "s/.* //"`
+       flexver=`flex --version|awk '{print $2}'`
 fi
 
 if [ "$flexver" = "" ]; then
@@ -36,8 +36,21 @@ else
        fi
 fi
 
+case `uname` in
+       Darwin*)
+               if [ "`glibtoolize --version`" = "" ]; then
+                       echo MacOS requires glibtool from either Macport or brew
+                       exit 1
+               fi
+               LIBTOOL="glibtoolize --force --copy"
+               ;;
+       *)
+               LIBTOOL="libtoolize --force --copy"
+               ;;
+esac
+
 aclocal -I m4 \
-  && libtoolize --force --copy \
+  && ${LIBTOOL} \
   && autoheader \
   && automake --add-missing --foreign --copy \
   && autoconf 
index f5d958c..7f8c09c 100644 (file)
@@ -294,6 +294,7 @@ static char *CONTRIBS_LIST[] = {
 "Petr Vanek",
 "Jeroen Versteeg",
 "Kevin Vigor",
+"Michael Vilain",
 "Johan Vromans",
 "Botalov Vyacheslav",
 "Radek Vybiral",