From 3eae84d35168b03eb8695f640faafa9ea83f1998 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Wed, 20 Aug 2008 09:48:02 +0000 Subject: [PATCH] Improve proc filesystem check. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26814 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ config/procfs.m4 | 2 +- configure | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8848a6a9d..41f61a565 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-08-20 Yavor Doganov (tiny change) + + * config/procfs.m4: Check for `proc' in /proc/mounts rather than + relying on the output of `mount'; fixes build issue in + chroots. Reported by Funda Wang (bug #23876). + 2008-07-17 Richard Frith-Macdonald * Source/Additions/GSCategories.m: littleEndian() fix to work on diff --git a/config/procfs.m4 b/config/procfs.m4 index 386110767..47b56e1dc 100644 --- a/config/procfs.m4 +++ b/config/procfs.m4 @@ -18,7 +18,7 @@ AC_DEFUN(AC_SYS_PROCFS, # if test -d /proc/0; then # but it doesn't work on my linux - /proc/0 does not exist, but /proc # works fine - if (mount | grep 'proc' >/dev/null 2>/dev/null); then + if grep 'proc' /proc/mounts >/dev/null 2>/dev/null; then ac_cv_sys_procfs=yes else ac_cv_sys_procfs=no diff --git a/configure b/configure index acc43dd13..aae70d2a6 100755 --- a/configure +++ b/configure @@ -15749,7 +15749,7 @@ else # if test -d /proc/0; then # but it doesn't work on my linux - /proc/0 does not exist, but /proc # works fine - if (mount | grep 'proc' >/dev/null 2>/dev/null); then + if grep 'proc' /proc/mounts >/dev/null 2>/dev/null; then ac_cv_sys_procfs=yes else ac_cv_sys_procfs=no