Commit 976e715b authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Only check for libunwind on x86-64.

parent 4e9838fb
......@@ -6322,7 +6322,6 @@ printf "%s\n" "$wine_cv_cc_m32" >&6; }
TARGETFLAGS="$TARGETFLAGS -m32"
PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR:-/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib32/pkgconfig:/usr/lib/pkgconfig}
export PKG_CONFIG_LIBDIR
with_unwind=${with_unwind:-no}
else
CC="$CC -m64"
CXX="$CXX -m64"
......@@ -6419,9 +6418,6 @@ printf "%s\n" "$wine_cv_float_abi" >&6; }
CFLAGS="$CFLAGS -mfloat-abi=$float_abi"
TARGETFLAGS="$TARGETFLAGS -mfloat-abi=$float_abi"
;;
i[3456789]86*)
with_unwind=${with_unwind:-no}
;;
esac
enable_win16=${enable_win16:-i386}
......@@ -17862,8 +17858,10 @@ esac
fi
if test "x$with_unwind" != xno
if test $HOST_ARCH = x86_64
then
if test "x$with_unwind" != xno
then
rm -f conftest.err
if ${UNWIND_CFLAGS:+false} :
then :
......@@ -17965,9 +17963,9 @@ printf "%s\n" "#define HAVE_LIBUNWIND 1" >>confdefs.h
fi
CPPFLAGS=$ac_save_CPPFLAGS
fi
case $host in
aarch64*|*-darwin*)
fi
case $host in
*-darwin*)
if test "x$wine_cv_have_unw_step$wine_cv_have_libunwind_unw_step" = xnono
then :
case "x$with_unwind" in
......@@ -17978,7 +17976,8 @@ This is an error since --with-unwind was requested." "$LINENO" 5 ;;
esac
fi ;;
esac
esac
fi
if test "x$with_sdl" != "xno"
then
......
......@@ -131,7 +131,6 @@ case $host in
TARGETFLAGS="$TARGETFLAGS -m32"
PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR:-/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib32/pkgconfig:/usr/lib/pkgconfig}
export PKG_CONFIG_LIBDIR
with_unwind=${with_unwind:-no}
else
CC="$CC -m64"
CXX="$CXX -m64"
......@@ -177,9 +176,6 @@ case $host in
CFLAGS="$CFLAGS -mfloat-abi=$float_abi"
TARGETFLAGS="$TARGETFLAGS -mfloat-abi=$float_abi"
;;
i[[3456789]]86*)
with_unwind=${with_unwind:-no}
;;
esac
enable_win16=${enable_win16:-i386}
......@@ -1698,8 +1694,10 @@ WINE_NOTICE_WITH(udev,[test "x$UDEV_LIBS" = "x"],
[libudev ${notice_platform}development files not found, plug and play won't be supported.])
dnl **** Check for libunwind ****
if test "x$with_unwind" != xno
if test $HOST_ARCH = x86_64
then
if test "x$with_unwind" != xno
then
WINE_PACKAGE_FLAGS(UNWIND,[libunwind],[-lunwind],,,
[AC_CACHE_CHECK([for unw_step],wine_cv_have_unw_step,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define UNW_LOCAL_ONLY
......@@ -1725,12 +1723,13 @@ then
then
AC_DEFINE(HAVE_LIBUNWIND,1,[Define to 1 if you have the `unwind' library (-lunwind).])
fi])
fi
case $host in
aarch64*|*-darwin*)
fi
case $host in
*-darwin*)
WINE_NOTICE_WITH(unwind,[test "x$wine_cv_have_unw_step$wine_cv_have_libunwind_unw_step" = xnono],
[libunwind ${notice_platform}development files not found, stack unwinding won't work.]) ;;
esac
esac
fi
dnl **** Check for libSDL2 ****
if test "x$with_sdl" != "xno"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment