1 # This file is part of the installer.
3 # installer is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as published by
5 # the Free Software Foundation; either version 2.1 of the License, or
6 # (at your option) any later version.
14 [http://git.ipfire.org/?p=ipfire-2.x.git;a=summary])
16 AC_CONFIG_MACRO_DIR([m4])
17 AC_CONFIG_HEADERS([config.h])
18 AC_CONFIG_AUX_DIR([build-aux])
31 AM_SILENT_RULES([yes])
34 LT_INIT([disable-static])
42 AC_PATH_PROG([M4], [m4])
44 AC_CHECK_HEADERS([libintl.h])
46 # This makes sure pkg.m4 is available.
47 m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
53 AC_SEARCH_LIBS([newtWinMenu], [newt], [], [AC_MSG_ERROR([*** newt library not found])])
59 PKG_CHECK_MODULES(BLKID, [blkid])
60 PKG_CHECK_MODULES(PCI, [libpci])
61 PKG_CHECK_MODULES(LIBSMOOTH, [libsmooth])
62 PKG_CHECK_MODULES(UDEV, [libudev])
64 AC_ARG_WITH([distro-name],
65 AS_HELP_STRING([--with-distro-name] [The name of the distribution]),
66 AC_DEFINE_UNQUOTED([NAME], "$withval", [The name of the distribution]),
67 AC_MSG_ERROR([*** you need to set the name with --with-distro-name=]))
69 AC_ARG_WITH([distro-sname],
70 AS_HELP_STRING([--with-distro-sname] [The short name of the distribution]),
71 AC_DEFINE_UNQUOTED([SNAME], "$withval", [The sname of the distribution]),
72 AC_MSG_ERROR([*** you need to set the sname with --with-distro-sname=]))
74 AC_ARG_WITH([distro-slogan],
75 AS_HELP_STRING([--with-distro-slogan] [The slogan of the distribution]),
76 AC_DEFINE_UNQUOTED([SLOGAN], "$withval", [The slogan of the distribution]),
77 AC_MSG_ERROR([*** you need to set the slogan with --with-distro-slogan=]))
79 AC_ARG_WITH([config-root],
80 AS_HELP_STRING([--with-distro-config-root] [The configuration directory]),
81 AC_DEFINE_UNQUOTED([CONFIG_ROOT], "$withval", [The config-root]),
82 AC_MSG_ERROR([*** you need to set CONFIG_ROOT with --with-config-root=]))
90 $PACKAGE_NAME $VERSION
92 CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
93 CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
94 LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}