forked from falsovsky/FiSH-irssi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
regen.sh
executable file
·32 lines (27 loc) · 872 Bytes
/
regen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
OS=$(uname -s)
if [ "$OS" = "OpenBSD" ];
then
echo "OpenBSD detected"
mkdir -p m4
if [[ -z "$AUTOCONF_VERSION" || -z "$AUTOMAKE_VERSION" ]]; then
echo "ERROR:"
echo "You must define the AUTOCONF_VERSION and AUTOMAKE_VERSION environment variables"
echo "Install at least autoconf-2.59p3 and automake-1.9.6p8 and run:"
echo "export AUTOCONF_VERSION=2.59"
echo "export AUTOMAKE_VERSION=1.9"
exit 1
fi
fi
if [ "$OS" = "OpenBSD" -o "$OS" = "FreeBSD" ];
then
echo "Dont forget to add --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib to the configure script"
fi
if [ "$OS" = "NetBSD" ];
then
echo "Dont forget to add --with-gmp-include=/usr/pkg/include --with-gmp-lib=/usr/pkg/lib to the configure script"
fi
aclocal --force
libtoolize --force
autoconf --force
automake -a