forked from janghe11/nimf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·47 lines (38 loc) · 1.03 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
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
mkdir -p m4
PKGCONFIG=`which pkg-config`
if test -z "$PKGCONFIG"; then
echo "pkg-config not found, please install pkg-config"
exit 1
fi
pkg-config --print-errors glib-2.0
if [ $? != 0 ]; then
echo "You probably need to install libglib2.0-dev or glib2-devel"
exit 1
fi
LIBTOOLIZE=`which libtoolize`
if test -z $LIBTOOLIZE; then
echo "libtoolize not found, please install libtool package"
exit 1
fi
INTLTOOLIZE=`which intltoolize`
if test -z $INTLTOOLIZE; then
echo "intltoolize not found, please install intltool package"
exit 1
else
intltoolize --force --copy --automake || exit $?
fi
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
echo "autoreconf not found, please install autoconf package"
exit 1
else
autoreconf --force --install --verbose || exit $?
fi
cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"