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