/[gentoo-x86]/eclass/autotools.eclass
Gentoo

Diff of /eclass/autotools.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.14 Revision 1.15
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.14 2005/08/30 09:31:16 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.15 2005/08/30 11:29:17 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
52} 52}
53 53
54# Internal function to get additional subdirs to configure 54# Internal function to get additional subdirs to configure
55autotools_get_subdirs() { 55autotools_get_subdirs() {
56 local subdirs_scan_out 56 local subdirs_scan_out
57 57
58 subdirs_scan_out=$(autotools_check_macro "AC_CONFIG_SUBDIRS") 58 subdirs_scan_out=$(autotools_check_macro "AC_CONFIG_SUBDIRS")
59 [[ -n ${subdirs_scan_out} ]] || return 0 59 [[ -n ${subdirs_scan_out} ]] || return 0
60 60
61 echo "${subdirs_scan_out}" | gawk \ 61 echo "${subdirs_scan_out}" | gawk \
62 '($0 !~ /^[[:space:]]*(#|dnl)/) { 62 '($0 !~ /^[[:space:]]*(#|dnl)/) {
63 if (match($0, "AC_CONFIG_SUBDIRS\\(\\[?([^\\])]*)", res)) { 63 if (match($0, "AC_CONFIG_SUBDIRS\\(\\[?([^\\])]*)", res)) {
64 split(res[1], DIRS, /[\])]/) 64 split(res[1], DIRS, /[\])]/)
65 print DIRS[1] 65 print DIRS[1]
77# They also force installing the support files for safety. 77# They also force installing the support files for safety.
78eaclocal() { 78eaclocal() {
79 local aclocal_opts 79 local aclocal_opts
80 80
81 [[ -n ${M4DIR} ]] && aclocal_opts="-I ${M4DIR}" 81 [[ -n ${M4DIR} ]] && aclocal_opts="-I ${M4DIR}"
82 82
83 [[ -f aclocal.m4 && -n $(grep -e 'generated.*by aclocal' aclocal.m4) ]] && \ 83 [[ -f aclocal.m4 && -n $(grep -e 'generated.*by aclocal' aclocal.m4) ]] && \
84 autotools_run_tool aclocal "$@" ${aclocal_opts} 84 autotools_run_tool aclocal "$@" ${aclocal_opts}
85} 85}
86 86
87_elibtoolize() { 87_elibtoolize() {
88 # Check if we should run libtoolize 88 # Check if we should run libtoolize
89 [[ -n $(autotools_check_macro "AC_PROG_LIBTOOL") ]] || return 0 89 [[ -n $(autotools_check_macro "AC_PROG_LIBTOOL") ]] || return 0
90 use userland_Darwin && LIBTOOLIZE="glibtoolize"
90 autotools_run_tool libtoolize "$@" 91 autotools_run_tool ${LIBTOOLIZE:-libtoolize} "$@"
91 92
92 # Need to rerun aclocal 93 # Need to rerun aclocal
93 eaclocal 94 eaclocal
94} 95}
95 96
96eautoheader() { 97eautoheader() {

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20