~ubuntu-branches/ubuntu/lucid/libevent/lucid

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Simon Law
  • Date: 2005-06-27 21:05:46 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050627210546-ltxijf9i7ttholzh
Tags: 1.1a-1
* New upstream release.
* Acknowledge NMUs.  (Closes: Bug#288282, Bug#288404, Bug#290385, Bug#291096)
* Update README.Debian.  (Closes: Bug#310634)
* libevent.so uses a different library naming scheme now.  We will
  preserve backwards compatiblity with Debian's, but also provide symlinks
  for the official libevent-1.1a.so name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
dnl Dug Song <dugsong@monkey.org>
3
3
AC_INIT(event.c)
4
4
 
5
 
AM_INIT_AUTOMAKE(libevent,1.0b)
 
5
AM_INIT_AUTOMAKE(libevent,1.1a)
6
6
AM_CONFIG_HEADER(config.h)
7
7
AM_MAINTAINER_MODE
8
8
 
13
13
 
14
14
dnl Checks for programs.
15
15
AC_PROG_CC
16
 
AC_PROG_RANLIB
17
16
AC_PROG_INSTALL
18
17
AC_PROG_LN_S
19
 
AC_PROG_LIBTOOL
20
18
 
21
19
AC_PROG_GCC_TRADITIONAL
22
20
if test "$GCC" = yes ; then
23
21
        CFLAGS="$CFLAGS -Wall"
24
22
fi
25
23
 
 
24
AC_PROG_LIBTOOL
 
25
 
 
26
dnl   Uncomment "AC_DISABLE_SHARED" to make shared librraries not get
 
27
dnl   built by default.  You can also turn shared libs on and off from 
 
28
dnl   the command line with --enable-shared and --disable-shared.
 
29
dnl AC_DISABLE_SHARED
 
30
AC_SUBST(LIBTOOL_DEPS)
26
31
 
27
32
dnl Check for optional stuff
28
33
AC_ARG_WITH(rtsig,
64
69
)
65
70
fi
66
71
 
 
72
if test "x$ac_cv_header_sys_time_h" = "xyes"; then
 
73
        AC_MSG_CHECKING(for timercmp in sys/time.h)
 
74
        AC_EGREP_CPP(yes,
 
75
[
 
76
#include <sys/time.h>
 
77
#ifdef timercmp
 
78
 yes
 
79
#endif
 
80
],      [ AC_DEFINE(HAVE_TIMERCMP, 1,
 
81
                [Define if timercmp is defined in <sys/time.h>])
 
82
          AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no)
 
83
)
 
84
fi
 
85
 
 
86
if test "x$ac_cv_header_sys_time_h" = "xyes"; then
 
87
        AC_MSG_CHECKING(for timerclear in sys/time.h)
 
88
        AC_EGREP_CPP(yes,
 
89
[
 
90
#include <sys/time.h>
 
91
#ifdef timerclear
 
92
 yes
 
93
#endif
 
94
],      [ AC_DEFINE(HAVE_TIMERCLEAR, 1,
 
95
                [Define if timerclear is defined in <sys/time.h>])
 
96
          AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no)
 
97
)
 
98
fi
 
99
 
 
100
if test "x$ac_cv_header_sys_time_h" = "xyes"; then
 
101
        AC_MSG_CHECKING(for timerisset in sys/time.h)
 
102
        AC_EGREP_CPP(yes,
 
103
[
 
104
#include <sys/time.h>
 
105
#ifdef timerisset
 
106
 yes
 
107
#endif
 
108
],      [ AC_DEFINE(HAVE_TIMERISSET, 1,
 
109
                [Define if timerisset is defined in <sys/time.h>])
 
110
          AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no)
 
111
)
 
112
fi
 
113
 
67
114
dnl Checks for typedefs, structures, and compiler characteristics.
68
115
AC_C_CONST
69
116
AC_C_INLINE
258
305
        AC_LIBOBJ(signal)
259
306
fi
260
307
 
261
 
AC_REPLACE_FUNCS(err)
262
 
 
263
308
AC_TYPE_PID_T
264
309
AC_TYPE_SIZE_T
265
310
AC_CHECK_TYPE(u_int64_t, unsigned long long)
278
323
        [Define to unsigned int if you dont have it])]
279
324
)
280
325
 
 
326
AC_MSG_CHECKING([whether our compiler supports __func__])
 
327
AC_TRY_COMPILE([],
 
328
 [void foo() { const char *cp = __func__; }],
 
329
 AC_MSG_RESULT([yes]),
 
330
 AC_MSG_RESULT([no])
 
331
 AC_MSG_CHECKING([whether our compiler supports __FUNCTION__])
 
332
 AC_TRY_COMPILE([],
 
333
   [void foo() { const char *cp = __FUNCTION__; }],
 
334
   AC_MSG_RESULT([yes])
 
335
   AC_DEFINE(__func__, __FUNCTION__,
 
336
         [Define to appropriate substitue if compiler doesnt have __func__]),
 
337
   AC_MSG_RESULT([no])
 
338
   AC_DEFINE(__func__, __FILE__,
 
339
         [Define to appropriate substitue if compiler doesnt have __func__])))
 
340
 
281
341
AC_OUTPUT(Makefile test/Makefile sample/Makefile)