[xiph-commits] r13462 - trunk/ezstream

moritz at svn.xiph.org moritz at svn.xiph.org
Wed Aug 8 06:46:18 PDT 2007


Author: moritz
Date: 2007-08-08 06:46:17 -0700 (Wed, 08 Aug 2007)
New Revision: 13462

Modified:
   trunk/ezstream/configure.in
Log:
A few tweaks:
 * Get ISO C99 from the compiler, if possible.
 * Check for ssize_t for --enable-debug portability.
 * Add AC_C_VOLATILE check, because we use it.


Modified: trunk/ezstream/configure.in
===================================================================
--- trunk/ezstream/configure.in	2007-08-08 13:25:12 UTC (rev 13461)
+++ trunk/ezstream/configure.in	2007-08-08 13:46:17 UTC (rev 13462)
@@ -8,6 +8,7 @@
 AC_CONFIG_LIBOBJ_DIR(src)
 AM_MAINTAINER_MODE
 AC_USE_SYSTEM_EXTENSIONS
+AC_PROG_CC_STDC
 
 
 dnl SETUP
@@ -37,7 +38,7 @@
 		;;
 	esac
 else
-	XIPH_CPPFLAGS="-Wall -Wwrite-strings -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
+	XIPH_CPPFLAGS="-fstrict-aliasing -Wall -W -Wno-unused-parameter -Wwrite-strings -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
 fi
 
 ez_enable_debug=no
@@ -73,9 +74,18 @@
 fi
 
 AC_C_CONST
+AC_C_VOLATILE
 AC_TYPE_SIZE_T
+AC_CHECK_TYPES(ssize_t, ,
+	[AC_DEFINE_UNQUOTED(ssize_t, long, [Define to `long' if <sys/types.h> does not define.])], 
+[
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+])
 
 
+
 dnl USEFUL HEADERS
 
 AC_CHECK_HEADERS(sys/time.h paths.h signal.h libgen.h)



More information about the commits mailing list