Check for GMP.framework on all Darwin platforms, not just PPC

parent ac10f840
...@@ -1081,17 +1081,19 @@ AC_SUBST(LibGmp) ...@@ -1081,17 +1081,19 @@ AC_SUBST(LibGmp)
dnl ** (Mac OS X only: check for GMP.framework) dnl ** (Mac OS X only: check for GMP.framework)
HaveFrameworkGMP=NO HaveFrameworkGMP=NO
if test $HostPlatform = "powerpc-apple-darwin"; then case $HostPlatform in
AC_MSG_CHECKING([for GMP.framework]) *-apple-darwin)
save_libs="$LIBS" AC_MSG_CHECKING([for GMP.framework])
LIBS="-framework GMP" save_libs="$LIBS"
AC_TRY_LINK_FUNC(__gmpz_fdiv_qr, HaveFrameworkGMP=YES,) LIBS="-framework GMP"
if test $HaveFrameworkGMP = YES; then AC_TRY_LINK_FUNC(__gmpz_fdiv_qr, HaveFrameworkGMP=YES,)
AC_DEFINE([HAVE_FRAMEWORK_GMP], [1], [Define to 1 if GMP.framework is installed (Mac OS X only).]) if test $HaveFrameworkGMP = YES; then
fi; AC_DEFINE([HAVE_FRAMEWORK_GMP], [1], [Define to 1 if GMP.framework is installed (Mac OS X only).])
LIBS="$save_libs" fi;
AC_MSG_RESULT([$HaveFrameworkGMP]) LIBS="$save_libs"
fi; AC_MSG_RESULT([$HaveFrameworkGMP])
;;
esac
AC_SUBST(HaveFrameworkGMP) AC_SUBST(HaveFrameworkGMP)
dnl ** check for mingwex library dnl ** check for mingwex library
......
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