openbsd-ports/lang/ocaml/patches/patch-configure
2006-05-28 15:28:53 +00:00

38 lines
1.8 KiB
Plaintext

$OpenBSD: patch-configure,v 1.9 2006/05/28 15:28:54 avsm Exp $
--- configure.orig Thu Mar 30 11:00:19 2006
+++ configure Tue May 2 12:02:42 2006
@@ -566,6 +566,7 @@ case "$host" in
alpha*-*-freebsd*) arch=alpha; system=freebsd;;
alpha*-*-netbsd*) arch=alpha; system=netbsd;;
alpha*-*-openbsd*) arch=alpha; system=openbsd;;
+ amd64-*-openbsd*) arch=amd64; system=openbsd;;
sparc*-*-sunos4.*) arch=sparc; system=sunos;;
sparc*-*-solaris2.*) arch=sparc; system=solaris;;
sparc*-*-*bsd*) arch=sparc; system=bsd;;
@@ -586,9 +587,11 @@ case "$host" in
hppa*-*-gnu*) arch=hppa; system=gnu;;
powerpc-*-linux*) arch=power; model=ppc; system=elf;;
powerpc-*-netbsd*) arch=power; model=ppc; system=bsd;;
+ powerpc-*-openbsd*) arch=power; model=ppc; system=bsd;;
powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;;
powerpc-*-darwin*) arch=power; model=ppc; system=rhapsody;;
arm*-*-linux*) arch=arm; system=linux;;
+ zaurus*-*-openbsd*) arch=arm; system=openbsd;;
arm*-*-gnu*) arch=arm; system=gnu;;
ia64-*-linux*) arch=ia64; system=linux;;
ia64-*-gnu*) arch=ia64; system=gnu;;
@@ -664,9 +667,13 @@ esac
cc_profile='-pg'
case "$arch,$model,$system" in
alpha,*,digital) profiling='prof';;
+ alpha,*,openbsd) profiling='prof';;
i386,*,linux_elf) profiling='prof';;
i386,*,gnu) profiling='prof';;
i386,*,bsd_elf) profiling='prof';;
+ amd64,*,openbsd) profiling='prof';;
+ power,*,bsd) profiling='prof';;
+ sparc,*,bsd) profiling='prof';;
sparc,*,solaris)
profiling='prof'
case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;;