VirtualBox

source: vbox/trunk/src/libs/libpng-1.6.45/scripts/libpng-config-body.in@ 107813

Last change on this file since 107813 was 107813, checked in by vboxsync, 4 weeks ago

libpng-1.6.45: Applied and adjusted our libpng changes to 1.6.45. bugref:8515

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1usage()
2{
3 cat <<EOF
4Usage: libpng-config [OPTION] ...
5
6Known values for OPTION are:
7
8 --prefix print libpng prefix
9 --libdir print path to directory containing library
10 --libs print library linking information
11 --ccopts print compiler options
12 --cppflags print pre-processor flags
13 --cflags print preprocessor flags, I_opts, and compiler options
14 --I_opts print "-I" include options
15 --L_opts print linker "-L" flags for dynamic linking
16 --R_opts print dynamic linker "-R" or "-rpath" flags
17 --ldopts print linker options
18 --ldflags print linker flags (ldopts, L_opts, R_opts, and libs)
19 --static revise subsequent outputs for static linking
20 --help print this help and exit
21 --version print version information
22EOF
23
24 exit $1
25}
26
27if test $# -eq 0; then
28 usage 1
29fi
30
31while test $# -gt 0; do
32 case "$1" in
33
34 --prefix)
35 echo ${prefix}
36 ;;
37
38 --version)
39 echo ${version}
40 exit 0
41 ;;
42
43 --help)
44 usage 0
45 ;;
46
47 --ccopts)
48 echo ${ccopts}
49 ;;
50
51 --cppflags)
52 echo ${cppflags}
53 ;;
54
55 --cflags)
56 echo ${I_opts} ${cppflags} ${ccopts}
57 ;;
58
59 --libdir)
60 echo ${libdir}
61 ;;
62
63 --libs)
64 echo ${libs}
65 ;;
66
67 --I_opts)
68 echo ${I_opts}
69 ;;
70
71 --L_opts)
72 echo ${L_opts}
73 ;;
74
75 --R_opts)
76 echo ${R_opts}
77 ;;
78
79 --ldflags)
80 echo ${ldflags} ${L_opts} ${R_opts} ${libs}
81 ;;
82
83 --static)
84 R_opts=""
85 ;;
86
87 *)
88 usage
89 exit 1
90 ;;
91 esac
92 shift
93done
94
95exit 0
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette