X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=autogen.sh;h=683c498025b662bdad7fdbc92ce171ea73d5c9de;hp=e7bd9c2a1c0c5d23dd6c42b890ad98d1f529d810;hb=dd8a93e0d8d4db1810e8d0bc438c19c97876b810;hpb=06316d9f1a91b4d3efdb7402e72498cb3deb1806 diff --git a/autogen.sh b/autogen.sh index e7bd9c2a1..683c49802 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,35 +1,30 @@ -#!/bin/sh -e +#!/usr/bin/env sh + +set -e gtkdocize autoreconf --install --symlink -MYCFLAGS="-g -Wall \ --Wmissing-declarations -Wmissing-prototypes \ --Wnested-externs -Wpointer-arith \ --Wpointer-arith -Wsign-compare -Wchar-subscripts \ --Wstrict-prototypes -Wshadow \ --Wformat-security -Wtype-limits" - -case "$CFLAGS" in - *-O[0-9]*) - ;; - *) - MYCFLAGS="$MYCFLAGS -O2" - ;; -esac - libdir() { echo $(cd $1/$(gcc -print-multi-os-directory); pwd) } -args="--prefix=/usr \ +args="\ +--prefix=/usr \ +--with-rootprefix= \ --sysconfdir=/etc \ --bindir=/sbin \ --libdir=$(libdir /usr/lib) \ --with-rootlibdir=$(libdir /lib) \ --libexecdir=/lib/udev \ ---with-systemdsystemunitdir=/lib/systemd/system +--with-systemdsystemunitdir=/lib/systemd/system \ --with-selinux \ --enable-gtk-doc" -./configure $args CFLAGS="${CFLAGS} ${MYCFLAGS}" $@ +echo +echo "---------------------------------------------------------------------" +echo "Initialized udev build system. For a common configuration please run:" +echo "---------------------------------------------------------------------" +echo +echo "# ./configure $args" +echo