Fix shared/static settings when building vs. NaCl library

Make sure the shared lib build is really disabled when compiling vs.
NaCl:

moved settings before libtool initialization
fixed parameter name
This commit is contained in:
Jin^eLD 2014-03-23 01:23:36 +01:00
parent cb1c1d25ec
commit ba4681ef1e

View File

@ -207,6 +207,11 @@ AC_ARG_WITH(libsodium-libs,
]
)
if test "x$WANT_NACL" = "xyes"; then
enable_shared=no
enable_static=yes
fi
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
@ -214,12 +219,6 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
if test "x$WANT_NACL" = "xyes"; then
disable_shared=yes
enable_static=yes
fi
WIN32=no
AC_CANONICAL_HOST
case $host_os in