Don't use bashism/kshism of test ==. From Kamil Rytarowski.
authorJoerg Sonnenberger <joerg@bec.de>
Sat, 12 Sep 2015 16:30:32 +0000 (16:30 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Sat, 12 Sep 2015 16:30:32 +0000 (16:30 +0000)
Differential Revision: http://reviews.llvm.org/D12642

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247512 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac
configure

index fb73e51df3f053cf65217a35fd293edfdc93e310..a3cb05c44dc6b47319172d20bf628d78ab91f87f 100644 (file)
@@ -74,7 +74,7 @@ if test ${srcdir} != "." ; then
 fi
 
 dnl Quit if it is an in-source build
 fi
 
 dnl Quit if it is an in-source build
-if test ${srcdir} == "." ; then
+if test ${srcdir} = "." ; then
   AC_MSG_ERROR([In-source builds are not allowed. Please configure from a separate build directory!])
 fi
 
   AC_MSG_ERROR([In-source builds are not allowed. Please configure from a separate build directory!])
 fi
 
index c895057ab07d82a5c8dedc508a2e0c1b1e179e71..5b15d122c07dcbc48ad838c3cfb58573d62dd174 100755 (executable)
--- a/configure
+++ b/configure
@@ -2033,7 +2033,7 @@ echo "$as_me: error: Already configured in ${srcdir}" >&2;}
   fi
 fi
 
   fi
 fi
 
-if test ${srcdir} == "." ; then
+if test ${srcdir} = "." ; then
   { { echo "$as_me:$LINENO: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5
 echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;}
    { (exit 1); exit 1; }; }
   { { echo "$as_me:$LINENO: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5
 echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;}
    { (exit 1); exit 1; }; }