]> arthur.barton.de Git - netatalk.git/blobdiff - bootstrap
Re-add libevent from git, remove all build files
[netatalk.git] / bootstrap
index 7d0c8330f061c881e625dbdbc31df333a092486c..76b98f3b45993438dce5160bcf203d46c4541953 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -4,12 +4,26 @@ set -x
 
 rm -rf autom4te*.cache
 
+LIBTOOLIZE=libtoolize
+SYSNAME=`uname`
+if [ "x$SYSNAME" = "xDarwin" ] ; then
+  LIBTOOLIZE=glibtoolize
+fi
+
 # build it all.
 aclocal -I macros $ACLOCAL_FLAGS || exit 1
 autoheader || exit 1
-libtoolize --force --copy
+$LIBTOOLIZE --force --copy
 automake --include-deps --add-missing --foreign --copy || exit 1
 autoconf || exit 1
 
+# libevent
+cd libevent
+aclocal -I m4 && \
+       autoheader && \
+       $LIBTOOLIZE --force --copy && \
+       autoconf && \
+       automake --include-deps --add-missing --force-missing --copy || exit 1
+
 # Let's not fall off the end...
 exit 0