[imapfilter-devel] configure and Make script (was: IMAPFilter 1.3)
Michael Skibbe
mskibbe at suse.de
Wed Feb 21 12:40:21 EET 2007
On Wednesday 21 February 2007 07:45, Michael Skibbe wrote:
> On Tuesday 20 February 2007 14:44, Lefteris Chatzimparmpas wrote:
> > Michael Skibbe wrote:
> > > On Friday 16 February 2007 14:39, Lefteris Chatzimparmpas wrote:
[...]
> > >>
> > >> If you don't want support for PCRE, you can just do:
> > >>
> > >> ./configure -o pcre=no
> > >>
> > >> ... before building the imapfilter distribution.
> > >>
> > >> L.
> > >
> > > ahh... interesting. but shouldn't the configure script tell me this? or
> > > automatically do "./configure -o pcre=no"?
> > >
> > > greetings
> > > Michael
> >
> > What do you mean?
>
> mhh... ok... i do not have installed these files.
> i have:
> run configure - no error
> run make - "mystic" error
>
> i want:
> run configure - error "error you need bla bla bla"
>
> i take a look on your configure script and try to write a rule.
ok. i saw that you wrote your own configure script which cat the Makefile.
IMHO it's better to use the autotools (autoconf, autoheader, ...). I wrote
the autotool configuration files for your project. Attached you can find a
tarball with version 1.3 and my changes.
files i changed:
i included conf.h in all headers so you do not need to do things
like "-DNO_ssltls" or something else because in the generated conf.h this
varibles are declared.
files important for the autotools.
configure.ac
Makefile.am
src/Makefile.am
man/Makefile.am
samples/Makefile.am
other changes:
i created three subfolders - man, src and samples - each including only the
files which they should include to create a simple but usefull structure.
howto use autotools - crash lesson:
simple type in
# autoreconf -fi
# ./configure
# make
# sudo make install
what is better with autotools?
type in "./configure -h" and see all the configuration this which are
automatically generated. i inserted only two options:
--without-ssltls disable support for Secure Socket Layer and
Transport Layer Security
--without-crammd5 disable support for Challenge-Response
Authentication Mechanism
which are in your configure file, too.
it's very easy to maintain and develop autotool configuration files if they
are created once.
i hope you like this changes and import this to your project. it wasn't easy
to write these files.
>
[...]
greetings
Michael
P.S. i created some configure checks. ./configure checks that lua and pcre is
installed and usable if not there is an error output.
--
Michael Skibbe <mskibbe at suse.de>
Core Services
SUSE Linux Products GmbH GF: Markus Rex
Nuernberg, Germany HRB 16746 (AG Nuernberg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: my_imapfilter-1.2.2.tar.bz2
Type: application/x-tbz
Size: 49107 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20070221/bb2c9c6f/attachment.bin>
More information about the Imapfilter-devel
mailing list