1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

Fail earlier on if shared libs can't be built.

(This used to be commit 2e8766145ad2e8c666ecdc6c39e97ba302b16e04)
This commit is contained in:
Jelmer Vernooij 2008-05-11 15:37:09 +02:00
parent 1f9570c0ba
commit 5d02514f72

View File

@ -151,36 +151,12 @@ if test $BLDSHARED = true; then
ac_cv_shmod_works=yes
rm -f shlib.${SHLIBEXT} shlib.o
])
if test $ac_cv_shlib_works = no -o $ac_cv_shmod_works = no; then
BLDSHARED=false
if test $ac_cv_shlib_works = no; then
AC_MSG_ERROR(unable to build shared libraries)
fi
if test $ac_cv_shmod_works = no; then
AC_MSG_ERROR(unable to build shared modules)
fi
fi
if test $BLDSHARED != true; then
SHLD="shared-libraries-disabled"
SHLD_FLAGS="shared-libraries-disabled"
MDLD="shared-modules-disabled"
MDLD_FLAGS="shared-modules-disabled"
SHLIBEXT="shared_libraries_disabled"
SONAMEFLAG="shared-libraries-disabled"
PICFLAG=""
AC_MSG_CHECKING([SHLD])
AC_MSG_RESULT([$SHLD])
AC_MSG_CHECKING([SHLD_FLAGS])
AC_MSG_RESULT([$SHLD_FLAGS])
AC_MSG_CHECKING([MDLD])
AC_MSG_RESULT([$MDLD])
AC_MSG_CHECKING([MDLD_FLAGS])
AC_MSG_RESULT([$MDLD_FLAGS])
AC_MSG_CHECKING([SHLIBEXT])
AC_MSG_RESULT([$SHLIBEXT])
AC_MSG_CHECKING([SONAMEFLAG])
AC_MSG_RESULT([$SONAMEFLAG])
AC_MSG_CHECKING([PICFLAG])
AC_MSG_RESULT([$PICFLAG])
fi
AC_DEFINE_UNQUOTED(SHLIBEXT, "$SHLIBEXT", [Shared library extension])