Statistics
| Branch: | Tag: | Revision:

root / configure.ac @ 9ff7e35c

History | View | Annotate | Download (1.6 kB)

1
# Configure script for Ganeti
2
AC_PREREQ(2.59)
3
AC_INIT(ganeti, 1.2b2, ganeti@googlegroups.com)
4
AC_CONFIG_AUX_DIR(autotools)
5
AC_CONFIG_SRCDIR(configure)
6
AM_INIT_AUTOMAKE([foreign tar-ustar])
7

    
8
# --with-ssh-initscript=...
9
AC_ARG_WITH([ssh-initscript],
10
  [AS_HELP_STRING([--with-ssh-initscript=SCRIPT],
11
    [SSH init script to use (default is /etc/init.d/ssh)]
12
  )],
13
  [ssh_initd_script="$withval"],
14
  [ssh_initd_script="/etc/init.d/ssh"])
15
AC_SUBST(SSH_INITD_SCRIPT, $ssh_initd_script)
16

    
17
# --with-export-dir=...
18
AC_ARG_WITH([export-dir],
19
  [AS_HELP_STRING([--with-export-dir=DIR],
20
    [directory to use by default for instance image exports (default is /srv/ganeti/export)]
21
  )],
22
  [export_dir="$withval"],
23
  [export_dir="/srv/ganeti/export"])
24
AC_SUBST(EXPORT_DIR, $export_dir)
25

    
26
# --with-os-search-path=...
27
# do a bit of black sed magic to for quoting of the strings in the list
28
AC_ARG_WITH([os-search-path],
29
  [AS_HELP_STRING([--with-os-search-path=LIST],
30
    [comma separated list of directories to search for OS images (default is /srv/ganeti/os)]
31
  )],
32
  [os_search_path=`echo -n "$withval" | sed -e "s/\([[^,]]*\)/'\1'/g"`],
33
  [os_search_path="'/srv/ganeti/os'"])
34
AC_SUBST(OS_SEARCH_PATH, $os_search_path)
35

    
36
# Check common programs
37
AC_PROG_INSTALL
38
AC_PROG_LN_S
39

    
40
# Check for Python
41
AM_PATH_PYTHON(2.4)
42

    
43
# Check for docbook2man
44
found_docbook2man=
45
AC_CHECK_PROG(found_docbook2man, [docbook2man], [yes])
46
if test "$found_docbook2man" != "yes"
47
then
48
  AC_MSG_WARN([docbook2man not found.])
49
fi
50

    
51
AC_CONFIG_FILES([
52
  Makefile
53
  daemons/Makefile
54
  doc/Makefile
55
  doc/examples/Makefile
56
  lib/Makefile
57
  man/Makefile
58
  qa/Makefile
59
  scripts/Makefile
60
  test/Makefile
61
  tools/Makefile
62
])
63

    
64
AC_OUTPUT