summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-05-16 22:06:01 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-05-16 22:06:01 +0000
commitc111310600fd8f15a9682e342a005ba5d54177d8 (patch)
tree529975e8a7a78ab5c6165bd8dba95798fc973098 /configure
parentd58bfe5f0a3f073cfaf81c76868672814fbd2a64 (diff)
Use a better variable name and allow the uname to be overridden.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 8 insertions, 8 deletions
diff --git a/configure b/configure
index 68416212..6fd96057 100755
--- a/configure
+++ b/configure
@@ -1,15 +1,15 @@
#!/bin/sh
-# $Id: configure,v 1.10 2009-05-14 19:49:26 nicm Exp $
+# $Id: configure,v 1.11 2009-05-16 22:06:01 nicm Exp $
-UNAME=`uname -s`
+TMUX_PLATFORM=${TMUX_PLATFORM:-`uname -s`}
CONFIG_H=config.h
-CONFIG_MK=config.mk
+echo "/* $TMUX_PLATFORM */" >$CONFIG_H
-echo "/* $UNAME */" >$CONFIG_H
-echo "# $UNAME" >$CONFIG_MK
+CONFIG_MK=config.mk
+echo "# $TMUX_PLATFORM" >$CONFIG_MK
-case $UNAME in
+case $TMUX_PLATFORM in
# ------------------------------------------------------------------------------
OpenBSD)
cat <<EOF >>$CONFIG_H
@@ -174,9 +174,9 @@ EOF
;;
# ------------------------------------------------------------------------------
*)
- echo Unable to configure for $UNAME
+ echo Unable to configure for $TMUX_PLATFORM
exit 1
esac
-echo Configured for $UNAME
+echo Configured for $TMUX_PLATFORM
exit 0