diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-20 19:12:52 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-20 19:12:52 +0000 |
commit | feb6455c27b594d3da0dd96fe5c519a49c04c337 (patch) | |
tree | af59f272fdab5c0ecb7b1dc1e2b348ff25f3d2bb /build_tools | |
parent | e4f591091a1c38d9c4eb6e272d21e7c37e7221aa (diff) |
bring back compile-option checking when loading modules, only this time use a string-based storage and comparison mechanism because it is easier to support on other platforms
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89461 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/make_buildopts_h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build_tools/make_buildopts_h b/build_tools/make_buildopts_h index ac41a006a..531bb93a6 100755 --- a/build_tools/make_buildopts_h +++ b/build_tools/make_buildopts_h @@ -14,4 +14,16 @@ done if ${GREP} AST_DEVMODE makeopts | ${GREP} -q yes then echo "#define AST_DEVMODE 1" + TMP="${TMP} AST_DEVMODE" fi + +case ${OSARCH} in # actually we should check build_os +*BSD|mingw|darwin*) + BUILDSUM=`echo ${TMP} | md5 | cut -c1-32` + ;; +*) + BUILDSUM=`echo ${TMP} | md5sum | cut -c1-32` + ;; +esac + +echo "#define AST_BUILDOPT_SUM \"${BUILDSUM}\"" |