summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2015-05-02 13:23:16 -0400
committerPeter Eisentraut <peter_e@gmx.net>2015-05-02 13:23:16 -0400
commit67df9782e94765a281a82a7672d39ebb4bf58828 (patch)
tree063a9460ff18d44449ad24bca740666e60e5a88b /configure
parente30a864963c5f98bafeaf3005f258ff90916da7c (diff)
downloadpostgresql-67df9782e94765a281a82a7672d39ebb4bf58828.tar.gz
Windows also needs an override of the shared libpython detection
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure b/configure
index 17105fa9e9..6691d7382c 100755
--- a/configure
+++ b/configure
@@ -7549,15 +7549,18 @@ fi
# we see if there is a file that is named like a shared library.
if test "$python_enable_shared" != 1; then
- # OS X does supply a .dylib even though Py_ENABLE_SHARED does not
- # get set. The file detection logic below doesn't succeed on
- # older OS X versions, so make it explicit.
if test "$PORTNAME" = darwin; then
+ # OS X does supply a .dylib even though Py_ENABLE_SHARED does
+ # not get set. The file detection logic below doesn't succeed
+ # on older OS X versions, so make it explicit.
+ python_enable_shared=1
+ elif test "$PORTNAME" = win32; then
+ # Windows also needs an explicit override.
python_enable_shared=1
else
# We don't know the platform shared library extension here yet,
# so we try some candidates.
- for dlsuffix in .so .dll .sl; do
+ for dlsuffix in .so .sl; do
if ls "$python_libdir"/libpython*${dlsuffix}* >/dev/null 2>&1; then
python_enable_shared=1
break