~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-05-07 12:16:37 UTC
  • mfrom: (3.4.37 sid)
  • Revision ID: package-import@ubuntu.com-20130507121637-9t3i98qgsyr9dw5d
Tags: 7.30.0-1ubuntu1
* Resynchronize on Debian. Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
* Add warning to debian/patches/series.

Show diffs side-by-side

added added

removed removed

Lines of Context:
198
198
dnl check for how to do large files
199
199
AC_SYS_LARGEFILE
200
200
 
201
 
dnl support building of Windows DLLs
202
 
AC_LIBTOOL_WIN32_DLL
203
 
 
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)])
206
 
case $host in
207
 
  x86_64*linux*|amd64*freebsd*|ia64*freebsd*)
208
 
    AC_MSG_RESULT([yes])
209
 
    with_pic=yes
210
 
    ;;
211
 
  *)
212
 
    AC_MSG_RESULT([no])
213
 
    ;;
214
 
esac
215
 
 
216
 
AC_MSG_CHECKING([if compiler is icc (to build with PIC)])
217
 
case $CC in
218
 
  icc | */icc)
219
 
    AC_MSG_RESULT([yes])
220
 
    with_pic=yes
221
 
    ;;
222
 
  *)
223
 
    AC_MSG_RESULT([no])
224
 
    ;;
225
 
esac
226
 
 
227
 
dnl libtool setup
228
 
AC_PROG_LIBTOOL
229
 
 
230
 
AC_MSG_CHECKING([if we need -mimpure-text])
231
 
mimpure=no
232
 
case $host in
233
 
  *-*-solaris2*)
234
 
    if test "$GCC" = "yes"; then
235
 
      mimpure="yes"
236
 
    fi
237
 
    ;;
238
 
  *)
239
 
    ;;
240
 
esac
241
 
AC_MSG_RESULT($mimpure)
242
 
AM_CONDITIONAL(MIMPURE, test x$mimpure = xyes)
243
 
 
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=""
248
 
case $host in
249
 
  *-*-mingw*)
250
 
    AC_MSG_RESULT(yes)
251
 
    use_cppflag_building_libcurl="yes"
252
 
    AC_MSG_CHECKING([if we need CURL_STATICLIB])
253
 
    if test "X$enable_shared" = "Xno"
254
 
    then
255
 
      AC_MSG_RESULT(yes)
256
 
      use_cppflag_curl_staticlib="yes"
257
 
      CPPFLAG_CURL_STATICLIB="-DCURL_STATICLIB"
258
 
    else
259
 
      AC_MSG_RESULT(no)
260
 
    fi
261
 
    ;;
262
 
  *)
263
 
    AC_MSG_RESULT(no)
264
 
    ;;
265
 
esac
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)
 
201
XC_LIBTOOL
 
202
 
 
203
#
 
204
# Automake conditionals based on libtool related checks
 
205
#
 
206
 
 
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'])
 
213
 
 
214
#
 
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.
 
223
#
 
224
 
 
225
#
 
226
# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
 
227
# targeting a static library and not building its shared counterpart.
 
228
#
 
229
 
 
230
AM_CONDITIONAL([USE_CPPFLAG_CURL_STATICLIB],
 
231
  [test "x$xc_lt_build_static_only" = 'xyes'])
 
232
 
 
233
#
 
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.
 
237
#
 
238
 
 
239
CPPFLAG_CURL_STATICLIB=
 
240
if test "x$xc_lt_build_static_only" = 'xyes'; then
 
241
  CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
 
242
fi
 
243
AC_SUBST([CPPFLAG_CURL_STATICLIB])
 
244
 
269
245
 
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"
277
253
AC_SUBST(REQUIRE_LIB_DEPS)
278
254
AM_CONDITIONAL(USE_EXPLICIT_LIB_DEPS, test x$REQUIRE_LIB_DEPS = xyes)
279
255
 
280
 
dnl The install stuff has already been taken care of by the automake stuff
281
 
dnl AC_PROG_INSTALL
282
 
AC_PROG_MAKE_SET
283
 
 
284
256
dnl check if there's a way to force code inline
285
257
AC_C_INLINE
286
258
 
311
283
CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH
312
284
CURL_CHECK_COMPILER_SYMBOL_HIDING
313
285
 
314
 
CURL_CHECK_NO_UNDEFINED
315
 
AM_CONDITIONAL(NO_UNDEFINED, test x$need_no_undefined = xyes)
316
 
 
317
286
CURL_CHECK_CURLDEBUG
318
287
AM_CONDITIONAL(CURLDEBUG, test x$want_curldebug = xyes)
319
288
 
2293
2262
 
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.])
2297
2266
else
2298
2267
  # SSL is enabled, genericly
2299
2268
  AC_SUBST(SSL_ENABLED)
2613
2582
]
2614
2583
)
2615
2584
 
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'])
2618
2589
 
2619
2590
dnl -------------------------------------------------
2620
2591
dnl check winidn option before other IDN libraries
2997
2968
CURL_CHECK_FUNC_SELECT
2998
2969
 
2999
2970
CURL_CHECK_FUNC_RECV
3000
 
CURL_CHECK_FUNC_RECVFROM
3001
2971
CURL_CHECK_FUNC_SEND
3002
2972
CURL_CHECK_MSG_NOSIGNAL
3003
2973
 
3039
3009
CURL_CHECK_FUNC_SOCKET
3040
3010
CURL_CHECK_FUNC_SOCKETPAIR
3041
3011
CURL_CHECK_FUNC_STRCASECMP
3042
 
CURL_CHECK_FUNC_STRCASESTR
3043
3012
CURL_CHECK_FUNC_STRCMPI
3044
3013
CURL_CHECK_FUNC_STRDUP
3045
3014
CURL_CHECK_FUNC_STRERROR_R
3046
3015
CURL_CHECK_FUNC_STRICMP
3047
 
CURL_CHECK_FUNC_STRLCAT
3048
3016
CURL_CHECK_FUNC_STRNCASECMP
3049
3017
CURL_CHECK_FUNC_STRNCMPI
3050
3018
CURL_CHECK_FUNC_STRNICMP