summaryrefslogtreecommitdiff
path: root/macros/mate-autogen
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-01-03 14:28:13 +0100
committerinfirit <[email protected]>2014-01-03 14:28:13 +0100
commitda4619a11bf11b4f6c5e15d93ec796aee49916d8 (patch)
tree604e62144d02678d2acd5f0308d305866336c8be /macros/mate-autogen
parent4d00cba6eb5a21bea9c0e5a495787e134fae7a19 (diff)
downloadmate-common-da4619a11bf11b4f6c5e15d93ec796aee49916d8.tar.bz2
mate-common-da4619a11bf11b4f6c5e15d93ec796aee49916d8.tar.xz
macros/mate-autogen: Create m4 directory if it doesnt exits
This is a automake bug fixed in automake 1.13.2 Based on gnome commit: https://git.gnome.org/browse/gnome-common/commit/?id=47aa8189803d5f1bf60701f52795ef8735064b6c
Diffstat (limited to 'macros/mate-autogen')
-rw-r--r--macros/mate-autogen8
1 files changed, 8 insertions, 0 deletions
diff --git a/macros/mate-autogen b/macros/mate-autogen
index 91b35e7..5b3a44d 100644
--- a/macros/mate-autogen
+++ b/macros/mate-autogen
@@ -412,6 +412,14 @@ for configure_ac in $configure_files; do
printbold "Processing $configure_ac"
cd $dirname
+ # if the AC_CONFIG_MACRO_DIR() macro is used, create that directory
+ # This is a automake bug fixed in automake 1.13.2
+ # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13514
+ m4dir=`autoconf --trace 'AC_CONFIG_MACRO_DIR:$1'`
+ if [ -n "$m4dir" ]; then
+ mkdir -p $m4dir
+ fi
+
if grep "^GTK_DOC_CHECK" $basename >/dev/null; then
printbold "Running $GTKDOCIZE..."
$GTKDOCIZE --copy || exit 1