]> granicus.if.org Git - psmisc/commitdiff
Remove fuser out of target for hurd-i386
authorSamuel Thibault <sthibault@debian.org>
Sat, 19 May 2012 08:09:41 +0000 (18:09 +1000)
committerCraig Small <csmall@users.sourceforge.net>
Sat, 19 May 2012 08:09:41 +0000 (18:09 +1000)
hurd-i386 does not have PATH_MAX which means fuser won't compile.
However the archtecture cannot use fuser anyway so we now don't
even try to compile it for hurd-i386

Bug-Debian: http://bugs.debian.org/673485
Signed-off-by: Craig Small <csmall@enc.com.au>
configure.ac
src/Makefile.am

index 0615f5f04ebb479d5a53ca99c6c005b6d9afc414..619291b7bfde73da43e6d8cc55d5dbc0d86bcbbf 100644 (file)
@@ -113,6 +113,16 @@ AC_CHECK_MEMBERS([struct pt_regs.uregs],[],[], [#include <asm/ptrace.h>])
 AC_CHECK_MEMBERS([struct pt_regs.regs,
                   struct pt_regs.cp0_status],[],[], [#include <asm/ptrace.h>])
 
+case ${target_os} in
+  gnu*)
+    want_fuser=no
+    ;;
+  *)
+    want_fuser=yes
+       ;;
+esac
+AM_CONDITIONAL(WANT_FUSER, test $want_fuser = yes)
+
 AM_CONDITIONAL(WANT_PEEKFD_I386,
  test $ac_cv_member_struct_user_regs_struct_orig_eax = yes &&
    test $ac_cv_member_struct_user_regs_struct_eax = yes &&
index d511f242895681fa27e6f0af133863ac7744f584..1d400b5e8900a45bb12d08ce9332762bf399bc6e 100644 (file)
@@ -1,7 +1,10 @@
 
 AM_CFLAGS = -Wall -DLOCALEDIR=\"/usr/share/locale\" @HARDEN_CFLAGS@
 
-bin_PROGRAMS = fuser killall pstree prtstat
+bin_PROGRAMS = killall pstree prtstat
+if WANT_FUSER
+  bin_PROGRAMS += fuser
+endif
 if WANT_PEEKFD_I386
   bin_PROGRAMS += peekfd
   AM_CFLAGS += -DI386