forked from melsman/mlkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
59 lines (49 loc) · 1.63 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
AC_INIT(MLKit, [v4.7.9])
AC_CONFIG_HEADERS([src/config.h])
AC_REVISION($Revision$)
AC_CONFIG_FILES([src/Runtime/Makefile
src/Makefile
Makefile
man/man1/mlkit-mllex.1
man/man1/mlkit-mlyacc.1
man/man1/rp2ps.1
man/man1/kittester.1
src/Tools/MlbMake/Makefile
src/Tools/Rp2ps/Makefile
src/Tools/ml-lex/Makefile
src/Tools/ml-yacc/Makefile
src/Tools/Tester/Makefile
src/Version.sml])
AC_PROG_CC
AC_PROG_LN_S
AC_PROG_INSTALL
AC_PROG_MAKE_SET
# Checks for header files.
AC_HEADER_DIRENT
# Autoupdate added the next two lines to ensure that your configure
# script's behavior did not change. They are probably safe to remove.
AC_CHECK_INCLUDES_DEFAULT
AC_PROG_EGREP
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([fcntl.h fenv.h float.h limits.h malloc.h netdb.h stddef.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/time.h sys/timeb.h termios.h unistd.h utime.h])
AC_ARG_WITH(
compiler,
AS_HELP_STRING(--with-compiler[=FILE],[SML compiler to build tools and the initial mlkit compiler]),
AC_SUBST(mlcomp,${with_compiler})
,
)
AC_ARG_WITH(
argobots,
AS_HELP_STRING(--with-argobpts[=ROOTDIR],[ARGOBOTS root-directory]),
AC_SUBST(ARGOBOTS_ROOT,${with_argobots})
,
)
AC_MSG_CHECKING(configure date)
DATE=`date -u '+%Y-%m-%dT-%H:%M:%S'`
AC_SUBST(DATE)
AC_MSG_RESULT($DATE)
COMMITDATE=`git log -1 --format=%cI`
AC_SUBST(COMMITDATE)
GITVERSION=`git describe --abbrev --dirty --always --tags`
AC_SUBST(GITVERSION)
AC_OUTPUT