Changeset e397e422bbc537435688441c173d550e251bf3a3

Show
Ignore:
Timestamp:
07/17/03 17:49:37 (5 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1058456977 +0000
git-parent:

[0001dd31afce7dea20762c2e3a683ee05e936c16]

git-author:
Sam Hocevar <sam@videolan.org> 1058456977 +0000
Message:
  • m4/vlc.m4: Looks like POSIX shell reduces "eval echo '$'FOO" to "" even
    if $FOO contains spaces. Worked around the problem.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • m4/vlc.m4

    rd93b2c5 re397e42  
    11dnl  Macros needed for VLC 
    2 dnl  $Id: vlc.m4,v 1.5 2003/07/01 14:25:47 sam Exp $ 
     2dnl  $Id: vlc.m4,v 1.6 2003/07/17 15:49:37 sam Exp $ 
    33 
    44dnl  Add plugins or builtins 
     
    8989  do [ 
    9090    echo "    ${x})" >> vlc-config.in 
    91     if test -n "`eval echo '$'CPPFLAGS_${x}`"; then 
     91    if test "`eval echo @'$'CPPFLAGS_${x}@`" != "@@"; then 
    9292      echo "      cppflags=\"\${cppflags} `eval echo '$'CPPFLAGS_${x}`\"" >> vlc-config.in 
    9393    fi 
    94     if test -n "`eval echo '$'CFLAGS_${x}`"; then 
     94    if test "`eval echo @'$'CFLAGS_${x}@`" != "@@"; then 
    9595      echo "      cflags=\"\${cflags} `eval echo '$'CFLAGS_${x}`\"" >> vlc-config.in 
    9696    fi 
    97     if test -n "`eval echo '$'CXXFLAGS_${x}`"; then 
     97    if test "`eval echo @'$'CXXFLAGS_${x}@`" != "@@"; then 
    9898      echo "      cxxflags=\"\${cxxflags} `eval echo '$'CXXFLAGS_${x}`\"" >> vlc-config.in 
    99       if test "${x}" != "plugins" -a "${x}" != "builtins"; then 
     99      if test "${x}" != "plugin" -a "${x}" != "builtin"; then 
    100100        echo "      linkage=\"c++\"" >> vlc-config.in 
    101101      fi 
    102102    fi 
    103     if test -n "`eval echo '$'OBJCFLAGS_${x}`"; then 
     103    if test "`eval echo @'$'OBJCFLAGS_${x}@`" != "@@"; then 
    104104      echo "      objcflags=\"\${objcflags} `eval echo '$'OBJCFLAGS_${x}`\"" >> vlc-config.in 
    105       if test "${x}" != "plugins" -a "${x}" != "builtins"; then 
     105      if test "${x}" != "plugin" -a "${x}" != "builtin"; then 
    106106        echo "      if test \"\${linkage}\" = \"c\"; then linkage=\"objc\"; fi" >> vlc-config.in 
    107107      fi 
    108108    fi 
    109     if test -n "`eval echo '$'LDFLAGS_${x}`"; then 
     109    if test "`eval echo @'$'LDFLAGS_${x}@`" != "@@"; then 
    110110      echo "      ldflags=\"\${ldflags} `eval echo '$'LDFLAGS_${x}`\"" >> vlc-config.in 
    111111    fi