diff options
author | Yang Tse <yangsita@gmail.com> | 2012-05-25 23:59:38 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-05-26 00:01:00 +0200 |
commit | a379a4c1637cfe266bfa95c2c878f9cc06ce2f6a (patch) | |
tree | 885db05c5c1562a9b2d0323d86eff865ec490611 /configure.ac | |
parent | b061fed981c97bef78679f193173ab55a4dce91e (diff) | |
download | curl-a379a4c1637cfe266bfa95c2c878f9cc06ce2f6a.tar.gz |
Fix libcurl.pc and curl-config generation for static MingW* cross builds
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2300c8c8f..db40f1874 100644 --- a/configure.ac +++ b/configure.ac @@ -240,6 +240,7 @@ AM_CONDITIONAL(MIMPURE, test x$mimpure = xyes) AC_MSG_CHECKING([if we need BUILDING_LIBCURL]) use_cppflag_building_libcurl="no" use_cppflag_curl_staticlib="no" +CPPFLAG_CURL_STATICLIB="" case $host in *-*-mingw*) AC_MSG_RESULT(yes) @@ -249,6 +250,7 @@ case $host in then AC_MSG_RESULT(yes) use_cppflag_curl_staticlib="yes" + CPPFLAG_CURL_STATICLIB="-DCURL_STATICLIB" else AC_MSG_RESULT(no) fi @@ -259,6 +261,7 @@ case $host in esac AM_CONDITIONAL(USE_CPPFLAG_BUILDING_LIBCURL, test x$use_cppflag_building_libcurl = xyes) AM_CONDITIONAL(USE_CPPFLAG_CURL_STATICLIB, test x$use_cppflag_curl_staticlib = xyes) +AC_SUBST(CPPFLAG_CURL_STATICLIB) # Determine whether all dependent libraries must be specified when linking if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno" |