configure.ac 1.12 KB
Newer Older
Nikos Skalkotos's avatar
Nikos Skalkotos committed
1
AC_PREREQ(2.59)
2
AC_INIT(snf-image-helper, 0.9.1, synnefo@googlegroups.com)
Nikos Skalkotos's avatar
Nikos Skalkotos committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

AC_CONFIG_AUX_DIR(autotools)
AC_CONFIG_SRCDIR(configure)

AM_INIT_AUTOMAKE([1.9 foreign tar-ustar -Wall -Wno-portability])
AM_INIT_AUTOMAKE([subdir-objects])

# Check common programs
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_AWK
AC_PROG_MKDIR_P

AC_PATH_PROG(XMLSTARLET, [xmlstarlet], [], [$PATH:/usr/sbin:/sbin])
if test -z "$XMLSTARLET" ; then
  AC_MSG_ERROR([xmlstarlet not found in $PATH])
fi

AC_PATH_PROG(RESIZE2FS, [resize2fs], [], [$PATH:/usr/sbin:/sbin])
if test -z "$RESIZE2FS" ; then
  AC_MSG_ERROR([resize2fs not found in $PATH])
fi

26
27
28
29
30
AC_PATH_PROG(PARTED, [parted], [], [$PATH:/usr/sbin:/sbin])
if test -z "$PARTED" ; then
  AC_MSG_ERROR([parted not found in $PATH])
fi

31
32
33
34
35
36
37
38
39
40
AC_PATH_PROG(REGLOOKUP, [reglookup], [], [$PATH:/usr/sbin:/sbin])
if test -z "$REGLOOKUP" ; then
  AC_MSG_ERROR([reglookup not found in $PATH])
fi

AC_PATH_PROG(CHNTPW, [chntpw], [], [$PATH:/usr/sbin:/sbin])
if test -z "$CHNTPW" ; then
  AC_MSG_ERROR([chntpw not found in $PATH])
fi

Nikos Skalkotos's avatar
Nikos Skalkotos committed
41
42
43
44
45
46
47
AC_CONFIG_FILES([
    Makefile
    tasks/Makefile
])
AC_OUTPUT

# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :