summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2013-07-18 15:09:50 +0100
committerJavier Jardón <javier.jardon@codethink.co.uk>2013-07-18 16:17:33 +0100
commit47aa8189803d5f1bf60701f52795ef8735064b6c (patch)
tree533cb7705dc515bc3021f2217ae8dfd0d5c87137
parent323bbfe0989405725379cada1aa5cb361fd2999f (diff)
downloadgnome-common-47aa8189803d5f1bf60701f52795ef8735064b6c.tar.gz
macros2/gnome-autogen.sh: Create m4 directory if it doesnt exits
This is a automake bug fixed in automake 1.13.2
-rw-r--r--macros2/gnome-autogen.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/macros2/gnome-autogen.sh b/macros2/gnome-autogen.sh
index 3ef406f..a0566eb 100644
--- a/macros2/gnome-autogen.sh
+++ b/macros2/gnome-autogen.sh
@@ -427,6 +427,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 | sed 's,^.*:,,g'`
+ if [ -n "$m4dir" ]; then
+ mkdir -p $m4dir
+ fi
+
if grep "^GTK_DOC_CHECK" $basename >/dev/null; then
printbold "Running $GTKDOCIZE..."
$GTKDOCIZE --copy || exit 1