2001-04-19 14:21:46 +02:00
|
|
|
#!/bin/sh
|
2014-06-28 01:13:22 +02:00
|
|
|
# Copyright 1999-2014 the Claws Mail team.
|
|
|
|
# This file is part of Claws Mail package, and distributed under the
|
|
|
|
# terms of the General Public License version 3 (or later).
|
2014-06-24 19:37:28 +02:00
|
|
|
# See COPYING file for license details.
|
2001-04-19 14:21:46 +02:00
|
|
|
|
2007-02-20 18:42:49 +01:00
|
|
|
bisonver=`bison --version`
|
|
|
|
|
|
|
|
if [ "$bisonver" = "" ]; then
|
2013-05-02 20:00:17 +02:00
|
|
|
echo Bison is needed to compile Claws Mail git
|
2007-02-20 18:42:49 +01:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2012-10-10 10:04:50 +02:00
|
|
|
if [ "$LEX" != "" ]; then
|
|
|
|
flexver=`$LEX --version|sed "s/.* //"`
|
|
|
|
else
|
|
|
|
flexver=`flex --version|sed "s/.* //"`
|
|
|
|
fi
|
2007-02-20 18:42:49 +01:00
|
|
|
|
|
|
|
if [ "$flexver" = "" ]; then
|
2013-05-02 20:00:17 +02:00
|
|
|
echo Flex 2.5.31 or greater is needed to compile Claws Mail git
|
2007-02-20 18:42:49 +01:00
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
flex_major=`echo $flexver|sed "s/\..*//"`
|
|
|
|
flex_minor=`echo $flexver|sed "s/$flex_major\.\(.*\)\..*/\1/"`
|
|
|
|
flex_micro=`echo $flexver|sed "s/$flex_major\.$flex_minor\.\(.*\)/\1/"`
|
2015-12-01 18:50:29 +01:00
|
|
|
|
|
|
|
flex_numversion=$(expr \
|
|
|
|
$flex_major \* 10000 + \
|
|
|
|
$flex_minor \* 100 + \
|
|
|
|
$flex_micro)
|
|
|
|
|
|
|
|
if [ $flex_numversion -lt 20531 ]; then
|
2013-05-02 20:00:17 +02:00
|
|
|
echo Flex 2.5.31 or greater is needed to compile Claws Mail git
|
2007-02-20 18:42:49 +01:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2005-02-10 13:06:07 +01:00
|
|
|
aclocal -I m4 \
|
2002-12-03 11:28:02 +01:00
|
|
|
&& libtoolize --force --copy \
|
2001-04-19 14:21:46 +02:00
|
|
|
&& autoheader \
|
|
|
|
&& automake --add-missing --foreign --copy \
|
2014-10-27 18:29:02 +01:00
|
|
|
&& autoconf
|
2014-06-22 21:32:57 +02:00
|
|
|
if test -z "$NOCONFIGURE"; then
|
|
|
|
exec ./configure --enable-maintainer-mode $@
|
|
|
|
fi
|