X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=autogen.sh;h=f99d0d031ff5b04c052249289e2bd0dda7c6d2e0;hp=d0873422a995bd82adf2a115315740664916577d;hb=b96ed50e3493103d075ff2ce4c3fbad8f26b2e22;hpb=df28bc0836ad6a79cb537ad0b463819738088f3e diff --git a/autogen.sh b/autogen.sh index d0873422a..f99d0d031 100755 --- a/autogen.sh +++ b/autogen.sh @@ -17,21 +17,17 @@ set -e -if [ -f .git/hooks/pre-commit.sample ] && [ ! -f .git/hooks/pre-commit ]; then - # This part is allowed to fail - cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ - chmod +x .git/hooks/pre-commit && \ - echo "Activated pre-commit hook." || : -fi +oldpwd=$(pwd) +topdir=$(dirname $0) +cd $topdir -if which gtkdocize >/dev/null 2>/dev/null; then - gtkdocize --docdir docs/ --flavour no-tmpl - gtkdocargs=--enable-gtk-doc -else - echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation." - rm -f docs/gtk-doc.make - echo 'EXTRA_DIST =' > docs/gtk-doc.make -fi +# We do not need this, we are not systemd upstream! +#if [ -f .git/hooks/pre-commit.sample ] && [ ! -f .git/hooks/pre-commit ]; then +# # This part is allowed to fail +# cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ +# chmod +x .git/hooks/pre-commit && \ +# echo "Activated pre-commit hook." || : +#fi intltoolize --force --automake autoreconf --force --install --symlink @@ -44,24 +40,25 @@ args="\ --sysconfdir=/etc \ --localstatedir=/var \ --libdir=$(libdir /usr/lib) \ -$gtkdocargs" +" + +if [ -f "$topdir/.config.args" ]; then + args="$args $(cat $topdir/.config.args)" +fi if [ ! -L /bin ]; then args="$args \ ---with-rootprefix= \ +--with-rootprefix=/ \ --with-rootlibdir=$(libdir /lib) \ " fi -if [ "x$1" = "xc" ]; then - ./configure CFLAGS='-g -Og' $args - make clean -else - echo - echo "----------------------------------------------------------------" - echo "Initialized build system. For a common configuration please run:" - echo "----------------------------------------------------------------" - echo - echo "./configure CFLAGS='-g -O0' $args" - echo -fi +cd $oldpwd + +echo +echo "----------------------------------------------------------------" +echo "Initialized build system. For a common configuration please run:" +echo "----------------------------------------------------------------" +echo +echo "$topdir/configure CFLAGS='-g -O0 -ftrapv' --enable-kdbus $args" +echo