Mercurial > libpst
annotate configure.ac @ 399:05753b1906f9 stable-0-6-74
changes to build on centos 6
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 12 Jan 2020 14:58:06 -0800 |
parents | 3cbda103e0ef |
children | c1b1bbd42696 |
rev | line source |
---|---|
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
1 AC_PREREQ(2.60) |
394
3cbda103e0ef
changes to build on centos 6
Carl Byington <carl@five-ten-sg.com>
parents:
393
diff
changeset
|
2 AC_INIT(libpst,0.6.74,carl@five-ten-sg.com) |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
3 AC_CONFIG_SRCDIR([src/libpst.c]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
4 AC_CONFIG_HEADER([config.h]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
5 AC_CONFIG_MACRO_DIR([m4]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
6 AM_INIT_AUTOMAKE |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
7 AC_CANONICAL_HOST |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
8 AC_USE_SYSTEM_EXTENSIONS |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
9 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
10 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
11 # 1. Remember that version-info is current:revision:age, and age <= current. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
12 # 2. If the source code has changed at all since the last public release, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
13 # then increment revision (`c:r:a' becomes `c:r+1:a'). |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
14 # 3. If any interfaces have been added, removed, or changed since the last |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
15 # update, increment current, and set revision to 0. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
16 # 4. If any interfaces have been added since the last public release, then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
17 # increment age, since we should be backward compatible with the previous |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
18 # version. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
19 # 5. If any interfaces have been removed or changed since the last public |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
20 # release, then set age to 0, since we are not backward compatible. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
21 # 6. libtool will build libpst.so.x.y.z where the SONAME is libpst.so.x |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
22 # and x=current-age, y=age, z=revision |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
23 |
394
3cbda103e0ef
changes to build on centos 6
Carl Byington <carl@five-ten-sg.com>
parents:
393
diff
changeset
|
24 libpst_version_info='5:16:1' |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
25 AC_SUBST(LIBPST_VERSION_INFO, [$libpst_version_info]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
26 libpst_so_major='4' |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
27 AC_SUBST(LIBPST_SO_MAJOR, [$libpst_so_major]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
28 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
29 # libpst |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
30 # version soname so library name |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
31 # 0.6.35 libpst.so.2 libpst.so.2.0.0 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
32 # 0.6.37 libpst.so.2 libpst.so.2.1.0 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
33 # 0.6.38 libpst.so.2 libpst.so.2.1.0 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
34 # 0.6.40 libpst.so.4 libpst.so.4.0.0 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
35 # 0.6.43 libpst.so.4 libpst.so.4.0.1 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
36 # 0.6.47 libpst.so.4 libpst.so.4.0.2 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
37 # 0.6.48 libpst.so.4 libpst.so.4.0.3 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
38 # 0.6.49 libpst.so.4 libpst.so.4.0.4 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
39 # 0.6.50 libpst.so.4 libpst.so.4.1.0 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
40 # 0.6.51 libpst.so.4 libpst.so.4.1.1 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
41 # 0.6.52 libpst.so.4 libpst.so.4.1.2 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
42 # 0.6.53 libpst.so.4 libpst.so.4.1.3 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
43 # 0.6.54 libpst.so.4 libpst.so.4.1.4 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
44 # 0.6.55 libpst.so.4 libpst.so.4.1.5 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
45 # 0.6.56 libpst.so.4 libpst.so.4.1.6 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
46 # 0.6.57 libpst.so.4 libpst.so.4.1.6 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
47 # 0.6.58 libpst.so.4 libpst.so.4.1.7 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
48 # 0.6.59 libpst.so.4 libpst.so.4.1.8 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
49 # 0.6.60 libpst.so.4 libpst.so.4.1.9 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
50 # 0.6.61 libpst.so.4 libpst.so.4.1.9 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
51 # 0.6.62 libpst.so.4 libpst.so.4.1.9 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
52 # 0.6.63 libpst.so.4 libpst.so.4.1.10 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
53 # 0.6.66 libpst.so.4 libpst.so.4.1.11 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
54 # 0.6.67 libpst.so.4 libpst.so.4.1.12 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
55 # 0.6.68 libpst.so.4 libpst.so.4.1.13 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
56 # 0.6.69 libpst.so.4 libpst.so.4.1.14 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
57 # 0.6.73 libpst.so.4 libpst.so.4.1.15 |
394
3cbda103e0ef
changes to build on centos 6
Carl Byington <carl@five-ten-sg.com>
parents:
393
diff
changeset
|
58 # 0.6.74 libpst.so.4 libpst.so.4.1.16 |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
59 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
60 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
61 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
62 # Check for solaris |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
63 AC_MSG_CHECKING([for Solaris]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
64 case "$host" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
65 *solaris*) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
66 os_solaris=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
67 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
68 *) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
69 os_solaris=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
70 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
71 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
72 AC_MSG_RESULT($os_solaris) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
73 AM_CONDITIONAL(OS_SOLARIS, [test "$os_solaris" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
74 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
75 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
76 # Check for win32 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
77 AC_MSG_CHECKING([for Win32]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
78 case "$host" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
79 *-mingw*) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
80 os_win32=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
81 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
82 *) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
83 os_win32=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
84 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
85 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
86 AC_MSG_RESULT($os_win32) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
87 AM_CONDITIONAL(OS_WIN32, [test "$os_win32" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
88 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
89 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
90 # Check for Win32 platform |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
91 AC_MSG_CHECKING([for Win32 platform in general]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
92 case "$host" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
93 *-cygwin*) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
94 platform_win32=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
95 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
96 *) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
97 platform_win32=$os_win32 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
98 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
99 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
100 AC_MSG_RESULT($platform_win32) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
101 AM_CONDITIONAL(PLATFORM_WIN32, [test "$platform_win32" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
102 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
103 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
104 # Checks for programs. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
105 # The following lines adds the --enable-dii option to configure: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
106 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
107 # Give the user the choice to enter one of these: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
108 # --enable-dii |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
109 # --enable-dii=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
110 # --enable-dii=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
111 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
112 AC_MSG_CHECKING([whether we are enabling dii utility]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
113 AC_ARG_ENABLE(dii, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
114 AC_HELP_STRING([--enable-dii], [enable dii utility]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
115 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
116 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
117 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
118 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
119 *) AC_MSG_ERROR(bad value ${enableval} for --enable-dii) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
120 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
121 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
122 # default if not specified |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
123 enable_dii=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
124 ) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
125 AC_MSG_RESULT([$enable_dii]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
126 AC_PATH_PROG(CONVERT, convert) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
127 if test "x$CONVERT" = "x" ; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
128 if test "$enable_dii" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
129 enable_dii=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
130 AC_MSG_WARN([convert program not found. pst2dii disabled]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
131 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
132 else |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
133 if test "x`$CONVERT --version 2>&1 | grep -i imagemagick >/dev/null ; echo $?`" != "x0"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
134 if test "$enable_dii" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
135 enable_dii=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
136 AC_MSG_WARN([wrong convert program found. pst2dii disabled]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
137 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
138 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
139 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
140 AC_CHECK_HEADER([gd.h], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
141 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
142 AC_DEFINE([HAVE_GD_H], [1], [Define to 1 if you have the <gd.h> header file.]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
143 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
144 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
145 if test "$enable_dii" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
146 enable_dii=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
147 AC_MSG_WARN([gd.h not found. pst2dii disabled]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
148 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
149 ]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
150 AM_CONDITIONAL(BUILD_DII, [test "$enable_dii" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
151 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
152 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
153 # Checks for programs. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
154 AC_PROG_CXX |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
155 AC_PROG_CC |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
156 AM_PROG_CC_C_O |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
157 AC_PROG_CPP |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
158 AC_PROG_INSTALL |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
159 AC_PROG_LN_S |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
160 AC_PROG_LIBTOOL |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
161 AC_PROG_MAKE_SET |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
162 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
163 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
164 # make sure we get large file support |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
165 AC_SYS_LARGEFILE |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
166 AC_CHECK_SIZEOF(off_t) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
167 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
168 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
169 # Checks for header files. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
170 AC_CHECK_HEADER([unistd.h], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
171 AM_CONDITIONAL(NEED_XGETOPT, [test yes = no]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
172 AM_CONDITIONAL(NEED_XGETOPT, [test yes = yes]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
173 ) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
174 AC_HEADER_DIRENT |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
175 AC_HEADER_STDC |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
176 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]) |
393
ffbb5e3f2551
Add missing linking with zlib and libpthread/librt
Paul Wise <pabs3@bonedaddy.net>
parents:
392
diff
changeset
|
177 save_libs="$LIBS" ; LIBS="" |
ffbb5e3f2551
Add missing linking with zlib and libpthread/librt
Paul Wise <pabs3@bonedaddy.net>
parents:
392
diff
changeset
|
178 AC_SEARCH_LIBS([sem_init], [pthread rt], [SEM_LIBS="$LIBS"], [AC_MSG_ERROR([sem_init missing])]) |
ffbb5e3f2551
Add missing linking with zlib and libpthread/librt
Paul Wise <pabs3@bonedaddy.net>
parents:
392
diff
changeset
|
179 AC_SUBST([SEM_LIBS]) |
ffbb5e3f2551
Add missing linking with zlib and libpthread/librt
Paul Wise <pabs3@bonedaddy.net>
parents:
392
diff
changeset
|
180 LIBS="$save_libs" |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
181 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
182 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
183 # Checks for typedefs, structures, and compiler characteristics. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
184 AC_HEADER_STDBOOL |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
185 AC_HEADER_SYS_WAIT |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
186 AC_C_CONST |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
187 AC_C_INLINE |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
188 AC_TYPE_OFF_T |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
189 AC_TYPE_SIZE_T |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
190 AC_TYPE_PID_T |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
191 AC_STRUCT_TM |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
192 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
193 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
194 # Checks for library functions. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
195 AC_FUNC_FORK |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
196 AC_FUNC_FSEEKO |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
197 AC_FUNC_STAT |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
198 AC_FUNC_LSTAT |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
199 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
200 if test "$cross_compiling" != "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
201 AC_FUNC_MALLOC |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
202 AC_FUNC_MKTIME |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
203 AC_FUNC_REALLOC |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
204 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
205 AC_FUNC_STRFTIME |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
206 AC_FUNC_VPRINTF |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
207 AC_CHECK_FUNCS([chdir getcwd memchr memmove memset regcomp strcasecmp strncasecmp strchr strdup strerror strpbrk strrchr strstr strtol get_current_dir_name]) |
386 | 208 AM_GNU_GETTEXT |
394
3cbda103e0ef
changes to build on centos 6
Carl Byington <carl@five-ten-sg.com>
parents:
393
diff
changeset
|
209 AM_GNU_GETTEXT_VERSION([0.17]) |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
210 AM_ICONV |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
211 if test "$am_cv_func_iconv" != "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
212 AC_MSG_ERROR([libpst requires iconv which is missing]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
213 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
214 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
215 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
216 AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
217 [REGEXLIB=-lregex |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
218 AC_DEFINE(HAVE_REGEXEC,1,[Define to 1 if you have the regexec function.])], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
219 [AC_MSG_ERROR([No regex library found])])]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
220 AC_SUBST(REGEXLIB) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
221 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
222 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
223 # The following lines adds the --enable-pst-debug option to configure: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
224 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
225 # Give the user the choice to enter one of these: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
226 # --enable-pst-debug |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
227 # --enable-pst-debug=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
228 # --enable-pst-debug=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
229 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
230 AC_MSG_CHECKING([whether we are forcing debug dump file creation]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
231 AC_ARG_ENABLE(pst-debug, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
232 AC_HELP_STRING([--enable-pst-debug], [force debug dump file creation]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
233 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
234 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
235 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
236 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
237 *) AC_MSG_ERROR(bad value ${enableval} for --enable-pst-debug) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
238 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
239 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
240 # default if not specified |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
241 enable_pst_debug=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
242 ) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
243 AC_MSG_RESULT([$enable_pst_debug]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
244 if test "$enable_pst_debug" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
245 AC_DEFINE(DEBUG_ALL, 1, Define to 1 to force debug dump file creation) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
246 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
247 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
248 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
249 # The following lines adds the --enable-libpst-shared option to configure: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
250 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
251 # Give the user the choice to enter one of these: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
252 # --enable-libpst-shared |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
253 # --enable-libpst-shared=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
254 # --enable-libpst-shared=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
255 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
256 AC_MSG_CHECKING([whether we are building libpst shared object]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
257 AC_ARG_ENABLE(libpst-shared, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
258 AC_HELP_STRING([--enable-libpst-shared], [build libpst shared object]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
259 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
260 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
261 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
262 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
263 *) AC_MSG_ERROR(bad value ${enableval} for --enable-libpst-shared) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
264 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
265 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
266 # default if not specified |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
267 enable_libpst_shared=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
268 ) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
269 AC_MSG_RESULT([$enable_libpst_shared]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
270 enable_static_tools=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
271 if test "$enable_libpst_shared" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
272 enable_shared=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
273 enable_static_tools=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
274 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
275 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
276 # needed by STATIC_TOOLS in src/Makefile.am |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
277 AC_SUBST(PST_OBJDIR, [$objdir]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
278 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
279 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
280 # The following lines adds the --enable-static-tools option to configure: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
281 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
282 # Give the user the choice to enter one of these: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
283 # --enable-static-tools |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
284 # --enable-static-tools=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
285 # --enable-static-tools=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
286 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
287 AC_MSG_CHECKING([whether to link command line tools with libpst statically]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
288 AC_ARG_ENABLE([static-tools], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
289 AC_HELP_STRING([--enable-static-tools], [link command line tools with libpst statically]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
290 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
291 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
292 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
293 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
294 *) AC_MSG_ERROR(bad value ${enableval} for --enable-static-tools) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
295 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
296 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
297 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
298 enable_static_tools=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
299 ]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
300 AC_MSG_RESULT([$enable_static_tools]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
301 AM_CONDITIONAL(STATIC_TOOLS, [test "$enable_static_tools" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
302 if test "$enable_static_tools" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
303 enable_static="yes" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
304 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
305 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
306 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
307 # The following lines adds the --enable-python option to configure: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
308 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
309 # Give the user the choice to enter one of these: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
310 # --enable-python |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
311 # --enable-python=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
312 # --enable-python=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
313 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
314 AC_MSG_CHECKING([whether to build the libpst python interface]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
315 AC_ARG_ENABLE([python], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
316 AC_HELP_STRING([--enable-python], [build libpst python interface]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
317 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
318 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
319 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
320 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
321 *) AC_MSG_ERROR(bad value ${enableval} for --python) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
322 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
323 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
324 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
325 enable_python=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
326 ]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
327 AC_MSG_RESULT([$enable_python]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
328 AM_CONDITIONAL(PYTHON_INTERFACE, [test "$enable_python" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
329 if test "$enable_python" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
330 enable_shared="yes" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
331 # get the version of installed python |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
332 AX_PYTHON |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
333 if test "$ax_python_bin" = "no"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
334 AC_MSG_ERROR(python binary not found) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
335 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
336 PYTHON_VERSION=`echo $ax_python_bin | cut -c7-` |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
337 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
338 # find the flags for that version |
394
3cbda103e0ef
changes to build on centos 6
Carl Byington <carl@five-ten-sg.com>
parents:
393
diff
changeset
|
339 AX_PYTHON_DEVEL([$PYTHON_VERSION]) |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
340 |
390
5c0ce43c7532
Fix a number of spelling mistakes
Paul Wise <pabs3@bonedaddy.net>
parents:
388
diff
changeset
|
341 # do we have Boost Python? |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
342 AX_BOOST_PYTHON |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
343 if test "$ac_cv_boost_python" = "no"; then |
390
5c0ce43c7532
Fix a number of spelling mistakes
Paul Wise <pabs3@bonedaddy.net>
parents:
388
diff
changeset
|
344 AC_MSG_ERROR(Boost Python not found) |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
345 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
346 AC_SUBST(PYTHON_VERSION, [$ax_python_bin]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
347 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
348 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
349 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
350 # The following lines adds the --enable-profiling option to configure: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
351 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
352 # Give the user the choice to enter one of these: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
353 # --enable-profiling |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
354 # --enable-profiling=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
355 # --enable-profiling=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
356 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
357 AC_MSG_CHECKING([whether to link with gprof profiling]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
358 AC_ARG_ENABLE([profiling], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
359 AC_HELP_STRING([--enable-profiling], [link with gprof profiling]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
360 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
361 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
362 yes) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
363 CFLAGS="$CFLAGS -pg" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
364 CPPFLAGS="$CPPFLAGS -pg" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
365 CXXFLAGS="$CXXFLAGS -pg" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
366 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
367 no) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
368 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
369 *) AC_MSG_ERROR(bad value ${enableval} for --profiling) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
370 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
371 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
372 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
373 enable_profiling=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
374 ]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
375 AC_MSG_RESULT([$enable_profiling]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
376 AM_CONDITIONAL(GPROF_PROFILING, [test "$enable_profiling" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
377 |
392
54465fca8b9e
Use PKG_CHECK_MODULES to find the gsf-1 library
Paul Wise <pabs3@bonedaddy.net>
parents:
390
diff
changeset
|
378 PKG_CHECK_MODULES([GSF], [libgsf-1]) |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
379 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
380 PKG_CHECK_MODULES([ZLIB], [zlib]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
381 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
382 AC_OUTPUT( \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
383 Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
384 html/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
385 libpst.pc \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
386 libpst.spec \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
387 man/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
388 src/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
389 src/pst2dii.cpp \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
390 python/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
391 xml/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
392 xml/libpst \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
393 ) |