dbus ChangeLog,1.1140,1.1141 configure.in,1.184,1.185
John Palmieri
johnp at kemper.freedesktop.org
Wed Oct 11 10:29:03 PDT 2006
Update of /cvs/dbus/dbus
In directory kemper:/tmp/cvs-serv19245
Modified Files:
ChangeLog configure.in
Log Message:
* configure.in: check for dirfd even if it is a macro
(Patch from Timothy Redaelli <drizzt at gufi dot org>)
Index: ChangeLog
===================================================================
RCS file: /cvs/dbus/dbus/ChangeLog,v
retrieving revision 1.1140
retrieving revision 1.1141
diff -u -d -r1.1140 -r1.1141
--- ChangeLog 8 Oct 2006 16:56:49 -0000 1.1140
+++ ChangeLog 11 Oct 2006 17:29:01 -0000 1.1141
@@ -1,3 +1,8 @@
+2006-10-11 John (J5) Palmieri <johnp at redhat.com>
+
+ * configure.in: check for dirfd even if it is a macro
+ (Patch from Timothy Redaelli <drizzt at gufi dot org>)
+
2006-10-08 John (J5) Palmieri <johnp at redhat.com>
* configure.in: define _POSIX_PTHREAD_SEMANTICS on solaris
Index: configure.in
===================================================================
RCS file: /cvs/dbus/dbus/configure.in,v
retrieving revision 1.184
retrieving revision 1.185
diff -u -d -r1.184 -r1.185
--- configure.in 8 Oct 2006 16:56:50 -0000 1.184
+++ configure.in 11 Oct 2006 17:29:01 -0000 1.185
@@ -510,7 +510,24 @@
AC_CHECK_LIB(socket,socket)
AC_CHECK_LIB(nsl,gethostbyname)
-AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist fpathconf dirfd)
+AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist fpathconf)
+
+AC_CACHE_CHECK([for dirfd],
+ ac_cv_func_dirfd,
+ [AC_TRY_RUN([
+#include <sys/types.h>
+#include <dirent.h>
+int main () {
+ DIR *dirp;
+ dirp = opendir(".");
+ dirfd(dirp);
+ closedir(dirp);
+}],
+ ac_cv_func_dirfd=yes,
+ ac_cv_func_dirfd=no)])
+if test "$ac_cv_func_dirfd" = yes; then
+ AC_DEFINE(HAVE_DIRFD,1,[Have dirfd function])
+fi
AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
More information about the dbus-commit
mailing list