summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-02-24 19:27:10 +0000
committerfoobar <sniper@php.net>2005-02-24 19:27:10 +0000
commit34805e8d3987e4aea6e9bfa10d5043db00574aaf (patch)
tree91c950a930568db471b60d1aec3044c8d3cc8494 /configure.in
parentac63e8c2c1b896662bec7d550143c9e376347659 (diff)
downloadphp-git-34805e8d3987e4aea6e9bfa10d5043db00574aaf.tar.gz
- Fixed all buildconf warnings + cross-compiling issues
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in19
1 files changed, 12 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index 04a03db48e..755cfa6ecb 100644
--- a/configure.in
+++ b/configure.in
@@ -159,8 +159,12 @@ case $host_alias in
CPPFLAGS="$CPPFLAGS -D_XPG_IV";;
*hpux*)
if test "$GCC" = "yes"; then
- CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
- fi
+ CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
+ fi
+ ;;
+*netware*)
+ PHP_BUILD_PROGRAM
+ PHP_ADD_SOURCES(win32, sendmail.c, -I$CFLAGS,php)
;;
esac
@@ -428,13 +432,14 @@ if test "$ac_cv_sockaddr_storage" = yes; then
fi
dnl Check if sockaddr data structure includes an "sa_len" member
-
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
-], [static struct sockaddr sa; int n = (int) sa.sa_len; return n],
-[AC_DEFINE(HAVE_SOCKADDR_LEN,1,[Whether sockaddr struct has sa_len])],
-[])
+], [
+ static struct sockaddr sa; int n = (int) sa.sa_len; return n
+], [
+ AC_DEFINE(HAVE_SOCKADDR_LEN,1,[Whether sockaddr struct has sa_len])
+], [])
dnl Check for IPv6 support
AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support,
@@ -565,7 +570,7 @@ int main(void) {
freeaddrinfo(ai);
exit(0);
}
- ],ac_cv_func_getaddrinfo=yes, ac_cv_func_getaddrinfo=no),
+ ],ac_cv_func_getaddrinfo=yes, ac_cv_func_getaddrinfo=no, ac_cv_func_getaddrinfo=no),
ac_cv_func_getaddrinfo=no)])
if test "$ac_cv_func_getaddrinfo" = yes; then
AC_DEFINE(HAVE_GETADDRINFO,1,[Define if you have the getaddrinfo function])