Define a complete rule via autoconf (quoting issue, AC_SUBST)

2008-10-27 Thread Daniel Leidert
Hi, I want to place a rule in several Makefiles. So I thought about putting @DESKTOP_DATA_RULE@ into every Makefile.am and define the rule via configure.ac. However, I can't get it to work. The rule is: $(desktop_DATA): $(desktop_in_files:.desktop.in=.desktop) @list='$<'; for p in $$lis

Re: Define a complete rule via autoconf (quoting issue, AC_SUBST)

2008-11-01 Thread Daniel Leidert
Am Dienstag, den 28.10.2008, 07:50 +0100 schrieb Ralf Wildenhues: > Hi Daniel, > > * Daniel Leidert wrote on Mon, Oct 27, 2008 at 11:04:34PM CET: > > > > I want to place a rule in several Makefiles. So I thought about putting > > > > @DESKTOP_DATA_RULE@ &g

Re: Why does 'AC_MSG_CHECKING' output extra junk.

2009-08-07 Thread Daniel Leidert
Am Freitag, den 07.08.2009, 12:45 +0100 schrieb Dr. David Kirkby: > If I have this in my configure.ac > > AC_MSG_CHECKING([if gcc uses the GNU or Sun linker]) > > then run the configure script, I see: > > checking if gcc uses the GNU or Sun linker... checking for a sed that > does not truncate

Iterating over variable using AC_DEFINE to get HAVE_FOO_varitem (similar to AC_CHECK_HEADERS)

2010-05-15 Thread Daniel Leidert
Hi, For a project I would like to get defines for every supported languages. The ALL_LINGUAS variable contains alist of language codes. Now I would like to get HAVE_LINGUA_$lang for every languages code in the variable. I tried this piece of code: > AS_FOR( > [AC_lingua], > [ac_

Re: Iterating over variable using AC_DEFINE to get HAVE_FOO_varitem (similar to AC_CHECK_HEADERS)

2010-05-17 Thread Daniel Leidert
Am Montag, den 17.05.2010, 10:18 -0600 schrieb Eric Blake: > On 05/15/2010 06:57 AM, Daniel Leidert wrote: [..] > > For a project I would like to get defines for every supported languages. > > The ALL_LINGUAS variable contains alist of language codes. Now I would

Re: Iterating over variable using AC_DEFINE to get HAVE_FOO_varitem (similar to AC_CHECK_HEADERS)

2010-05-17 Thread Daniel Leidert
Am Montag, den 17.05.2010, 14:30 -0600 schrieb Eric Blake: > On 05/17/2010 01:44 PM, Daniel Leidert wrote: [..] > I meant that it would be worth writing an open-coded shell for loop: > > for lingua in $ALL_LINGUAS; do > AC_MSG_NOTICE([...]) > ... > end [..] > > U

Question about AC_SEARCH_LIBS ([other-libraries] argument)

2007-10-22 Thread Daniel Leidert
Hi, The AC_SEARCH_LIBS accepts an argument to link with additional libraries given in that argument. Reading the code in autoconf/libs.m4 makes me think, that only the library, that contains the function I'm looking for, is added to LIBS if the test succeeeds. But even if [other-libraries] are giv

Re: Problem with tests for GSL

2007-10-29 Thread Daniel Leidert
Am Montag, den 29.10.2007, 14:18 +0100 schrieb Laurence Finston: > I'd like to start using the GNU Scientific Library (GSL) with my package, > GNU 3DLDF, but I haven't been able to figure out how to get Autoconf to > find the library in order to set the values of preprocessor macros > correctl