s3: Use cups-config --libs
authorVolker Lendecke <vl@samba.org>
Mon, 2 Aug 2010 09:03:13 +0000 (11:03 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 2 Aug 2010 09:55:02 +0000 (11:55 +0200)
source3/configure.in

index 4b92cd677e49547b8984710ff7432593fb6faf41..294cd53c577edcf499c9047e9e45aa4dd3756639 100644 (file)
@@ -818,7 +818,7 @@ if test x$enable_cups != xno; then
                ac_save_PRINT_LIBS=$PRINT_LIBS
                CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
                LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
-               PRINT_LIBS="$PRINT_LIBS -lcups"
+               PRINT_LIBS="$PRINT_LIBS `$CUPS_CONFIG --libs`"
                AC_CHECK_HEADERS(cups/cups.h cups/language.h)
                if test x"$ac_cv_header_cups_cups_h" = xyes -a \
                        x"$ac_cv_header_cups_language_h" = xyes; then