summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure b/configure
index 38437a33..438fc83a 100755
--- a/configure
+++ b/configure
@@ -32,8 +32,8 @@ if [ "$sysname" = "" ]; then
fi;;
Linux)
release=`uname -r`
- minor=`echo $release |sed -e 's/[0-9]*\.\([0-9][0-9]*\)$/\1/'`
- major=`echo $release |sed -e 's/\([0-9][0-9]*\)\.[0-9]*$/\1/'`
+ minor=`echo $release |sed -e 's/[0-9]*\.\([0-9][0-9]*\)\(\..*\)*$/\1/'`
+ major=`echo $release |sed -e 's/\([0-9][0-9]*\)\..*$/\1/'`
case $major in
1) sysname=linux-1 ;;
@@ -95,9 +95,10 @@ if [ "$sysname" = "" ]; then
fi
echo "System Type: $sysname"
+
if [ x$major != x ] && [ x$minor != x ]; then
majversubst="-e /^##--majver--/,/^##--majver--/s/MajorVersion/$major/"
- majversubst="-e /^##--minver--/,/^##--minver--/s/MinorVersion/$minor/"
+ minversubst="-e /^##--minver--/,/^##--minver--/s/MinorVersion/$minor/"
fi
for foo in . client server relay common; do