Mercurial > libpst
annotate configure.in @ 316:c4537664ff50
merge .msg generation code
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 24 Dec 2012 17:51:12 -0800 |
parents | 5338d93889aa 0f19cd173eab |
children | af6ae20be5ba |
rev | line source |
---|---|
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
1 AC_PREREQ(2.59) |
304
5338d93889aa
preserve bcc headers, document -C switch to set default character set, space after colon is not required in header fields
Carl Byington <carl@five-ten-sg.com>
parents:
301
diff
changeset
|
2 AC_INIT(libpst,0.6.55,carl@five-ten-sg.com) |
128
7f747c8c9d02
cleanup installed headers
Carl Byington <carl@five-ten-sg.com>
parents:
123
diff
changeset
|
3 AC_CONFIG_SRCDIR([src/libpst.c]) |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
4 AC_CONFIG_HEADER([config.h]) |
128
7f747c8c9d02
cleanup installed headers
Carl Byington <carl@five-ten-sg.com>
parents:
123
diff
changeset
|
5 AM_INIT_AUTOMAKE |
123
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
6 AC_CANONICAL_HOST |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
7 |
172
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
8 # |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
9 # 1. Remember that version-info is current:revision:age, and age <= current. |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
10 # 2. If the source code has changed at all since the last public release, |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
11 # then increment revision (`c:r:a' becomes `c:r+1:a'). |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
12 # 3. If any interfaces have been added, removed, or changed since the last |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
13 # update, increment current, and set revision to 0. |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
14 # 4. If any interfaces have been added since the last public release, then |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
15 # increment age, since we should be backward compatible with the previous |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
16 # version. |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
17 # 5. If any interfaces have been removed or changed since the last public |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
18 # release, then set age to 0, since we are not backward compatible. |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
19 # 6. libtool will build libpst.so.x.y.z where the SONAME is libpst.so.x |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
20 # and x=current-age, y=age, z=revision |
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
21 |
304
5338d93889aa
preserve bcc headers, document -C switch to set default character set, space after colon is not required in header fields
Carl Byington <carl@five-ten-sg.com>
parents:
301
diff
changeset
|
22 libpst_version_info='5:5:1' |
172
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
23 AC_SUBST(LIBPST_VERSION_INFO, [$libpst_version_info]) |
198
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
24 libpst_so_major='4' |
174
9bbc834d5f3e
new debianization from hggdh
Carl Byington <carl@five-ten-sg.com>
parents:
173
diff
changeset
|
25 AC_SUBST(LIBPST_SO_MAJOR, [$libpst_so_major]) |
9bbc834d5f3e
new debianization from hggdh
Carl Byington <carl@five-ten-sg.com>
parents:
173
diff
changeset
|
26 |
9bbc834d5f3e
new debianization from hggdh
Carl Byington <carl@five-ten-sg.com>
parents:
173
diff
changeset
|
27 # libpst |
196
ffd1503a7530
build proper python rpm subpackage
Carl Byington <carl@five-ten-sg.com>
parents:
195
diff
changeset
|
28 # version soname so library name |
195
320cfcba8058
add python module interface to the shared library for easy scripting.
Carl Byington <carl@five-ten-sg.com>
parents:
191
diff
changeset
|
29 # 0.6.35 libpst.so.2 libpst.so.2.0.0 |
320cfcba8058
add python module interface to the shared library for easy scripting.
Carl Byington <carl@five-ten-sg.com>
parents:
191
diff
changeset
|
30 # 0.6.37 libpst.so.2 libpst.so.2.1.0 |
196
ffd1503a7530
build proper python rpm subpackage
Carl Byington <carl@five-ten-sg.com>
parents:
195
diff
changeset
|
31 # 0.6.38 libpst.so.2 libpst.so.2.1.0 |
235
9d6bb722d0fe
update version numbers
Carl Byington <carl@five-ten-sg.com>
parents:
232
diff
changeset
|
32 # 0.6.40 libpst.so.4 libpst.so.4.0.0 |
9d6bb722d0fe
update version numbers
Carl Byington <carl@five-ten-sg.com>
parents:
232
diff
changeset
|
33 # 0.6.43 libpst.so.4 libpst.so.4.0.1 |
312 | 34 # 0.6.47 libpst.so.4 libpst.so.4.0.2 |
254
fb66d428347d
switch to mboxrd quoting
Carl Byington <carl@five-ten-sg.com>
parents:
252
diff
changeset
|
35 # 0.6.48 libpst.so.4 libpst.so.4.0.3 |
255
ab87f9070ed2
fix to ignore embedded objects that are not email messages
Carl Byington <carl@five-ten-sg.com>
parents:
254
diff
changeset
|
36 # 0.6.49 libpst.so.4 libpst.so.4.0.4 |
257
c947b8812120
rfc2047 and rfc2231 encoding for non-ascii headers and attachment filenames
Carl Byington <carl@five-ten-sg.com>
parents:
255
diff
changeset
|
37 # 0.6.50 libpst.so.4 libpst.so.4.1.0 |
270 | 38 # 0.6.51 libpst.so.4 libpst.so.4.1.1 |
283 | 39 # 0.6.52 libpst.so.4 libpst.so.4.1.2 |
293 | 40 # 0.6.53 libpst.so.4 libpst.so.4.1.3 |
300
47abe56076da
embedded rfc822 messages might contain rtf encoded bodies
Carl Byington <carl@five-ten-sg.com>
parents:
293
diff
changeset
|
41 # 0.6.54 libpst.so.4 libpst.so.4.1.4 |
304
5338d93889aa
preserve bcc headers, document -C switch to set default character set, space after colon is not required in header fields
Carl Byington <carl@five-ten-sg.com>
parents:
301
diff
changeset
|
42 # 0.6.55 libpst.so.4 libpst.so.4.1.5 |
174
9bbc834d5f3e
new debianization from hggdh
Carl Byington <carl@five-ten-sg.com>
parents:
173
diff
changeset
|
43 |
172
6954d315aaa8
move version-info into main configure.in, and set it properly.
Carl Byington <carl@five-ten-sg.com>
parents:
170
diff
changeset
|
44 |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
45 |
247
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
46 # Check for solaris |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
47 AC_MSG_CHECKING([for Solaris]) |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
48 case "$host" in |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
49 *solaris*) |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
50 os_solaris=yes |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
51 ;; |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
52 *) |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
53 os_solaris=no |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
54 ;; |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
55 esac |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
56 AC_MSG_RESULT($os_solaris) |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
57 AM_CONDITIONAL(OS_SOLARIS, [test "$os_solaris" = "yes"]) |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
58 |
85d77d7b034b
another patche from Kenneth Berland for solaris
Carl Byington <carl@five-ten-sg.com>
parents:
246
diff
changeset
|
59 |
153
0b1766da9be8
use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents:
149
diff
changeset
|
60 # Check for win32 |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
61 AC_MSG_CHECKING([for Win32]) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
62 case "$host" in |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
63 *-mingw*) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
64 os_win32=yes |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
65 ;; |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
66 *) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
67 os_win32=no |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
68 ;; |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
69 esac |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
70 AC_MSG_RESULT($os_win32) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
71 AM_CONDITIONAL(OS_WIN32, [test "$os_win32" = "yes"]) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
72 |
123
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
73 |
122
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
74 # Check for Win32 platform |
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
75 AC_MSG_CHECKING([for Win32 platform in general]) |
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
76 case "$host" in |
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
77 *-cygwin*) |
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
78 platform_win32=yes |
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
79 ;; |
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
80 *) |
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
81 platform_win32=$os_win32 |
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
82 ;; |
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
83 esac |
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
84 AC_MSG_RESULT($platform_win32) |
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
85 AM_CONDITIONAL(PLATFORM_WIN32, [test "$platform_win32" = "yes"]) |
bdb38b434c0a
more changes from Fridrich Strba to avoid installing our config.h
Carl Byington <carl@five-ten-sg.com>
parents:
121
diff
changeset
|
86 |
99
b7f456946c5b
add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents:
96
diff
changeset
|
87 |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
88 # Checks for programs. |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
89 # The following lines adds the --enable-dii option to configure: |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
90 # |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
91 # Give the user the choice to enter one of these: |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
92 # --enable-dii |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
93 # --enable-dii=yes |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
94 # --enable-dii=no |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
95 # |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
96 AC_MSG_CHECKING([whether we are enabling dii utility]) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
97 AC_ARG_ENABLE(dii, |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
98 AC_HELP_STRING([--enable-dii], [enable dii utility]), |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
99 [ |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
100 case "${enableval}" in |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
101 yes) ;; |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
102 no) ;; |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
103 *) AC_MSG_ERROR(bad value ${enableval} for --enable-dii) ;; |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
104 esac |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
105 ], |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
106 # default if not specified |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
107 enable_dii=yes |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
108 ) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
109 AC_MSG_RESULT([$enable_dii]) |
123
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
110 AC_PATH_PROG(CONVERT, convert) |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
111 if test "x$CONVERT" = "x" ; then |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
112 if test "$enable_dii" = "yes"; then |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
113 enable_dii=no |
123
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
114 AC_MSG_WARN([convert program not found. pst2dii disabled]) |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
115 fi |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
116 else |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
117 if test "x`$CONVERT --version 2>&1 | grep -i imagemagick >/dev/null ; echo $?`" != "x0"; then |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
118 if test "$enable_dii" = "yes"; then |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
119 enable_dii=no |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
120 AC_MSG_WARN([wrong convert program found. pst2dii disabled]) |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
121 fi |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
122 fi |
63
cfd6175f9334
Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents:
61
diff
changeset
|
123 fi |
123
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
124 AC_CHECK_HEADER([gd.h], |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
125 [ |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
126 AC_DEFINE([HAVE_GD_H], [1], [Define to 1 if you have the <gd.h> header file.]) |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
127 ], |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
128 [ |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
129 if test "$enable_dii" = "yes"; then |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
130 enable_dii=no |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
131 AC_MSG_WARN([gd.h not found. pst2dii disabled]) |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
132 fi |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
133 ]) |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
134 AM_CONDITIONAL(BUILD_DII, [test "$enable_dii" = "yes"]) |
63
cfd6175f9334
Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents:
61
diff
changeset
|
135 |
99
b7f456946c5b
add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents:
96
diff
changeset
|
136 |
63
cfd6175f9334
Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents:
61
diff
changeset
|
137 # Checks for programs. |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
138 AC_PROG_CXX |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
139 AC_PROG_CC |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
140 AM_PROG_CC_C_O |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
141 AC_PROG_CPP |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
142 AC_PROG_INSTALL |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
143 AC_PROG_LN_S |
95
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
144 AC_PROG_LIBTOOL |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
145 AC_PROG_MAKE_SET |
131
dd905e537728
add back AC_PROG_RANLIB, even though libtoolize claims it is obsoleted, it is needed for rpmbuild
Carl Byington <carl@five-ten-sg.com>
parents:
130
diff
changeset
|
146 AC_PROG_RANLIB |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
147 |
123
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
148 |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
149 # make sure we get large file support |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
150 AC_SYS_LARGEFILE |
75
987aa872294e
Use ftello/fseeko to properly handle large files.
Carl Byington <carl@five-ten-sg.com>
parents:
73
diff
changeset
|
151 AC_CHECK_SIZEOF(off_t) |
16 | 152 |
123
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
153 |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
154 # Checks for header files. |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
155 AC_CHECK_HEADER([unistd.h], |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
156 AM_CONDITIONAL(NEED_XGETOPT, [test yes = no]), |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
157 AM_CONDITIONAL(NEED_XGETOPT, [test yes = yes]) |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
158 ) |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
159 AC_HEADER_DIRENT |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
160 AC_HEADER_STDC |
201
3850a3b11745
fixes for parallel readpst
Carl Byington <carl@five-ten-sg.com>
parents:
200
diff
changeset
|
161 AC_CHECK_HEADERS([ctype.h dirent.h errno.h fcntl.h inttypes.h limits.h regex.h semaphore.h signal.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/param.h sys/shm.h sys/stat.h sys/types.h time.h unistd.h wchar.h]) |
244
f2ae612fa62b
fixes for fedora 13 change in implicit dso linking semantics
Carl Byington <carl@five-ten-sg.com>
parents:
242
diff
changeset
|
162 AC_SEARCH_LIBS([sem_init],[pthread rt]) |
123
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
163 |
16 | 164 |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
165 # Checks for typedefs, structures, and compiler characteristics. |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
166 AC_HEADER_STDBOOL |
200
d360f96f71f6
start changes for parallel readpst on multi-processor machines
Carl Byington <carl@five-ten-sg.com>
parents:
199
diff
changeset
|
167 AC_HEADER_SYS_WAIT |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
168 AC_C_CONST |
200
d360f96f71f6
start changes for parallel readpst on multi-processor machines
Carl Byington <carl@five-ten-sg.com>
parents:
199
diff
changeset
|
169 AC_C_INLINE |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
170 AC_TYPE_OFF_T |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
171 AC_TYPE_SIZE_T |
200
d360f96f71f6
start changes for parallel readpst on multi-processor machines
Carl Byington <carl@five-ten-sg.com>
parents:
199
diff
changeset
|
172 AC_TYPE_PID_T |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
173 AC_STRUCT_TM |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
174 |
123
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
122
diff
changeset
|
175 |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
176 # Checks for library functions. |
200
d360f96f71f6
start changes for parallel readpst on multi-processor machines
Carl Byington <carl@five-ten-sg.com>
parents:
199
diff
changeset
|
177 AC_FUNC_FORK |
75
987aa872294e
Use ftello/fseeko to properly handle large files.
Carl Byington <carl@five-ten-sg.com>
parents:
73
diff
changeset
|
178 AC_FUNC_FSEEKO |
198
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
179 AC_FUNC_STAT |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
180 AC_FUNC_LSTAT |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
181 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
182 if test "$cross_compiling" != "yes"; then |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
183 AC_FUNC_MALLOC |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
184 AC_FUNC_MKTIME |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
185 AC_FUNC_REALLOC |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
186 fi |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
187 AC_FUNC_STRFTIME |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
188 AC_FUNC_VPRINTF |
201
3850a3b11745
fixes for parallel readpst
Carl Byington <carl@five-ten-sg.com>
parents:
200
diff
changeset
|
189 AC_CHECK_FUNCS([chdir getcwd memchr memmove memset regcomp strcasecmp strncasecmp strchr strdup strerror strpbrk strrchr strstr strtol]) |
153
0b1766da9be8
use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents:
149
diff
changeset
|
190 AM_ICONV |
0b1766da9be8
use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents:
149
diff
changeset
|
191 if test "$am_cv_func_iconv" != "yes"; then |
0b1766da9be8
use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents:
149
diff
changeset
|
192 AC_MSG_ERROR([libpst requires iconv which is missing]) |
99
b7f456946c5b
add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents:
96
diff
changeset
|
193 fi |
93 | 194 |
114
e213bfcf9aa7
patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents:
112
diff
changeset
|
195 |
133
2ec889a79e51
patch from Fridrich Strba, some systems need extra library for regex
Carl Byington <carl@five-ten-sg.com>
parents:
132
diff
changeset
|
196 AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec, |
2ec889a79e51
patch from Fridrich Strba, some systems need extra library for regex
Carl Byington <carl@five-ten-sg.com>
parents:
132
diff
changeset
|
197 [REGEXLIB=-lregex |
2ec889a79e51
patch from Fridrich Strba, some systems need extra library for regex
Carl Byington <carl@five-ten-sg.com>
parents:
132
diff
changeset
|
198 AC_DEFINE(HAVE_REGEXEC,1,[Define to 1 if you have the regexec function.])], |
2ec889a79e51
patch from Fridrich Strba, some systems need extra library for regex
Carl Byington <carl@five-ten-sg.com>
parents:
132
diff
changeset
|
199 [AC_MSG_ERROR([No regex library found])])]) |
2ec889a79e51
patch from Fridrich Strba, some systems need extra library for regex
Carl Byington <carl@five-ten-sg.com>
parents:
132
diff
changeset
|
200 AC_SUBST(REGEXLIB) |
2ec889a79e51
patch from Fridrich Strba, some systems need extra library for regex
Carl Byington <carl@five-ten-sg.com>
parents:
132
diff
changeset
|
201 |
2ec889a79e51
patch from Fridrich Strba, some systems need extra library for regex
Carl Byington <carl@five-ten-sg.com>
parents:
132
diff
changeset
|
202 |
31 | 203 # The following lines adds the --enable-pst-debug option to configure: |
204 # | |
205 # Give the user the choice to enter one of these: | |
206 # --enable-pst-debug | |
207 # --enable-pst-debug=yes | |
208 # --enable-pst-debug=no | |
209 # | |
34
07177825c91b
fix signed/unsigned to allow very small pst files with only leaf nodes
carl
parents:
31
diff
changeset
|
210 AC_MSG_CHECKING([whether we are forcing debug dump file creation]) |
31 | 211 AC_ARG_ENABLE(pst-debug, |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
212 AC_HELP_STRING([--enable-pst-debug], [force debug dump file creation]), |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
213 [ |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
214 case "${enableval}" in |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
215 yes) ;; |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
216 no) ;; |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
217 *) AC_MSG_ERROR(bad value ${enableval} for --enable-pst-debug) ;; |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
218 esac |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
219 ], |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
220 # default if not specified |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
221 enable_pst_debug=no |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
222 ) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
223 AC_MSG_RESULT([$enable_pst_debug]) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
224 if test "$enable_pst_debug" = "yes"; then |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
225 AC_DEFINE(DEBUG_ALL, 1, Define to 1 to force debug dump file creation) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
226 fi |
31 | 227 |
78
535075b4d261
Patch from Joachim Metz for debian packaging, and fix for incorrect length on lz decompression.
Carl Byington <carl@five-ten-sg.com>
parents:
77
diff
changeset
|
228 |
95
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
229 # The following lines adds the --enable-libpst-shared option to configure: |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
230 # |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
231 # Give the user the choice to enter one of these: |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
232 # --enable-libpst-shared |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
233 # --enable-libpst-shared=yes |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
234 # --enable-libpst-shared=no |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
235 # |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
236 AC_MSG_CHECKING([whether we are building libpst shared object]) |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
237 AC_ARG_ENABLE(libpst-shared, |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
238 AC_HELP_STRING([--enable-libpst-shared], [build libpst shared object]), |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
239 [ |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
240 case "${enableval}" in |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
241 yes) ;; |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
242 no) ;; |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
243 *) AC_MSG_ERROR(bad value ${enableval} for --enable-libpst-shared) ;; |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
244 esac |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
245 ], |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
246 # default if not specified |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
247 enable_libpst_shared=no |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
248 ) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
249 AC_MSG_RESULT([$enable_libpst_shared]) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
250 enable_static_tools=yes |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
251 if test "$enable_libpst_shared" = "yes"; then |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
252 enable_shared=yes |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
253 enable_static_tools=no |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
254 fi |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
255 |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
256 # needed by STATIC_TOOLS in src/Makefile.am |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
257 AC_SUBST(PST_OBJDIR, [$objdir]) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
258 |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
259 |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
260 # The following lines adds the --enable-static-tools option to configure: |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
261 # |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
262 # Give the user the choice to enter one of these: |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
263 # --enable-static-tools |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
264 # --enable-static-tools=yes |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
265 # --enable-static-tools=no |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
266 # |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
267 AC_MSG_CHECKING([whether to link command line tools with libpst statically]) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
268 AC_ARG_ENABLE([static-tools], |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
269 AC_HELP_STRING([--enable-static-tools], [link command line tools with libpst statically]), |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
270 [ |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
271 case "${enableval}" in |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
272 yes) ;; |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
273 no) ;; |
288
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
274 *) AC_MSG_ERROR(bad value ${enableval} for --enable-static-tools) ;; |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
275 esac |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
276 ], |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
277 [ |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
278 enable_static_tools=no |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
279 ]) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
280 AC_MSG_RESULT([$enable_static_tools]) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
281 AM_CONDITIONAL(STATIC_TOOLS, [test "$enable_static_tools" = "yes"]) |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
282 if test "$enable_static_tools" = "yes"; then |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
283 enable_static="yes" |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
284 fi |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
285 |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
286 |
198
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
287 # The following lines adds the --enable-python option to configure: |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
288 # |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
289 # Give the user the choice to enter one of these: |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
290 # --enable-python |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
291 # --enable-python=yes |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
292 # --enable-python=no |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
293 # |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
294 AC_MSG_CHECKING([whether to build the libpst python interface]) |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
295 AC_ARG_ENABLE([python], |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
296 AC_HELP_STRING([--enable-python], [build libpst python interface]), |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
297 [ |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
298 case "${enableval}" in |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
299 yes) ;; |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
300 no) ;; |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
301 *) AC_MSG_ERROR(bad value ${enableval} for --python) ;; |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
302 esac |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
303 ], |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
304 [ |
199
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
198
diff
changeset
|
305 enable_python=yes |
198
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
306 ]) |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
307 AC_MSG_RESULT([$enable_python]) |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
308 AM_CONDITIONAL(PYTHON_INTERFACE, [test "$enable_python" = "yes"]) |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
309 if test "$enable_python" = "yes"; then |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
310 enable_shared="yes" |
226
bfc35fd55254
fix python autoconf macros
Carl Byington <carl@five-ten-sg.com>
parents:
225
diff
changeset
|
311 # get the version of installed python |
198
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
312 AX_PYTHON |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
313 if test "$ax_python_bin" = "no"; then |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
314 AC_MSG_ERROR(python binary not found) |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
315 fi |
226
bfc35fd55254
fix python autoconf macros
Carl Byington <carl@five-ten-sg.com>
parents:
225
diff
changeset
|
316 py_ver=`echo $ax_python_bin | cut -c7-` |
bfc35fd55254
fix python autoconf macros
Carl Byington <carl@five-ten-sg.com>
parents:
225
diff
changeset
|
317 # find the flags for that version |
bfc35fd55254
fix python autoconf macros
Carl Byington <carl@five-ten-sg.com>
parents:
225
diff
changeset
|
318 AC_PYTHON_DEVEL([$py_ver]) |
bfc35fd55254
fix python autoconf macros
Carl Byington <carl@five-ten-sg.com>
parents:
225
diff
changeset
|
319 PYTHON_INCLUDE_DIR=`echo $python_path | cut -c3-` |
bfc35fd55254
fix python autoconf macros
Carl Byington <carl@five-ten-sg.com>
parents:
225
diff
changeset
|
320 AC_SUBST([PYTHON_INCLUDE_DIR]) |
bfc35fd55254
fix python autoconf macros
Carl Byington <carl@five-ten-sg.com>
parents:
225
diff
changeset
|
321 # do we have boost python |
201
3850a3b11745
fixes for parallel readpst
Carl Byington <carl@five-ten-sg.com>
parents:
200
diff
changeset
|
322 AX_BOOST_PYTHON |
3850a3b11745
fixes for parallel readpst
Carl Byington <carl@five-ten-sg.com>
parents:
200
diff
changeset
|
323 if test "$ac_cv_boost_python" = "no"; then |
3850a3b11745
fixes for parallel readpst
Carl Byington <carl@five-ten-sg.com>
parents:
200
diff
changeset
|
324 AC_MSG_ERROR(boost python not found) |
3850a3b11745
fixes for parallel readpst
Carl Byington <carl@five-ten-sg.com>
parents:
200
diff
changeset
|
325 fi |
198
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
326 AC_SUBST(PYTHON_VERSION, [$ax_python_bin]) |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
327 fi |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
328 |
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
329 |
288
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
330 # The following lines adds the --enable-profiling option to configure: |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
331 # |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
332 # Give the user the choice to enter one of these: |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
333 # --enable-profiling |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
334 # --enable-profiling=yes |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
335 # --enable-profiling=no |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
336 # |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
337 AC_MSG_CHECKING([whether to link with gprof profiling]) |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
338 AC_ARG_ENABLE([profiling], |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
339 AC_HELP_STRING([--enable-profiling], [link with gprof profiling]), |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
340 [ |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
341 case "${enableval}" in |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
342 yes) |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
343 CFLAGS="$CFLAGS -pg" |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
344 CPPFLAGS="$CPPFLAGS -pg" |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
345 CXXFLAGS="$CXXFLAGS -pg" |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
346 ;; |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
347 no) |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
348 ;; |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
349 *) AC_MSG_ERROR(bad value ${enableval} for --profiling) ;; |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
350 esac |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
351 ], |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
352 [ |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
353 enable_profiling=no |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
354 ]) |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
355 AC_MSG_RESULT([$enable_profiling]) |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
356 AM_CONDITIONAL(GPROF_PROFILING, [test "$enable_profiling" = "yes"]) |
fa7fc1ac6385
add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
Carl Byington <carl@five-ten-sg.com>
parents:
283
diff
changeset
|
357 |
308
97c53c6868ab
add -m option to readpst to create Outlook .msg files
Carl Byington <carl@five-ten-sg.com>
parents:
242
diff
changeset
|
358 gsf_flags="`pkg-config libgsf-1 --cflags`" |
97c53c6868ab
add -m option to readpst to create Outlook .msg files
Carl Byington <carl@five-ten-sg.com>
parents:
242
diff
changeset
|
359 gsf_libs="`pkg-config libgsf-1 --libs`" |
97c53c6868ab
add -m option to readpst to create Outlook .msg files
Carl Byington <carl@five-ten-sg.com>
parents:
242
diff
changeset
|
360 AC_SUBST(GSF_FLAGS, [$gsf_flags]) |
97c53c6868ab
add -m option to readpst to create Outlook .msg files
Carl Byington <carl@five-ten-sg.com>
parents:
242
diff
changeset
|
361 AC_SUBST(GSF_LIBS, [$gsf_libs]) |
198
7c60d6d1c681
decode more recurrence mapi elements
Carl Byington <carl@five-ten-sg.com>
parents:
196
diff
changeset
|
362 |
16 | 363 AC_OUTPUT( \ |
364 Makefile \ | |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
365 debian/Makefile \ |
16 | 366 html/Makefile \ |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
367 libpst.pc \ |
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
116
diff
changeset
|
368 libpst.spec \ |
16 | 369 man/Makefile \ |
370 src/Makefile \ | |
95
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
371 src/pst2dii.cpp \ |
195
320cfcba8058
add python module interface to the shared library for easy scripting.
Carl Byington <carl@five-ten-sg.com>
parents:
191
diff
changeset
|
372 python/Makefile \ |
16 | 373 xml/Makefile \ |
374 xml/libpst \ | |
375 ) |