Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rgaudin/6191273 to your computer and use it in GitHub Desktop.
Save rgaudin/6191273 to your computer and use it in GitHub Desktop.
minor patch to allow autogen to work on OSX (requires glibtoolize instead of libtoolize)
From 768f7cfd8af94dfdad250ef1ecbd0f57b389c360 Mon Sep 17 00:00:00 2001
From: renaud gaudin <rgaudin@gmail.com>
Date: Fri, 9 Aug 2013 13:02:21 +0800
Subject: [PATCH] minor patch to allow autogen to work on OSX (requires
glibtoolize instead of libtoolize)
---
zimlib/autogen.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/zimlib/autogen.sh b/zimlib/autogen.sh
index 94a117e..2df63d7 100755
--- a/zimlib/autogen.sh
+++ b/zimlib/autogen.sh
@@ -1,7 +1,14 @@
#! /bin/sh
# Regenerate the files autoconf / automake
-libtoolize --force --automake
+if [ "`(uname -s) 2>/dev/null`" = "Darwin" ]
+then
+ LIBTOOLIZE=glibtoolize
+else
+ LIBTOOLIZE=libtoolize
+fi
+
+$LIBTOOLIZE libtoolize --force --automake
rm -f config.cache config.log
aclocal -I m4
--
1.8.2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment