]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-slp.m4
36a00b7f196e3873d8c1bc4a2896f30d1c666c27
[thirdparty/cups.git] / config-scripts / cups-slp.m4
1 dnl
2 dnl "$Id: cups-slp.m4 7241 2008-01-22 22:34:52Z mike $"
3 dnl
4 dnl OpenSLP configuration stuff for the Common UNIX Printing System (CUPS).
5 dnl
6 dnl Copyright 2007-2009 by Apple Inc.
7 dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
8 dnl
9 dnl These coded instructions, statements, and computer programs are the
10 dnl property of Apple Inc. and are protected by Federal copyright
11 dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 dnl which should have been included with this file. If this file is
13 dnl file is missing or damaged, see the license at "http://www.cups.org/".
14 dnl
15
16 AC_ARG_ENABLE(slp, [ --disable-slp disable SLP support])
17 AC_ARG_WITH(openslp-libs, [ --with-openslp-libs set directory for OpenSLP library],
18 LDFLAGS="-L$withval $LDFLAGS"
19 DSOFLAGS="-L$withval $DSOFLAGS",)
20 AC_ARG_WITH(openslp-includes, [ --with-openslp-includes set directory for OpenSLP includes],
21 CFLAGS="-I$withval $CFLAGS"
22 CPPFLAGS="-I$withval $CPPFLAGS",)
23
24 LIBSLP=""
25
26 if test x$enable_slp != xno; then
27 AC_CHECK_HEADER(slp.h,
28 AC_CHECK_LIB(slp, SLPOpen,
29 AC_DEFINE(HAVE_LIBSLP)
30 LIBSLP="-lslp"))
31 fi
32
33 AC_SUBST(LIBSLP)
34
35
36 dnl
37 dnl End of "$Id: cups-slp.m4 7241 2008-01-22 22:34:52Z mike $".
38 dnl