Use that to pass the CURSES_LOC definition.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
# Check for ncurses, for the mconf & nconf frontends
AS_IF(
[test "$need_curses" = "yes" -o "$need_curses" = "auto"],
- [AC_SUBST([CURSES_LOC])
+ [AC_SUBST([ncurses_mconf_CPPFLAGS])
AC_SUBST([ncurses_LIBS])
LIBS_old="$LIBS"
LIBS=
AC_CHECK_HEADERS(
[ncursesw/curses.h ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h],
- [CURSES_LOC=$ac_header; break])
+ [CURSES_LOC=$ac_header; ncurses_mconf_CPPFLAGS=-DCURSES_LOC=\\\"$ac_header\\\"; break])
AS_IF(
[test -z "$CURSES_LOC"],
[AS_IF(
mconf_SOURCES = mconf.c
mconf_CPPFLAGS = $(AM_CPPFLAGS) \
- -DCURSES_LOC='"$(CURSES_LOC)"' \
+ ${ncurses_mconf_CPPFLAGS} \
$(intl_CPPFLAGS) \
-I$(top_srcdir)/libs \
-I$(top_srcdir)/libs/parser
util.c \
yesno.c
-libkconfig_lxdialog_a_CPPFLAGS = $(AM_CPPFLAGS) \
- -DCURSES_LOC='"${CURSES_LOC}"' \
+libkconfig_lxdialog_a_CPPFLAGS = $(AM_CPPFLAGS) \
+ ${ncurses_mconf_CPPFLAGS} \
$(intl_CPPFLAGS)
liblxdialog_a_CFLAGS = $(AM_CFLAGS) $(kf_CFLAGS)