]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups-config.in
3 # CUPS configuration utility.
5 # Copyright © 2007-2019 by Apple Inc.
6 # Copyright © 2001-2006 by Easy Software Products, all rights reserved.
8 # Licensed under Apache License v2.0. See the file "LICENSE" for more
12 VERSION
="@CUPS_VERSION@"
17 exec_prefix
=@exec_prefix@
19 includedir
=@includedir@
23 sysconfdir
=@sysconfdir@
24 cups_datadir
=@CUPS_DATADIR@
25 cups_serverbin
=@CUPS_SERVERBIN@
26 cups_serverroot
=@CUPS_SERVERROOT@
27 INSTALLSTATIC
=@INSTALLSTATIC@
29 # flags for compiler and linker...
31 LDFLAGS
="@EXPORT_LDFLAGS@"
32 LIBS
="@LIBGSSAPI@ @DNSSDLIBS@ @EXPORT_SSLLIBS@ @LIBZ@ @LIBS@"
34 # Check for local invocation...
37 if test -f "$selfdir/cups/cups.h"; then
39 LDFLAGS
="-L$selfdir/cups $LDFLAGS"
40 libdir
="$selfdir/cups"
42 if test $includedir != /usr
/include
; then
43 CFLAGS
="$CFLAGS -I$includedir"
46 if test $libdir != /usr
/lib
-a $libdir != /usr
/lib32
-a $libdir != /usr
/lib64
; then
47 LDFLAGS
="$LDFLAGS -L$libdir"
54 echo "Usage: cups-config --api-version"
55 echo " cups-config --build"
56 echo " cups-config --cflags"
57 echo " cups-config --datadir"
58 echo " cups-config --help"
59 echo " cups-config --ldflags"
60 echo " cups-config [--image] [--static] --libs"
61 echo " cups-config --serverbin"
62 echo " cups-config --serverroot"
63 echo " cups-config --version"
68 if test $# -eq 0; then
72 # Parse command line options
75 while test $# -gt 0; do
99 if test $static = no
; then
100 libs
="@EXTLINKCUPS@";
102 libs
="$libdir/libcups.a $LIBS";
110 echo $cups_serverroot
113 if test -z "$INSTALLSTATIC"; then
114 echo "WARNING: Static libraries not installed." >&2