4 exec_prefix="@exec_prefix@"
6 datarootdir="@datarootdir@"
19 cflags_tuning="@CFLAGS_TUNING@"
22 # Do not touch below this place unless you really know what you are doing
27 Usage: vlc-config OPTIONS MODULES
29 [--prefix[=DIR]] set prefix
30 [--exec-prefix[=DIR]] set exec prefix
31 [--version] print version and exit
32 [--list] print modules names and exit
33 [--libs] output linking flags
34 [--cflags] output C compilation flags
35 [--cxxflags] output C++ compilation flags
36 [--objcflags] output Objective C compilation flags
38 vlc the main VLC object
39 MODULE any available module (dummy, gtk, avi, etc.)
40 libs flags for external libs
54 if test $# -eq 0; then
58 if test "${top_builddir}" != ""; then
59 top_builddir="${top_builddir}/"
60 elif test "${TOP_BUILDDIR}" != ""; then
61 top_builddir="${TOP_BUILDDIR}/"
63 includes="${includes}"
64 cppflags="${includes}"
68 # Various additional defines
70 if [ "${optim}" = speed ]; then
71 cflags="${cflags} ${cflags_tuning}"
72 cxxflags="${cxxflags} ${cflags_tuning}"
73 objcflags="${objcflags} ${cflags_tuning}"
77 # The main argument loop
79 while test $# -gt 0; do
81 -*=*) optarg=`echo "$1" | sed 's/-[_a-zA-Z0-9\-]*=//'` ;;
85 # Mangle plugin name, if applicable
86 # This is just a convenience hack for modules/common.am
92 tgt="${tgt%_plugin_la-*.lo}"
96 tgt="${tgt%_plugin.la}"
105 if test "${exec_prefix_set}" = no ; then
106 exec_prefix="${optarg}"
113 exec_prefix="${optarg}"
157 # Register per-module *FLAGS
158 register_flags "$tgt"
164 # If a module was requested, use its name
166 if test -n "${module}"; then
167 cppflags="${cppflags} -DMODULE_NAME=${module} -DMODULE_NAME_IS_${module} -DMODULE_STRING=\"${module}\""
171 # Output what we were asked
173 if test "${echo_list}" = yes; then
174 if test "${echo_plugin}" = yes; then
181 if test "${echo_prefix}" = yes; then
184 if test "${echo_exec_prefix}" = yes; then
185 echo "${exec_prefix}"
187 if test "${echo_cppflags}" = yes; then
190 if test "${echo_cflags}" = yes; then
191 echo "${cppflags} ${cflags}"
193 if test "${echo_cxxflags}" = yes; then
194 echo "${cppflags} ${cxxflags}"
196 if test "${echo_objcflags}" = yes; then
197 echo "${cppflags} ${objcflags}"
199 if test "${echo_ldflags}" = yes; then
204 # There are 4 possibilities
205 # - We are a plugin or a builtin
206 # - We are building something from the inside (builtin)
207 # - Link with builtins in place
208 # If you want something shared from the inside (binding),
209 # you need "builtin vlc"
210 if test "${echo_libs}" = yes; then