Allow overriding system detection in configure
This commit is contained in:
parent
9716a2ed7e
commit
707b623ea8
1 changed files with 16 additions and 2 deletions
18
configure
vendored
18
configure
vendored
|
@ -194,6 +194,11 @@ Fine tuning of the installation directories:
|
||||||
--infodir=DIR info documentation [PREFIX/info]
|
--infodir=DIR info documentation [PREFIX/info]
|
||||||
--mandir=DIR man documentation [PREFIX/man]
|
--mandir=DIR man documentation [PREFIX/man]
|
||||||
|
|
||||||
|
Overriding system detection when cross-compiling:
|
||||||
|
--host-system=OS Specify system name (uname -s)
|
||||||
|
--host-release=REL Specify system release (uname -r)
|
||||||
|
--host-machine=CPU Specify machine (uname -m)
|
||||||
|
|
||||||
Some influential environment variables:
|
Some influential environment variables:
|
||||||
CC C compiler command
|
CC C compiler command
|
||||||
CFLAGS C compiler flags
|
CFLAGS C compiler flags
|
||||||
|
@ -219,8 +224,6 @@ OPERATINGSYSTEM=`uname -s`
|
||||||
VERSION=`uname -r`
|
VERSION=`uname -r`
|
||||||
MACHINE=`uname -m`
|
MACHINE=`uname -m`
|
||||||
|
|
||||||
SYSTEM=${OPERATINGSYSTEM}-${MACHINE}
|
|
||||||
|
|
||||||
EXTRA_LIBS=""
|
EXTRA_LIBS=""
|
||||||
EXTRA_CLI_LIBS=""
|
EXTRA_CLI_LIBS=""
|
||||||
EXTRA_OBJECTS=""
|
EXTRA_OBJECTS=""
|
||||||
|
@ -280,6 +283,15 @@ do
|
||||||
--enable-linuxcaps)
|
--enable-linuxcaps)
|
||||||
feat_linuxcaps=1
|
feat_linuxcaps=1
|
||||||
;;
|
;;
|
||||||
|
--host-system=* )
|
||||||
|
OPERATINGSYSTEM=`echo $option | sed -e 's/^.*=//;'`
|
||||||
|
;;
|
||||||
|
--host-release=* )
|
||||||
|
VERSION=`echo $option | sed -e 's/^.*=//;'`
|
||||||
|
;;
|
||||||
|
--host-machine=* )
|
||||||
|
MACHINE=`echo $option | sed -e 's/^.*=//;'`
|
||||||
|
;;
|
||||||
--help | -h )
|
--help | -h )
|
||||||
usage
|
usage
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -289,6 +301,8 @@ do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
SYSTEM=${OPERATINGSYSTEM}-${MACHINE}
|
||||||
|
|
||||||
case $SYSTEM in
|
case $SYSTEM in
|
||||||
SunOS-sun4* )
|
SunOS-sun4* )
|
||||||
case $VERSION in
|
case $VERSION in
|
||||||
|
|
Loading…
Reference in a new issue