< prev index next >

common/autoconf/libraries.m4

Print this page


   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


 152 
 153 ################################################################################
 154 # Setup various libraries, typically small system libraries
 155 ################################################################################
 156 AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS],
 157 [
 158   # Setup libm (the maths library)
 159   AC_CHECK_LIB(m, cos, [], [
 160       AC_MSG_NOTICE([Maths library was not found])
 161   ])
 162   LIBM=-lm
 163   AC_SUBST(LIBM)
 164 
 165   # Setup libdl (for dynamic library loading)
 166   save_LIBS="$LIBS"
 167   LIBS=""
 168   AC_CHECK_LIB(dl, dlopen)
 169   LIBDL="$LIBS"
 170   AC_SUBST(LIBDL)
 171   LIBS="$save_LIBS"










 172 
 173   # Deprecated libraries, keep the flags for backwards compatibility
 174   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 175     BASIC_DEPRECATED_ARG_WITH([dxsdk])
 176     BASIC_DEPRECATED_ARG_WITH([dxsdk-lib])
 177     BASIC_DEPRECATED_ARG_WITH([dxsdk-include])
 178   fi
 179 
 180   # Control if libzip can use mmap. Available for purposes of overriding.
 181   LIBZIP_CAN_USE_MMAP=true
 182   AC_SUBST(LIBZIP_CAN_USE_MMAP)
 183 ])
   1 #
   2 # Copyright (c) 2011, 2016, 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


 152 
 153 ################################################################################
 154 # Setup various libraries, typically small system libraries
 155 ################################################################################
 156 AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS],
 157 [
 158   # Setup libm (the maths library)
 159   AC_CHECK_LIB(m, cos, [], [
 160       AC_MSG_NOTICE([Maths library was not found])
 161   ])
 162   LIBM=-lm
 163   AC_SUBST(LIBM)
 164 
 165   # Setup libdl (for dynamic library loading)
 166   save_LIBS="$LIBS"
 167   LIBS=""
 168   AC_CHECK_LIB(dl, dlopen)
 169   LIBDL="$LIBS"
 170   AC_SUBST(LIBDL)
 171   LIBS="$save_LIBS"
 172   
 173   # The iconv library
 174   ICONV_LIBS=-liconv
 175   if test "x$OPENJDK_TARGET_OS_ENV" = "xbsd.openbsd"; then
 176     ICONV_CFLAGS="-I/usr/local/include"
 177   else
 178     ICONV_CFLAGS=
 179   fi
 180   AC_SUBST(ICONV_LIBS)
 181   AC_SUBST(ICONV_CFLAGS)
 182 
 183   # Deprecated libraries, keep the flags for backwards compatibility
 184   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 185     BASIC_DEPRECATED_ARG_WITH([dxsdk])
 186     BASIC_DEPRECATED_ARG_WITH([dxsdk-lib])
 187     BASIC_DEPRECATED_ARG_WITH([dxsdk-include])
 188   fi
 189 
 190   # Control if libzip can use mmap. Available for purposes of overriding.
 191   LIBZIP_CAN_USE_MMAP=true
 192   AC_SUBST(LIBZIP_CAN_USE_MMAP)
 193 ])
< prev index next >