* acinclude.m4, configure.in: Define JPEG objects based on

existence of JPEG library and not on the dc* backends alone
since more backends then that use JPEG support.
* backend/Makefile.am: whitespace fixes.
merge-requests/1/head
Chris Bagwell 2009-01-31 20:40:42 +00:00
rodzic 51860ae62c
commit 674b884f29
6 zmienionych plików z 26 dodań i 23 usunięć

Wyświetl plik

@ -1,5 +1,9 @@
2009-01-31 Chris Bagwell <cbagwell-guest at users.alioth.debian.org>
* backend/Makefil.am: Add missing math library to coolscan2.
* backend/Makefil.am: Add missing math library to coolscan2
and coolscan3.
* acinclude.m4, configure.in: Define JPEG objects based on
existence of JPEG library and not on the dc* backends alone
since more backends then that use JPEG support.
2009-01-30 Chris Bagwell <cbagwell-guest at users.alioth.debian.org>
* frontend/saned.c: Replace usage of getgrouplist() with

Wyświetl plik

@ -548,9 +548,6 @@ for be in ${BACKENDS}; do
if test "${sane_cv_use_libjpeg}" != "yes"; then
echo "*** $be backend requires JPEG library - $DISABLE_MSG"
backend_supported="no"
else
SANEI_JPEG="sanei_jpeg.o"
SANEI_JPEG_LO="sanei_jpeg.lo"
fi
;;

Wyświetl plik

@ -1680,13 +1680,13 @@ libcoolscan2_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=coolscan2
nodist_libsane_coolscan2_la_SOURCES = coolscan2-s.c
libsane_coolscan2_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=coolscan2
libsane_coolscan2_la_LDFLAGS = $(DIST_SANELIBS_LDFLAGS)
libsane_coolscan2_la_LIBADD = $(COMMON_LIBS) libcoolscan2.la ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo ../sanei/sanei_config2.lo sane_strstatus.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo @SCSI_LIBS@ @CAM_LIBS@
libsane_coolscan2_la_LIBADD = $(COMMON_LIBS) libcoolscan2.la ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo ../sanei/sanei_config2.lo sane_strstatus.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo @SCSI_LIBS@ @CAM_LIBS@ @MATH_LIB@
libcoolscan3_la_SOURCES = coolscan3.c
libcoolscan3_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=coolscan3
nodist_libsane_coolscan3_la_SOURCES = coolscan3-s.c
libsane_coolscan3_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=coolscan3
libsane_coolscan3_la_LDFLAGS = $(DIST_SANELIBS_LDFLAGS)
libsane_coolscan3_la_LIBADD = $(COMMON_LIBS) libcoolscan3.la ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo ../sanei/sanei_config2.lo sane_strstatus.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo @SCSI_LIBS@ @CAM_LIBS@
libsane_coolscan3_la_LIBADD = $(COMMON_LIBS) libcoolscan3.la ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo ../sanei/sanei_config2.lo sane_strstatus.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo @SCSI_LIBS@ @CAM_LIBS@ @MATH_LIB@
libdc25_la_SOURCES = dc25.c dc25.h
libdc25_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=dc25
nodist_libsane_dc25_la_SOURCES = dc25-s.c

10
configure vendored
Wyświetl plik

@ -29940,9 +29940,6 @@ for be in ${BACKENDS}; do
if test "${sane_cv_use_libjpeg}" != "yes"; then
echo "*** $be backend requires JPEG library - $DISABLE_MSG"
backend_supported="no"
else
SANEI_JPEG="sanei_jpeg.o"
SANEI_JPEG_LO="sanei_jpeg.lo"
fi
;;
@ -30025,6 +30022,10 @@ done
#FIXME: This only works in sanie/ directory. What needs to be
#done to get it working for backend as well? Is it even needed?
#why is usb/scsi/firewire not optionally compiling sanei items as well?
if test "${sane_cv_use_libjpeg}" = "yes"; then
SANEI_JPEG="sanei_jpeg.o"
SANEI_JPEG_LO="sanei_jpeg.lo"
fi
@ -30095,9 +30096,6 @@ for be in ${BACKENDS}; do
if test "${sane_cv_use_libjpeg}" != "yes"; then
echo "*** $be backend requires JPEG library - $DISABLE_MSG"
backend_supported="no"
else
SANEI_JPEG="sanei_jpeg.o"
SANEI_JPEG_LO="sanei_jpeg.lo"
fi
;;

Wyświetl plik

@ -418,6 +418,10 @@ SANE_CHECK_BACKENDS
#FIXME: This only works in sanie/ directory. What needs to be
#done to get it working for backend as well? Is it even needed?
#why is usb/scsi/firewire not optionally compiling sanei items as well?
if test "${sane_cv_use_libjpeg}" = "yes"; then
SANEI_JPEG="sanei_jpeg.o"
SANEI_JPEG_LO="sanei_jpeg.lo"
fi
AC_SUBST(SANEI_JPEG)
AC_SUBST(SANEI_JPEG_LO)