* Use acr-hg to fix gnu/hurd OS identification

This commit is contained in:
pancake 2011-11-07 18:17:29 +01:00
parent 6b585d7a36
commit ba387e0014
2 changed files with 14 additions and 24 deletions

19
configure vendored
View File

@ -64,8 +64,8 @@ if [ -e "${VPATH}/config.guess" ]; then
sh ${VPATH}/config.guess
return
fi
CPU="`uname -m|sed -e 's, ,,g'`"
OS="`uname -s|tr '[A-Z]' '[a-z]'`"
CPU="`uname -m|sed -e 's, ,,g'|cut -d - -f 1`"
OS="`uname -s|tr A-Z a-z`"
GNU="`uname --help 2>&1 | grep gnu`"
[ "${GNU}" ] && OS="${OS}-gnu"
[ "${CPU}" = ppc ] && CPU="powerpc"
@ -147,8 +147,7 @@ System types:
--target=TARGET configure for building compilers for TARGET [HOST]
EOF2
printf "
Optional Features:
printf "\nOptional Features:
--without-debugger disable native debugger features
--with-sysmagic force to use system's magic
--without-ewf disable EWF dependency
@ -160,20 +159,16 @@ Optional Features:
--with-ostype Choose OS type ( gnulinux windows darwin ) (USEROSTYPE=auto)
--without-pic do not build libr as a program independent location
--with-nonpic build the library archives .a
--with-libversion specify different libversion (LIBVERSION=xxx)
"
printf "
Some influential environment variables:
--with-libversion specify different libversion (LIBVERSION=xxx)\n"
printf "\nSome influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
headers in a nonstandard directory <include dir>
CPP C preprocessor
"
printf "
Report bugs to: pancake <pancake@nopcode.org>"
CPP C preprocessor\n"
printf "\nReport bugs to: pancake <pancake@nopcode.org>"
echo ""
exit 0
}

19
r2-bindings/configure vendored
View File

@ -56,8 +56,8 @@ if [ -e "${VPATH}/config.guess" ]; then
sh ${VPATH}/config.guess
return
fi
CPU="`uname -m|sed -e 's, ,,g'`"
OS="`uname -s|tr '[A-Z]' '[a-z]'`"
CPU="`uname -m|sed -e 's, ,,g'|cut -d - -f 1`"
OS="`uname -s|tr A-Z a-z`"
GNU="`uname --help 2>&1 | grep gnu`"
[ "${GNU}" ] && OS="${OS}-gnu"
[ "${CPU}" = ppc ] && CPU="powerpc"
@ -139,15 +139,12 @@ System types:
--target=TARGET configure for building compilers for TARGET [HOST]
EOF2
printf "
Optional Features:
printf "\nOptional Features:
--enable-devel Enable development mode (use valabind and swig)
--with-cc Define C compiler to use (gcc by default) (USERCC=gcc)
--with-cxx Define C++ compiler to use (g++ by default) (USERCXX=g++)
--with-ostype Choose OS type (gnulinux windows darwin) (USEROSTYPE=auto)
"
printf "
Some influential environment variables:
--with-ostype Choose OS type (gnulinux windows darwin) (USEROSTYPE=auto)\n"
printf "\nSome influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
@ -156,10 +153,8 @@ Some influential environment variables:
headers in a nonstandard directory <include dir>
CPP C preprocessor
CXX C++ compiler command
CXXFLAGS C++ compiler flags
"
printf "
Report bugs to: pancake <pancake@nopcode.org>"
CXXFLAGS C++ compiler flags\n"
printf "\nReport bugs to: pancake <pancake@nopcode.org>"
echo ""
exit 0
}