summaryrefslogtreecommitdiff
blob: 7c08e6373b07afaa53bd79d668102a19f67e9ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- a/configure.in
+++ b/configure.in
@@ -389,8 +389,7 @@
 
 AC_MSG_CHECKING(abstract socket namespace)
 AC_LANG_PUSH(C)
-AC_RUN_IFELSE([AC_LANG_PROGRAM(
-[[
+AC_TRY_RUN([
 #include <sys/types.h>
 #include <stdlib.h>
 #include <string.h>
@@ -398,8 +397,8 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <errno.h>
-]],
-[[
+
+int main() {
   int listen_fd;
   struct sockaddr_un addr;
   
@@ -424,9 +423,11 @@
     }
   else 
     exit (0);
-]])],
-              [have_abstract_sockets=yes],
-              [have_abstract_sockets=no])
+}
+],
+have_abstract_sockets=yes,
+have_abstract_sockets=no,
+have_abstract_sockets=no)
 AC_LANG_POP(C)
 AC_MSG_RESULT($have_abstract_sockets)