annotate make/autoconf/source-dirs.m4 @ 47290:b90a1b5b8142

manual merge
author mcimadamore
date Mon, 25 Sep 2017 16:38:40 +0100
parents 59bdd7243c52
children
rev   line source
erikj@13133 1 #
ihse@47219 2 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
erikj@13133 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
erikj@13133 4 #
erikj@13133 5 # This code is free software; you can redistribute it and/or modify it
erikj@13133 6 # under the terms of the GNU General Public License version 2 only, as
erikj@13133 7 # published by the Free Software Foundation. Oracle designates this
erikj@13133 8 # particular file as subject to the "Classpath" exception as provided
erikj@13133 9 # by Oracle in the LICENSE file that accompanied this code.
erikj@13133 10 #
erikj@13133 11 # This code is distributed in the hope that it will be useful, but WITHOUT
erikj@13133 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
erikj@13133 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
erikj@13133 14 # version 2 for more details (a copy is included in the LICENSE file that
erikj@13133 15 # accompanied this code).
erikj@13133 16 #
erikj@13133 17 # You should have received a copy of the GNU General Public License version
erikj@13133 18 # 2 along with this work; if not, write to the Free Software Foundation,
erikj@13133 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
erikj@13133 20 #
erikj@13133 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
erikj@13133 22 # or visit www.oracle.com if you need additional information or have any
erikj@13133 23 # questions.
erikj@13133 24 #
erikj@13133 25
ihse@47219 26 AC_DEFUN_ONCE([SRCDIRS_SETUP_DIRS],
erikj@13133 27 [
mcimadamore@47290 28 OUTPUTDIR="$OUTPUTDIR"
mcimadamore@47290 29 AC_SUBST(OUTPUTDIR)
mcimadamore@47290 30 JDK_OUTPUTDIR="$OUTPUTDIR/jdk"
ohair@13697 31
ihse@47219 32 # Where are the sources.
ihse@47219 33 AC_SUBST(TOPDIR)
erikj@13133 34 ])
alanb@36506 35
alanb@36506 36 ################################################################################
alanb@36506 37 # Define a mechanism for importing extra prebuilt modules
alanb@36506 38 #
alanb@36506 39
alanb@36506 40 AC_DEFUN_ONCE([SRCDIRS_SETUP_IMPORT_MODULES],
alanb@36506 41 [
alanb@36506 42 AC_ARG_WITH(import-modules, [AS_HELP_STRING([--with-import-modules],
alanb@36506 43 [import a set of prebuilt modules either as a zip file or an exploded directory])])
alanb@36506 44
alanb@36506 45 if test "x$with_import_modules" != x \
alanb@36506 46 && test "x$with_import_modules" != "xno"; then
alanb@36506 47 if test -d "$with_import_modules"; then
alanb@36506 48 IMPORT_MODULES_TOPDIR="$with_import_modules"
alanb@36506 49 BASIC_FIXUP_PATH([IMPORT_MODULES_TOPDIR])
alanb@36506 50 elif test -e "$with_import_modules"; then
alanb@36506 51 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules"
alanb@36506 52 $RM -rf "$IMPORT_MODULES_TOPDIR"
alanb@36506 53 $MKDIR -p "$IMPORT_MODULES_TOPDIR"
alanb@36506 54 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then
alanb@36506 55 AC_MSG_ERROR([--with-import-modules="$with_import_modules" must point to a dir or a zip file])
alanb@36506 56 fi
alanb@36506 57 else
alanb@36506 58 AC_MSG_ERROR([--with-import-modules="$with_import_modules" must point to a dir or a zip file])
alanb@36506 59 fi
alanb@36506 60 fi
alanb@36506 61
alanb@36506 62 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then
alanb@36506 63 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules"
alanb@36506 64 fi
alanb@36506 65 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then
alanb@36506 66 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds"
alanb@36506 67 fi
alanb@36506 68 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then
alanb@36506 69 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs"
alanb@36506 70 fi
alanb@36506 71 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then
alanb@36506 72 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf"
alanb@36506 73 fi
mchung@42505 74 if test -d "$IMPORT_MODULES_TOPDIR/modules_legal"; then
mchung@42505 75 IMPORT_MODULES_LEGAL="$IMPORT_MODULES_TOPDIR/modules_legal"
mchung@42505 76 fi
mchung@42505 77 if test -d "$IMPORT_MODULES_TOPDIR/modules_man"; then
mchung@42505 78 IMPORT_MODULES_MAN="$IMPORT_MODULES_TOPDIR/modules_man"
mchung@42505 79 fi
alanb@36506 80 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then
alanb@36506 81 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src"
alanb@36506 82 fi
alanb@36506 83 if test -d "$IMPORT_MODULES_TOPDIR/make"; then
alanb@36506 84 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make"
alanb@36506 85 fi
alanb@36506 86
alanb@36506 87 AC_SUBST(IMPORT_MODULES_CLASSES)
alanb@36506 88 AC_SUBST(IMPORT_MODULES_CMDS)
alanb@36506 89 AC_SUBST(IMPORT_MODULES_LIBS)
alanb@36506 90 AC_SUBST(IMPORT_MODULES_CONF)
erikj@42519 91 AC_SUBST(IMPORT_MODULES_LEGAL)
erikj@42519 92 AC_SUBST(IMPORT_MODULES_MAN)
alanb@36506 93 AC_SUBST(IMPORT_MODULES_SRC)
alanb@36506 94 AC_SUBST(IMPORT_MODULES_MAKE)
alanb@36506 95 ])