]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - autogen.sh
4 # Helps generate autoconf/automake stuff, when code is checked out from SCM.
6 # Copyright (C) 2006-2009 - Karel Zak <kzak@redhat.com>
10 test -z "$srcdir" && srcdir
=.
16 (autopoint
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
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"
23 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
25 echo "You must have autoconf installed to generate util-linux-ng build system."
27 echo "Download the appropriate package for your distribution,"
28 echo "or see http://www.gnu.org/software/autoconf"
32 #(libtool --version) < /dev/null > /dev/null 2>&1 || {
34 # echo "You must have libtool-2 installed to generate util-linux-ng build system."
35 # echo "Download the appropriate package for your distribution,"
36 # echo "or see http://www.gnu.org/software/libtool"
40 (automake
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
42 echo "You must have automake installed to generate util-linux-ng build system."
44 echo "Download the appropriate package for your distribution,"
45 echo "or see http://www.gnu.org/software/automake"
48 (autoheader
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
50 echo "You must have autoheader installed to generate util-linux-ng build system."
52 echo "Download the appropriate package for your distribution,"
53 echo "or see http://www.gnu.org/software/autoheader"
56 if test "$DIE" -eq 1; then
60 test -f mount
/mount.c ||
{
61 echo "You must run this script in the top-level util-linux-ng directory"
65 #ltver=$(libtoolize --version | awk '/^libtoolize/ { print $4 }')
66 #test ${ltver##2.} == "$ltver" && {
67 # echo "You must have libtool version >= 2.x.x, but you have $ltver."
72 echo "Generate build-system by:"
73 echo " autopoint: $(autopoint --version | head -1)"
74 echo " aclocal: $(aclocal --version | head -1)"
75 echo " autoconf: $(autoconf --version | head -1)"
76 echo " autoheader: $(autoheader --version | head -1)"
77 echo " automake: $(automake --version | head -1)"
78 #echo " libtoolize: $(libtoolize --version | head -1)"
82 autopoint
--force $AP_OPTS
83 #libtoolize --force --copy $LT_OPTS
84 aclocal
-I m4 $AL_OPTS
87 automake
--add-missing $AM_OPTS
92 echo "Now type '$srcdir/configure' and 'make' to compile."