[PD-cvs] packages/patches acinclude_m4_macros-0.41.0-test10.patch, NONE, 1.1

Russell Bryant russellbryant at users.sourceforge.net
Thu Jan 10 04:20:17 CET 2008


Update of /cvsroot/pure-data/packages/patches
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7525

Added Files:
	acinclude_m4_macros-0.41.0-test10.patch 
Log Message:
This patch will add a new file, acinclude.m4, which is a small library of
m4 macros used to make adding certain things to the configure script much
easier. It is a raw copy from the file's source (Asterisk). All of the
macro prefixes are AST, but they have been left intact, to ease keeping
this file up to date with the original one.

This is required before any of the other configure script related patches
can be applied.


--- NEW FILE: acinclude_m4_macros-0.41.0-test10.patch ---
diff -urN src-orig/acinclude.m4 src/acinclude.m4
--- src-orig/acinclude.m4	1969-12-31 18:00:00.000000000 -0600
+++ src/acinclude.m4	2008-01-09 21:07:33.000000000 -0600
@@ -0,0 +1,1050 @@
+# Various support functions for configure.ac in asterisk
+#
+
+# Helper function to check for gcc attributes.
+# AST_GCC_ATTRIBUTE([attribute name])
+
+AC_DEFUN([AST_GCC_ATTRIBUTE],
+[
+AC_MSG_CHECKING(for compiler 'attribute $1' support)
+AC_COMPILE_IFELSE(
+	AC_LANG_PROGRAM([static int __attribute__(($1)) test(void) {}],
+			[]),
+	AC_MSG_RESULT(yes)
+	AC_DEFINE_UNQUOTED([HAVE_ATTRIBUTE_$1], 1, [Define to 1 if your GCC C compiler supports the '$1' attribute.]),
+	AC_MSG_RESULT(no))
[...1015 lines suppressed...]
+          PTHREAD_CC=$CC
+	fi
+else
+        PTHREAD_CC="$CC"
+fi
+
+AC_SUBST(PTHREAD_LIBS)
+AC_SUBST(PTHREAD_CFLAGS)
+AC_SUBST(PTHREAD_CC)
+
+# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
+if test x"$acx_pthread_ok" = xyes; then
+        ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
+        :
+else
+        acx_pthread_ok=no
+        $2
+fi
+AC_LANG_RESTORE
+])dnl ACX_PTHREAD





More information about the Pd-cvs mailing list