summaryrefslogtreecommitdiffstats
path: root/meta/classes/autotools.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/autotools.bbclass')
-rw-r--r--meta/classes/autotools.bbclass21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 4c4bf8775d..a5997c55e0 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -89,6 +89,27 @@ oe_runconf () {
89 89
90AUTOTOOLS_AUXDIR ?= "${S}" 90AUTOTOOLS_AUXDIR ?= "${S}"
91 91
92CONFIGURESTAMPFILE = "${WORKDIR}/configure.sstate"
93
94autotools_preconfigure() {
95 if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then
96 if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${S}" != "${B}" ]; then
97 echo "Previously configured separate build directory detected, cleaning ${B}"
98 rm -rf ${B}
99 mkdir ${B}
100 fi
101 fi
102}
103
104autotools_postconfigure(){
105 if [ -n "${CONFIGURESTAMPFILE}" ]; then
106 echo ${BB_TASKHASH} > ${CONFIGURESTAMPFILE}
107 fi
108}
109
110do_configure[prefuncs] += "autotools_preconfigure"
111do_configure[postfuncs] += "autotools_postconfigure"
112
92autotools_do_configure() { 113autotools_do_configure() {
93 case ${PN} in 114 case ${PN} in
94 autoconf*) 115 autoconf*)