2002-11-29 18:19:58 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script. -*-m4-*-
|
1999-08-09 18:05:39 +00:00
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
|
|
|
dnl When preparing a release, increase the numeric and string version numbers,
|
2009-05-03 17:09:25 +00:00
|
|
|
dnl remove the "cvs" suffix, and set is_release=yes
|
2011-02-14 02:40:17 +00:00
|
|
|
AC_INIT([sane-backends],[1.0.23git],[sane-devel@lists.alioth.debian.org])
|
1999-08-09 18:05:39 +00:00
|
|
|
V_MAJOR=1
|
2009-05-03 17:09:25 +00:00
|
|
|
V_MINOR=0
|
2011-02-14 02:40:17 +00:00
|
|
|
V_REV=23
|
|
|
|
is_release=no
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
|
|
|
|
2009-01-18 02:00:25 +00:00
|
|
|
m4_ifdef([AC_CONFIG_MACRO_DIR], [AC_CONFIG_MACRO_DIR([m4])])
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE
|
2009-01-27 01:10:24 +00:00
|
|
|
dnl Turn off feature were automake will automatically run autoreconf.
|
|
|
|
dnl This is because we check in generated files into CVS which has
|
|
|
|
dnl known timestamp issues.
|
|
|
|
AM_MAINTAINER_MODE
|
2009-01-18 02:00:25 +00:00
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
AC_CONFIG_HEADERS([include/sane/config.h])
|
2009-02-06 03:10:44 +00:00
|
|
|
AC_PREREQ(2.54) dnl Minimum Autoconf version required.
|
2002-12-04 17:48:10 +00:00
|
|
|
|
2002-11-29 18:19:58 +00:00
|
|
|
PACKAGE=AC_PACKAGE_NAME
|
|
|
|
VERSION=AC_PACKAGE_VERSION
|
2002-01-08 18:47:26 +00:00
|
|
|
NUMBER_VERSION=${V_MAJOR}.${V_MINOR}.${V_REV}
|
2001-11-04 20:20:48 +00:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
|
|
|
|
[Define to the name of the distribution.])
|
|
|
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
|
|
|
|
[Define to the version of the distribution.])
|
|
|
|
AC_DEFINE_UNQUOTED(SANE_DLL_V_MAJOR, $V_MAJOR, [SANE DLL major number])
|
|
|
|
AC_DEFINE_UNQUOTED(SANE_DLL_V_MINOR, $V_MINOR, [SANE DLL minor number])
|
|
|
|
AC_DEFINE_UNQUOTED(SANE_DLL_V_BUILD, $V_REV, [SANE DLL revision number])
|
2002-12-04 17:48:10 +00:00
|
|
|
AC_SUBST(V_MAJOR)
|
|
|
|
AC_SUBST(V_MINOR)
|
|
|
|
AC_SUBST(V_REV)
|
1999-08-09 18:05:39 +00:00
|
|
|
AC_SUBST(PACKAGE)
|
|
|
|
AC_SUBST(VERSION)
|
2002-01-08 18:47:26 +00:00
|
|
|
AC_SUBST(NUMBER_VERSION)
|
2002-12-04 17:48:10 +00:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
1999-08-09 18:05:39 +00:00
|
|
|
|
2005-07-15 21:59:25 +00:00
|
|
|
dnl no bloody way to have a decent --docdir...
|
|
|
|
AC_ARG_WITH(docdir,
|
|
|
|
AC_HELP_STRING([--with-docdir=DIR],
|
|
|
|
[documentation @<:@PREFIX/doc/sane-VERSION@:>@]),
|
|
|
|
[
|
|
|
|
docdir="${withval}"
|
|
|
|
AC_SUBST([docdir])dnl
|
|
|
|
], [
|
|
|
|
AC_SUBST([docdir], ['${prefix}/doc/sane-${VERSION}'])dnl
|
|
|
|
])
|
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
1999-08-09 18:05:39 +00:00
|
|
|
dnl Checks for programs.
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
1999-08-09 18:05:39 +00:00
|
|
|
AC_PROG_CC
|
2009-02-19 02:17:45 +00:00
|
|
|
AM_PROG_CC_C_O
|
1999-08-09 18:05:39 +00:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
2002-12-04 17:48:10 +00:00
|
|
|
AC_PATH_PROG(SANE_CONFIG_PATH, sane-config, no)
|
|
|
|
AC_PATH_PROG(MSGFMT, msgfmt$EXEEXT, no)
|
|
|
|
AC_PATH_PROG(XGETTEXT, xgettext$EXEEXT, no)
|
|
|
|
AC_PATH_PROG(MSGMERGE, msgmerge$EXEEXT, no)
|
2003-04-30 23:00:15 +00:00
|
|
|
AC_PATH_PROG(LATEX, latex$EXEEXT, no)
|
|
|
|
AC_PATH_PROG(DVIPS, dvips$EXEEXT, no)
|
|
|
|
AC_PATH_PROG(MAKEINDEX, makeindex$EXEEXT, no)
|
2002-12-04 17:48:10 +00:00
|
|
|
AC_SUBST(MSGFMT)
|
|
|
|
AC_SUBST(XGETTEXT)
|
|
|
|
AC_SUBST(MSGMERGE)
|
2003-04-30 23:00:15 +00:00
|
|
|
AC_SUBST(LATEX)
|
|
|
|
AC_SUBST(DVIPS)
|
|
|
|
AC_SUBST(MAKEINDEX)
|
2005-10-29 20:01:54 +00:00
|
|
|
|
2009-02-19 13:57:45 +00:00
|
|
|
dnl Call explicitely before using PKG_*
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2009-02-14 05:54:01 +00:00
|
|
|
AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)
|
2007-11-10 07:12:55 +00:00
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
|
|
|
dnl set compiler/linker flags
|
|
|
|
dnl ***********************************************************************
|
|
|
|
INCLUDES="${INCLUDES} -I/usr/local/include"
|
|
|
|
AC_SUBST(INCLUDES)
|
|
|
|
SANE_SET_CFLAGS([$is_release])
|
|
|
|
SANE_SET_LDFLAGS
|
|
|
|
SANE_LINKER_RPATH
|
|
|
|
|
|
|
|
dnl ***********************************************************************
|
|
|
|
dnl Checks for unix variants
|
|
|
|
dnl ***********************************************************************
|
2009-02-06 03:10:44 +00:00
|
|
|
m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], [AC_USE_SYSTEM_EXTENSIONS])
|
|
|
|
m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],[AC_GNU_SOURCE])
|
|
|
|
m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],[AC_AIX])
|
|
|
|
m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],[AC_MINIX])
|
1999-08-09 18:05:39 +00:00
|
|
|
AC_ISC_POSIX
|
|
|
|
|
2007-11-10 07:12:55 +00:00
|
|
|
AC_NEED_BYTEORDER_H([include/byteorder.h])
|
2009-02-25 03:55:33 +00:00
|
|
|
AX_CREATE_STDINT_H([include/_stdint.h])
|
2007-11-10 07:12:55 +00:00
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
|
|
|
dnl Checks for libraries
|
|
|
|
dnl ***********************************************************************
|
2011-11-10 03:46:12 +00:00
|
|
|
AC_ARG_ENABLE(dynamic,
|
|
|
|
AC_HELP_STRING([--disable-dynamic],
|
|
|
|
[Disable dynamic loading of backends]),
|
|
|
|
[enable_dynamic=$enableval], [enable_dynamic=auto])
|
2002-12-04 17:48:10 +00:00
|
|
|
SANE_CHECK_DLL_LIB
|
|
|
|
dnl Checks for Backend libraries.
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
AC_CHECK_LIB(m, sqrt, MATH_LIB="-lm")
|
|
|
|
AC_SUBST(MATH_LIB)
|
|
|
|
case ${host_os} in
|
|
|
|
os2*)
|
|
|
|
AC_CHECK_LIB(syslog, sylog, SYSLOG_LIBS="-lsyslog")
|
|
|
|
;;
|
|
|
|
beos*)
|
|
|
|
AC_CHECK_LIB(be, syslog, SYSLOG_LIBS="-lbe")
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(SYSLOG_LIBS)
|
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
SANE_CHECK_JPEG
|
2006-05-24 20:56:15 +00:00
|
|
|
SANE_CHECK_TIFF
|
2002-12-04 17:48:10 +00:00
|
|
|
SANE_CHECK_IEEE1284
|
2003-10-05 16:00:30 +00:00
|
|
|
SANE_CHECK_PTHREAD
|
2005-04-01 13:54:32 +00:00
|
|
|
SANE_CHECK_LOCKING
|
2002-12-04 17:48:10 +00:00
|
|
|
SANE_CHECK_GPHOTO2
|
2008-04-11 17:18:19 +00:00
|
|
|
|
|
|
|
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
PKG_CHECK_MODULES(LIBV4L, libv4l1, have_libv4l1=yes, have_libv4l1=no)
|
|
|
|
AC_SUBST(LIBV4L_LIBS)
|
|
|
|
AC_SUBST(LIBV4L_CFLAGS)
|
2008-12-17 15:52:46 +00:00
|
|
|
|
2008-04-11 17:18:19 +00:00
|
|
|
AC_ARG_ENABLE(avahi,
|
|
|
|
AC_HELP_STRING([--enable-avahi], [enable Avahi support for saned and the net backend]),
|
|
|
|
[enable_avahi=$enableval], [enable_avahi=no])
|
|
|
|
|
|
|
|
if test "$enable_avahi" = "yes"; then
|
2009-02-18 13:25:44 +00:00
|
|
|
PKG_CHECK_MODULES(AVAHI, [ avahi-client >= 0.6.24 ],
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
[AC_DEFINE(WITH_AVAHI, 1, [define if Avahi support is enabled for saned and the net backend])], enable_avahi=no)
|
2008-04-11 17:18:19 +00:00
|
|
|
fi
|
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl check sane to make sure we don't have two installations
|
|
|
|
AC_CHECK_LIB(sane, sane_init, LIBSANE_EXISTS="yes")
|
2002-03-24 14:19:11 +00:00
|
|
|
|
2011-01-06 16:01:27 +00:00
|
|
|
|
|
|
|
dnl **************************************************************
|
|
|
|
dnl SNMP CHECKS
|
|
|
|
dnl **************************************************************
|
|
|
|
|
|
|
|
AC_ARG_WITH(snmp,
|
2011-01-19 02:28:42 +00:00
|
|
|
AC_HELP_STRING([--with-snmp], [enable SNMP support @<:@default=yes@:>@]))
|
2011-01-06 16:01:27 +00:00
|
|
|
|
|
|
|
if test "$with_snmp" = "no"; then
|
|
|
|
echo "Not including SNMP support"
|
|
|
|
else
|
|
|
|
AC_PATH_PROG(SNMP_CONFIG_PATH, net-snmp-config, "no")
|
|
|
|
AC_CHECK_LIB([netsnmp], [snmp_timeout], LIBSNMP_EXISTS="yes")
|
|
|
|
AC_MSG_CHECKING(for proper SNMP version)
|
|
|
|
if test "$SNMP_CONFIG_PATH" != "no" ; then
|
|
|
|
snmp_version=`$SNMP_CONFIG_PATH --version 2>/dev/null`
|
|
|
|
vers=`echo $snmp_version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2);}'`
|
2011-01-31 13:26:46 +00:00
|
|
|
if test -n "$vers" && test "$vers" -ge 5006; then
|
2011-01-06 16:01:27 +00:00
|
|
|
SNMP_LIBS=`$SNMP_CONFIG_PATH --libs`
|
|
|
|
SNMP_CFLAGS=`$SNMP_CONFIG_PATH --cflags`
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
with_snmp="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2011-01-31 13:26:46 +00:00
|
|
|
AC_MSG_WARN([You need at least net-snmp 5.6, your version is $snmp_version])
|
2011-01-06 16:01:27 +00:00
|
|
|
with_snmp="no"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
with_snmp="no"
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$with_snmp" = "yes"; then
|
|
|
|
LIBS="$LIBS $SNMP_LIBS"
|
|
|
|
CFLAGS="$CFLAGS $SNMP_CFLAGS"
|
2011-01-20 17:51:26 +00:00
|
|
|
AC_DEFINE(HAVE_LIBSNMP, 1, [Define to 1 if you have the net-snmp library.])
|
2011-01-06 16:01:27 +00:00
|
|
|
else
|
|
|
|
AC_MSG_WARN([*** Warning: net-snmp library disabled, autodetecting network scanners will not be supported.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
1999-08-09 18:05:39 +00:00
|
|
|
dnl Checks for header files.
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
1999-08-09 18:05:39 +00:00
|
|
|
AC_HEADER_STDC
|
2001-11-04 20:20:48 +00:00
|
|
|
AC_CHECK_HEADERS(fcntl.h unistd.h libc.h sys/dsreq.h sys/select.h \
|
2009-02-02 03:17:32 +00:00
|
|
|
sys/time.h sys/shm.h sys/ipc.h sys/signal.h sys/scanio.h os2.h \
|
|
|
|
sys/socket.h sys/io.h sys/hw.h sys/types.h linux/ppdev.h \
|
|
|
|
dev/ppbus/ppi.h machine/cpufunc.h sys/bitypes.h sys/sem.h sys/poll.h \
|
|
|
|
windows.h be/kernel/OS.h limits.h sys/ioctl.h asm/types.h\
|
2009-02-06 03:10:44 +00:00
|
|
|
netinet/in.h tiffio.h ifaddrs.h pwd.h getopt.h)
|
2002-12-04 17:48:10 +00:00
|
|
|
AC_CHECK_HEADERS([asm/io.h],,,[#include <sys/types.h>])
|
2005-07-30 16:39:00 +00:00
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
SANE_CHECK_MISSING_HEADERS
|
1999-08-09 18:05:39 +00:00
|
|
|
|
2011-11-06 17:50:13 +00:00
|
|
|
AC_CHECK_HEADERS(winsock2.h, SOCKET_LIB="-lws2_32")
|
|
|
|
|
2004-07-26 15:15:39 +00:00
|
|
|
AC_CHECK_HEADER(resmgr.h,[
|
|
|
|
AC_CHECK_LIB(
|
|
|
|
resmgr,
|
|
|
|
rsm_open_device,[
|
2004-10-06 11:09:14 +00:00
|
|
|
AC_DEFINE(HAVE_RESMGR,1,[define if you have the resmgr library])
|
2010-04-05 21:40:20 +00:00
|
|
|
RESMGR_LIBS="-lresmgr"
|
2004-07-26 15:15:39 +00:00
|
|
|
]
|
|
|
|
)
|
|
|
|
])
|
2010-04-05 21:40:20 +00:00
|
|
|
AC_SUBST(RESMGR_LIBS)
|
2005-08-07 14:26:33 +00:00
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
|
|
|
dnl Checks for types and structures
|
|
|
|
dnl ***********************************************************************
|
1999-08-09 18:05:39 +00:00
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_TYPE_PID_T
|
|
|
|
AC_CHECK_TYPE(ssize_t, long)
|
2001-11-04 20:20:48 +00:00
|
|
|
SANE_CHECK_U_TYPES
|
1999-08-09 18:05:39 +00:00
|
|
|
|
2002-05-29 05:34:11 +00:00
|
|
|
# from Python, check for "long long" type
|
|
|
|
AC_MSG_CHECKING(for long long support)
|
|
|
|
have_long_long=no
|
|
|
|
AC_TRY_COMPILE([], [long long x; x = (long long)0;], AC_DEFINE(HAVE_LONG_LONG, 1, [Define if the long long type is available.]) have_long_long=yes)
|
|
|
|
AC_MSG_RESULT($have_long_long)
|
|
|
|
|
2001-11-04 20:20:48 +00:00
|
|
|
AC_MSG_CHECKING([for socklen_t in <sys/socket.h>])
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#include <sys/socket.h>
|
|
|
|
],[socklen_t len],AC_MSG_RESULT(yes),
|
|
|
|
[AC_MSG_RESULT(no); AC_DEFINE(socklen_t,int,
|
2009-02-02 03:17:32 +00:00
|
|
|
[Define socklen_t as \'int\' if necessary.])])
|
2000-11-24 15:24:55 +00:00
|
|
|
|
2002-01-27 18:24:47 +00:00
|
|
|
AC_MSG_CHECKING([for union semun in <sys/sem.h>])
|
|
|
|
AC_TRY_COMPILE([
|
2002-02-02 17:09:00 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/ipc.h>
|
2002-01-27 18:24:47 +00:00
|
|
|
#include <sys/sem.h>
|
|
|
|
],[union semun test_semun],[AC_MSG_RESULT(yes);
|
|
|
|
AC_DEFINE(HAVE_UNION_SEMUN,1,[Define if union semun is available.])],
|
|
|
|
AC_MSG_RESULT(no))
|
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
AC_MSG_CHECKING([for struct flock in fcntl.h])
|
|
|
|
AC_EGREP_HEADER([struct flock], fcntl.h, [AC_MSG_RESULT(yes) ;
|
|
|
|
AC_DEFINE(HAVE_STRUCT_FLOCK, 1,
|
|
|
|
[Define if struct flock is available.])], AC_MSG_RESULT(no))
|
2001-11-04 20:20:48 +00:00
|
|
|
|
2003-12-21 22:51:42 +00:00
|
|
|
AC_MSG_CHECKING([for Linux ioctl defines])
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <asm/types.h>
|
|
|
|
],[
|
|
|
|
__u32 houba = _IOR('v',14, unsigned long);
|
|
|
|
],[AC_MSG_RESULT(yes);
|
|
|
|
have_linux_ioctl_defines="yes";],AC_MSG_RESULT(no))
|
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
|
|
|
dnl Checks for compiler characteristics
|
|
|
|
dnl ***********************************************************************
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
2001-11-04 20:20:48 +00:00
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
|
|
|
dnl Checks for library functions
|
|
|
|
dnl ***********************************************************************
|
2009-02-06 03:10:44 +00:00
|
|
|
|
|
|
|
dnl Define SOCKET_LIB, NSL_LIB, BIND_LIB, and RESOLV_LIB when required
|
|
|
|
dnl for functions we use.
|
|
|
|
AC_CHECK_FUNC(gethostbyaddr,, [AC_CHECK_LIB(bind, gethostbyaddr, BIND_LIB="-lbind")])
|
|
|
|
AC_CHECK_FUNC(gethostbyaddr,, [AC_CHECK_LIB(nsl, gethostbyaddr, NSL_LIB="-lnsl")])
|
2011-11-06 17:50:13 +00:00
|
|
|
AC_CHECK_FUNC(socket,, [AC_CHECK_LIB(socket, socket, SOCKET_LIB="-lsocket")])
|
2009-02-06 03:10:44 +00:00
|
|
|
AC_CHECK_FUNC(inet_aton,, [AC_CHECK_LIB(resolv, inet_aton, RESOLV_LIB="-lresolv")])
|
|
|
|
|
|
|
|
dnl Group related network libraries together so they can always be linked
|
|
|
|
dnl in.
|
|
|
|
SOCKET_LIBS="$SOCKET_LIB $NSL_LIB $BIND_LIB $RESOLV_LIB"
|
|
|
|
AC_SUBST(SOCKET_LIBS)
|
|
|
|
|
|
|
|
dnl define HAVE_* values for network functions. This may require
|
|
|
|
dnl SOCKET_LIBS so set LIBS temporarily.
|
|
|
|
save_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $SOCKET_LIBS"
|
|
|
|
AC_CHECK_FUNCS(inet_addr inet_aton inet_ntoa)
|
|
|
|
AC_REPLACE_FUNCS(inet_ntop inet_pton)
|
|
|
|
LIBS="$save_LIBS"
|
|
|
|
|
2005-07-15 21:59:25 +00:00
|
|
|
if test "$ac_cv_header_be_kernel_OS_h" = "yes" ; then
|
|
|
|
dnl those are known to be broken in BeOS (BONE)
|
|
|
|
ac_cv_func_getaddrinfo=no
|
|
|
|
ac_cv_func_getnameinfo=no
|
|
|
|
fi
|
2009-02-06 03:10:44 +00:00
|
|
|
|
2001-11-04 20:20:48 +00:00
|
|
|
AC_FUNC_ALLOCA
|
1999-08-09 18:05:39 +00:00
|
|
|
AC_FUNC_MMAP
|
2009-02-06 03:10:44 +00:00
|
|
|
AC_CHECK_FUNCS(atexit ioperm i386_set_ioperm \
|
2009-02-02 03:17:32 +00:00
|
|
|
mkdir strftime strstr strtod \
|
2003-03-30 19:07:18 +00:00
|
|
|
cfmakeraw tcsendbreak strcasecmp strncasecmp _portaccess \
|
2011-11-06 17:50:13 +00:00
|
|
|
getaddrinfo getnameinfo poll setitimer iopl getuid getpass)
|
2009-02-06 03:10:44 +00:00
|
|
|
AC_REPLACE_FUNCS(getenv isfdtype sigprocmask snprintf \
|
2011-11-06 17:50:13 +00:00
|
|
|
strcasestr strdup strndup strsep usleep syslog vsyslog)
|
2009-02-06 03:10:44 +00:00
|
|
|
|
2003-01-24 14:06:08 +00:00
|
|
|
SANE_PROTOTYPES
|
2009-02-06 03:10:44 +00:00
|
|
|
|
2002-07-03 12:09:29 +00:00
|
|
|
if test "$ac_cv_header_os2_h" = "yes" ; then
|
2002-12-04 17:48:10 +00:00
|
|
|
AC_DEFINE(strncasecmp, strnicmp, [Define for OS/2 only])
|
|
|
|
AC_DEFINE(strcasecmp, stricmp, [Define for OS/2 only])
|
2002-07-03 09:00:47 +00:00
|
|
|
fi
|
2009-02-06 03:10:44 +00:00
|
|
|
|
|
|
|
if test "$ac_cv_header_getopt_h" = "yes" ; then
|
|
|
|
AC_CHECK_FUNCS(getopt_long)
|
|
|
|
fi
|
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
|
|
|
dnl checks for system services
|
|
|
|
dnl ***********************************************************************
|
|
|
|
if test -c /dev/urandom ; then
|
|
|
|
AC_DEFINE(HAVE_DEV_URANDOM, 1, [Is /dev/urandom available?])
|
|
|
|
fi
|
2003-04-02 16:21:07 +00:00
|
|
|
|
2009-02-02 03:17:32 +00:00
|
|
|
dnl ***********
|
|
|
|
dnl USB Support
|
|
|
|
dnl ***********
|
|
|
|
|
2009-02-19 13:57:45 +00:00
|
|
|
dnl Enable libusb-1.0, if available
|
|
|
|
AC_ARG_ENABLE(libusb_1_0,
|
|
|
|
AC_HELP_STRING([--enable-libusb_1_0], [enable libusb-1.0 support if available]),
|
|
|
|
[enable_libusb_1_0=$enableval], [enable_libusb_1_0=no])
|
|
|
|
|
2009-02-02 03:17:32 +00:00
|
|
|
dnl USB support enabled by default (if found). Note: Overloading libusb
|
|
|
|
dnl option right now to disable USB support on any platform; even
|
|
|
|
dnl if they use a different library name.
|
|
|
|
AC_ARG_ENABLE(libusb,
|
2009-02-19 13:57:45 +00:00
|
|
|
AC_HELP_STRING([--disable-libusb], [disable support for USB in SANE]),,
|
2009-02-02 03:17:32 +00:00
|
|
|
enable_libusb=auto)
|
|
|
|
HAVE_USB=no
|
|
|
|
if test "$enable_libusb" != "no"; then
|
|
|
|
case ${host_os} in
|
|
|
|
beos*)
|
|
|
|
AC_CHECK_HEADERS(be/drivers/USB_scanner.h, HAVE_USB=yes, AC_MSG_ERROR([USB_scanner.h is required on BeOS]))
|
|
|
|
;;
|
|
|
|
os2*)
|
|
|
|
AC_CHECK_HEADER(usbcalls.h,
|
|
|
|
AC_CHECK_LIB(usbcall, UsbQueryNumberDevices,
|
|
|
|
[USB_LIBS="$USB_LIBS -lusbcall"
|
|
|
|
HAVE_USB=yes]),,[#include <usb.h>
|
|
|
|
#include <os2.h>
|
|
|
|
])
|
|
|
|
;;
|
|
|
|
*)
|
2009-02-19 13:57:45 +00:00
|
|
|
dnl If libusb-1.0 is enabled and available, prefer that to the old libusb
|
|
|
|
have_libusb_1_0=no
|
|
|
|
if test "$enable_libusb_1_0" = "yes"; then
|
|
|
|
PKG_CHECK_MODULES(LIBUSB_1_0, [ libusb-1.0 >= 1.0.0 ], have_libusb_1_0=yes, have_libusb_1_0=no)
|
|
|
|
if test "$have_libusb_1_0" = "yes"; then
|
|
|
|
CFLAGS="$CFLAGS $LIBUSB_1_0_CFLAGS"
|
|
|
|
USB_LIBS="$USB_LIBS $LIBUSB_1_0_LIBS"
|
|
|
|
HAVE_USB=yes
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$have_libusb_1_0" = "no"; then
|
|
|
|
dnl Fallback to the old libusb
|
|
|
|
dnl libusb >= 0.1.8 is required, as we need usb_interrupt_read()
|
|
|
|
AC_CHECK_HEADER(usb.h,
|
|
|
|
AC_CHECK_LIB(usb, usb_interrupt_read,
|
|
|
|
[USB_LIBS="$USB_LIBS -lusb"
|
|
|
|
HAVE_USB=yes]))
|
|
|
|
fi
|
2009-02-02 03:17:32 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
dnl The following logic is useful for distributions. If they force
|
|
|
|
dnl USB support with --enable-libusb=yes then configure will fail
|
|
|
|
dnl when its detected that it can not be supported. Default is
|
|
|
|
dnl "auto" which means only enable if libraries are found and do
|
|
|
|
dnl not error out.
|
|
|
|
if test "$enable_libusb" = "yes" && test "$HAVE_USB" = "no"; then
|
|
|
|
AC_MSG_ERROR([USB support requested but required libraries not found.])
|
|
|
|
fi
|
|
|
|
if test "$HAVE_USB" = "yes"; then
|
|
|
|
case ${host_os} in
|
|
|
|
os2*)
|
|
|
|
AC_DEFINE(HAVE_USBCALL, 1, [Define to 1 if you have usbcall.dll.])
|
|
|
|
;;
|
|
|
|
*)
|
2009-02-19 13:57:45 +00:00
|
|
|
if test "$have_libusb_1_0" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_LIBUSB_1_0, 1, [Define to 1 if you have libusb-1.0.])
|
|
|
|
else
|
|
|
|
AC_DEFINE(HAVE_LIBUSB, 1, [Define to 1 if you have libusb.])
|
|
|
|
fi
|
2009-02-02 03:17:32 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
AC_SUBST(USB_LIBS)
|
|
|
|
|
|
|
|
dnl ************
|
|
|
|
dnl SCSI Support
|
|
|
|
dnl ************
|
|
|
|
|
|
|
|
dnl FIXME: These are a lot of header files to scan. We should
|
|
|
|
dnl scan for just one that is unique per platform and then do
|
|
|
|
dnl conditional scans for more specific only as needed.
|
|
|
|
AC_CHECK_HEADERS(IOKit/scsi/SCSITaskLib.h IOKit/cdb/IOSCSILib.h \
|
|
|
|
IOKit/scsi/SCSICommandOperationCodes.h \
|
|
|
|
IOKit/scsi-commands/SCSICommandOperationCodes.h scsi.h sys/scsi.h \
|
|
|
|
sys/scsicmd.h sys/scsiio.h bsd/dev/scsireg.h scsi/sg.h \
|
|
|
|
camlib.h scdds.h sys/scsi/scsi.h sys/scsi/sgdefs.h \
|
|
|
|
sys/scsi/targets/scgio.h apollo/scsi.h sys/sdi_comm.h \
|
|
|
|
sys/passthrudef.h)
|
|
|
|
AC_CHECK_HEADERS([io/cam/cam.h],,,[#include <io/common/iotypes.h>])
|
2003-04-02 16:21:07 +00:00
|
|
|
|
2009-02-02 03:17:32 +00:00
|
|
|
dnl FreeBSD < 3
|
|
|
|
if test "$ac_cv_header_sys_scsiio_h" = "yes" \
|
|
|
|
-a "$ac_cv_header_scsi_h" = "yes"; then
|
|
|
|
AC_MSG_CHECKING([if 'scsireq_t' needs to be defined as 'struct scsireq'])
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#include <sys/scsiio.h>
|
|
|
|
#include <scsi.h>
|
|
|
|
],[scsireq_t req],,
|
|
|
|
[AC_MSG_RESULT(yes);
|
|
|
|
AC_DEFINE(scsireq_t, struct scsireq_t,
|
|
|
|
[Define scsireq_t as \'struct scsireq\' if necessary.])],
|
|
|
|
AC_MSG_RESULT(no))
|
|
|
|
fi
|
|
|
|
AC_CHECK_LIB(scsi, scsireq_enter, SCSI_LIBS="-lscsi") # FreeBSD needs this
|
|
|
|
|
|
|
|
dnl FreeBSD >= 3
|
|
|
|
AC_CHECK_LIB(cam, cam_open_device, SCSI_LIBS="-lcam") # FreeBSD 3+ needs this
|
|
|
|
|
|
|
|
AC_CHECK_FUNCS(scsireq_enter)
|
|
|
|
|
|
|
|
if test "$ac_cv_header_scsi_sg_h" = "yes"; then
|
|
|
|
AC_MSG_CHECKING([for sg_header.target_status in <scsi/sg.h>])
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <scsi/sg.h>
|
|
|
|
],[
|
|
|
|
struct sg_header hdr;
|
|
|
|
hdr.target_status = 1;
|
|
|
|
return 0;
|
|
|
|
],[AC_MSG_RESULT(yes);
|
|
|
|
AC_DEFINE(HAVE_SG_TARGET_STATUS,1,
|
|
|
|
[Define if sg_header.target_status is available.])],
|
|
|
|
AC_MSG_RESULT(no))
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ac_cv_header_IOKit_scsi_SCSITaskLib_h" = "yes"; then
|
|
|
|
AC_MSG_CHECKING([for SCSITaskSGElement in IOKit/scsi/SCSITaskLib.h])
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#undef VERSION
|
|
|
|
#include <IOKit/scsi/SCSITaskLib.h>
|
|
|
|
],[
|
|
|
|
SCSITaskSGElement range;
|
|
|
|
return 0;
|
|
|
|
],[AC_MSG_RESULT(yes);
|
|
|
|
AC_DEFINE(HAVE_SCSITASKSGELEMENT, 1,
|
|
|
|
[Define if SCSITaskSGElement is available.])],
|
|
|
|
AC_MSG_RESULT(no))
|
2002-12-04 17:48:10 +00:00
|
|
|
fi
|
2001-04-16 17:23:37 +00:00
|
|
|
|
2003-01-17 12:21:16 +00:00
|
|
|
dnl disable Linux SCSI generic version 3 to avoid 32/64 bit problems
|
2003-01-21 16:02:56 +00:00
|
|
|
if sparc64 -q > /dev/null 2>&1 ; then
|
2003-01-17 12:21:16 +00:00
|
|
|
AC_DEFINE(DISABLE_LINUX_SG_IO, 1, [Should we disable SCSI generic v3?])
|
|
|
|
fi
|
|
|
|
|
2009-02-02 03:17:32 +00:00
|
|
|
# Multiple platforms can set SCSI_LIBS so do substitution at end.
|
|
|
|
AC_SUBST(SCSI_LIBS)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(scsibuffersize,
|
|
|
|
AC_HELP_STRING([--enable-scsibuffersize=N],
|
|
|
|
[specify the default size in bytes of the buffer for SCSI
|
|
|
|
commands [[default=131072]]]),
|
|
|
|
[set_scsibuffersize="$enableval"], [set_scsibuffersize=131072])
|
|
|
|
AC_DEFINE_UNQUOTED(SCSIBUFFERSIZE, $set_scsibuffersize,
|
|
|
|
[SCSI command buffer size])
|
|
|
|
dnl FIXME: Move tihs to configuration printout area but probably
|
|
|
|
dnl but probably needs to be wrapped by what ever uses it so its
|
|
|
|
dnl only printed when used.
|
|
|
|
echo "scsi buffersize: $set_scsibuffersize"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(scsi-directio,
|
|
|
|
AC_HELP_STRING([--enable-scsi-directio],
|
|
|
|
[enable SCSI direct IO (Linux only, dangerous, see
|
|
|
|
README.linux)]),
|
|
|
|
[
|
|
|
|
if eval "test x$enable_scsi_directio = xyes"; then
|
|
|
|
CFLAGS="$CFLAGS -DENABLE_SCSI_DIRECTIO"
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
dnl ****
|
|
|
|
dnl IPv6
|
|
|
|
dnl ****
|
|
|
|
|
2003-03-30 19:07:18 +00:00
|
|
|
dnl check for IPv6 (can be overriden by --enable-ipv6)
|
2003-05-02 09:41:12 +00:00
|
|
|
if test "$ac_cv_func_getnameinfo" = "yes" \
|
2003-05-26 23:33:12 +00:00
|
|
|
&& test "$ac_cv_func_getaddrinfo" = "yes" ; then
|
2003-03-30 19:07:18 +00:00
|
|
|
SANE_CHECK_IPV6
|
|
|
|
else
|
|
|
|
ipv6="no"
|
|
|
|
fi
|
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
1999-08-09 18:05:39 +00:00
|
|
|
dnl initialize libtool
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
2011-11-09 03:28:30 +00:00
|
|
|
AC_ARG_ENABLE(preload,
|
|
|
|
AC_HELP_STRING([--disable-preload],
|
|
|
|
[Disable preloading of backends]),
|
|
|
|
[enable_preload=$enableval], [enable_preload=auto])
|
|
|
|
|
2001-11-04 20:20:48 +00:00
|
|
|
AC_LIBTOOL_WIN32_DLL
|
2002-03-21 20:26:54 +00:00
|
|
|
AC_DISABLE_STATIC
|
2002-02-10 18:35:29 +00:00
|
|
|
AC_PROG_LIBTOOL
|
1999-08-09 18:05:39 +00:00
|
|
|
|
2009-02-06 03:10:44 +00:00
|
|
|
dnl Windows (cygwin/mingw), BeOS, and OS/2 need this.
|
2009-02-02 03:17:32 +00:00
|
|
|
case $host_os in
|
2009-02-06 03:10:44 +00:00
|
|
|
cygwin* | mingw* | beos* | os2*)
|
|
|
|
LDFLAGS="$LDFLAGS -no-undefined"
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
esac
|
2003-09-24 03:41:48 +00:00
|
|
|
|
2006-06-07 07:28:31 +00:00
|
|
|
dnl Check for lock dir
|
|
|
|
|
|
|
|
AC_ARG_WITH(lockdir, AC_HELP_STRING([--with-lockdir=DIR],
|
|
|
|
[set SANE lockdir @<:@localstatedir/lock/sane@:>@]),
|
|
|
|
[locksanedir=$withval],[locksanedir=${localstatedir}/lock/sane])
|
|
|
|
AC_SUBST(locksanedir)
|
|
|
|
|
2009-02-19 18:10:12 +00:00
|
|
|
configdir="${sysconfdir}/sane.d"
|
|
|
|
AC_SUBST(configdir)
|
|
|
|
|
2002-12-04 17:48:10 +00:00
|
|
|
dnl ***********************************************************************
|
|
|
|
dnl enable/disable backends and features based on previous tests and user's
|
|
|
|
dnl choice
|
|
|
|
dnl ***********************************************************************
|
2009-02-19 18:10:12 +00:00
|
|
|
|
2005-08-13 16:02:50 +00:00
|
|
|
CPPFLAGS="${CPPFLAGS} -DPATH_SANE_CONFIG_DIR=\$(configdir) \
|
|
|
|
-DPATH_SANE_DATA_DIR=\$(datadir) \
|
2006-06-07 07:28:31 +00:00
|
|
|
-DPATH_SANE_LOCK_DIR=\$(locksanedir) \
|
2005-08-13 16:02:50 +00:00
|
|
|
-DV_MAJOR=${V_MAJOR} -DV_MINOR=${V_MINOR}"
|
|
|
|
|
1999-08-09 18:05:39 +00:00
|
|
|
if test "${ac_cv_header_sys_socket_h}" = "no"; then
|
2003-06-06 17:07:02 +00:00
|
|
|
echo "*** disabling saned (sys/socket.h not found)"
|
1999-08-09 18:05:39 +00:00
|
|
|
SANED=
|
|
|
|
else
|
|
|
|
SANED=saned
|
|
|
|
fi
|
2009-02-15 03:31:36 +00:00
|
|
|
AM_CONDITIONAL(COMPILE_SANED, test x$SANED = xsaned)
|
2003-06-06 17:07:02 +00:00
|
|
|
|
|
|
|
dnl These are the backends that are build in any case:
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(local-backends,
|
|
|
|
AC_HELP_STRING([--disable-local-backends],
|
|
|
|
[turn off compilation of all backends but net]))
|
|
|
|
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
ALL_BACKENDS="abaton agfafocus apple artec artec_eplus48u as6e \
|
|
|
|
avision bh canon canon630u canon_dr canon_pp cardscan \
|
|
|
|
coolscan coolscan2 coolscan3 dc25 dc210 dc240 \
|
|
|
|
dell1600n_net dmc epjitsu epson epson2 fujitsu genesys \
|
|
|
|
gphoto2 gt68xx hp hp3500 hp3900 hp4200 hp5400 \
|
2010-06-09 20:31:00 +00:00
|
|
|
hp5590 hpsj5s hpljm1005 hs2p ibm kodak kvs1025 kvs20xx \
|
2011-06-06 18:28:55 +00:00
|
|
|
kvs40xx leo lexmark ma1509 magicolor \
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
matsushita microtek microtek2 mustek mustek_pp \
|
|
|
|
mustek_usb mustek_usb2 nec net niash pie pint \
|
|
|
|
pixma plustek plustek_pp qcam ricoh rts8891 s9036 \
|
|
|
|
sceptre sharp sm3600 sm3840 snapscan sp15c st400 \
|
|
|
|
stv680 tamarack teco1 teco2 teco3 test u12 umax
|
2010-02-15 21:15:43 +00:00
|
|
|
umax_pp umax1220u v4l xerox_mfp p5"
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
|
|
|
|
# If user specifies backends manually then cause configure
|
|
|
|
# to fail if its detected it can't be compiled. If we
|
|
|
|
# are in automatic mode then remove backend from list instead.
|
|
|
|
user_selected_backends="yes"
|
|
|
|
|
2011-11-09 03:28:30 +00:00
|
|
|
AC_ARG_VAR(BACKENDS, [list of backends to compile])
|
2003-06-06 17:07:02 +00:00
|
|
|
if eval "test x$enable_local_backends = xno"; then
|
|
|
|
BACKENDS="net"
|
2001-11-04 20:20:48 +00:00
|
|
|
else
|
2003-06-06 17:07:02 +00:00
|
|
|
if test "${BACKENDS}" != "" ; then
|
|
|
|
AC_MSG_NOTICE([Manually selected backends: ${BACKENDS}])
|
|
|
|
else
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
BACKENDS="$ALL_BACKENDS"
|
|
|
|
user_selected_backends="no"
|
2003-06-06 17:07:02 +00:00
|
|
|
fi
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
fi
|
2003-06-06 17:07:02 +00:00
|
|
|
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
SANE_CHECK_BACKENDS
|
2003-06-06 17:07:02 +00:00
|
|
|
|
2009-01-31 20:40:42 +00:00
|
|
|
if test "${sane_cv_use_libjpeg}" = "yes"; then
|
2009-02-07 02:00:51 +00:00
|
|
|
SANEI_SANEI_JPEG_LO="../sanei/sanei_jpeg.lo"
|
2009-01-31 20:40:42 +00:00
|
|
|
fi
|
2009-02-15 03:31:36 +00:00
|
|
|
AM_CONDITIONAL(HAVE_JPEG, test x$sane_cv_use_libjpeg = xyes)
|
2009-02-07 02:00:51 +00:00
|
|
|
AC_SUBST(SANEI_SANEI_JPEG_LO)
|
2004-09-06 18:30:54 +00:00
|
|
|
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
AC_ARG_ENABLE(pnm-backend,
|
|
|
|
AC_HELP_STRING([--enable-pnm-backend],
|
|
|
|
[enable the pnm backend for testing frontends (possible security risk, see PROBLEMS file)]),
|
|
|
|
[FILTERED_BACKENDS="${FILTERED_BACKENDS} pnm"],
|
|
|
|
[echo "*** pnm backend not manually selected - disabling"])
|
2006-05-24 20:56:15 +00:00
|
|
|
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
BACKENDS="$FILTERED_BACKENDS"
|
|
|
|
BACKEND_LIBS_ENABLED=""
|
|
|
|
BACKEND_CONFS_ENABLED=""
|
2009-02-14 05:54:01 +00:00
|
|
|
BACKEND_MANS_ENABLED=""
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
for backend in ${BACKENDS} ; do
|
|
|
|
BACKEND_LIBS_ENABLED="${BACKEND_LIBS_ENABLED} libsane-${backend}.la"
|
|
|
|
BACKEND_CONFS_ENABLED="${BACKEND_CONFS_ENABLED} ${backend}.conf"
|
2009-02-14 05:54:01 +00:00
|
|
|
BACKEND_MANS_ENABLED="${BACKEND_MANS_ENABLED} sane-${backend}.5"
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
done
|
|
|
|
AC_SUBST(BACKEND_LIBS_ENABLED)
|
2003-06-06 17:07:02 +00:00
|
|
|
|
2011-11-09 03:28:30 +00:00
|
|
|
AC_ARG_VAR(PRELOADABLE_BACKENDS, [list of backends to preload into single DLL])
|
|
|
|
if test "${enable_preload}" = "auto"; then
|
|
|
|
if test "${enable_shared}" = "no" || test "${enable_dynamic}" != "yes"; then
|
|
|
|
enable_preload=yes
|
|
|
|
fi
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
fi
|
2011-11-09 03:28:30 +00:00
|
|
|
if test "${enable_preload}" = "yes"; then
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
echo "preloading backends into DLL"
|
2003-06-06 17:07:02 +00:00
|
|
|
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
# If user specifies backends manually then cause configure
|
|
|
|
# to fail if its detected it can't be compiled. If we
|
|
|
|
# are in automatic mode then remove backend from list instead.
|
|
|
|
user_selected_backends="yes"
|
2003-06-06 17:07:02 +00:00
|
|
|
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
if eval "test x$enable_local_backends = xno"; then
|
|
|
|
PRELOADABLE_BACKENDS="net"
|
2005-10-03 13:27:03 +00:00
|
|
|
else
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
if test "${PRELOADABLE_BACKENDS}" != "" ; then
|
|
|
|
AC_MSG_NOTICE([Manually selected preloadable backends: ${PRELOADABLE_BACKENDS}])
|
|
|
|
else
|
2011-11-09 03:28:30 +00:00
|
|
|
PRELOADABLE_BACKENDS="$BACKENDS"
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
user_selected_backends="no"
|
|
|
|
fi
|
2005-10-03 13:27:03 +00:00
|
|
|
fi
|
|
|
|
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
saved_BACKENDS="$BACKENDS"
|
|
|
|
BACKENDS="${PRELOADABLE_BACKENDS}"
|
2003-06-06 17:07:02 +00:00
|
|
|
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
SANE_CHECK_BACKENDS
|
2001-11-04 20:20:48 +00:00
|
|
|
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
PRELOADABLE_BACKENDS="$FILTERED_BACKENDS"
|
|
|
|
BACKENDS="$saved_BACKENDS"
|
1999-08-09 18:05:39 +00:00
|
|
|
else
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
PRELOADABLE_BACKENDS=""
|
1999-08-09 18:05:39 +00:00
|
|
|
fi
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
PRELOADABLE_BACKENDS_ENABLED=""
|
|
|
|
# Do not initialize BACKEND_CONFS_ENABLED so that its a combination
|
|
|
|
# of all backends.
|
|
|
|
for backend in ${PRELOADABLE_BACKENDS} ; do
|
|
|
|
BACKEND_CONFS_ENABLED="${BACKEND_CONFS_ENABLED} ${backend}.conf"
|
2009-02-14 05:54:01 +00:00
|
|
|
BACKEND_MANS_ENABLED="${BACKEND_MANS_ENABLED} sane-${backend}.5"
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
# Special hacks. Normally, we create a convenience library that
|
|
|
|
# matches the backend's name but in some cases that will conflict
|
|
|
|
# with an external library name that also matches backend name.
|
|
|
|
# Work around that here by renaming internal library.
|
|
|
|
if test "${backend}" = "gphoto2"; then
|
|
|
|
backend=gphoto2_i
|
|
|
|
fi
|
|
|
|
PRELOADABLE_BACKENDS_ENABLED="${PRELOADABLE_BACKENDS_ENABLED} lib${backend}.la"
|
|
|
|
done
|
2001-11-04 20:20:48 +00:00
|
|
|
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
AC_SUBST(PRELOADABLE_BACKENDS)
|
|
|
|
AC_SUBST(PRELOADABLE_BACKENDS_ENABLED)
|
|
|
|
AC_SUBST(BACKEND_CONFS_ENABLED)
|
2009-02-14 05:54:01 +00:00
|
|
|
AC_SUBST(BACKEND_MANS_ENABLED)
|
2005-07-15 21:59:25 +00:00
|
|
|
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
dnl in BeOS, backends are not installed in lib/sane, but add-ons/sane/
|
|
|
|
dnl we account for both installing in /boot/beos and ~/config
|
|
|
|
case $host_os in
|
|
|
|
beos*)
|
|
|
|
libdir='${exec_prefix}/add-ons'
|
|
|
|
;;
|
|
|
|
esac
|
2001-11-04 20:20:48 +00:00
|
|
|
|
2001-12-28 13:26:12 +00:00
|
|
|
AC_ARG_ENABLE(parport-directio,
|
2002-12-04 17:48:10 +00:00
|
|
|
AC_HELP_STRING([--enable-parport-directio],
|
|
|
|
[enable direct hardware access to the parallel port, so
|
|
|
|
frontends will require special permission level]),
|
2001-12-28 13:26:12 +00:00
|
|
|
[
|
|
|
|
if eval "test x$enable_parport_directio = xyes"; then
|
|
|
|
CFLAGS="$CFLAGS -DENABLE_PARPORT_DIRECTIO"
|
2001-11-04 20:20:48 +00:00
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
2002-01-07 22:21:22 +00:00
|
|
|
AC_ARG_ENABLE(translations,
|
2002-12-04 17:48:10 +00:00
|
|
|
AC_HELP_STRING([--disable-translations],
|
2009-02-21 22:45:14 +00:00
|
|
|
[don't install translations of backend options]),,
|
|
|
|
enable_translations=yes)
|
|
|
|
if eval "test x$enable_translations = xyes" ; then
|
2002-11-03 16:14:27 +00:00
|
|
|
if test x$MSGFMT = xno || test x$XGETTEXT = xno || test $MSGMERGE = no ; then
|
2009-02-21 22:45:14 +00:00
|
|
|
enable_translations=no
|
2002-12-04 17:48:10 +00:00
|
|
|
echo "disabling translations (missing msgfmt, xgettext or msgmerge)"
|
2002-11-03 16:14:27 +00:00
|
|
|
else
|
|
|
|
echo "enabling translations"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "disabling translations"
|
|
|
|
fi
|
2009-02-21 22:45:14 +00:00
|
|
|
AM_CONDITIONAL(ENABLE_TRANSLATIONS, test x$enable_translations = xyes)
|
2002-11-03 16:14:27 +00:00
|
|
|
|
2009-03-05 14:47:29 +00:00
|
|
|
AC_ARG_ENABLE(latex,
|
|
|
|
AC_HELP_STRING([--disable-latex],
|
|
|
|
[disable use of latex, et.al., to generate documentation]),,
|
|
|
|
enable_latex=yes)
|
|
|
|
if test "x$enable_latex" = "xyes" ; then
|
|
|
|
if test "x$LATEX" = "xno" || test "x$DVIPS" = "xno" || test "x$MAKEINDEX" = "xno" ; then
|
|
|
|
enable_latex=no
|
|
|
|
echo "disabling latex (missing latex, dvips or makeindex)"
|
|
|
|
else
|
|
|
|
echo "enabling latex"
|
|
|
|
fi
|
2003-04-30 23:00:15 +00:00
|
|
|
else
|
2009-03-05 14:47:29 +00:00
|
|
|
echo "disabling latex"
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(USE_LATEX, test x$enable_latex = xyes)
|
2002-12-04 17:48:10 +00:00
|
|
|
|
|
|
|
dnl ***********************************************************************
|
|
|
|
dnl Write output files
|
|
|
|
dnl ***********************************************************************
|
2001-11-04 20:20:48 +00:00
|
|
|
|
2002-03-29 16:46:37 +00:00
|
|
|
DISTCLEAN_FILES="*~ .*~ *.log *.bak *.old *.orig *.out *.rej \"\#\"* \".\\#\"*"
|
2002-02-13 20:48:29 +00:00
|
|
|
AC_SUBST(DISTCLEAN_FILES)
|
|
|
|
|
2003-09-24 03:41:48 +00:00
|
|
|
AC_CONFIG_FILES([Makefile lib/Makefile sanei/Makefile frontend/Makefile \
|
|
|
|
japi/Makefile backend/Makefile include/Makefile doc/Makefile \
|
2003-09-30 13:31:05 +00:00
|
|
|
po/Makefile testsuite/Makefile tools/Makefile doc/doxygen-sanei.conf])
|
2002-12-04 17:48:10 +00:00
|
|
|
AC_CONFIG_FILES([tools/sane-config], [chmod a+x tools/sane-config])
|
2010-04-06 15:38:38 +00:00
|
|
|
AC_CONFIG_FILES([tools/sane-backends.pc])
|
2002-12-04 17:48:10 +00:00
|
|
|
AC_OUTPUT
|
|
|
|
|
|
|
|
dnl ***********************************************************************
|
|
|
|
dnl print configuration information
|
|
|
|
dnl ***********************************************************************
|
|
|
|
|
2003-06-06 17:07:02 +00:00
|
|
|
echo "-> Variables used for compilation/linking:"
|
|
|
|
echo CPPFLAGS=\"${CPPFLAGS}\"
|
|
|
|
echo CFLAGS=\"${CFLAGS}\"
|
|
|
|
echo LDFLAGS=\"${LDFLAGS}\"
|
|
|
|
echo LIBS=\"${LIBS}\"
|
|
|
|
echo "-> Installation directories:"
|
2002-10-31 17:48:34 +00:00
|
|
|
echo "Configuration: `eval eval echo ${sysconfdir}`"
|
|
|
|
echo "Libraries: `eval eval echo ${libdir}`"
|
|
|
|
echo "Binaries: `eval eval echo ${bindir}` and `eval eval echo ${sbindir}`"
|
|
|
|
echo "Manpages: `eval eval echo ${mandir}`"
|
2004-07-26 15:15:39 +00:00
|
|
|
echo "Documentation: `eval eval echo ${docdir}`"
|
2005-04-01 13:54:32 +00:00
|
|
|
if eval "test x$INSTALL_LOCKPATH = xinstall-lockpath" ; then
|
2006-06-07 07:28:31 +00:00
|
|
|
echo "Lockfiles: `eval eval echo ${locksanedir}`"
|
2005-04-01 13:54:32 +00:00
|
|
|
else
|
2005-04-11 07:49:14 +00:00
|
|
|
echo "Lockfiles: Feature is disabled!"
|
2005-04-01 13:54:32 +00:00
|
|
|
fi
|
2003-06-06 17:07:02 +00:00
|
|
|
echo "-> Network parameters:"
|
|
|
|
if test "${SANED}" = "saned" ; then
|
|
|
|
echo "Build saned: yes"
|
|
|
|
else
|
|
|
|
echo "Build saned: no"
|
|
|
|
fi
|
2003-03-30 19:07:18 +00:00
|
|
|
echo "IPv6 support: `eval eval echo ${ipv6}`"
|
2008-04-11 17:18:19 +00:00
|
|
|
echo "Avahi support: `eval eval echo ${enable_avahi}`"
|
2011-01-06 16:01:27 +00:00
|
|
|
echo "SNMP support: `eval eval echo ${with_snmp}`"
|
2003-06-06 17:07:02 +00:00
|
|
|
echo "-> The following backends will be built:"
|
|
|
|
for backend in ${BACKENDS} ; do
|
|
|
|
echo $ECHO_N "${backend} "
|
|
|
|
done
|
* acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided. Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la
for everyone to use and a libfelib.la for only frontend programs.
Make all internal programs be prefixed with sanei_ as not to conflict
with other programs libsane is linked in with that will also most
likely create similar internal utils on problem platforms.
* include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
and link in getopt_long() but prefix it with sanei_. Its
easier to always use internal version then try to figure out what
platforms support getopt_long() and what header files to use.
* backend/Makefile.am: Convert backend makefile to automake.
Initial version that is feature parity with original but uses
specific rules instead of wildcards and only links in libraries/objs
really required. Room for more cleanup of whats linked in once
all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "-> The following preload backends will be built:"
|
|
|
|
for backend in ${PRELOADABLE_BACKENDS} ; do
|
|
|
|
echo $ECHO_N "${backend} "
|
|
|
|
done
|
2003-06-06 17:07:02 +00:00
|
|
|
echo
|
2002-10-31 17:48:34 +00:00
|
|
|
|
2001-11-04 20:20:48 +00:00
|
|
|
if test "$SANE_CONFIG_PATH" != "no" ; then
|
|
|
|
SANE_INSTALLED_VERSION=`$SANE_CONFIG_PATH --version`
|
|
|
|
SANE_INSTALLED_PREFIX=`$SANE_CONFIG_PATH --prefix`
|
|
|
|
if test "$SANE_INSTALLED_PREFIX" != "$prefix" ; then
|
|
|
|
echo "*** WARNING: SANE is already installed (version $SANE_INSTALLED_VERSION). The old"
|
|
|
|
echo "*** installation is at $SANE_INSTALLED_PREFIX while SANE will now be installed"
|
|
|
|
echo "*** at $prefix. It is recommended to uninstall the old SANE version"
|
|
|
|
echo "*** before installing the new one to avoid problems."
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test "$LIBSANE_EXISTS" = "yes" ; then
|
|
|
|
echo "*** Warning: An old version of SANE was detected but the sane-config program"
|
|
|
|
echo "*** couldn't be found. If you encounter any problems with SANE remove the old"
|
|
|
|
echo "*** SANE files and reinstall this version."
|
|
|
|
fi
|
|
|
|
fi
|
2002-10-27 12:58:51 +00:00
|
|
|
if eval "test x${sysconfdir} = x/usr/etc" ; then
|
|
|
|
echo "*** WARNING: Configuration files are stored in /usr/etc. If this is not"
|
|
|
|
echo "*** intended, use --sysconfdir to set another path (e.g. "/etc")."
|
|
|
|
fi
|
2002-06-02 18:56:56 +00:00
|
|
|
if test "$SELECTED_BACKENDS" != "" ; then
|
|
|
|
echo "*** Warning: Local backends have been disabled. This means that scanners"
|
|
|
|
echo "*** connected to your local computer won't be supported. Only a network"
|
2002-10-27 12:58:51 +00:00
|
|
|
echo "*** connection to a remote host is possible."
|
2002-06-02 18:56:56 +00:00
|
|
|
fi
|
2009-02-02 03:17:32 +00:00
|
|
|
if test "$enable_libusb" != "no" && test "$HAVE_USB" != "yes" ; then
|
2005-09-23 10:54:16 +00:00
|
|
|
echo "*** Warning: sane-backends will be built without libusb support. There may"
|
|
|
|
echo "*** be valid reasons to do so, e.g. if you don't use USB scanners or on"
|
|
|
|
echo "*** platforms without libusb support but generally this means that you"
|
|
|
|
echo "*** can't use USB devices with SANE. The most probable cause is that"
|
|
|
|
if test "${ac_cv_header_usb_h}" != "yes"; then
|
|
|
|
echo "*** the libusb header file usb.h is not installed. If you use Linux"
|
|
|
|
echo "*** you may need a package called 'libusb-dev', 'libusb-devel' or similar."
|
|
|
|
else
|
|
|
|
echo "*** libusb is not installed at all or is too old. See README."
|
|
|
|
fi
|
|
|
|
fi
|
2001-04-22 20:01:24 +00:00
|
|
|
|
1999-08-09 18:05:39 +00:00
|
|
|
echo "****************************************************************"
|
|
|
|
echo "* Please be sure to read file PROBLEMS in this directory *"
|
|
|
|
echo "* BEFORE running any of the SANE applications. Some devices *"
|
2007-12-18 02:56:05 +00:00
|
|
|
echo "* may be damaged by improper operation, so please do heed this *"
|
1999-08-09 18:05:39 +00:00
|
|
|
echo "* advice. *"
|
|
|
|
echo "****************************************************************"
|