Add also missing AC_MSG_RESULT for AC_MSG_CHECKING(MACHDEP).
'') MACHDEP="unknown";;
esac
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5
+$as_echo "\"$MACHDEP\"" >&6; }
if test "$cross_compiling" = yes; then
# On Android and Cygwin the shared libraries must be linked with libpython.
-if test -z "$ANDROID_API_LEVEL" -o "$MACHDEP" != "cygwin"; then
- LIBPYTHON=''
-else
+if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then
LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
+else
+ LIBPYTHON=''
fi
'') MACHDEP="unknown";;
esac
fi
+AC_MSG_RESULT("$MACHDEP")
AC_SUBST(_PYTHON_HOST_PLATFORM)
if test "$cross_compiling" = yes; then
# On Android and Cygwin the shared libraries must be linked with libpython.
AC_SUBST(LIBPYTHON)
-if test -z "$ANDROID_API_LEVEL" -o "$MACHDEP" != "cygwin"; then
- LIBPYTHON=''
-else
+if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then
LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
+else
+ LIBPYTHON=''
fi
dnl define LIBPL after ABIFLAGS and LDVERSION is defined.