xref: /freebsd/contrib/ntp/sntp/libevent/autogen.sh (revision a466cc55373fc3cf86837f09da729535b57e69a1)
12b15cb3dSCy Schubert#!/bin/sh
2*a466cc55SCy Schubert
3*a466cc55SCy SchubertMAKE=make
4*a466cc55SCy Schubertif command -v gmake >/dev/null 2>/dev/null; then
5*a466cc55SCy Schubert  MAKE=gmake
6*a466cc55SCy Schubertfi
7*a466cc55SCy Schubert$MAKE maintainer-clean >/dev/null 2>/dev/null
8*a466cc55SCy Schubert
92b15cb3dSCy Schubertif [ -x "`which autoreconf 2>/dev/null`" ] ; then
102b15cb3dSCy Schubert   exec autoreconf -ivf
112b15cb3dSCy Schubertfi
122b15cb3dSCy Schubert
132b15cb3dSCy SchubertLIBTOOLIZE=libtoolize
142b15cb3dSCy SchubertSYSNAME=`uname`
152b15cb3dSCy Schubertif [ "x$SYSNAME" = "xDarwin" ] ; then
162b15cb3dSCy Schubert  LIBTOOLIZE=glibtoolize
172b15cb3dSCy Schubertfi
182b15cb3dSCy Schubertaclocal -I m4 && \
192b15cb3dSCy Schubert	autoheader && \
202b15cb3dSCy Schubert	$LIBTOOLIZE && \
212b15cb3dSCy Schubert	autoconf && \
222b15cb3dSCy Schubert	automake --add-missing --force-missing --copy
23