chiark / gitweb /
autogen.sh: add CFLAGS and print entire line, so that mouse copy/paste works
[elogind.git] / autogen.sh
index 683c498025b662bdad7fdbc92ce171ea73d5c9de..d32f41df9be0b1e1ed8fb43629abbdfcdf294c27 100755 (executable)
@@ -1,7 +1,13 @@
-#!/usr/bin/env sh
+#!/bin/sh
 
 set -e
 
+if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
+    cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
+    chmod +x .git/hooks/pre-commit && \
+    echo "Activated pre-commit hook."
+fi
+
 gtkdocize
 autoreconf --install --symlink
 
@@ -16,15 +22,15 @@ args="\
 --bindir=/sbin \
 --libdir=$(libdir /usr/lib) \
 --with-rootlibdir=$(libdir /lib) \
---libexecdir=/lib/udev \
+--libexecdir=/lib \
 --with-systemdsystemunitdir=/lib/systemd/system \
 --with-selinux \
 --enable-gtk-doc"
 
 echo
-echo "---------------------------------------------------------------------"
-echo "Initialized udev build system. For a common configuration please run:"
-echo "---------------------------------------------------------------------"
+echo "----------------------------------------------------------------"
+echo "Initialized build system. For a common configuration please run:"
+echo "----------------------------------------------------------------"
 echo
-echo "# ./configure $args"
+echo "./configure CFLAGS='-g -O0' $args"
 echo