]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups-config.in
3 # "$Id: cups-config.in 7394 2008-03-21 23:41:43Z mike $"
5 # CUPS configuration utility.
7 # Copyright 2007-2008 by Apple Inc.
8 # Copyright 2001-2006 by Easy Software Products, all rights reserved.
10 # These coded instructions, statements, and computer programs are the
11 # property of Apple Inc. and are protected by Federal copyright
12 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
13 # which should have been included with this file. If this file is
14 # file is missing or damaged, see the license at "http://www.cups.org/".
17 VERSION
="@CUPS_VERSION@"
22 exec_prefix
=@exec_prefix@
24 includedir
=@includedir@
29 sysconfdir
=@sysconfdir@
30 cups_datadir
=@CUPS_DATADIR@
31 cups_serverbin
=@CUPS_SERVERBIN@
32 cups_serverroot
=@CUPS_SERVERROOT@
33 INSTALLSTATIC
=@INSTALLSTATIC@
35 # flags for C++ compiler:
37 LDFLAGS
="@EXPORT_LDFLAGS@"
38 LIBS
="@LIBGSSAPI@ @EXPORT_SSLLIBS@ @EXPORT_LIBZ@ @LIBS@"
39 IMGLIBS
="@EXPORT_LIBTIFF@ @EXPORT_LIBJPEG@ @EXPORT_LIBPNG@"
41 # Check for local invocation...
44 if test -f "$selfdir/cups/cups.h"; then
46 LDFLAGS
="-L$selfdir/cups -L$selfdir/filter $LDFLAGS"
47 libdir
="$selfdir/cups"
48 imagelibdir
="$selfdir/filter"
49 if test ! -f "$selfdir/cups/raster.h"; then
50 ln -s ..
/filter
/raster.h
"$selfdir/cups"
53 if test $includedir != /usr
/include
; then
54 CFLAGS
="$CFLAGS -I$includedir"
57 if test $libdir != /usr
/lib
-a $libdir != /usr
/lib32
-a $libdir != /usr
/lib64
; then
58 LDFLAGS
="$LDFLAGS -L$libdir"
65 echo "Usage: cups-config --api-version"
66 echo " cups-config --build"
67 echo " cups-config --cflags"
68 echo " cups-config --datadir"
69 echo " cups-config --help"
70 echo " cups-config --ldflags"
71 echo " cups-config [--driver] [--image] [--static] --libs"
72 echo " cups-config --serverbin"
73 echo " cups-config --serverroot"
74 echo " cups-config --version"
79 if test $# -eq 0; then
83 # Parse command line options
88 while test $# -gt 0; do
115 if test $static = no
; then
117 if test $image = yes; then
118 libs
="-lcupsimage $libs"
120 if test $driver = yes; then
121 libs
="-lcupsdriver $libs"
124 libs
="$libdir/libcups.a $LIBS";
125 if test $image = yes; then
126 libs
="$libdir/libcupsimage.a $IMGLIBS $libs"
128 if test $driver = yes; then
129 libs
="$libdir/libcupsdriver.a $libs"
138 echo $cups_serverroot
141 if test -z "$INSTALLSTATIC"; then
142 echo "WARNING: Static libraries not installed!" >&2
159 # End of "$Id: cups-config.in 7394 2008-03-21 23:41:43Z mike $".