Force libdl if the android plugin is enabled. AC_SEARCH_LIBS thinks it's not required, but on Android 2.0 it is.

This commit is contained in:
Tobias Brunner 2010-02-25 11:03:54 +01:00
parent eba28948a5
commit c711687c00
1 changed files with 4 additions and 0 deletions

View File

@ -573,6 +573,10 @@ fi
if test x$android = xtrue; then
AC_HAVE_LIBRARY([cutils],[LIBS="$LIBS"],[AC_MSG_ERROR([Android library libcutils not found])])
AC_CHECK_HEADER([cutils/properties.h],,[AC_MSG_ERROR([Android header cutils/properties.h not found!])])
dnl we have to force the use of libdl here because the autodetection
dnl above does not work correctly when cross-compiling for android.
DLLIB="-ldl"
AC_SUBST(DLLIB)
fi
if test x$nm = xtrue; then