The package-name can contain the names of symbols, like '$FOO',
which get replaced by their actual value just after parse-time.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
["$enableval"],
[yes], [package_name=$PACKAGE_NAME],
[no], [package_name=],
- [package_name=$enableval])])
+ [# Escape the $ signs, otherwise they would get munged by make
+ # Also, append a space at the end, to separate the package
+ # name from the literal 'Configuration'
+ package_name="$( echo "$enableval" \
+ |sed -r -e 's/\$/\\$$/g;' \
+ -e 's/$/ /;' \
+ )"])])
AC_SUBST([package_name], [${package_name=$PACKAGE_NAME}])
AC_ARG_ENABLE(
hconf.gperf lconf.l \
confdata.c menu.c symbol.c util.c \
expr.c expr.h lkc.h lkc_proto.h
-libkconfigparser_la_CPPFLAGS = -DPACKAGE=\"$(package_name)\" \
+libkconfigparser_la_CPPFLAGS = -DPACKAGE="\"$(package_name)\"" \
-DCONFIG_=\"$(config_prefix)\"
libkconfigparser_la_LDFLAGS = -release $(KCONFIGPARSER_LIB_VERSION)