~ubuntu-branches/ubuntu/trusty/log4shib/trusty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Russ Allbery
  • Date: 2013-06-23 15:01:10 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130623150110-6elr5il409pxrh0y
Tags: 1.0.7-1
* New upstream release.
  - Mark log sockets close-on-exec.
* Increase the buffer for the thread ID to handle platforms where a long
  is 64 bits.  This should hopefully fix the FTBFS on ia64.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT(log4shib, 1.0.6)
 
1
AC_INIT(log4shib, 1.0.7)
2
2
 
3
3
# autoconf 2.50 or higher to rebuild aclocal.m4, because the
4
4
# AC_CREATE_PREFIX_CONFIG_H macro needs the AS_DIRNAME macro.
5
5
AC_PREREQ(2.50)
6
 
AC_CONFIG_MACRO_DIR([m4])
7
6
 
8
7
#
9
8
# +1 : ? : +1  == new interface that does not break old one
12
11
#  ? :+1 : ?   == just some internal changes, nothing breaks but might work 
13
12
#                 better
14
13
# CURRENT : REVISION : AGE
15
 
LT_VERSION=1:6:0
 
14
LT_VERSION=1:7:0
16
15
 
17
16
AC_SUBST(LT_VERSION)
18
17
 
70
69
AC_CHECK_HEADERS([unistd.h])
71
70
AC_CHECK_HEADERS([io.h])
72
71
 
 
72
 
 
73
# Checks close-on-exec functionality
 
74
# ----------------------------------------------------------------------------
 
75
AC_CHECK_DECL([O_CLOEXEC],
 
76
        [AC_DEFINE([HAVE_O_CLOEXEC],[1],[Define to 1 if open supports O_CLOEXEC flag.])],,
 
77
        [#include <fcntl.h>])
 
78
AC_CHECK_DECL([FD_CLOEXEC],
 
79
        [AC_DEFINE([HAVE_FD_CLOEXEC],[1],[Define to 1 if fcntl supports FD_CLOEXEC flag.])],,
 
80
        [#include <fcntl.h>])
 
81
AC_CACHE_CHECK([for SOCK_CLOEXEC support], [log_cv_sock_cloexec],
 
82
[AC_TRY_RUN([
 
83
#include <sys/types.h>
 
84
#include <sys/socket.h>
 
85
int main()
 
86
{
 
87
return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
 
88
}], [log_cv_sock_cloexec=yes], [log_cv_sock_cloexec=no], [log_cv_sock_cloexec=no])])
 
89
 
 
90
if test "$log_cv_sock_cloexec" = "yes"; then
 
91
        AC_DEFINE([HAVE_SOCK_CLOEXEC], 1, [Define if the SOCK_CLOEXEC flag is supported])
 
92
fi
 
93
 
 
94
 
73
95
# Checks local idioms
74
96
# ----------------------------------------------------------------------------
75
97
AC_C_INT64_T