2003-07-02 23:23:14 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
#
|
|
|
|
|
# autogen.sh glue from CMU Cyrus IMAP
|
|
|
|
|
#
|
|
|
|
|
# Requires: automake, autoconf, dpkg-dev
|
|
|
|
|
# set -e
|
|
|
|
|
|
2003-07-03 11:00:16 -04:00
|
|
|
MAKE=`which gnumake`
|
|
|
|
|
if test ! -x "$MAKE" ; then MAKE=`which gmake` ; fi
|
|
|
|
|
if test ! -x "$MAKE" ; then MAKE=`which make` ; fi
|
|
|
|
|
HAVE_GNU_MAKE=`$MAKE --version|grep -c "Free Software Foundation"`
|
2003-07-02 23:23:14 -04:00
|
|
|
|
|
|
|
|
if test "$HAVE_GNU_MAKE" != "1"; then
|
|
|
|
|
echo Could not find GNU make on this system, can not proceed with build.
|
|
|
|
|
exit 1
|
|
|
|
|
else
|
|
|
|
|
echo Found GNU Make at $MAKE ... good.
|
|
|
|
|
fi
|
|
|
|
|
|
2006-03-21 07:56:59 -05:00
|
|
|
# This bit is to fix SF's compile server as libtool not installed by default
|
|
|
|
|
extra=""
|
|
|
|
|
if test -d $HOME/share/aclocal ; then
|
|
|
|
|
extra="-I $HOME/share/aclocal"
|
|
|
|
|
fi
|
|
|
|
|
|
2010-04-07 21:11:46 -04:00
|
|
|
# This file will be automagically re-generated of present - still looks
|
|
|
|
|
# better than having a versioned file change based on automake version
|
|
|
|
|
touch build-aux/mkinstalldirs
|
|
|
|
|
|
2007-01-24 17:47:25 -05:00
|
|
|
aclocal -I gl/m4 -I m4 $extra
|
2006-06-07 03:18:12 -04:00
|
|
|
#libtoolize --force --copy
|
2003-02-09 13:59:53 -05:00
|
|
|
autoheader
|
2004-11-17 19:27:46 -05:00
|
|
|
automake --add-missing --force-missing --copy
|
2003-07-02 23:23:14 -04:00
|
|
|
autoconf
|
2002-10-17 02:06:44 -04:00
|
|
|
|
2002-10-30 13:22:10 -05:00
|
|
|
if [ -f debian/rules ] ; then
|
|
|
|
|
chmod +x debian/rules
|
|
|
|
|
fi
|
2003-05-13 18:03:48 -04:00
|
|
|
|
2003-06-27 06:30:47 -04:00
|
|
|
# Lots of fiddling as Solaris' which command does give error if which fails
|
|
|
|
|
docbook=0
|
|
|
|
|
if [ `uname -s` = "SunOS" ] ; then
|
|
|
|
|
if [ "`which docbook2html`" = "/"* ] ; then
|
|
|
|
|
docbook=1
|
|
|
|
|
fi
|
|
|
|
|
else
|
2003-09-17 05:25:02 -04:00
|
|
|
if which docbook2html >/dev/null 2>&1; then
|
2003-06-27 06:30:47 -04:00
|
|
|
docbook=1
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ $docbook = 1 ] ; then
|
2008-06-30 10:32:53 -04:00
|
|
|
( cd doc && make )
|
2003-06-27 06:30:47 -04:00
|
|
|
fi
|