first experimental MSYS (no cygwin) support

This commit is contained in:
shelarcy
2005-05-13 11:44:36 +00:00
parent df6e070281
commit 7aefa55fde
4 changed files with 26 additions and 9 deletions

View File

@ -12,16 +12,21 @@ AC_PREREQ(2.53)
# Find out what type of system we're running on
AC_CANONICAL_BUILD
# This isn't right for cygwin.
Platform="$build_cpu-$build_vendor-$build_os"
# This isn't right for msys mingw.
PREFIX="$prefix"
if test "$prefix" = "NONE"
then
PREFIX="$ac_default_prefix"
if test "$build_os" = "cygwin"
then
PREFIX="c:/cygwin$ac_default_prefix"
else
PREFIX="$ac_default_prefix"
fi
fi
AC_SUBST(PREFIX)
Platform="$build_cpu-$build_vendor-$build_os"
case $Platform in
powerpc-apple-darwin*)
MACOSX=yes
@ -42,6 +47,14 @@ fi
AC_SUBST(WHOLE_ARCHIVE_FLAG)
AC_SUBST(LEADING_UNDERSCORE)
if test "$build_os" = "mingw32"
then
LEADING_UNDERSCORE=1
SYMS="$SYMS -D__MINGW32__"
fi
AC_SUBST(LEADING_UNDERSCORE)
AC_SUBST(SYMS)
if test "$build_os" = "cygwin"
then
LEADING_UNDERSCORE=1