]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/setup/configure.ac
Merge branch 'kernel-test' into seventeen
[people/pmueller/ipfire-2.x.git] / src / setup / configure.ac
1 # This file is part of the setup tool.
2 #
3 # setup 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.
7
8 AC_PREREQ([2.64])
9
10 AC_INIT([setup],
11 [001],
12 [],
13 [setup],
14 [http://git.ipfire.org/?p=ipfire-2.x.git;a=summary])
15
16 AC_CONFIG_MACRO_DIR([m4])
17 AC_CONFIG_HEADERS([config.h])
18 AC_CONFIG_AUX_DIR([build-aux])
19
20 AM_INIT_AUTOMAKE([
21 foreign
22 1.11
23 -Wall
24 -Wno-portability
25 silent-rules
26 tar-pax
27 no-dist-gzip
28 dist-xz
29 subdir-objects
30 ])
31 AM_SILENT_RULES([yes])
32
33 LT_PREREQ(2.2)
34 LT_INIT([disable-static])
35
36 AC_PROG_CC
37 AC_PROG_CC_C99
38 AC_PROG_CC_C_O
39
40 AC_PATH_PROG([M4], [m4])
41
42 # Gettext
43 AM_GNU_GETTEXT([external])
44 AM_GNU_GETTEXT_VERSION([0.18])
45 AC_CHECK_HEADERS([libintl.h])
46
47 # This makes sure pkg.m4 is available.
48 m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
49
50 # newt
51 LIBS=
52 AC_SEARCH_LIBS([newtWinMenu], [newt], [], [AC_MSG_ERROR([*** newt library not found])])
53 NEWT_LIBS="$LIBS"
54 AC_SUBST(NEWT_LIBS)
55
56 LIBS="$save_LIBS"
57
58 PKG_CHECK_MODULES(LIBSMOOTH, [libsmooth])
59
60 AC_ARG_WITH([distro-name],
61 AS_HELP_STRING([--with-distro-name] [The name of the distribution]),
62 AC_DEFINE_UNQUOTED([NAME], "$withval", [The name of the distribution]),
63 AC_MSG_ERROR([*** you need to set the name with --with-distro-name=]))
64
65 AC_ARG_WITH([distro-sname],
66 AS_HELP_STRING([--with-distro-sname] [The short name of the distribution]),
67 AC_DEFINE_UNQUOTED([SNAME], "$withval", [The sname of the distribution]),
68 AC_MSG_ERROR([*** you need to set the sname with --with-distro-sname=]))
69
70 AC_ARG_WITH([distro-slogan],
71 AS_HELP_STRING([--with-distro-slogan] [The slogan of the distribution]),
72 AC_DEFINE_UNQUOTED([SLOGAN], "$withval", [The slogan of the distribution]),
73 AC_MSG_ERROR([*** you need to set the slogan with --with-distro-slogan=]))
74
75 AC_ARG_WITH([config-root],
76 AS_HELP_STRING([--with-distro-config-root] [The configuration directory]),
77 AC_DEFINE_UNQUOTED([CONFIG_ROOT], "$withval", [The config-root]),
78 AC_MSG_ERROR([*** you need to set CONFIG_ROOT with --with-config-root=]))
79
80 AC_CONFIG_FILES([
81 Makefile
82 po/Makefile.in
83 ])
84
85 AC_OUTPUT
86 AC_MSG_RESULT([
87 $PACKAGE_NAME $VERSION
88
89 CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
90 CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
91 LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
92 ])