AM_GNU_GETTEXT_VERSION(0.18.1)
LT_INIT
+AM_SILENT_RULES([yes])
+
AX_WITH_CURSES
AX_WITH_CURSES_MENU
AX_WITH_CURSES_FORM
fi
AC_CHECK_LIB([udev], [udev_new],
- [],
+ [UDEV_LIBS=-ludev],
[AC_MSG_FAILURE([The libudev development library is required by petitboot. Try installing the package libudev-dev or libudev-devel.])]
)
AS_IF(
[test "x$enable_debug" = "xyes"],
- [AC_SUBST([DEFAULT_CFLAGS], ["$default_cflags -O0 -DDEBUG"])],
- [AC_SUBST([DEFAULT_CFLAGS], ["$default_cflags -O2 -DNDEBUG"])]
+ [
+ AC_SUBST([DEFAULT_CFLAGS], ["$default_cflags -O0"])
+ AC_SUBST([DEFAULT_CPPFLAGS], ["-DDEBUG"])
+ ],
+ [
+ AC_SUBST([DEFAULT_CFLAGS], ["$default_cflags -O2"])
+ AC_SUBST([DEFAULT_CPPFLAGS], ["-DNDEBUG"])
+ ]
)
-
+AC_SUBST([UDEV_LIBS])
AC_SUBST([LIBTOOL_DEPS])
AC_SUBST([DESTDIR])
AC_SUBST([pkgsysconfdir], ["${sysconfdir}/${package}"])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
- discover/Makefile
- discover/grub2/Makefile
- lib/Makefile
- man/Makefile
- test/Makefile
- test/lib/Makefile
- test/parser/Makefile
- test/urls/Makefile
- ui/Makefile
- ui/common/Makefile
- ui/ncurses/Makefile
- ui/test/Makefile
- ui/twin/Makefile
- utils/Makefile
po/Makefile.in
])