-
Notifications
You must be signed in to change notification settings - Fork 58
/
configure.ac.in
52 lines (43 loc) · 1.87 KB
/
configure.ac.in
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
dnl DO NOT process this file with autoconf to produce a configure script.
dnl Instead, process it with ./bootstrap, which does substitutions
dnl on it to generate an appropriate configure.ac.
dnl This `package name' is a dummy
AC_INIT(startree, 1.0, [email protected])
AC_PREREQ(2.50)
AC_CONFIG_SRCDIR(Makefile.dependencies)
dnl The default prefix is NOT set in this file, but must be
dnl edited into this file by the ./bootstrap script, which gets
dnl the correct value for this from the value of $STARCONF_DEFAULT_PREFIX
dnl (which should be the same as 'starconf --show STARCONF_DEFAULT_PREFIX').
AC_PREFIX_DEFAULT(%%PREFIX%%)
if test $ac_default_prefix = %%'PREFIX'%%; then
echo 'You have run recently autoconf in the top-level build directory.'
echo 'This will not work: either run ./bootstrap instead,'
echo 'or search for %%'PREFIX'%% in ./bootstrap to see how to'
echo 'fix this up.'
exit 1
fi
dnl If no java can be found, set this to the magic (and obviously failed)
dnl value NOJAVA. This is tested for in Makefile.in
AC_PATH_PROG([JAVA], [java], [NOJAVA])
AC_ARG_VAR([JAVA], [Location of java runtime])
AC_PROG_MAKE_SET
AC_PROG_LN_S
dnl Locate git command, if not already defined.
: ${GIT='git'}
if test "${GIT}" = "git"; then
AC_PATH_PROG(GIT, git)
fi
AC_SUBST(SVNVERSION)
dnl Need to install the world-stamp and starlink.version files.
AC_PROG_INSTALL
dnl The following list of active directories must be maintained by hand
dnl
dnl Do NOT mention buildsupport in AC_CONFIG_SUBDIRS. If we
dnl include buildsupport here, then ./configure will recurse into
dnl buildsupport/starconf, which means we end up reconfiguring it
dnl with a wrong --prefix whenever we ./configure in the top-level
dnl directory.
AC_CONFIG_SUBDIRS(applications libext libraries etc thirdparty docs)
AC_CONFIG_FILES(Makefile)
AC_OUTPUT