Let's also include aclocal.m4
[asterisk-bristuff.git] / build_tools / make_buildopts_h
blob531bb93a6a40607899b2aadc16b8233ab4a01a06
1 #!/bin/sh
3 cat << END
4 /*
5 * buildopts.h
6 * Automatically generated
7 */
9 END
10 TMP=`${GREP} MENUSELECT_CFLAGS menuselect.makeopts | sed 's/MENUSELECT_CFLAGS\=//g' | sed 's/-D//g'`
11 for x in ${TMP}; do
12 echo "#define ${x} 1"
13 done
14 if ${GREP} AST_DEVMODE makeopts | ${GREP} -q yes
15 then
16 echo "#define AST_DEVMODE 1"
17 TMP="${TMP} AST_DEVMODE"
20 case ${OSARCH} in # actually we should check build_os
21 *BSD|mingw|darwin*)
22 BUILDSUM=`echo ${TMP} | md5 | cut -c1-32`
25 BUILDSUM=`echo ${TMP} | md5sum | cut -c1-32`
27 esac
29 echo "#define AST_BUILDOPT_SUM \"${BUILDSUM}\""