| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.56 2006/11/01 10:58:46 flameeyes Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.57 2006/12/14 00:33:10 flameeyes Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Diego Pettenò <flameeyes@gentoo.org> |
5 | # Author: Diego Pettenò <flameeyes@gentoo.org> |
| 6 | # Enhancements: Martin Schlemmer <azarah@gentoo.org> |
6 | # Enhancements: Martin Schlemmer <azarah@gentoo.org> |
| 7 | # |
7 | # |
| 8 | # This eclass is for handling autotooled software packages that |
8 | # This eclass is for handling autotooled software packages that |
| … | |
… | |
| 141 | |
141 | |
| 142 | eautoheader() { |
142 | eautoheader() { |
| 143 | # Check if we should run autoheader |
143 | # Check if we should run autoheader |
| 144 | [[ -n $(autotools_check_macro "AC_CONFIG_HEADERS") ]] || return 0 |
144 | [[ -n $(autotools_check_macro "AC_CONFIG_HEADERS") ]] || return 0 |
| 145 | autotools_set_versions |
145 | autotools_set_versions |
| 146 | autotools_run_tool autoheader "$@" |
146 | NOFAIL=1 autotools_run_tool autoheader "$@" |
| 147 | } |
147 | } |
| 148 | |
148 | |
| 149 | eautoconf() { |
149 | eautoconf() { |
| 150 | if [[ ! -f configure.ac && ! -f configure.in ]] ; then |
150 | if [[ ! -f configure.ac && ! -f configure.in ]] ; then |
| 151 | echo |
151 | echo |
| … | |
… | |
| 229 | ebegin "Running $@" |
229 | ebegin "Running $@" |
| 230 | $@ >> ${STDERR_TARGET%/*}/$1-${STDERR_TARGET##*/} 2>&1 |
230 | $@ >> ${STDERR_TARGET%/*}/$1-${STDERR_TARGET##*/} 2>&1 |
| 231 | ris=$? |
231 | ris=$? |
| 232 | eend ${ris} |
232 | eend ${ris} |
| 233 | |
233 | |
| 234 | if [[ ${ris} != 0 ]]; then |
234 | if [[ ${ris} != 0 && ${NO_FAIL} != 1 ]]; then |
| 235 | echo |
235 | echo |
| 236 | eerror "Failed Running $1 !" |
236 | eerror "Failed Running $1 !" |
| 237 | eerror |
237 | eerror |
| 238 | eerror "Include in your bugreport the contents of:" |
238 | eerror "Include in your bugreport the contents of:" |
| 239 | eerror |
239 | eerror |