configure.ac: Get the needed libs from cups-config (for OpenBSD)

André Hentschel nerv at dawncrow.de
Mon Jun 11 12:23:14 CDT 2012


Inspired by Matias Colli, see bug 17896.
I made sure it doesn't hurt on other OS and send it because it doesn't seem he will do it and it's a oneliner.

---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9688ba7..4f0a149 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1563,7 +1563,7 @@ if test "x$with_cups" != "xno"
 then
     ac_save_CPPFLAGS="$CPPFLAGS"
     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
-    ac_cups_libs=`cups-config --ldflags 2>/dev/null`
+    ac_cups_libs=`cups-config --ldflags --libs 2>/dev/null`
     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
     AC_CHECK_HEADERS(cups/cups.h,
             [WINE_CHECK_SONAME(cups,cupsGetDefault,
-- 
1.7.4.1

-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list