common/autoconf/toolchain_windows.m4
changeset 29065 907bcc4ce290
parent 28908 fc8fe39b34cf
child 29643 89e91c724316
equal deleted inserted replaced
29064:d5e775680e97 29065:907bcc4ce290
   349       # Convert VS_INCLUDE into SYSROOT_CFLAGS
   349       # Convert VS_INCLUDE into SYSROOT_CFLAGS
   350       OLDIFS="$IFS"
   350       OLDIFS="$IFS"
   351       IFS=";"
   351       IFS=";"
   352       for i in $VS_INCLUDE; do
   352       for i in $VS_INCLUDE; do
   353         ipath=$i
   353         ipath=$i
   354 	IFS="$OLDIFS"
   354         # Only process non-empty elements
   355         BASIC_FIXUP_PATH([ipath])
   355         if test "x$ipath" != x; then
   356 	IFS=";"
   356           IFS="$OLDIFS"
   357       	SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath"
   357           # Check that directory exists before calling fixup_path
       
   358           testpath=$ipath
       
   359           BASIC_WINDOWS_REWRITE_AS_UNIX_PATH([testpath])
       
   360           if test -d "$testpath"; then
       
   361             BASIC_FIXUP_PATH([ipath])
       
   362             SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath"
       
   363           fi
       
   364           IFS=";"
       
   365         fi
   358       done
   366       done
   359       # Convert VS_LIB into SYSROOT_LDFLAGS
   367       # Convert VS_LIB into SYSROOT_LDFLAGS
   360       for i in $VS_LIB; do
   368       for i in $VS_LIB; do
   361         libpath=$i
   369         libpath=$i
   362 	IFS="$OLDIFS"
   370         # Only process non-empty elements
   363         BASIC_FIXUP_PATH([libpath])
   371         if test "x$libpath" != x; then
   364 	IFS=";"
   372           IFS="$OLDIFS"
   365       	SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath"
   373           # Check that directory exists before calling fixup_path
       
   374           testpath=$libpath
       
   375           BASIC_WINDOWS_REWRITE_AS_UNIX_PATH([testpath])
       
   376           if test -d "$testpath"; then
       
   377             BASIC_FIXUP_PATH([libpath])
       
   378             SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath"
       
   379           fi
       
   380           IFS=";"
       
   381         fi
   366       done
   382       done
   367       IFS="$OLDIFS"
   383       IFS="$OLDIFS"
   368     fi
   384     fi
   369   else
   385   else
   370     AC_MSG_RESULT([not found])
   386     AC_MSG_RESULT([not found])