~ubuntu-branches/ubuntu/oneiric/irssi/oneiric

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2007-11-02 18:13:28 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071102181328-vg4v2tuqeviu16g9
Tags: 0.8.12-2ubuntu1
* Merge with Debian, remaining Ubuntu changes:
  - Added debian/patches/90irc-ubuntu-com.dpatch (Launchpad #52690).
  - Modify Maintainer value to match the DebianMaintainerField spec.
  - debian/irssi.prerm: Do not alternative. LP: #67698.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        if test -f $srcdir/ChangeLog; then
40
40
                CHANGELOG_VERSION=`head -n 2 $srcdir/ChangeLog| grep '^r' | sed 's/^r\([0-9]*\).*/\1/'`
41
41
        fi
42
 
        if test -z $CHANGELOG_VERSION; then
 
42
        if test -z "$CHANGELOG_VERSION"; then
43
43
                echo "Getting ChangeLog from svn..."
44
44
                TZ=UTC $SVN log -v > $srcdir/ChangeLog
45
45
        else
76
76
echo "Documentation: html -> txt..."
77
77
lynx -dump -nolist docs/faq.html|perl -pe 's/^ *//; if ($_ eq "\n" && $state eq "Q") { $_ = ""; } elsif (/^([QA]):/) { $state = $1 } elsif ($_ ne "\n") { $_ = "   $_"; };' > docs/faq.txt
78
78
 
79
 
echo "Checking auto* tools..."
80
 
 
81
 
# *********** a bit modified GNOME's macros/autogen.sh **********
82
 
DIE=0
83
 
 
84
 
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
85
 
  echo
86
 
  echo "**Error**: You must have \`autoconf' installed to compile $PKG_NAME."
87
 
  echo "Download the appropriate package for your distribution,"
88
 
  echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
89
 
  DIE=1
90
 
}
91
 
 
92
 
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
93
 
  (libtool --version) < /dev/null > /dev/null 2>&1 || {
94
 
    echo
95
 
    echo "**Error**: You must have \`libtool' installed to compile $PKG_NAME."
96
 
    echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
97
 
    echo "(or a newer version if it is available)"
98
 
    DIE=1
99
 
  }
100
 
}
101
 
 
102
 
(automake --version) < /dev/null > /dev/null 2>&1 || {
103
 
  echo
104
 
  echo "**Error**: You must have \`automake' installed to compile $PKG_NAME."
105
 
  echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
106
 
  echo "(or a newer version if it is available)"
107
 
  DIE=1
108
 
  NO_AUTOMAKE=yes
109
 
}
110
 
 
111
 
 
112
 
# if no automake, don't bother testing for aclocal
113
 
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
114
 
  echo
115
 
  echo "**Error**: Missing \`aclocal'.  The version of \`automake'"
116
 
  echo "installed doesn't appear recent enough."
117
 
  echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
118
 
  echo "(or a newer version if it is available)"
119
 
  DIE=1
120
 
}
121
 
 
122
 
if test "$DIE" -eq 1; then
123
 
  exit 1
124
 
fi
125
 
 
126
 
if test -z "$*"; then
 
79
if test x$NOCONFIGURE = x && test -z "$*"; then
127
80
  echo "**Warning**: I am going to run \`configure' with no arguments."
128
81
  echo "If you wish to pass any to it, please specify them on the"
129
82
  echo \`$0\'" command line."
130
83
  echo
131
84
fi
132
85
 
133
 
case $CC in
134
 
xlc )
135
 
  am_opt=--include-deps;;
136
 
esac
137
 
 
138
 
rm -f aclocal.m4 glib.m4 glib-2.0.m4
139
 
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
140
 
  echo "Running libtoolize..."
141
 
  libtoolize --force --copy
142
 
fi
143
 
aclocalinclude="$ACLOCAL_FLAGS -I ."
144
 
echo "Running aclocal $aclocalinclude ..."
145
 
 
146
 
# see if we don't have glib.m4 or glib-2.0.m4 there yet
147
 
error=`aclocal $aclocalinclude 2>&1`
148
 
if test "x`echo $error|grep 'AM_PATH_GLIB[^_]'`" != "x"; then
149
 
  cp glib.m4_ glib.m4
150
 
  error=`aclocal $aclocalinclude 2>&1`
151
 
fi
152
 
if test "x`echo $error|grep AM_PATH_GLIB_2_0`" != "x"; then
153
 
  cp glib-2.0.m4_ glib-2.0.m4
154
 
fi
155
 
 
156
 
aclocal $aclocalinclude
157
 
 
158
 
# aclocal for some reason doesn't complain about glib2, so we still need
159
 
# to check it later again..
160
 
if grep "^AC_DEFUN.AM_PATH_GLIB_2_0" aclocal.m4 >/dev/null; then :;
161
 
else
162
 
  cp glib-2.0.m4_ glib-2.0.m4
163
 
  aclocal $aclocalinclude
164
 
fi
165
 
 
166
 
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
167
 
  echo "Running autoheader..."
168
 
  autoheader
169
 
fi
170
 
echo "Running autoconf ..."
171
 
autoconf
172
 
echo "Running automake --gnu $am_opt ..."
173
 
automake --add-missing --gnu $am_opt
 
86
rm -f aclocal.m4
 
87
echo "Running autoreconf ..."
 
88
autoreconf -i || exit 1
174
89
 
175
90
conf_flags="--enable-maintainer-mode"
176
91