2 dnl "$Id: cups-slp.m4 5466 2006-04-26 19:52:27Z mike $"
4 dnl OpenSLP configuration stuff for the Common UNIX Printing System (CUPS).
6 dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
8 dnl These coded instructions, statements, and computer programs are the
9 dnl property of Easy Software Products and are protected by Federal
10 dnl copyright law. Distribution and use rights are outlined in the file
11 dnl "LICENSE.txt" which should have been included with this file. If this
12 dnl file is missing or damaged please contact Easy Software Products
15 dnl Attn: CUPS Licensing Information
16 dnl Easy Software Products
17 dnl 44141 Airport View Drive, Suite 204
18 dnl Hollywood, Maryland 20636 USA
20 dnl Voice: (301) 373-9600
21 dnl EMail: cups-info@cups.org
22 dnl WWW: http://www.cups.org
25 AC_ARG_ENABLE(slp, [ --enable-slp turn on SLP support, default=yes])
26 AC_ARG_WITH(openslp-libs, [ --with-openslp-libs set directory for OpenSLP library],
27 LDFLAGS="-L$withval $LDFLAGS"
28 DSOFLAGS="-L$withval $DSOFLAGS",)
29 AC_ARG_WITH(openslp-includes, [ --with-openslp-includes set directory for OpenSLP includes],
30 CFLAGS="-I$withval $CFLAGS"
31 CXXFLAGS="-I$withval $CXXFLAGS"
32 CPPFLAGS="-I$withval $CPPFLAGS",)
36 if test x$enable_slp != xno; then
37 AC_CHECK_HEADER(slp.h,
38 AC_CHECK_LIB(slp, SLPOpen,
39 AC_DEFINE(HAVE_LIBSLP)
47 dnl End of "$Id: cups-slp.m4 5466 2006-04-26 19:52:27Z mike $".