Fix 2502818: Noise when refresh an imported image layer.
[synfig.git] / gtkmm-osx / trunk / libpng-1.2.5 / libpng-config
blob04ec9a7bcfc1e3909274e66f99c7d2a4317711ef
1 #! /bin/sh
3 # libpng-config
4 # provides configuration info for libpng.
6 # Copyright (C) 2002 Glenn Randers-Pehrson
7 # For conditions of distribution and use, see copyright notice in png.h
9 # Modeled after libxml-config.
11 version=1.2.5
12 prefix=""
13 libdir=""
14 libs=""
15 I_opts=""
16 L_opts=""
17 R_opts=""
18 cppflags=""
19 ccopts=""
20 ldopts=""
22 prefix="/Users/darco/Projects/GTK/output"
23 I_opts="-I/Users/darco/Projects/GTK/output/include/libpng12"
24 L_opts="-L/Users/darco/Projects/GTK/output/lib"
25 libs="-lpng12 -lz"
27 usage()
29 cat <<EOF
30 Usage: libpng-config [OPTION] ...
32 Known values for OPTION are:
34 --prefix print libpng prefix
35 --libdir print path to directory containing library
36 --libs print library linking information
37 --ccopts print compiler options
38 --cppflags print pre-processor flags
39 --cflags print preprocessor flags, I_opts, and compiler options
40 --I_opts print "-I" include options
41 --L_opts print linker "-L" flags for dynamic linking
42 --R_opts print dynamic linker "-R" or "-rpath" flags
43 --ldopts print linker options
44 --ldflags print linker flags (ldopts, L_opts, R_opts, and libs)
45 --static revise subsequent outputs for static linking
46 --help print this help and exit
47 --version print version information
48 EOF
50 exit $1
53 if test $# -eq 0; then
54 usage 1
57 while test $# -gt 0; do
58 case "$1" in
60 --prefix)
61 echo ${prefix}
64 --version)
65 echo ${version}
66 exit 0
69 --help)
70 usage 0
73 --ccopts)
74 echo ${ccopts}
77 --cppflags)
78 echo ${cppflags}
81 --cflags)
82 echo ${I_opts} ${cppflags} ${ccopts}
85 --libdir)
86 echo ${libdir}
89 --libs)
90 echo ${libs}
93 --I_opts)
94 echo ${I_opts}
97 --L_opts)
98 echo ${L_opts}
101 --R_opts)
102 echo ${R_opts}
105 --ldflags)
106 echo ${ldflags} ${L_opts} ${R_opts} ${libs}
109 --static)
110 R_opts=""
114 usage
115 exit 1
117 esac
118 shift
119 done
121 exit 0