From: Samuel Thibault Date: Sat, 19 May 2012 08:09:41 +0000 (+1000) Subject: Remove fuser out of target for hurd-i386 X-Git-Tag: v22.17~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=054f57de43e9d3a0dcb8e7e3c5ea6f8451107166;p=psmisc Remove fuser out of target for hurd-i386 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 --- diff --git a/configure.ac b/configure.ac index 0615f5f..619291b 100644 --- a/configure.ac +++ b/configure.ac @@ -113,6 +113,16 @@ AC_CHECK_MEMBERS([struct pt_regs.uregs],[],[], [#include ]) AC_CHECK_MEMBERS([struct pt_regs.regs, struct pt_regs.cp0_status],[],[], [#include ]) +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 && diff --git a/src/Makefile.am b/src/Makefile.am index d511f24..1d400b5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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