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