]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-slp.m4
Load cups into easysw/current.
[thirdparty/cups.git] / config-scripts / cups-slp.m4
1 dnl
2 dnl "$Id: cups-openslp.m4 4494 2005-02-18 02:18:11Z mike $"
3 dnl
4 dnl OpenSLP configuration stuff for the Common UNIX Printing System (CUPS).
5 dnl
6 dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
7 dnl
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
13 dnl at:
14 dnl
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
19 dnl
20 dnl Voice: (301) 373-9600
21 dnl EMail: cups-info@cups.org
22 dnl WWW: http://www.cups.org
23 dnl
24
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",)
33
34 LIBSLP=""
35
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)
40 LIBSLP="-lslp"))
41 fi
42
43 AC_SUBST(LIBSLP)
44
45
46 dnl
47 dnl End of "$Id: cups-openslp.m4 4494 2005-02-18 02:18:11Z mike $".
48 dnl