opnsense-ports/emulators/stonx/files/patch-configure
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

33 lines
618 B
Text

--- configure.orig 2004-08-15 15:36:21.000000000 +0200
+++ configure 2010-04-03 09:57:44.000000000 +0200
@@ -3989,6 +3990,30 @@
esac
copt="$copt -funroll-loops"
;;
+*freebsd*)
+ echo 'A FreeBSD box...'
+ case $t in
+ i*86-*)
+ cat >>confdefs.h <<\_ACEOF
+#define NZREG "%ebx"
+_ACEOF
+
+ cat >>confdefs.h <<\_ACEOF
+#define PCREG "%ebp"
+_ACEOF
+
+ regs="-fomit-frame-pointer -ffixed-ebx -ffixed-ebp"
+ ;;
+ *)
+ regs=""
+ esac
+ # Most BSD systems support OSS audio, too:
+ cat >>confdefs.h <<\_ACEOF
+#define STONX_AUDIO_LINUX 1
+_ACEOF
+
+ libs=""
+ ;;
*bsd*)
echo 'A BSD box...'
case $t in