Patch and suggestion by Dan Fandrich <dan@coneharvesters.com>:

- do not use /proc/meminfo if cross-compiling
- fix packaging comment


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5507 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Arnaud Launay
2002-10-31 09:46:06 +00:00
parent a69082a672
commit ddcd6c5d5d
2 changed files with 13 additions and 7 deletions

View File

@@ -281,14 +281,19 @@ dnl ---------------------------------------------------------------------------
dnl /proc/meminfo: If the meminfo /proc entry is available, we use it
dnl to limit the libgphoto2 filesystem cache size.
dnl ---------------------------------------------------------------------------
AC_CHECK_FILE(/proc/meminfo, [
proc_meminfo_msg="available";
proc_meminfo=true;
AC_DEFINE(HAVE_PROCMEMINFO,1,[whether we get memory info from /proc/meminfo])
], [
proc_meminfo_msg="not available";
if test "$cross_compiling" != yes; then
AC_CHECK_FILE(/proc/meminfo, [
proc_meminfo_msg="available";
proc_meminfo=true;
AC_DEFINE(HAVE_PROCMEMINFO,1,[whether we get memory info from /proc/meminfo])
], [
proc_meminfo_msg="not available";
proc_meminfo=false;
])
else
proc_meminfo_msg="state not known, cross-compilation";
proc_meminfo=false;
])
fi
dnl Check for sysctl()
AC_MSG_CHECKING([for sysctl on BSD])

View File

@@ -12,6 +12,7 @@ INCLUDES = \
noinst_PROGRAMS = print-usb-usermap
# FIXME: This should only be built if target system is linux
# and not cross-compiled.
print_usb_usermap_SOURCE = print-usb-usermap.c
print_usb_usermap_LDADD = ../../libgphoto2/libgphoto2.la