aboutsummaryrefslogtreecommitdiffstats
path: root/libical/configure.in
blob: 83f3e1ed220bc67994a4ca585edf9827f4ef02ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/libical/ical.h)
AM_INIT_AUTOMAKE(libical,0.22a) 
AM_CONFIG_HEADER(config.h)

dnl  Initialize maintainer mode
AM_MAINTAINER_MODE

dnl Checks for programs.
AC_PROG_YACC
AC_PROG_CC
AM_PROG_LEX
AC_PROG_LN_S
AC_PROG_INSTALL

dnl Initialize libtool
AM_PROG_LIBTOOL

AC_SUBST(AR)

AC_CHECK_PROGS(AR, ar aal, ar)
AC_CHECK_PROGS(PERL, perl5 perl)  

AC_DEFINE(ICAL_ERRORS_ARE_FATAL,1)
AC_DEFINE(ICAL_SAFESAVES,1)
AC_DEFINE(ICAL_UNIX_NEWLINE,1)

dnl Checks for libraries.
dnl Replace `main' with a function in -lical:
dnl AC_CHECK_LIB(ical, main)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(time.h sys/types.h assert.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_STRUCT_TM

AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,
        AC_TRY_COMPILE([
#include <time.h>
        ], [
                timezone = 1;
        ], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))
if test $ac_cv_var_timezone = yes; then
        AC_DEFINE(HAVE_TIMEZONE)
else
        AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
                AC_TRY_COMPILE([
#include <time.h>
                        ], [
                        struct tm tm;
                        tm.tm_gmtoff = 1;
                        ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no
))
        if test $ac_cv_struct_tm_gmtoff = yes; then
                AC_DEFINE(HAVE_TM_GMTOFF)
        else
                AC_ERROR(unable to find a way to determine timezone)
        fi
fi                



dnl Checks for library functions.
AC_CHECK_FUNCS(strdup)

dnl Check for perl
AC_CHECK_PROGS(PERL, perl5 perl)

AC_OUTPUT([
Makefile
design-data/Makefile
doc/Makefile
scripts/Makefile
src/Makefile
src/libical/Makefile
src/libical/icalversion.h
src/libicalvcal/Makefile
test-data/Makefile
])

>2018-07-301-1/+1 * Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mktcberner2018-06-291-6/+7 * Take maintainership of unowned ports audio/{rosegarden,musescore}.adridg2018-02-061-1/+1 * Bump PORTREVISION for ports depending on the canonical version of GCCgerald2017-09-111-0/+1 * Update ot 17.04tcberner2017-05-203-35/+4 * - Switch to USES=localbaseamdmi32017-04-121-5/+2 * Bump PORTREVISIONs for ports depending on the canonical version of GCC andgerald2017-04-011-0/+1 * Four audio ports: USES+= alias (for DF)marino2016-12-181-2/+2 * Update to 16.06jhale2016-10-222-3/+4 * Remove ${PORTSDIR}/ from dependencies, Mk and categories a, b, and c.mat2016-04-011-11/+11 * Update to 16.02mat2016-03-154-18/+18 * Update to upstream version 15.12.1riggs2016-02-293-19/+54 * Convert LICENSE= "GPLxx # or later" to "GPLxx+"amdmi32016-01-131-1/+1 * Update to version 15.10.2pawel2015-11-073-19/+21 * - Update to version 15.08pawel2015-10-024-23/+19 * - Switch to linguisttools_buildamdmi32015-02-261-1/+1 * - Update to 14.12amdmi32015-01-272-4/+3 * Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla intijl2014-12-091-1/+1 * - Drop @dirrm* from plistamdmi32014-09-241-12/+2 * math/fftw3:tijl2014-09-011-1/+1 * comms/lirc:tijl2014-08-111-0/+1 * - USE_(BZIP2|XZ) -> USES= tar:(bzip2|xz)ohauer2014-06-011-2/+1 * - Update to version 14.02pawel2014-03-083-8/+8 * Update to version 13.10pawel2013-10-302-3/+3 * - Remove manual creation and removal of share/applications, as it's now in th...amdmi32013-10-221-1/+0 * Enable stagingpawel2013-10-141-1/+0 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-201-0/+1 * - Switch to new LIB_DEPENDS formatpawel2013-08-291-5/+5 * - Update to version 13.06pawel2013-07-232-6/+4 * Bump PORTREVISION after upgrade to audio/liblo.deischen2013-07-141-1/+1 * - Update to 7.31.0sunpoet2013-07-121-0/+1 * Convert my ports to current standardspawel2013-07-111-2/+1 * Convert USE_PKGCONFIG -> USES=pkgconf for audio categorybapt2013-04-231-1/+1 * Update to version 13.04pawel2013-04-172-28/+5 * Update to version 13.02pawel2013-02-19