diff --git a/build.sh b/build.sh index e03522fd..34c2799b 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