define DBUS_BUILD_TESTS only if the option is enabled (cherry picked from commit...
[platform/upstream/dbus.git] / autogen.sh
index 7656133..bf53b27 100755 (executable)
@@ -13,6 +13,12 @@ FILE=dbus-1.pc.in
 
 DIE=0
 
+if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
+    echo "Activating pre-commit hook."
+    cp -av .git/hooks/pre-commit.sample .git/hooks/pre-commit
+    chmod -c +x  .git/hooks/pre-commit
+fi
+
 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
        echo
        echo "You must have autoconf installed to compile $PROJECT."