| 1 | dnl Process this with autoconf to create configure
|
|---|
| 2 | AC_INIT(java/lang/System.java)
|
|---|
| 3 |
|
|---|
| 4 | # This works around the fact that libtool configuration may change LD
|
|---|
| 5 | # for this particular configuration, but some shells, instead of
|
|---|
| 6 | # keeping the changes in LD private, export them just because LD is
|
|---|
| 7 | # exported.
|
|---|
| 8 | ORIGINAL_LD_FOR_MULTILIBS=$LD
|
|---|
| 9 |
|
|---|
| 10 | AC_PROG_LN_S
|
|---|
| 11 |
|
|---|
| 12 | dnl We use these options to decide which functions to include.
|
|---|
| 13 | AC_ARG_WITH(target-subdir,
|
|---|
| 14 | [ --with-target-subdir=SUBDIR
|
|---|
| 15 | configuring in a subdirectory])
|
|---|
| 16 | AC_ARG_WITH(cross-host,
|
|---|
| 17 | [ --with-cross-host=HOST configuring with a cross compiler])
|
|---|
| 18 |
|
|---|
| 19 | AC_ARG_WITH(newlib,
|
|---|
| 20 | [ --with-newlib Configuring with newlib])
|
|---|
| 21 |
|
|---|
| 22 | LIBGCJ_CONFIGURE(.)
|
|---|
| 23 |
|
|---|
| 24 | AM_CONFIG_HEADER(include/config.h gcj/libgcj-config.h)
|
|---|
| 25 |
|
|---|
| 26 | # Only use libltdl for native builds.
|
|---|
| 27 | if test -z "${with_cross_host}"; then
|
|---|
| 28 | AC_LIBLTDL_CONVENIENCE
|
|---|
| 29 | AC_LIBTOOL_DLOPEN
|
|---|
| 30 | DIRLTDL=libltdl
|
|---|
| 31 | AC_DEFINE(USE_LTDL)
|
|---|
| 32 | # Sigh. Libtool's macro doesn't do the right thing.
|
|---|
| 33 | INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
|
|---|
| 34 | # FIXME: this is a hack.
|
|---|
| 35 | sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
|
|---|
| 36 | ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
|
|---|
| 37 | fi
|
|---|
| 38 | AC_SUBST(INCLTDL)
|
|---|
| 39 | AC_SUBST(LIBLTDL)
|
|---|
| 40 | AC_SUBST(DIRLTDL)
|
|---|
| 41 | AM_PROG_LIBTOOL
|
|---|
| 42 | AC_CONFIG_SUBDIRS($DIRLTDL)
|
|---|
| 43 |
|
|---|
| 44 | if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
|
|---|
| 45 | COMPPATH=.
|
|---|
| 46 | else
|
|---|
| 47 | COMPPATH=..
|
|---|
| 48 | fi
|
|---|
| 49 | AC_SUBST(COMPPATH)
|
|---|
| 50 |
|
|---|
| 51 | dnl The -no-testsuite modules omit the test subdir.
|
|---|
|
|---|