78 NEEDS_LIB_FFI=true
79 else
80 NEEDS_LIB_FFI=false
81 fi
82 ])
83
84 ################################################################################
85 # Parse library options, and setup needed libraries
86 ################################################################################
87 AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
88 [
89 LIB_SETUP_STD_LIBS
90 LIB_SETUP_X11
91 LIB_SETUP_CUPS
92 LIB_SETUP_FREETYPE
93 LIB_SETUP_ALSA
94 LIB_SETUP_LIBFFI
95 LIB_SETUP_LLVM
96 LIB_SETUP_BUNDLED_LIBS
97 LIB_SETUP_MISC_LIBS
98 ])
99
100 ################################################################################
101 # Setup llvm (Low-Level VM)
102 ################################################################################
103 AC_DEFUN_ONCE([LIB_SETUP_LLVM],
104 [
105 if HOTSPOT_CHECK_JVM_VARIANT(zeroshark); then
106 AC_CHECK_PROG([LLVM_CONFIG], [llvm-config], [llvm-config])
107
108 if test "x$LLVM_CONFIG" != xllvm-config; then
109 AC_MSG_ERROR([llvm-config not found in $PATH.])
110 fi
111
112 llvm_components="jit mcjit engine nativecodegen native"
113 unset LLVM_CFLAGS
114 for flag in $("$LLVM_CONFIG" --cxxflags); do
115 if echo "${flag}" | grep -q '^-@<:@ID@:>@'; then
116 if test "${flag}" != "-D_DEBUG" ; then
117 if test "${LLVM_CFLAGS}" != "" ; then
172
173 # Setup libdl (for dynamic library loading)
174 save_LIBS="$LIBS"
175 LIBS=""
176 AC_CHECK_LIB(dl, dlopen)
177 LIBDL="$LIBS"
178 AC_SUBST(LIBDL)
179 LIBS="$save_LIBS"
180
181 # Deprecated libraries, keep the flags for backwards compatibility
182 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
183 BASIC_DEPRECATED_ARG_WITH([dxsdk])
184 BASIC_DEPRECATED_ARG_WITH([dxsdk-lib])
185 BASIC_DEPRECATED_ARG_WITH([dxsdk-include])
186 fi
187
188 # Control if libzip can use mmap. Available for purposes of overriding.
189 LIBZIP_CAN_USE_MMAP=true
190 AC_SUBST(LIBZIP_CAN_USE_MMAP)
191 ])
|
78 NEEDS_LIB_FFI=true
79 else
80 NEEDS_LIB_FFI=false
81 fi
82 ])
83
84 ################################################################################
85 # Parse library options, and setup needed libraries
86 ################################################################################
87 AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
88 [
89 LIB_SETUP_STD_LIBS
90 LIB_SETUP_X11
91 LIB_SETUP_CUPS
92 LIB_SETUP_FREETYPE
93 LIB_SETUP_ALSA
94 LIB_SETUP_LIBFFI
95 LIB_SETUP_LLVM
96 LIB_SETUP_BUNDLED_LIBS
97 LIB_SETUP_MISC_LIBS
98 LIB_SETUP_SOLARIS_STLPORT
99 ])
100
101 ################################################################################
102 # Setup llvm (Low-Level VM)
103 ################################################################################
104 AC_DEFUN_ONCE([LIB_SETUP_LLVM],
105 [
106 if HOTSPOT_CHECK_JVM_VARIANT(zeroshark); then
107 AC_CHECK_PROG([LLVM_CONFIG], [llvm-config], [llvm-config])
108
109 if test "x$LLVM_CONFIG" != xllvm-config; then
110 AC_MSG_ERROR([llvm-config not found in $PATH.])
111 fi
112
113 llvm_components="jit mcjit engine nativecodegen native"
114 unset LLVM_CFLAGS
115 for flag in $("$LLVM_CONFIG" --cxxflags); do
116 if echo "${flag}" | grep -q '^-@<:@ID@:>@'; then
117 if test "${flag}" != "-D_DEBUG" ; then
118 if test "${LLVM_CFLAGS}" != "" ; then
173
174 # Setup libdl (for dynamic library loading)
175 save_LIBS="$LIBS"
176 LIBS=""
177 AC_CHECK_LIB(dl, dlopen)
178 LIBDL="$LIBS"
179 AC_SUBST(LIBDL)
180 LIBS="$save_LIBS"
181
182 # Deprecated libraries, keep the flags for backwards compatibility
183 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
184 BASIC_DEPRECATED_ARG_WITH([dxsdk])
185 BASIC_DEPRECATED_ARG_WITH([dxsdk-lib])
186 BASIC_DEPRECATED_ARG_WITH([dxsdk-include])
187 fi
188
189 # Control if libzip can use mmap. Available for purposes of overriding.
190 LIBZIP_CAN_USE_MMAP=true
191 AC_SUBST(LIBZIP_CAN_USE_MMAP)
192 ])
193
194 ################################################################################
195 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
196 # redistribute it in the test image.
197 ################################################################################
198 AC_DEFUN_ONCE([LIB_SETUP_SOLARIS_STLPORT],
199 [
200 if test "$OPENJDK_TARGET_OS" = "solaris"; then
201 # Find the root of the Solaris Studio installation from the compiler path
202 SOLARIS_STUDIO_DIR="$(dirname $CC)/.."
203 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1"
204 AC_MSG_CHECKING([for libstlport.so.1])
205 if test -f "$STLPORT_LIB"; then
206 AC_MSG_RESULT([yes, $STLPORT_LIB])
207 BASIC_FIXUP_PATH([STLPORT_LIB])
208 else
209 AC_MSG_RESULT([no, not found at $STLPORT_LIB])
210 AC_MSG_ERROR([Failed to find libstlport.so.1, cannot build Hotspot gtests])
211 fi
212 AC_SUBST(STLPORT_LIB)
213 fi
214 ])
|