bug#74387: Cannot use Make conditionals

2024-11-24 Thread Maxim Cournoyer
Hi Zack, "Zack Weinberg" writes: > Automake conditionals were originally created because make > conditionals aren't portable. In principle, if you are willing to > require GNU make (or any other specific Make that has conditionals) > you shouldn't *need* Automake conditionals. > > Of course, thi

bug#74387: Cannot use Make conditionals

2024-11-20 Thread Maxim Cournoyer
Hi Karl, Karl Berry writes: > Hi Maxim - thanks for the report and doing the research to find that old > answer. Do you have any ideas for a better solution? I can't think of > one. We can't change Automake syntax now. Nor does it seem maintainble > for automake to have special knowledge of all

bug#74387: Cannot use Make conditionals (was: Cannot nest Make conditionals inside Automake conditionals)

2024-11-16 Thread Maxim Cournoyer
Hi, The problem appears simpler than I first thought; it seems Automake is hard-coded to expect 'endif' to be matched with its own 'if'; causing parsing errors when attempting to use Make's conditional such as ifdef, ifeq, etc. that also end with 'endif'. This was reported 23 years ago here: htt

bug#74387: Cannot nest Make conditionals inside Automake conditionals

2024-11-16 Thread Maxim Cournoyer
Hello, Consider the following: --8<---cut here---start->8--- $ guix shell --pure automake autoconf coreutils grep \ --with-latest=automake --with-latest=autoconf --without-tests=automake [...] [env]$ autoconf --version autoconf (GNU Autoconf) 2.72 Copyright