Statistics
| Branch: | Tag: | Revision:

root / snf-image-helper / configure.ac @ bc9d337a

History | View | Annotate | Download (1.1 kB)

1
AC_PREREQ(2.59)
2
AC_INIT(snf-image-helper, 0.3.6, synnefo@lists.grnet.gr)
3

    
4
AC_CONFIG_AUX_DIR(autotools)
5
AC_CONFIG_SRCDIR(configure)
6

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

    
10
# Check common programs
11
AC_PROG_INSTALL
12
AC_PROG_LN_S
13
AC_PROG_AWK
14
AC_PROG_MKDIR_P
15

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

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

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

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

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

    
41
AC_CONFIG_FILES([
42
    Makefile
43
    tasks/Makefile
44
])
45
AC_OUTPUT
46

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