Re: Newbee : back to square (problem) one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Karl Schmitt wrote on Thu, Sep 14, 2006 at 04:37:53PM CEST:
> 
> it was actually me who added that nasty "dnl" :-(
> I did as you told and got the next or prior problem
> which was the reason why I added that nasty "dnl"

Why didn't you say so right away?

> karl@wks39:/vobs/old_cvs_stuff7> aclocal
> configure.in:618: error: `src/plandisp/Makefile' is already registered 
> with AC_CONFIG_FILES.

Yes, because the file is listed twice, just a few lines away.  Just
remove the line completely, so that the file is listed only once.


In case you're interested in the reason behind the failure with dnl:
The AC_OUTPUT macro makes m4 look at its arguments in order.  And you
quote the argument list once.  Like so:
  AC_OUTPUT([file1
  file2
  file3
  ...
  ])

If you wanted to correctly comment out a line here, so that m4 would not
see the 'dnl' in the list at all, you would have to write something like
this:
  AC_OUTPUT([file1
  file2
  ]dnl file3
  [file4
  ...
  ])

Hope that helps.

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux