aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2019-09-20 18:19:24 +0800
committerKito Cheng <kito.cheng@sifive.com>2019-09-27 11:25:32 +0800
commite708c776877aba27c9a3b659ac539a7e38553a27 (patch)
tree17993f68b1fb6916584fc277710c1baa523add0c /configure
parenta528df4a69b438a031501687ecefde63437b5f39 (diff)
downloadriscv-gnu-toolchain-e708c776877aba27c9a3b659ac539a7e38553a27.zip
riscv-gnu-toolchain-e708c776877aba27c9a3b659ac539a7e38553a27.tar.gz
riscv-gnu-toolchain-e708c776877aba27c9a3b659ac539a7e38553a27.tar.bz2
Add option to specify source tree of each component
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure160
1 files changed, 160 insertions, 0 deletions
diff --git a/configure b/configure
index 4305ed4..ce43441 100755
--- a/configure
+++ b/configure
@@ -584,6 +584,13 @@ PACKAGE_URL=''
ac_subst_vars='LTLIBOBJS
LIBOBJS
+with_linux_headers_src
+with_gdb_src
+with_musl_src
+with_glibc_src
+with_newlib_src
+with_binutils_src
+with_gcc_src
enable_gdb
with_guile
with_system_zlib
@@ -667,6 +674,13 @@ with_host
with_system_zlib
with_guile
enable_gdb
+with_gcc_src
+with_binutils_src
+with_newlib_src
+with_glibc_src
+with_musl_src
+with_gdb_src
+with_linux_headers_src
'
ac_precious_vars='build_alias
host_alias
@@ -1318,6 +1332,17 @@ Optional Packages:
nothing
--without-system-zlib use the builtin copy of zlib from GCC
--with-guile Set which guile to use, if any
+ --with-gcc-src Set gcc source path, use builtin source by default
+ --with-binutils-src Set binutils source path, use builtin source by
+ default
+ --with-newlib-src Set newlib source path, use builtin source by
+ default
+ --with-glibc-src Set glibc source path, use builtin source by default
+ --with-musl-src Set musl source path, use builtin source by default
+ --with-gdb-src Set gdb source path, use builtin source by default
+ --with-linux-headers-src
+ Set linux-headers source path, use builtin source by
+ default
Some influential environment variables:
CC C compiler command
@@ -3434,6 +3459,141 @@ else
fi
+
+
+{
+
+# Check whether --with-gcc-src was given.
+if test "${with_gcc_src+set}" = set; then :
+ withval=$with_gcc_src;
+else
+ with_gcc_src=default
+
+fi
+
+ if test "x$with_gcc_src" != xdefault; then :
+ with_gcc_src=$with_gcc_src
+
+else
+ with_gcc_src="\$(srcdir)/riscv-gcc"
+
+fi
+
+ }
+{
+
+# Check whether --with-binutils-src was given.
+if test "${with_binutils_src+set}" = set; then :
+ withval=$with_binutils_src;
+else
+ with_binutils_src=default
+
+fi
+
+ if test "x$with_binutils_src" != xdefault; then :
+ with_binutils_src=$with_binutils_src
+
+else
+ with_binutils_src="\$(srcdir)/riscv-binutils"
+
+fi
+
+ }
+{
+
+# Check whether --with-newlib-src was given.
+if test "${with_newlib_src+set}" = set; then :
+ withval=$with_newlib_src;
+else
+ with_newlib_src=default
+
+fi
+
+ if test "x$with_newlib_src" != xdefault; then :
+ with_newlib_src=$with_newlib_src
+
+else
+ with_newlib_src="\$(srcdir)/riscv-newlib"
+
+fi
+
+ }
+{
+
+# Check whether --with-glibc-src was given.
+if test "${with_glibc_src+set}" = set; then :
+ withval=$with_glibc_src;
+else
+ with_glibc_src=default
+
+fi
+
+ if test "x$with_glibc_src" != xdefault; then :
+ with_glibc_src=$with_glibc_src
+
+else
+ with_glibc_src="\$(srcdir)/riscv-glibc"
+
+fi
+
+ }
+{
+
+# Check whether --with-musl-src was given.
+if test "${with_musl_src+set}" = set; then :
+ withval=$with_musl_src;
+else
+ with_musl_src=default
+
+fi
+
+ if test "x$with_musl_src" != xdefault; then :
+ with_musl_src=$with_musl_src
+
+else
+ with_musl_src="\$(srcdir)/riscv-musl"
+
+fi
+
+ }
+{
+
+# Check whether --with-gdb-src was given.
+if test "${with_gdb_src+set}" = set; then :
+ withval=$with_gdb_src;
+else
+ with_gdb_src=default
+
+fi
+
+ if test "x$with_gdb_src" != xdefault; then :
+ with_gdb_src=$with_gdb_src
+
+else
+ with_gdb_src="\$(srcdir)/riscv-gdb"
+
+fi
+
+ }
+
+
+# Check whether --with-linux-headers-src was given.
+if test "${with_linux_headers_src+set}" = set; then :
+ withval=$with_linux_headers_src;
+else
+ with_linux_headers_src=default
+
+fi
+
+
+if test "x$with_linux_headers_src" != xdefault; then :
+ with_linux_headers_src=$with_linux_headers_src
+
+else
+ with_linux_headers_src="\$(srcdir)/linux-headers"
+
+fi
+
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure