Christopher Wiley | e867981 | 2015-07-01 13:36:18 -0700 | [diff] [blame] | 1 | #!/bin/sh |
Narayan Kamath | fc74cb4 | 2017-09-13 12:53:52 +0100 | [diff] [blame] | 2 | |
| 3 | MAKE=make |
| 4 | if command -v gmake >/dev/null 2>/dev/null; then |
| 5 | MAKE=gmake |
| 6 | fi |
| 7 | $MAKE maintainer-clean >/dev/null 2>/dev/null |
| 8 | |
Christopher Wiley | e867981 | 2015-07-01 13:36:18 -0700 | [diff] [blame] | 9 | if [ -x "`which autoreconf 2>/dev/null`" ] ; then |
| 10 | exec autoreconf -ivf |
| 11 | fi |
| 12 | |
| 13 | LIBTOOLIZE=libtoolize |
| 14 | SYSNAME=`uname` |
| 15 | if [ "x$SYSNAME" = "xDarwin" ] ; then |
| 16 | LIBTOOLIZE=glibtoolize |
| 17 | fi |
| 18 | aclocal -I m4 && \ |
| 19 | autoheader && \ |
| 20 | $LIBTOOLIZE && \ |
| 21 | autoconf && \ |
| 22 | automake --add-missing --force-missing --copy |