aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-05-21 10:40:20 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-05-21 10:40:20 +0000
commit0fa145d8b83026b2b0bda8544bf955294afebf73 (patch)
tree98bc535398bfdd5c07e973d95eb2156f67c6abca
parent3c380e71e1de8c6adfb428e86aca0899e8906838 (diff)
downloadexternal_llvm-0fa145d8b83026b2b0bda8544bf955294afebf73.zip
external_llvm-0fa145d8b83026b2b0bda8544bf955294afebf73.tar.gz
external_llvm-0fa145d8b83026b2b0bda8544bf955294afebf73.tar.bz2
For PR784:
Support Win32 platforms for llvm-gcc path. Patch by Anton Korobeynikov git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28426 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--autoconf/configure.ac2
-rwxr-xr-xconfigure2
2 files changed, 2 insertions, 2 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index f6bb7a5..954dd38 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -320,7 +320,7 @@ AC_ARG_WITH(llvmgccdir,
withval=default)
case "$withval" in
default) WITH_LLVMGCCDIR=default ;;
- /*) WITH_LLVMGCCDIR=$withval ;;
+ /* | [[A-Za-z]]:[[\\/]]*) WITH_LLVMGCCDIR=$withval ;;
*) AC_MSG_ERROR([Invalid path for --with-llvmgccdir. Provide full path]) ;;
esac
diff --git a/configure b/configure
index 9b0e36e..ca2049f 100755
--- a/configure
+++ b/configure
@@ -3150,7 +3150,7 @@ else
fi;
case "$withval" in
default) WITH_LLVMGCCDIR=default ;;
- /*) WITH_LLVMGCCDIR=$withval ;;
+ /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
*) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
{ (exit 1); exit 1; }; } ;;