Re: making part of package optional at ./configure time

2006-09-19 Thread Keith MARSHALL
>> Use something like >> AC_ARG_ENABLE([webcam], >> [AS_HELP_STRING([--disable-webcam], [disable use of webcam])], >> [AC_DEFINE([USE_WEBCAM], [1], [enable/disable webcam broadcaster])]) >> > Many thanks for your help. > > This is almost there, but working in reverse to my expectations,

Re: making part of package optional at ./configure time

2006-09-19 Thread Stepan Kasal
Hello, > >> Use something like > >> AC_ARG_ENABLE([webcam], > >> [AS_HELP_STRING([--disable-webcam], [disable use of webcam])], > >> [AC_DEFINE([USE_WEBCAM], [1], [enable/disable webcam broadcaster])]) a modified example: AC_ARG_ENABLE([webcam], [AS_HELP_STRING([--disable-webcam], [d

Re: Question regarding sscanf() vs. off_t and similar

2006-09-19 Thread Stepan Kasal
Hello, On Thu, Sep 14, 2006 at 04:41:30PM +0200, Philipp Marek wrote: > > Gnulib provides umaxtostr.c, which is a convenient way of printing any .. > arguments, and if umaxtostr() is not available on solaris etc. I can't use gnulib is not "GNU Lib C", it's a collection of small C code snippets,

Re: Question regarding sscanf() vs. off_t and similar

2006-09-19 Thread Philipp Marek
On Tuesday 19 September 2006 13:17 Stepan Kasal wrote: > On Thu, Sep 14, 2006 at 04:41:30PM +0200, Philipp Marek wrote: > > > Gnulib provides umaxtostr.c, which is a convenient way of printing any > .. > > arguments, and if umaxtostr() is not available on solaris etc. I can't > > use > gnulib is no

Re: Question regarding sscanf() vs. off_t and similar

2006-09-19 Thread Paul Eggert
Philipp Marek <[EMAIL PROTECTED]> writes: > But that has to be GNU make? No. > Or how would make know that this function is not > available in libc? It's not available in libc, or in any other library that I know of, so that shouldn't be a problem. > Well, you mean "use this function, if not

Optimizing ./configure

2006-09-19 Thread Debarshi 'Rishi' Ray
I am using the following configure.ac to generate the configure script for a program whose only dependencies are GNU Bash, and GNU Libextractor. However on running ./configure, once autoconfig has generated it, it checks for bison, gawk, gcc, stdlib.h, and whole lot of other things. Is there a way

Re: making part of package optional at ./configure time

2006-09-19 Thread Keith Marshall
On Tuesday 19 September 2006 10:46 am, Stepan Kasal wrote: > AC_ARG_ENABLE([webcam], >   [AS_HELP_STRING([--disable-webcam], [disable use of webcam])]) > if "$enable_webcam" != no; then >   AC_DEFINE([USE_WEBCAM], [1], [enable/disable webcam broadcaster]) > fi Well, yes, the logic is correct, but

Re: making part of package optional at ./configure time

2006-09-19 Thread Stepan Kasal
Hello, On Tue, Sep 19, 2006 at 08:02:26PM +0100, Keith Marshall wrote: > On Tuesday 19 September 2006 10:46 am, Stepan Kasal wrote: > > AC_ARG_ENABLE([webcam], > > [AS_HELP_STRING([--disable-webcam], [disable use of webcam])]) > > if "$enable_webcam" != no; then > > AC_DEFINE([USE_WEBCAM], [1]

Re: Optimizing ./configure

2006-09-19 Thread Ralf Wildenhues
Hello Debarshi, * Debarshi 'Rishi' Ray wrote on Tue, Sep 19, 2006 at 07:17:39PM CEST: > I am using the following configure.ac to generate the configure script > for a program whose only dependencies are GNU Bash, and GNU > Libextractor. However on running ./configure, once autoconfig has > generat