198
198
dnl check for how to do large files
201
dnl support building of Windows DLLs
204
dnl force libtool to build static libraries with PIC on AMD64-Linux & FreeBSD
205
AC_MSG_CHECKING([if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)])
207
x86_64*linux*|amd64*freebsd*|ia64*freebsd*)
216
AC_MSG_CHECKING([if compiler is icc (to build with PIC)])
230
AC_MSG_CHECKING([if we need -mimpure-text])
234
if test "$GCC" = "yes"; then
241
AC_MSG_RESULT($mimpure)
242
AM_CONDITIONAL(MIMPURE, test x$mimpure = xyes)
244
AC_MSG_CHECKING([if we need BUILDING_LIBCURL])
245
use_cppflag_building_libcurl="no"
246
use_cppflag_curl_staticlib="no"
247
CPPFLAG_CURL_STATICLIB=""
251
use_cppflag_building_libcurl="yes"
252
AC_MSG_CHECKING([if we need CURL_STATICLIB])
253
if test "X$enable_shared" = "Xno"
256
use_cppflag_curl_staticlib="yes"
257
CPPFLAG_CURL_STATICLIB="-DCURL_STATICLIB"
266
AM_CONDITIONAL(USE_CPPFLAG_BUILDING_LIBCURL, test x$use_cppflag_building_libcurl = xyes)
267
AM_CONDITIONAL(USE_CPPFLAG_CURL_STATICLIB, test x$use_cppflag_curl_staticlib = xyes)
268
AC_SUBST(CPPFLAG_CURL_STATICLIB)
204
# Automake conditionals based on libtool related checks
207
AM_CONDITIONAL([CURL_LT_SHLIB_USE_VERSION_INFO],
208
[test "x$xc_lt_shlib_use_version_info" = 'xyes'])
209
AM_CONDITIONAL([CURL_LT_SHLIB_USE_NO_UNDEFINED],
210
[test "x$xc_lt_shlib_use_no_undefined" = 'xyes'])
211
AM_CONDITIONAL([CURL_LT_SHLIB_USE_MIMPURE_TEXT],
212
[test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'])
215
# Due to libtool and automake machinery limitations of not allowing
216
# specifying separate CPPFLAGS or CFLAGS when compiling objects for
217
# inclusion of these in shared or static libraries, we are forced to
218
# build using separate configure runs for shared and static libraries
219
# on systems where different CPPFLAGS or CFLAGS are mandatory in order
220
# to compile objects for each kind of library. Notice that relying on
221
# the '-DPIC' CFLAG that libtool provides is not valid given that the
222
# user might for example choose to build static libraries with PIC.
226
# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
227
# targeting a static library and not building its shared counterpart.
230
AM_CONDITIONAL([USE_CPPFLAG_CURL_STATICLIB],
231
[test "x$xc_lt_build_static_only" = 'xyes'])
234
# Make staticlib CPPFLAG variable and its definition visible in output
235
# files unconditionally, providing an empty definition unless strictly
236
# targeting a static library and not building its shared counterpart.
239
CPPFLAG_CURL_STATICLIB=
240
if test "x$xc_lt_build_static_only" = 'xyes'; then
241
CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
243
AC_SUBST([CPPFLAG_CURL_STATICLIB])
270
246
# Determine whether all dependent libraries must be specified when linking
271
247
if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
2294
2263
if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
2295
2264
AC_MSG_WARN([SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more.])
2296
AC_MSG_WARN([Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls or --with-winssl to address this.])
2265
AC_MSG_WARN([Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this.])
2298
2267
# SSL is enabled, genericly
2299
2268
AC_SUBST(SSL_ENABLED)
2616
AC_SUBST(VERSIONED_FLAVOUR, ["$versioned_symbols_flavour"])
2617
AM_CONDITIONAL(VERSIONED_SYMBOLS, test "x$versioned_symbols" = "xyes")
2585
AC_SUBST([CURL_LT_SHLIB_VERSIONED_FLAVOUR],
2586
["$versioned_symbols_flavour"])
2587
AM_CONDITIONAL([CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS],
2588
[test "x$versioned_symbols" = 'xyes'])
2619
2590
dnl -------------------------------------------------
2620
2591
dnl check winidn option before other IDN libraries