diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2009-03-11 13:15:43 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2009-03-11 13:15:43 +0000 |
commit | 3b950e41896219c9d21f9bc13616bfc6333b345c (patch) | |
tree | 3d53d979f3fbfa92704071ee17bafcfb15002098 /configure.ac | |
parent | b93e5c00b6cad873942a2709f990a0626d98e7be (diff) |
BSD related fixes:
* BUGFIX: Correct page size calculation for FreeBSD systems
(thanks to Andrew Paulsen)
* Allow compilation without PLPA on systems that don't support it
(thanks to Timothy Redaelli)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 955b32ce..979509dd 100644 --- a/configure.ac +++ b/configure.ac @@ -97,8 +97,9 @@ AC_CHECK_FILE($PROCDIR/meminfo,,AC_MSG_ERROR(Cannot find /proc/meminfo. Make sur PLPA_INCLUDED(plpa-1.1) PLPA_INIT(plpa_happy=yes, plpa_happy=no) -if test "x$plpa_happy" = xno; then - AC_MSG_ERROR([Failed to initialize PLPA.]) +AM_CONDITIONAL([HAVE_PLPA], [test "$plpa_happy" = "yes"]) +if test "$plpa_happy" = "yes"; then + AC_DEFINE([HAVE_PLPA], [1], [Have plpa]) fi AC_CONFIG_FILES([Makefile]) |