From 4ed1ed400cef3b042dbbb11d9cf2da19a74ad705 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sun, 17 Sep 2006 13:45:18 +0000 Subject: [PATCH] More cross-compile preparations - goffice needs a cross-compile libtool as well. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14854 57a11ea4-9604-0410-9ed3-97b8803252fd --- packaging/win32/custom.sh | 4 +++- packaging/win32/install.sh | 18 +++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/packaging/win32/custom.sh b/packaging/win32/custom.sh index 7e96865acd..57dde46a0d 100644 --- a/packaging/win32/custom.sh +++ b/packaging/win32/custom.sh @@ -16,14 +16,16 @@ cross_compile=no LD=ld CC=gcc DLLTOOL=dlltool +LIBTOOLIZE=libtoolize # For cross-compiling, uncomment the following lines: # HOST_XCOMPILE="--host=mingw32" # PKG_CONFIG_PATH="" # to avoid using the host's installed packages -# PATH=/opt/mingw32/bin:$PATH +# PATH=/opt/mingw32/bin:/opt/mingw32/mingw32/bin:$PATH # cross_compile=yes # LD=mingw32-ld # CC=mingw32-gcc # DLLTOOL=mingw32-dlltool +# LIBTOOLIZE=$GLOBAL_DIR/autotools/bin/libtoolize #### MSYS_DIR=$GLOBAL_DIR\\msys diff --git a/packaging/win32/install.sh b/packaging/win32/install.sh index f3b2ebf42f..013e2dc3b8 100644 --- a/packaging/win32/install.sh +++ b/packaging/win32/install.sh @@ -583,13 +583,12 @@ function inst_autotools() { setup Autotools _AUTOTOOLS_UDIR=`unix_path $AUTOTOOLS_DIR` add_to_env $_AUTOTOOLS_UDIR/bin PATH - if quiet autoconf --help && quiet automake --help && quiet libtool --help + if quiet autoconf --help && quiet automake --help then - echo "auto tools already installed. skipping." + echo "autoconf/automake already installed. skipping." else wget_unpacked $AUTOCONF_URL $DOWNLOAD_DIR $TMP_DIR wget_unpacked $AUTOMAKE_URL $DOWNLOAD_DIR $TMP_DIR - wget_unpacked $LIBTOOL_URL $DOWNLOAD_DIR $TMP_DIR qpushd $TMP_UDIR/autoconf-* echo "building autoconf..." ./configure --prefix=$_AUTOTOOLS_UDIR @@ -602,6 +601,12 @@ function inst_autotools() { make make install qpopd + fi + if quiet ${LIBTOOLIZE} --help + then + echo "libtool/libtoolize already installed. skipping." + else + wget_unpacked $LIBTOOL_URL $DOWNLOAD_DIR $TMP_DIR qpushd $TMP_UDIR/libtool-* echo "building libtool..." ./configure ${HOST_XCOMPILE} --prefix=$_AUTOTOOLS_UDIR @@ -611,12 +616,10 @@ function inst_autotools() { fi add_to_env -I$_AUTOTOOLS_UDIR/include AUTOTOOLS_CPPFLAGS add_to_env -L$_AUTOTOOLS_UDIR/lib AUTOTOOLS_LDFLAGS - if test x$cross_compile != xyes ; then - add_to_env "-I $_AUTOTOOLS_UDIR/share/aclocal" ACLOCAL_FLAGS - fi + add_to_env "-I $_AUTOTOOLS_UDIR/share/aclocal" ACLOCAL_FLAGS quiet autoconf --help && quiet automake --help && - quiet libtool --help || die "autotools not installed correctly" + quiet ${LIBTOOLIZE} --help || die "autotools not installed correctly" } function inst_libgsf() { @@ -653,6 +656,7 @@ function inst_goffice() { qpushd $TMP_UDIR/goffice-* [ -n "$GOFFICE_PATCH" -a -f "$GOFFICE_PATCH" ] && \ patch -p1 < $GOFFICE_PATCH + ${LIBTOOLIZE} --force aclocal ${ACLOCAL_FLAGS} automake autoconf