Always run 'git submodule update' when git is in use
[idzebra-moved-to-github.git] / buildconf.sh
index 7a74ee9..f9e6516 100755 (executable)
@@ -1,11 +1,20 @@
 #!/bin/sh
-# $Id: buildconf.sh,v 1.25 2006-11-23 18:42:48 adam Exp $
 
 automake=automake
 aclocal=aclocal
 autoconf=autoconf
 libtoolize=libtoolize
 
+test -d config || mkdir config
+if test .git; then
+    if test -d m4/.git -a -d doc/common/.git; then
+        :
+    else
+        git submodule init
+    fi
+    git submodule update
+fi
+
 if [ "`uname -s`" = FreeBSD ]; then
     # FreeBSD intalls the various auto* tools with version numbers
     echo "Using special configuration for FreeBSD ..."