10 changed files with 7 additions and 289 deletions
@ -1,46 +0,0 @@ |
|||
.TH LIBVLC 1 "8 August 2002" Version 0.5.0 |
|||
.SH NAME |
|||
vlc-config - script to get information about the installed version of libvlc |
|||
.SH SYNOPSIS |
|||
.B vlc-config |
|||
[\-\-prefix\fI[=DIR]\fP] [\-\-exec\-prefix\fI[=DIR]\fP] [\-\-version] [\-\-libs] [\-\-cflags] |
|||
.SH DESCRIPTION |
|||
.PP |
|||
\fIvlc-config\fP is a tool that is used to configure to determine |
|||
the compiler and linker flags that should be used to compile |
|||
and link programs that use \fIlibvlc\fP. |
|||
. |
|||
.SH OPTIONS |
|||
\fIvlc-config\fP accepts the following options: |
|||
.TP 8 |
|||
.B \-\-version |
|||
Print the currently installed version of \fIlibvlc\fP on the standard output. |
|||
.TP 8 |
|||
.B \-\-libs |
|||
Print the linker flags that are necessary to link a \fIlibvlc\fP program. |
|||
.TP 8 |
|||
.B \-\-cflags |
|||
Print the compiler flags that are necessary to compile a \fIlibvlc\fP program. |
|||
.TP 8 |
|||
.B \-\-prefix=PREFIX |
|||
If specified, use PREFIX instead of the installation prefix that \fIlibvlc\fP |
|||
was built with when computing the output for the \-\-cflags and |
|||
\-\-libs options. This option is also used for the exec prefix |
|||
if \-\-exec\-prefix was not specified. This option must be specified |
|||
before any \-\-libs or \-\-cflags options. |
|||
.TP 8 |
|||
.B \-\-exec\-prefix=PREFIX |
|||
If specified, use PREFIX instead of the installation exec prefix that |
|||
\fIlibvlc\fP was built with when computing the output for the \-\-cflags |
|||
and \-\-libs options. This option must be specified before any |
|||
\-\-libs or \-\-cflags options. |
|||
.SH SEE ALSO |
|||
.BR vlc (1), |
|||
.SH COPYRIGHT |
|||
Copyright \(co 2002 Owen Taylor, modified by Sam Hocevar |
|||
|
|||
Permission to use, copy, modify, and distribute this software and its |
|||
documentation for any purpose and without fee is hereby granted, |
|||
provided that the above copyright notice appear in all copies and that |
|||
both that copyright notice and this permission notice appear in |
|||
supporting documentation. |
|||
@ -1,159 +0,0 @@ |
|||
#!@SHELL@ |
|||
|
|||
optim="@optim@" |
|||
|
|||
cppflags="" |
|||
cflags="" |
|||
cxxflags="" |
|||
objcflags="" |
|||
ldflags="" |
|||
libs="" |
|||
|
|||
cflags_tuning="@CFLAGS_TUNING@" |
|||
|
|||
# |
|||
# Do not touch below this place unless you really know what you are doing |
|||
# |
|||
usage() |
|||
{ |
|||
cat << BLAH |
|||
Usage: vlc-config OPTIONS MODULES |
|||
Options: |
|||
[--version] print version and exit |
|||
[--libs] output linking flags |
|||
[--cflags] output C compilation flags |
|||
[--cxxflags] output C++ compilation flags |
|||
[--objcflags] output Objective C compilation flags |
|||
Modules: |
|||
vlc the main VLC object |
|||
MODULE any available module (dummy, gtk, avi, etc.) |
|||
libs flags for external libs |
|||
BLAH |
|||
exit $1 |
|||
} |
|||
|
|||
register_flags() |
|||
{ |
|||
case "$1" in |
|||
#@1@# |
|||
*) |
|||
;; |
|||
esac |
|||
} |
|||
|
|||
if test $# -eq 0; then |
|||
usage 1 1>&2 |
|||
fi |
|||
|
|||
if test "${top_builddir}" != ""; then |
|||
top_builddir="${top_builddir}/" |
|||
elif test "${TOP_BUILDDIR}" != ""; then |
|||
top_builddir="${TOP_BUILDDIR}/" |
|||
fi |
|||
includes="${includes}" |
|||
cppflags="${includes}" |
|||
module="" |
|||
|
|||
# |
|||
# Various additional defines |
|||
# |
|||
if [ "${optim}" = speed ]; then |
|||
cflags="${cflags} ${cflags_tuning}" |
|||
cxxflags="${cxxflags} ${cflags_tuning}" |
|||
objcflags="${objcflags} ${cflags_tuning}" |
|||
fi |
|||
|
|||
# |
|||
# The main argument loop |
|||
# |
|||
while test $# -gt 0; do |
|||
case "$1" in |
|||
-*=*) optarg=`echo "$1" | sed 's/-[_a-zA-Z0-9\-]*=//'` ;; |
|||
*) optarg= ;; |
|||
esac |
|||
|
|||
# Mangle plugin name, if applicable |
|||
# This is just a convenience hack for modules/common.am |
|||
tgt="$1" |
|||
tgt="${tgt##*/}" |
|||
case "$tgt" in |
|||
lib*_plugin_la-*.lo) |
|||
tgt="${tgt#*lib}" |
|||
tgt="${tgt%_plugin_la-*.lo}" |
|||
;; |
|||
lib*_plugin.la) |
|||
tgt="${tgt#lib}" |
|||
tgt="${tgt%_plugin.la}" |
|||
;; |
|||
*) |
|||
;; |
|||
esac |
|||
|
|||
case "$tgt" in |
|||
--version) |
|||
echo "@VERSION@" |
|||
exit 0 |
|||
;; |
|||
--cflags) |
|||
echo_cflags=yes |
|||
;; |
|||
--cppflags) |
|||
echo_cppflags=yes |
|||
;; |
|||
--cxxflags) |
|||
echo_cxxflags=yes |
|||
;; |
|||
--objcflags) |
|||
echo_objcflags=yes |
|||
;; |
|||
--ldflags) |
|||
echo_ldflags=yes |
|||
;; |
|||
--libs|-libs) |
|||
echo_libs=yes |
|||
;; |
|||
-*) |
|||
usage 1 1>&1 |
|||
;; |
|||
libvlccore) |
|||
;; |
|||
*) |
|||
module="$tgt" |
|||
;; |
|||
esac |
|||
|
|||
# Register per-module *FLAGS |
|||
register_flags "$tgt" |
|||
|
|||
shift |
|||
done |
|||
|
|||
# |
|||
# Output what we were asked |
|||
# |
|||
if test "${echo_cppflags}" = yes; then |
|||
echo "${cppflags}" |
|||
fi |
|||
if test "${echo_cflags}" = yes; then |
|||
echo "${cppflags} ${cflags}" |
|||
fi |
|||
if test "${echo_cxxflags}" = yes; then |
|||
echo "${cppflags} ${cxxflags}" |
|||
fi |
|||
if test "${echo_objcflags}" = yes; then |
|||
echo "${cppflags} ${objcflags}" |
|||
fi |
|||
if test "${echo_ldflags}" = yes; then |
|||
echo "${ldflags}" |
|||
fi |
|||
|
|||
# Libs |
|||
# There are 4 possibilities |
|||
# - We are a plugin or a builtin |
|||
# - We are building something from the inside (builtin) |
|||
# - Link with builtins in place |
|||
# If you want something shared from the inside (binding), |
|||
# you need "builtin vlc" |
|||
if test "${echo_libs}" = yes; then |
|||
echo "${libs}" |
|||
fi |
|||
Loading…
Reference in new issue