--- projects/libstatgrab/src/saidar/Makefile.am 2003/10/09 10:37:42 1.2 +++ projects/libstatgrab/src/saidar/Makefile.am 2004/06/18 23:45:40 1.7 @@ -1,6 +1,6 @@ # Makefile for libstatgrab/src/saidar -# http://www.i-scream.org/ -# $Id: Makefile.am,v 1.2 2003/10/09 10:37:42 tdb Exp $ +# http://www.i-scream.org/libstatgrab/ +# $Id: Makefile.am,v 1.7 2004/06/18 23:45:40 tdb Exp $ if SAIDAR bin_PROGRAMS = saidar @@ -14,11 +14,16 @@ INCLUDES = @SAIDARCPPFLAGS@ -I$(top_srcdir) -I$(top_bu LDADD = $(top_builddir)/src/libstatgrab/libstatgrab.la @SAIDARLIBS@ @LINKFLAGS@ +install-exec-local: +if SAIDAR if SETGIDBINS # Some operating systems need the binary to be setgid kmem -install-exec-local: - chgrp kmem @bindir@/saidar - chmod g+s @bindir@/saidar -else -install-exec-local: + chgrp kmem $(DESTDIR)@bindir@/saidar + chmod g+s $(DESTDIR)@bindir@/saidar +endif +if SETUIDBINS +# Some operating systems need the binary to be setuid root + chown root $(DESTDIR)@bindir@/saidar + chmod u+s $(DESTDIR)@bindir@/saidar +endif endif