bpo-21536: Fix configure.ac for LIBPYTHON on Android/Cygwin (GH-13552) · python/cpython@b1fc417

Original file line numberDiff line numberDiff line change

@@ -3292,6 +3292,8 @@ then

32923292

'') MACHDEP="unknown";;

32933293

esac

32943294

fi

3295+

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5

3296+

$as_echo "\"$MACHDEP\"" >&6; }

32953297
32963298
32973299

if test "$cross_compiling" = yes; then

@@ -15131,10 +15133,10 @@ $as_echo "$LDVERSION" >&6; }

1513115133
1513215134

# On Android and Cygwin the shared libraries must be linked with libpython.

1513315135
15134-

if test -z "$ANDROID_API_LEVEL" -o "$MACHDEP" != "cygwin"; then

15135-

LIBPYTHON=''

15136-

else

15136+

if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then

1513715137

LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"

15138+

else

15139+

LIBPYTHON=''

1513815140

fi

1513915141
1514015142