~ubuntu-branches/ubuntu/jaunty/curl/jaunty-security

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-08-01 12:22:30 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070801122230-uaarmp6lo65py9t6
Tags: 7.16.4-1ubuntu1
* Merge with Debian.
  - Drop debian/patches/gnutls-verifications, applied upstream.
  - Remove all stuff which should be reverted according to 7.16.2-6ubuntu4.
  - Remaining change: drop stunnel build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
# KIND, either express or implied.
20
20
#
21
 
# $Id: configure.ac,v 1.240 2007-04-22 07:36:12 bagder Exp $
 
21
# $Id: configure.ac,v 1.245 2007-06-12 21:39:21 bagder Exp $
22
22
###########################################################################
23
23
dnl Process this file with autoconf to produce a configure script.
24
24
 
118
118
dnl skip libtool C++ and Fortran compiler checks
119
119
m4_ifdef([AC_PROG_CXX], [m4_undefine([AC_PROG_CXX])])
120
120
m4_defun([AC_PROG_CXX],[])
 
121
m4_ifdef([AC_PROG_CXXCPP], [m4_undefine([AC_PROG_CXXCPP])])
 
122
m4_defun([AC_PROG_CXXCPP],[true])
121
123
m4_ifdef([AC_PROG_F77], [m4_undefine([AC_PROG_F77])])
122
124
m4_defun([AC_PROG_F77],[])
123
125
 
124
126
dnl skip libtool C++ and Fortran linker checks
125
127
m4_ifdef([AC_LIBTOOL_CXX], [m4_undefine([AC_LIBTOOL_CXX])])
126
128
m4_defun([AC_LIBTOOL_CXX],[])
 
129
m4_ifdef([AC_LIBTOOL_CXXCPP], [m4_undefine([AC_LIBTOOL_CXXCPP])])
 
130
m4_defun([AC_LIBTOOL_CXXCPP],[true])
127
131
m4_ifdef([AC_LIBTOOL_F77], [m4_undefine([AC_LIBTOOL_F77])])
128
132
m4_defun([AC_LIBTOOL_F77],[])
129
133
 
200
204
dnl AC_PROG_INSTALL
201
205
AC_PROG_MAKE_SET
202
206
 
 
207
dnl check if there's a way to force code inline
 
208
AC_C_INLINE
 
209
 
203
210
dnl **********************************************************************
204
211
dnl Make sure that our checks for headers windows.h winsock.h winsock2.h 
205
212
dnl and ws2tcpip.h take precedence over any other further checks which 
414
421
 
415
422
if test "$HAVE_GETHOSTBYNAME" != "1"
416
423
then
 
424
  dnl This is for Minix 3.1
 
425
  AC_MSG_CHECKING([for gethostbyname for Minix 3])
 
426
  AC_TRY_LINK([
 
427
/* Older Minix versions may need <net/gen/netdb.h> here instead */
 
428
#include <netdb.h>],
 
429
               [gethostbyname("www.dummysite.com");],
 
430
               [ dnl worked!
 
431
               AC_MSG_RESULT([yes])
 
432
               HAVE_GETHOSTBYNAME="1"],
 
433
               AC_MSG_RESULT(no)
 
434
             )
 
435
fi
 
436
 
 
437
if test "$HAVE_GETHOSTBYNAME" != "1"
 
438
then
417
439
  dnl This is for eCos with a stubbed DNS implementation
418
440
  AC_MSG_CHECKING([for gethostbyname for eCos])
419
441
  AC_TRY_LINK([
888
910
ca="no"
889
911
AC_ARG_WITH(ssl,dnl
890
912
AC_HELP_STRING([--with-ssl=PATH],[Where to look for OpenSSL, PATH points to the SSL installation (default: /usr/local/ssl); when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
891
 
AC_HELP_STRING([--without-ssl], [disable SSL]),
 
913
AC_HELP_STRING([--without-ssl], [disable OpenSSL]),
892
914
  OPT_SSL=$withval)
893
915
 
894
916
if test X"$OPT_SSL" != Xno; then
2031
2053
dnl set variable for use in automakefile(s)
2032
2054
AM_CONDITIONAL(USE_MANUAL, test x"$USE_MANUAL" = x1)
2033
2055
 
2034
 
AC_MSG_CHECKING([whether to enable ares])
 
2056
AC_MSG_CHECKING([whether to enable c-ares])
2035
2057
AC_ARG_ENABLE(ares,
2036
 
AC_HELP_STRING([--enable-ares=PATH],[Enable ares for name lookups])
2037
 
AC_HELP_STRING([--disable-ares],[Disable ares for name lookups]),
 
2058
AC_HELP_STRING([--enable-ares=PATH],[Enable c-ares for name lookups])
 
2059
AC_HELP_STRING([--disable-ares],[Disable c-ares for name lookups]),
2038
2060
[ case "$enableval" in
2039
2061
  no)
2040
2062
       AC_MSG_RESULT(no)
2042
2064
  *)   AC_MSG_RESULT(yes)
2043
2065
 
2044
2066
       if test "x$IPV6_ENABLED" = "x1"; then
2045
 
         AC_MSG_NOTICE([ares may not work properly with ipv6])
 
2067
         AC_MSG_NOTICE([c-ares may not work properly with ipv6])
2046
2068
       fi
2047
2069
 
2048
 
       AC_DEFINE(USE_ARES, 1, [Define if you want to enable ares support])
 
2070
       AC_DEFINE(USE_ARES, 1, [Define if you want to enable c-ares support])
2049
2071
       dnl substitute HAVE_ARES for curl-config and similar
2050
2072
       HAVE_ARES="1"
2051
2073
       AC_SUBST(HAVE_ARES)
2090
2112
int main(void)
2091
2113
{
2092
2114
  ares_channel channel;
2093
 
  ares_cancel(channel);
 
2115
  ares_cancel(channel); /* added in 1.2.0 */
 
2116
  ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
2094
2117
  return 0;
2095
2118
}
2096
2119
],