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>
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 &&
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