llvm.org GIT mirror llvm / 7e5c316
add configure flag --with-default-sysroot git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154791 91177308-0d34-0410-b5e6-96231b3b80d8 Sebastian Pop 7 years ago
4 changed file(s) with 27 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
837837 AC_DEFINE_UNQUOTED(GCC_INSTALL_PREFIX,"$withval",
838838 [Directory where gcc is installed.])
839839
840 AC_ARG_WITH(sysroot,
841 AS_HELP_STRING([--with-default-sysroot],
842 [Add --sysroot= to all compiler invocations.]),,
843 withval="")
844 AC_DEFINE_UNQUOTED(DEFAULT_SYSROOT,"$withval",
845 [Default to all compiler invocations for --sysroot=.])
846
840847 dnl Allow linking of LLVM with GPLv3 binutils code.
841848 AC_ARG_WITH(binutils-include,
842849 AS_HELP_STRING([--with-binutils-include],
14411441 --with-c-include-dirs Colon separated list of directories clang will
14421442 search for headers
14431443 --with-gcc-toolchain Directory where gcc is installed.
1444 --with-default-sysroot Add --sysroot= to all compiler invocations.
14441445 --with-binutils-include Specify path to binutils/include/ containing
14451446 plugin-api.h file for gold plugin.
14461447 --with-bug-report-url Specify the URL where bug reports should be
38013802 llvm_cv_target_os_type="Darwin" ;;
38023803 *-*-minix*)
38033804 llvm_cv_target_os_type="Minix" ;;
3804 *-*-freebsd*| *-*-kfreebsd-gnu)
3805 *-*-freebsd* | *-*-kfreebsd-gnu)
38053806 llvm_cv_target_os_type="FreeBSD" ;;
38063807 *-*-openbsd*)
38073808 llvm_cv_target_os_type="OpenBSD" ;;
55785579
55795580 cat >>confdefs.h <<_ACEOF
55805581 #define GCC_INSTALL_PREFIX "$withval"
5582 _ACEOF
5583
5584
5585
5586 # Check whether --with-sysroot was given.
5587 if test "${with_sysroot+set}" = set; then
5588 withval=$with_sysroot;
5589 else
5590 withval=""
5591 fi
5592
5593
5594 cat >>confdefs.h <<_ACEOF
5595 #define DEFAULT_SYSROOT "$withval"
55815596 _ACEOF
55825597
55835598
1038510400 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1038610401 lt_status=$lt_dlunknown
1038710402 cat > conftest.$ac_ext <
10388 #line 10387 "configure"
10403 #line 10404 "configure"
1038910404 #include "confdefs.h"
1039010405
1039110406 #if HAVE_DLFCN_H
1010 /* Relative directory for resource files */
1111 #define CLANG_RESOURCE_DIR "${CLANG_RESOURCE_DIR}"
1212
13 /* Directory wherelibstdc++ is installed. */
14 #define GCC_INSTALL_PREFIX "${GCC_INSTALL_PREFIX}"
15
1613 /* Directories clang will search for headers */
1714 #define C_INCLUDE_DIRS "${C_INCLUDE_DIRS}"
1815
1010
1111 /* Directories clang will search for headers */
1212 #undef C_INCLUDE_DIRS
13
14 /* Default to all compiler invocations for --sysroot=. */
15 #undef DEFAULT_SYSROOT
1316
1417 /* Define if position independent code is enabled */
1518 #undef ENABLE_PIC