Author: mturk
Date: Fri Aug 14 12:48:47 2009
New Revision: 804198
URL: http://svn.apache.org/viewvc?rev=804198&view=rev
Log:
strerror_r is obsolete in HP-UX
Modified:
commons/sandbox/runtime/trunk/src/main/native/configure
Modified: commons/sandbox/runtime/trunk/src/main/native/configure
URL:
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/configure?rev=804198&r1=804197&r2=804198&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/configure (original)
+++ commons/sandbox/runtime/trunk/src/main/native/configure Fri Aug 14 12:48:47
2009
@@ -752,6 +752,7 @@
have_windows=1
have_uuid_uuid=0
have_off64t=0
+ have_strerror_r=0
else
have_fileextd=0
have_ktmw32=0
@@ -772,6 +773,11 @@
fi
ok=`have_library resolv`
test ".$ok" = .1 && varadds ldflags -lresolv
+ if [ ".$host" = .hpux ]; then
+ have_strerror_r=0
+ else
+ have_strerror_r=`have_function strerror_r`
+ fi
fi
if [ ".$host" = ".linux" ]; then
@@ -853,7 +859,7 @@
#define HAVE_ARPA_INET_H `have_include arpa/inet`
#define HAVE_RESOLV_H `have_include resolv`
#define HAVE_SYS_UN_H `have_include sys/un`
-#define HAVE_STRERROR_R `have_function strerror_r`
+#define HAVE_STRERROR_R $have_strerror_r
#define HAVE_ACCEPT4 `have_function accept4`
#define HAVE_DUP3 `have_function dup3`
#define HAVE_EPOLL_CREATE1 `have_function epoll_create1`