-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.m4
38 lines (35 loc) · 1012 Bytes
/
config.m4
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
PHP_ARG_ENABLE(asyscon, for Asyscon support, [ --enable-asyscon Enable Asyscon support])
if test "$PHP_ASYSCON" != "no"; then
AC_DEFINE(HAVE_ASYSCON, 1, [ ])
PHP_NEW_EXTENSION(asyscon, asyscon.c, $ext_shared)
fi
AC_CACHE_CHECK([for utsname], ac_cv_have_utsname, [
AC_TRY_COMPILE([
#define _GNU_SOURCE
#include <sys/utsname.h>
],[
return sizeof(struct utsname);
],[
ac_cv_have_utsname=yes
],[
ac_cv_have_utsname=no
])
])
if test ac_cv_have_utsname=yes; then
AC_DEFINE(HAVE_UTSNAME, 1, [We have sys/utsname.h and struct utsname])
fi
AC_CACHE_CHECK([for utsname.domainname], ac_cv_have_utsname_domainname, [
AC_TRY_COMPILE([
#define _GNU_SOURCE
#include <sys/utsname.h>
],[
return sizeof(((struct utsname *)0)->domainname);
],[
ac_cv_have_utsname_domainname=yes
],[
ac_cv_have_utsname_domainname=no
])
])
if test ac_cv_have_utsname_domainname=yes; then
AC_DEFINE(HAVE_UTSNAME_DOMAINNAME, 1, [Whether struct utsname has domainname])
fi