forked from mozart/mozart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
115 lines (98 loc) · 2.37 KB
/
configure.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
dnl -*- sh -*-
dnl
dnl Authors:
dnl Michael Mehl ([email protected])
dnl
dnl Contributors:
dnl Denys Duchier, ([email protected])
dnl
dnl Copyright:
dnl Michael Mehl (1997)
dnl
dnl Last change:
dnl $Date$ by $Author$
dnl $Revision$
dnl
dnl This file is part of Mozart, an implementation
dnl of Oz 3:
dnl http://www.mozart-oz.org
dnl
dnl See the file "LICENSE" or
dnl http://www.mozart-oz.org/LICENSE.html
dnl for information on usage and redistribution
dnl of this file, and for a DISCLAIMER OF ALL
dnl WARRANTIES.
dnl
dnl Process this file with autoconf to produce a configure script.
dnl *****************************************************************
dnl INITIALIZE
dnl *****************************************************************
dnl This will check that we are in the Oz directory and initiate
AC_INIT(OZVERSION)
OZ_INIT
AC_MSG_CHECKING(for --enable-contrib)
AC_ARG_ENABLE(contrib,
[--enable-contrib
configure the contributions (default: yes)])
if test "${enable_contrib}" != no
then
: ${oz_enable_contrib=contrib}
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING(for --enable-doc)
AC_ARG_ENABLE(doc,
[--enable-doc
configure the documentation (default: yes)])
if test "${enable_doc}" != no
then
: ${oz_enable_doc=doc}
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
if test "$target" = "i386-mingw32"
then
: ${oz_subdirs="platform $oz_enable_contrib"}
else
: ${oz_subdirs="platform share $oz_enable_contrib $oz_enable_doc"}
fi
AC_MSG_CHECKING(for --enable-subdirs)
AC_ARG_ENABLE(subdirs,
[--enable-subdirs=<dirs>
which subdirs should be configured (default: $oz_subdirs)])
if test -n "${enable_subdirs}"
then
case $enable_subdirs in
no)
oz_subdirs=
;;
yes)
;;
*)
oz_subdirs=${enable_subdirs}
;;
esac
fi
AC_MSG_RESULT($oz_subdirs)
AC_SUBST(oz_subdirs)
AC_MSG_CHECKING(for --with-stdlib)
AC_ARG_WITH(stdlib,
[--with-stdlib=DIR
directory where mozart standard library is checked out (default=NONE)],
oz_stdlib=${with_stdlib})
: ${oz_stdlib=}
if test -n "$oz_stdlib"; then
oz_stdlib=`cd "$oz_stdlib" && pwd`
fi
AC_MSG_RESULT($oz_stdlib)
OZSTDLIB="$oz_stdlib"
AC_SUBST(OZSTDLIB)
AC_CONFIG_SUBDIRS($oz_subdirs)
AC_OUTPUT(Makefile)
errprint(ifdef([OZ_INIT],
[autoconf succeeded.
],
[autoconf failed: use 'autoconf -l .' to include ./aclocal.m4.
]))