sane-project-website/old-archive/2001-04/0068.html

154 wiersze
5.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: [dev] sane-config questions</TITLE>
<META NAME="Author" CONTENT="Henning Meier-Geinitz (hmg-ml@gmx.de)">
<META NAME="Subject" CONTENT="Re: [dev] sane-config questions">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: [dev] sane-config questions</H1>
<!-- received="Sun Apr 8 07:26:58 2001" -->
<!-- isoreceived="20010408142658" -->
<!-- sent="Sun, 8 Apr 2001 16:44:49 +0200" -->
<!-- isosent="20010408144449" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="hmg-ml@gmx.de" -->
<!-- subject="Re: [dev] sane-config questions" -->
<!-- id="20010408164449.A3100@vortex.swb.de" -->
<!-- inreplyto="3AD06494.9A184298@rauch-domain.de" -->
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:hmg-ml@gmx.de?Subject=Re:%20[dev]%20sane-config%20questions&In-Reply-To=&lt;20010408164449.A3100@vortex.swb.de&gt;"><EM>hmg-ml@gmx.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Sun Apr 08 2001 - 07:44:49 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0069.html">mh: "Re: [dev] New and updated backends (pnm patch)"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0067.html">Oliver Rauch: "Re: [dev] sane-config questions"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0067.html">Oliver Rauch: "Re: [dev] sane-config questions"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#68">[ date ]</A>
<A HREF="index.html#68">[ thread ]</A>
<A HREF="subject.html#68">[ subject ]</A>
<A HREF="author.html#68">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>On Sun, Apr 08, 2001 at 03:16:04PM +0200, Oliver Rauch wrote:
<BR>
<EM>&gt; &gt; 1. The name of the installed file is sane-config, however
</EM><BR>
<EM>&gt; &gt; sane-config --help talks about &quot;sane-backends-config&quot;. Probably
</EM><BR>
<EM>&gt; &gt; because of the change of the package name. Should we just hardcode
</EM><BR>
<EM>&gt; &gt; the name to sane-config?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Yes, I suggest we keep the name &quot;sane-config&quot;.
</EM><BR>
&nbsp;
<BR>
Ok, I will change this.
<BR>
<P><EM>&gt; &gt; 3. TODO talks about &quot;--exec-prefix=&quot; and &quot;--prefix=&quot;. Is this for
</EM><BR>
<EM>&gt; &gt; sane-config? The help message says that sane-config has these
</EM><BR>
<EM>&gt; &gt; options and they seem to work? What is this entry talking about?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; gtk and gimp have this option to overwrite the stored paths
</EM><BR>
<EM>&gt; when the administrator moved the packages. I think we should
</EM><BR>
<EM>&gt; make sane-config to work conform to gtk- and gimp-config.
</EM><BR>
<P>I see. So --prefix prints the current prefix and --prefix=... sets it
<BR>
to a new value? I'm asking because I try to write a test for configure
<BR>
to test for SANE already installed on the system at a different prefix.
<BR>
Something like:
<BR>
<P>AC_PATH_PROG(SANE_CONFIG_PATH, sane-config, no)
<BR>
AC_CHECK_HEADER(sane/sane.h, SANE_H_EXISTS=&quot;yes&quot;)
<BR>
<P>[...]
<BR>
<P>if test &quot;$SANE_CONFIG_PATH&quot; != &quot;no&quot; ; then
<BR>
&nbsp;&nbsp;SANE_INSTALLED_VERSION=$SANE_CONFIG_PATH --version
<BR>
&nbsp;&nbsp;SANE_INSTALLED_PREFIX=$SANE_CONFIG_PATH --prefix
<BR>
&nbsp;&nbsp;if test &quot;$SANE_INSTALLED_PREFIX&quot; != &quot;$prefix&quot; ; then
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;*** WARNING: SANE is already installed (version $SANE_INSTALLED_VERSION). The old&quot;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;*** installation is at $SANE_INSTALLED_PREFIX while it will now be installed&quot;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;*** at $prefix. It is recommended to uninstall&quot;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;*** the old SANE version before installing the new one to avoid problems.&quot;
<BR>
&nbsp;&nbsp;fi
<BR>
&nbsp;&nbsp;else
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;if test &quot;$SANE_H_EXISTS&quot; = &quot;yes&quot; ; then
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;*** Warning: An old version of SANE was detected.&quot;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;fi
<BR>
&nbsp;&nbsp;fi
<BR>
<P>I don't know yet how to detect the prefix of older versions of SANE
<BR>
that don't come with sane-config...
<BR>
<P>Bye,
<BR>
&nbsp;&nbsp;Henning
<BR>
<P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20[dev]%20sane-config%20questions&In-Reply-To=&lt;20010408164449.A3100@vortex.swb.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0069.html">mh: "Re: [dev] New and updated backends (pnm patch)"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0067.html">Oliver Rauch: "Re: [dev] sane-config questions"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0067.html">Oliver Rauch: "Re: [dev] sane-config questions"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#68">[ date ]</A>
<A HREF="index.html#68">[ thread ]</A>
<A HREF="subject.html#68">[ subject ]</A>
<A HREF="author.html#68">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Sun Apr 08 2001 - 07:28:42 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>