51
52
CONFIGURE_OPTIONS="\"$ac_configure_args\""
52
53
AC_SUBST(CONFIGURE_OPTIONS)
56
if test X"$want_werror" == Xyes; then
57
CURL_CFLAG_EXTRAS="-Werror"
59
AC_SUBST(CURL_CFLAG_EXTRAS)
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.])
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.])
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])
77
AC_MSG_RESULT([$EGREP])
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])
92
AC_MSG_RESULT([$EGREP])
94
AC_PATH_PROG([EGREP], [egrep], [not_found],
95
[$PATH:/usr/bin:/usr/local/bin])
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.])
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.])
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
2679
2713
AM_CONDITIONAL(CROSSCOMPILING, test x$cross_compiling = xyes)
2716
ENABLE_SHARED="$enable_shared"
2717
AC_SUBST(ENABLE_SHARED)
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