llvm.org GIT mirror llvm / 7f9ec91
Add the --with-c-include-dirs to llvm's configure. The clang patch is next. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86955 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 9 years ago
4 changed file(s) with 52 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
312312 # Location of the plugin header file for gold.
313313 BINUTILS_INCDIR := @BINUTILS_INCDIR@
314314
315 C_INCLUDE_DIRS := @C_INCLUDE_DISR@
316
315317 # When ENABLE_LLVMC_DYNAMIC is enabled, LLVMC will link libCompilerDriver
316318 # dynamically. This is needed to make dynamic plugins work on some targets
317319 # (Windows).
666666 *) AC_MSG_ERROR([Invalid path for --with-ocaml-libdir. Provide full path]) ;;
667667 esac
668668
669 AC_ARG_WITH(c-include-dir,
670 AS_HELP_STRING([--with-c-include-dirs],
671 [Colon separated list of directories clang will search for headers]),,
672 withval="")
673 AC_DEFINE_UNQUOTED(C_INCLUDE_DIRS,"$withval",
674 [Directories clang will search for headers])
675
669676 dnl Allow linking of LLVM with GPLv3 binutils code.
670677 AC_ARG_WITH(binutils-include,
671678 AS_HELP_STRING([--with-binutils-include],
16021602 --with-extra-options Specify additional options to compile LLVM with
16031603 --with-ocaml-libdir Specify install location for ocaml bindings (default
16041604 is stdlib)
1605 --with-c-include-dirs Colon separated list of directories clang will
1606 search for headers
16051607 --with-binutils-include Specify path to binutils/include/ containing
16061608 plugin-api.h file for gold plugin.
16071609 --with-tclinclude directory where tcl headers are
52715273 esac
52725274
52735275
5276 # Check whether --with-c-include-dir was given.
5277 if test "${with_c_include_dir+set}" = set; then
5278 withval=$with_c_include_dir;
5279 else
5280 withval=""
5281 fi
5282
5283
5284 cat >>confdefs.h <<_ACEOF
5285 #define C_INCLUDE_DIRS "$withval"
5286 _ACEOF
5287
5288
5289
52745290 # Check whether --with-binutils-include was given.
52755291 if test "${with_binutils_include+set}" = set; then
52765292 withval=$with_binutils_include;
1103511051 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1103611052 lt_status=$lt_dlunknown
1103711053 cat > conftest.$ac_ext <
11038 #line 11039 "configure"
11054 #line 11055 "configure"
1103911055 #include "confdefs.h"
1104011056
1104111057 #if HAVE_DLFCN_H
1317913195 ;;
1318013196 *-*-irix6*)
1318113197 # Find out which ABI we are using.
13182 echo '#line 13183 "configure"' > conftest.$ac_ext
13198 echo '#line 13199 "configure"' > conftest.$ac_ext
1318313199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1318413200 (eval $ac_compile) 2>&5
1318513201 ac_status=$?
1489714913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1489814914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1489914915 -e 's:$: $lt_compiler_flag:'`
14900 (eval echo "\"\$as_me:14901: $lt_compile\"" >&5)
14916 (eval echo "\"\$as_me:14917: $lt_compile\"" >&5)
1490114917 (eval "$lt_compile" 2>conftest.err)
1490214918 ac_status=$?
1490314919 cat conftest.err >&5
14904 echo "$as_me:14905: \$? = $ac_status" >&5
14920 echo "$as_me:14921: \$? = $ac_status" >&5
1490514921 if (exit $ac_status) && test -s "$ac_outfile"; then
1490614922 # The compiler can only warn and ignore the option if not recognized
1490714923 # So say no if there are warnings other than the usual output.
1516515181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1516615182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1516715183 -e 's:$: $lt_compiler_flag:'`
15168 (eval echo "\"\$as_me:15169: $lt_compile\"" >&5)
15184 (eval echo "\"\$as_me:15185: $lt_compile\"" >&5)
1516915185 (eval "$lt_compile" 2>conftest.err)
1517015186 ac_status=$?
1517115187 cat conftest.err >&5
15172 echo "$as_me:15173: \$? = $ac_status" >&5
15188 echo "$as_me:15189: \$? = $ac_status" >&5
1517315189 if (exit $ac_status) && test -s "$ac_outfile"; then
1517415190 # The compiler can only warn and ignore the option if not recognized
1517515191 # So say no if there are warnings other than the usual output.
1526915285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1527015286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1527115287 -e 's:$: $lt_compiler_flag:'`
15272 (eval echo "\"\$as_me:15273: $lt_compile\"" >&5)
15288 (eval echo "\"\$as_me:15289: $lt_compile\"" >&5)
1527315289 (eval "$lt_compile" 2>out/conftest.err)
1527415290 ac_status=$?
1527515291 cat out/conftest.err >&5
15276 echo "$as_me:15277: \$? = $ac_status" >&5
15292 echo "$as_me:15293: \$? = $ac_status" >&5
1527715293 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1527815294 then
1527915295 # The compiler can only warn and ignore the option if not recognized
1772117737 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1772217738 lt_status=$lt_dlunknown
1772317739 cat > conftest.$ac_ext <
17724 #line 17725 "configure"
17740 #line 17741 "configure"
1772517741 #include "confdefs.h"
1772617742
1772717743 #if HAVE_DLFCN_H
1782117837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1782217838 lt_status=$lt_dlunknown
1782317839 cat > conftest.$ac_ext <
17824 #line 17825 "configure"
17840 #line 17841 "configure"
1782517841 #include "confdefs.h"
1782617842
1782717843 #if HAVE_DLFCN_H
2018920205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2019020206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2019120207 -e 's:$: $lt_compiler_flag:'`
20192 (eval echo "\"\$as_me:20193: $lt_compile\"" >&5)
20208 (eval echo "\"\$as_me:20209: $lt_compile\"" >&5)
2019320209 (eval "$lt_compile" 2>conftest.err)
2019420210 ac_status=$?
2019520211 cat conftest.err >&5
20196 echo "$as_me:20197: \$? = $ac_status" >&5
20212 echo "$as_me:20213: \$? = $ac_status" >&5
2019720213 if (exit $ac_status) && test -s "$ac_outfile"; then
2019820214 # The compiler can only warn and ignore the option if not recognized
2019920215 # So say no if there are warnings other than the usual output.
2029320309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2029420310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2029520311 -e 's:$: $lt_compiler_flag:'`
20296 (eval echo "\"\$as_me:20297: $lt_compile\"" >&5)
20312 (eval echo "\"\$as_me:20313: $lt_compile\"" >&5)
2029720313 (eval "$lt_compile" 2>out/conftest.err)
2029820314 ac_status=$?
2029920315 cat out/conftest.err >&5
20300 echo "$as_me:20301: \$? = $ac_status" >&5
20316 echo "$as_me:20317: \$? = $ac_status" >&5
2030120317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2030220318 then
2030320319 # The compiler can only warn and ignore the option if not recognized
2186321879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2186421880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2186521881 -e 's:$: $lt_compiler_flag:'`
21866 (eval echo "\"\$as_me:21867: $lt_compile\"" >&5)
21882 (eval echo "\"\$as_me:21883: $lt_compile\"" >&5)
2186721883 (eval "$lt_compile" 2>conftest.err)
2186821884 ac_status=$?
2186921885 cat conftest.err >&5
21870 echo "$as_me:21871: \$? = $ac_status" >&5
21886 echo "$as_me:21887: \$? = $ac_status" >&5
2187121887 if (exit $ac_status) && test -s "$ac_outfile"; then
2187221888 # The compiler can only warn and ignore the option if not recognized
2187321889 # So say no if there are warnings other than the usual output.
2196721983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2196821984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2196921985 -e 's:$: $lt_compiler_flag:'`
21970 (eval echo "\"\$as_me:21971: $lt_compile\"" >&5)
21986 (eval echo "\"\$as_me:21987: $lt_compile\"" >&5)
2197121987 (eval "$lt_compile" 2>out/conftest.err)
2197221988 ac_status=$?
2197321989 cat out/conftest.err >&5
21974 echo "$as_me:21975: \$? = $ac_status" >&5
21990 echo "$as_me:21991: \$? = $ac_status" >&5
2197521991 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2197621992 then
2197721993 # The compiler can only warn and ignore the option if not recognized
2420224218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2420324219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2420424220 -e 's:$: $lt_compiler_flag:'`
24205 (eval echo "\"\$as_me:24206: $lt_compile\"" >&5)
24221 (eval echo "\"\$as_me:24222: $lt_compile\"" >&5)
2420624222 (eval "$lt_compile" 2>conftest.err)
2420724223 ac_status=$?
2420824224 cat conftest.err >&5
24209 echo "$as_me:24210: \$? = $ac_status" >&5
24225 echo "$as_me:24226: \$? = $ac_status" >&5
2421024226 if (exit $ac_status) && test -s "$ac_outfile"; then
2421124227 # The compiler can only warn and ignore the option if not recognized
2421224228 # So say no if there are warnings other than the usual output.
2447024486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2447124487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2447224488 -e 's:$: $lt_compiler_flag:'`
24473 (eval echo "\"\$as_me:24474: $lt_compile\"" >&5)
24489 (eval echo "\"\$as_me:24490: $lt_compile\"" >&5)
2447424490 (eval "$lt_compile" 2>conftest.err)
2447524491 ac_status=$?
2447624492 cat conftest.err >&5
24477 echo "$as_me:24478: \$? = $ac_status" >&5
24493 echo "$as_me:24494: \$? = $ac_status" >&5
2447824494 if (exit $ac_status) && test -s "$ac_outfile"; then
2447924495 # The compiler can only warn and ignore the option if not recognized
2448024496 # So say no if there are warnings other than the usual output.
2457424590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2457524591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2457624592 -e 's:$: $lt_compiler_flag:'`
24577 (eval echo "\"\$as_me:24578: $lt_compile\"" >&5)
24593 (eval echo "\"\$as_me:24594: $lt_compile\"" >&5)
2457824594 (eval "$lt_compile" 2>out/conftest.err)
2457924595 ac_status=$?
2458024596 cat out/conftest.err >&5
24581 echo "$as_me:24582: \$? = $ac_status" >&5
24597 echo "$as_me:24598: \$? = $ac_status" >&5
2458224598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2458324599 then
2458424600 # The compiler can only warn and ignore the option if not recognized
99
1010 /* Define to 1 if using `alloca.c'. */
1111 #undef C_ALLOCA
12
13 /* Directories clang will search for headers */
14 #undef C_INCLUDE_DIRS
1215
1316 /* Define if CBE is enabled for printf %a output */
1417 #undef ENABLE_CBE_PRINTF_A