diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |