-
Notifications
You must be signed in to change notification settings - Fork 2
/
autogen.sh
executable file
·34 lines (29 loc) · 1.09 KB
/
autogen.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
33
34
#!/bin/sh
AUTOCONF=autoconf
AUTOHEADER=autoheader
AUTOMAKE=automake
ACLOCAL=aclocal
($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "Error: You must have 'autoconf' installed to compile this program."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf"
exit -1
}
($ACLOCAL --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "Error: Missing 'aclocal'. The version of \`automake'"
echo "installed doesn't appear recent enough."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake"
exit -1
}
($ACLOCAL && $AUTOHEADER && $AUTOMAKE --gnu --add-missing --copy && $AUTOCONF) || {
echo
echo "Error: Automatic generation of the configuration scripts has failed."
echo "Please try to generate them manually. If you believe this faulure"
echo "is the result of a bug in oidentd, please email ryan@numb.org with"
echo "any relevant details."
exit -1
}
echo "The configuration scripts have been generated successfully."