summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes-recipe/autotools.bbclass10
1 files changed, 2 insertions, 8 deletions
diff --git a/meta/classes-recipe/autotools.bbclass b/meta/classes-recipe/autotools.bbclass
index 4e7bf6696d..99d3cb7583 100644
--- a/meta/classes-recipe/autotools.bbclass
+++ b/meta/classes-recipe/autotools.bbclass
@@ -139,11 +139,6 @@ do_compile[prefuncs] += "autotools_aclocals"
139do_install[prefuncs] += "autotools_aclocals" 139do_install[prefuncs] += "autotools_aclocals"
140do_configure[postfuncs] += "autotools_postconfigure" 140do_configure[postfuncs] += "autotools_postconfigure"
141 141
142ACLOCALDIR = "${STAGING_DATADIR}/aclocal"
143ACLOCALEXTRAPATH = ""
144ACLOCALEXTRAPATH:class-target = " -I ${STAGING_DATADIR_NATIVE}/aclocal/"
145ACLOCALEXTRAPATH:class-nativesdk = " -I ${STAGING_DATADIR_NATIVE}/aclocal/"
146
147python autotools_aclocals () { 142python autotools_aclocals () {
148 sitefiles, searched = siteinfo_get_files(d, sysrootcache=True) 143 sitefiles, searched = siteinfo_get_files(d, sysrootcache=True)
149 d.setVar("CONFIG_SITE", " ".join(sitefiles)) 144 d.setVar("CONFIG_SITE", " ".join(sitefiles))
@@ -171,8 +166,8 @@ autotools_do_configure() {
171 if [ -e ${AUTOTOOLS_SCRIPT_PATH}/configure.in -o -e ${AUTOTOOLS_SCRIPT_PATH}/configure.ac ]; then 166 if [ -e ${AUTOTOOLS_SCRIPT_PATH}/configure.in -o -e ${AUTOTOOLS_SCRIPT_PATH}/configure.ac ]; then
172 olddir=`pwd` 167 olddir=`pwd`
173 cd ${AUTOTOOLS_SCRIPT_PATH} 168 cd ${AUTOTOOLS_SCRIPT_PATH}
174 mkdir -p ${ACLOCALDIR} 169 # aclocal looks in the native sysroot by default, so tell it to also look in the target sysroot.
175 ACLOCAL="aclocal --system-acdir=${ACLOCALDIR}/" 170 ACLOCAL="aclocal --aclocal-path=${STAGING_DATADIR}/aclocal/"
176 if [ x"${acpaths}" = xdefault ]; then 171 if [ x"${acpaths}" = xdefault ]; then
177 acpaths= 172 acpaths=
178 for i in `find ${AUTOTOOLS_SCRIPT_PATH} -ignore_readdir_race -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \ 173 for i in `find ${AUTOTOOLS_SCRIPT_PATH} -ignore_readdir_race -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \
@@ -182,7 +177,6 @@ autotools_do_configure() {
182 else 177 else
183 acpaths="${acpaths}" 178 acpaths="${acpaths}"
184 fi 179 fi
185 acpaths="$acpaths ${ACLOCALEXTRAPATH}"
186 # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look 180 # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look
187 # like it was auto-generated. Work around this by blowing it away 181 # like it was auto-generated. Work around this by blowing it away
188 # by hand, unless the package specifically asked not to run aclocal. 182 # by hand, unless the package specifically asked not to run aclocal.