OSSP CVS Repository

ossp - Ticket #51
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Attach]  [Edit]  [History

Ticket 51: AC_CHECK_PTH macro from pth.m4 file causes an error in autoconf

The error occurs when using the macro AC_CHECK_PTH macro from pth.m4 file in autoconf when that file is copied onto aclocal.m4.

The following bellow is copied from the same error report I sent to Debian maintainers of the pth package, but it seems they are not active now. ¤http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=249328

The error message is:

  configure.in:25: error: undefine: undefined macro:
"+------------------------------------------------------------------------+"
  aclocal.m4:8836: _AC_PTH_ERROR is expanded from...
  aclocal.m4:9184: AC_CHECK_PTH is expanded from...
  configure.in:25: the top level

This error is produced by the macro definitions copied by aclocal (command in automake package) from the file /usr/share/aclocal/pth.m4 (which is included in libpth-dev) to the file aclocal.m4

The error is generated from the "undefine" in line 52 of the file pth.m4 (the name of the macro "_ac_pth_line" is sustituted by its content inside the undefine command, hence the error). I found that commenting that line (with "dnl ##") solves the problem but i'm no expert in m4 (probably the way of definition is wrong).

I found also similar problems reported in first part of the message: ¤http://www.mail-archive.com/pth-users@gnu.org/msg00304.html (there the solution proposed is to remove the macro and substitute the string directly in the two places used).

[Add remarks]

Remarks:

Properties:

Type: code           Version: 2.0.1 
Status: new          Created: 2004-Sep-01 16:45
Severity:          Last Change: 2004-Sep-01 16:45
Priority:          Subsystem: pth 
Assigned To: rse           Derived From:  
Creator: anonymous 

CVSTrac 2.0.1