Fix the pkg-config filter
[folly.git] / folly / m4 / fb_filter_pkg_libs.m4
index 00353fe79e2448301293824683001e321c369a64..dbc0ced023f3fb8a8898df06476a31b6f8ebf5e7 100644 (file)
@@ -2,7 +2,7 @@ AC_DEFUN([FB_FILTER_PKG_LIBS],
   [AC_REQUIRE([AC_PROG_SED])
    deps_=`for p in $PKG_DEPS; do pkg-config --libs $p; done`
    filter_=`for l in $deps_;dnl
-     do echo $l | $SED -e 's%\(-l.*\)%-e s/\1//%' -e '/^-L/d';dnl
+     do echo $l | $SED -ne 's%\(-l.*\)%-e s/\1//%p';dnl
      done`
    PKG_LIBS=`echo $1 | $SED $filter_`
   ]