17 |
# Initialization |
# Initialization |
18 |
# ============== |
# ============== |
19 |
|
|
20 |
AC_INIT(gc,6.2alpha4,Hans.Boehm@hp.com) |
AC_INIT(gc,6.2alpha6,Hans.Boehm@hp.com) |
21 |
## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)? |
## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)? |
22 |
AC_CONFIG_SRCDIR(gcj_mlc.c) |
AC_CONFIG_SRCDIR(gcj_mlc.c) |
23 |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
64 |
) |
) |
65 |
|
|
66 |
AC_ARG_ENABLE(cplusplus, |
AC_ARG_ENABLE(cplusplus, |
67 |
[ --enable-cplusplus include C++ support in GC library and include directory], |
[ --enable-cplusplus install C++ support], |
68 |
) |
) |
69 |
|
|
70 |
INCLUDES=-I${srcdir}/include |
INCLUDES=-I${srcdir}/include |
89 |
AC_DEFINE(GC_LINUX_THREADS) |
AC_DEFINE(GC_LINUX_THREADS) |
90 |
AC_DEFINE(_REENTRANT) |
AC_DEFINE(_REENTRANT) |
91 |
;; |
;; |
92 |
|
*-*-aix*) |
93 |
|
AC_DEFINE(GC_AIX_THREADS) |
94 |
|
AC_DEFINE(_REENTRANT) |
95 |
|
;; |
96 |
*-*-hpux*) |
*-*-hpux*) |
97 |
AC_MSG_WARN("Only HP/UX 11 threads are supported.") |
AC_MSG_WARN("Only HP/UX 11 threads are supported.") |
98 |
AC_DEFINE(GC_HPUX_THREADS) |
AC_DEFINE(GC_HPUX_THREADS) |
120 |
AC_DEFINE(GC_WIN32_THREADS) |
AC_DEFINE(GC_WIN32_THREADS) |
121 |
;; |
;; |
122 |
*-*-darwin*) |
*-*-darwin*) |
123 |
AC_DEFINE(GC_MACOSX_THREADS) |
AC_DEFINE(GC_DARWIN_THREADS) |
124 |
|
AC_DEFINE(THREAD_LOCAL_ALLOC) |
125 |
|
if test "${enable_parallel_mark}" = yes; then |
126 |
|
AC_DEFINE(PARALLEL_MARK) |
127 |
|
fi |
128 |
;; |
;; |
129 |
*-*-osf*) |
*-*-osf*) |
130 |
AC_DEFINE(GC_OSF1_THREADS) |
AC_DEFINE(GC_OSF1_THREADS) |
167 |
esac |
esac |
168 |
AC_SUBST(THREADLIBS) |
AC_SUBST(THREADLIBS) |
169 |
|
|
170 |
# I'm not too familiar with autoconf, is this the best way to do this? -Brian |
case "$host" in |
171 |
|
powerpc-*-darwin*) |
172 |
|
powerpc_darwin=true |
173 |
|
;; |
174 |
|
esac |
175 |
|
AM_CONDITIONAL(POWERPC_DARWIN,test x$powerpc_darwin = xtrue) |
176 |
|
|
177 |
|
# We never want libdl on darwin. It is a fake libdl that just ends up making |
178 |
|
# dyld calls anyway |
179 |
case "$host" in |
case "$host" in |
180 |
*-*-darwin*) ;; |
*-*-darwin*) ;; |
181 |
*) |
*) |
199 |
) |
) |
200 |
|
|
201 |
addobjs= |
addobjs= |
202 |
|
addlibs= |
203 |
addincludes= |
addincludes= |
204 |
addtests= |
addtests= |
205 |
CXXINCLUDES= |
CXXINCLUDES= |
214 |
esac |
esac |
215 |
|
|
216 |
if test "${enable_cplusplus}" = yes; then |
if test "${enable_cplusplus}" = yes; then |
|
addobjs="$addobjs gc_cpp.lo" |
|
217 |
addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h" |
addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h" |
218 |
addtests="$addtests test_cpp" |
addtests="$addtests test_cpp" |
219 |
fi |
fi |
220 |
|
|
221 |
|
AM_CONDITIONAL(CPLUSPLUS, test "${enable_cplusplus}" = yes) |
222 |
|
|
223 |
AC_SUBST(CXX) |
AC_SUBST(CXX) |
224 |
|
|
225 |
AC_SUBST(INCLUDES) |
AC_SUBST(INCLUDES) |
294 |
addobjs="$addobjs $machdep" |
addobjs="$addobjs $machdep" |
295 |
AC_SUBST(addobjs) |
AC_SUBST(addobjs) |
296 |
AC_SUBST(addincludes) |
AC_SUBST(addincludes) |
297 |
|
AC_SUBST(addlibs) |
298 |
AC_SUBST(addtests) |
AC_SUBST(addtests) |
299 |
|
|
300 |
AC_PROG_LIBTOOL |
AC_PROG_LIBTOOL |