aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJonathan Gray2003-05-18 09:54:28 +0000
committerJonathan Gray2003-05-18 09:54:28 +0000
commit068a5eda7184bdd8d011e1f7ad861579d3c9df51 (patch)
treebc3a6f10fc092c5eb4e19234b4d74a0ae8cdc9a2 /configure
parent61a1368a7d678f707ff7e29544e1eb592690d5c2 (diff)
downloadscummvm-rg350-068a5eda7184bdd8d011e1f7ad861579d3c9df51.tar.gz
scummvm-rg350-068a5eda7184bdd8d011e1f7ad861579d3c9df51.tar.bz2
scummvm-rg350-068a5eda7184bdd8d011e1f7ad861579d3c9df51.zip
make configure script output a config.mak
svn-id: r7625
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 17 insertions, 1 deletions
diff --git a/configure b/configure
index cd7e49187c..68f3db8ad5 100755
--- a/configure
+++ b/configure
@@ -26,6 +26,8 @@ _alsa=auto
_build_scumm=yes
_build_simon=yes
_build_sky=yes
+# binary names
+_ranlib=ranlib
echocheck () {
@@ -192,9 +194,13 @@ printf "Checking hosttype... "
hosttype=`uname -s`
echo $hosttype
case $hosttype in
- Linux)
+ Linux | OpenBSD | FreeBSD | NetBSD | BSD/OS | SunOS | HP-UX)
echo "#define UNIX" >> config.h
;;
+ IRIX)
+ echo "#define UNIX" >> config.h
+ ranlib=ar -r
+ ;;
Darwin)
echo "#define UNIX" >> config.h
echo "#define MACOSX" >> config.h
@@ -325,3 +331,13 @@ echo "$_alsa"
#
echo "" >> 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