forked from GNOME/evolution-data-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautogen.sh
executable file
·43 lines (34 loc) · 964 Bytes
/
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
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
(test -f $srcdir/configure.ac \
&& test -f $srcdir/ChangeLog \
&& test -d $srcdir/calendar) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level evolution-data-server directory"
exit 1
}
olddir=`pwd`
cd $srcdir
check_exists() {
variable=`which $1`
if test -z $variable; then
echo "*** No $1 found, please intall it ***" >&2
exit 1
fi
}
check_exists aclocal
check_exists autoreconf
check_exists gtkdocize
check_exists intltoolize
m4dir=`autoconf --trace 'AC_CONFIG_MACRO_DIR:$1'`
if [ -n "$m4dir" ]; then
mkdir -p $m4dir
fi
aclocal -I m4 || exit $?
gtkdocize --copy || exit $?
intltoolize --force --copy --automake || exit $?
autoreconf --verbose --force --install -Wno-portability || exit $?
cd $olddir
test -n "$NOCONFIGURE" || "$srcdir/configure" --enable-maintainer-mode "$@"