~ubuntu-branches/ubuntu/natty/curl/natty

« back to all changes in this revision

Viewing changes to .pc/gnutls/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-10-07 16:53:40 UTC
  • mfrom: (3.4.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101007165340-3eahi7unrkt7magp
Tags: 7.21.1-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Keep build deps in main:
    - Drop build dependencies: stunnel, libssh2-1-dev
    - Add build-dependency on openssh-server
    - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
CURL_CHECK_OPTION_DEBUG
41
41
CURL_CHECK_OPTION_OPTIMIZE
42
42
CURL_CHECK_OPTION_WARNINGS
 
43
CURL_CHECK_OPTION_WERROR
43
44
CURL_CHECK_OPTION_CURLDEBUG
44
45
CURL_CHECK_OPTION_ARES
45
46
 
51
52
CONFIGURE_OPTIONS="\"$ac_configure_args\""
52
53
AC_SUBST(CONFIGURE_OPTIONS)
53
54
 
 
55
CURL_CFLAG_EXTRAS=""
 
56
if test X"$want_werror" == Xyes; then
 
57
  CURL_CFLAG_EXTRAS="-Werror"
 
58
fi
 
59
AC_SUBST(CURL_CFLAG_EXTRAS)
 
60
 
54
61
dnl SED is mandatory for configure process and libtool.
55
62
dnl Set it now, allowing it to be changed later.
56
 
AC_PATH_PROG([SED], [sed], [not_found],
57
 
  [$PATH:/usr/bin:/usr/local/bin])
58
 
if test -z "$SED" || test "$SED" = "not_found"; then
59
 
  AC_MSG_ERROR([sed not found in PATH. Cannot continue without sed.])
 
63
if test -z "$SED"; then
 
64
  dnl allow it to be overridden
 
65
  AC_PATH_PROG([SED], [sed], [not_found],
 
66
    [$PATH:/usr/bin:/usr/local/bin])
 
67
  if test -z "$SED" || test "$SED" = "not_found"; then
 
68
    AC_MSG_ERROR([sed not found in PATH. Cannot continue without sed.])
 
69
  fi
60
70
fi
61
71
AC_SUBST([SED])
62
72
 
63
73
dnl GREP is mandatory for configure process and libtool.
64
74
dnl Set it now, allowing it to be changed later.
65
 
AC_PATH_PROG([GREP], [grep], [not_found],
66
 
  [$PATH:/usr/bin:/usr/local/bin])
67
 
if test -z "$GREP" || test "$GREP" = "not_found"; then
68
 
  AC_MSG_ERROR([grep not found in PATH. Cannot continue without grep.])
 
75
if test -z "$GREP"; then
 
76
  dnl allow it to be overridden
 
77
  AC_PATH_PROG([GREP], [grep], [not_found],
 
78
    [$PATH:/usr/bin:/usr/local/bin])
 
79
  if test -z "$GREP" || test "$GREP" = "not_found"; then
 
80
    AC_MSG_ERROR([grep not found in PATH. Cannot continue without grep.])
 
81
  fi
69
82
fi
70
83
AC_SUBST([GREP])
71
84
 
72
85
dnl EGREP is mandatory for configure process and libtool.
73
86
dnl Set it now, allowing it to be changed later.
74
 
if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
75
 
  AC_MSG_CHECKING([for egrep])
76
 
  EGREP="$GREP -E"
77
 
  AC_MSG_RESULT([$EGREP])
78
 
else
79
 
  AC_PATH_PROG([EGREP], [egrep], [not_found],
80
 
    [$PATH:/usr/bin:/usr/local/bin])
 
87
if test -z "$EGREP"; then
 
88
  dnl allow it to be overridden
 
89
  if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
 
90
    AC_MSG_CHECKING([for egrep])
 
91
    EGREP="$GREP -E"
 
92
    AC_MSG_RESULT([$EGREP])
 
93
  else
 
94
    AC_PATH_PROG([EGREP], [egrep], [not_found],
 
95
      [$PATH:/usr/bin:/usr/local/bin])
 
96
  fi
81
97
fi
82
98
if test -z "$EGREP" || test "$EGREP" = "not_found"; then
83
99
  AC_MSG_ERROR([egrep not found in PATH. Cannot continue without egrep.])
86
102
 
87
103
dnl AR is mandatory for configure process and libtool.
88
104
dnl This is target dependent, so check it as a tool.
89
 
AC_PATH_TOOL([AR], [ar], [not_found],
90
 
  [$PATH:/usr/bin:/usr/local/bin])
91
 
if test -z "$AR" || test "$AR" = "not_found"; then
92
 
  AC_MSG_ERROR([ar not found in PATH. Cannot continue without ar.])
 
105
if test -z "$AR"; then
 
106
  dnl allow it to be overridden
 
107
  AC_PATH_TOOL([AR], [ar], [not_found],
 
108
    [$PATH:/usr/bin:/usr/local/bin])
 
109
  if test -z "$AR" || test "$AR" = "not_found"; then
 
110
    AC_MSG_ERROR([ar not found in PATH. Cannot continue without ar.])
 
111
  fi
93
112
fi
94
113
AC_SUBST([AR])
95
114
 
209
228
esac
210
229
AC_MSG_RESULT($mimpure)
211
230
AM_CONDITIONAL(MIMPURE, test x$mimpure = xyes)
 
231
 
 
232
dnl 'STATICLIB' is, in spite of its name, not generic but only for static-only
 
233
dnl builds on Windows
212
234
AM_CONDITIONAL(STATICLIB, false)
213
235
 
214
236
AC_MSG_CHECKING([if we need BUILDING_LIBCURL])
742
764
 
743
765
CURL_CHECK_LIBS_CONNECT
744
766
 
 
767
CURL_NETWORK_LIBS=$LIBS
 
768
 
745
769
dnl **********************************************************************
746
770
dnl In case that function clock_gettime with monotonic timer is available,
747
771
dnl check for additional required libraries.
1963
1987
 
1964
1988
       dnl libssh2_version is a post 1.0 addition
1965
1989
       dnl libssh2_init and libssh2_exit were added in 1.2.5
1966
 
       AC_CHECK_FUNCS( libssh2_version libssh2_init libssh2_exit)
 
1990
       dnl libssh2_scp_send64 was added in 1.2.6
 
1991
       AC_CHECK_FUNCS( libssh2_version libssh2_init libssh2_exit \
 
1992
                       libssh2_scp_send64 )
1967
1993
 
1968
1994
       LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
1969
1995
       export LD_LIBRARY_PATH
2482
2508
CURL_CHECK_LIB_ARES
2483
2509
AM_CONDITIONAL(USE_EMBEDDED_ARES, test x$embedded_ares = xyes)
2484
2510
 
 
2511
if test "x$enable_shared" = "xyes"; then
 
2512
  build_libhostname=yes
 
2513
else
 
2514
  build_libhostname=no
 
2515
fi
 
2516
AM_CONDITIONAL(BUILD_LIBHOSTNAME, test x$build_libhostname = xyes)
 
2517
 
2485
2518
CURL_CHECK_OPTION_THREADED_RESOLVER
2486
2519
 
2487
2520
if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
2674
2707
AC_SUBST(LIBCURL_LIBS)
2675
2708
AC_SUBST(CURL_LIBS)
2676
2709
AC_SUBST(TEST_SERVER_LIBS)
 
2710
AC_SUBST(CURL_NETWORK_LIBS)
2677
2711
LIBS=$ALL_LIBS  dnl LIBS is a magic variable that's used for every link
2678
2712
 
2679
2713
AM_CONDITIONAL(CROSSCOMPILING, test x$cross_compiling = xyes)
2680
2714
 
 
2715
dnl yes or no
 
2716
ENABLE_SHARED="$enable_shared"
 
2717
AC_SUBST(ENABLE_SHARED)
 
2718
 
2681
2719
dnl
2682
2720
dnl For keeping supported features and protocols also in pkg-config file
2683
2721
dnl since it is more cross-compile frient than curl-config
2706
2744
if test "x$USE_WINDOWS_SSPI" = "x1"; then
2707
2745
  SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
2708
2746
fi
2709
 
if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" -o "x$GNUTLS_ENABLED" = "x1"; then
 
2747
if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
 
2748
    -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1"; then
2710
2749
  SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
2711
2750
fi
2712
2751
 
2793
2832
squeeze CURL_LIBS
2794
2833
squeeze LIBCURL_LIBS
2795
2834
squeeze TEST_SERVER_LIBS
 
2835
squeeze CURL_NETWORK_LIBS
2796
2836
 
2797
2837
squeeze SUPPORT_FEATURES
2798
2838
squeeze SUPPORT_PROTOCOLS