4 exec_prefix="@exec_prefix@"
6 datarootdir="@datarootdir@"
17 cflags_tuning="@CFLAGS_TUNING@"
20 # Do not touch below this place unless you really know what you are doing
25 Usage: vlc-config OPTIONS MODULES
27 [--prefix[=DIR]] set prefix
28 [--exec-prefix[=DIR]] set exec prefix
29 [--version] print version and exit
30 [--libs] output linking flags
31 [--cflags] output C compilation flags
32 [--cxxflags] output C++ compilation flags
33 [--objcflags] output Objective C compilation flags
35 vlc the main VLC object
36 MODULE any available module (dummy, gtk, avi, etc.)
37 libs flags for external libs
51 if test $# -eq 0; then
55 if test "${top_builddir}" != ""; then
56 top_builddir="${top_builddir}/"
57 elif test "${TOP_BUILDDIR}" != ""; then
58 top_builddir="${TOP_BUILDDIR}/"
60 includes="${includes}"
61 cppflags="${includes}"
65 # Various additional defines
67 if [ "${optim}" = speed ]; then
68 cflags="${cflags} ${cflags_tuning}"
69 cxxflags="${cxxflags} ${cflags_tuning}"
70 objcflags="${objcflags} ${cflags_tuning}"
74 # The main argument loop
76 while test $# -gt 0; do
78 -*=*) optarg=`echo "$1" | sed 's/-[_a-zA-Z0-9\-]*=//'` ;;
82 # Mangle plugin name, if applicable
83 # This is just a convenience hack for modules/common.am
89 tgt="${tgt%_plugin_la-*.lo}"
93 tgt="${tgt%_plugin.la}"
102 if test "${exec_prefix_set}" = no ; then
103 exec_prefix="${optarg}"
110 exec_prefix="${optarg}"
148 # Register per-module *FLAGS
149 register_flags "$tgt"
155 # If a module was requested, use its name
157 if test -n "${module}"; then
158 cppflags="${cppflags} -DMODULE_NAME=${module} -DMODULE_NAME_IS_${module} -DMODULE_STRING=\"${module}\""
162 # Output what we were asked
164 if test "${echo_prefix}" = yes; then
167 if test "${echo_exec_prefix}" = yes; then
168 echo "${exec_prefix}"
170 if test "${echo_cppflags}" = yes; then
173 if test "${echo_cflags}" = yes; then
174 echo "${cppflags} ${cflags}"
176 if test "${echo_cxxflags}" = yes; then
177 echo "${cppflags} ${cxxflags}"
179 if test "${echo_objcflags}" = yes; then
180 echo "${cppflags} ${objcflags}"
182 if test "${echo_ldflags}" = yes; then
187 # There are 4 possibilities
188 # - We are a plugin or a builtin
189 # - We are building something from the inside (builtin)
190 # - Link with builtins in place
191 # If you want something shared from the inside (binding),
192 # you need "builtin vlc"
193 if test "${echo_libs}" = yes; then