Add missing lib check for fnmatch.

SVN revision: 43328
This commit is contained in:
Christopher Michael 2009-10-28 13:04:09 +00:00
parent f6da7fc383
commit e867666096
1 changed files with 14 additions and 0 deletions

View File

@ -381,6 +381,20 @@ case "$host_os" in
esac
AC_SUBST(dlopen_libs)
fnmatch_libs=""
AC_CHECK_FUNCS([fnmatch], [res="yes"], [res="no"])
if test "x$res" = "xno"; then
AC_SEARCH_LIBS([fnmatch],
[fnmatch evil iberty],
[res="yes"],
[res="no"])
if test "x$res" = "xno"; then
AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor libiberty, nor libevil])
fi
fnmatch_libs="${ac_cv_search_fnmatch}"
fi
AC_SUBST(fnmatch_libs)
### Modules
EINA_CHECK_MODULE([chained-pool], [yes], [chained pool])