chiark / gitweb /
Fix configure.ac patch to be more general
[termux-packages] / packages / libstrophe / configure.ac.patch
1 diff --git a/configure.ac b/configure.ac
2 index 99c16ca..048b7d0 100644
3 --- a/configure.ac
4 +++ b/configure.ac
5 @@ -14,6 +14,7 @@ AS_CASE([$host_os],
6      [netbsd*],     [PLATFORM="bsd"],
7      [*nto*|*qnx*], [PLATFORM="qnx"],
8      [*solaris*],   [PLATFORM="solaris"],
9 +    [*android*],   [PLATFORM="android"],
10                     [PLATFORM="nix"])
11  
12  AC_ARG_WITH([libxml2],
13 @@ -90,6 +91,7 @@ AS_CASE([$PLATFORM],
14      [bsd],     [RESOLV_LIBS=""],
15      [qnx],     [RESOLV_LIBS="-lsocket"],
16      [solaris], [RESOLV_LIBS="-lresolv -lsocket -lnsl"],
17 +    [android], [RESOLV_LIBS=""],
18                 [RESOLV_LIBS="-lresolv"])
19  
20  LIBS_TMP="${LIBS}"