X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=autogen.sh;h=d32f41df9be0b1e1ed8fb43629abbdfcdf294c27;hp=f659fca5251b0213301c5d710c7d8bee3f3097b3;hb=c59d1e45bd50ab36e2ac09f0c4b36d38821f20f5;hpb=7a959f1b07370d97682b748f911fbea814ce4555 diff --git a/autogen.sh b/autogen.sh index f659fca52..d32f41df9 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,35 +1,36 @@ -#!/bin/sh -e +#!/bin/sh -gtkdocize -autoreconf --install --symlink +set -e -MYCFLAGS="-g -Wall \ --Wmissing-declarations -Wmissing-prototypes \ --Wnested-externs -Wpointer-arith \ --Wpointer-arith -Wsign-compare -Wchar-subscripts \ --Wstrict-prototypes -Wshadow \ --Wformat-security -Wtype-limits" +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 -case "$CFLAGS" in - *-O[0-9]*) - ;; - *) - MYCFLAGS="$MYCFLAGS -O2" - ;; -esac +gtkdocize +autoreconf --install --symlink libdir() { echo $(cd $1/$(gcc -print-multi-os-directory); pwd) } -args="--prefix=/usr \ +args="\ +--prefix=/usr \ +--with-rootprefix= \ --sysconfdir=/etc \ ---sbindir=/sbin \ +--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" -export CFLAGS="$CFLAGS $MYCFLAGS" -./configure $args $@ +echo +echo "----------------------------------------------------------------" +echo "Initialized build system. For a common configuration please run:" +echo "----------------------------------------------------------------" +echo +echo "./configure CFLAGS='-g -O0' $args" +echo