Commit 7f3dec63 authored by Niels Möller's avatar Niels Möller

Fixed the enable-shared option.

Rev: src/nettle/configure.ac:1.12
parent 637bd6d8
...@@ -40,7 +40,7 @@ AC_ARG_ENABLE(assembler, ...@@ -40,7 +40,7 @@ AC_ARG_ENABLE(assembler,
[enable_assembler=yes]) [enable_assembler=yes])
AC_ARG_ENABLE(shared, AC_ARG_ENABLE(shared,
AC_HELP_STRING([--enable-shared], [Build a shared library]), AC_HELP_STRING([--enable-shared], [Build a shared library]),,
[enable_shared=no]) [enable_shared=no])
LSH_RPATH_INIT([`echo $with_lib_path | sed 's/:/ /g'` \ LSH_RPATH_INIT([`echo $with_lib_path | sed 's/:/ /g'` \
...@@ -96,15 +96,24 @@ SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)' ...@@ -96,15 +96,24 @@ SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)'
SHLIBFILE='$(SHLIBSONAME).$(MINOR)' SHLIBFILE='$(SHLIBSONAME).$(MINOR)'
SHLIBLINK='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME)' SHLIBLINK='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME)'
echo "enable_shared: $enable_shared"
if test "x$enable_shared" = xyes ; then if test "x$enable_shared" = xyes ; then
SHLIBTARGET='$(SHLIBFORLINK)' SHLIBTARGET='$(SHLIBFORLINK)'
SHLIBINSTALL=install-shared SHLIBINSTALL=install-shared
else
SHLIBTARGET=''
SHLIBINSTALL=''
fi fi
AC_SUBST(SHLIBCFLAGS) AC_SUBST(SHLIBCFLAGS)
AC_SUBST(SHLIBFORLINK)
AC_SUBST(SHLIBSONAME)
AC_SUBST(SHLIBFILE)
AC_SUBST(SHLIBLINK)
AC_SUBST(SHLIBTARGET) AC_SUBST(SHLIBTARGET)
AC_SUBST(SHLIBINSTALL) AC_SUBST(SHLIBINSTALL)
AC_PATH_PROG(M4, m4, m4) AC_PATH_PROG(M4, m4, m4)
# Checks for typedefs, structures, and compiler characteristics. # Checks for typedefs, structures, and compiler characteristics.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment