index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Judd Vinet <judd@archlinux.org> | 2006-09-28 20:51:33 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2006-09-28 20:51:33 +0000 |
commit | cf6da173f62ee96703714e66f8538069a46a63e3 (patch) | |
tree | 164ba65ccd916674929f2e058a40fe7f6abced52 /configure.ac | |
parent | 54008798efcc9646f622f6b052ecd83281d57cda (diff) |
-rw-r--r-- | configure.ac | 20 |
diff --git a/configure.ac b/configure.ac index 7a0cc559..f2e49f69 100644 --- a/configure.ac +++ b/configure.ac @@ -157,13 +157,25 @@ dnl Check for zlib AC_CHECK_LIB([z], [gzsetparams], [AC_CHECK_HEADER([zlib.h], [LIBZ='-lz'])]) if test -n "$LIBZ"; then LDFLAGS="$LDFLAGS $LIBZ" +else + AC_MSG_ERROR("missing zlib headers/libraries"); fi -dnl Check for libtar -AC_CHECK_LIB([tar], [tar_open], [AC_CHECK_HEADER([libtar.h], [LIBTAR='-ltar'])]) -if test -n "$LIBTAR"; then +dnl Check for bzip2 +AC_CHECK_LIB([bz2], [BZ2_bzCompress], [AC_CHECK_HEADER([bzlib.h], [LIBBZ2='-lbz2'])]) +if test -n "$LIBBZ2"; then + LDFLAGS="$LDFLAGS $LIBBZ2" +else + AC_MSG_ERROR("missing bzip2 headers/libraries"); +fi + +dnl Check for libarchive +AC_CHECK_LIB([archive], [archive_read_data], [AC_CHECK_HEADER([archive.h], [LIBARCHIVE='-larchive'])]) +if test -n "$LIBARCHIVE"; then CFLAGS="$CFLAGS" - LDFLAGS="$LDFLAGS $LIBTAR" + LDFLAGS="$LDFLAGS $LIBARCHIVE" +else + AC_MSG_ERROR("missing libarchive headers/libraries"); fi CFLAGS="$CFLAGS $ENV_CFLAGS" |