shithub: aacenc

Download patch

ref: dc9639e21e70c141f14044a5f6abe0c55d67f597
parent: b81b6f5b1e3d8dc62f25147c10c57ddc44999348
author: danchr <danchr>
date: Mon Aug 2 16:40:30 EDT 2004

linux portability fixes

--- a/common/mp4v2/Makefile.am
+++ b/common/mp4v2/Makefile.am
@@ -128,5 +128,4 @@
 	INTERNALS \
 	libmp4v260.dsp \
 	libmp4v2_st60.dsp \
-	TODO \
-	libmp4v2.xcode/project.pbxproj
+	TODO
--- a/configure.in
+++ b/configure.in
@@ -12,6 +12,7 @@
 CFLAGS=${CFLAGS:-"-O2 -Wall"}
 
 AC_PROG_CC
+AC_PROG_CXX
 AM_PROG_LIBTOOL
 
 AC_CHECK_HEADERS(getopt.h)
@@ -59,22 +60,11 @@
 AC_CHECK_HEADERS(sys/time.h)
 AC_HEADER_TIME
 AC_TYPE_OFF_T
-AC_CHECK_TYPE(in_port_t,
-    [MY_DEFINE(HAVE_IN_PORT_T)],,
-     [#include <sys/types.h>
-      #include <netinet/in.h> ])
-AC_CHECK_TYPE(socklen_t,
-    [MY_DEFINE(HAVE_SOCKLEN_T)],,
-     [#include <sys/types.h>
-      #include <sys/socket.h>
-      #include <unistd.h> ])
-AC_CHECK_TYPE(float32_t,
-    [MY_DEFINE(HAVE_FLOAT32_T)],,
-     [#include <sys/types.h>
-      #include <sys/float.h> ])
-AC_CHECK_MEMBER(struct fpos_t.__pos,
-    [MY_DEFINE(HAVE_FPOS_T_POS)],,
-     [#include <stdio.h>])
+AC_CHECK_TYPES([in_port_t, socklen_t], , , 
+	[#include <sys/types.h>
+	 #include <sys/socket.h>
+	 #include <netinet/in.h>])
+AC_CHECK_MEMBERS(fpos_t.__pos,,, [#include <stdio.h>])
 
 AC_OUTPUT(common/Makefile common/mp4v2/Makefile \
           libfaac/Makefile frontend/Makefile \