diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | configure.ac | 2 |
3 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2019-12-22 Jannick <thirdedition@gmx.net> + + * configure.ac: Hardcode the shared object extension to dll + on Windows platforms, i.e.whenever EXEEXT is '.exe'. + 2019-12-22 Arnold D. Robbins <arnold@skeeve.com> * gettext.h: Update from gettext 0.20.1. @@ -11057,11 +11057,17 @@ ac_config_headers="$ac_config_headers config.h:configh.in" +if test "x$EXEEXT" = x.exe; then : + GAWKLIBEXT=dll +else + case $acl_shlibext in dylib) GAWKLIBEXT=so ;; # MacOS uses .dylib for shared libraries, but libtool uses .so for modules *) GAWKLIBEXT=$acl_shlibext ;; esac +fi + ac_config_files="$ac_config_files Makefile support/Makefile awklib/Makefile doc/Makefile extras/Makefile po/Makefile.in test/Makefile" diff --git a/configure.ac b/configure.ac index f353cea3..af3432cb 100644 --- a/configure.ac +++ b/configure.ac @@ -458,10 +458,12 @@ AH_BOTTOM([#include "custom.h"]) dnl Crude but small hack to make plug-ins work on Mac OS X dnl We should really use the libtool value for shrext_cmds, but that dnl is not available here, since we do not use libtool at the top level. +AS_VAR_IF([EXEEXT],[.exe],[GAWKLIBEXT=dll],[ case $acl_shlibext in dylib) GAWKLIBEXT=so ;; # MacOS uses .dylib for shared libraries, but libtool uses .so for modules *) GAWKLIBEXT=$acl_shlibext ;; esac +]) AC_SUBST(GAWKLIBEXT) AC_CONFIG_FILES(Makefile |