mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
082941edf2
Given that these are already used inconsistently with `test` checks, it makes sense to consolidate to not use the x-prefix comparisons at all. In any case, it would be nice to think we no longer have to work around a problem that existed in shells many, many years ago. More info: https://github.com/koalaman/shellcheck/wiki/SC2268 https://www.vidarholen.net/contents/blog/?p=1035
23 lines
429 B
Bash
Executable File
23 lines
429 B
Bash
Executable File
#!/bin/sh
|
|
|
|
MAKE=make
|
|
if command -v gmake >/dev/null 2>/dev/null; then
|
|
MAKE=gmake
|
|
fi
|
|
$MAKE maintainer-clean >/dev/null 2>/dev/null
|
|
|
|
if [ -x "`which autoreconf 2>/dev/null`" ] ; then
|
|
exec autoreconf -ivf
|
|
fi
|
|
|
|
LIBTOOLIZE=libtoolize
|
|
SYSNAME=`uname`
|
|
if [ "$SYSNAME" = "Darwin" ] ; then
|
|
LIBTOOLIZE=glibtoolize
|
|
fi
|
|
aclocal -I m4 && \
|
|
autoheader && \
|
|
$LIBTOOLIZE && \
|
|
autoconf && \
|
|
automake --add-missing --force-missing --copy
|