kea: drop host build
[feed/packages.git] / net / kea / patches / 001-fix-cross-compile.patch
1 --- a/configure.ac
2 +++ b/configure.ac
3 @@ -580,10 +580,10 @@ AC_TRY_COMPILE([
4
5 usable_regex=
6 AC_MSG_CHECKING(for usuable C++11 regex)
7 -AC_TRY_RUN([
8 +AC_TRY_COMPILE([
9 #include <regex>
10 -#include <iostream>
11 -int main() {
12 +#include <iostream>],
13 +[int main() {
14 const std::regex regex(".*");
15 const std::string string = "This should match!";
16 const auto result = std::regex_search(string, regex);