blob: bcfe937a60ce2c8d306803f060a2629bede2d5a6 [file] [log] [blame]
Christopher Wileye8679812015-07-01 13:36:18 -07001#!/bin/sh
Narayan Kamathfc74cb42017-09-13 12:53:52 +01002
3MAKE=make
4if command -v gmake >/dev/null 2>/dev/null; then
5 MAKE=gmake
6fi
7$MAKE maintainer-clean >/dev/null 2>/dev/null
8
Christopher Wileye8679812015-07-01 13:36:18 -07009if [ -x "`which autoreconf 2>/dev/null`" ] ; then
10 exec autoreconf -ivf
11fi
12
13LIBTOOLIZE=libtoolize
14SYSNAME=`uname`
15if [ "x$SYSNAME" = "xDarwin" ] ; then
16 LIBTOOLIZE=glibtoolize
17fi
18aclocal -I m4 && \
19 autoheader && \
20 $LIBTOOLIZE && \
21 autoconf && \
22 automake --add-missing --force-missing --copy