]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-slp.m4
Merge changes from CUPS 1.4svn-r7696.
[thirdparty/cups.git] / config-scripts / cups-slp.m4
CommitLineData
ef416fc2 1dnl
75bd9771 2dnl "$Id: cups-slp.m4 7241 2008-01-22 22:34:52Z mike $"
ef416fc2 3dnl
4dnl OpenSLP configuration stuff for the Common UNIX Printing System (CUPS).
5dnl
5bd77a73 6dnl Copyright 2007-2008 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"
ef416fc2 22 CPPFLAGS="-I$withval $CPPFLAGS",)
23
24LIBSLP=""
25
26if 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"))
31fi
32
33AC_SUBST(LIBSLP)
34
35
36dnl
75bd9771 37dnl End of "$Id: cups-slp.m4 7241 2008-01-22 22:34:52Z mike $".
ef416fc2 38dnl