diff --git a/legacy/eina/eina-0.pc.in b/legacy/eina/eina-0.pc.in index 05f9132c9d..5a4afb6468 100644 --- a/legacy/eina/eina-0.pc.in +++ b/legacy/eina/eina-0.pc.in @@ -8,5 +8,5 @@ Description: A Library that implements fast data types and miscellaneous tools @pkgconfig_requires_private@: @requirement_eina@ Version: @VERSION@ Libs: -L${libdir} -leina -Libs.private: -ldl +Libs.private: @EFL_FNMATCH_LIBS@ -ldl Cflags: -I${includedir}/eina-@VMAJ@ -I${includedir}/eina-@VMAJ@/eina diff --git a/legacy/eina/m4/efl_fnmatch.m4 b/legacy/eina/m4/efl_fnmatch.m4 index 6d609df2d6..a92ac6b636 100644 --- a/legacy/eina/m4/efl_fnmatch.m4 +++ b/legacy/eina/m4/efl_fnmatch.m4 @@ -4,6 +4,7 @@ dnl That code is public domain and can be freely used or copied. dnl Macro that check if fnmatch functions are available or not. dnl Usage: EFL_CHECK_FNMATCH([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +dnl Call AC_SUBST(EFL_FNMATCH_LIBS) AC_DEFUN([EFL_CHECK_FNMATCH], [ @@ -17,6 +18,14 @@ if test "x${_efl_have_fnmatch}" = "xyes" ; then [_efl_have_fnmatch="no"]) fi +EFL_FNMATCH_LIBS="" + +if (! test "x${ac_cv_search_fnmatch}" = "xnone required") && (! test "x${ac_cv_search_fnmatch}" = "xno") && (! test "x${ac_cv_search_fnmatch}" = "x-levil") ; then + EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch} +fi + +AC_SUBST(EFL_FNMATCH_LIBS) + AS_IF([test "x$_efl_have_fnmatch" = "xyes"], [$1], [$2]) ])