aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2013-01-31 00:14:59 +0000
committerThomas Adam <thomas@xteddy.org>2013-01-31 00:14:59 +0000
commitfe00607816308953209cb85ab92a586c1f344cde (patch)
tree305f0201f827bc6ac784778a113409cbd7b71296
parent6e6d75610970c385c80e896a38a004985fd0ae7d (diff)
downloadrtmux-fe00607816308953209cb85ab92a586c1f344cde.tar.gz
rtmux-fe00607816308953209cb85ab92a586c1f344cde.tar.bz2
rtmux-fe00607816308953209cb85ab92a586c1f344cde.zip
Only set AUTO{MAKE,CONF}_VERSION on OpenBSD
OpenBSD requires the presence of AUTOMAKE_VERSION and AUTOCONF_VERSION for bootstrapping purposes. Setting these on any other system requires that explicit version to be used, rather than what might already be installed. Therefore, only do this when the platform is OpenBSD and ignore everything else.
-rwxr-xr-xautogen.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index a3cc9377..300b54db 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,8 +1,10 @@
#!/bin/sh
# $Id$
-[ -z "$AUTOMAKE_VERSION" ] && export AUTOMAKE_VERSION=1.10
-[ -z "$AUTOCONF_VERSION" ] && export AUTOCONF_VERSION=2.65
+if [ "x$(uname)" = "xOpenBSD" ]; then
+ [ -z "$AUTOMAKE_VERSION" ] && export AUTOMAKE_VERSION=1.10
+ [ -z "$AUTOCONF_VERSION" ] && export AUTOCONF_VERSION=2.65
+fi
die()
{