X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=vlc-config.in.in;h=3532bc8f58d8294f1163905bd91b6f805dbe3bf9;hb=7f42e055f359bbb4d136c1b5c554baa2b23b52a2;hp=45ebe325580e21e8288d4943a9e16727ee27091c;hpb=9a234d8f17398290ba38476995050a751a9b85ac;p=vlc diff --git a/vlc-config.in.in b/vlc-config.in.in index 45ebe32558..3532bc8f58 100644 --- a/vlc-config.in.in +++ b/vlc-config.in.in @@ -19,9 +19,11 @@ cflags="" cxxflags="" objcflags="" ldflags="" +libs="-L@libdir@" cflags_tuning="@CFLAGS_TUNING@" -cflags_optim="@CFLAGS_OPTIM@" +cflags_optim_size="@CFLAGS_OPTIM_SIZE@" +cflags_optim_speed="@CFLAGS_OPTIM_SPEED@" cflags_optim_nodebug="@CFLAGS_OPTIM_NODEBUG@" cflags_nooptim="@CFLAGS_NOOPTIM@" @@ -130,8 +132,13 @@ fi if [ "${release}" = yes ]; then cppflags="${cppflags} -DHAVE_RELEASE" fi -if [ "${optim}" = yes ]; then - cppflags="${cppflags} ${cflags_optim} ${cflags_tuning}" +if [ "${optim}" = size ]; then + cppflags="${cppflags} ${cflags_optim_size} ${cflags_tuning}" + if [ "${debug}" != yes -a "${gprof}" != yes -a "${cprof}" != yes ]; then + cppflags="${cppflags} ${cflags_optim_nodebug}" + fi +elif [ "${optim}" = speed ]; then + cppflags="${cppflags} ${cflags_optim_speed} ${cflags_tuning}" if [ "${debug}" != yes -a "${gprof}" != yes -a "${cprof}" != yes ]; then cppflags="${cppflags} ${cflags_optim_nodebug}" fi @@ -187,22 +194,25 @@ while test $# -gt 0; do --objcflags) echo_objcflags=yes ;; - --libs) + --ldflags) + echo_ldflags=yes + ;; + --libs|-libs) echo_libs=yes ;; -*) usage 1 1>&1 ;; - vlc) - cppflags="${cppflags} -D__VLC__ -I${top_builddir}src/misc" + libvlc) + cppflags="${cppflags} -D__LIBVLC__ -I${top_builddir}src/misc" ;; plugin) echo_plugin=yes - cppflags="${cppflags} -D__VLC__ -D__PLUGIN__" + cppflags="${cppflags} -D__LIBVLC__ -D__PLUGIN__" ;; builtin) echo_builtin=yes - cppflags="${cppflags} -D__VLC__ -D__BUILTIN__" + cppflags="${cppflags} -D__LIBVLC__ -D__BUILTIN__" ;; pic) ;; @@ -210,7 +220,7 @@ while test $# -gt 0; do ;; external) echo_external=yes - ldflags="${ldflags} -lvlc -lvlc-control" + libs="${libs} -lvlc -lvlc-control" ;; *) module="$1" @@ -226,8 +236,6 @@ while test $# -gt 0; do shift done -libs="-L@libdir@" - # # If a module was requested, use its name # @@ -301,6 +309,9 @@ 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 @@ -322,12 +333,12 @@ if test "${echo_libs}" = yes; then fi if test "${echo_external}" = yes; then for module in `echo "${builtins}"`; do - ldflags="${ldflags} @libdir@/vlc/lib${module}.a" + libs="${libs} @libdir@/vlc/lib${module}.a" done for module in `echo "${builtins}"`; do register_flags "${module}" done register_flags "vlc" fi - echo "${libs} ${ldflags}" + echo "${libs}" fi