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
23 # questions.
24 #
25
26 # Major library component reside in separate files.
27 m4_include([lib-alsa.m4])
28 m4_include([lib-bundled.m4])
29 m4_include([lib-cups.m4])
30 m4_include([lib-ffi.m4])
31 m4_include([lib-fontconfig.m4])
32 m4_include([lib-freetype.m4])
33 m4_include([lib-hsdis.m4])
34 m4_include([lib-std.m4])
35 m4_include([lib-x11.m4])
36
37 m4_include([lib-tests.m4])
38
39 ################################################################################
40 # Determine which libraries are needed for this configuration
41 ################################################################################
42 AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
43 [
44 # Check if X11 is needed
45 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
46 # No X11 support on windows or macosx
47 NEEDS_LIB_X11=false
48 else
49 # All other instances need X11, even if building headless only, libawt still
50 # needs X11 headers.
51 NEEDS_LIB_X11=true
52 fi
53
54 # Check if fontconfig is needed
55 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
56 # No fontconfig support on windows or macosx
57 NEEDS_LIB_FONTCONFIG=false
90 ])
91
92 ################################################################################
93 # Parse library options, and setup needed libraries
94 ################################################################################
95 AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
96 [
97 LIB_SETUP_STD_LIBS
98
99 LIB_SETUP_ALSA
100 LIB_SETUP_BUNDLED_LIBS
101 LIB_SETUP_CUPS
102 LIB_SETUP_FONTCONFIG
103 LIB_SETUP_FREETYPE
104 LIB_SETUP_HSDIS
105 LIB_SETUP_LIBFFI
106 LIB_SETUP_MISC_LIBS
107 LIB_SETUP_X11
108
109 LIB_TESTS_SETUP_GTEST
110
111 BASIC_JDKLIB_LIBS=""
112 if test "x$TOOLCHAIN_TYPE" != xmicrosoft; then
113 BASIC_JDKLIB_LIBS="-ljava -ljvm"
114 fi
115
116 # Math library
117 BASIC_JVM_LIBS="$LIBM"
118
119 # Dynamic loading library
120 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xaix; then
121 BASIC_JVM_LIBS="$BASIC_JVM_LIBS $LIBDL"
122 fi
123
124 # Threading library
125 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xaix; then
126 BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lpthread"
127 fi
128
129 # librt for legacy clock_gettime
|
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
23 # questions.
24 #
25
26 # Major library component reside in separate files.
27 m4_include([lib-alsa.m4])
28 m4_include([lib-bundled.m4])
29 m4_include([lib-cups.m4])
30 m4_include([lib-ffi.m4])
31 m4_include([lib-fontconfig.m4])
32 m4_include([lib-freetype.m4])
33 m4_include([lib-hsdis.m4])
34 m4_include([lib-std.m4])
35 m4_include([lib-x11.m4])
36
37 m4_include([lib-tests.m4])
38 m4_include([lib-clang.m4])
39
40 ################################################################################
41 # Determine which libraries are needed for this configuration
42 ################################################################################
43 AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
44 [
45 # Check if X11 is needed
46 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
47 # No X11 support on windows or macosx
48 NEEDS_LIB_X11=false
49 else
50 # All other instances need X11, even if building headless only, libawt still
51 # needs X11 headers.
52 NEEDS_LIB_X11=true
53 fi
54
55 # Check if fontconfig is needed
56 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
57 # No fontconfig support on windows or macosx
58 NEEDS_LIB_FONTCONFIG=false
91 ])
92
93 ################################################################################
94 # Parse library options, and setup needed libraries
95 ################################################################################
96 AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
97 [
98 LIB_SETUP_STD_LIBS
99
100 LIB_SETUP_ALSA
101 LIB_SETUP_BUNDLED_LIBS
102 LIB_SETUP_CUPS
103 LIB_SETUP_FONTCONFIG
104 LIB_SETUP_FREETYPE
105 LIB_SETUP_HSDIS
106 LIB_SETUP_LIBFFI
107 LIB_SETUP_MISC_LIBS
108 LIB_SETUP_X11
109
110 LIB_TESTS_SETUP_GTEST
111 LIB_SETUP_LIBCLANG
112
113 BASIC_JDKLIB_LIBS=""
114 if test "x$TOOLCHAIN_TYPE" != xmicrosoft; then
115 BASIC_JDKLIB_LIBS="-ljava -ljvm"
116 fi
117
118 # Math library
119 BASIC_JVM_LIBS="$LIBM"
120
121 # Dynamic loading library
122 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xaix; then
123 BASIC_JVM_LIBS="$BASIC_JVM_LIBS $LIBDL"
124 fi
125
126 # Threading library
127 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xaix; then
128 BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lpthread"
129 fi
130
131 # librt for legacy clock_gettime
|