Updated Slovak translation
[evolution.git] / autogen.sh
blob1d50ecb87536bfb319183b71eb478ae48ebb1db1
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 (test -f $srcdir/configure.ac \
8 && test -f $srcdir/ChangeLog \
9 && test -d $srcdir/shell) || {
10 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
11 echo " top-level evolution directory"
12 exit 1
15 olddir=`pwd`
16 cd $srcdir
18 check_exists() {
19 variable=`which $1`
21 if test -z $variable; then
22 echo "*** No $1 found, please intall it ***" >&2
23 exit 1
27 check_exists aclocal
28 check_exists autoreconf
29 check_exists gtkdocize
30 check_exists intltoolize
32 m4dir=`autoconf --trace 'AC_CONFIG_MACRO_DIR:$1'`
33 if [ -n "$m4dir" ]; then
34 mkdir -p $m4dir
37 aclocal -I m4 || exit $?
38 gtkdocize --copy || exit $?
39 intltoolize --force --copy --automake || exit $?
40 autoreconf --verbose --force --install -Wno-portability || exit $?
42 cd $olddir
43 test -n "$NOCONFIGURE" || "$srcdir/configure" --enable-maintainer-mode "$@"