]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups-config.in
3 # "$Id: cups-config.in 6649 2007-07-11 21:46:42Z mike $"
5 # CUPS configuration utility.
7 # Copyright 2007 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@"
21 exec_prefix
=@exec_prefix@
23 includedir
=@includedir@
28 sysconfdir
=@sysconfdir@
29 cups_datadir
=@CUPS_DATADIR@
30 cups_serverbin
=@CUPS_SERVERBIN@
31 cups_serverroot
=@CUPS_SERVERROOT@
32 INSTALLSTATIC
=@INSTALLSTATIC@
34 # flags for C++ compiler:
36 LDFLAGS
="@EXPORT_LDFLAGS@"
37 LIBS
="@LIBGSSAPI@ @EXPORT_SSLLIBS@ @EXPORT_LIBZ@ @LIBS@"
38 IMGLIBS
="@EXPORT_LIBTIFF@ @EXPORT_LIBJPEG@ @EXPORT_LIBPNG@"
40 # Check for local invocation...
43 if test -f "$selfdir/cups/cups.h"; then
45 LDFLAGS
="-L$selfdir/cups -L$selfdir/filter $LDFLAGS"
46 libdir
="$selfdir/cups"
47 imagelibdir
="$selfdir/filter"
48 if test ! -f "$selfdir/cups/raster.h"; then
49 ln -s ..
/filter
/raster.h
"$selfdir/cups"
52 if test $includedir != /usr
/include
; then
53 CFLAGS
="$CFLAGS -I$includedir"
56 if test $libdir != /usr
/lib
-a $libdir != /usr
/lib32
-a $libdir != /usr
/lib64
; then
57 LDFLAGS
="$LDFLAGS -L$libdir"
64 echo "Usage: cups-config --api-version"
65 echo " cups-config --cflags"
66 echo " cups-config --datadir"
67 echo " cups-config --help"
68 echo " cups-config --ldflags"
69 echo " cups-config [--image] [--static] --libs"
70 echo " cups-config --serverbin"
71 echo " cups-config --serverroot"
72 echo " cups-config --version"
77 if test $# -eq 0; then
81 # Parse command line options
85 while test $# -gt 0; do
106 if test $static = no
; then
107 if test $image = no
; then
110 echo -lcupsimage -lcups $IMGLIBS $LIBS
113 if test $image = no
; then
114 echo $libdir/libcups.a
$LIBS
116 echo $imagelibdir/libcupsimage.a
$libdir/libcups.a
$IMGLIBS $LIBS
124 echo $cups_serverroot
127 if test -z "$INSTALLSTATIC"; then
128 echo "WARNING: Static libraries not installed!" >&2
145 # End of "$Id: cups-config.in 6649 2007-07-11 21:46:42Z mike $".