aboutsummaryrefslogtreecommitdiffstats
path: root/build_tools
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-20 19:28:10 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-20 19:28:10 +0000
commit7c35bb6a7fda6c77e95fe51f46d7ec5718b0dbd9 (patch)
tree701ffac4f50e61ff45768be53542952dd98fa10c /build_tools
parentefe22b0c45b523db3c02dc092560f5c814b9e18f (diff)
switch compile-time option checking to string storage mode in this branch too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89463 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/make_buildopts_h8
1 files changed, 4 insertions, 4 deletions
diff --git a/build_tools/make_buildopts_h b/build_tools/make_buildopts_h
index 3c09a661c..b98d875a0 100755
--- a/build_tools/make_buildopts_h
+++ b/build_tools/make_buildopts_h
@@ -24,11 +24,11 @@ fi
case ${OSARCH} in # actually we should check build_os
*BSD|mingw|darwin*)
- BUILDSUM=`echo ${TMP} | md5`
- echo "#define AST_BUILDOPT_SUM {0x0, 0x0, 0x0, 0x0} /* dummy */"
+ BUILDSUM=`echo ${TMP} | md5 | cut -c1-32`
;;
*)
- BUILDSUM=`echo ${TMP} | md5sum`
- echo "#define AST_BUILDOPT_SUM { 0x`echo -n ${BUILDSUM} | cut -c1-8`, 0x`echo -n ${BUILDSUM} | cut -c9-16`, 0x`echo -n ${BUILDSUM} | cut -c17-24`, 0x`echo -n ${BUILDSUM} | cut -c25-32` }"
+ BUILDSUM=`echo ${TMP} | md5sum | cut -c1-32`
;;
esac
+
+echo "#define AST_BUILDOPT_SUM \"${BUILDSUM}\""