From 284ec7540bd3f9043bb244c59ac8042404a593a2 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 10 Sep 2003 22:40:44 +0000 Subject: [PATCH] * Fix HP-UX crashes by defining ARRAY_BROKEN on this platform. git-svn-id: svn://svn.zoy.org/elk/trunk@140 55e467fa-43c5-0310-a8a2-de718669efc6 --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index c86a926..266dcae 100644 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,12 @@ AC_SUBST(STDINT_HEADER) # type of system. AC_DEFINE_UNQUOTED(SYSTEMTYPE, ["${target_os}"], [Our operating system]) +case "${target_os}" in + *hpux*) + AC_DEFINE(ARRAY_BROKEN, 1, [Define if a-=1000; a[1000] doesn't work]) + ;; +esac + # Does the system support the vprintf library function? If not, # availability of the (non-portable) _doprnt function is assumed. AC_CHECK_FUNCS(vprintf)