1 #
2 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
48 ALSA_NOT_NEEDED=yes
49 PULSE_NOT_NEEDED=yes
50 AC_MSG_RESULT([alsa pulse])
51 fi
52
53
54 if test "x$OPENJDK_TARGET_OS" = xwindows; then
55 AC_MSG_CHECKING([what is not needed on Windows?])
56 CUPS_NOT_NEEDED=yes
57 ALSA_NOT_NEEDED=yes
58 PULSE_NOT_NEEDED=yes
59 X11_NOT_NEEDED=yes
60 AC_MSG_RESULT([alsa cups pulse x11])
61 fi
62
63 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
64 AC_MSG_CHECKING([what is not needed on MacOSX?])
65 ALSA_NOT_NEEDED=yes
66 PULSE_NOT_NEEDED=yes
67 X11_NOT_NEEDED=yes
68 # If the java runtime framework is disabled, then we need X11.
69 # This will be adjusted below.
70 AC_MSG_RESULT([alsa pulse x11])
71 fi
72
73 if test "x$OPENJDK_TARGET_OS" = xbsd; then
74 AC_MSG_CHECKING([what is not needed on bsd?])
75 ALSA_NOT_NEEDED=yes
76 AC_MSG_RESULT([alsa])
77 fi
78
79 if test "x$OPENJDK" = "xfalse"; then
80 FREETYPE_NOT_NEEDED=yes
81 fi
82
83 if test "x$SUPPORT_HEADFUL" = xno; then
84 X11_NOT_NEEDED=yes
85 fi
86
87 ###############################################################################
88 #
89 # Check for MacOSX support for OpenJDK.
90 #
91
92 BASIC_DEPRECATED_ARG_ENABLE(macosx-runtime-support, macosx_runtime_support)
93
94 AC_MSG_CHECKING([for Mac OS X Java Framework])
95 if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then
96 AC_MSG_RESULT([/System/Library/Frameworks/JavaVM.framework])
97 else
98 AC_MSG_RESULT([no])
99 fi
100 ])
101
102 AC_DEFUN_ONCE([LIB_SETUP_X11],
103 [
104
105 ###############################################################################
106 #
107 # Check for X Windows
108 #
109
110 # Check if the user has specified sysroot, but not --x-includes or --x-libraries.
111 # Make a simple check for the libraries at the sysroot, and setup --x-includes and
112 # --x-libraries for the sysroot, if that seems to be correct.
113 if test "x$SYS_ROOT" != "x/"; then
114 if test "x$x_includes" = xNONE; then
115 if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then
116 x_includes="$SYS_ROOT/usr/X11R6/include"
117 elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then
118 x_includes="$SYS_ROOT/usr/include"
119 fi
|
1 #
2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
48 ALSA_NOT_NEEDED=yes
49 PULSE_NOT_NEEDED=yes
50 AC_MSG_RESULT([alsa pulse])
51 fi
52
53
54 if test "x$OPENJDK_TARGET_OS" = xwindows; then
55 AC_MSG_CHECKING([what is not needed on Windows?])
56 CUPS_NOT_NEEDED=yes
57 ALSA_NOT_NEEDED=yes
58 PULSE_NOT_NEEDED=yes
59 X11_NOT_NEEDED=yes
60 AC_MSG_RESULT([alsa cups pulse x11])
61 fi
62
63 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
64 AC_MSG_CHECKING([what is not needed on MacOSX?])
65 ALSA_NOT_NEEDED=yes
66 PULSE_NOT_NEEDED=yes
67 X11_NOT_NEEDED=yes
68 AC_MSG_RESULT([alsa pulse x11])
69 fi
70
71 if test "x$OPENJDK_TARGET_OS" = xbsd; then
72 AC_MSG_CHECKING([what is not needed on bsd?])
73 ALSA_NOT_NEEDED=yes
74 AC_MSG_RESULT([alsa])
75 fi
76
77 if test "x$OPENJDK" = "xfalse"; then
78 FREETYPE_NOT_NEEDED=yes
79 fi
80
81 if test "x$SUPPORT_HEADFUL" = xno; then
82 X11_NOT_NEEDED=yes
83 fi
84
85 # Deprecated and now ignored
86 BASIC_DEPRECATED_ARG_ENABLE(macosx-runtime-support, macosx_runtime_support)
87 ])
88
89 AC_DEFUN_ONCE([LIB_SETUP_X11],
90 [
91
92 ###############################################################################
93 #
94 # Check for X Windows
95 #
96
97 # Check if the user has specified sysroot, but not --x-includes or --x-libraries.
98 # Make a simple check for the libraries at the sysroot, and setup --x-includes and
99 # --x-libraries for the sysroot, if that seems to be correct.
100 if test "x$SYS_ROOT" != "x/"; then
101 if test "x$x_includes" = xNONE; then
102 if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then
103 x_includes="$SYS_ROOT/usr/X11R6/include"
104 elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then
105 x_includes="$SYS_ROOT/usr/include"
106 fi
|