1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00
systemd/autogen.sh

36 lines
659 B
Bash
Raw Normal View History

2008-07-30 03:45:23 +04:00
#!/bin/sh -e
2009-06-15 15:22:21 +04:00
gtkdocize
2008-12-29 07:47:53 +03:00
autoreconf --install --symlink
2008-07-30 03:45:23 +04:00
MYCFLAGS="-g -Wall \
2008-08-12 13:19:32 +04:00
-Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
2009-02-05 21:01:27 +03:00
-Wstrict-prototypes -Wshadow \
2011-03-19 19:04:56 +03:00
-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 \
--sysconfdir=/etc \
--sbindir=/sbin \
--libdir=$(libdir /usr/lib) \
--with-rootlibdir=$(libdir /lib) \
--libexecdir=/lib/udev \
--with-selinux \
--enable-gtk-doc"
2009-06-16 16:19:19 +04:00
export CFLAGS="$CFLAGS $MYCFLAGS"
2009-06-16 16:19:19 +04:00
./configure $args $@