again a few changes to make it work with mingw environment.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@573 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
smorlat 2009-08-17 10:40:03 +00:00
parent 8b96905599
commit 0deb9d5e96
2 changed files with 14 additions and 8 deletions

View file

@ -56,12 +56,14 @@ AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
dnl if test "$mingw_found" = "yes" ; then
dnl AC_MSG_NOTICE([Hacking libtool to work with mingw...])
dnl sed -e 's/\*\" \$a_deplib \"\*/\*/' < ./libtool > libtool.tmp
dnl cp -f ./libtool.tmp ./libtool
dnl rm -f ./libtool.tmp
dnl fi
AC_CONFIG_COMMANDS([libtool-hacking],[
if test "$mingw_found" = "yes" ; then
echo "Hacking libtool to work with mingw..."
sed -e 's/\*\" \$a_deplib \"\*/\*/' < ./libtool > libtool.tmp
cp -f ./libtool.tmp ./libtool
rm -f ./libtool.tmp
fi
],[mingw_found=$mingw_found])
dnl Add the languages which your application supports here.
PKG_PROG_PKG_CONFIG
@ -75,7 +77,7 @@ AM_GNU_GETTEXT([external])
else
AC_DEFINE(ENABLE_NLS,1,[Tells whether localisation is possible])
AC_DEFINE(HAVE_GETTEXT,1,[Tells wheter localisation is possible])
LIBS="$LIBS -L/usr/local/lib -lintl"
LIBS="$LIBS -L/usr/lib -lintl"
fi
GETTEXT_PACKAGE=linphone

View file

@ -149,12 +149,16 @@ esac
AM_CONDITIONAL(BUILD_MACOSX, test x$macosx_found = xyes)
AC_CONFIG_COMMANDS([libtool-hacking],[
if test "$mingw_found" = "yes" ; then
AC_MSG_NOTICE([Hacking libtool to work with mingw...])
echo "Hacking libtool to work with mingw..."
sed -e 's/\*\" \$a_deplib \"\*/\*/' < ./libtool > libtool.tmp
cp -f ./libtool.tmp ./libtool
rm -f ./libtool.tmp
else
echo "No need to hack libtool."
fi
], [mingw_found=$mingw_found])
dnl prefer fixed point computations