From bb842bb0d53cb43a06672802f8098ddd4d0f9950 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 19 Feb 2013 21:54:36 +0000 Subject: Fix DEFAULT_LIBDIRS detection on Windows Must use ; as the path delimiter instead of : Change-Id: I549e1652ef5bbae09c8fddec3e83ac9f52cec3a4 Reviewed-by: Oswald Buddenhagen --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 5eb81a80b6..45673a356d 100755 --- a/configure +++ b/configure @@ -382,7 +382,9 @@ if [ -d /System/Library/Frameworks/Carbon.framework ]; then PLATFORM_MAC=maybe fi BUILD_ON_MSYS=no +HOST_DIRLIST_SEP=":" if [ "$OSTYPE" = "msys" ]; then + HOST_DIRLIST_SEP=";" BUILD_ON_MSYS=yes fi @@ -2736,7 +2738,7 @@ fi # auto-detect default include and library search paths gccout=`$TEST_COMPILER $SYSROOT_FLAG $TEST_COMPILER_CXXFLAGS -xc++ -E -v - < /dev/null 2>&1 > /dev/null` libdirs=`echo "$gccout" | sed -n -e 's/^LIBRARY_PATH=\(.*\)/\1/p'` -DEFAULT_LIBDIRS=`IFS=:; for i in $libdirs; do test -d "$i" && cd "$i" && pwd; done | sort -u` +DEFAULT_LIBDIRS=`IFS=${HOST_DIRLIST_SEP}; for i in $libdirs; do test -d "$i" && cd "$i" && pwd; done | sort -u` DEFAULT_INCDIRS=`echo "$gccout" | awk ' /^End of search/ { yup=0 } / \(framework directory\)$/ { next } -- cgit v1.2.3