| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 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-utils.eclass,v 1.54 2012/06/06 15:43:45 mgorny Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.55 2012/06/06 17:17:30 mgorny Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: autotools-utils.eclass |
5 | # @ECLASS: autotools-utils.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Maciej Mrozowski <reavertm@gentoo.org> |
7 | # Maciej Mrozowski <reavertm@gentoo.org> |
| 8 | # Michał Górny <mgorny@gentoo.org> |
8 | # Michał Górny <mgorny@gentoo.org> |
| … | |
… | |
| 269 | # @DESCRIPTION: |
269 | # @DESCRIPTION: |
| 270 | # Reconfigure the sources (like gnome-autogen.sh or eautoreconf). |
270 | # Reconfigure the sources (like gnome-autogen.sh or eautoreconf). |
| 271 | autotools-utils_autoreconf() { |
271 | autotools-utils_autoreconf() { |
| 272 | debug-print-function ${FUNCNAME} "$@" |
272 | debug-print-function ${FUNCNAME} "$@" |
| 273 | |
273 | |
|
|
274 | eqawarn "The autotools-utils_autoreconf() function was deprecated." |
|
|
275 | eqawarn "Please call autotools-utils_src_prepare()" |
|
|
276 | eqawarn "with AUTOTOOLS_AUTORECONF set instead." |
|
|
277 | |
| 274 | # Override this func to not require unnecessary eaclocal calls. |
278 | # Override this func to not require unnecessary eaclocal calls. |
| 275 | autotools_check_macro() { |
279 | autotools_check_macro() { |
| 276 | local x |
280 | local x |
| 277 | |
281 | |
| 278 | # Add a few additional variants as we don't get expansions. |
282 | # Add a few additional variants as we don't get expansions. |
| … | |
… | |
| 365 | einfo 'Will autoreconfigure due to user patches applied.' |
369 | einfo 'Will autoreconfigure due to user patches applied.' |
| 366 | want_autoreconf=yep |
370 | want_autoreconf=yep |
| 367 | fi |
371 | fi |
| 368 | fi |
372 | fi |
| 369 | |
373 | |
| 370 | [[ ${want_autoreconf} ]] && autotools-utils_autoreconf |
374 | [[ ${want_autoreconf} ]] && eautoreconf |
| 371 | elibtoolize --patch-only |
375 | elibtoolize --patch-only |
| 372 | } |
376 | } |
| 373 | |
377 | |
| 374 | # @FUNCTION: autotools-utils_src_configure |
378 | # @FUNCTION: autotools-utils_src_configure |
| 375 | # @DESCRIPTION: |
379 | # @DESCRIPTION: |