From: Enlightenment S. <no-...@en...> - 2008-10-29 08:34:59
|
Log: correctly detect fnmathc in libevil Author: caro Date: 2008-10-29 01:34:52 -0700 (Wed, 29 Oct 2008) New Revision: 37296 Modified: trunk/evas/configure.ac Modified: trunk/evas/configure.ac =================================================================== --- trunk/evas/configure.ac 2008-10-29 08:04:52 UTC (rev 37295) +++ trunk/evas/configure.ac 2008-10-29 08:34:52 UTC (rev 37296) @@ -161,24 +161,21 @@ esac AC_SUBST(dlopen_libs) -AC_CHECK_HEADER(fnmatch.h, , AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file. MinGW users: see the INSTALL file])) +AC_CHECK_HEADER([fnmatch.h], + [dummy="yes"], + [AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file. MinGW users: see the INSTALL file])]) -fnmatch_libs="" -AC_CHECK_FUNCS(fnmatch, res=yes, res=no) +AC_CHECK_FUNCS([fnmatch], [res="yes"], [res="no"]) if test "x$res" = "xno"; then - AC_CHECK_LIB(fnmatch, fnmatch, res=yes fnmatch_libs="-lfnmatch", res=no) - dnl Test for compilation with MinGW. - dnl fnmatch function is in the libiberty library - if test "x$res" = "xno"; then - AC_CHECK_LIB(iberty, fnmatch, res=yes fnmatch_libs="-liberty", res=no) - fi - if test "x$res" = "xno"; then - AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor libiberty]) - fi + AC_SEARCH_LIBS([fnmatch], + [fnmatch iberty evil], + [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 fi -AC_SUBST(fnmatch_libs) - ##################################################################### ## Engines |