diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2012-07-31 17:21:30 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2012-07-31 17:21:30 +0000 |
commit | c582aa704b9f0d2729e76251aeb4676d4cb866a6 (patch) | |
tree | a8303928c18d72cad31f08cb07407ec080e9949d /configure | |
parent | 1fdb4ef41ea8a87225f751fa87534c5ac1751d40 (diff) | |
download | klee-c582aa704b9f0d2729e76251aeb4676d4cb866a6.tar.gz |
Patch by Dan Liew that removes our internal copy of STP, and makes the --with-stp option mandatory:
"1. At configure time the --with-stp= option is now mandatory. 2. The HAVE_EXT_STP macro has been removed. 3. The ENABLE_EXT_STP autoconf replacement variable has been removed and consequently the Makefile variable of the same name has been removed." git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@161055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/configure b/configure index 594592ef..2ac22106 100755 --- a/configure +++ b/configure @@ -597,7 +597,6 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS LIBOBJS STP_ROOT -ENABLE_EXT_STP CXXCPP ac_ct_CXX CXXFLAGS @@ -4366,17 +4365,26 @@ done + # Check whether --with-stp was given. if test "${with_stp+set}" = set; then : withval=$with_stp; +else + as_fn_error $? "The --with-stp=<path> argument is mandatory where <path> is the path \ +to the root of your STP install" "$LINENO" 5 fi -if test X$with_stp = X ; then - ENABLE_EXT_STP=0 - +#Check for empty argument +if test "X$with_stp" = X ; then + as_fn_error $? "<path> cannot be empty in --with-stp=<path>" "$LINENO" 5 else - stp_root=`cd $with_stp 2> /dev/null; pwd` + stp_root=`(cd $with_stp && pwd) 2> /dev/null` + + #Check for bad path + if test "X$stp_root" = X ; then + as_fn_error $? "Cannot access path $with_stp passed to --with-stp" "$LINENO" 5 + fi old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$stp_root/include" @@ -4442,11 +4450,6 @@ else fi - -$as_echo "#define HAVE_EXT_STP 1" >>confdefs.h - - ENABLE_EXT_STP=1 - STP_ROOT=$stp_root fi @@ -4464,9 +4467,6 @@ ac_config_commands="$ac_config_commands lib/Makefile" ac_config_commands="$ac_config_commands runtime/Makefile" -ac_config_commands="$ac_config_commands stp/Makefile" - - ac_config_commands="$ac_config_commands test/Makefile" @@ -5180,7 +5180,6 @@ do "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; - "stp/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS stp/Makefile" ;; "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; @@ -5740,8 +5739,6 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; - "stp/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname stp/Makefile` - ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/stp/Makefile stp/Makefile ;; "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |