You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by eb...@apache.org on 2013/03/20 16:46:29 UTC
svn commit: r1458896 -
/commons/proper/daemon/trunk/src/native/unix/support/apsupport.m4
Author: ebourg
Date: Wed Mar 20 15:46:29 2013
New Revision: 1458896
URL: http://svn.apache.org/r1458896
Log:
Integrated Debian patches adding support for kFreeBSD, GNU Hurd, PowerPC SPE, s390x, Renesas SH4 (DAEMON-289)
Modified:
commons/proper/daemon/trunk/src/native/unix/support/apsupport.m4
Modified: commons/proper/daemon/trunk/src/native/unix/support/apsupport.m4
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/unix/support/apsupport.m4?rev=1458896&r1=1458895&r2=1458896&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/unix/support/apsupport.m4 (original)
+++ commons/proper/daemon/trunk/src/native/unix/support/apsupport.m4 Wed Mar 20 15:46:29 2013
@@ -70,13 +70,23 @@ AC_DEFUN(AP_SUPPORTED_HOST,[
CFLAGS="$CFLAGS -DOS_AIX -DDSO_DLFCN"
LDFLAGS="$LDFLAGS -ldl"
;;
+ kfreebsd*-gnu)
+ CFLAGS="$CFLAGS -DOS_BSD -DDSO_DLFCN -pthread"
+ supported_os="kfreebsd-gnu"
+ LIBS="$LIBS -ldl -lpthread"
+ ;;
+ gnu*)
+ CFLAGS="$CFLAGS -DOS_HURD -DDSO_DLFCN -pthread "
+ supported_os="hurd-gnu"
+ LIBS="$LIBS -ldl -lpthread"
+ ;;
*)
AC_MSG_RESULT([failed])
AC_MSG_ERROR([Unsupported operating system "$host_os"])
;;
esac
case $host_cpu in
- powerpc)
+ powerpc*)
CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\""
HOST_CPU=$host_cpu;;
sparc*)
@@ -136,7 +146,10 @@ AC_DEFUN(AP_SUPPORTED_HOST,[
HOST_CPU=ia64
fi
;;
- s390)
+ sh*)
+ CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\""
+ HOST_CPU=$host_cpu;;
+ s390 | s390x)
CFLAGS="$CFLAGS -DCPU=\\\"s390\\\""
supported_os="s390"
HOST_CPU=s390;;