[gnome-builder] autotools-templates: Don't allow hyphens in package names
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] autotools-templates: Don't allow hyphens in package names
- Date: Thu, 4 Aug 2016 17:36:56 +0000 (UTC)
commit ee1780b6f7e206d45765562e9553eadc91f91d79
Author: Matthew Leeds <mleeds redhat com>
Date: Thu Aug 4 13:16:01 2016 -0400
autotools-templates: Don't allow hyphens in package names
If the user chooses a project name with hyphens in it and tries to use a
variable like project-name_CFLAGS or project-name_SOURCES in their
Makefile.am, those variable names will be invalid according to Automake
and the build will fail. This fixes the issue by using the version of the
project name with underscores in the PKG_CHECK_MODULES macro.
.../autotools_templates/resources/configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/autotools-templates/autotools_templates/resources/configure.ac
b/plugins/autotools-templates/autotools_templates/resources/configure.ac
index 084072d..60fffa9 100644
--- a/plugins/autotools-templates/autotools_templates/resources/configure.ac
+++ b/plugins/autotools-templates/autotools_templates/resources/configure.ac
@@ -115,7 +115,7 @@ AX_CXX_COMPILE_STDCXX_11([noext], [mandatory])
dnl ***********************************************************************
dnl Check for required packages
dnl ***********************************************************************
-PKG_CHECK_MODULES({{NAME}}, [{{packages}}])
+PKG_CHECK_MODULES({{PREFIX}}, [{{packages}}])
dnl ***********************************************************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]