VirtualBox

Changeset 4886 in vbox


Ignore:
Timestamp:
Sep 19, 2007 7:58:25 AM (17 years ago)
Author:
vboxsync
Message:

configure: handle multiple include paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r4786 r4886  
    130130}
    131131
     132prefix_I()
     133{
     134  echo "$1"|$KBUILD_SED 's|^\/|-I/|g; s| \/|-I/|g'
     135}
     136
    132137# Wrapper for ancient /usr/bin/which on darwin that always returns 0
    133138which_wrapper()
     
    519524}
    520525EOF
    521     [ -n "$INCXALAN" ] && I_INCXALAN="-I$INCXALAN"
     526    [ -n "$INCXALAN" ] && I_INCXALAN=`prefix_I "$INCXALAN"`
    522527    if test_compile "$LIBXALAN $LIBPTHREAD $I_INCXALAN" xalan xalanc; then
    523528      if test_execute; then
     
    558563}
    559564EOF
    560     [ -n "$INCXERCES" ] && I_INCXERCES="-I$INCXERCES"
     565    [ -n "$INCXERCES" ] && I_INCXERCES=`prefix_I "$INCXERCES"`
    561566    if test_compile "$LIBXERCES $LIBPTHREAD $I_INCXERCES" xerces xercesc; then
    562567      if test_execute; then
     
    687692}
    688693EOF
    689   [ -n "$INCZ" ] && I_INCZ="-I$INCZ"
     694  [ -n "$INCZ" ] && I_INCZ=`prefix_I "$INCZ"`
    690695  if test_compile "$LIBZ $I_INCZ" zlib zlib; then
    691696    if test_execute; then
     
    717722}
    718723EOF
    719   [ -n "$INCPNG" ] && I_INCPNG="-I$INCPNG"
     724  [ -n "$INCPNG" ] && I_INCPNG=`prefix_I "$INCPNG"`
    720725#  if test_compile "$LIBPNG $I_INCPNG" libpng libpng nofatal; then
    721726  if test_compile "$LIBPNG $I_INCPNG" libpng libpng; then
     
    814819}
    815820EOF
    816     [ -n "$INCSDL" ] && I_INCSDL="-I$INCSDL"
     821    [ -n "$INCSDL" ] && I_INCSDL=`prefix_I "$INCSDL"`
    817822    if test_compile "$LIBSDL $LIBSDLMAIN $I_INCSDL" SDL SDL; then
    818823      if test_execute; then
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette