2005-12-05 14:11:09 +00:00
|
|
|
source $stdenv/setup
|
2004-03-31 23:47:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
postInstall() {
|
|
|
|
# Create a wrapper around `aclocal' that converts every element in
|
|
|
|
# `ACLOCAL_PATH' into a `-I dir' option. This way `aclocal'
|
|
|
|
# becomes modular; M4 macros do not need to be stored in a single
|
|
|
|
# global directory, while callers of `aclocal' do not need to pass
|
|
|
|
# `-I' options explicitly.
|
|
|
|
|
2009-04-05 19:13:59 +01:00
|
|
|
for prog in $out/bin/aclocal*; do
|
|
|
|
wrapProgram $prog --run \
|
|
|
|
'
|
|
|
|
oldIFS=$IFS
|
2004-03-31 23:47:06 +01:00
|
|
|
IFS=:
|
2009-04-05 19:13:59 +01:00
|
|
|
for dir in $ACLOCAL_PATH; do
|
|
|
|
if test -n "$dir" -a -d "$dir"; then
|
|
|
|
extraFlagsArray=("${extraFlagsArray[@]}" "-I" "$dir")
|
2004-03-31 23:47:06 +01:00
|
|
|
fi
|
|
|
|
done
|
2009-04-05 19:13:59 +01:00
|
|
|
IFS=$oldIFS'
|
|
|
|
done
|
2004-03-31 23:47:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
genericBuild
|