]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-openslp.m4
25a0985e5f9603f76629523c9e335d3f15663444
[thirdparty/cups.git] / config-scripts / cups-openslp.m4
1 dnl
2 dnl "$Id: cups-openslp.m4,v 1.2 2001/07/24 20:23:03 mike Exp $"
3 dnl
4 dnl OpenSLP configuration stuff for the Common UNIX Printing System (CUPS).
5 dnl
6 dnl Copyright 1997-2001 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-3111 USA
19 dnl
20 dnl Voice: (301) 373-9603
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
33 LIBSLP=""
34
35 if test x$enable_slp != xno; then
36 AC_CHECK_HEADER(slp.h,
37 AC_CHECK_LIB(slp, SLPOpen,
38 AC_DEFINE(HAVE_LIBSLP)
39 LIBSLP="-lslp"))
40 fi
41
42 AC_SUBST(LIBSLP)
43
44
45 dnl
46 dnl End of "$Id: cups-openslp.m4,v 1.2 2001/07/24 20:23:03 mike Exp $".
47 dnl