1.1.2
by Matthias Klose
Import upstream version 2.13~rc3 |
1 |
#!/bin/sh
|
2 |
||
3 |
#
|
|
4 |
# Helps generate autoconf/automake stuff, when code is checked out from SCM.
|
|
5 |
#
|
|
6 |
# Copyright (C) 2006 - Karel Zak <kzak@redhat.com>
|
|
7 |
#
|
|
8 |
||
9 |
srcdir=`dirname $0` |
|
10 |
test -z "$srcdir" && srcdir=. |
|
11 |
||
12 |
THEDIR=`pwd` |
|
13 |
cd $srcdir |
|
14 |
DIE=0 |
|
15 |
||
16 |
(autopoint --version) < /dev/null > /dev/null 2>&1 || { |
|
17 |
echo
|
|
18 |
echo "You must have autopoint installed to generate util-linux-ng build system.." |
|
19 |
echo "Download the appropriate package for your distribution," |
|
20 |
echo "or see http://www.gnu.org/software/gettext" |
|
21 |
DIE=1 |
|
22 |
}
|
|
23 |
(autoconf --version) < /dev/null > /dev/null 2>&1 || { |
|
24 |
echo
|
|
25 |
echo "You must have autoconf installed to generate util-linux-ng build system." |
|
26 |
echo
|
|
27 |
echo "Download the appropriate package for your distribution," |
|
28 |
echo "or see http://www.gnu.org/software/autoconf" |
|
29 |
DIE=1 |
|
30 |
}
|
|
31 |
(automake --version) < /dev/null > /dev/null 2>&1 || { |
|
32 |
echo
|
|
33 |
echo "You must have automake installed to generate util-linux-ng build system." |
|
34 |
echo
|
|
35 |
echo "Download the appropriate package for your distribution," |
|
36 |
echo "or see http://www.gnu.org/software/automake" |
|
37 |
DIE=1 |
|
38 |
}
|
|
39 |
(autoheader --version) < /dev/null > /dev/null 2>&1 || { |
|
40 |
echo
|
|
41 |
echo "You must have autoheader installed to generate util-linux-ng build system." |
|
42 |
echo
|
|
43 |
echo "Download the appropriate package for your distribution," |
|
44 |
echo "or see http://www.gnu.org/software/autoheader" |
|
45 |
DIE=1 |
|
46 |
}
|
|
47 |
if test "$DIE" -eq 1; then |
|
48 |
exit 1 |
|
49 |
fi
|
|
50 |
||
51 |
test -f mount/mount.c || { |
|
52 |
echo "You must run this script in the top-level util-linux-ng directory" |
|
53 |
exit 1 |
|
54 |
}
|
|
55 |
||
56 |
set -e
|
|
57 |
autopoint --force $AP_OPTS
|
|
58 |
aclocal -I m4 $AL_OPTS
|
|
59 |
autoconf $AC_OPTS
|
|
60 |
autoheader $AH_OPTS
|
|
61 |
automake --add-missing $AM_OPTS
|
|
62 |
||
63 |
cd $THEDIR |
|
64 |
||
65 |
echo
|
|
66 |
echo "Now type '$srcdir/configure' and 'make' to compile." |
|
67 |
echo
|
|
68 |
||
69 |