File tree Expand file tree Collapse file tree 5 files changed +34
-1
lines changed Expand file tree Collapse file tree 5 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ else( MSVC )
80
80
CACHE STRING "Semicolon-separated list of targets to build, or \" all\" ." )
81
81
endif ( MSVC )
82
82
83
+ set (CLANG_RESOURCE_DIR "" CACHE STRING
84
+ "Relative directory from the Clang binary to its resource files." )
85
+
83
86
set (C_INCLUDE_DIRS "" CACHE STRING
84
87
"Colon separated list of directories clang will search for headers." )
85
88
Original file line number Diff line number Diff line change @@ -804,6 +804,13 @@ case "$withval" in
804
804
*) AC_MSG_ERROR ( [ Invalid path for --with-ocaml-libdir. Provide full path] ) ;;
805
805
esac
806
806
807
+ AC_ARG_WITH ( clang-resource-dir ,
808
+ AS_HELP_STRING ( [ --with-clang-resource-dir] ,
809
+ [ Relative directory from the Clang binary for resource files] ) ,,
810
+ withval="" )
811
+ AC_DEFINE_UNQUOTED ( CLANG_RESOURCE_DIR ,"$withval" ,
812
+ [ Relative directory for resource files] )
813
+
807
814
AC_ARG_WITH ( c-include-dirs ,
808
815
AS_HELP_STRING ( [ --with-c-include-dirs] ,
809
816
[ Colon separated list of directories clang will search for headers] ) ,,
Original file line number Diff line number Diff line change @@ -1442,6 +1442,9 @@ Optional Packages:
1442
1442
--with-extra-options Specify additional options to compile LLVM with
1443
1443
--with-ocaml-libdir Specify install location for ocaml bindings (default
1444
1444
is stdlib)
1445
+ --with-clang-resource-dir
1446
+ Relative directory from the Clang binary for
1447
+ resource files
1445
1448
--with-c-include-dirs Colon separated list of directories clang will
1446
1449
search for headers
1447
1450
--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" >&
5279
5282
esac
5280
5283
5281
5284
5285
+ # Check whether --with-clang-resource-dir was given.
5286
+ if test "${with_clang_resource_dir+set}" = set; then
5287
+ withval=$with_clang_resource_dir;
5288
+ else
5289
+ withval=""
5290
+ fi
5291
+
5292
+
5293
+ cat >>confdefs.h <<_ACEOF
5294
+ #define CLANG_RESOURCE_DIR "$withval"
5295
+ _ACEOF
5296
+
5297
+
5298
+
5282
5299
# Check whether --with-c-include-dirs was given.
5283
5300
if test "${with_c_include_dirs+set}" = set; then
5284
5301
withval=$with_c_include_dirs;
@@ -11450,7 +11467,7 @@ else
11450
11467
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11451
11468
lt_status=$lt_dlunknown
11452
11469
cat > conftest.$ac_ext <<EOF
11453
- #line 11453 "configure"
11470
+ #line 11470 "configure"
11454
11471
#include "confdefs.h"
11455
11472
11456
11473
#if HAVE_DLFCN_H
Original file line number Diff line number Diff line change 12
12
/* Define if CBE is enabled for printf %a output */
13
13
#undef ENABLE_CBE_PRINTF_A
14
14
15
+ /* Relative directory for resource files */
16
+ #define CLANG_RESOURCE_DIR "${CLANG_RESOURCE_DIR}"
17
+
15
18
/* Directories clang will search for headers */
16
19
#define C_INCLUDE_DIRS "${C_INCLUDE_DIRS}"
17
20
Original file line number Diff line number Diff line change 3
3
#ifndef CONFIG_H
4
4
#define CONFIG_H
5
5
6
+ /* Relative directory for resource files */
7
+ #undef CLANG_RESOURCE_DIR
8
+
6
9
/* 32 bit multilib directory. */
7
10
#undef CXX_INCLUDE_32BIT_DIR
8
11
You can’t perform that action at this time.
0 commit comments