diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2016-01-14 10:00:56 +0000 |
---|---|---|
committer | Dan Liew <daniel.liew@imperial.ac.uk> | 2016-01-14 11:52:41 +0000 |
commit | 87a695ed4bcae356587fc7133232772ce9ab9742 (patch) | |
tree | a2a3c1bcb5bdb9d034c25305fc843ef6fef09f29 /autoconf | |
parent | 8a7705ad979096d4e611fb2b8b397c48dd5fffc1 (diff) | |
download | klee-87a695ed4bcae356587fc7133232772ce9ab9742.tar.gz |
Fix behaviour of --with-metasmt when passed a path that doesn't exist.
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 8ba6a029..13d6f945 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -627,7 +627,11 @@ AC_ARG_WITH(metasmt, if test X$with_metasmt = X ; then ENABLE_METASMT=0 else - metasmt_root=`cd $with_metasmt 2> /dev/null; pwd` + metasmt_root=`(cd $with_metasmt && pwd) 2> /dev/null` + #Check for bad path + if test "X$metasmt_root" = X ; then + AC_MSG_ERROR([Cannot access path $with_metasmt passed to --with-metasmt]) + fi dnl AC_LANG(C++) old_CPPFLAGS="$CPPFLAGS" |