summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-09-02 01:45:14 +0000
committerjlam <jlam@pkgsrc.org>2003-09-02 01:45:14 +0000
commit9614a1cce49bc9c312e0acdec512bd1bc9be0a65 (patch)
treebbeaad8c26ea0626c524941c837d1d3462cb5a90 /pkgtools
parent90abd24f04753bab4d2aa9e5a294412af1427573 (diff)
downloadpkgsrc-9614a1cce49bc9c312e0acdec512bd1bc9be0a65.tar.gz
We only need to step carefully in the Solaris case for statfs(), but
otherwise we can trust statfs() if it's on the system.
Diffstat (limited to 'pkgtools')
-rwxr-xr-xpkgtools/libnbcompat/files/configure12
-rw-r--r--pkgtools/libnbcompat/files/configure.ac10
2 files changed, 11 insertions, 11 deletions
diff --git a/pkgtools/libnbcompat/files/configure b/pkgtools/libnbcompat/files/configure
index b8c9ce2407d..88cb6b85071 100755
--- a/pkgtools/libnbcompat/files/configure
+++ b/pkgtools/libnbcompat/files/configure
@@ -6621,10 +6621,7 @@ echo "${ECHO_T}$ac_cv_func_statfs" >&6
if test $ac_cv_func_statfs = yes; then
case $host_os in
- linux*|freebsd*|netbsd*)
- pkg_have_nbcompat_statfs=no
- ;;
- *)
+ sunos*|solaris*)
echo "$as_me:$LINENO: checking for statvfs" >&5
echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
if test "${ac_cv_func_statvfs+set}" = set; then
@@ -6701,13 +6698,16 @@ if test $ac_cv_func_statvfs = yes; then
:
else
- { { echo "$as_me:$LINENO: error: statfs isn't supported and can't be implemented" >&5
-echo "$as_me: error: statfs isn't supported and can't be implemented" >&2;}
+ { { echo "$as_me:$LINENO: error: statfs can't be implemented correctly" >&5
+echo "$as_me: error: statfs can't be implemented correctly" >&2;}
{ (exit 1); exit 1; }; }
fi
;;
+ *)
+ pkg_have_nbcompat_statfs=no
+ ;;
esac
fi
diff --git a/pkgtools/libnbcompat/files/configure.ac b/pkgtools/libnbcompat/files/configure.ac
index 0628190bfca..d2750893c1e 100644
--- a/pkgtools/libnbcompat/files/configure.ac
+++ b/pkgtools/libnbcompat/files/configure.ac
@@ -98,14 +98,14 @@ dnl different interface from NetBSD's statfs.
pkg_have_nbcompat_statfs=yes
AC_CHECK_FUNC(statfs, [
case $host_os in
- linux*|freebsd*|netbsd*)
- pkg_have_nbcompat_statfs=no
- ;;
- *)
+ sunos*|solaris*)
AC_CHECK_FUNC(statvfs, [:], [
- AC_MSG_ERROR(statfs isn't supported and can't be implemented)
+ AC_MSG_ERROR(statfs can't be implemented correctly)
])
;;
+ *)
+ pkg_have_nbcompat_statfs=no
+ ;;
esac
])