X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=engines%2FMakefile;h=a00a911a6d22821dc5cd959f7daa706e5998e9a9;hb=e2f06800bce44a87596534b9f23710becf51771a;hp=846fbdb31e359344917f8d803f0eb0931fb64bb3;hpb=b2ac5cb2d02efe1d12d3da54a9b599aa2ec49698;p=oweals%2Fopenssl.git diff --git a/engines/Makefile b/engines/Makefile index 846fbdb31e..a00a911a6d 100644 --- a/engines/Makefile +++ b/engines/Makefile @@ -107,14 +107,14 @@ install: @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... @if [ -n "$(SHARED_LIBS)" ]; then \ set -e; \ - $(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines; \ + $(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines; \ for l in $(LIBNAMES); do \ ( echo installing $$l; \ pfx=lib; \ - if [ "$(PLATFORM)" != "Cygwin" ]; then \ + if ! expr "$(PLATFORM)" : "Cygwin" >/dev/null; then \ case "$(CFLAGS)" in \ *DSO_BEOS*) sfx=".so";; \ - *DSO_DLFCN*) sfx=".so";; \ + *DSO_DLFCN*) sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;; \ *DSO_DL*) sfx=".sl";; \ *DSO_WIN32*) sfx="eay32.dll"; pfx=;; \ *) sfx=".bad";; \