[lasem] Use glibtoolize for compilation on OS X



commit 8781f67bacc1e1ccb0cde5b57ff1c234bc5aa9f2
Author: Garen Torikian <gjtorikian gmail com>
Date:   Tue May 26 21:42:43 2015 -0700

    Use glibtoolize for compilation on OS X
    
    libtoolize is non-existant for OS X. `glibtoolize` is widely used on OS X because bundled libtool is not 
GNU version and may cause fails for some Linux-specific software.

 autogen.sh |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 84ab592..e5f98ea 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -47,7 +47,7 @@ fi
 
 (grep "^IT_PROG_INTLTOOL" $srcdir/configure.ac >/dev/null) && {
   (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
-    echo 
+    echo
     echo "**Error**: You must have \`intltool' installed."
     echo "You can get it from:"
     echo "  ftp://ftp.gnome.org/pub/GNOME/";
@@ -119,7 +119,7 @@ xlc )
 esac
 
 for coin in `find $srcdir -path $srcdir/CVS -prune -o -name configure.ac -print`
-do 
+do
   dr=`dirname $coin`
   if test -f $dr/NO-AUTO-GEN; then
     echo skipping $dr -- flagged as no auto-gen
@@ -146,9 +146,13 @@ do
        xml-i18n-toolize --copy --force --automake
       fi
       if grep "^LT_INIT" configure.ac >/dev/null; then
-       if test -z "$NO_LIBTOOLIZE" ; then 
-         echo "Running libtoolize..."
-         libtoolize --force --copy
+       if test -z "$NO_LIBTOOLIZE" ; then
+    echo "Running libtoolize..."
+    if ["`uname`" = "Darwin"]; then
+     glibtoolize --force --copy
+    else
+     libtoolize --force --copy
+    fi
        fi
       fi
       echo "Running aclocal $aclocalinclude ..."


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]