summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-10-19 08:21:25 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-10-19 08:21:25 +0000
commit6b241160eddc96ec098c74a041a327d545df6ff7 (patch)
treeda2b89979c7c48a88e4c0d06e54fa083c1f2d538 /configure
parent94f7eeb84d8d25c647e560f352912ca1017ca10f (diff)
downloadllvm-6b241160eddc96ec098c74a041a327d545df6ff7.tar.gz
llvm-6b241160eddc96ec098c74a041a327d545df6ff7.tar.bz2
llvm-6b241160eddc96ec098c74a041a327d545df6ff7.tar.xz
First step to allowing the resource directory of Clang to be adjusted for
strange packaging environments. The primary result of this is to expose a (normally empty) CLANG_RESOURCE_DIR string in the autoconf and CMake builds. This will in turn be used by a subsequent commit to Clang. Regenerated configure and config.h.in thanks to Nick. =D git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 18 insertions, 1 deletions
diff --git a/configure b/configure
index 34031375dd..e76a0b32f3 100755
--- a/configure
+++ b/configure
@@ -1442,6 +1442,9 @@ Optional Packages:
--with-extra-options Specify additional options to compile LLVM with
--with-ocaml-libdir Specify install location for ocaml bindings (default
is stdlib)
+ --with-clang-resource-dir
+ Relative directory from the Clang binary for
+ resource files
--with-c-include-dirs Colon separated list of directories clang will
search for headers
--with-cxx-include-root Directory with the libstdc++ headers.
@@ -5279,6 +5282,20 @@ echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&
esac
+# Check whether --with-clang-resource-dir was given.
+if test "${with_clang_resource_dir+set}" = set; then
+ withval=$with_clang_resource_dir;
+else
+ withval=""
+fi
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_RESOURCE_DIR "$withval"
+_ACEOF
+
+
+
# Check whether --with-c-include-dirs was given.
if test "${with_c_include_dirs+set}" = set; then
withval=$with_c_include_dirs;
@@ -11450,7 +11467,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 11453 "configure"
+#line 11470 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H