summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--fzopen.3.in13
2 files changed, 13 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 604b655..fbdc9eb 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,8 @@
LARGE = $(shell getconf LFS_CFLAGS)
CFLAGS = $(RPM_OPT_FLAGS) -pipe -Wall -D_GNU_SOURCE -D_REENTRANT $(LARGE)
CC = gcc
-MAJOR = 0
-MINOR = 99
+MAJOR = 1
+MINOR = 00
VERSION = $(MAJOR).$(MINOR)
SONAME = libzio.so.$(MAJOR)
LDMAP = -Wl,--version-script=zio.map
diff --git a/fzopen.3.in b/fzopen.3.in
index 72829a9..b4d8357 100644
--- a/fzopen.3.in
+++ b/fzopen.3.in
@@ -142,7 +142,7 @@ appropriate libraries together with the libzio:
.nf
AC_CHECK_HEADER(zio.h, [
AC_CHECK_LIB(zio, fzopen, [
- AC_CHECK_LIB(zio, fdzopen, [LIBS="$LIBS -l$zio"; am_cv_libzio=yes])
+ AC_CHECK_LIB(zio, fdzopen, [LIBS="$LIBS -lzio"; am_cv_libzio=yes])
])
])
if test "$am_cv_libzio" = yes; then
@@ -167,7 +167,7 @@ if test "$am_cv_libzio" = yes; then
done
])
AC_CHECK_HEADER(lzmadec.h, [
- for lib in libzma lzmadec; do
+ for lib in lzma lzmadec; do
AC_CHECK_LIB($lib, lzmadec_open, [
LIBS="$LIBS -l$lib"
am_cv_libzio="$am_cv_libzio lib$lib"
@@ -175,6 +175,15 @@ if test "$am_cv_libzio" = yes; then
])
done
])
+ AC_CHECK_HEADER(lzma.h, [
+ for lib in lzma; do
+ AC_CHECK_LIB($lib, lzma_easy_encoder, [
+ LIBS="$LIBS -l$lib"
+ am_cv_libzio="$am_cv_libzio lib$lib"
+ break
+ ])
+ done
+ ])
AC_MSG_NOTICE([libzio is used [$]am_cv_libzio])
fi
.fi