X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=vlc-config.in.in;h=0bf2d7bbe1ee80e1b37d82e2961472143fd203bb;hb=b10a9e494585afc25586ee1968fd2f2e73f701da;hp=c1946a65efd92a73fa360901651959a51e1c8ef9;hpb=41e197b52aad35318a020f78bfcf9e39723c0d25;p=vlc diff --git a/vlc-config.in.in b/vlc-config.in.in index c1946a65ef..0bf2d7bbe1 100644 --- a/vlc-config.in.in +++ b/vlc-config.in.in @@ -88,7 +88,6 @@ elif test "${TOP_BUILDDIR}" != ""; then fi includes="${includes}" cppflags="${includes}" -libs="-L@libdir@" module="" linkage="c" @@ -101,8 +100,8 @@ cppflags="${cppflags} -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURC # Gettext, data and plugin location # cppflags="${cppflags} -DLOCALEDIR=\"@datadir@/locale\"" -cppflags="${cppflags} -DDATA_PATH=\"${prefix}/share/vlc\"" -cppflags="${cppflags} -DPLUGIN_PATH=\"${prefix}/lib/vlc\"" +cppflags="${cppflags} -DDATA_PATH=\"@datadir@/vlc\"" +cppflags="${cppflags} -DPLUGIN_PATH=\"@libdir@/vlc\"" # # Various additional defines @@ -144,7 +143,7 @@ fi # while test $# -gt 0; do case "$1" in - -*=*) optarg=`echo "$1" | sed 's/-_a-zA-Z0-9*=//'` ;; + -*=*) optarg=`echo "$1" | sed 's/-[_a-zA-Z0-9\-]*=//'` ;; *) optarg= ;; esac @@ -211,7 +210,12 @@ while test $# -gt 0; do ;; external) echo_external=yes - ldflags="${ldflags} -lvlc" + if test "x${echo_pic}" = "xno" + then + ldflags="${ldflags} -lvlc" + else + ldflags="${ldflags} -lvlc_pic" + fi ;; *) module="$1" @@ -227,6 +231,8 @@ while test $# -gt 0; do shift done +libs="-L@libdir@" + # # If a module was requested, use its name # @@ -304,6 +310,17 @@ fi if test "${echo_objcflags}" = yes; then echo "${cppflags} ${objcflags}" fi + +# Libs +# There are 4 possibilities +# - We are a plugin or a builtin +# - We are building from the outside (external): +# - Give full libvlc linkflags + -lvlc(_pic) (in libdir) +# - Link with builtins in libdir +# - 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 pic" if test "${echo_libs}" = yes; then if test "${echo_builtin}" = yes; then for module in `echo "${builtins}"`; do