]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups-config.in
3 # CUPS configuration utility.
5 # Copyright 2007-2016 by Apple Inc.
6 # Copyright 2001-2006 by Easy Software Products, all rights reserved.
8 # These coded instructions, statements, and computer programs are the
9 # property of Apple Inc. and are protected by Federal copyright
10 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
11 # which should have been included with this file. If this file is
12 # file is missing or damaged, see the license at "http://www.cups.org/".
15 VERSION
="@CUPS_VERSION@"
20 exec_prefix
=@exec_prefix@
22 includedir
=@includedir@
27 sysconfdir
=@sysconfdir@
28 cups_datadir
=@CUPS_DATADIR@
29 cups_serverbin
=@CUPS_SERVERBIN@
30 cups_serverroot
=@CUPS_SERVERROOT@
31 INSTALLSTATIC
=@INSTALLSTATIC@
33 # flags for C++ compiler:
35 LDFLAGS
="@EXPORT_LDFLAGS@"
36 LIBS
="@LIBGSSAPI@ @EXPORT_SSLLIBS@ @LIBZ@ @LIBS@"
38 # Check for local invocation...
41 if test -f "$selfdir/cups/cups.h"; then
43 LDFLAGS
="-L$selfdir/cups -L$selfdir/filter $LDFLAGS"
44 libdir
="$selfdir/cups"
45 imagelibdir
="$selfdir/filter"
47 if test $includedir != /usr
/include
; then
48 CFLAGS
="$CFLAGS -I$includedir"
51 if test $libdir != /usr
/lib
-a $libdir != /usr
/lib32
-a $libdir != /usr
/lib64
; then
52 LDFLAGS
="$LDFLAGS -L$libdir"
59 echo "Usage: cups-config --api-version"
60 echo " cups-config --build"
61 echo " cups-config --cflags"
62 echo " cups-config --datadir"
63 echo " cups-config --help"
64 echo " cups-config --ldflags"
65 echo " cups-config [--image] [--static] --libs"
66 echo " cups-config --serverbin"
67 echo " cups-config --serverroot"
68 echo " cups-config --version"
73 if test $# -eq 0; then
77 # Parse command line options
81 while test $# -gt 0; do
105 if test $static = no
; then
106 libs
="@EXTLINKCUPS@ $LIBS";
107 if test $image = yes; then
108 libs
="@EXTLINKCUPSIMAGE@ $libs"
111 libs
="$libdir/libcups.a $LIBS";
112 if test $image = yes; then
113 libs
="$libdir/libcupsimage.a $libs"
122 echo $cups_serverroot
125 if test -z "$INSTALLSTATIC"; then
126 echo "WARNING: Static libraries not installed!" >&2