-
Notifications
You must be signed in to change notification settings - Fork 13
/
configure.ac
64 lines (52 loc) · 1.47 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
55
56
57
58
59
60
61
62
63
64
AC_PREREQ(2.59)
AC_INIT(ganeti-instance-debootstrap, 0.16, [email protected])
AC_CONFIG_AUX_DIR(autotools)
AC_CONFIG_SRCDIR(configure)
AM_INIT_AUTOMAKE([1.11 foreign tar-ustar -Wall -Wno-portability])
# --with-os-dir=...
AC_ARG_WITH([os-dir],
[AS_HELP_STRING([--with-os-dir=DIR],
[top-level OS directory under which to install]
[ (default is $datadir/ganeti/os)]
)],
[os_dir="$withval"],
[os_dir="$datadir/ganeti/os"])
AC_SUBST(OS_DIR, $os_dir)
# Check common programs
AC_PROG_INSTALL
AC_PROG_LN_S
# Check for the required programs
ROOT_PATH=[$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin]dnl
[$PATH_SEPARATOR/usr/local/sbin]
AC_ARG_VAR(KPARTX, [kpartx path])
AC_PATH_PROG(KPARTX, [kpartx], [], [$ROOT_PATH])
if test -z "$KPARTX"
then
AC_MSG_ERROR([kpartx command not found])
fi
AC_ARG_VAR(LOSETUP, [losetup path])
AC_PATH_PROG(LOSETUP, [losetup], [], [$ROOT_PATH])
if test -z "$LOSETUP"
then
AC_MSG_ERROR([losetup command not found])
fi
AC_ARG_VAR(DEBOOTSTRAP, [debootstrap path])
AC_PATH_PROG(DEBOOTSTRAP, [debootstrap], [], [$ROOT_PATH])
if test -z "$DEBOOTSTRAP"
then
AC_MSG_ERROR([debootstrap command not found])
fi
AC_ARG_VAR(DUMP, [dump path])
AC_PATH_PROG(DUMP, [dump], [], [$ROOT_PATH])
if test -z "$DUMP"
then
AC_MSG_ERROR([dump command not found])
fi
AC_ARG_VAR(RESTORE, [restore path])
AC_PATH_PROG(RESTORE, [restore], [], [$ROOT_PATH])
if test -z "$RESTORE"
then
AC_MSG_ERROR([restore command not found])
fi
AC_CONFIG_FILES([ Makefile ])
AC_OUTPUT