aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-05-03 08:44:39 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-05-03 08:44:39 -0700
commit4d4068e468d989c1b104df4e97cb46e63706e906 (patch)
tree1fc9c68dd059764218ec85ab7f5db532ec2b7460 /configure
parent210aa3ee8519e9024d8b7e44afd910f0a1bb7fe7 (diff)
downloadriscv-gnu-toolchain-4d4068e468d989c1b104df4e97cb46e63706e906.zip
riscv-gnu-toolchain-4d4068e468d989c1b104df4e97cb46e63706e906.tar.gz
riscv-gnu-toolchain-4d4068e468d989c1b104df4e97cb46e63706e906.tar.bz2
Add a "--with-host" argument
I need to set this in order to build the Windows tools.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure37
1 files changed, 24 insertions, 13 deletions
diff --git a/configure b/configure
index cd0cbe0..0ebf2d5 100755
--- a/configure
+++ b/configure
@@ -584,6 +584,7 @@ PACKAGE_URL=''
ac_subst_vars='LTLIBOBJS
LIBOBJS
+configure_host
cmodel
gcc_checking
multilib_names
@@ -627,7 +628,6 @@ infodir
docdir
oldincludedir
includedir
-runstatedir
localstatedir
sharedstatedir
sysconfdir
@@ -657,6 +657,7 @@ with_abi
enable_multilib
enable_gcc_checking
with_cmodel
+with_host
'
ac_precious_vars='build_alias
host_alias
@@ -704,7 +705,6 @@ datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
-runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -957,15 +957,6 @@ do
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
- -runstatedir | --runstatedir | --runstatedi | --runstated \
- | --runstate | --runstat | --runsta | --runst | --runs \
- | --run | --ru | --r)
- ac_prev=runstatedir ;;
- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
- | --run=* | --ru=* | --r=*)
- runstatedir=$ac_optarg ;;
-
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1103,7 +1094,7 @@ fi
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
- libdir localedir mandir runstatedir
+ libdir localedir mandir
do
eval ac_val=\$$ac_var
# Remove trailing slashes.
@@ -1256,7 +1247,6 @@ Fine tuning of the installation directories:
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -1303,6 +1293,9 @@ Optional Packages:
--with-abi=lp64d Sets the base RISC-V ABI, defaults to lp64d
--with-cmodel Select the code model to use when building libc and
libgcc [--with-cmodel=medlow]
+ --with-host=x86_64-w64-mingw32
+ Sets the host for the tools, you probably want
+ nothing
Some influential environment variables:
CC C compiler command
@@ -3332,6 +3325,24 @@ ac_config_files="$ac_config_files scripts/wrapper/awk/awk"
ac_config_files="$ac_config_files scripts/wrapper/sed/sed"
+
+# Check whether --with-host was given.
+if test "${with_host+set}" = set; then :
+ withval=$with_host;
+else
+ with_host=default
+
+fi
+
+
+if test "x$with_host" != xdefault; then :
+ configure_host=--host=$with_host
+
+else
+ configure_host=""
+
+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