libpng/scripts/libpng-config-body.in

97 lines
1.7 KiB
Plaintext
Raw Normal View History

2002-05-11 01:19:58 +00:00
usage()
{
cat <<EOF
Usage: libpng-config [OPTION] ...
Known values for OPTION are:
2002-09-18 04:38:46 +00:00
--prefix print libpng prefix
--libdir print path to directory containing library
--libs print library linking information
--ccopts print compiler options
--cppflags print pre-processor flags
--cflags print preprocessor flags, I_opts, and compiler options
--I_opts print "-I" include options
--L_opts print linker "-L" flags for dynamic linking
--R_opts print dynamic linker "-R" or "-rpath" flags
--ldopts print linker options
--ldflags print linker flags (ldopts, L_opts, R_opts, and libs)
--static revise subsequent outputs for static linking
--help print this help and exit
--version print version information
2002-05-11 01:19:58 +00:00
EOF
exit $1
}
if test $# -eq 0; then
usage 1
fi
while test $# -gt 0; do
case "$1" in
--prefix)
echo ${prefix}
;;
--version)
echo ${version}
exit 0
;;
--help)
usage 0
;;
2002-09-18 04:38:46 +00:00
--ccopts)
echo ${ccopts}
2002-05-11 01:19:58 +00:00
;;
--cppflags)
echo ${cppflags}
;;
2002-09-18 04:38:46 +00:00
--cflags)
echo ${I_opts} ${cppflags} ${ccopts}
;;
--libdir)
echo ${libdir}
;;
2002-05-11 01:19:58 +00:00
--libs)
echo ${libs}
;;
2002-09-18 04:38:46 +00:00
--I_opts)
echo ${I_opts}
;;
--L_opts)
echo ${L_opts}
;;
--R_opts)
echo ${R_opts}
2002-07-02 03:23:46 +00:00
;;
2002-05-11 01:19:58 +00:00
--ldflags)
2002-09-18 04:38:46 +00:00
echo ${ldflags} ${L_opts} ${R_opts} ${libs}
;;
--static)
R_opts=""
2002-05-11 01:19:58 +00:00
;;
*)
usage
exit 1
;;
esac
shift
done
exit 0