]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups-config.in
81a982b4743386e0e5f3471267beddf83654ff58
3 # "$Id: cups-config.in 5799 2006-08-03 00:54:38Z mike $"
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@
37 sysconfdir
=@sysconfdir@
38 cups_datadir
=@CUPS_DATADIR@
39 cups_serverbin
=@CUPS_SERVERBIN@
40 cups_serverroot
=@CUPS_SERVERROOT@
41 INSTALLSTATIC
=@INSTALLSTATIC@
43 # flags for C++ compiler:
45 LDFLAGS
="@EXPORT_LDFLAGS@"
46 LIBS
="@EXPORT_SSLLIBS@ @EXPORT_LIBZ@ @LIBS@"
47 IMGLIBS
="@EXPORT_LIBTIFF@ @EXPORT_LIBJPEG@ @EXPORT_LIBPNG@"
49 # Check for local invocation...
52 if test -f "$selfdir/cups/cups.h"; then
54 LDFLAGS
="-L$selfdir/cups -L$selfdir/filter $LDFLAGS"
55 libdir
="$selfdir/cups"
56 imagelibdir
="$selfdir/filter"
57 if test ! -f "$selfdir/cups/raster.h"; then
58 ln -s ..
/filter
/raster.h
"$selfdir/cups"
61 if test $includedir != /usr
/include
; then
62 CFLAGS
="$CFLAGS -I$includedir"
65 if test $libdir != /usr
/lib
-a $libdir != /usr
/lib32
-a $libdir != /usr
/lib64
; then
66 LDFLAGS
="$LDFLAGS -L$libdir"
73 echo "Usage: cups-config --api-version"
74 echo " cups-config --cflags"
75 echo " cups-config --datadir"
76 echo " cups-config --help"
77 echo " cups-config --ldflags"
78 echo " cups-config [--image] [--static] --libs"
79 echo " cups-config --serverbin"
80 echo " cups-config --serverroot"
81 echo " cups-config --version"
86 if test $# -eq 0; then
90 # Parse command line options
94 while test $# -gt 0; do
115 if test $static = no
; then
116 if test $image = no
; then
119 echo -lcupsimage -lcups $IMGLIBS $LIBS
122 if test $image = no
; then
123 echo $libdir/libcups.a
$LIBS
125 echo $imagelibdir/libcupsimage.a
$libdir/libcups.a
$IMGLIBS $LIBS
133 echo $cups_serverroot
136 if test -z "$INSTALLSTATIC"; then
137 echo "WARNING: Static libraries not installed!" >&2
154 # End of "$Id: cups-config.in 5799 2006-08-03 00:54:38Z mike $".