openbsd-ports/devel/cil/patches/patch-configure_in
avsm db4ecc52b8 update to cil-1.5.1
* BROKEN on all non-native archs for now
* new MASTER_SITE
* clean up Makefile
* remove obsolete patch
* update PLIST
From: Christopher Zimmermann <madroach@gmerlin.de>
2012-08-18 22:00:56 +00:00

38 lines
915 B
Plaintext

$OpenBSD: patch-configure_in,v 1.8 2012/08/18 22:00:56 avsm Exp $
--- configure.in.orig Sat Jul 14 12:20:43 2012
+++ configure.in Thu Aug 9 18:54:58 2012
@@ -83,7 +83,7 @@ binaryExists() {
# this specifies the root of the source tree; it's just the
# directory where ./configure runs, except on cygwin, which
# overrides this below
-CILHOME=`pwd`
+CILHOME=${LOCALBASE}
DEFAULT_COMPILER=_GNUCC
DEFAULT_CIL_MODE=GNUCC
@@ -125,8 +125,8 @@ ocamlDownloadInstructions="
# required major/minor
reqMaj=3
reqMin=08
-knownMaj=3
-knownMin=12
+knownMaj=4
+knownMin=0
AC_MSG_CHECKING(ocaml version is at least $reqMaj.$reqMin)
if binaryExists ocamlc; then
# what version?
@@ -365,6 +365,13 @@ case "$target" in
*86*linux*)
AC_MSG_RESULT(configuring for linux/x86)
+
+ ARCHOS=x86_LINUX
+ ;;
+
+ # openbsd
+ *openbsd*)
+ AC_MSG_RESULT(configuring for OpenBSD)
ARCHOS=x86_LINUX
;;