]> git.ipfire.org Git - thirdparty/util-linux.git/blame - autogen.sh
build-sys: call automake after autoconf
[thirdparty/util-linux.git] / autogen.sh
CommitLineData
8eeb575c
KZ
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
9srcdir=`dirname $0`
10test -z "$srcdir" && srcdir=.
11
12THEDIR=`pwd`
13cd $srcdir
14DIE=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}
82640b11
KZ
47(libtool --version) < /dev/null > /dev/null 2>&1 || {
48 echo
49 echo "You must have libtool installed to generate util-linux build-system."
50 echo "Download the appropriate package for your distribution,"
51 echo "or see http://www.gnu.org/software/libtool"
52 DIE=1
53}
8eeb575c
KZ
54if test "$DIE" -eq 1; then
55 exit 1
56fi
57
58test -f mount/mount.c || {
59 echo "You must run this script in the top-level util-linux-ng directory"
60 exit 1
61}
62
f2c166ff 63set -e
8eeb575c 64autopoint --force
82640b11 65libtoolize --copy --force
8eeb575c 66aclocal -I m4
8eeb575c
KZ
67autoconf
68autoheader
5a230024 69automake --add-missing
8eeb575c
KZ
70
71cd $THEDIR
72
73echo
74echo "Now type './configure' and 'make' to compile."
75echo
76
77