-
Notifications
You must be signed in to change notification settings - Fork 5
/
configure.ac
54 lines (47 loc) · 1.28 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
##
# Prologue
##
AC_INIT([netroot],
m4_esyscmd([git describe --always | awk '/.*/ {printf "%s",$1; exit}']))
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([config])
AC_CONFIG_SRCDIR([NEWS])
AC_CANONICAL_SYSTEM
X_AC_EXPAND_INSTALL_DIRS
##
# Automake support
##
AM_INIT_AUTOMAKE([subdir-objects])
AM_SILENT_RULES([yes])
AM_CONFIG_HEADER([config/config.h])
AM_MAINTAINER_MODE
##
# Specialized install directories
##
AC_ARG_WITH([bootdir],
[AS_HELP_STRING([--with-bootdir=DIR], [directory where kernel images live])],
[with_bootdir="$withval"], [with_bootdir="$libdir/boot"])
adl_RECURSIVE_EVAL(["$with_bootdir"], [bootdir])
AC_SUBST([bootdir])
adl_RECURSIVE_EVAL(["$sysconfdir/kernel/postinst.d"], [postinstdir])
AC_SUBST([postinstdir])
adl_RECURSIVE_EVAL(["$sysconfdir/kernel/prerm.d"], [prermdir])
AC_SUBST([prermdir])
AC_ARG_WITH([dracutmoddir],
[AS_HELP_STRING([--with-dracutmoddir=DIR], [directory where dracut modules live])],
[with_dracutmoddir="$withval"], [with_dracutmoddir="$libdir/dracut/modules.d"])
adl_RECURSIVE_EVAL(["$with_dracutmoddir"], [dracutmoddir])
AC_SUBST([dracutmoddir])
##
# Epilogue
##
AC_CONFIG_FILES( \
netroot.spec \
Makefile \
boot/Makefile \
configpxe/Makefile \
configpxe/configpxe.8 \
freedos/Makefile \
dracut.nbd9/Makefile \
)
AC_OUTPUT