[restored issue] - configure.ac undefined macro: PKG_CHECK_VAR
Trying to use ./autogen.sh on plafrim I got the following error
autoreconf: running: /cm/shared/dev/modules/generic/apps/build/ac269-am114-lt246-m41417/bin/autoconf --include=m4 --force
configure.ac:242: error: possibly undefined macro: PKG_CHECK_VAR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /cm/shared/dev/modules/generic/apps/build/ac269-am114-lt246-m41417/bin/autoconf failed with exit status: 1
Maybe this patch could help
diff --git a/configure.ac b/configure.ac
index 490bc9e..6961166 100644
--- a/configure.ac
+++ b/configure.ac
@@ -239,7 +239,12 @@ if test x$enable_simgrid = xyes ; then
SIMGRID_CFLAGS="-I$simgrid_dir/include $SIMGRID_CFLAGS"
SIMGRID_LIBS="-L$simgrid_dir/lib $SIMGRID_LIBS"
else
- PKG_CHECK_VAR([pkg_simgrid_dir], [simgrid], [prefix])
+ m4_ifdef([PKG_CHECK_VAR],[
+ PKG_CHECK_VAR(pkg_simgrid_dir, [simgrid], [prefix])
+ ])
+ AS_IF([test -z "$pkg_simgrid_dir"], [
+ pkg_simgrid_dir="${sysconfdir}/bash_completion.d"
+ ])
simgrid_dir=$pkg_simgrid_dir
fi
if test -n "$SIMGRID_CFLAGS" ; then
Warning: this issue has been restored from backup and can have been changed. For example, all comments have been lost.