]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups-config.in
0f6d5041b61ba3c2cb2cc6f782eab2b1b248c92f
5 # CUPS configuration utility.
7 # Copyright 2001-2006 by Easy Software Products, all rights reserved.
9 # These coded instructions, statements, and computer programs are the
10 # property of Easy Software Products and are protected by Federal
11 # copyright law. Distribution and use rights are outlined in the file
12 # "LICENSE.txt" which should have been included with this file. If this
13 # file is missing or damaged please contact Easy Software Products
16 # Attn: CUPS Licensing Information
17 # Easy Software Products
18 # 44141 Airport View Drive, Suite 204
19 # Hollywood, Maryland 20636 USA
21 # Voice: (301) 373-9600
22 # EMail: cups-info@cups.org
23 # WWW: http://www.cups.org
26 VERSION
="@CUPS_VERSION@"
30 exec_prefix
=@exec_prefix@
32 includedir
=@includedir@
36 sysconfdir
=@sysconfdir@
37 cups_datadir
=@CUPS_DATADIR@
38 cups_serverbin
=@CUPS_SERVERBIN@
39 cups_serverroot
=@CUPS_SERVERROOT@
40 INSTALLSTATIC
=@INSTALLSTATIC@
42 # flags for C++ compiler:
44 LDFLAGS
="@EXPORT_LDFLAGS@"
45 LIBS
="@EXPORT_SSLLIBS@ @LIBS@"
46 IMGLIBS
="@EXPORT_LIBTIFF@ @EXPORT_LIBJPEG@ @EXPORT_LIBPNG@ @EXPORT_LIBZ@"
48 # Check for local invocation...
51 if test -f "$selfdir/cups/cups.h"; then
53 LDFLAGS
="-L$selfdir/cups -L$selfdir/filter $LDFLAGS"
54 libdir
="$selfdir/cups"
55 imagelibdir
="$selfdir/filter"
56 if test ! -f "$selfdir/cups/raster.h"; then
57 ln -s ..
/filter
/raster.h
"$selfdir/cups"
60 if test $includedir != /usr
/include
; then
61 CFLAGS
="$CFLAGS -I$includedir"
64 if test $libdir != /usr
/lib
-a $libdir != /usr
/lib32
-a $libdir != /usr
/lib64
; then
65 LDFLAGS
="$LDFLAGS -L$libdir"
72 echo "Usage: cups-config --api-version"
73 echo " cups-config --cflags"
74 echo " cups-config --datadir"
75 echo " cups-config --help"
76 echo " cups-config --ldflags"
77 echo " cups-config [--image] [--static] --libs"
78 echo " cups-config --serverbin"
79 echo " cups-config --serverroot"
80 echo " cups-config --version"
85 if test $# -eq 0; then
89 # Parse command line options
93 while test $# -gt 0; do
114 if test $static = no
; then
115 if test $image = no
; then
118 echo -lcupsimage $IMGLIBS -lcups $LIBS
121 if test $image = no
; then
122 echo $libdir/libcups.a
$LIBS
124 echo $imagelibdir/libcupsimage.a
$IMGLIBS $libdir/libcups.a
$LIBS
132 echo $cups_serverroot
135 if test -z "$INSTALLSTATIC"; then
136 echo "WARNING: Static libraries not installed!" >&2