33
# ***** W32 build script *******
34
# Used to cross-compile for Windows.
35
if test "$1" = "--build-w32"; then
37
tsdir=`cd "$tmp"; pwd`
39
if [ ! -f $tsdir/config.guess ]; then
40
echo "$tsdir/config.guess not found" >&2
43
build=`$tsdir/config.guess`
45
[ -z "$w32root" ] && w32root="$HOME/w32root"
46
echo "Using $w32root as standard install directory" >&2
48
# Locate the cross compiler
50
for host in i586-mingw32msvc i386-mingw32msvc; do
51
if ${host}-gcc --version >/dev/null 2>&1 ; then
52
crossbindir=/usr/${host}/bin
53
conf_CC="CC=${host}-gcc"
57
if [ -z "$crossbindir" ]; then
58
echo "Cross compiler kit not installed" >&2
59
echo "Under Debian GNU/Linux, you may install it using" >&2
60
echo " apt-get install mingw32 mingw32-runtime mingw32-binutils" >&2
65
if [ -f "$tsdir/config.log" ]; then
66
if ! head $tsdir/config.log | grep "$host" >/dev/null; then
67
echo "Pease run a 'make distclean' first" >&2
72
./configure --enable-maintainer-mode --prefix=${w32root} \
73
--host=${host} --build=${build}
77
# ***** end W32 build script *******
32
80
# Grep the required versions from configure.ac
33
81
autoconf_vers=`sed -n '/^AC_PREREQ(/ {
65
113
GETTEXT=${GETTEXT_PREFIX}${GETTEXT:-gettext}${GETTEXT_SUFFIX}
66
114
MSGMERGE=${GETTEXT_PREFIX}${MSGMERGE:-msgmerge}${GETTEXT_SUFFIX}
71
117
if check_version $AUTOCONF $autoconf_vers_num $autoconf_vers ; then
72
118
check_version $AUTOHEADER $autoconf_vers_num $autoconf_vers autoconf
91
echo "Running aclocal -I m4 ..."
137
echo "Running aclocal -I m4 ${ACLOCAL_FLAGS:+$ACLOCAL_FLAGS }..."
138
$ACLOCAL -I m4 $ACLOCAL_FLAGS
93
139
echo "Running autoheader..."
95
141
echo "Running automake --gnu ..."