Fix example that could fail in certain circumstances
[asterisk/asterisk.git] / build_tools / make_buildopts_h
index 8409f80..4f02896 100755 (executable)
@@ -27,18 +27,7 @@ then
        TMP="${TMP} AST_DEVMODE"
 fi
 
-case ${OSARCH} in      # actually we should check build_os
-*BSD|mingw|darwin*)
-       BUILDSUM=`echo ${TMP} | md5 | cut -c1-32`
-       ;;
-SunOS)
-       BUILDSUM=`echo ${TMP} | digest -a md5 | cut -c1-32`
-       ;;
-*)
-       BUILDSUM=`echo ${TMP} | md5sum | cut -c1-32`
-       ;;
-esac
+BUILDSUM=`echo ${TMP} | ${MD5} | cut -c1-32`
 
 echo "#define AST_BUILDOPT_SUM \"${BUILDSUM}\""
-
 echo "#define AST_BUILDOPTS \"${BUILDOPTS}\""