diff --git a/build/autoconf/nspr.m4 b/build/autoconf/nspr.m4 index 4be1abb2f7e..2c866eccd89 100644 --- a/build/autoconf/nspr.m4 +++ b/build/autoconf/nspr.m4 @@ -64,25 +64,17 @@ AC_ARG_WITH(nspr-exec-prefix, if test -z "$no_nspr"; then nspr_config_major_version=`echo $NSPR_VERSION_STRING | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\{0,1\}/\1/'` + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` nspr_config_minor_version=`echo $NSPR_VERSION_STRING | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\{0,1\}/\2/'` + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` nspr_config_micro_version=`echo $NSPR_VERSION_STRING | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\{0,1\}/\4/'` - if test -z "$nspr_config_micro_version"; then - nspr_config_micro_version="0" - fi - + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` min_nspr_major_version=`echo $min_nspr_version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\{0,1\}/\1/'` + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` min_nspr_minor_version=`echo $min_nspr_version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\{0,1\}/\2/'` + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` min_nspr_micro_version=`echo $min_nspr_version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\{0,1\}/\4/'` - if test -z "$min_nspr_micro_version"; then - min_nspr_micro_version="0" - fi - + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "$nspr_config_major_version" -ne "$min_nspr_major_version"; then no_nspr="yes" elif test "$nspr_config_major_version" -eq "$min_nspr_major_version" && diff --git a/build/autoconf/nss.m4 b/build/autoconf/nss.m4 index 91c89f399ec..672500c5ae2 100644 --- a/build/autoconf/nss.m4 +++ b/build/autoconf/nss.m4 @@ -45,25 +45,17 @@ AC_ARG_WITH(nss-exec-prefix, NSS_LIBS=`$NSS_CONFIG $nss_config_args --libs` nss_config_major_version=`$NSS_CONFIG $nss_config_args --version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\{0,1\}/\1/'` + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` nss_config_minor_version=`$NSS_CONFIG $nss_config_args --version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\{0,1\}/\2/'` + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` nss_config_micro_version=`$NSS_CONFIG $nss_config_args --version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\{0,1\}/\4/'` - if test -z "$nss_config_micro_version"; then - nss_config_micro_version="0" - fi - + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` min_nss_major_version=`echo $min_nss_version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\{0,1\}/\1/'` + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` min_nss_minor_version=`echo $min_nss_version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\{0,1\}/\2/'` + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` min_nss_micro_version=`echo $min_nss_version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\{0,1\}/\4/'` - if test -z "$min_nss_micro_version"; then - min_nss_micro_version="0" - fi - + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "$nss_config_major_version" -lt "$min_nss_major_version"; then no_nss="yes" elif test "$nss_config_major_version" -eq "$min_nss_major_version" &&