Blame scripts/libpng-config-body.in

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