2012-07-06 01:27:07 +00:00
|
|
|
#
|
2015-11-05 14:14:39 +00:00
|
|
|
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
|
2012-07-06 01:27:07 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
|
|
|
AC_DEFUN_ONCE([SRCDIRS_SETUP_TOPDIRS],
|
|
|
|
[
|
2015-11-05 14:14:39 +00:00
|
|
|
# Where are the sources.
|
2013-10-10 12:58:19 +00:00
|
|
|
LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
|
|
|
|
CORBA_TOPDIR="$SRC_ROOT/corba"
|
|
|
|
JAXP_TOPDIR="$SRC_ROOT/jaxp"
|
|
|
|
JAXWS_TOPDIR="$SRC_ROOT/jaxws"
|
|
|
|
HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
|
|
|
|
NASHORN_TOPDIR="$SRC_ROOT/nashorn"
|
|
|
|
JDK_TOPDIR="$SRC_ROOT/jdk"
|
|
|
|
AC_SUBST(LANGTOOLS_TOPDIR)
|
|
|
|
AC_SUBST(CORBA_TOPDIR)
|
|
|
|
AC_SUBST(JAXP_TOPDIR)
|
|
|
|
AC_SUBST(JAXWS_TOPDIR)
|
|
|
|
AC_SUBST(HOTSPOT_TOPDIR)
|
|
|
|
AC_SUBST(NASHORN_TOPDIR)
|
|
|
|
AC_SUBST(JDK_TOPDIR)
|
2012-07-06 01:27:07 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN_ONCE([SRCDIRS_SETUP_ALTERNATIVE_TOPDIRS],
|
|
|
|
[
|
2015-11-05 14:14:39 +00:00
|
|
|
# This feature is no longer supported.
|
|
|
|
|
|
|
|
BASIC_DEPRECATED_ARG_WITH(add-source-root)
|
|
|
|
BASIC_DEPRECATED_ARG_WITH(override-source-root)
|
|
|
|
BASIC_DEPRECATED_ARG_WITH(adds-and-overrides)
|
|
|
|
BASIC_DEPRECATED_ARG_WITH(override-langtools)
|
|
|
|
BASIC_DEPRECATED_ARG_WITH(override-corba)
|
|
|
|
BASIC_DEPRECATED_ARG_WITH(override-jaxp)
|
|
|
|
BASIC_DEPRECATED_ARG_WITH(override-jaxws)
|
|
|
|
BASIC_DEPRECATED_ARG_WITH(override-hotspot)
|
|
|
|
BASIC_DEPRECATED_ARG_WITH(override-nashorn)
|
|
|
|
BASIC_DEPRECATED_ARG_WITH(override-jdk)
|
2012-07-06 01:27:07 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN_ONCE([SRCDIRS_SETUP_OUTPUT_DIRS],
|
|
|
|
[
|
2013-10-10 12:58:19 +00:00
|
|
|
BUILD_OUTPUT="$OUTPUT_ROOT"
|
|
|
|
AC_SUBST(BUILD_OUTPUT)
|
2012-07-06 01:27:07 +00:00
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist"
|
|
|
|
BUILD_HOTSPOT=true
|
|
|
|
AC_SUBST(HOTSPOT_DIST)
|
|
|
|
AC_SUBST(BUILD_HOTSPOT)
|
|
|
|
AC_ARG_WITH(import-hotspot, [AS_HELP_STRING([--with-import-hotspot],
|
|
|
|
[import hotspot binaries from this jdk image or hotspot build dist dir instead of building from source])])
|
|
|
|
if test "x$with_import_hotspot" != x; then
|
2012-11-12 20:34:11 +00:00
|
|
|
CURDIR="$PWD"
|
|
|
|
cd "$with_import_hotspot"
|
|
|
|
HOTSPOT_DIST="`pwd`"
|
|
|
|
cd "$CURDIR"
|
|
|
|
if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then
|
2013-10-10 12:58:19 +00:00
|
|
|
AC_MSG_ERROR([You have to import hotspot from a full jdk image or hotspot build dist dir!])
|
2012-11-12 20:34:11 +00:00
|
|
|
fi
|
|
|
|
AC_MSG_CHECKING([if hotspot should be imported])
|
|
|
|
AC_MSG_RESULT([yes from $HOTSPOT_DIST])
|
|
|
|
BUILD_HOTSPOT=false
|
2013-10-10 12:58:19 +00:00
|
|
|
fi
|
2012-11-12 20:34:11 +00:00
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk"
|
2012-07-06 01:27:07 +00:00
|
|
|
])
|