AM_COND_IF
Hello, I would like to use the AM_COND_IF macro in my configure.ac, but when I run autoreconf, I get an error message saying that the macro couldn't be found anywhere. I have tried to google it, but it seems that nobody has this problem... Any suggestions? The error message I get: configure.ac:296: warning: macro `AM_COND_IF' not found in library configure.ac:296: error: possibly undefined macro: AM_COND_IF If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/bin/autoconf failed with exit status: 1 I have asked on autoconf list, but they have sent me here :-) I use automake (GNU automake) 1.10.2 on Archlinux system.
Re: AM_COND_IF
On Friday 2009-01-02 17:33, Matěj Týč wrote: Hello, I would like to use the AM_COND_IF macro in my configure.ac, but when I run autoreconf, I get an error message saying that the macro couldn't be found anywhere. I could not find it in the manual either, so the macro is probably not the right one to start with.
Automake_flags not override
Hi, given a configure.ac which defines AM_INIT_AUTOMAKE([-Wall]), running `automake -Wnone` still produces the warnings I had with -Wall. I think command line should override any earlier flags.
Portable suffix rules question
Hi, I reckon that %-style suffix rules (e.g. %.o: %.c) are rather unportable, but I wonder how the old-fashioned suffix rule for %.1: %.1.php would look like.
Re: Portable suffix rules question
Jan Engelhardt jeng...@medozas.de writes: I reckon that %-style suffix rules (e.g. %.o: %.c) are rather unportable, but I wonder how the old-fashioned suffix rule for %.1: %.1.php would look like. There is none. A suffix rule can contain at most two periods, so the closest you can get is this: .php: Andreas. -- Andreas Schwab, SuSE Labs, sch...@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 And now for something completely different.
Re: AM_COND_IF
I could not find it in the manual either, so the macro is probably not the right one to start with. It is in the manual, of course (that's where I have found it). Look here: http://sources.redhat.com/automake/automake.html#Conditionals
Re: AM_COND_IF
Did you try regenerating the aclocal files?- usually done by `autoreconf -fi`. Yes, I tried it and it did not help, I still get the error. Are there any files where the macro is supposed to be defined to check?
Re: AM_COND_IF
On Friday 2009-01-02 20:57, Matěj Týč wrote: Did you try regenerating the aclocal files?- usually done by `autoreconf -fi`. Yes, I tried it and it did not help, I still get the error. Are there any files where the macro is supposed to be defined to check? Grepping in the automake tree reveals m4/cond-if.m4. The file should have been installed into /usr/share/aclocal-1.10.2 (+/- prefix).