]> gcc.gnu.org Git - gcc.git/blame - libjava/acinclude.m4
* extend.texi: Update for CPP.
[gcc.git] / libjava / acinclude.m4
CommitLineData
ee9dd372
TT
1AC_DEFUN(LIBGCJ_CONFIGURE,
2[
3dnl Default to --enable-multilib
4AC_ARG_ENABLE(multilib,
7941ceab 5[ --enable-multilib build many library versions (default)],
ee9dd372
TT
6[case "${enableval}" in
7 yes) multilib=yes ;;
8 no) multilib=no ;;
9 *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
10 esac], [multilib=yes])dnl
11
12dnl We may get other options which we dont document:
13dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
14
15if test "[$]{srcdir}" = "."; then
16 if test "[$]{with_target_subdir}" != "."; then
17 libgcj_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1"
18 else
19 libgcj_basedir="[$]{srcdir}/[$]{with_multisrctop}$1"
20 fi
21else
22 libgcj_basedir="[$]{srcdir}/$1"
23fi
24AC_SUBST(libgcj_basedir)
25
26AC_CANONICAL_HOST
27
158a8e6b
AO
28dnl This shouldn't be needed, as long as top-level dependencies are
29dnl defined correctly and shared-library paths are set up so that
30dnl execution tests succeed. FIXME.
31define([AC_PROG_CC_WORKS],[])
32define([AC_PROG_CXX_WORKS],[])
33
34AC_PROG_CC
35AC_PROG_CXX
36
550c2492
TT
37dnl version is pulled out to make it a bit easier to change using sed.
38version=0.0.7
ee9dd372 39dnl Still use "libjava" here to placate dejagnu.
550c2492 40AM_INIT_AUTOMAKE(libjava, $version)
ee9dd372 41
ee9dd372
TT
42# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
43# run it explicitly here, it will be run implicitly before
44# LIBGCJ_CONFIGURE, which doesn't work because that means that it will
45# be run before AC_CANONICAL_HOST.
46AC_CANONICAL_BUILD
47
48AC_CHECK_TOOL(AS, as)
49AC_CHECK_TOOL(AR, ar)
50AC_CHECK_TOOL(RANLIB, ranlib, :)
51
52AC_PROG_INSTALL
53
54AM_MAINTAINER_MODE
55
56# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
57# at least currently, we never actually build a program, so we never
58# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
59# fails, because we are probably configuring with a cross compiler
60# which cant create executables. So we include AC_EXEEXT to keep
61# automake happy, but we dont execute it, since we dont care about
62# the result.
63if false; then
64 AC_EXEEXT
65fi
66
67# configure.host sets the following important variables
68# libgcj_cflags - host specific C compiler flags
69# libgcj_cxxflags - host specific C++ compiler flags
70# libgcj_javaflags - host specific Java compiler flags
71
72libgcj_cflags=
73libgcj_cxxflags=
74libgcj_javaflags=
75
76. [$]{libgcj_basedir}/configure.host
77
78case [$]{libgcj_basedir} in
79/* | [A-Za-z]:[/\\]*) libgcj_flagbasedir=[$]{libgcj_basedir} ;;
80*) libgcj_flagbasedir='[$](top_builddir)/'[$]{libgcj_basedir} ;;
81esac
82
83LIBGCJ_CFLAGS="[$]{libgcj_cflags}"
84LIBGCJ_CXXFLAGS="[$]{libgcj_cxxflags}"
85LIBGCJ_JAVAFLAGS="[$]{libgcj_javaflags}"
86AC_SUBST(LIBGCJ_CFLAGS)
87AC_SUBST(LIBGCJ_CXXFLAGS)
88AC_SUBST(LIBGCJ_JAVAFLAGS)
89])dnl
6d0860ee
AO
90
91sinclude(../libtool.m4)
92dnl The lines below arrange for aclocal not to bring libtool.m4
93dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
94dnl to add a definition of LIBTOOL to Makefile.in.
95ifelse(yes,no,[
96AC_DEFUN([AM_PROG_LIBTOOL],)
97AC_DEFUN([AC_LIBTOOL_DLOPEN],)
98AC_DEFUN([AC_LIBLTDL_CONVENIENCE],)
58d2986d
AO
99AC_DEFUN([LT_AC_PROG_GCJ],)
100AC_SUBST(GCJ)
6d0860ee
AO
101AC_SUBST(LIBTOOL)
102])
This page took 0.141063 seconds and 5 git commands to generate.