make configure script output a config.mak
svn-id: r7625
This commit is contained in:
parent
61a1368a7d
commit
068a5eda71
2 changed files with 18 additions and 1 deletions
|
@ -4,5 +4,6 @@
|
||||||
ChangeLog
|
ChangeLog
|
||||||
build.rules
|
build.rules
|
||||||
config.h
|
config.h
|
||||||
|
config.mak
|
||||||
scummvm
|
scummvm
|
||||||
ScummVM.app
|
ScummVM.app
|
||||||
|
|
18
configure
vendored
18
configure
vendored
|
@ -26,6 +26,8 @@ _alsa=auto
|
||||||
_build_scumm=yes
|
_build_scumm=yes
|
||||||
_build_simon=yes
|
_build_simon=yes
|
||||||
_build_sky=yes
|
_build_sky=yes
|
||||||
|
# binary names
|
||||||
|
_ranlib=ranlib
|
||||||
|
|
||||||
|
|
||||||
echocheck () {
|
echocheck () {
|
||||||
|
@ -192,9 +194,13 @@ printf "Checking hosttype... "
|
||||||
hosttype=`uname -s`
|
hosttype=`uname -s`
|
||||||
echo $hosttype
|
echo $hosttype
|
||||||
case $hosttype in
|
case $hosttype in
|
||||||
Linux)
|
Linux | OpenBSD | FreeBSD | NetBSD | BSD/OS | SunOS | HP-UX)
|
||||||
echo "#define UNIX" >> config.h
|
echo "#define UNIX" >> config.h
|
||||||
;;
|
;;
|
||||||
|
IRIX)
|
||||||
|
echo "#define UNIX" >> config.h
|
||||||
|
ranlib=ar -r
|
||||||
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
echo "#define UNIX" >> config.h
|
echo "#define UNIX" >> config.h
|
||||||
echo "#define MACOSX" >> config.h
|
echo "#define MACOSX" >> config.h
|
||||||
|
@ -325,3 +331,13 @@ echo "$_alsa"
|
||||||
#
|
#
|
||||||
echo "" >> config.h
|
echo "" >> config.h
|
||||||
echo "#endif /* CONFIG_H */" >> config.h
|
echo "#endif /* CONFIG_H */" >> config.h
|
||||||
|
|
||||||
|
echo "Creating config.mak"
|
||||||
|
cat > config.mak << EOF
|
||||||
|
# -------- Generated by configure -----------
|
||||||
|
|
||||||
|
CXX = $CXX
|
||||||
|
LIBS = $LIBS
|
||||||
|
RANLIB = $_ranlib
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue