Project

General

Profile

Actions

Bug #522

closed

Undefined macro in configure.in breaks configure

Added by Anonymous about 18 years ago. Updated about 8 years ago.

Status:
Fixed
Priority:
Normal
Category:
documentation
Target version:
-
ASK QUESTIONS IN Forums:

Description

Problem

Getting a warning from autoconf when running first ./autogen.sh on a freshly checked out svn copy.

This breaks the construction of ./configure, right after ''PKG_CHECK_MODULES(FAM, gamin >= 0.1.0,''

Setup

debian sarge x86
libtool 1.5.22
automake 1.9.6
autoconf 2.59

Reproducing the error

root@n2kdb:~/lighttpd svn co svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x

root@n2kdb:~/lighttpd cd lighttpd-merge-1.4.x

root@n2kdb:~/lighttpd/lighttpd-merge-1.4.x ./autogen.sh
./autogen.sh: running `libtoolize --copy --force'
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
./autogen.sh: running `aclocal'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake --add-missing --copy'
configure.in: installing `./install-sh'
configure.in: installing `./missing'
src/Makefile.am: installing `./compile'
src/Makefile.am: installing `./depcomp'
./autogen.sh: running `autoconf'
configure.in:69: error: possibly undefined macro: AC_DEFINE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.

root@n2kdb:~/lighttpd ./configure
...
checking for FAM... no
./configure: line 24491: syntax error near unexpected token `FAM,'
./configure: line 24491: ` PKG_CHECK_MODULES(FAM, gamin >= 0.1.0,'

root@n2kdb:~/lighttpd

-- rasmus at flajm dot se

Actions #1

Updated by jan about 18 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

your pkg-config is too old. pkg-config 0.15.0 is fine.

Actions #2

Updated by Anonymous about 16 years ago

  • Status changed from Fixed to Need Feedback
  • Resolution deleted (fixed)

This is not fixed. I have the same trouble with centos 4X pkgconfig is latest version.

Actions #3

Updated by stbuehler about 16 years ago

  • Status changed from Need Feedback to Fixed
  • Resolution set to worksforme

Just update autoconf and automake too.

If someone wants to reopen this again, please give us all version numbers (and not just "latest version").

I guess you need at least autoconf 2.50

Actions #4

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Missing Feedback
Actions #5

Updated by daniel.reus about 15 years ago

Installing pkg-config, as suggested, indeed solves the problem (at least for me).
However I think it would be nice to have this mentioned somewhere in the development-howtos as there are a lot of people wandering around the net with this problem.

Actions #6

Updated by daniel.reus about 15 years ago

  • Status changed from Missing Feedback to Reopened
Actions #7

Updated by gstrauss about 8 years ago

  • Description updated (diff)
  • Category changed from core to documentation
  • Status changed from Reopened to Fixed

I, too, have run into frustrating issues when I forgot to install pkg-config and tried to run ./autogen.sh under Cygwin, so I updated the documentation.

I updated both of the following pages with notes about installing development tools
https://redmine.lighttpd.net/projects/lighttpd/wiki/DevelSubversion
https://redmine.lighttpd.net/projects/lighttpd/wiki/InstallFromSource

Ensure you have installed the latest development tools available for the following packages:
- autoconf
- automake
- libtool
- m4
- pkg-config

https://redmine.lighttpd.net/projects/lighttpd/wiki/Devel links to
https://redmine.lighttpd.net/projects/lighttpd/wiki/DevelSubversion

If there are other pages that should be updated (preferably to point to one of the above pages), then please do so :), or post here and I'll do so.

Actions

Also available in: Atom