aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-fileutils.m4
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-07-23 01:19:01 +0800
committerMartin Baulig <martin@src.gnome.org>1998-07-23 01:19:01 +0800
commit81d8fde809a4262e08ab94be4cdd05092e19f764 (patch)
tree35502eea1c3c479cf866776467967e353c4f73f3 /macros/gnome-fileutils.m4
parent8e57014762a07900c9620caebda607f179d24ea3 (diff)
downloadgsoc2013-evolution-81d8fde809a4262e08ab94be4cdd05092e19f764.tar
gsoc2013-evolution-81d8fde809a4262e08ab94be4cdd05092e19f764.tar.gz
gsoc2013-evolution-81d8fde809a4262e08ab94be4cdd05092e19f764.tar.bz2
gsoc2013-evolution-81d8fde809a4262e08ab94be4cdd05092e19f764.tar.lz
gsoc2013-evolution-81d8fde809a4262e08ab94be4cdd05092e19f764.tar.xz
gsoc2013-evolution-81d8fde809a4262e08ab94be4cdd05092e19f764.tar.zst
gsoc2013-evolution-81d8fde809a4262e08ab94be4cdd05092e19f764.zip
Added some reasonable defaults to allow cross compiling; removed
1998-07-22 Martin Baulig <martin@home-of-linux.org> * gnome-fileutils.m4: Added some reasonable defaults to allow cross compiling; removed `mountlist.o' and `fsusage.o' from LIBOBJS. svn path=/trunk/; revision=283
Diffstat (limited to 'macros/gnome-fileutils.m4')
-rw-r--r--macros/gnome-fileutils.m424
1 files changed, 22 insertions, 2 deletions
diff --git a/macros/gnome-fileutils.m4 b/macros/gnome-fileutils.m4
index 249f8dfcd2..ad1c7140dd 100644
--- a/macros/gnome-fileutils.m4
+++ b/macros/gnome-fileutils.m4
@@ -15,6 +15,26 @@ AC_CHECK_FUNCS(bcopy endgrent endpwent fchdir ftime ftruncate \
getcwd getmntinfo gettimeofday isascii lchown \
listmntent memcpy mkfifo strchr strerror strrchr vprintf)
+dnl Set some defaults when cross-compiling
+
+if test x$cross_compiling = xyes ; then
+ case "$host_os" in
+ linux*)
+ fu_cv_sys_mounted_getmntent1=yes
+ fu_cv_sys_stat_statfs2_bsize=yes
+ ;;
+ sunos*)
+ fu_cv_sys_stat_statfs4=yes
+ ;;
+ freebsd*)
+ fu_cv_sys_stat_statfs2_bsize=yes
+ ;;
+ osf*)
+ fu_cv_sys_stat_statfs3_osf1=yes
+ ;;
+ esac
+fi
+
# Determine how to get the list of mounted filesystems.
list_mounted_fs=
@@ -366,8 +386,8 @@ fi
if test -n "$list_mounted_fs" && test $space != no; then
DF_PROG="df"
-LIBOBJS="$LIBOBJS fsusage.o"
-LIBOBJS="$LIBOBJS mountlist.o"
+# LIBOBJS="$LIBOBJS fsusage.o"
+# LIBOBJS="$LIBOBJS mountlist.o"
fi
# Check for SunOS statfs brokenness wrt partitions 2GB and larger.