mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-07 04:11:50 +08:00
Fix #16: explicitely check for pkg-config macros
Without this patch, `./bootstrap` fails with the following error if
pkgconf/pkg-config is not installed:
lib/Makefile.am:76: error: 'pkgconfig_DATA' is used but 'pkgconfigdir' is undefined
This can be triggered by disinstalling `pkgconf/pkg-config`. The problem
here is that the check for `pkg-config` is done at configure level but
`automake` fails at bootstrap level because of the above error.
This basically "fixes" the issue by changing the way in which
`./bootstrap` fails.
This commit is contained in:
@@ -38,8 +38,9 @@ AC_CONFIG_HEADERS([config.h])
|
||||
AC_CONFIG_SRCDIR([config.h.in])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AC_PROG_SED
|
||||
PKG_PROG_PKG_CONFIG
|
||||
PKG_INSTALLDIR()
|
||||
m4_ifndef([PKG_INSTALLDIR], [m4_fatal([pkgconf or pkg-config not found or too old (`pkg-config --version` must be >= 0.27)])])
|
||||
PKG_PROG_PKG_CONFIG(0.27)
|
||||
PKG_INSTALLDIR
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Global
|
||||
|
||||
Reference in New Issue
Block a user