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

« back to all changes in this revision

Viewing changes to .pc/no_com_err/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.
1962
1986
 
1963
1987
       dnl libssh2_version is a post 1.0 addition
1964
1988
       dnl libssh2_init and libssh2_exit were added in 1.2.5
1965
 
       AC_CHECK_FUNCS( libssh2_version libssh2_init libssh2_exit)
 
1989
       dnl libssh2_scp_send64 was added in 1.2.6
 
1990
       AC_CHECK_FUNCS( libssh2_version libssh2_init libssh2_exit \
 
1991
                       libssh2_scp_send64 )
1966
1992
 
1967
1993
       LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
1968
1994
       export LD_LIBRARY_PATH
2435
2461
CURL_CHECK_LIB_ARES
2436
2462
AM_CONDITIONAL(USE_EMBEDDED_ARES, test x$embedded_ares = xyes)
2437
2463
 
 
2464
if test "x$enable_shared" = "xyes"; then
 
2465
  build_libhostname=yes
 
2466
else
 
2467
  build_libhostname=no
 
2468
fi
 
2469
AM_CONDITIONAL(BUILD_LIBHOSTNAME, test x$build_libhostname = xyes)
 
2470
 
2438
2471
CURL_CHECK_OPTION_THREADED_RESOLVER
2439
2472
 
2440
2473
if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
2627
2660
AC_SUBST(LIBCURL_LIBS)
2628
2661
AC_SUBST(CURL_LIBS)
2629
2662
AC_SUBST(TEST_SERVER_LIBS)
 
2663
AC_SUBST(CURL_NETWORK_LIBS)
2630
2664
LIBS=$ALL_LIBS  dnl LIBS is a magic variable that's used for every link
2631
2665
 
2632
2666
AM_CONDITIONAL(CROSSCOMPILING, test x$cross_compiling = xyes)
2633
2667
 
 
2668
dnl yes or no
 
2669
ENABLE_SHARED="$enable_shared"
 
2670
AC_SUBST(ENABLE_SHARED)
 
2671
 
2634
2672
dnl
2635
2673
dnl For keeping supported features and protocols also in pkg-config file
2636
2674
dnl since it is more cross-compile frient than curl-config
2659
2697
if test "x$USE_WINDOWS_SSPI" = "x1"; then
2660
2698
  SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
2661
2699
fi
2662
 
if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" -o "x$GNUTLS_ENABLED" = "x1"; then
 
2700
if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
 
2701
    -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1"; then
2663
2702
  SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
2664
2703
fi
2665
2704
 
2746
2785
squeeze CURL_LIBS
2747
2786
squeeze LIBCURL_LIBS
2748
2787
squeeze TEST_SERVER_LIBS
 
2788
squeeze CURL_NETWORK_LIBS
2749
2789
 
2750
2790
squeeze SUPPORT_FEATURES
2751
2791
squeeze SUPPORT_PROTOCOLS