mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
Fix a few build problems on Solaris (and check for an md5 utility in
configure instead of the icky loop I was doing before). (closes issue #13842) Reported by: snuffy Patches: bug13842_20081106.diff uploaded by snuffy (license 35) 13842.diff uploaded by seanbright (license 71) Tested by: snuffy git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -26,13 +26,8 @@ then
|
||||
echo "#define AST_DEVMODE 1"
|
||||
TMP="${TMP} AST_DEVMODE"
|
||||
fi
|
||||
for x in md5 digest md5sum gmd5sum; do
|
||||
BUILDSUM=`echo ${TMP} | $x 2> /dev/null`
|
||||
if [ $? = 0 ]; then
|
||||
BUILDSUM=`echo ${BUILDSUM} | cut -c1-32`
|
||||
break;
|
||||
fi
|
||||
done
|
||||
|
||||
BUILDSUM=`echo ${TMP} | ${MD5} | cut -c1-32`
|
||||
|
||||
echo "#define AST_BUILDOPT_SUM \"${BUILDSUM}\""
|
||||
echo "#define AST_BUILDOPTS \"${BUILDOPTS}\""
|
||||
|
||||
Reference in New Issue
Block a user