xref: /aosp_15_r20/external/libpng/scripts/libpng-config-body.in (revision a67afe4df73cf47866eedc69947994b8ff839aba)
1*a67afe4dSAndroid Build Coastguard Worker
2*a67afe4dSAndroid Build Coastguard Workerusage()
3*a67afe4dSAndroid Build Coastguard Worker{
4*a67afe4dSAndroid Build Coastguard Worker    cat <<EOF
5*a67afe4dSAndroid Build Coastguard WorkerUsage: libpng-config [OPTION] ...
6*a67afe4dSAndroid Build Coastguard Worker
7*a67afe4dSAndroid Build Coastguard WorkerKnown values for OPTION are:
8*a67afe4dSAndroid Build Coastguard Worker
9*a67afe4dSAndroid Build Coastguard Worker  --prefix        print libpng prefix
10*a67afe4dSAndroid Build Coastguard Worker  --libdir        print path to directory containing library
11*a67afe4dSAndroid Build Coastguard Worker  --libs          print library linking information
12*a67afe4dSAndroid Build Coastguard Worker  --ccopts        print compiler options
13*a67afe4dSAndroid Build Coastguard Worker  --cppflags      print pre-processor flags
14*a67afe4dSAndroid Build Coastguard Worker  --cflags        print preprocessor flags, I_opts, and compiler options
15*a67afe4dSAndroid Build Coastguard Worker  --I_opts        print "-I" include options
16*a67afe4dSAndroid Build Coastguard Worker  --L_opts        print linker "-L" flags for dynamic linking
17*a67afe4dSAndroid Build Coastguard Worker  --R_opts        print dynamic linker "-R" or "-rpath" flags
18*a67afe4dSAndroid Build Coastguard Worker  --ldopts        print linker options
19*a67afe4dSAndroid Build Coastguard Worker  --ldflags       print linker flags (ldopts, L_opts, R_opts, and libs)
20*a67afe4dSAndroid Build Coastguard Worker  --static        revise subsequent outputs for static linking
21*a67afe4dSAndroid Build Coastguard Worker  --help          print this help and exit
22*a67afe4dSAndroid Build Coastguard Worker  --version       print version information
23*a67afe4dSAndroid Build Coastguard WorkerEOF
24*a67afe4dSAndroid Build Coastguard Worker
25*a67afe4dSAndroid Build Coastguard Worker    exit $1
26*a67afe4dSAndroid Build Coastguard Worker}
27*a67afe4dSAndroid Build Coastguard Worker
28*a67afe4dSAndroid Build Coastguard Workerif test $# -eq 0; then
29*a67afe4dSAndroid Build Coastguard Worker    usage 1
30*a67afe4dSAndroid Build Coastguard Workerfi
31*a67afe4dSAndroid Build Coastguard Worker
32*a67afe4dSAndroid Build Coastguard Workerwhile test $# -gt 0; do
33*a67afe4dSAndroid Build Coastguard Worker    case "$1" in
34*a67afe4dSAndroid Build Coastguard Worker
35*a67afe4dSAndroid Build Coastguard Worker    --prefix)
36*a67afe4dSAndroid Build Coastguard Worker        echo ${prefix}
37*a67afe4dSAndroid Build Coastguard Worker        ;;
38*a67afe4dSAndroid Build Coastguard Worker
39*a67afe4dSAndroid Build Coastguard Worker    --version)
40*a67afe4dSAndroid Build Coastguard Worker        echo ${version}
41*a67afe4dSAndroid Build Coastguard Worker        exit 0
42*a67afe4dSAndroid Build Coastguard Worker        ;;
43*a67afe4dSAndroid Build Coastguard Worker
44*a67afe4dSAndroid Build Coastguard Worker    --help)
45*a67afe4dSAndroid Build Coastguard Worker        usage 0
46*a67afe4dSAndroid Build Coastguard Worker        ;;
47*a67afe4dSAndroid Build Coastguard Worker
48*a67afe4dSAndroid Build Coastguard Worker    --ccopts)
49*a67afe4dSAndroid Build Coastguard Worker        echo ${ccopts}
50*a67afe4dSAndroid Build Coastguard Worker        ;;
51*a67afe4dSAndroid Build Coastguard Worker
52*a67afe4dSAndroid Build Coastguard Worker    --cppflags)
53*a67afe4dSAndroid Build Coastguard Worker        echo ${cppflags}
54*a67afe4dSAndroid Build Coastguard Worker        ;;
55*a67afe4dSAndroid Build Coastguard Worker
56*a67afe4dSAndroid Build Coastguard Worker    --cflags)
57*a67afe4dSAndroid Build Coastguard Worker        echo ${I_opts} ${cppflags} ${ccopts}
58*a67afe4dSAndroid Build Coastguard Worker        ;;
59*a67afe4dSAndroid Build Coastguard Worker
60*a67afe4dSAndroid Build Coastguard Worker    --libdir)
61*a67afe4dSAndroid Build Coastguard Worker        echo ${libdir}
62*a67afe4dSAndroid Build Coastguard Worker        ;;
63*a67afe4dSAndroid Build Coastguard Worker
64*a67afe4dSAndroid Build Coastguard Worker    --libs)
65*a67afe4dSAndroid Build Coastguard Worker        echo ${libs}
66*a67afe4dSAndroid Build Coastguard Worker        ;;
67*a67afe4dSAndroid Build Coastguard Worker
68*a67afe4dSAndroid Build Coastguard Worker    --I_opts)
69*a67afe4dSAndroid Build Coastguard Worker        echo ${I_opts}
70*a67afe4dSAndroid Build Coastguard Worker        ;;
71*a67afe4dSAndroid Build Coastguard Worker
72*a67afe4dSAndroid Build Coastguard Worker    --L_opts)
73*a67afe4dSAndroid Build Coastguard Worker        echo ${L_opts}
74*a67afe4dSAndroid Build Coastguard Worker        ;;
75*a67afe4dSAndroid Build Coastguard Worker
76*a67afe4dSAndroid Build Coastguard Worker    --R_opts)
77*a67afe4dSAndroid Build Coastguard Worker        echo ${R_opts}
78*a67afe4dSAndroid Build Coastguard Worker        ;;
79*a67afe4dSAndroid Build Coastguard Worker
80*a67afe4dSAndroid Build Coastguard Worker    --ldflags)
81*a67afe4dSAndroid Build Coastguard Worker        echo ${ldflags} ${L_opts} ${R_opts} ${libs}
82*a67afe4dSAndroid Build Coastguard Worker        ;;
83*a67afe4dSAndroid Build Coastguard Worker
84*a67afe4dSAndroid Build Coastguard Worker    --static)
85*a67afe4dSAndroid Build Coastguard Worker        R_opts=""
86*a67afe4dSAndroid Build Coastguard Worker        ;;
87*a67afe4dSAndroid Build Coastguard Worker
88*a67afe4dSAndroid Build Coastguard Worker    *)
89*a67afe4dSAndroid Build Coastguard Worker        usage
90*a67afe4dSAndroid Build Coastguard Worker        exit 1
91*a67afe4dSAndroid Build Coastguard Worker        ;;
92*a67afe4dSAndroid Build Coastguard Worker    esac
93*a67afe4dSAndroid Build Coastguard Worker    shift
94*a67afe4dSAndroid Build Coastguard Workerdone
95*a67afe4dSAndroid Build Coastguard Worker
96*a67afe4dSAndroid Build Coastguard Workerexit 0
97