[x264-devel] [patch] preliminary irix support
hbent at cs.oberlin.edu
hbent at cs.oberlin.edu
Wed May 7 08:38:48 CEST 2008
Hi again,
The following rather trivial patch adds support for IRIX.
There are two outstanding issues:
-version.sh and IRIX's "join" don't get along. I had to use GNU join from
coreutils. Maybe if "gjoin" exists, version.sh should try to use that
instead of "join"?
-IRIX doesn't have getopt_long, and HAVE_GETOPT_LONG=0 doesn't provide it.
I suspect this also breaks compilation on SPARC Solaris. I am working on
this, and will send along a patch in a separate email.
-Henry Bent
--- configure.orig 2008-05-07 01:01:09.000000000 -0400
+++ configure 2008-05-07 01:58:37.983895840 -0400
@@ -226,6 +226,12 @@
LDFLAGS="$LDFLAGS -lm"
HAVE_GETOPT_LONG=0
;;
+ irix*)
+ SYS="IRIX"
+ CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
+ LDFLAGS="$LDFLAGS -lm"
+ HAVE_GETOPT_LONG=0
+ ;;
*)
echo "Unknown system $host, edit the configure"
exit 1
--- common/osdep.h.orig 2008-04-26 20:55:20.000000000 -0400
+++ common/osdep.h 2008-05-07 02:05:27.224566240 -0400
@@ -45,7 +45,7 @@
#define X264_VERSION "" // no configure script for msvc
#endif
-#ifdef SYS_OPENBSD
+#if defined (SYS_OPENBSD) || defined(SYS_IRIX)
#define isfinite finite
#endif
#if defined(_MSC_VER) || defined(SYS_SunOS) || defined(SYS_MACOSX)
More information about the x264-devel
mailing list