]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/libpng-config.in
Fixed player dialog listbox size and app icon on wxGTK
[wxWidgets.git] / src / png / scripts / libpng-config.in
CommitLineData
0272a10d
VZ
1#! /bin/sh
2
3# libpng-config
4# provides configuration info for libpng.
5
6# Copyright (C) 2002, 2004, 2006, 2007 Glenn Randers-Pehrson
7# For conditions of distribution and use, see copyright notice in png.h
8
9# Modeled after libxml-config.
10
11version="@PNGLIB_VERSION@"
12prefix="@prefix@"
13exec_prefix="@exec_prefix@"
14libdir="@libdir@"
15includedir="@includedir@/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
16libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
17all_libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ -lz -lm"
18I_opts="-I${includedir}"
19L_opts="-L${libdir}"
20R_opts=""
21cppflags=""
22ccopts="@LIBPNG_NO_MMX@"
23ldopts=""
24
25usage()
26{
27 cat <<EOF
28Usage: $0 [OPTION] ...
29
30Known values for OPTION are:
31
32 --prefix print libpng prefix
33 --libdir print path to directory containing library
34 --libs print library linking information
35 --ccopts print compiler options
36 --cppflags print pre-processor flags
37 --cflags print preprocessor flags, I_opts, and compiler options
38 --I_opts print "-I" include options
39 --L_opts print linker "-L" flags for dynamic linking
40 --R_opts print dynamic linker "-R" or "-rpath" flags
41 --ldopts print linker options
42 --ldflags print linker flags (ldopts, L_opts, R_opts, and libs)
43 --static revise subsequent outputs for static linking
44 --help print this help and exit
45 --version print version information
46EOF
47
48 exit $1
49}
50
51if test $# -eq 0; then
52 usage 1
53fi
54
55while test $# -gt 0; do
56 case "$1" in
57
58 --prefix)
59 echo ${prefix}
60 ;;
61
62 --version)
63 echo ${version}
64 exit 0
65 ;;
66
67 --help)
68 usage 0
69 ;;
70
71 --ccopts)
72 echo ${ccopts}
73 ;;
74
75 --cppflags)
76 echo ${cppflags}
77 ;;
78
79 --cflags)
80 echo ${I_opts} ${cppflags} ${ccopts}
81 ;;
82
83 --libdir)
84 echo ${libdir}
85 ;;
86
87 --libs)
88 echo ${libs}
89 ;;
90
91 --I_opts)
92 echo ${I_opts}
93 ;;
94
95 --L_opts)
96 echo ${L_opts}
97 ;;
98
99 --R_opts)
100 echo ${R_opts}
101 ;;
102
103 --ldopts)
104 echo ${ldopts}
105 ;;
106
107 --ldflags)
108 echo ${ldopts} ${L_opts} ${R_opts} ${libs}
109 ;;
110
111 --static)
112 R_opts=""
113 libs=${all_libs}
114 ;;
115
116 *)
117 usage
118 exit 1
119 ;;
120 esac
121 shift
122done
123
124exit 0