scummvm random work
[patches.git] / nfs-utils-autotools.patch
CommitLineData
5e993f12 1--- autogen.sh
2+++ autogen.sh
3@@ -1,4 +1,4 @@
4-#!/bin/sh
5+#!/bin/sh -e
6
7 echo -n cleaning up .
8
9--- Makefile.am
10+++ Makefile.am
11@@ -35,10 +35,13 @@ EXTRA_DIST = \
12 debian/nhfsstone.prerm \
13 debian/rules \
14 \
15+ aclocal/bsdsignals.m4 \
16 aclocal/nfs-utils.m4 \
17 aclocal/kerberos5.m4 \
18 aclocal/tcp-wrappers.m4
19
20+ACLOCAL_AMFLAGS = -I aclocal
21+
22 install-data-hook:
23 if [ ! -d $(DESTDIR)$(statedir) ]; then mkdir -p $(DESTDIR)$(statedir); fi
24 touch $(DESTDIR)$(statedir)/xtab; chmod 644 $(DESTDIR)$(statedir)/xtab
25--- aclocal/bsdsignals.m4
26+++ aclocal/bsdsignals.m4
27@@ -23,7 +23,14 @@ AC_DEFUN([AC_BSD_SIGNALS], [
28 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
29 return (counter == 2)? 0 : 1;
30 }
31- ], knfsd_cv_bsd_signals=yes, knfsd_cv_bsd_signals=no)]) dnl
32+ ], knfsd_cv_bsd_signals=yes, knfsd_cv_bsd_signals=no,
33+ [
34+ case "$host_os" in
35+ *linux*) knfsd_cv_bsd_signals=no;;
36+ *bsd*) knfsd_cv_bsd_signals=yes;;
37+ *) AC_MSG_ERROR([unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals]);;
38+ esac
39+ ])]) dnl
40 AC_MSG_RESULT($knfsd_cv_bsd_signals)
41 test $knfsd_cv_bsd_signals = yes && AC_DEFINE(HAVE_BSD_SIGNALS, 1, [Define this if you want to use BSD signal semantics])
42 ])dnl