Improve proc filesystem check.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26814 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-08-20 09:48:02 +00:00
parent 2de7a94930
commit 3eae84d351
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2008-08-20 Yavor Doganov <yavor@gnu.org> (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 <rfm@gnu.org> 2008-07-17 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/GSCategories.m: littleEndian() fix to work on * Source/Additions/GSCategories.m: littleEndian() fix to work on

View file

@ -18,7 +18,7 @@ AC_DEFUN(AC_SYS_PROCFS,
# if test -d /proc/0; then # if test -d /proc/0; then
# but it doesn't work on my linux - /proc/0 does not exist, but /proc # but it doesn't work on my linux - /proc/0 does not exist, but /proc
# works fine # 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 ac_cv_sys_procfs=yes
else else
ac_cv_sys_procfs=no ac_cv_sys_procfs=no

2
configure vendored
View file

@ -15749,7 +15749,7 @@ else
# if test -d /proc/0; then # if test -d /proc/0; then
# but it doesn't work on my linux - /proc/0 does not exist, but /proc # but it doesn't work on my linux - /proc/0 does not exist, but /proc
# works fine # 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 ac_cv_sys_procfs=yes
else else
ac_cv_sys_procfs=no ac_cv_sys_procfs=no