From 8af6b976476b6227381ca747ca29f3b879928900 Mon Sep 17 00:00:00 2001 From: Sam Krew Date: Fri, 5 Feb 2016 18:51:02 +0100 Subject: [PATCH] Add MacOS X build support --- build.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/build.sh b/build.sh index e03522f..34c2799 100755 --- a/build.sh +++ b/build.sh @@ -2,19 +2,17 @@ # if [ -f Makefile ]; then - # - # use existing automake files - # - echo >> /dev/null + # use existing automake files + echo >> /dev/null else - # - # regenerate automake files - # + # regenerate automake files echo "Running autotools..." autoheader \ && aclocal \ - && libtoolize --ltdl --copy --force \ + && case \ + $(uname) in Darwin*) glibtoolize --ltdl --copy --force ;; \ + *) libtoolize --ltdl --copy --force ;; esac \ && automake --add-missing --copy \ && autoconf \ && ./configure