-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
145 lines (131 loc) · 4.37 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#
# openlava project
#
# Copyright (C) 2011-2016 David Bigagli
#
AC_INIT(openlava, 2.2)
AC_CONFIG_HEADERS(config.h)
AC_PREFIX_DEFAULT([/opt/openlava-2.2])
AC_DEFINE(_OPENLAVA_PROJECT_, "openlava project 2.2", "Set project string in binaries.")
AC_DEFINE(OPENLAVA_VERSION, 22, "Current openlava version.")
#AC_DEFINE(REL_DATE, "Nov 11 2013", "Set the release date.")
# Non Linux support
AC_CANONICAL_SYSTEM
AM_CONDITIONAL([CYGWIN], [false])
AM_CONDITIONAL([SOLARIS], [false])
case "${target_os}" in
*cygwin*)
AM_CONDITIONAL([CYGWIN], [true]) ;;
*solaris*)
AM_CONDITIONAL([SOLARIS], [true]) ;;
esac
# Initialize the automake
AM_INIT_AUTOMAKE
# Experimental scheduling module
# Leave for future
#AM_CONDITIONAL([SCHED_EXPERIMENTAL], [false])
# Clean output if possible
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
# Check for programs
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_PROG_YACC
AC_PROG_LEX
AC_PROG_LN_S
AC_PROG_MAKE_SET
# Force warnings on for gcc
if test "x$ac_compiler_gnu" = xyes; then
CFLAGS="$CFLAGS -Wall -fPIC"
fi
AC_CHECK_HEADERS(ncurses.h,[cf_cv_ncurses_header="ncurses.h"], [
AC_MSG_ERROR([cannot build openlava without ncurses])
])
# Check for tcl, we try tcl and all 8.X versions
AC_CHECK_HEADERS([tcl.h], [], [
AC_CHECK_HEADERS([tcl/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.6/tcl.h], [], [
AC_CHECK_HEADERS([tcl86/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.5/tcl.h], [], [
AC_CHECK_HEADERS([tcl85/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.4/tcl.h], [], [
AC_CHECK_HEADERS([tcl84/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.3/tcl.h], [], [
AC_CHECK_HEADERS([tcl83/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.2/tcl.h], [], [
AC_CHECK_HEADERS([tcl82/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.1/tcl.h], [], [
AC_CHECK_HEADERS([tcl81/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.0/tcl.h], [], [
AC_CHECK_HEADERS([tcl80/tcl.h], [], [
AC_MSG_ERROR([cannot build openlava without tcl])
])])])])])])])])])])])])])])])])
AC_CHECK_LIB([tcl], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.6], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl86], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.5], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl85], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.4], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl84], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.3], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl83], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.2], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl82], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.1], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl81], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.0], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl80], [Tcl_CreateInterp], [], [
AC_MSG_ERROR([cannot build openlava without tcl8.*])
])])])])])])])])])])])])])])])
# Set some cluster configuration variables .
AC_ARG_VAR([openlavaadmin], [Username of the openlava admin])
AC_ARG_VAR([openlavacluster], [Name of the cluster])
# Set some defaults.
: ${openlavaadmin:=openlava}
: ${openlavacluster:=openlava}
AC_SUBST([openlavaadmin])
AC_SUBST([openlavacluster])
AC_MSG_RESULT([username for openlava admin ... ${openlavaadmin}])
AC_MSG_RESULT([name for openlava cluster ... ${openlavacluster}])
AC_CONFIG_FILES([
Makefile \
config/Makefile \
lsf/Makefile \
lsf/intlib/Makefile \
lsf/lib/Makefile \
lsf/lim/Makefile \
lsf/res/Makefile \
lsf/pim/Makefile \
lsf/lstools/Makefile \
lsf/lsadm/Makefile \
lsf/man/Makefile \
lsf/man/man1/Makefile \
lsf/man/man5/Makefile \
lsf/man/man8/Makefile \
lsbatch/Makefile \
lsbatch/lib/Makefile \
lsbatch/cmd/Makefile \
lsbatch/bhist/Makefile \
lsbatch/daemons/Makefile \
lsbatch/man1/Makefile \
lsbatch/man5/Makefile \
lsbatch/man8/Makefile \
eauth/Makefile \
scripts/Makefile \
chkpnt/Makefile \
config/lsf.conf \
config/lsb.hosts \
config/lsb.params \
config/lsb.queues \
config/lsb.users \
config/lsf.cluster.${openlavacluster}:config/lsf.cluster.openlava.in \
config/lsf.shared \
config/lsf.task \
config/openlava.csh \
config/openlava \
config/openlava.setup \
config/openlava.sh \
examples/Makefile],,
[openlavacluster=$openlavacluster]
)
AC_OUTPUT